From e4b778cbc7f2d80f3ae28a5b174a428e3f8a91d1 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Tue, 6 Sep 2022 13:23:38 -0700 Subject: [PATCH] Make `BSTR` a core string type (#2006) --- crates/libs/bindgen/src/gen.rs | 7 + crates/libs/bindgen/src/lib.rs | 1 - crates/libs/bindgen/src/replacements/bstr.rs | 136 - crates/libs/bindgen/src/replacements/mod.rs | 9 - crates/libs/bindgen/src/structs.rs | 6 - crates/libs/metadata/src/reader/mod.rs | 16 +- crates/libs/metadata/src/reader/type.rs | 1 + .../src/Windows/Win32/Data/Xml/MsXml/mod.rs | 11 +- .../Win32/Devices/ImageAcquisition/mod.rs | 114 +- .../Win32/Devices/PortableDevices/mod.rs | 5 +- .../sys/src/Windows/Win32/Foundation/mod.rs | 21 +- .../Graphics/Printing/PrintTicket/mod.rs | 26 +- .../Windows/Win32/Graphics/Printing/mod.rs | 17 +- .../src/Windows/Win32/Media/DirectShow/mod.rs | 9 +- .../Win32/Media/MediaFoundation/mod.rs | 15 +- .../Windows/Win32/Media/MediaPlayer/mod.rs | 9 +- .../NetworkManagement/MobileBroadband/mod.rs | 49 +- .../mod.rs | 9 +- .../Windows/Win32/Networking/WinInet/mod.rs | 2 +- .../Win32/Storage/DataDeduplication/mod.rs | 7 +- .../mod.rs | 76 +- .../Windows/Win32/System/Com/Events/mod.rs | 11 +- .../Windows/Win32/System/Com/Marshal/mod.rs | 40 +- .../Win32/System/Com/StructuredStorage/mod.rs | 11 +- .../sys/src/Windows/Win32/System/Com/mod.rs | 18 +- .../Win32/System/Diagnostics/Debug/mod.rs | 53 +- .../sys/src/Windows/Win32/System/Iis/mod.rs | 9 +- .../sys/src/Windows/Win32/System/Ole/mod.rs | 121 +- .../Windows/Win32/System/RemoteDesktop/mod.rs | 15 +- .../src/Windows/Win32/System/Search/mod.rs | 10 +- .../src/Windows/Win32/UI/Accessibility/mod.rs | 62 +- .../Win32/UI/Shell/PropertiesSystem/mod.rs | 14 +- .../sys/src/Windows/Win32/UI/Shell/mod.rs | 6 +- .../src/Windows/Win32/UI/TextServices/mod.rs | 19 +- .../Windows/Win32/UI/Xaml/Diagnostics/mod.rs | 58 +- crates/libs/sys/src/core/mod.rs | 1 + .../src/Windows/Win32/Data/Xml/MsXml/impl.rs | 835 +- .../src/Windows/Win32/Data/Xml/MsXml/mod.rs | 4481 +++----- .../Win32/Devices/Enumeration/Pnp/impl.rs | 232 +- .../Win32/Devices/Enumeration/Pnp/mod.rs | 647 +- .../src/Windows/Win32/Devices/Fax/impl.rs | 728 +- .../src/Windows/Win32/Devices/Fax/mod.rs | 2626 ++--- .../Windows/Win32/Devices/Geolocation/impl.rs | 48 +- .../Windows/Win32/Devices/Geolocation/mod.rs | 132 +- .../Win32/Devices/ImageAcquisition/impl.rs | 218 +- .../Win32/Devices/ImageAcquisition/mod.rs | 817 +- .../Win32/Devices/PortableDevices/impl.rs | 27 +- .../Win32/Devices/PortableDevices/mod.rs | 93 +- .../src/Windows/Win32/Devices/Sensors/impl.rs | 4 +- .../src/Windows/Win32/Devices/Sensors/mod.rs | 11 +- .../src/Windows/Win32/Devices/Tapi/impl.rs | 421 +- .../src/Windows/Win32/Devices/Tapi/mod.rs | 1450 +-- .../src/Windows/Win32/Foundation/mod.rs | 184 +- .../windows/src/Windows/Win32/Gaming/impl.rs | 8 +- .../windows/src/Windows/Win32/Gaming/mod.rs | 24 +- .../src/Windows/Win32/Globalization/impl.rs | 27 +- .../src/Windows/Win32/Globalization/mod.rs | 102 +- .../Win32/Graphics/Direct3D/Dxc/impl.rs | 36 +- .../Win32/Graphics/Direct3D/Dxc/mod.rs | 97 +- .../Graphics/Printing/PrintTicket/mod.rs | 44 +- .../Windows/Win32/Graphics/Printing/impl.rs | 284 +- .../Windows/Win32/Graphics/Printing/mod.rs | 1196 +-- .../Win32/Media/DirectShow/Xml/impl.rs | 10 +- .../Windows/Win32/Media/DirectShow/Xml/mod.rs | 9 +- .../Windows/Win32/Media/DirectShow/impl.rs | 856 +- .../src/Windows/Win32/Media/DirectShow/mod.rs | 3974 ++------ .../Media/LibrarySharingServices/impl.rs | 44 +- .../Win32/Media/LibrarySharingServices/mod.rs | 151 +- .../Win32/Media/MediaFoundation/impl.rs | 175 +- .../Win32/Media/MediaFoundation/mod.rs | 537 +- .../Windows/Win32/Media/MediaPlayer/impl.rs | 1069 +- .../Windows/Win32/Media/MediaPlayer/mod.rs | 4381 ++------ .../Win32/Media/PictureAcquisition/impl.rs | 54 +- .../Win32/Media/PictureAcquisition/mod.rs | 125 +- .../src/Windows/Win32/Media/Speech/impl.rs | 360 +- .../src/Windows/Win32/Media/Speech/mod.rs | 1134 +-- .../Win32/Media/WindowsMediaFormat/impl.rs | 81 +- .../Win32/Media/WindowsMediaFormat/mod.rs | 261 +- .../NetworkManagement/MobileBroadband/impl.rs | 146 +- .../NetworkManagement/MobileBroadband/mod.rs | 319 +- .../NetworkManagement/NetManagement/impl.rs | 7 +- .../NetworkManagement/NetManagement/mod.rs | 15 +- .../NetworkPolicyServer/impl.rs | 48 +- .../NetworkPolicyServer/mod.rs | 205 +- .../NetworkManagement/WindowsFirewall/impl.rs | 355 +- .../NetworkManagement/WindowsFirewall/mod.rs | 1461 +-- .../Win32/Networking/ActiveDirectory/impl.rs | 1057 +- .../Win32/Networking/ActiveDirectory/mod.rs | 4900 +++------ .../impl.rs | 11 +- .../mod.rs | 51 +- .../Win32/Networking/Clustering/impl.rs | 215 +- .../Win32/Networking/Clustering/mod.rs | 622 +- .../Networking/NetworkListManager/impl.rs | 16 +- .../Networking/NetworkListManager/mod.rs | 50 +- .../Windows/Win32/Networking/WinInet/mod.rs | 4 +- .../Win32/Security/Authorization/impl.rs | 832 +- .../Win32/Security/Authorization/mod.rs | 4116 +++----- .../Cryptography/Certificates/impl.rs | 1764 ++-- .../Security/Cryptography/Certificates/mod.rs | 9038 +++++------------ .../Win32/Security/Cryptography/impl.rs | 84 +- .../Win32/Security/Cryptography/mod.rs | 261 +- .../Win32/Storage/DataDeduplication/impl.rs | 43 +- .../Win32/Storage/DataDeduplication/mod.rs | 112 +- .../Windows/Win32/Storage/FileHistory/impl.rs | 42 +- .../Windows/Win32/Storage/FileHistory/mod.rs | 99 +- .../Storage/FileServerResourceManager/impl.rs | 688 +- .../Storage/FileServerResourceManager/mod.rs | 3211 ++---- .../src/Windows/Win32/Storage/Imapi/impl.rs | 246 +- .../src/Windows/Win32/Storage/Imapi/mod.rs | 1109 +- .../Win32/Storage/Packaging/Opc/mod.rs | 252 +- .../src/Windows/Win32/Storage/Vss/impl.rs | 123 +- .../src/Windows/Win32/Storage/Vss/mod.rs | 390 +- .../impl.rs | 334 +- .../mod.rs | 980 +- .../Win32/System/AssessmentTool/impl.rs | 20 +- .../Win32/System/AssessmentTool/mod.rs | 105 +- .../System/Com/ChannelCredentials/impl.rs | 40 +- .../System/Com/ChannelCredentials/mod.rs | 144 +- .../Windows/Win32/System/Com/Events/impl.rs | 328 +- .../Windows/Win32/System/Com/Events/mod.rs | 1126 +- .../Windows/Win32/System/Com/Marshal/mod.rs | 56 +- .../Win32/System/Com/StructuredStorage/mod.rs | 16 +- .../src/Windows/Win32/System/Com/impl.rs | 133 +- .../src/Windows/Win32/System/Com/mod.rs | 376 +- .../Win32/System/ComponentServices/impl.rs | 396 +- .../Win32/System/ComponentServices/mod.rs | 1432 +-- .../Win32/System/DeploymentServices/impl.rs | 136 +- .../Win32/System/DeploymentServices/mod.rs | 930 +- .../Win32/System/DesktopSharing/impl.rs | 98 +- .../Win32/System/DesktopSharing/mod.rs | 299 +- .../Win32/System/Diagnostics/Debug/impl.rs | 466 +- .../Win32/System/Diagnostics/Debug/mod.rs | 971 +- .../Win32/System/Diagnostics/Etw/impl.rs | 12 +- .../Win32/System/Diagnostics/Etw/mod.rs | 42 +- .../System/EventNotificationService/impl.rs | 68 +- .../System/EventNotificationService/mod.rs | 268 +- .../Windows/Win32/System/GroupPolicy/impl.rs | 432 +- .../Windows/Win32/System/GroupPolicy/mod.rs | 1678 +-- .../src/Windows/Win32/System/Iis/mod.rs | 13 +- .../Win32/System/MessageQueuing/impl.rs | 352 +- .../Win32/System/MessageQueuing/mod.rs | 1133 +-- .../src/Windows/Win32/System/Mmc/impl.rs | 74 +- .../src/Windows/Win32/System/Mmc/mod.rs | 227 +- .../src/Windows/Win32/System/Ole/impl.rs | 78 +- .../src/Windows/Win32/System/Ole/mod.rs | 463 +- .../Win32/System/ParentalControls/impl.rs | 12 +- .../Win32/System/ParentalControls/mod.rs | 28 +- .../Windows/Win32/System/Performance/impl.rs | 524 +- .../Windows/Win32/System/Performance/mod.rs | 2142 +--- .../System/RealTimeCommunications/impl.rs | 530 +- .../System/RealTimeCommunications/mod.rs | 1887 +--- .../Win32/System/RemoteAssistance/impl.rs | 15 +- .../Win32/System/RemoteAssistance/mod.rs | 39 +- .../Win32/System/RemoteDesktop/impl.rs | 588 +- .../Windows/Win32/System/RemoteDesktop/mod.rs | 1875 +--- .../Win32/System/RemoteManagement/impl.rs | 120 +- .../Win32/System/RemoteManagement/mod.rs | 506 +- .../src/Windows/Win32/System/Search/impl.rs | 19 +- .../src/Windows/Win32/System/Search/mod.rs | 43 +- .../Win32/System/SecurityCenter/impl.rs | 20 +- .../Win32/System/SecurityCenter/mod.rs | 106 +- .../SettingsManagementInfrastructure/impl.rs | 74 +- .../SettingsManagementInfrastructure/mod.rs | 170 +- .../Win32/System/TaskScheduler/impl.rs | 645 +- .../Windows/Win32/System/TaskScheduler/mod.rs | 2588 ++--- .../Win32/System/TransactionServer/impl.rs | 52 +- .../Win32/System/TransactionServer/mod.rs | 214 +- .../Windows/Win32/System/UpdateAgent/impl.rs | 312 +- .../Windows/Win32/System/UpdateAgent/mod.rs | 1944 ++-- .../src/Windows/Win32/System/WinRT/impl.rs | 11 +- .../src/Windows/Win32/System/WinRT/mod.rs | 20 +- .../Win32/System/WindowsProgramming/impl.rs | 18 +- .../Win32/System/WindowsProgramming/mod.rs | 43 +- .../src/Windows/Win32/System/Wmi/impl.rs | 539 +- .../src/Windows/Win32/System/Wmi/mod.rs | 2153 ++-- .../Windows/Win32/UI/Accessibility/impl.rs | 482 +- .../src/Windows/Win32/UI/Accessibility/mod.rs | 2647 ++--- .../src/Windows/Win32/UI/ColorSystem/impl.rs | 11 +- .../src/Windows/Win32/UI/ColorSystem/mod.rs | 28 +- .../Win32/UI/Controls/RichEdit/impl.rs | 106 +- .../Windows/Win32/UI/Controls/RichEdit/mod.rs | 545 +- .../src/Windows/Win32/UI/Input/Ime/impl.rs | 21 +- .../src/Windows/Win32/UI/Input/Ime/mod.rs | 42 +- .../Win32/UI/Shell/PropertiesSystem/impl.rs | 4 +- .../Win32/UI/Shell/PropertiesSystem/mod.rs | 38 +- .../src/Windows/Win32/UI/Shell/impl.rs | 447 +- .../windows/src/Windows/Win32/UI/Shell/mod.rs | 3624 ++----- .../src/Windows/Win32/UI/TabletPC/impl.rs | 200 +- .../src/Windows/Win32/UI/TabletPC/mod.rs | 620 +- .../src/Windows/Win32/UI/TextServices/impl.rs | 171 +- .../src/Windows/Win32/UI/TextServices/mod.rs | 547 +- .../windows/src/Windows/Win32/UI/Wpf/impl.rs | 7 +- .../windows/src/Windows/Win32/UI/Wpf/mod.rs | 12 +- .../Windows/Win32/UI/Xaml/Diagnostics/impl.rs | 14 +- .../Windows/Win32/UI/Xaml/Diagnostics/mod.rs | 160 +- crates/libs/windows/src/core/bindings.rs | 99 - crates/libs/windows/src/core/strings/bstr.rs | 134 + crates/libs/windows/src/core/strings/mod.rs | 2 + crates/tests/bstr/tests/bstr.rs | 13 +- 199 files changed, 32325 insertions(+), 68991 deletions(-) delete mode 100644 crates/libs/bindgen/src/replacements/bstr.rs delete mode 100644 crates/libs/bindgen/src/replacements/mod.rs create mode 100644 crates/libs/windows/src/core/strings/bstr.rs diff --git a/crates/libs/bindgen/src/gen.rs b/crates/libs/bindgen/src/gen.rs index e2271825cd..c9558ad3d5 100644 --- a/crates/libs/bindgen/src/gen.rs +++ b/crates/libs/bindgen/src/gen.rs @@ -91,6 +91,10 @@ impl<'a> Gen<'a> { let crate_name = self.crate_name(); quote! { ::#crate_name::core::HSTRING } } + Type::BSTR => { + let crate_name = self.crate_name(); + quote! { ::#crate_name::core::BSTR } + } Type::IInspectable => { let crate_name = self.crate_name(); quote! { ::#crate_name::core::IInspectable } @@ -161,6 +165,9 @@ impl<'a> Gen<'a> { Type::String => { quote! { ::core::mem::ManuallyDrop<::windows::core::HSTRING> } } + Type::BSTR => { + quote! { ::core::mem::ManuallyDrop<::windows::core::BSTR> } + } Type::IUnknown | Type::IInspectable => { quote! { *mut ::core::ffi::c_void } } diff --git a/crates/libs/bindgen/src/lib.rs b/crates/libs/bindgen/src/lib.rs index 1f1834407b..543a2da7b0 100644 --- a/crates/libs/bindgen/src/lib.rs +++ b/crates/libs/bindgen/src/lib.rs @@ -11,7 +11,6 @@ mod implements; mod interfaces; mod iterators; mod method_names; -mod replacements; mod structs; mod winrt_methods; pub use gen::*; diff --git a/crates/libs/bindgen/src/replacements/bstr.rs b/crates/libs/bindgen/src/replacements/bstr.rs deleted file mode 100644 index 4c3cf8ee8c..0000000000 --- a/crates/libs/bindgen/src/replacements/bstr.rs +++ /dev/null @@ -1,136 +0,0 @@ -use super::*; - -pub fn gen() -> TokenStream { - quote! { - #[repr(transparent)] - pub struct BSTR(*const u16); - impl BSTR { - pub fn new() -> Self { - Self(core::ptr::null_mut()) - } - - pub fn is_empty(&self) -> bool { - self.len() == 0 - } - - pub fn len(&self) -> usize { - if self.0.is_null() { - 0 - } else { - unsafe { SysStringLen(self) as usize } - } - } - - pub fn from_wide(value: &[u16]) -> Self { - if value.is_empty() { - return Self(::core::ptr::null_mut()); - } - - unsafe { SysAllocStringLen(Some(value)) } - } - - pub fn as_wide(&self) -> &[u16] { - if self.0.is_null() { - return &[]; - } - - unsafe { ::core::slice::from_raw_parts(self.0, self.len()) } - } - - pub unsafe fn from_raw(raw: *const u16) -> Self { - Self(raw) - } - - pub fn into_raw(self) -> *const u16 { - unsafe { std::mem::transmute(self) } - } - } - impl ::core::clone::Clone for BSTR { - fn clone(&self) -> Self { - Self::from_wide(self.as_wide()) - } - } - impl ::core::convert::From<&str> for BSTR { - fn from(value: &str) -> Self { - let value: ::windows::core::alloc::vec::Vec = value.encode_utf16().collect(); - Self::from_wide(&value) - } - } - impl ::core::convert::From<::windows::core::alloc::string::String> for BSTR { - fn from(value: ::windows::core::alloc::string::String) -> Self { - value.as_str().into() - } - } - impl ::core::convert::From<&::windows::core::alloc::string::String> for BSTR { - fn from(value: &::windows::core::alloc::string::String) -> Self { - value.as_str().into() - } - } - impl<'a> ::core::convert::TryFrom<&'a BSTR> for ::windows::core::alloc::string::String { - type Error = ::windows::core::alloc::string::FromUtf16Error; - - fn try_from(value: &BSTR) -> ::core::result::Result { - ::windows::core::alloc::string::String::from_utf16(value.as_wide()) - } - } - impl ::core::convert::TryFrom for ::windows::core::alloc::string::String { - type Error = ::windows::core::alloc::string::FromUtf16Error; - - fn try_from(value: BSTR) -> ::core::result::Result { - ::windows::core::alloc::string::String::try_from(&value) - } - } - impl ::core::default::Default for BSTR { - fn default() -> Self { - Self(::core::ptr::null_mut()) - } - } - impl ::core::fmt::Display for BSTR { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - ::core::write!(f, "{}", ::windows::core::Decode(|| ::core::char::decode_utf16(self.as_wide().iter().cloned()))) - } - } - impl ::core::fmt::Debug for BSTR { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - ::core::write!(f, "{}", self) - } - } - impl ::core::cmp::PartialEq for BSTR { - fn eq(&self, other: &Self) -> bool { - self.as_wide() == other.as_wide() - } - } - impl ::core::cmp::Eq for BSTR {} - impl ::core::cmp::PartialEq<::windows::core::alloc::string::String> for BSTR { - fn eq(&self, other: &::windows::core::alloc::string::String) -> bool { - self == other.as_str() - } - } - impl ::core::cmp::PartialEq for BSTR { - fn eq(&self, other: &str) -> bool { - self == other - } - } - impl ::core::cmp::PartialEq<&str> for BSTR { - fn eq(&self, other: &&str) -> bool { - self.as_wide().iter().copied().eq(other.encode_utf16()) - } - } - - impl ::core::cmp::PartialEq for &str { - fn eq(&self, other: &BSTR) -> bool { - other == self - } - } - impl ::core::ops::Drop for BSTR { - fn drop(&mut self) { - if !self.0.is_null() { - unsafe { SysFreeString(self as &Self) } - } - } - } - unsafe impl ::windows::core::Abi for BSTR { - type Abi = ::core::mem::ManuallyDrop; - } - } -} diff --git a/crates/libs/bindgen/src/replacements/mod.rs b/crates/libs/bindgen/src/replacements/mod.rs deleted file mode 100644 index 00c7968dc4..0000000000 --- a/crates/libs/bindgen/src/replacements/mod.rs +++ /dev/null @@ -1,9 +0,0 @@ -use super::*; -mod bstr; - -pub fn gen(type_name: TypeName) -> Option { - match type_name { - TypeName::BSTR => Some(bstr::gen()), - _ => None, - } -} diff --git a/crates/libs/bindgen/src/structs.rs b/crates/libs/bindgen/src/structs.rs index 61fd2c0272..a6ae49ef6b 100644 --- a/crates/libs/bindgen/src/structs.rs +++ b/crates/libs/bindgen/src/structs.rs @@ -5,12 +5,6 @@ pub fn gen(gen: &Gen, def: TypeDef) -> TokenStream { return quote! {}; } - if !gen.sys { - if let Some(replacement) = replacements::gen(gen.reader.type_def_type_name(def)) { - return replacement; - } - } - if gen.reader.type_def_is_handle(def) { return handles::gen(gen, def); } diff --git a/crates/libs/metadata/src/reader/mod.rs b/crates/libs/metadata/src/reader/mod.rs index c0c573f538..6f44d557b0 100644 --- a/crates/libs/metadata/src/reader/mod.rs +++ b/crates/libs/metadata/src/reader/mod.rs @@ -791,13 +791,7 @@ impl<'a> Reader<'a> { } pub fn type_def_is_blittable(&self, row: TypeDef) -> bool { match self.type_def_kind(row) { - TypeKind::Struct => { - if self.type_def_type_name(row) == TypeName::BSTR { - false - } else { - self.type_def_fields(row).all(|field| self.field_is_blittable(field, row)) - } - } + TypeKind::Struct => self.type_def_fields(row).all(|field| self.field_is_blittable(field, row)), TypeKind::Enum => true, TypeKind::Delegate => !self.type_def_flags(row).winrt(), _ => false, @@ -860,14 +854,14 @@ impl<'a> Reader<'a> { } pub fn type_def_is_trivially_convertible(&self, row: TypeDef) -> bool { match self.type_def_kind(row) { - TypeKind::Struct => self.type_def_is_handle(row) && self.type_def_type_name(row) != TypeName::BSTR, + TypeKind::Struct => self.type_def_is_handle(row), _ => false, } } pub fn type_def_is_primitive(&self, row: TypeDef) -> bool { match self.type_def_kind(row) { TypeKind::Enum => true, - TypeKind::Struct => self.type_def_is_handle(row) && self.type_def_type_name(row) != TypeName::BSTR, + TypeKind::Struct => self.type_def_is_handle(row), _ => false, } } @@ -1429,7 +1423,7 @@ impl<'a> Reader<'a> { pub fn type_is_blittable(&self, ty: &Type) -> bool { match ty { Type::TypeDef((row, _)) => self.type_def_is_blittable(*row), - Type::String | Type::IInspectable | Type::IUnknown | Type::GenericParam(_) => false, + Type::String | Type::BSTR | Type::IInspectable | Type::IUnknown | Type::GenericParam(_) => false, Type::Win32Array((kind, _)) => self.type_is_blittable(kind), Type::WinrtArray(kind) => self.type_is_blittable(kind), _ => true, @@ -1648,4 +1642,4 @@ impl<'a> Reader<'a> { // TODO: exclude code gen for all types that are in REMAP_TYPES const REMAP_TYPES: [(TypeName, TypeName); 1] = [(TypeName::D2D_MATRIX_3X2_F, TypeName::Matrix3x2)]; -pub const CORE_TYPES: [(TypeName, Type); 11] = [(TypeName::GUID, Type::GUID), (TypeName::IUnknown, Type::IUnknown), (TypeName::HResult, Type::HRESULT), (TypeName::HRESULT, Type::HRESULT), (TypeName::HSTRING, Type::String), (TypeName::IInspectable, Type::IInspectable), (TypeName::LARGE_INTEGER, Type::I64), (TypeName::ULARGE_INTEGER, Type::U64), (TypeName::PSTR, Type::PSTR), (TypeName::PWSTR, Type::PWSTR), (TypeName::Type, Type::TypeName)]; +pub const CORE_TYPES: [(TypeName, Type); 12] = [(TypeName::GUID, Type::GUID), (TypeName::IUnknown, Type::IUnknown), (TypeName::HResult, Type::HRESULT), (TypeName::HRESULT, Type::HRESULT), (TypeName::HSTRING, Type::String), (TypeName::BSTR, Type::BSTR), (TypeName::IInspectable, Type::IInspectable), (TypeName::LARGE_INTEGER, Type::I64), (TypeName::ULARGE_INTEGER, Type::U64), (TypeName::PSTR, Type::PSTR), (TypeName::PWSTR, Type::PWSTR), (TypeName::Type, Type::TypeName)]; diff --git a/crates/libs/metadata/src/reader/type.rs b/crates/libs/metadata/src/reader/type.rs index da68359807..4304395007 100644 --- a/crates/libs/metadata/src/reader/type.rs +++ b/crates/libs/metadata/src/reader/type.rs @@ -26,6 +26,7 @@ pub enum Type { PWSTR, PCSTR, PCWSTR, + BSTR, TypeName, GenericParam(GenericParam), TypeDef((TypeDef, Vec)), diff --git a/crates/libs/sys/src/Windows/Win32/Data/Xml/MsXml/mod.rs b/crates/libs/sys/src/Windows/Win32/Data/Xml/MsXml/mod.rs index 7979ae3c09..dce8bc6e53 100644 --- a/crates/libs/sys/src/Windows/Win32/Data/Xml/MsXml/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Data/Xml/MsXml/mod.rs @@ -1636,21 +1636,18 @@ impl ::core::clone::Clone for XHR_COOKIE { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`*"] pub struct XML_ERROR { pub _nLine: u32, - pub _pchBuf: super::super::super::Foundation::BSTR, + pub _pchBuf: ::windows_sys::core::BSTR, pub _cchBuf: u32, pub _ich: u32, - pub _pszFound: super::super::super::Foundation::BSTR, - pub _pszExpected: super::super::super::Foundation::BSTR, + pub _pszFound: ::windows_sys::core::BSTR, + pub _pszExpected: ::windows_sys::core::BSTR, pub _reserved1: u32, pub _reserved2: u32, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for XML_ERROR {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for XML_ERROR { fn clone(&self) -> Self { *self diff --git a/crates/libs/sys/src/Windows/Win32/Devices/ImageAcquisition/mod.rs b/crates/libs/sys/src/Windows/Win32/Devices/ImageAcquisition/mod.rs index e64e459be4..35b4b30dea 100644 --- a/crates/libs/sys/src/Windows/Win32/Devices/ImageAcquisition/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Devices/ImageAcquisition/mod.rs @@ -2454,10 +2454,10 @@ pub struct DEVICEDIALOGDATA2 { pub pIWiaItemRoot: IWiaItem2, pub dwFlags: u32, pub hwndParent: super::super::Foundation::HWND, - pub bstrFolderName: super::super::Foundation::BSTR, - pub bstrFilename: super::super::Foundation::BSTR, + pub bstrFolderName: ::windows_sys::core::BSTR, + pub bstrFilename: ::windows_sys::core::BSTR, pub lNumFiles: i32, - pub pbstrFilePaths: *mut super::super::Foundation::BSTR, + pub pbstrFilePaths: *mut ::windows_sys::core::BSTR, pub pWiaItem: IWiaItem2, } #[cfg(feature = "Win32_Foundation")] @@ -2647,7 +2647,7 @@ impl ::core::clone::Clone for WIAS_CHANGED_VALUE_INFO { pub union WIAS_CHANGED_VALUE_INFO_0 { pub lVal: i32, pub fltVal: f32, - pub bstrVal: super::super::Foundation::BSTR, + pub bstrVal: ::windows_sys::core::BSTR, pub guidVal: ::windows_sys::core::GUID, } #[cfg(feature = "Win32_Foundation")] @@ -2664,7 +2664,7 @@ impl ::core::clone::Clone for WIAS_CHANGED_VALUE_INFO_0 { pub union WIAS_CHANGED_VALUE_INFO_1 { pub lVal: i32, pub fltVal: f32, - pub bstrVal: super::super::Foundation::BSTR, + pub bstrVal: ::windows_sys::core::BSTR, pub guidVal: ::windows_sys::core::GUID, } #[cfg(feature = "Win32_Foundation")] @@ -2791,19 +2791,16 @@ impl ::core::clone::Clone for WIA_DATA_TRANSFER_INFO { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`*"] pub struct WIA_DEV_CAP { pub guid: ::windows_sys::core::GUID, pub ulFlags: u32, - pub bstrName: super::super::Foundation::BSTR, - pub bstrDescription: super::super::Foundation::BSTR, - pub bstrIcon: super::super::Foundation::BSTR, - pub bstrCommandline: super::super::Foundation::BSTR, + pub bstrName: ::windows_sys::core::BSTR, + pub bstrDescription: ::windows_sys::core::BSTR, + pub bstrIcon: ::windows_sys::core::BSTR, + pub bstrCommandline: ::windows_sys::core::BSTR, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for WIA_DEV_CAP {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for WIA_DEV_CAP { fn clone(&self) -> Self { *self @@ -2825,19 +2822,16 @@ impl ::core::clone::Clone for WIA_DEV_CAP_DRV { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`*"] pub struct WIA_DITHER_PATTERN_DATA { pub lSize: i32, - pub bstrPatternName: super::super::Foundation::BSTR, + pub bstrPatternName: ::windows_sys::core::BSTR, pub lPatternWidth: i32, pub lPatternLength: i32, pub cbPattern: i32, pub pbPattern: *mut u8, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for WIA_DITHER_PATTERN_DATA {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for WIA_DITHER_PATTERN_DATA { fn clone(&self) -> Self { *self @@ -2944,24 +2938,24 @@ impl ::core::clone::Clone for WIA_PROPERTY_CONTEXT { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_System_Com\"`*"] +#[cfg(feature = "Win32_System_Com")] pub struct WIA_PROPERTY_INFO { pub lAccessFlags: u32, pub vt: super::super::System::Com::VARENUM, pub ValidVal: WIA_PROPERTY_INFO_0, } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::marker::Copy for WIA_PROPERTY_INFO {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::clone::Clone for WIA_PROPERTY_INFO { fn clone(&self) -> Self { *self } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_System_Com\"`*"] +#[cfg(feature = "Win32_System_Com")] pub union WIA_PROPERTY_INFO_0 { pub Range: WIA_PROPERTY_INFO_0_7, pub RangeFloat: WIA_PROPERTY_INFO_0_6, @@ -2972,136 +2966,136 @@ pub union WIA_PROPERTY_INFO_0 { pub Flag: WIA_PROPERTY_INFO_0_0, pub None: WIA_PROPERTY_INFO_0_5, } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::marker::Copy for WIA_PROPERTY_INFO_0 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::clone::Clone for WIA_PROPERTY_INFO_0 { fn clone(&self) -> Self { *self } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_System_Com\"`*"] +#[cfg(feature = "Win32_System_Com")] pub struct WIA_PROPERTY_INFO_0_0 { pub Nom: i32, pub ValidBits: i32, } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::marker::Copy for WIA_PROPERTY_INFO_0_0 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::clone::Clone for WIA_PROPERTY_INFO_0_0 { fn clone(&self) -> Self { *self } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_System_Com\"`*"] +#[cfg(feature = "Win32_System_Com")] pub struct WIA_PROPERTY_INFO_0_1 { pub cNumList: i32, - pub Nom: super::super::Foundation::BSTR, - pub pList: *mut super::super::Foundation::BSTR, + pub Nom: ::windows_sys::core::BSTR, + pub pList: *mut ::windows_sys::core::BSTR, } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::marker::Copy for WIA_PROPERTY_INFO_0_1 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::clone::Clone for WIA_PROPERTY_INFO_0_1 { fn clone(&self) -> Self { *self } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_System_Com\"`*"] +#[cfg(feature = "Win32_System_Com")] pub struct WIA_PROPERTY_INFO_0_2 { pub cNumList: i32, pub Nom: f64, pub pList: *mut u8, } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::marker::Copy for WIA_PROPERTY_INFO_0_2 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::clone::Clone for WIA_PROPERTY_INFO_0_2 { fn clone(&self) -> Self { *self } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_System_Com\"`*"] +#[cfg(feature = "Win32_System_Com")] pub struct WIA_PROPERTY_INFO_0_3 { pub cNumList: i32, pub Nom: ::windows_sys::core::GUID, pub pList: *mut ::windows_sys::core::GUID, } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::marker::Copy for WIA_PROPERTY_INFO_0_3 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::clone::Clone for WIA_PROPERTY_INFO_0_3 { fn clone(&self) -> Self { *self } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_System_Com\"`*"] +#[cfg(feature = "Win32_System_Com")] pub struct WIA_PROPERTY_INFO_0_4 { pub cNumList: i32, pub Nom: i32, pub pList: *mut u8, } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::marker::Copy for WIA_PROPERTY_INFO_0_4 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::clone::Clone for WIA_PROPERTY_INFO_0_4 { fn clone(&self) -> Self { *self } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_System_Com\"`*"] +#[cfg(feature = "Win32_System_Com")] pub struct WIA_PROPERTY_INFO_0_5 { pub Dummy: i32, } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::marker::Copy for WIA_PROPERTY_INFO_0_5 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::clone::Clone for WIA_PROPERTY_INFO_0_5 { fn clone(&self) -> Self { *self } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_System_Com\"`*"] +#[cfg(feature = "Win32_System_Com")] pub struct WIA_PROPERTY_INFO_0_6 { pub Min: f64, pub Nom: f64, pub Max: f64, pub Inc: f64, } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::marker::Copy for WIA_PROPERTY_INFO_0_6 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::clone::Clone for WIA_PROPERTY_INFO_0_6 { fn clone(&self) -> Self { *self } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_System_Com\"`*"] +#[cfg(feature = "Win32_System_Com")] pub struct WIA_PROPERTY_INFO_0_7 { pub Min: i32, pub Nom: i32, pub Max: i32, pub Inc: i32, } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::marker::Copy for WIA_PROPERTY_INFO_0_7 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::clone::Clone for WIA_PROPERTY_INFO_0_7 { fn clone(&self) -> Self { *self diff --git a/crates/libs/sys/src/Windows/Win32/Devices/PortableDevices/mod.rs b/crates/libs/sys/src/Windows/Win32/Devices/PortableDevices/mod.rs index 60960d82fb..011282897b 100644 --- a/crates/libs/sys/src/Windows/Win32/Devices/PortableDevices/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Devices/PortableDevices/mod.rs @@ -1,8 +1,7 @@ #[cfg_attr(windows, link(name = "windows"))] extern "system" { - #[doc = "*Required features: `\"Win32_Devices_PortableDevices\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn DMProcessConfigXMLFiltered(pszxmlin: ::windows_sys::core::PCWSTR, rgszallowedcspnodes: *const ::windows_sys::core::PWSTR, dwnumallowedcspnodes: u32, pbstrxmlout: *mut super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_Devices_PortableDevices\"`*"] + pub fn DMProcessConfigXMLFiltered(pszxmlin: ::windows_sys::core::PCWSTR, rgszallowedcspnodes: *const ::windows_sys::core::PWSTR, dwnumallowedcspnodes: u32, pbstrxmlout: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; } pub type IConnectionRequestCallback = *mut ::core::ffi::c_void; pub type IEnumPortableDeviceConnectors = *mut ::core::ffi::c_void; diff --git a/crates/libs/sys/src/Windows/Win32/Foundation/mod.rs b/crates/libs/sys/src/Windows/Win32/Foundation/mod.rs index 586ac67720..03e0f8bdd0 100644 --- a/crates/libs/sys/src/Windows/Win32/Foundation/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Foundation/mod.rs @@ -19,25 +19,25 @@ extern "system" { #[doc = "*Required features: `\"Win32_Foundation\"`*"] pub fn SetLastErrorEx(dwerrcode: WIN32_ERROR, dwtype: u32); #[doc = "*Required features: `\"Win32_Foundation\"`*"] - pub fn SysAddRefString(bstrstring: BSTR) -> ::windows_sys::core::HRESULT; + pub fn SysAddRefString(bstrstring: ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_Foundation\"`*"] - pub fn SysAllocString(psz: ::windows_sys::core::PCWSTR) -> BSTR; + pub fn SysAllocString(psz: ::windows_sys::core::PCWSTR) -> ::windows_sys::core::BSTR; #[doc = "*Required features: `\"Win32_Foundation\"`*"] - pub fn SysAllocStringByteLen(psz: ::windows_sys::core::PCSTR, len: u32) -> BSTR; + pub fn SysAllocStringByteLen(psz: ::windows_sys::core::PCSTR, len: u32) -> ::windows_sys::core::BSTR; #[doc = "*Required features: `\"Win32_Foundation\"`*"] - pub fn SysAllocStringLen(strin: ::windows_sys::core::PCWSTR, ui: u32) -> BSTR; + pub fn SysAllocStringLen(strin: ::windows_sys::core::PCWSTR, ui: u32) -> ::windows_sys::core::BSTR; #[doc = "*Required features: `\"Win32_Foundation\"`*"] - pub fn SysFreeString(bstrstring: BSTR); + pub fn SysFreeString(bstrstring: ::windows_sys::core::BSTR); #[doc = "*Required features: `\"Win32_Foundation\"`*"] - pub fn SysReAllocString(pbstr: *mut BSTR, psz: ::windows_sys::core::PCWSTR) -> i32; + pub fn SysReAllocString(pbstr: *mut ::windows_sys::core::BSTR, psz: ::windows_sys::core::PCWSTR) -> i32; #[doc = "*Required features: `\"Win32_Foundation\"`*"] - pub fn SysReAllocStringLen(pbstr: *mut BSTR, psz: ::windows_sys::core::PCWSTR, len: u32) -> i32; + pub fn SysReAllocStringLen(pbstr: *mut ::windows_sys::core::BSTR, psz: ::windows_sys::core::PCWSTR, len: u32) -> i32; #[doc = "*Required features: `\"Win32_Foundation\"`*"] - pub fn SysReleaseString(bstrstring: BSTR); + pub fn SysReleaseString(bstrstring: ::windows_sys::core::BSTR); #[doc = "*Required features: `\"Win32_Foundation\"`*"] - pub fn SysStringByteLen(bstr: BSTR) -> u32; + pub fn SysStringByteLen(bstr: ::windows_sys::core::BSTR) -> u32; #[doc = "*Required features: `\"Win32_Foundation\"`*"] - pub fn SysStringLen(pbstr: BSTR) -> u32; + pub fn SysStringLen(pbstr: ::windows_sys::core::BSTR) -> u32; } #[doc = "*Required features: `\"Win32_Foundation\"`*"] pub const APPMODEL_ERROR_DYNAMIC_PROPERTY_INVALID: i32 = 15705i32; @@ -19630,7 +19630,6 @@ impl ::core::clone::Clone for APP_LOCAL_DEVICE_ID { } pub type BOOL = i32; pub type BOOLEAN = u8; -pub type BSTR = *mut u16; pub type CHAR = u8; pub type COLORREF = u32; #[repr(C)] diff --git a/crates/libs/sys/src/Windows/Win32/Graphics/Printing/PrintTicket/mod.rs b/crates/libs/sys/src/Windows/Win32/Graphics/Printing/PrintTicket/mod.rs index 10017a01a0..e936afa4f6 100644 --- a/crates/libs/sys/src/Windows/Win32/Graphics/Printing/PrintTicket/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Graphics/Printing/PrintTicket/mod.rs @@ -8,19 +8,19 @@ extern "system" { pub fn PTConvertDevModeToPrintTicket(hprovider: super::super::super::Storage::Xps::HPTPROVIDER, cbdevmode: u32, pdevmode: *const super::super::Gdi::DEVMODEA, scope: EPrintTicketScope, pprintticket: super::super::super::System::Com::IStream) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_Graphics_Printing_PrintTicket\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_Storage_Xps\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_Storage_Xps", feature = "Win32_System_Com"))] - pub fn PTConvertPrintTicketToDevMode(hprovider: super::super::super::Storage::Xps::HPTPROVIDER, pprintticket: super::super::super::System::Com::IStream, basedevmodetype: EDefaultDevmodeType, scope: EPrintTicketScope, pcbdevmode: *mut u32, ppdevmode: *mut *mut super::super::Gdi::DEVMODEA, pbstrerrormessage: *mut super::super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_Graphics_Printing_PrintTicket\"`, `\"Win32_Foundation\"`, `\"Win32_Storage_Xps\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Storage_Xps", feature = "Win32_System_Com"))] - pub fn PTGetPrintCapabilities(hprovider: super::super::super::Storage::Xps::HPTPROVIDER, pprintticket: super::super::super::System::Com::IStream, pcapabilities: super::super::super::System::Com::IStream, pbstrerrormessage: *mut super::super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_Graphics_Printing_PrintTicket\"`, `\"Win32_Foundation\"`, `\"Win32_Storage_Xps\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Storage_Xps", feature = "Win32_System_Com"))] - pub fn PTGetPrintDeviceCapabilities(hprovider: super::super::super::Storage::Xps::HPTPROVIDER, pprintticket: super::super::super::System::Com::IStream, pdevicecapabilities: super::super::super::System::Com::IStream, pbstrerrormessage: *mut super::super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_Graphics_Printing_PrintTicket\"`, `\"Win32_Foundation\"`, `\"Win32_Storage_Xps\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Storage_Xps", feature = "Win32_System_Com"))] - pub fn PTGetPrintDeviceResources(hprovider: super::super::super::Storage::Xps::HPTPROVIDER, pszlocalename: ::windows_sys::core::PCWSTR, pprintticket: super::super::super::System::Com::IStream, pdeviceresources: super::super::super::System::Com::IStream, pbstrerrormessage: *mut super::super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_Graphics_Printing_PrintTicket\"`, `\"Win32_Foundation\"`, `\"Win32_Storage_Xps\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Storage_Xps", feature = "Win32_System_Com"))] - pub fn PTMergeAndValidatePrintTicket(hprovider: super::super::super::Storage::Xps::HPTPROVIDER, pbaseticket: super::super::super::System::Com::IStream, pdeltaticket: super::super::super::System::Com::IStream, scope: EPrintTicketScope, presultticket: super::super::super::System::Com::IStream, pbstrerrormessage: *mut super::super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; + pub fn PTConvertPrintTicketToDevMode(hprovider: super::super::super::Storage::Xps::HPTPROVIDER, pprintticket: super::super::super::System::Com::IStream, basedevmodetype: EDefaultDevmodeType, scope: EPrintTicketScope, pcbdevmode: *mut u32, ppdevmode: *mut *mut super::super::Gdi::DEVMODEA, pbstrerrormessage: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_Graphics_Printing_PrintTicket\"`, `\"Win32_Storage_Xps\"`, `\"Win32_System_Com\"`*"] + #[cfg(all(feature = "Win32_Storage_Xps", feature = "Win32_System_Com"))] + pub fn PTGetPrintCapabilities(hprovider: super::super::super::Storage::Xps::HPTPROVIDER, pprintticket: super::super::super::System::Com::IStream, pcapabilities: super::super::super::System::Com::IStream, pbstrerrormessage: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_Graphics_Printing_PrintTicket\"`, `\"Win32_Storage_Xps\"`, `\"Win32_System_Com\"`*"] + #[cfg(all(feature = "Win32_Storage_Xps", feature = "Win32_System_Com"))] + pub fn PTGetPrintDeviceCapabilities(hprovider: super::super::super::Storage::Xps::HPTPROVIDER, pprintticket: super::super::super::System::Com::IStream, pdevicecapabilities: super::super::super::System::Com::IStream, pbstrerrormessage: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_Graphics_Printing_PrintTicket\"`, `\"Win32_Storage_Xps\"`, `\"Win32_System_Com\"`*"] + #[cfg(all(feature = "Win32_Storage_Xps", feature = "Win32_System_Com"))] + pub fn PTGetPrintDeviceResources(hprovider: super::super::super::Storage::Xps::HPTPROVIDER, pszlocalename: ::windows_sys::core::PCWSTR, pprintticket: super::super::super::System::Com::IStream, pdeviceresources: super::super::super::System::Com::IStream, pbstrerrormessage: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_Graphics_Printing_PrintTicket\"`, `\"Win32_Storage_Xps\"`, `\"Win32_System_Com\"`*"] + #[cfg(all(feature = "Win32_Storage_Xps", feature = "Win32_System_Com"))] + pub fn PTMergeAndValidatePrintTicket(hprovider: super::super::super::Storage::Xps::HPTPROVIDER, pbaseticket: super::super::super::System::Com::IStream, pdeltaticket: super::super::super::System::Com::IStream, scope: EPrintTicketScope, presultticket: super::super::super::System::Com::IStream, pbstrerrormessage: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_Graphics_Printing_PrintTicket\"`, `\"Win32_Storage_Xps\"`*"] #[cfg(feature = "Win32_Storage_Xps")] pub fn PTOpenProvider(pszprintername: ::windows_sys::core::PCWSTR, dwversion: u32, phprovider: *mut super::super::super::Storage::Xps::HPTPROVIDER) -> ::windows_sys::core::HRESULT; diff --git a/crates/libs/sys/src/Windows/Win32/Graphics/Printing/mod.rs b/crates/libs/sys/src/Windows/Win32/Graphics/Printing/mod.rs index 15521fad0b..2df9c2de47 100644 --- a/crates/libs/sys/src/Windows/Win32/Graphics/Printing/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Graphics/Printing/mod.rs @@ -5249,24 +5249,21 @@ impl ::core::clone::Clone for INVOC { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] pub struct ImgErrorInfo { - pub description: super::super::Foundation::BSTR, + pub description: ::windows_sys::core::BSTR, pub guid: ::windows_sys::core::GUID, pub helpContext: u32, - pub helpFile: super::super::Foundation::BSTR, - pub source: super::super::Foundation::BSTR, - pub devDescription: super::super::Foundation::BSTR, + pub helpFile: ::windows_sys::core::BSTR, + pub source: ::windows_sys::core::BSTR, + pub devDescription: ::windows_sys::core::BSTR, pub errorID: ::windows_sys::core::GUID, pub cUserParameters: u32, - pub aUserParameters: *mut super::super::Foundation::BSTR, - pub userFallback: super::super::Foundation::BSTR, + pub aUserParameters: *mut ::windows_sys::core::BSTR, + pub userFallback: ::windows_sys::core::BSTR, pub exceptionID: u32, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for ImgErrorInfo {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for ImgErrorInfo { fn clone(&self) -> Self { *self diff --git a/crates/libs/sys/src/Windows/Win32/Media/DirectShow/mod.rs b/crates/libs/sys/src/Windows/Win32/Media/DirectShow/mod.rs index 9c18ba8240..dff668a3df 100644 --- a/crates/libs/sys/src/Windows/Win32/Media/DirectShow/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Media/DirectShow/mod.rs @@ -11915,17 +11915,14 @@ impl ::core::clone::Clone for STREAM_ID_MAP { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Media_DirectShow\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] pub struct SmartCardApplication { pub ApplicationType: ApplicationTypeType, pub ApplicationVersion: u16, - pub pbstrApplicationName: super::super::Foundation::BSTR, - pub pbstrApplicationURL: super::super::Foundation::BSTR, + pub pbstrApplicationName: ::windows_sys::core::BSTR, + pub pbstrApplicationURL: ::windows_sys::core::BSTR, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for SmartCardApplication {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for SmartCardApplication { fn clone(&self) -> Self { *self diff --git a/crates/libs/sys/src/Windows/Win32/Media/MediaFoundation/mod.rs b/crates/libs/sys/src/Windows/Win32/Media/MediaFoundation/mod.rs index 2f77d68d1a..c82902ca58 100644 --- a/crates/libs/sys/src/Windows/Win32/Media/MediaFoundation/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Media/MediaFoundation/mod.rs @@ -11389,18 +11389,15 @@ impl ::core::clone::Clone for D3DOVERLAYCAPS { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`*"] pub struct DEVICE_INFO { - pub pFriendlyDeviceName: super::super::Foundation::BSTR, - pub pUniqueDeviceName: super::super::Foundation::BSTR, - pub pManufacturerName: super::super::Foundation::BSTR, - pub pModelName: super::super::Foundation::BSTR, - pub pIconURL: super::super::Foundation::BSTR, + pub pFriendlyDeviceName: ::windows_sys::core::BSTR, + pub pUniqueDeviceName: ::windows_sys::core::BSTR, + pub pManufacturerName: ::windows_sys::core::BSTR, + pub pModelName: ::windows_sys::core::BSTR, + pub pIconURL: ::windows_sys::core::BSTR, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for DEVICE_INFO {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for DEVICE_INFO { fn clone(&self) -> Self { *self diff --git a/crates/libs/sys/src/Windows/Win32/Media/MediaPlayer/mod.rs b/crates/libs/sys/src/Windows/Win32/Media/MediaPlayer/mod.rs index 478e46714a..af0b53175b 100644 --- a/crates/libs/sys/src/Windows/Win32/Media/MediaPlayer/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Media/MediaPlayer/mod.rs @@ -1884,16 +1884,13 @@ impl ::core::clone::Clone for TimedLevel { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Media_MediaPlayer\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_Media_MediaPlayer\"`*"] pub struct WMPContextMenuInfo { pub dwID: u32, - pub bstrMenuText: super::super::Foundation::BSTR, - pub bstrHelpText: super::super::Foundation::BSTR, + pub bstrMenuText: ::windows_sys::core::BSTR, + pub bstrHelpText: ::windows_sys::core::BSTR, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for WMPContextMenuInfo {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for WMPContextMenuInfo { fn clone(&self) -> Self { *self diff --git a/crates/libs/sys/src/Windows/Win32/NetworkManagement/MobileBroadband/mod.rs b/crates/libs/sys/src/Windows/Win32/NetworkManagement/MobileBroadband/mod.rs index 4a10b0190d..235965deb9 100644 --- a/crates/libs/sys/src/Windows/Win32/NetworkManagement/MobileBroadband/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/NetworkManagement/MobileBroadband/mod.rs @@ -489,62 +489,53 @@ pub const MBN_CDMA_SHORT_MSG_SIZE_UNKNOWN: WWAEXT_SMS_CONSTANTS = 0i32; #[doc = "*Required features: `\"Win32_NetworkManagement_MobileBroadband\"`*"] pub const MBN_CDMA_SHORT_MSG_SIZE_MAX: WWAEXT_SMS_CONSTANTS = 160i32; #[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_MobileBroadband\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_NetworkManagement_MobileBroadband\"`*"] pub struct MBN_CONTEXT { pub contextID: u32, pub contextType: MBN_CONTEXT_TYPE, - pub accessString: super::super::Foundation::BSTR, - pub userName: super::super::Foundation::BSTR, - pub password: super::super::Foundation::BSTR, + pub accessString: ::windows_sys::core::BSTR, + pub userName: ::windows_sys::core::BSTR, + pub password: ::windows_sys::core::BSTR, pub compression: MBN_COMPRESSION, pub authType: MBN_AUTH_PROTOCOL, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for MBN_CONTEXT {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for MBN_CONTEXT { fn clone(&self) -> Self { *self } } #[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_MobileBroadband\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_NetworkManagement_MobileBroadband\"`*"] pub struct MBN_DEVICE_SERVICE { - pub deviceServiceID: super::super::Foundation::BSTR, + pub deviceServiceID: ::windows_sys::core::BSTR, pub dataWriteSupported: i16, pub dataReadSupported: i16, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for MBN_DEVICE_SERVICE {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for MBN_DEVICE_SERVICE { fn clone(&self) -> Self { *self } } #[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_MobileBroadband\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_NetworkManagement_MobileBroadband\"`*"] pub struct MBN_INTERFACE_CAPS { pub cellularClass: MBN_CELLULAR_CLASS, pub voiceClass: MBN_VOICE_CLASS, pub dataClass: u32, - pub customDataClass: super::super::Foundation::BSTR, + pub customDataClass: ::windows_sys::core::BSTR, pub gsmBandClass: u32, pub cdmaBandClass: u32, - pub customBandClass: super::super::Foundation::BSTR, + pub customBandClass: ::windows_sys::core::BSTR, pub smsCaps: u32, pub controlCaps: u32, - pub deviceID: super::super::Foundation::BSTR, - pub manufacturer: super::super::Foundation::BSTR, - pub model: super::super::Foundation::BSTR, - pub firmwareInfo: super::super::Foundation::BSTR, + pub deviceID: ::windows_sys::core::BSTR, + pub manufacturer: ::windows_sys::core::BSTR, + pub model: ::windows_sys::core::BSTR, + pub firmwareInfo: ::windows_sys::core::BSTR, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for MBN_INTERFACE_CAPS {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for MBN_INTERFACE_CAPS { fn clone(&self) -> Self { *self @@ -564,34 +555,28 @@ impl ::core::clone::Clone for MBN_PIN_INFO { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_MobileBroadband\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_NetworkManagement_MobileBroadband\"`*"] pub struct MBN_PROVIDER { - pub providerID: super::super::Foundation::BSTR, + pub providerID: ::windows_sys::core::BSTR, pub providerState: u32, - pub providerName: super::super::Foundation::BSTR, + pub providerName: ::windows_sys::core::BSTR, pub dataClass: u32, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for MBN_PROVIDER {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for MBN_PROVIDER { fn clone(&self) -> Self { *self } } #[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_MobileBroadband\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_NetworkManagement_MobileBroadband\"`*"] pub struct MBN_PROVIDER2 { pub provider: MBN_PROVIDER, pub cellularClass: MBN_CELLULAR_CLASS, pub signalStrength: u32, pub signalError: u32, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for MBN_PROVIDER2 {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for MBN_PROVIDER2 { fn clone(&self) -> Self { *self diff --git a/crates/libs/sys/src/Windows/Win32/Networking/BackgroundIntelligentTransferService/mod.rs b/crates/libs/sys/src/Windows/Win32/Networking/BackgroundIntelligentTransferService/mod.rs index a5dd86f18b..e9ca8ce88a 100644 --- a/crates/libs/sys/src/Windows/Win32/Networking/BackgroundIntelligentTransferService/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Networking/BackgroundIntelligentTransferService/mod.rs @@ -785,16 +785,13 @@ impl ::core::clone::Clone for BITS_JOB_PROPERTY_VALUE { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_BackgroundIntelligentTransferService\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_Networking_BackgroundIntelligentTransferService\"`*"] pub struct FILESETINFO { - pub bstrRemoteFile: super::super::Foundation::BSTR, - pub bstrLocalFile: super::super::Foundation::BSTR, + pub bstrRemoteFile: ::windows_sys::core::BSTR, + pub bstrLocalFile: ::windows_sys::core::BSTR, pub dwSizeHint: u32, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FILESETINFO {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FILESETINFO { fn clone(&self) -> Self { *self diff --git a/crates/libs/sys/src/Windows/Win32/Networking/WinInet/mod.rs b/crates/libs/sys/src/Windows/Win32/Networking/WinInet/mod.rs index 9c212863b4..8f7c026cd9 100644 --- a/crates/libs/sys/src/Windows/Win32/Networking/WinInet/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Networking/WinInet/mod.rs @@ -710,7 +710,7 @@ extern "system" { pub fn PrivacySetZonePreferenceW(dwzone: u32, dwtype: u32, dwtemplate: u32, pszpreference: ::windows_sys::core::PCWSTR) -> u32; #[doc = "*Required features: `\"Win32_Networking_WinInet\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn ReadGuidsForConnectedNetworks(pcnetworks: *mut u32, pppwsznetworkguids: *mut *mut ::windows_sys::core::PWSTR, pppbstrnetworknames: *mut *mut super::super::Foundation::BSTR, pppwszgwmacs: *mut *mut ::windows_sys::core::PWSTR, pcgatewaymacs: *mut u32, pdwflags: *mut u32) -> super::super::Foundation::BOOL; + pub fn ReadGuidsForConnectedNetworks(pcnetworks: *mut u32, pppwsznetworkguids: *mut *mut ::windows_sys::core::PWSTR, pppbstrnetworknames: *mut *mut ::windows_sys::core::BSTR, pppwszgwmacs: *mut *mut ::windows_sys::core::PWSTR, pcgatewaymacs: *mut u32, pdwflags: *mut u32) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_Networking_WinInet\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn ReadUrlCacheEntryStream(hurlcachestream: super::super::Foundation::HANDLE, dwlocation: u32, lpbuffer: *mut ::core::ffi::c_void, lpdwlen: *mut u32, reserved: u32) -> super::super::Foundation::BOOL; diff --git a/crates/libs/sys/src/Windows/Win32/Storage/DataDeduplication/mod.rs b/crates/libs/sys/src/Windows/Win32/Storage/DataDeduplication/mod.rs index b71e220fc3..7bc4738c54 100644 --- a/crates/libs/sys/src/Windows/Win32/Storage/DataDeduplication/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Storage/DataDeduplication/mod.rs @@ -153,17 +153,14 @@ impl ::core::clone::Clone for DedupHash { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Storage_DataDeduplication\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_Storage_DataDeduplication\"`*"] pub struct DedupStream { - pub Path: super::super::Foundation::BSTR, + pub Path: ::windows_sys::core::BSTR, pub Offset: u64, pub Length: u64, pub ChunkCount: u32, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for DedupStream {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for DedupStream { fn clone(&self) -> Self { *self diff --git a/crates/libs/sys/src/Windows/Win32/System/ApplicationInstallationAndServicing/mod.rs b/crates/libs/sys/src/Windows/Win32/System/ApplicationInstallationAndServicing/mod.rs index 1163e80fd4..6fbe0dac51 100644 --- a/crates/libs/sys/src/Windows/Win32/System/ApplicationInstallationAndServicing/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/ApplicationInstallationAndServicing/mod.rs @@ -4006,53 +4006,43 @@ impl ::core::clone::Clone for PMSIHANDLE { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] pub struct PM_BSATASKID { pub ProductID: ::windows_sys::core::GUID, - pub TaskID: super::super::Foundation::BSTR, + pub TaskID: ::windows_sys::core::BSTR, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for PM_BSATASKID {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for PM_BSATASKID { fn clone(&self) -> Self { *self } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] pub struct PM_BWTASKID { pub ProductID: ::windows_sys::core::GUID, - pub TaskID: super::super::Foundation::BSTR, + pub TaskID: ::windows_sys::core::BSTR, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for PM_BWTASKID {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for PM_BWTASKID { fn clone(&self) -> Self { *self } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] pub struct PM_ENUM_FILTER { pub FilterType: i32, pub FilterParameter: PM_ENUM_FILTER_0, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for PM_ENUM_FILTER {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for PM_ENUM_FILTER { fn clone(&self) -> Self { *self } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] pub union PM_ENUM_FILTER_0 { pub Dummy: i32, pub Genre: PM_APP_GENRE, @@ -4066,30 +4056,25 @@ pub union PM_ENUM_FILTER_0 { pub BSATask: PM_BSATASKID, pub BSAProductID: ::windows_sys::core::GUID, pub BWTask: PM_BWTASKID, - pub ProtocolName: super::super::Foundation::BSTR, - pub FileType: super::super::Foundation::BSTR, - pub ContentType: super::super::Foundation::BSTR, + pub ProtocolName: ::windows_sys::core::BSTR, + pub FileType: ::windows_sys::core::BSTR, + pub ContentType: ::windows_sys::core::BSTR, pub AppSupportedFileExtPID: ::windows_sys::core::GUID, - pub ShareTargetFileType: super::super::Foundation::BSTR, + pub ShareTargetFileType: ::windows_sys::core::BSTR, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for PM_ENUM_FILTER_0 {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for PM_ENUM_FILTER_0 { fn clone(&self) -> Self { *self } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] pub struct PM_EXTENSIONCONSUMER { pub ConsumerPID: ::windows_sys::core::GUID, - pub ExtensionID: super::super::Foundation::BSTR, + pub ExtensionID: ::windows_sys::core::BSTR, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for PM_EXTENSIONCONSUMER {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for PM_EXTENSIONCONSUMER { fn clone(&self) -> Self { *self @@ -4100,14 +4085,14 @@ impl ::core::clone::Clone for PM_EXTENSIONCONSUMER { #[cfg(feature = "Win32_Foundation")] pub struct PM_INSTALLINFO { pub ProductID: ::windows_sys::core::GUID, - pub PackagePath: super::super::Foundation::BSTR, + pub PackagePath: ::windows_sys::core::BSTR, pub InstanceID: ::windows_sys::core::GUID, pub pbLicense: *mut u8, pub cbLicense: u32, pub IsUninstallDisabled: super::super::Foundation::BOOL, pub DeploymentOptions: u32, pub OfferID: ::windows_sys::core::GUID, - pub MarketplaceAppVersion: super::super::Foundation::BSTR, + pub MarketplaceAppVersion: ::windows_sys::core::BSTR, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for PM_INSTALLINFO {} @@ -4118,15 +4103,12 @@ impl ::core::clone::Clone for PM_INSTALLINFO { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] pub struct PM_INVOCATIONINFO { - pub URIBaseOrAUMID: super::super::Foundation::BSTR, - pub URIFragmentOrArgs: super::super::Foundation::BSTR, + pub URIBaseOrAUMID: ::windows_sys::core::BSTR, + pub URIFragmentOrArgs: ::windows_sys::core::BSTR, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for PM_INVOCATIONINFO {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for PM_INVOCATIONINFO { fn clone(&self) -> Self { *self @@ -4138,8 +4120,8 @@ impl ::core::clone::Clone for PM_INVOCATIONINFO { pub struct PM_STARTAPPBLOB { pub cbSize: u32, pub ProductID: ::windows_sys::core::GUID, - pub AppTitle: super::super::Foundation::BSTR, - pub IconPath: super::super::Foundation::BSTR, + pub AppTitle: ::windows_sys::core::BSTR, + pub IconPath: ::windows_sys::core::BSTR, pub IsUninstallable: super::super::Foundation::BOOL, pub AppInstallType: PM_APPLICATION_INSTALL_TYPE, pub InstanceID: ::windows_sys::core::GUID, @@ -4162,7 +4144,7 @@ impl ::core::clone::Clone for PM_STARTAPPBLOB { pub struct PM_STARTTILEBLOB { pub cbSize: u32, pub ProductID: ::windows_sys::core::GUID, - pub TileID: super::super::Foundation::BSTR, + pub TileID: ::windows_sys::core::BSTR, pub TemplateType: TILE_TEMPLATE_TYPE, pub HubPosition: [u32; 32], pub HubVisibilityBitmask: u32, @@ -4183,39 +4165,33 @@ impl ::core::clone::Clone for PM_STARTTILEBLOB { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] pub struct PM_UPDATEINFO { pub ProductID: ::windows_sys::core::GUID, - pub PackagePath: super::super::Foundation::BSTR, + pub PackagePath: ::windows_sys::core::BSTR, pub InstanceID: ::windows_sys::core::GUID, pub pbLicense: *mut u8, pub cbLicense: u32, - pub MarketplaceAppVersion: super::super::Foundation::BSTR, + pub MarketplaceAppVersion: ::windows_sys::core::BSTR, pub DeploymentOptions: u32, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for PM_UPDATEINFO {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for PM_UPDATEINFO { fn clone(&self) -> Self { *self } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] pub struct PM_UPDATEINFO_LEGACY { pub ProductID: ::windows_sys::core::GUID, - pub PackagePath: super::super::Foundation::BSTR, + pub PackagePath: ::windows_sys::core::BSTR, pub InstanceID: ::windows_sys::core::GUID, pub pbLicense: *mut u8, pub cbLicense: u32, - pub MarketplaceAppVersion: super::super::Foundation::BSTR, + pub MarketplaceAppVersion: ::windows_sys::core::BSTR, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for PM_UPDATEINFO_LEGACY {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for PM_UPDATEINFO_LEGACY { fn clone(&self) -> Self { *self diff --git a/crates/libs/sys/src/Windows/Win32/System/Com/Events/mod.rs b/crates/libs/sys/src/Windows/Win32/System/Com/Events/mod.rs index 26f20cdaf5..22660daf79 100644 --- a/crates/libs/sys/src/Windows/Win32/System/Com/Events/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/Com/Events/mod.rs @@ -29,19 +29,16 @@ pub const EOC_ModifiedObject: EOC_ChangeType = 1i32; #[doc = "*Required features: `\"Win32_System_Com_Events\"`*"] pub const EOC_DeletedObject: EOC_ChangeType = 2i32; #[repr(C)] -#[doc = "*Required features: `\"Win32_System_Com_Events\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Com_Events\"`*"] pub struct COMEVENTSYSCHANGEINFO { pub cbSize: u32, pub changeType: EOC_ChangeType, - pub objectId: super::super::super::Foundation::BSTR, - pub partitionId: super::super::super::Foundation::BSTR, - pub applicationId: super::super::super::Foundation::BSTR, + pub objectId: ::windows_sys::core::BSTR, + pub partitionId: ::windows_sys::core::BSTR, + pub applicationId: ::windows_sys::core::BSTR, pub reserved: [::windows_sys::core::GUID; 10], } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for COMEVENTSYSCHANGEINFO {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for COMEVENTSYSCHANGEINFO { fn clone(&self) -> Self { *self diff --git a/crates/libs/sys/src/Windows/Win32/System/Com/Marshal/mod.rs b/crates/libs/sys/src/Windows/Win32/System/Com/Marshal/mod.rs index 2aca050d90..bcf058a504 100644 --- a/crates/libs/sys/src/Windows/Win32/System/Com/Marshal/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/Com/Marshal/mod.rs @@ -1,29 +1,21 @@ #[cfg_attr(windows, link(name = "windows"))] extern "system" { - #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn BSTR_UserFree(param0: *const u32, param1: *const super::super::super::Foundation::BSTR); - #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn BSTR_UserFree64(param0: *const u32, param1: *const super::super::super::Foundation::BSTR); - #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn BSTR_UserMarshal(param0: *const u32, param1: *mut u8, param2: *const super::super::super::Foundation::BSTR) -> *mut u8; - #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn BSTR_UserMarshal64(param0: *const u32, param1: *mut u8, param2: *const super::super::super::Foundation::BSTR) -> *mut u8; - #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn BSTR_UserSize(param0: *const u32, param1: u32, param2: *const super::super::super::Foundation::BSTR) -> u32; - #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn BSTR_UserSize64(param0: *const u32, param1: u32, param2: *const super::super::super::Foundation::BSTR) -> u32; - #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn BSTR_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut super::super::super::Foundation::BSTR) -> *mut u8; - #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn BSTR_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut super::super::super::Foundation::BSTR) -> *mut u8; + #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`*"] + pub fn BSTR_UserFree(param0: *const u32, param1: *const ::windows_sys::core::BSTR); + #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`*"] + pub fn BSTR_UserFree64(param0: *const u32, param1: *const ::windows_sys::core::BSTR); + #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`*"] + pub fn BSTR_UserMarshal(param0: *const u32, param1: *mut u8, param2: *const ::windows_sys::core::BSTR) -> *mut u8; + #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`*"] + pub fn BSTR_UserMarshal64(param0: *const u32, param1: *mut u8, param2: *const ::windows_sys::core::BSTR) -> *mut u8; + #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`*"] + pub fn BSTR_UserSize(param0: *const u32, param1: u32, param2: *const ::windows_sys::core::BSTR) -> u32; + #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`*"] + pub fn BSTR_UserSize64(param0: *const u32, param1: u32, param2: *const ::windows_sys::core::BSTR) -> u32; + #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`*"] + pub fn BSTR_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut ::windows_sys::core::BSTR) -> *mut u8; + #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`*"] + pub fn BSTR_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut ::windows_sys::core::BSTR) -> *mut u8; #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`*"] pub fn CLIPFORMAT_UserFree(param0: *const u32, param1: *const u16); #[doc = "*Required features: `\"Win32_System_Com_Marshal\"`*"] diff --git a/crates/libs/sys/src/Windows/Win32/System/Com/StructuredStorage/mod.rs b/crates/libs/sys/src/Windows/Win32/System/Com/StructuredStorage/mod.rs index 8ca677c8a8..cccbfa5980 100644 --- a/crates/libs/sys/src/Windows/Win32/System/Com/StructuredStorage/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/Com/StructuredStorage/mod.rs @@ -381,15 +381,12 @@ impl ::core::clone::Clone for CABOOL { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] pub struct CABSTR { pub cElems: u32, - pub pElems: *mut super::super::super::Foundation::BSTR, + pub pElems: *mut ::windows_sys::core::BSTR, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for CABSTR {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for CABSTR { fn clone(&self) -> Self { *self @@ -790,7 +787,7 @@ pub union PROPVARIANT_0_0_0 { pub filetime: super::super::super::Foundation::FILETIME, pub puuid: *mut ::windows_sys::core::GUID, pub pclipdata: *mut CLIPDATA, - pub bstrVal: super::super::super::Foundation::BSTR, + pub bstrVal: ::windows_sys::core::BSTR, pub bstrblobVal: BSTRBLOB, pub blob: super::BLOB, pub pszVal: ::windows_sys::core::PSTR, @@ -838,7 +835,7 @@ pub union PROPVARIANT_0_0_0 { pub pscode: *mut i32, pub pcyVal: *mut super::CY, pub pdate: *mut f64, - pub pbstrVal: *mut super::super::super::Foundation::BSTR, + pub pbstrVal: *mut ::windows_sys::core::BSTR, pub ppunkVal: *mut ::windows_sys::core::IUnknown, pub ppdispVal: *mut super::IDispatch, pub pparray: *mut *mut super::SAFEARRAY, diff --git a/crates/libs/sys/src/Windows/Win32/System/Com/mod.rs b/crates/libs/sys/src/Windows/Win32/System/Com/mod.rs index a487ef5883..5d56fddb92 100644 --- a/crates/libs/sys/src/Windows/Win32/System/Com/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/Com/mod.rs @@ -1696,22 +1696,19 @@ impl ::core::clone::Clone for ELEMDESC_0 { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_Com\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Com\"`*"] pub struct EXCEPINFO { pub wCode: u16, pub wReserved: u16, - pub bstrSource: super::super::Foundation::BSTR, - pub bstrDescription: super::super::Foundation::BSTR, - pub bstrHelpFile: super::super::Foundation::BSTR, + pub bstrSource: ::windows_sys::core::BSTR, + pub bstrDescription: ::windows_sys::core::BSTR, + pub bstrHelpFile: ::windows_sys::core::BSTR, pub dwHelpContext: u32, pub pvReserved: *mut ::core::ffi::c_void, pub pfnDeferredFillIn: LPEXCEPFINO_DEFERRED_FILLIN, pub scode: i32, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for EXCEPINFO {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for EXCEPINFO { fn clone(&self) -> Self { *self @@ -2312,7 +2309,7 @@ pub union VARIANT_0_0_0 { pub scode: i32, pub cyVal: CY, pub date: f64, - pub bstrVal: super::super::Foundation::BSTR, + pub bstrVal: ::windows_sys::core::BSTR, pub punkVal: ::windows_sys::core::IUnknown, pub pdispVal: IDispatch, pub parray: *mut SAFEARRAY, @@ -2327,7 +2324,7 @@ pub union VARIANT_0_0_0 { pub pscode: *mut i32, pub pcyVal: *mut CY, pub pdate: *mut f64, - pub pbstrVal: *mut super::super::Foundation::BSTR, + pub pbstrVal: *mut ::windows_sys::core::BSTR, pub ppunkVal: *mut ::windows_sys::core::IUnknown, pub ppdispVal: *mut IDispatch, pub pparray: *mut *mut SAFEARRAY, @@ -2495,8 +2492,7 @@ impl ::core::clone::Clone for userSTGMEDIUM_0_0 { *self } } -#[doc = "*Required features: `\"Win32_System_Com\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Com\"`*"] pub type LPEXCEPFINO_DEFERRED_FILLIN = ::core::option::Option ::windows_sys::core::HRESULT>; #[doc = "*Required features: `\"Win32_System_Com\"`*"] pub type LPFNCANUNLOADNOW = ::core::option::Option ::windows_sys::core::HRESULT>; diff --git a/crates/libs/sys/src/Windows/Win32/System/Diagnostics/Debug/mod.rs b/crates/libs/sys/src/Windows/Win32/System/Diagnostics/Debug/mod.rs index 8f61fd57b9..4142250a78 100644 --- a/crates/libs/sys/src/Windows/Win32/System/Diagnostics/Debug/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/Diagnostics/Debug/mod.rs @@ -8690,20 +8690,17 @@ impl ::core::clone::Clone for DUMP_HEADER64_0 { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct DebugPropertyInfo { pub m_dwValidFields: u32, - pub m_bstrName: super::super::super::Foundation::BSTR, - pub m_bstrType: super::super::super::Foundation::BSTR, - pub m_bstrValue: super::super::super::Foundation::BSTR, - pub m_bstrFullName: super::super::super::Foundation::BSTR, + pub m_bstrName: ::windows_sys::core::BSTR, + pub m_bstrType: ::windows_sys::core::BSTR, + pub m_bstrValue: ::windows_sys::core::BSTR, + pub m_bstrFullName: ::windows_sys::core::BSTR, pub m_dwAttrib: u32, pub m_pDebugProp: IDebugProperty, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for DebugPropertyInfo {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for DebugPropertyInfo { fn clone(&self) -> Self { *self @@ -10433,18 +10430,15 @@ impl ::core::clone::Clone for JS_NATIVE_FRAME { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct JsDebugPropertyInfo { - pub name: super::super::super::Foundation::BSTR, - pub r#type: super::super::super::Foundation::BSTR, - pub value: super::super::super::Foundation::BSTR, - pub fullName: super::super::super::Foundation::BSTR, + pub name: ::windows_sys::core::BSTR, + pub r#type: ::windows_sys::core::BSTR, + pub value: ::windows_sys::core::BSTR, + pub fullName: ::windows_sys::core::BSTR, pub attr: JS_PROPERTY_ATTRIBUTES, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for JsDebugPropertyInfo {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for JsDebugPropertyInfo { fn clone(&self) -> Self { *self @@ -12709,23 +12703,19 @@ impl ::core::clone::Clone for PROFILER_HEAP_OBJECT_0 { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct PROFILER_HEAP_OBJECT_OPTIONAL_INFO { pub infoType: PROFILER_HEAP_OBJECT_OPTIONAL_INFO_TYPE, pub Anonymous: PROFILER_HEAP_OBJECT_OPTIONAL_INFO_0, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for PROFILER_HEAP_OBJECT_OPTIONAL_INFO {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for PROFILER_HEAP_OBJECT_OPTIONAL_INFO { fn clone(&self) -> Self { *self } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub union PROFILER_HEAP_OBJECT_OPTIONAL_INFO_0 { pub prototype: usize, pub functionName: ::windows_sys::core::PCWSTR, @@ -12741,59 +12731,48 @@ pub union PROFILER_HEAP_OBJECT_OPTIONAL_INFO_0 { pub mapCollectionList: *mut PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST, pub setCollectionList: *mut PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for PROFILER_HEAP_OBJECT_OPTIONAL_INFO_0 {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for PROFILER_HEAP_OBJECT_OPTIONAL_INFO_0 { fn clone(&self) -> Self { *self } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct PROFILER_HEAP_OBJECT_RELATIONSHIP { pub relationshipId: u32, pub relationshipInfo: PROFILER_RELATIONSHIP_INFO, pub Anonymous: PROFILER_HEAP_OBJECT_RELATIONSHIP_0, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for PROFILER_HEAP_OBJECT_RELATIONSHIP {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for PROFILER_HEAP_OBJECT_RELATIONSHIP { fn clone(&self) -> Self { *self } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub union PROFILER_HEAP_OBJECT_RELATIONSHIP_0 { pub numberValue: f64, pub stringValue: ::windows_sys::core::PCWSTR, - pub bstrValue: super::super::super::Foundation::BSTR, + pub bstrValue: ::windows_sys::core::BSTR, pub objectId: usize, pub externalObjectAddress: *mut ::core::ffi::c_void, pub subString: *mut PROFILER_PROPERTY_TYPE_SUBSTRING_INFO, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for PROFILER_HEAP_OBJECT_RELATIONSHIP_0 {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for PROFILER_HEAP_OBJECT_RELATIONSHIP_0 { fn clone(&self) -> Self { *self } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST { pub count: u32, pub elements: [PROFILER_HEAP_OBJECT_RELATIONSHIP; 1], } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST { fn clone(&self) -> Self { *self diff --git a/crates/libs/sys/src/Windows/Win32/System/Iis/mod.rs b/crates/libs/sys/src/Windows/Win32/System/Iis/mod.rs index 8286d44705..5ffe7412e4 100644 --- a/crates/libs/sys/src/Windows/Win32/System/Iis/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/Iis/mod.rs @@ -1994,15 +1994,12 @@ impl ::core::clone::Clone for CERT_CONTEXT_EX { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_Iis\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Iis\"`*"] pub struct CONFIGURATION_ENTRY { - pub bstrKey: super::super::Foundation::BSTR, - pub bstrValue: super::super::Foundation::BSTR, + pub bstrKey: ::windows_sys::core::BSTR, + pub bstrValue: ::windows_sys::core::BSTR, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for CONFIGURATION_ENTRY {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for CONFIGURATION_ENTRY { fn clone(&self) -> Self { *self diff --git a/crates/libs/sys/src/Windows/Win32/System/Ole/mod.rs b/crates/libs/sys/src/Windows/Win32/System/Ole/mod.rs index f669ec9d4f..38e4c25ad6 100644 --- a/crates/libs/sys/src/Windows/Win32/System/Ole/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/Ole/mod.rs @@ -9,9 +9,9 @@ extern "cdecl" { } #[cfg_attr(windows, link(name = "windows"))] extern "system" { - #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub fn BstrFromVector(psa: *const super::Com::SAFEARRAY, pbstr: *mut super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub fn BstrFromVector(psa: *const super::Com::SAFEARRAY, pbstr: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub fn ClearCustData(pcustdata: *mut super::Com::CUSTDATA); @@ -251,9 +251,9 @@ extern "system" { #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com_StructuredStorage\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] pub fn OleSave(pps: super::Com::StructuredStorage::IPersistStorage, pstg: super::Com::StructuredStorage::IStorage, fsameasload: super::super::Foundation::BOOL) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub fn OleSavePictureFile(lpdisppicture: super::Com::IDispatch, bstrfilename: super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub fn OleSavePictureFile(lpdisppicture: super::Com::IDispatch, bstrfilename: ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] pub fn OleSaveToStream(ppstm: super::Com::IPersistStream, pstm: super::Com::IStream) -> ::windows_sys::core::HRESULT; @@ -507,57 +507,44 @@ extern "system" { pub fn VarBoolFromUI4(ulin: u32, pboolout: *mut i16) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub fn VarBoolFromUI8(i64in: u64, pboolout: *mut i16) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_Ole\"`*"] + pub fn VarBstrCat(bstrleft: ::windows_sys::core::BSTR, bstrright: ::windows_sys::core::BSTR, pbstrresult: *mut *mut u16) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_Ole\"`*"] + pub fn VarBstrCmp(bstrleft: ::windows_sys::core::BSTR, bstrright: ::windows_sys::core::BSTR, lcid: u32, dwflags: u32) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_Ole\"`*"] + pub fn VarBstrFromBool(boolin: i16, lcid: u32, dwflags: u32, pbstrout: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub fn VarBstrFromCy(cyin: super::Com::CY, lcid: u32, dwflags: u32, pbstrout: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_Ole\"`*"] + pub fn VarBstrFromDate(datein: f64, lcid: u32, dwflags: u32, pbstrout: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn VarBstrCat(bstrleft: super::super::Foundation::BSTR, bstrright: super::super::Foundation::BSTR, pbstrresult: *mut *mut u16) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn VarBstrCmp(bstrleft: super::super::Foundation::BSTR, bstrright: super::super::Foundation::BSTR, lcid: u32, dwflags: u32) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn VarBstrFromBool(boolin: i16, lcid: u32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub fn VarBstrFromCy(cyin: super::Com::CY, lcid: u32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn VarBstrFromDate(datein: f64, lcid: u32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn VarBstrFromDec(pdecin: *const super::super::Foundation::DECIMAL, lcid: u32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub fn VarBstrFromDisp(pdispin: super::Com::IDispatch, lcid: u32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn VarBstrFromI1(cin: super::super::Foundation::CHAR, lcid: u32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn VarBstrFromI2(ival: i16, lcid: u32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn VarBstrFromI4(lin: i32, lcid: u32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn VarBstrFromI8(i64in: i64, lcid: u32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn VarBstrFromR4(fltin: f32, lcid: u32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn VarBstrFromR8(dblin: f64, lcid: u32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn VarBstrFromUI1(bval: u8, lcid: u32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn VarBstrFromUI2(uiin: u16, lcid: u32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn VarBstrFromUI4(ulin: u32, lcid: u32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; + pub fn VarBstrFromDec(pdecin: *const super::super::Foundation::DECIMAL, lcid: u32, dwflags: u32, pbstrout: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub fn VarBstrFromDisp(pdispin: super::Com::IDispatch, lcid: u32, dwflags: u32, pbstrout: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn VarBstrFromUI8(ui64in: u64, lcid: u32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; + pub fn VarBstrFromI1(cin: super::super::Foundation::CHAR, lcid: u32, dwflags: u32, pbstrout: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_Ole\"`*"] + pub fn VarBstrFromI2(ival: i16, lcid: u32, dwflags: u32, pbstrout: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_Ole\"`*"] + pub fn VarBstrFromI4(lin: i32, lcid: u32, dwflags: u32, pbstrout: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_Ole\"`*"] + pub fn VarBstrFromI8(i64in: i64, lcid: u32, dwflags: u32, pbstrout: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_Ole\"`*"] + pub fn VarBstrFromR4(fltin: f32, lcid: u32, dwflags: u32, pbstrout: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_Ole\"`*"] + pub fn VarBstrFromR8(dblin: f64, lcid: u32, dwflags: u32, pbstrout: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_Ole\"`*"] + pub fn VarBstrFromUI1(bval: u8, lcid: u32, dwflags: u32, pbstrout: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_Ole\"`*"] + pub fn VarBstrFromUI2(uiin: u16, lcid: u32, dwflags: u32, pbstrout: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_Ole\"`*"] + pub fn VarBstrFromUI4(ulin: u32, lcid: u32, dwflags: u32, pbstrout: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_Ole\"`*"] + pub fn VarBstrFromUI8(ui64in: u64, lcid: u32, dwflags: u32, pbstrout: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub fn VarCat(pvarleft: *const super::Com::VARIANT, pvarright: *const super::Com::VARIANT, pvarresult: *mut super::Com::VARIANT) -> ::windows_sys::core::HRESULT; @@ -774,22 +761,22 @@ extern "system" { pub fn VarFix(pvarin: *const super::Com::VARIANT, pvarresult: *mut super::Com::VARIANT) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub fn VarFormat(pvarin: *const super::Com::VARIANT, pstrformat: ::windows_sys::core::PCWSTR, ifirstday: i32, ifirstweek: i32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; + pub fn VarFormat(pvarin: *const super::Com::VARIANT, pstrformat: ::windows_sys::core::PCWSTR, ifirstday: i32, ifirstweek: i32, dwflags: u32, pbstrout: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub fn VarFormatCurrency(pvarin: *const super::Com::VARIANT, inumdig: i32, iinclead: i32, iuseparens: i32, igroup: i32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; + pub fn VarFormatCurrency(pvarin: *const super::Com::VARIANT, inumdig: i32, iinclead: i32, iuseparens: i32, igroup: i32, dwflags: u32, pbstrout: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub fn VarFormatDateTime(pvarin: *const super::Com::VARIANT, inamedformat: i32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; + pub fn VarFormatDateTime(pvarin: *const super::Com::VARIANT, inamedformat: i32, dwflags: u32, pbstrout: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub fn VarFormatFromTokens(pvarin: *const super::Com::VARIANT, pstrformat: ::windows_sys::core::PCWSTR, pbtokcur: *const u8, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR, lcid: u32) -> ::windows_sys::core::HRESULT; + pub fn VarFormatFromTokens(pvarin: *const super::Com::VARIANT, pstrformat: ::windows_sys::core::PCWSTR, pbtokcur: *const u8, dwflags: u32, pbstrout: *mut ::windows_sys::core::BSTR, lcid: u32) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub fn VarFormatNumber(pvarin: *const super::Com::VARIANT, inumdig: i32, iinclead: i32, iuseparens: i32, igroup: i32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; + pub fn VarFormatNumber(pvarin: *const super::Com::VARIANT, inumdig: i32, iinclead: i32, iuseparens: i32, igroup: i32, dwflags: u32, pbstrout: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub fn VarFormatPercent(pvarin: *const super::Com::VARIANT, inumdig: i32, iinclead: i32, iuseparens: i32, igroup: i32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; + pub fn VarFormatPercent(pvarin: *const super::Com::VARIANT, inumdig: i32, iinclead: i32, iuseparens: i32, igroup: i32, dwflags: u32, pbstrout: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Ole\"`*"] pub fn VarI1FromBool(boolin: i16, pcout: ::windows_sys::core::PSTR) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Com\"`*"] @@ -935,9 +922,8 @@ extern "system" { #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub fn VarMod(pvarleft: *const super::Com::VARIANT, pvarright: *const super::Com::VARIANT, pvarresult: *mut super::Com::VARIANT) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn VarMonthName(imonth: i32, fabbrev: i32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_Ole\"`*"] + pub fn VarMonthName(imonth: i32, fabbrev: i32, dwflags: u32, pbstrout: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub fn VarMul(pvarleft: *const super::Com::VARIANT, pvarright: *const super::Com::VARIANT, pvarresult: *mut super::Com::VARIANT) -> ::windows_sys::core::HRESULT; @@ -1177,9 +1163,8 @@ extern "system" { #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn VarUdateFromDate(datein: f64, dwflags: u32, pudateout: *mut UDATE) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn VarWeekdayName(iweekday: i32, fabbrev: i32, ifirstday: i32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_Ole\"`*"] + pub fn VarWeekdayName(iweekday: i32, fabbrev: i32, ifirstday: i32, dwflags: u32, pbstrout: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub fn VarXor(pvarleft: *const super::Com::VARIANT, pvarright: *const super::Com::VARIANT, pvarresult: *mut super::Com::VARIANT) -> ::windows_sys::core::HRESULT; @@ -1206,9 +1191,9 @@ extern "system" { #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn VariantTimeToSystemTime(vtime: f64, lpsystemtime: *mut super::super::Foundation::SYSTEMTIME) -> i32; - #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub fn VectorFromBstr(bstr: super::super::Foundation::BSTR, ppsa: *mut *mut super::Com::SAFEARRAY) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub fn VectorFromBstr(bstr: ::windows_sys::core::BSTR, ppsa: *mut *mut super::Com::SAFEARRAY) -> ::windows_sys::core::HRESULT; } pub type IAdviseSinkEx = *mut ::core::ffi::c_void; pub type ICanHandleException = *mut ::core::ffi::c_void; diff --git a/crates/libs/sys/src/Windows/Win32/System/RemoteDesktop/mod.rs b/crates/libs/sys/src/Windows/Win32/System/RemoteDesktop/mod.rs index 095c84cc08..9aef03326c 100644 --- a/crates/libs/sys/src/Windows/Win32/System/RemoteDesktop/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/RemoteDesktop/mod.rs @@ -1457,24 +1457,21 @@ pub const WTSVirtualClientData: WTS_VIRTUAL_CLASS = 0i32; #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`*"] pub const WTSVirtualFileHandle: WTS_VIRTUAL_CLASS = 1i32; #[repr(C)] -#[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`*"] pub struct AAAccountingData { - pub userName: super::super::Foundation::BSTR, - pub clientName: super::super::Foundation::BSTR, + pub userName: ::windows_sys::core::BSTR, + pub clientName: ::windows_sys::core::BSTR, pub authType: AAAuthSchemes, - pub resourceName: super::super::Foundation::BSTR, + pub resourceName: ::windows_sys::core::BSTR, pub portNumber: i32, - pub protocolName: super::super::Foundation::BSTR, + pub protocolName: ::windows_sys::core::BSTR, pub numberOfBytesReceived: i32, pub numberOfBytesTransfered: i32, - pub reasonForDisconnect: super::super::Foundation::BSTR, + pub reasonForDisconnect: ::windows_sys::core::BSTR, pub mainSessionId: ::windows_sys::core::GUID, pub subSessionId: i32, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for AAAccountingData {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for AAAccountingData { fn clone(&self) -> Self { *self diff --git a/crates/libs/sys/src/Windows/Win32/System/Search/mod.rs b/crates/libs/sys/src/Windows/Win32/System/Search/mod.rs index 0870c0c712..2cea477eda 100644 --- a/crates/libs/sys/src/Windows/Win32/System/Search/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/System/Search/mod.rs @@ -10979,7 +10979,7 @@ pub struct RMTPACK { pub pISeqStream: super::Com::ISequentialStream, pub cbData: u32, pub cBSTR: u32, - pub rgBSTR: *mut super::super::Foundation::BSTR, + pub rgBSTR: *mut ::windows_sys::core::BSTR, pub cVARIANT: u32, pub rgVARIANT: *mut super::Com::VARIANT, pub cIDISPATCH: u32, @@ -11009,7 +11009,7 @@ pub struct RMTPACK { pub pISeqStream: super::Com::ISequentialStream, pub cbData: u32, pub cBSTR: u32, - pub rgBSTR: *mut super::super::Foundation::BSTR, + pub rgBSTR: *mut ::windows_sys::core::BSTR, pub cVARIANT: u32, pub rgVARIANT: *mut super::Com::VARIANT, pub cIDISPATCH: u32, @@ -11380,9 +11380,9 @@ pub struct SUBSCRIPTIONINFO { pub bChangesOnly: super::super::Foundation::BOOL, pub bNeedPassword: super::super::Foundation::BOOL, pub fChannelFlags: u32, - pub bstrUserName: super::super::Foundation::BSTR, - pub bstrPassword: super::super::Foundation::BSTR, - pub bstrFriendlyName: super::super::Foundation::BSTR, + pub bstrUserName: ::windows_sys::core::BSTR, + pub bstrPassword: ::windows_sys::core::BSTR, + pub bstrFriendlyName: ::windows_sys::core::BSTR, pub dwMaxSizeKB: u32, pub subType: SUBSCRIPTIONTYPE, pub fTaskFlags: u32, diff --git a/crates/libs/sys/src/Windows/Win32/UI/Accessibility/mod.rs b/crates/libs/sys/src/Windows/Win32/UI/Accessibility/mod.rs index b7fb7f5053..c364c607b7 100644 --- a/crates/libs/sys/src/Windows/Win32/UI/Accessibility/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/UI/Accessibility/mod.rs @@ -65,9 +65,8 @@ extern "system" { #[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn LresultFromObject(riid: *const ::windows_sys::core::GUID, wparam: super::super::Foundation::WPARAM, punk: ::windows_sys::core::IUnknown) -> super::super::Foundation::LRESULT; - #[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn MultipleViewPattern_GetViewName(hobj: HUIAPATTERNOBJECT, viewid: i32, ppstr: *mut super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_UI_Accessibility\"`*"] + pub fn MultipleViewPattern_GetViewName(hobj: HUIAPATTERNOBJECT, viewid: i32, ppstr: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_UI_Accessibility\"`*"] pub fn MultipleViewPattern_SetCurrentView(hobj: HUIAPATTERNOBJECT, viewid: i32) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_Foundation\"`*"] @@ -133,7 +132,7 @@ extern "system" { pub fn TextRange_FindAttribute(hobj: HUIATEXTRANGE, attributeid: i32, val: super::super::System::Com::VARIANT, backward: super::super::Foundation::BOOL, pretval: *mut HUIATEXTRANGE) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn TextRange_FindText(hobj: HUIATEXTRANGE, text: super::super::Foundation::BSTR, backward: super::super::Foundation::BOOL, ignorecase: super::super::Foundation::BOOL, pretval: *mut HUIATEXTRANGE) -> ::windows_sys::core::HRESULT; + pub fn TextRange_FindText(hobj: HUIATEXTRANGE, text: ::windows_sys::core::BSTR, backward: super::super::Foundation::BOOL, ignorecase: super::super::Foundation::BOOL, pretval: *mut HUIATEXTRANGE) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub fn TextRange_GetAttributeValue(hobj: HUIATEXTRANGE, attributeid: i32, pretval: *mut super::super::System::Com::VARIANT) -> ::windows_sys::core::HRESULT; @@ -145,9 +144,8 @@ extern "system" { pub fn TextRange_GetChildren(hobj: HUIATEXTRANGE, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_UI_Accessibility\"`*"] pub fn TextRange_GetEnclosingElement(hobj: HUIATEXTRANGE, pretval: *mut HUIANODE) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn TextRange_GetText(hobj: HUIATEXTRANGE, maxlength: i32, pretval: *mut super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_UI_Accessibility\"`*"] + pub fn TextRange_GetText(hobj: HUIATEXTRANGE, maxlength: i32, pretval: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_UI_Accessibility\"`*"] pub fn TextRange_Move(hobj: HUIATEXTRANGE, unit: TextUnit, count: i32, pretval: *mut i32) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_UI_Accessibility\"`*"] @@ -169,8 +167,8 @@ extern "system" { pub fn TransformPattern_Resize(hobj: HUIAPATTERNOBJECT, width: f64, height: f64) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_UI_Accessibility\"`*"] pub fn TransformPattern_Rotate(hobj: HUIAPATTERNOBJECT, degrees: f64) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] + #[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] pub fn UiaAddEvent(hnode: HUIANODE, eventid: i32, pcallback: *mut UiaEventCallback, scope: TreeScope, pproperties: *mut i32, cproperties: i32, prequest: *mut UiaCacheRequest, phevent: *mut HUIAEVENT) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -190,7 +188,7 @@ extern "system" { pub fn UiaFind(hnode: HUIANODE, pparams: *mut UiaFindParams, prequest: *mut UiaCacheRequest, pprequesteddata: *mut *mut super::super::System::Com::SAFEARRAY, ppoffsets: *mut *mut super::super::System::Com::SAFEARRAY, pptreestructures: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub fn UiaGetErrorDescription(pdescription: *mut super::super::Foundation::BSTR) -> super::super::Foundation::BOOL; + pub fn UiaGetErrorDescription(pdescription: *mut ::windows_sys::core::BSTR) -> super::super::Foundation::BOOL; #[doc = "*Required features: `\"Win32_UI_Accessibility\"`*"] pub fn UiaGetPatternProvider(hnode: HUIANODE, patternid: i32, phobj: *mut HUIAPATTERNOBJECT) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -205,9 +203,9 @@ extern "system" { #[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] pub fn UiaGetRuntimeId(hnode: HUIANODE, pruntimeid: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub fn UiaGetUpdatedCache(hnode: HUIANODE, prequest: *mut UiaCacheRequest, normalizestate: NormalizeState, pnormalizecondition: *mut UiaCondition, pprequesteddata: *mut *mut super::super::System::Com::SAFEARRAY, pptreestructure: *mut super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub fn UiaGetUpdatedCache(hnode: HUIANODE, prequest: *mut UiaCacheRequest, normalizestate: NormalizeState, pnormalizecondition: *mut UiaCondition, pprequesteddata: *mut *mut super::super::System::Com::SAFEARRAY, pptreestructure: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub fn UiaHPatternObjectFromVariant(pvar: *mut super::super::System::Com::VARIANT, phobj: *mut HUIAPATTERNOBJECT) -> ::windows_sys::core::HRESULT; @@ -228,18 +226,18 @@ extern "system" { pub fn UiaIAccessibleFromProvider(pprovider: IRawElementProviderSimple, dwflags: u32, ppaccessible: *mut IAccessible, pvarchild: *mut super::super::System::Com::VARIANT) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_UI_Accessibility\"`*"] pub fn UiaLookupId(r#type: AutomationIdentifierType, pguid: *const ::windows_sys::core::GUID) -> i32; - #[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub fn UiaNavigate(hnode: HUIANODE, direction: NavigateDirection, pcondition: *mut UiaCondition, prequest: *mut UiaCacheRequest, pprequesteddata: *mut *mut super::super::System::Com::SAFEARRAY, pptreestructure: *mut super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub fn UiaNodeFromFocus(prequest: *mut UiaCacheRequest, pprequesteddata: *mut *mut super::super::System::Com::SAFEARRAY, pptreestructure: *mut super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub fn UiaNavigate(hnode: HUIANODE, direction: NavigateDirection, pcondition: *mut UiaCondition, prequest: *mut UiaCacheRequest, pprequesteddata: *mut *mut super::super::System::Com::SAFEARRAY, pptreestructure: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub fn UiaNodeFromFocus(prequest: *mut UiaCacheRequest, pprequesteddata: *mut *mut super::super::System::Com::SAFEARRAY, pptreestructure: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] pub fn UiaNodeFromHandle(hwnd: super::super::Foundation::HWND, phnode: *mut HUIANODE) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub fn UiaNodeFromPoint(x: f64, y: f64, prequest: *mut UiaCacheRequest, pprequesteddata: *mut *mut super::super::System::Com::SAFEARRAY, pptreestructure: *mut super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub fn UiaNodeFromPoint(x: f64, y: f64, prequest: *mut UiaCacheRequest, pprequesteddata: *mut *mut super::super::System::Com::SAFEARRAY, pptreestructure: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_UI_Accessibility\"`*"] pub fn UiaNodeFromProvider(pprovider: IRawElementProviderSimple, phnode: *mut HUIANODE) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_Foundation\"`*"] @@ -266,9 +264,8 @@ extern "system" { #[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub fn UiaRaiseChangesEvent(pprovider: IRawElementProviderSimple, eventidcount: i32, puiachanges: *mut UiaChangeInfo) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn UiaRaiseNotificationEvent(provider: IRawElementProviderSimple, notificationkind: NotificationKind, notificationprocessing: NotificationProcessing, displaystring: super::super::Foundation::BSTR, activityid: super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_UI_Accessibility\"`*"] + pub fn UiaRaiseNotificationEvent(provider: IRawElementProviderSimple, notificationkind: NotificationKind, notificationprocessing: NotificationProcessing, displaystring: ::windows_sys::core::BSTR, activityid: ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_UI_Accessibility\"`*"] pub fn UiaRaiseStructureChangedEvent(pprovider: IRawElementProviderSimple, structurechangetype: StructureChangeType, pruntimeid: *mut i32, cruntimeidlen: i32) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_System_Com\"`*"] @@ -2672,15 +2669,12 @@ impl ::core::clone::Clone for ACCESSTIMEOUT { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_UI_Accessibility\"`*"] pub struct ExtendedProperty { - pub PropertyName: super::super::Foundation::BSTR, - pub PropertyValue: super::super::Foundation::BSTR, + pub PropertyName: ::windows_sys::core::BSTR, + pub PropertyValue: ::windows_sys::core::BSTR, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for ExtendedProperty {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for ExtendedProperty { fn clone(&self) -> Self { *self @@ -3199,9 +3193,9 @@ pub type LPFNLRESULTFROMOBJECT = ::core::option::Option ::windows_sys::core::HRESULT>; -#[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -pub type UiaEventCallback = ::core::option::Option; +#[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_System_Com\"`*"] +#[cfg(feature = "Win32_System_Com")] +pub type UiaEventCallback = ::core::option::Option; #[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub type UiaProviderCallback = ::core::option::Option *mut super::super::System::Com::SAFEARRAY>; diff --git a/crates/libs/sys/src/Windows/Win32/UI/Shell/PropertiesSystem/mod.rs b/crates/libs/sys/src/Windows/Win32/UI/Shell/PropertiesSystem/mod.rs index 06e7dfe4c9..e8b9fd5505 100644 --- a/crates/libs/sys/src/Windows/Win32/UI/Shell/PropertiesSystem/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/UI/Shell/PropertiesSystem/mod.rs @@ -181,9 +181,9 @@ extern "system" { #[doc = "*Required features: `\"Win32_UI_Shell_PropertiesSystem\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com_StructuredStorage\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] pub fn PSPropertyBag_ReadBOOL(propbag: super::super::super::System::Com::StructuredStorage::IPropertyBag, propname: ::windows_sys::core::PCWSTR, value: *mut super::super::super::Foundation::BOOL) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_UI_Shell_PropertiesSystem\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com_StructuredStorage\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] - pub fn PSPropertyBag_ReadBSTR(propbag: super::super::super::System::Com::StructuredStorage::IPropertyBag, propname: ::windows_sys::core::PCWSTR, value: *mut super::super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_UI_Shell_PropertiesSystem\"`, `\"Win32_System_Com_StructuredStorage\"`*"] + #[cfg(feature = "Win32_System_Com_StructuredStorage")] + pub fn PSPropertyBag_ReadBSTR(propbag: super::super::super::System::Com::StructuredStorage::IPropertyBag, propname: ::windows_sys::core::PCWSTR, value: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_UI_Shell_PropertiesSystem\"`, `\"Win32_System_Com_StructuredStorage\"`*"] #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub fn PSPropertyBag_ReadDWORD(propbag: super::super::super::System::Com::StructuredStorage::IPropertyBag, propname: ::windows_sys::core::PCWSTR, value: *mut u32) -> ::windows_sys::core::HRESULT; @@ -232,9 +232,9 @@ extern "system" { #[doc = "*Required features: `\"Win32_UI_Shell_PropertiesSystem\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com_StructuredStorage\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] pub fn PSPropertyBag_WriteBOOL(propbag: super::super::super::System::Com::StructuredStorage::IPropertyBag, propname: ::windows_sys::core::PCWSTR, value: super::super::super::Foundation::BOOL) -> ::windows_sys::core::HRESULT; - #[doc = "*Required features: `\"Win32_UI_Shell_PropertiesSystem\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com_StructuredStorage\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] - pub fn PSPropertyBag_WriteBSTR(propbag: super::super::super::System::Com::StructuredStorage::IPropertyBag, propname: ::windows_sys::core::PCWSTR, value: super::super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_UI_Shell_PropertiesSystem\"`, `\"Win32_System_Com_StructuredStorage\"`*"] + #[cfg(feature = "Win32_System_Com_StructuredStorage")] + pub fn PSPropertyBag_WriteBSTR(propbag: super::super::super::System::Com::StructuredStorage::IPropertyBag, propname: ::windows_sys::core::PCWSTR, value: ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_UI_Shell_PropertiesSystem\"`, `\"Win32_System_Com_StructuredStorage\"`*"] #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub fn PSPropertyBag_WriteDWORD(propbag: super::super::super::System::Com::StructuredStorage::IPropertyBag, propname: ::windows_sys::core::PCWSTR, value: u32) -> ::windows_sys::core::HRESULT; @@ -340,7 +340,7 @@ extern "system" { pub fn PropVariantGetUInt64Elem(propvar: *const super::super::super::System::Com::StructuredStorage::PROPVARIANT, ielem: u32, pnval: *mut u64) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_UI_Shell_PropertiesSystem\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com_StructuredStorage\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] - pub fn PropVariantToBSTR(propvar: *const super::super::super::System::Com::StructuredStorage::PROPVARIANT, pbstrout: *mut super::super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; + pub fn PropVariantToBSTR(propvar: *const super::super::super::System::Com::StructuredStorage::PROPVARIANT, pbstrout: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_UI_Shell_PropertiesSystem\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com_StructuredStorage\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] pub fn PropVariantToBoolean(propvarin: *const super::super::super::System::Com::StructuredStorage::PROPVARIANT, pfret: *mut super::super::super::Foundation::BOOL) -> ::windows_sys::core::HRESULT; diff --git a/crates/libs/sys/src/Windows/Win32/UI/Shell/mod.rs b/crates/libs/sys/src/Windows/Win32/UI/Shell/mod.rs index 473f8d94c5..40d7f56e88 100644 --- a/crates/libs/sys/src/Windows/Win32/UI/Shell/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/UI/Shell/mod.rs @@ -1674,9 +1674,9 @@ extern "system" { pub fn StrRStrIA(pszsource: ::windows_sys::core::PCSTR, pszlast: ::windows_sys::core::PCSTR, pszsrch: ::windows_sys::core::PCSTR) -> ::windows_sys::core::PSTR; #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] pub fn StrRStrIW(pszsource: ::windows_sys::core::PCWSTR, pszlast: ::windows_sys::core::PCWSTR, pszsrch: ::windows_sys::core::PCWSTR) -> ::windows_sys::core::PWSTR; - #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_Shell_Common\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] - pub fn StrRetToBSTR(pstr: *mut Common::STRRET, pidl: *const Common::ITEMIDLIST, pbstr: *mut super::super::Foundation::BSTR) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] + #[cfg(feature = "Win32_UI_Shell_Common")] + pub fn StrRetToBSTR(pstr: *mut Common::STRRET, pidl: *const Common::ITEMIDLIST, pbstr: *mut ::windows_sys::core::BSTR) -> ::windows_sys::core::HRESULT; #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] #[cfg(feature = "Win32_UI_Shell_Common")] pub fn StrRetToBufA(pstr: *mut Common::STRRET, pidl: *const Common::ITEMIDLIST, pszbuf: ::windows_sys::core::PSTR, cchbuf: u32) -> ::windows_sys::core::HRESULT; diff --git a/crates/libs/sys/src/Windows/Win32/UI/TextServices/mod.rs b/crates/libs/sys/src/Windows/Win32/UI/TextServices/mod.rs index 3c2f1eabdc..496107acac 100644 --- a/crates/libs/sys/src/Windows/Win32/UI/TextServices/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/UI/TextServices/mod.rs @@ -1347,47 +1347,38 @@ impl ::core::clone::Clone for TF_LANGUAGEPROFILE { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_UI_TextServices\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_UI_TextServices\"`*"] pub struct TF_LBBALLOONINFO { pub style: TfLBBalloonStyle, - pub bstrText: super::super::Foundation::BSTR, + pub bstrText: ::windows_sys::core::BSTR, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for TF_LBBALLOONINFO {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for TF_LBBALLOONINFO { fn clone(&self) -> Self { *self } } #[repr(C)] -#[doc = "*Required features: `\"Win32_UI_TextServices\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_UI_TextServices\"`*"] pub struct TF_LMLATTELEMENT { pub dwFrameStart: u32, pub dwFrameLen: u32, pub dwFlags: u32, pub Anonymous: TF_LMLATTELEMENT_0, - pub bstrText: super::super::Foundation::BSTR, + pub bstrText: ::windows_sys::core::BSTR, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for TF_LMLATTELEMENT {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for TF_LMLATTELEMENT { fn clone(&self) -> Self { *self } } #[repr(C)] -#[doc = "*Required features: `\"Win32_UI_TextServices\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_UI_TextServices\"`*"] pub union TF_LMLATTELEMENT_0 { pub iCost: i32, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for TF_LMLATTELEMENT_0 {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for TF_LMLATTELEMENT_0 { fn clone(&self) -> Self { *self diff --git a/crates/libs/sys/src/Windows/Win32/UI/Xaml/Diagnostics/mod.rs b/crates/libs/sys/src/Windows/Win32/UI/Xaml/Diagnostics/mod.rs index 7eb6a17b58..434595f45b 100644 --- a/crates/libs/sys/src/Windows/Win32/UI/Xaml/Diagnostics/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/UI/Xaml/Diagnostics/mod.rs @@ -109,33 +109,30 @@ impl ::core::clone::Clone for BitmapDescription { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Xaml_Diagnostics\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_UI_Xaml_Diagnostics\"`*"] pub struct CollectionElementValue { pub Index: u32, - pub ValueType: super::super::super::Foundation::BSTR, - pub Value: super::super::super::Foundation::BSTR, + pub ValueType: ::windows_sys::core::BSTR, + pub Value: ::windows_sys::core::BSTR, pub MetadataBits: i64, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for CollectionElementValue {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for CollectionElementValue { fn clone(&self) -> Self { *self } } #[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Xaml_Diagnostics\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[doc = "*Required features: `\"Win32_UI_Xaml_Diagnostics\"`, `\"Win32_System_Com\"`*"] +#[cfg(feature = "Win32_System_Com")] pub struct EnumType { - pub Name: super::super::super::Foundation::BSTR, + pub Name: ::windows_sys::core::BSTR, pub ValueInts: *mut super::super::super::System::Com::SAFEARRAY, pub ValueStrings: *mut super::super::super::System::Com::SAFEARRAY, } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::marker::Copy for EnumType {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::clone::Clone for EnumType { fn clone(&self) -> Self { *self @@ -155,18 +152,15 @@ impl ::core::clone::Clone for ParentChildRelation { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Xaml_Diagnostics\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_UI_Xaml_Diagnostics\"`*"] pub struct PropertyChainSource { pub Handle: u64, - pub TargetType: super::super::super::Foundation::BSTR, - pub Name: super::super::super::Foundation::BSTR, + pub TargetType: ::windows_sys::core::BSTR, + pub Name: ::windows_sys::core::BSTR, pub Source: BaseValueSource, pub SrcInfo: SourceInfo, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for PropertyChainSource {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for PropertyChainSource { fn clone(&self) -> Self { *self @@ -177,14 +171,14 @@ impl ::core::clone::Clone for PropertyChainSource { #[cfg(feature = "Win32_Foundation")] pub struct PropertyChainValue { pub Index: u32, - pub Type: super::super::super::Foundation::BSTR, - pub DeclaringType: super::super::super::Foundation::BSTR, - pub ValueType: super::super::super::Foundation::BSTR, - pub ItemType: super::super::super::Foundation::BSTR, - pub Value: super::super::super::Foundation::BSTR, + pub Type: ::windows_sys::core::BSTR, + pub DeclaringType: ::windows_sys::core::BSTR, + pub ValueType: ::windows_sys::core::BSTR, + pub ItemType: ::windows_sys::core::BSTR, + pub Value: ::windows_sys::core::BSTR, pub Overridden: super::super::super::Foundation::BOOL, pub MetadataBits: i64, - pub PropertyName: super::super::super::Foundation::BSTR, + pub PropertyName: ::windows_sys::core::BSTR, pub PropertyChainIndex: u32, } #[cfg(feature = "Win32_Foundation")] @@ -196,36 +190,30 @@ impl ::core::clone::Clone for PropertyChainValue { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Xaml_Diagnostics\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_UI_Xaml_Diagnostics\"`*"] pub struct SourceInfo { - pub FileName: super::super::super::Foundation::BSTR, + pub FileName: ::windows_sys::core::BSTR, pub LineNumber: u32, pub ColumnNumber: u32, pub CharPosition: u32, - pub Hash: super::super::super::Foundation::BSTR, + pub Hash: ::windows_sys::core::BSTR, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for SourceInfo {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for SourceInfo { fn clone(&self) -> Self { *self } } #[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Xaml_Diagnostics\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_UI_Xaml_Diagnostics\"`*"] pub struct VisualElement { pub Handle: u64, pub SrcInfo: SourceInfo, - pub Type: super::super::super::Foundation::BSTR, - pub Name: super::super::super::Foundation::BSTR, + pub Type: ::windows_sys::core::BSTR, + pub Name: ::windows_sys::core::BSTR, pub NumChildren: u32, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for VisualElement {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for VisualElement { fn clone(&self) -> Self { *self diff --git a/crates/libs/sys/src/core/mod.rs b/crates/libs/sys/src/core/mod.rs index 3b4f37561e..92fb13673b 100644 --- a/crates/libs/sys/src/core/mod.rs +++ b/crates/libs/sys/src/core/mod.rs @@ -20,3 +20,4 @@ pub type PSTR = *mut u8; pub type PWSTR = *mut u16; pub type PCSTR = *const u8; pub type PCWSTR = *const u16; +pub type BSTR = *const u16; diff --git a/crates/libs/windows/src/Windows/Win32/Data/Xml/MsXml/impl.rs b/crates/libs/windows/src/Windows/Win32/Data/Xml/MsXml/impl.rs index 8872cda337..2b637f67ed 100644 --- a/crates/libs/windows/src/Windows/Win32/Data/Xml/MsXml/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Data/Xml/MsXml/impl.rs @@ -1,23 +1,23 @@ #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IMXAttributes_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn addAttribute(&self, struri: &super::super::super::Foundation::BSTR, strlocalname: &super::super::super::Foundation::BSTR, strqname: &super::super::super::Foundation::BSTR, strtype: &super::super::super::Foundation::BSTR, strvalue: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn addAttribute(&self, struri: &::windows::core::BSTR, strlocalname: &::windows::core::BSTR, strqname: &::windows::core::BSTR, strtype: &::windows::core::BSTR, strvalue: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn addAttributeFromIndex(&self, varatts: &super::super::super::System::Com::VARIANT, nindex: i32) -> ::windows::core::Result<()>; fn clear(&self) -> ::windows::core::Result<()>; fn removeAttribute(&self, nindex: i32) -> ::windows::core::Result<()>; - fn setAttribute(&self, nindex: i32, struri: &super::super::super::Foundation::BSTR, strlocalname: &super::super::super::Foundation::BSTR, strqname: &super::super::super::Foundation::BSTR, strtype: &super::super::super::Foundation::BSTR, strvalue: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn setAttribute(&self, nindex: i32, struri: &::windows::core::BSTR, strlocalname: &::windows::core::BSTR, strqname: &::windows::core::BSTR, strtype: &::windows::core::BSTR, strvalue: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn setAttributes(&self, varatts: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn setLocalName(&self, nindex: i32, strlocalname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn setQName(&self, nindex: i32, strqname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn setType(&self, nindex: i32, strtype: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn setURI(&self, nindex: i32, struri: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn setValue(&self, nindex: i32, strvalue: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn setLocalName(&self, nindex: i32, strlocalname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn setQName(&self, nindex: i32, strqname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn setType(&self, nindex: i32, strtype: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn setURI(&self, nindex: i32, struri: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn setValue(&self, nindex: i32, strvalue: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IMXAttributes {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IMXAttributes_Vtbl { pub const fn new, Impl: IMXAttributes_Impl, const OFFSET: isize>() -> IMXAttributes_Vtbl { - unsafe extern "system" fn addAttribute, Impl: IMXAttributes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, struri: ::core::mem::ManuallyDrop, strlocalname: ::core::mem::ManuallyDrop, strqname: ::core::mem::ManuallyDrop, strtype: ::core::mem::ManuallyDrop, strvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn addAttribute, Impl: IMXAttributes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, struri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strlocalname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strqname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strtype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.addAttribute(::core::mem::transmute(&struri), ::core::mem::transmute(&strlocalname), ::core::mem::transmute(&strqname), ::core::mem::transmute(&strtype), ::core::mem::transmute(&strvalue)).into() @@ -37,7 +37,7 @@ impl IMXAttributes_Vtbl { let this = (*this).get_impl(); this.removeAttribute(::core::mem::transmute_copy(&nindex)).into() } - unsafe extern "system" fn setAttribute, Impl: IMXAttributes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nindex: i32, struri: ::core::mem::ManuallyDrop, strlocalname: ::core::mem::ManuallyDrop, strqname: ::core::mem::ManuallyDrop, strtype: ::core::mem::ManuallyDrop, strvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn setAttribute, Impl: IMXAttributes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nindex: i32, struri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strlocalname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strqname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strtype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.setAttribute(::core::mem::transmute_copy(&nindex), ::core::mem::transmute(&struri), ::core::mem::transmute(&strlocalname), ::core::mem::transmute(&strqname), ::core::mem::transmute(&strtype), ::core::mem::transmute(&strvalue)).into() @@ -47,27 +47,27 @@ impl IMXAttributes_Vtbl { let this = (*this).get_impl(); this.setAttributes(::core::mem::transmute(&varatts)).into() } - unsafe extern "system" fn setLocalName, Impl: IMXAttributes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nindex: i32, strlocalname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn setLocalName, Impl: IMXAttributes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nindex: i32, strlocalname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.setLocalName(::core::mem::transmute_copy(&nindex), ::core::mem::transmute(&strlocalname)).into() } - unsafe extern "system" fn setQName, Impl: IMXAttributes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nindex: i32, strqname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn setQName, Impl: IMXAttributes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nindex: i32, strqname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.setQName(::core::mem::transmute_copy(&nindex), ::core::mem::transmute(&strqname)).into() } - unsafe extern "system" fn setType, Impl: IMXAttributes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nindex: i32, strtype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn setType, Impl: IMXAttributes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nindex: i32, strtype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.setType(::core::mem::transmute_copy(&nindex), ::core::mem::transmute(&strtype)).into() } - unsafe extern "system" fn setURI, Impl: IMXAttributes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nindex: i32, struri: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn setURI, Impl: IMXAttributes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nindex: i32, struri: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.setURI(::core::mem::transmute_copy(&nindex), ::core::mem::transmute(&struri)).into() } - unsafe extern "system" fn setValue, Impl: IMXAttributes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nindex: i32, strvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn setValue, Impl: IMXAttributes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nindex: i32, strvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.setValue(::core::mem::transmute_copy(&nindex), ::core::mem::transmute(&strvalue)).into() @@ -185,7 +185,7 @@ impl IMXNamespaceManager_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IMXNamespacePrefixes_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn get_item(&self, index: i32) -> ::windows::core::Result; + fn get_item(&self, index: i32) -> ::windows::core::Result<::windows::core::BSTR>; fn length(&self) -> ::windows::core::Result; fn _newEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; } @@ -194,7 +194,7 @@ impl ::windows::core::RuntimeName for IMXNamespacePrefixes {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IMXNamespacePrefixes_Vtbl { pub const fn new, Impl: IMXNamespacePrefixes_Impl, const OFFSET: isize>() -> IMXNamespacePrefixes_Vtbl { - unsafe extern "system" fn get_item, Impl: IMXNamespacePrefixes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: i32, prefix: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_item, Impl: IMXNamespacePrefixes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: i32, prefix: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_item(::core::mem::transmute_copy(&index)) { @@ -302,8 +302,8 @@ impl IMXSchemaDeclHandler_Vtbl { pub trait IMXWriter_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { fn Setoutput(&self, vardestination: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn output(&self) -> ::windows::core::Result; - fn Setencoding(&self, strencoding: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn encoding(&self) -> ::windows::core::Result; + fn Setencoding(&self, strencoding: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn encoding(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn SetbyteOrderMark(&self, fwritebyteordermark: i16) -> ::windows::core::Result<()>; fn byteOrderMark(&self) -> ::windows::core::Result; fn Setindent(&self, findentmode: i16) -> ::windows::core::Result<()>; @@ -312,8 +312,8 @@ pub trait IMXWriter_Impl: Sized + super::super::super::System::Com::IDispatch_Im fn standalone(&self) -> ::windows::core::Result; fn SetomitXMLDeclaration(&self, fvalue: i16) -> ::windows::core::Result<()>; fn omitXMLDeclaration(&self) -> ::windows::core::Result; - fn Setversion(&self, strversion: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn version(&self) -> ::windows::core::Result; + fn Setversion(&self, strversion: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn version(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn SetdisableOutputEscaping(&self, fvalue: i16) -> ::windows::core::Result<()>; fn disableOutputEscaping(&self) -> ::windows::core::Result; fn flush(&self) -> ::windows::core::Result<()>; @@ -339,12 +339,12 @@ impl IMXWriter_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Setencoding, Impl: IMXWriter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strencoding: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Setencoding, Impl: IMXWriter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strencoding: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Setencoding(::core::mem::transmute(&strencoding)).into() } - unsafe extern "system" fn encoding, Impl: IMXWriter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strencoding: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn encoding, Impl: IMXWriter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strencoding: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.encoding() { @@ -419,12 +419,12 @@ impl IMXWriter_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Setversion, Impl: IMXWriter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strversion: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Setversion, Impl: IMXWriter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strversion: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Setversion(::core::mem::transmute(&strversion)).into() } - unsafe extern "system" fn version, Impl: IMXWriter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strversion: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn version, Impl: IMXWriter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strversion: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.version() { @@ -483,10 +483,10 @@ impl IMXWriter_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IMXXMLFilter_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn getFeature(&self, strname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn putFeature(&self, strname: &super::super::super::Foundation::BSTR, fvalue: i16) -> ::windows::core::Result<()>; - fn getProperty(&self, strname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn putProperty(&self, strname: &super::super::super::Foundation::BSTR, varvalue: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn getFeature(&self, strname: &::windows::core::BSTR) -> ::windows::core::Result; + fn putFeature(&self, strname: &::windows::core::BSTR, fvalue: i16) -> ::windows::core::Result<()>; + fn getProperty(&self, strname: &::windows::core::BSTR) -> ::windows::core::Result; + fn putProperty(&self, strname: &::windows::core::BSTR, varvalue: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn entityResolver(&self) -> ::windows::core::Result<::windows::core::IUnknown>; fn putref_entityResolver(&self, oresolver: &::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result<()>; fn contentHandler(&self) -> ::windows::core::Result<::windows::core::IUnknown>; @@ -501,7 +501,7 @@ impl ::windows::core::RuntimeName for IMXXMLFilter {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IMXXMLFilter_Vtbl { pub const fn new, Impl: IMXXMLFilter_Impl, const OFFSET: isize>() -> IMXXMLFilter_Vtbl { - unsafe extern "system" fn getFeature, Impl: IMXXMLFilter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, fvalue: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn getFeature, Impl: IMXXMLFilter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fvalue: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getFeature(::core::mem::transmute(&strname)) { @@ -512,12 +512,12 @@ impl IMXXMLFilter_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn putFeature, Impl: IMXXMLFilter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, fvalue: i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn putFeature, Impl: IMXXMLFilter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fvalue: i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.putFeature(::core::mem::transmute(&strname), ::core::mem::transmute_copy(&fvalue)).into() } - unsafe extern "system" fn getProperty, Impl: IMXXMLFilter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, varvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn getProperty, Impl: IMXXMLFilter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getProperty(::core::mem::transmute(&strname)) { @@ -528,7 +528,7 @@ impl IMXXMLFilter_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn putProperty, Impl: IMXXMLFilter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, varvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn putProperty, Impl: IMXXMLFilter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.putProperty(::core::mem::transmute(&strname), ::core::mem::transmute(&varvalue)).into() @@ -1312,8 +1312,8 @@ impl ISAXXMLReader_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISchema_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + ISchemaItem_Impl { - fn targetNamespace(&self) -> ::windows::core::Result; - fn version(&self) -> ::windows::core::Result; + fn targetNamespace(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn version(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn types(&self) -> ::windows::core::Result; fn elements(&self) -> ::windows::core::Result; fn attributes(&self) -> ::windows::core::Result; @@ -1327,7 +1327,7 @@ impl ::windows::core::RuntimeName for ISchema {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ISchema_Vtbl { pub const fn new, Impl: ISchema_Impl, const OFFSET: isize>() -> ISchema_Vtbl { - unsafe extern "system" fn targetNamespace, Impl: ISchema_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targetnamespace: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn targetNamespace, Impl: ISchema_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targetnamespace: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.targetNamespace() { @@ -1338,7 +1338,7 @@ impl ISchema_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn version, Impl: ISchema_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, version: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn version, Impl: ISchema_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, version: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.version() { @@ -1489,8 +1489,8 @@ impl ISchemaAny_Vtbl { pub trait ISchemaAttribute_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + ISchemaItem_Impl { fn r#type(&self) -> ::windows::core::Result; fn scope(&self) -> ::windows::core::Result; - fn defaultValue(&self) -> ::windows::core::Result; - fn fixedValue(&self) -> ::windows::core::Result; + fn defaultValue(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn fixedValue(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn r#use(&self) -> ::windows::core::Result; fn isReference(&self) -> ::windows::core::Result; } @@ -1521,7 +1521,7 @@ impl ISchemaAttribute_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn defaultValue, Impl: ISchemaAttribute_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, defaultvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn defaultValue, Impl: ISchemaAttribute_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, defaultvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.defaultValue() { @@ -1532,7 +1532,7 @@ impl ISchemaAttribute_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn fixedValue, Impl: ISchemaAttribute_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, fixedvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn fixedValue, Impl: ISchemaAttribute_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, fixedvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.fixedValue() { @@ -1719,8 +1719,8 @@ impl ISchemaComplexType_Vtbl { pub trait ISchemaElement_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + ISchemaItem_Impl + ISchemaParticle_Impl { fn r#type(&self) -> ::windows::core::Result; fn scope(&self) -> ::windows::core::Result; - fn defaultValue(&self) -> ::windows::core::Result; - fn fixedValue(&self) -> ::windows::core::Result; + fn defaultValue(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn fixedValue(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn isNillable(&self) -> ::windows::core::Result; fn identityConstraints(&self) -> ::windows::core::Result; fn substitutionGroup(&self) -> ::windows::core::Result; @@ -1756,7 +1756,7 @@ impl ISchemaElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn defaultValue, Impl: ISchemaElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, defaultvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn defaultValue, Impl: ISchemaElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, defaultvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.defaultValue() { @@ -1767,7 +1767,7 @@ impl ISchemaElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn fixedValue, Impl: ISchemaElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, fixedvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn fixedValue, Impl: ISchemaElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, fixedvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.fixedValue() { @@ -1876,7 +1876,7 @@ impl ISchemaElement_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISchemaIdentityConstraint_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + ISchemaItem_Impl { - fn selector(&self) -> ::windows::core::Result; + fn selector(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn fields(&self) -> ::windows::core::Result; fn referencedKey(&self) -> ::windows::core::Result; } @@ -1885,7 +1885,7 @@ impl ::windows::core::RuntimeName for ISchemaIdentityConstraint {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ISchemaIdentityConstraint_Vtbl { pub const fn new, Impl: ISchemaIdentityConstraint_Impl, const OFFSET: isize>() -> ISchemaIdentityConstraint_Vtbl { - unsafe extern "system" fn selector, Impl: ISchemaIdentityConstraint_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, selector: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn selector, Impl: ISchemaIdentityConstraint_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, selector: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.selector() { @@ -1931,10 +1931,10 @@ impl ISchemaIdentityConstraint_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISchemaItem_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn name(&self) -> ::windows::core::Result; - fn namespaceURI(&self) -> ::windows::core::Result; + fn name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn namespaceURI(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn schema(&self) -> ::windows::core::Result; - fn id(&self) -> ::windows::core::Result; + fn id(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn itemType(&self) -> ::windows::core::Result; fn unhandledAttributes(&self) -> ::windows::core::Result; fn writeAnnotation(&self, annotationsink: &::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result; @@ -1944,7 +1944,7 @@ impl ::windows::core::RuntimeName for ISchemaItem {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ISchemaItem_Vtbl { pub const fn new, Impl: ISchemaItem_Impl, const OFFSET: isize>() -> ISchemaItem_Vtbl { - unsafe extern "system" fn name, Impl: ISchemaItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn name, Impl: ISchemaItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.name() { @@ -1955,7 +1955,7 @@ impl ISchemaItem_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn namespaceURI, Impl: ISchemaItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, namespaceuri: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn namespaceURI, Impl: ISchemaItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, namespaceuri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.namespaceURI() { @@ -1977,7 +1977,7 @@ impl ISchemaItem_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn id, Impl: ISchemaItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, id: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn id, Impl: ISchemaItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, id: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.id() { @@ -2039,8 +2039,8 @@ impl ISchemaItem_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISchemaItemCollection_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { fn get_item(&self, index: i32) -> ::windows::core::Result; - fn itemByName(&self, name: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn itemByQName(&self, name: &super::super::super::Foundation::BSTR, namespaceuri: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; + fn itemByName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result; + fn itemByQName(&self, name: &::windows::core::BSTR, namespaceuri: &::windows::core::BSTR) -> ::windows::core::Result; fn length(&self) -> ::windows::core::Result; fn _newEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; } @@ -2060,7 +2060,7 @@ impl ISchemaItemCollection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn itemByName, Impl: ISchemaItemCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, item: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn itemByName, Impl: ISchemaItemCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, item: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.itemByName(::core::mem::transmute(&name)) { @@ -2071,7 +2071,7 @@ impl ISchemaItemCollection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn itemByQName, Impl: ISchemaItemCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, namespaceuri: ::core::mem::ManuallyDrop, item: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn itemByQName, Impl: ISchemaItemCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, namespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, item: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.itemByQName(::core::mem::transmute(&name), ::core::mem::transmute(&namespaceuri)) { @@ -2145,15 +2145,15 @@ impl ISchemaModelGroup_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISchemaNotation_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + ISchemaItem_Impl { - fn systemIdentifier(&self) -> ::windows::core::Result; - fn publicIdentifier(&self) -> ::windows::core::Result; + fn systemIdentifier(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn publicIdentifier(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ISchemaNotation {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ISchemaNotation_Vtbl { pub const fn new, Impl: ISchemaNotation_Impl, const OFFSET: isize>() -> ISchemaNotation_Vtbl { - unsafe extern "system" fn systemIdentifier, Impl: ISchemaNotation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uri: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn systemIdentifier, Impl: ISchemaNotation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.systemIdentifier() { @@ -2164,7 +2164,7 @@ impl ISchemaNotation_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn publicIdentifier, Impl: ISchemaNotation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uri: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn publicIdentifier, Impl: ISchemaNotation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.publicIdentifier() { @@ -2229,7 +2229,7 @@ impl ISchemaParticle_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISchemaStringCollection_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn get_item(&self, index: i32) -> ::windows::core::Result; + fn get_item(&self, index: i32) -> ::windows::core::Result<::windows::core::BSTR>; fn length(&self) -> ::windows::core::Result; fn _newEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; } @@ -2238,7 +2238,7 @@ impl ::windows::core::RuntimeName for ISchemaStringCollection {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ISchemaStringCollection_Vtbl { pub const fn new, Impl: ISchemaStringCollection_Impl, const OFFSET: isize>() -> ISchemaStringCollection_Vtbl { - unsafe extern "system" fn get_item, Impl: ISchemaStringCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: i32, bstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_item, Impl: ISchemaStringCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: i32, bstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_item(::core::mem::transmute_copy(&index)) { @@ -2288,11 +2288,11 @@ pub trait ISchemaType_Impl: Sized + super::super::super::System::Com::IDispatch_ fn r#final(&self) -> ::windows::core::Result; fn variety(&self) -> ::windows::core::Result; fn derivedBy(&self) -> ::windows::core::Result; - fn isValid(&self, data: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn minExclusive(&self) -> ::windows::core::Result; - fn minInclusive(&self) -> ::windows::core::Result; - fn maxExclusive(&self) -> ::windows::core::Result; - fn maxInclusive(&self) -> ::windows::core::Result; + fn isValid(&self, data: &::windows::core::BSTR) -> ::windows::core::Result; + fn minExclusive(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn minInclusive(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn maxExclusive(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn maxInclusive(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn totalDigits(&self) -> ::windows::core::Result; fn fractionDigits(&self) -> ::windows::core::Result; fn length(&self) -> ::windows::core::Result; @@ -2351,7 +2351,7 @@ impl ISchemaType_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn isValid, Impl: ISchemaType_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop, valid: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn isValid, Impl: ISchemaType_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop<::windows::core::BSTR>, valid: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.isValid(::core::mem::transmute(&data)) { @@ -2362,7 +2362,7 @@ impl ISchemaType_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn minExclusive, Impl: ISchemaType_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, minexclusive: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn minExclusive, Impl: ISchemaType_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, minexclusive: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.minExclusive() { @@ -2373,7 +2373,7 @@ impl ISchemaType_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn minInclusive, Impl: ISchemaType_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mininclusive: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn minInclusive, Impl: ISchemaType_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mininclusive: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.minInclusive() { @@ -2384,7 +2384,7 @@ impl ISchemaType_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn maxExclusive, Impl: ISchemaType_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, maxexclusive: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn maxExclusive, Impl: ISchemaType_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, maxexclusive: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.maxExclusive() { @@ -2395,7 +2395,7 @@ impl ISchemaType_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn maxInclusive, Impl: ISchemaType_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, maxinclusive: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn maxInclusive, Impl: ISchemaType_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, maxinclusive: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.maxInclusive() { @@ -2578,7 +2578,7 @@ impl IServerXMLHTTPRequest_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IServerXMLHTTPRequest2_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + IXMLHTTPRequest_Impl + IServerXMLHTTPRequest_Impl { fn setProxy(&self, proxysetting: SXH_PROXY_SETTING, varproxyserver: &super::super::super::System::Com::VARIANT, varbypasslist: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn setProxyCredentials(&self, bstrusername: &super::super::super::Foundation::BSTR, bstrpassword: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn setProxyCredentials(&self, bstrusername: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IServerXMLHTTPRequest2 {} @@ -2590,7 +2590,7 @@ impl IServerXMLHTTPRequest2_Vtbl { let this = (*this).get_impl(); this.setProxy(::core::mem::transmute_copy(&proxysetting), ::core::mem::transmute(&varproxyserver), ::core::mem::transmute(&varbypasslist)).into() } - unsafe extern "system" fn setProxyCredentials, Impl: IServerXMLHTTPRequest2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn setProxyCredentials, Impl: IServerXMLHTTPRequest2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.setProxyCredentials(::core::mem::transmute(&bstrusername), ::core::mem::transmute(&bstrpassword)).into() @@ -2613,11 +2613,11 @@ pub trait IVBMXNamespaceManager_Impl: Sized + super::super::super::System::Com:: fn pushContext(&self) -> ::windows::core::Result<()>; fn pushNodeContext(&self, contextnode: &::core::option::Option, fdeep: i16) -> ::windows::core::Result<()>; fn popContext(&self) -> ::windows::core::Result<()>; - fn declarePrefix(&self, prefix: &super::super::super::Foundation::BSTR, namespaceuri: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn declarePrefix(&self, prefix: &::windows::core::BSTR, namespaceuri: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn getDeclaredPrefixes(&self) -> ::windows::core::Result; - fn getPrefixes(&self, namespaceuri: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn getURI(&self, prefix: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn getURIFromNode(&self, strprefix: &super::super::super::Foundation::BSTR, contextnode: &::core::option::Option) -> ::windows::core::Result; + fn getPrefixes(&self, namespaceuri: &::windows::core::BSTR) -> ::windows::core::Result; + fn getURI(&self, prefix: &::windows::core::BSTR) -> ::windows::core::Result; + fn getURIFromNode(&self, strprefix: &::windows::core::BSTR, contextnode: &::core::option::Option) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IVBMXNamespaceManager {} @@ -2660,7 +2660,7 @@ impl IVBMXNamespaceManager_Vtbl { let this = (*this).get_impl(); this.popContext().into() } - unsafe extern "system" fn declarePrefix, Impl: IVBMXNamespaceManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, prefix: ::core::mem::ManuallyDrop, namespaceuri: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn declarePrefix, Impl: IVBMXNamespaceManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, prefix: ::core::mem::ManuallyDrop<::windows::core::BSTR>, namespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.declarePrefix(::core::mem::transmute(&prefix), ::core::mem::transmute(&namespaceuri)).into() @@ -2676,7 +2676,7 @@ impl IVBMXNamespaceManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn getPrefixes, Impl: IVBMXNamespaceManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, namespaceuri: ::core::mem::ManuallyDrop, prefixes: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn getPrefixes, Impl: IVBMXNamespaceManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, namespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, prefixes: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getPrefixes(::core::mem::transmute(&namespaceuri)) { @@ -2687,7 +2687,7 @@ impl IVBMXNamespaceManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn getURI, Impl: IVBMXNamespaceManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, prefix: ::core::mem::ManuallyDrop, uri: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn getURI, Impl: IVBMXNamespaceManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, prefix: ::core::mem::ManuallyDrop<::windows::core::BSTR>, uri: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getURI(::core::mem::transmute(&prefix)) { @@ -2698,7 +2698,7 @@ impl IVBMXNamespaceManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn getURIFromNode, Impl: IVBMXNamespaceManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strprefix: ::core::mem::ManuallyDrop, contextnode: *mut ::core::ffi::c_void, uri: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn getURIFromNode, Impl: IVBMXNamespaceManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strprefix: ::core::mem::ManuallyDrop<::windows::core::BSTR>, contextnode: *mut ::core::ffi::c_void, uri: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getURIFromNode(::core::mem::transmute(&strprefix), ::core::mem::transmute(&contextnode)) { @@ -2731,17 +2731,17 @@ impl IVBMXNamespaceManager_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IVBSAXAttributes_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { fn length(&self) -> ::windows::core::Result; - fn getURI(&self, nindex: i32) -> ::windows::core::Result; - fn getLocalName(&self, nindex: i32) -> ::windows::core::Result; - fn getQName(&self, nindex: i32) -> ::windows::core::Result; - fn getIndexFromName(&self, struri: &super::super::super::Foundation::BSTR, strlocalname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn getIndexFromQName(&self, strqname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn getType(&self, nindex: i32) -> ::windows::core::Result; - fn getTypeFromName(&self, struri: &super::super::super::Foundation::BSTR, strlocalname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn getTypeFromQName(&self, strqname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn getValue(&self, nindex: i32) -> ::windows::core::Result; - fn getValueFromName(&self, struri: &super::super::super::Foundation::BSTR, strlocalname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn getValueFromQName(&self, strqname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; + fn getURI(&self, nindex: i32) -> ::windows::core::Result<::windows::core::BSTR>; + fn getLocalName(&self, nindex: i32) -> ::windows::core::Result<::windows::core::BSTR>; + fn getQName(&self, nindex: i32) -> ::windows::core::Result<::windows::core::BSTR>; + fn getIndexFromName(&self, struri: &::windows::core::BSTR, strlocalname: &::windows::core::BSTR) -> ::windows::core::Result; + fn getIndexFromQName(&self, strqname: &::windows::core::BSTR) -> ::windows::core::Result; + fn getType(&self, nindex: i32) -> ::windows::core::Result<::windows::core::BSTR>; + fn getTypeFromName(&self, struri: &::windows::core::BSTR, strlocalname: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; + fn getTypeFromQName(&self, strqname: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; + fn getValue(&self, nindex: i32) -> ::windows::core::Result<::windows::core::BSTR>; + fn getValueFromName(&self, struri: &::windows::core::BSTR, strlocalname: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; + fn getValueFromQName(&self, strqname: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IVBSAXAttributes {} @@ -2759,7 +2759,7 @@ impl IVBSAXAttributes_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn getURI, Impl: IVBSAXAttributes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nindex: i32, struri: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn getURI, Impl: IVBSAXAttributes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nindex: i32, struri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getURI(::core::mem::transmute_copy(&nindex)) { @@ -2770,7 +2770,7 @@ impl IVBSAXAttributes_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn getLocalName, Impl: IVBSAXAttributes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nindex: i32, strlocalname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn getLocalName, Impl: IVBSAXAttributes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nindex: i32, strlocalname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getLocalName(::core::mem::transmute_copy(&nindex)) { @@ -2781,7 +2781,7 @@ impl IVBSAXAttributes_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn getQName, Impl: IVBSAXAttributes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nindex: i32, strqname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn getQName, Impl: IVBSAXAttributes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nindex: i32, strqname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getQName(::core::mem::transmute_copy(&nindex)) { @@ -2792,7 +2792,7 @@ impl IVBSAXAttributes_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn getIndexFromName, Impl: IVBSAXAttributes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, struri: ::core::mem::ManuallyDrop, strlocalname: ::core::mem::ManuallyDrop, nindex: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn getIndexFromName, Impl: IVBSAXAttributes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, struri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strlocalname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, nindex: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getIndexFromName(::core::mem::transmute(&struri), ::core::mem::transmute(&strlocalname)) { @@ -2803,7 +2803,7 @@ impl IVBSAXAttributes_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn getIndexFromQName, Impl: IVBSAXAttributes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strqname: ::core::mem::ManuallyDrop, nindex: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn getIndexFromQName, Impl: IVBSAXAttributes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strqname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, nindex: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getIndexFromQName(::core::mem::transmute(&strqname)) { @@ -2814,7 +2814,7 @@ impl IVBSAXAttributes_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn getType, Impl: IVBSAXAttributes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nindex: i32, strtype: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn getType, Impl: IVBSAXAttributes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nindex: i32, strtype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getType(::core::mem::transmute_copy(&nindex)) { @@ -2825,7 +2825,7 @@ impl IVBSAXAttributes_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn getTypeFromName, Impl: IVBSAXAttributes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, struri: ::core::mem::ManuallyDrop, strlocalname: ::core::mem::ManuallyDrop, strtype: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn getTypeFromName, Impl: IVBSAXAttributes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, struri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strlocalname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strtype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getTypeFromName(::core::mem::transmute(&struri), ::core::mem::transmute(&strlocalname)) { @@ -2836,7 +2836,7 @@ impl IVBSAXAttributes_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn getTypeFromQName, Impl: IVBSAXAttributes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strqname: ::core::mem::ManuallyDrop, strtype: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn getTypeFromQName, Impl: IVBSAXAttributes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strqname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strtype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getTypeFromQName(::core::mem::transmute(&strqname)) { @@ -2847,7 +2847,7 @@ impl IVBSAXAttributes_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn getValue, Impl: IVBSAXAttributes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nindex: i32, strvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn getValue, Impl: IVBSAXAttributes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nindex: i32, strvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getValue(::core::mem::transmute_copy(&nindex)) { @@ -2858,7 +2858,7 @@ impl IVBSAXAttributes_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn getValueFromName, Impl: IVBSAXAttributes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, struri: ::core::mem::ManuallyDrop, strlocalname: ::core::mem::ManuallyDrop, strvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn getValueFromName, Impl: IVBSAXAttributes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, struri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strlocalname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getValueFromName(::core::mem::transmute(&struri), ::core::mem::transmute(&strlocalname)) { @@ -2869,7 +2869,7 @@ impl IVBSAXAttributes_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn getValueFromQName, Impl: IVBSAXAttributes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strqname: ::core::mem::ManuallyDrop, strvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn getValueFromQName, Impl: IVBSAXAttributes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strqname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getValueFromQName(::core::mem::transmute(&strqname)) { @@ -2905,14 +2905,14 @@ pub trait IVBSAXContentHandler_Impl: Sized + super::super::super::System::Com::I fn putref_documentLocator(&self, olocator: &::core::option::Option) -> ::windows::core::Result<()>; fn startDocument(&self) -> ::windows::core::Result<()>; fn endDocument(&self) -> ::windows::core::Result<()>; - fn startPrefixMapping(&self, strprefix: *mut super::super::super::Foundation::BSTR, struri: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn endPrefixMapping(&self, strprefix: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn startElement(&self, strnamespaceuri: *mut super::super::super::Foundation::BSTR, strlocalname: *mut super::super::super::Foundation::BSTR, strqname: *mut super::super::super::Foundation::BSTR, oattributes: &::core::option::Option) -> ::windows::core::Result<()>; - fn endElement(&self, strnamespaceuri: *mut super::super::super::Foundation::BSTR, strlocalname: *mut super::super::super::Foundation::BSTR, strqname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn characters(&self, strchars: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ignorableWhitespace(&self, strchars: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn processingInstruction(&self, strtarget: *mut super::super::super::Foundation::BSTR, strdata: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn skippedEntity(&self, strname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn startPrefixMapping(&self, strprefix: *mut ::windows::core::BSTR, struri: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn endPrefixMapping(&self, strprefix: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn startElement(&self, strnamespaceuri: *mut ::windows::core::BSTR, strlocalname: *mut ::windows::core::BSTR, strqname: *mut ::windows::core::BSTR, oattributes: &::core::option::Option) -> ::windows::core::Result<()>; + fn endElement(&self, strnamespaceuri: *mut ::windows::core::BSTR, strlocalname: *mut ::windows::core::BSTR, strqname: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn characters(&self, strchars: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ignorableWhitespace(&self, strchars: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn processingInstruction(&self, strtarget: *mut ::windows::core::BSTR, strdata: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn skippedEntity(&self, strname: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IVBSAXContentHandler {} @@ -2934,42 +2934,42 @@ impl IVBSAXContentHandler_Vtbl { let this = (*this).get_impl(); this.endDocument().into() } - unsafe extern "system" fn startPrefixMapping, Impl: IVBSAXContentHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strprefix: *mut super::super::super::Foundation::BSTR, struri: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn startPrefixMapping, Impl: IVBSAXContentHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strprefix: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, struri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.startPrefixMapping(::core::mem::transmute_copy(&strprefix), ::core::mem::transmute_copy(&struri)).into() } - unsafe extern "system" fn endPrefixMapping, Impl: IVBSAXContentHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strprefix: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn endPrefixMapping, Impl: IVBSAXContentHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strprefix: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.endPrefixMapping(::core::mem::transmute_copy(&strprefix)).into() } - unsafe extern "system" fn startElement, Impl: IVBSAXContentHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strnamespaceuri: *mut super::super::super::Foundation::BSTR, strlocalname: *mut super::super::super::Foundation::BSTR, strqname: *mut super::super::super::Foundation::BSTR, oattributes: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn startElement, Impl: IVBSAXContentHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strnamespaceuri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strlocalname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strqname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, oattributes: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.startElement(::core::mem::transmute_copy(&strnamespaceuri), ::core::mem::transmute_copy(&strlocalname), ::core::mem::transmute_copy(&strqname), ::core::mem::transmute(&oattributes)).into() } - unsafe extern "system" fn endElement, Impl: IVBSAXContentHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strnamespaceuri: *mut super::super::super::Foundation::BSTR, strlocalname: *mut super::super::super::Foundation::BSTR, strqname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn endElement, Impl: IVBSAXContentHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strnamespaceuri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strlocalname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strqname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.endElement(::core::mem::transmute_copy(&strnamespaceuri), ::core::mem::transmute_copy(&strlocalname), ::core::mem::transmute_copy(&strqname)).into() } - unsafe extern "system" fn characters, Impl: IVBSAXContentHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strchars: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn characters, Impl: IVBSAXContentHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strchars: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.characters(::core::mem::transmute_copy(&strchars)).into() } - unsafe extern "system" fn ignorableWhitespace, Impl: IVBSAXContentHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strchars: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ignorableWhitespace, Impl: IVBSAXContentHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strchars: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ignorableWhitespace(::core::mem::transmute_copy(&strchars)).into() } - unsafe extern "system" fn processingInstruction, Impl: IVBSAXContentHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strtarget: *mut super::super::super::Foundation::BSTR, strdata: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn processingInstruction, Impl: IVBSAXContentHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strtarget: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.processingInstruction(::core::mem::transmute_copy(&strtarget), ::core::mem::transmute_copy(&strdata)).into() } - unsafe extern "system" fn skippedEntity, Impl: IVBSAXContentHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn skippedEntity, Impl: IVBSAXContentHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.skippedEntity(::core::mem::transmute_copy(&strname)).into() @@ -2995,20 +2995,20 @@ impl IVBSAXContentHandler_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IVBSAXDTDHandler_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn notationDecl(&self, strname: *mut super::super::super::Foundation::BSTR, strpublicid: *mut super::super::super::Foundation::BSTR, strsystemid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn unparsedEntityDecl(&self, strname: *mut super::super::super::Foundation::BSTR, strpublicid: *mut super::super::super::Foundation::BSTR, strsystemid: *mut super::super::super::Foundation::BSTR, strnotationname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn notationDecl(&self, strname: *mut ::windows::core::BSTR, strpublicid: *mut ::windows::core::BSTR, strsystemid: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn unparsedEntityDecl(&self, strname: *mut ::windows::core::BSTR, strpublicid: *mut ::windows::core::BSTR, strsystemid: *mut ::windows::core::BSTR, strnotationname: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IVBSAXDTDHandler {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IVBSAXDTDHandler_Vtbl { pub const fn new, Impl: IVBSAXDTDHandler_Impl, const OFFSET: isize>() -> IVBSAXDTDHandler_Vtbl { - unsafe extern "system" fn notationDecl, Impl: IVBSAXDTDHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: *mut super::super::super::Foundation::BSTR, strpublicid: *mut super::super::super::Foundation::BSTR, strsystemid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn notationDecl, Impl: IVBSAXDTDHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpublicid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strsystemid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.notationDecl(::core::mem::transmute_copy(&strname), ::core::mem::transmute_copy(&strpublicid), ::core::mem::transmute_copy(&strsystemid)).into() } - unsafe extern "system" fn unparsedEntityDecl, Impl: IVBSAXDTDHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: *mut super::super::super::Foundation::BSTR, strpublicid: *mut super::super::super::Foundation::BSTR, strsystemid: *mut super::super::super::Foundation::BSTR, strnotationname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn unparsedEntityDecl, Impl: IVBSAXDTDHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpublicid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strsystemid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strnotationname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.unparsedEntityDecl(::core::mem::transmute_copy(&strname), ::core::mem::transmute_copy(&strpublicid), ::core::mem::transmute_copy(&strsystemid), ::core::mem::transmute_copy(&strnotationname)).into() @@ -3025,32 +3025,32 @@ impl IVBSAXDTDHandler_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IVBSAXDeclHandler_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn elementDecl(&self, strname: *mut super::super::super::Foundation::BSTR, strmodel: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn attributeDecl(&self, strelementname: *mut super::super::super::Foundation::BSTR, strattributename: *mut super::super::super::Foundation::BSTR, strtype: *mut super::super::super::Foundation::BSTR, strvaluedefault: *mut super::super::super::Foundation::BSTR, strvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn internalEntityDecl(&self, strname: *mut super::super::super::Foundation::BSTR, strvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn externalEntityDecl(&self, strname: *mut super::super::super::Foundation::BSTR, strpublicid: *mut super::super::super::Foundation::BSTR, strsystemid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn elementDecl(&self, strname: *mut ::windows::core::BSTR, strmodel: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn attributeDecl(&self, strelementname: *mut ::windows::core::BSTR, strattributename: *mut ::windows::core::BSTR, strtype: *mut ::windows::core::BSTR, strvaluedefault: *mut ::windows::core::BSTR, strvalue: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn internalEntityDecl(&self, strname: *mut ::windows::core::BSTR, strvalue: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn externalEntityDecl(&self, strname: *mut ::windows::core::BSTR, strpublicid: *mut ::windows::core::BSTR, strsystemid: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IVBSAXDeclHandler {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IVBSAXDeclHandler_Vtbl { pub const fn new, Impl: IVBSAXDeclHandler_Impl, const OFFSET: isize>() -> IVBSAXDeclHandler_Vtbl { - unsafe extern "system" fn elementDecl, Impl: IVBSAXDeclHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: *mut super::super::super::Foundation::BSTR, strmodel: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn elementDecl, Impl: IVBSAXDeclHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strmodel: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.elementDecl(::core::mem::transmute_copy(&strname), ::core::mem::transmute_copy(&strmodel)).into() } - unsafe extern "system" fn attributeDecl, Impl: IVBSAXDeclHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strelementname: *mut super::super::super::Foundation::BSTR, strattributename: *mut super::super::super::Foundation::BSTR, strtype: *mut super::super::super::Foundation::BSTR, strvaluedefault: *mut super::super::super::Foundation::BSTR, strvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn attributeDecl, Impl: IVBSAXDeclHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strelementname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strattributename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strtype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strvaluedefault: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.attributeDecl(::core::mem::transmute_copy(&strelementname), ::core::mem::transmute_copy(&strattributename), ::core::mem::transmute_copy(&strtype), ::core::mem::transmute_copy(&strvaluedefault), ::core::mem::transmute_copy(&strvalue)).into() } - unsafe extern "system" fn internalEntityDecl, Impl: IVBSAXDeclHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: *mut super::super::super::Foundation::BSTR, strvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn internalEntityDecl, Impl: IVBSAXDeclHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.internalEntityDecl(::core::mem::transmute_copy(&strname), ::core::mem::transmute_copy(&strvalue)).into() } - unsafe extern "system" fn externalEntityDecl, Impl: IVBSAXDeclHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: *mut super::super::super::Foundation::BSTR, strpublicid: *mut super::super::super::Foundation::BSTR, strsystemid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn externalEntityDecl, Impl: IVBSAXDeclHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpublicid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strsystemid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.externalEntityDecl(::core::mem::transmute_copy(&strname), ::core::mem::transmute_copy(&strpublicid), ::core::mem::transmute_copy(&strsystemid)).into() @@ -3069,14 +3069,14 @@ impl IVBSAXDeclHandler_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IVBSAXEntityResolver_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn resolveEntity(&self, strpublicid: *mut super::super::super::Foundation::BSTR, strsystemid: *mut super::super::super::Foundation::BSTR, varinput: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn resolveEntity(&self, strpublicid: *mut ::windows::core::BSTR, strsystemid: *mut ::windows::core::BSTR, varinput: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IVBSAXEntityResolver {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IVBSAXEntityResolver_Vtbl { pub const fn new, Impl: IVBSAXEntityResolver_Impl, const OFFSET: isize>() -> IVBSAXEntityResolver_Vtbl { - unsafe extern "system" fn resolveEntity, Impl: IVBSAXEntityResolver_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpublicid: *mut super::super::super::Foundation::BSTR, strsystemid: *mut super::super::super::Foundation::BSTR, varinput: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn resolveEntity, Impl: IVBSAXEntityResolver_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpublicid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strsystemid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, varinput: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.resolveEntity(::core::mem::transmute_copy(&strpublicid), ::core::mem::transmute_copy(&strsystemid), ::core::mem::transmute_copy(&varinput)).into() @@ -3092,26 +3092,26 @@ impl IVBSAXEntityResolver_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IVBSAXErrorHandler_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn error(&self, olocator: &::core::option::Option, strerrormessage: *mut super::super::super::Foundation::BSTR, nerrorcode: i32) -> ::windows::core::Result<()>; - fn fatalError(&self, olocator: &::core::option::Option, strerrormessage: *mut super::super::super::Foundation::BSTR, nerrorcode: i32) -> ::windows::core::Result<()>; - fn ignorableWarning(&self, olocator: &::core::option::Option, strerrormessage: *mut super::super::super::Foundation::BSTR, nerrorcode: i32) -> ::windows::core::Result<()>; + fn error(&self, olocator: &::core::option::Option, strerrormessage: *mut ::windows::core::BSTR, nerrorcode: i32) -> ::windows::core::Result<()>; + fn fatalError(&self, olocator: &::core::option::Option, strerrormessage: *mut ::windows::core::BSTR, nerrorcode: i32) -> ::windows::core::Result<()>; + fn ignorableWarning(&self, olocator: &::core::option::Option, strerrormessage: *mut ::windows::core::BSTR, nerrorcode: i32) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IVBSAXErrorHandler {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IVBSAXErrorHandler_Vtbl { pub const fn new, Impl: IVBSAXErrorHandler_Impl, const OFFSET: isize>() -> IVBSAXErrorHandler_Vtbl { - unsafe extern "system" fn error, Impl: IVBSAXErrorHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, olocator: *mut ::core::ffi::c_void, strerrormessage: *mut super::super::super::Foundation::BSTR, nerrorcode: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn error, Impl: IVBSAXErrorHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, olocator: *mut ::core::ffi::c_void, strerrormessage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, nerrorcode: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.error(::core::mem::transmute(&olocator), ::core::mem::transmute_copy(&strerrormessage), ::core::mem::transmute_copy(&nerrorcode)).into() } - unsafe extern "system" fn fatalError, Impl: IVBSAXErrorHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, olocator: *mut ::core::ffi::c_void, strerrormessage: *mut super::super::super::Foundation::BSTR, nerrorcode: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn fatalError, Impl: IVBSAXErrorHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, olocator: *mut ::core::ffi::c_void, strerrormessage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, nerrorcode: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.fatalError(::core::mem::transmute(&olocator), ::core::mem::transmute_copy(&strerrormessage), ::core::mem::transmute_copy(&nerrorcode)).into() } - unsafe extern "system" fn ignorableWarning, Impl: IVBSAXErrorHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, olocator: *mut ::core::ffi::c_void, strerrormessage: *mut super::super::super::Foundation::BSTR, nerrorcode: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn ignorableWarning, Impl: IVBSAXErrorHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, olocator: *mut ::core::ffi::c_void, strerrormessage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, nerrorcode: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ignorableWarning(::core::mem::transmute(&olocator), ::core::mem::transmute_copy(&strerrormessage), ::core::mem::transmute_copy(&nerrorcode)).into() @@ -3129,20 +3129,20 @@ impl IVBSAXErrorHandler_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IVBSAXLexicalHandler_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn startDTD(&self, strname: *mut super::super::super::Foundation::BSTR, strpublicid: *mut super::super::super::Foundation::BSTR, strsystemid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn startDTD(&self, strname: *mut ::windows::core::BSTR, strpublicid: *mut ::windows::core::BSTR, strsystemid: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn endDTD(&self) -> ::windows::core::Result<()>; - fn startEntity(&self, strname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn endEntity(&self, strname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn startEntity(&self, strname: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn endEntity(&self, strname: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn startCDATA(&self) -> ::windows::core::Result<()>; fn endCDATA(&self) -> ::windows::core::Result<()>; - fn comment(&self, strchars: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn comment(&self, strchars: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IVBSAXLexicalHandler {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IVBSAXLexicalHandler_Vtbl { pub const fn new, Impl: IVBSAXLexicalHandler_Impl, const OFFSET: isize>() -> IVBSAXLexicalHandler_Vtbl { - unsafe extern "system" fn startDTD, Impl: IVBSAXLexicalHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: *mut super::super::super::Foundation::BSTR, strpublicid: *mut super::super::super::Foundation::BSTR, strsystemid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn startDTD, Impl: IVBSAXLexicalHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpublicid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strsystemid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.startDTD(::core::mem::transmute_copy(&strname), ::core::mem::transmute_copy(&strpublicid), ::core::mem::transmute_copy(&strsystemid)).into() @@ -3152,12 +3152,12 @@ impl IVBSAXLexicalHandler_Vtbl { let this = (*this).get_impl(); this.endDTD().into() } - unsafe extern "system" fn startEntity, Impl: IVBSAXLexicalHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn startEntity, Impl: IVBSAXLexicalHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.startEntity(::core::mem::transmute_copy(&strname)).into() } - unsafe extern "system" fn endEntity, Impl: IVBSAXLexicalHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn endEntity, Impl: IVBSAXLexicalHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.endEntity(::core::mem::transmute_copy(&strname)).into() @@ -3172,7 +3172,7 @@ impl IVBSAXLexicalHandler_Vtbl { let this = (*this).get_impl(); this.endCDATA().into() } - unsafe extern "system" fn comment, Impl: IVBSAXLexicalHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strchars: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn comment, Impl: IVBSAXLexicalHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strchars: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.comment(::core::mem::transmute_copy(&strchars)).into() @@ -3196,8 +3196,8 @@ impl IVBSAXLexicalHandler_Vtbl { pub trait IVBSAXLocator_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { fn columnNumber(&self) -> ::windows::core::Result; fn lineNumber(&self) -> ::windows::core::Result; - fn publicId(&self) -> ::windows::core::Result; - fn systemId(&self) -> ::windows::core::Result; + fn publicId(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn systemId(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IVBSAXLocator {} @@ -3226,7 +3226,7 @@ impl IVBSAXLocator_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn publicId, Impl: IVBSAXLocator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpublicid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn publicId, Impl: IVBSAXLocator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpublicid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.publicId() { @@ -3237,7 +3237,7 @@ impl IVBSAXLocator_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn systemId, Impl: IVBSAXLocator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strsystemid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn systemId, Impl: IVBSAXLocator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strsystemid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.systemId() { @@ -3298,10 +3298,10 @@ impl IVBSAXXMLFilter_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IVBSAXXMLReader_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn getFeature(&self, strname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn putFeature(&self, strname: &super::super::super::Foundation::BSTR, fvalue: i16) -> ::windows::core::Result<()>; - fn getProperty(&self, strname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn putProperty(&self, strname: &super::super::super::Foundation::BSTR, varvalue: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn getFeature(&self, strname: &::windows::core::BSTR) -> ::windows::core::Result; + fn putFeature(&self, strname: &::windows::core::BSTR, fvalue: i16) -> ::windows::core::Result<()>; + fn getProperty(&self, strname: &::windows::core::BSTR) -> ::windows::core::Result; + fn putProperty(&self, strname: &::windows::core::BSTR, varvalue: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn entityResolver(&self) -> ::windows::core::Result; fn putref_entityResolver(&self, oresolver: &::core::option::Option) -> ::windows::core::Result<()>; fn contentHandler(&self) -> ::windows::core::Result; @@ -3310,19 +3310,19 @@ pub trait IVBSAXXMLReader_Impl: Sized + super::super::super::System::Com::IDispa fn putref_dtdHandler(&self, ohandler: &::core::option::Option) -> ::windows::core::Result<()>; fn errorHandler(&self) -> ::windows::core::Result; fn putref_errorHandler(&self, ohandler: &::core::option::Option) -> ::windows::core::Result<()>; - fn baseURL(&self) -> ::windows::core::Result; - fn SetbaseURL(&self, strbaseurl: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn secureBaseURL(&self) -> ::windows::core::Result; - fn SetsecureBaseURL(&self, strsecurebaseurl: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn baseURL(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetbaseURL(&self, strbaseurl: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn secureBaseURL(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetsecureBaseURL(&self, strsecurebaseurl: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn parse(&self, varinput: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn parseURL(&self, strurl: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn parseURL(&self, strurl: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IVBSAXXMLReader {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IVBSAXXMLReader_Vtbl { pub const fn new, Impl: IVBSAXXMLReader_Impl, const OFFSET: isize>() -> IVBSAXXMLReader_Vtbl { - unsafe extern "system" fn getFeature, Impl: IVBSAXXMLReader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, fvalue: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn getFeature, Impl: IVBSAXXMLReader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fvalue: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getFeature(::core::mem::transmute(&strname)) { @@ -3333,12 +3333,12 @@ impl IVBSAXXMLReader_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn putFeature, Impl: IVBSAXXMLReader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, fvalue: i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn putFeature, Impl: IVBSAXXMLReader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fvalue: i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.putFeature(::core::mem::transmute(&strname), ::core::mem::transmute_copy(&fvalue)).into() } - unsafe extern "system" fn getProperty, Impl: IVBSAXXMLReader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, varvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn getProperty, Impl: IVBSAXXMLReader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getProperty(::core::mem::transmute(&strname)) { @@ -3349,7 +3349,7 @@ impl IVBSAXXMLReader_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn putProperty, Impl: IVBSAXXMLReader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, varvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn putProperty, Impl: IVBSAXXMLReader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.putProperty(::core::mem::transmute(&strname), ::core::mem::transmute(&varvalue)).into() @@ -3418,7 +3418,7 @@ impl IVBSAXXMLReader_Vtbl { let this = (*this).get_impl(); this.putref_errorHandler(::core::mem::transmute(&ohandler)).into() } - unsafe extern "system" fn baseURL, Impl: IVBSAXXMLReader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strbaseurl: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn baseURL, Impl: IVBSAXXMLReader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strbaseurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.baseURL() { @@ -3429,12 +3429,12 @@ impl IVBSAXXMLReader_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetbaseURL, Impl: IVBSAXXMLReader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strbaseurl: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetbaseURL, Impl: IVBSAXXMLReader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strbaseurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetbaseURL(::core::mem::transmute(&strbaseurl)).into() } - unsafe extern "system" fn secureBaseURL, Impl: IVBSAXXMLReader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strsecurebaseurl: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn secureBaseURL, Impl: IVBSAXXMLReader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strsecurebaseurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.secureBaseURL() { @@ -3445,7 +3445,7 @@ impl IVBSAXXMLReader_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetsecureBaseURL, Impl: IVBSAXXMLReader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strsecurebaseurl: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetsecureBaseURL, Impl: IVBSAXXMLReader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strsecurebaseurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetsecureBaseURL(::core::mem::transmute(&strsecurebaseurl)).into() @@ -3455,7 +3455,7 @@ impl IVBSAXXMLReader_Vtbl { let this = (*this).get_impl(); this.parse(::core::mem::transmute(&varinput)).into() } - unsafe extern "system" fn parseURL, Impl: IVBSAXXMLReader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strurl: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn parseURL, Impl: IVBSAXXMLReader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.parseURL(::core::mem::transmute(&strurl)).into() @@ -3488,15 +3488,15 @@ impl IVBSAXXMLReader_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IXMLAttribute_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn name(&self) -> ::windows::core::Result; - fn value(&self) -> ::windows::core::Result; + fn name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn value(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IXMLAttribute {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IXMLAttribute_Vtbl { pub const fn new, Impl: IXMLAttribute_Impl, const OFFSET: isize>() -> IXMLAttribute_Vtbl { - unsafe extern "system" fn name, Impl: IXMLAttribute_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, n: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn name, Impl: IXMLAttribute_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, n: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.name() { @@ -3507,7 +3507,7 @@ impl IXMLAttribute_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn value, Impl: IXMLAttribute_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, v: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn value, Impl: IXMLAttribute_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, v: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.value() { @@ -3530,7 +3530,7 @@ impl IXMLAttribute_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IXMLDOMAttribute_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + IXMLDOMNode_Impl { - fn name(&self, attributename: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn name(&self, attributename: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn value(&self, attributevalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn Setvalue(&self, attributevalue: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; } @@ -3539,7 +3539,7 @@ impl ::windows::core::RuntimeName for IXMLDOMAttribute {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IXMLDOMAttribute_Vtbl { pub const fn new, Impl: IXMLDOMAttribute_Impl, const OFFSET: isize>() -> IXMLDOMAttribute_Vtbl { - unsafe extern "system" fn name, Impl: IXMLDOMAttribute_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, attributename: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn name, Impl: IXMLDOMAttribute_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, attributename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.name(::core::mem::transmute_copy(&attributename)).into() @@ -3580,26 +3580,26 @@ impl IXMLDOMCDATASection_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IXMLDOMCharacterData_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + IXMLDOMNode_Impl { - fn data(&self, data: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Setdata(&self, data: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn data(&self, data: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Setdata(&self, data: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn length(&self, datalength: *mut i32) -> ::windows::core::Result<()>; - fn substringData(&self, offset: i32, count: i32, data: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn appendData(&self, data: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn insertData(&self, offset: i32, data: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn substringData(&self, offset: i32, count: i32, data: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn appendData(&self, data: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn insertData(&self, offset: i32, data: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn deleteData(&self, offset: i32, count: i32) -> ::windows::core::Result<()>; - fn replaceData(&self, offset: i32, count: i32, data: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn replaceData(&self, offset: i32, count: i32, data: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IXMLDOMCharacterData {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IXMLDOMCharacterData_Vtbl { pub const fn new, Impl: IXMLDOMCharacterData_Impl, const OFFSET: isize>() -> IXMLDOMCharacterData_Vtbl { - unsafe extern "system" fn data, Impl: IXMLDOMCharacterData_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, data: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn data, Impl: IXMLDOMCharacterData_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, data: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.data(::core::mem::transmute_copy(&data)).into() } - unsafe extern "system" fn Setdata, Impl: IXMLDOMCharacterData_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Setdata, Impl: IXMLDOMCharacterData_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Setdata(::core::mem::transmute(&data)).into() @@ -3609,17 +3609,17 @@ impl IXMLDOMCharacterData_Vtbl { let this = (*this).get_impl(); this.length(::core::mem::transmute_copy(&datalength)).into() } - unsafe extern "system" fn substringData, Impl: IXMLDOMCharacterData_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, offset: i32, count: i32, data: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn substringData, Impl: IXMLDOMCharacterData_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, offset: i32, count: i32, data: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.substringData(::core::mem::transmute_copy(&offset), ::core::mem::transmute_copy(&count), ::core::mem::transmute_copy(&data)).into() } - unsafe extern "system" fn appendData, Impl: IXMLDOMCharacterData_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn appendData, Impl: IXMLDOMCharacterData_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.appendData(::core::mem::transmute(&data)).into() } - unsafe extern "system" fn insertData, Impl: IXMLDOMCharacterData_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, offset: i32, data: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn insertData, Impl: IXMLDOMCharacterData_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, offset: i32, data: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.insertData(::core::mem::transmute_copy(&offset), ::core::mem::transmute(&data)).into() @@ -3629,7 +3629,7 @@ impl IXMLDOMCharacterData_Vtbl { let this = (*this).get_impl(); this.deleteData(::core::mem::transmute_copy(&offset), ::core::mem::transmute_copy(&count)).into() } - unsafe extern "system" fn replaceData, Impl: IXMLDOMCharacterData_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, offset: i32, count: i32, data: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn replaceData, Impl: IXMLDOMCharacterData_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, offset: i32, count: i32, data: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.replaceData(::core::mem::transmute_copy(&offset), ::core::mem::transmute_copy(&count), ::core::mem::transmute(&data)).into() @@ -3669,25 +3669,25 @@ pub trait IXMLDOMDocument_Impl: Sized + super::super::super::System::Com::IDispa fn implementation(&self) -> ::windows::core::Result; fn documentElement(&self) -> ::windows::core::Result; fn putref_documentElement(&self, domelement: &::core::option::Option) -> ::windows::core::Result<()>; - fn createElement(&self, tagname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; + fn createElement(&self, tagname: &::windows::core::BSTR) -> ::windows::core::Result; fn createDocumentFragment(&self) -> ::windows::core::Result; - fn createTextNode(&self, data: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn createComment(&self, data: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn createCDATASection(&self, data: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn createProcessingInstruction(&self, target: &super::super::super::Foundation::BSTR, data: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn createAttribute(&self, name: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn createEntityReference(&self, name: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn getElementsByTagName(&self, tagname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn createNode(&self, r#type: &super::super::super::System::Com::VARIANT, name: &super::super::super::Foundation::BSTR, namespaceuri: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn nodeFromID(&self, idstring: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; + fn createTextNode(&self, data: &::windows::core::BSTR) -> ::windows::core::Result; + fn createComment(&self, data: &::windows::core::BSTR) -> ::windows::core::Result; + fn createCDATASection(&self, data: &::windows::core::BSTR) -> ::windows::core::Result; + fn createProcessingInstruction(&self, target: &::windows::core::BSTR, data: &::windows::core::BSTR) -> ::windows::core::Result; + fn createAttribute(&self, name: &::windows::core::BSTR) -> ::windows::core::Result; + fn createEntityReference(&self, name: &::windows::core::BSTR) -> ::windows::core::Result; + fn getElementsByTagName(&self, tagname: &::windows::core::BSTR) -> ::windows::core::Result; + fn createNode(&self, r#type: &super::super::super::System::Com::VARIANT, name: &::windows::core::BSTR, namespaceuri: &::windows::core::BSTR) -> ::windows::core::Result; + fn nodeFromID(&self, idstring: &::windows::core::BSTR) -> ::windows::core::Result; fn load(&self, xmlsource: &super::super::super::System::Com::VARIANT, issuccessful: *mut i16) -> ::windows::core::Result<()>; fn readyState(&self, value: *mut i32) -> ::windows::core::Result<()>; fn parseError(&self) -> ::windows::core::Result; - fn url(&self, urlstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn url(&self, urlstring: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn r#async(&self, isasync: *mut i16) -> ::windows::core::Result<()>; fn Setasync(&self, isasync: i16) -> ::windows::core::Result<()>; fn abort(&self) -> ::windows::core::Result<()>; - fn loadXML(&self, bstrxml: &super::super::super::Foundation::BSTR, issuccessful: *mut i16) -> ::windows::core::Result<()>; + fn loadXML(&self, bstrxml: &::windows::core::BSTR, issuccessful: *mut i16) -> ::windows::core::Result<()>; fn save(&self, destination: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn validateOnParse(&self, isvalidating: *mut i16) -> ::windows::core::Result<()>; fn SetvalidateOnParse(&self, isvalidating: i16) -> ::windows::core::Result<()>; @@ -3742,7 +3742,7 @@ impl IXMLDOMDocument_Vtbl { let this = (*this).get_impl(); this.putref_documentElement(::core::mem::transmute(&domelement)).into() } - unsafe extern "system" fn createElement, Impl: IXMLDOMDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, tagname: ::core::mem::ManuallyDrop, element: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn createElement, Impl: IXMLDOMDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, tagname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, element: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.createElement(::core::mem::transmute(&tagname)) { @@ -3764,7 +3764,7 @@ impl IXMLDOMDocument_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn createTextNode, Impl: IXMLDOMDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop, text: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn createTextNode, Impl: IXMLDOMDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop<::windows::core::BSTR>, text: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.createTextNode(::core::mem::transmute(&data)) { @@ -3775,7 +3775,7 @@ impl IXMLDOMDocument_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn createComment, Impl: IXMLDOMDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop, comment: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn createComment, Impl: IXMLDOMDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop<::windows::core::BSTR>, comment: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.createComment(::core::mem::transmute(&data)) { @@ -3786,7 +3786,7 @@ impl IXMLDOMDocument_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn createCDATASection, Impl: IXMLDOMDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop, cdata: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn createCDATASection, Impl: IXMLDOMDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop<::windows::core::BSTR>, cdata: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.createCDATASection(::core::mem::transmute(&data)) { @@ -3797,7 +3797,7 @@ impl IXMLDOMDocument_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn createProcessingInstruction, Impl: IXMLDOMDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, target: ::core::mem::ManuallyDrop, data: ::core::mem::ManuallyDrop, pi: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn createProcessingInstruction, Impl: IXMLDOMDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, target: ::core::mem::ManuallyDrop<::windows::core::BSTR>, data: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pi: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.createProcessingInstruction(::core::mem::transmute(&target), ::core::mem::transmute(&data)) { @@ -3808,7 +3808,7 @@ impl IXMLDOMDocument_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn createAttribute, Impl: IXMLDOMDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, attribute: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn createAttribute, Impl: IXMLDOMDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, attribute: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.createAttribute(::core::mem::transmute(&name)) { @@ -3819,7 +3819,7 @@ impl IXMLDOMDocument_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn createEntityReference, Impl: IXMLDOMDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, entityref: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn createEntityReference, Impl: IXMLDOMDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, entityref: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.createEntityReference(::core::mem::transmute(&name)) { @@ -3830,7 +3830,7 @@ impl IXMLDOMDocument_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn getElementsByTagName, Impl: IXMLDOMDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, tagname: ::core::mem::ManuallyDrop, resultlist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn getElementsByTagName, Impl: IXMLDOMDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, tagname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, resultlist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getElementsByTagName(::core::mem::transmute(&tagname)) { @@ -3841,7 +3841,7 @@ impl IXMLDOMDocument_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn createNode, Impl: IXMLDOMDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, r#type: ::core::mem::ManuallyDrop, name: ::core::mem::ManuallyDrop, namespaceuri: ::core::mem::ManuallyDrop, node: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn createNode, Impl: IXMLDOMDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, r#type: ::core::mem::ManuallyDrop, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, namespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, node: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.createNode(::core::mem::transmute(&r#type), ::core::mem::transmute(&name), ::core::mem::transmute(&namespaceuri)) { @@ -3852,7 +3852,7 @@ impl IXMLDOMDocument_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn nodeFromID, Impl: IXMLDOMDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, idstring: ::core::mem::ManuallyDrop, node: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn nodeFromID, Impl: IXMLDOMDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, idstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, node: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.nodeFromID(::core::mem::transmute(&idstring)) { @@ -3884,7 +3884,7 @@ impl IXMLDOMDocument_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn url, Impl: IXMLDOMDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, urlstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn url, Impl: IXMLDOMDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, urlstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.url(::core::mem::transmute_copy(&urlstring)).into() @@ -3904,7 +3904,7 @@ impl IXMLDOMDocument_Vtbl { let this = (*this).get_impl(); this.abort().into() } - unsafe extern "system" fn loadXML, Impl: IXMLDOMDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrxml: ::core::mem::ManuallyDrop, issuccessful: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn loadXML, Impl: IXMLDOMDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrxml: ::core::mem::ManuallyDrop<::windows::core::BSTR>, issuccessful: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.loadXML(::core::mem::transmute(&bstrxml), ::core::mem::transmute_copy(&issuccessful)).into() @@ -4006,8 +4006,8 @@ pub trait IXMLDOMDocument2_Impl: Sized + super::super::super::System::Com::IDisp fn schemas(&self) -> ::windows::core::Result; fn putref_schemas(&self, othercollection: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn validate(&self) -> ::windows::core::Result; - fn setProperty(&self, name: &super::super::super::Foundation::BSTR, value: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn getProperty(&self, name: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; + fn setProperty(&self, name: &::windows::core::BSTR, value: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn getProperty(&self, name: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IXMLDOMDocument2 {} @@ -4052,12 +4052,12 @@ impl IXMLDOMDocument2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn setProperty, Impl: IXMLDOMDocument2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn setProperty, Impl: IXMLDOMDocument2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.setProperty(::core::mem::transmute(&name), ::core::mem::transmute(&value)).into() } - unsafe extern "system" fn getProperty, Impl: IXMLDOMDocument2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, value: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn getProperty, Impl: IXMLDOMDocument2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getProperty(::core::mem::transmute(&name)) { @@ -4139,7 +4139,7 @@ impl IXMLDOMDocumentFragment_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IXMLDOMDocumentType_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + IXMLDOMNode_Impl { - fn name(&self, rootname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn name(&self, rootname: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn entities(&self) -> ::windows::core::Result; fn notations(&self) -> ::windows::core::Result; } @@ -4148,7 +4148,7 @@ impl ::windows::core::RuntimeName for IXMLDOMDocumentType {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IXMLDOMDocumentType_Vtbl { pub const fn new, Impl: IXMLDOMDocumentType_Impl, const OFFSET: isize>() -> IXMLDOMDocumentType_Vtbl { - unsafe extern "system" fn name, Impl: IXMLDOMDocumentType_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, rootname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn name, Impl: IXMLDOMDocumentType_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, rootname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.name(::core::mem::transmute_copy(&rootname)).into() @@ -4188,14 +4188,14 @@ impl IXMLDOMDocumentType_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IXMLDOMElement_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + IXMLDOMNode_Impl { - fn tagName(&self, tagname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn getAttribute(&self, name: &super::super::super::Foundation::BSTR, value: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn setAttribute(&self, name: &super::super::super::Foundation::BSTR, value: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn removeAttribute(&self, name: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn getAttributeNode(&self, name: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; + fn tagName(&self, tagname: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn getAttribute(&self, name: &::windows::core::BSTR, value: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn setAttribute(&self, name: &::windows::core::BSTR, value: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn removeAttribute(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn getAttributeNode(&self, name: &::windows::core::BSTR) -> ::windows::core::Result; fn setAttributeNode(&self, domattribute: &::core::option::Option) -> ::windows::core::Result; fn removeAttributeNode(&self, domattribute: &::core::option::Option) -> ::windows::core::Result; - fn getElementsByTagName(&self, tagname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; + fn getElementsByTagName(&self, tagname: &::windows::core::BSTR) -> ::windows::core::Result; fn normalize(&self) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -4203,27 +4203,27 @@ impl ::windows::core::RuntimeName for IXMLDOMElement {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IXMLDOMElement_Vtbl { pub const fn new, Impl: IXMLDOMElement_Impl, const OFFSET: isize>() -> IXMLDOMElement_Vtbl { - unsafe extern "system" fn tagName, Impl: IXMLDOMElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, tagname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn tagName, Impl: IXMLDOMElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, tagname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.tagName(::core::mem::transmute_copy(&tagname)).into() } - unsafe extern "system" fn getAttribute, Impl: IXMLDOMElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, value: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn getAttribute, Impl: IXMLDOMElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.getAttribute(::core::mem::transmute(&name), ::core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn setAttribute, Impl: IXMLDOMElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn setAttribute, Impl: IXMLDOMElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.setAttribute(::core::mem::transmute(&name), ::core::mem::transmute(&value)).into() } - unsafe extern "system" fn removeAttribute, Impl: IXMLDOMElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn removeAttribute, Impl: IXMLDOMElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.removeAttribute(::core::mem::transmute(&name)).into() } - unsafe extern "system" fn getAttributeNode, Impl: IXMLDOMElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, attributenode: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn getAttributeNode, Impl: IXMLDOMElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, attributenode: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getAttributeNode(::core::mem::transmute(&name)) { @@ -4256,7 +4256,7 @@ impl IXMLDOMElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn getElementsByTagName, Impl: IXMLDOMElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, tagname: ::core::mem::ManuallyDrop, resultlist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn getElementsByTagName, Impl: IXMLDOMElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, tagname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, resultlist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getElementsByTagName(::core::mem::transmute(&tagname)) { @@ -4293,7 +4293,7 @@ impl IXMLDOMElement_Vtbl { pub trait IXMLDOMEntity_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + IXMLDOMNode_Impl { fn publicId(&self, publicid: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn systemId(&self, systemid: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn notationName(&self, name: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn notationName(&self, name: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IXMLDOMEntity {} @@ -4310,7 +4310,7 @@ impl IXMLDOMEntity_Vtbl { let this = (*this).get_impl(); this.systemId(::core::mem::transmute_copy(&systemid)).into() } - unsafe extern "system" fn notationName, Impl: IXMLDOMEntity_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn notationName, Impl: IXMLDOMEntity_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.notationName(::core::mem::transmute_copy(&name)).into() @@ -4341,14 +4341,14 @@ impl IXMLDOMEntityReference_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IXMLDOMImplementation_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn hasFeature(&self, feature: &super::super::super::Foundation::BSTR, version: &super::super::super::Foundation::BSTR, hasfeature: *mut i16) -> ::windows::core::Result<()>; + fn hasFeature(&self, feature: &::windows::core::BSTR, version: &::windows::core::BSTR, hasfeature: *mut i16) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IXMLDOMImplementation {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IXMLDOMImplementation_Vtbl { pub const fn new, Impl: IXMLDOMImplementation_Impl, const OFFSET: isize>() -> IXMLDOMImplementation_Vtbl { - unsafe extern "system" fn hasFeature, Impl: IXMLDOMImplementation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feature: ::core::mem::ManuallyDrop, version: ::core::mem::ManuallyDrop, hasfeature: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn hasFeature, Impl: IXMLDOMImplementation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feature: ::core::mem::ManuallyDrop<::windows::core::BSTR>, version: ::core::mem::ManuallyDrop<::windows::core::BSTR>, hasfeature: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.hasFeature(::core::mem::transmute(&feature), ::core::mem::transmute(&version), ::core::mem::transmute_copy(&hasfeature)).into() @@ -4361,13 +4361,13 @@ impl IXMLDOMImplementation_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IXMLDOMNamedNodeMap_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn getNamedItem(&self, name: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; + fn getNamedItem(&self, name: &::windows::core::BSTR) -> ::windows::core::Result; fn setNamedItem(&self, newitem: &::core::option::Option) -> ::windows::core::Result; - fn removeNamedItem(&self, name: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; + fn removeNamedItem(&self, name: &::windows::core::BSTR) -> ::windows::core::Result; fn get_item(&self, index: i32) -> ::windows::core::Result; fn length(&self, listlength: *mut i32) -> ::windows::core::Result<()>; - fn getQualifiedItem(&self, basename: &super::super::super::Foundation::BSTR, namespaceuri: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn removeQualifiedItem(&self, basename: &super::super::super::Foundation::BSTR, namespaceuri: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; + fn getQualifiedItem(&self, basename: &::windows::core::BSTR, namespaceuri: &::windows::core::BSTR) -> ::windows::core::Result; + fn removeQualifiedItem(&self, basename: &::windows::core::BSTR, namespaceuri: &::windows::core::BSTR) -> ::windows::core::Result; fn nextNode(&self) -> ::windows::core::Result; fn reset(&self) -> ::windows::core::Result<()>; fn _newEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; @@ -4377,7 +4377,7 @@ impl ::windows::core::RuntimeName for IXMLDOMNamedNodeMap {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IXMLDOMNamedNodeMap_Vtbl { pub const fn new, Impl: IXMLDOMNamedNodeMap_Impl, const OFFSET: isize>() -> IXMLDOMNamedNodeMap_Vtbl { - unsafe extern "system" fn getNamedItem, Impl: IXMLDOMNamedNodeMap_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, nameditem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn getNamedItem, Impl: IXMLDOMNamedNodeMap_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, nameditem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getNamedItem(::core::mem::transmute(&name)) { @@ -4399,7 +4399,7 @@ impl IXMLDOMNamedNodeMap_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn removeNamedItem, Impl: IXMLDOMNamedNodeMap_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, nameditem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn removeNamedItem, Impl: IXMLDOMNamedNodeMap_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, nameditem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.removeNamedItem(::core::mem::transmute(&name)) { @@ -4426,7 +4426,7 @@ impl IXMLDOMNamedNodeMap_Vtbl { let this = (*this).get_impl(); this.length(::core::mem::transmute_copy(&listlength)).into() } - unsafe extern "system" fn getQualifiedItem, Impl: IXMLDOMNamedNodeMap_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, basename: ::core::mem::ManuallyDrop, namespaceuri: ::core::mem::ManuallyDrop, qualifieditem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn getQualifiedItem, Impl: IXMLDOMNamedNodeMap_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, basename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, namespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, qualifieditem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getQualifiedItem(::core::mem::transmute(&basename), ::core::mem::transmute(&namespaceuri)) { @@ -4437,7 +4437,7 @@ impl IXMLDOMNamedNodeMap_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn removeQualifiedItem, Impl: IXMLDOMNamedNodeMap_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, basename: ::core::mem::ManuallyDrop, namespaceuri: ::core::mem::ManuallyDrop, qualifieditem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn removeQualifiedItem, Impl: IXMLDOMNamedNodeMap_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, basename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, namespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, qualifieditem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.removeQualifiedItem(::core::mem::transmute(&basename), ::core::mem::transmute(&namespaceuri)) { @@ -4495,7 +4495,7 @@ impl IXMLDOMNamedNodeMap_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IXMLDOMNode_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn nodeName(&self, name: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn nodeName(&self, name: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn nodeValue(&self, value: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn SetnodeValue(&self, value: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn nodeType(&self, r#type: *mut DOMNodeType) -> ::windows::core::Result<()>; @@ -4513,23 +4513,23 @@ pub trait IXMLDOMNode_Impl: Sized + super::super::super::System::Com::IDispatch_ fn hasChildNodes(&self, haschild: *mut i16) -> ::windows::core::Result<()>; fn ownerDocument(&self) -> ::windows::core::Result; fn cloneNode(&self, deep: i16) -> ::windows::core::Result; - fn nodeTypeString(&self, nodetype: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn text(&self, text: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Settext(&self, text: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn nodeTypeString(&self, nodetype: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn text(&self, text: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Settext(&self, text: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn specified(&self, isspecified: *mut i16) -> ::windows::core::Result<()>; fn definition(&self) -> ::windows::core::Result; fn nodeTypedValue(&self, typedvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn SetnodeTypedValue(&self, typedvalue: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn dataType(&self, datatypename: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn SetdataType(&self, datatypename: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn xml(&self, xmlstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn transformNode(&self, stylesheet: &::core::option::Option, xmlstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn selectNodes(&self, querystring: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn selectSingleNode(&self, querystring: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; + fn SetdataType(&self, datatypename: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn xml(&self, xmlstring: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn transformNode(&self, stylesheet: &::core::option::Option, xmlstring: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn selectNodes(&self, querystring: &::windows::core::BSTR) -> ::windows::core::Result; + fn selectSingleNode(&self, querystring: &::windows::core::BSTR) -> ::windows::core::Result; fn parsed(&self, isparsed: *mut i16) -> ::windows::core::Result<()>; - fn namespaceURI(&self, namespaceuri: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn prefix(&self, prefixstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn baseName(&self, namestring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn namespaceURI(&self, namespaceuri: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn prefix(&self, prefixstring: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn baseName(&self, namestring: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn transformNodeToObject(&self, stylesheet: &::core::option::Option, outputobject: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -4537,7 +4537,7 @@ impl ::windows::core::RuntimeName for IXMLDOMNode {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IXMLDOMNode_Vtbl { pub const fn new, Impl: IXMLDOMNode_Impl, const OFFSET: isize>() -> IXMLDOMNode_Vtbl { - unsafe extern "system" fn nodeName, Impl: IXMLDOMNode_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn nodeName, Impl: IXMLDOMNode_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.nodeName(::core::mem::transmute_copy(&name)).into() @@ -4705,17 +4705,17 @@ impl IXMLDOMNode_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn nodeTypeString, Impl: IXMLDOMNode_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nodetype: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn nodeTypeString, Impl: IXMLDOMNode_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nodetype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.nodeTypeString(::core::mem::transmute_copy(&nodetype)).into() } - unsafe extern "system" fn text, Impl: IXMLDOMNode_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, text: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn text, Impl: IXMLDOMNode_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, text: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.text(::core::mem::transmute_copy(&text)).into() } - unsafe extern "system" fn Settext, Impl: IXMLDOMNode_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Settext, Impl: IXMLDOMNode_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Settext(::core::mem::transmute(&text)).into() @@ -4751,22 +4751,22 @@ impl IXMLDOMNode_Vtbl { let this = (*this).get_impl(); this.dataType(::core::mem::transmute_copy(&datatypename)).into() } - unsafe extern "system" fn SetdataType, Impl: IXMLDOMNode_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, datatypename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetdataType, Impl: IXMLDOMNode_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, datatypename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetdataType(::core::mem::transmute(&datatypename)).into() } - unsafe extern "system" fn xml, Impl: IXMLDOMNode_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, xmlstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn xml, Impl: IXMLDOMNode_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, xmlstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.xml(::core::mem::transmute_copy(&xmlstring)).into() } - unsafe extern "system" fn transformNode, Impl: IXMLDOMNode_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, stylesheet: *mut ::core::ffi::c_void, xmlstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn transformNode, Impl: IXMLDOMNode_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, stylesheet: *mut ::core::ffi::c_void, xmlstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.transformNode(::core::mem::transmute(&stylesheet), ::core::mem::transmute_copy(&xmlstring)).into() } - unsafe extern "system" fn selectNodes, Impl: IXMLDOMNode_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, querystring: ::core::mem::ManuallyDrop, resultlist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn selectNodes, Impl: IXMLDOMNode_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, querystring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, resultlist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.selectNodes(::core::mem::transmute(&querystring)) { @@ -4777,7 +4777,7 @@ impl IXMLDOMNode_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn selectSingleNode, Impl: IXMLDOMNode_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, querystring: ::core::mem::ManuallyDrop, resultnode: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn selectSingleNode, Impl: IXMLDOMNode_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, querystring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, resultnode: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.selectSingleNode(::core::mem::transmute(&querystring)) { @@ -4793,17 +4793,17 @@ impl IXMLDOMNode_Vtbl { let this = (*this).get_impl(); this.parsed(::core::mem::transmute_copy(&isparsed)).into() } - unsafe extern "system" fn namespaceURI, Impl: IXMLDOMNode_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, namespaceuri: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn namespaceURI, Impl: IXMLDOMNode_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, namespaceuri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.namespaceURI(::core::mem::transmute_copy(&namespaceuri)).into() } - unsafe extern "system" fn prefix, Impl: IXMLDOMNode_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, prefixstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn prefix, Impl: IXMLDOMNode_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, prefixstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.prefix(::core::mem::transmute_copy(&prefixstring)).into() } - unsafe extern "system" fn baseName, Impl: IXMLDOMNode_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, namestring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn baseName, Impl: IXMLDOMNode_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, namestring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.baseName(::core::mem::transmute_copy(&namestring)).into() @@ -4959,9 +4959,9 @@ impl IXMLDOMNotation_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IXMLDOMParseError_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { fn errorCode(&self, errorcode: *mut i32) -> ::windows::core::Result<()>; - fn url(&self, urlstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn reason(&self, reasonstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn srcText(&self, sourcestring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn url(&self, urlstring: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn reason(&self, reasonstring: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn srcText(&self, sourcestring: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn line(&self, linenumber: *mut i32) -> ::windows::core::Result<()>; fn linepos(&self, lineposition: *mut i32) -> ::windows::core::Result<()>; fn filepos(&self, fileposition: *mut i32) -> ::windows::core::Result<()>; @@ -4976,17 +4976,17 @@ impl IXMLDOMParseError_Vtbl { let this = (*this).get_impl(); this.errorCode(::core::mem::transmute_copy(&errorcode)).into() } - unsafe extern "system" fn url, Impl: IXMLDOMParseError_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, urlstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn url, Impl: IXMLDOMParseError_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, urlstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.url(::core::mem::transmute_copy(&urlstring)).into() } - unsafe extern "system" fn reason, Impl: IXMLDOMParseError_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, reasonstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn reason, Impl: IXMLDOMParseError_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, reasonstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.reason(::core::mem::transmute_copy(&reasonstring)).into() } - unsafe extern "system" fn srcText, Impl: IXMLDOMParseError_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sourcestring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn srcText, Impl: IXMLDOMParseError_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sourcestring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.srcText(::core::mem::transmute_copy(&sourcestring)).into() @@ -5023,9 +5023,9 @@ impl IXMLDOMParseError_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IXMLDOMParseError2_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + IXMLDOMParseError_Impl { - fn errorXPath(&self) -> ::windows::core::Result; + fn errorXPath(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn allErrors(&self) -> ::windows::core::Result; - fn errorParameters(&self, index: i32) -> ::windows::core::Result; + fn errorParameters(&self, index: i32) -> ::windows::core::Result<::windows::core::BSTR>; fn errorParametersCount(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -5033,7 +5033,7 @@ impl ::windows::core::RuntimeName for IXMLDOMParseError2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IXMLDOMParseError2_Vtbl { pub const fn new, Impl: IXMLDOMParseError2_Impl, const OFFSET: isize>() -> IXMLDOMParseError2_Vtbl { - unsafe extern "system" fn errorXPath, Impl: IXMLDOMParseError2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, xpathexpr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn errorXPath, Impl: IXMLDOMParseError2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, xpathexpr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.errorXPath() { @@ -5055,7 +5055,7 @@ impl IXMLDOMParseError2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn errorParameters, Impl: IXMLDOMParseError2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: i32, param1: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn errorParameters, Impl: IXMLDOMParseError2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: i32, param1: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.errorParameters(::core::mem::transmute_copy(&index)) { @@ -5166,26 +5166,26 @@ impl IXMLDOMParseErrorCollection_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IXMLDOMProcessingInstruction_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + IXMLDOMNode_Impl { - fn target(&self, name: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn data(&self, value: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Setdata(&self, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn target(&self, name: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn data(&self, value: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Setdata(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IXMLDOMProcessingInstruction {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IXMLDOMProcessingInstruction_Vtbl { pub const fn new, Impl: IXMLDOMProcessingInstruction_Impl, const OFFSET: isize>() -> IXMLDOMProcessingInstruction_Vtbl { - unsafe extern "system" fn target, Impl: IXMLDOMProcessingInstruction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn target, Impl: IXMLDOMProcessingInstruction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.target(::core::mem::transmute_copy(&name)).into() } - unsafe extern "system" fn data, Impl: IXMLDOMProcessingInstruction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn data, Impl: IXMLDOMProcessingInstruction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.data(::core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn Setdata, Impl: IXMLDOMProcessingInstruction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Setdata, Impl: IXMLDOMProcessingInstruction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Setdata(::core::mem::transmute(&value)).into() @@ -5203,11 +5203,11 @@ impl IXMLDOMProcessingInstruction_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IXMLDOMSchemaCollection_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn add(&self, namespaceuri: &super::super::super::Foundation::BSTR, var: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn get(&self, namespaceuri: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn remove(&self, namespaceuri: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn add(&self, namespaceuri: &::windows::core::BSTR, var: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn get(&self, namespaceuri: &::windows::core::BSTR) -> ::windows::core::Result; + fn remove(&self, namespaceuri: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn length(&self) -> ::windows::core::Result; - fn get_namespaceURI(&self, index: i32) -> ::windows::core::Result; + fn get_namespaceURI(&self, index: i32) -> ::windows::core::Result<::windows::core::BSTR>; fn addCollection(&self, othercollection: &::core::option::Option) -> ::windows::core::Result<()>; fn _newEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; } @@ -5216,12 +5216,12 @@ impl ::windows::core::RuntimeName for IXMLDOMSchemaCollection {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IXMLDOMSchemaCollection_Vtbl { pub const fn new, Impl: IXMLDOMSchemaCollection_Impl, const OFFSET: isize>() -> IXMLDOMSchemaCollection_Vtbl { - unsafe extern "system" fn add, Impl: IXMLDOMSchemaCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, namespaceuri: ::core::mem::ManuallyDrop, var: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn add, Impl: IXMLDOMSchemaCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, namespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, var: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.add(::core::mem::transmute(&namespaceuri), ::core::mem::transmute(&var)).into() } - unsafe extern "system" fn get, Impl: IXMLDOMSchemaCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, namespaceuri: ::core::mem::ManuallyDrop, schemanode: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn get, Impl: IXMLDOMSchemaCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, namespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, schemanode: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get(::core::mem::transmute(&namespaceuri)) { @@ -5232,7 +5232,7 @@ impl IXMLDOMSchemaCollection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn remove, Impl: IXMLDOMSchemaCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, namespaceuri: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn remove, Impl: IXMLDOMSchemaCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, namespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.remove(::core::mem::transmute(&namespaceuri)).into() @@ -5248,7 +5248,7 @@ impl IXMLDOMSchemaCollection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_namespaceURI, Impl: IXMLDOMSchemaCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: i32, length: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_namespaceURI, Impl: IXMLDOMSchemaCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: i32, length: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_namespaceURI(::core::mem::transmute_copy(&index)) { @@ -5295,7 +5295,7 @@ pub trait IXMLDOMSchemaCollection2_Impl: Sized + super::super::super::System::Co fn validate(&self) -> ::windows::core::Result<()>; fn SetvalidateOnLoad(&self, validateonload: i16) -> ::windows::core::Result<()>; fn validateOnLoad(&self) -> ::windows::core::Result; - fn getSchema(&self, namespaceuri: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; + fn getSchema(&self, namespaceuri: &::windows::core::BSTR) -> ::windows::core::Result; fn getDeclaration(&self, node: &::core::option::Option) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -5324,7 +5324,7 @@ impl IXMLDOMSchemaCollection2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn getSchema, Impl: IXMLDOMSchemaCollection2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, namespaceuri: ::core::mem::ManuallyDrop, schema: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn getSchema, Impl: IXMLDOMSchemaCollection2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, namespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, schema: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getSchema(::core::mem::transmute(&namespaceuri)) { @@ -5361,8 +5361,8 @@ impl IXMLDOMSchemaCollection2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IXMLDOMSelection_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + IXMLDOMNodeList_Impl { - fn expr(&self) -> ::windows::core::Result; - fn Setexpr(&self, expression: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn expr(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Setexpr(&self, expression: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn context(&self) -> ::windows::core::Result; fn putref_context(&self, pnode: &::core::option::Option) -> ::windows::core::Result<()>; fn peekNode(&self) -> ::windows::core::Result; @@ -5370,15 +5370,15 @@ pub trait IXMLDOMSelection_Impl: Sized + super::super::super::System::Com::IDisp fn removeNext(&self) -> ::windows::core::Result; fn removeAll(&self) -> ::windows::core::Result<()>; fn clone(&self) -> ::windows::core::Result; - fn getProperty(&self, name: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn setProperty(&self, name: &super::super::super::Foundation::BSTR, value: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn getProperty(&self, name: &::windows::core::BSTR) -> ::windows::core::Result; + fn setProperty(&self, name: &::windows::core::BSTR, value: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IXMLDOMSelection {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IXMLDOMSelection_Vtbl { pub const fn new, Impl: IXMLDOMSelection_Impl, const OFFSET: isize>() -> IXMLDOMSelection_Vtbl { - unsafe extern "system" fn expr, Impl: IXMLDOMSelection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, expression: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn expr, Impl: IXMLDOMSelection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, expression: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.expr() { @@ -5389,7 +5389,7 @@ impl IXMLDOMSelection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Setexpr, Impl: IXMLDOMSelection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, expression: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Setexpr, Impl: IXMLDOMSelection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, expression: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Setexpr(::core::mem::transmute(&expression)).into() @@ -5459,7 +5459,7 @@ impl IXMLDOMSelection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn getProperty, Impl: IXMLDOMSelection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, value: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn getProperty, Impl: IXMLDOMSelection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getProperty(::core::mem::transmute(&name)) { @@ -5470,7 +5470,7 @@ impl IXMLDOMSelection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn setProperty, Impl: IXMLDOMSelection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn setProperty, Impl: IXMLDOMSelection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.setProperty(::core::mem::transmute(&name), ::core::mem::transmute(&value)).into() @@ -5580,18 +5580,18 @@ impl IXMLDSOControl_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IXMLDocument_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { fn root(&self) -> ::windows::core::Result; - fn fileSize(&self) -> ::windows::core::Result; - fn fileModifiedDate(&self) -> ::windows::core::Result; - fn fileUpdatedDate(&self) -> ::windows::core::Result; - fn URL(&self) -> ::windows::core::Result; - fn SetURL(&self, p: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn mimeType(&self) -> ::windows::core::Result; + fn fileSize(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn fileModifiedDate(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn fileUpdatedDate(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn URL(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetURL(&self, p: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn mimeType(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn readyState(&self) -> ::windows::core::Result; - fn charset(&self) -> ::windows::core::Result; - fn Setcharset(&self, p: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn version(&self) -> ::windows::core::Result; - fn doctype(&self) -> ::windows::core::Result; - fn dtdURL(&self) -> ::windows::core::Result; + fn charset(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Setcharset(&self, p: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn version(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn doctype(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn dtdURL(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn createElement(&self, vtype: &super::super::super::System::Com::VARIANT, var1: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -5610,7 +5610,7 @@ impl IXMLDocument_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn fileSize, Impl: IXMLDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn fileSize, Impl: IXMLDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.fileSize() { @@ -5621,7 +5621,7 @@ impl IXMLDocument_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn fileModifiedDate, Impl: IXMLDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn fileModifiedDate, Impl: IXMLDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.fileModifiedDate() { @@ -5632,7 +5632,7 @@ impl IXMLDocument_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn fileUpdatedDate, Impl: IXMLDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn fileUpdatedDate, Impl: IXMLDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.fileUpdatedDate() { @@ -5643,7 +5643,7 @@ impl IXMLDocument_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn URL, Impl: IXMLDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn URL, Impl: IXMLDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.URL() { @@ -5654,12 +5654,12 @@ impl IXMLDocument_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetURL, Impl: IXMLDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetURL, Impl: IXMLDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetURL(::core::mem::transmute(&p)).into() } - unsafe extern "system" fn mimeType, Impl: IXMLDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn mimeType, Impl: IXMLDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.mimeType() { @@ -5681,7 +5681,7 @@ impl IXMLDocument_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn charset, Impl: IXMLDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn charset, Impl: IXMLDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.charset() { @@ -5692,12 +5692,12 @@ impl IXMLDocument_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Setcharset, Impl: IXMLDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Setcharset, Impl: IXMLDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Setcharset(::core::mem::transmute(&p)).into() } - unsafe extern "system" fn version, Impl: IXMLDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn version, Impl: IXMLDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.version() { @@ -5708,7 +5708,7 @@ impl IXMLDocument_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn doctype, Impl: IXMLDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn doctype, Impl: IXMLDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.doctype() { @@ -5719,7 +5719,7 @@ impl IXMLDocument_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn dtdURL, Impl: IXMLDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn dtdURL, Impl: IXMLDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.dtdURL() { @@ -5766,18 +5766,18 @@ impl IXMLDocument_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IXMLDocument2_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { fn root(&self) -> ::windows::core::Result; - fn fileSize(&self) -> ::windows::core::Result; - fn fileModifiedDate(&self) -> ::windows::core::Result; - fn fileUpdatedDate(&self) -> ::windows::core::Result; - fn URL(&self) -> ::windows::core::Result; - fn SetURL(&self, p: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn mimeType(&self) -> ::windows::core::Result; + fn fileSize(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn fileModifiedDate(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn fileUpdatedDate(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn URL(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetURL(&self, p: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn mimeType(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn readyState(&self) -> ::windows::core::Result; - fn charset(&self) -> ::windows::core::Result; - fn Setcharset(&self, p: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn version(&self) -> ::windows::core::Result; - fn doctype(&self) -> ::windows::core::Result; - fn dtdURL(&self) -> ::windows::core::Result; + fn charset(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Setcharset(&self, p: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn version(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn doctype(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn dtdURL(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn createElement(&self, vtype: &super::super::super::System::Com::VARIANT, var1: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result; fn r#async(&self) -> ::windows::core::Result; fn Setasync(&self, f: i16) -> ::windows::core::Result<()>; @@ -5798,7 +5798,7 @@ impl IXMLDocument2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn fileSize, Impl: IXMLDocument2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn fileSize, Impl: IXMLDocument2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.fileSize() { @@ -5809,7 +5809,7 @@ impl IXMLDocument2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn fileModifiedDate, Impl: IXMLDocument2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn fileModifiedDate, Impl: IXMLDocument2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.fileModifiedDate() { @@ -5820,7 +5820,7 @@ impl IXMLDocument2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn fileUpdatedDate, Impl: IXMLDocument2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn fileUpdatedDate, Impl: IXMLDocument2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.fileUpdatedDate() { @@ -5831,7 +5831,7 @@ impl IXMLDocument2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn URL, Impl: IXMLDocument2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn URL, Impl: IXMLDocument2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.URL() { @@ -5842,12 +5842,12 @@ impl IXMLDocument2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetURL, Impl: IXMLDocument2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetURL, Impl: IXMLDocument2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetURL(::core::mem::transmute(&p)).into() } - unsafe extern "system" fn mimeType, Impl: IXMLDocument2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn mimeType, Impl: IXMLDocument2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.mimeType() { @@ -5869,7 +5869,7 @@ impl IXMLDocument2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn charset, Impl: IXMLDocument2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn charset, Impl: IXMLDocument2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.charset() { @@ -5880,12 +5880,12 @@ impl IXMLDocument2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Setcharset, Impl: IXMLDocument2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Setcharset, Impl: IXMLDocument2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Setcharset(::core::mem::transmute(&p)).into() } - unsafe extern "system" fn version, Impl: IXMLDocument2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn version, Impl: IXMLDocument2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.version() { @@ -5896,7 +5896,7 @@ impl IXMLDocument2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn doctype, Impl: IXMLDocument2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn doctype, Impl: IXMLDocument2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.doctype() { @@ -5907,7 +5907,7 @@ impl IXMLDocument2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn dtdURL, Impl: IXMLDocument2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn dtdURL, Impl: IXMLDocument2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.dtdURL() { @@ -5971,16 +5971,16 @@ impl IXMLDocument2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IXMLElement_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn tagName(&self) -> ::windows::core::Result; - fn SettagName(&self, p: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn tagName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SettagName(&self, p: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn parent(&self) -> ::windows::core::Result; - fn setAttribute(&self, strpropertyname: &super::super::super::Foundation::BSTR, propertyvalue: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn getAttribute(&self, strpropertyname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn removeAttribute(&self, strpropertyname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn setAttribute(&self, strpropertyname: &::windows::core::BSTR, propertyvalue: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn getAttribute(&self, strpropertyname: &::windows::core::BSTR) -> ::windows::core::Result; + fn removeAttribute(&self, strpropertyname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn children(&self) -> ::windows::core::Result; fn r#type(&self) -> ::windows::core::Result; - fn text(&self) -> ::windows::core::Result; - fn Settext(&self, p: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn text(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Settext(&self, p: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn addChild(&self, pchildelem: &::core::option::Option, lindex: i32, lreserved: i32) -> ::windows::core::Result<()>; fn removeChild(&self, pchildelem: &::core::option::Option) -> ::windows::core::Result<()>; } @@ -5989,7 +5989,7 @@ impl ::windows::core::RuntimeName for IXMLElement {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IXMLElement_Vtbl { pub const fn new, Impl: IXMLElement_Impl, const OFFSET: isize>() -> IXMLElement_Vtbl { - unsafe extern "system" fn tagName, Impl: IXMLElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn tagName, Impl: IXMLElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.tagName() { @@ -6000,7 +6000,7 @@ impl IXMLElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SettagName, Impl: IXMLElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SettagName, Impl: IXMLElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SettagName(::core::mem::transmute(&p)).into() @@ -6016,12 +6016,12 @@ impl IXMLElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn setAttribute, Impl: IXMLElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop, propertyvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn setAttribute, Impl: IXMLElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.setAttribute(::core::mem::transmute(&strpropertyname), ::core::mem::transmute(&propertyvalue)).into() } - unsafe extern "system" fn getAttribute, Impl: IXMLElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop, propertyvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn getAttribute, Impl: IXMLElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getAttribute(::core::mem::transmute(&strpropertyname)) { @@ -6032,7 +6032,7 @@ impl IXMLElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn removeAttribute, Impl: IXMLElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn removeAttribute, Impl: IXMLElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.removeAttribute(::core::mem::transmute(&strpropertyname)).into() @@ -6059,7 +6059,7 @@ impl IXMLElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn text, Impl: IXMLElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn text, Impl: IXMLElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.text() { @@ -6070,7 +6070,7 @@ impl IXMLElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Settext, Impl: IXMLElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Settext, Impl: IXMLElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Settext(::core::mem::transmute(&p)).into() @@ -6107,16 +6107,16 @@ impl IXMLElement_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IXMLElement2_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn tagName(&self) -> ::windows::core::Result; - fn SettagName(&self, p: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn tagName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SettagName(&self, p: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn parent(&self) -> ::windows::core::Result; - fn setAttribute(&self, strpropertyname: &super::super::super::Foundation::BSTR, propertyvalue: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn getAttribute(&self, strpropertyname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn removeAttribute(&self, strpropertyname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn setAttribute(&self, strpropertyname: &::windows::core::BSTR, propertyvalue: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn getAttribute(&self, strpropertyname: &::windows::core::BSTR) -> ::windows::core::Result; + fn removeAttribute(&self, strpropertyname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn children(&self) -> ::windows::core::Result; fn r#type(&self) -> ::windows::core::Result; - fn text(&self) -> ::windows::core::Result; - fn Settext(&self, p: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn text(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Settext(&self, p: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn addChild(&self, pchildelem: &::core::option::Option, lindex: i32, lreserved: i32) -> ::windows::core::Result<()>; fn removeChild(&self, pchildelem: &::core::option::Option) -> ::windows::core::Result<()>; fn attributes(&self) -> ::windows::core::Result; @@ -6126,7 +6126,7 @@ impl ::windows::core::RuntimeName for IXMLElement2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IXMLElement2_Vtbl { pub const fn new, Impl: IXMLElement2_Impl, const OFFSET: isize>() -> IXMLElement2_Vtbl { - unsafe extern "system" fn tagName, Impl: IXMLElement2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn tagName, Impl: IXMLElement2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.tagName() { @@ -6137,7 +6137,7 @@ impl IXMLElement2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SettagName, Impl: IXMLElement2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SettagName, Impl: IXMLElement2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SettagName(::core::mem::transmute(&p)).into() @@ -6153,12 +6153,12 @@ impl IXMLElement2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn setAttribute, Impl: IXMLElement2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop, propertyvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn setAttribute, Impl: IXMLElement2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.setAttribute(::core::mem::transmute(&strpropertyname), ::core::mem::transmute(&propertyvalue)).into() } - unsafe extern "system" fn getAttribute, Impl: IXMLElement2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop, propertyvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn getAttribute, Impl: IXMLElement2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getAttribute(::core::mem::transmute(&strpropertyname)) { @@ -6169,7 +6169,7 @@ impl IXMLElement2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn removeAttribute, Impl: IXMLElement2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn removeAttribute, Impl: IXMLElement2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.removeAttribute(::core::mem::transmute(&strpropertyname)).into() @@ -6196,7 +6196,7 @@ impl IXMLElement2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn text, Impl: IXMLElement2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn text, Impl: IXMLElement2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.text() { @@ -6207,7 +6207,7 @@ impl IXMLElement2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Settext, Impl: IXMLElement2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Settext, Impl: IXMLElement2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, p: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Settext(::core::mem::transmute(&p)).into() @@ -6316,13 +6316,10 @@ impl IXMLElementCollection_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IXMLError_Impl: Sized { fn GetErrorInfo(&self, perrorreturn: *mut XML_ERROR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IXMLError {} -#[cfg(feature = "Win32_Foundation")] impl IXMLError_Vtbl { pub const fn new, Impl: IXMLError_Impl, const OFFSET: isize>() -> IXMLError_Vtbl { unsafe extern "system" fn GetErrorInfo, Impl: IXMLError_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, perrorreturn: *mut XML_ERROR) -> ::windows::core::HRESULT { @@ -6338,16 +6335,16 @@ impl IXMLError_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IXMLHTTPRequest_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn open(&self, bstrmethod: &super::super::super::Foundation::BSTR, bstrurl: &super::super::super::Foundation::BSTR, varasync: &super::super::super::System::Com::VARIANT, bstruser: &super::super::super::System::Com::VARIANT, bstrpassword: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn setRequestHeader(&self, bstrheader: &super::super::super::Foundation::BSTR, bstrvalue: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn getResponseHeader(&self, bstrheader: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn getAllResponseHeaders(&self) -> ::windows::core::Result; + fn open(&self, bstrmethod: &::windows::core::BSTR, bstrurl: &::windows::core::BSTR, varasync: &super::super::super::System::Com::VARIANT, bstruser: &super::super::super::System::Com::VARIANT, bstrpassword: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn setRequestHeader(&self, bstrheader: &::windows::core::BSTR, bstrvalue: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn getResponseHeader(&self, bstrheader: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; + fn getAllResponseHeaders(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn send(&self, varbody: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn abort(&self) -> ::windows::core::Result<()>; fn status(&self) -> ::windows::core::Result; - fn statusText(&self) -> ::windows::core::Result; + fn statusText(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn responseXML(&self) -> ::windows::core::Result; - fn responseText(&self) -> ::windows::core::Result; + fn responseText(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn responseBody(&self) -> ::windows::core::Result; fn responseStream(&self) -> ::windows::core::Result; fn readyState(&self) -> ::windows::core::Result; @@ -6358,17 +6355,17 @@ impl ::windows::core::RuntimeName for IXMLHTTPRequest {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IXMLHTTPRequest_Vtbl { pub const fn new, Impl: IXMLHTTPRequest_Impl, const OFFSET: isize>() -> IXMLHTTPRequest_Vtbl { - unsafe extern "system" fn open, Impl: IXMLHTTPRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmethod: ::core::mem::ManuallyDrop, bstrurl: ::core::mem::ManuallyDrop, varasync: ::core::mem::ManuallyDrop, bstruser: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn open, Impl: IXMLHTTPRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmethod: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varasync: ::core::mem::ManuallyDrop, bstruser: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.open(::core::mem::transmute(&bstrmethod), ::core::mem::transmute(&bstrurl), ::core::mem::transmute(&varasync), ::core::mem::transmute(&bstruser), ::core::mem::transmute(&bstrpassword)).into() } - unsafe extern "system" fn setRequestHeader, Impl: IXMLHTTPRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrheader: ::core::mem::ManuallyDrop, bstrvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn setRequestHeader, Impl: IXMLHTTPRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrheader: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.setRequestHeader(::core::mem::transmute(&bstrheader), ::core::mem::transmute(&bstrvalue)).into() } - unsafe extern "system" fn getResponseHeader, Impl: IXMLHTTPRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrheader: ::core::mem::ManuallyDrop, pbstrvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn getResponseHeader, Impl: IXMLHTTPRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrheader: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getResponseHeader(::core::mem::transmute(&bstrheader)) { @@ -6379,7 +6376,7 @@ impl IXMLHTTPRequest_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn getAllResponseHeaders, Impl: IXMLHTTPRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrheaders: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn getAllResponseHeaders, Impl: IXMLHTTPRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrheaders: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getAllResponseHeaders() { @@ -6411,7 +6408,7 @@ impl IXMLHTTPRequest_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn statusText, Impl: IXMLHTTPRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrstatus: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn statusText, Impl: IXMLHTTPRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrstatus: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.statusText() { @@ -6433,7 +6430,7 @@ impl IXMLHTTPRequest_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn responseText, Impl: IXMLHTTPRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrbody: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn responseText, Impl: IXMLHTTPRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrbody: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.responseText() { @@ -6711,16 +6708,16 @@ impl IXMLHTTPRequest3Callback_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IXMLHttpRequest_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn open(&self, bstrmethod: &super::super::super::Foundation::BSTR, bstrurl: &super::super::super::Foundation::BSTR, varasync: &super::super::super::System::Com::VARIANT, bstruser: &super::super::super::System::Com::VARIANT, bstrpassword: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn setRequestHeader(&self, bstrheader: &super::super::super::Foundation::BSTR, bstrvalue: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn getResponseHeader(&self, bstrheader: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn getAllResponseHeaders(&self) -> ::windows::core::Result; + fn open(&self, bstrmethod: &::windows::core::BSTR, bstrurl: &::windows::core::BSTR, varasync: &super::super::super::System::Com::VARIANT, bstruser: &super::super::super::System::Com::VARIANT, bstrpassword: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn setRequestHeader(&self, bstrheader: &::windows::core::BSTR, bstrvalue: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn getResponseHeader(&self, bstrheader: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; + fn getAllResponseHeaders(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn send(&self, varbody: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn abort(&self) -> ::windows::core::Result<()>; fn status(&self) -> ::windows::core::Result; - fn statusText(&self) -> ::windows::core::Result; + fn statusText(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn responseXML(&self) -> ::windows::core::Result; - fn responseText(&self) -> ::windows::core::Result; + fn responseText(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn responseBody(&self) -> ::windows::core::Result; fn responseStream(&self) -> ::windows::core::Result; fn readyState(&self) -> ::windows::core::Result; @@ -6731,17 +6728,17 @@ impl ::windows::core::RuntimeName for IXMLHttpRequest {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IXMLHttpRequest_Vtbl { pub const fn new, Impl: IXMLHttpRequest_Impl, const OFFSET: isize>() -> IXMLHttpRequest_Vtbl { - unsafe extern "system" fn open, Impl: IXMLHttpRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmethod: ::core::mem::ManuallyDrop, bstrurl: ::core::mem::ManuallyDrop, varasync: ::core::mem::ManuallyDrop, bstruser: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn open, Impl: IXMLHttpRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmethod: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varasync: ::core::mem::ManuallyDrop, bstruser: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.open(::core::mem::transmute(&bstrmethod), ::core::mem::transmute(&bstrurl), ::core::mem::transmute(&varasync), ::core::mem::transmute(&bstruser), ::core::mem::transmute(&bstrpassword)).into() } - unsafe extern "system" fn setRequestHeader, Impl: IXMLHttpRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrheader: ::core::mem::ManuallyDrop, bstrvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn setRequestHeader, Impl: IXMLHttpRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrheader: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.setRequestHeader(::core::mem::transmute(&bstrheader), ::core::mem::transmute(&bstrvalue)).into() } - unsafe extern "system" fn getResponseHeader, Impl: IXMLHttpRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrheader: ::core::mem::ManuallyDrop, pbstrvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn getResponseHeader, Impl: IXMLHttpRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrheader: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getResponseHeader(::core::mem::transmute(&bstrheader)) { @@ -6752,7 +6749,7 @@ impl IXMLHttpRequest_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn getAllResponseHeaders, Impl: IXMLHttpRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrheaders: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn getAllResponseHeaders, Impl: IXMLHttpRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrheaders: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getAllResponseHeaders() { @@ -6784,7 +6781,7 @@ impl IXMLHttpRequest_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn statusText, Impl: IXMLHttpRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrstatus: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn statusText, Impl: IXMLHttpRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrstatus: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.statusText() { @@ -6806,7 +6803,7 @@ impl IXMLHttpRequest_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn responseText, Impl: IXMLHttpRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrbody: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn responseText, Impl: IXMLHttpRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrbody: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.responseText() { @@ -6882,16 +6879,16 @@ pub trait IXSLProcessor_Impl: Sized + super::super::super::System::Com::IDispatc fn Setinput(&self, var: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn input(&self) -> ::windows::core::Result; fn ownerTemplate(&self) -> ::windows::core::Result; - fn setStartMode(&self, mode: &super::super::super::Foundation::BSTR, namespaceuri: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn startMode(&self) -> ::windows::core::Result; - fn startModeURI(&self) -> ::windows::core::Result; + fn setStartMode(&self, mode: &::windows::core::BSTR, namespaceuri: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn startMode(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn startModeURI(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Setoutput(&self, output: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn output(&self) -> ::windows::core::Result; fn transform(&self) -> ::windows::core::Result; fn reset(&self) -> ::windows::core::Result<()>; fn readyState(&self) -> ::windows::core::Result; - fn addParameter(&self, basename: &super::super::super::Foundation::BSTR, parameter: &super::super::super::System::Com::VARIANT, namespaceuri: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn addObject(&self, obj: &::core::option::Option, namespaceuri: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn addParameter(&self, basename: &::windows::core::BSTR, parameter: &super::super::super::System::Com::VARIANT, namespaceuri: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn addObject(&self, obj: &::core::option::Option, namespaceuri: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn stylesheet(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -6926,12 +6923,12 @@ impl IXSLProcessor_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn setStartMode, Impl: IXSLProcessor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mode: ::core::mem::ManuallyDrop, namespaceuri: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn setStartMode, Impl: IXSLProcessor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mode: ::core::mem::ManuallyDrop<::windows::core::BSTR>, namespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.setStartMode(::core::mem::transmute(&mode), ::core::mem::transmute(&namespaceuri)).into() } - unsafe extern "system" fn startMode, Impl: IXSLProcessor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mode: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn startMode, Impl: IXSLProcessor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mode: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.startMode() { @@ -6942,7 +6939,7 @@ impl IXSLProcessor_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn startModeURI, Impl: IXSLProcessor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, namespaceuri: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn startModeURI, Impl: IXSLProcessor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, namespaceuri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.startModeURI() { @@ -6996,12 +6993,12 @@ impl IXSLProcessor_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn addParameter, Impl: IXSLProcessor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, basename: ::core::mem::ManuallyDrop, parameter: ::core::mem::ManuallyDrop, namespaceuri: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn addParameter, Impl: IXSLProcessor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, basename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, parameter: ::core::mem::ManuallyDrop, namespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.addParameter(::core::mem::transmute(&basename), ::core::mem::transmute(¶meter), ::core::mem::transmute(&namespaceuri)).into() } - unsafe extern "system" fn addObject, Impl: IXSLProcessor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, obj: *mut ::core::ffi::c_void, namespaceuri: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn addObject, Impl: IXSLProcessor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, obj: *mut ::core::ffi::c_void, namespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.addObject(::core::mem::transmute(&obj), ::core::mem::transmute(&namespaceuri)).into() @@ -7093,12 +7090,12 @@ pub trait IXTLRuntime_Impl: Sized + super::super::super::System::Com::IDispatch_ fn uniqueID(&self, pnode: &::core::option::Option, pid: *mut i32) -> ::windows::core::Result<()>; fn depth(&self, pnode: &::core::option::Option, pdepth: *mut i32) -> ::windows::core::Result<()>; fn childNumber(&self, pnode: &::core::option::Option, pnumber: *mut i32) -> ::windows::core::Result<()>; - fn ancestorChildNumber(&self, bstrnodename: &super::super::super::Foundation::BSTR, pnode: &::core::option::Option, pnumber: *mut i32) -> ::windows::core::Result<()>; + fn ancestorChildNumber(&self, bstrnodename: &::windows::core::BSTR, pnode: &::core::option::Option, pnumber: *mut i32) -> ::windows::core::Result<()>; fn absoluteChildNumber(&self, pnode: &::core::option::Option, pnumber: *mut i32) -> ::windows::core::Result<()>; - fn formatIndex(&self, lindex: i32, bstrformat: &super::super::super::Foundation::BSTR, pbstrformattedstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn formatNumber(&self, dblnumber: f64, bstrformat: &super::super::super::Foundation::BSTR, pbstrformattedstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn formatDate(&self, vardate: &super::super::super::System::Com::VARIANT, bstrformat: &super::super::super::Foundation::BSTR, vardestlocale: &super::super::super::System::Com::VARIANT, pbstrformattedstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn formatTime(&self, vartime: &super::super::super::System::Com::VARIANT, bstrformat: &super::super::super::Foundation::BSTR, vardestlocale: &super::super::super::System::Com::VARIANT, pbstrformattedstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn formatIndex(&self, lindex: i32, bstrformat: &::windows::core::BSTR, pbstrformattedstring: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn formatNumber(&self, dblnumber: f64, bstrformat: &::windows::core::BSTR, pbstrformattedstring: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn formatDate(&self, vardate: &super::super::super::System::Com::VARIANT, bstrformat: &::windows::core::BSTR, vardestlocale: &super::super::super::System::Com::VARIANT, pbstrformattedstring: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn formatTime(&self, vartime: &super::super::super::System::Com::VARIANT, bstrformat: &::windows::core::BSTR, vardestlocale: &super::super::super::System::Com::VARIANT, pbstrformattedstring: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IXTLRuntime {} @@ -7120,7 +7117,7 @@ impl IXTLRuntime_Vtbl { let this = (*this).get_impl(); this.childNumber(::core::mem::transmute(&pnode), ::core::mem::transmute_copy(&pnumber)).into() } - unsafe extern "system" fn ancestorChildNumber, Impl: IXTLRuntime_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrnodename: ::core::mem::ManuallyDrop, pnode: *mut ::core::ffi::c_void, pnumber: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn ancestorChildNumber, Impl: IXTLRuntime_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrnodename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pnode: *mut ::core::ffi::c_void, pnumber: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ancestorChildNumber(::core::mem::transmute(&bstrnodename), ::core::mem::transmute(&pnode), ::core::mem::transmute_copy(&pnumber)).into() @@ -7130,22 +7127,22 @@ impl IXTLRuntime_Vtbl { let this = (*this).get_impl(); this.absoluteChildNumber(::core::mem::transmute(&pnode), ::core::mem::transmute_copy(&pnumber)).into() } - unsafe extern "system" fn formatIndex, Impl: IXTLRuntime_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lindex: i32, bstrformat: ::core::mem::ManuallyDrop, pbstrformattedstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn formatIndex, Impl: IXTLRuntime_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lindex: i32, bstrformat: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrformattedstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.formatIndex(::core::mem::transmute_copy(&lindex), ::core::mem::transmute(&bstrformat), ::core::mem::transmute_copy(&pbstrformattedstring)).into() } - unsafe extern "system" fn formatNumber, Impl: IXTLRuntime_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dblnumber: f64, bstrformat: ::core::mem::ManuallyDrop, pbstrformattedstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn formatNumber, Impl: IXTLRuntime_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dblnumber: f64, bstrformat: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrformattedstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.formatNumber(::core::mem::transmute_copy(&dblnumber), ::core::mem::transmute(&bstrformat), ::core::mem::transmute_copy(&pbstrformattedstring)).into() } - unsafe extern "system" fn formatDate, Impl: IXTLRuntime_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, vardate: ::core::mem::ManuallyDrop, bstrformat: ::core::mem::ManuallyDrop, vardestlocale: ::core::mem::ManuallyDrop, pbstrformattedstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn formatDate, Impl: IXTLRuntime_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, vardate: ::core::mem::ManuallyDrop, bstrformat: ::core::mem::ManuallyDrop<::windows::core::BSTR>, vardestlocale: ::core::mem::ManuallyDrop, pbstrformattedstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.formatDate(::core::mem::transmute(&vardate), ::core::mem::transmute(&bstrformat), ::core::mem::transmute(&vardestlocale), ::core::mem::transmute_copy(&pbstrformattedstring)).into() } - unsafe extern "system" fn formatTime, Impl: IXTLRuntime_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, vartime: ::core::mem::ManuallyDrop, bstrformat: ::core::mem::ManuallyDrop, vardestlocale: ::core::mem::ManuallyDrop, pbstrformattedstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn formatTime, Impl: IXTLRuntime_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, vartime: ::core::mem::ManuallyDrop, bstrformat: ::core::mem::ManuallyDrop<::windows::core::BSTR>, vardestlocale: ::core::mem::ManuallyDrop, pbstrformattedstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.formatTime(::core::mem::transmute(&vartime), ::core::mem::transmute(&bstrformat), ::core::mem::transmute(&vardestlocale), ::core::mem::transmute_copy(&pbstrformattedstring)).into() diff --git a/crates/libs/windows/src/Windows/Win32/Data/Xml/MsXml/mod.rs b/crates/libs/windows/src/Windows/Win32/Data/Xml/MsXml/mod.rs index e6ccc03aa7..ff422831cd 100644 --- a/crates/libs/windows/src/Windows/Win32/Data/Xml/MsXml/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Data/Xml/MsXml/mod.rs @@ -4,17 +4,8 @@ pub struct IMXAttributes(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMXAttributes { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn addAttribute<'a, P0, P1, P2, P3, P4>(&self, struri: P0, strlocalname: P1, strqname: P2, strtype: P3, strvalue: P4) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).addAttribute)(::windows::core::Interface::as_raw(self), struri.into().abi(), strlocalname.into().abi(), strqname.into().abi(), strtype.into().abi(), strvalue.into().abi()).ok() + pub unsafe fn addAttribute(&self, struri: &::windows::core::BSTR, strlocalname: &::windows::core::BSTR, strqname: &::windows::core::BSTR, strtype: &::windows::core::BSTR, strvalue: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).addAttribute)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(struri), ::core::mem::transmute_copy(strlocalname), ::core::mem::transmute_copy(strqname), ::core::mem::transmute_copy(strtype), ::core::mem::transmute_copy(strvalue)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -30,17 +21,8 @@ impl IMXAttributes { pub unsafe fn removeAttribute(&self, nindex: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).removeAttribute)(::windows::core::Interface::as_raw(self), nindex).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn setAttribute<'a, P0, P1, P2, P3, P4>(&self, nindex: i32, struri: P0, strlocalname: P1, strqname: P2, strtype: P3, strvalue: P4) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).setAttribute)(::windows::core::Interface::as_raw(self), nindex, struri.into().abi(), strlocalname.into().abi(), strqname.into().abi(), strtype.into().abi(), strvalue.into().abi()).ok() + pub unsafe fn setAttribute(&self, nindex: i32, struri: &::windows::core::BSTR, strlocalname: &::windows::core::BSTR, strqname: &::windows::core::BSTR, strtype: &::windows::core::BSTR, strvalue: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).setAttribute)(::windows::core::Interface::as_raw(self), nindex, ::core::mem::transmute_copy(struri), ::core::mem::transmute_copy(strlocalname), ::core::mem::transmute_copy(strqname), ::core::mem::transmute_copy(strtype), ::core::mem::transmute_copy(strvalue)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -50,45 +32,20 @@ impl IMXAttributes { { (::windows::core::Interface::vtable(self).setAttributes)(::windows::core::Interface::as_raw(self), varatts.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn setLocalName<'a, P0>(&self, nindex: i32, strlocalname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).setLocalName)(::windows::core::Interface::as_raw(self), nindex, strlocalname.into().abi()).ok() + pub unsafe fn setLocalName(&self, nindex: i32, strlocalname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).setLocalName)(::windows::core::Interface::as_raw(self), nindex, ::core::mem::transmute_copy(strlocalname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn setQName<'a, P0>(&self, nindex: i32, strqname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).setQName)(::windows::core::Interface::as_raw(self), nindex, strqname.into().abi()).ok() + pub unsafe fn setQName(&self, nindex: i32, strqname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).setQName)(::windows::core::Interface::as_raw(self), nindex, ::core::mem::transmute_copy(strqname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn setType<'a, P0>(&self, nindex: i32, strtype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).setType)(::windows::core::Interface::as_raw(self), nindex, strtype.into().abi()).ok() + pub unsafe fn setType(&self, nindex: i32, strtype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).setType)(::windows::core::Interface::as_raw(self), nindex, ::core::mem::transmute_copy(strtype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn setURI<'a, P0>(&self, nindex: i32, struri: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).setURI)(::windows::core::Interface::as_raw(self), nindex, struri.into().abi()).ok() + pub unsafe fn setURI(&self, nindex: i32, struri: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).setURI)(::windows::core::Interface::as_raw(self), nindex, ::core::mem::transmute_copy(struri)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn setValue<'a, P0>(&self, nindex: i32, strvalue: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).setValue)(::windows::core::Interface::as_raw(self), nindex, strvalue.into().abi()).ok() + pub unsafe fn setValue(&self, nindex: i32, strvalue: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).setValue)(::windows::core::Interface::as_raw(self), nindex, ::core::mem::transmute_copy(strvalue)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -157,44 +114,23 @@ unsafe impl ::windows::core::Interface for IMXAttributes { #[doc(hidden)] pub struct IMXAttributes_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub addAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, struri: ::core::mem::ManuallyDrop, strlocalname: ::core::mem::ManuallyDrop, strqname: ::core::mem::ManuallyDrop, strtype: ::core::mem::ManuallyDrop, strvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - addAttribute: usize, + pub addAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, struri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strlocalname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strqname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strtype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub addAttributeFromIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varatts: ::core::mem::ManuallyDrop, nindex: i32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] addAttributeFromIndex: usize, pub clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub removeAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub setAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: i32, struri: ::core::mem::ManuallyDrop, strlocalname: ::core::mem::ManuallyDrop, strqname: ::core::mem::ManuallyDrop, strtype: ::core::mem::ManuallyDrop, strvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - setAttribute: usize, + pub setAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: i32, struri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strlocalname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strqname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strtype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub setAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varatts: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] setAttributes: usize, - #[cfg(feature = "Win32_Foundation")] - pub setLocalName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: i32, strlocalname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - setLocalName: usize, - #[cfg(feature = "Win32_Foundation")] - pub setQName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: i32, strqname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - setQName: usize, - #[cfg(feature = "Win32_Foundation")] - pub setType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: i32, strtype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - setType: usize, - #[cfg(feature = "Win32_Foundation")] - pub setURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: i32, struri: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - setURI: usize, - #[cfg(feature = "Win32_Foundation")] - pub setValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: i32, strvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - setValue: usize, + pub setLocalName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: i32, strlocalname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub setQName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: i32, strqname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub setType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: i32, strtype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub setURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: i32, struri: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub setValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: i32, strvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`*"] #[repr(transparent)] @@ -312,11 +248,9 @@ pub struct IMXNamespaceManager_Vtbl { pub struct IMXNamespacePrefixes(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMXNamespacePrefixes { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_item(&self, index: i32) -> ::windows::core::Result { + pub unsafe fn get_item(&self, index: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_item)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_item)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn length(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -393,10 +327,7 @@ unsafe impl ::windows::core::Interface for IMXNamespacePrefixes { #[doc(hidden)] pub struct IMXNamespacePrefixes_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub get_item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, prefix: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_item: usize, + pub get_item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, prefix: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub length: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, length: *mut i32) -> ::windows::core::HRESULT, pub _newEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } @@ -592,19 +523,12 @@ impl IMXWriter { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).output)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Setencoding<'a, P0>(&self, strencoding: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Setencoding)(::windows::core::Interface::as_raw(self), strencoding.into().abi()).ok() + pub unsafe fn Setencoding(&self, strencoding: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Setencoding)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strencoding)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn encoding(&self) -> ::windows::core::Result { + pub unsafe fn encoding(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).encoding)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).encoding)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetbyteOrderMark(&self, fwritebyteordermark: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetbyteOrderMark)(::windows::core::Interface::as_raw(self), fwritebyteordermark).ok() @@ -634,19 +558,12 @@ impl IMXWriter { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).omitXMLDeclaration)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Setversion<'a, P0>(&self, strversion: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Setversion)(::windows::core::Interface::as_raw(self), strversion.into().abi()).ok() + pub unsafe fn Setversion(&self, strversion: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Setversion)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strversion)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn version(&self) -> ::windows::core::Result { + pub unsafe fn version(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).version)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).version)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetdisableOutputEscaping(&self, fvalue: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetdisableOutputEscaping)(::windows::core::Interface::as_raw(self), fvalue).ok() @@ -733,14 +650,8 @@ pub struct IMXWriter_Vtbl { pub output: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vardestination: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] output: usize, - #[cfg(feature = "Win32_Foundation")] - pub Setencoding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strencoding: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Setencoding: usize, - #[cfg(feature = "Win32_Foundation")] - pub encoding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strencoding: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - encoding: usize, + pub Setencoding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strencoding: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub encoding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strencoding: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetbyteOrderMark: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fwritebyteordermark: i16) -> ::windows::core::HRESULT, pub byteOrderMark: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fwritebyteordermark: *mut i16) -> ::windows::core::HRESULT, pub Setindent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, findentmode: i16) -> ::windows::core::HRESULT, @@ -749,14 +660,8 @@ pub struct IMXWriter_Vtbl { pub standalone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fvalue: *mut i16) -> ::windows::core::HRESULT, pub SetomitXMLDeclaration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fvalue: i16) -> ::windows::core::HRESULT, pub omitXMLDeclaration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fvalue: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Setversion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strversion: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Setversion: usize, - #[cfg(feature = "Win32_Foundation")] - pub version: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strversion: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - version: usize, + pub Setversion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strversion: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub version: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strversion: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetdisableOutputEscaping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fvalue: i16) -> ::windows::core::HRESULT, pub disableOutputEscaping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fvalue: *mut i16) -> ::windows::core::HRESULT, pub flush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -767,40 +672,26 @@ pub struct IMXWriter_Vtbl { pub struct IMXXMLFilter(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMXXMLFilter { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getFeature<'a, P0>(&self, strname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn getFeature(&self, strname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getFeature)(::windows::core::Interface::as_raw(self), strname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getFeature)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn putFeature<'a, P0>(&self, strname: P0, fvalue: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).putFeature)(::windows::core::Interface::as_raw(self), strname.into().abi(), fvalue).ok() + pub unsafe fn putFeature(&self, strname: &::windows::core::BSTR, fvalue: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).putFeature)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strname), fvalue).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn getProperty<'a, P0>(&self, strname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn getProperty(&self, strname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getProperty)(::windows::core::Interface::as_raw(self), strname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn putProperty<'a, P0, P1>(&self, strname: P0, varvalue: P1) -> ::windows::core::Result<()> + pub unsafe fn putProperty<'a, P0>(&self, strname: &::windows::core::BSTR, varvalue: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).putProperty)(::windows::core::Interface::as_raw(self), strname.into().abi(), varvalue.into().abi()).ok() + (::windows::core::Interface::vtable(self).putProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strname), varvalue.into().abi()).ok() } pub unsafe fn entityResolver(&self) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -909,20 +800,14 @@ unsafe impl ::windows::core::Interface for IMXXMLFilter { #[doc(hidden)] pub struct IMXXMLFilter_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub getFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, fvalue: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getFeature: usize, - #[cfg(feature = "Win32_Foundation")] - pub putFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, fvalue: i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - putFeature: usize, + pub getFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fvalue: *mut i16) -> ::windows::core::HRESULT, + pub putFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fvalue: i16) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub getProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, varvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub getProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] getProperty: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub putProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, varvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub putProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] putProperty: usize, pub entityResolver: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, oresolver: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -1963,17 +1848,13 @@ pub struct ISAXXMLReader_Vtbl { pub struct ISchema(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ISchema { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn name(&self) -> ::windows::core::Result { + pub unsafe fn name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn namespaceURI(&self) -> ::windows::core::Result { + pub unsafe fn namespaceURI(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1981,11 +1862,9 @@ impl ISchema { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn id(&self) -> ::windows::core::Result { + pub unsafe fn id(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn itemType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2004,17 +1883,13 @@ impl ISchema { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.writeAnnotation)(::windows::core::Interface::as_raw(self), annotationsink.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn targetNamespace(&self) -> ::windows::core::Result { + pub unsafe fn targetNamespace(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).targetNamespace)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).targetNamespace)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn version(&self) -> ::windows::core::Result { + pub unsafe fn version(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).version)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).version)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2143,14 +2018,8 @@ unsafe impl ::windows::core::Interface for ISchema { #[doc(hidden)] pub struct ISchema_Vtbl { pub base__: ISchemaItem_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub targetNamespace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetnamespace: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - targetNamespace: usize, - #[cfg(feature = "Win32_Foundation")] - pub version: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, version: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - version: usize, + pub targetNamespace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetnamespace: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub version: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, version: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub types: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, types: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -2186,17 +2055,13 @@ pub struct ISchema_Vtbl { pub struct ISchemaAny(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ISchemaAny { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn name(&self) -> ::windows::core::Result { + pub unsafe fn name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn namespaceURI(&self) -> ::windows::core::Result { + pub unsafe fn namespaceURI(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2204,11 +2069,9 @@ impl ISchemaAny { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn id(&self) -> ::windows::core::Result { + pub unsafe fn id(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn itemType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2364,17 +2227,13 @@ pub struct ISchemaAny_Vtbl { pub struct ISchemaAttribute(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ISchemaAttribute { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn name(&self) -> ::windows::core::Result { + pub unsafe fn name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn namespaceURI(&self) -> ::windows::core::Result { + pub unsafe fn namespaceURI(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2382,11 +2241,9 @@ impl ISchemaAttribute { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn id(&self) -> ::windows::core::Result { + pub unsafe fn id(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn itemType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2417,17 +2274,13 @@ impl ISchemaAttribute { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).scope)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn defaultValue(&self) -> ::windows::core::Result { + pub unsafe fn defaultValue(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).defaultValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).defaultValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn fixedValue(&self) -> ::windows::core::Result { + pub unsafe fn fixedValue(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).fixedValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).fixedValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn r#use(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2530,14 +2383,8 @@ pub struct ISchemaAttribute_Vtbl { pub scope: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scope: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] scope: usize, - #[cfg(feature = "Win32_Foundation")] - pub defaultValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, defaultvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - defaultValue: usize, - #[cfg(feature = "Win32_Foundation")] - pub fixedValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fixedvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - fixedValue: usize, + pub defaultValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, defaultvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub fixedValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fixedvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub r#use: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#use: *mut SCHEMAUSE) -> ::windows::core::HRESULT, pub isReference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reference: *mut i16) -> ::windows::core::HRESULT, } @@ -2547,17 +2394,13 @@ pub struct ISchemaAttribute_Vtbl { pub struct ISchemaAttributeGroup(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ISchemaAttributeGroup { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn name(&self) -> ::windows::core::Result { + pub unsafe fn name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn namespaceURI(&self) -> ::windows::core::Result { + pub unsafe fn namespaceURI(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2565,11 +2408,9 @@ impl ISchemaAttributeGroup { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn id(&self) -> ::windows::core::Result { + pub unsafe fn id(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn itemType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2700,17 +2541,13 @@ pub struct ISchemaAttributeGroup_Vtbl { pub struct ISchemaComplexType(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ISchemaComplexType { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn name(&self) -> ::windows::core::Result { + pub unsafe fn name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn namespaceURI(&self) -> ::windows::core::Result { + pub unsafe fn namespaceURI(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2718,11 +2555,9 @@ impl ISchemaComplexType { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn id(&self) -> ::windows::core::Result { + pub unsafe fn id(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn itemType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2759,38 +2594,25 @@ impl ISchemaComplexType { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.derivedBy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn isValid<'a, P0>(&self, data: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn isValid(&self, data: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.isValid)(::windows::core::Interface::as_raw(self), data.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.isValid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(data), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn minExclusive(&self) -> ::windows::core::Result { + pub unsafe fn minExclusive(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.minExclusive)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.minExclusive)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn minInclusive(&self) -> ::windows::core::Result { + pub unsafe fn minInclusive(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.minInclusive)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.minInclusive)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn maxExclusive(&self) -> ::windows::core::Result { + pub unsafe fn maxExclusive(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.maxExclusive)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.maxExclusive)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn maxInclusive(&self) -> ::windows::core::Result { + pub unsafe fn maxInclusive(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.maxInclusive)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.maxInclusive)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2993,17 +2815,13 @@ pub struct ISchemaComplexType_Vtbl { pub struct ISchemaElement(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ISchemaElement { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn name(&self) -> ::windows::core::Result { + pub unsafe fn name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn namespaceURI(&self) -> ::windows::core::Result { + pub unsafe fn namespaceURI(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3011,11 +2829,9 @@ impl ISchemaElement { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn id(&self) -> ::windows::core::Result { + pub unsafe fn id(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn itemType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3058,17 +2874,13 @@ impl ISchemaElement { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).scope)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn defaultValue(&self) -> ::windows::core::Result { + pub unsafe fn defaultValue(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).defaultValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).defaultValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn fixedValue(&self) -> ::windows::core::Result { + pub unsafe fn fixedValue(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).fixedValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).fixedValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn isNillable(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3213,14 +3025,8 @@ pub struct ISchemaElement_Vtbl { pub scope: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scope: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] scope: usize, - #[cfg(feature = "Win32_Foundation")] - pub defaultValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, defaultvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - defaultValue: usize, - #[cfg(feature = "Win32_Foundation")] - pub fixedValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fixedvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - fixedValue: usize, + pub defaultValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, defaultvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub fixedValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fixedvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub isNillable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nillable: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub identityConstraints: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, constraints: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -3241,17 +3047,13 @@ pub struct ISchemaElement_Vtbl { pub struct ISchemaIdentityConstraint(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ISchemaIdentityConstraint { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn name(&self) -> ::windows::core::Result { + pub unsafe fn name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn namespaceURI(&self) -> ::windows::core::Result { + pub unsafe fn namespaceURI(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3259,11 +3061,9 @@ impl ISchemaIdentityConstraint { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn id(&self) -> ::windows::core::Result { + pub unsafe fn id(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn itemType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3282,11 +3082,9 @@ impl ISchemaIdentityConstraint { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.writeAnnotation)(::windows::core::Interface::as_raw(self), annotationsink.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn selector(&self) -> ::windows::core::Result { + pub unsafe fn selector(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).selector)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).selector)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3385,10 +3183,7 @@ unsafe impl ::windows::core::Interface for ISchemaIdentityConstraint { #[doc(hidden)] pub struct ISchemaIdentityConstraint_Vtbl { pub base__: ISchemaItem_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub selector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, selector: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - selector: usize, + pub selector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, selector: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub fields: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fields: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -3404,17 +3199,13 @@ pub struct ISchemaIdentityConstraint_Vtbl { pub struct ISchemaItem(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ISchemaItem { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn name(&self) -> ::windows::core::Result { + pub unsafe fn name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn namespaceURI(&self) -> ::windows::core::Result { + pub unsafe fn namespaceURI(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3422,11 +3213,9 @@ impl ISchemaItem { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn id(&self) -> ::windows::core::Result { + pub unsafe fn id(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn itemType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3512,22 +3301,13 @@ unsafe impl ::windows::core::Interface for ISchemaItem { #[doc(hidden)] pub struct ISchemaItem_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - name: usize, - #[cfg(feature = "Win32_Foundation")] - pub namespaceURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, namespaceuri: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - namespaceURI: usize, + pub name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub namespaceURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, namespaceuri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub schema: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, schema: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] schema: usize, - #[cfg(feature = "Win32_Foundation")] - pub id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - id: usize, + pub id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub itemType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, itemtype: *mut SOMITEMTYPE) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub unhandledAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, attributes: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -3547,24 +3327,17 @@ impl ISchemaItemCollection { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).get_item)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn itemByName<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn itemByName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).itemByName)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).itemByName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn itemByQName<'a, P0, P1>(&self, name: P0, namespaceuri: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn itemByQName(&self, name: &::windows::core::BSTR, namespaceuri: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).itemByQName)(::windows::core::Interface::as_raw(self), name.into().abi(), namespaceuri.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).itemByQName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute_copy(namespaceuri), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn length(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3645,13 +3418,13 @@ pub struct ISchemaItemCollection_Vtbl { pub get_item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, item: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] get_item: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub itemByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, item: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub itemByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, item: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] itemByName: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub itemByQName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, namespaceuri: ::core::mem::ManuallyDrop, item: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub itemByQName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, namespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, item: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] itemByQName: usize, pub length: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, length: *mut i32) -> ::windows::core::HRESULT, pub _newEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -3662,17 +3435,13 @@ pub struct ISchemaItemCollection_Vtbl { pub struct ISchemaModelGroup(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ISchemaModelGroup { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn name(&self) -> ::windows::core::Result { + pub unsafe fn name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn namespaceURI(&self) -> ::windows::core::Result { + pub unsafe fn namespaceURI(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3680,11 +3449,9 @@ impl ISchemaModelGroup { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn id(&self) -> ::windows::core::Result { + pub unsafe fn id(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn itemType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3835,17 +3602,13 @@ pub struct ISchemaModelGroup_Vtbl { pub struct ISchemaNotation(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ISchemaNotation { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn name(&self) -> ::windows::core::Result { + pub unsafe fn name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn namespaceURI(&self) -> ::windows::core::Result { + pub unsafe fn namespaceURI(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3853,11 +3616,9 @@ impl ISchemaNotation { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn id(&self) -> ::windows::core::Result { + pub unsafe fn id(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn itemType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3876,17 +3637,13 @@ impl ISchemaNotation { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.writeAnnotation)(::windows::core::Interface::as_raw(self), annotationsink.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn systemIdentifier(&self) -> ::windows::core::Result { + pub unsafe fn systemIdentifier(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).systemIdentifier)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).systemIdentifier)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn publicIdentifier(&self) -> ::windows::core::Result { + pub unsafe fn publicIdentifier(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).publicIdentifier)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).publicIdentifier)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -3973,14 +3730,8 @@ unsafe impl ::windows::core::Interface for ISchemaNotation { #[doc(hidden)] pub struct ISchemaNotation_Vtbl { pub base__: ISchemaItem_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub systemIdentifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uri: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - systemIdentifier: usize, - #[cfg(feature = "Win32_Foundation")] - pub publicIdentifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uri: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - publicIdentifier: usize, + pub systemIdentifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub publicIdentifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3988,17 +3739,13 @@ pub struct ISchemaNotation_Vtbl { pub struct ISchemaParticle(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ISchemaParticle { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn name(&self) -> ::windows::core::Result { + pub unsafe fn name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn namespaceURI(&self) -> ::windows::core::Result { + pub unsafe fn namespaceURI(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4006,11 +3753,9 @@ impl ISchemaParticle { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn id(&self) -> ::windows::core::Result { + pub unsafe fn id(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn itemType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4141,11 +3886,9 @@ pub struct ISchemaParticle_Vtbl { pub struct ISchemaStringCollection(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ISchemaStringCollection { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_item(&self, index: i32) -> ::windows::core::Result { + pub unsafe fn get_item(&self, index: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_item)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_item)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn length(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4222,10 +3965,7 @@ unsafe impl ::windows::core::Interface for ISchemaStringCollection { #[doc(hidden)] pub struct ISchemaStringCollection_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub get_item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, bstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_item: usize, + pub get_item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, bstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub length: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, length: *mut i32) -> ::windows::core::HRESULT, pub _newEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } @@ -4235,17 +3975,13 @@ pub struct ISchemaStringCollection_Vtbl { pub struct ISchemaType(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ISchemaType { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn name(&self) -> ::windows::core::Result { + pub unsafe fn name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn namespaceURI(&self) -> ::windows::core::Result { + pub unsafe fn namespaceURI(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4253,11 +3989,9 @@ impl ISchemaType { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn id(&self) -> ::windows::core::Result { + pub unsafe fn id(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn itemType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4294,38 +4028,25 @@ impl ISchemaType { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).derivedBy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn isValid<'a, P0>(&self, data: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn isValid(&self, data: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).isValid)(::windows::core::Interface::as_raw(self), data.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).isValid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(data), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn minExclusive(&self) -> ::windows::core::Result { + pub unsafe fn minExclusive(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).minExclusive)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).minExclusive)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn minInclusive(&self) -> ::windows::core::Result { + pub unsafe fn minInclusive(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).minInclusive)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).minInclusive)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn maxExclusive(&self) -> ::windows::core::Result { + pub unsafe fn maxExclusive(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).maxExclusive)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).maxExclusive)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn maxInclusive(&self) -> ::windows::core::Result { + pub unsafe fn maxInclusive(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).maxInclusive)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).maxInclusive)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -4465,26 +4186,11 @@ pub struct ISchemaType_Vtbl { pub r#final: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#final: *mut SCHEMADERIVATIONMETHOD) -> ::windows::core::HRESULT, pub variety: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, variety: *mut SCHEMATYPEVARIETY) -> ::windows::core::HRESULT, pub derivedBy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, derivedby: *mut SCHEMADERIVATIONMETHOD) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub isValid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop, valid: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - isValid: usize, - #[cfg(feature = "Win32_Foundation")] - pub minExclusive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, minexclusive: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - minExclusive: usize, - #[cfg(feature = "Win32_Foundation")] - pub minInclusive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mininclusive: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - minInclusive: usize, - #[cfg(feature = "Win32_Foundation")] - pub maxExclusive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, maxexclusive: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - maxExclusive: usize, - #[cfg(feature = "Win32_Foundation")] - pub maxInclusive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, maxinclusive: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - maxInclusive: usize, + pub isValid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop<::windows::core::BSTR>, valid: *mut i16) -> ::windows::core::HRESULT, + pub minExclusive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, minexclusive: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub minInclusive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mininclusive: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub maxExclusive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, maxexclusive: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub maxInclusive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, maxinclusive: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub totalDigits: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, totaldigits: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -4523,39 +4229,24 @@ pub struct IServerXMLHTTPRequest(::windows::core::IUnknown); impl IServerXMLHTTPRequest { #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn open<'a, P0, P1, P2, P3, P4>(&self, bstrmethod: P0, bstrurl: P1, varasync: P2, bstruser: P3, bstrpassword: P4) -> ::windows::core::Result<()> + pub unsafe fn open<'a, P0, P1, P2>(&self, bstrmethod: &::windows::core::BSTR, bstrurl: &::windows::core::BSTR, varasync: P0, bstruser: P1, bstrpassword: P2) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.open)(::windows::core::Interface::as_raw(self), bstrmethod.into().abi(), bstrurl.into().abi(), varasync.into().abi(), bstruser.into().abi(), bstrpassword.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.open)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrmethod), ::core::mem::transmute_copy(bstrurl), varasync.into().abi(), bstruser.into().abi(), bstrpassword.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn setRequestHeader<'a, P0, P1>(&self, bstrheader: P0, bstrvalue: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.setRequestHeader)(::windows::core::Interface::as_raw(self), bstrheader.into().abi(), bstrvalue.into().abi()).ok() + pub unsafe fn setRequestHeader(&self, bstrheader: &::windows::core::BSTR, bstrvalue: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.setRequestHeader)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrheader), ::core::mem::transmute_copy(bstrvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getResponseHeader<'a, P0>(&self, bstrheader: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn getResponseHeader(&self, bstrheader: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.getResponseHeader)(::windows::core::Interface::as_raw(self), bstrheader.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.getResponseHeader)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrheader), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getAllResponseHeaders(&self) -> ::windows::core::Result { + pub unsafe fn getAllResponseHeaders(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.getAllResponseHeaders)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.getAllResponseHeaders)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -4572,11 +4263,9 @@ impl IServerXMLHTTPRequest { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.status)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn statusText(&self) -> ::windows::core::Result { + pub unsafe fn statusText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.statusText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.statusText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4584,11 +4273,9 @@ impl IServerXMLHTTPRequest { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.responseXML)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn responseText(&self) -> ::windows::core::Result { + pub unsafe fn responseText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.responseText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.responseText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -4747,39 +4434,24 @@ pub struct IServerXMLHTTPRequest2(::windows::core::IUnknown); impl IServerXMLHTTPRequest2 { #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn open<'a, P0, P1, P2, P3, P4>(&self, bstrmethod: P0, bstrurl: P1, varasync: P2, bstruser: P3, bstrpassword: P4) -> ::windows::core::Result<()> + pub unsafe fn open<'a, P0, P1, P2>(&self, bstrmethod: &::windows::core::BSTR, bstrurl: &::windows::core::BSTR, varasync: P0, bstruser: P1, bstrpassword: P2) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.open)(::windows::core::Interface::as_raw(self), bstrmethod.into().abi(), bstrurl.into().abi(), varasync.into().abi(), bstruser.into().abi(), bstrpassword.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.open)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrmethod), ::core::mem::transmute_copy(bstrurl), varasync.into().abi(), bstruser.into().abi(), bstrpassword.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn setRequestHeader<'a, P0, P1>(&self, bstrheader: P0, bstrvalue: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.setRequestHeader)(::windows::core::Interface::as_raw(self), bstrheader.into().abi(), bstrvalue.into().abi()).ok() + pub unsafe fn setRequestHeader(&self, bstrheader: &::windows::core::BSTR, bstrvalue: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.setRequestHeader)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrheader), ::core::mem::transmute_copy(bstrvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getResponseHeader<'a, P0>(&self, bstrheader: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn getResponseHeader(&self, bstrheader: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.getResponseHeader)(::windows::core::Interface::as_raw(self), bstrheader.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.getResponseHeader)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrheader), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getAllResponseHeaders(&self) -> ::windows::core::Result { + pub unsafe fn getAllResponseHeaders(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.getAllResponseHeaders)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.getAllResponseHeaders)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -4796,11 +4468,9 @@ impl IServerXMLHTTPRequest2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.status)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn statusText(&self) -> ::windows::core::Result { + pub unsafe fn statusText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.statusText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.statusText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4808,11 +4478,9 @@ impl IServerXMLHTTPRequest2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.responseXML)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn responseText(&self) -> ::windows::core::Result { + pub unsafe fn responseText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.responseText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.responseText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -4873,14 +4541,8 @@ impl IServerXMLHTTPRequest2 { { (::windows::core::Interface::vtable(self).setProxy)(::windows::core::Interface::as_raw(self), proxysetting, varproxyserver.into().abi(), varbypasslist.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn setProxyCredentials<'a, P0, P1>(&self, bstrusername: P0, bstrpassword: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).setProxyCredentials)(::windows::core::Interface::as_raw(self), bstrusername.into().abi(), bstrpassword.into().abi()).ok() + pub unsafe fn setProxyCredentials(&self, bstrusername: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).setProxyCredentials)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrusername), ::core::mem::transmute_copy(bstrpassword)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4989,10 +4651,7 @@ pub struct IServerXMLHTTPRequest2_Vtbl { pub setProxy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, proxysetting: SXH_PROXY_SETTING, varproxyserver: ::core::mem::ManuallyDrop, varbypasslist: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] setProxy: usize, - #[cfg(feature = "Win32_Foundation")] - pub setProxyCredentials: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - setProxyCredentials: usize, + pub setProxyCredentials: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5024,14 +4683,8 @@ impl IVBMXNamespaceManager { pub unsafe fn popContext(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).popContext)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn declarePrefix<'a, P0, P1>(&self, prefix: P0, namespaceuri: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).declarePrefix)(::windows::core::Interface::as_raw(self), prefix.into().abi(), namespaceuri.into().abi()).ok() + pub unsafe fn declarePrefix(&self, prefix: &::windows::core::BSTR, namespaceuri: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).declarePrefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(prefix), ::core::mem::transmute_copy(namespaceuri)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5039,33 +4692,26 @@ impl IVBMXNamespaceManager { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).getDeclaredPrefixes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn getPrefixes<'a, P0>(&self, namespaceuri: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn getPrefixes(&self, namespaceuri: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getPrefixes)(::windows::core::Interface::as_raw(self), namespaceuri.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getPrefixes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(namespaceuri), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn getURI<'a, P0>(&self, prefix: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn getURI(&self, prefix: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getURI)(::windows::core::Interface::as_raw(self), prefix.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(prefix), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn getURIFromNode<'a, P0, P1>(&self, strprefix: P0, contextnode: P1) -> ::windows::core::Result + pub unsafe fn getURIFromNode<'a, P0>(&self, strprefix: &::windows::core::BSTR, contextnode: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IXMLDOMNode>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IXMLDOMNode>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getURIFromNode)(::windows::core::Interface::as_raw(self), strprefix.into().abi(), contextnode.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getURIFromNode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strprefix), contextnode.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -5143,24 +4789,21 @@ pub struct IVBMXNamespaceManager_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] pushNodeContext: usize, pub popContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub declarePrefix: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prefix: ::core::mem::ManuallyDrop, namespaceuri: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - declarePrefix: usize, + pub declarePrefix: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prefix: ::core::mem::ManuallyDrop<::windows::core::BSTR>, namespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub getDeclaredPrefixes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prefixes: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] getDeclaredPrefixes: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub getPrefixes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, namespaceuri: ::core::mem::ManuallyDrop, prefixes: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub getPrefixes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, namespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, prefixes: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] getPrefixes: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub getURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prefix: ::core::mem::ManuallyDrop, uri: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub getURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prefix: ::core::mem::ManuallyDrop<::windows::core::BSTR>, uri: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] getURI: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub getURIFromNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strprefix: ::core::mem::ManuallyDrop, contextnode: *mut ::core::ffi::c_void, uri: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub getURIFromNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strprefix: ::core::mem::ManuallyDrop<::windows::core::BSTR>, contextnode: *mut ::core::ffi::c_void, uri: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] getURIFromNode: usize, } @@ -5174,92 +4817,49 @@ impl IVBSAXAttributes { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).length)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getURI(&self, nindex: i32) -> ::windows::core::Result { + pub unsafe fn getURI(&self, nindex: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getURI)(::windows::core::Interface::as_raw(self), nindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getURI)(::windows::core::Interface::as_raw(self), nindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getLocalName(&self, nindex: i32) -> ::windows::core::Result { + pub unsafe fn getLocalName(&self, nindex: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getLocalName)(::windows::core::Interface::as_raw(self), nindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getLocalName)(::windows::core::Interface::as_raw(self), nindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getQName(&self, nindex: i32) -> ::windows::core::Result { + pub unsafe fn getQName(&self, nindex: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getQName)(::windows::core::Interface::as_raw(self), nindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getQName)(::windows::core::Interface::as_raw(self), nindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getIndexFromName<'a, P0, P1>(&self, struri: P0, strlocalname: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn getIndexFromName(&self, struri: &::windows::core::BSTR, strlocalname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getIndexFromName)(::windows::core::Interface::as_raw(self), struri.into().abi(), strlocalname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getIndexFromName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(struri), ::core::mem::transmute_copy(strlocalname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getIndexFromQName<'a, P0>(&self, strqname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn getIndexFromQName(&self, strqname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getIndexFromQName)(::windows::core::Interface::as_raw(self), strqname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getIndexFromQName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strqname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getType(&self, nindex: i32) -> ::windows::core::Result { + pub unsafe fn getType(&self, nindex: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getType)(::windows::core::Interface::as_raw(self), nindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getType)(::windows::core::Interface::as_raw(self), nindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getTypeFromName<'a, P0, P1>(&self, struri: P0, strlocalname: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn getTypeFromName(&self, struri: &::windows::core::BSTR, strlocalname: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getTypeFromName)(::windows::core::Interface::as_raw(self), struri.into().abi(), strlocalname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getTypeFromName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(struri), ::core::mem::transmute_copy(strlocalname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getTypeFromQName<'a, P0>(&self, strqname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn getTypeFromQName(&self, strqname: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getTypeFromQName)(::windows::core::Interface::as_raw(self), strqname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getTypeFromQName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strqname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getValue(&self, nindex: i32) -> ::windows::core::Result { + pub unsafe fn getValue(&self, nindex: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getValue)(::windows::core::Interface::as_raw(self), nindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getValue)(::windows::core::Interface::as_raw(self), nindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getValueFromName<'a, P0, P1>(&self, struri: P0, strlocalname: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn getValueFromName(&self, struri: &::windows::core::BSTR, strlocalname: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getValueFromName)(::windows::core::Interface::as_raw(self), struri.into().abi(), strlocalname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getValueFromName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(struri), ::core::mem::transmute_copy(strlocalname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getValueFromQName<'a, P0>(&self, strqname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn getValueFromQName(&self, strqname: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getValueFromQName)(::windows::core::Interface::as_raw(self), strqname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getValueFromQName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strqname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -5329,50 +4929,17 @@ unsafe impl ::windows::core::Interface for IVBSAXAttributes { pub struct IVBSAXAttributes_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, pub length: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nlength: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub getURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: i32, struri: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getURI: usize, - #[cfg(feature = "Win32_Foundation")] - pub getLocalName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: i32, strlocalname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getLocalName: usize, - #[cfg(feature = "Win32_Foundation")] - pub getQName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: i32, strqname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getQName: usize, - #[cfg(feature = "Win32_Foundation")] - pub getIndexFromName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, struri: ::core::mem::ManuallyDrop, strlocalname: ::core::mem::ManuallyDrop, nindex: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getIndexFromName: usize, - #[cfg(feature = "Win32_Foundation")] - pub getIndexFromQName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strqname: ::core::mem::ManuallyDrop, nindex: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getIndexFromQName: usize, - #[cfg(feature = "Win32_Foundation")] - pub getType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: i32, strtype: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getType: usize, - #[cfg(feature = "Win32_Foundation")] - pub getTypeFromName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, struri: ::core::mem::ManuallyDrop, strlocalname: ::core::mem::ManuallyDrop, strtype: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getTypeFromName: usize, - #[cfg(feature = "Win32_Foundation")] - pub getTypeFromQName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strqname: ::core::mem::ManuallyDrop, strtype: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getTypeFromQName: usize, - #[cfg(feature = "Win32_Foundation")] - pub getValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: i32, strvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getValue: usize, - #[cfg(feature = "Win32_Foundation")] - pub getValueFromName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, struri: ::core::mem::ManuallyDrop, strlocalname: ::core::mem::ManuallyDrop, strvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getValueFromName: usize, - #[cfg(feature = "Win32_Foundation")] - pub getValueFromQName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strqname: ::core::mem::ManuallyDrop, strvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getValueFromQName: usize, + pub getURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: i32, struri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub getLocalName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: i32, strlocalname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub getQName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: i32, strqname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub getIndexFromName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, struri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strlocalname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, nindex: *mut i32) -> ::windows::core::HRESULT, + pub getIndexFromQName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strqname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, nindex: *mut i32) -> ::windows::core::HRESULT, + pub getType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: i32, strtype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub getTypeFromName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, struri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strlocalname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strtype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub getTypeFromQName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strqname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strtype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub getValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: i32, strvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub getValueFromName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, struri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strlocalname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub getValueFromQName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strqname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5394,47 +4961,33 @@ impl IVBSAXContentHandler { pub unsafe fn endDocument(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).endDocument)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn startPrefixMapping(&self, strprefix: &mut super::super::super::Foundation::BSTR, struri: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn startPrefixMapping(&self, strprefix: &mut ::windows::core::BSTR, struri: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).startPrefixMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(strprefix), ::core::mem::transmute(struri)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn endPrefixMapping(&self, strprefix: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn endPrefixMapping(&self, strprefix: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).endPrefixMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(strprefix)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn startElement<'a, P0>(&self, strnamespaceuri: &mut super::super::super::Foundation::BSTR, strlocalname: &mut super::super::super::Foundation::BSTR, strqname: &mut super::super::super::Foundation::BSTR, oattributes: P0) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn startElement<'a, P0>(&self, strnamespaceuri: &mut ::windows::core::BSTR, strlocalname: &mut ::windows::core::BSTR, strqname: &mut ::windows::core::BSTR, oattributes: P0) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IVBSAXAttributes>>, { (::windows::core::Interface::vtable(self).startElement)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(strnamespaceuri), ::core::mem::transmute(strlocalname), ::core::mem::transmute(strqname), oattributes.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn endElement(&self, strnamespaceuri: &mut super::super::super::Foundation::BSTR, strlocalname: &mut super::super::super::Foundation::BSTR, strqname: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn endElement(&self, strnamespaceuri: &mut ::windows::core::BSTR, strlocalname: &mut ::windows::core::BSTR, strqname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).endElement)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(strnamespaceuri), ::core::mem::transmute(strlocalname), ::core::mem::transmute(strqname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn characters(&self, strchars: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn characters(&self, strchars: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).characters)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(strchars)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ignorableWhitespace(&self, strchars: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn ignorableWhitespace(&self, strchars: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ignorableWhitespace)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(strchars)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn processingInstruction(&self, strtarget: &mut super::super::super::Foundation::BSTR, strdata: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn processingInstruction(&self, strtarget: &mut ::windows::core::BSTR, strdata: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).processingInstruction)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(strtarget), ::core::mem::transmute(strdata)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn skippedEntity(&self, strname: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn skippedEntity(&self, strname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).skippedEntity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(strname)).ok() } } @@ -5510,38 +5063,17 @@ pub struct IVBSAXContentHandler_Vtbl { putref_documentLocator: usize, pub startDocument: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub endDocument: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub startPrefixMapping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strprefix: *mut super::super::super::Foundation::BSTR, struri: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - startPrefixMapping: usize, - #[cfg(feature = "Win32_Foundation")] - pub endPrefixMapping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strprefix: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - endPrefixMapping: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub startElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strnamespaceuri: *mut super::super::super::Foundation::BSTR, strlocalname: *mut super::super::super::Foundation::BSTR, strqname: *mut super::super::super::Foundation::BSTR, oattributes: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub startPrefixMapping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strprefix: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, struri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub endPrefixMapping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strprefix: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub startElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strnamespaceuri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strlocalname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strqname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, oattributes: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] startElement: usize, - #[cfg(feature = "Win32_Foundation")] - pub endElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strnamespaceuri: *mut super::super::super::Foundation::BSTR, strlocalname: *mut super::super::super::Foundation::BSTR, strqname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - endElement: usize, - #[cfg(feature = "Win32_Foundation")] - pub characters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strchars: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - characters: usize, - #[cfg(feature = "Win32_Foundation")] - pub ignorableWhitespace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strchars: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ignorableWhitespace: usize, - #[cfg(feature = "Win32_Foundation")] - pub processingInstruction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strtarget: *mut super::super::super::Foundation::BSTR, strdata: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - processingInstruction: usize, - #[cfg(feature = "Win32_Foundation")] - pub skippedEntity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - skippedEntity: usize, + pub endElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strnamespaceuri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strlocalname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strqname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub characters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strchars: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ignorableWhitespace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strchars: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub processingInstruction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strtarget: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub skippedEntity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5549,14 +5081,10 @@ pub struct IVBSAXContentHandler_Vtbl { pub struct IVBSAXDTDHandler(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IVBSAXDTDHandler { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn notationDecl(&self, strname: &mut super::super::super::Foundation::BSTR, strpublicid: &mut super::super::super::Foundation::BSTR, strsystemid: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn notationDecl(&self, strname: &mut ::windows::core::BSTR, strpublicid: &mut ::windows::core::BSTR, strsystemid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).notationDecl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(strname), ::core::mem::transmute(strpublicid), ::core::mem::transmute(strsystemid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn unparsedEntityDecl(&self, strname: &mut super::super::super::Foundation::BSTR, strpublicid: &mut super::super::super::Foundation::BSTR, strsystemid: &mut super::super::super::Foundation::BSTR, strnotationname: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn unparsedEntityDecl(&self, strname: &mut ::windows::core::BSTR, strpublicid: &mut ::windows::core::BSTR, strsystemid: &mut ::windows::core::BSTR, strnotationname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).unparsedEntityDecl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(strname), ::core::mem::transmute(strpublicid), ::core::mem::transmute(strsystemid), ::core::mem::transmute(strnotationname)).ok() } } @@ -5626,14 +5154,8 @@ unsafe impl ::windows::core::Interface for IVBSAXDTDHandler { #[doc(hidden)] pub struct IVBSAXDTDHandler_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub notationDecl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: *mut super::super::super::Foundation::BSTR, strpublicid: *mut super::super::super::Foundation::BSTR, strsystemid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - notationDecl: usize, - #[cfg(feature = "Win32_Foundation")] - pub unparsedEntityDecl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: *mut super::super::super::Foundation::BSTR, strpublicid: *mut super::super::super::Foundation::BSTR, strsystemid: *mut super::super::super::Foundation::BSTR, strnotationname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - unparsedEntityDecl: usize, + pub notationDecl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpublicid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strsystemid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub unparsedEntityDecl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpublicid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strsystemid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strnotationname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5641,24 +5163,16 @@ pub struct IVBSAXDTDHandler_Vtbl { pub struct IVBSAXDeclHandler(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IVBSAXDeclHandler { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn elementDecl(&self, strname: &mut super::super::super::Foundation::BSTR, strmodel: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn elementDecl(&self, strname: &mut ::windows::core::BSTR, strmodel: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).elementDecl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(strname), ::core::mem::transmute(strmodel)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn attributeDecl(&self, strelementname: &mut super::super::super::Foundation::BSTR, strattributename: &mut super::super::super::Foundation::BSTR, strtype: &mut super::super::super::Foundation::BSTR, strvaluedefault: &mut super::super::super::Foundation::BSTR, strvalue: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn attributeDecl(&self, strelementname: &mut ::windows::core::BSTR, strattributename: &mut ::windows::core::BSTR, strtype: &mut ::windows::core::BSTR, strvaluedefault: &mut ::windows::core::BSTR, strvalue: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).attributeDecl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(strelementname), ::core::mem::transmute(strattributename), ::core::mem::transmute(strtype), ::core::mem::transmute(strvaluedefault), ::core::mem::transmute(strvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn internalEntityDecl(&self, strname: &mut super::super::super::Foundation::BSTR, strvalue: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn internalEntityDecl(&self, strname: &mut ::windows::core::BSTR, strvalue: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).internalEntityDecl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(strname), ::core::mem::transmute(strvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn externalEntityDecl(&self, strname: &mut super::super::super::Foundation::BSTR, strpublicid: &mut super::super::super::Foundation::BSTR, strsystemid: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn externalEntityDecl(&self, strname: &mut ::windows::core::BSTR, strpublicid: &mut ::windows::core::BSTR, strsystemid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).externalEntityDecl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(strname), ::core::mem::transmute(strpublicid), ::core::mem::transmute(strsystemid)).ok() } } @@ -5728,22 +5242,10 @@ unsafe impl ::windows::core::Interface for IVBSAXDeclHandler { #[doc(hidden)] pub struct IVBSAXDeclHandler_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub elementDecl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: *mut super::super::super::Foundation::BSTR, strmodel: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - elementDecl: usize, - #[cfg(feature = "Win32_Foundation")] - pub attributeDecl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strelementname: *mut super::super::super::Foundation::BSTR, strattributename: *mut super::super::super::Foundation::BSTR, strtype: *mut super::super::super::Foundation::BSTR, strvaluedefault: *mut super::super::super::Foundation::BSTR, strvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - attributeDecl: usize, - #[cfg(feature = "Win32_Foundation")] - pub internalEntityDecl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: *mut super::super::super::Foundation::BSTR, strvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - internalEntityDecl: usize, - #[cfg(feature = "Win32_Foundation")] - pub externalEntityDecl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: *mut super::super::super::Foundation::BSTR, strpublicid: *mut super::super::super::Foundation::BSTR, strsystemid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - externalEntityDecl: usize, + pub elementDecl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strmodel: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub attributeDecl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strelementname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strattributename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strtype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strvaluedefault: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub internalEntityDecl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub externalEntityDecl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpublicid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strsystemid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5753,7 +5255,7 @@ pub struct IVBSAXEntityResolver(::windows::core::IUnknown); impl IVBSAXEntityResolver { #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn resolveEntity(&self, strpublicid: &mut super::super::super::Foundation::BSTR, strsystemid: &mut super::super::super::Foundation::BSTR, varinput: &mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + pub unsafe fn resolveEntity(&self, strpublicid: &mut ::windows::core::BSTR, strsystemid: &mut ::windows::core::BSTR, varinput: &mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).resolveEntity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(strpublicid), ::core::mem::transmute(strsystemid), ::core::mem::transmute(varinput)).ok() } } @@ -5824,7 +5326,7 @@ unsafe impl ::windows::core::Interface for IVBSAXEntityResolver { pub struct IVBSAXEntityResolver_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub resolveEntity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpublicid: *mut super::super::super::Foundation::BSTR, strsystemid: *mut super::super::super::Foundation::BSTR, varinput: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub resolveEntity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpublicid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strsystemid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, varinput: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] resolveEntity: usize, } @@ -5834,25 +5336,25 @@ pub struct IVBSAXEntityResolver_Vtbl { pub struct IVBSAXErrorHandler(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IVBSAXErrorHandler { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn error<'a, P0>(&self, olocator: P0, strerrormessage: &mut super::super::super::Foundation::BSTR, nerrorcode: i32) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn error<'a, P0>(&self, olocator: P0, strerrormessage: &mut ::windows::core::BSTR, nerrorcode: i32) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IVBSAXLocator>>, { (::windows::core::Interface::vtable(self).error)(::windows::core::Interface::as_raw(self), olocator.into().abi(), ::core::mem::transmute(strerrormessage), nerrorcode).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn fatalError<'a, P0>(&self, olocator: P0, strerrormessage: &mut super::super::super::Foundation::BSTR, nerrorcode: i32) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn fatalError<'a, P0>(&self, olocator: P0, strerrormessage: &mut ::windows::core::BSTR, nerrorcode: i32) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IVBSAXLocator>>, { (::windows::core::Interface::vtable(self).fatalError)(::windows::core::Interface::as_raw(self), olocator.into().abi(), ::core::mem::transmute(strerrormessage), nerrorcode).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn ignorableWarning<'a, P0>(&self, olocator: P0, strerrormessage: &mut super::super::super::Foundation::BSTR, nerrorcode: i32) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn ignorableWarning<'a, P0>(&self, olocator: P0, strerrormessage: &mut ::windows::core::BSTR, nerrorcode: i32) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IVBSAXLocator>>, { @@ -5925,17 +5427,17 @@ unsafe impl ::windows::core::Interface for IVBSAXErrorHandler { #[doc(hidden)] pub struct IVBSAXErrorHandler_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, olocator: *mut ::core::ffi::c_void, strerrormessage: *mut super::super::super::Foundation::BSTR, nerrorcode: i32) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, olocator: *mut ::core::ffi::c_void, strerrormessage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, nerrorcode: i32) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] error: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub fatalError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, olocator: *mut ::core::ffi::c_void, strerrormessage: *mut super::super::super::Foundation::BSTR, nerrorcode: i32) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub fatalError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, olocator: *mut ::core::ffi::c_void, strerrormessage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, nerrorcode: i32) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] fatalError: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub ignorableWarning: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, olocator: *mut ::core::ffi::c_void, strerrormessage: *mut super::super::super::Foundation::BSTR, nerrorcode: i32) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub ignorableWarning: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, olocator: *mut ::core::ffi::c_void, strerrormessage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, nerrorcode: i32) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] ignorableWarning: usize, } #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_System_Com\"`*"] @@ -5944,22 +5446,16 @@ pub struct IVBSAXErrorHandler_Vtbl { pub struct IVBSAXLexicalHandler(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IVBSAXLexicalHandler { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn startDTD(&self, strname: &mut super::super::super::Foundation::BSTR, strpublicid: &mut super::super::super::Foundation::BSTR, strsystemid: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn startDTD(&self, strname: &mut ::windows::core::BSTR, strpublicid: &mut ::windows::core::BSTR, strsystemid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).startDTD)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(strname), ::core::mem::transmute(strpublicid), ::core::mem::transmute(strsystemid)).ok() } pub unsafe fn endDTD(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).endDTD)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn startEntity(&self, strname: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn startEntity(&self, strname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).startEntity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(strname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn endEntity(&self, strname: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn endEntity(&self, strname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).endEntity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(strname)).ok() } pub unsafe fn startCDATA(&self) -> ::windows::core::Result<()> { @@ -5968,9 +5464,7 @@ impl IVBSAXLexicalHandler { pub unsafe fn endCDATA(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).endCDATA)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn comment(&self, strchars: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn comment(&self, strchars: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).comment)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(strchars)).ok() } } @@ -6040,25 +5534,13 @@ unsafe impl ::windows::core::Interface for IVBSAXLexicalHandler { #[doc(hidden)] pub struct IVBSAXLexicalHandler_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub startDTD: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: *mut super::super::super::Foundation::BSTR, strpublicid: *mut super::super::super::Foundation::BSTR, strsystemid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - startDTD: usize, + pub startDTD: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpublicid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, strsystemid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub endDTD: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub startEntity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - startEntity: usize, - #[cfg(feature = "Win32_Foundation")] - pub endEntity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - endEntity: usize, + pub startEntity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub endEntity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub startCDATA: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub endCDATA: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub comment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strchars: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - comment: usize, + pub comment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strchars: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6074,17 +5556,13 @@ impl IVBSAXLocator { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).lineNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn publicId(&self) -> ::windows::core::Result { + pub unsafe fn publicId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).publicId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).publicId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn systemId(&self) -> ::windows::core::Result { + pub unsafe fn systemId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).systemId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).systemId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -6155,14 +5633,8 @@ pub struct IVBSAXLocator_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, pub columnNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ncolumn: *mut i32) -> ::windows::core::HRESULT, pub lineNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nline: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub publicId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpublicid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - publicId: usize, - #[cfg(feature = "Win32_Foundation")] - pub systemId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strsystemid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - systemId: usize, + pub publicId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpublicid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub systemId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strsystemid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6266,40 +5738,26 @@ pub struct IVBSAXXMLFilter_Vtbl { pub struct IVBSAXXMLReader(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IVBSAXXMLReader { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getFeature<'a, P0>(&self, strname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn getFeature(&self, strname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getFeature)(::windows::core::Interface::as_raw(self), strname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getFeature)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn putFeature<'a, P0>(&self, strname: P0, fvalue: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).putFeature)(::windows::core::Interface::as_raw(self), strname.into().abi(), fvalue).ok() + pub unsafe fn putFeature(&self, strname: &::windows::core::BSTR, fvalue: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).putFeature)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strname), fvalue).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn getProperty<'a, P0>(&self, strname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn getProperty(&self, strname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getProperty)(::windows::core::Interface::as_raw(self), strname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn putProperty<'a, P0, P1>(&self, strname: P0, varvalue: P1) -> ::windows::core::Result<()> + pub unsafe fn putProperty<'a, P0>(&self, strname: &::windows::core::BSTR, varvalue: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).putProperty)(::windows::core::Interface::as_raw(self), strname.into().abi(), varvalue.into().abi()).ok() + (::windows::core::Interface::vtable(self).putProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strname), varvalue.into().abi()).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6357,33 +5815,19 @@ impl IVBSAXXMLReader { { (::windows::core::Interface::vtable(self).putref_errorHandler)(::windows::core::Interface::as_raw(self), ohandler.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn baseURL(&self) -> ::windows::core::Result { + pub unsafe fn baseURL(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).baseURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).baseURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetbaseURL<'a, P0>(&self, strbaseurl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetbaseURL)(::windows::core::Interface::as_raw(self), strbaseurl.into().abi()).ok() + pub unsafe fn SetbaseURL(&self, strbaseurl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetbaseURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strbaseurl)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn secureBaseURL(&self) -> ::windows::core::Result { + pub unsafe fn secureBaseURL(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).secureBaseURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).secureBaseURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetsecureBaseURL<'a, P0>(&self, strsecurebaseurl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetsecureBaseURL)(::windows::core::Interface::as_raw(self), strsecurebaseurl.into().abi()).ok() + pub unsafe fn SetsecureBaseURL(&self, strsecurebaseurl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetsecureBaseURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strsecurebaseurl)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -6393,13 +5837,8 @@ impl IVBSAXXMLReader { { (::windows::core::Interface::vtable(self).parse)(::windows::core::Interface::as_raw(self), varinput.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn parseURL<'a, P0>(&self, strurl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).parseURL)(::windows::core::Interface::as_raw(self), strurl.into().abi()).ok() + pub unsafe fn parseURL(&self, strurl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).parseURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strurl)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6468,20 +5907,14 @@ unsafe impl ::windows::core::Interface for IVBSAXXMLReader { #[doc(hidden)] pub struct IVBSAXXMLReader_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub getFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, fvalue: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getFeature: usize, - #[cfg(feature = "Win32_Foundation")] - pub putFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, fvalue: i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - putFeature: usize, + pub getFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fvalue: *mut i16) -> ::windows::core::HRESULT, + pub putFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fvalue: i16) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub getProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, varvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub getProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] getProperty: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub putProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, varvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub putProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] putProperty: usize, #[cfg(feature = "Win32_System_Com")] @@ -6516,30 +5949,15 @@ pub struct IVBSAXXMLReader_Vtbl { pub putref_errorHandler: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ohandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] putref_errorHandler: usize, - #[cfg(feature = "Win32_Foundation")] - pub baseURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strbaseurl: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - baseURL: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetbaseURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strbaseurl: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetbaseURL: usize, - #[cfg(feature = "Win32_Foundation")] - pub secureBaseURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strsecurebaseurl: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - secureBaseURL: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetsecureBaseURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strsecurebaseurl: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetsecureBaseURL: usize, + pub baseURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strbaseurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetbaseURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strbaseurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub secureBaseURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strsecurebaseurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetsecureBaseURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strsecurebaseurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub parse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varinput: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] parse: usize, - #[cfg(feature = "Win32_Foundation")] - pub parseURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strurl: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - parseURL: usize, + pub parseURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6547,17 +5965,13 @@ pub struct IVBSAXXMLReader_Vtbl { pub struct IXMLAttribute(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IXMLAttribute { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn name(&self) -> ::windows::core::Result { + pub unsafe fn name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn value(&self) -> ::windows::core::Result { + pub unsafe fn value(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).value)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).value)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -6626,14 +6040,8 @@ unsafe impl ::windows::core::Interface for IXMLAttribute { #[doc(hidden)] pub struct IXMLAttribute_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, n: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - name: usize, - #[cfg(feature = "Win32_Foundation")] - pub value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, v: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - value: usize, + pub name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, n: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, v: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6641,9 +6049,7 @@ pub struct IXMLAttribute_Vtbl { pub struct IXMLDOMAttribute(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMAttribute { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn nodeName(&self, name: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn nodeName(&self, name: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.nodeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(name)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -6757,23 +6163,14 @@ impl IXMLDOMAttribute { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.cloneNode)(::windows::core::Interface::as_raw(self), deep, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn nodeTypeString(&self, nodetype: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn nodeTypeString(&self, nodetype: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.nodeTypeString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(nodetype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn text(&self, text: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn text(&self, text: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.text)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(text)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Settext<'a, P0>(&self, text: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.Settext)(::windows::core::Interface::as_raw(self), text.into().abi()).ok() + pub unsafe fn Settext(&self, text: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.Settext)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(text)).ok() } pub unsafe fn specified(&self, isspecified: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.specified)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(isspecified)).ok() @@ -6802,61 +6199,42 @@ impl IXMLDOMAttribute { pub unsafe fn dataType(&self, datatypename: &mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.dataType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(datatypename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetdataType<'a, P0>(&self, datatypename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetdataType)(::windows::core::Interface::as_raw(self), datatypename.into().abi()).ok() + pub unsafe fn SetdataType(&self, datatypename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetdataType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(datatypename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn xml(&self, xmlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn xml(&self, xmlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.xml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(xmlstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn transformNode<'a, P0>(&self, stylesheet: P0, xmlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn transformNode<'a, P0>(&self, stylesheet: P0, xmlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IXMLDOMNode>>, { (::windows::core::Interface::vtable(self).base__.transformNode)(::windows::core::Interface::as_raw(self), stylesheet.into().abi(), ::core::mem::transmute(xmlstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn selectNodes<'a, P0>(&self, querystring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn selectNodes(&self, querystring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.selectNodes)(::windows::core::Interface::as_raw(self), querystring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.selectNodes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(querystring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn selectSingleNode<'a, P0>(&self, querystring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn selectSingleNode(&self, querystring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.selectSingleNode)(::windows::core::Interface::as_raw(self), querystring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.selectSingleNode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(querystring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn parsed(&self, isparsed: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.parsed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(isparsed)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn namespaceURI(&self, namespaceuri: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn namespaceURI(&self, namespaceuri: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(namespaceuri)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn prefix(&self, prefixstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn prefix(&self, prefixstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.prefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(prefixstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn baseName(&self, namestring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn baseName(&self, namestring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.baseName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(namestring)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -6868,9 +6246,7 @@ impl IXMLDOMAttribute { { (::windows::core::Interface::vtable(self).base__.transformNodeToObject)(::windows::core::Interface::as_raw(self), stylesheet.into().abi(), outputobject.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn name(&self, attributename: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn name(&self, attributename: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(attributename)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -6971,10 +6347,7 @@ unsafe impl ::windows::core::Interface for IXMLDOMAttribute { #[doc(hidden)] pub struct IXMLDOMAttribute_Vtbl { pub base__: IXMLDOMNode_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, attributename: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - name: usize, + pub name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, attributename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, attributevalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -6990,9 +6363,7 @@ pub struct IXMLDOMAttribute_Vtbl { pub struct IXMLDOMCDATASection(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMCDATASection { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn nodeName(&self, name: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn nodeName(&self, name: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.nodeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(name)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -7106,23 +6477,14 @@ impl IXMLDOMCDATASection { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.cloneNode)(::windows::core::Interface::as_raw(self), deep, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn nodeTypeString(&self, nodetype: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn nodeTypeString(&self, nodetype: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.nodeTypeString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(nodetype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn text(&self, text: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn text(&self, text: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.text)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(text)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Settext<'a, P0>(&self, text: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.Settext)(::windows::core::Interface::as_raw(self), text.into().abi()).ok() + pub unsafe fn Settext(&self, text: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.Settext)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(text)).ok() } pub unsafe fn specified(&self, isspecified: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.specified)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(isspecified)).ok() @@ -7151,61 +6513,42 @@ impl IXMLDOMCDATASection { pub unsafe fn dataType(&self, datatypename: &mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.dataType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(datatypename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetdataType<'a, P0>(&self, datatypename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.SetdataType)(::windows::core::Interface::as_raw(self), datatypename.into().abi()).ok() + pub unsafe fn SetdataType(&self, datatypename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.SetdataType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(datatypename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn xml(&self, xmlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn xml(&self, xmlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.xml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(xmlstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn transformNode<'a, P0>(&self, stylesheet: P0, xmlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn transformNode<'a, P0>(&self, stylesheet: P0, xmlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IXMLDOMNode>>, { (::windows::core::Interface::vtable(self).base__.base__.base__.transformNode)(::windows::core::Interface::as_raw(self), stylesheet.into().abi(), ::core::mem::transmute(xmlstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn selectNodes<'a, P0>(&self, querystring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn selectNodes(&self, querystring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.selectNodes)(::windows::core::Interface::as_raw(self), querystring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.selectNodes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(querystring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn selectSingleNode<'a, P0>(&self, querystring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn selectSingleNode(&self, querystring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.selectSingleNode)(::windows::core::Interface::as_raw(self), querystring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.selectSingleNode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(querystring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn parsed(&self, isparsed: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.parsed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(isparsed)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn namespaceURI(&self, namespaceuri: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn namespaceURI(&self, namespaceuri: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(namespaceuri)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn prefix(&self, prefixstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn prefix(&self, prefixstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.prefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(prefixstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn baseName(&self, namestring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn baseName(&self, namestring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.baseName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(namestring)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -7217,53 +6560,29 @@ impl IXMLDOMCDATASection { { (::windows::core::Interface::vtable(self).base__.base__.base__.transformNodeToObject)(::windows::core::Interface::as_raw(self), stylesheet.into().abi(), outputobject.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn data(&self, data: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn data(&self, data: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.data)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(data)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Setdata<'a, P0>(&self, data: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.Setdata)(::windows::core::Interface::as_raw(self), data.into().abi()).ok() + pub unsafe fn Setdata(&self, data: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.Setdata)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(data)).ok() } pub unsafe fn length(&self, datalength: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.length)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(datalength)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn substringData(&self, offset: i32, count: i32, data: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn substringData(&self, offset: i32, count: i32, data: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.substringData)(::windows::core::Interface::as_raw(self), offset, count, ::core::mem::transmute(data)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn appendData<'a, P0>(&self, data: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.appendData)(::windows::core::Interface::as_raw(self), data.into().abi()).ok() + pub unsafe fn appendData(&self, data: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.appendData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(data)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn insertData<'a, P0>(&self, offset: i32, data: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.insertData)(::windows::core::Interface::as_raw(self), offset, data.into().abi()).ok() + pub unsafe fn insertData(&self, offset: i32, data: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.insertData)(::windows::core::Interface::as_raw(self), offset, ::core::mem::transmute_copy(data)).ok() } pub unsafe fn deleteData(&self, offset: i32, count: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.deleteData)(::windows::core::Interface::as_raw(self), offset, count).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn replaceData<'a, P0>(&self, offset: i32, count: i32, data: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.replaceData)(::windows::core::Interface::as_raw(self), offset, count, data.into().abi()).ok() + pub unsafe fn replaceData(&self, offset: i32, count: i32, data: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.replaceData)(::windows::core::Interface::as_raw(self), offset, count, ::core::mem::transmute_copy(data)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7399,9 +6718,7 @@ pub struct IXMLDOMCDATASection_Vtbl { pub struct IXMLDOMCharacterData(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMCharacterData { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn nodeName(&self, name: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn nodeName(&self, name: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.nodeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(name)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -7515,23 +6832,14 @@ impl IXMLDOMCharacterData { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.cloneNode)(::windows::core::Interface::as_raw(self), deep, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn nodeTypeString(&self, nodetype: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn nodeTypeString(&self, nodetype: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.nodeTypeString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(nodetype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn text(&self, text: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn text(&self, text: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.text)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(text)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Settext<'a, P0>(&self, text: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.Settext)(::windows::core::Interface::as_raw(self), text.into().abi()).ok() + pub unsafe fn Settext(&self, text: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.Settext)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(text)).ok() } pub unsafe fn specified(&self, isspecified: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.specified)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(isspecified)).ok() @@ -7560,61 +6868,42 @@ impl IXMLDOMCharacterData { pub unsafe fn dataType(&self, datatypename: &mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.dataType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(datatypename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetdataType<'a, P0>(&self, datatypename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetdataType)(::windows::core::Interface::as_raw(self), datatypename.into().abi()).ok() + pub unsafe fn SetdataType(&self, datatypename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetdataType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(datatypename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn xml(&self, xmlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn xml(&self, xmlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.xml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(xmlstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn transformNode<'a, P0>(&self, stylesheet: P0, xmlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn transformNode<'a, P0>(&self, stylesheet: P0, xmlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IXMLDOMNode>>, { (::windows::core::Interface::vtable(self).base__.transformNode)(::windows::core::Interface::as_raw(self), stylesheet.into().abi(), ::core::mem::transmute(xmlstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn selectNodes<'a, P0>(&self, querystring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn selectNodes(&self, querystring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.selectNodes)(::windows::core::Interface::as_raw(self), querystring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.selectNodes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(querystring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn selectSingleNode<'a, P0>(&self, querystring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn selectSingleNode(&self, querystring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.selectSingleNode)(::windows::core::Interface::as_raw(self), querystring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.selectSingleNode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(querystring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn parsed(&self, isparsed: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.parsed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(isparsed)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn namespaceURI(&self, namespaceuri: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn namespaceURI(&self, namespaceuri: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(namespaceuri)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn prefix(&self, prefixstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn prefix(&self, prefixstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.prefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(prefixstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn baseName(&self, namestring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn baseName(&self, namestring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.baseName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(namestring)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -7626,53 +6915,29 @@ impl IXMLDOMCharacterData { { (::windows::core::Interface::vtable(self).base__.transformNodeToObject)(::windows::core::Interface::as_raw(self), stylesheet.into().abi(), outputobject.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn data(&self, data: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn data(&self, data: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).data)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(data)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Setdata<'a, P0>(&self, data: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Setdata)(::windows::core::Interface::as_raw(self), data.into().abi()).ok() + pub unsafe fn Setdata(&self, data: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Setdata)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(data)).ok() } pub unsafe fn length(&self, datalength: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).length)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(datalength)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn substringData(&self, offset: i32, count: i32, data: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn substringData(&self, offset: i32, count: i32, data: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).substringData)(::windows::core::Interface::as_raw(self), offset, count, ::core::mem::transmute(data)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn appendData<'a, P0>(&self, data: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).appendData)(::windows::core::Interface::as_raw(self), data.into().abi()).ok() + pub unsafe fn appendData(&self, data: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).appendData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(data)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn insertData<'a, P0>(&self, offset: i32, data: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).insertData)(::windows::core::Interface::as_raw(self), offset, data.into().abi()).ok() + pub unsafe fn insertData(&self, offset: i32, data: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).insertData)(::windows::core::Interface::as_raw(self), offset, ::core::mem::transmute_copy(data)).ok() } pub unsafe fn deleteData(&self, offset: i32, count: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).deleteData)(::windows::core::Interface::as_raw(self), offset, count).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn replaceData<'a, P0>(&self, offset: i32, count: i32, data: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).replaceData)(::windows::core::Interface::as_raw(self), offset, count, data.into().abi()).ok() + pub unsafe fn replaceData(&self, offset: i32, count: i32, data: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).replaceData)(::windows::core::Interface::as_raw(self), offset, count, ::core::mem::transmute_copy(data)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -7759,32 +7024,14 @@ unsafe impl ::windows::core::Interface for IXMLDOMCharacterData { #[doc(hidden)] pub struct IXMLDOMCharacterData_Vtbl { pub base__: IXMLDOMNode_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub data: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, data: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - data: usize, - #[cfg(feature = "Win32_Foundation")] - pub Setdata: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Setdata: usize, + pub data: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, data: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Setdata: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub length: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, datalength: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub substringData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offset: i32, count: i32, data: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - substringData: usize, - #[cfg(feature = "Win32_Foundation")] - pub appendData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - appendData: usize, - #[cfg(feature = "Win32_Foundation")] - pub insertData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offset: i32, data: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - insertData: usize, + pub substringData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offset: i32, count: i32, data: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub appendData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub insertData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offset: i32, data: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub deleteData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offset: i32, count: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub replaceData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offset: i32, count: i32, data: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - replaceData: usize, + pub replaceData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offset: i32, count: i32, data: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7792,9 +7039,7 @@ pub struct IXMLDOMCharacterData_Vtbl { pub struct IXMLDOMComment(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMComment { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn nodeName(&self, name: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn nodeName(&self, name: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.nodeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(name)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -7908,23 +7153,14 @@ impl IXMLDOMComment { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.cloneNode)(::windows::core::Interface::as_raw(self), deep, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn nodeTypeString(&self, nodetype: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn nodeTypeString(&self, nodetype: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.nodeTypeString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(nodetype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn text(&self, text: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn text(&self, text: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.text)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(text)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Settext<'a, P0>(&self, text: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.Settext)(::windows::core::Interface::as_raw(self), text.into().abi()).ok() + pub unsafe fn Settext(&self, text: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.Settext)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(text)).ok() } pub unsafe fn specified(&self, isspecified: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.specified)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(isspecified)).ok() @@ -7953,61 +7189,42 @@ impl IXMLDOMComment { pub unsafe fn dataType(&self, datatypename: &mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.dataType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(datatypename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetdataType<'a, P0>(&self, datatypename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetdataType)(::windows::core::Interface::as_raw(self), datatypename.into().abi()).ok() + pub unsafe fn SetdataType(&self, datatypename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetdataType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(datatypename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn xml(&self, xmlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn xml(&self, xmlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.xml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(xmlstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn transformNode<'a, P0>(&self, stylesheet: P0, xmlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn transformNode<'a, P0>(&self, stylesheet: P0, xmlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IXMLDOMNode>>, { (::windows::core::Interface::vtable(self).base__.base__.transformNode)(::windows::core::Interface::as_raw(self), stylesheet.into().abi(), ::core::mem::transmute(xmlstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn selectNodes<'a, P0>(&self, querystring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn selectNodes(&self, querystring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.selectNodes)(::windows::core::Interface::as_raw(self), querystring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.selectNodes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(querystring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn selectSingleNode<'a, P0>(&self, querystring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn selectSingleNode(&self, querystring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.selectSingleNode)(::windows::core::Interface::as_raw(self), querystring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.selectSingleNode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(querystring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn parsed(&self, isparsed: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.parsed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(isparsed)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn namespaceURI(&self, namespaceuri: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn namespaceURI(&self, namespaceuri: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(namespaceuri)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn prefix(&self, prefixstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn prefix(&self, prefixstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.prefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(prefixstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn baseName(&self, namestring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn baseName(&self, namestring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.baseName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(namestring)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -8019,53 +7236,29 @@ impl IXMLDOMComment { { (::windows::core::Interface::vtable(self).base__.base__.transformNodeToObject)(::windows::core::Interface::as_raw(self), stylesheet.into().abi(), outputobject.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn data(&self, data: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn data(&self, data: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.data)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(data)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Setdata<'a, P0>(&self, data: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.Setdata)(::windows::core::Interface::as_raw(self), data.into().abi()).ok() + pub unsafe fn Setdata(&self, data: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.Setdata)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(data)).ok() } pub unsafe fn length(&self, datalength: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.length)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(datalength)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn substringData(&self, offset: i32, count: i32, data: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn substringData(&self, offset: i32, count: i32, data: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.substringData)(::windows::core::Interface::as_raw(self), offset, count, ::core::mem::transmute(data)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn appendData<'a, P0>(&self, data: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.appendData)(::windows::core::Interface::as_raw(self), data.into().abi()).ok() + pub unsafe fn appendData(&self, data: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.appendData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(data)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn insertData<'a, P0>(&self, offset: i32, data: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.insertData)(::windows::core::Interface::as_raw(self), offset, data.into().abi()).ok() + pub unsafe fn insertData(&self, offset: i32, data: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.insertData)(::windows::core::Interface::as_raw(self), offset, ::core::mem::transmute_copy(data)).ok() } pub unsafe fn deleteData(&self, offset: i32, count: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.deleteData)(::windows::core::Interface::as_raw(self), offset, count).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn replaceData<'a, P0>(&self, offset: i32, count: i32, data: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.replaceData)(::windows::core::Interface::as_raw(self), offset, count, data.into().abi()).ok() + pub unsafe fn replaceData(&self, offset: i32, count: i32, data: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.replaceData)(::windows::core::Interface::as_raw(self), offset, count, ::core::mem::transmute_copy(data)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -8177,9 +7370,7 @@ pub struct IXMLDOMComment_Vtbl { pub struct IXMLDOMDocument(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMDocument { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn nodeName(&self, name: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn nodeName(&self, name: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.nodeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(name)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -8293,23 +7484,14 @@ impl IXMLDOMDocument { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.cloneNode)(::windows::core::Interface::as_raw(self), deep, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn nodeTypeString(&self, nodetype: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn nodeTypeString(&self, nodetype: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.nodeTypeString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(nodetype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn text(&self, text: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn text(&self, text: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.text)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(text)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Settext<'a, P0>(&self, text: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.Settext)(::windows::core::Interface::as_raw(self), text.into().abi()).ok() + pub unsafe fn Settext(&self, text: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.Settext)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(text)).ok() } pub unsafe fn specified(&self, isspecified: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.specified)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(isspecified)).ok() @@ -8338,61 +7520,42 @@ impl IXMLDOMDocument { pub unsafe fn dataType(&self, datatypename: &mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.dataType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(datatypename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetdataType<'a, P0>(&self, datatypename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetdataType)(::windows::core::Interface::as_raw(self), datatypename.into().abi()).ok() + pub unsafe fn SetdataType(&self, datatypename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetdataType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(datatypename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn xml(&self, xmlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn xml(&self, xmlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.xml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(xmlstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn transformNode<'a, P0>(&self, stylesheet: P0, xmlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn transformNode<'a, P0>(&self, stylesheet: P0, xmlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IXMLDOMNode>>, { (::windows::core::Interface::vtable(self).base__.transformNode)(::windows::core::Interface::as_raw(self), stylesheet.into().abi(), ::core::mem::transmute(xmlstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn selectNodes<'a, P0>(&self, querystring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn selectNodes(&self, querystring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.selectNodes)(::windows::core::Interface::as_raw(self), querystring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.selectNodes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(querystring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn selectSingleNode<'a, P0>(&self, querystring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn selectSingleNode(&self, querystring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.selectSingleNode)(::windows::core::Interface::as_raw(self), querystring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.selectSingleNode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(querystring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn parsed(&self, isparsed: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.parsed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(isparsed)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn namespaceURI(&self, namespaceuri: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn namespaceURI(&self, namespaceuri: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(namespaceuri)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn prefix(&self, prefixstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn prefix(&self, prefixstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.prefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(prefixstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn baseName(&self, namestring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn baseName(&self, namestring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.baseName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(namestring)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -8430,14 +7593,11 @@ impl IXMLDOMDocument { { (::windows::core::Interface::vtable(self).putref_documentElement)(::windows::core::Interface::as_raw(self), domelement.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn createElement<'a, P0>(&self, tagname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn createElement(&self, tagname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).createElement)(::windows::core::Interface::as_raw(self), tagname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).createElement)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(tagname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -8445,89 +7605,62 @@ impl IXMLDOMDocument { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).createDocumentFragment)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn createTextNode<'a, P0>(&self, data: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn createTextNode(&self, data: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).createTextNode)(::windows::core::Interface::as_raw(self), data.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).createTextNode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(data), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn createComment<'a, P0>(&self, data: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn createComment(&self, data: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).createComment)(::windows::core::Interface::as_raw(self), data.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).createComment)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(data), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn createCDATASection<'a, P0>(&self, data: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn createCDATASection(&self, data: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).createCDATASection)(::windows::core::Interface::as_raw(self), data.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).createCDATASection)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(data), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn createProcessingInstruction<'a, P0, P1>(&self, target: P0, data: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn createProcessingInstruction(&self, target: &::windows::core::BSTR, data: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).createProcessingInstruction)(::windows::core::Interface::as_raw(self), target.into().abi(), data.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).createProcessingInstruction)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(target), ::core::mem::transmute_copy(data), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn createAttribute<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn createAttribute(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).createAttribute)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).createAttribute)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn createEntityReference<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn createEntityReference(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).createEntityReference)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).createEntityReference)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn getElementsByTagName<'a, P0>(&self, tagname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn getElementsByTagName(&self, tagname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getElementsByTagName)(::windows::core::Interface::as_raw(self), tagname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getElementsByTagName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(tagname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn createNode<'a, P0, P1, P2>(&self, r#type: P0, name: P1, namespaceuri: P2) -> ::windows::core::Result + pub unsafe fn createNode<'a, P0>(&self, r#type: P0, name: &::windows::core::BSTR, namespaceuri: &::windows::core::BSTR) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).createNode)(::windows::core::Interface::as_raw(self), r#type.into().abi(), name.into().abi(), namespaceuri.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).createNode)(::windows::core::Interface::as_raw(self), r#type.into().abi(), ::core::mem::transmute_copy(name), ::core::mem::transmute_copy(namespaceuri), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn nodeFromID<'a, P0>(&self, idstring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn nodeFromID(&self, idstring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).nodeFromID)(::windows::core::Interface::as_raw(self), idstring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).nodeFromID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(idstring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -8546,9 +7679,7 @@ impl IXMLDOMDocument { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).parseError)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn url(&self, urlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn url(&self, urlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).url)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(urlstring)).ok() } pub unsafe fn r#async(&self, isasync: &mut i16) -> ::windows::core::Result<()> { @@ -8560,13 +7691,8 @@ impl IXMLDOMDocument { pub unsafe fn abort(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).abort)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn loadXML<'a, P0>(&self, bstrxml: P0, issuccessful: &mut i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).loadXML)(::windows::core::Interface::as_raw(self), bstrxml.into().abi(), ::core::mem::transmute(issuccessful)).ok() + pub unsafe fn loadXML(&self, bstrxml: &::windows::core::BSTR, issuccessful: &mut i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).loadXML)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrxml), ::core::mem::transmute(issuccessful)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -8719,49 +7845,49 @@ pub struct IXMLDOMDocument_Vtbl { pub putref_documentElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, domelement: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] putref_documentElement: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub createElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tagname: ::core::mem::ManuallyDrop, element: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub createElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tagname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, element: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] createElement: usize, #[cfg(feature = "Win32_System_Com")] pub createDocumentFragment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, docfrag: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] createDocumentFragment: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub createTextNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop, text: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub createTextNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop<::windows::core::BSTR>, text: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] createTextNode: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub createComment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop, comment: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub createComment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop<::windows::core::BSTR>, comment: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] createComment: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub createCDATASection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop, cdata: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub createCDATASection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop<::windows::core::BSTR>, cdata: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] createCDATASection: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub createProcessingInstruction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, target: ::core::mem::ManuallyDrop, data: ::core::mem::ManuallyDrop, pi: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub createProcessingInstruction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, target: ::core::mem::ManuallyDrop<::windows::core::BSTR>, data: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pi: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] createProcessingInstruction: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub createAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, attribute: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub createAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, attribute: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] createAttribute: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub createEntityReference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, entityref: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub createEntityReference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, entityref: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] createEntityReference: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub getElementsByTagName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tagname: ::core::mem::ManuallyDrop, resultlist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub getElementsByTagName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tagname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, resultlist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] getElementsByTagName: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub createNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: ::core::mem::ManuallyDrop, name: ::core::mem::ManuallyDrop, namespaceuri: ::core::mem::ManuallyDrop, node: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub createNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: ::core::mem::ManuallyDrop, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, namespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, node: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] createNode: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub nodeFromID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, idstring: ::core::mem::ManuallyDrop, node: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub nodeFromID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, idstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, node: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] nodeFromID: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub load: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, xmlsource: ::core::mem::ManuallyDrop, issuccessful: *mut i16) -> ::windows::core::HRESULT, @@ -8772,17 +7898,11 @@ pub struct IXMLDOMDocument_Vtbl { pub parseError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, errorobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] parseError: usize, - #[cfg(feature = "Win32_Foundation")] - pub url: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, urlstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - url: usize, + pub url: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, urlstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub r#async: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, isasync: *mut i16) -> ::windows::core::HRESULT, pub Setasync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, isasync: i16) -> ::windows::core::HRESULT, pub abort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub loadXML: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrxml: ::core::mem::ManuallyDrop, issuccessful: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - loadXML: usize, + pub loadXML: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrxml: ::core::mem::ManuallyDrop<::windows::core::BSTR>, issuccessful: *mut i16) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub save: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, destination: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -8812,9 +7932,7 @@ pub struct IXMLDOMDocument_Vtbl { pub struct IXMLDOMDocument2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMDocument2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn nodeName(&self, name: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn nodeName(&self, name: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.nodeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(name)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -8928,23 +8046,14 @@ impl IXMLDOMDocument2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.cloneNode)(::windows::core::Interface::as_raw(self), deep, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn nodeTypeString(&self, nodetype: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn nodeTypeString(&self, nodetype: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.nodeTypeString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(nodetype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn text(&self, text: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn text(&self, text: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.text)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(text)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Settext<'a, P0>(&self, text: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.Settext)(::windows::core::Interface::as_raw(self), text.into().abi()).ok() + pub unsafe fn Settext(&self, text: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.Settext)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(text)).ok() } pub unsafe fn specified(&self, isspecified: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.specified)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(isspecified)).ok() @@ -8973,61 +8082,42 @@ impl IXMLDOMDocument2 { pub unsafe fn dataType(&self, datatypename: &mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.dataType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(datatypename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetdataType<'a, P0>(&self, datatypename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetdataType)(::windows::core::Interface::as_raw(self), datatypename.into().abi()).ok() + pub unsafe fn SetdataType(&self, datatypename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetdataType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(datatypename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn xml(&self, xmlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn xml(&self, xmlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.xml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(xmlstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn transformNode<'a, P0>(&self, stylesheet: P0, xmlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn transformNode<'a, P0>(&self, stylesheet: P0, xmlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IXMLDOMNode>>, { (::windows::core::Interface::vtable(self).base__.base__.transformNode)(::windows::core::Interface::as_raw(self), stylesheet.into().abi(), ::core::mem::transmute(xmlstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn selectNodes<'a, P0>(&self, querystring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn selectNodes(&self, querystring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.selectNodes)(::windows::core::Interface::as_raw(self), querystring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.selectNodes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(querystring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn selectSingleNode<'a, P0>(&self, querystring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn selectSingleNode(&self, querystring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.selectSingleNode)(::windows::core::Interface::as_raw(self), querystring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.selectSingleNode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(querystring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn parsed(&self, isparsed: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.parsed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(isparsed)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn namespaceURI(&self, namespaceuri: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn namespaceURI(&self, namespaceuri: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(namespaceuri)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn prefix(&self, prefixstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn prefix(&self, prefixstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.prefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(prefixstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn baseName(&self, namestring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn baseName(&self, namestring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.baseName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(namestring)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -9065,14 +8155,11 @@ impl IXMLDOMDocument2 { { (::windows::core::Interface::vtable(self).base__.putref_documentElement)(::windows::core::Interface::as_raw(self), domelement.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn createElement<'a, P0>(&self, tagname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn createElement(&self, tagname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.createElement)(::windows::core::Interface::as_raw(self), tagname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.createElement)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(tagname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9080,89 +8167,62 @@ impl IXMLDOMDocument2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.createDocumentFragment)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn createTextNode<'a, P0>(&self, data: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn createTextNode(&self, data: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.createTextNode)(::windows::core::Interface::as_raw(self), data.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.createTextNode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(data), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn createComment<'a, P0>(&self, data: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn createComment(&self, data: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.createComment)(::windows::core::Interface::as_raw(self), data.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.createComment)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(data), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn createCDATASection<'a, P0>(&self, data: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn createCDATASection(&self, data: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.createCDATASection)(::windows::core::Interface::as_raw(self), data.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.createCDATASection)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(data), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn createProcessingInstruction<'a, P0, P1>(&self, target: P0, data: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn createProcessingInstruction(&self, target: &::windows::core::BSTR, data: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.createProcessingInstruction)(::windows::core::Interface::as_raw(self), target.into().abi(), data.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.createProcessingInstruction)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(target), ::core::mem::transmute_copy(data), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn createAttribute<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn createAttribute(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.createAttribute)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.createAttribute)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn createEntityReference<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn createEntityReference(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.createEntityReference)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.createEntityReference)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn getElementsByTagName<'a, P0>(&self, tagname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn getElementsByTagName(&self, tagname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.getElementsByTagName)(::windows::core::Interface::as_raw(self), tagname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.getElementsByTagName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(tagname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn createNode<'a, P0, P1, P2>(&self, r#type: P0, name: P1, namespaceuri: P2) -> ::windows::core::Result + pub unsafe fn createNode<'a, P0>(&self, r#type: P0, name: &::windows::core::BSTR, namespaceuri: &::windows::core::BSTR) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.createNode)(::windows::core::Interface::as_raw(self), r#type.into().abi(), name.into().abi(), namespaceuri.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.createNode)(::windows::core::Interface::as_raw(self), r#type.into().abi(), ::core::mem::transmute_copy(name), ::core::mem::transmute_copy(namespaceuri), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn nodeFromID<'a, P0>(&self, idstring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn nodeFromID(&self, idstring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.nodeFromID)(::windows::core::Interface::as_raw(self), idstring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.nodeFromID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(idstring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -9181,9 +8241,7 @@ impl IXMLDOMDocument2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.parseError)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn url(&self, urlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn url(&self, urlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.url)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(urlstring)).ok() } pub unsafe fn r#async(&self, isasync: &mut i16) -> ::windows::core::Result<()> { @@ -9195,13 +8253,8 @@ impl IXMLDOMDocument2 { pub unsafe fn abort(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.abort)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn loadXML<'a, P0>(&self, bstrxml: P0, issuccessful: &mut i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.loadXML)(::windows::core::Interface::as_raw(self), bstrxml.into().abi(), ::core::mem::transmute(issuccessful)).ok() + pub unsafe fn loadXML(&self, bstrxml: &::windows::core::BSTR, issuccessful: &mut i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.loadXML)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrxml), ::core::mem::transmute(issuccessful)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -9281,21 +8334,17 @@ impl IXMLDOMDocument2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn setProperty<'a, P0, P1>(&self, name: P0, value: P1) -> ::windows::core::Result<()> + pub unsafe fn setProperty<'a, P0>(&self, name: &::windows::core::BSTR, value: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).setProperty)(::windows::core::Interface::as_raw(self), name.into().abi(), value.into().abi()).ok() + (::windows::core::Interface::vtable(self).setProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), value.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn getProperty<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn getProperty(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getProperty)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -9417,11 +8466,11 @@ pub struct IXMLDOMDocument2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] validate: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub setProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub setProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] setProperty: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub getProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, value: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub getProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] getProperty: usize, } @@ -9431,9 +8480,7 @@ pub struct IXMLDOMDocument2_Vtbl { pub struct IXMLDOMDocument3(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMDocument3 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn nodeName(&self, name: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn nodeName(&self, name: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.nodeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(name)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -9547,23 +8594,14 @@ impl IXMLDOMDocument3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.cloneNode)(::windows::core::Interface::as_raw(self), deep, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn nodeTypeString(&self, nodetype: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn nodeTypeString(&self, nodetype: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.nodeTypeString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(nodetype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn text(&self, text: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn text(&self, text: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.text)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(text)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Settext<'a, P0>(&self, text: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.Settext)(::windows::core::Interface::as_raw(self), text.into().abi()).ok() + pub unsafe fn Settext(&self, text: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.Settext)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(text)).ok() } pub unsafe fn specified(&self, isspecified: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.specified)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(isspecified)).ok() @@ -9592,61 +8630,42 @@ impl IXMLDOMDocument3 { pub unsafe fn dataType(&self, datatypename: &mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.dataType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(datatypename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetdataType<'a, P0>(&self, datatypename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.SetdataType)(::windows::core::Interface::as_raw(self), datatypename.into().abi()).ok() + pub unsafe fn SetdataType(&self, datatypename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.SetdataType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(datatypename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn xml(&self, xmlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn xml(&self, xmlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.xml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(xmlstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn transformNode<'a, P0>(&self, stylesheet: P0, xmlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn transformNode<'a, P0>(&self, stylesheet: P0, xmlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IXMLDOMNode>>, { (::windows::core::Interface::vtable(self).base__.base__.base__.transformNode)(::windows::core::Interface::as_raw(self), stylesheet.into().abi(), ::core::mem::transmute(xmlstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn selectNodes<'a, P0>(&self, querystring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn selectNodes(&self, querystring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.selectNodes)(::windows::core::Interface::as_raw(self), querystring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.selectNodes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(querystring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn selectSingleNode<'a, P0>(&self, querystring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn selectSingleNode(&self, querystring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.selectSingleNode)(::windows::core::Interface::as_raw(self), querystring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.selectSingleNode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(querystring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn parsed(&self, isparsed: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.parsed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(isparsed)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn namespaceURI(&self, namespaceuri: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn namespaceURI(&self, namespaceuri: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(namespaceuri)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn prefix(&self, prefixstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn prefix(&self, prefixstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.prefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(prefixstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn baseName(&self, namestring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn baseName(&self, namestring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.baseName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(namestring)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -9684,14 +8703,11 @@ impl IXMLDOMDocument3 { { (::windows::core::Interface::vtable(self).base__.base__.putref_documentElement)(::windows::core::Interface::as_raw(self), domelement.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn createElement<'a, P0>(&self, tagname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn createElement(&self, tagname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.createElement)(::windows::core::Interface::as_raw(self), tagname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.createElement)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(tagname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9699,89 +8715,62 @@ impl IXMLDOMDocument3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.createDocumentFragment)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn createTextNode<'a, P0>(&self, data: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn createTextNode(&self, data: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.createTextNode)(::windows::core::Interface::as_raw(self), data.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.createTextNode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(data), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn createComment<'a, P0>(&self, data: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn createComment(&self, data: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.createComment)(::windows::core::Interface::as_raw(self), data.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.createComment)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(data), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn createCDATASection<'a, P0>(&self, data: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn createCDATASection(&self, data: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.createCDATASection)(::windows::core::Interface::as_raw(self), data.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.createCDATASection)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(data), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn createProcessingInstruction<'a, P0, P1>(&self, target: P0, data: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn createProcessingInstruction(&self, target: &::windows::core::BSTR, data: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.createProcessingInstruction)(::windows::core::Interface::as_raw(self), target.into().abi(), data.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.createProcessingInstruction)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(target), ::core::mem::transmute_copy(data), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn createAttribute<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn createAttribute(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.createAttribute)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.createAttribute)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn createEntityReference<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn createEntityReference(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.createEntityReference)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.createEntityReference)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn getElementsByTagName<'a, P0>(&self, tagname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn getElementsByTagName(&self, tagname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.getElementsByTagName)(::windows::core::Interface::as_raw(self), tagname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.getElementsByTagName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(tagname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn createNode<'a, P0, P1, P2>(&self, r#type: P0, name: P1, namespaceuri: P2) -> ::windows::core::Result + pub unsafe fn createNode<'a, P0>(&self, r#type: P0, name: &::windows::core::BSTR, namespaceuri: &::windows::core::BSTR) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.createNode)(::windows::core::Interface::as_raw(self), r#type.into().abi(), name.into().abi(), namespaceuri.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.createNode)(::windows::core::Interface::as_raw(self), r#type.into().abi(), ::core::mem::transmute_copy(name), ::core::mem::transmute_copy(namespaceuri), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn nodeFromID<'a, P0>(&self, idstring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn nodeFromID(&self, idstring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.nodeFromID)(::windows::core::Interface::as_raw(self), idstring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.nodeFromID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(idstring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -9800,9 +8789,7 @@ impl IXMLDOMDocument3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.parseError)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn url(&self, urlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn url(&self, urlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.url)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(urlstring)).ok() } pub unsafe fn r#async(&self, isasync: &mut i16) -> ::windows::core::Result<()> { @@ -9814,13 +8801,8 @@ impl IXMLDOMDocument3 { pub unsafe fn abort(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.abort)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn loadXML<'a, P0>(&self, bstrxml: P0, issuccessful: &mut i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.loadXML)(::windows::core::Interface::as_raw(self), bstrxml.into().abi(), ::core::mem::transmute(issuccessful)).ok() + pub unsafe fn loadXML(&self, bstrxml: &::windows::core::BSTR, issuccessful: &mut i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.loadXML)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrxml), ::core::mem::transmute(issuccessful)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -9900,21 +8882,17 @@ impl IXMLDOMDocument3 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn setProperty<'a, P0, P1>(&self, name: P0, value: P1) -> ::windows::core::Result<()> + pub unsafe fn setProperty<'a, P0>(&self, name: &::windows::core::BSTR, value: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.setProperty)(::windows::core::Interface::as_raw(self), name.into().abi(), value.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.setProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), value.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn getProperty<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn getProperty(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.getProperty)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.getProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -10070,9 +9048,7 @@ pub struct IXMLDOMDocument3_Vtbl { pub struct IXMLDOMDocumentFragment(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMDocumentFragment { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn nodeName(&self, name: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn nodeName(&self, name: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.nodeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(name)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -10186,23 +9162,14 @@ impl IXMLDOMDocumentFragment { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.cloneNode)(::windows::core::Interface::as_raw(self), deep, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn nodeTypeString(&self, nodetype: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn nodeTypeString(&self, nodetype: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.nodeTypeString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(nodetype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn text(&self, text: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn text(&self, text: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.text)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(text)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Settext<'a, P0>(&self, text: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.Settext)(::windows::core::Interface::as_raw(self), text.into().abi()).ok() + pub unsafe fn Settext(&self, text: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.Settext)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(text)).ok() } pub unsafe fn specified(&self, isspecified: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.specified)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(isspecified)).ok() @@ -10231,61 +9198,42 @@ impl IXMLDOMDocumentFragment { pub unsafe fn dataType(&self, datatypename: &mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.dataType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(datatypename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetdataType<'a, P0>(&self, datatypename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetdataType)(::windows::core::Interface::as_raw(self), datatypename.into().abi()).ok() + pub unsafe fn SetdataType(&self, datatypename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetdataType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(datatypename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn xml(&self, xmlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn xml(&self, xmlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.xml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(xmlstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn transformNode<'a, P0>(&self, stylesheet: P0, xmlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn transformNode<'a, P0>(&self, stylesheet: P0, xmlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IXMLDOMNode>>, { (::windows::core::Interface::vtable(self).base__.transformNode)(::windows::core::Interface::as_raw(self), stylesheet.into().abi(), ::core::mem::transmute(xmlstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn selectNodes<'a, P0>(&self, querystring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn selectNodes(&self, querystring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.selectNodes)(::windows::core::Interface::as_raw(self), querystring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.selectNodes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(querystring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn selectSingleNode<'a, P0>(&self, querystring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn selectSingleNode(&self, querystring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.selectSingleNode)(::windows::core::Interface::as_raw(self), querystring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.selectSingleNode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(querystring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn parsed(&self, isparsed: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.parsed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(isparsed)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn namespaceURI(&self, namespaceuri: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn namespaceURI(&self, namespaceuri: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(namespaceuri)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn prefix(&self, prefixstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn prefix(&self, prefixstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.prefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(prefixstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn baseName(&self, namestring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn baseName(&self, namestring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.baseName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(namestring)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -10389,9 +9337,7 @@ pub struct IXMLDOMDocumentFragment_Vtbl { pub struct IXMLDOMDocumentType(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMDocumentType { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn nodeName(&self, name: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn nodeName(&self, name: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.nodeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(name)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -10505,23 +9451,14 @@ impl IXMLDOMDocumentType { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.cloneNode)(::windows::core::Interface::as_raw(self), deep, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn nodeTypeString(&self, nodetype: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn nodeTypeString(&self, nodetype: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.nodeTypeString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(nodetype)).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn text(&self, text: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + } + pub unsafe fn text(&self, text: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.text)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(text)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Settext<'a, P0>(&self, text: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.Settext)(::windows::core::Interface::as_raw(self), text.into().abi()).ok() + pub unsafe fn Settext(&self, text: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.Settext)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(text)).ok() } pub unsafe fn specified(&self, isspecified: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.specified)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(isspecified)).ok() @@ -10550,61 +9487,42 @@ impl IXMLDOMDocumentType { pub unsafe fn dataType(&self, datatypename: &mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.dataType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(datatypename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetdataType<'a, P0>(&self, datatypename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetdataType)(::windows::core::Interface::as_raw(self), datatypename.into().abi()).ok() + pub unsafe fn SetdataType(&self, datatypename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetdataType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(datatypename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn xml(&self, xmlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn xml(&self, xmlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.xml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(xmlstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn transformNode<'a, P0>(&self, stylesheet: P0, xmlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn transformNode<'a, P0>(&self, stylesheet: P0, xmlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IXMLDOMNode>>, { (::windows::core::Interface::vtable(self).base__.transformNode)(::windows::core::Interface::as_raw(self), stylesheet.into().abi(), ::core::mem::transmute(xmlstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn selectNodes<'a, P0>(&self, querystring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn selectNodes(&self, querystring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.selectNodes)(::windows::core::Interface::as_raw(self), querystring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.selectNodes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(querystring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn selectSingleNode<'a, P0>(&self, querystring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn selectSingleNode(&self, querystring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.selectSingleNode)(::windows::core::Interface::as_raw(self), querystring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.selectSingleNode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(querystring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn parsed(&self, isparsed: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.parsed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(isparsed)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn namespaceURI(&self, namespaceuri: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn namespaceURI(&self, namespaceuri: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(namespaceuri)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn prefix(&self, prefixstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn prefix(&self, prefixstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.prefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(prefixstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn baseName(&self, namestring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn baseName(&self, namestring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.baseName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(namestring)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -10616,9 +9534,7 @@ impl IXMLDOMDocumentType { { (::windows::core::Interface::vtable(self).base__.transformNodeToObject)(::windows::core::Interface::as_raw(self), stylesheet.into().abi(), outputobject.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn name(&self, rootname: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn name(&self, rootname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(rootname)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] @@ -10718,10 +9634,7 @@ unsafe impl ::windows::core::Interface for IXMLDOMDocumentType { #[doc(hidden)] pub struct IXMLDOMDocumentType_Vtbl { pub base__: IXMLDOMNode_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rootname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - name: usize, + pub name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rootname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub entities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, entitymap: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -10737,9 +9650,7 @@ pub struct IXMLDOMDocumentType_Vtbl { pub struct IXMLDOMElement(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMElement { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn nodeName(&self, name: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn nodeName(&self, name: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.nodeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(name)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -10853,23 +9764,14 @@ impl IXMLDOMElement { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.cloneNode)(::windows::core::Interface::as_raw(self), deep, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn nodeTypeString(&self, nodetype: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn nodeTypeString(&self, nodetype: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.nodeTypeString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(nodetype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn text(&self, text: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn text(&self, text: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.text)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(text)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Settext<'a, P0>(&self, text: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.Settext)(::windows::core::Interface::as_raw(self), text.into().abi()).ok() + pub unsafe fn Settext(&self, text: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.Settext)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(text)).ok() } pub unsafe fn specified(&self, isspecified: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.specified)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(isspecified)).ok() @@ -10898,61 +9800,42 @@ impl IXMLDOMElement { pub unsafe fn dataType(&self, datatypename: &mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.dataType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(datatypename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetdataType<'a, P0>(&self, datatypename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetdataType)(::windows::core::Interface::as_raw(self), datatypename.into().abi()).ok() + pub unsafe fn SetdataType(&self, datatypename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetdataType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(datatypename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn xml(&self, xmlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn xml(&self, xmlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.xml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(xmlstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn transformNode<'a, P0>(&self, stylesheet: P0, xmlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn transformNode<'a, P0>(&self, stylesheet: P0, xmlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IXMLDOMNode>>, { (::windows::core::Interface::vtable(self).base__.transformNode)(::windows::core::Interface::as_raw(self), stylesheet.into().abi(), ::core::mem::transmute(xmlstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn selectNodes<'a, P0>(&self, querystring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn selectNodes(&self, querystring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.selectNodes)(::windows::core::Interface::as_raw(self), querystring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.selectNodes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(querystring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn selectSingleNode<'a, P0>(&self, querystring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn selectSingleNode(&self, querystring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.selectSingleNode)(::windows::core::Interface::as_raw(self), querystring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.selectSingleNode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(querystring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn parsed(&self, isparsed: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.parsed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(isparsed)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn namespaceURI(&self, namespaceuri: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn namespaceURI(&self, namespaceuri: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(namespaceuri)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn prefix(&self, prefixstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn prefix(&self, prefixstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.prefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(prefixstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn baseName(&self, namestring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn baseName(&self, namestring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.baseName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(namestring)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -10964,44 +9847,30 @@ impl IXMLDOMElement { { (::windows::core::Interface::vtable(self).base__.transformNodeToObject)(::windows::core::Interface::as_raw(self), stylesheet.into().abi(), outputobject.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn tagName(&self, tagname: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn tagName(&self, tagname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).tagName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(tagname)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn getAttribute<'a, P0>(&self, name: P0, value: &mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).getAttribute)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(value)).ok() + pub unsafe fn getAttribute(&self, name: &::windows::core::BSTR, value: &mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).getAttribute)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(value)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn setAttribute<'a, P0, P1>(&self, name: P0, value: P1) -> ::windows::core::Result<()> + pub unsafe fn setAttribute<'a, P0>(&self, name: &::windows::core::BSTR, value: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).setAttribute)(::windows::core::Interface::as_raw(self), name.into().abi(), value.into().abi()).ok() + (::windows::core::Interface::vtable(self).setAttribute)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), value.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn removeAttribute<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).removeAttribute)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn removeAttribute(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).removeAttribute)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn getAttributeNode<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn getAttributeNode(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getAttributeNode)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getAttributeNode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -11021,14 +9890,11 @@ impl IXMLDOMElement { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).removeAttributeNode)(::windows::core::Interface::as_raw(self), domattribute.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn getElementsByTagName<'a, P0>(&self, tagname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn getElementsByTagName(&self, tagname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getElementsByTagName)(::windows::core::Interface::as_raw(self), tagname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getElementsByTagName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(tagname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn normalize(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).normalize)(::windows::core::Interface::as_raw(self)).ok() @@ -11118,25 +9984,19 @@ unsafe impl ::windows::core::Interface for IXMLDOMElement { #[doc(hidden)] pub struct IXMLDOMElement_Vtbl { pub base__: IXMLDOMNode_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub tagName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tagname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - tagName: usize, + pub tagName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tagname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub getAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, value: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub getAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] getAttribute: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub setAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub setAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] setAttribute: usize, - #[cfg(feature = "Win32_Foundation")] - pub removeAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - removeAttribute: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub getAttributeNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, attributenode: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub removeAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub getAttributeNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, attributenode: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] getAttributeNode: usize, #[cfg(feature = "Win32_System_Com")] pub setAttributeNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, domattribute: *mut ::core::ffi::c_void, attributenode: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -11146,9 +10006,9 @@ pub struct IXMLDOMElement_Vtbl { pub removeAttributeNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, domattribute: *mut ::core::ffi::c_void, attributenode: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] removeAttributeNode: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub getElementsByTagName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tagname: ::core::mem::ManuallyDrop, resultlist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub getElementsByTagName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tagname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, resultlist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] getElementsByTagName: usize, pub normalize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } @@ -11158,9 +10018,7 @@ pub struct IXMLDOMElement_Vtbl { pub struct IXMLDOMEntity(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMEntity { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn nodeName(&self, name: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn nodeName(&self, name: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.nodeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(name)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -11274,23 +10132,14 @@ impl IXMLDOMEntity { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.cloneNode)(::windows::core::Interface::as_raw(self), deep, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn nodeTypeString(&self, nodetype: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn nodeTypeString(&self, nodetype: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.nodeTypeString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(nodetype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn text(&self, text: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn text(&self, text: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.text)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(text)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Settext<'a, P0>(&self, text: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.Settext)(::windows::core::Interface::as_raw(self), text.into().abi()).ok() + pub unsafe fn Settext(&self, text: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.Settext)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(text)).ok() } pub unsafe fn specified(&self, isspecified: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.specified)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(isspecified)).ok() @@ -11319,61 +10168,42 @@ impl IXMLDOMEntity { pub unsafe fn dataType(&self, datatypename: &mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.dataType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(datatypename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetdataType<'a, P0>(&self, datatypename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetdataType)(::windows::core::Interface::as_raw(self), datatypename.into().abi()).ok() + pub unsafe fn SetdataType(&self, datatypename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetdataType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(datatypename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn xml(&self, xmlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn xml(&self, xmlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.xml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(xmlstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn transformNode<'a, P0>(&self, stylesheet: P0, xmlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn transformNode<'a, P0>(&self, stylesheet: P0, xmlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IXMLDOMNode>>, { (::windows::core::Interface::vtable(self).base__.transformNode)(::windows::core::Interface::as_raw(self), stylesheet.into().abi(), ::core::mem::transmute(xmlstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn selectNodes<'a, P0>(&self, querystring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn selectNodes(&self, querystring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.selectNodes)(::windows::core::Interface::as_raw(self), querystring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.selectNodes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(querystring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn selectSingleNode<'a, P0>(&self, querystring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn selectSingleNode(&self, querystring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.selectSingleNode)(::windows::core::Interface::as_raw(self), querystring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.selectSingleNode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(querystring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn parsed(&self, isparsed: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.parsed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(isparsed)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn namespaceURI(&self, namespaceuri: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn namespaceURI(&self, namespaceuri: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(namespaceuri)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn prefix(&self, prefixstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn prefix(&self, prefixstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.prefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(prefixstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn baseName(&self, namestring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn baseName(&self, namestring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.baseName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(namestring)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -11395,9 +10225,7 @@ impl IXMLDOMEntity { pub unsafe fn systemId(&self, systemid: &mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).systemId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(systemid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn notationName(&self, name: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn notationName(&self, name: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).notationName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(name)).ok() } } @@ -11493,10 +10321,7 @@ pub struct IXMLDOMEntity_Vtbl { pub systemId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, systemid: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] systemId: usize, - #[cfg(feature = "Win32_Foundation")] - pub notationName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - notationName: usize, + pub notationName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -11504,9 +10329,7 @@ pub struct IXMLDOMEntity_Vtbl { pub struct IXMLDOMEntityReference(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMEntityReference { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn nodeName(&self, name: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn nodeName(&self, name: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.nodeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(name)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -11620,23 +10443,14 @@ impl IXMLDOMEntityReference { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.cloneNode)(::windows::core::Interface::as_raw(self), deep, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn nodeTypeString(&self, nodetype: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn nodeTypeString(&self, nodetype: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.nodeTypeString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(nodetype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn text(&self, text: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn text(&self, text: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.text)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(text)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Settext<'a, P0>(&self, text: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.Settext)(::windows::core::Interface::as_raw(self), text.into().abi()).ok() + pub unsafe fn Settext(&self, text: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.Settext)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(text)).ok() } pub unsafe fn specified(&self, isspecified: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.specified)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(isspecified)).ok() @@ -11665,61 +10479,42 @@ impl IXMLDOMEntityReference { pub unsafe fn dataType(&self, datatypename: &mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.dataType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(datatypename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetdataType<'a, P0>(&self, datatypename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetdataType)(::windows::core::Interface::as_raw(self), datatypename.into().abi()).ok() + pub unsafe fn SetdataType(&self, datatypename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetdataType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(datatypename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn xml(&self, xmlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn xml(&self, xmlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.xml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(xmlstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn transformNode<'a, P0>(&self, stylesheet: P0, xmlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn transformNode<'a, P0>(&self, stylesheet: P0, xmlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IXMLDOMNode>>, { (::windows::core::Interface::vtable(self).base__.transformNode)(::windows::core::Interface::as_raw(self), stylesheet.into().abi(), ::core::mem::transmute(xmlstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn selectNodes<'a, P0>(&self, querystring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn selectNodes(&self, querystring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.selectNodes)(::windows::core::Interface::as_raw(self), querystring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.selectNodes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(querystring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn selectSingleNode<'a, P0>(&self, querystring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn selectSingleNode(&self, querystring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.selectSingleNode)(::windows::core::Interface::as_raw(self), querystring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.selectSingleNode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(querystring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn parsed(&self, isparsed: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.parsed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(isparsed)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn namespaceURI(&self, namespaceuri: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn namespaceURI(&self, namespaceuri: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(namespaceuri)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn prefix(&self, prefixstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn prefix(&self, prefixstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.prefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(prefixstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn baseName(&self, namestring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn baseName(&self, namestring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.baseName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(namestring)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -11823,14 +10618,8 @@ pub struct IXMLDOMEntityReference_Vtbl { pub struct IXMLDOMImplementation(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMImplementation { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn hasFeature<'a, P0, P1>(&self, feature: P0, version: P1, hasfeature: &mut i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).hasFeature)(::windows::core::Interface::as_raw(self), feature.into().abi(), version.into().abi(), ::core::mem::transmute(hasfeature)).ok() + pub unsafe fn hasFeature(&self, feature: &::windows::core::BSTR, version: &::windows::core::BSTR, hasfeature: &mut i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).hasFeature)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(feature), ::core::mem::transmute_copy(version), ::core::mem::transmute(hasfeature)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -11899,10 +10688,7 @@ unsafe impl ::windows::core::Interface for IXMLDOMImplementation { #[doc(hidden)] pub struct IXMLDOMImplementation_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub hasFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feature: ::core::mem::ManuallyDrop, version: ::core::mem::ManuallyDrop, hasfeature: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - hasFeature: usize, + pub hasFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feature: ::core::mem::ManuallyDrop<::windows::core::BSTR>, version: ::core::mem::ManuallyDrop<::windows::core::BSTR>, hasfeature: *mut i16) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -11910,14 +10696,11 @@ pub struct IXMLDOMImplementation_Vtbl { pub struct IXMLDOMNamedNodeMap(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMNamedNodeMap { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn getNamedItem<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn getNamedItem(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getNamedItem)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getNamedItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -11928,14 +10711,11 @@ impl IXMLDOMNamedNodeMap { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).setNamedItem)(::windows::core::Interface::as_raw(self), newitem.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn removeNamedItem<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn removeNamedItem(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).removeNamedItem)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).removeNamedItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -11946,25 +10726,17 @@ impl IXMLDOMNamedNodeMap { pub unsafe fn length(&self, listlength: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).length)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(listlength)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn getQualifiedItem<'a, P0, P1>(&self, basename: P0, namespaceuri: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn getQualifiedItem(&self, basename: &::windows::core::BSTR, namespaceuri: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getQualifiedItem)(::windows::core::Interface::as_raw(self), basename.into().abi(), namespaceuri.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getQualifiedItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(basename), ::core::mem::transmute_copy(namespaceuri), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn removeQualifiedItem<'a, P0, P1>(&self, basename: P0, namespaceuri: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn removeQualifiedItem(&self, basename: &::windows::core::BSTR, namespaceuri: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).removeQualifiedItem)(::windows::core::Interface::as_raw(self), basename.into().abi(), namespaceuri.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).removeQualifiedItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(basename), ::core::mem::transmute_copy(namespaceuri), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -12046,30 +10818,30 @@ unsafe impl ::windows::core::Interface for IXMLDOMNamedNodeMap { #[doc(hidden)] pub struct IXMLDOMNamedNodeMap_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub getNamedItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, nameditem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub getNamedItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, nameditem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] getNamedItem: usize, #[cfg(feature = "Win32_System_Com")] pub setNamedItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newitem: *mut ::core::ffi::c_void, nameitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] setNamedItem: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub removeNamedItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, nameditem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub removeNamedItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, nameditem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] removeNamedItem: usize, #[cfg(feature = "Win32_System_Com")] pub get_item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, listitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] get_item: usize, pub length: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, listlength: *mut i32) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub getQualifiedItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, basename: ::core::mem::ManuallyDrop, namespaceuri: ::core::mem::ManuallyDrop, qualifieditem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub getQualifiedItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, basename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, namespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, qualifieditem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] getQualifiedItem: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub removeQualifiedItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, basename: ::core::mem::ManuallyDrop, namespaceuri: ::core::mem::ManuallyDrop, qualifieditem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub removeQualifiedItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, basename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, namespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, qualifieditem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] removeQualifiedItem: usize, #[cfg(feature = "Win32_System_Com")] pub nextNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nextitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -12084,9 +10856,7 @@ pub struct IXMLDOMNamedNodeMap_Vtbl { pub struct IXMLDOMNode(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMNode { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn nodeName(&self, name: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn nodeName(&self, name: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).nodeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(name)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -12200,23 +10970,14 @@ impl IXMLDOMNode { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).cloneNode)(::windows::core::Interface::as_raw(self), deep, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn nodeTypeString(&self, nodetype: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn nodeTypeString(&self, nodetype: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).nodeTypeString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(nodetype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn text(&self, text: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn text(&self, text: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).text)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(text)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Settext<'a, P0>(&self, text: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Settext)(::windows::core::Interface::as_raw(self), text.into().abi()).ok() + pub unsafe fn Settext(&self, text: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Settext)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(text)).ok() } pub unsafe fn specified(&self, isspecified: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).specified)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(isspecified)).ok() @@ -12245,61 +11006,42 @@ impl IXMLDOMNode { pub unsafe fn dataType(&self, datatypename: &mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).dataType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(datatypename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetdataType<'a, P0>(&self, datatypename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetdataType)(::windows::core::Interface::as_raw(self), datatypename.into().abi()).ok() + pub unsafe fn SetdataType(&self, datatypename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetdataType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(datatypename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn xml(&self, xmlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn xml(&self, xmlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).xml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(xmlstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn transformNode<'a, P0>(&self, stylesheet: P0, xmlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn transformNode<'a, P0>(&self, stylesheet: P0, xmlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IXMLDOMNode>>, { (::windows::core::Interface::vtable(self).transformNode)(::windows::core::Interface::as_raw(self), stylesheet.into().abi(), ::core::mem::transmute(xmlstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn selectNodes<'a, P0>(&self, querystring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn selectNodes(&self, querystring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).selectNodes)(::windows::core::Interface::as_raw(self), querystring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).selectNodes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(querystring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn selectSingleNode<'a, P0>(&self, querystring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn selectSingleNode(&self, querystring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).selectSingleNode)(::windows::core::Interface::as_raw(self), querystring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).selectSingleNode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(querystring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn parsed(&self, isparsed: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).parsed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(isparsed)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn namespaceURI(&self, namespaceuri: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn namespaceURI(&self, namespaceuri: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(namespaceuri)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn prefix(&self, prefixstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn prefix(&self, prefixstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).prefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(prefixstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn baseName(&self, namestring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn baseName(&self, namestring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).baseName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(namestring)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -12378,10 +11120,7 @@ unsafe impl ::windows::core::Interface for IXMLDOMNode { #[doc(hidden)] pub struct IXMLDOMNode_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub nodeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - nodeName: usize, + pub nodeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub nodeValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -12444,18 +11183,9 @@ pub struct IXMLDOMNode_Vtbl { pub cloneNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deep: i16, cloneroot: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] cloneNode: usize, - #[cfg(feature = "Win32_Foundation")] - pub nodeTypeString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nodetype: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - nodeTypeString: usize, - #[cfg(feature = "Win32_Foundation")] - pub text: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - text: usize, - #[cfg(feature = "Win32_Foundation")] - pub Settext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Settext: usize, + pub nodeTypeString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nodetype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub text: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Settext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub specified: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, isspecified: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub definition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, definitionnode: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -12473,39 +11203,24 @@ pub struct IXMLDOMNode_Vtbl { pub dataType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, datatypename: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] dataType: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetdataType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, datatypename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetdataType: usize, - #[cfg(feature = "Win32_Foundation")] - pub xml: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, xmlstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - xml: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub transformNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stylesheet: *mut ::core::ffi::c_void, xmlstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub SetdataType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, datatypename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub xml: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, xmlstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub transformNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stylesheet: *mut ::core::ffi::c_void, xmlstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] transformNode: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub selectNodes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, querystring: ::core::mem::ManuallyDrop, resultlist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub selectNodes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, querystring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, resultlist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] selectNodes: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub selectSingleNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, querystring: ::core::mem::ManuallyDrop, resultnode: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub selectSingleNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, querystring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, resultnode: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] selectSingleNode: usize, pub parsed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, isparsed: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub namespaceURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, namespaceuri: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - namespaceURI: usize, - #[cfg(feature = "Win32_Foundation")] - pub prefix: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prefixstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - prefix: usize, - #[cfg(feature = "Win32_Foundation")] - pub baseName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, namestring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - baseName: usize, + pub namespaceURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, namespaceuri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub prefix: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prefixstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub baseName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, namestring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub transformNodeToObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stylesheet: *mut ::core::ffi::c_void, outputobject: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -12624,9 +11339,7 @@ pub struct IXMLDOMNodeList_Vtbl { pub struct IXMLDOMNotation(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMNotation { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn nodeName(&self, name: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn nodeName(&self, name: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.nodeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(name)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -12740,24 +11453,15 @@ impl IXMLDOMNotation { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.cloneNode)(::windows::core::Interface::as_raw(self), deep, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn nodeTypeString(&self, nodetype: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn nodeTypeString(&self, nodetype: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.nodeTypeString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(nodetype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn text(&self, text: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { - (::windows::core::Interface::vtable(self).base__.text)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(text)).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Settext<'a, P0>(&self, text: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.Settext)(::windows::core::Interface::as_raw(self), text.into().abi()).ok() - } + pub unsafe fn text(&self, text: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.text)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(text)).ok() + } + pub unsafe fn Settext(&self, text: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.Settext)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(text)).ok() + } pub unsafe fn specified(&self, isspecified: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.specified)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(isspecified)).ok() } @@ -12785,61 +11489,42 @@ impl IXMLDOMNotation { pub unsafe fn dataType(&self, datatypename: &mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.dataType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(datatypename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetdataType<'a, P0>(&self, datatypename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetdataType)(::windows::core::Interface::as_raw(self), datatypename.into().abi()).ok() + pub unsafe fn SetdataType(&self, datatypename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetdataType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(datatypename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn xml(&self, xmlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn xml(&self, xmlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.xml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(xmlstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn transformNode<'a, P0>(&self, stylesheet: P0, xmlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn transformNode<'a, P0>(&self, stylesheet: P0, xmlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IXMLDOMNode>>, { (::windows::core::Interface::vtable(self).base__.transformNode)(::windows::core::Interface::as_raw(self), stylesheet.into().abi(), ::core::mem::transmute(xmlstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn selectNodes<'a, P0>(&self, querystring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn selectNodes(&self, querystring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.selectNodes)(::windows::core::Interface::as_raw(self), querystring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.selectNodes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(querystring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn selectSingleNode<'a, P0>(&self, querystring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn selectSingleNode(&self, querystring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.selectSingleNode)(::windows::core::Interface::as_raw(self), querystring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.selectSingleNode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(querystring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn parsed(&self, isparsed: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.parsed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(isparsed)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn namespaceURI(&self, namespaceuri: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn namespaceURI(&self, namespaceuri: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(namespaceuri)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn prefix(&self, prefixstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn prefix(&self, prefixstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.prefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(prefixstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn baseName(&self, namestring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn baseName(&self, namestring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.baseName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(namestring)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -12964,19 +11649,13 @@ impl IXMLDOMParseError { pub unsafe fn errorCode(&self, errorcode: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).errorCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(errorcode)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn url(&self, urlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn url(&self, urlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).url)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(urlstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn reason(&self, reasonstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn reason(&self, reasonstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).reason)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(reasonstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn srcText(&self, sourcestring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn srcText(&self, sourcestring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).srcText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(sourcestring)).ok() } pub unsafe fn line(&self, linenumber: &mut i32) -> ::windows::core::Result<()> { @@ -13056,18 +11735,9 @@ unsafe impl ::windows::core::Interface for IXMLDOMParseError { pub struct IXMLDOMParseError_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, pub errorCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, errorcode: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub url: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, urlstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - url: usize, - #[cfg(feature = "Win32_Foundation")] - pub reason: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reasonstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - reason: usize, - #[cfg(feature = "Win32_Foundation")] - pub srcText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sourcestring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - srcText: usize, + pub url: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, urlstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub reason: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reasonstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub srcText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sourcestring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub line: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, linenumber: *mut i32) -> ::windows::core::HRESULT, pub linepos: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lineposition: *mut i32) -> ::windows::core::HRESULT, pub filepos: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fileposition: *mut i32) -> ::windows::core::HRESULT, @@ -13081,19 +11751,13 @@ impl IXMLDOMParseError2 { pub unsafe fn errorCode(&self, errorcode: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.errorCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(errorcode)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn url(&self, urlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn url(&self, urlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.url)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(urlstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn reason(&self, reasonstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn reason(&self, reasonstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.reason)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(reasonstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn srcText(&self, sourcestring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn srcText(&self, sourcestring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.srcText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(sourcestring)).ok() } pub unsafe fn line(&self, linenumber: &mut i32) -> ::windows::core::Result<()> { @@ -13105,11 +11769,9 @@ impl IXMLDOMParseError2 { pub unsafe fn filepos(&self, fileposition: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.filepos)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(fileposition)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn errorXPath(&self) -> ::windows::core::Result { + pub unsafe fn errorXPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).errorXPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).errorXPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -13117,11 +11779,9 @@ impl IXMLDOMParseError2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).allErrors)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn errorParameters(&self, index: i32) -> ::windows::core::Result { + pub unsafe fn errorParameters(&self, index: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).errorParameters)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).errorParameters)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn errorParametersCount(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -13212,18 +11872,12 @@ unsafe impl ::windows::core::Interface for IXMLDOMParseError2 { #[doc(hidden)] pub struct IXMLDOMParseError2_Vtbl { pub base__: IXMLDOMParseError_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub errorXPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, xpathexpr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - errorXPath: usize, + pub errorXPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, xpathexpr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub allErrors: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, allerrors: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] allErrors: usize, - #[cfg(feature = "Win32_Foundation")] - pub errorParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, param1: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - errorParameters: usize, + pub errorParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, param1: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub errorParametersCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: *mut i32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_System_Com\"`*"] @@ -13340,9 +11994,7 @@ pub struct IXMLDOMParseErrorCollection_Vtbl { pub struct IXMLDOMProcessingInstruction(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMProcessingInstruction { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn nodeName(&self, name: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn nodeName(&self, name: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.nodeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(name)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -13456,23 +12108,14 @@ impl IXMLDOMProcessingInstruction { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.cloneNode)(::windows::core::Interface::as_raw(self), deep, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn nodeTypeString(&self, nodetype: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn nodeTypeString(&self, nodetype: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.nodeTypeString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(nodetype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn text(&self, text: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn text(&self, text: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.text)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(text)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Settext<'a, P0>(&self, text: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.Settext)(::windows::core::Interface::as_raw(self), text.into().abi()).ok() + pub unsafe fn Settext(&self, text: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.Settext)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(text)).ok() } pub unsafe fn specified(&self, isspecified: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.specified)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(isspecified)).ok() @@ -13501,61 +12144,42 @@ impl IXMLDOMProcessingInstruction { pub unsafe fn dataType(&self, datatypename: &mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.dataType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(datatypename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetdataType<'a, P0>(&self, datatypename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetdataType)(::windows::core::Interface::as_raw(self), datatypename.into().abi()).ok() + pub unsafe fn SetdataType(&self, datatypename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetdataType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(datatypename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn xml(&self, xmlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn xml(&self, xmlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.xml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(xmlstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn transformNode<'a, P0>(&self, stylesheet: P0, xmlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn transformNode<'a, P0>(&self, stylesheet: P0, xmlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IXMLDOMNode>>, { (::windows::core::Interface::vtable(self).base__.transformNode)(::windows::core::Interface::as_raw(self), stylesheet.into().abi(), ::core::mem::transmute(xmlstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn selectNodes<'a, P0>(&self, querystring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn selectNodes(&self, querystring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.selectNodes)(::windows::core::Interface::as_raw(self), querystring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.selectNodes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(querystring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn selectSingleNode<'a, P0>(&self, querystring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn selectSingleNode(&self, querystring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.selectSingleNode)(::windows::core::Interface::as_raw(self), querystring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.selectSingleNode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(querystring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn parsed(&self, isparsed: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.parsed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(isparsed)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn namespaceURI(&self, namespaceuri: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn namespaceURI(&self, namespaceuri: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(namespaceuri)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn prefix(&self, prefixstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn prefix(&self, prefixstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.prefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(prefixstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn baseName(&self, namestring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn baseName(&self, namestring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.baseName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(namestring)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -13567,23 +12191,14 @@ impl IXMLDOMProcessingInstruction { { (::windows::core::Interface::vtable(self).base__.transformNodeToObject)(::windows::core::Interface::as_raw(self), stylesheet.into().abi(), outputobject.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn target(&self, name: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn target(&self, name: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).target)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn data(&self, value: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn data(&self, value: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).data)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(value)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Setdata<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Setdata)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn Setdata(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Setdata)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -13670,18 +12285,9 @@ unsafe impl ::windows::core::Interface for IXMLDOMProcessingInstruction { #[doc(hidden)] pub struct IXMLDOMProcessingInstruction_Vtbl { pub base__: IXMLDOMNode_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub target: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - target: usize, - #[cfg(feature = "Win32_Foundation")] - pub data: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - data: usize, - #[cfg(feature = "Win32_Foundation")] - pub Setdata: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Setdata: usize, + pub target: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub data: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Setdata: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -13691,39 +12297,28 @@ pub struct IXMLDOMSchemaCollection(::windows::core::IUnknown); impl IXMLDOMSchemaCollection { #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn add<'a, P0, P1>(&self, namespaceuri: P0, var: P1) -> ::windows::core::Result<()> + pub unsafe fn add<'a, P0>(&self, namespaceuri: &::windows::core::BSTR, var: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).add)(::windows::core::Interface::as_raw(self), namespaceuri.into().abi(), var.into().abi()).ok() + (::windows::core::Interface::vtable(self).add)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(namespaceuri), var.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn get<'a, P0>(&self, namespaceuri: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn get(&self, namespaceuri: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get)(::windows::core::Interface::as_raw(self), namespaceuri.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(namespaceuri), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn remove<'a, P0>(&self, namespaceuri: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).remove)(::windows::core::Interface::as_raw(self), namespaceuri.into().abi()).ok() + pub unsafe fn remove(&self, namespaceuri: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).remove)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(namespaceuri)).ok() } pub unsafe fn length(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).length)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_namespaceURI(&self, index: i32) -> ::windows::core::Result { + pub unsafe fn get_namespaceURI(&self, index: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_namespaceURI)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_namespaceURI)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -13805,22 +12400,16 @@ unsafe impl ::windows::core::Interface for IXMLDOMSchemaCollection { pub struct IXMLDOMSchemaCollection_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, namespaceuri: ::core::mem::ManuallyDrop, var: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, namespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, var: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] add: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub get: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, namespaceuri: ::core::mem::ManuallyDrop, schemanode: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub get: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, namespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, schemanode: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] get: usize, - #[cfg(feature = "Win32_Foundation")] - pub remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, namespaceuri: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - remove: usize, + pub remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, namespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub length: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, length: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub get_namespaceURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, length: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_namespaceURI: usize, + pub get_namespaceURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, length: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub addCollection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, othercollection: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -13835,39 +12424,28 @@ pub struct IXMLDOMSchemaCollection2(::windows::core::IUnknown); impl IXMLDOMSchemaCollection2 { #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn add<'a, P0, P1>(&self, namespaceuri: P0, var: P1) -> ::windows::core::Result<()> + pub unsafe fn add<'a, P0>(&self, namespaceuri: &::windows::core::BSTR, var: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.add)(::windows::core::Interface::as_raw(self), namespaceuri.into().abi(), var.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.add)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(namespaceuri), var.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn get<'a, P0>(&self, namespaceuri: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn get(&self, namespaceuri: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get)(::windows::core::Interface::as_raw(self), namespaceuri.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(namespaceuri), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn remove<'a, P0>(&self, namespaceuri: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.remove)(::windows::core::Interface::as_raw(self), namespaceuri.into().abi()).ok() + pub unsafe fn remove(&self, namespaceuri: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.remove)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(namespaceuri)).ok() } pub unsafe fn length(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.length)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_namespaceURI(&self, index: i32) -> ::windows::core::Result { + pub unsafe fn get_namespaceURI(&self, index: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_namespaceURI)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_namespaceURI)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -13891,14 +12469,11 @@ impl IXMLDOMSchemaCollection2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).validateOnLoad)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn getSchema<'a, P0>(&self, namespaceuri: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn getSchema(&self, namespaceuri: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getSchema)(::windows::core::Interface::as_raw(self), namespaceuri.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getSchema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(namespaceuri), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -13997,9 +12572,9 @@ pub struct IXMLDOMSchemaCollection2_Vtbl { pub validate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub SetvalidateOnLoad: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, validateonload: i16) -> ::windows::core::HRESULT, pub validateOnLoad: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, validateonload: *mut i16) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub getSchema: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, namespaceuri: ::core::mem::ManuallyDrop, schema: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub getSchema: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, namespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, schema: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] getSchema: usize, #[cfg(feature = "Win32_System_Com")] pub getDeclaration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, node: *mut ::core::ffi::c_void, item: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -14034,19 +12609,12 @@ impl IXMLDOMSelection { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__._newEnum)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn expr(&self) -> ::windows::core::Result { + pub unsafe fn expr(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).expr)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).expr)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Setexpr<'a, P0>(&self, expression: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Setexpr)(::windows::core::Interface::as_raw(self), expression.into().abi()).ok() + pub unsafe fn Setexpr(&self, expression: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Setexpr)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(expression)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -14094,21 +12662,17 @@ impl IXMLDOMSelection { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn getProperty<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn getProperty(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getProperty)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn setProperty<'a, P0, P1>(&self, name: P0, value: P1) -> ::windows::core::Result<()> + pub unsafe fn setProperty<'a, P0>(&self, name: &::windows::core::BSTR, value: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).setProperty)(::windows::core::Interface::as_raw(self), name.into().abi(), value.into().abi()).ok() + (::windows::core::Interface::vtable(self).setProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), value.into().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -14195,14 +12759,8 @@ unsafe impl ::windows::core::Interface for IXMLDOMSelection { #[doc(hidden)] pub struct IXMLDOMSelection_Vtbl { pub base__: IXMLDOMNodeList_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub expr: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, expression: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - expr: usize, - #[cfg(feature = "Win32_Foundation")] - pub Setexpr: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, expression: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Setexpr: usize, + pub expr: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, expression: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Setexpr: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, expression: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub context: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppnode: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -14229,11 +12787,11 @@ pub struct IXMLDOMSelection_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] clone: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub getProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, value: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub getProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] getProperty: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub setProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub setProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] setProperty: usize, } @@ -14243,9 +12801,7 @@ pub struct IXMLDOMSelection_Vtbl { pub struct IXMLDOMText(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IXMLDOMText { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn nodeName(&self, name: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn nodeName(&self, name: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.nodeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(name)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -14359,23 +12915,14 @@ impl IXMLDOMText { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.cloneNode)(::windows::core::Interface::as_raw(self), deep, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn nodeTypeString(&self, nodetype: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn nodeTypeString(&self, nodetype: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.nodeTypeString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(nodetype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn text(&self, text: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn text(&self, text: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.text)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(text)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Settext<'a, P0>(&self, text: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.Settext)(::windows::core::Interface::as_raw(self), text.into().abi()).ok() + pub unsafe fn Settext(&self, text: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.Settext)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(text)).ok() } pub unsafe fn specified(&self, isspecified: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.specified)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(isspecified)).ok() @@ -14404,61 +12951,42 @@ impl IXMLDOMText { pub unsafe fn dataType(&self, datatypename: &mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.dataType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(datatypename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetdataType<'a, P0>(&self, datatypename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetdataType)(::windows::core::Interface::as_raw(self), datatypename.into().abi()).ok() + pub unsafe fn SetdataType(&self, datatypename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetdataType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(datatypename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn xml(&self, xmlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn xml(&self, xmlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.xml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(xmlstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn transformNode<'a, P0>(&self, stylesheet: P0, xmlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn transformNode<'a, P0>(&self, stylesheet: P0, xmlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IXMLDOMNode>>, { (::windows::core::Interface::vtable(self).base__.base__.transformNode)(::windows::core::Interface::as_raw(self), stylesheet.into().abi(), ::core::mem::transmute(xmlstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn selectNodes<'a, P0>(&self, querystring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn selectNodes(&self, querystring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.selectNodes)(::windows::core::Interface::as_raw(self), querystring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.selectNodes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(querystring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn selectSingleNode<'a, P0>(&self, querystring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn selectSingleNode(&self, querystring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.selectSingleNode)(::windows::core::Interface::as_raw(self), querystring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.selectSingleNode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(querystring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn parsed(&self, isparsed: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.parsed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(isparsed)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn namespaceURI(&self, namespaceuri: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn namespaceURI(&self, namespaceuri: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(namespaceuri)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn prefix(&self, prefixstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn prefix(&self, prefixstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.prefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(prefixstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn baseName(&self, namestring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn baseName(&self, namestring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.baseName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(namestring)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -14470,53 +12998,29 @@ impl IXMLDOMText { { (::windows::core::Interface::vtable(self).base__.base__.transformNodeToObject)(::windows::core::Interface::as_raw(self), stylesheet.into().abi(), outputobject.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn data(&self, data: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn data(&self, data: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.data)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(data)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Setdata<'a, P0>(&self, data: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.Setdata)(::windows::core::Interface::as_raw(self), data.into().abi()).ok() + pub unsafe fn Setdata(&self, data: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.Setdata)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(data)).ok() } pub unsafe fn length(&self, datalength: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.length)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(datalength)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn substringData(&self, offset: i32, count: i32, data: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn substringData(&self, offset: i32, count: i32, data: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.substringData)(::windows::core::Interface::as_raw(self), offset, count, ::core::mem::transmute(data)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn appendData<'a, P0>(&self, data: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.appendData)(::windows::core::Interface::as_raw(self), data.into().abi()).ok() + pub unsafe fn appendData(&self, data: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.appendData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(data)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn insertData<'a, P0>(&self, offset: i32, data: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.insertData)(::windows::core::Interface::as_raw(self), offset, data.into().abi()).ok() + pub unsafe fn insertData(&self, offset: i32, data: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.insertData)(::windows::core::Interface::as_raw(self), offset, ::core::mem::transmute_copy(data)).ok() } pub unsafe fn deleteData(&self, offset: i32, count: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.deleteData)(::windows::core::Interface::as_raw(self), offset, count).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn replaceData<'a, P0>(&self, offset: i32, count: i32, data: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.replaceData)(::windows::core::Interface::as_raw(self), offset, count, data.into().abi()).ok() + pub unsafe fn replaceData(&self, offset: i32, count: i32, data: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.replaceData)(::windows::core::Interface::as_raw(self), offset, count, ::core::mem::transmute_copy(data)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -14765,79 +13269,51 @@ impl IXMLDocument { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).root)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn fileSize(&self) -> ::windows::core::Result { + pub unsafe fn fileSize(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).fileSize)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).fileSize)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn fileModifiedDate(&self) -> ::windows::core::Result { + pub unsafe fn fileModifiedDate(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).fileModifiedDate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).fileModifiedDate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn fileUpdatedDate(&self) -> ::windows::core::Result { + pub unsafe fn fileUpdatedDate(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).fileUpdatedDate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).fileUpdatedDate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn URL(&self) -> ::windows::core::Result { + pub unsafe fn URL(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).URL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).URL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetURL<'a, P0>(&self, p: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetURL)(::windows::core::Interface::as_raw(self), p.into().abi()).ok() + pub unsafe fn SetURL(&self, p: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(p)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn mimeType(&self) -> ::windows::core::Result { + pub unsafe fn mimeType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).mimeType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).mimeType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn readyState(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).readyState)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn charset(&self) -> ::windows::core::Result { + pub unsafe fn charset(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).charset)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).charset)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Setcharset<'a, P0>(&self, p: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Setcharset)(::windows::core::Interface::as_raw(self), p.into().abi()).ok() + pub unsafe fn Setcharset(&self, p: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Setcharset)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(p)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn version(&self) -> ::windows::core::Result { + pub unsafe fn version(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).version)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).version)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn doctype(&self) -> ::windows::core::Result { + pub unsafe fn doctype(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).doctype)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).doctype)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn dtdURL(&self) -> ::windows::core::Result { + pub unsafe fn dtdURL(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).dtdURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).dtdURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -14913,58 +13389,25 @@ unsafe impl ::windows::core::Interface for IXMLDocument { } #[cfg(feature = "Win32_System_Com")] #[repr(C)] -#[doc(hidden)] -pub struct IXMLDocument_Vtbl { - pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_System_Com")] - pub root: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_System_Com"))] - root: usize, - #[cfg(feature = "Win32_Foundation")] - pub fileSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - fileSize: usize, - #[cfg(feature = "Win32_Foundation")] - pub fileModifiedDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - fileModifiedDate: usize, - #[cfg(feature = "Win32_Foundation")] - pub fileUpdatedDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - fileUpdatedDate: usize, - #[cfg(feature = "Win32_Foundation")] - pub URL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - URL: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetURL: usize, - #[cfg(feature = "Win32_Foundation")] - pub mimeType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - mimeType: usize, - pub readyState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pl: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub charset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - charset: usize, - #[cfg(feature = "Win32_Foundation")] - pub Setcharset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Setcharset: usize, - #[cfg(feature = "Win32_Foundation")] - pub version: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - version: usize, - #[cfg(feature = "Win32_Foundation")] - pub doctype: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - doctype: usize, - #[cfg(feature = "Win32_Foundation")] - pub dtdURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - dtdURL: usize, +#[doc(hidden)] +pub struct IXMLDocument_Vtbl { + pub base__: super::super::super::System::Com::IDispatch_Vtbl, + #[cfg(feature = "Win32_System_Com")] + pub root: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] + root: usize, + pub fileSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub fileModifiedDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub fileUpdatedDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub URL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub mimeType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub readyState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pl: *mut i32) -> ::windows::core::HRESULT, + pub charset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Setcharset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub version: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub doctype: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub dtdURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub createElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vtype: ::core::mem::ManuallyDrop, var1: ::core::mem::ManuallyDrop, ppelem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -14982,79 +13425,51 @@ impl IXMLDocument2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).root)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn fileSize(&self) -> ::windows::core::Result { + pub unsafe fn fileSize(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).fileSize)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).fileSize)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn fileModifiedDate(&self) -> ::windows::core::Result { + pub unsafe fn fileModifiedDate(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).fileModifiedDate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).fileModifiedDate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn fileUpdatedDate(&self) -> ::windows::core::Result { + pub unsafe fn fileUpdatedDate(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).fileUpdatedDate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).fileUpdatedDate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn URL(&self) -> ::windows::core::Result { + pub unsafe fn URL(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).URL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).URL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetURL<'a, P0>(&self, p: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetURL)(::windows::core::Interface::as_raw(self), p.into().abi()).ok() + pub unsafe fn SetURL(&self, p: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(p)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn mimeType(&self) -> ::windows::core::Result { + pub unsafe fn mimeType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).mimeType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).mimeType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn readyState(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).readyState)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn charset(&self) -> ::windows::core::Result { + pub unsafe fn charset(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).charset)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).charset)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Setcharset<'a, P0>(&self, p: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Setcharset)(::windows::core::Interface::as_raw(self), p.into().abi()).ok() + pub unsafe fn Setcharset(&self, p: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Setcharset)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(p)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn version(&self) -> ::windows::core::Result { + pub unsafe fn version(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).version)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).version)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn doctype(&self) -> ::windows::core::Result { + pub unsafe fn doctype(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).doctype)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).doctype)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn dtdURL(&self) -> ::windows::core::Result { + pub unsafe fn dtdURL(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).dtdURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).dtdURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -15144,51 +13559,18 @@ pub struct IXMLDocument2_Vtbl { pub root: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] root: usize, - #[cfg(feature = "Win32_Foundation")] - pub fileSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - fileSize: usize, - #[cfg(feature = "Win32_Foundation")] - pub fileModifiedDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - fileModifiedDate: usize, - #[cfg(feature = "Win32_Foundation")] - pub fileUpdatedDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - fileUpdatedDate: usize, - #[cfg(feature = "Win32_Foundation")] - pub URL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - URL: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetURL: usize, - #[cfg(feature = "Win32_Foundation")] - pub mimeType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - mimeType: usize, + pub fileSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub fileModifiedDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub fileUpdatedDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub URL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub mimeType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub readyState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pl: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub charset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - charset: usize, - #[cfg(feature = "Win32_Foundation")] - pub Setcharset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Setcharset: usize, - #[cfg(feature = "Win32_Foundation")] - pub version: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - version: usize, - #[cfg(feature = "Win32_Foundation")] - pub doctype: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - doctype: usize, - #[cfg(feature = "Win32_Foundation")] - pub dtdURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - dtdURL: usize, + pub charset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Setcharset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub version: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub doctype: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub dtdURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub createElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vtype: ::core::mem::ManuallyDrop, var1: ::core::mem::ManuallyDrop, ppelem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -15202,19 +13584,12 @@ pub struct IXMLDocument2_Vtbl { pub struct IXMLElement(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IXMLElement { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn tagName(&self) -> ::windows::core::Result { + pub unsafe fn tagName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).tagName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).tagName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SettagName<'a, P0>(&self, p: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SettagName)(::windows::core::Interface::as_raw(self), p.into().abi()).ok() + pub unsafe fn SettagName(&self, p: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SettagName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(p)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -15224,29 +13599,20 @@ impl IXMLElement { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn setAttribute<'a, P0, P1>(&self, strpropertyname: P0, propertyvalue: P1) -> ::windows::core::Result<()> + pub unsafe fn setAttribute<'a, P0>(&self, strpropertyname: &::windows::core::BSTR, propertyvalue: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).setAttribute)(::windows::core::Interface::as_raw(self), strpropertyname.into().abi(), propertyvalue.into().abi()).ok() + (::windows::core::Interface::vtable(self).setAttribute)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strpropertyname), propertyvalue.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn getAttribute<'a, P0>(&self, strpropertyname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn getAttribute(&self, strpropertyname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getAttribute)(::windows::core::Interface::as_raw(self), strpropertyname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getAttribute)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strpropertyname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn removeAttribute<'a, P0>(&self, strpropertyname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).removeAttribute)(::windows::core::Interface::as_raw(self), strpropertyname.into().abi()).ok() + pub unsafe fn removeAttribute(&self, strpropertyname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).removeAttribute)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strpropertyname)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -15258,19 +13624,12 @@ impl IXMLElement { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).r#type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn text(&self) -> ::windows::core::Result { + pub unsafe fn text(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).text)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).text)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Settext<'a, P0>(&self, p: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Settext)(::windows::core::Interface::as_raw(self), p.into().abi()).ok() + pub unsafe fn Settext(&self, p: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Settext)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(p)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -15355,43 +13714,28 @@ unsafe impl ::windows::core::Interface for IXMLElement { #[doc(hidden)] pub struct IXMLElement_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub tagName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - tagName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SettagName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SettagName: usize, + pub tagName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SettagName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub parent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppparent: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] parent: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub setAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop, propertyvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub setAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] setAttribute: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub getAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop, propertyvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub getAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] getAttribute: usize, - #[cfg(feature = "Win32_Foundation")] - pub removeAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - removeAttribute: usize, + pub removeAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub children: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] children: usize, pub r#type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pltype: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub text: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - text: usize, - #[cfg(feature = "Win32_Foundation")] - pub Settext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Settext: usize, + pub text: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Settext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub addChild: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pchildelem: *mut ::core::ffi::c_void, lindex: i32, lreserved: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -15407,19 +13751,12 @@ pub struct IXMLElement_Vtbl { pub struct IXMLElement2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IXMLElement2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn tagName(&self) -> ::windows::core::Result { + pub unsafe fn tagName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).tagName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).tagName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SettagName<'a, P0>(&self, p: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SettagName)(::windows::core::Interface::as_raw(self), p.into().abi()).ok() + pub unsafe fn SettagName(&self, p: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SettagName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(p)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -15429,29 +13766,20 @@ impl IXMLElement2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn setAttribute<'a, P0, P1>(&self, strpropertyname: P0, propertyvalue: P1) -> ::windows::core::Result<()> + pub unsafe fn setAttribute<'a, P0>(&self, strpropertyname: &::windows::core::BSTR, propertyvalue: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).setAttribute)(::windows::core::Interface::as_raw(self), strpropertyname.into().abi(), propertyvalue.into().abi()).ok() + (::windows::core::Interface::vtable(self).setAttribute)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strpropertyname), propertyvalue.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn getAttribute<'a, P0>(&self, strpropertyname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn getAttribute(&self, strpropertyname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getAttribute)(::windows::core::Interface::as_raw(self), strpropertyname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getAttribute)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strpropertyname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn removeAttribute<'a, P0>(&self, strpropertyname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).removeAttribute)(::windows::core::Interface::as_raw(self), strpropertyname.into().abi()).ok() + pub unsafe fn removeAttribute(&self, strpropertyname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).removeAttribute)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strpropertyname)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -15463,19 +13791,12 @@ impl IXMLElement2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).r#type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn text(&self) -> ::windows::core::Result { + pub unsafe fn text(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).text)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).text)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Settext<'a, P0>(&self, p: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Settext)(::windows::core::Interface::as_raw(self), p.into().abi()).ok() + pub unsafe fn Settext(&self, p: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Settext)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(p)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -15566,43 +13887,28 @@ unsafe impl ::windows::core::Interface for IXMLElement2 { #[doc(hidden)] pub struct IXMLElement2_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub tagName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - tagName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SettagName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SettagName: usize, + pub tagName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SettagName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub parent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppparent: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] parent: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub setAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop, propertyvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub setAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] setAttribute: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub getAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop, propertyvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub getAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] getAttribute: usize, - #[cfg(feature = "Win32_Foundation")] - pub removeAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - removeAttribute: usize, + pub removeAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub children: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] children: usize, pub r#type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pltype: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub text: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - text: usize, - #[cfg(feature = "Win32_Foundation")] - pub Settext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Settext: usize, + pub text: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Settext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, p: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub addChild: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pchildelem: *mut ::core::ffi::c_void, lindex: i32, lreserved: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -15722,8 +14028,6 @@ pub struct IXMLElementCollection_Vtbl { #[repr(transparent)] pub struct IXMLError(::windows::core::IUnknown); impl IXMLError { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetErrorInfo(&self, perrorreturn: &mut XML_ERROR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetErrorInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(perrorreturn)).ok() } @@ -15767,10 +14071,7 @@ unsafe impl ::windows::core::Interface for IXMLError { #[doc(hidden)] pub struct IXMLError_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] pub GetErrorInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, perrorreturn: *mut XML_ERROR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetErrorInfo: usize, } #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -15780,39 +14081,24 @@ pub struct IXMLHTTPRequest(::windows::core::IUnknown); impl IXMLHTTPRequest { #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn open<'a, P0, P1, P2, P3, P4>(&self, bstrmethod: P0, bstrurl: P1, varasync: P2, bstruser: P3, bstrpassword: P4) -> ::windows::core::Result<()> + pub unsafe fn open<'a, P0, P1, P2>(&self, bstrmethod: &::windows::core::BSTR, bstrurl: &::windows::core::BSTR, varasync: P0, bstruser: P1, bstrpassword: P2) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).open)(::windows::core::Interface::as_raw(self), bstrmethod.into().abi(), bstrurl.into().abi(), varasync.into().abi(), bstruser.into().abi(), bstrpassword.into().abi()).ok() + (::windows::core::Interface::vtable(self).open)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrmethod), ::core::mem::transmute_copy(bstrurl), varasync.into().abi(), bstruser.into().abi(), bstrpassword.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn setRequestHeader<'a, P0, P1>(&self, bstrheader: P0, bstrvalue: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).setRequestHeader)(::windows::core::Interface::as_raw(self), bstrheader.into().abi(), bstrvalue.into().abi()).ok() + pub unsafe fn setRequestHeader(&self, bstrheader: &::windows::core::BSTR, bstrvalue: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).setRequestHeader)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrheader), ::core::mem::transmute_copy(bstrvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getResponseHeader<'a, P0>(&self, bstrheader: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn getResponseHeader(&self, bstrheader: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getResponseHeader)(::windows::core::Interface::as_raw(self), bstrheader.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getResponseHeader)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrheader), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getAllResponseHeaders(&self) -> ::windows::core::Result { + pub unsafe fn getAllResponseHeaders(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getAllResponseHeaders)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getAllResponseHeaders)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -15829,11 +14115,9 @@ impl IXMLHTTPRequest { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).status)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn statusText(&self) -> ::windows::core::Result { + pub unsafe fn statusText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).statusText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).statusText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -15841,11 +14125,9 @@ impl IXMLHTTPRequest { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).responseXML)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn responseText(&self) -> ::windows::core::Result { + pub unsafe fn responseText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).responseText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).responseText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -15939,39 +14221,24 @@ unsafe impl ::windows::core::Interface for IXMLHTTPRequest { pub struct IXMLHTTPRequest_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub open: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmethod: ::core::mem::ManuallyDrop, bstrurl: ::core::mem::ManuallyDrop, varasync: ::core::mem::ManuallyDrop, bstruser: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub open: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmethod: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varasync: ::core::mem::ManuallyDrop, bstruser: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] open: usize, - #[cfg(feature = "Win32_Foundation")] - pub setRequestHeader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrheader: ::core::mem::ManuallyDrop, bstrvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - setRequestHeader: usize, - #[cfg(feature = "Win32_Foundation")] - pub getResponseHeader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrheader: ::core::mem::ManuallyDrop, pbstrvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getResponseHeader: usize, - #[cfg(feature = "Win32_Foundation")] - pub getAllResponseHeaders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrheaders: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getAllResponseHeaders: usize, + pub setRequestHeader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrheader: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub getResponseHeader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrheader: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub getAllResponseHeaders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrheaders: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub send: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varbody: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] send: usize, pub abort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plstatus: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub statusText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstatus: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - statusText: usize, + pub statusText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstatus: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub responseXML: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppbody: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] responseXML: usize, - #[cfg(feature = "Win32_Foundation")] - pub responseText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbody: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - responseText: usize, + pub responseText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbody: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub responseBody: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvarbody: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -16468,39 +14735,24 @@ pub struct IXMLHttpRequest(::windows::core::IUnknown); impl IXMLHttpRequest { #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn open<'a, P0, P1, P2, P3, P4>(&self, bstrmethod: P0, bstrurl: P1, varasync: P2, bstruser: P3, bstrpassword: P4) -> ::windows::core::Result<()> + pub unsafe fn open<'a, P0, P1, P2>(&self, bstrmethod: &::windows::core::BSTR, bstrurl: &::windows::core::BSTR, varasync: P0, bstruser: P1, bstrpassword: P2) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).open)(::windows::core::Interface::as_raw(self), bstrmethod.into().abi(), bstrurl.into().abi(), varasync.into().abi(), bstruser.into().abi(), bstrpassword.into().abi()).ok() + (::windows::core::Interface::vtable(self).open)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrmethod), ::core::mem::transmute_copy(bstrurl), varasync.into().abi(), bstruser.into().abi(), bstrpassword.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn setRequestHeader<'a, P0, P1>(&self, bstrheader: P0, bstrvalue: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).setRequestHeader)(::windows::core::Interface::as_raw(self), bstrheader.into().abi(), bstrvalue.into().abi()).ok() + pub unsafe fn setRequestHeader(&self, bstrheader: &::windows::core::BSTR, bstrvalue: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).setRequestHeader)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrheader), ::core::mem::transmute_copy(bstrvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getResponseHeader<'a, P0>(&self, bstrheader: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn getResponseHeader(&self, bstrheader: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getResponseHeader)(::windows::core::Interface::as_raw(self), bstrheader.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getResponseHeader)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrheader), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getAllResponseHeaders(&self) -> ::windows::core::Result { + pub unsafe fn getAllResponseHeaders(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getAllResponseHeaders)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getAllResponseHeaders)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -16517,11 +14769,9 @@ impl IXMLHttpRequest { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).status)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn statusText(&self) -> ::windows::core::Result { + pub unsafe fn statusText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).statusText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).statusText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -16529,11 +14779,9 @@ impl IXMLHttpRequest { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).responseXML)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn responseText(&self) -> ::windows::core::Result { + pub unsafe fn responseText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).responseText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).responseText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -16627,39 +14875,24 @@ unsafe impl ::windows::core::Interface for IXMLHttpRequest { pub struct IXMLHttpRequest_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub open: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmethod: ::core::mem::ManuallyDrop, bstrurl: ::core::mem::ManuallyDrop, varasync: ::core::mem::ManuallyDrop, bstruser: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub open: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmethod: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varasync: ::core::mem::ManuallyDrop, bstruser: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] open: usize, - #[cfg(feature = "Win32_Foundation")] - pub setRequestHeader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrheader: ::core::mem::ManuallyDrop, bstrvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - setRequestHeader: usize, - #[cfg(feature = "Win32_Foundation")] - pub getResponseHeader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrheader: ::core::mem::ManuallyDrop, pbstrvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getResponseHeader: usize, - #[cfg(feature = "Win32_Foundation")] - pub getAllResponseHeaders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrheaders: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getAllResponseHeaders: usize, + pub setRequestHeader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrheader: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub getResponseHeader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrheader: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub getAllResponseHeaders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrheaders: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub send: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varbody: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] send: usize, pub abort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plstatus: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub statusText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstatus: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - statusText: usize, + pub statusText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstatus: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub responseXML: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppbody: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] responseXML: usize, - #[cfg(feature = "Win32_Foundation")] - pub responseText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbody: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - responseText: usize, + pub responseText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbody: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub responseBody: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvarbody: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -16700,26 +14933,16 @@ impl IXSLProcessor { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ownerTemplate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn setStartMode<'a, P0, P1>(&self, mode: P0, namespaceuri: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).setStartMode)(::windows::core::Interface::as_raw(self), mode.into().abi(), namespaceuri.into().abi()).ok() + pub unsafe fn setStartMode(&self, mode: &::windows::core::BSTR, namespaceuri: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).setStartMode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mode), ::core::mem::transmute_copy(namespaceuri)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn startMode(&self) -> ::windows::core::Result { + pub unsafe fn startMode(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).startMode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).startMode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn startModeURI(&self) -> ::windows::core::Result { + pub unsafe fn startModeURI(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).startModeURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).startModeURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -16748,22 +14971,19 @@ impl IXSLProcessor { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn addParameter<'a, P0, P1, P2>(&self, basename: P0, parameter: P1, namespaceuri: P2) -> ::windows::core::Result<()> + pub unsafe fn addParameter<'a, P0>(&self, basename: &::windows::core::BSTR, parameter: P0, namespaceuri: &::windows::core::BSTR) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).addParameter)(::windows::core::Interface::as_raw(self), basename.into().abi(), parameter.into().abi(), namespaceuri.into().abi()).ok() + (::windows::core::Interface::vtable(self).addParameter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(basename), parameter.into().abi(), ::core::mem::transmute_copy(namespaceuri)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn addObject<'a, P0, P1>(&self, obj: P0, namespaceuri: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn addObject<'a, P0>(&self, obj: P0, namespaceuri: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::IDispatch>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).addObject)(::windows::core::Interface::as_raw(self), obj.into().abi(), namespaceuri.into().abi()).ok() + (::windows::core::Interface::vtable(self).addObject)(::windows::core::Interface::as_raw(self), obj.into().abi(), ::core::mem::transmute_copy(namespaceuri)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -16850,18 +15070,9 @@ pub struct IXSLProcessor_Vtbl { pub ownerTemplate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pptemplate: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] ownerTemplate: usize, - #[cfg(feature = "Win32_Foundation")] - pub setStartMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mode: ::core::mem::ManuallyDrop, namespaceuri: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - setStartMode: usize, - #[cfg(feature = "Win32_Foundation")] - pub startMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mode: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - startMode: usize, - #[cfg(feature = "Win32_Foundation")] - pub startModeURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, namespaceuri: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - startModeURI: usize, + pub setStartMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mode: ::core::mem::ManuallyDrop<::windows::core::BSTR>, namespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub startMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mode: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub startModeURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, namespaceuri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub Setoutput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, output: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -16874,12 +15085,12 @@ pub struct IXSLProcessor_Vtbl { pub reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub readyState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, preadystate: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub addParameter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, basename: ::core::mem::ManuallyDrop, parameter: ::core::mem::ManuallyDrop, namespaceuri: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub addParameter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, basename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, parameter: ::core::mem::ManuallyDrop, namespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] addParameter: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub addObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, obj: *mut ::core::ffi::c_void, namespaceuri: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub addObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, obj: *mut ::core::ffi::c_void, namespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] addObject: usize, #[cfg(feature = "Win32_System_Com")] pub stylesheet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stylesheet: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -16998,9 +15209,7 @@ pub struct IXSLTemplate_Vtbl { pub struct IXTLRuntime(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IXTLRuntime { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn nodeName(&self, name: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn nodeName(&self, name: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.nodeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(name)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -17114,23 +15323,14 @@ impl IXTLRuntime { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.cloneNode)(::windows::core::Interface::as_raw(self), deep, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn nodeTypeString(&self, nodetype: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn nodeTypeString(&self, nodetype: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.nodeTypeString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(nodetype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn text(&self, text: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn text(&self, text: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.text)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(text)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Settext<'a, P0>(&self, text: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.Settext)(::windows::core::Interface::as_raw(self), text.into().abi()).ok() + pub unsafe fn Settext(&self, text: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.Settext)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(text)).ok() } pub unsafe fn specified(&self, isspecified: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.specified)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(isspecified)).ok() @@ -17159,61 +15359,42 @@ impl IXTLRuntime { pub unsafe fn dataType(&self, datatypename: &mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.dataType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(datatypename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetdataType<'a, P0>(&self, datatypename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetdataType)(::windows::core::Interface::as_raw(self), datatypename.into().abi()).ok() + pub unsafe fn SetdataType(&self, datatypename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetdataType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(datatypename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn xml(&self, xmlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn xml(&self, xmlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.xml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(xmlstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn transformNode<'a, P0>(&self, stylesheet: P0, xmlstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn transformNode<'a, P0>(&self, stylesheet: P0, xmlstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IXMLDOMNode>>, { (::windows::core::Interface::vtable(self).base__.transformNode)(::windows::core::Interface::as_raw(self), stylesheet.into().abi(), ::core::mem::transmute(xmlstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn selectNodes<'a, P0>(&self, querystring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn selectNodes(&self, querystring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.selectNodes)(::windows::core::Interface::as_raw(self), querystring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.selectNodes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(querystring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn selectSingleNode<'a, P0>(&self, querystring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn selectSingleNode(&self, querystring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.selectSingleNode)(::windows::core::Interface::as_raw(self), querystring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.selectSingleNode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(querystring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn parsed(&self, isparsed: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.parsed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(isparsed)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn namespaceURI(&self, namespaceuri: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn namespaceURI(&self, namespaceuri: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.namespaceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(namespaceuri)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn prefix(&self, prefixstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn prefix(&self, prefixstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.prefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(prefixstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn baseName(&self, namestring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn baseName(&self, namestring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.baseName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(namestring)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -17249,14 +15430,13 @@ impl IXTLRuntime { { (::windows::core::Interface::vtable(self).childNumber)(::windows::core::Interface::as_raw(self), pnode.into().abi(), ::core::mem::transmute(pnumber)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn ancestorChildNumber<'a, P0, P1>(&self, bstrnodename: P0, pnode: P1, pnumber: &mut i32) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn ancestorChildNumber<'a, P0>(&self, bstrnodename: &::windows::core::BSTR, pnode: P0, pnumber: &mut i32) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IXMLDOMNode>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IXMLDOMNode>>, { - (::windows::core::Interface::vtable(self).ancestorChildNumber)(::windows::core::Interface::as_raw(self), bstrnodename.into().abi(), pnode.into().abi(), ::core::mem::transmute(pnumber)).ok() + (::windows::core::Interface::vtable(self).ancestorChildNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrnodename), pnode.into().abi(), ::core::mem::transmute(pnumber)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -17266,41 +15446,29 @@ impl IXTLRuntime { { (::windows::core::Interface::vtable(self).absoluteChildNumber)(::windows::core::Interface::as_raw(self), pnode.into().abi(), ::core::mem::transmute(pnumber)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn formatIndex<'a, P0>(&self, lindex: i32, bstrformat: P0, pbstrformattedstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).formatIndex)(::windows::core::Interface::as_raw(self), lindex, bstrformat.into().abi(), ::core::mem::transmute(pbstrformattedstring)).ok() + pub unsafe fn formatIndex(&self, lindex: i32, bstrformat: &::windows::core::BSTR, pbstrformattedstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).formatIndex)(::windows::core::Interface::as_raw(self), lindex, ::core::mem::transmute_copy(bstrformat), ::core::mem::transmute(pbstrformattedstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn formatNumber<'a, P0>(&self, dblnumber: f64, bstrformat: P0, pbstrformattedstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).formatNumber)(::windows::core::Interface::as_raw(self), dblnumber, bstrformat.into().abi(), ::core::mem::transmute(pbstrformattedstring)).ok() + pub unsafe fn formatNumber(&self, dblnumber: f64, bstrformat: &::windows::core::BSTR, pbstrformattedstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).formatNumber)(::windows::core::Interface::as_raw(self), dblnumber, ::core::mem::transmute_copy(bstrformat), ::core::mem::transmute(pbstrformattedstring)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn formatDate<'a, P0, P1, P2>(&self, vardate: P0, bstrformat: P1, vardestlocale: P2, pbstrformattedstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> + pub unsafe fn formatDate<'a, P0, P1>(&self, vardate: P0, bstrformat: &::windows::core::BSTR, vardestlocale: P1, pbstrformattedstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).formatDate)(::windows::core::Interface::as_raw(self), vardate.into().abi(), bstrformat.into().abi(), vardestlocale.into().abi(), ::core::mem::transmute(pbstrformattedstring)).ok() + (::windows::core::Interface::vtable(self).formatDate)(::windows::core::Interface::as_raw(self), vardate.into().abi(), ::core::mem::transmute_copy(bstrformat), vardestlocale.into().abi(), ::core::mem::transmute(pbstrformattedstring)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn formatTime<'a, P0, P1, P2>(&self, vartime: P0, bstrformat: P1, vardestlocale: P2, pbstrformattedstring: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> + pub unsafe fn formatTime<'a, P0, P1>(&self, vartime: P0, bstrformat: &::windows::core::BSTR, vardestlocale: P1, pbstrformattedstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).formatTime)(::windows::core::Interface::as_raw(self), vartime.into().abi(), bstrformat.into().abi(), vardestlocale.into().abi(), ::core::mem::transmute(pbstrformattedstring)).ok() + (::windows::core::Interface::vtable(self).formatTime)(::windows::core::Interface::as_raw(self), vartime.into().abi(), ::core::mem::transmute_copy(bstrformat), vardestlocale.into().abi(), ::core::mem::transmute(pbstrformattedstring)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -17399,28 +15567,22 @@ pub struct IXTLRuntime_Vtbl { pub childNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnode: *mut ::core::ffi::c_void, pnumber: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] childNumber: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub ancestorChildNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrnodename: ::core::mem::ManuallyDrop, pnode: *mut ::core::ffi::c_void, pnumber: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub ancestorChildNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrnodename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pnode: *mut ::core::ffi::c_void, pnumber: *mut i32) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] ancestorChildNumber: usize, #[cfg(feature = "Win32_System_Com")] pub absoluteChildNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnode: *mut ::core::ffi::c_void, pnumber: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] absoluteChildNumber: usize, - #[cfg(feature = "Win32_Foundation")] - pub formatIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lindex: i32, bstrformat: ::core::mem::ManuallyDrop, pbstrformattedstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - formatIndex: usize, - #[cfg(feature = "Win32_Foundation")] - pub formatNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dblnumber: f64, bstrformat: ::core::mem::ManuallyDrop, pbstrformattedstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - formatNumber: usize, + pub formatIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lindex: i32, bstrformat: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrformattedstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub formatNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dblnumber: f64, bstrformat: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrformattedstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub formatDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vardate: ::core::mem::ManuallyDrop, bstrformat: ::core::mem::ManuallyDrop, vardestlocale: ::core::mem::ManuallyDrop, pbstrformattedstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub formatDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vardate: ::core::mem::ManuallyDrop, bstrformat: ::core::mem::ManuallyDrop<::windows::core::BSTR>, vardestlocale: ::core::mem::ManuallyDrop, pbstrformattedstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] formatDate: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub formatTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vartime: ::core::mem::ManuallyDrop, bstrformat: ::core::mem::ManuallyDrop, vardestlocale: ::core::mem::ManuallyDrop, pbstrformattedstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub formatTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vartime: ::core::mem::ManuallyDrop, bstrformat: ::core::mem::ManuallyDrop<::windows::core::BSTR>, vardestlocale: ::core::mem::ManuallyDrop, pbstrformattedstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] formatTime: usize, } @@ -19490,19 +17652,17 @@ impl ::core::default::Default for XHR_COOKIE { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`*"] pub struct XML_ERROR { pub _nLine: u32, - pub _pchBuf: super::super::super::Foundation::BSTR, + pub _pchBuf: ::windows::core::BSTR, pub _cchBuf: u32, pub _ich: u32, - pub _pszFound: super::super::super::Foundation::BSTR, - pub _pszExpected: super::super::super::Foundation::BSTR, + pub _pszFound: ::windows::core::BSTR, + pub _pszExpected: ::windows::core::BSTR, pub _reserved1: u32, pub _reserved2: u32, } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for XML_ERROR { fn clone(&self) -> Self { Self { @@ -19517,25 +17677,20 @@ impl ::core::clone::Clone for XML_ERROR { } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for XML_ERROR { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("XML_ERROR").field("_nLine", &self._nLine).field("_pchBuf", &self._pchBuf).field("_cchBuf", &self._cchBuf).field("_ich", &self._ich).field("_pszFound", &self._pszFound).field("_pszExpected", &self._pszExpected).field("_reserved1", &self._reserved1).field("_reserved2", &self._reserved2).finish() } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for XML_ERROR { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for XML_ERROR { fn eq(&self, other: &Self) -> bool { self._nLine == other._nLine && self._pchBuf == other._pchBuf && self._cchBuf == other._cchBuf && self._ich == other._ich && self._pszFound == other._pszFound && self._pszExpected == other._pszExpected && self._reserved1 == other._reserved1 && self._reserved2 == other._reserved2 } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for XML_ERROR {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for XML_ERROR { fn default() -> Self { unsafe { ::core::mem::zeroed() } diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Enumeration/Pnp/impl.rs b/crates/libs/windows/src/Windows/Win32/Devices/Enumeration/Pnp/impl.rs index 3c46ba811f..38dfe80387 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Enumeration/Pnp/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Enumeration/Pnp/impl.rs @@ -51,12 +51,12 @@ impl IUPnPAsyncResult_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IUPnPDescriptionDocument_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { fn ReadyState(&self) -> ::windows::core::Result; - fn Load(&self, bstrurl: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn LoadAsync(&self, bstrurl: &super::super::super::Foundation::BSTR, punkcallback: &::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result<()>; + fn Load(&self, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn LoadAsync(&self, bstrurl: &::windows::core::BSTR, punkcallback: &::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result<()>; fn LoadResult(&self) -> ::windows::core::Result; fn Abort(&self) -> ::windows::core::Result<()>; fn RootDevice(&self) -> ::windows::core::Result; - fn DeviceByUDN(&self, bstrudn: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; + fn DeviceByUDN(&self, bstrudn: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IUPnPDescriptionDocument {} @@ -74,12 +74,12 @@ impl IUPnPDescriptionDocument_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Load, Impl: IUPnPDescriptionDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Load, Impl: IUPnPDescriptionDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Load(::core::mem::transmute(&bstrurl)).into() } - unsafe extern "system" fn LoadAsync, Impl: IUPnPDescriptionDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop, punkcallback: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn LoadAsync, Impl: IUPnPDescriptionDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, punkcallback: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.LoadAsync(::core::mem::transmute(&bstrurl), ::core::mem::transmute(&punkcallback)).into() @@ -111,7 +111,7 @@ impl IUPnPDescriptionDocument_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DeviceByUDN, Impl: IUPnPDescriptionDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrudn: ::core::mem::ManuallyDrop, ppuddevice: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeviceByUDN, Impl: IUPnPDescriptionDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrudn: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppuddevice: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DeviceByUDN(::core::mem::transmute(&bstrudn)) { @@ -161,19 +161,19 @@ pub trait IUPnPDevice_Impl: Sized + super::super::super::System::Com::IDispatch_ fn ParentDevice(&self) -> ::windows::core::Result; fn HasChildren(&self) -> ::windows::core::Result; fn Children(&self) -> ::windows::core::Result; - fn UniqueDeviceName(&self) -> ::windows::core::Result; - fn FriendlyName(&self) -> ::windows::core::Result; - fn Type(&self) -> ::windows::core::Result; - fn PresentationURL(&self) -> ::windows::core::Result; - fn ManufacturerName(&self) -> ::windows::core::Result; - fn ManufacturerURL(&self) -> ::windows::core::Result; - fn ModelName(&self) -> ::windows::core::Result; - fn ModelNumber(&self) -> ::windows::core::Result; - fn Description(&self) -> ::windows::core::Result; - fn ModelURL(&self) -> ::windows::core::Result; - fn UPC(&self) -> ::windows::core::Result; - fn SerialNumber(&self) -> ::windows::core::Result; - fn IconURL(&self, bstrencodingformat: &super::super::super::Foundation::BSTR, lsizex: i32, lsizey: i32, lbitdepth: i32) -> ::windows::core::Result; + fn UniqueDeviceName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn FriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Type(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn PresentationURL(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ManufacturerName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ManufacturerURL(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ModelName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ModelNumber(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ModelURL(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn UPC(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SerialNumber(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn IconURL(&self, bstrencodingformat: &::windows::core::BSTR, lsizex: i32, lsizey: i32, lbitdepth: i32) -> ::windows::core::Result<::windows::core::BSTR>; fn Services(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -236,7 +236,7 @@ impl IUPnPDevice_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn UniqueDeviceName, Impl: IUPnPDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UniqueDeviceName, Impl: IUPnPDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UniqueDeviceName() { @@ -247,7 +247,7 @@ impl IUPnPDevice_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn FriendlyName, Impl: IUPnPDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FriendlyName, Impl: IUPnPDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FriendlyName() { @@ -258,7 +258,7 @@ impl IUPnPDevice_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Type, Impl: IUPnPDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Type, Impl: IUPnPDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Type() { @@ -269,7 +269,7 @@ impl IUPnPDevice_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn PresentationURL, Impl: IUPnPDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PresentationURL, Impl: IUPnPDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PresentationURL() { @@ -280,7 +280,7 @@ impl IUPnPDevice_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ManufacturerName, Impl: IUPnPDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ManufacturerName, Impl: IUPnPDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ManufacturerName() { @@ -291,7 +291,7 @@ impl IUPnPDevice_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ManufacturerURL, Impl: IUPnPDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ManufacturerURL, Impl: IUPnPDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ManufacturerURL() { @@ -302,7 +302,7 @@ impl IUPnPDevice_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ModelName, Impl: IUPnPDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ModelName, Impl: IUPnPDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ModelName() { @@ -313,7 +313,7 @@ impl IUPnPDevice_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ModelNumber, Impl: IUPnPDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ModelNumber, Impl: IUPnPDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ModelNumber() { @@ -324,7 +324,7 @@ impl IUPnPDevice_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Description, Impl: IUPnPDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IUPnPDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -335,7 +335,7 @@ impl IUPnPDevice_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ModelURL, Impl: IUPnPDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ModelURL, Impl: IUPnPDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ModelURL() { @@ -346,7 +346,7 @@ impl IUPnPDevice_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn UPC, Impl: IUPnPDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UPC, Impl: IUPnPDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UPC() { @@ -357,7 +357,7 @@ impl IUPnPDevice_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SerialNumber, Impl: IUPnPDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SerialNumber, Impl: IUPnPDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SerialNumber() { @@ -368,7 +368,7 @@ impl IUPnPDevice_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn IconURL, Impl: IUPnPDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrencodingformat: ::core::mem::ManuallyDrop, lsizex: i32, lsizey: i32, lbitdepth: i32, pbstriconurl: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn IconURL, Impl: IUPnPDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrencodingformat: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lsizex: i32, lsizey: i32, lbitdepth: i32, pbstriconurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.IconURL(::core::mem::transmute(&bstrencodingformat), ::core::mem::transmute_copy(&lsizex), ::core::mem::transmute_copy(&lsizey), ::core::mem::transmute_copy(&lbitdepth)) { @@ -417,22 +417,22 @@ impl IUPnPDevice_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IUPnPDeviceControl_Impl: Sized { - fn Initialize(&self, bstrxmldesc: &super::super::super::Foundation::BSTR, bstrdeviceidentifier: &super::super::super::Foundation::BSTR, bstrinitstring: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetServiceObject(&self, bstrudn: &super::super::super::Foundation::BSTR, bstrserviceid: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; + fn Initialize(&self, bstrxmldesc: &::windows::core::BSTR, bstrdeviceidentifier: &::windows::core::BSTR, bstrinitstring: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetServiceObject(&self, bstrudn: &::windows::core::BSTR, bstrserviceid: &::windows::core::BSTR) -> ::windows::core::Result; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IUPnPDeviceControl {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IUPnPDeviceControl_Vtbl { pub const fn new, Impl: IUPnPDeviceControl_Impl, const OFFSET: isize>() -> IUPnPDeviceControl_Vtbl { - unsafe extern "system" fn Initialize, Impl: IUPnPDeviceControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrxmldesc: ::core::mem::ManuallyDrop, bstrdeviceidentifier: ::core::mem::ManuallyDrop, bstrinitstring: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Initialize, Impl: IUPnPDeviceControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrxmldesc: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdeviceidentifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrinitstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Initialize(::core::mem::transmute(&bstrxmldesc), ::core::mem::transmute(&bstrdeviceidentifier), ::core::mem::transmute(&bstrinitstring)).into() } - unsafe extern "system" fn GetServiceObject, Impl: IUPnPDeviceControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrudn: ::core::mem::ManuallyDrop, bstrserviceid: ::core::mem::ManuallyDrop, ppdispservice: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetServiceObject, Impl: IUPnPDeviceControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrudn: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrserviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppdispservice: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetServiceObject(::core::mem::transmute(&bstrudn), ::core::mem::transmute(&bstrserviceid)) { @@ -453,16 +453,13 @@ impl IUPnPDeviceControl_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IUPnPDeviceControlHttpHeaders_Impl: Sized { - fn GetAdditionalResponseHeaders(&self) -> ::windows::core::Result; + fn GetAdditionalResponseHeaders(&self) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IUPnPDeviceControlHttpHeaders {} -#[cfg(feature = "Win32_Foundation")] impl IUPnPDeviceControlHttpHeaders_Vtbl { pub const fn new, Impl: IUPnPDeviceControlHttpHeaders_Impl, const OFFSET: isize>() -> IUPnPDeviceControlHttpHeaders_Vtbl { - unsafe extern "system" fn GetAdditionalResponseHeaders, Impl: IUPnPDeviceControlHttpHeaders_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrhttpresponseheaders: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetAdditionalResponseHeaders, Impl: IUPnPDeviceControlHttpHeaders_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrhttpresponseheaders: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetAdditionalResponseHeaders() { @@ -482,16 +479,13 @@ impl IUPnPDeviceControlHttpHeaders_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IUPnPDeviceDocumentAccess_Impl: Sized { - fn GetDocumentURL(&self) -> ::windows::core::Result; + fn GetDocumentURL(&self) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IUPnPDeviceDocumentAccess {} -#[cfg(feature = "Win32_Foundation")] impl IUPnPDeviceDocumentAccess_Vtbl { pub const fn new, Impl: IUPnPDeviceDocumentAccess_Impl, const OFFSET: isize>() -> IUPnPDeviceDocumentAccess_Vtbl { - unsafe extern "system" fn GetDocumentURL, Impl: IUPnPDeviceDocumentAccess_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdocument: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDocumentURL, Impl: IUPnPDeviceDocumentAccess_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdocument: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDocumentURL() { @@ -508,16 +502,13 @@ impl IUPnPDeviceDocumentAccess_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IUPnPDeviceDocumentAccessEx_Impl: Sized { - fn GetDocument(&self) -> ::windows::core::Result; + fn GetDocument(&self) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IUPnPDeviceDocumentAccessEx {} -#[cfg(feature = "Win32_Foundation")] impl IUPnPDeviceDocumentAccessEx_Vtbl { pub const fn new, Impl: IUPnPDeviceDocumentAccessEx_Impl, const OFFSET: isize>() -> IUPnPDeviceDocumentAccessEx_Vtbl { - unsafe extern "system" fn GetDocument, Impl: IUPnPDeviceDocumentAccessEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdocument: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDocument, Impl: IUPnPDeviceDocumentAccessEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdocument: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDocument() { @@ -536,18 +527,18 @@ impl IUPnPDeviceDocumentAccessEx_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IUPnPDeviceFinder_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn FindByType(&self, bstrtypeuri: &super::super::super::Foundation::BSTR, dwflags: u32) -> ::windows::core::Result; - fn CreateAsyncFind(&self, bstrtypeuri: &super::super::super::Foundation::BSTR, dwflags: u32, punkdevicefindercallback: &::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result; + fn FindByType(&self, bstrtypeuri: &::windows::core::BSTR, dwflags: u32) -> ::windows::core::Result; + fn CreateAsyncFind(&self, bstrtypeuri: &::windows::core::BSTR, dwflags: u32, punkdevicefindercallback: &::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result; fn StartAsyncFind(&self, lfinddata: i32) -> ::windows::core::Result<()>; fn CancelAsyncFind(&self, lfinddata: i32) -> ::windows::core::Result<()>; - fn FindByUDN(&self, bstrudn: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; + fn FindByUDN(&self, bstrudn: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IUPnPDeviceFinder {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IUPnPDeviceFinder_Vtbl { pub const fn new, Impl: IUPnPDeviceFinder_Impl, const OFFSET: isize>() -> IUPnPDeviceFinder_Vtbl { - unsafe extern "system" fn FindByType, Impl: IUPnPDeviceFinder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtypeuri: ::core::mem::ManuallyDrop, dwflags: u32, pdevices: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn FindByType, Impl: IUPnPDeviceFinder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtypeuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwflags: u32, pdevices: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FindByType(::core::mem::transmute(&bstrtypeuri), ::core::mem::transmute_copy(&dwflags)) { @@ -558,7 +549,7 @@ impl IUPnPDeviceFinder_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateAsyncFind, Impl: IUPnPDeviceFinder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtypeuri: ::core::mem::ManuallyDrop, dwflags: u32, punkdevicefindercallback: *mut ::core::ffi::c_void, plfinddata: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateAsyncFind, Impl: IUPnPDeviceFinder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtypeuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwflags: u32, punkdevicefindercallback: *mut ::core::ffi::c_void, plfinddata: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateAsyncFind(::core::mem::transmute(&bstrtypeuri), ::core::mem::transmute_copy(&dwflags), ::core::mem::transmute(&punkdevicefindercallback)) { @@ -579,7 +570,7 @@ impl IUPnPDeviceFinder_Vtbl { let this = (*this).get_impl(); this.CancelAsyncFind(::core::mem::transmute_copy(&lfinddata)).into() } - unsafe extern "system" fn FindByUDN, Impl: IUPnPDeviceFinder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrudn: ::core::mem::ManuallyDrop, pdevice: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn FindByUDN, Impl: IUPnPDeviceFinder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrudn: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdevice: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FindByUDN(::core::mem::transmute(&bstrudn)) { @@ -623,15 +614,15 @@ impl IUPnPDeviceFinderAddCallbackWithInterface_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IUPnPDeviceFinderCallback_Impl: Sized { fn DeviceAdded(&self, lfinddata: i32, pdevice: &::core::option::Option) -> ::windows::core::Result<()>; - fn DeviceRemoved(&self, lfinddata: i32, bstrudn: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn DeviceRemoved(&self, lfinddata: i32, bstrudn: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SearchComplete(&self, lfinddata: i32) -> ::windows::core::Result<()>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IUPnPDeviceFinderCallback {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IUPnPDeviceFinderCallback_Vtbl { pub const fn new, Impl: IUPnPDeviceFinderCallback_Impl, const OFFSET: isize>() -> IUPnPDeviceFinderCallback_Vtbl { unsafe extern "system" fn DeviceAdded, Impl: IUPnPDeviceFinderCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lfinddata: i32, pdevice: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -639,7 +630,7 @@ impl IUPnPDeviceFinderCallback_Vtbl { let this = (*this).get_impl(); this.DeviceAdded(::core::mem::transmute_copy(&lfinddata), ::core::mem::transmute(&pdevice)).into() } - unsafe extern "system" fn DeviceRemoved, Impl: IUPnPDeviceFinderCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lfinddata: i32, bstrudn: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeviceRemoved, Impl: IUPnPDeviceFinderCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lfinddata: i32, bstrudn: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeviceRemoved(::core::mem::transmute_copy(&lfinddata), ::core::mem::transmute(&bstrudn)).into() @@ -660,17 +651,14 @@ impl IUPnPDeviceFinderCallback_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IUPnPDeviceProvider_Impl: Sized { - fn Start(&self, bstrinitstring: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Start(&self, bstrinitstring: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Stop(&self) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IUPnPDeviceProvider {} -#[cfg(feature = "Win32_Foundation")] impl IUPnPDeviceProvider_Vtbl { pub const fn new, Impl: IUPnPDeviceProvider_Impl, const OFFSET: isize>() -> IUPnPDeviceProvider_Vtbl { - unsafe extern "system" fn Start, Impl: IUPnPDeviceProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrinitstring: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Start, Impl: IUPnPDeviceProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrinitstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Start(::core::mem::transmute(&bstrinitstring)).into() @@ -690,7 +678,7 @@ impl IUPnPDeviceProvider_Vtbl { pub trait IUPnPDevices_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { fn Count(&self) -> ::windows::core::Result; fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; - fn get_Item(&self, bstrudn: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; + fn get_Item(&self, bstrudn: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IUPnPDevices {} @@ -719,7 +707,7 @@ impl IUPnPDevices_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_Item, Impl: IUPnPDevices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrudn: ::core::mem::ManuallyDrop, ppdevice: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Item, Impl: IUPnPDevices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrudn: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppdevice: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_Item(::core::mem::transmute(&bstrudn)) { @@ -798,16 +786,13 @@ impl IUPnPEventSource_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IUPnPHttpHeaderControl_Impl: Sized { - fn AddRequestHeaders(&self, bstrhttpheaders: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn AddRequestHeaders(&self, bstrhttpheaders: &::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IUPnPHttpHeaderControl {} -#[cfg(feature = "Win32_Foundation")] impl IUPnPHttpHeaderControl_Vtbl { pub const fn new, Impl: IUPnPHttpHeaderControl_Impl, const OFFSET: isize>() -> IUPnPHttpHeaderControl_Vtbl { - unsafe extern "system" fn AddRequestHeaders, Impl: IUPnPHttpHeaderControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrhttpheaders: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddRequestHeaders, Impl: IUPnPHttpHeaderControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrhttpheaders: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddRequestHeaders(::core::mem::transmute(&bstrhttpheaders)).into() @@ -820,19 +805,19 @@ impl IUPnPHttpHeaderControl_Vtbl { } #[cfg(feature = "Win32_Foundation")] pub trait IUPnPRegistrar_Impl: Sized { - fn RegisterDevice(&self, bstrxmldesc: &super::super::super::Foundation::BSTR, bstrprogiddevicecontrolclass: &super::super::super::Foundation::BSTR, bstrinitstring: &super::super::super::Foundation::BSTR, bstrcontainerid: &super::super::super::Foundation::BSTR, bstrresourcepath: &super::super::super::Foundation::BSTR, nlifetime: i32) -> ::windows::core::Result; - fn RegisterRunningDevice(&self, bstrxmldesc: &super::super::super::Foundation::BSTR, punkdevicecontrol: &::core::option::Option<::windows::core::IUnknown>, bstrinitstring: &super::super::super::Foundation::BSTR, bstrresourcepath: &super::super::super::Foundation::BSTR, nlifetime: i32) -> ::windows::core::Result; - fn RegisterDeviceProvider(&self, bstrprovidername: &super::super::super::Foundation::BSTR, bstrprogidproviderclass: &super::super::super::Foundation::BSTR, bstrinitstring: &super::super::super::Foundation::BSTR, bstrcontainerid: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetUniqueDeviceName(&self, bstrdeviceidentifier: &super::super::super::Foundation::BSTR, bstrtemplateudn: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn UnregisterDevice(&self, bstrdeviceidentifier: &super::super::super::Foundation::BSTR, fpermanent: super::super::super::Foundation::BOOL) -> ::windows::core::Result<()>; - fn UnregisterDeviceProvider(&self, bstrprovidername: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn RegisterDevice(&self, bstrxmldesc: &::windows::core::BSTR, bstrprogiddevicecontrolclass: &::windows::core::BSTR, bstrinitstring: &::windows::core::BSTR, bstrcontainerid: &::windows::core::BSTR, bstrresourcepath: &::windows::core::BSTR, nlifetime: i32) -> ::windows::core::Result<::windows::core::BSTR>; + fn RegisterRunningDevice(&self, bstrxmldesc: &::windows::core::BSTR, punkdevicecontrol: &::core::option::Option<::windows::core::IUnknown>, bstrinitstring: &::windows::core::BSTR, bstrresourcepath: &::windows::core::BSTR, nlifetime: i32) -> ::windows::core::Result<::windows::core::BSTR>; + fn RegisterDeviceProvider(&self, bstrprovidername: &::windows::core::BSTR, bstrprogidproviderclass: &::windows::core::BSTR, bstrinitstring: &::windows::core::BSTR, bstrcontainerid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetUniqueDeviceName(&self, bstrdeviceidentifier: &::windows::core::BSTR, bstrtemplateudn: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; + fn UnregisterDevice(&self, bstrdeviceidentifier: &::windows::core::BSTR, fpermanent: super::super::super::Foundation::BOOL) -> ::windows::core::Result<()>; + fn UnregisterDeviceProvider(&self, bstrprovidername: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IUPnPRegistrar {} #[cfg(feature = "Win32_Foundation")] impl IUPnPRegistrar_Vtbl { pub const fn new, Impl: IUPnPRegistrar_Impl, const OFFSET: isize>() -> IUPnPRegistrar_Vtbl { - unsafe extern "system" fn RegisterDevice, Impl: IUPnPRegistrar_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrxmldesc: ::core::mem::ManuallyDrop, bstrprogiddevicecontrolclass: ::core::mem::ManuallyDrop, bstrinitstring: ::core::mem::ManuallyDrop, bstrcontainerid: ::core::mem::ManuallyDrop, bstrresourcepath: ::core::mem::ManuallyDrop, nlifetime: i32, pbstrdeviceidentifier: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RegisterDevice, Impl: IUPnPRegistrar_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrxmldesc: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrprogiddevicecontrolclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrinitstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrcontainerid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrresourcepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, nlifetime: i32, pbstrdeviceidentifier: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RegisterDevice(::core::mem::transmute(&bstrxmldesc), ::core::mem::transmute(&bstrprogiddevicecontrolclass), ::core::mem::transmute(&bstrinitstring), ::core::mem::transmute(&bstrcontainerid), ::core::mem::transmute(&bstrresourcepath), ::core::mem::transmute_copy(&nlifetime)) { @@ -843,7 +828,7 @@ impl IUPnPRegistrar_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RegisterRunningDevice, Impl: IUPnPRegistrar_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrxmldesc: ::core::mem::ManuallyDrop, punkdevicecontrol: *mut ::core::ffi::c_void, bstrinitstring: ::core::mem::ManuallyDrop, bstrresourcepath: ::core::mem::ManuallyDrop, nlifetime: i32, pbstrdeviceidentifier: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RegisterRunningDevice, Impl: IUPnPRegistrar_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrxmldesc: ::core::mem::ManuallyDrop<::windows::core::BSTR>, punkdevicecontrol: *mut ::core::ffi::c_void, bstrinitstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrresourcepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, nlifetime: i32, pbstrdeviceidentifier: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RegisterRunningDevice(::core::mem::transmute(&bstrxmldesc), ::core::mem::transmute(&punkdevicecontrol), ::core::mem::transmute(&bstrinitstring), ::core::mem::transmute(&bstrresourcepath), ::core::mem::transmute_copy(&nlifetime)) { @@ -854,12 +839,12 @@ impl IUPnPRegistrar_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RegisterDeviceProvider, Impl: IUPnPRegistrar_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprovidername: ::core::mem::ManuallyDrop, bstrprogidproviderclass: ::core::mem::ManuallyDrop, bstrinitstring: ::core::mem::ManuallyDrop, bstrcontainerid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn RegisterDeviceProvider, Impl: IUPnPRegistrar_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprovidername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrprogidproviderclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrinitstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrcontainerid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RegisterDeviceProvider(::core::mem::transmute(&bstrprovidername), ::core::mem::transmute(&bstrprogidproviderclass), ::core::mem::transmute(&bstrinitstring), ::core::mem::transmute(&bstrcontainerid)).into() } - unsafe extern "system" fn GetUniqueDeviceName, Impl: IUPnPRegistrar_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdeviceidentifier: ::core::mem::ManuallyDrop, bstrtemplateudn: ::core::mem::ManuallyDrop, pbstrudn: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetUniqueDeviceName, Impl: IUPnPRegistrar_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdeviceidentifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrtemplateudn: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrudn: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetUniqueDeviceName(::core::mem::transmute(&bstrdeviceidentifier), ::core::mem::transmute(&bstrtemplateudn)) { @@ -870,12 +855,12 @@ impl IUPnPRegistrar_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn UnregisterDevice, Impl: IUPnPRegistrar_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdeviceidentifier: ::core::mem::ManuallyDrop, fpermanent: super::super::super::Foundation::BOOL) -> ::windows::core::HRESULT { + unsafe extern "system" fn UnregisterDevice, Impl: IUPnPRegistrar_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdeviceidentifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fpermanent: super::super::super::Foundation::BOOL) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.UnregisterDevice(::core::mem::transmute(&bstrdeviceidentifier), ::core::mem::transmute_copy(&fpermanent)).into() } - unsafe extern "system" fn UnregisterDeviceProvider, Impl: IUPnPRegistrar_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprovidername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn UnregisterDeviceProvider, Impl: IUPnPRegistrar_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprovidername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.UnregisterDeviceProvider(::core::mem::transmute(&bstrprovidername)).into() @@ -894,18 +879,15 @@ impl IUPnPRegistrar_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IUPnPRemoteEndpointInfo_Impl: Sized { - fn GetDwordValue(&self, bstrvaluename: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetStringValue(&self, bstrvaluename: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetGuidValue(&self, bstrvaluename: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<::windows::core::GUID>; + fn GetDwordValue(&self, bstrvaluename: &::windows::core::BSTR) -> ::windows::core::Result; + fn GetStringValue(&self, bstrvaluename: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetGuidValue(&self, bstrvaluename: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::GUID>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IUPnPRemoteEndpointInfo {} -#[cfg(feature = "Win32_Foundation")] impl IUPnPRemoteEndpointInfo_Vtbl { pub const fn new, Impl: IUPnPRemoteEndpointInfo_Impl, const OFFSET: isize>() -> IUPnPRemoteEndpointInfo_Vtbl { - unsafe extern "system" fn GetDwordValue, Impl: IUPnPRemoteEndpointInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrvaluename: ::core::mem::ManuallyDrop, pdwvalue: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDwordValue, Impl: IUPnPRemoteEndpointInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrvaluename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwvalue: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDwordValue(::core::mem::transmute(&bstrvaluename)) { @@ -916,7 +898,7 @@ impl IUPnPRemoteEndpointInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetStringValue, Impl: IUPnPRemoteEndpointInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrvaluename: ::core::mem::ManuallyDrop, pbstrvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetStringValue, Impl: IUPnPRemoteEndpointInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrvaluename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetStringValue(::core::mem::transmute(&bstrvaluename)) { @@ -927,7 +909,7 @@ impl IUPnPRemoteEndpointInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetGuidValue, Impl: IUPnPRemoteEndpointInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrvaluename: ::core::mem::ManuallyDrop, pguidvalue: *mut ::windows::core::GUID) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetGuidValue, Impl: IUPnPRemoteEndpointInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrvaluename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pguidvalue: *mut ::windows::core::GUID) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetGuidValue(::core::mem::transmute(&bstrvaluename)) { @@ -949,22 +931,19 @@ impl IUPnPRemoteEndpointInfo_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IUPnPReregistrar_Impl: Sized { - fn ReregisterDevice(&self, bstrdeviceidentifier: &super::super::super::Foundation::BSTR, bstrxmldesc: &super::super::super::Foundation::BSTR, bstrprogiddevicecontrolclass: &super::super::super::Foundation::BSTR, bstrinitstring: &super::super::super::Foundation::BSTR, bstrcontainerid: &super::super::super::Foundation::BSTR, bstrresourcepath: &super::super::super::Foundation::BSTR, nlifetime: i32) -> ::windows::core::Result<()>; - fn ReregisterRunningDevice(&self, bstrdeviceidentifier: &super::super::super::Foundation::BSTR, bstrxmldesc: &super::super::super::Foundation::BSTR, punkdevicecontrol: &::core::option::Option<::windows::core::IUnknown>, bstrinitstring: &super::super::super::Foundation::BSTR, bstrresourcepath: &super::super::super::Foundation::BSTR, nlifetime: i32) -> ::windows::core::Result<()>; + fn ReregisterDevice(&self, bstrdeviceidentifier: &::windows::core::BSTR, bstrxmldesc: &::windows::core::BSTR, bstrprogiddevicecontrolclass: &::windows::core::BSTR, bstrinitstring: &::windows::core::BSTR, bstrcontainerid: &::windows::core::BSTR, bstrresourcepath: &::windows::core::BSTR, nlifetime: i32) -> ::windows::core::Result<()>; + fn ReregisterRunningDevice(&self, bstrdeviceidentifier: &::windows::core::BSTR, bstrxmldesc: &::windows::core::BSTR, punkdevicecontrol: &::core::option::Option<::windows::core::IUnknown>, bstrinitstring: &::windows::core::BSTR, bstrresourcepath: &::windows::core::BSTR, nlifetime: i32) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IUPnPReregistrar {} -#[cfg(feature = "Win32_Foundation")] impl IUPnPReregistrar_Vtbl { pub const fn new, Impl: IUPnPReregistrar_Impl, const OFFSET: isize>() -> IUPnPReregistrar_Vtbl { - unsafe extern "system" fn ReregisterDevice, Impl: IUPnPReregistrar_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdeviceidentifier: ::core::mem::ManuallyDrop, bstrxmldesc: ::core::mem::ManuallyDrop, bstrprogiddevicecontrolclass: ::core::mem::ManuallyDrop, bstrinitstring: ::core::mem::ManuallyDrop, bstrcontainerid: ::core::mem::ManuallyDrop, bstrresourcepath: ::core::mem::ManuallyDrop, nlifetime: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn ReregisterDevice, Impl: IUPnPReregistrar_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdeviceidentifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrxmldesc: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrprogiddevicecontrolclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrinitstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrcontainerid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrresourcepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, nlifetime: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ReregisterDevice(::core::mem::transmute(&bstrdeviceidentifier), ::core::mem::transmute(&bstrxmldesc), ::core::mem::transmute(&bstrprogiddevicecontrolclass), ::core::mem::transmute(&bstrinitstring), ::core::mem::transmute(&bstrcontainerid), ::core::mem::transmute(&bstrresourcepath), ::core::mem::transmute_copy(&nlifetime)).into() } - unsafe extern "system" fn ReregisterRunningDevice, Impl: IUPnPReregistrar_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdeviceidentifier: ::core::mem::ManuallyDrop, bstrxmldesc: ::core::mem::ManuallyDrop, punkdevicecontrol: *mut ::core::ffi::c_void, bstrinitstring: ::core::mem::ManuallyDrop, bstrresourcepath: ::core::mem::ManuallyDrop, nlifetime: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn ReregisterRunningDevice, Impl: IUPnPReregistrar_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdeviceidentifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrxmldesc: ::core::mem::ManuallyDrop<::windows::core::BSTR>, punkdevicecontrol: *mut ::core::ffi::c_void, bstrinitstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrresourcepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, nlifetime: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ReregisterRunningDevice(::core::mem::transmute(&bstrdeviceidentifier), ::core::mem::transmute(&bstrxmldesc), ::core::mem::transmute(&punkdevicecontrol), ::core::mem::transmute(&bstrinitstring), ::core::mem::transmute(&bstrresourcepath), ::core::mem::transmute_copy(&nlifetime)).into() @@ -981,11 +960,11 @@ impl IUPnPReregistrar_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IUPnPService_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn QueryStateVariable(&self, bstrvariablename: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn InvokeAction(&self, bstractionname: &super::super::super::Foundation::BSTR, vinactionargs: &super::super::super::System::Com::VARIANT, pvoutactionargs: *mut super::super::super::System::Com::VARIANT, pvretval: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn ServiceTypeIdentifier(&self) -> ::windows::core::Result; + fn QueryStateVariable(&self, bstrvariablename: &::windows::core::BSTR) -> ::windows::core::Result; + fn InvokeAction(&self, bstractionname: &::windows::core::BSTR, vinactionargs: &super::super::super::System::Com::VARIANT, pvoutactionargs: *mut super::super::super::System::Com::VARIANT, pvretval: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn ServiceTypeIdentifier(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn AddCallback(&self, punkcallback: &::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result<()>; - fn Id(&self) -> ::windows::core::Result; + fn Id(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn LastTransportStatus(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -993,7 +972,7 @@ impl ::windows::core::RuntimeName for IUPnPService {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IUPnPService_Vtbl { pub const fn new, Impl: IUPnPService_Impl, const OFFSET: isize>() -> IUPnPService_Vtbl { - unsafe extern "system" fn QueryStateVariable, Impl: IUPnPService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrvariablename: ::core::mem::ManuallyDrop, pvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn QueryStateVariable, Impl: IUPnPService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrvariablename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.QueryStateVariable(::core::mem::transmute(&bstrvariablename)) { @@ -1004,12 +983,12 @@ impl IUPnPService_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn InvokeAction, Impl: IUPnPService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstractionname: ::core::mem::ManuallyDrop, vinactionargs: ::core::mem::ManuallyDrop, pvoutactionargs: *mut super::super::super::System::Com::VARIANT, pvretval: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn InvokeAction, Impl: IUPnPService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstractionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, vinactionargs: ::core::mem::ManuallyDrop, pvoutactionargs: *mut super::super::super::System::Com::VARIANT, pvretval: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InvokeAction(::core::mem::transmute(&bstractionname), ::core::mem::transmute(&vinactionargs), ::core::mem::transmute_copy(&pvoutactionargs), ::core::mem::transmute_copy(&pvretval)).into() } - unsafe extern "system" fn ServiceTypeIdentifier, Impl: IUPnPService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ServiceTypeIdentifier, Impl: IUPnPService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ServiceTypeIdentifier() { @@ -1025,7 +1004,7 @@ impl IUPnPService_Vtbl { let this = (*this).get_impl(); this.AddCallback(::core::mem::transmute(&punkcallback)).into() } - unsafe extern "system" fn Id, Impl: IUPnPService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Id, Impl: IUPnPService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Id() { @@ -1063,14 +1042,14 @@ impl IUPnPService_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IUPnPServiceAsync_Impl: Sized { - fn BeginInvokeAction(&self, bstractionname: &super::super::super::Foundation::BSTR, vinactionargs: &super::super::super::System::Com::VARIANT, pasyncresult: &::core::option::Option) -> ::windows::core::Result; + fn BeginInvokeAction(&self, bstractionname: &::windows::core::BSTR, vinactionargs: &super::super::super::System::Com::VARIANT, pasyncresult: &::core::option::Option) -> ::windows::core::Result; fn EndInvokeAction(&self, ullrequestid: u64, pvoutactionargs: *mut super::super::super::System::Com::VARIANT, pvretval: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn BeginQueryStateVariable(&self, bstrvariablename: &super::super::super::Foundation::BSTR, pasyncresult: &::core::option::Option) -> ::windows::core::Result; + fn BeginQueryStateVariable(&self, bstrvariablename: &::windows::core::BSTR, pasyncresult: &::core::option::Option) -> ::windows::core::Result; fn EndQueryStateVariable(&self, ullrequestid: u64, pvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn BeginSubscribeToEvents(&self, punkcallback: &::core::option::Option<::windows::core::IUnknown>, pasyncresult: &::core::option::Option) -> ::windows::core::Result; fn EndSubscribeToEvents(&self, ullrequestid: u64) -> ::windows::core::Result<()>; fn BeginSCPDDownload(&self, pasyncresult: &::core::option::Option) -> ::windows::core::Result; - fn EndSCPDDownload(&self, ullrequestid: u64) -> ::windows::core::Result; + fn EndSCPDDownload(&self, ullrequestid: u64) -> ::windows::core::Result<::windows::core::BSTR>; fn CancelAsyncOperation(&self, ullrequestid: u64) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -1078,7 +1057,7 @@ impl ::windows::core::RuntimeName for IUPnPServiceAsync {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IUPnPServiceAsync_Vtbl { pub const fn new, Impl: IUPnPServiceAsync_Impl, const OFFSET: isize>() -> IUPnPServiceAsync_Vtbl { - unsafe extern "system" fn BeginInvokeAction, Impl: IUPnPServiceAsync_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstractionname: ::core::mem::ManuallyDrop, vinactionargs: ::core::mem::ManuallyDrop, pasyncresult: *mut ::core::ffi::c_void, pullrequestid: *mut u64) -> ::windows::core::HRESULT { + unsafe extern "system" fn BeginInvokeAction, Impl: IUPnPServiceAsync_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstractionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, vinactionargs: ::core::mem::ManuallyDrop, pasyncresult: *mut ::core::ffi::c_void, pullrequestid: *mut u64) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginInvokeAction(::core::mem::transmute(&bstractionname), ::core::mem::transmute(&vinactionargs), ::core::mem::transmute(&pasyncresult)) { @@ -1094,7 +1073,7 @@ impl IUPnPServiceAsync_Vtbl { let this = (*this).get_impl(); this.EndInvokeAction(::core::mem::transmute_copy(&ullrequestid), ::core::mem::transmute_copy(&pvoutactionargs), ::core::mem::transmute_copy(&pvretval)).into() } - unsafe extern "system" fn BeginQueryStateVariable, Impl: IUPnPServiceAsync_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrvariablename: ::core::mem::ManuallyDrop, pasyncresult: *mut ::core::ffi::c_void, pullrequestid: *mut u64) -> ::windows::core::HRESULT { + unsafe extern "system" fn BeginQueryStateVariable, Impl: IUPnPServiceAsync_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrvariablename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pasyncresult: *mut ::core::ffi::c_void, pullrequestid: *mut u64) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginQueryStateVariable(::core::mem::transmute(&bstrvariablename), ::core::mem::transmute(&pasyncresult)) { @@ -1137,7 +1116,7 @@ impl IUPnPServiceAsync_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn EndSCPDDownload, Impl: IUPnPServiceAsync_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ullrequestid: u64, pbstrscpddoc: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn EndSCPDDownload, Impl: IUPnPServiceAsync_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ullrequestid: u64, pbstrscpddoc: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EndSCPDDownload(::core::mem::transmute_copy(&ullrequestid)) { @@ -1200,17 +1179,14 @@ impl IUPnPServiceCallback_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IUPnPServiceDocumentAccess_Impl: Sized { - fn GetDocumentURL(&self) -> ::windows::core::Result; - fn GetDocument(&self) -> ::windows::core::Result; + fn GetDocumentURL(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetDocument(&self) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IUPnPServiceDocumentAccess {} -#[cfg(feature = "Win32_Foundation")] impl IUPnPServiceDocumentAccess_Vtbl { pub const fn new, Impl: IUPnPServiceDocumentAccess_Impl, const OFFSET: isize>() -> IUPnPServiceDocumentAccess_Vtbl { - unsafe extern "system" fn GetDocumentURL, Impl: IUPnPServiceDocumentAccess_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdocurl: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDocumentURL, Impl: IUPnPServiceDocumentAccess_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdocurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDocumentURL() { @@ -1221,7 +1197,7 @@ impl IUPnPServiceDocumentAccess_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetDocument, Impl: IUPnPServiceDocumentAccess_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdoc: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDocument, Impl: IUPnPServiceDocumentAccess_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdoc: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDocument() { @@ -1263,7 +1239,7 @@ impl IUPnPServiceEnumProperty_Vtbl { pub trait IUPnPServices_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { fn Count(&self) -> ::windows::core::Result; fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; - fn get_Item(&self, bstrserviceid: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; + fn get_Item(&self, bstrserviceid: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IUPnPServices {} @@ -1292,7 +1268,7 @@ impl IUPnPServices_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_Item, Impl: IUPnPServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrserviceid: ::core::mem::ManuallyDrop, ppservice: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Item, Impl: IUPnPServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrserviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppservice: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_Item(::core::mem::transmute(&bstrserviceid)) { diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Enumeration/Pnp/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/Enumeration/Pnp/mod.rs index 8200606f6e..89468558dd 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Enumeration/Pnp/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Enumeration/Pnp/mod.rs @@ -230,22 +230,14 @@ impl IUPnPDescriptionDocument { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ReadyState)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Load<'a, P0>(&self, bstrurl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Load)(::windows::core::Interface::as_raw(self), bstrurl.into().abi()).ok() + pub unsafe fn Load(&self, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Load)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrurl)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LoadAsync<'a, P0, P1>(&self, bstrurl: P0, punkcallback: P1) -> ::windows::core::Result<()> + pub unsafe fn LoadAsync<'a, P0>(&self, bstrurl: &::windows::core::BSTR, punkcallback: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, { - (::windows::core::Interface::vtable(self).LoadAsync)(::windows::core::Interface::as_raw(self), bstrurl.into().abi(), punkcallback.into().abi()).ok() + (::windows::core::Interface::vtable(self).LoadAsync)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrurl), punkcallback.into().abi()).ok() } pub unsafe fn LoadResult(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -260,14 +252,11 @@ impl IUPnPDescriptionDocument { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).RootDevice)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn DeviceByUDN<'a, P0>(&self, bstrudn: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn DeviceByUDN(&self, bstrudn: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DeviceByUDN)(::windows::core::Interface::as_raw(self), bstrudn.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DeviceByUDN)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrudn), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -337,23 +326,17 @@ unsafe impl ::windows::core::Interface for IUPnPDescriptionDocument { pub struct IUPnPDescriptionDocument_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, pub ReadyState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plreadystate: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Load: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Load: usize, - #[cfg(feature = "Win32_Foundation")] - pub LoadAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop, punkcallback: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LoadAsync: usize, + pub Load: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub LoadAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, punkcallback: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub LoadResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phrerror: *mut i32) -> ::windows::core::HRESULT, pub Abort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub RootDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppudrootdevice: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] RootDevice: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub DeviceByUDN: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrudn: ::core::mem::ManuallyDrop, ppuddevice: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub DeviceByUDN: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrudn: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppuddevice: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] DeviceByUDN: usize, } #[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] @@ -437,86 +420,57 @@ impl IUPnPDevice { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Children)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UniqueDeviceName(&self) -> ::windows::core::Result { + pub unsafe fn UniqueDeviceName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UniqueDeviceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UniqueDeviceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FriendlyName(&self) -> ::windows::core::Result { + pub unsafe fn FriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Type(&self) -> ::windows::core::Result { + pub unsafe fn Type(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PresentationURL(&self) -> ::windows::core::Result { + pub unsafe fn PresentationURL(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PresentationURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PresentationURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ManufacturerName(&self) -> ::windows::core::Result { + pub unsafe fn ManufacturerName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ManufacturerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ManufacturerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ManufacturerURL(&self) -> ::windows::core::Result { + pub unsafe fn ManufacturerURL(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ManufacturerURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ManufacturerURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ModelName(&self) -> ::windows::core::Result { + pub unsafe fn ModelName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ModelName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ModelName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ModelNumber(&self) -> ::windows::core::Result { + pub unsafe fn ModelNumber(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ModelNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ModelNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ModelURL(&self) -> ::windows::core::Result { + pub unsafe fn ModelURL(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ModelURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ModelURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UPC(&self) -> ::windows::core::Result { + pub unsafe fn UPC(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UPC)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UPC)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SerialNumber(&self) -> ::windows::core::Result { + pub unsafe fn SerialNumber(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SerialNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SerialNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IconURL<'a, P0>(&self, bstrencodingformat: P0, lsizex: i32, lsizey: i32, lbitdepth: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn IconURL(&self, bstrencodingformat: &::windows::core::BSTR, lsizex: i32, lsizey: i32, lbitdepth: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).IconURL)(::windows::core::Interface::as_raw(self), bstrencodingformat.into().abi(), lsizex, lsizey, lbitdepth, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).IconURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrencodingformat), lsizex, lsizey, lbitdepth, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -605,58 +559,19 @@ pub struct IUPnPDevice_Vtbl { pub Children: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppudchildren: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Children: usize, - #[cfg(feature = "Win32_Foundation")] - pub UniqueDeviceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UniqueDeviceName: usize, - #[cfg(feature = "Win32_Foundation")] - pub FriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FriendlyName: usize, - #[cfg(feature = "Win32_Foundation")] - pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Type: usize, - #[cfg(feature = "Win32_Foundation")] - pub PresentationURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PresentationURL: usize, - #[cfg(feature = "Win32_Foundation")] - pub ManufacturerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ManufacturerName: usize, - #[cfg(feature = "Win32_Foundation")] - pub ManufacturerURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ManufacturerURL: usize, - #[cfg(feature = "Win32_Foundation")] - pub ModelName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ModelName: usize, - #[cfg(feature = "Win32_Foundation")] - pub ModelNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ModelNumber: usize, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub ModelURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ModelURL: usize, - #[cfg(feature = "Win32_Foundation")] - pub UPC: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UPC: usize, - #[cfg(feature = "Win32_Foundation")] - pub SerialNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SerialNumber: usize, - #[cfg(feature = "Win32_Foundation")] - pub IconURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrencodingformat: ::core::mem::ManuallyDrop, lsizex: i32, lsizey: i32, lbitdepth: i32, pbstriconurl: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - IconURL: usize, + pub UniqueDeviceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub PresentationURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ManufacturerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ManufacturerURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ModelName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ModelNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ModelURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub UPC: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SerialNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub IconURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrencodingformat: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lsizex: i32, lsizey: i32, lbitdepth: i32, pbstriconurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Services: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppusservices: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -666,25 +581,14 @@ pub struct IUPnPDevice_Vtbl { #[repr(transparent)] pub struct IUPnPDeviceControl(::windows::core::IUnknown); impl IUPnPDeviceControl { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Initialize<'a, P0, P1, P2>(&self, bstrxmldesc: P0, bstrdeviceidentifier: P1, bstrinitstring: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), bstrxmldesc.into().abi(), bstrdeviceidentifier.into().abi(), bstrinitstring.into().abi()).ok() + pub unsafe fn Initialize(&self, bstrxmldesc: &::windows::core::BSTR, bstrdeviceidentifier: &::windows::core::BSTR, bstrinitstring: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrxmldesc), ::core::mem::transmute_copy(bstrdeviceidentifier), ::core::mem::transmute_copy(bstrinitstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetServiceObject<'a, P0, P1>(&self, bstrudn: P0, bstrserviceid: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetServiceObject(&self, bstrudn: &::windows::core::BSTR, bstrserviceid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetServiceObject)(::windows::core::Interface::as_raw(self), bstrudn.into().abi(), bstrserviceid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetServiceObject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrudn), ::core::mem::transmute_copy(bstrserviceid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -726,24 +630,19 @@ unsafe impl ::windows::core::Interface for IUPnPDeviceControl { #[doc(hidden)] pub struct IUPnPDeviceControl_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrxmldesc: ::core::mem::ManuallyDrop, bstrdeviceidentifier: ::core::mem::ManuallyDrop, bstrinitstring: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Initialize: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetServiceObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrudn: ::core::mem::ManuallyDrop, bstrserviceid: ::core::mem::ManuallyDrop, ppdispservice: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrxmldesc: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdeviceidentifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrinitstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub GetServiceObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrudn: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrserviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppdispservice: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetServiceObject: usize, } #[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] #[repr(transparent)] pub struct IUPnPDeviceControlHttpHeaders(::windows::core::IUnknown); impl IUPnPDeviceControlHttpHeaders { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetAdditionalResponseHeaders(&self) -> ::windows::core::Result { + pub unsafe fn GetAdditionalResponseHeaders(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetAdditionalResponseHeaders)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetAdditionalResponseHeaders)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -785,20 +684,15 @@ unsafe impl ::windows::core::Interface for IUPnPDeviceControlHttpHeaders { #[doc(hidden)] pub struct IUPnPDeviceControlHttpHeaders_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetAdditionalResponseHeaders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrhttpresponseheaders: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetAdditionalResponseHeaders: usize, + pub GetAdditionalResponseHeaders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrhttpresponseheaders: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] #[repr(transparent)] pub struct IUPnPDeviceDocumentAccess(::windows::core::IUnknown); impl IUPnPDeviceDocumentAccess { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDocumentURL(&self) -> ::windows::core::Result { + pub unsafe fn GetDocumentURL(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDocumentURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDocumentURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -840,20 +734,15 @@ unsafe impl ::windows::core::Interface for IUPnPDeviceDocumentAccess { #[doc(hidden)] pub struct IUPnPDeviceDocumentAccess_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetDocumentURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdocument: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDocumentURL: usize, + pub GetDocumentURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdocument: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] #[repr(transparent)] pub struct IUPnPDeviceDocumentAccessEx(::windows::core::IUnknown); impl IUPnPDeviceDocumentAccessEx { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDocument(&self) -> ::windows::core::Result { + pub unsafe fn GetDocument(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDocument)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDocument)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -895,10 +784,7 @@ unsafe impl ::windows::core::Interface for IUPnPDeviceDocumentAccessEx { #[doc(hidden)] pub struct IUPnPDeviceDocumentAccessEx_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetDocument: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdocument: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDocument: usize, + pub GetDocument: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdocument: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -906,24 +792,18 @@ pub struct IUPnPDeviceDocumentAccessEx_Vtbl { pub struct IUPnPDeviceFinder(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IUPnPDeviceFinder { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn FindByType<'a, P0>(&self, bstrtypeuri: P0, dwflags: u32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn FindByType(&self, bstrtypeuri: &::windows::core::BSTR, dwflags: u32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FindByType)(::windows::core::Interface::as_raw(self), bstrtypeuri.into().abi(), dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FindByType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtypeuri), dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateAsyncFind<'a, P0, P1>(&self, bstrtypeuri: P0, dwflags: u32, punkdevicefindercallback: P1) -> ::windows::core::Result + pub unsafe fn CreateAsyncFind<'a, P0>(&self, bstrtypeuri: &::windows::core::BSTR, dwflags: u32, punkdevicefindercallback: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateAsyncFind)(::windows::core::Interface::as_raw(self), bstrtypeuri.into().abi(), dwflags, punkdevicefindercallback.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateAsyncFind)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtypeuri), dwflags, punkdevicefindercallback.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn StartAsyncFind(&self, lfinddata: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).StartAsyncFind)(::windows::core::Interface::as_raw(self), lfinddata).ok() @@ -931,14 +811,11 @@ impl IUPnPDeviceFinder { pub unsafe fn CancelAsyncFind(&self, lfinddata: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).CancelAsyncFind)(::windows::core::Interface::as_raw(self), lfinddata).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn FindByUDN<'a, P0>(&self, bstrudn: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn FindByUDN(&self, bstrudn: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FindByUDN)(::windows::core::Interface::as_raw(self), bstrudn.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FindByUDN)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrudn), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1007,19 +884,16 @@ unsafe impl ::windows::core::Interface for IUPnPDeviceFinder { #[doc(hidden)] pub struct IUPnPDeviceFinder_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub FindByType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtypeuri: ::core::mem::ManuallyDrop, dwflags: u32, pdevices: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub FindByType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtypeuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwflags: u32, pdevices: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] FindByType: usize, - #[cfg(feature = "Win32_Foundation")] - pub CreateAsyncFind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtypeuri: ::core::mem::ManuallyDrop, dwflags: u32, punkdevicefindercallback: *mut ::core::ffi::c_void, plfinddata: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CreateAsyncFind: usize, + pub CreateAsyncFind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtypeuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwflags: u32, punkdevicefindercallback: *mut ::core::ffi::c_void, plfinddata: *mut i32) -> ::windows::core::HRESULT, pub StartAsyncFind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lfinddata: i32) -> ::windows::core::HRESULT, pub CancelAsyncFind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lfinddata: i32) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub FindByUDN: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrudn: ::core::mem::ManuallyDrop, pdevice: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub FindByUDN: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrudn: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdevice: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] FindByUDN: usize, } #[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] @@ -1091,13 +965,8 @@ impl IUPnPDeviceFinderCallback { { (::windows::core::Interface::vtable(self).DeviceAdded)(::windows::core::Interface::as_raw(self), lfinddata, pdevice.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeviceRemoved<'a, P0>(&self, lfinddata: i32, bstrudn: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DeviceRemoved)(::windows::core::Interface::as_raw(self), lfinddata, bstrudn.into().abi()).ok() + pub unsafe fn DeviceRemoved(&self, lfinddata: i32, bstrudn: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DeviceRemoved)(::windows::core::Interface::as_raw(self), lfinddata, ::core::mem::transmute_copy(bstrudn)).ok() } pub unsafe fn SearchComplete(&self, lfinddata: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SearchComplete)(::windows::core::Interface::as_raw(self), lfinddata).ok() @@ -1146,23 +1015,15 @@ pub struct IUPnPDeviceFinderCallback_Vtbl { pub DeviceAdded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lfinddata: i32, pdevice: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] DeviceAdded: usize, - #[cfg(feature = "Win32_Foundation")] - pub DeviceRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lfinddata: i32, bstrudn: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeviceRemoved: usize, + pub DeviceRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lfinddata: i32, bstrudn: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SearchComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lfinddata: i32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] #[repr(transparent)] pub struct IUPnPDeviceProvider(::windows::core::IUnknown); impl IUPnPDeviceProvider { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Start<'a, P0>(&self, bstrinitstring: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Start)(::windows::core::Interface::as_raw(self), bstrinitstring.into().abi()).ok() + pub unsafe fn Start(&self, bstrinitstring: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Start)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrinitstring)).ok() } pub unsafe fn Stop(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Stop)(::windows::core::Interface::as_raw(self)).ok() @@ -1207,10 +1068,7 @@ unsafe impl ::windows::core::Interface for IUPnPDeviceProvider { #[doc(hidden)] pub struct IUPnPDeviceProvider_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinitstring: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Start: usize, + pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinitstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`, `\"Win32_System_Com\"`*"] @@ -1227,14 +1085,11 @@ impl IUPnPDevices { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self)._NewEnum)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn get_Item<'a, P0>(&self, bstrudn: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn get_Item(&self, bstrudn: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), bstrudn.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrudn), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1305,9 +1160,9 @@ pub struct IUPnPDevices_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut i32) -> ::windows::core::HRESULT, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrudn: ::core::mem::ManuallyDrop, ppdevice: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrudn: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppdevice: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] get_Item: usize, } #[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] @@ -1434,13 +1289,8 @@ pub struct IUPnPEventSource_Vtbl { #[repr(transparent)] pub struct IUPnPHttpHeaderControl(::windows::core::IUnknown); impl IUPnPHttpHeaderControl { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddRequestHeaders<'a, P0>(&self, bstrhttpheaders: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AddRequestHeaders)(::windows::core::Interface::as_raw(self), bstrhttpheaders.into().abi()).ok() + pub unsafe fn AddRequestHeaders(&self, bstrhttpheaders: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AddRequestHeaders)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrhttpheaders)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -1482,77 +1332,40 @@ unsafe impl ::windows::core::Interface for IUPnPHttpHeaderControl { #[doc(hidden)] pub struct IUPnPHttpHeaderControl_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub AddRequestHeaders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrhttpheaders: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddRequestHeaders: usize, + pub AddRequestHeaders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrhttpheaders: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] #[repr(transparent)] pub struct IUPnPRegistrar(::windows::core::IUnknown); impl IUPnPRegistrar { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RegisterDevice<'a, P0, P1, P2, P3, P4>(&self, bstrxmldesc: P0, bstrprogiddevicecontrolclass: P1, bstrinitstring: P2, bstrcontainerid: P3, bstrresourcepath: P4, nlifetime: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn RegisterDevice(&self, bstrxmldesc: &::windows::core::BSTR, bstrprogiddevicecontrolclass: &::windows::core::BSTR, bstrinitstring: &::windows::core::BSTR, bstrcontainerid: &::windows::core::BSTR, bstrresourcepath: &::windows::core::BSTR, nlifetime: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RegisterDevice)(::windows::core::Interface::as_raw(self), bstrxmldesc.into().abi(), bstrprogiddevicecontrolclass.into().abi(), bstrinitstring.into().abi(), bstrcontainerid.into().abi(), bstrresourcepath.into().abi(), nlifetime, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RegisterDevice)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrxmldesc), ::core::mem::transmute_copy(bstrprogiddevicecontrolclass), ::core::mem::transmute_copy(bstrinitstring), ::core::mem::transmute_copy(bstrcontainerid), ::core::mem::transmute_copy(bstrresourcepath), nlifetime, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RegisterRunningDevice<'a, P0, P1, P2, P3>(&self, bstrxmldesc: P0, punkdevicecontrol: P1, bstrinitstring: P2, bstrresourcepath: P3, nlifetime: i32) -> ::windows::core::Result + pub unsafe fn RegisterRunningDevice<'a, P0>(&self, bstrxmldesc: &::windows::core::BSTR, punkdevicecontrol: P0, bstrinitstring: &::windows::core::BSTR, bstrresourcepath: &::windows::core::BSTR, nlifetime: i32) -> ::windows::core::Result<::windows::core::BSTR> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RegisterRunningDevice)(::windows::core::Interface::as_raw(self), bstrxmldesc.into().abi(), punkdevicecontrol.into().abi(), bstrinitstring.into().abi(), bstrresourcepath.into().abi(), nlifetime, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RegisterRunningDevice)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrxmldesc), punkdevicecontrol.into().abi(), ::core::mem::transmute_copy(bstrinitstring), ::core::mem::transmute_copy(bstrresourcepath), nlifetime, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RegisterDeviceProvider<'a, P0, P1, P2, P3>(&self, bstrprovidername: P0, bstrprogidproviderclass: P1, bstrinitstring: P2, bstrcontainerid: P3) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).RegisterDeviceProvider)(::windows::core::Interface::as_raw(self), bstrprovidername.into().abi(), bstrprogidproviderclass.into().abi(), bstrinitstring.into().abi(), bstrcontainerid.into().abi()).ok() + pub unsafe fn RegisterDeviceProvider(&self, bstrprovidername: &::windows::core::BSTR, bstrprogidproviderclass: &::windows::core::BSTR, bstrinitstring: &::windows::core::BSTR, bstrcontainerid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).RegisterDeviceProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprovidername), ::core::mem::transmute_copy(bstrprogidproviderclass), ::core::mem::transmute_copy(bstrinitstring), ::core::mem::transmute_copy(bstrcontainerid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetUniqueDeviceName<'a, P0, P1>(&self, bstrdeviceidentifier: P0, bstrtemplateudn: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetUniqueDeviceName(&self, bstrdeviceidentifier: &::windows::core::BSTR, bstrtemplateudn: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetUniqueDeviceName)(::windows::core::Interface::as_raw(self), bstrdeviceidentifier.into().abi(), bstrtemplateudn.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetUniqueDeviceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdeviceidentifier), ::core::mem::transmute_copy(bstrtemplateudn), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UnregisterDevice<'a, P0, P1>(&self, bstrdeviceidentifier: P0, fpermanent: P1) -> ::windows::core::Result<()> + pub unsafe fn UnregisterDevice<'a, P0>(&self, bstrdeviceidentifier: &::windows::core::BSTR, fpermanent: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into, + P0: ::std::convert::Into, { - (::windows::core::Interface::vtable(self).UnregisterDevice)(::windows::core::Interface::as_raw(self), bstrdeviceidentifier.into().abi(), fpermanent.into()).ok() + (::windows::core::Interface::vtable(self).UnregisterDevice)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdeviceidentifier), fpermanent.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UnregisterDeviceProvider<'a, P0>(&self, bstrprovidername: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).UnregisterDeviceProvider)(::windows::core::Interface::as_raw(self), bstrprovidername.into().abi()).ok() + pub unsafe fn UnregisterDeviceProvider(&self, bstrprovidername: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).UnregisterDeviceProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprovidername)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -1594,61 +1407,31 @@ unsafe impl ::windows::core::Interface for IUPnPRegistrar { #[doc(hidden)] pub struct IUPnPRegistrar_Vtbl { pub base__: ::windows::core::IUnknownVtbl, + pub RegisterDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrxmldesc: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrprogiddevicecontrolclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrinitstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrcontainerid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrresourcepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, nlifetime: i32, pbstrdeviceidentifier: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub RegisterRunningDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrxmldesc: ::core::mem::ManuallyDrop<::windows::core::BSTR>, punkdevicecontrol: *mut ::core::ffi::c_void, bstrinitstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrresourcepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, nlifetime: i32, pbstrdeviceidentifier: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub RegisterDeviceProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprovidername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrprogidproviderclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrinitstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrcontainerid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetUniqueDeviceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdeviceidentifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrtemplateudn: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrudn: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub RegisterDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrxmldesc: ::core::mem::ManuallyDrop, bstrprogiddevicecontrolclass: ::core::mem::ManuallyDrop, bstrinitstring: ::core::mem::ManuallyDrop, bstrcontainerid: ::core::mem::ManuallyDrop, bstrresourcepath: ::core::mem::ManuallyDrop, nlifetime: i32, pbstrdeviceidentifier: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RegisterDevice: usize, - #[cfg(feature = "Win32_Foundation")] - pub RegisterRunningDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrxmldesc: ::core::mem::ManuallyDrop, punkdevicecontrol: *mut ::core::ffi::c_void, bstrinitstring: ::core::mem::ManuallyDrop, bstrresourcepath: ::core::mem::ManuallyDrop, nlifetime: i32, pbstrdeviceidentifier: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RegisterRunningDevice: usize, - #[cfg(feature = "Win32_Foundation")] - pub RegisterDeviceProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprovidername: ::core::mem::ManuallyDrop, bstrprogidproviderclass: ::core::mem::ManuallyDrop, bstrinitstring: ::core::mem::ManuallyDrop, bstrcontainerid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RegisterDeviceProvider: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetUniqueDeviceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdeviceidentifier: ::core::mem::ManuallyDrop, bstrtemplateudn: ::core::mem::ManuallyDrop, pbstrudn: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetUniqueDeviceName: usize, - #[cfg(feature = "Win32_Foundation")] - pub UnregisterDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdeviceidentifier: ::core::mem::ManuallyDrop, fpermanent: super::super::super::Foundation::BOOL) -> ::windows::core::HRESULT, + pub UnregisterDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdeviceidentifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fpermanent: super::super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] UnregisterDevice: usize, - #[cfg(feature = "Win32_Foundation")] - pub UnregisterDeviceProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprovidername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UnregisterDeviceProvider: usize, + pub UnregisterDeviceProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprovidername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] #[repr(transparent)] pub struct IUPnPRemoteEndpointInfo(::windows::core::IUnknown); impl IUPnPRemoteEndpointInfo { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDwordValue<'a, P0>(&self, bstrvaluename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetDwordValue(&self, bstrvaluename: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDwordValue)(::windows::core::Interface::as_raw(self), bstrvaluename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDwordValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrvaluename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetStringValue<'a, P0>(&self, bstrvaluename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetStringValue(&self, bstrvaluename: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetStringValue)(::windows::core::Interface::as_raw(self), bstrvaluename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetStringValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrvaluename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetGuidValue<'a, P0>(&self, bstrvaluename: P0) -> ::windows::core::Result<::windows::core::GUID> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetGuidValue(&self, bstrvaluename: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetGuidValue)(::windows::core::Interface::as_raw(self), bstrvaluename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) + (::windows::core::Interface::vtable(self).GetGuidValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrvaluename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -1690,47 +1473,22 @@ unsafe impl ::windows::core::Interface for IUPnPRemoteEndpointInfo { #[doc(hidden)] pub struct IUPnPRemoteEndpointInfo_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetDwordValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrvaluename: ::core::mem::ManuallyDrop, pdwvalue: *mut u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDwordValue: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetStringValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrvaluename: ::core::mem::ManuallyDrop, pbstrvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetStringValue: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetGuidValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrvaluename: ::core::mem::ManuallyDrop, pguidvalue: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetGuidValue: usize, + pub GetDwordValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrvaluename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwvalue: *mut u32) -> ::windows::core::HRESULT, + pub GetStringValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrvaluename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetGuidValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrvaluename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pguidvalue: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] #[repr(transparent)] pub struct IUPnPReregistrar(::windows::core::IUnknown); impl IUPnPReregistrar { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ReregisterDevice<'a, P0, P1, P2, P3, P4, P5>(&self, bstrdeviceidentifier: P0, bstrxmldesc: P1, bstrprogiddevicecontrolclass: P2, bstrinitstring: P3, bstrcontainerid: P4, bstrresourcepath: P5, nlifetime: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P5: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ReregisterDevice)(::windows::core::Interface::as_raw(self), bstrdeviceidentifier.into().abi(), bstrxmldesc.into().abi(), bstrprogiddevicecontrolclass.into().abi(), bstrinitstring.into().abi(), bstrcontainerid.into().abi(), bstrresourcepath.into().abi(), nlifetime).ok() + pub unsafe fn ReregisterDevice(&self, bstrdeviceidentifier: &::windows::core::BSTR, bstrxmldesc: &::windows::core::BSTR, bstrprogiddevicecontrolclass: &::windows::core::BSTR, bstrinitstring: &::windows::core::BSTR, bstrcontainerid: &::windows::core::BSTR, bstrresourcepath: &::windows::core::BSTR, nlifetime: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ReregisterDevice)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdeviceidentifier), ::core::mem::transmute_copy(bstrxmldesc), ::core::mem::transmute_copy(bstrprogiddevicecontrolclass), ::core::mem::transmute_copy(bstrinitstring), ::core::mem::transmute_copy(bstrcontainerid), ::core::mem::transmute_copy(bstrresourcepath), nlifetime).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ReregisterRunningDevice<'a, P0, P1, P2, P3, P4>(&self, bstrdeviceidentifier: P0, bstrxmldesc: P1, punkdevicecontrol: P2, bstrinitstring: P3, bstrresourcepath: P4, nlifetime: i32) -> ::windows::core::Result<()> + pub unsafe fn ReregisterRunningDevice<'a, P0>(&self, bstrdeviceidentifier: &::windows::core::BSTR, bstrxmldesc: &::windows::core::BSTR, punkdevicecontrol: P0, bstrinitstring: &::windows::core::BSTR, bstrresourcepath: &::windows::core::BSTR, nlifetime: i32) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, { - (::windows::core::Interface::vtable(self).ReregisterRunningDevice)(::windows::core::Interface::as_raw(self), bstrdeviceidentifier.into().abi(), bstrxmldesc.into().abi(), punkdevicecontrol.into().abi(), bstrinitstring.into().abi(), bstrresourcepath.into().abi(), nlifetime).ok() + (::windows::core::Interface::vtable(self).ReregisterRunningDevice)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdeviceidentifier), ::core::mem::transmute_copy(bstrxmldesc), punkdevicecontrol.into().abi(), ::core::mem::transmute_copy(bstrinitstring), ::core::mem::transmute_copy(bstrresourcepath), nlifetime).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -1772,14 +1530,8 @@ unsafe impl ::windows::core::Interface for IUPnPReregistrar { #[doc(hidden)] pub struct IUPnPReregistrar_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub ReregisterDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdeviceidentifier: ::core::mem::ManuallyDrop, bstrxmldesc: ::core::mem::ManuallyDrop, bstrprogiddevicecontrolclass: ::core::mem::ManuallyDrop, bstrinitstring: ::core::mem::ManuallyDrop, bstrcontainerid: ::core::mem::ManuallyDrop, bstrresourcepath: ::core::mem::ManuallyDrop, nlifetime: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ReregisterDevice: usize, - #[cfg(feature = "Win32_Foundation")] - pub ReregisterRunningDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdeviceidentifier: ::core::mem::ManuallyDrop, bstrxmldesc: ::core::mem::ManuallyDrop, punkdevicecontrol: *mut ::core::ffi::c_void, bstrinitstring: ::core::mem::ManuallyDrop, bstrresourcepath: ::core::mem::ManuallyDrop, nlifetime: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ReregisterRunningDevice: usize, + pub ReregisterDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdeviceidentifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrxmldesc: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrprogiddevicecontrolclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrinitstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrcontainerid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrresourcepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, nlifetime: i32) -> ::windows::core::HRESULT, + pub ReregisterRunningDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdeviceidentifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrxmldesc: ::core::mem::ManuallyDrop<::windows::core::BSTR>, punkdevicecontrol: *mut ::core::ffi::c_void, bstrinitstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrresourcepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, nlifetime: i32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1789,27 +1541,21 @@ pub struct IUPnPService(::windows::core::IUnknown); impl IUPnPService { #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn QueryStateVariable<'a, P0>(&self, bstrvariablename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn QueryStateVariable(&self, bstrvariablename: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).QueryStateVariable)(::windows::core::Interface::as_raw(self), bstrvariablename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).QueryStateVariable)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrvariablename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn InvokeAction<'a, P0, P1>(&self, bstractionname: P0, vinactionargs: P1, pvoutactionargs: &mut super::super::super::System::Com::VARIANT, pvretval: &mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> + pub unsafe fn InvokeAction<'a, P0>(&self, bstractionname: &::windows::core::BSTR, vinactionargs: P0, pvoutactionargs: &mut super::super::super::System::Com::VARIANT, pvretval: &mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).InvokeAction)(::windows::core::Interface::as_raw(self), bstractionname.into().abi(), vinactionargs.into().abi(), ::core::mem::transmute(pvoutactionargs), ::core::mem::transmute(pvretval)).ok() + (::windows::core::Interface::vtable(self).InvokeAction)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstractionname), vinactionargs.into().abi(), ::core::mem::transmute(pvoutactionargs), ::core::mem::transmute(pvretval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ServiceTypeIdentifier(&self) -> ::windows::core::Result { + pub unsafe fn ServiceTypeIdentifier(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ServiceTypeIdentifier)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ServiceTypeIdentifier)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn AddCallback<'a, P0>(&self, punkcallback: P0) -> ::windows::core::Result<()> where @@ -1817,11 +1563,9 @@ impl IUPnPService { { (::windows::core::Interface::vtable(self).AddCallback)(::windows::core::Interface::as_raw(self), punkcallback.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Id(&self) -> ::windows::core::Result { + pub unsafe fn Id(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn LastTransportStatus(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1895,22 +1639,16 @@ unsafe impl ::windows::core::Interface for IUPnPService { pub struct IUPnPService_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub QueryStateVariable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrvariablename: ::core::mem::ManuallyDrop, pvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub QueryStateVariable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrvariablename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] QueryStateVariable: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub InvokeAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstractionname: ::core::mem::ManuallyDrop, vinactionargs: ::core::mem::ManuallyDrop, pvoutactionargs: *mut super::super::super::System::Com::VARIANT, pvretval: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub InvokeAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstractionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, vinactionargs: ::core::mem::ManuallyDrop, pvoutactionargs: *mut super::super::super::System::Com::VARIANT, pvretval: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] InvokeAction: usize, - #[cfg(feature = "Win32_Foundation")] - pub ServiceTypeIdentifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ServiceTypeIdentifier: usize, + pub ServiceTypeIdentifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub AddCallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkcallback: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Id: usize, + pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub LastTransportStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plvalue: *mut i32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] @@ -1919,29 +1657,25 @@ pub struct IUPnPServiceAsync(::windows::core::IUnknown); impl IUPnPServiceAsync { #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn BeginInvokeAction<'a, P0, P1, P2>(&self, bstractionname: P0, vinactionargs: P1, pasyncresult: P2) -> ::windows::core::Result + pub unsafe fn BeginInvokeAction<'a, P0, P1>(&self, bstractionname: &::windows::core::BSTR, vinactionargs: P0, pasyncresult: P1) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IUPnPAsyncResult>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, IUPnPAsyncResult>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).BeginInvokeAction)(::windows::core::Interface::as_raw(self), bstractionname.into().abi(), vinactionargs.into().abi(), pasyncresult.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).BeginInvokeAction)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstractionname), vinactionargs.into().abi(), pasyncresult.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn EndInvokeAction(&self, ullrequestid: u64, pvoutactionargs: &mut super::super::super::System::Com::VARIANT, pvretval: &mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).EndInvokeAction)(::windows::core::Interface::as_raw(self), ullrequestid, ::core::mem::transmute(pvoutactionargs), ::core::mem::transmute(pvretval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BeginQueryStateVariable<'a, P0, P1>(&self, bstrvariablename: P0, pasyncresult: P1) -> ::windows::core::Result + pub unsafe fn BeginQueryStateVariable<'a, P0>(&self, bstrvariablename: &::windows::core::BSTR, pasyncresult: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IUPnPAsyncResult>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IUPnPAsyncResult>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).BeginQueryStateVariable)(::windows::core::Interface::as_raw(self), bstrvariablename.into().abi(), pasyncresult.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).BeginQueryStateVariable)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrvariablename), pasyncresult.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -1966,11 +1700,9 @@ impl IUPnPServiceAsync { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).BeginSCPDDownload)(::windows::core::Interface::as_raw(self), pasyncresult.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EndSCPDDownload(&self, ullrequestid: u64) -> ::windows::core::Result { + pub unsafe fn EndSCPDDownload(&self, ullrequestid: u64) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).EndSCPDDownload)(::windows::core::Interface::as_raw(self), ullrequestid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).EndSCPDDownload)(::windows::core::Interface::as_raw(self), ullrequestid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CancelAsyncOperation(&self, ullrequestid: u64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).CancelAsyncOperation)(::windows::core::Interface::as_raw(self), ullrequestid).ok() @@ -2016,17 +1748,14 @@ unsafe impl ::windows::core::Interface for IUPnPServiceAsync { pub struct IUPnPServiceAsync_Vtbl { pub base__: ::windows::core::IUnknownVtbl, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub BeginInvokeAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstractionname: ::core::mem::ManuallyDrop, vinactionargs: ::core::mem::ManuallyDrop, pasyncresult: *mut ::core::ffi::c_void, pullrequestid: *mut u64) -> ::windows::core::HRESULT, + pub BeginInvokeAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstractionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, vinactionargs: ::core::mem::ManuallyDrop, pasyncresult: *mut ::core::ffi::c_void, pullrequestid: *mut u64) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] BeginInvokeAction: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub EndInvokeAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ullrequestid: u64, pvoutactionargs: *mut super::super::super::System::Com::VARIANT, pvretval: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] EndInvokeAction: usize, - #[cfg(feature = "Win32_Foundation")] - pub BeginQueryStateVariable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrvariablename: ::core::mem::ManuallyDrop, pasyncresult: *mut ::core::ffi::c_void, pullrequestid: *mut u64) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BeginQueryStateVariable: usize, + pub BeginQueryStateVariable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrvariablename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pasyncresult: *mut ::core::ffi::c_void, pullrequestid: *mut u64) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub EndQueryStateVariable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ullrequestid: u64, pvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -2034,10 +1763,7 @@ pub struct IUPnPServiceAsync_Vtbl { pub BeginSubscribeToEvents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkcallback: *mut ::core::ffi::c_void, pasyncresult: *mut ::core::ffi::c_void, pullrequestid: *mut u64) -> ::windows::core::HRESULT, pub EndSubscribeToEvents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ullrequestid: u64) -> ::windows::core::HRESULT, pub BeginSCPDDownload: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pasyncresult: *mut ::core::ffi::c_void, pullrequestid: *mut u64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub EndSCPDDownload: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ullrequestid: u64, pbstrscpddoc: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EndSCPDDownload: usize, + pub EndSCPDDownload: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ullrequestid: u64, pbstrscpddoc: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub CancelAsyncOperation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ullrequestid: u64) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] @@ -2115,17 +1841,13 @@ pub struct IUPnPServiceCallback_Vtbl { #[repr(transparent)] pub struct IUPnPServiceDocumentAccess(::windows::core::IUnknown); impl IUPnPServiceDocumentAccess { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDocumentURL(&self) -> ::windows::core::Result { + pub unsafe fn GetDocumentURL(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDocumentURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDocumentURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDocument(&self) -> ::windows::core::Result { + pub unsafe fn GetDocument(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDocument)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDocument)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -2167,14 +1889,8 @@ unsafe impl ::windows::core::Interface for IUPnPServiceDocumentAccess { #[doc(hidden)] pub struct IUPnPServiceDocumentAccess_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetDocumentURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdocurl: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDocumentURL: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetDocument: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdoc: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDocument: usize, + pub GetDocumentURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdocurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetDocument: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdoc: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] #[repr(transparent)] @@ -2239,14 +1955,11 @@ impl IUPnPServices { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self)._NewEnum)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn get_Item<'a, P0>(&self, bstrserviceid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn get_Item(&self, bstrserviceid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), bstrserviceid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrserviceid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -2317,9 +2030,9 @@ pub struct IUPnPServices_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut i32) -> ::windows::core::HRESULT, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrserviceid: ::core::mem::ManuallyDrop, ppservice: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrserviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppservice: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] get_Item: usize, } #[doc = "*Required features: `\"Win32_Devices_Enumeration_Pnp\"`*"] diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Fax/impl.rs b/crates/libs/windows/src/Windows/Win32/Devices/Fax/impl.rs index 3e16a58610..abe2083acc 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Fax/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Fax/impl.rs @@ -1,6 +1,6 @@ #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFaxAccount_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn AccountName(&self) -> ::windows::core::Result; + fn AccountName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Folders(&self) -> ::windows::core::Result; fn ListenToAccountEvents(&self, eventtypes: FAX_ACCOUNT_EVENTS_TYPE_ENUM) -> ::windows::core::Result<()>; fn RegisteredEvents(&self) -> ::windows::core::Result; @@ -10,7 +10,7 @@ impl ::windows::core::RuntimeName for IFaxAccount {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFaxAccount_Vtbl { pub const fn new, Impl: IFaxAccount_Impl, const OFFSET: isize>() -> IFaxAccount_Vtbl { - unsafe extern "system" fn AccountName, Impl: IFaxAccount_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstraccountname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn AccountName, Impl: IFaxAccount_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstraccountname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AccountName() { @@ -134,7 +134,7 @@ pub trait IFaxAccountIncomingArchive_Impl: Sized + super::super::System::Com::ID fn SizeHigh(&self) -> ::windows::core::Result; fn Refresh(&self) -> ::windows::core::Result<()>; fn GetMessages(&self, lprefetchsize: i32) -> ::windows::core::Result; - fn GetMessage(&self, bstrmessageid: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetMessage(&self, bstrmessageid: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFaxAccountIncomingArchive {} @@ -179,7 +179,7 @@ impl IFaxAccountIncomingArchive_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetMessage, Impl: IFaxAccountIncomingArchive_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop, pfaxincomingmessage: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetMessage, Impl: IFaxAccountIncomingArchive_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfaxincomingmessage: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetMessage(::core::mem::transmute(&bstrmessageid)) { @@ -206,7 +206,7 @@ impl IFaxAccountIncomingArchive_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFaxAccountIncomingQueue_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn GetJobs(&self) -> ::windows::core::Result; - fn GetJob(&self, bstrjobid: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetJob(&self, bstrjobid: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFaxAccountIncomingQueue {} @@ -224,7 +224,7 @@ impl IFaxAccountIncomingQueue_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetJob, Impl: IFaxAccountIncomingQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop, pfaxincomingjob: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetJob, Impl: IFaxAccountIncomingQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfaxincomingjob: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetJob(::core::mem::transmute(&bstrjobid)) { @@ -264,7 +264,7 @@ pub trait IFaxAccountOutgoingArchive_Impl: Sized + super::super::System::Com::ID fn SizeHigh(&self) -> ::windows::core::Result; fn Refresh(&self) -> ::windows::core::Result<()>; fn GetMessages(&self, lprefetchsize: i32) -> ::windows::core::Result; - fn GetMessage(&self, bstrmessageid: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetMessage(&self, bstrmessageid: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFaxAccountOutgoingArchive {} @@ -309,7 +309,7 @@ impl IFaxAccountOutgoingArchive_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetMessage, Impl: IFaxAccountOutgoingArchive_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop, pfaxoutgoingmessage: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetMessage, Impl: IFaxAccountOutgoingArchive_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfaxoutgoingmessage: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetMessage(::core::mem::transmute(&bstrmessageid)) { @@ -336,7 +336,7 @@ impl IFaxAccountOutgoingArchive_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFaxAccountOutgoingQueue_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn GetJobs(&self) -> ::windows::core::Result; - fn GetJob(&self, bstrjobid: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetJob(&self, bstrjobid: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFaxAccountOutgoingQueue {} @@ -354,7 +354,7 @@ impl IFaxAccountOutgoingQueue_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetJob, Impl: IFaxAccountOutgoingQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop, pfaxoutgoingjob: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetJob, Impl: IFaxAccountOutgoingQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfaxoutgoingjob: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetJob(::core::mem::transmute(&bstrjobid)) { @@ -378,9 +378,9 @@ impl IFaxAccountOutgoingQueue_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFaxAccountSet_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn GetAccounts(&self) -> ::windows::core::Result; - fn GetAccount(&self, bstraccountname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn AddAccount(&self, bstraccountname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn RemoveAccount(&self, bstraccountname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetAccount(&self, bstraccountname: &::windows::core::BSTR) -> ::windows::core::Result; + fn AddAccount(&self, bstraccountname: &::windows::core::BSTR) -> ::windows::core::Result; + fn RemoveAccount(&self, bstraccountname: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFaxAccountSet {} @@ -398,7 +398,7 @@ impl IFaxAccountSet_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetAccount, Impl: IFaxAccountSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstraccountname: ::core::mem::ManuallyDrop, pfaxaccount: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetAccount, Impl: IFaxAccountSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstraccountname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfaxaccount: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetAccount(::core::mem::transmute(&bstraccountname)) { @@ -409,7 +409,7 @@ impl IFaxAccountSet_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AddAccount, Impl: IFaxAccountSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstraccountname: ::core::mem::ManuallyDrop, pfaxaccount: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddAccount, Impl: IFaxAccountSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstraccountname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfaxaccount: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AddAccount(::core::mem::transmute(&bstraccountname)) { @@ -420,7 +420,7 @@ impl IFaxAccountSet_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RemoveAccount, Impl: IFaxAccountSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstraccountname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn RemoveAccount, Impl: IFaxAccountSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstraccountname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RemoveAccount(::core::mem::transmute(&bstraccountname)).into() @@ -573,8 +573,8 @@ pub trait IFaxActivityLogging_Impl: Sized + super::super::System::Com::IDispatch fn SetLogIncoming(&self, blogincoming: i16) -> ::windows::core::Result<()>; fn LogOutgoing(&self) -> ::windows::core::Result; fn SetLogOutgoing(&self, blogoutgoing: i16) -> ::windows::core::Result<()>; - fn DatabasePath(&self) -> ::windows::core::Result; - fn SetDatabasePath(&self, bstrdatabasepath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn DatabasePath(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDatabasePath(&self, bstrdatabasepath: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Refresh(&self) -> ::windows::core::Result<()>; fn Save(&self) -> ::windows::core::Result<()>; } @@ -615,7 +615,7 @@ impl IFaxActivityLogging_Vtbl { let this = (*this).get_impl(); this.SetLogOutgoing(::core::mem::transmute_copy(&blogoutgoing)).into() } - unsafe extern "system" fn DatabasePath, Impl: IFaxActivityLogging_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdatabasepath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DatabasePath, Impl: IFaxActivityLogging_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdatabasepath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DatabasePath() { @@ -626,7 +626,7 @@ impl IFaxActivityLogging_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDatabasePath, Impl: IFaxActivityLogging_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdatabasepath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDatabasePath, Impl: IFaxActivityLogging_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdatabasepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDatabasePath(::core::mem::transmute(&bstrdatabasepath)).into() @@ -661,8 +661,8 @@ impl IFaxActivityLogging_Vtbl { pub trait IFaxConfiguration_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn UseArchive(&self) -> ::windows::core::Result; fn SetUseArchive(&self, busearchive: i16) -> ::windows::core::Result<()>; - fn ArchiveLocation(&self) -> ::windows::core::Result; - fn SetArchiveLocation(&self, bstrarchivelocation: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ArchiveLocation(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetArchiveLocation(&self, bstrarchivelocation: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SizeQuotaWarning(&self) -> ::windows::core::Result; fn SetSizeQuotaWarning(&self, bsizequotawarning: i16) -> ::windows::core::Result<()>; fn HighQuotaWaterMark(&self) -> ::windows::core::Result; @@ -723,7 +723,7 @@ impl IFaxConfiguration_Vtbl { let this = (*this).get_impl(); this.SetUseArchive(::core::mem::transmute_copy(&busearchive)).into() } - unsafe extern "system" fn ArchiveLocation, Impl: IFaxConfiguration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrarchivelocation: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ArchiveLocation, Impl: IFaxConfiguration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrarchivelocation: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ArchiveLocation() { @@ -734,7 +734,7 @@ impl IFaxConfiguration_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetArchiveLocation, Impl: IFaxConfiguration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrarchivelocation: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetArchiveLocation, Impl: IFaxConfiguration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrarchivelocation: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetArchiveLocation(::core::mem::transmute(&bstrarchivelocation)).into() @@ -1096,29 +1096,29 @@ impl IFaxConfiguration_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFaxDevice_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn Id(&self) -> ::windows::core::Result; - fn DeviceName(&self) -> ::windows::core::Result; - fn ProviderUniqueName(&self) -> ::windows::core::Result; + fn DeviceName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ProviderUniqueName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn PoweredOff(&self) -> ::windows::core::Result; fn ReceivingNow(&self) -> ::windows::core::Result; fn SendingNow(&self) -> ::windows::core::Result; fn UsedRoutingMethods(&self) -> ::windows::core::Result; - fn Description(&self) -> ::windows::core::Result; - fn SetDescription(&self, bstrdescription: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SendEnabled(&self) -> ::windows::core::Result; fn SetSendEnabled(&self, bsendenabled: i16) -> ::windows::core::Result<()>; fn ReceiveMode(&self) -> ::windows::core::Result; fn SetReceiveMode(&self, receivemode: FAX_DEVICE_RECEIVE_MODE_ENUM) -> ::windows::core::Result<()>; fn RingsBeforeAnswer(&self) -> ::windows::core::Result; fn SetRingsBeforeAnswer(&self, lringsbeforeanswer: i32) -> ::windows::core::Result<()>; - fn CSID(&self) -> ::windows::core::Result; - fn SetCSID(&self, bstrcsid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn TSID(&self) -> ::windows::core::Result; - fn SetTSID(&self, bstrtsid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn CSID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetCSID(&self, bstrcsid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn TSID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetTSID(&self, bstrtsid: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Refresh(&self) -> ::windows::core::Result<()>; fn Save(&self) -> ::windows::core::Result<()>; - fn GetExtensionProperty(&self, bstrguid: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn SetExtensionProperty(&self, bstrguid: &super::super::Foundation::BSTR, vproperty: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn UseRoutingMethod(&self, bstrmethodguid: &super::super::Foundation::BSTR, buse: i16) -> ::windows::core::Result<()>; + fn GetExtensionProperty(&self, bstrguid: &::windows::core::BSTR) -> ::windows::core::Result; + fn SetExtensionProperty(&self, bstrguid: &::windows::core::BSTR, vproperty: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn UseRoutingMethod(&self, bstrmethodguid: &::windows::core::BSTR, buse: i16) -> ::windows::core::Result<()>; fn RingingNow(&self) -> ::windows::core::Result; fn AnswerCall(&self) -> ::windows::core::Result<()>; } @@ -1138,7 +1138,7 @@ impl IFaxDevice_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DeviceName, Impl: IFaxDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdevicename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeviceName, Impl: IFaxDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdevicename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DeviceName() { @@ -1149,7 +1149,7 @@ impl IFaxDevice_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ProviderUniqueName, Impl: IFaxDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprovideruniquename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ProviderUniqueName, Impl: IFaxDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprovideruniquename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ProviderUniqueName() { @@ -1204,7 +1204,7 @@ impl IFaxDevice_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Description, Impl: IFaxDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IFaxDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -1215,7 +1215,7 @@ impl IFaxDevice_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription, Impl: IFaxDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDescription, Impl: IFaxDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDescription(::core::mem::transmute(&bstrdescription)).into() @@ -1268,7 +1268,7 @@ impl IFaxDevice_Vtbl { let this = (*this).get_impl(); this.SetRingsBeforeAnswer(::core::mem::transmute_copy(&lringsbeforeanswer)).into() } - unsafe extern "system" fn CSID, Impl: IFaxDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CSID, Impl: IFaxDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CSID() { @@ -1279,12 +1279,12 @@ impl IFaxDevice_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetCSID, Impl: IFaxDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcsid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCSID, Impl: IFaxDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCSID(::core::mem::transmute(&bstrcsid)).into() } - unsafe extern "system" fn TSID, Impl: IFaxDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TSID, Impl: IFaxDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TSID() { @@ -1295,7 +1295,7 @@ impl IFaxDevice_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetTSID, Impl: IFaxDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtsid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetTSID, Impl: IFaxDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetTSID(::core::mem::transmute(&bstrtsid)).into() @@ -1310,7 +1310,7 @@ impl IFaxDevice_Vtbl { let this = (*this).get_impl(); this.Save().into() } - unsafe extern "system" fn GetExtensionProperty, Impl: IFaxDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrguid: ::core::mem::ManuallyDrop, pvproperty: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetExtensionProperty, Impl: IFaxDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvproperty: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetExtensionProperty(::core::mem::transmute(&bstrguid)) { @@ -1321,12 +1321,12 @@ impl IFaxDevice_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetExtensionProperty, Impl: IFaxDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrguid: ::core::mem::ManuallyDrop, vproperty: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetExtensionProperty, Impl: IFaxDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, vproperty: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetExtensionProperty(::core::mem::transmute(&bstrguid), ::core::mem::transmute(&vproperty)).into() } - unsafe extern "system" fn UseRoutingMethod, Impl: IFaxDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmethodguid: ::core::mem::ManuallyDrop, buse: i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn UseRoutingMethod, Impl: IFaxDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmethodguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, buse: i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.UseRoutingMethod(::core::mem::transmute(&bstrmethodguid), ::core::mem::transmute_copy(&buse)).into() @@ -1459,10 +1459,10 @@ impl IFaxDeviceIds_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFaxDeviceProvider_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn FriendlyName(&self) -> ::windows::core::Result; - fn ImageName(&self) -> ::windows::core::Result; - fn UniqueName(&self) -> ::windows::core::Result; - fn TapiProviderName(&self) -> ::windows::core::Result; + fn FriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ImageName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn UniqueName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn TapiProviderName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn MajorVersion(&self) -> ::windows::core::Result; fn MinorVersion(&self) -> ::windows::core::Result; fn MajorBuild(&self) -> ::windows::core::Result; @@ -1477,7 +1477,7 @@ impl ::windows::core::RuntimeName for IFaxDeviceProvider {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFaxDeviceProvider_Vtbl { pub const fn new, Impl: IFaxDeviceProvider_Impl, const OFFSET: isize>() -> IFaxDeviceProvider_Vtbl { - unsafe extern "system" fn FriendlyName, Impl: IFaxDeviceProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfriendlyname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FriendlyName, Impl: IFaxDeviceProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfriendlyname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FriendlyName() { @@ -1488,7 +1488,7 @@ impl IFaxDeviceProvider_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ImageName, Impl: IFaxDeviceProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrimagename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ImageName, Impl: IFaxDeviceProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrimagename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ImageName() { @@ -1499,7 +1499,7 @@ impl IFaxDeviceProvider_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn UniqueName, Impl: IFaxDeviceProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstruniquename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UniqueName, Impl: IFaxDeviceProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstruniquename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UniqueName() { @@ -1510,7 +1510,7 @@ impl IFaxDeviceProvider_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn TapiProviderName, Impl: IFaxDeviceProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtapiprovidername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TapiProviderName, Impl: IFaxDeviceProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtapiprovidername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TapiProviderName() { @@ -1754,22 +1754,22 @@ impl IFaxDevices_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFaxDocument_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Body(&self) -> ::windows::core::Result; - fn SetBody(&self, bstrbody: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Body(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetBody(&self, bstrbody: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Sender(&self) -> ::windows::core::Result; fn Recipients(&self) -> ::windows::core::Result; - fn CoverPage(&self) -> ::windows::core::Result; - fn SetCoverPage(&self, bstrcoverpage: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Subject(&self) -> ::windows::core::Result; - fn SetSubject(&self, bstrsubject: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Note(&self) -> ::windows::core::Result; - fn SetNote(&self, bstrnote: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn CoverPage(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetCoverPage(&self, bstrcoverpage: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Subject(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetSubject(&self, bstrsubject: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Note(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetNote(&self, bstrnote: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn ScheduleTime(&self) -> ::windows::core::Result; fn SetScheduleTime(&self, datescheduletime: f64) -> ::windows::core::Result<()>; - fn ReceiptAddress(&self) -> ::windows::core::Result; - fn SetReceiptAddress(&self, bstrreceiptaddress: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn DocumentName(&self) -> ::windows::core::Result; - fn SetDocumentName(&self, bstrdocumentname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ReceiptAddress(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetReceiptAddress(&self, bstrreceiptaddress: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn DocumentName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDocumentName(&self, bstrdocumentname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn CallHandle(&self) -> ::windows::core::Result; fn SetCallHandle(&self, lcallhandle: i32) -> ::windows::core::Result<()>; fn CoverPageType(&self) -> ::windows::core::Result; @@ -1784,7 +1784,7 @@ pub trait IFaxDocument_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn SetPriority(&self, priority: FAX_PRIORITY_TYPE_ENUM) -> ::windows::core::Result<()>; fn TapiConnection(&self) -> ::windows::core::Result; fn putref_TapiConnection(&self, ptapiconnection: &::core::option::Option) -> ::windows::core::Result<()>; - fn Submit(&self, bstrfaxservername: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn Submit(&self, bstrfaxservername: &::windows::core::BSTR) -> ::windows::core::Result; fn ConnectedSubmit(&self, pfaxserver: &::core::option::Option) -> ::windows::core::Result; fn AttachFaxToReceipt(&self) -> ::windows::core::Result; fn SetAttachFaxToReceipt(&self, battachfax: i16) -> ::windows::core::Result<()>; @@ -1794,7 +1794,7 @@ impl ::windows::core::RuntimeName for IFaxDocument {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFaxDocument_Vtbl { pub const fn new, Impl: IFaxDocument_Impl, const OFFSET: isize>() -> IFaxDocument_Vtbl { - unsafe extern "system" fn Body, Impl: IFaxDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrbody: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Body, Impl: IFaxDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrbody: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Body() { @@ -1805,7 +1805,7 @@ impl IFaxDocument_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetBody, Impl: IFaxDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrbody: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetBody, Impl: IFaxDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrbody: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetBody(::core::mem::transmute(&bstrbody)).into() @@ -1832,7 +1832,7 @@ impl IFaxDocument_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CoverPage, Impl: IFaxDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcoverpage: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CoverPage, Impl: IFaxDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcoverpage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CoverPage() { @@ -1843,12 +1843,12 @@ impl IFaxDocument_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetCoverPage, Impl: IFaxDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcoverpage: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCoverPage, Impl: IFaxDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcoverpage: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCoverPage(::core::mem::transmute(&bstrcoverpage)).into() } - unsafe extern "system" fn Subject, Impl: IFaxDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsubject: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Subject, Impl: IFaxDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsubject: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Subject() { @@ -1859,12 +1859,12 @@ impl IFaxDocument_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSubject, Impl: IFaxDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsubject: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSubject, Impl: IFaxDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsubject: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSubject(::core::mem::transmute(&bstrsubject)).into() } - unsafe extern "system" fn Note, Impl: IFaxDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrnote: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Note, Impl: IFaxDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrnote: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Note() { @@ -1875,7 +1875,7 @@ impl IFaxDocument_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetNote, Impl: IFaxDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrnote: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetNote, Impl: IFaxDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrnote: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetNote(::core::mem::transmute(&bstrnote)).into() @@ -1896,7 +1896,7 @@ impl IFaxDocument_Vtbl { let this = (*this).get_impl(); this.SetScheduleTime(::core::mem::transmute_copy(&datescheduletime)).into() } - unsafe extern "system" fn ReceiptAddress, Impl: IFaxDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrreceiptaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ReceiptAddress, Impl: IFaxDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrreceiptaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ReceiptAddress() { @@ -1907,12 +1907,12 @@ impl IFaxDocument_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetReceiptAddress, Impl: IFaxDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrreceiptaddress: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetReceiptAddress, Impl: IFaxDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrreceiptaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetReceiptAddress(::core::mem::transmute(&bstrreceiptaddress)).into() } - unsafe extern "system" fn DocumentName, Impl: IFaxDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdocumentname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DocumentName, Impl: IFaxDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdocumentname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DocumentName() { @@ -1923,7 +1923,7 @@ impl IFaxDocument_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDocumentName, Impl: IFaxDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdocumentname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDocumentName, Impl: IFaxDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdocumentname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDocumentName(::core::mem::transmute(&bstrdocumentname)).into() @@ -2040,7 +2040,7 @@ impl IFaxDocument_Vtbl { let this = (*this).get_impl(); this.putref_TapiConnection(::core::mem::transmute(&ptapiconnection)).into() } - unsafe extern "system" fn Submit, Impl: IFaxDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfaxservername: ::core::mem::ManuallyDrop, pvfaxoutgoingjobids: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn Submit, Impl: IFaxDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfaxservername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvfaxoutgoingjobids: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Submit(::core::mem::transmute(&bstrfaxservername)) { @@ -2122,10 +2122,10 @@ impl IFaxDocument_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFaxDocument2_Impl: Sized + super::super::System::Com::IDispatch_Impl + IFaxDocument_Impl { - fn SubmissionId(&self) -> ::windows::core::Result; + fn SubmissionId(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Bodies(&self) -> ::windows::core::Result; fn SetBodies(&self, vbodies: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn Submit2(&self, bstrfaxservername: &super::super::Foundation::BSTR, pvfaxoutgoingjobids: *mut super::super::System::Com::VARIANT, plerrorbodyfile: *mut i32) -> ::windows::core::Result<()>; + fn Submit2(&self, bstrfaxservername: &::windows::core::BSTR, pvfaxoutgoingjobids: *mut super::super::System::Com::VARIANT, plerrorbodyfile: *mut i32) -> ::windows::core::Result<()>; fn ConnectedSubmit2(&self, pfaxserver: &::core::option::Option, pvfaxoutgoingjobids: *mut super::super::System::Com::VARIANT, plerrorbodyfile: *mut i32) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2133,7 +2133,7 @@ impl ::windows::core::RuntimeName for IFaxDocument2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFaxDocument2_Vtbl { pub const fn new, Impl: IFaxDocument2_Impl, const OFFSET: isize>() -> IFaxDocument2_Vtbl { - unsafe extern "system" fn SubmissionId, Impl: IFaxDocument2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsubmissionid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SubmissionId, Impl: IFaxDocument2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsubmissionid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SubmissionId() { @@ -2160,7 +2160,7 @@ impl IFaxDocument2_Vtbl { let this = (*this).get_impl(); this.SetBodies(::core::mem::transmute(&vbodies)).into() } - unsafe extern "system" fn Submit2, Impl: IFaxDocument2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfaxservername: ::core::mem::ManuallyDrop, pvfaxoutgoingjobids: *mut super::super::System::Com::VARIANT, plerrorbodyfile: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn Submit2, Impl: IFaxDocument2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfaxservername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvfaxoutgoingjobids: *mut super::super::System::Com::VARIANT, plerrorbodyfile: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Submit2(::core::mem::transmute(&bstrfaxservername), ::core::mem::transmute_copy(&pvfaxoutgoingjobids), ::core::mem::transmute_copy(&plerrorbodyfile)).into() @@ -2405,9 +2405,9 @@ impl IFaxInboundRouting_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFaxInboundRoutingExtension_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn FriendlyName(&self) -> ::windows::core::Result; - fn ImageName(&self) -> ::windows::core::Result; - fn UniqueName(&self) -> ::windows::core::Result; + fn FriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ImageName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn UniqueName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn MajorVersion(&self) -> ::windows::core::Result; fn MinorVersion(&self) -> ::windows::core::Result; fn MajorBuild(&self) -> ::windows::core::Result; @@ -2422,7 +2422,7 @@ impl ::windows::core::RuntimeName for IFaxInboundRoutingExtension {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFaxInboundRoutingExtension_Vtbl { pub const fn new, Impl: IFaxInboundRoutingExtension_Impl, const OFFSET: isize>() -> IFaxInboundRoutingExtension_Vtbl { - unsafe extern "system" fn FriendlyName, Impl: IFaxInboundRoutingExtension_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfriendlyname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FriendlyName, Impl: IFaxInboundRoutingExtension_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfriendlyname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FriendlyName() { @@ -2433,7 +2433,7 @@ impl IFaxInboundRoutingExtension_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ImageName, Impl: IFaxInboundRoutingExtension_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrimagename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ImageName, Impl: IFaxInboundRoutingExtension_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrimagename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ImageName() { @@ -2444,7 +2444,7 @@ impl IFaxInboundRoutingExtension_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn UniqueName, Impl: IFaxInboundRoutingExtension_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstruniquename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UniqueName, Impl: IFaxInboundRoutingExtension_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstruniquename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UniqueName() { @@ -2619,11 +2619,11 @@ impl IFaxInboundRoutingExtensions_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFaxInboundRoutingMethod_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; - fn GUID(&self) -> ::windows::core::Result; - fn FunctionName(&self) -> ::windows::core::Result; - fn ExtensionFriendlyName(&self) -> ::windows::core::Result; - fn ExtensionImageName(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GUID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn FunctionName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ExtensionFriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ExtensionImageName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Priority(&self) -> ::windows::core::Result; fn SetPriority(&self, lpriority: i32) -> ::windows::core::Result<()>; fn Refresh(&self) -> ::windows::core::Result<()>; @@ -2634,7 +2634,7 @@ impl ::windows::core::RuntimeName for IFaxInboundRoutingMethod {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFaxInboundRoutingMethod_Vtbl { pub const fn new, Impl: IFaxInboundRoutingMethod_Impl, const OFFSET: isize>() -> IFaxInboundRoutingMethod_Vtbl { - unsafe extern "system" fn Name, Impl: IFaxInboundRoutingMethod_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IFaxInboundRoutingMethod_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -2645,7 +2645,7 @@ impl IFaxInboundRoutingMethod_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GUID, Impl: IFaxInboundRoutingMethod_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrguid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GUID, Impl: IFaxInboundRoutingMethod_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrguid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GUID() { @@ -2656,7 +2656,7 @@ impl IFaxInboundRoutingMethod_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn FunctionName, Impl: IFaxInboundRoutingMethod_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfunctionname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FunctionName, Impl: IFaxInboundRoutingMethod_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfunctionname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FunctionName() { @@ -2667,7 +2667,7 @@ impl IFaxInboundRoutingMethod_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ExtensionFriendlyName, Impl: IFaxInboundRoutingMethod_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrextensionfriendlyname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExtensionFriendlyName, Impl: IFaxInboundRoutingMethod_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrextensionfriendlyname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ExtensionFriendlyName() { @@ -2678,7 +2678,7 @@ impl IFaxInboundRoutingMethod_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ExtensionImageName, Impl: IFaxInboundRoutingMethod_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrextensionimagename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExtensionImageName, Impl: IFaxInboundRoutingMethod_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrextensionimagename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ExtensionImageName() { @@ -2791,8 +2791,8 @@ impl IFaxInboundRoutingMethods_Vtbl { pub trait IFaxIncomingArchive_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn UseArchive(&self) -> ::windows::core::Result; fn SetUseArchive(&self, busearchive: i16) -> ::windows::core::Result<()>; - fn ArchiveFolder(&self) -> ::windows::core::Result; - fn SetArchiveFolder(&self, bstrarchivefolder: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ArchiveFolder(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetArchiveFolder(&self, bstrarchivefolder: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SizeQuotaWarning(&self) -> ::windows::core::Result; fn SetSizeQuotaWarning(&self, bsizequotawarning: i16) -> ::windows::core::Result<()>; fn HighQuotaWaterMark(&self) -> ::windows::core::Result; @@ -2806,7 +2806,7 @@ pub trait IFaxIncomingArchive_Impl: Sized + super::super::System::Com::IDispatch fn Refresh(&self) -> ::windows::core::Result<()>; fn Save(&self) -> ::windows::core::Result<()>; fn GetMessages(&self, lprefetchsize: i32) -> ::windows::core::Result; - fn GetMessage(&self, bstrmessageid: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetMessage(&self, bstrmessageid: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFaxIncomingArchive {} @@ -2829,7 +2829,7 @@ impl IFaxIncomingArchive_Vtbl { let this = (*this).get_impl(); this.SetUseArchive(::core::mem::transmute_copy(&busearchive)).into() } - unsafe extern "system" fn ArchiveFolder, Impl: IFaxIncomingArchive_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrarchivefolder: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ArchiveFolder, Impl: IFaxIncomingArchive_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrarchivefolder: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ArchiveFolder() { @@ -2840,7 +2840,7 @@ impl IFaxIncomingArchive_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetArchiveFolder, Impl: IFaxIncomingArchive_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrarchivefolder: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetArchiveFolder, Impl: IFaxIncomingArchive_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrarchivefolder: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetArchiveFolder(::core::mem::transmute(&bstrarchivefolder)).into() @@ -2952,7 +2952,7 @@ impl IFaxIncomingArchive_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetMessage, Impl: IFaxIncomingArchive_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop, pfaxincomingmessage: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetMessage, Impl: IFaxIncomingArchive_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfaxincomingmessage: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetMessage(::core::mem::transmute(&bstrmessageid)) { @@ -2992,24 +2992,24 @@ impl IFaxIncomingArchive_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFaxIncomingJob_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn Size(&self) -> ::windows::core::Result; - fn Id(&self) -> ::windows::core::Result; + fn Id(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CurrentPage(&self) -> ::windows::core::Result; fn DeviceId(&self) -> ::windows::core::Result; fn Status(&self) -> ::windows::core::Result; fn ExtendedStatusCode(&self) -> ::windows::core::Result; - fn ExtendedStatus(&self) -> ::windows::core::Result; + fn ExtendedStatus(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn AvailableOperations(&self) -> ::windows::core::Result; fn Retries(&self) -> ::windows::core::Result; fn TransmissionStart(&self) -> ::windows::core::Result; fn TransmissionEnd(&self) -> ::windows::core::Result; - fn CSID(&self) -> ::windows::core::Result; - fn TSID(&self) -> ::windows::core::Result; - fn CallerId(&self) -> ::windows::core::Result; - fn RoutingInformation(&self) -> ::windows::core::Result; + fn CSID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn TSID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CallerId(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn RoutingInformation(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn JobType(&self) -> ::windows::core::Result; fn Cancel(&self) -> ::windows::core::Result<()>; fn Refresh(&self) -> ::windows::core::Result<()>; - fn CopyTiff(&self, bstrtiffpath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn CopyTiff(&self, bstrtiffpath: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFaxIncomingJob {} @@ -3027,7 +3027,7 @@ impl IFaxIncomingJob_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Id, Impl: IFaxIncomingJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Id, Impl: IFaxIncomingJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Id() { @@ -3082,7 +3082,7 @@ impl IFaxIncomingJob_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ExtendedStatus, Impl: IFaxIncomingJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrextendedstatus: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExtendedStatus, Impl: IFaxIncomingJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrextendedstatus: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ExtendedStatus() { @@ -3137,7 +3137,7 @@ impl IFaxIncomingJob_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CSID, Impl: IFaxIncomingJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CSID, Impl: IFaxIncomingJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CSID() { @@ -3148,7 +3148,7 @@ impl IFaxIncomingJob_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn TSID, Impl: IFaxIncomingJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TSID, Impl: IFaxIncomingJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TSID() { @@ -3159,7 +3159,7 @@ impl IFaxIncomingJob_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CallerId, Impl: IFaxIncomingJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcallerid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CallerId, Impl: IFaxIncomingJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcallerid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CallerId() { @@ -3170,7 +3170,7 @@ impl IFaxIncomingJob_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RoutingInformation, Impl: IFaxIncomingJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrroutinginformation: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RoutingInformation, Impl: IFaxIncomingJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrroutinginformation: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RoutingInformation() { @@ -3202,7 +3202,7 @@ impl IFaxIncomingJob_Vtbl { let this = (*this).get_impl(); this.Refresh().into() } - unsafe extern "system" fn CopyTiff, Impl: IFaxIncomingJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtiffpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn CopyTiff, Impl: IFaxIncomingJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtiffpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CopyTiff(::core::mem::transmute(&bstrtiffpath)).into() @@ -3291,18 +3291,18 @@ impl IFaxIncomingJobs_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFaxIncomingMessage_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Id(&self) -> ::windows::core::Result; + fn Id(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Pages(&self) -> ::windows::core::Result; fn Size(&self) -> ::windows::core::Result; - fn DeviceName(&self) -> ::windows::core::Result; + fn DeviceName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Retries(&self) -> ::windows::core::Result; fn TransmissionStart(&self) -> ::windows::core::Result; fn TransmissionEnd(&self) -> ::windows::core::Result; - fn CSID(&self) -> ::windows::core::Result; - fn TSID(&self) -> ::windows::core::Result; - fn CallerId(&self) -> ::windows::core::Result; - fn RoutingInformation(&self) -> ::windows::core::Result; - fn CopyTiff(&self, bstrtiffpath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn CSID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn TSID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CallerId(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn RoutingInformation(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CopyTiff(&self, bstrtiffpath: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Delete(&self) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3310,7 +3310,7 @@ impl ::windows::core::RuntimeName for IFaxIncomingMessage {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFaxIncomingMessage_Vtbl { pub const fn new, Impl: IFaxIncomingMessage_Impl, const OFFSET: isize>() -> IFaxIncomingMessage_Vtbl { - unsafe extern "system" fn Id, Impl: IFaxIncomingMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Id, Impl: IFaxIncomingMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Id() { @@ -3343,7 +3343,7 @@ impl IFaxIncomingMessage_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DeviceName, Impl: IFaxIncomingMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdevicename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeviceName, Impl: IFaxIncomingMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdevicename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DeviceName() { @@ -3387,7 +3387,7 @@ impl IFaxIncomingMessage_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CSID, Impl: IFaxIncomingMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CSID, Impl: IFaxIncomingMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CSID() { @@ -3398,7 +3398,7 @@ impl IFaxIncomingMessage_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn TSID, Impl: IFaxIncomingMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TSID, Impl: IFaxIncomingMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TSID() { @@ -3409,7 +3409,7 @@ impl IFaxIncomingMessage_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CallerId, Impl: IFaxIncomingMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcallerid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CallerId, Impl: IFaxIncomingMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcallerid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CallerId() { @@ -3420,7 +3420,7 @@ impl IFaxIncomingMessage_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RoutingInformation, Impl: IFaxIncomingMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrroutinginformation: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RoutingInformation, Impl: IFaxIncomingMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrroutinginformation: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RoutingInformation() { @@ -3431,7 +3431,7 @@ impl IFaxIncomingMessage_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CopyTiff, Impl: IFaxIncomingMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtiffpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn CopyTiff, Impl: IFaxIncomingMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtiffpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CopyTiff(::core::mem::transmute(&bstrtiffpath)).into() @@ -3464,16 +3464,16 @@ impl IFaxIncomingMessage_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFaxIncomingMessage2_Impl: Sized + super::super::System::Com::IDispatch_Impl + IFaxIncomingMessage_Impl { - fn Subject(&self) -> ::windows::core::Result; - fn SetSubject(&self, bstrsubject: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SenderName(&self) -> ::windows::core::Result; - fn SetSenderName(&self, bstrsendername: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SenderFaxNumber(&self) -> ::windows::core::Result; - fn SetSenderFaxNumber(&self, bstrsenderfaxnumber: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Subject(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetSubject(&self, bstrsubject: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SenderName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetSenderName(&self, bstrsendername: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SenderFaxNumber(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetSenderFaxNumber(&self, bstrsenderfaxnumber: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn HasCoverPage(&self) -> ::windows::core::Result; fn SetHasCoverPage(&self, bhascoverpage: i16) -> ::windows::core::Result<()>; - fn Recipients(&self) -> ::windows::core::Result; - fn SetRecipients(&self, bstrrecipients: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Recipients(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetRecipients(&self, bstrrecipients: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn WasReAssigned(&self) -> ::windows::core::Result; fn Read(&self) -> ::windows::core::Result; fn SetRead(&self, bread: i16) -> ::windows::core::Result<()>; @@ -3486,7 +3486,7 @@ impl ::windows::core::RuntimeName for IFaxIncomingMessage2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFaxIncomingMessage2_Vtbl { pub const fn new, Impl: IFaxIncomingMessage2_Impl, const OFFSET: isize>() -> IFaxIncomingMessage2_Vtbl { - unsafe extern "system" fn Subject, Impl: IFaxIncomingMessage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsubject: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Subject, Impl: IFaxIncomingMessage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsubject: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Subject() { @@ -3497,12 +3497,12 @@ impl IFaxIncomingMessage2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSubject, Impl: IFaxIncomingMessage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsubject: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSubject, Impl: IFaxIncomingMessage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsubject: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSubject(::core::mem::transmute(&bstrsubject)).into() } - unsafe extern "system" fn SenderName, Impl: IFaxIncomingMessage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsendername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SenderName, Impl: IFaxIncomingMessage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsendername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SenderName() { @@ -3513,12 +3513,12 @@ impl IFaxIncomingMessage2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSenderName, Impl: IFaxIncomingMessage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsendername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSenderName, Impl: IFaxIncomingMessage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsendername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSenderName(::core::mem::transmute(&bstrsendername)).into() } - unsafe extern "system" fn SenderFaxNumber, Impl: IFaxIncomingMessage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsenderfaxnumber: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SenderFaxNumber, Impl: IFaxIncomingMessage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsenderfaxnumber: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SenderFaxNumber() { @@ -3529,7 +3529,7 @@ impl IFaxIncomingMessage2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSenderFaxNumber, Impl: IFaxIncomingMessage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsenderfaxnumber: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSenderFaxNumber, Impl: IFaxIncomingMessage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsenderfaxnumber: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSenderFaxNumber(::core::mem::transmute(&bstrsenderfaxnumber)).into() @@ -3550,7 +3550,7 @@ impl IFaxIncomingMessage2_Vtbl { let this = (*this).get_impl(); this.SetHasCoverPage(::core::mem::transmute_copy(&bhascoverpage)).into() } - unsafe extern "system" fn Recipients, Impl: IFaxIncomingMessage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrrecipients: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Recipients, Impl: IFaxIncomingMessage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrrecipients: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Recipients() { @@ -3561,7 +3561,7 @@ impl IFaxIncomingMessage2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetRecipients, Impl: IFaxIncomingMessage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrecipients: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetRecipients, Impl: IFaxIncomingMessage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrecipients: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetRecipients(::core::mem::transmute(&bstrrecipients)).into() @@ -3715,7 +3715,7 @@ pub trait IFaxIncomingQueue_Impl: Sized + super::super::System::Com::IDispatch_I fn Refresh(&self) -> ::windows::core::Result<()>; fn Save(&self) -> ::windows::core::Result<()>; fn GetJobs(&self) -> ::windows::core::Result; - fn GetJob(&self, bstrjobid: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetJob(&self, bstrjobid: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFaxIncomingQueue {} @@ -3759,7 +3759,7 @@ impl IFaxIncomingQueue_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetJob, Impl: IFaxIncomingQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop, pfaxincomingjob: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetJob, Impl: IFaxIncomingQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfaxincomingjob: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetJob(::core::mem::transmute(&bstrjobid)) { @@ -3791,18 +3791,18 @@ pub trait IFaxJobStatus_Impl: Sized + super::super::System::Com::IDispatch_Impl fn Size(&self) -> ::windows::core::Result; fn CurrentPage(&self) -> ::windows::core::Result; fn DeviceId(&self) -> ::windows::core::Result; - fn CSID(&self) -> ::windows::core::Result; - fn TSID(&self) -> ::windows::core::Result; + fn CSID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn TSID(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn ExtendedStatusCode(&self) -> ::windows::core::Result; - fn ExtendedStatus(&self) -> ::windows::core::Result; + fn ExtendedStatus(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn AvailableOperations(&self) -> ::windows::core::Result; fn Retries(&self) -> ::windows::core::Result; fn JobType(&self) -> ::windows::core::Result; fn ScheduledTime(&self) -> ::windows::core::Result; fn TransmissionStart(&self) -> ::windows::core::Result; fn TransmissionEnd(&self) -> ::windows::core::Result; - fn CallerId(&self) -> ::windows::core::Result; - fn RoutingInformation(&self) -> ::windows::core::Result; + fn CallerId(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn RoutingInformation(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFaxJobStatus {} @@ -3864,7 +3864,7 @@ impl IFaxJobStatus_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CSID, Impl: IFaxJobStatus_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CSID, Impl: IFaxJobStatus_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CSID() { @@ -3875,7 +3875,7 @@ impl IFaxJobStatus_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn TSID, Impl: IFaxJobStatus_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TSID, Impl: IFaxJobStatus_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TSID() { @@ -3897,7 +3897,7 @@ impl IFaxJobStatus_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ExtendedStatus, Impl: IFaxJobStatus_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrextendedstatus: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExtendedStatus, Impl: IFaxJobStatus_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrextendedstatus: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ExtendedStatus() { @@ -3974,7 +3974,7 @@ impl IFaxJobStatus_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CallerId, Impl: IFaxJobStatus_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcallerid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CallerId, Impl: IFaxJobStatus_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcallerid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CallerId() { @@ -3985,7 +3985,7 @@ impl IFaxJobStatus_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RoutingInformation, Impl: IFaxJobStatus_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrroutinginformation: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RoutingInformation, Impl: IFaxJobStatus_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrroutinginformation: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RoutingInformation() { @@ -4107,7 +4107,7 @@ impl IFaxOutboundRouting_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFaxOutboundRoutingGroup_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Status(&self) -> ::windows::core::Result; fn DeviceIds(&self) -> ::windows::core::Result; } @@ -4116,7 +4116,7 @@ impl ::windows::core::RuntimeName for IFaxOutboundRoutingGroup {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFaxOutboundRoutingGroup_Vtbl { pub const fn new, Impl: IFaxOutboundRoutingGroup_Impl, const OFFSET: isize>() -> IFaxOutboundRoutingGroup_Vtbl { - unsafe extern "system" fn Name, Impl: IFaxOutboundRoutingGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IFaxOutboundRoutingGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -4165,7 +4165,7 @@ pub trait IFaxOutboundRoutingGroups_Impl: Sized + super::super::System::Com::IDi fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; fn get_Item(&self, vindex: &super::super::System::Com::VARIANT) -> ::windows::core::Result; fn Count(&self) -> ::windows::core::Result; - fn Add(&self, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn Add(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result; fn Remove(&self, vindex: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -4206,7 +4206,7 @@ impl IFaxOutboundRoutingGroups_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Add, Impl: IFaxOutboundRoutingGroups_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, pfaxoutboundroutinggroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Add, Impl: IFaxOutboundRoutingGroups_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfaxoutboundroutinggroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Add(::core::mem::transmute(&bstrname)) { @@ -4244,8 +4244,8 @@ pub trait IFaxOutboundRoutingRule_Impl: Sized + super::super::System::Com::IDisp fn SetUseDevice(&self, busedevice: i16) -> ::windows::core::Result<()>; fn DeviceId(&self) -> ::windows::core::Result; fn SetDeviceId(&self, deviceid: i32) -> ::windows::core::Result<()>; - fn GroupName(&self) -> ::windows::core::Result; - fn SetGroupName(&self, bstrgroupname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GroupName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetGroupName(&self, bstrgroupname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Refresh(&self) -> ::windows::core::Result<()>; fn Save(&self) -> ::windows::core::Result<()>; } @@ -4319,7 +4319,7 @@ impl IFaxOutboundRoutingRule_Vtbl { let this = (*this).get_impl(); this.SetDeviceId(::core::mem::transmute_copy(&deviceid)).into() } - unsafe extern "system" fn GroupName, Impl: IFaxOutboundRoutingRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrgroupname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GroupName, Impl: IFaxOutboundRoutingRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrgroupname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GroupName() { @@ -4330,7 +4330,7 @@ impl IFaxOutboundRoutingRule_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetGroupName, Impl: IFaxOutboundRoutingRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetGroupName, Impl: IFaxOutboundRoutingRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetGroupName(::core::mem::transmute(&bstrgroupname)).into() @@ -4372,7 +4372,7 @@ pub trait IFaxOutboundRoutingRules_Impl: Sized + super::super::System::Com::IDis fn ItemByCountryAndArea(&self, lcountrycode: i32, lareacode: i32) -> ::windows::core::Result; fn RemoveByCountryAndArea(&self, lcountrycode: i32, lareacode: i32) -> ::windows::core::Result<()>; fn Remove(&self, lindex: i32) -> ::windows::core::Result<()>; - fn Add(&self, lcountrycode: i32, lareacode: i32, busedevice: i16, bstrgroupname: &super::super::Foundation::BSTR, ldeviceid: i32) -> ::windows::core::Result; + fn Add(&self, lcountrycode: i32, lareacode: i32, busedevice: i16, bstrgroupname: &::windows::core::BSTR, ldeviceid: i32) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFaxOutboundRoutingRules {} @@ -4433,7 +4433,7 @@ impl IFaxOutboundRoutingRules_Vtbl { let this = (*this).get_impl(); this.Remove(::core::mem::transmute_copy(&lindex)).into() } - unsafe extern "system" fn Add, Impl: IFaxOutboundRoutingRules_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lcountrycode: i32, lareacode: i32, busedevice: i16, bstrgroupname: ::core::mem::ManuallyDrop, ldeviceid: i32, pfaxoutboundroutingrule: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Add, Impl: IFaxOutboundRoutingRules_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lcountrycode: i32, lareacode: i32, busedevice: i16, bstrgroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ldeviceid: i32, pfaxoutboundroutingrule: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Add(::core::mem::transmute_copy(&lcountrycode), ::core::mem::transmute_copy(&lareacode), ::core::mem::transmute_copy(&busedevice), ::core::mem::transmute(&bstrgroupname), ::core::mem::transmute_copy(&ldeviceid)) { @@ -4463,8 +4463,8 @@ impl IFaxOutboundRoutingRules_Vtbl { pub trait IFaxOutgoingArchive_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn UseArchive(&self) -> ::windows::core::Result; fn SetUseArchive(&self, busearchive: i16) -> ::windows::core::Result<()>; - fn ArchiveFolder(&self) -> ::windows::core::Result; - fn SetArchiveFolder(&self, bstrarchivefolder: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ArchiveFolder(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetArchiveFolder(&self, bstrarchivefolder: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SizeQuotaWarning(&self) -> ::windows::core::Result; fn SetSizeQuotaWarning(&self, bsizequotawarning: i16) -> ::windows::core::Result<()>; fn HighQuotaWaterMark(&self) -> ::windows::core::Result; @@ -4478,7 +4478,7 @@ pub trait IFaxOutgoingArchive_Impl: Sized + super::super::System::Com::IDispatch fn Refresh(&self) -> ::windows::core::Result<()>; fn Save(&self) -> ::windows::core::Result<()>; fn GetMessages(&self, lprefetchsize: i32) -> ::windows::core::Result; - fn GetMessage(&self, bstrmessageid: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetMessage(&self, bstrmessageid: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFaxOutgoingArchive {} @@ -4501,7 +4501,7 @@ impl IFaxOutgoingArchive_Vtbl { let this = (*this).get_impl(); this.SetUseArchive(::core::mem::transmute_copy(&busearchive)).into() } - unsafe extern "system" fn ArchiveFolder, Impl: IFaxOutgoingArchive_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrarchivefolder: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ArchiveFolder, Impl: IFaxOutgoingArchive_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrarchivefolder: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ArchiveFolder() { @@ -4512,7 +4512,7 @@ impl IFaxOutgoingArchive_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetArchiveFolder, Impl: IFaxOutgoingArchive_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrarchivefolder: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetArchiveFolder, Impl: IFaxOutgoingArchive_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrarchivefolder: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetArchiveFolder(::core::mem::transmute(&bstrarchivefolder)).into() @@ -4624,7 +4624,7 @@ impl IFaxOutgoingArchive_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetMessage, Impl: IFaxOutgoingArchive_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop, pfaxoutgoingmessage: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetMessage, Impl: IFaxOutgoingArchive_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfaxoutgoingmessage: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetMessage(::core::mem::transmute(&bstrmessageid)) { @@ -4663,12 +4663,12 @@ impl IFaxOutgoingArchive_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFaxOutgoingJob_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Subject(&self) -> ::windows::core::Result; - fn DocumentName(&self) -> ::windows::core::Result; + fn Subject(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn DocumentName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Pages(&self) -> ::windows::core::Result; fn Size(&self) -> ::windows::core::Result; - fn SubmissionId(&self) -> ::windows::core::Result; - fn Id(&self) -> ::windows::core::Result; + fn SubmissionId(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Id(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn OriginalScheduledTime(&self) -> ::windows::core::Result; fn SubmissionTime(&self) -> ::windows::core::Result; fn ReceiptType(&self) -> ::windows::core::Result; @@ -4679,19 +4679,19 @@ pub trait IFaxOutgoingJob_Impl: Sized + super::super::System::Com::IDispatch_Imp fn DeviceId(&self) -> ::windows::core::Result; fn Status(&self) -> ::windows::core::Result; fn ExtendedStatusCode(&self) -> ::windows::core::Result; - fn ExtendedStatus(&self) -> ::windows::core::Result; + fn ExtendedStatus(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn AvailableOperations(&self) -> ::windows::core::Result; fn Retries(&self) -> ::windows::core::Result; fn ScheduledTime(&self) -> ::windows::core::Result; fn TransmissionStart(&self) -> ::windows::core::Result; fn TransmissionEnd(&self) -> ::windows::core::Result; - fn CSID(&self) -> ::windows::core::Result; - fn TSID(&self) -> ::windows::core::Result; + fn CSID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn TSID(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GroupBroadcastReceipts(&self) -> ::windows::core::Result; fn Pause(&self) -> ::windows::core::Result<()>; fn Resume(&self) -> ::windows::core::Result<()>; fn Restart(&self) -> ::windows::core::Result<()>; - fn CopyTiff(&self, bstrtiffpath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn CopyTiff(&self, bstrtiffpath: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Refresh(&self) -> ::windows::core::Result<()>; fn Cancel(&self) -> ::windows::core::Result<()>; } @@ -4700,7 +4700,7 @@ impl ::windows::core::RuntimeName for IFaxOutgoingJob {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFaxOutgoingJob_Vtbl { pub const fn new, Impl: IFaxOutgoingJob_Impl, const OFFSET: isize>() -> IFaxOutgoingJob_Vtbl { - unsafe extern "system" fn Subject, Impl: IFaxOutgoingJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsubject: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Subject, Impl: IFaxOutgoingJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsubject: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Subject() { @@ -4711,7 +4711,7 @@ impl IFaxOutgoingJob_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DocumentName, Impl: IFaxOutgoingJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdocumentname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DocumentName, Impl: IFaxOutgoingJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdocumentname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DocumentName() { @@ -4744,7 +4744,7 @@ impl IFaxOutgoingJob_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SubmissionId, Impl: IFaxOutgoingJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsubmissionid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SubmissionId, Impl: IFaxOutgoingJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsubmissionid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SubmissionId() { @@ -4755,7 +4755,7 @@ impl IFaxOutgoingJob_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Id, Impl: IFaxOutgoingJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Id, Impl: IFaxOutgoingJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Id() { @@ -4876,7 +4876,7 @@ impl IFaxOutgoingJob_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ExtendedStatus, Impl: IFaxOutgoingJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrextendedstatus: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExtendedStatus, Impl: IFaxOutgoingJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrextendedstatus: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ExtendedStatus() { @@ -4942,7 +4942,7 @@ impl IFaxOutgoingJob_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CSID, Impl: IFaxOutgoingJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CSID, Impl: IFaxOutgoingJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CSID() { @@ -4953,7 +4953,7 @@ impl IFaxOutgoingJob_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn TSID, Impl: IFaxOutgoingJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TSID, Impl: IFaxOutgoingJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TSID() { @@ -4990,7 +4990,7 @@ impl IFaxOutgoingJob_Vtbl { let this = (*this).get_impl(); this.Restart().into() } - unsafe extern "system" fn CopyTiff, Impl: IFaxOutgoingJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtiffpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn CopyTiff, Impl: IFaxOutgoingJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtiffpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CopyTiff(::core::mem::transmute(&bstrtiffpath)).into() @@ -5047,7 +5047,7 @@ impl IFaxOutgoingJob_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFaxOutgoingJob2_Impl: Sized + super::super::System::Com::IDispatch_Impl + IFaxOutgoingJob_Impl { fn HasCoverPage(&self) -> ::windows::core::Result; - fn ReceiptAddress(&self) -> ::windows::core::Result; + fn ReceiptAddress(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn ScheduleType(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -5066,7 +5066,7 @@ impl IFaxOutgoingJob2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ReceiptAddress, Impl: IFaxOutgoingJob2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrreceiptaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ReceiptAddress, Impl: IFaxOutgoingJob2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrreceiptaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ReceiptAddress() { @@ -5156,10 +5156,10 @@ impl IFaxOutgoingJobs_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFaxOutgoingMessage_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn SubmissionId(&self) -> ::windows::core::Result; - fn Id(&self) -> ::windows::core::Result; - fn Subject(&self) -> ::windows::core::Result; - fn DocumentName(&self) -> ::windows::core::Result; + fn SubmissionId(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Id(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Subject(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn DocumentName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Retries(&self) -> ::windows::core::Result; fn Pages(&self) -> ::windows::core::Result; fn Size(&self) -> ::windows::core::Result; @@ -5168,12 +5168,12 @@ pub trait IFaxOutgoingMessage_Impl: Sized + super::super::System::Com::IDispatch fn Priority(&self) -> ::windows::core::Result; fn Sender(&self) -> ::windows::core::Result; fn Recipient(&self) -> ::windows::core::Result; - fn DeviceName(&self) -> ::windows::core::Result; + fn DeviceName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn TransmissionStart(&self) -> ::windows::core::Result; fn TransmissionEnd(&self) -> ::windows::core::Result; - fn CSID(&self) -> ::windows::core::Result; - fn TSID(&self) -> ::windows::core::Result; - fn CopyTiff(&self, bstrtiffpath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn CSID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn TSID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CopyTiff(&self, bstrtiffpath: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Delete(&self) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -5181,7 +5181,7 @@ impl ::windows::core::RuntimeName for IFaxOutgoingMessage {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFaxOutgoingMessage_Vtbl { pub const fn new, Impl: IFaxOutgoingMessage_Impl, const OFFSET: isize>() -> IFaxOutgoingMessage_Vtbl { - unsafe extern "system" fn SubmissionId, Impl: IFaxOutgoingMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsubmissionid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SubmissionId, Impl: IFaxOutgoingMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsubmissionid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SubmissionId() { @@ -5192,7 +5192,7 @@ impl IFaxOutgoingMessage_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Id, Impl: IFaxOutgoingMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Id, Impl: IFaxOutgoingMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Id() { @@ -5203,7 +5203,7 @@ impl IFaxOutgoingMessage_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Subject, Impl: IFaxOutgoingMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsubject: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Subject, Impl: IFaxOutgoingMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsubject: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Subject() { @@ -5214,7 +5214,7 @@ impl IFaxOutgoingMessage_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DocumentName, Impl: IFaxOutgoingMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdocumentname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DocumentName, Impl: IFaxOutgoingMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdocumentname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DocumentName() { @@ -5313,7 +5313,7 @@ impl IFaxOutgoingMessage_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DeviceName, Impl: IFaxOutgoingMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdevicename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeviceName, Impl: IFaxOutgoingMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdevicename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DeviceName() { @@ -5346,7 +5346,7 @@ impl IFaxOutgoingMessage_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CSID, Impl: IFaxOutgoingMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CSID, Impl: IFaxOutgoingMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CSID() { @@ -5357,7 +5357,7 @@ impl IFaxOutgoingMessage_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn TSID, Impl: IFaxOutgoingMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TSID, Impl: IFaxOutgoingMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TSID() { @@ -5368,7 +5368,7 @@ impl IFaxOutgoingMessage_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CopyTiff, Impl: IFaxOutgoingMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtiffpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn CopyTiff, Impl: IFaxOutgoingMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtiffpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CopyTiff(::core::mem::transmute(&bstrtiffpath)).into() @@ -5409,7 +5409,7 @@ impl IFaxOutgoingMessage_Vtbl { pub trait IFaxOutgoingMessage2_Impl: Sized + super::super::System::Com::IDispatch_Impl + IFaxOutgoingMessage_Impl { fn HasCoverPage(&self) -> ::windows::core::Result; fn ReceiptType(&self) -> ::windows::core::Result; - fn ReceiptAddress(&self) -> ::windows::core::Result; + fn ReceiptAddress(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Read(&self) -> ::windows::core::Result; fn SetRead(&self, bread: i16) -> ::windows::core::Result<()>; fn Save(&self) -> ::windows::core::Result<()>; @@ -5442,7 +5442,7 @@ impl IFaxOutgoingMessage2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ReceiptAddress, Impl: IFaxOutgoingMessage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrreceiptaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ReceiptAddress, Impl: IFaxOutgoingMessage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrreceiptaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ReceiptAddress() { @@ -5595,7 +5595,7 @@ pub trait IFaxOutgoingQueue_Impl: Sized + super::super::System::Com::IDispatch_I fn Refresh(&self) -> ::windows::core::Result<()>; fn Save(&self) -> ::windows::core::Result<()>; fn GetJobs(&self) -> ::windows::core::Result; - fn GetJob(&self, bstrjobid: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetJob(&self, bstrjobid: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFaxOutgoingQueue {} @@ -5783,7 +5783,7 @@ impl IFaxOutgoingQueue_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetJob, Impl: IFaxOutgoingQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop, pfaxoutgoingjob: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetJob, Impl: IFaxOutgoingQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfaxoutgoingjob: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetJob(::core::mem::transmute(&bstrjobid)) { @@ -5830,18 +5830,18 @@ impl IFaxOutgoingQueue_Vtbl { pub trait IFaxReceiptOptions_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn AuthenticationType(&self) -> ::windows::core::Result; fn SetAuthenticationType(&self, r#type: FAX_SMTP_AUTHENTICATION_TYPE_ENUM) -> ::windows::core::Result<()>; - fn SMTPServer(&self) -> ::windows::core::Result; - fn SetSMTPServer(&self, bstrsmtpserver: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SMTPServer(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetSMTPServer(&self, bstrsmtpserver: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SMTPPort(&self) -> ::windows::core::Result; fn SetSMTPPort(&self, lsmtpport: i32) -> ::windows::core::Result<()>; - fn SMTPSender(&self) -> ::windows::core::Result; - fn SetSMTPSender(&self, bstrsmtpsender: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SMTPUser(&self) -> ::windows::core::Result; - fn SetSMTPUser(&self, bstrsmtpuser: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SMTPSender(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetSMTPSender(&self, bstrsmtpsender: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SMTPUser(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetSMTPUser(&self, bstrsmtpuser: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn AllowedReceipts(&self) -> ::windows::core::Result; fn SetAllowedReceipts(&self, allowedreceipts: FAX_RECEIPT_TYPE_ENUM) -> ::windows::core::Result<()>; - fn SMTPPassword(&self) -> ::windows::core::Result; - fn SetSMTPPassword(&self, bstrsmtppassword: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SMTPPassword(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetSMTPPassword(&self, bstrsmtppassword: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Refresh(&self) -> ::windows::core::Result<()>; fn Save(&self) -> ::windows::core::Result<()>; fn UseForInboundRouting(&self) -> ::windows::core::Result; @@ -5868,7 +5868,7 @@ impl IFaxReceiptOptions_Vtbl { let this = (*this).get_impl(); this.SetAuthenticationType(::core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn SMTPServer, Impl: IFaxReceiptOptions_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsmtpserver: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SMTPServer, Impl: IFaxReceiptOptions_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsmtpserver: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SMTPServer() { @@ -5879,7 +5879,7 @@ impl IFaxReceiptOptions_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSMTPServer, Impl: IFaxReceiptOptions_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsmtpserver: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSMTPServer, Impl: IFaxReceiptOptions_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsmtpserver: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSMTPServer(::core::mem::transmute(&bstrsmtpserver)).into() @@ -5900,7 +5900,7 @@ impl IFaxReceiptOptions_Vtbl { let this = (*this).get_impl(); this.SetSMTPPort(::core::mem::transmute_copy(&lsmtpport)).into() } - unsafe extern "system" fn SMTPSender, Impl: IFaxReceiptOptions_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsmtpsender: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SMTPSender, Impl: IFaxReceiptOptions_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsmtpsender: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SMTPSender() { @@ -5911,12 +5911,12 @@ impl IFaxReceiptOptions_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSMTPSender, Impl: IFaxReceiptOptions_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsmtpsender: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSMTPSender, Impl: IFaxReceiptOptions_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsmtpsender: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSMTPSender(::core::mem::transmute(&bstrsmtpsender)).into() } - unsafe extern "system" fn SMTPUser, Impl: IFaxReceiptOptions_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsmtpuser: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SMTPUser, Impl: IFaxReceiptOptions_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsmtpuser: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SMTPUser() { @@ -5927,7 +5927,7 @@ impl IFaxReceiptOptions_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSMTPUser, Impl: IFaxReceiptOptions_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsmtpuser: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSMTPUser, Impl: IFaxReceiptOptions_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsmtpuser: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSMTPUser(::core::mem::transmute(&bstrsmtpuser)).into() @@ -5948,7 +5948,7 @@ impl IFaxReceiptOptions_Vtbl { let this = (*this).get_impl(); this.SetAllowedReceipts(::core::mem::transmute_copy(&allowedreceipts)).into() } - unsafe extern "system" fn SMTPPassword, Impl: IFaxReceiptOptions_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsmtppassword: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SMTPPassword, Impl: IFaxReceiptOptions_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsmtppassword: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SMTPPassword() { @@ -5959,7 +5959,7 @@ impl IFaxReceiptOptions_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSMTPPassword, Impl: IFaxReceiptOptions_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsmtppassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSMTPPassword, Impl: IFaxReceiptOptions_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsmtppassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSMTPPassword(::core::mem::transmute(&bstrsmtppassword)).into() @@ -6018,17 +6018,17 @@ impl IFaxReceiptOptions_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFaxRecipient_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn FaxNumber(&self) -> ::windows::core::Result; - fn SetFaxNumber(&self, bstrfaxnumber: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Name(&self) -> ::windows::core::Result; - fn SetName(&self, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn FaxNumber(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetFaxNumber(&self, bstrfaxnumber: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFaxRecipient {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFaxRecipient_Vtbl { pub const fn new, Impl: IFaxRecipient_Impl, const OFFSET: isize>() -> IFaxRecipient_Vtbl { - unsafe extern "system" fn FaxNumber, Impl: IFaxRecipient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfaxnumber: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FaxNumber, Impl: IFaxRecipient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfaxnumber: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FaxNumber() { @@ -6039,12 +6039,12 @@ impl IFaxRecipient_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetFaxNumber, Impl: IFaxRecipient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfaxnumber: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetFaxNumber, Impl: IFaxRecipient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfaxnumber: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetFaxNumber(::core::mem::transmute(&bstrfaxnumber)).into() } - unsafe extern "system" fn Name, Impl: IFaxRecipient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IFaxRecipient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -6055,7 +6055,7 @@ impl IFaxRecipient_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetName, Impl: IFaxRecipient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: IFaxRecipient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&bstrname)).into() @@ -6077,7 +6077,7 @@ pub trait IFaxRecipients_Impl: Sized + super::super::System::Com::IDispatch_Impl fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; fn get_Item(&self, lindex: i32) -> ::windows::core::Result; fn Count(&self) -> ::windows::core::Result; - fn Add(&self, bstrfaxnumber: &super::super::Foundation::BSTR, bstrrecipientname: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn Add(&self, bstrfaxnumber: &::windows::core::BSTR, bstrrecipientname: &::windows::core::BSTR) -> ::windows::core::Result; fn Remove(&self, lindex: i32) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -6118,7 +6118,7 @@ impl IFaxRecipients_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Add, Impl: IFaxRecipients_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfaxnumber: ::core::mem::ManuallyDrop, bstrrecipientname: ::core::mem::ManuallyDrop, ppfaxrecipient: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Add, Impl: IFaxRecipients_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfaxnumber: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrrecipientname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppfaxrecipient: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Add(::core::mem::transmute(&bstrfaxnumber), ::core::mem::transmute(&bstrrecipientname)) { @@ -6315,38 +6315,38 @@ impl IFaxSecurity2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFaxSender_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn BillingCode(&self) -> ::windows::core::Result; - fn SetBillingCode(&self, bstrbillingcode: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn City(&self) -> ::windows::core::Result; - fn SetCity(&self, bstrcity: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Company(&self) -> ::windows::core::Result; - fn SetCompany(&self, bstrcompany: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Country(&self) -> ::windows::core::Result; - fn SetCountry(&self, bstrcountry: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Department(&self) -> ::windows::core::Result; - fn SetDepartment(&self, bstrdepartment: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Email(&self) -> ::windows::core::Result; - fn SetEmail(&self, bstremail: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn FaxNumber(&self) -> ::windows::core::Result; - fn SetFaxNumber(&self, bstrfaxnumber: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn HomePhone(&self) -> ::windows::core::Result; - fn SetHomePhone(&self, bstrhomephone: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Name(&self) -> ::windows::core::Result; - fn SetName(&self, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn TSID(&self) -> ::windows::core::Result; - fn SetTSID(&self, bstrtsid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn OfficePhone(&self) -> ::windows::core::Result; - fn SetOfficePhone(&self, bstrofficephone: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn OfficeLocation(&self) -> ::windows::core::Result; - fn SetOfficeLocation(&self, bstrofficelocation: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn State(&self) -> ::windows::core::Result; - fn SetState(&self, bstrstate: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn StreetAddress(&self) -> ::windows::core::Result; - fn SetStreetAddress(&self, bstrstreetaddress: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Title(&self) -> ::windows::core::Result; - fn SetTitle(&self, bstrtitle: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ZipCode(&self) -> ::windows::core::Result; - fn SetZipCode(&self, bstrzipcode: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn BillingCode(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetBillingCode(&self, bstrbillingcode: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn City(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetCity(&self, bstrcity: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Company(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetCompany(&self, bstrcompany: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Country(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetCountry(&self, bstrcountry: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Department(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDepartment(&self, bstrdepartment: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Email(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetEmail(&self, bstremail: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn FaxNumber(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetFaxNumber(&self, bstrfaxnumber: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn HomePhone(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetHomePhone(&self, bstrhomephone: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn TSID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetTSID(&self, bstrtsid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn OfficePhone(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetOfficePhone(&self, bstrofficephone: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn OfficeLocation(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetOfficeLocation(&self, bstrofficelocation: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn State(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetState(&self, bstrstate: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn StreetAddress(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetStreetAddress(&self, bstrstreetaddress: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Title(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetTitle(&self, bstrtitle: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ZipCode(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetZipCode(&self, bstrzipcode: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn LoadDefaultSender(&self) -> ::windows::core::Result<()>; fn SaveDefaultSender(&self) -> ::windows::core::Result<()>; } @@ -6355,7 +6355,7 @@ impl ::windows::core::RuntimeName for IFaxSender {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFaxSender_Vtbl { pub const fn new, Impl: IFaxSender_Impl, const OFFSET: isize>() -> IFaxSender_Vtbl { - unsafe extern "system" fn BillingCode, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrbillingcode: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn BillingCode, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrbillingcode: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BillingCode() { @@ -6366,12 +6366,12 @@ impl IFaxSender_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetBillingCode, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrbillingcode: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetBillingCode, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrbillingcode: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetBillingCode(::core::mem::transmute(&bstrbillingcode)).into() } - unsafe extern "system" fn City, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcity: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn City, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcity: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.City() { @@ -6382,12 +6382,12 @@ impl IFaxSender_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetCity, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcity: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCity, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcity: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCity(::core::mem::transmute(&bstrcity)).into() } - unsafe extern "system" fn Company, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcompany: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Company, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcompany: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Company() { @@ -6398,12 +6398,12 @@ impl IFaxSender_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetCompany, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcompany: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCompany, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcompany: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCompany(::core::mem::transmute(&bstrcompany)).into() } - unsafe extern "system" fn Country, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcountry: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Country, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcountry: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Country() { @@ -6414,12 +6414,12 @@ impl IFaxSender_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetCountry, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcountry: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCountry, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcountry: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCountry(::core::mem::transmute(&bstrcountry)).into() } - unsafe extern "system" fn Department, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdepartment: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Department, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdepartment: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Department() { @@ -6430,12 +6430,12 @@ impl IFaxSender_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDepartment, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdepartment: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDepartment, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdepartment: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDepartment(::core::mem::transmute(&bstrdepartment)).into() } - unsafe extern "system" fn Email, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstremail: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Email, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstremail: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Email() { @@ -6446,12 +6446,12 @@ impl IFaxSender_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetEmail, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstremail: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetEmail, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstremail: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetEmail(::core::mem::transmute(&bstremail)).into() } - unsafe extern "system" fn FaxNumber, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfaxnumber: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FaxNumber, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfaxnumber: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FaxNumber() { @@ -6462,12 +6462,12 @@ impl IFaxSender_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetFaxNumber, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfaxnumber: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetFaxNumber, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfaxnumber: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetFaxNumber(::core::mem::transmute(&bstrfaxnumber)).into() } - unsafe extern "system" fn HomePhone, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrhomephone: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn HomePhone, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrhomephone: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.HomePhone() { @@ -6478,12 +6478,12 @@ impl IFaxSender_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetHomePhone, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrhomephone: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetHomePhone, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrhomephone: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetHomePhone(::core::mem::transmute(&bstrhomephone)).into() } - unsafe extern "system" fn Name, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -6494,12 +6494,12 @@ impl IFaxSender_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetName, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&bstrname)).into() } - unsafe extern "system" fn TSID, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TSID, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TSID() { @@ -6510,12 +6510,12 @@ impl IFaxSender_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetTSID, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtsid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetTSID, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetTSID(::core::mem::transmute(&bstrtsid)).into() } - unsafe extern "system" fn OfficePhone, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrofficephone: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn OfficePhone, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrofficephone: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OfficePhone() { @@ -6526,12 +6526,12 @@ impl IFaxSender_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetOfficePhone, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrofficephone: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetOfficePhone, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrofficephone: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetOfficePhone(::core::mem::transmute(&bstrofficephone)).into() } - unsafe extern "system" fn OfficeLocation, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrofficelocation: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn OfficeLocation, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrofficelocation: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OfficeLocation() { @@ -6542,12 +6542,12 @@ impl IFaxSender_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetOfficeLocation, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrofficelocation: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetOfficeLocation, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrofficelocation: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetOfficeLocation(::core::mem::transmute(&bstrofficelocation)).into() } - unsafe extern "system" fn State, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrstate: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn State, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrstate: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.State() { @@ -6558,12 +6558,12 @@ impl IFaxSender_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetState, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrstate: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetState, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrstate: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetState(::core::mem::transmute(&bstrstate)).into() } - unsafe extern "system" fn StreetAddress, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrstreetaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn StreetAddress, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrstreetaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.StreetAddress() { @@ -6574,12 +6574,12 @@ impl IFaxSender_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetStreetAddress, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrstreetaddress: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetStreetAddress, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrstreetaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetStreetAddress(::core::mem::transmute(&bstrstreetaddress)).into() } - unsafe extern "system" fn Title, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtitle: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Title, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtitle: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Title() { @@ -6590,12 +6590,12 @@ impl IFaxSender_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetTitle, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtitle: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetTitle, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtitle: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetTitle(::core::mem::transmute(&bstrtitle)).into() } - unsafe extern "system" fn ZipCode, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrzipcode: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ZipCode, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrzipcode: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ZipCode() { @@ -6606,7 +6606,7 @@ impl IFaxSender_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetZipCode, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrzipcode: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetZipCode, Impl: IFaxSender_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrzipcode: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetZipCode(::core::mem::transmute(&bstrzipcode)).into() @@ -6665,8 +6665,8 @@ impl IFaxSender_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFaxServer_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Connect(&self, bstrservername: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ServerName(&self) -> ::windows::core::Result; + fn Connect(&self, bstrservername: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ServerName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetDeviceProviders(&self) -> ::windows::core::Result; fn GetDevices(&self) -> ::windows::core::Result; fn InboundRouting(&self) -> ::windows::core::Result; @@ -6682,13 +6682,13 @@ pub trait IFaxServer_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn ReceiptOptions(&self) -> ::windows::core::Result; fn Security(&self) -> ::windows::core::Result; fn Disconnect(&self) -> ::windows::core::Result<()>; - fn GetExtensionProperty(&self, bstrguid: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn SetExtensionProperty(&self, bstrguid: &super::super::Foundation::BSTR, vproperty: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn GetExtensionProperty(&self, bstrguid: &::windows::core::BSTR) -> ::windows::core::Result; + fn SetExtensionProperty(&self, bstrguid: &::windows::core::BSTR, vproperty: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn ListenToServerEvents(&self, eventtypes: FAX_SERVER_EVENTS_TYPE_ENUM) -> ::windows::core::Result<()>; - fn RegisterDeviceProvider(&self, bstrguid: &super::super::Foundation::BSTR, bstrfriendlyname: &super::super::Foundation::BSTR, bstrimagename: &super::super::Foundation::BSTR, tspname: &super::super::Foundation::BSTR, lfspiversion: i32) -> ::windows::core::Result<()>; - fn UnregisterDeviceProvider(&self, bstruniquename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn RegisterInboundRoutingExtension(&self, bstrextensionname: &super::super::Foundation::BSTR, bstrfriendlyname: &super::super::Foundation::BSTR, bstrimagename: &super::super::Foundation::BSTR, vmethods: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn UnregisterInboundRoutingExtension(&self, bstrextensionuniquename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn RegisterDeviceProvider(&self, bstrguid: &::windows::core::BSTR, bstrfriendlyname: &::windows::core::BSTR, bstrimagename: &::windows::core::BSTR, tspname: &::windows::core::BSTR, lfspiversion: i32) -> ::windows::core::Result<()>; + fn UnregisterDeviceProvider(&self, bstruniquename: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn RegisterInboundRoutingExtension(&self, bstrextensionname: &::windows::core::BSTR, bstrfriendlyname: &::windows::core::BSTR, bstrimagename: &::windows::core::BSTR, vmethods: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn UnregisterInboundRoutingExtension(&self, bstrextensionuniquename: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn RegisteredEvents(&self) -> ::windows::core::Result; fn APIVersion(&self) -> ::windows::core::Result; } @@ -6697,12 +6697,12 @@ impl ::windows::core::RuntimeName for IFaxServer {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFaxServer_Vtbl { pub const fn new, Impl: IFaxServer_Impl, const OFFSET: isize>() -> IFaxServer_Vtbl { - unsafe extern "system" fn Connect, Impl: IFaxServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Connect, Impl: IFaxServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Connect(::core::mem::transmute(&bstrservername)).into() } - unsafe extern "system" fn ServerName, Impl: IFaxServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrservername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ServerName, Impl: IFaxServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrservername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ServerName() { @@ -6872,7 +6872,7 @@ impl IFaxServer_Vtbl { let this = (*this).get_impl(); this.Disconnect().into() } - unsafe extern "system" fn GetExtensionProperty, Impl: IFaxServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrguid: ::core::mem::ManuallyDrop, pvproperty: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetExtensionProperty, Impl: IFaxServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvproperty: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetExtensionProperty(::core::mem::transmute(&bstrguid)) { @@ -6883,7 +6883,7 @@ impl IFaxServer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetExtensionProperty, Impl: IFaxServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrguid: ::core::mem::ManuallyDrop, vproperty: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetExtensionProperty, Impl: IFaxServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, vproperty: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetExtensionProperty(::core::mem::transmute(&bstrguid), ::core::mem::transmute(&vproperty)).into() @@ -6893,22 +6893,22 @@ impl IFaxServer_Vtbl { let this = (*this).get_impl(); this.ListenToServerEvents(::core::mem::transmute_copy(&eventtypes)).into() } - unsafe extern "system" fn RegisterDeviceProvider, Impl: IFaxServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrguid: ::core::mem::ManuallyDrop, bstrfriendlyname: ::core::mem::ManuallyDrop, bstrimagename: ::core::mem::ManuallyDrop, tspname: ::core::mem::ManuallyDrop, lfspiversion: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn RegisterDeviceProvider, Impl: IFaxServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrfriendlyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrimagename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, tspname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lfspiversion: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RegisterDeviceProvider(::core::mem::transmute(&bstrguid), ::core::mem::transmute(&bstrfriendlyname), ::core::mem::transmute(&bstrimagename), ::core::mem::transmute(&tspname), ::core::mem::transmute_copy(&lfspiversion)).into() } - unsafe extern "system" fn UnregisterDeviceProvider, Impl: IFaxServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstruniquename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn UnregisterDeviceProvider, Impl: IFaxServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstruniquename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.UnregisterDeviceProvider(::core::mem::transmute(&bstruniquename)).into() } - unsafe extern "system" fn RegisterInboundRoutingExtension, Impl: IFaxServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrextensionname: ::core::mem::ManuallyDrop, bstrfriendlyname: ::core::mem::ManuallyDrop, bstrimagename: ::core::mem::ManuallyDrop, vmethods: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn RegisterInboundRoutingExtension, Impl: IFaxServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrextensionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrfriendlyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrimagename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, vmethods: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RegisterInboundRoutingExtension(::core::mem::transmute(&bstrextensionname), ::core::mem::transmute(&bstrfriendlyname), ::core::mem::transmute(&bstrimagename), ::core::mem::transmute(&vmethods)).into() } - unsafe extern "system" fn UnregisterInboundRoutingExtension, Impl: IFaxServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrextensionuniquename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn UnregisterInboundRoutingExtension, Impl: IFaxServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrextensionuniquename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.UnregisterInboundRoutingExtension(::core::mem::transmute(&bstrextensionuniquename)).into() @@ -7590,16 +7590,16 @@ impl IStillImageW_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait _IFaxAccountNotify_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn OnIncomingJobAdded(&self, pfaxaccount: &::core::option::Option, bstrjobid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn OnIncomingJobRemoved(&self, pfaxaccount: &::core::option::Option, bstrjobid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn OnIncomingJobChanged(&self, pfaxaccount: &::core::option::Option, bstrjobid: &super::super::Foundation::BSTR, pjobstatus: &::core::option::Option) -> ::windows::core::Result<()>; - fn OnOutgoingJobAdded(&self, pfaxaccount: &::core::option::Option, bstrjobid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn OnOutgoingJobRemoved(&self, pfaxaccount: &::core::option::Option, bstrjobid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn OnOutgoingJobChanged(&self, pfaxaccount: &::core::option::Option, bstrjobid: &super::super::Foundation::BSTR, pjobstatus: &::core::option::Option) -> ::windows::core::Result<()>; - fn OnIncomingMessageAdded(&self, pfaxaccount: &::core::option::Option, bstrmessageid: &super::super::Foundation::BSTR, faddedtoreceivefolder: i16) -> ::windows::core::Result<()>; - fn OnIncomingMessageRemoved(&self, pfaxaccount: &::core::option::Option, bstrmessageid: &super::super::Foundation::BSTR, fremovedfromreceivefolder: i16) -> ::windows::core::Result<()>; - fn OnOutgoingMessageAdded(&self, pfaxaccount: &::core::option::Option, bstrmessageid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn OnOutgoingMessageRemoved(&self, pfaxaccount: &::core::option::Option, bstrmessageid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn OnIncomingJobAdded(&self, pfaxaccount: &::core::option::Option, bstrjobid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn OnIncomingJobRemoved(&self, pfaxaccount: &::core::option::Option, bstrjobid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn OnIncomingJobChanged(&self, pfaxaccount: &::core::option::Option, bstrjobid: &::windows::core::BSTR, pjobstatus: &::core::option::Option) -> ::windows::core::Result<()>; + fn OnOutgoingJobAdded(&self, pfaxaccount: &::core::option::Option, bstrjobid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn OnOutgoingJobRemoved(&self, pfaxaccount: &::core::option::Option, bstrjobid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn OnOutgoingJobChanged(&self, pfaxaccount: &::core::option::Option, bstrjobid: &::windows::core::BSTR, pjobstatus: &::core::option::Option) -> ::windows::core::Result<()>; + fn OnIncomingMessageAdded(&self, pfaxaccount: &::core::option::Option, bstrmessageid: &::windows::core::BSTR, faddedtoreceivefolder: i16) -> ::windows::core::Result<()>; + fn OnIncomingMessageRemoved(&self, pfaxaccount: &::core::option::Option, bstrmessageid: &::windows::core::BSTR, fremovedfromreceivefolder: i16) -> ::windows::core::Result<()>; + fn OnOutgoingMessageAdded(&self, pfaxaccount: &::core::option::Option, bstrmessageid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn OnOutgoingMessageRemoved(&self, pfaxaccount: &::core::option::Option, bstrmessageid: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn OnServerShutDown(&self, pfaxserver: &::core::option::Option) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -7607,52 +7607,52 @@ impl ::windows::core::RuntimeName for _IFaxAccountNotify {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl _IFaxAccountNotify_Vtbl { pub const fn new, Impl: _IFaxAccountNotify_Impl, const OFFSET: isize>() -> _IFaxAccountNotify_Vtbl { - unsafe extern "system" fn OnIncomingJobAdded, Impl: _IFaxAccountNotify_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnIncomingJobAdded, Impl: _IFaxAccountNotify_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnIncomingJobAdded(::core::mem::transmute(&pfaxaccount), ::core::mem::transmute(&bstrjobid)).into() } - unsafe extern "system" fn OnIncomingJobRemoved, Impl: _IFaxAccountNotify_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnIncomingJobRemoved, Impl: _IFaxAccountNotify_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnIncomingJobRemoved(::core::mem::transmute(&pfaxaccount), ::core::mem::transmute(&bstrjobid)).into() } - unsafe extern "system" fn OnIncomingJobChanged, Impl: _IFaxAccountNotify_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop, pjobstatus: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnIncomingJobChanged, Impl: _IFaxAccountNotify_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pjobstatus: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnIncomingJobChanged(::core::mem::transmute(&pfaxaccount), ::core::mem::transmute(&bstrjobid), ::core::mem::transmute(&pjobstatus)).into() } - unsafe extern "system" fn OnOutgoingJobAdded, Impl: _IFaxAccountNotify_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnOutgoingJobAdded, Impl: _IFaxAccountNotify_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnOutgoingJobAdded(::core::mem::transmute(&pfaxaccount), ::core::mem::transmute(&bstrjobid)).into() } - unsafe extern "system" fn OnOutgoingJobRemoved, Impl: _IFaxAccountNotify_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnOutgoingJobRemoved, Impl: _IFaxAccountNotify_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnOutgoingJobRemoved(::core::mem::transmute(&pfaxaccount), ::core::mem::transmute(&bstrjobid)).into() } - unsafe extern "system" fn OnOutgoingJobChanged, Impl: _IFaxAccountNotify_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop, pjobstatus: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnOutgoingJobChanged, Impl: _IFaxAccountNotify_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pjobstatus: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnOutgoingJobChanged(::core::mem::transmute(&pfaxaccount), ::core::mem::transmute(&bstrjobid), ::core::mem::transmute(&pjobstatus)).into() } - unsafe extern "system" fn OnIncomingMessageAdded, Impl: _IFaxAccountNotify_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop, faddedtoreceivefolder: i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnIncomingMessageAdded, Impl: _IFaxAccountNotify_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, faddedtoreceivefolder: i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnIncomingMessageAdded(::core::mem::transmute(&pfaxaccount), ::core::mem::transmute(&bstrmessageid), ::core::mem::transmute_copy(&faddedtoreceivefolder)).into() } - unsafe extern "system" fn OnIncomingMessageRemoved, Impl: _IFaxAccountNotify_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop, fremovedfromreceivefolder: i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnIncomingMessageRemoved, Impl: _IFaxAccountNotify_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fremovedfromreceivefolder: i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnIncomingMessageRemoved(::core::mem::transmute(&pfaxaccount), ::core::mem::transmute(&bstrmessageid), ::core::mem::transmute_copy(&fremovedfromreceivefolder)).into() } - unsafe extern "system" fn OnOutgoingMessageAdded, Impl: _IFaxAccountNotify_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnOutgoingMessageAdded, Impl: _IFaxAccountNotify_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnOutgoingMessageAdded(::core::mem::transmute(&pfaxaccount), ::core::mem::transmute(&bstrmessageid)).into() } - unsafe extern "system" fn OnOutgoingMessageRemoved, Impl: _IFaxAccountNotify_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnOutgoingMessageRemoved, Impl: _IFaxAccountNotify_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnOutgoingMessageRemoved(::core::mem::transmute(&pfaxaccount), ::core::mem::transmute(&bstrmessageid)).into() @@ -7683,16 +7683,16 @@ impl _IFaxAccountNotify_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait _IFaxServerNotify2_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn OnIncomingJobAdded(&self, pfaxserver: &::core::option::Option, bstrjobid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn OnIncomingJobRemoved(&self, pfaxserver: &::core::option::Option, bstrjobid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn OnIncomingJobChanged(&self, pfaxserver: &::core::option::Option, bstrjobid: &super::super::Foundation::BSTR, pjobstatus: &::core::option::Option) -> ::windows::core::Result<()>; - fn OnOutgoingJobAdded(&self, pfaxserver: &::core::option::Option, bstrjobid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn OnOutgoingJobRemoved(&self, pfaxserver: &::core::option::Option, bstrjobid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn OnOutgoingJobChanged(&self, pfaxserver: &::core::option::Option, bstrjobid: &super::super::Foundation::BSTR, pjobstatus: &::core::option::Option) -> ::windows::core::Result<()>; - fn OnIncomingMessageAdded(&self, pfaxserver: &::core::option::Option, bstrmessageid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn OnIncomingMessageRemoved(&self, pfaxserver: &::core::option::Option, bstrmessageid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn OnOutgoingMessageAdded(&self, pfaxserver: &::core::option::Option, bstrmessageid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn OnOutgoingMessageRemoved(&self, pfaxserver: &::core::option::Option, bstrmessageid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn OnIncomingJobAdded(&self, pfaxserver: &::core::option::Option, bstrjobid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn OnIncomingJobRemoved(&self, pfaxserver: &::core::option::Option, bstrjobid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn OnIncomingJobChanged(&self, pfaxserver: &::core::option::Option, bstrjobid: &::windows::core::BSTR, pjobstatus: &::core::option::Option) -> ::windows::core::Result<()>; + fn OnOutgoingJobAdded(&self, pfaxserver: &::core::option::Option, bstrjobid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn OnOutgoingJobRemoved(&self, pfaxserver: &::core::option::Option, bstrjobid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn OnOutgoingJobChanged(&self, pfaxserver: &::core::option::Option, bstrjobid: &::windows::core::BSTR, pjobstatus: &::core::option::Option) -> ::windows::core::Result<()>; + fn OnIncomingMessageAdded(&self, pfaxserver: &::core::option::Option, bstrmessageid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn OnIncomingMessageRemoved(&self, pfaxserver: &::core::option::Option, bstrmessageid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn OnOutgoingMessageAdded(&self, pfaxserver: &::core::option::Option, bstrmessageid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn OnOutgoingMessageRemoved(&self, pfaxserver: &::core::option::Option, bstrmessageid: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn OnReceiptOptionsChange(&self, pfaxserver: &::core::option::Option) -> ::windows::core::Result<()>; fn OnActivityLoggingConfigChange(&self, pfaxserver: &::core::option::Option) -> ::windows::core::Result<()>; fn OnSecurityConfigChange(&self, pfaxserver: &::core::option::Option) -> ::windows::core::Result<()>; @@ -7705,7 +7705,7 @@ pub trait _IFaxServerNotify2_Impl: Sized + super::super::System::Com::IDispatch_ fn OnOutboundRoutingRulesConfigChange(&self, pfaxserver: &::core::option::Option) -> ::windows::core::Result<()>; fn OnServerActivityChange(&self, pfaxserver: &::core::option::Option, lincomingmessages: i32, lroutingmessages: i32, loutgoingmessages: i32, lqueuedmessages: i32) -> ::windows::core::Result<()>; fn OnQueuesStatusChange(&self, pfaxserver: &::core::option::Option, boutgoingqueueblocked: i16, boutgoingqueuepaused: i16, bincomingqueueblocked: i16) -> ::windows::core::Result<()>; - fn OnNewCall(&self, pfaxserver: &::core::option::Option, lcallid: i32, ldeviceid: i32, bstrcallerid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn OnNewCall(&self, pfaxserver: &::core::option::Option, lcallid: i32, ldeviceid: i32, bstrcallerid: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn OnServerShutDown(&self, pfaxserver: &::core::option::Option) -> ::windows::core::Result<()>; fn OnDeviceStatusChange(&self, pfaxserver: &::core::option::Option, ldeviceid: i32, bpoweredoff: i16, bsending: i16, breceiving: i16, bringing: i16) -> ::windows::core::Result<()>; fn OnGeneralServerConfigChanged(&self, pfaxserver: &::core::option::Option) -> ::windows::core::Result<()>; @@ -7715,52 +7715,52 @@ impl ::windows::core::RuntimeName for _IFaxServerNotify2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl _IFaxServerNotify2_Vtbl { pub const fn new, Impl: _IFaxServerNotify2_Impl, const OFFSET: isize>() -> _IFaxServerNotify2_Vtbl { - unsafe extern "system" fn OnIncomingJobAdded, Impl: _IFaxServerNotify2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnIncomingJobAdded, Impl: _IFaxServerNotify2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnIncomingJobAdded(::core::mem::transmute(&pfaxserver), ::core::mem::transmute(&bstrjobid)).into() } - unsafe extern "system" fn OnIncomingJobRemoved, Impl: _IFaxServerNotify2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnIncomingJobRemoved, Impl: _IFaxServerNotify2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnIncomingJobRemoved(::core::mem::transmute(&pfaxserver), ::core::mem::transmute(&bstrjobid)).into() } - unsafe extern "system" fn OnIncomingJobChanged, Impl: _IFaxServerNotify2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop, pjobstatus: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnIncomingJobChanged, Impl: _IFaxServerNotify2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pjobstatus: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnIncomingJobChanged(::core::mem::transmute(&pfaxserver), ::core::mem::transmute(&bstrjobid), ::core::mem::transmute(&pjobstatus)).into() } - unsafe extern "system" fn OnOutgoingJobAdded, Impl: _IFaxServerNotify2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnOutgoingJobAdded, Impl: _IFaxServerNotify2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnOutgoingJobAdded(::core::mem::transmute(&pfaxserver), ::core::mem::transmute(&bstrjobid)).into() } - unsafe extern "system" fn OnOutgoingJobRemoved, Impl: _IFaxServerNotify2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnOutgoingJobRemoved, Impl: _IFaxServerNotify2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnOutgoingJobRemoved(::core::mem::transmute(&pfaxserver), ::core::mem::transmute(&bstrjobid)).into() } - unsafe extern "system" fn OnOutgoingJobChanged, Impl: _IFaxServerNotify2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop, pjobstatus: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnOutgoingJobChanged, Impl: _IFaxServerNotify2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pjobstatus: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnOutgoingJobChanged(::core::mem::transmute(&pfaxserver), ::core::mem::transmute(&bstrjobid), ::core::mem::transmute(&pjobstatus)).into() } - unsafe extern "system" fn OnIncomingMessageAdded, Impl: _IFaxServerNotify2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnIncomingMessageAdded, Impl: _IFaxServerNotify2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnIncomingMessageAdded(::core::mem::transmute(&pfaxserver), ::core::mem::transmute(&bstrmessageid)).into() } - unsafe extern "system" fn OnIncomingMessageRemoved, Impl: _IFaxServerNotify2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnIncomingMessageRemoved, Impl: _IFaxServerNotify2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnIncomingMessageRemoved(::core::mem::transmute(&pfaxserver), ::core::mem::transmute(&bstrmessageid)).into() } - unsafe extern "system" fn OnOutgoingMessageAdded, Impl: _IFaxServerNotify2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnOutgoingMessageAdded, Impl: _IFaxServerNotify2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnOutgoingMessageAdded(::core::mem::transmute(&pfaxserver), ::core::mem::transmute(&bstrmessageid)).into() } - unsafe extern "system" fn OnOutgoingMessageRemoved, Impl: _IFaxServerNotify2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnOutgoingMessageRemoved, Impl: _IFaxServerNotify2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnOutgoingMessageRemoved(::core::mem::transmute(&pfaxserver), ::core::mem::transmute(&bstrmessageid)).into() @@ -7825,7 +7825,7 @@ impl _IFaxServerNotify2_Vtbl { let this = (*this).get_impl(); this.OnQueuesStatusChange(::core::mem::transmute(&pfaxserver), ::core::mem::transmute_copy(&boutgoingqueueblocked), ::core::mem::transmute_copy(&boutgoingqueuepaused), ::core::mem::transmute_copy(&bincomingqueueblocked)).into() } - unsafe extern "system" fn OnNewCall, Impl: _IFaxServerNotify2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, lcallid: i32, ldeviceid: i32, bstrcallerid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnNewCall, Impl: _IFaxServerNotify2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, lcallid: i32, ldeviceid: i32, bstrcallerid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnNewCall(::core::mem::transmute(&pfaxserver), ::core::mem::transmute_copy(&lcallid), ::core::mem::transmute_copy(&ldeviceid), ::core::mem::transmute(&bstrcallerid)).into() diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Fax/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/Fax/mod.rs index be5b92f5ce..40c0f217a2 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Fax/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Fax/mod.rs @@ -772,11 +772,9 @@ where pub struct IFaxAccount(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IFaxAccount { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AccountName(&self) -> ::windows::core::Result { + pub unsafe fn AccountName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AccountName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AccountName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -858,10 +856,7 @@ unsafe impl ::windows::core::Interface for IFaxAccount { #[doc(hidden)] pub struct IFaxAccount_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub AccountName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstraccountname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AccountName: usize, + pub AccountName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstraccountname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Folders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppfolders: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -1006,14 +1001,11 @@ impl IFaxAccountIncomingArchive { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetMessages)(::windows::core::Interface::as_raw(self), lprefetchsize, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetMessage<'a, P0>(&self, bstrmessageid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetMessage(&self, bstrmessageid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetMessage)(::windows::core::Interface::as_raw(self), bstrmessageid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrmessageid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1089,9 +1081,9 @@ pub struct IFaxAccountIncomingArchive_Vtbl { pub GetMessages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lprefetchsize: i32, pfaxincomingmessageiterator: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetMessages: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop, pfaxincomingmessage: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfaxincomingmessage: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetMessage: usize, } #[doc = "*Required features: `\"Win32_Devices_Fax\"`, `\"Win32_System_Com\"`*"] @@ -1106,14 +1098,11 @@ impl IFaxAccountIncomingQueue { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetJobs)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetJob<'a, P0>(&self, bstrjobid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetJob(&self, bstrjobid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetJob)(::windows::core::Interface::as_raw(self), bstrjobid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetJob)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrjobid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1186,9 +1175,9 @@ pub struct IFaxAccountIncomingQueue_Vtbl { pub GetJobs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxincomingjobs: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetJobs: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetJob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop, pfaxincomingjob: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetJob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfaxincomingjob: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetJob: usize, } #[doc = "*Required features: `\"Win32_Devices_Fax\"`, `\"Win32_System_Com\"`*"] @@ -1287,14 +1276,11 @@ impl IFaxAccountOutgoingArchive { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetMessages)(::windows::core::Interface::as_raw(self), lprefetchsize, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetMessage<'a, P0>(&self, bstrmessageid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetMessage(&self, bstrmessageid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetMessage)(::windows::core::Interface::as_raw(self), bstrmessageid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrmessageid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1370,9 +1356,9 @@ pub struct IFaxAccountOutgoingArchive_Vtbl { pub GetMessages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lprefetchsize: i32, pfaxoutgoingmessageiterator: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetMessages: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop, pfaxoutgoingmessage: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfaxoutgoingmessage: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetMessage: usize, } #[doc = "*Required features: `\"Win32_Devices_Fax\"`, `\"Win32_System_Com\"`*"] @@ -1387,14 +1373,11 @@ impl IFaxAccountOutgoingQueue { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetJobs)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetJob<'a, P0>(&self, bstrjobid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetJob(&self, bstrjobid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetJob)(::windows::core::Interface::as_raw(self), bstrjobid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetJob)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrjobid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1467,9 +1450,9 @@ pub struct IFaxAccountOutgoingQueue_Vtbl { pub GetJobs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxoutgoingjobs: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetJobs: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetJob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop, pfaxoutgoingjob: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetJob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfaxoutgoingjob: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetJob: usize, } #[doc = "*Required features: `\"Win32_Devices_Fax\"`, `\"Win32_System_Com\"`*"] @@ -1484,31 +1467,20 @@ impl IFaxAccountSet { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetAccounts)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetAccount<'a, P0>(&self, bstraccountname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetAccount(&self, bstraccountname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetAccount)(::windows::core::Interface::as_raw(self), bstraccountname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetAccount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstraccountname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn AddAccount<'a, P0>(&self, bstraccountname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn AddAccount(&self, bstraccountname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AddAccount)(::windows::core::Interface::as_raw(self), bstraccountname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AddAccount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstraccountname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoveAccount<'a, P0>(&self, bstraccountname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).RemoveAccount)(::windows::core::Interface::as_raw(self), bstraccountname.into().abi()).ok() + pub unsafe fn RemoveAccount(&self, bstraccountname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).RemoveAccount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstraccountname)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1581,18 +1553,15 @@ pub struct IFaxAccountSet_Vtbl { pub GetAccounts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppfaxaccounts: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetAccounts: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetAccount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstraccountname: ::core::mem::ManuallyDrop, pfaxaccount: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetAccount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstraccountname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfaxaccount: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetAccount: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub AddAccount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstraccountname: ::core::mem::ManuallyDrop, pfaxaccount: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub AddAccount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstraccountname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfaxaccount: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] AddAccount: usize, - #[cfg(feature = "Win32_Foundation")] - pub RemoveAccount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstraccountname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RemoveAccount: usize, + pub RemoveAccount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstraccountname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_Fax\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1809,19 +1778,12 @@ impl IFaxActivityLogging { pub unsafe fn SetLogOutgoing(&self, blogoutgoing: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetLogOutgoing)(::windows::core::Interface::as_raw(self), blogoutgoing).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DatabasePath(&self) -> ::windows::core::Result { + pub unsafe fn DatabasePath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DatabasePath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DatabasePath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDatabasePath<'a, P0>(&self, bstrdatabasepath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDatabasePath)(::windows::core::Interface::as_raw(self), bstrdatabasepath.into().abi()).ok() + pub unsafe fn SetDatabasePath(&self, bstrdatabasepath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDatabasePath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdatabasepath)).ok() } pub unsafe fn Refresh(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Refresh)(::windows::core::Interface::as_raw(self)).ok() @@ -1900,14 +1862,8 @@ pub struct IFaxActivityLogging_Vtbl { pub SetLogIncoming: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, blogincoming: i16) -> ::windows::core::HRESULT, pub LogOutgoing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pblogoutgoing: *mut i16) -> ::windows::core::HRESULT, pub SetLogOutgoing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, blogoutgoing: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub DatabasePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdatabasepath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DatabasePath: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDatabasePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdatabasepath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDatabasePath: usize, + pub DatabasePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdatabasepath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDatabasePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdatabasepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Save: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } @@ -1924,19 +1880,12 @@ impl IFaxConfiguration { pub unsafe fn SetUseArchive(&self, busearchive: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetUseArchive)(::windows::core::Interface::as_raw(self), busearchive).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ArchiveLocation(&self) -> ::windows::core::Result { + pub unsafe fn ArchiveLocation(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ArchiveLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ArchiveLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetArchiveLocation<'a, P0>(&self, bstrarchivelocation: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetArchiveLocation)(::windows::core::Interface::as_raw(self), bstrarchivelocation.into().abi()).ok() + pub unsafe fn SetArchiveLocation(&self, bstrarchivelocation: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetArchiveLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrarchivelocation)).ok() } pub unsafe fn SizeQuotaWarning(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2140,14 +2089,8 @@ pub struct IFaxConfiguration_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub UseArchive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbusearchive: *mut i16) -> ::windows::core::HRESULT, pub SetUseArchive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, busearchive: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ArchiveLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrarchivelocation: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ArchiveLocation: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetArchiveLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrarchivelocation: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetArchiveLocation: usize, + pub ArchiveLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrarchivelocation: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetArchiveLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrarchivelocation: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SizeQuotaWarning: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbsizequotawarning: *mut i16) -> ::windows::core::HRESULT, pub SetSizeQuotaWarning: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bsizequotawarning: i16) -> ::windows::core::HRESULT, pub HighQuotaWaterMark: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plhighquotawatermark: *mut i32) -> ::windows::core::HRESULT, @@ -2197,17 +2140,13 @@ impl IFaxDevice { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeviceName(&self) -> ::windows::core::Result { + pub unsafe fn DeviceName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DeviceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DeviceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ProviderUniqueName(&self) -> ::windows::core::Result { + pub unsafe fn ProviderUniqueName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ProviderUniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ProviderUniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn PoweredOff(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2227,19 +2166,12 @@ impl IFaxDevice { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).UsedRoutingMethods)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bstrdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), bstrdescription.into().abi()).ok() + pub unsafe fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdescription)).ok() } pub unsafe fn SendEnabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2262,33 +2194,19 @@ impl IFaxDevice { pub unsafe fn SetRingsBeforeAnswer(&self, lringsbeforeanswer: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetRingsBeforeAnswer)(::windows::core::Interface::as_raw(self), lringsbeforeanswer).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CSID(&self) -> ::windows::core::Result { + pub unsafe fn CSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCSID<'a, P0>(&self, bstrcsid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetCSID)(::windows::core::Interface::as_raw(self), bstrcsid.into().abi()).ok() + pub unsafe fn SetCSID(&self, bstrcsid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetCSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcsid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TSID(&self) -> ::windows::core::Result { + pub unsafe fn TSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetTSID<'a, P0>(&self, bstrtsid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetTSID)(::windows::core::Interface::as_raw(self), bstrtsid.into().abi()).ok() + pub unsafe fn SetTSID(&self, bstrtsid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetTSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtsid)).ok() } pub unsafe fn Refresh(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Refresh)(::windows::core::Interface::as_raw(self)).ok() @@ -2298,29 +2216,20 @@ impl IFaxDevice { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetExtensionProperty<'a, P0>(&self, bstrguid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetExtensionProperty(&self, bstrguid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetExtensionProperty)(::windows::core::Interface::as_raw(self), bstrguid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetExtensionProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrguid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn SetExtensionProperty<'a, P0, P1>(&self, bstrguid: P0, vproperty: P1) -> ::windows::core::Result<()> + pub unsafe fn SetExtensionProperty<'a, P0>(&self, bstrguid: &::windows::core::BSTR, vproperty: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).SetExtensionProperty)(::windows::core::Interface::as_raw(self), bstrguid.into().abi(), vproperty.into().abi()).ok() + (::windows::core::Interface::vtable(self).SetExtensionProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrguid), vproperty.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UseRoutingMethod<'a, P0>(&self, bstrmethodguid: P0, buse: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).UseRoutingMethod)(::windows::core::Interface::as_raw(self), bstrmethodguid.into().abi(), buse).ok() + pub unsafe fn UseRoutingMethod(&self, bstrmethodguid: &::windows::core::BSTR, buse: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).UseRoutingMethod)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrmethodguid), buse).ok() } pub unsafe fn RingingNow(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2397,14 +2306,8 @@ unsafe impl ::windows::core::Interface for IFaxDevice { pub struct IFaxDevice_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plid: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub DeviceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdevicename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeviceName: usize, - #[cfg(feature = "Win32_Foundation")] - pub ProviderUniqueName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprovideruniquename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ProviderUniqueName: usize, + pub DeviceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdevicename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ProviderUniqueName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprovideruniquename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub PoweredOff: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbpoweredoff: *mut i16) -> ::windows::core::HRESULT, pub ReceivingNow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbreceivingnow: *mut i16) -> ::windows::core::HRESULT, pub SendingNow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbsendingnow: *mut i16) -> ::windows::core::HRESULT, @@ -2412,50 +2315,29 @@ pub struct IFaxDevice_Vtbl { pub UsedRoutingMethods: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvusedroutingmethods: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] UsedRoutingMethods: usize, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDescription: usize, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SendEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbsendenabled: *mut i16) -> ::windows::core::HRESULT, pub SetSendEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bsendenabled: i16) -> ::windows::core::HRESULT, pub ReceiveMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, preceivemode: *mut FAX_DEVICE_RECEIVE_MODE_ENUM) -> ::windows::core::HRESULT, pub SetReceiveMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, receivemode: FAX_DEVICE_RECEIVE_MODE_ENUM) -> ::windows::core::HRESULT, pub RingsBeforeAnswer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plringsbeforeanswer: *mut i32) -> ::windows::core::HRESULT, pub SetRingsBeforeAnswer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lringsbeforeanswer: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CSID: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetCSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcsid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetCSID: usize, - #[cfg(feature = "Win32_Foundation")] - pub TSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TSID: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetTSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtsid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetTSID: usize, + pub CSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetCSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub TSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetTSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Save: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetExtensionProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrguid: ::core::mem::ManuallyDrop, pvproperty: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetExtensionProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvproperty: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetExtensionProperty: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub SetExtensionProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrguid: ::core::mem::ManuallyDrop, vproperty: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub SetExtensionProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, vproperty: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SetExtensionProperty: usize, - #[cfg(feature = "Win32_Foundation")] - pub UseRoutingMethod: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmethodguid: ::core::mem::ManuallyDrop, buse: i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UseRoutingMethod: usize, + pub UseRoutingMethod: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmethodguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, buse: i16) -> ::windows::core::HRESULT, pub RingingNow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbringingnow: *mut i16) -> ::windows::core::HRESULT, pub AnswerCall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } @@ -2566,29 +2448,21 @@ pub struct IFaxDeviceIds_Vtbl { pub struct IFaxDeviceProvider(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IFaxDeviceProvider { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FriendlyName(&self) -> ::windows::core::Result { + pub unsafe fn FriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ImageName(&self) -> ::windows::core::Result { + pub unsafe fn ImageName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ImageName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ImageName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UniqueName(&self) -> ::windows::core::Result { + pub unsafe fn UniqueName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TapiProviderName(&self) -> ::windows::core::Result { + pub unsafe fn TapiProviderName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TapiProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TapiProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn MajorVersion(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2691,22 +2565,10 @@ unsafe impl ::windows::core::Interface for IFaxDeviceProvider { #[doc(hidden)] pub struct IFaxDeviceProvider_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub FriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfriendlyname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FriendlyName: usize, - #[cfg(feature = "Win32_Foundation")] - pub ImageName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrimagename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ImageName: usize, - #[cfg(feature = "Win32_Foundation")] - pub UniqueName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstruniquename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UniqueName: usize, - #[cfg(feature = "Win32_Foundation")] - pub TapiProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtapiprovidername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TapiProviderName: usize, + pub FriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfriendlyname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ImageName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrimagename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub UniqueName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstruniquename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub TapiProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtapiprovidername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub MajorVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plmajorversion: *mut i32) -> ::windows::core::HRESULT, pub MinorVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plminorversion: *mut i32) -> ::windows::core::HRESULT, pub MajorBuild: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plmajorbuild: *mut i32) -> ::windows::core::HRESULT, @@ -2929,19 +2791,12 @@ pub struct IFaxDevices_Vtbl { pub struct IFaxDocument(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IFaxDocument { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Body(&self) -> ::windows::core::Result { + pub unsafe fn Body(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Body)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Body)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetBody<'a, P0>(&self, bstrbody: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetBody)(::windows::core::Interface::as_raw(self), bstrbody.into().abi()).ok() + pub unsafe fn SetBody(&self, bstrbody: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetBody)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrbody)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2955,47 +2810,26 @@ impl IFaxDocument { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Recipients)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CoverPage(&self) -> ::windows::core::Result { + pub unsafe fn CoverPage(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CoverPage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CoverPage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCoverPage<'a, P0>(&self, bstrcoverpage: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetCoverPage)(::windows::core::Interface::as_raw(self), bstrcoverpage.into().abi()).ok() + pub unsafe fn SetCoverPage(&self, bstrcoverpage: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetCoverPage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcoverpage)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Subject(&self) -> ::windows::core::Result { + pub unsafe fn Subject(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Subject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Subject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSubject<'a, P0>(&self, bstrsubject: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSubject)(::windows::core::Interface::as_raw(self), bstrsubject.into().abi()).ok() + pub unsafe fn SetSubject(&self, bstrsubject: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSubject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsubject)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Note(&self) -> ::windows::core::Result { + pub unsafe fn Note(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Note)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Note)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetNote<'a, P0>(&self, bstrnote: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetNote)(::windows::core::Interface::as_raw(self), bstrnote.into().abi()).ok() + pub unsafe fn SetNote(&self, bstrnote: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetNote)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrnote)).ok() } pub unsafe fn ScheduleTime(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3004,33 +2838,19 @@ impl IFaxDocument { pub unsafe fn SetScheduleTime(&self, datescheduletime: f64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetScheduleTime)(::windows::core::Interface::as_raw(self), datescheduletime).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ReceiptAddress(&self) -> ::windows::core::Result { + pub unsafe fn ReceiptAddress(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ReceiptAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ReceiptAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetReceiptAddress<'a, P0>(&self, bstrreceiptaddress: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetReceiptAddress)(::windows::core::Interface::as_raw(self), bstrreceiptaddress.into().abi()).ok() + pub unsafe fn SetReceiptAddress(&self, bstrreceiptaddress: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetReceiptAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrreceiptaddress)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DocumentName(&self) -> ::windows::core::Result { + pub unsafe fn DocumentName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DocumentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DocumentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDocumentName<'a, P0>(&self, bstrdocumentname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDocumentName)(::windows::core::Interface::as_raw(self), bstrdocumentname.into().abi()).ok() + pub unsafe fn SetDocumentName(&self, bstrdocumentname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDocumentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdocumentname)).ok() } pub unsafe fn CallHandle(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3090,12 +2910,9 @@ impl IFaxDocument { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Submit<'a, P0>(&self, bstrfaxservername: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn Submit(&self, bstrfaxservername: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Submit)(::windows::core::Interface::as_raw(self), bstrfaxservername.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Submit)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrfaxservername), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3180,14 +2997,8 @@ unsafe impl ::windows::core::Interface for IFaxDocument { #[doc(hidden)] pub struct IFaxDocument_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Body: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbody: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Body: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetBody: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrbody: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetBody: usize, + pub Body: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbody: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetBody: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrbody: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Sender: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppfaxsender: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -3196,48 +3007,18 @@ pub struct IFaxDocument_Vtbl { pub Recipients: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppfaxrecipients: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Recipients: usize, - #[cfg(feature = "Win32_Foundation")] - pub CoverPage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcoverpage: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CoverPage: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetCoverPage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcoverpage: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetCoverPage: usize, - #[cfg(feature = "Win32_Foundation")] - pub Subject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsubject: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Subject: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSubject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsubject: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSubject: usize, - #[cfg(feature = "Win32_Foundation")] - pub Note: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrnote: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Note: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetNote: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrnote: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetNote: usize, + pub CoverPage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcoverpage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetCoverPage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcoverpage: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Subject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsubject: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSubject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsubject: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Note: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrnote: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetNote: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrnote: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ScheduleTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdatescheduletime: *mut f64) -> ::windows::core::HRESULT, pub SetScheduleTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, datescheduletime: f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ReceiptAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrreceiptaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ReceiptAddress: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetReceiptAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrreceiptaddress: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetReceiptAddress: usize, - #[cfg(feature = "Win32_Foundation")] - pub DocumentName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdocumentname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DocumentName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDocumentName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdocumentname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDocumentName: usize, + pub ReceiptAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrreceiptaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetReceiptAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrreceiptaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DocumentName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdocumentname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDocumentName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdocumentname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub CallHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcallhandle: *mut i32) -> ::windows::core::HRESULT, pub SetCallHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lcallhandle: i32) -> ::windows::core::HRESULT, pub CoverPageType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcoverpagetype: *mut FAX_COVERPAGE_TYPE_ENUM) -> ::windows::core::HRESULT, @@ -3259,7 +3040,7 @@ pub struct IFaxDocument_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] putref_TapiConnection: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub Submit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfaxservername: ::core::mem::ManuallyDrop, pvfaxoutgoingjobids: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub Submit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfaxservername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvfaxoutgoingjobids: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Submit: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3275,19 +3056,12 @@ pub struct IFaxDocument_Vtbl { pub struct IFaxDocument2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IFaxDocument2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Body(&self) -> ::windows::core::Result { + pub unsafe fn Body(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Body)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Body)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetBody<'a, P0>(&self, bstrbody: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetBody)(::windows::core::Interface::as_raw(self), bstrbody.into().abi()).ok() + pub unsafe fn SetBody(&self, bstrbody: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetBody)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrbody)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3301,47 +3075,26 @@ impl IFaxDocument2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Recipients)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CoverPage(&self) -> ::windows::core::Result { + pub unsafe fn CoverPage(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CoverPage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CoverPage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCoverPage<'a, P0>(&self, bstrcoverpage: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetCoverPage)(::windows::core::Interface::as_raw(self), bstrcoverpage.into().abi()).ok() + pub unsafe fn SetCoverPage(&self, bstrcoverpage: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetCoverPage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcoverpage)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Subject(&self) -> ::windows::core::Result { + pub unsafe fn Subject(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Subject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Subject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSubject<'a, P0>(&self, bstrsubject: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetSubject)(::windows::core::Interface::as_raw(self), bstrsubject.into().abi()).ok() + pub unsafe fn SetSubject(&self, bstrsubject: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetSubject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsubject)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Note(&self) -> ::windows::core::Result { + pub unsafe fn Note(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Note)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Note)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetNote<'a, P0>(&self, bstrnote: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetNote)(::windows::core::Interface::as_raw(self), bstrnote.into().abi()).ok() + pub unsafe fn SetNote(&self, bstrnote: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetNote)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrnote)).ok() } pub unsafe fn ScheduleTime(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3350,33 +3103,19 @@ impl IFaxDocument2 { pub unsafe fn SetScheduleTime(&self, datescheduletime: f64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetScheduleTime)(::windows::core::Interface::as_raw(self), datescheduletime).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ReceiptAddress(&self) -> ::windows::core::Result { + pub unsafe fn ReceiptAddress(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ReceiptAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ReceiptAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetReceiptAddress<'a, P0>(&self, bstrreceiptaddress: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetReceiptAddress)(::windows::core::Interface::as_raw(self), bstrreceiptaddress.into().abi()).ok() + pub unsafe fn SetReceiptAddress(&self, bstrreceiptaddress: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetReceiptAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrreceiptaddress)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DocumentName(&self) -> ::windows::core::Result { + pub unsafe fn DocumentName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.DocumentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.DocumentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDocumentName<'a, P0>(&self, bstrdocumentname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetDocumentName)(::windows::core::Interface::as_raw(self), bstrdocumentname.into().abi()).ok() + pub unsafe fn SetDocumentName(&self, bstrdocumentname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetDocumentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdocumentname)).ok() } pub unsafe fn CallHandle(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3436,12 +3175,9 @@ impl IFaxDocument2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Submit<'a, P0>(&self, bstrfaxservername: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn Submit(&self, bstrfaxservername: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Submit)(::windows::core::Interface::as_raw(self), bstrfaxservername.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Submit)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrfaxservername), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3459,11 +3195,9 @@ impl IFaxDocument2 { pub unsafe fn SetAttachFaxToReceipt(&self, battachfax: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetAttachFaxToReceipt)(::windows::core::Interface::as_raw(self), battachfax).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SubmissionId(&self) -> ::windows::core::Result { + pub unsafe fn SubmissionId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SubmissionId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SubmissionId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3481,11 +3215,8 @@ impl IFaxDocument2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Submit2<'a, P0>(&self, bstrfaxservername: P0, pvfaxoutgoingjobids: &mut super::super::System::Com::VARIANT, plerrorbodyfile: &mut i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Submit2)(::windows::core::Interface::as_raw(self), bstrfaxservername.into().abi(), ::core::mem::transmute(pvfaxoutgoingjobids), ::core::mem::transmute(plerrorbodyfile)).ok() + pub unsafe fn Submit2(&self, bstrfaxservername: &::windows::core::BSTR, pvfaxoutgoingjobids: &mut super::super::System::Com::VARIANT, plerrorbodyfile: &mut i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Submit2)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrfaxservername), ::core::mem::transmute(pvfaxoutgoingjobids), ::core::mem::transmute(plerrorbodyfile)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3580,10 +3311,7 @@ unsafe impl ::windows::core::Interface for IFaxDocument2 { #[doc(hidden)] pub struct IFaxDocument2_Vtbl { pub base__: IFaxDocument_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub SubmissionId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsubmissionid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SubmissionId: usize, + pub SubmissionId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsubmissionid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub Bodies: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvbodies: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -3593,7 +3321,7 @@ pub struct IFaxDocument2_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SetBodies: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub Submit2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfaxservername: ::core::mem::ManuallyDrop, pvfaxoutgoingjobids: *mut super::super::System::Com::VARIANT, plerrorbodyfile: *mut i32) -> ::windows::core::HRESULT, + pub Submit2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfaxservername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvfaxoutgoingjobids: *mut super::super::System::Com::VARIANT, plerrorbodyfile: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Submit2: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3933,23 +3661,17 @@ pub struct IFaxInboundRouting_Vtbl { pub struct IFaxInboundRoutingExtension(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IFaxInboundRoutingExtension { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FriendlyName(&self) -> ::windows::core::Result { + pub unsafe fn FriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ImageName(&self) -> ::windows::core::Result { + pub unsafe fn ImageName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ImageName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ImageName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UniqueName(&self) -> ::windows::core::Result { + pub unsafe fn UniqueName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn MajorVersion(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4052,18 +3774,9 @@ unsafe impl ::windows::core::Interface for IFaxInboundRoutingExtension { #[doc(hidden)] pub struct IFaxInboundRoutingExtension_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub FriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfriendlyname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FriendlyName: usize, - #[cfg(feature = "Win32_Foundation")] - pub ImageName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrimagename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ImageName: usize, - #[cfg(feature = "Win32_Foundation")] - pub UniqueName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstruniquename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UniqueName: usize, + pub FriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfriendlyname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ImageName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrimagename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub UniqueName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstruniquename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub MajorVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plmajorversion: *mut i32) -> ::windows::core::HRESULT, pub MinorVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plminorversion: *mut i32) -> ::windows::core::HRESULT, pub MajorBuild: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plmajorbuild: *mut i32) -> ::windows::core::HRESULT, @@ -4179,35 +3892,25 @@ pub struct IFaxInboundRoutingExtensions_Vtbl { pub struct IFaxInboundRoutingMethod(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IFaxInboundRoutingMethod { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GUID(&self) -> ::windows::core::Result { + pub unsafe fn GUID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FunctionName(&self) -> ::windows::core::Result { + pub unsafe fn FunctionName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FunctionName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FunctionName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExtensionFriendlyName(&self) -> ::windows::core::Result { + pub unsafe fn ExtensionFriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ExtensionFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ExtensionFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExtensionImageName(&self) -> ::windows::core::Result { + pub unsafe fn ExtensionImageName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ExtensionImageName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ExtensionImageName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Priority(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4289,26 +3992,11 @@ unsafe impl ::windows::core::Interface for IFaxInboundRoutingMethod { #[doc(hidden)] pub struct IFaxInboundRoutingMethod_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub GUID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrguid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GUID: usize, - #[cfg(feature = "Win32_Foundation")] - pub FunctionName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfunctionname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FunctionName: usize, - #[cfg(feature = "Win32_Foundation")] - pub ExtensionFriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrextensionfriendlyname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ExtensionFriendlyName: usize, - #[cfg(feature = "Win32_Foundation")] - pub ExtensionImageName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrextensionimagename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ExtensionImageName: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GUID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrguid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FunctionName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfunctionname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ExtensionFriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrextensionfriendlyname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ExtensionImageName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrextensionimagename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Priority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plpriority: *mut i32) -> ::windows::core::HRESULT, pub SetPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpriority: i32) -> ::windows::core::HRESULT, pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -4424,19 +4112,12 @@ impl IFaxIncomingArchive { pub unsafe fn SetUseArchive(&self, busearchive: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetUseArchive)(::windows::core::Interface::as_raw(self), busearchive).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ArchiveFolder(&self) -> ::windows::core::Result { + pub unsafe fn ArchiveFolder(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ArchiveFolder)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ArchiveFolder)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetArchiveFolder<'a, P0>(&self, bstrarchivefolder: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetArchiveFolder)(::windows::core::Interface::as_raw(self), bstrarchivefolder.into().abi()).ok() + pub unsafe fn SetArchiveFolder(&self, bstrarchivefolder: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetArchiveFolder)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrarchivefolder)).ok() } pub unsafe fn SizeQuotaWarning(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4486,14 +4167,11 @@ impl IFaxIncomingArchive { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetMessages)(::windows::core::Interface::as_raw(self), lprefetchsize, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetMessage<'a, P0>(&self, bstrmessageid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetMessage(&self, bstrmessageid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetMessage)(::windows::core::Interface::as_raw(self), bstrmessageid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrmessageid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -4564,14 +4242,8 @@ pub struct IFaxIncomingArchive_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub UseArchive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbusearchive: *mut i16) -> ::windows::core::HRESULT, pub SetUseArchive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, busearchive: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ArchiveFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrarchivefolder: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ArchiveFolder: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetArchiveFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrarchivefolder: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetArchiveFolder: usize, + pub ArchiveFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrarchivefolder: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetArchiveFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrarchivefolder: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SizeQuotaWarning: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbsizequotawarning: *mut i16) -> ::windows::core::HRESULT, pub SetSizeQuotaWarning: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bsizequotawarning: i16) -> ::windows::core::HRESULT, pub HighQuotaWaterMark: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plhighquotawatermark: *mut i32) -> ::windows::core::HRESULT, @@ -4588,9 +4260,9 @@ pub struct IFaxIncomingArchive_Vtbl { pub GetMessages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lprefetchsize: i32, pfaxincomingmessageiterator: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetMessages: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop, pfaxincomingmessage: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfaxincomingmessage: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetMessage: usize, } #[doc = "*Required features: `\"Win32_Devices_Fax\"`, `\"Win32_System_Com\"`*"] @@ -4603,11 +4275,9 @@ impl IFaxIncomingJob { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Size)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Id(&self) -> ::windows::core::Result { + pub unsafe fn Id(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CurrentPage(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4625,11 +4295,9 @@ impl IFaxIncomingJob { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ExtendedStatusCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExtendedStatus(&self) -> ::windows::core::Result { + pub unsafe fn ExtendedStatus(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ExtendedStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ExtendedStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn AvailableOperations(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4647,29 +4315,21 @@ impl IFaxIncomingJob { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).TransmissionEnd)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CSID(&self) -> ::windows::core::Result { + pub unsafe fn CSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TSID(&self) -> ::windows::core::Result { + pub unsafe fn TSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CallerId(&self) -> ::windows::core::Result { + pub unsafe fn CallerId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CallerId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CallerId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RoutingInformation(&self) -> ::windows::core::Result { + pub unsafe fn RoutingInformation(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RoutingInformation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RoutingInformation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn JobType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4681,13 +4341,8 @@ impl IFaxIncomingJob { pub unsafe fn Refresh(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Refresh)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CopyTiff<'a, P0>(&self, bstrtiffpath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).CopyTiff)(::windows::core::Interface::as_raw(self), bstrtiffpath.into().abi()).ok() + pub unsafe fn CopyTiff(&self, bstrtiffpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).CopyTiff)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtiffpath)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4757,45 +4412,24 @@ unsafe impl ::windows::core::Interface for IFaxIncomingJob { pub struct IFaxIncomingJob_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub Size: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plsize: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Id: usize, + pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub CurrentPage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcurrentpage: *mut i32) -> ::windows::core::HRESULT, pub DeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pldeviceid: *mut i32) -> ::windows::core::HRESULT, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstatus: *mut FAX_JOB_STATUS_ENUM) -> ::windows::core::HRESULT, pub ExtendedStatusCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pextendedstatuscode: *mut FAX_JOB_EXTENDED_STATUS_ENUM) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ExtendedStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrextendedstatus: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ExtendedStatus: usize, + pub ExtendedStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrextendedstatus: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub AvailableOperations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pavailableoperations: *mut FAX_JOB_OPERATIONS_ENUM) -> ::windows::core::HRESULT, pub Retries: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plretries: *mut i32) -> ::windows::core::HRESULT, pub TransmissionStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdatetransmissionstart: *mut f64) -> ::windows::core::HRESULT, pub TransmissionEnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdatetransmissionend: *mut f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CSID: usize, - #[cfg(feature = "Win32_Foundation")] - pub TSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TSID: usize, - #[cfg(feature = "Win32_Foundation")] - pub CallerId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcallerid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CallerId: usize, - #[cfg(feature = "Win32_Foundation")] - pub RoutingInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrroutinginformation: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RoutingInformation: usize, + pub CSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub TSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CallerId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcallerid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub RoutingInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrroutinginformation: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub JobType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pjobtype: *mut FAX_JOB_TYPE_ENUM) -> ::windows::core::HRESULT, pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CopyTiff: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtiffpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CopyTiff: usize, + pub CopyTiff: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtiffpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_Fax\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4900,11 +4534,9 @@ pub struct IFaxIncomingJobs_Vtbl { pub struct IFaxIncomingMessage(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IFaxIncomingMessage { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Id(&self) -> ::windows::core::Result { + pub unsafe fn Id(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Pages(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4914,11 +4546,9 @@ impl IFaxIncomingMessage { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Size)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeviceName(&self) -> ::windows::core::Result { + pub unsafe fn DeviceName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DeviceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DeviceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Retries(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4932,37 +4562,24 @@ impl IFaxIncomingMessage { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).TransmissionEnd)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CSID(&self) -> ::windows::core::Result { + pub unsafe fn CSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TSID(&self) -> ::windows::core::Result { + pub unsafe fn TSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CallerId(&self) -> ::windows::core::Result { + pub unsafe fn CallerId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CallerId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CallerId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RoutingInformation(&self) -> ::windows::core::Result { + pub unsafe fn RoutingInformation(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RoutingInformation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RoutingInformation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CopyTiff<'a, P0>(&self, bstrtiffpath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).CopyTiff)(::windows::core::Interface::as_raw(self), bstrtiffpath.into().abi()).ok() + pub unsafe fn CopyTiff(&self, bstrtiffpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).CopyTiff)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtiffpath)).ok() } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Delete)(::windows::core::Interface::as_raw(self)).ok() @@ -5034,39 +4651,18 @@ unsafe impl ::windows::core::Interface for IFaxIncomingMessage { #[doc(hidden)] pub struct IFaxIncomingMessage_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Id: usize, + pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Pages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plpages: *mut i32) -> ::windows::core::HRESULT, pub Size: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plsize: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub DeviceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdevicename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeviceName: usize, + pub DeviceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdevicename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Retries: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plretries: *mut i32) -> ::windows::core::HRESULT, pub TransmissionStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdatetransmissionstart: *mut f64) -> ::windows::core::HRESULT, pub TransmissionEnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdatetransmissionend: *mut f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CSID: usize, - #[cfg(feature = "Win32_Foundation")] - pub TSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TSID: usize, - #[cfg(feature = "Win32_Foundation")] - pub CallerId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcallerid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CallerId: usize, - #[cfg(feature = "Win32_Foundation")] - pub RoutingInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrroutinginformation: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RoutingInformation: usize, - #[cfg(feature = "Win32_Foundation")] - pub CopyTiff: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtiffpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CopyTiff: usize, + pub CSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub TSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CallerId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcallerid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub RoutingInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrroutinginformation: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CopyTiff: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtiffpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_Fax\"`, `\"Win32_System_Com\"`*"] @@ -5075,11 +4671,9 @@ pub struct IFaxIncomingMessage_Vtbl { pub struct IFaxIncomingMessage2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IFaxIncomingMessage2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Id(&self) -> ::windows::core::Result { + pub unsafe fn Id(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Pages(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5089,11 +4683,9 @@ impl IFaxIncomingMessage2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Size)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeviceName(&self) -> ::windows::core::Result { + pub unsafe fn DeviceName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.DeviceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.DeviceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Retries(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5107,82 +4699,48 @@ impl IFaxIncomingMessage2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.TransmissionEnd)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CSID(&self) -> ::windows::core::Result { + pub unsafe fn CSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TSID(&self) -> ::windows::core::Result { + pub unsafe fn TSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.TSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.TSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CallerId(&self) -> ::windows::core::Result { + pub unsafe fn CallerId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CallerId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CallerId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RoutingInformation(&self) -> ::windows::core::Result { + pub unsafe fn RoutingInformation(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.RoutingInformation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.RoutingInformation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CopyTiff<'a, P0>(&self, bstrtiffpath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.CopyTiff)(::windows::core::Interface::as_raw(self), bstrtiffpath.into().abi()).ok() + pub unsafe fn CopyTiff(&self, bstrtiffpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.CopyTiff)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtiffpath)).ok() } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Delete)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Subject(&self) -> ::windows::core::Result { + pub unsafe fn Subject(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Subject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Subject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSubject<'a, P0>(&self, bstrsubject: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSubject)(::windows::core::Interface::as_raw(self), bstrsubject.into().abi()).ok() + pub unsafe fn SetSubject(&self, bstrsubject: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSubject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsubject)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SenderName(&self) -> ::windows::core::Result { + pub unsafe fn SenderName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SenderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SenderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSenderName<'a, P0>(&self, bstrsendername: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSenderName)(::windows::core::Interface::as_raw(self), bstrsendername.into().abi()).ok() + pub unsafe fn SetSenderName(&self, bstrsendername: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSenderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsendername)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SenderFaxNumber(&self) -> ::windows::core::Result { + pub unsafe fn SenderFaxNumber(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SenderFaxNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SenderFaxNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSenderFaxNumber<'a, P0>(&self, bstrsenderfaxnumber: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSenderFaxNumber)(::windows::core::Interface::as_raw(self), bstrsenderfaxnumber.into().abi()).ok() + pub unsafe fn SetSenderFaxNumber(&self, bstrsenderfaxnumber: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSenderFaxNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsenderfaxnumber)).ok() } pub unsafe fn HasCoverPage(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5191,19 +4749,12 @@ impl IFaxIncomingMessage2 { pub unsafe fn SetHasCoverPage(&self, bhascoverpage: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetHasCoverPage)(::windows::core::Interface::as_raw(self), bhascoverpage).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Recipients(&self) -> ::windows::core::Result { + pub unsafe fn Recipients(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Recipients)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Recipients)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRecipients<'a, P0>(&self, bstrrecipients: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetRecipients)(::windows::core::Interface::as_raw(self), bstrrecipients.into().abi()).ok() + pub unsafe fn SetRecipients(&self, bstrrecipients: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetRecipients)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrecipients)).ok() } pub unsafe fn WasReAssigned(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5310,40 +4861,16 @@ unsafe impl ::windows::core::Interface for IFaxIncomingMessage2 { #[doc(hidden)] pub struct IFaxIncomingMessage2_Vtbl { pub base__: IFaxIncomingMessage_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Subject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsubject: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Subject: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSubject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsubject: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSubject: usize, - #[cfg(feature = "Win32_Foundation")] - pub SenderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsendername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SenderName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSenderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsendername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSenderName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SenderFaxNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsenderfaxnumber: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SenderFaxNumber: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSenderFaxNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsenderfaxnumber: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSenderFaxNumber: usize, + pub Subject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsubject: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSubject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsubject: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SenderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsendername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSenderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsendername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SenderFaxNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsenderfaxnumber: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSenderFaxNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsenderfaxnumber: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub HasCoverPage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbhascoverpage: *mut i16) -> ::windows::core::HRESULT, pub SetHasCoverPage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bhascoverpage: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Recipients: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrrecipients: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Recipients: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetRecipients: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrecipients: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetRecipients: usize, + pub Recipients: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrrecipients: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetRecipients: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrecipients: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub WasReAssigned: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbwasreassigned: *mut i16) -> ::windows::core::HRESULT, pub Read: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbread: *mut i16) -> ::windows::core::HRESULT, pub SetRead: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bread: i16) -> ::windows::core::HRESULT, @@ -5482,14 +5009,11 @@ impl IFaxIncomingQueue { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetJobs)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetJob<'a, P0>(&self, bstrjobid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetJob(&self, bstrjobid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetJob)(::windows::core::Interface::as_raw(self), bstrjobid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetJob)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrjobid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -5566,9 +5090,9 @@ pub struct IFaxIncomingQueue_Vtbl { pub GetJobs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxincomingjobs: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetJobs: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetJob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop, pfaxincomingjob: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetJob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfaxincomingjob: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetJob: usize, } #[doc = "*Required features: `\"Win32_Devices_Fax\"`, `\"Win32_System_Com\"`*"] @@ -5597,27 +5121,21 @@ impl IFaxJobStatus { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).DeviceId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CSID(&self) -> ::windows::core::Result { + pub unsafe fn CSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TSID(&self) -> ::windows::core::Result { + pub unsafe fn TSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn ExtendedStatusCode(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ExtendedStatusCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExtendedStatus(&self) -> ::windows::core::Result { + pub unsafe fn ExtendedStatus(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ExtendedStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ExtendedStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn AvailableOperations(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5643,17 +5161,13 @@ impl IFaxJobStatus { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).TransmissionEnd)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CallerId(&self) -> ::windows::core::Result { + pub unsafe fn CallerId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CallerId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CallerId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RoutingInformation(&self) -> ::windows::core::Result { + pub unsafe fn RoutingInformation(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RoutingInformation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RoutingInformation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -5727,33 +5241,18 @@ pub struct IFaxJobStatus_Vtbl { pub Size: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plsize: *mut i32) -> ::windows::core::HRESULT, pub CurrentPage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcurrentpage: *mut i32) -> ::windows::core::HRESULT, pub DeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pldeviceid: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CSID: usize, - #[cfg(feature = "Win32_Foundation")] - pub TSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TSID: usize, + pub CSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub TSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ExtendedStatusCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pextendedstatuscode: *mut FAX_JOB_EXTENDED_STATUS_ENUM) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ExtendedStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrextendedstatus: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ExtendedStatus: usize, + pub ExtendedStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrextendedstatus: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub AvailableOperations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pavailableoperations: *mut FAX_JOB_OPERATIONS_ENUM) -> ::windows::core::HRESULT, pub Retries: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plretries: *mut i32) -> ::windows::core::HRESULT, pub JobType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pjobtype: *mut FAX_JOB_TYPE_ENUM) -> ::windows::core::HRESULT, pub ScheduledTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdatescheduledtime: *mut f64) -> ::windows::core::HRESULT, pub TransmissionStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdatetransmissionstart: *mut f64) -> ::windows::core::HRESULT, pub TransmissionEnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdatetransmissionend: *mut f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CallerId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcallerid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CallerId: usize, - #[cfg(feature = "Win32_Foundation")] - pub RoutingInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrroutinginformation: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RoutingInformation: usize, + pub CallerId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcallerid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub RoutingInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrroutinginformation: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_Fax\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5949,11 +5448,9 @@ pub struct IFaxOutboundRouting_Vtbl { pub struct IFaxOutboundRoutingGroup(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IFaxOutboundRoutingGroup { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Status(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6032,10 +5529,7 @@ unsafe impl ::windows::core::Interface for IFaxOutboundRoutingGroup { #[doc(hidden)] pub struct IFaxOutboundRoutingGroup_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstatus: *mut FAX_GROUP_STATUS_ENUM) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub DeviceIds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxdeviceids: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -6065,14 +5559,11 @@ impl IFaxOutboundRoutingGroups { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Count)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Add<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Add(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -6155,9 +5646,9 @@ pub struct IFaxOutboundRoutingGroups_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_Item: usize, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut i32) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, pfaxoutboundroutinggroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfaxoutboundroutinggroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Add: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vindex: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, @@ -6196,19 +5687,12 @@ impl IFaxOutboundRoutingRule { pub unsafe fn SetDeviceId(&self, deviceid: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetDeviceId)(::windows::core::Interface::as_raw(self), deviceid).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GroupName(&self) -> ::windows::core::Result { + pub unsafe fn GroupName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GroupName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GroupName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetGroupName<'a, P0>(&self, bstrgroupname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetGroupName)(::windows::core::Interface::as_raw(self), bstrgroupname.into().abi()).ok() + pub unsafe fn SetGroupName(&self, bstrgroupname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetGroupName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrgroupname)).ok() } pub unsafe fn Refresh(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Refresh)(::windows::core::Interface::as_raw(self)).ok() @@ -6290,14 +5774,8 @@ pub struct IFaxOutboundRoutingRule_Vtbl { pub SetUseDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, busedevice: i16) -> ::windows::core::HRESULT, pub DeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pldeviceid: *mut i32) -> ::windows::core::HRESULT, pub SetDeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GroupName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrgroupname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GroupName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetGroupName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetGroupName: usize, + pub GroupName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrgroupname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetGroupName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Save: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } @@ -6333,14 +5811,11 @@ impl IFaxOutboundRoutingRules { pub unsafe fn Remove(&self, lindex: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), lindex).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Add<'a, P0>(&self, lcountrycode: i32, lareacode: i32, busedevice: i16, bstrgroupname: P0, ldeviceid: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Add(&self, lcountrycode: i32, lareacode: i32, busedevice: i16, bstrgroupname: &::windows::core::BSTR, ldeviceid: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), lcountrycode, lareacode, busedevice, bstrgroupname.into().abi(), ldeviceid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), lcountrycode, lareacode, busedevice, ::core::mem::transmute_copy(bstrgroupname), ldeviceid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -6421,9 +5896,9 @@ pub struct IFaxOutboundRoutingRules_Vtbl { ItemByCountryAndArea: usize, pub RemoveByCountryAndArea: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lcountrycode: i32, lareacode: i32) -> ::windows::core::HRESULT, pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lindex: i32) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lcountrycode: i32, lareacode: i32, busedevice: i16, bstrgroupname: ::core::mem::ManuallyDrop, ldeviceid: i32, pfaxoutboundroutingrule: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lcountrycode: i32, lareacode: i32, busedevice: i16, bstrgroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ldeviceid: i32, pfaxoutboundroutingrule: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Add: usize, } #[doc = "*Required features: `\"Win32_Devices_Fax\"`, `\"Win32_System_Com\"`*"] @@ -6439,19 +5914,12 @@ impl IFaxOutgoingArchive { pub unsafe fn SetUseArchive(&self, busearchive: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetUseArchive)(::windows::core::Interface::as_raw(self), busearchive).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ArchiveFolder(&self) -> ::windows::core::Result { + pub unsafe fn ArchiveFolder(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ArchiveFolder)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ArchiveFolder)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetArchiveFolder<'a, P0>(&self, bstrarchivefolder: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetArchiveFolder)(::windows::core::Interface::as_raw(self), bstrarchivefolder.into().abi()).ok() + pub unsafe fn SetArchiveFolder(&self, bstrarchivefolder: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetArchiveFolder)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrarchivefolder)).ok() } pub unsafe fn SizeQuotaWarning(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6501,14 +5969,11 @@ impl IFaxOutgoingArchive { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetMessages)(::windows::core::Interface::as_raw(self), lprefetchsize, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetMessage<'a, P0>(&self, bstrmessageid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetMessage(&self, bstrmessageid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetMessage)(::windows::core::Interface::as_raw(self), bstrmessageid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrmessageid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -6579,14 +6044,8 @@ pub struct IFaxOutgoingArchive_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub UseArchive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbusearchive: *mut i16) -> ::windows::core::HRESULT, pub SetUseArchive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, busearchive: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ArchiveFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrarchivefolder: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ArchiveFolder: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetArchiveFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrarchivefolder: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetArchiveFolder: usize, + pub ArchiveFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrarchivefolder: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetArchiveFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrarchivefolder: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SizeQuotaWarning: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbsizequotawarning: *mut i16) -> ::windows::core::HRESULT, pub SetSizeQuotaWarning: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bsizequotawarning: i16) -> ::windows::core::HRESULT, pub HighQuotaWaterMark: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plhighquotawatermark: *mut i32) -> ::windows::core::HRESULT, @@ -6603,9 +6062,9 @@ pub struct IFaxOutgoingArchive_Vtbl { pub GetMessages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lprefetchsize: i32, pfaxoutgoingmessageiterator: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetMessages: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop, pfaxoutgoingmessage: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfaxoutgoingmessage: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetMessage: usize, } #[doc = "*Required features: `\"Win32_Devices_Fax\"`, `\"Win32_System_Com\"`*"] @@ -6614,17 +6073,13 @@ pub struct IFaxOutgoingArchive_Vtbl { pub struct IFaxOutgoingJob(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IFaxOutgoingJob { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Subject(&self) -> ::windows::core::Result { + pub unsafe fn Subject(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Subject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Subject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DocumentName(&self) -> ::windows::core::Result { + pub unsafe fn DocumentName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DocumentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DocumentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Pages(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6634,17 +6089,13 @@ impl IFaxOutgoingJob { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Size)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SubmissionId(&self) -> ::windows::core::Result { + pub unsafe fn SubmissionId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SubmissionId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SubmissionId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Id(&self) -> ::windows::core::Result { + pub unsafe fn Id(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn OriginalScheduledTime(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6690,11 +6141,9 @@ impl IFaxOutgoingJob { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ExtendedStatusCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExtendedStatus(&self) -> ::windows::core::Result { + pub unsafe fn ExtendedStatus(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ExtendedStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ExtendedStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn AvailableOperations(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6716,17 +6165,13 @@ impl IFaxOutgoingJob { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).TransmissionEnd)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CSID(&self) -> ::windows::core::Result { + pub unsafe fn CSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TSID(&self) -> ::windows::core::Result { + pub unsafe fn TSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GroupBroadcastReceipts(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6741,13 +6186,8 @@ impl IFaxOutgoingJob { pub unsafe fn Restart(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Restart)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CopyTiff<'a, P0>(&self, bstrtiffpath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).CopyTiff)(::windows::core::Interface::as_raw(self), bstrtiffpath.into().abi()).ok() + pub unsafe fn CopyTiff(&self, bstrtiffpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).CopyTiff)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtiffpath)).ok() } pub unsafe fn Refresh(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Refresh)(::windows::core::Interface::as_raw(self)).ok() @@ -6822,24 +6262,12 @@ unsafe impl ::windows::core::Interface for IFaxOutgoingJob { #[doc(hidden)] pub struct IFaxOutgoingJob_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Subject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsubject: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Subject: usize, - #[cfg(feature = "Win32_Foundation")] - pub DocumentName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdocumentname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DocumentName: usize, + pub Subject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsubject: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DocumentName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdocumentname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Pages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plpages: *mut i32) -> ::windows::core::HRESULT, pub Size: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plsize: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SubmissionId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsubmissionid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SubmissionId: usize, - #[cfg(feature = "Win32_Foundation")] - pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Id: usize, + pub SubmissionId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsubmissionid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub OriginalScheduledTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdateoriginalscheduledtime: *mut f64) -> ::windows::core::HRESULT, pub SubmissionTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdatesubmissiontime: *mut f64) -> ::windows::core::HRESULT, pub ReceiptType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, preceipttype: *mut FAX_RECEIPT_TYPE_ENUM) -> ::windows::core::HRESULT, @@ -6856,31 +6284,19 @@ pub struct IFaxOutgoingJob_Vtbl { pub DeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pldeviceid: *mut i32) -> ::windows::core::HRESULT, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstatus: *mut FAX_JOB_STATUS_ENUM) -> ::windows::core::HRESULT, pub ExtendedStatusCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pextendedstatuscode: *mut FAX_JOB_EXTENDED_STATUS_ENUM) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ExtendedStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrextendedstatus: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ExtendedStatus: usize, + pub ExtendedStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrextendedstatus: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub AvailableOperations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pavailableoperations: *mut FAX_JOB_OPERATIONS_ENUM) -> ::windows::core::HRESULT, pub Retries: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plretries: *mut i32) -> ::windows::core::HRESULT, pub ScheduledTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdatescheduledtime: *mut f64) -> ::windows::core::HRESULT, pub TransmissionStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdatetransmissionstart: *mut f64) -> ::windows::core::HRESULT, pub TransmissionEnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdatetransmissionend: *mut f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CSID: usize, - #[cfg(feature = "Win32_Foundation")] - pub TSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TSID: usize, + pub CSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub TSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GroupBroadcastReceipts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbgroupbroadcastreceipts: *mut i16) -> ::windows::core::HRESULT, pub Pause: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Resume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Restart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CopyTiff: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtiffpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CopyTiff: usize, + pub CopyTiff: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtiffpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } @@ -6890,17 +6306,13 @@ pub struct IFaxOutgoingJob_Vtbl { pub struct IFaxOutgoingJob2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IFaxOutgoingJob2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Subject(&self) -> ::windows::core::Result { + pub unsafe fn Subject(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Subject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Subject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DocumentName(&self) -> ::windows::core::Result { + pub unsafe fn DocumentName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.DocumentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.DocumentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Pages(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6910,17 +6322,13 @@ impl IFaxOutgoingJob2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Size)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SubmissionId(&self) -> ::windows::core::Result { + pub unsafe fn SubmissionId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.SubmissionId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.SubmissionId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Id(&self) -> ::windows::core::Result { + pub unsafe fn Id(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn OriginalScheduledTime(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6966,11 +6374,9 @@ impl IFaxOutgoingJob2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.ExtendedStatusCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExtendedStatus(&self) -> ::windows::core::Result { + pub unsafe fn ExtendedStatus(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ExtendedStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ExtendedStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn AvailableOperations(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6992,17 +6398,13 @@ impl IFaxOutgoingJob2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.TransmissionEnd)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CSID(&self) -> ::windows::core::Result { + pub unsafe fn CSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TSID(&self) -> ::windows::core::Result { + pub unsafe fn TSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.TSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.TSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GroupBroadcastReceipts(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7017,13 +6419,8 @@ impl IFaxOutgoingJob2 { pub unsafe fn Restart(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Restart)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CopyTiff<'a, P0>(&self, bstrtiffpath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.CopyTiff)(::windows::core::Interface::as_raw(self), bstrtiffpath.into().abi()).ok() + pub unsafe fn CopyTiff(&self, bstrtiffpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.CopyTiff)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtiffpath)).ok() } pub unsafe fn Refresh(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Refresh)(::windows::core::Interface::as_raw(self)).ok() @@ -7035,11 +6432,9 @@ impl IFaxOutgoingJob2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).HasCoverPage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ReceiptAddress(&self) -> ::windows::core::Result { + pub unsafe fn ReceiptAddress(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ReceiptAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ReceiptAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn ScheduleType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7131,10 +6526,7 @@ unsafe impl ::windows::core::Interface for IFaxOutgoingJob2 { pub struct IFaxOutgoingJob2_Vtbl { pub base__: IFaxOutgoingJob_Vtbl, pub HasCoverPage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbhascoverpage: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ReceiptAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrreceiptaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ReceiptAddress: usize, + pub ReceiptAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrreceiptaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ScheduleType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pscheduletype: *mut FAX_SCHEDULE_TYPE_ENUM) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_Fax\"`, `\"Win32_System_Com\"`*"] @@ -7240,29 +6632,21 @@ pub struct IFaxOutgoingJobs_Vtbl { pub struct IFaxOutgoingMessage(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IFaxOutgoingMessage { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SubmissionId(&self) -> ::windows::core::Result { + pub unsafe fn SubmissionId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SubmissionId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SubmissionId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Id(&self) -> ::windows::core::Result { + pub unsafe fn Id(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Subject(&self) -> ::windows::core::Result { + pub unsafe fn Subject(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Subject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Subject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DocumentName(&self) -> ::windows::core::Result { + pub unsafe fn DocumentName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DocumentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DocumentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Retries(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7300,11 +6684,9 @@ impl IFaxOutgoingMessage { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Recipient)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeviceName(&self) -> ::windows::core::Result { + pub unsafe fn DeviceName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DeviceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DeviceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn TransmissionStart(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7314,25 +6696,16 @@ impl IFaxOutgoingMessage { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).TransmissionEnd)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CSID(&self) -> ::windows::core::Result { + pub unsafe fn CSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TSID(&self) -> ::windows::core::Result { + pub unsafe fn TSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CopyTiff<'a, P0>(&self, bstrtiffpath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).CopyTiff)(::windows::core::Interface::as_raw(self), bstrtiffpath.into().abi()).ok() + pub unsafe fn CopyTiff(&self, bstrtiffpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).CopyTiff)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtiffpath)).ok() } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Delete)(::windows::core::Interface::as_raw(self)).ok() @@ -7404,22 +6777,10 @@ unsafe impl ::windows::core::Interface for IFaxOutgoingMessage { #[doc(hidden)] pub struct IFaxOutgoingMessage_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub SubmissionId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsubmissionid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SubmissionId: usize, - #[cfg(feature = "Win32_Foundation")] - pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Id: usize, - #[cfg(feature = "Win32_Foundation")] - pub Subject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsubject: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Subject: usize, - #[cfg(feature = "Win32_Foundation")] - pub DocumentName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdocumentname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DocumentName: usize, + pub SubmissionId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsubmissionid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Subject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsubject: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DocumentName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdocumentname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Retries: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plretries: *mut i32) -> ::windows::core::HRESULT, pub Pages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plpages: *mut i32) -> ::windows::core::HRESULT, pub Size: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plsize: *mut i32) -> ::windows::core::HRESULT, @@ -7434,24 +6795,12 @@ pub struct IFaxOutgoingMessage_Vtbl { pub Recipient: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppfaxrecipient: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Recipient: usize, - #[cfg(feature = "Win32_Foundation")] - pub DeviceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdevicename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeviceName: usize, + pub DeviceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdevicename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub TransmissionStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdatetransmissionstart: *mut f64) -> ::windows::core::HRESULT, pub TransmissionEnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdatetransmissionend: *mut f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CSID: usize, - #[cfg(feature = "Win32_Foundation")] - pub TSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TSID: usize, - #[cfg(feature = "Win32_Foundation")] - pub CopyTiff: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtiffpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CopyTiff: usize, + pub CSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub TSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CopyTiff: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtiffpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_Fax\"`, `\"Win32_System_Com\"`*"] @@ -7460,29 +6809,21 @@ pub struct IFaxOutgoingMessage_Vtbl { pub struct IFaxOutgoingMessage2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IFaxOutgoingMessage2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SubmissionId(&self) -> ::windows::core::Result { + pub unsafe fn SubmissionId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.SubmissionId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.SubmissionId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Id(&self) -> ::windows::core::Result { + pub unsafe fn Id(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Subject(&self) -> ::windows::core::Result { + pub unsafe fn Subject(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Subject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Subject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DocumentName(&self) -> ::windows::core::Result { + pub unsafe fn DocumentName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.DocumentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.DocumentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Retries(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7520,11 +6861,9 @@ impl IFaxOutgoingMessage2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Recipient)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeviceName(&self) -> ::windows::core::Result { + pub unsafe fn DeviceName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.DeviceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.DeviceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn TransmissionStart(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7534,25 +6873,16 @@ impl IFaxOutgoingMessage2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.TransmissionEnd)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CSID(&self) -> ::windows::core::Result { + pub unsafe fn CSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TSID(&self) -> ::windows::core::Result { + pub unsafe fn TSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.TSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.TSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CopyTiff<'a, P0>(&self, bstrtiffpath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.CopyTiff)(::windows::core::Interface::as_raw(self), bstrtiffpath.into().abi()).ok() + pub unsafe fn CopyTiff(&self, bstrtiffpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.CopyTiff)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtiffpath)).ok() } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Delete)(::windows::core::Interface::as_raw(self)).ok() @@ -7565,11 +6895,9 @@ impl IFaxOutgoingMessage2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ReceiptType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ReceiptAddress(&self) -> ::windows::core::Result { + pub unsafe fn ReceiptAddress(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ReceiptAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ReceiptAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Read(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7671,10 +6999,7 @@ pub struct IFaxOutgoingMessage2_Vtbl { pub base__: IFaxOutgoingMessage_Vtbl, pub HasCoverPage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbhascoverpage: *mut i16) -> ::windows::core::HRESULT, pub ReceiptType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, preceipttype: *mut FAX_RECEIPT_TYPE_ENUM) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ReceiptAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrreceiptaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ReceiptAddress: usize, + pub ReceiptAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrreceiptaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Read: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbread: *mut i16) -> ::windows::core::HRESULT, pub SetRead: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bread: i16) -> ::windows::core::HRESULT, pub Save: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -7874,14 +7199,11 @@ impl IFaxOutgoingQueue { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetJobs)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetJob<'a, P0>(&self, bstrjobid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetJob(&self, bstrjobid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetJob)(::windows::core::Interface::as_raw(self), bstrjobid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetJob)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrjobid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -7976,9 +7298,9 @@ pub struct IFaxOutgoingQueue_Vtbl { pub GetJobs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxoutgoingjobs: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetJobs: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetJob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop, pfaxoutgoingjob: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetJob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfaxoutgoingjob: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetJob: usize, } #[doc = "*Required features: `\"Win32_Devices_Fax\"`, `\"Win32_System_Com\"`*"] @@ -7994,19 +7316,12 @@ impl IFaxReceiptOptions { pub unsafe fn SetAuthenticationType(&self, r#type: FAX_SMTP_AUTHENTICATION_TYPE_ENUM) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetAuthenticationType)(::windows::core::Interface::as_raw(self), r#type).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SMTPServer(&self) -> ::windows::core::Result { + pub unsafe fn SMTPServer(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SMTPServer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SMTPServer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSMTPServer<'a, P0>(&self, bstrsmtpserver: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSMTPServer)(::windows::core::Interface::as_raw(self), bstrsmtpserver.into().abi()).ok() + pub unsafe fn SetSMTPServer(&self, bstrsmtpserver: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSMTPServer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsmtpserver)).ok() } pub unsafe fn SMTPPort(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -8015,33 +7330,19 @@ impl IFaxReceiptOptions { pub unsafe fn SetSMTPPort(&self, lsmtpport: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetSMTPPort)(::windows::core::Interface::as_raw(self), lsmtpport).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SMTPSender(&self) -> ::windows::core::Result { + pub unsafe fn SMTPSender(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SMTPSender)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SMTPSender)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSMTPSender<'a, P0>(&self, bstrsmtpsender: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSMTPSender)(::windows::core::Interface::as_raw(self), bstrsmtpsender.into().abi()).ok() + pub unsafe fn SetSMTPSender(&self, bstrsmtpsender: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSMTPSender)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsmtpsender)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SMTPUser(&self) -> ::windows::core::Result { + pub unsafe fn SMTPUser(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SMTPUser)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SMTPUser)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSMTPUser<'a, P0>(&self, bstrsmtpuser: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSMTPUser)(::windows::core::Interface::as_raw(self), bstrsmtpuser.into().abi()).ok() + pub unsafe fn SetSMTPUser(&self, bstrsmtpuser: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSMTPUser)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsmtpuser)).ok() } pub unsafe fn AllowedReceipts(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -8050,19 +7351,12 @@ impl IFaxReceiptOptions { pub unsafe fn SetAllowedReceipts(&self, allowedreceipts: FAX_RECEIPT_TYPE_ENUM) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetAllowedReceipts)(::windows::core::Interface::as_raw(self), allowedreceipts).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SMTPPassword(&self) -> ::windows::core::Result { + pub unsafe fn SMTPPassword(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SMTPPassword)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SMTPPassword)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSMTPPassword<'a, P0>(&self, bstrsmtppassword: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSMTPPassword)(::windows::core::Interface::as_raw(self), bstrsmtppassword.into().abi()).ok() + pub unsafe fn SetSMTPPassword(&self, bstrsmtppassword: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSMTPPassword)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsmtppassword)).ok() } pub unsafe fn Refresh(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Refresh)(::windows::core::Interface::as_raw(self)).ok() @@ -8146,42 +7440,18 @@ pub struct IFaxReceiptOptions_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub AuthenticationType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptype: *mut FAX_SMTP_AUTHENTICATION_TYPE_ENUM) -> ::windows::core::HRESULT, pub SetAuthenticationType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: FAX_SMTP_AUTHENTICATION_TYPE_ENUM) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SMTPServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsmtpserver: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SMTPServer: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSMTPServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsmtpserver: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSMTPServer: usize, + pub SMTPServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsmtpserver: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSMTPServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsmtpserver: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SMTPPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plsmtpport: *mut i32) -> ::windows::core::HRESULT, pub SetSMTPPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lsmtpport: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SMTPSender: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsmtpsender: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SMTPSender: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSMTPSender: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsmtpsender: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSMTPSender: usize, - #[cfg(feature = "Win32_Foundation")] - pub SMTPUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsmtpuser: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SMTPUser: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSMTPUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsmtpuser: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSMTPUser: usize, + pub SMTPSender: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsmtpsender: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSMTPSender: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsmtpsender: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SMTPUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsmtpuser: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSMTPUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsmtpuser: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub AllowedReceipts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pallowedreceipts: *mut FAX_RECEIPT_TYPE_ENUM) -> ::windows::core::HRESULT, pub SetAllowedReceipts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, allowedreceipts: FAX_RECEIPT_TYPE_ENUM) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SMTPPassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsmtppassword: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SMTPPassword: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSMTPPassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsmtppassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSMTPPassword: usize, + pub SMTPPassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsmtppassword: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSMTPPassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsmtppassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Save: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub UseForInboundRouting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbuseforinboundrouting: *mut i16) -> ::windows::core::HRESULT, @@ -8193,33 +7463,19 @@ pub struct IFaxReceiptOptions_Vtbl { pub struct IFaxRecipient(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IFaxRecipient { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FaxNumber(&self) -> ::windows::core::Result { + pub unsafe fn FaxNumber(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FaxNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FaxNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFaxNumber<'a, P0>(&self, bstrfaxnumber: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetFaxNumber)(::windows::core::Interface::as_raw(self), bstrfaxnumber.into().abi()).ok() + pub unsafe fn SetFaxNumber(&self, bstrfaxnumber: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetFaxNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrfaxnumber)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -8288,22 +7544,10 @@ unsafe impl ::windows::core::Interface for IFaxRecipient { #[doc(hidden)] pub struct IFaxRecipient_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub FaxNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfaxnumber: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FaxNumber: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetFaxNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfaxnumber: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetFaxNumber: usize, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, + pub FaxNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfaxnumber: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetFaxNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfaxnumber: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_Fax\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -8325,15 +7569,11 @@ impl IFaxRecipients { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Count)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Add<'a, P0, P1>(&self, bstrfaxnumber: P0, bstrrecipientname: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Add(&self, bstrfaxnumber: &::windows::core::BSTR, bstrrecipientname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), bstrfaxnumber.into().abi(), bstrrecipientname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrfaxnumber), ::core::mem::transmute_copy(bstrrecipientname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn Remove(&self, lindex: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), lindex).ok() @@ -8411,9 +7651,9 @@ pub struct IFaxRecipients_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] get_Item: usize, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut i32) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfaxnumber: ::core::mem::ManuallyDrop, bstrrecipientname: ::core::mem::ManuallyDrop, ppfaxrecipient: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfaxnumber: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrrecipientname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppfaxrecipient: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Add: usize, pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lindex: i32) -> ::windows::core::HRESULT, } @@ -8659,229 +7899,117 @@ pub struct IFaxSecurity2_Vtbl { pub struct IFaxSender(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IFaxSender { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BillingCode(&self) -> ::windows::core::Result { + pub unsafe fn BillingCode(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).BillingCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).BillingCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetBillingCode<'a, P0>(&self, bstrbillingcode: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetBillingCode)(::windows::core::Interface::as_raw(self), bstrbillingcode.into().abi()).ok() + pub unsafe fn SetBillingCode(&self, bstrbillingcode: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetBillingCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrbillingcode)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn City(&self) -> ::windows::core::Result { + pub unsafe fn City(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).City)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).City)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCity<'a, P0>(&self, bstrcity: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetCity)(::windows::core::Interface::as_raw(self), bstrcity.into().abi()).ok() + pub unsafe fn SetCity(&self, bstrcity: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetCity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcity)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Company(&self) -> ::windows::core::Result { + pub unsafe fn Company(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Company)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Company)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCompany<'a, P0>(&self, bstrcompany: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetCompany)(::windows::core::Interface::as_raw(self), bstrcompany.into().abi()).ok() + pub unsafe fn SetCompany(&self, bstrcompany: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetCompany)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcompany)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Country(&self) -> ::windows::core::Result { + pub unsafe fn Country(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Country)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Country)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCountry<'a, P0>(&self, bstrcountry: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetCountry)(::windows::core::Interface::as_raw(self), bstrcountry.into().abi()).ok() + pub unsafe fn SetCountry(&self, bstrcountry: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetCountry)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcountry)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Department(&self) -> ::windows::core::Result { + pub unsafe fn Department(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Department)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Department)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDepartment<'a, P0>(&self, bstrdepartment: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDepartment)(::windows::core::Interface::as_raw(self), bstrdepartment.into().abi()).ok() + pub unsafe fn SetDepartment(&self, bstrdepartment: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDepartment)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdepartment)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Email(&self) -> ::windows::core::Result { + pub unsafe fn Email(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Email)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Email)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetEmail<'a, P0>(&self, bstremail: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetEmail)(::windows::core::Interface::as_raw(self), bstremail.into().abi()).ok() + pub unsafe fn SetEmail(&self, bstremail: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetEmail)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstremail)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FaxNumber(&self) -> ::windows::core::Result { + pub unsafe fn FaxNumber(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FaxNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FaxNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFaxNumber<'a, P0>(&self, bstrfaxnumber: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetFaxNumber)(::windows::core::Interface::as_raw(self), bstrfaxnumber.into().abi()).ok() + pub unsafe fn SetFaxNumber(&self, bstrfaxnumber: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetFaxNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrfaxnumber)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn HomePhone(&self) -> ::windows::core::Result { + pub unsafe fn HomePhone(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).HomePhone)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).HomePhone)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetHomePhone<'a, P0>(&self, bstrhomephone: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetHomePhone)(::windows::core::Interface::as_raw(self), bstrhomephone.into().abi()).ok() + pub unsafe fn SetHomePhone(&self, bstrhomephone: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetHomePhone)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrhomephone)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TSID(&self) -> ::windows::core::Result { + pub unsafe fn TSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetTSID<'a, P0>(&self, bstrtsid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetTSID)(::windows::core::Interface::as_raw(self), bstrtsid.into().abi()).ok() + pub unsafe fn SetTSID(&self, bstrtsid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetTSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtsid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OfficePhone(&self) -> ::windows::core::Result { + pub unsafe fn OfficePhone(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).OfficePhone)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).OfficePhone)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetOfficePhone<'a, P0>(&self, bstrofficephone: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetOfficePhone)(::windows::core::Interface::as_raw(self), bstrofficephone.into().abi()).ok() + pub unsafe fn SetOfficePhone(&self, bstrofficephone: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetOfficePhone)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrofficephone)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OfficeLocation(&self) -> ::windows::core::Result { + pub unsafe fn OfficeLocation(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).OfficeLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).OfficeLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetOfficeLocation<'a, P0>(&self, bstrofficelocation: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetOfficeLocation)(::windows::core::Interface::as_raw(self), bstrofficelocation.into().abi()).ok() + pub unsafe fn SetOfficeLocation(&self, bstrofficelocation: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetOfficeLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrofficelocation)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn State(&self) -> ::windows::core::Result { + pub unsafe fn State(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).State)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).State)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetState<'a, P0>(&self, bstrstate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetState)(::windows::core::Interface::as_raw(self), bstrstate.into().abi()).ok() + pub unsafe fn SetState(&self, bstrstate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetState)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrstate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StreetAddress(&self) -> ::windows::core::Result { + pub unsafe fn StreetAddress(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).StreetAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).StreetAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetStreetAddress<'a, P0>(&self, bstrstreetaddress: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetStreetAddress)(::windows::core::Interface::as_raw(self), bstrstreetaddress.into().abi()).ok() + pub unsafe fn SetStreetAddress(&self, bstrstreetaddress: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetStreetAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrstreetaddress)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Title(&self) -> ::windows::core::Result { + pub unsafe fn Title(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetTitle<'a, P0>(&self, bstrtitle: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetTitle)(::windows::core::Interface::as_raw(self), bstrtitle.into().abi()).ok() + pub unsafe fn SetTitle(&self, bstrtitle: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetTitle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtitle)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ZipCode(&self) -> ::windows::core::Result { + pub unsafe fn ZipCode(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ZipCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ZipCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetZipCode<'a, P0>(&self, bstrzipcode: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetZipCode)(::windows::core::Interface::as_raw(self), bstrzipcode.into().abi()).ok() + pub unsafe fn SetZipCode(&self, bstrzipcode: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetZipCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrzipcode)).ok() } pub unsafe fn LoadDefaultSender(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).LoadDefaultSender)(::windows::core::Interface::as_raw(self)).ok() @@ -8956,134 +8084,38 @@ unsafe impl ::windows::core::Interface for IFaxSender { #[doc(hidden)] pub struct IFaxSender_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub BillingCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbillingcode: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BillingCode: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetBillingCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrbillingcode: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetBillingCode: usize, - #[cfg(feature = "Win32_Foundation")] - pub City: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcity: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - City: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetCity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcity: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetCity: usize, - #[cfg(feature = "Win32_Foundation")] - pub Company: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcompany: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Company: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetCompany: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcompany: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetCompany: usize, - #[cfg(feature = "Win32_Foundation")] - pub Country: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcountry: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Country: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetCountry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcountry: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetCountry: usize, - #[cfg(feature = "Win32_Foundation")] - pub Department: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdepartment: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Department: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDepartment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdepartment: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDepartment: usize, - #[cfg(feature = "Win32_Foundation")] - pub Email: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstremail: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Email: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetEmail: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstremail: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetEmail: usize, - #[cfg(feature = "Win32_Foundation")] - pub FaxNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfaxnumber: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FaxNumber: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetFaxNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfaxnumber: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetFaxNumber: usize, - #[cfg(feature = "Win32_Foundation")] - pub HomePhone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrhomephone: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - HomePhone: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetHomePhone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrhomephone: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetHomePhone: usize, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, - #[cfg(feature = "Win32_Foundation")] - pub TSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TSID: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetTSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtsid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetTSID: usize, - #[cfg(feature = "Win32_Foundation")] - pub OfficePhone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrofficephone: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OfficePhone: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetOfficePhone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrofficephone: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetOfficePhone: usize, - #[cfg(feature = "Win32_Foundation")] - pub OfficeLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrofficelocation: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OfficeLocation: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetOfficeLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrofficelocation: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetOfficeLocation: usize, - #[cfg(feature = "Win32_Foundation")] - pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstate: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - State: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrstate: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetState: usize, - #[cfg(feature = "Win32_Foundation")] - pub StreetAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstreetaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - StreetAddress: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetStreetAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrstreetaddress: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetStreetAddress: usize, - #[cfg(feature = "Win32_Foundation")] - pub Title: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtitle: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Title: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtitle: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetTitle: usize, - #[cfg(feature = "Win32_Foundation")] - pub ZipCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrzipcode: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ZipCode: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetZipCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrzipcode: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetZipCode: usize, + pub BillingCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbillingcode: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetBillingCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrbillingcode: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub City: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcity: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetCity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcity: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Company: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcompany: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetCompany: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcompany: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Country: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcountry: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetCountry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcountry: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Department: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdepartment: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDepartment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdepartment: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Email: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstremail: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetEmail: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstremail: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FaxNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfaxnumber: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetFaxNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfaxnumber: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub HomePhone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrhomephone: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetHomePhone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrhomephone: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub TSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetTSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub OfficePhone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrofficephone: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetOfficePhone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrofficephone: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub OfficeLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrofficelocation: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetOfficeLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrofficelocation: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstate: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrstate: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub StreetAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstreetaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetStreetAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrstreetaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Title: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtitle: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtitle: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ZipCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrzipcode: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetZipCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrzipcode: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub LoadDefaultSender: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub SaveDefaultSender: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } @@ -9093,19 +8125,12 @@ pub struct IFaxSender_Vtbl { pub struct IFaxServer(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IFaxServer { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Connect<'a, P0>(&self, bstrservername: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Connect)(::windows::core::Interface::as_raw(self), bstrservername.into().abi()).ok() + pub unsafe fn Connect(&self, bstrservername: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Connect)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrservername)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ServerName(&self) -> ::windows::core::Result { + pub unsafe fn ServerName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ServerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ServerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9186,62 +8211,37 @@ impl IFaxServer { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetExtensionProperty<'a, P0>(&self, bstrguid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetExtensionProperty(&self, bstrguid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetExtensionProperty)(::windows::core::Interface::as_raw(self), bstrguid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetExtensionProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrguid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn SetExtensionProperty<'a, P0, P1>(&self, bstrguid: P0, vproperty: P1) -> ::windows::core::Result<()> + pub unsafe fn SetExtensionProperty<'a, P0>(&self, bstrguid: &::windows::core::BSTR, vproperty: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).SetExtensionProperty)(::windows::core::Interface::as_raw(self), bstrguid.into().abi(), vproperty.into().abi()).ok() + (::windows::core::Interface::vtable(self).SetExtensionProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrguid), vproperty.into().abi()).ok() } pub unsafe fn ListenToServerEvents(&self, eventtypes: FAX_SERVER_EVENTS_TYPE_ENUM) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ListenToServerEvents)(::windows::core::Interface::as_raw(self), eventtypes).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RegisterDeviceProvider<'a, P0, P1, P2, P3>(&self, bstrguid: P0, bstrfriendlyname: P1, bstrimagename: P2, tspname: P3, lfspiversion: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).RegisterDeviceProvider)(::windows::core::Interface::as_raw(self), bstrguid.into().abi(), bstrfriendlyname.into().abi(), bstrimagename.into().abi(), tspname.into().abi(), lfspiversion).ok() + pub unsafe fn RegisterDeviceProvider(&self, bstrguid: &::windows::core::BSTR, bstrfriendlyname: &::windows::core::BSTR, bstrimagename: &::windows::core::BSTR, tspname: &::windows::core::BSTR, lfspiversion: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).RegisterDeviceProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrguid), ::core::mem::transmute_copy(bstrfriendlyname), ::core::mem::transmute_copy(bstrimagename), ::core::mem::transmute_copy(tspname), lfspiversion).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UnregisterDeviceProvider<'a, P0>(&self, bstruniquename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).UnregisterDeviceProvider)(::windows::core::Interface::as_raw(self), bstruniquename.into().abi()).ok() + pub unsafe fn UnregisterDeviceProvider(&self, bstruniquename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).UnregisterDeviceProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstruniquename)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn RegisterInboundRoutingExtension<'a, P0, P1, P2, P3>(&self, bstrextensionname: P0, bstrfriendlyname: P1, bstrimagename: P2, vmethods: P3) -> ::windows::core::Result<()> + pub unsafe fn RegisterInboundRoutingExtension<'a, P0>(&self, bstrextensionname: &::windows::core::BSTR, bstrfriendlyname: &::windows::core::BSTR, bstrimagename: &::windows::core::BSTR, vmethods: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).RegisterInboundRoutingExtension)(::windows::core::Interface::as_raw(self), bstrextensionname.into().abi(), bstrfriendlyname.into().abi(), bstrimagename.into().abi(), vmethods.into().abi()).ok() + (::windows::core::Interface::vtable(self).RegisterInboundRoutingExtension)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrextensionname), ::core::mem::transmute_copy(bstrfriendlyname), ::core::mem::transmute_copy(bstrimagename), vmethods.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UnregisterInboundRoutingExtension<'a, P0>(&self, bstrextensionuniquename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).UnregisterInboundRoutingExtension)(::windows::core::Interface::as_raw(self), bstrextensionuniquename.into().abi()).ok() + pub unsafe fn UnregisterInboundRoutingExtension(&self, bstrextensionuniquename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).UnregisterInboundRoutingExtension)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrextensionuniquename)).ok() } pub unsafe fn RegisteredEvents(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -9318,14 +8318,8 @@ unsafe impl ::windows::core::Interface for IFaxServer { #[doc(hidden)] pub struct IFaxServer_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Connect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Connect: usize, - #[cfg(feature = "Win32_Foundation")] - pub ServerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrservername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ServerName: usize, + pub Connect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ServerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrservername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub GetDeviceProviders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppfaxdeviceproviders: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -9369,30 +8363,21 @@ pub struct IFaxServer_Vtbl { Security: usize, pub Disconnect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetExtensionProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrguid: ::core::mem::ManuallyDrop, pvproperty: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetExtensionProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvproperty: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetExtensionProperty: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub SetExtensionProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrguid: ::core::mem::ManuallyDrop, vproperty: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub SetExtensionProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, vproperty: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SetExtensionProperty: usize, pub ListenToServerEvents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventtypes: FAX_SERVER_EVENTS_TYPE_ENUM) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub RegisterDeviceProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrguid: ::core::mem::ManuallyDrop, bstrfriendlyname: ::core::mem::ManuallyDrop, bstrimagename: ::core::mem::ManuallyDrop, tspname: ::core::mem::ManuallyDrop, lfspiversion: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RegisterDeviceProvider: usize, - #[cfg(feature = "Win32_Foundation")] - pub UnregisterDeviceProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstruniquename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UnregisterDeviceProvider: usize, + pub RegisterDeviceProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrfriendlyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrimagename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, tspname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lfspiversion: i32) -> ::windows::core::HRESULT, + pub UnregisterDeviceProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstruniquename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub RegisterInboundRoutingExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrextensionname: ::core::mem::ManuallyDrop, bstrfriendlyname: ::core::mem::ManuallyDrop, bstrimagename: ::core::mem::ManuallyDrop, vmethods: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub RegisterInboundRoutingExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrextensionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrfriendlyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrimagename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, vmethods: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] RegisterInboundRoutingExtension: usize, - #[cfg(feature = "Win32_Foundation")] - pub UnregisterInboundRoutingExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrextensionuniquename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UnregisterInboundRoutingExtension: usize, + pub UnregisterInboundRoutingExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrextensionuniquename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub RegisteredEvents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, peventtypes: *mut FAX_SERVER_EVENTS_TYPE_ENUM) -> ::windows::core::HRESULT, pub APIVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, papiversion: *mut FAX_SERVER_APIVERSION_ENUM) -> ::windows::core::HRESULT, } @@ -9402,19 +8387,12 @@ pub struct IFaxServer_Vtbl { pub struct IFaxServer2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IFaxServer2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Connect<'a, P0>(&self, bstrservername: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.Connect)(::windows::core::Interface::as_raw(self), bstrservername.into().abi()).ok() + pub unsafe fn Connect(&self, bstrservername: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.Connect)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrservername)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ServerName(&self) -> ::windows::core::Result { + pub unsafe fn ServerName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ServerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ServerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9495,62 +8473,37 @@ impl IFaxServer2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetExtensionProperty<'a, P0>(&self, bstrguid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetExtensionProperty(&self, bstrguid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetExtensionProperty)(::windows::core::Interface::as_raw(self), bstrguid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetExtensionProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrguid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn SetExtensionProperty<'a, P0, P1>(&self, bstrguid: P0, vproperty: P1) -> ::windows::core::Result<()> + pub unsafe fn SetExtensionProperty<'a, P0>(&self, bstrguid: &::windows::core::BSTR, vproperty: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.SetExtensionProperty)(::windows::core::Interface::as_raw(self), bstrguid.into().abi(), vproperty.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.SetExtensionProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrguid), vproperty.into().abi()).ok() } pub unsafe fn ListenToServerEvents(&self, eventtypes: FAX_SERVER_EVENTS_TYPE_ENUM) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.ListenToServerEvents)(::windows::core::Interface::as_raw(self), eventtypes).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RegisterDeviceProvider<'a, P0, P1, P2, P3>(&self, bstrguid: P0, bstrfriendlyname: P1, bstrimagename: P2, tspname: P3, lfspiversion: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.RegisterDeviceProvider)(::windows::core::Interface::as_raw(self), bstrguid.into().abi(), bstrfriendlyname.into().abi(), bstrimagename.into().abi(), tspname.into().abi(), lfspiversion).ok() + pub unsafe fn RegisterDeviceProvider(&self, bstrguid: &::windows::core::BSTR, bstrfriendlyname: &::windows::core::BSTR, bstrimagename: &::windows::core::BSTR, tspname: &::windows::core::BSTR, lfspiversion: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.RegisterDeviceProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrguid), ::core::mem::transmute_copy(bstrfriendlyname), ::core::mem::transmute_copy(bstrimagename), ::core::mem::transmute_copy(tspname), lfspiversion).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UnregisterDeviceProvider<'a, P0>(&self, bstruniquename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.UnregisterDeviceProvider)(::windows::core::Interface::as_raw(self), bstruniquename.into().abi()).ok() + pub unsafe fn UnregisterDeviceProvider(&self, bstruniquename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.UnregisterDeviceProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstruniquename)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn RegisterInboundRoutingExtension<'a, P0, P1, P2, P3>(&self, bstrextensionname: P0, bstrfriendlyname: P1, bstrimagename: P2, vmethods: P3) -> ::windows::core::Result<()> + pub unsafe fn RegisterInboundRoutingExtension<'a, P0>(&self, bstrextensionname: &::windows::core::BSTR, bstrfriendlyname: &::windows::core::BSTR, bstrimagename: &::windows::core::BSTR, vmethods: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.RegisterInboundRoutingExtension)(::windows::core::Interface::as_raw(self), bstrextensionname.into().abi(), bstrfriendlyname.into().abi(), bstrimagename.into().abi(), vmethods.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.RegisterInboundRoutingExtension)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrextensionname), ::core::mem::transmute_copy(bstrfriendlyname), ::core::mem::transmute_copy(bstrimagename), vmethods.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UnregisterInboundRoutingExtension<'a, P0>(&self, bstrextensionuniquename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.UnregisterInboundRoutingExtension)(::windows::core::Interface::as_raw(self), bstrextensionuniquename.into().abi()).ok() + pub unsafe fn UnregisterInboundRoutingExtension(&self, bstrextensionuniquename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.UnregisterInboundRoutingExtension)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrextensionuniquename)).ok() } pub unsafe fn RegisteredEvents(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -10421,97 +9374,87 @@ pub struct IStillImageW_Vtbl { pub struct _IFaxAccountNotify(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl _IFaxAccountNotify { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn OnIncomingJobAdded<'a, P0, P1>(&self, pfaxaccount: P0, bstrjobid: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn OnIncomingJobAdded<'a, P0>(&self, pfaxaccount: P0, bstrjobid: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IFaxAccount>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).OnIncomingJobAdded)(::windows::core::Interface::as_raw(self), pfaxaccount.into().abi(), bstrjobid.into().abi()).ok() + (::windows::core::Interface::vtable(self).OnIncomingJobAdded)(::windows::core::Interface::as_raw(self), pfaxaccount.into().abi(), ::core::mem::transmute_copy(bstrjobid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn OnIncomingJobRemoved<'a, P0, P1>(&self, pfaxaccount: P0, bstrjobid: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn OnIncomingJobRemoved<'a, P0>(&self, pfaxaccount: P0, bstrjobid: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IFaxAccount>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).OnIncomingJobRemoved)(::windows::core::Interface::as_raw(self), pfaxaccount.into().abi(), bstrjobid.into().abi()).ok() + (::windows::core::Interface::vtable(self).OnIncomingJobRemoved)(::windows::core::Interface::as_raw(self), pfaxaccount.into().abi(), ::core::mem::transmute_copy(bstrjobid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn OnIncomingJobChanged<'a, P0, P1, P2>(&self, pfaxaccount: P0, bstrjobid: P1, pjobstatus: P2) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn OnIncomingJobChanged<'a, P0, P1>(&self, pfaxaccount: P0, bstrjobid: &::windows::core::BSTR, pjobstatus: P1) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IFaxAccount>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IFaxJobStatus>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, IFaxJobStatus>>, { - (::windows::core::Interface::vtable(self).OnIncomingJobChanged)(::windows::core::Interface::as_raw(self), pfaxaccount.into().abi(), bstrjobid.into().abi(), pjobstatus.into().abi()).ok() + (::windows::core::Interface::vtable(self).OnIncomingJobChanged)(::windows::core::Interface::as_raw(self), pfaxaccount.into().abi(), ::core::mem::transmute_copy(bstrjobid), pjobstatus.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn OnOutgoingJobAdded<'a, P0, P1>(&self, pfaxaccount: P0, bstrjobid: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn OnOutgoingJobAdded<'a, P0>(&self, pfaxaccount: P0, bstrjobid: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IFaxAccount>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).OnOutgoingJobAdded)(::windows::core::Interface::as_raw(self), pfaxaccount.into().abi(), bstrjobid.into().abi()).ok() + (::windows::core::Interface::vtable(self).OnOutgoingJobAdded)(::windows::core::Interface::as_raw(self), pfaxaccount.into().abi(), ::core::mem::transmute_copy(bstrjobid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn OnOutgoingJobRemoved<'a, P0, P1>(&self, pfaxaccount: P0, bstrjobid: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn OnOutgoingJobRemoved<'a, P0>(&self, pfaxaccount: P0, bstrjobid: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IFaxAccount>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).OnOutgoingJobRemoved)(::windows::core::Interface::as_raw(self), pfaxaccount.into().abi(), bstrjobid.into().abi()).ok() + (::windows::core::Interface::vtable(self).OnOutgoingJobRemoved)(::windows::core::Interface::as_raw(self), pfaxaccount.into().abi(), ::core::mem::transmute_copy(bstrjobid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn OnOutgoingJobChanged<'a, P0, P1, P2>(&self, pfaxaccount: P0, bstrjobid: P1, pjobstatus: P2) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn OnOutgoingJobChanged<'a, P0, P1>(&self, pfaxaccount: P0, bstrjobid: &::windows::core::BSTR, pjobstatus: P1) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IFaxAccount>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IFaxJobStatus>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, IFaxJobStatus>>, { - (::windows::core::Interface::vtable(self).OnOutgoingJobChanged)(::windows::core::Interface::as_raw(self), pfaxaccount.into().abi(), bstrjobid.into().abi(), pjobstatus.into().abi()).ok() + (::windows::core::Interface::vtable(self).OnOutgoingJobChanged)(::windows::core::Interface::as_raw(self), pfaxaccount.into().abi(), ::core::mem::transmute_copy(bstrjobid), pjobstatus.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn OnIncomingMessageAdded<'a, P0, P1>(&self, pfaxaccount: P0, bstrmessageid: P1, faddedtoreceivefolder: i16) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn OnIncomingMessageAdded<'a, P0>(&self, pfaxaccount: P0, bstrmessageid: &::windows::core::BSTR, faddedtoreceivefolder: i16) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IFaxAccount>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).OnIncomingMessageAdded)(::windows::core::Interface::as_raw(self), pfaxaccount.into().abi(), bstrmessageid.into().abi(), faddedtoreceivefolder).ok() + (::windows::core::Interface::vtable(self).OnIncomingMessageAdded)(::windows::core::Interface::as_raw(self), pfaxaccount.into().abi(), ::core::mem::transmute_copy(bstrmessageid), faddedtoreceivefolder).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn OnIncomingMessageRemoved<'a, P0, P1>(&self, pfaxaccount: P0, bstrmessageid: P1, fremovedfromreceivefolder: i16) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn OnIncomingMessageRemoved<'a, P0>(&self, pfaxaccount: P0, bstrmessageid: &::windows::core::BSTR, fremovedfromreceivefolder: i16) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IFaxAccount>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).OnIncomingMessageRemoved)(::windows::core::Interface::as_raw(self), pfaxaccount.into().abi(), bstrmessageid.into().abi(), fremovedfromreceivefolder).ok() + (::windows::core::Interface::vtable(self).OnIncomingMessageRemoved)(::windows::core::Interface::as_raw(self), pfaxaccount.into().abi(), ::core::mem::transmute_copy(bstrmessageid), fremovedfromreceivefolder).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn OnOutgoingMessageAdded<'a, P0, P1>(&self, pfaxaccount: P0, bstrmessageid: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn OnOutgoingMessageAdded<'a, P0>(&self, pfaxaccount: P0, bstrmessageid: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IFaxAccount>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).OnOutgoingMessageAdded)(::windows::core::Interface::as_raw(self), pfaxaccount.into().abi(), bstrmessageid.into().abi()).ok() + (::windows::core::Interface::vtable(self).OnOutgoingMessageAdded)(::windows::core::Interface::as_raw(self), pfaxaccount.into().abi(), ::core::mem::transmute_copy(bstrmessageid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn OnOutgoingMessageRemoved<'a, P0, P1>(&self, pfaxaccount: P0, bstrmessageid: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn OnOutgoingMessageRemoved<'a, P0>(&self, pfaxaccount: P0, bstrmessageid: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IFaxAccount>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).OnOutgoingMessageRemoved)(::windows::core::Interface::as_raw(self), pfaxaccount.into().abi(), bstrmessageid.into().abi()).ok() + (::windows::core::Interface::vtable(self).OnOutgoingMessageRemoved)(::windows::core::Interface::as_raw(self), pfaxaccount.into().abi(), ::core::mem::transmute_copy(bstrmessageid)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -10588,45 +9531,45 @@ unsafe impl ::windows::core::Interface for _IFaxAccountNotify { #[doc(hidden)] pub struct _IFaxAccountNotify_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub OnIncomingJobAdded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub OnIncomingJobAdded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] OnIncomingJobAdded: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub OnIncomingJobRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub OnIncomingJobRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] OnIncomingJobRemoved: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub OnIncomingJobChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop, pjobstatus: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub OnIncomingJobChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pjobstatus: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] OnIncomingJobChanged: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub OnOutgoingJobAdded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub OnOutgoingJobAdded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] OnOutgoingJobAdded: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub OnOutgoingJobRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub OnOutgoingJobRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] OnOutgoingJobRemoved: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub OnOutgoingJobChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop, pjobstatus: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub OnOutgoingJobChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pjobstatus: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] OnOutgoingJobChanged: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub OnIncomingMessageAdded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop, faddedtoreceivefolder: i16) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub OnIncomingMessageAdded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, faddedtoreceivefolder: i16) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] OnIncomingMessageAdded: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub OnIncomingMessageRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop, fremovedfromreceivefolder: i16) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub OnIncomingMessageRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fremovedfromreceivefolder: i16) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] OnIncomingMessageRemoved: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub OnOutgoingMessageAdded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub OnOutgoingMessageAdded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] OnOutgoingMessageAdded: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub OnOutgoingMessageRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub OnOutgoingMessageRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxaccount: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] OnOutgoingMessageRemoved: usize, #[cfg(feature = "Win32_System_Com")] pub OnServerShutDown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -10639,97 +9582,87 @@ pub struct _IFaxAccountNotify_Vtbl { pub struct _IFaxServerNotify2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl _IFaxServerNotify2 { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn OnIncomingJobAdded<'a, P0, P1>(&self, pfaxserver: P0, bstrjobid: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn OnIncomingJobAdded<'a, P0>(&self, pfaxserver: P0, bstrjobid: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IFaxServer2>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).OnIncomingJobAdded)(::windows::core::Interface::as_raw(self), pfaxserver.into().abi(), bstrjobid.into().abi()).ok() + (::windows::core::Interface::vtable(self).OnIncomingJobAdded)(::windows::core::Interface::as_raw(self), pfaxserver.into().abi(), ::core::mem::transmute_copy(bstrjobid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn OnIncomingJobRemoved<'a, P0, P1>(&self, pfaxserver: P0, bstrjobid: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn OnIncomingJobRemoved<'a, P0>(&self, pfaxserver: P0, bstrjobid: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IFaxServer2>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).OnIncomingJobRemoved)(::windows::core::Interface::as_raw(self), pfaxserver.into().abi(), bstrjobid.into().abi()).ok() + (::windows::core::Interface::vtable(self).OnIncomingJobRemoved)(::windows::core::Interface::as_raw(self), pfaxserver.into().abi(), ::core::mem::transmute_copy(bstrjobid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn OnIncomingJobChanged<'a, P0, P1, P2>(&self, pfaxserver: P0, bstrjobid: P1, pjobstatus: P2) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn OnIncomingJobChanged<'a, P0, P1>(&self, pfaxserver: P0, bstrjobid: &::windows::core::BSTR, pjobstatus: P1) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IFaxServer2>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IFaxJobStatus>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, IFaxJobStatus>>, { - (::windows::core::Interface::vtable(self).OnIncomingJobChanged)(::windows::core::Interface::as_raw(self), pfaxserver.into().abi(), bstrjobid.into().abi(), pjobstatus.into().abi()).ok() + (::windows::core::Interface::vtable(self).OnIncomingJobChanged)(::windows::core::Interface::as_raw(self), pfaxserver.into().abi(), ::core::mem::transmute_copy(bstrjobid), pjobstatus.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn OnOutgoingJobAdded<'a, P0, P1>(&self, pfaxserver: P0, bstrjobid: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn OnOutgoingJobAdded<'a, P0>(&self, pfaxserver: P0, bstrjobid: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IFaxServer2>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).OnOutgoingJobAdded)(::windows::core::Interface::as_raw(self), pfaxserver.into().abi(), bstrjobid.into().abi()).ok() + (::windows::core::Interface::vtable(self).OnOutgoingJobAdded)(::windows::core::Interface::as_raw(self), pfaxserver.into().abi(), ::core::mem::transmute_copy(bstrjobid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn OnOutgoingJobRemoved<'a, P0, P1>(&self, pfaxserver: P0, bstrjobid: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn OnOutgoingJobRemoved<'a, P0>(&self, pfaxserver: P0, bstrjobid: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IFaxServer2>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).OnOutgoingJobRemoved)(::windows::core::Interface::as_raw(self), pfaxserver.into().abi(), bstrjobid.into().abi()).ok() + (::windows::core::Interface::vtable(self).OnOutgoingJobRemoved)(::windows::core::Interface::as_raw(self), pfaxserver.into().abi(), ::core::mem::transmute_copy(bstrjobid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn OnOutgoingJobChanged<'a, P0, P1, P2>(&self, pfaxserver: P0, bstrjobid: P1, pjobstatus: P2) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn OnOutgoingJobChanged<'a, P0, P1>(&self, pfaxserver: P0, bstrjobid: &::windows::core::BSTR, pjobstatus: P1) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IFaxServer2>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IFaxJobStatus>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, IFaxJobStatus>>, { - (::windows::core::Interface::vtable(self).OnOutgoingJobChanged)(::windows::core::Interface::as_raw(self), pfaxserver.into().abi(), bstrjobid.into().abi(), pjobstatus.into().abi()).ok() + (::windows::core::Interface::vtable(self).OnOutgoingJobChanged)(::windows::core::Interface::as_raw(self), pfaxserver.into().abi(), ::core::mem::transmute_copy(bstrjobid), pjobstatus.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn OnIncomingMessageAdded<'a, P0, P1>(&self, pfaxserver: P0, bstrmessageid: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn OnIncomingMessageAdded<'a, P0>(&self, pfaxserver: P0, bstrmessageid: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IFaxServer2>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).OnIncomingMessageAdded)(::windows::core::Interface::as_raw(self), pfaxserver.into().abi(), bstrmessageid.into().abi()).ok() + (::windows::core::Interface::vtable(self).OnIncomingMessageAdded)(::windows::core::Interface::as_raw(self), pfaxserver.into().abi(), ::core::mem::transmute_copy(bstrmessageid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn OnIncomingMessageRemoved<'a, P0, P1>(&self, pfaxserver: P0, bstrmessageid: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn OnIncomingMessageRemoved<'a, P0>(&self, pfaxserver: P0, bstrmessageid: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IFaxServer2>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).OnIncomingMessageRemoved)(::windows::core::Interface::as_raw(self), pfaxserver.into().abi(), bstrmessageid.into().abi()).ok() + (::windows::core::Interface::vtable(self).OnIncomingMessageRemoved)(::windows::core::Interface::as_raw(self), pfaxserver.into().abi(), ::core::mem::transmute_copy(bstrmessageid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn OnOutgoingMessageAdded<'a, P0, P1>(&self, pfaxserver: P0, bstrmessageid: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn OnOutgoingMessageAdded<'a, P0>(&self, pfaxserver: P0, bstrmessageid: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IFaxServer2>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).OnOutgoingMessageAdded)(::windows::core::Interface::as_raw(self), pfaxserver.into().abi(), bstrmessageid.into().abi()).ok() + (::windows::core::Interface::vtable(self).OnOutgoingMessageAdded)(::windows::core::Interface::as_raw(self), pfaxserver.into().abi(), ::core::mem::transmute_copy(bstrmessageid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn OnOutgoingMessageRemoved<'a, P0, P1>(&self, pfaxserver: P0, bstrmessageid: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn OnOutgoingMessageRemoved<'a, P0>(&self, pfaxserver: P0, bstrmessageid: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IFaxServer2>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).OnOutgoingMessageRemoved)(::windows::core::Interface::as_raw(self), pfaxserver.into().abi(), bstrmessageid.into().abi()).ok() + (::windows::core::Interface::vtable(self).OnOutgoingMessageRemoved)(::windows::core::Interface::as_raw(self), pfaxserver.into().abi(), ::core::mem::transmute_copy(bstrmessageid)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -10827,14 +9760,13 @@ impl _IFaxServerNotify2 { { (::windows::core::Interface::vtable(self).OnQueuesStatusChange)(::windows::core::Interface::as_raw(self), pfaxserver.into().abi(), boutgoingqueueblocked, boutgoingqueuepaused, bincomingqueueblocked).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn OnNewCall<'a, P0, P1>(&self, pfaxserver: P0, lcallid: i32, ldeviceid: i32, bstrcallerid: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn OnNewCall<'a, P0>(&self, pfaxserver: P0, lcallid: i32, ldeviceid: i32, bstrcallerid: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IFaxServer2>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).OnNewCall)(::windows::core::Interface::as_raw(self), pfaxserver.into().abi(), lcallid, ldeviceid, bstrcallerid.into().abi()).ok() + (::windows::core::Interface::vtable(self).OnNewCall)(::windows::core::Interface::as_raw(self), pfaxserver.into().abi(), lcallid, ldeviceid, ::core::mem::transmute_copy(bstrcallerid)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -10927,45 +9859,45 @@ unsafe impl ::windows::core::Interface for _IFaxServerNotify2 { #[doc(hidden)] pub struct _IFaxServerNotify2_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub OnIncomingJobAdded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub OnIncomingJobAdded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] OnIncomingJobAdded: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub OnIncomingJobRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub OnIncomingJobRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] OnIncomingJobRemoved: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub OnIncomingJobChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop, pjobstatus: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub OnIncomingJobChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pjobstatus: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] OnIncomingJobChanged: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub OnOutgoingJobAdded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub OnOutgoingJobAdded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] OnOutgoingJobAdded: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub OnOutgoingJobRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub OnOutgoingJobRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] OnOutgoingJobRemoved: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub OnOutgoingJobChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop, pjobstatus: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub OnOutgoingJobChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrjobid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pjobstatus: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] OnOutgoingJobChanged: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub OnIncomingMessageAdded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub OnIncomingMessageAdded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] OnIncomingMessageAdded: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub OnIncomingMessageRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub OnIncomingMessageRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] OnIncomingMessageRemoved: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub OnOutgoingMessageAdded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub OnOutgoingMessageAdded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] OnOutgoingMessageAdded: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub OnOutgoingMessageRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub OnOutgoingMessageRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, bstrmessageid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] OnOutgoingMessageRemoved: usize, #[cfg(feature = "Win32_System_Com")] pub OnReceiptOptionsChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -11015,9 +9947,9 @@ pub struct _IFaxServerNotify2_Vtbl { pub OnQueuesStatusChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, boutgoingqueueblocked: i16, boutgoingqueuepaused: i16, bincomingqueueblocked: i16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] OnQueuesStatusChange: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub OnNewCall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, lcallid: i32, ldeviceid: i32, bstrcallerid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub OnNewCall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void, lcallid: i32, ldeviceid: i32, bstrcallerid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] OnNewCall: usize, #[cfg(feature = "Win32_System_Com")] pub OnServerShutDown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfaxserver: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Geolocation/impl.rs b/crates/libs/windows/src/Windows/Win32/Devices/Geolocation/impl.rs index 7cb9b0df22..9c618b86d7 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Geolocation/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Geolocation/impl.rs @@ -1,11 +1,11 @@ #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_PropertiesSystem"))] pub trait ICivicAddressReport_Impl: Sized + ILocationReport_Impl { - fn GetAddressLine1(&self) -> ::windows::core::Result; - fn GetAddressLine2(&self) -> ::windows::core::Result; - fn GetCity(&self) -> ::windows::core::Result; - fn GetStateProvince(&self) -> ::windows::core::Result; - fn GetPostalCode(&self) -> ::windows::core::Result; - fn GetCountryRegion(&self) -> ::windows::core::Result; + fn GetAddressLine1(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetAddressLine2(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetCity(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetStateProvince(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetPostalCode(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetCountryRegion(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetDetailLevel(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_PropertiesSystem"))] @@ -13,7 +13,7 @@ impl ::windows::core::RuntimeName for ICivicAddressReport {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_PropertiesSystem"))] impl ICivicAddressReport_Vtbl { pub const fn new, Impl: ICivicAddressReport_Impl, const OFFSET: isize>() -> ICivicAddressReport_Vtbl { - unsafe extern "system" fn GetAddressLine1, Impl: ICivicAddressReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstraddress1: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetAddressLine1, Impl: ICivicAddressReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstraddress1: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetAddressLine1() { @@ -24,7 +24,7 @@ impl ICivicAddressReport_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetAddressLine2, Impl: ICivicAddressReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstraddress2: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetAddressLine2, Impl: ICivicAddressReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstraddress2: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetAddressLine2() { @@ -35,7 +35,7 @@ impl ICivicAddressReport_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetCity, Impl: ICivicAddressReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcity: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCity, Impl: ICivicAddressReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcity: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCity() { @@ -46,7 +46,7 @@ impl ICivicAddressReport_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetStateProvince, Impl: ICivicAddressReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrstateprovince: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetStateProvince, Impl: ICivicAddressReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrstateprovince: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetStateProvince() { @@ -57,7 +57,7 @@ impl ICivicAddressReport_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetPostalCode, Impl: ICivicAddressReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpostalcode: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPostalCode, Impl: ICivicAddressReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpostalcode: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetPostalCode() { @@ -68,7 +68,7 @@ impl ICivicAddressReport_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetCountryRegion, Impl: ICivicAddressReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcountryregion: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCountryRegion, Impl: ICivicAddressReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcountryregion: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCountryRegion() { @@ -166,12 +166,12 @@ impl IDefaultLocation_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IDispCivicAddressReport_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn AddressLine1(&self) -> ::windows::core::Result; - fn AddressLine2(&self) -> ::windows::core::Result; - fn City(&self) -> ::windows::core::Result; - fn StateProvince(&self) -> ::windows::core::Result; - fn PostalCode(&self) -> ::windows::core::Result; - fn CountryRegion(&self) -> ::windows::core::Result; + fn AddressLine1(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn AddressLine2(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn City(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn StateProvince(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn PostalCode(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CountryRegion(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn DetailLevel(&self) -> ::windows::core::Result; fn Timestamp(&self) -> ::windows::core::Result; } @@ -180,7 +180,7 @@ impl ::windows::core::RuntimeName for IDispCivicAddressReport {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IDispCivicAddressReport_Vtbl { pub const fn new, Impl: IDispCivicAddressReport_Impl, const OFFSET: isize>() -> IDispCivicAddressReport_Vtbl { - unsafe extern "system" fn AddressLine1, Impl: IDispCivicAddressReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, paddress1: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddressLine1, Impl: IDispCivicAddressReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, paddress1: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AddressLine1() { @@ -191,7 +191,7 @@ impl IDispCivicAddressReport_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AddressLine2, Impl: IDispCivicAddressReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, paddress2: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddressLine2, Impl: IDispCivicAddressReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, paddress2: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AddressLine2() { @@ -202,7 +202,7 @@ impl IDispCivicAddressReport_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn City, Impl: IDispCivicAddressReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcity: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn City, Impl: IDispCivicAddressReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcity: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.City() { @@ -213,7 +213,7 @@ impl IDispCivicAddressReport_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn StateProvince, Impl: IDispCivicAddressReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstateprovince: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn StateProvince, Impl: IDispCivicAddressReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstateprovince: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.StateProvince() { @@ -224,7 +224,7 @@ impl IDispCivicAddressReport_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn PostalCode, Impl: IDispCivicAddressReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppostalcode: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PostalCode, Impl: IDispCivicAddressReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppostalcode: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PostalCode() { @@ -235,7 +235,7 @@ impl IDispCivicAddressReport_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CountryRegion, Impl: IDispCivicAddressReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcountryregion: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CountryRegion, Impl: IDispCivicAddressReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcountryregion: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CountryRegion() { diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Geolocation/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/Geolocation/mod.rs index c2be3fb4f8..111c610ee7 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Geolocation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Geolocation/mod.rs @@ -18,41 +18,29 @@ impl ICivicAddressReport { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pkey), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetAddressLine1(&self) -> ::windows::core::Result { + pub unsafe fn GetAddressLine1(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetAddressLine1)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetAddressLine1)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetAddressLine2(&self) -> ::windows::core::Result { + pub unsafe fn GetAddressLine2(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetAddressLine2)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetAddressLine2)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCity(&self) -> ::windows::core::Result { + pub unsafe fn GetCity(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetCity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetCity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetStateProvince(&self) -> ::windows::core::Result { + pub unsafe fn GetStateProvince(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetStateProvince)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetStateProvince)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPostalCode(&self) -> ::windows::core::Result { + pub unsafe fn GetPostalCode(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetPostalCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetPostalCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCountryRegion(&self) -> ::windows::core::Result { + pub unsafe fn GetCountryRegion(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetCountryRegion)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetCountryRegion)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetDetailLevel(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -113,30 +101,12 @@ unsafe impl ::windows::core::Interface for ICivicAddressReport { #[doc(hidden)] pub struct ICivicAddressReport_Vtbl { pub base__: ILocationReport_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetAddressLine1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstraddress1: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetAddressLine1: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetAddressLine2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstraddress2: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetAddressLine2: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetCity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcity: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetCity: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetStateProvince: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstateprovince: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetStateProvince: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetPostalCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpostalcode: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPostalCode: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetCountryRegion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcountryregion: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetCountryRegion: usize, + pub GetAddressLine1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstraddress1: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetAddressLine2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstraddress2: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetCity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcity: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetStateProvince: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstateprovince: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetPostalCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpostalcode: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetCountryRegion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcountryregion: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetDetailLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdetaillevel: *mut u32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_Geolocation\"`, `\"Win32_System_Com\"`*"] @@ -331,41 +301,29 @@ pub struct IDefaultLocation_Vtbl { pub struct IDispCivicAddressReport(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IDispCivicAddressReport { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddressLine1(&self) -> ::windows::core::Result { + pub unsafe fn AddressLine1(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AddressLine1)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AddressLine1)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddressLine2(&self) -> ::windows::core::Result { + pub unsafe fn AddressLine2(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AddressLine2)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AddressLine2)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn City(&self) -> ::windows::core::Result { + pub unsafe fn City(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).City)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).City)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StateProvince(&self) -> ::windows::core::Result { + pub unsafe fn StateProvince(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).StateProvince)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).StateProvince)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PostalCode(&self) -> ::windows::core::Result { + pub unsafe fn PostalCode(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PostalCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PostalCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CountryRegion(&self) -> ::windows::core::Result { + pub unsafe fn CountryRegion(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CountryRegion)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CountryRegion)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn DetailLevel(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -442,30 +400,12 @@ unsafe impl ::windows::core::Interface for IDispCivicAddressReport { #[doc(hidden)] pub struct IDispCivicAddressReport_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub AddressLine1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, paddress1: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddressLine1: usize, - #[cfg(feature = "Win32_Foundation")] - pub AddressLine2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, paddress2: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddressLine2: usize, - #[cfg(feature = "Win32_Foundation")] - pub City: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcity: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - City: usize, - #[cfg(feature = "Win32_Foundation")] - pub StateProvince: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstateprovince: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - StateProvince: usize, - #[cfg(feature = "Win32_Foundation")] - pub PostalCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppostalcode: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PostalCode: usize, - #[cfg(feature = "Win32_Foundation")] - pub CountryRegion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcountryregion: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CountryRegion: usize, + pub AddressLine1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, paddress1: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub AddressLine2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, paddress2: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub City: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcity: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub StateProvince: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstateprovince: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub PostalCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppostalcode: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CountryRegion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcountryregion: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub DetailLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdetaillevel: *mut u32) -> ::windows::core::HRESULT, pub Timestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut f64) -> ::windows::core::HRESULT, } diff --git a/crates/libs/windows/src/Windows/Win32/Devices/ImageAcquisition/impl.rs b/crates/libs/windows/src/Windows/Win32/Devices/ImageAcquisition/impl.rs index 6643210223..411cd2ec85 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/ImageAcquisition/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/ImageAcquisition/impl.rs @@ -1,4 +1,3 @@ -#[cfg(feature = "Win32_Foundation")] pub trait IEnumWIA_DEV_CAPS_Impl: Sized { fn Next(&self, celt: u32, rgelt: *mut WIA_DEV_CAP, pceltfetched: *mut u32) -> ::windows::core::Result<()>; fn Skip(&self, celt: u32) -> ::windows::core::Result<()>; @@ -6,9 +5,7 @@ pub trait IEnumWIA_DEV_CAPS_Impl: Sized { fn Clone(&self) -> ::windows::core::Result; fn GetCount(&self) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IEnumWIA_DEV_CAPS {} -#[cfg(feature = "Win32_Foundation")] impl IEnumWIA_DEV_CAPS_Vtbl { pub const fn new, Impl: IEnumWIA_DEV_CAPS_Impl, const OFFSET: isize>() -> IEnumWIA_DEV_CAPS_Vtbl { unsafe extern "system" fn Next, Impl: IEnumWIA_DEV_CAPS_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, celt: u32, rgelt: *mut WIA_DEV_CAP, pceltfetched: *mut u32) -> ::windows::core::HRESULT { @@ -420,13 +417,13 @@ impl IWiaDataTransfer_Vtbl { #[cfg(feature = "Win32_Foundation")] pub trait IWiaDevMgr_Impl: Sized { fn EnumDeviceInfo(&self, lflag: i32) -> ::windows::core::Result; - fn CreateDevice(&self, bstrdeviceid: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn SelectDeviceDlg(&self, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut super::super::Foundation::BSTR, ppitemroot: *mut ::core::option::Option) -> ::windows::core::Result<()>; - fn SelectDeviceDlgID(&self, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetImageDlg(&self, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, lintent: i32, pitemroot: &::core::option::Option, bstrfilename: &super::super::Foundation::BSTR, pguidformat: *mut ::windows::core::GUID) -> ::windows::core::Result<()>; - fn RegisterEventCallbackProgram(&self, lflags: i32, bstrdeviceid: &super::super::Foundation::BSTR, peventguid: *const ::windows::core::GUID, bstrcommandline: &super::super::Foundation::BSTR, bstrname: &super::super::Foundation::BSTR, bstrdescription: &super::super::Foundation::BSTR, bstricon: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn RegisterEventCallbackInterface(&self, lflags: i32, bstrdeviceid: &super::super::Foundation::BSTR, peventguid: *const ::windows::core::GUID, piwiaeventcallback: &::core::option::Option) -> ::windows::core::Result<::windows::core::IUnknown>; - fn RegisterEventCallbackCLSID(&self, lflags: i32, bstrdeviceid: &super::super::Foundation::BSTR, peventguid: *const ::windows::core::GUID, pclsid: *const ::windows::core::GUID, bstrname: &super::super::Foundation::BSTR, bstrdescription: &super::super::Foundation::BSTR, bstricon: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn CreateDevice(&self, bstrdeviceid: &::windows::core::BSTR) -> ::windows::core::Result; + fn SelectDeviceDlg(&self, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut ::windows::core::BSTR, ppitemroot: *mut ::core::option::Option) -> ::windows::core::Result<()>; + fn SelectDeviceDlgID(&self, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetImageDlg(&self, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, lintent: i32, pitemroot: &::core::option::Option, bstrfilename: &::windows::core::BSTR, pguidformat: *mut ::windows::core::GUID) -> ::windows::core::Result<()>; + fn RegisterEventCallbackProgram(&self, lflags: i32, bstrdeviceid: &::windows::core::BSTR, peventguid: *const ::windows::core::GUID, bstrcommandline: &::windows::core::BSTR, bstrname: &::windows::core::BSTR, bstrdescription: &::windows::core::BSTR, bstricon: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn RegisterEventCallbackInterface(&self, lflags: i32, bstrdeviceid: &::windows::core::BSTR, peventguid: *const ::windows::core::GUID, piwiaeventcallback: &::core::option::Option) -> ::windows::core::Result<::windows::core::IUnknown>; + fn RegisterEventCallbackCLSID(&self, lflags: i32, bstrdeviceid: &::windows::core::BSTR, peventguid: *const ::windows::core::GUID, pclsid: *const ::windows::core::GUID, bstrname: &::windows::core::BSTR, bstrdescription: &::windows::core::BSTR, bstricon: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn AddDeviceDlg(&self, hwndparent: super::super::Foundation::HWND, lflags: i32) -> ::windows::core::Result<()>; } #[cfg(feature = "Win32_Foundation")] @@ -445,7 +442,7 @@ impl IWiaDevMgr_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateDevice, Impl: IWiaDevMgr_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdeviceid: ::core::mem::ManuallyDrop, ppwiaitemroot: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateDevice, Impl: IWiaDevMgr_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdeviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppwiaitemroot: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateDevice(::core::mem::transmute(&bstrdeviceid)) { @@ -456,27 +453,27 @@ impl IWiaDevMgr_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SelectDeviceDlg, Impl: IWiaDevMgr_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut super::super::Foundation::BSTR, ppitemroot: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn SelectDeviceDlg, Impl: IWiaDevMgr_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppitemroot: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SelectDeviceDlg(::core::mem::transmute_copy(&hwndparent), ::core::mem::transmute_copy(&ldevicetype), ::core::mem::transmute_copy(&lflags), ::core::mem::transmute_copy(&pbstrdeviceid), ::core::mem::transmute_copy(&ppitemroot)).into() } - unsafe extern "system" fn SelectDeviceDlgID, Impl: IWiaDevMgr_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SelectDeviceDlgID, Impl: IWiaDevMgr_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SelectDeviceDlgID(::core::mem::transmute_copy(&hwndparent), ::core::mem::transmute_copy(&ldevicetype), ::core::mem::transmute_copy(&lflags), ::core::mem::transmute_copy(&pbstrdeviceid)).into() } - unsafe extern "system" fn GetImageDlg, Impl: IWiaDevMgr_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, lintent: i32, pitemroot: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop, pguidformat: *mut ::windows::core::GUID) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetImageDlg, Impl: IWiaDevMgr_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, lintent: i32, pitemroot: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pguidformat: *mut ::windows::core::GUID) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetImageDlg(::core::mem::transmute_copy(&hwndparent), ::core::mem::transmute_copy(&ldevicetype), ::core::mem::transmute_copy(&lflags), ::core::mem::transmute_copy(&lintent), ::core::mem::transmute(&pitemroot), ::core::mem::transmute(&bstrfilename), ::core::mem::transmute_copy(&pguidformat)).into() } - unsafe extern "system" fn RegisterEventCallbackProgram, Impl: IWiaDevMgr_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, bstrdeviceid: ::core::mem::ManuallyDrop, peventguid: *const ::windows::core::GUID, bstrcommandline: ::core::mem::ManuallyDrop, bstrname: ::core::mem::ManuallyDrop, bstrdescription: ::core::mem::ManuallyDrop, bstricon: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn RegisterEventCallbackProgram, Impl: IWiaDevMgr_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, bstrdeviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, peventguid: *const ::windows::core::GUID, bstrcommandline: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstricon: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RegisterEventCallbackProgram(::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&bstrdeviceid), ::core::mem::transmute_copy(&peventguid), ::core::mem::transmute(&bstrcommandline), ::core::mem::transmute(&bstrname), ::core::mem::transmute(&bstrdescription), ::core::mem::transmute(&bstricon)).into() } - unsafe extern "system" fn RegisterEventCallbackInterface, Impl: IWiaDevMgr_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, bstrdeviceid: ::core::mem::ManuallyDrop, peventguid: *const ::windows::core::GUID, piwiaeventcallback: *mut ::core::ffi::c_void, peventobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn RegisterEventCallbackInterface, Impl: IWiaDevMgr_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, bstrdeviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, peventguid: *const ::windows::core::GUID, piwiaeventcallback: *mut ::core::ffi::c_void, peventobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RegisterEventCallbackInterface(::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&bstrdeviceid), ::core::mem::transmute_copy(&peventguid), ::core::mem::transmute(&piwiaeventcallback)) { @@ -487,7 +484,7 @@ impl IWiaDevMgr_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RegisterEventCallbackCLSID, Impl: IWiaDevMgr_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, bstrdeviceid: ::core::mem::ManuallyDrop, peventguid: *const ::windows::core::GUID, pclsid: *const ::windows::core::GUID, bstrname: ::core::mem::ManuallyDrop, bstrdescription: ::core::mem::ManuallyDrop, bstricon: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn RegisterEventCallbackCLSID, Impl: IWiaDevMgr_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, bstrdeviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, peventguid: *const ::windows::core::GUID, pclsid: *const ::windows::core::GUID, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstricon: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RegisterEventCallbackCLSID(::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&bstrdeviceid), ::core::mem::transmute_copy(&peventguid), ::core::mem::transmute_copy(&pclsid), ::core::mem::transmute(&bstrname), ::core::mem::transmute(&bstrdescription), ::core::mem::transmute(&bstricon)).into() @@ -517,13 +514,13 @@ impl IWiaDevMgr_Vtbl { #[cfg(feature = "Win32_Foundation")] pub trait IWiaDevMgr2_Impl: Sized { fn EnumDeviceInfo(&self, lflags: i32) -> ::windows::core::Result; - fn CreateDevice(&self, lflags: i32, bstrdeviceid: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn SelectDeviceDlg(&self, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut super::super::Foundation::BSTR, ppitemroot: *mut ::core::option::Option) -> ::windows::core::Result<()>; - fn SelectDeviceDlgID(&self, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn RegisterEventCallbackInterface(&self, lflags: i32, bstrdeviceid: &super::super::Foundation::BSTR, peventguid: *const ::windows::core::GUID, piwiaeventcallback: &::core::option::Option) -> ::windows::core::Result<::windows::core::IUnknown>; - fn RegisterEventCallbackProgram(&self, lflags: i32, bstrdeviceid: &super::super::Foundation::BSTR, peventguid: *const ::windows::core::GUID, bstrfullappname: &super::super::Foundation::BSTR, bstrcommandlinearg: &super::super::Foundation::BSTR, bstrname: &super::super::Foundation::BSTR, bstrdescription: &super::super::Foundation::BSTR, bstricon: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn RegisterEventCallbackCLSID(&self, lflags: i32, bstrdeviceid: &super::super::Foundation::BSTR, peventguid: *const ::windows::core::GUID, pclsid: *const ::windows::core::GUID, bstrname: &super::super::Foundation::BSTR, bstrdescription: &super::super::Foundation::BSTR, bstricon: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetImageDlg(&self, lflags: i32, bstrdeviceid: &super::super::Foundation::BSTR, hwndparent: super::super::Foundation::HWND, bstrfoldername: &super::super::Foundation::BSTR, bstrfilename: &super::super::Foundation::BSTR, plnumfiles: *mut i32, ppbstrfilepaths: *mut *mut super::super::Foundation::BSTR, ppitem: *mut ::core::option::Option) -> ::windows::core::Result<()>; + fn CreateDevice(&self, lflags: i32, bstrdeviceid: &::windows::core::BSTR) -> ::windows::core::Result; + fn SelectDeviceDlg(&self, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut ::windows::core::BSTR, ppitemroot: *mut ::core::option::Option) -> ::windows::core::Result<()>; + fn SelectDeviceDlgID(&self, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn RegisterEventCallbackInterface(&self, lflags: i32, bstrdeviceid: &::windows::core::BSTR, peventguid: *const ::windows::core::GUID, piwiaeventcallback: &::core::option::Option) -> ::windows::core::Result<::windows::core::IUnknown>; + fn RegisterEventCallbackProgram(&self, lflags: i32, bstrdeviceid: &::windows::core::BSTR, peventguid: *const ::windows::core::GUID, bstrfullappname: &::windows::core::BSTR, bstrcommandlinearg: &::windows::core::BSTR, bstrname: &::windows::core::BSTR, bstrdescription: &::windows::core::BSTR, bstricon: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn RegisterEventCallbackCLSID(&self, lflags: i32, bstrdeviceid: &::windows::core::BSTR, peventguid: *const ::windows::core::GUID, pclsid: *const ::windows::core::GUID, bstrname: &::windows::core::BSTR, bstrdescription: &::windows::core::BSTR, bstricon: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetImageDlg(&self, lflags: i32, bstrdeviceid: &::windows::core::BSTR, hwndparent: super::super::Foundation::HWND, bstrfoldername: &::windows::core::BSTR, bstrfilename: &::windows::core::BSTR, plnumfiles: *mut i32, ppbstrfilepaths: *mut *mut ::windows::core::BSTR, ppitem: *mut ::core::option::Option) -> ::windows::core::Result<()>; } #[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IWiaDevMgr2 {} @@ -541,7 +538,7 @@ impl IWiaDevMgr2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateDevice, Impl: IWiaDevMgr2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, bstrdeviceid: ::core::mem::ManuallyDrop, ppwiaitem2root: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateDevice, Impl: IWiaDevMgr2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, bstrdeviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppwiaitem2root: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateDevice(::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&bstrdeviceid)) { @@ -552,17 +549,17 @@ impl IWiaDevMgr2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SelectDeviceDlg, Impl: IWiaDevMgr2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut super::super::Foundation::BSTR, ppitemroot: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn SelectDeviceDlg, Impl: IWiaDevMgr2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppitemroot: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SelectDeviceDlg(::core::mem::transmute_copy(&hwndparent), ::core::mem::transmute_copy(&ldevicetype), ::core::mem::transmute_copy(&lflags), ::core::mem::transmute_copy(&pbstrdeviceid), ::core::mem::transmute_copy(&ppitemroot)).into() } - unsafe extern "system" fn SelectDeviceDlgID, Impl: IWiaDevMgr2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SelectDeviceDlgID, Impl: IWiaDevMgr2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SelectDeviceDlgID(::core::mem::transmute_copy(&hwndparent), ::core::mem::transmute_copy(&ldevicetype), ::core::mem::transmute_copy(&lflags), ::core::mem::transmute_copy(&pbstrdeviceid)).into() } - unsafe extern "system" fn RegisterEventCallbackInterface, Impl: IWiaDevMgr2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, bstrdeviceid: ::core::mem::ManuallyDrop, peventguid: *const ::windows::core::GUID, piwiaeventcallback: *mut ::core::ffi::c_void, peventobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn RegisterEventCallbackInterface, Impl: IWiaDevMgr2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, bstrdeviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, peventguid: *const ::windows::core::GUID, piwiaeventcallback: *mut ::core::ffi::c_void, peventobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RegisterEventCallbackInterface(::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&bstrdeviceid), ::core::mem::transmute_copy(&peventguid), ::core::mem::transmute(&piwiaeventcallback)) { @@ -573,17 +570,17 @@ impl IWiaDevMgr2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RegisterEventCallbackProgram, Impl: IWiaDevMgr2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, bstrdeviceid: ::core::mem::ManuallyDrop, peventguid: *const ::windows::core::GUID, bstrfullappname: ::core::mem::ManuallyDrop, bstrcommandlinearg: ::core::mem::ManuallyDrop, bstrname: ::core::mem::ManuallyDrop, bstrdescription: ::core::mem::ManuallyDrop, bstricon: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn RegisterEventCallbackProgram, Impl: IWiaDevMgr2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, bstrdeviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, peventguid: *const ::windows::core::GUID, bstrfullappname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrcommandlinearg: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstricon: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RegisterEventCallbackProgram(::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&bstrdeviceid), ::core::mem::transmute_copy(&peventguid), ::core::mem::transmute(&bstrfullappname), ::core::mem::transmute(&bstrcommandlinearg), ::core::mem::transmute(&bstrname), ::core::mem::transmute(&bstrdescription), ::core::mem::transmute(&bstricon)).into() } - unsafe extern "system" fn RegisterEventCallbackCLSID, Impl: IWiaDevMgr2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, bstrdeviceid: ::core::mem::ManuallyDrop, peventguid: *const ::windows::core::GUID, pclsid: *const ::windows::core::GUID, bstrname: ::core::mem::ManuallyDrop, bstrdescription: ::core::mem::ManuallyDrop, bstricon: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn RegisterEventCallbackCLSID, Impl: IWiaDevMgr2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, bstrdeviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, peventguid: *const ::windows::core::GUID, pclsid: *const ::windows::core::GUID, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstricon: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RegisterEventCallbackCLSID(::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&bstrdeviceid), ::core::mem::transmute_copy(&peventguid), ::core::mem::transmute_copy(&pclsid), ::core::mem::transmute(&bstrname), ::core::mem::transmute(&bstrdescription), ::core::mem::transmute(&bstricon)).into() } - unsafe extern "system" fn GetImageDlg, Impl: IWiaDevMgr2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, bstrdeviceid: ::core::mem::ManuallyDrop, hwndparent: super::super::Foundation::HWND, bstrfoldername: ::core::mem::ManuallyDrop, bstrfilename: ::core::mem::ManuallyDrop, plnumfiles: *mut i32, ppbstrfilepaths: *mut *mut super::super::Foundation::BSTR, ppitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetImageDlg, Impl: IWiaDevMgr2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, bstrdeviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, hwndparent: super::super::Foundation::HWND, bstrfoldername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, plnumfiles: *mut i32, ppbstrfilepaths: *mut *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetImageDlg(::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&bstrdeviceid), ::core::mem::transmute_copy(&hwndparent), ::core::mem::transmute(&bstrfoldername), ::core::mem::transmute(&bstrfilename), ::core::mem::transmute_copy(&plnumfiles), ::core::mem::transmute_copy(&ppbstrfilepaths), ::core::mem::transmute_copy(&ppitem)).into() @@ -604,25 +601,22 @@ impl IWiaDevMgr2_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IWiaDrvItem_Impl: Sized { fn GetItemFlags(&self) -> ::windows::core::Result; fn GetDeviceSpecContext(&self) -> ::windows::core::Result<*mut u8>; - fn GetFullItemName(&self) -> ::windows::core::Result; - fn GetItemName(&self) -> ::windows::core::Result; + fn GetFullItemName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetItemName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn AddItemToFolder(&self, __midl__iwiadrvitem0004: &::core::option::Option) -> ::windows::core::Result<()>; fn UnlinkItemTree(&self, __midl__iwiadrvitem0005: i32) -> ::windows::core::Result<()>; fn RemoveItemFromFolder(&self, __midl__iwiadrvitem0006: i32) -> ::windows::core::Result<()>; - fn FindItemByName(&self, __midl__iwiadrvitem0007: i32, __midl__iwiadrvitem0008: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn FindChildItemByName(&self, __midl__iwiadrvitem0010: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn FindItemByName(&self, __midl__iwiadrvitem0007: i32, __midl__iwiadrvitem0008: &::windows::core::BSTR) -> ::windows::core::Result; + fn FindChildItemByName(&self, __midl__iwiadrvitem0010: &::windows::core::BSTR) -> ::windows::core::Result; fn GetParentItem(&self) -> ::windows::core::Result; fn GetFirstChildItem(&self) -> ::windows::core::Result; fn GetNextSiblingItem(&self) -> ::windows::core::Result; - fn DumpItemData(&self) -> ::windows::core::Result; + fn DumpItemData(&self) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IWiaDrvItem {} -#[cfg(feature = "Win32_Foundation")] impl IWiaDrvItem_Vtbl { pub const fn new, Impl: IWiaDrvItem_Impl, const OFFSET: isize>() -> IWiaDrvItem_Vtbl { unsafe extern "system" fn GetItemFlags, Impl: IWiaDrvItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, __midl__iwiadrvitem0000: *mut i32) -> ::windows::core::HRESULT { @@ -647,7 +641,7 @@ impl IWiaDrvItem_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetFullItemName, Impl: IWiaDrvItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, __midl__iwiadrvitem0002: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFullItemName, Impl: IWiaDrvItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, __midl__iwiadrvitem0002: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetFullItemName() { @@ -658,7 +652,7 @@ impl IWiaDrvItem_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetItemName, Impl: IWiaDrvItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, __midl__iwiadrvitem0003: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetItemName, Impl: IWiaDrvItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, __midl__iwiadrvitem0003: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetItemName() { @@ -684,7 +678,7 @@ impl IWiaDrvItem_Vtbl { let this = (*this).get_impl(); this.RemoveItemFromFolder(::core::mem::transmute_copy(&__midl__iwiadrvitem0006)).into() } - unsafe extern "system" fn FindItemByName, Impl: IWiaDrvItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, __midl__iwiadrvitem0007: i32, __midl__iwiadrvitem0008: ::core::mem::ManuallyDrop, __midl__iwiadrvitem0009: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn FindItemByName, Impl: IWiaDrvItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, __midl__iwiadrvitem0007: i32, __midl__iwiadrvitem0008: ::core::mem::ManuallyDrop<::windows::core::BSTR>, __midl__iwiadrvitem0009: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FindItemByName(::core::mem::transmute_copy(&__midl__iwiadrvitem0007), ::core::mem::transmute(&__midl__iwiadrvitem0008)) { @@ -695,7 +689,7 @@ impl IWiaDrvItem_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn FindChildItemByName, Impl: IWiaDrvItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, __midl__iwiadrvitem0010: ::core::mem::ManuallyDrop, __midl__iwiadrvitem0011: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn FindChildItemByName, Impl: IWiaDrvItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, __midl__iwiadrvitem0010: ::core::mem::ManuallyDrop<::windows::core::BSTR>, __midl__iwiadrvitem0011: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FindChildItemByName(::core::mem::transmute(&__midl__iwiadrvitem0010)) { @@ -739,7 +733,7 @@ impl IWiaDrvItem_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DumpItemData, Impl: IWiaDrvItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, __midl__iwiadrvitem0015: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DumpItemData, Impl: IWiaDrvItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, __midl__iwiadrvitem0015: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DumpItemData() { @@ -774,7 +768,7 @@ impl IWiaDrvItem_Vtbl { #[cfg(feature = "Win32_Foundation")] pub trait IWiaErrorHandler_Impl: Sized { fn ReportStatus(&self, lflags: i32, hwndparent: super::super::Foundation::HWND, pwiaitem2: &::core::option::Option, hrstatus: ::windows::core::HRESULT, lpercentcomplete: i32) -> ::windows::core::Result<()>; - fn GetStatusDescription(&self, lflags: i32, pwiaitem2: &::core::option::Option, hrstatus: ::windows::core::HRESULT) -> ::windows::core::Result; + fn GetStatusDescription(&self, lflags: i32, pwiaitem2: &::core::option::Option, hrstatus: ::windows::core::HRESULT) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IWiaErrorHandler {} @@ -786,7 +780,7 @@ impl IWiaErrorHandler_Vtbl { let this = (*this).get_impl(); this.ReportStatus(::core::mem::transmute_copy(&lflags), ::core::mem::transmute_copy(&hwndparent), ::core::mem::transmute(&pwiaitem2), ::core::mem::transmute_copy(&hrstatus), ::core::mem::transmute_copy(&lpercentcomplete)).into() } - unsafe extern "system" fn GetStatusDescription, Impl: IWiaErrorHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, pwiaitem2: *mut ::core::ffi::c_void, hrstatus: ::windows::core::HRESULT, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetStatusDescription, Impl: IWiaErrorHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, pwiaitem2: *mut ::core::ffi::c_void, hrstatus: ::windows::core::HRESULT, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetStatusDescription(::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&pwiaitem2), ::core::mem::transmute_copy(&hrstatus)) { @@ -807,16 +801,13 @@ impl IWiaErrorHandler_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IWiaEventCallback_Impl: Sized { - fn ImageEventCallback(&self, peventguid: *const ::windows::core::GUID, bstreventdescription: &super::super::Foundation::BSTR, bstrdeviceid: &super::super::Foundation::BSTR, bstrdevicedescription: &super::super::Foundation::BSTR, dwdevicetype: u32, bstrfullitemname: &super::super::Foundation::BSTR, puleventtype: *mut u32, ulreserved: u32) -> ::windows::core::Result<()>; + fn ImageEventCallback(&self, peventguid: *const ::windows::core::GUID, bstreventdescription: &::windows::core::BSTR, bstrdeviceid: &::windows::core::BSTR, bstrdevicedescription: &::windows::core::BSTR, dwdevicetype: u32, bstrfullitemname: &::windows::core::BSTR, puleventtype: *mut u32, ulreserved: u32) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IWiaEventCallback {} -#[cfg(feature = "Win32_Foundation")] impl IWiaEventCallback_Vtbl { pub const fn new, Impl: IWiaEventCallback_Impl, const OFFSET: isize>() -> IWiaEventCallback_Vtbl { - unsafe extern "system" fn ImageEventCallback, Impl: IWiaEventCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, peventguid: *const ::windows::core::GUID, bstreventdescription: ::core::mem::ManuallyDrop, bstrdeviceid: ::core::mem::ManuallyDrop, bstrdevicedescription: ::core::mem::ManuallyDrop, dwdevicetype: u32, bstrfullitemname: ::core::mem::ManuallyDrop, puleventtype: *mut u32, ulreserved: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn ImageEventCallback, Impl: IWiaEventCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, peventguid: *const ::windows::core::GUID, bstreventdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdeviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdevicedescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwdevicetype: u32, bstrfullitemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, puleventtype: *mut u32, ulreserved: u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ImageEventCallback(::core::mem::transmute_copy(&peventguid), ::core::mem::transmute(&bstreventdescription), ::core::mem::transmute(&bstrdeviceid), ::core::mem::transmute(&bstrdevicedescription), ::core::mem::transmute_copy(&dwdevicetype), ::core::mem::transmute(&bstrfullitemname), ::core::mem::transmute_copy(&puleventtype), ::core::mem::transmute_copy(&ulreserved)).into() @@ -877,16 +868,16 @@ pub trait IWiaItem_Impl: Sized { fn AnalyzeItem(&self, lflags: i32) -> ::windows::core::Result<()>; fn EnumChildItems(&self) -> ::windows::core::Result; fn DeleteItem(&self, lflags: i32) -> ::windows::core::Result<()>; - fn CreateChildItem(&self, lflags: i32, bstritemname: &super::super::Foundation::BSTR, bstrfullitemname: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn CreateChildItem(&self, lflags: i32, bstritemname: &::windows::core::BSTR, bstrfullitemname: &::windows::core::BSTR) -> ::windows::core::Result; fn EnumRegisterEventInfo(&self, lflags: i32, peventguid: *const ::windows::core::GUID) -> ::windows::core::Result; - fn FindItemByName(&self, lflags: i32, bstrfullitemname: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn FindItemByName(&self, lflags: i32, bstrfullitemname: &::windows::core::BSTR) -> ::windows::core::Result; fn DeviceDlg(&self, hwndparent: super::super::Foundation::HWND, lflags: i32, lintent: i32, plitemcount: *mut i32, ppiwiaitem: *mut *mut ::core::option::Option) -> ::windows::core::Result<()>; fn DeviceCommand(&self, lflags: i32, pcmdguid: *const ::windows::core::GUID, piwiaitem: *mut ::core::option::Option) -> ::windows::core::Result<()>; fn GetRootItem(&self) -> ::windows::core::Result; fn EnumDeviceCapabilities(&self, lflags: i32) -> ::windows::core::Result; - fn DumpItemData(&self) -> ::windows::core::Result; - fn DumpDrvItemData(&self) -> ::windows::core::Result; - fn DumpTreeItemData(&self) -> ::windows::core::Result; + fn DumpItemData(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn DumpDrvItemData(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn DumpTreeItemData(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Diagnostic(&self, ulsize: u32, pbuffer: *const u8) -> ::windows::core::Result<()>; } #[cfg(feature = "Win32_Foundation")] @@ -926,7 +917,7 @@ impl IWiaItem_Vtbl { let this = (*this).get_impl(); this.DeleteItem(::core::mem::transmute_copy(&lflags)).into() } - unsafe extern "system" fn CreateChildItem, Impl: IWiaItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, bstritemname: ::core::mem::ManuallyDrop, bstrfullitemname: ::core::mem::ManuallyDrop, ppiwiaitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateChildItem, Impl: IWiaItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, bstritemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrfullitemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppiwiaitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateChildItem(::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&bstritemname), ::core::mem::transmute(&bstrfullitemname)) { @@ -948,7 +939,7 @@ impl IWiaItem_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn FindItemByName, Impl: IWiaItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, bstrfullitemname: ::core::mem::ManuallyDrop, ppiwiaitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn FindItemByName, Impl: IWiaItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, bstrfullitemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppiwiaitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FindItemByName(::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&bstrfullitemname)) { @@ -991,7 +982,7 @@ impl IWiaItem_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DumpItemData, Impl: IWiaItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DumpItemData, Impl: IWiaItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DumpItemData() { @@ -1002,7 +993,7 @@ impl IWiaItem_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DumpDrvItemData, Impl: IWiaItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DumpDrvItemData, Impl: IWiaItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DumpDrvItemData() { @@ -1013,7 +1004,7 @@ impl IWiaItem_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DumpTreeItemData, Impl: IWiaItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DumpTreeItemData, Impl: IWiaItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DumpTreeItemData() { @@ -1054,17 +1045,17 @@ impl IWiaItem_Vtbl { } #[cfg(feature = "Win32_Foundation")] pub trait IWiaItem2_Impl: Sized { - fn CreateChildItem(&self, litemflags: i32, lcreationflags: i32, bstritemname: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn CreateChildItem(&self, litemflags: i32, lcreationflags: i32, bstritemname: &::windows::core::BSTR) -> ::windows::core::Result; fn DeleteItem(&self, lflags: i32) -> ::windows::core::Result<()>; fn EnumChildItems(&self, pcategoryguid: *const ::windows::core::GUID) -> ::windows::core::Result; - fn FindItemByName(&self, lflags: i32, bstrfullitemname: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn FindItemByName(&self, lflags: i32, bstrfullitemname: &::windows::core::BSTR) -> ::windows::core::Result; fn GetItemCategory(&self) -> ::windows::core::Result<::windows::core::GUID>; fn GetItemType(&self) -> ::windows::core::Result; - fn DeviceDlg(&self, lflags: i32, hwndparent: super::super::Foundation::HWND, bstrfoldername: &super::super::Foundation::BSTR, bstrfilename: &super::super::Foundation::BSTR, plnumfiles: *mut i32, ppbstrfilepaths: *mut *mut super::super::Foundation::BSTR, ppitem: *mut ::core::option::Option) -> ::windows::core::Result<()>; + fn DeviceDlg(&self, lflags: i32, hwndparent: super::super::Foundation::HWND, bstrfoldername: &::windows::core::BSTR, bstrfilename: &::windows::core::BSTR, plnumfiles: *mut i32, ppbstrfilepaths: *mut *mut ::windows::core::BSTR, ppitem: *mut ::core::option::Option) -> ::windows::core::Result<()>; fn DeviceCommand(&self, lflags: i32, pcmdguid: *const ::windows::core::GUID, ppiwiaitem2: *mut ::core::option::Option) -> ::windows::core::Result<()>; fn EnumDeviceCapabilities(&self, lflags: i32) -> ::windows::core::Result; - fn CheckExtension(&self, lflags: i32, bstrname: &super::super::Foundation::BSTR, riidextensioninterface: *const ::windows::core::GUID, pbextensionexists: *mut super::super::Foundation::BOOL) -> ::windows::core::Result<()>; - fn GetExtension(&self, lflags: i32, bstrname: &super::super::Foundation::BSTR, riidextensioninterface: *const ::windows::core::GUID, ppout: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; + fn CheckExtension(&self, lflags: i32, bstrname: &::windows::core::BSTR, riidextensioninterface: *const ::windows::core::GUID, pbextensionexists: *mut super::super::Foundation::BOOL) -> ::windows::core::Result<()>; + fn GetExtension(&self, lflags: i32, bstrname: &::windows::core::BSTR, riidextensioninterface: *const ::windows::core::GUID, ppout: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; fn GetParentItem(&self) -> ::windows::core::Result; fn GetRootItem(&self) -> ::windows::core::Result; fn GetPreviewComponent(&self, lflags: i32) -> ::windows::core::Result; @@ -1076,7 +1067,7 @@ impl ::windows::core::RuntimeName for IWiaItem2 {} #[cfg(feature = "Win32_Foundation")] impl IWiaItem2_Vtbl { pub const fn new, Impl: IWiaItem2_Impl, const OFFSET: isize>() -> IWiaItem2_Vtbl { - unsafe extern "system" fn CreateChildItem, Impl: IWiaItem2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, litemflags: i32, lcreationflags: i32, bstritemname: ::core::mem::ManuallyDrop, ppiwiaitem2: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateChildItem, Impl: IWiaItem2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, litemflags: i32, lcreationflags: i32, bstritemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppiwiaitem2: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateChildItem(::core::mem::transmute_copy(&litemflags), ::core::mem::transmute_copy(&lcreationflags), ::core::mem::transmute(&bstritemname)) { @@ -1103,7 +1094,7 @@ impl IWiaItem2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn FindItemByName, Impl: IWiaItem2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, bstrfullitemname: ::core::mem::ManuallyDrop, ppiwiaitem2: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn FindItemByName, Impl: IWiaItem2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, bstrfullitemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppiwiaitem2: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FindItemByName(::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&bstrfullitemname)) { @@ -1136,7 +1127,7 @@ impl IWiaItem2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DeviceDlg, Impl: IWiaItem2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, hwndparent: super::super::Foundation::HWND, bstrfoldername: ::core::mem::ManuallyDrop, bstrfilename: ::core::mem::ManuallyDrop, plnumfiles: *mut i32, ppbstrfilepaths: *mut *mut super::super::Foundation::BSTR, ppitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeviceDlg, Impl: IWiaItem2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, hwndparent: super::super::Foundation::HWND, bstrfoldername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, plnumfiles: *mut i32, ppbstrfilepaths: *mut *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeviceDlg(::core::mem::transmute_copy(&lflags), ::core::mem::transmute_copy(&hwndparent), ::core::mem::transmute(&bstrfoldername), ::core::mem::transmute(&bstrfilename), ::core::mem::transmute_copy(&plnumfiles), ::core::mem::transmute_copy(&ppbstrfilepaths), ::core::mem::transmute_copy(&ppitem)).into() @@ -1157,12 +1148,12 @@ impl IWiaItem2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CheckExtension, Impl: IWiaItem2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, bstrname: ::core::mem::ManuallyDrop, riidextensioninterface: *const ::windows::core::GUID, pbextensionexists: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT { + unsafe extern "system" fn CheckExtension, Impl: IWiaItem2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, riidextensioninterface: *const ::windows::core::GUID, pbextensionexists: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CheckExtension(::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&bstrname), ::core::mem::transmute_copy(&riidextensioninterface), ::core::mem::transmute_copy(&pbextensionexists)).into() } - unsafe extern "system" fn GetExtension, Impl: IWiaItem2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, bstrname: ::core::mem::ManuallyDrop, riidextensioninterface: *const ::windows::core::GUID, ppout: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetExtension, Impl: IWiaItem2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, riidextensioninterface: *const ::windows::core::GUID, ppout: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetExtension(::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&bstrname), ::core::mem::transmute_copy(&riidextensioninterface), ::core::mem::transmute_copy(&ppout)).into() @@ -1240,18 +1231,15 @@ impl IWiaItem2_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IWiaItemExtras_Impl: Sized { - fn GetExtendedErrorInfo(&self) -> ::windows::core::Result; + fn GetExtendedErrorInfo(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Escape(&self, dwescapecode: u32, lpindata: *const u8, cbindatasize: u32, poutdata: *mut u8, dwoutdatasize: u32, pdwactualdatasize: *mut u32) -> ::windows::core::Result<()>; fn CancelPendingIO(&self) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IWiaItemExtras {} -#[cfg(feature = "Win32_Foundation")] impl IWiaItemExtras_Vtbl { pub const fn new, Impl: IWiaItemExtras_Impl, const OFFSET: isize>() -> IWiaItemExtras_Vtbl { - unsafe extern "system" fn GetExtendedErrorInfo, Impl: IWiaItemExtras_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrerrortext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetExtendedErrorInfo, Impl: IWiaItemExtras_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrerrortext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetExtendedErrorInfo() { @@ -1283,15 +1271,12 @@ impl IWiaItemExtras_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IWiaLog_Impl: Sized { fn InitializeLog(&self, hinstance: i32) -> ::windows::core::Result<()>; fn hResult(&self, hresult: ::windows::core::HRESULT) -> ::windows::core::Result<()>; - fn Log(&self, lflags: i32, lresid: i32, ldetail: i32, bstrtext: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Log(&self, lflags: i32, lresid: i32, ldetail: i32, bstrtext: &::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IWiaLog {} -#[cfg(feature = "Win32_Foundation")] impl IWiaLog_Vtbl { pub const fn new, Impl: IWiaLog_Impl, const OFFSET: isize>() -> IWiaLog_Vtbl { unsafe extern "system" fn InitializeLog, Impl: IWiaLog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hinstance: i32) -> ::windows::core::HRESULT { @@ -1304,7 +1289,7 @@ impl IWiaLog_Vtbl { let this = (*this).get_impl(); this.hResult(::core::mem::transmute_copy(&hresult)).into() } - unsafe extern "system" fn Log, Impl: IWiaLog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, lresid: i32, ldetail: i32, bstrtext: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Log, Impl: IWiaLog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, lresid: i32, ldetail: i32, bstrtext: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Log(::core::mem::transmute_copy(&lflags), ::core::mem::transmute_copy(&lresid), ::core::mem::transmute_copy(&ldetail), ::core::mem::transmute(&bstrtext)).into() @@ -1320,17 +1305,14 @@ impl IWiaLog_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IWiaLogEx_Impl: Sized { fn InitializeLogEx(&self, hinstance: *const u8) -> ::windows::core::Result<()>; fn hResult(&self, hresult: ::windows::core::HRESULT) -> ::windows::core::Result<()>; - fn Log(&self, lflags: i32, lresid: i32, ldetail: i32, bstrtext: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Log(&self, lflags: i32, lresid: i32, ldetail: i32, bstrtext: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn hResultEx(&self, lmethodid: i32, hresult: ::windows::core::HRESULT) -> ::windows::core::Result<()>; - fn LogEx(&self, lmethodid: i32, lflags: i32, lresid: i32, ldetail: i32, bstrtext: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn LogEx(&self, lmethodid: i32, lflags: i32, lresid: i32, ldetail: i32, bstrtext: &::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IWiaLogEx {} -#[cfg(feature = "Win32_Foundation")] impl IWiaLogEx_Vtbl { pub const fn new, Impl: IWiaLogEx_Impl, const OFFSET: isize>() -> IWiaLogEx_Vtbl { unsafe extern "system" fn InitializeLogEx, Impl: IWiaLogEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hinstance: *const u8) -> ::windows::core::HRESULT { @@ -1343,7 +1325,7 @@ impl IWiaLogEx_Vtbl { let this = (*this).get_impl(); this.hResult(::core::mem::transmute_copy(&hresult)).into() } - unsafe extern "system" fn Log, Impl: IWiaLogEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, lresid: i32, ldetail: i32, bstrtext: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Log, Impl: IWiaLogEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, lresid: i32, ldetail: i32, bstrtext: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Log(::core::mem::transmute_copy(&lflags), ::core::mem::transmute_copy(&lresid), ::core::mem::transmute_copy(&ldetail), ::core::mem::transmute(&bstrtext)).into() @@ -1353,7 +1335,7 @@ impl IWiaLogEx_Vtbl { let this = (*this).get_impl(); this.hResultEx(::core::mem::transmute_copy(&lmethodid), ::core::mem::transmute_copy(&hresult)).into() } - unsafe extern "system" fn LogEx, Impl: IWiaLogEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lmethodid: i32, lflags: i32, lresid: i32, ldetail: i32, bstrtext: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn LogEx, Impl: IWiaLogEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lmethodid: i32, lflags: i32, lresid: i32, ldetail: i32, bstrtext: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.LogEx(::core::mem::transmute_copy(&lmethodid), ::core::mem::transmute_copy(&lflags), ::core::mem::transmute_copy(&lresid), ::core::mem::transmute_copy(&ldetail), ::core::mem::transmute(&bstrtext)).into() @@ -1373,7 +1355,7 @@ impl IWiaLogEx_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] pub trait IWiaMiniDrv_Impl: Sized { - fn drvInitializeWia(&self, __midl__iwiaminidrv0000: *const u8, __midl__iwiaminidrv0001: i32, __midl__iwiaminidrv0002: &super::super::Foundation::BSTR, __midl__iwiaminidrv0003: &super::super::Foundation::BSTR, __midl__iwiaminidrv0004: &::core::option::Option<::windows::core::IUnknown>, __midl__iwiaminidrv0005: &::core::option::Option<::windows::core::IUnknown>, __midl__iwiaminidrv0006: *mut ::core::option::Option, __midl__iwiaminidrv0007: *mut ::core::option::Option<::windows::core::IUnknown>, __midl__iwiaminidrv0008: *mut i32) -> ::windows::core::Result<()>; + fn drvInitializeWia(&self, __midl__iwiaminidrv0000: *const u8, __midl__iwiaminidrv0001: i32, __midl__iwiaminidrv0002: &::windows::core::BSTR, __midl__iwiaminidrv0003: &::windows::core::BSTR, __midl__iwiaminidrv0004: &::core::option::Option<::windows::core::IUnknown>, __midl__iwiaminidrv0005: &::core::option::Option<::windows::core::IUnknown>, __midl__iwiaminidrv0006: *mut ::core::option::Option, __midl__iwiaminidrv0007: *mut ::core::option::Option<::windows::core::IUnknown>, __midl__iwiaminidrv0008: *mut i32) -> ::windows::core::Result<()>; fn drvAcquireItemData(&self, __midl__iwiaminidrv0009: *const u8, __midl__iwiaminidrv0010: i32, __midl__iwiaminidrv0011: *mut MINIDRV_TRANSFER_CONTEXT, __midl__iwiaminidrv0012: *mut i32) -> ::windows::core::Result<()>; fn drvInitItemProperties(&self, __midl__iwiaminidrv0013: *const u8, __midl__iwiaminidrv0014: i32) -> ::windows::core::Result; fn drvValidateItemProperties(&self, __midl__iwiaminidrv0016: *const u8, __midl__iwiaminidrv0017: i32, __midl__iwiaminidrv0018: u32, __midl__iwiaminidrv0019: *const super::super::System::Com::StructuredStorage::PROPSPEC) -> ::windows::core::Result; @@ -1388,7 +1370,7 @@ pub trait IWiaMiniDrv_Impl: Sized { fn drvDeleteItem(&self, __midl__iwiaminidrv0053: *const u8, __midl__iwiaminidrv0054: i32) -> ::windows::core::Result; fn drvFreeDrvItemContext(&self, __midl__iwiaminidrv0056: i32, __midl__iwiaminidrv0057: *const u8) -> ::windows::core::Result; fn drvGetWiaFormatInfo(&self, __midl__iwiaminidrv0059: *const u8, __midl__iwiaminidrv0060: i32, __midl__iwiaminidrv0061: *mut i32, __midl__iwiaminidrv0062: *mut *mut WIA_FORMAT_INFO, __midl__iwiaminidrv0063: *mut i32) -> ::windows::core::Result<()>; - fn drvNotifyPnpEvent(&self, peventguid: *const ::windows::core::GUID, bstrdeviceid: &super::super::Foundation::BSTR, ulreserved: u32) -> ::windows::core::Result<()>; + fn drvNotifyPnpEvent(&self, peventguid: *const ::windows::core::GUID, bstrdeviceid: &::windows::core::BSTR, ulreserved: u32) -> ::windows::core::Result<()>; fn drvUnInitializeWia(&self, __midl__iwiaminidrv0064: *const u8) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] @@ -1396,7 +1378,7 @@ impl ::windows::core::RuntimeName for IWiaMiniDrv {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] impl IWiaMiniDrv_Vtbl { pub const fn new, Impl: IWiaMiniDrv_Impl, const OFFSET: isize>() -> IWiaMiniDrv_Vtbl { - unsafe extern "system" fn drvInitializeWia, Impl: IWiaMiniDrv_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, __midl__iwiaminidrv0000: *const u8, __midl__iwiaminidrv0001: i32, __midl__iwiaminidrv0002: ::core::mem::ManuallyDrop, __midl__iwiaminidrv0003: ::core::mem::ManuallyDrop, __midl__iwiaminidrv0004: *mut ::core::ffi::c_void, __midl__iwiaminidrv0005: *mut ::core::ffi::c_void, __midl__iwiaminidrv0006: *mut *mut ::core::ffi::c_void, __midl__iwiaminidrv0007: *mut *mut ::core::ffi::c_void, __midl__iwiaminidrv0008: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn drvInitializeWia, Impl: IWiaMiniDrv_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, __midl__iwiaminidrv0000: *const u8, __midl__iwiaminidrv0001: i32, __midl__iwiaminidrv0002: ::core::mem::ManuallyDrop<::windows::core::BSTR>, __midl__iwiaminidrv0003: ::core::mem::ManuallyDrop<::windows::core::BSTR>, __midl__iwiaminidrv0004: *mut ::core::ffi::c_void, __midl__iwiaminidrv0005: *mut ::core::ffi::c_void, __midl__iwiaminidrv0006: *mut *mut ::core::ffi::c_void, __midl__iwiaminidrv0007: *mut *mut ::core::ffi::c_void, __midl__iwiaminidrv0008: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.drvInitializeWia(::core::mem::transmute_copy(&__midl__iwiaminidrv0000), ::core::mem::transmute_copy(&__midl__iwiaminidrv0001), ::core::mem::transmute(&__midl__iwiaminidrv0002), ::core::mem::transmute(&__midl__iwiaminidrv0003), ::core::mem::transmute(&__midl__iwiaminidrv0004), ::core::mem::transmute(&__midl__iwiaminidrv0005), ::core::mem::transmute_copy(&__midl__iwiaminidrv0006), ::core::mem::transmute_copy(&__midl__iwiaminidrv0007), ::core::mem::transmute_copy(&__midl__iwiaminidrv0008)) @@ -1520,7 +1502,7 @@ impl IWiaMiniDrv_Vtbl { let this = (*this).get_impl(); this.drvGetWiaFormatInfo(::core::mem::transmute_copy(&__midl__iwiaminidrv0059), ::core::mem::transmute_copy(&__midl__iwiaminidrv0060), ::core::mem::transmute_copy(&__midl__iwiaminidrv0061), ::core::mem::transmute_copy(&__midl__iwiaminidrv0062), ::core::mem::transmute_copy(&__midl__iwiaminidrv0063)).into() } - unsafe extern "system" fn drvNotifyPnpEvent, Impl: IWiaMiniDrv_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, peventguid: *const ::windows::core::GUID, bstrdeviceid: ::core::mem::ManuallyDrop, ulreserved: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn drvNotifyPnpEvent, Impl: IWiaMiniDrv_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, peventguid: *const ::windows::core::GUID, bstrdeviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ulreserved: u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.drvNotifyPnpEvent(::core::mem::transmute_copy(&peventguid), ::core::mem::transmute(&bstrdeviceid), ::core::mem::transmute_copy(&ulreserved)).into() @@ -1575,17 +1557,17 @@ impl IWiaMiniDrvCallBack_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IWiaMiniDrvTransferCallback_Impl: Sized { - fn GetNextStream(&self, lflags: i32, bstritemname: &super::super::Foundation::BSTR, bstrfullitemname: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetNextStream(&self, lflags: i32, bstritemname: &::windows::core::BSTR, bstrfullitemname: &::windows::core::BSTR) -> ::windows::core::Result; fn SendMessage(&self, lflags: i32, pwiatransferparams: *const WiaTransferParams) -> ::windows::core::Result<()>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IWiaMiniDrvTransferCallback {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IWiaMiniDrvTransferCallback_Vtbl { pub const fn new, Impl: IWiaMiniDrvTransferCallback_Impl, const OFFSET: isize>() -> IWiaMiniDrvTransferCallback_Vtbl { - unsafe extern "system" fn GetNextStream, Impl: IWiaMiniDrvTransferCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, bstritemname: ::core::mem::ManuallyDrop, bstrfullitemname: ::core::mem::ManuallyDrop, ppistream: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetNextStream, Impl: IWiaMiniDrvTransferCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, bstritemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrfullitemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppistream: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetNextStream(::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&bstritemname), ::core::mem::transmute(&bstrfullitemname)) { @@ -1885,14 +1867,14 @@ impl IWiaTransfer_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IWiaTransferCallback_Impl: Sized { fn TransferCallback(&self, lflags: i32, pwiatransferparams: *const WiaTransferParams) -> ::windows::core::Result<()>; - fn GetNextStream(&self, lflags: i32, bstritemname: &super::super::Foundation::BSTR, bstrfullitemname: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetNextStream(&self, lflags: i32, bstritemname: &::windows::core::BSTR, bstrfullitemname: &::windows::core::BSTR) -> ::windows::core::Result; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IWiaTransferCallback {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IWiaTransferCallback_Vtbl { pub const fn new, Impl: IWiaTransferCallback_Impl, const OFFSET: isize>() -> IWiaTransferCallback_Vtbl { unsafe extern "system" fn TransferCallback, Impl: IWiaTransferCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, pwiatransferparams: *const WiaTransferParams) -> ::windows::core::HRESULT { @@ -1900,7 +1882,7 @@ impl IWiaTransferCallback_Vtbl { let this = (*this).get_impl(); this.TransferCallback(::core::mem::transmute_copy(&lflags), ::core::mem::transmute_copy(&pwiatransferparams)).into() } - unsafe extern "system" fn GetNextStream, Impl: IWiaTransferCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, bstritemname: ::core::mem::ManuallyDrop, bstrfullitemname: ::core::mem::ManuallyDrop, ppdestination: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetNextStream, Impl: IWiaTransferCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, bstritemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrfullitemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppdestination: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetNextStream(::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&bstritemname), ::core::mem::transmute(&bstrfullitemname)) { @@ -1924,8 +1906,8 @@ impl IWiaTransferCallback_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] pub trait IWiaUIExtension_Impl: Sized { fn DeviceDialog(&self, pdevicedialogdata: *const DEVICEDIALOGDATA) -> ::windows::core::Result<()>; - fn GetDeviceIcon(&self, bstrdeviceid: &super::super::Foundation::BSTR, phicon: *mut super::super::UI::WindowsAndMessaging::HICON, nsize: u32) -> ::windows::core::Result<()>; - fn GetDeviceBitmapLogo(&self, bstrdeviceid: &super::super::Foundation::BSTR, phbitmap: *mut super::super::Graphics::Gdi::HBITMAP, nmaxwidth: u32, nmaxheight: u32) -> ::windows::core::Result<()>; + fn GetDeviceIcon(&self, bstrdeviceid: &::windows::core::BSTR, phicon: *mut super::super::UI::WindowsAndMessaging::HICON, nsize: u32) -> ::windows::core::Result<()>; + fn GetDeviceBitmapLogo(&self, bstrdeviceid: &::windows::core::BSTR, phbitmap: *mut super::super::Graphics::Gdi::HBITMAP, nmaxwidth: u32, nmaxheight: u32) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] impl ::windows::core::RuntimeName for IWiaUIExtension {} @@ -1937,12 +1919,12 @@ impl IWiaUIExtension_Vtbl { let this = (*this).get_impl(); this.DeviceDialog(::core::mem::transmute_copy(&pdevicedialogdata)).into() } - unsafe extern "system" fn GetDeviceIcon, Impl: IWiaUIExtension_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdeviceid: ::core::mem::ManuallyDrop, phicon: *mut super::super::UI::WindowsAndMessaging::HICON, nsize: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDeviceIcon, Impl: IWiaUIExtension_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdeviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, phicon: *mut super::super::UI::WindowsAndMessaging::HICON, nsize: u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetDeviceIcon(::core::mem::transmute(&bstrdeviceid), ::core::mem::transmute_copy(&phicon), ::core::mem::transmute_copy(&nsize)).into() } - unsafe extern "system" fn GetDeviceBitmapLogo, Impl: IWiaUIExtension_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdeviceid: ::core::mem::ManuallyDrop, phbitmap: *mut super::super::Graphics::Gdi::HBITMAP, nmaxwidth: u32, nmaxheight: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDeviceBitmapLogo, Impl: IWiaUIExtension_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdeviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, phbitmap: *mut super::super::Graphics::Gdi::HBITMAP, nmaxwidth: u32, nmaxheight: u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetDeviceBitmapLogo(::core::mem::transmute(&bstrdeviceid), ::core::mem::transmute_copy(&phbitmap), ::core::mem::transmute_copy(&nmaxwidth), ::core::mem::transmute_copy(&nmaxheight)).into() @@ -1961,7 +1943,7 @@ impl IWiaUIExtension_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub trait IWiaUIExtension2_Impl: Sized { fn DeviceDialog(&self, pdevicedialogdata: *const DEVICEDIALOGDATA2) -> ::windows::core::Result<()>; - fn GetDeviceIcon(&self, bstrdeviceid: &super::super::Foundation::BSTR, phicon: *mut super::super::UI::WindowsAndMessaging::HICON, nsize: u32) -> ::windows::core::Result<()>; + fn GetDeviceIcon(&self, bstrdeviceid: &::windows::core::BSTR, phicon: *mut super::super::UI::WindowsAndMessaging::HICON, nsize: u32) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::windows::core::RuntimeName for IWiaUIExtension2 {} @@ -1973,7 +1955,7 @@ impl IWiaUIExtension2_Vtbl { let this = (*this).get_impl(); this.DeviceDialog(::core::mem::transmute_copy(&pdevicedialogdata)).into() } - unsafe extern "system" fn GetDeviceIcon, Impl: IWiaUIExtension2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdeviceid: ::core::mem::ManuallyDrop, phicon: *mut super::super::UI::WindowsAndMessaging::HICON, nsize: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDeviceIcon, Impl: IWiaUIExtension2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdeviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, phicon: *mut super::super::UI::WindowsAndMessaging::HICON, nsize: u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetDeviceIcon(::core::mem::transmute(&bstrdeviceid), ::core::mem::transmute_copy(&phicon), ::core::mem::transmute_copy(&nsize)).into() @@ -1992,15 +1974,15 @@ impl IWiaUIExtension2_Vtbl { pub trait IWiaVideo_Impl: Sized { fn PreviewVisible(&self) -> ::windows::core::Result; fn SetPreviewVisible(&self, bpreviewvisible: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; - fn ImagesDirectory(&self) -> ::windows::core::Result; - fn SetImagesDirectory(&self, bstrimagedirectory: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn CreateVideoByWiaDevID(&self, bstrwiadeviceid: &super::super::Foundation::BSTR, hwndparent: super::super::Foundation::HWND, bstretchtofitparent: super::super::Foundation::BOOL, bautobeginplayback: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; + fn ImagesDirectory(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetImagesDirectory(&self, bstrimagedirectory: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn CreateVideoByWiaDevID(&self, bstrwiadeviceid: &::windows::core::BSTR, hwndparent: super::super::Foundation::HWND, bstretchtofitparent: super::super::Foundation::BOOL, bautobeginplayback: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn CreateVideoByDevNum(&self, uidevicenumber: u32, hwndparent: super::super::Foundation::HWND, bstretchtofitparent: super::super::Foundation::BOOL, bautobeginplayback: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; - fn CreateVideoByName(&self, bstrfriendlyname: &super::super::Foundation::BSTR, hwndparent: super::super::Foundation::HWND, bstretchtofitparent: super::super::Foundation::BOOL, bautobeginplayback: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; + fn CreateVideoByName(&self, bstrfriendlyname: &::windows::core::BSTR, hwndparent: super::super::Foundation::HWND, bstretchtofitparent: super::super::Foundation::BOOL, bautobeginplayback: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn DestroyVideo(&self) -> ::windows::core::Result<()>; fn Play(&self) -> ::windows::core::Result<()>; fn Pause(&self) -> ::windows::core::Result<()>; - fn TakePicture(&self) -> ::windows::core::Result; + fn TakePicture(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn ResizeVideo(&self, bstretchtofitparent: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn GetCurrentState(&self) -> ::windows::core::Result; } @@ -2025,7 +2007,7 @@ impl IWiaVideo_Vtbl { let this = (*this).get_impl(); this.SetPreviewVisible(::core::mem::transmute_copy(&bpreviewvisible)).into() } - unsafe extern "system" fn ImagesDirectory, Impl: IWiaVideo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrimagedirectory: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ImagesDirectory, Impl: IWiaVideo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrimagedirectory: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ImagesDirectory() { @@ -2036,12 +2018,12 @@ impl IWiaVideo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetImagesDirectory, Impl: IWiaVideo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrimagedirectory: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetImagesDirectory, Impl: IWiaVideo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrimagedirectory: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetImagesDirectory(::core::mem::transmute(&bstrimagedirectory)).into() } - unsafe extern "system" fn CreateVideoByWiaDevID, Impl: IWiaVideo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrwiadeviceid: ::core::mem::ManuallyDrop, hwndparent: super::super::Foundation::HWND, bstretchtofitparent: super::super::Foundation::BOOL, bautobeginplayback: super::super::Foundation::BOOL) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateVideoByWiaDevID, Impl: IWiaVideo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrwiadeviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, hwndparent: super::super::Foundation::HWND, bstretchtofitparent: super::super::Foundation::BOOL, bautobeginplayback: super::super::Foundation::BOOL) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CreateVideoByWiaDevID(::core::mem::transmute(&bstrwiadeviceid), ::core::mem::transmute_copy(&hwndparent), ::core::mem::transmute_copy(&bstretchtofitparent), ::core::mem::transmute_copy(&bautobeginplayback)).into() @@ -2051,7 +2033,7 @@ impl IWiaVideo_Vtbl { let this = (*this).get_impl(); this.CreateVideoByDevNum(::core::mem::transmute_copy(&uidevicenumber), ::core::mem::transmute_copy(&hwndparent), ::core::mem::transmute_copy(&bstretchtofitparent), ::core::mem::transmute_copy(&bautobeginplayback)).into() } - unsafe extern "system" fn CreateVideoByName, Impl: IWiaVideo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfriendlyname: ::core::mem::ManuallyDrop, hwndparent: super::super::Foundation::HWND, bstretchtofitparent: super::super::Foundation::BOOL, bautobeginplayback: super::super::Foundation::BOOL) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateVideoByName, Impl: IWiaVideo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfriendlyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, hwndparent: super::super::Foundation::HWND, bstretchtofitparent: super::super::Foundation::BOOL, bautobeginplayback: super::super::Foundation::BOOL) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CreateVideoByName(::core::mem::transmute(&bstrfriendlyname), ::core::mem::transmute_copy(&hwndparent), ::core::mem::transmute_copy(&bstretchtofitparent), ::core::mem::transmute_copy(&bautobeginplayback)).into() @@ -2071,7 +2053,7 @@ impl IWiaVideo_Vtbl { let this = (*this).get_impl(); this.Pause().into() } - unsafe extern "system" fn TakePicture, Impl: IWiaVideo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrnewimagefilename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TakePicture, Impl: IWiaVideo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrnewimagefilename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TakePicture() { diff --git a/crates/libs/windows/src/Windows/Win32/Devices/ImageAcquisition/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/ImageAcquisition/mod.rs index a40b4b097f..83aeff6d79 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/ImageAcquisition/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/ImageAcquisition/mod.rs @@ -2,8 +2,6 @@ #[repr(transparent)] pub struct IEnumWIA_DEV_CAPS(::windows::core::IUnknown); impl IEnumWIA_DEV_CAPS { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn Next(&self, celt: u32, rgelt: &mut WIA_DEV_CAP, pceltfetched: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Next)(::windows::core::Interface::as_raw(self), celt, ::core::mem::transmute(rgelt), ::core::mem::transmute(pceltfetched)).ok() } @@ -61,10 +59,7 @@ unsafe impl ::windows::core::Interface for IEnumWIA_DEV_CAPS { #[doc(hidden)] pub struct IEnumWIA_DEV_CAPS_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32, rgelt: *mut WIA_DEV_CAP, pceltfetched: *mut u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Next: usize, pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows::core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppienum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -540,18 +535,13 @@ impl IWiaDevMgr { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).EnumDeviceInfo)(::windows::core::Interface::as_raw(self), lflag, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateDevice<'a, P0>(&self, bstrdeviceid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn CreateDevice(&self, bstrdeviceid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateDevice)(::windows::core::Interface::as_raw(self), bstrdeviceid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateDevice)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdeviceid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SelectDeviceDlg<'a, P0>(&self, hwndparent: P0, ldevicetype: i32, lflags: i32, pbstrdeviceid: &mut super::super::Foundation::BSTR, ppitemroot: &mut ::core::option::Option) -> ::windows::core::Result<()> + pub unsafe fn SelectDeviceDlg<'a, P0>(&self, hwndparent: P0, ldevicetype: i32, lflags: i32, pbstrdeviceid: &mut ::windows::core::BSTR, ppitemroot: &mut ::core::option::Option) -> ::windows::core::Result<()> where P0: ::std::convert::Into, { @@ -559,7 +549,7 @@ impl IWiaDevMgr { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SelectDeviceDlgID<'a, P0>(&self, hwndparent: P0, ldevicetype: i32, lflags: i32, pbstrdeviceid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> + pub unsafe fn SelectDeviceDlgID<'a, P0>(&self, hwndparent: P0, ldevicetype: i32, lflags: i32, pbstrdeviceid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into, { @@ -567,46 +557,25 @@ impl IWiaDevMgr { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetImageDlg<'a, P0, P1, P2>(&self, hwndparent: P0, ldevicetype: i32, lflags: i32, lintent: i32, pitemroot: P1, bstrfilename: P2, pguidformat: &mut ::windows::core::GUID) -> ::windows::core::Result<()> + pub unsafe fn GetImageDlg<'a, P0, P1>(&self, hwndparent: P0, ldevicetype: i32, lflags: i32, lintent: i32, pitemroot: P1, bstrfilename: &::windows::core::BSTR, pguidformat: &mut ::windows::core::GUID) -> ::windows::core::Result<()> where P0: ::std::convert::Into, P1: ::std::convert::Into<::windows::core::InParam<'a, IWiaItem>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).GetImageDlg)(::windows::core::Interface::as_raw(self), hwndparent.into(), ldevicetype, lflags, lintent, pitemroot.into().abi(), bstrfilename.into().abi(), ::core::mem::transmute(pguidformat)).ok() + (::windows::core::Interface::vtable(self).GetImageDlg)(::windows::core::Interface::as_raw(self), hwndparent.into(), ldevicetype, lflags, lintent, pitemroot.into().abi(), ::core::mem::transmute_copy(bstrfilename), ::core::mem::transmute(pguidformat)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RegisterEventCallbackProgram<'a, P0, P1, P2, P3, P4>(&self, lflags: i32, bstrdeviceid: P0, peventguid: &::windows::core::GUID, bstrcommandline: P1, bstrname: P2, bstrdescription: P3, bstricon: P4) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).RegisterEventCallbackProgram)(::windows::core::Interface::as_raw(self), lflags, bstrdeviceid.into().abi(), ::core::mem::transmute(peventguid), bstrcommandline.into().abi(), bstrname.into().abi(), bstrdescription.into().abi(), bstricon.into().abi()).ok() + pub unsafe fn RegisterEventCallbackProgram(&self, lflags: i32, bstrdeviceid: &::windows::core::BSTR, peventguid: &::windows::core::GUID, bstrcommandline: &::windows::core::BSTR, bstrname: &::windows::core::BSTR, bstrdescription: &::windows::core::BSTR, bstricon: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).RegisterEventCallbackProgram)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute_copy(bstrdeviceid), ::core::mem::transmute(peventguid), ::core::mem::transmute_copy(bstrcommandline), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute_copy(bstrdescription), ::core::mem::transmute_copy(bstricon)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RegisterEventCallbackInterface<'a, P0, P1>(&self, lflags: i32, bstrdeviceid: P0, peventguid: &::windows::core::GUID, piwiaeventcallback: P1) -> ::windows::core::Result<::windows::core::IUnknown> + pub unsafe fn RegisterEventCallbackInterface<'a, P0>(&self, lflags: i32, bstrdeviceid: &::windows::core::BSTR, peventguid: &::windows::core::GUID, piwiaeventcallback: P0) -> ::windows::core::Result<::windows::core::IUnknown> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IWiaEventCallback>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IWiaEventCallback>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RegisterEventCallbackInterface)(::windows::core::Interface::as_raw(self), lflags, bstrdeviceid.into().abi(), ::core::mem::transmute(peventguid), piwiaeventcallback.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) + (::windows::core::Interface::vtable(self).RegisterEventCallbackInterface)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute_copy(bstrdeviceid), ::core::mem::transmute(peventguid), piwiaeventcallback.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RegisterEventCallbackCLSID<'a, P0, P1, P2, P3>(&self, lflags: i32, bstrdeviceid: P0, peventguid: &::windows::core::GUID, pclsid: &::windows::core::GUID, bstrname: P1, bstrdescription: P2, bstricon: P3) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).RegisterEventCallbackCLSID)(::windows::core::Interface::as_raw(self), lflags, bstrdeviceid.into().abi(), ::core::mem::transmute(peventguid), ::core::mem::transmute(pclsid), bstrname.into().abi(), bstrdescription.into().abi(), bstricon.into().abi()).ok() + pub unsafe fn RegisterEventCallbackCLSID(&self, lflags: i32, bstrdeviceid: &::windows::core::BSTR, peventguid: &::windows::core::GUID, pclsid: &::windows::core::GUID, bstrname: &::windows::core::BSTR, bstrdescription: &::windows::core::BSTR, bstricon: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).RegisterEventCallbackCLSID)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute_copy(bstrdeviceid), ::core::mem::transmute(peventguid), ::core::mem::transmute(pclsid), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute_copy(bstrdescription), ::core::mem::transmute_copy(bstricon)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -657,34 +626,22 @@ unsafe impl ::windows::core::Interface for IWiaDevMgr { pub struct IWiaDevMgr_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub EnumDeviceInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflag: i32, ppienum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub CreateDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdeviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppwiaitemroot: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub CreateDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdeviceid: ::core::mem::ManuallyDrop, ppwiaitemroot: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CreateDevice: usize, - #[cfg(feature = "Win32_Foundation")] - pub SelectDeviceDlg: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut super::super::Foundation::BSTR, ppitemroot: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub SelectDeviceDlg: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppitemroot: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] SelectDeviceDlg: usize, #[cfg(feature = "Win32_Foundation")] - pub SelectDeviceDlgID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub SelectDeviceDlgID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] SelectDeviceDlgID: usize, #[cfg(feature = "Win32_Foundation")] - pub GetImageDlg: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, lintent: i32, pitemroot: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop, pguidformat: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, + pub GetImageDlg: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, lintent: i32, pitemroot: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pguidformat: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] GetImageDlg: usize, - #[cfg(feature = "Win32_Foundation")] - pub RegisterEventCallbackProgram: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, bstrdeviceid: ::core::mem::ManuallyDrop, peventguid: *const ::windows::core::GUID, bstrcommandline: ::core::mem::ManuallyDrop, bstrname: ::core::mem::ManuallyDrop, bstrdescription: ::core::mem::ManuallyDrop, bstricon: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RegisterEventCallbackProgram: usize, - #[cfg(feature = "Win32_Foundation")] - pub RegisterEventCallbackInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, bstrdeviceid: ::core::mem::ManuallyDrop, peventguid: *const ::windows::core::GUID, piwiaeventcallback: *mut ::core::ffi::c_void, peventobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RegisterEventCallbackInterface: usize, - #[cfg(feature = "Win32_Foundation")] - pub RegisterEventCallbackCLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, bstrdeviceid: ::core::mem::ManuallyDrop, peventguid: *const ::windows::core::GUID, pclsid: *const ::windows::core::GUID, bstrname: ::core::mem::ManuallyDrop, bstrdescription: ::core::mem::ManuallyDrop, bstricon: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RegisterEventCallbackCLSID: usize, + pub RegisterEventCallbackProgram: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, bstrdeviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, peventguid: *const ::windows::core::GUID, bstrcommandline: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstricon: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub RegisterEventCallbackInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, bstrdeviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, peventguid: *const ::windows::core::GUID, piwiaeventcallback: *mut ::core::ffi::c_void, peventobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub RegisterEventCallbackCLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, bstrdeviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, peventguid: *const ::windows::core::GUID, pclsid: *const ::windows::core::GUID, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstricon: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub AddDeviceDlg: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, lflags: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -698,18 +655,13 @@ impl IWiaDevMgr2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).EnumDeviceInfo)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateDevice<'a, P0>(&self, lflags: i32, bstrdeviceid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn CreateDevice(&self, lflags: i32, bstrdeviceid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateDevice)(::windows::core::Interface::as_raw(self), lflags, bstrdeviceid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateDevice)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute_copy(bstrdeviceid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SelectDeviceDlg<'a, P0>(&self, hwndparent: P0, ldevicetype: i32, lflags: i32, pbstrdeviceid: &mut super::super::Foundation::BSTR, ppitemroot: &mut ::core::option::Option) -> ::windows::core::Result<()> + pub unsafe fn SelectDeviceDlg<'a, P0>(&self, hwndparent: P0, ldevicetype: i32, lflags: i32, pbstrdeviceid: &mut ::windows::core::BSTR, ppitemroot: &mut ::core::option::Option) -> ::windows::core::Result<()> where P0: ::std::convert::Into, { @@ -717,56 +669,32 @@ impl IWiaDevMgr2 { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SelectDeviceDlgID<'a, P0>(&self, hwndparent: P0, ldevicetype: i32, lflags: i32, pbstrdeviceid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> + pub unsafe fn SelectDeviceDlgID<'a, P0>(&self, hwndparent: P0, ldevicetype: i32, lflags: i32, pbstrdeviceid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into, { (::windows::core::Interface::vtable(self).SelectDeviceDlgID)(::windows::core::Interface::as_raw(self), hwndparent.into(), ldevicetype, lflags, ::core::mem::transmute(pbstrdeviceid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RegisterEventCallbackInterface<'a, P0, P1>(&self, lflags: i32, bstrdeviceid: P0, peventguid: &::windows::core::GUID, piwiaeventcallback: P1) -> ::windows::core::Result<::windows::core::IUnknown> + pub unsafe fn RegisterEventCallbackInterface<'a, P0>(&self, lflags: i32, bstrdeviceid: &::windows::core::BSTR, peventguid: &::windows::core::GUID, piwiaeventcallback: P0) -> ::windows::core::Result<::windows::core::IUnknown> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IWiaEventCallback>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IWiaEventCallback>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RegisterEventCallbackInterface)(::windows::core::Interface::as_raw(self), lflags, bstrdeviceid.into().abi(), ::core::mem::transmute(peventguid), piwiaeventcallback.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) + (::windows::core::Interface::vtable(self).RegisterEventCallbackInterface)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute_copy(bstrdeviceid), ::core::mem::transmute(peventguid), piwiaeventcallback.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RegisterEventCallbackProgram<'a, P0, P1, P2, P3, P4, P5>(&self, lflags: i32, bstrdeviceid: P0, peventguid: &::windows::core::GUID, bstrfullappname: P1, bstrcommandlinearg: P2, bstrname: P3, bstrdescription: P4, bstricon: P5) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P5: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).RegisterEventCallbackProgram)(::windows::core::Interface::as_raw(self), lflags, bstrdeviceid.into().abi(), ::core::mem::transmute(peventguid), bstrfullappname.into().abi(), bstrcommandlinearg.into().abi(), bstrname.into().abi(), bstrdescription.into().abi(), bstricon.into().abi()).ok() + pub unsafe fn RegisterEventCallbackProgram(&self, lflags: i32, bstrdeviceid: &::windows::core::BSTR, peventguid: &::windows::core::GUID, bstrfullappname: &::windows::core::BSTR, bstrcommandlinearg: &::windows::core::BSTR, bstrname: &::windows::core::BSTR, bstrdescription: &::windows::core::BSTR, bstricon: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).RegisterEventCallbackProgram)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute_copy(bstrdeviceid), ::core::mem::transmute(peventguid), ::core::mem::transmute_copy(bstrfullappname), ::core::mem::transmute_copy(bstrcommandlinearg), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute_copy(bstrdescription), ::core::mem::transmute_copy(bstricon)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RegisterEventCallbackCLSID<'a, P0, P1, P2, P3>(&self, lflags: i32, bstrdeviceid: P0, peventguid: &::windows::core::GUID, pclsid: &::windows::core::GUID, bstrname: P1, bstrdescription: P2, bstricon: P3) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).RegisterEventCallbackCLSID)(::windows::core::Interface::as_raw(self), lflags, bstrdeviceid.into().abi(), ::core::mem::transmute(peventguid), ::core::mem::transmute(pclsid), bstrname.into().abi(), bstrdescription.into().abi(), bstricon.into().abi()).ok() + pub unsafe fn RegisterEventCallbackCLSID(&self, lflags: i32, bstrdeviceid: &::windows::core::BSTR, peventguid: &::windows::core::GUID, pclsid: &::windows::core::GUID, bstrname: &::windows::core::BSTR, bstrdescription: &::windows::core::BSTR, bstricon: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).RegisterEventCallbackCLSID)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute_copy(bstrdeviceid), ::core::mem::transmute(peventguid), ::core::mem::transmute(pclsid), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute_copy(bstrdescription), ::core::mem::transmute_copy(bstricon)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetImageDlg<'a, P0, P1, P2, P3>(&self, lflags: i32, bstrdeviceid: P0, hwndparent: P1, bstrfoldername: P2, bstrfilename: P3, plnumfiles: &mut i32, ppbstrfilepaths: &mut *mut super::super::Foundation::BSTR, ppitem: &mut ::core::option::Option) -> ::windows::core::Result<()> + pub unsafe fn GetImageDlg<'a, P0>(&self, lflags: i32, bstrdeviceid: &::windows::core::BSTR, hwndparent: P0, bstrfoldername: &::windows::core::BSTR, bstrfilename: &::windows::core::BSTR, plnumfiles: &mut i32, ppbstrfilepaths: &mut *mut ::windows::core::BSTR, ppitem: &mut ::core::option::Option) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P0: ::std::convert::Into, { - (::windows::core::Interface::vtable(self).GetImageDlg)(::windows::core::Interface::as_raw(self), lflags, bstrdeviceid.into().abi(), hwndparent.into(), bstrfoldername.into().abi(), bstrfilename.into().abi(), ::core::mem::transmute(plnumfiles), ::core::mem::transmute(ppbstrfilepaths), ::core::mem::transmute(ppitem)).ok() + (::windows::core::Interface::vtable(self).GetImageDlg)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute_copy(bstrdeviceid), hwndparent.into(), ::core::mem::transmute_copy(bstrfoldername), ::core::mem::transmute_copy(bstrfilename), ::core::mem::transmute(plnumfiles), ::core::mem::transmute(ppbstrfilepaths), ::core::mem::transmute(ppitem)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -809,32 +737,20 @@ unsafe impl ::windows::core::Interface for IWiaDevMgr2 { pub struct IWiaDevMgr2_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub EnumDeviceInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, ppienum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub CreateDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, bstrdeviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppwiaitem2root: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub CreateDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, bstrdeviceid: ::core::mem::ManuallyDrop, ppwiaitem2root: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CreateDevice: usize, - #[cfg(feature = "Win32_Foundation")] - pub SelectDeviceDlg: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut super::super::Foundation::BSTR, ppitemroot: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub SelectDeviceDlg: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppitemroot: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] SelectDeviceDlg: usize, #[cfg(feature = "Win32_Foundation")] - pub SelectDeviceDlgID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub SelectDeviceDlgID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, ldevicetype: i32, lflags: i32, pbstrdeviceid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] SelectDeviceDlgID: usize, + pub RegisterEventCallbackInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, bstrdeviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, peventguid: *const ::windows::core::GUID, piwiaeventcallback: *mut ::core::ffi::c_void, peventobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub RegisterEventCallbackProgram: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, bstrdeviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, peventguid: *const ::windows::core::GUID, bstrfullappname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrcommandlinearg: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstricon: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub RegisterEventCallbackCLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, bstrdeviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, peventguid: *const ::windows::core::GUID, pclsid: *const ::windows::core::GUID, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstricon: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub RegisterEventCallbackInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, bstrdeviceid: ::core::mem::ManuallyDrop, peventguid: *const ::windows::core::GUID, piwiaeventcallback: *mut ::core::ffi::c_void, peventobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RegisterEventCallbackInterface: usize, - #[cfg(feature = "Win32_Foundation")] - pub RegisterEventCallbackProgram: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, bstrdeviceid: ::core::mem::ManuallyDrop, peventguid: *const ::windows::core::GUID, bstrfullappname: ::core::mem::ManuallyDrop, bstrcommandlinearg: ::core::mem::ManuallyDrop, bstrname: ::core::mem::ManuallyDrop, bstrdescription: ::core::mem::ManuallyDrop, bstricon: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RegisterEventCallbackProgram: usize, - #[cfg(feature = "Win32_Foundation")] - pub RegisterEventCallbackCLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, bstrdeviceid: ::core::mem::ManuallyDrop, peventguid: *const ::windows::core::GUID, pclsid: *const ::windows::core::GUID, bstrname: ::core::mem::ManuallyDrop, bstrdescription: ::core::mem::ManuallyDrop, bstricon: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RegisterEventCallbackCLSID: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetImageDlg: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, bstrdeviceid: ::core::mem::ManuallyDrop, hwndparent: super::super::Foundation::HWND, bstrfoldername: ::core::mem::ManuallyDrop, bstrfilename: ::core::mem::ManuallyDrop, plnumfiles: *mut i32, ppbstrfilepaths: *mut *mut super::super::Foundation::BSTR, ppitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub GetImageDlg: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, bstrdeviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, hwndparent: super::super::Foundation::HWND, bstrfoldername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, plnumfiles: *mut i32, ppbstrfilepaths: *mut *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] GetImageDlg: usize, } @@ -850,17 +766,13 @@ impl IWiaDrvItem { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetDeviceSpecContext)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut u8>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetFullItemName(&self) -> ::windows::core::Result { + pub unsafe fn GetFullItemName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetFullItemName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetFullItemName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetItemName(&self) -> ::windows::core::Result { + pub unsafe fn GetItemName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetItemName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetItemName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn AddItemToFolder<'a, P0>(&self, __midl__iwiadrvitem0004: P0) -> ::windows::core::Result<()> where @@ -874,23 +786,13 @@ impl IWiaDrvItem { pub unsafe fn RemoveItemFromFolder(&self, __midl__iwiadrvitem0006: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RemoveItemFromFolder)(::windows::core::Interface::as_raw(self), __midl__iwiadrvitem0006).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FindItemByName<'a, P0>(&self, __midl__iwiadrvitem0007: i32, __midl__iwiadrvitem0008: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn FindItemByName(&self, __midl__iwiadrvitem0007: i32, __midl__iwiadrvitem0008: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FindItemByName)(::windows::core::Interface::as_raw(self), __midl__iwiadrvitem0007, __midl__iwiadrvitem0008.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FindItemByName)(::windows::core::Interface::as_raw(self), __midl__iwiadrvitem0007, ::core::mem::transmute_copy(__midl__iwiadrvitem0008), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FindChildItemByName<'a, P0>(&self, __midl__iwiadrvitem0010: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn FindChildItemByName(&self, __midl__iwiadrvitem0010: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FindChildItemByName)(::windows::core::Interface::as_raw(self), __midl__iwiadrvitem0010.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FindChildItemByName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(__midl__iwiadrvitem0010), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn GetParentItem(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -904,11 +806,9 @@ impl IWiaDrvItem { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetNextSiblingItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DumpItemData(&self) -> ::windows::core::Result { + pub unsafe fn DumpItemData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DumpItemData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DumpItemData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -952,32 +852,17 @@ pub struct IWiaDrvItem_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub GetItemFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__iwiadrvitem0000: *mut i32) -> ::windows::core::HRESULT, pub GetDeviceSpecContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__iwiadrvitem0001: *mut *mut u8) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetFullItemName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__iwiadrvitem0002: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetFullItemName: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetItemName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__iwiadrvitem0003: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetItemName: usize, + pub GetFullItemName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__iwiadrvitem0002: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetItemName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__iwiadrvitem0003: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub AddItemToFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__iwiadrvitem0004: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub UnlinkItemTree: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__iwiadrvitem0005: i32) -> ::windows::core::HRESULT, pub RemoveItemFromFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__iwiadrvitem0006: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub FindItemByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__iwiadrvitem0007: i32, __midl__iwiadrvitem0008: ::core::mem::ManuallyDrop, __midl__iwiadrvitem0009: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FindItemByName: usize, - #[cfg(feature = "Win32_Foundation")] - pub FindChildItemByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__iwiadrvitem0010: ::core::mem::ManuallyDrop, __midl__iwiadrvitem0011: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FindChildItemByName: usize, + pub FindItemByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__iwiadrvitem0007: i32, __midl__iwiadrvitem0008: ::core::mem::ManuallyDrop<::windows::core::BSTR>, __midl__iwiadrvitem0009: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub FindChildItemByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__iwiadrvitem0010: ::core::mem::ManuallyDrop<::windows::core::BSTR>, __midl__iwiadrvitem0011: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetParentItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__iwiadrvitem0012: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetFirstChildItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__iwiadrvitem0013: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetNextSiblingItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__iwiadrvitem0014: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub DumpItemData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__iwiadrvitem0015: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DumpItemData: usize, + pub DumpItemData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__iwiadrvitem0015: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`*"] #[repr(transparent)] @@ -992,14 +877,12 @@ impl IWiaErrorHandler { { (::windows::core::Interface::vtable(self).ReportStatus)(::windows::core::Interface::as_raw(self), lflags, hwndparent.into(), pwiaitem2.into().abi(), hrstatus, lpercentcomplete).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetStatusDescription<'a, P0>(&self, lflags: i32, pwiaitem2: P0, hrstatus: ::windows::core::HRESULT) -> ::windows::core::Result + pub unsafe fn GetStatusDescription<'a, P0>(&self, lflags: i32, pwiaitem2: P0, hrstatus: ::windows::core::HRESULT) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, IWiaItem2>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetStatusDescription)(::windows::core::Interface::as_raw(self), lflags, pwiaitem2.into().abi(), hrstatus, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetStatusDescription)(::windows::core::Interface::as_raw(self), lflags, pwiaitem2.into().abi(), hrstatus, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -1045,25 +928,14 @@ pub struct IWiaErrorHandler_Vtbl { pub ReportStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, hwndparent: super::super::Foundation::HWND, pwiaitem2: *mut ::core::ffi::c_void, hrstatus: ::windows::core::HRESULT, lpercentcomplete: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] ReportStatus: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetStatusDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, pwiaitem2: *mut ::core::ffi::c_void, hrstatus: ::windows::core::HRESULT, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetStatusDescription: usize, + pub GetStatusDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, pwiaitem2: *mut ::core::ffi::c_void, hrstatus: ::windows::core::HRESULT, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`*"] #[repr(transparent)] pub struct IWiaEventCallback(::windows::core::IUnknown); impl IWiaEventCallback { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ImageEventCallback<'a, P0, P1, P2, P3>(&self, peventguid: &::windows::core::GUID, bstreventdescription: P0, bstrdeviceid: P1, bstrdevicedescription: P2, dwdevicetype: u32, bstrfullitemname: P3, puleventtype: &mut u32, ulreserved: u32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ImageEventCallback)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(peventguid), bstreventdescription.into().abi(), bstrdeviceid.into().abi(), bstrdevicedescription.into().abi(), dwdevicetype, bstrfullitemname.into().abi(), ::core::mem::transmute(puleventtype), ulreserved).ok() + pub unsafe fn ImageEventCallback(&self, peventguid: &::windows::core::GUID, bstreventdescription: &::windows::core::BSTR, bstrdeviceid: &::windows::core::BSTR, bstrdevicedescription: &::windows::core::BSTR, dwdevicetype: u32, bstrfullitemname: &::windows::core::BSTR, puleventtype: &mut u32, ulreserved: u32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ImageEventCallback)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(peventguid), ::core::mem::transmute_copy(bstreventdescription), ::core::mem::transmute_copy(bstrdeviceid), ::core::mem::transmute_copy(bstrdevicedescription), dwdevicetype, ::core::mem::transmute_copy(bstrfullitemname), ::core::mem::transmute(puleventtype), ulreserved).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -1105,10 +977,7 @@ unsafe impl ::windows::core::Interface for IWiaEventCallback { #[doc(hidden)] pub struct IWiaEventCallback_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub ImageEventCallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, peventguid: *const ::windows::core::GUID, bstreventdescription: ::core::mem::ManuallyDrop, bstrdeviceid: ::core::mem::ManuallyDrop, bstrdevicedescription: ::core::mem::ManuallyDrop, dwdevicetype: u32, bstrfullitemname: ::core::mem::ManuallyDrop, puleventtype: *mut u32, ulreserved: u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ImageEventCallback: usize, + pub ImageEventCallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, peventguid: *const ::windows::core::GUID, bstreventdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdeviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdevicedescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwdevicetype: u32, bstrfullitemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, puleventtype: *mut u32, ulreserved: u32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`*"] #[repr(transparent)] @@ -1208,28 +1077,17 @@ impl IWiaItem { pub unsafe fn DeleteItem(&self, lflags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).DeleteItem)(::windows::core::Interface::as_raw(self), lflags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateChildItem<'a, P0, P1>(&self, lflags: i32, bstritemname: P0, bstrfullitemname: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn CreateChildItem(&self, lflags: i32, bstritemname: &::windows::core::BSTR, bstrfullitemname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateChildItem)(::windows::core::Interface::as_raw(self), lflags, bstritemname.into().abi(), bstrfullitemname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateChildItem)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute_copy(bstritemname), ::core::mem::transmute_copy(bstrfullitemname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn EnumRegisterEventInfo(&self, lflags: i32, peventguid: &::windows::core::GUID) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).EnumRegisterEventInfo)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute(peventguid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FindItemByName<'a, P0>(&self, lflags: i32, bstrfullitemname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn FindItemByName(&self, lflags: i32, bstrfullitemname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FindItemByName)(::windows::core::Interface::as_raw(self), lflags, bstrfullitemname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FindItemByName)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute_copy(bstrfullitemname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -1250,23 +1108,17 @@ impl IWiaItem { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).EnumDeviceCapabilities)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DumpItemData(&self) -> ::windows::core::Result { + pub unsafe fn DumpItemData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DumpItemData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DumpItemData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DumpDrvItemData(&self) -> ::windows::core::Result { + pub unsafe fn DumpDrvItemData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DumpDrvItemData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DumpDrvItemData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DumpTreeItemData(&self) -> ::windows::core::Result { + pub unsafe fn DumpTreeItemData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DumpTreeItemData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DumpTreeItemData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Diagnostic(&self, pbuffer: &[u8]) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Diagnostic)(::windows::core::Interface::as_raw(self), pbuffer.len() as _, ::core::mem::transmute(pbuffer.as_ptr())).ok() @@ -1315,15 +1167,9 @@ pub struct IWiaItem_Vtbl { pub AnalyzeItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32) -> ::windows::core::HRESULT, pub EnumChildItems: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppienumwiaitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub DeleteItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CreateChildItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, bstritemname: ::core::mem::ManuallyDrop, bstrfullitemname: ::core::mem::ManuallyDrop, ppiwiaitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CreateChildItem: usize, + pub CreateChildItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, bstritemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrfullitemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppiwiaitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub EnumRegisterEventInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, peventguid: *const ::windows::core::GUID, ppienum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub FindItemByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, bstrfullitemname: ::core::mem::ManuallyDrop, ppiwiaitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FindItemByName: usize, + pub FindItemByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, bstrfullitemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppiwiaitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub DeviceDlg: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, lflags: i32, lintent: i32, plitemcount: *mut i32, ppiwiaitem: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -1331,32 +1177,18 @@ pub struct IWiaItem_Vtbl { pub DeviceCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, pcmdguid: *const ::windows::core::GUID, piwiaitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetRootItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppiwiaitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub EnumDeviceCapabilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, ppienumwia_dev_caps: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub DumpItemData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DumpItemData: usize, - #[cfg(feature = "Win32_Foundation")] - pub DumpDrvItemData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DumpDrvItemData: usize, - #[cfg(feature = "Win32_Foundation")] - pub DumpTreeItemData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DumpTreeItemData: usize, + pub DumpItemData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DumpDrvItemData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DumpTreeItemData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Diagnostic: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulsize: u32, pbuffer: *const u8) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`*"] #[repr(transparent)] pub struct IWiaItem2(::windows::core::IUnknown); impl IWiaItem2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateChildItem<'a, P0>(&self, litemflags: i32, lcreationflags: i32, bstritemname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn CreateChildItem(&self, litemflags: i32, lcreationflags: i32, bstritemname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateChildItem)(::windows::core::Interface::as_raw(self), litemflags, lcreationflags, bstritemname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateChildItem)(::windows::core::Interface::as_raw(self), litemflags, lcreationflags, ::core::mem::transmute_copy(bstritemname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn DeleteItem(&self, lflags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).DeleteItem)(::windows::core::Interface::as_raw(self), lflags).ok() @@ -1365,14 +1197,9 @@ impl IWiaItem2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).EnumChildItems)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pcategoryguid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FindItemByName<'a, P0>(&self, lflags: i32, bstrfullitemname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn FindItemByName(&self, lflags: i32, bstrfullitemname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FindItemByName)(::windows::core::Interface::as_raw(self), lflags, bstrfullitemname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FindItemByName)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute_copy(bstrfullitemname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn GetItemCategory(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1384,13 +1211,11 @@ impl IWiaItem2 { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeviceDlg<'a, P0, P1, P2>(&self, lflags: i32, hwndparent: P0, bstrfoldername: P1, bstrfilename: P2, plnumfiles: &mut i32, ppbstrfilepaths: &mut *mut super::super::Foundation::BSTR, ppitem: ::core::option::Option<&mut ::core::option::Option>) -> ::windows::core::Result<()> + pub unsafe fn DeviceDlg<'a, P0>(&self, lflags: i32, hwndparent: P0, bstrfoldername: &::windows::core::BSTR, bstrfilename: &::windows::core::BSTR, plnumfiles: &mut i32, ppbstrfilepaths: &mut *mut ::windows::core::BSTR, ppitem: ::core::option::Option<&mut ::core::option::Option>) -> ::windows::core::Result<()> where P0: ::std::convert::Into, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).DeviceDlg)(::windows::core::Interface::as_raw(self), lflags, hwndparent.into(), bstrfoldername.into().abi(), bstrfilename.into().abi(), ::core::mem::transmute(plnumfiles), ::core::mem::transmute(ppbstrfilepaths), ::core::mem::transmute(ppitem)).ok() + (::windows::core::Interface::vtable(self).DeviceDlg)(::windows::core::Interface::as_raw(self), lflags, hwndparent.into(), ::core::mem::transmute_copy(bstrfoldername), ::core::mem::transmute_copy(bstrfilename), ::core::mem::transmute(plnumfiles), ::core::mem::transmute(ppbstrfilepaths), ::core::mem::transmute(ppitem)).ok() } pub unsafe fn DeviceCommand(&self, lflags: i32, pcmdguid: &::windows::core::GUID, ppiwiaitem2: &mut ::core::option::Option) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).DeviceCommand)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute(pcmdguid), ::core::mem::transmute(ppiwiaitem2)).ok() @@ -1401,19 +1226,11 @@ impl IWiaItem2 { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CheckExtension<'a, P0>(&self, lflags: i32, bstrname: P0, riidextensioninterface: &::windows::core::GUID, pbextensionexists: &mut super::super::Foundation::BOOL) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).CheckExtension)(::windows::core::Interface::as_raw(self), lflags, bstrname.into().abi(), ::core::mem::transmute(riidextensioninterface), ::core::mem::transmute(pbextensionexists)).ok() + pub unsafe fn CheckExtension(&self, lflags: i32, bstrname: &::windows::core::BSTR, riidextensioninterface: &::windows::core::GUID, pbextensionexists: &mut super::super::Foundation::BOOL) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).CheckExtension)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(riidextensioninterface), ::core::mem::transmute(pbextensionexists)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetExtension<'a, P0>(&self, lflags: i32, bstrname: P0, riidextensioninterface: &::windows::core::GUID, ppout: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetExtension)(::windows::core::Interface::as_raw(self), lflags, bstrname.into().abi(), ::core::mem::transmute(riidextensioninterface), ::core::mem::transmute(ppout)).ok() + pub unsafe fn GetExtension(&self, lflags: i32, bstrname: &::windows::core::BSTR, riidextensioninterface: &::windows::core::GUID, ppout: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetExtension)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(riidextensioninterface), ::core::mem::transmute(ppout)).ok() } pub unsafe fn GetParentItem(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1474,32 +1291,23 @@ unsafe impl ::windows::core::Interface for IWiaItem2 { #[doc(hidden)] pub struct IWiaItem2_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub CreateChildItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, litemflags: i32, lcreationflags: i32, bstritemname: ::core::mem::ManuallyDrop, ppiwiaitem2: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CreateChildItem: usize, + pub CreateChildItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, litemflags: i32, lcreationflags: i32, bstritemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppiwiaitem2: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub DeleteItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32) -> ::windows::core::HRESULT, pub EnumChildItems: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcategoryguid: *const ::windows::core::GUID, ppienumwiaitem2: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub FindItemByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, bstrfullitemname: ::core::mem::ManuallyDrop, ppiwiaitem2: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FindItemByName: usize, + pub FindItemByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, bstrfullitemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppiwiaitem2: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetItemCategory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pitemcategoryguid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, pub GetItemType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pitemtype: *mut i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub DeviceDlg: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, hwndparent: super::super::Foundation::HWND, bstrfoldername: ::core::mem::ManuallyDrop, bstrfilename: ::core::mem::ManuallyDrop, plnumfiles: *mut i32, ppbstrfilepaths: *mut *mut super::super::Foundation::BSTR, ppitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub DeviceDlg: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, hwndparent: super::super::Foundation::HWND, bstrfoldername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, plnumfiles: *mut i32, ppbstrfilepaths: *mut *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] DeviceDlg: usize, pub DeviceCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, pcmdguid: *const ::windows::core::GUID, ppiwiaitem2: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub EnumDeviceCapabilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, ppienumwia_dev_caps: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub CheckExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, bstrname: ::core::mem::ManuallyDrop, riidextensioninterface: *const ::windows::core::GUID, pbextensionexists: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, + pub CheckExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, riidextensioninterface: *const ::windows::core::GUID, pbextensionexists: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] CheckExtension: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, bstrname: ::core::mem::ManuallyDrop, riidextensioninterface: *const ::windows::core::GUID, ppout: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetExtension: usize, + pub GetExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, riidextensioninterface: *const ::windows::core::GUID, ppout: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetParentItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppiwiaitem2: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetRootItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppiwiaitem2: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetPreviewComponent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, ppwiapreview: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -1510,11 +1318,9 @@ pub struct IWiaItem2_Vtbl { #[repr(transparent)] pub struct IWiaItemExtras(::windows::core::IUnknown); impl IWiaItemExtras { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetExtendedErrorInfo(&self) -> ::windows::core::Result { + pub unsafe fn GetExtendedErrorInfo(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetExtendedErrorInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetExtendedErrorInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Escape(&self, dwescapecode: u32, lpindata: &[u8], poutdata: &mut u8, dwoutdatasize: u32, pdwactualdatasize: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Escape)(::windows::core::Interface::as_raw(self), dwescapecode, ::core::mem::transmute(lpindata.as_ptr()), lpindata.len() as _, ::core::mem::transmute(poutdata), dwoutdatasize, ::core::mem::transmute(pdwactualdatasize)).ok() @@ -1562,10 +1368,7 @@ unsafe impl ::windows::core::Interface for IWiaItemExtras { #[doc(hidden)] pub struct IWiaItemExtras_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetExtendedErrorInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrerrortext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetExtendedErrorInfo: usize, + pub GetExtendedErrorInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrerrortext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Escape: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwescapecode: u32, lpindata: *const u8, cbindatasize: u32, poutdata: *mut u8, dwoutdatasize: u32, pdwactualdatasize: *mut u32) -> ::windows::core::HRESULT, pub CancelPendingIO: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } @@ -1579,13 +1382,8 @@ impl IWiaLog { pub unsafe fn hResult(&self, hresult: ::windows::core::HRESULT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).hResult)(::windows::core::Interface::as_raw(self), hresult).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Log<'a, P0>(&self, lflags: i32, lresid: i32, ldetail: i32, bstrtext: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Log)(::windows::core::Interface::as_raw(self), lflags, lresid, ldetail, bstrtext.into().abi()).ok() + pub unsafe fn Log(&self, lflags: i32, lresid: i32, ldetail: i32, bstrtext: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Log)(::windows::core::Interface::as_raw(self), lflags, lresid, ldetail, ::core::mem::transmute_copy(bstrtext)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -1629,10 +1427,7 @@ pub struct IWiaLog_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub InitializeLog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hinstance: i32) -> ::windows::core::HRESULT, pub hResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hresult: ::windows::core::HRESULT) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Log: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, lresid: i32, ldetail: i32, bstrtext: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Log: usize, + pub Log: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, lresid: i32, ldetail: i32, bstrtext: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`*"] #[repr(transparent)] @@ -1644,24 +1439,14 @@ impl IWiaLogEx { pub unsafe fn hResult(&self, hresult: ::windows::core::HRESULT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).hResult)(::windows::core::Interface::as_raw(self), hresult).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Log<'a, P0>(&self, lflags: i32, lresid: i32, ldetail: i32, bstrtext: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Log)(::windows::core::Interface::as_raw(self), lflags, lresid, ldetail, bstrtext.into().abi()).ok() + pub unsafe fn Log(&self, lflags: i32, lresid: i32, ldetail: i32, bstrtext: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Log)(::windows::core::Interface::as_raw(self), lflags, lresid, ldetail, ::core::mem::transmute_copy(bstrtext)).ok() } pub unsafe fn hResultEx(&self, lmethodid: i32, hresult: ::windows::core::HRESULT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).hResultEx)(::windows::core::Interface::as_raw(self), lmethodid, hresult).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LogEx<'a, P0>(&self, lmethodid: i32, lflags: i32, lresid: i32, ldetail: i32, bstrtext: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).LogEx)(::windows::core::Interface::as_raw(self), lmethodid, lflags, lresid, ldetail, bstrtext.into().abi()).ok() + pub unsafe fn LogEx(&self, lmethodid: i32, lflags: i32, lresid: i32, ldetail: i32, bstrtext: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).LogEx)(::windows::core::Interface::as_raw(self), lmethodid, lflags, lresid, ldetail, ::core::mem::transmute_copy(bstrtext)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -1705,30 +1490,20 @@ pub struct IWiaLogEx_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub InitializeLogEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hinstance: *const u8) -> ::windows::core::HRESULT, pub hResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hresult: ::windows::core::HRESULT) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Log: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, lresid: i32, ldetail: i32, bstrtext: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Log: usize, + pub Log: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, lresid: i32, ldetail: i32, bstrtext: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub hResultEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lmethodid: i32, hresult: ::windows::core::HRESULT) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub LogEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lmethodid: i32, lflags: i32, lresid: i32, ldetail: i32, bstrtext: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LogEx: usize, + pub LogEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lmethodid: i32, lflags: i32, lresid: i32, ldetail: i32, bstrtext: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`*"] #[repr(transparent)] pub struct IWiaMiniDrv(::windows::core::IUnknown); impl IWiaMiniDrv { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn drvInitializeWia<'a, P0, P1, P2, P3>(&self, __midl__iwiaminidrv0000: &u8, __midl__iwiaminidrv0001: i32, __midl__iwiaminidrv0002: P0, __midl__iwiaminidrv0003: P1, __midl__iwiaminidrv0004: P2, __midl__iwiaminidrv0005: P3, __midl__iwiaminidrv0006: &mut ::core::option::Option, __midl__iwiaminidrv0007: &mut ::core::option::Option<::windows::core::IUnknown>, __midl__iwiaminidrv0008: &mut i32) -> ::windows::core::Result<()> + pub unsafe fn drvInitializeWia<'a, P0, P1>(&self, __midl__iwiaminidrv0000: &u8, __midl__iwiaminidrv0001: i32, __midl__iwiaminidrv0002: &::windows::core::BSTR, __midl__iwiaminidrv0003: &::windows::core::BSTR, __midl__iwiaminidrv0004: P0, __midl__iwiaminidrv0005: P1, __midl__iwiaminidrv0006: &mut ::core::option::Option, __midl__iwiaminidrv0007: &mut ::core::option::Option<::windows::core::IUnknown>, __midl__iwiaminidrv0008: &mut i32) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, { - (::windows::core::Interface::vtable(self).drvInitializeWia)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(__midl__iwiaminidrv0000), __midl__iwiaminidrv0001, __midl__iwiaminidrv0002.into().abi(), __midl__iwiaminidrv0003.into().abi(), __midl__iwiaminidrv0004.into().abi(), __midl__iwiaminidrv0005.into().abi(), ::core::mem::transmute(__midl__iwiaminidrv0006), ::core::mem::transmute(__midl__iwiaminidrv0007), ::core::mem::transmute(__midl__iwiaminidrv0008)).ok() + (::windows::core::Interface::vtable(self).drvInitializeWia)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(__midl__iwiaminidrv0000), __midl__iwiaminidrv0001, ::core::mem::transmute_copy(__midl__iwiaminidrv0002), ::core::mem::transmute_copy(__midl__iwiaminidrv0003), __midl__iwiaminidrv0004.into().abi(), __midl__iwiaminidrv0005.into().abi(), ::core::mem::transmute(__midl__iwiaminidrv0006), ::core::mem::transmute(__midl__iwiaminidrv0007), ::core::mem::transmute(__midl__iwiaminidrv0008)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -1788,13 +1563,8 @@ impl IWiaMiniDrv { pub unsafe fn drvGetWiaFormatInfo(&self, __midl__iwiaminidrv0059: &u8, __midl__iwiaminidrv0060: i32, __midl__iwiaminidrv0061: &mut i32, __midl__iwiaminidrv0062: &mut *mut WIA_FORMAT_INFO, __midl__iwiaminidrv0063: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).drvGetWiaFormatInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(__midl__iwiaminidrv0059), __midl__iwiaminidrv0060, ::core::mem::transmute(__midl__iwiaminidrv0061), ::core::mem::transmute(__midl__iwiaminidrv0062), ::core::mem::transmute(__midl__iwiaminidrv0063)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn drvNotifyPnpEvent<'a, P0>(&self, peventguid: &::windows::core::GUID, bstrdeviceid: P0, ulreserved: u32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).drvNotifyPnpEvent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(peventguid), bstrdeviceid.into().abi(), ulreserved).ok() + pub unsafe fn drvNotifyPnpEvent(&self, peventguid: &::windows::core::GUID, bstrdeviceid: &::windows::core::BSTR, ulreserved: u32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).drvNotifyPnpEvent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(peventguid), ::core::mem::transmute_copy(bstrdeviceid), ulreserved).ok() } pub unsafe fn drvUnInitializeWia(&self, __midl__iwiaminidrv0064: &u8) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).drvUnInitializeWia)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(__midl__iwiaminidrv0064)).ok() @@ -1839,10 +1609,7 @@ unsafe impl ::windows::core::Interface for IWiaMiniDrv { #[doc(hidden)] pub struct IWiaMiniDrv_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub drvInitializeWia: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__iwiaminidrv0000: *const u8, __midl__iwiaminidrv0001: i32, __midl__iwiaminidrv0002: ::core::mem::ManuallyDrop, __midl__iwiaminidrv0003: ::core::mem::ManuallyDrop, __midl__iwiaminidrv0004: *mut ::core::ffi::c_void, __midl__iwiaminidrv0005: *mut ::core::ffi::c_void, __midl__iwiaminidrv0006: *mut *mut ::core::ffi::c_void, __midl__iwiaminidrv0007: *mut *mut ::core::ffi::c_void, __midl__iwiaminidrv0008: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - drvInitializeWia: usize, + pub drvInitializeWia: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__iwiaminidrv0000: *const u8, __midl__iwiaminidrv0001: i32, __midl__iwiaminidrv0002: ::core::mem::ManuallyDrop<::windows::core::BSTR>, __midl__iwiaminidrv0003: ::core::mem::ManuallyDrop<::windows::core::BSTR>, __midl__iwiaminidrv0004: *mut ::core::ffi::c_void, __midl__iwiaminidrv0005: *mut ::core::ffi::c_void, __midl__iwiaminidrv0006: *mut *mut ::core::ffi::c_void, __midl__iwiaminidrv0007: *mut *mut ::core::ffi::c_void, __midl__iwiaminidrv0008: *mut i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub drvAcquireItemData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__iwiaminidrv0009: *const u8, __midl__iwiaminidrv0010: i32, __midl__iwiaminidrv0011: *mut MINIDRV_TRANSFER_CONTEXT, __midl__iwiaminidrv0012: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -1869,10 +1636,7 @@ pub struct IWiaMiniDrv_Vtbl { pub drvDeleteItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__iwiaminidrv0053: *const u8, __midl__iwiaminidrv0054: i32, __midl__iwiaminidrv0055: *mut i32) -> ::windows::core::HRESULT, pub drvFreeDrvItemContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__iwiaminidrv0056: i32, __midl__iwiaminidrv0057: *const u8, __midl__iwiaminidrv0058: *mut i32) -> ::windows::core::HRESULT, pub drvGetWiaFormatInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__iwiaminidrv0059: *const u8, __midl__iwiaminidrv0060: i32, __midl__iwiaminidrv0061: *mut i32, __midl__iwiaminidrv0062: *mut *mut WIA_FORMAT_INFO, __midl__iwiaminidrv0063: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub drvNotifyPnpEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, peventguid: *const ::windows::core::GUID, bstrdeviceid: ::core::mem::ManuallyDrop, ulreserved: u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - drvNotifyPnpEvent: usize, + pub drvNotifyPnpEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, peventguid: *const ::windows::core::GUID, bstrdeviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ulreserved: u32) -> ::windows::core::HRESULT, pub drvUnInitializeWia: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__iwiaminidrv0064: *const u8) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`*"] @@ -1933,15 +1697,11 @@ pub struct IWiaMiniDrvCallBack_Vtbl { #[repr(transparent)] pub struct IWiaMiniDrvTransferCallback(::windows::core::IUnknown); impl IWiaMiniDrvTransferCallback { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetNextStream<'a, P0, P1>(&self, lflags: i32, bstritemname: P0, bstrfullitemname: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetNextStream(&self, lflags: i32, bstritemname: &::windows::core::BSTR, bstrfullitemname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetNextStream)(::windows::core::Interface::as_raw(self), lflags, bstritemname.into().abi(), bstrfullitemname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetNextStream)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute_copy(bstritemname), ::core::mem::transmute_copy(bstrfullitemname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn SendMessage(&self, lflags: i32, pwiatransferparams: &WiaTransferParams) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SendMessage)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute(pwiatransferparams)).ok() @@ -1986,9 +1746,9 @@ unsafe impl ::windows::core::Interface for IWiaMiniDrvTransferCallback { #[doc(hidden)] pub struct IWiaMiniDrvTransferCallback_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetNextStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, bstritemname: ::core::mem::ManuallyDrop, bstrfullitemname: ::core::mem::ManuallyDrop, ppistream: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetNextStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, bstritemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrfullitemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppistream: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetNextStream: usize, pub SendMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, pwiatransferparams: *const WiaTransferParams) -> ::windows::core::HRESULT, } @@ -2409,15 +2169,11 @@ impl IWiaTransferCallback { pub unsafe fn TransferCallback(&self, lflags: i32, pwiatransferparams: &WiaTransferParams) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).TransferCallback)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute(pwiatransferparams)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetNextStream<'a, P0, P1>(&self, lflags: i32, bstritemname: P0, bstrfullitemname: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetNextStream(&self, lflags: i32, bstritemname: &::windows::core::BSTR, bstrfullitemname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetNextStream)(::windows::core::Interface::as_raw(self), lflags, bstritemname.into().abi(), bstrfullitemname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetNextStream)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute_copy(bstritemname), ::core::mem::transmute_copy(bstrfullitemname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -2460,9 +2216,9 @@ unsafe impl ::windows::core::Interface for IWiaTransferCallback { pub struct IWiaTransferCallback_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub TransferCallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, pwiatransferparams: *const WiaTransferParams) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetNextStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, bstritemname: ::core::mem::ManuallyDrop, bstrfullitemname: ::core::mem::ManuallyDrop, ppdestination: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetNextStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, bstritemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrfullitemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppdestination: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetNextStream: usize, } #[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`*"] @@ -2474,21 +2230,15 @@ impl IWiaUIExtension { pub unsafe fn DeviceDialog(&self, pdevicedialogdata: &DEVICEDIALOGDATA) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).DeviceDialog)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdevicedialogdata)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] - pub unsafe fn GetDeviceIcon<'a, P0>(&self, bstrdeviceid: P0, phicon: &mut super::super::UI::WindowsAndMessaging::HICON, nsize: u32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetDeviceIcon)(::windows::core::Interface::as_raw(self), bstrdeviceid.into().abi(), ::core::mem::transmute(phicon), nsize).ok() + #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] + #[cfg(feature = "Win32_UI_WindowsAndMessaging")] + pub unsafe fn GetDeviceIcon(&self, bstrdeviceid: &::windows::core::BSTR, phicon: &mut super::super::UI::WindowsAndMessaging::HICON, nsize: u32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetDeviceIcon)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdeviceid), ::core::mem::transmute(phicon), nsize).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] - pub unsafe fn GetDeviceBitmapLogo<'a, P0>(&self, bstrdeviceid: P0, phbitmap: &mut super::super::Graphics::Gdi::HBITMAP, nmaxwidth: u32, nmaxheight: u32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetDeviceBitmapLogo)(::windows::core::Interface::as_raw(self), bstrdeviceid.into().abi(), ::core::mem::transmute(phbitmap), nmaxwidth, nmaxheight).ok() + #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`*"] + #[cfg(feature = "Win32_Graphics_Gdi")] + pub unsafe fn GetDeviceBitmapLogo(&self, bstrdeviceid: &::windows::core::BSTR, phbitmap: &mut super::super::Graphics::Gdi::HBITMAP, nmaxwidth: u32, nmaxheight: u32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetDeviceBitmapLogo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdeviceid), ::core::mem::transmute(phbitmap), nmaxwidth, nmaxheight).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -2534,13 +2284,13 @@ pub struct IWiaUIExtension_Vtbl { pub DeviceDialog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdevicedialogdata: *const DEVICEDIALOGDATA) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] DeviceDialog: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] - pub GetDeviceIcon: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdeviceid: ::core::mem::ManuallyDrop, phicon: *mut super::super::UI::WindowsAndMessaging::HICON, nsize: u32) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] + #[cfg(feature = "Win32_UI_WindowsAndMessaging")] + pub GetDeviceIcon: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdeviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, phicon: *mut super::super::UI::WindowsAndMessaging::HICON, nsize: u32) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] GetDeviceIcon: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] - pub GetDeviceBitmapLogo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdeviceid: ::core::mem::ManuallyDrop, phbitmap: *mut super::super::Graphics::Gdi::HBITMAP, nmaxwidth: u32, nmaxheight: u32) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi")))] + #[cfg(feature = "Win32_Graphics_Gdi")] + pub GetDeviceBitmapLogo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdeviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, phbitmap: *mut super::super::Graphics::Gdi::HBITMAP, nmaxwidth: u32, nmaxheight: u32) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_Graphics_Gdi"))] GetDeviceBitmapLogo: usize, } #[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`*"] @@ -2552,13 +2302,10 @@ impl IWiaUIExtension2 { pub unsafe fn DeviceDialog(&self, pdevicedialogdata: &DEVICEDIALOGDATA2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).DeviceDialog)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdevicedialogdata)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] - pub unsafe fn GetDeviceIcon<'a, P0>(&self, bstrdeviceid: P0, phicon: &mut super::super::UI::WindowsAndMessaging::HICON, nsize: u32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetDeviceIcon)(::windows::core::Interface::as_raw(self), bstrdeviceid.into().abi(), ::core::mem::transmute(phicon), nsize).ok() + #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] + #[cfg(feature = "Win32_UI_WindowsAndMessaging")] + pub unsafe fn GetDeviceIcon(&self, bstrdeviceid: &::windows::core::BSTR, phicon: &mut super::super::UI::WindowsAndMessaging::HICON, nsize: u32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetDeviceIcon)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdeviceid), ::core::mem::transmute(phicon), nsize).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -2604,9 +2351,9 @@ pub struct IWiaUIExtension2_Vtbl { pub DeviceDialog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdevicedialogdata: *const DEVICEDIALOGDATA2) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] DeviceDialog: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] - pub GetDeviceIcon: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdeviceid: ::core::mem::ManuallyDrop, phicon: *mut super::super::UI::WindowsAndMessaging::HICON, nsize: u32) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging")))] + #[cfg(feature = "Win32_UI_WindowsAndMessaging")] + pub GetDeviceIcon: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdeviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, phicon: *mut super::super::UI::WindowsAndMessaging::HICON, nsize: u32) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] GetDeviceIcon: usize, } #[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`*"] @@ -2627,30 +2374,22 @@ impl IWiaVideo { { (::windows::core::Interface::vtable(self).SetPreviewVisible)(::windows::core::Interface::as_raw(self), bpreviewvisible.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ImagesDirectory(&self) -> ::windows::core::Result { + pub unsafe fn ImagesDirectory(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ImagesDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ImagesDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetImagesDirectory<'a, P0>(&self, bstrimagedirectory: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetImagesDirectory)(::windows::core::Interface::as_raw(self), bstrimagedirectory.into().abi()).ok() + pub unsafe fn SetImagesDirectory(&self, bstrimagedirectory: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetImagesDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrimagedirectory)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateVideoByWiaDevID<'a, P0, P1, P2, P3>(&self, bstrwiadeviceid: P0, hwndparent: P1, bstretchtofitparent: P2, bautobeginplayback: P3) -> ::windows::core::Result<()> + pub unsafe fn CreateVideoByWiaDevID<'a, P0, P1, P2>(&self, bstrwiadeviceid: &::windows::core::BSTR, hwndparent: P0, bstretchtofitparent: P1, bautobeginplayback: P2) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into, + P0: ::std::convert::Into, + P1: ::std::convert::Into, P2: ::std::convert::Into, - P3: ::std::convert::Into, { - (::windows::core::Interface::vtable(self).CreateVideoByWiaDevID)(::windows::core::Interface::as_raw(self), bstrwiadeviceid.into().abi(), hwndparent.into(), bstretchtofitparent.into(), bautobeginplayback.into()).ok() + (::windows::core::Interface::vtable(self).CreateVideoByWiaDevID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrwiadeviceid), hwndparent.into(), bstretchtofitparent.into(), bautobeginplayback.into()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -2664,14 +2403,13 @@ impl IWiaVideo { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateVideoByName<'a, P0, P1, P2, P3>(&self, bstrfriendlyname: P0, hwndparent: P1, bstretchtofitparent: P2, bautobeginplayback: P3) -> ::windows::core::Result<()> + pub unsafe fn CreateVideoByName<'a, P0, P1, P2>(&self, bstrfriendlyname: &::windows::core::BSTR, hwndparent: P0, bstretchtofitparent: P1, bautobeginplayback: P2) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into, + P0: ::std::convert::Into, + P1: ::std::convert::Into, P2: ::std::convert::Into, - P3: ::std::convert::Into, { - (::windows::core::Interface::vtable(self).CreateVideoByName)(::windows::core::Interface::as_raw(self), bstrfriendlyname.into().abi(), hwndparent.into(), bstretchtofitparent.into(), bautobeginplayback.into()).ok() + (::windows::core::Interface::vtable(self).CreateVideoByName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrfriendlyname), hwndparent.into(), bstretchtofitparent.into(), bautobeginplayback.into()).ok() } pub unsafe fn DestroyVideo(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).DestroyVideo)(::windows::core::Interface::as_raw(self)).ok() @@ -2682,11 +2420,9 @@ impl IWiaVideo { pub unsafe fn Pause(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Pause)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TakePicture(&self) -> ::windows::core::Result { + pub unsafe fn TakePicture(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TakePicture)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TakePicture)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -2748,16 +2484,10 @@ pub struct IWiaVideo_Vtbl { pub SetPreviewVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bpreviewvisible: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] SetPreviewVisible: usize, + pub ImagesDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrimagedirectory: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetImagesDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrimagedirectory: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub ImagesDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrimagedirectory: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ImagesDirectory: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetImagesDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrimagedirectory: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetImagesDirectory: usize, - #[cfg(feature = "Win32_Foundation")] - pub CreateVideoByWiaDevID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrwiadeviceid: ::core::mem::ManuallyDrop, hwndparent: super::super::Foundation::HWND, bstretchtofitparent: super::super::Foundation::BOOL, bautobeginplayback: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, + pub CreateVideoByWiaDevID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrwiadeviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, hwndparent: super::super::Foundation::HWND, bstretchtofitparent: super::super::Foundation::BOOL, bautobeginplayback: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] CreateVideoByWiaDevID: usize, #[cfg(feature = "Win32_Foundation")] @@ -2765,16 +2495,13 @@ pub struct IWiaVideo_Vtbl { #[cfg(not(feature = "Win32_Foundation"))] CreateVideoByDevNum: usize, #[cfg(feature = "Win32_Foundation")] - pub CreateVideoByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfriendlyname: ::core::mem::ManuallyDrop, hwndparent: super::super::Foundation::HWND, bstretchtofitparent: super::super::Foundation::BOOL, bautobeginplayback: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, + pub CreateVideoByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfriendlyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, hwndparent: super::super::Foundation::HWND, bstretchtofitparent: super::super::Foundation::BOOL, bautobeginplayback: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] CreateVideoByName: usize, pub DestroyVideo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Play: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Pause: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub TakePicture: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrnewimagefilename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TakePicture: usize, + pub TakePicture: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrnewimagefilename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub ResizeVideo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstretchtofitparent: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -5257,10 +4984,10 @@ pub struct DEVICEDIALOGDATA2 { pub pIWiaItemRoot: ::core::option::Option, pub dwFlags: u32, pub hwndParent: super::super::Foundation::HWND, - pub bstrFolderName: super::super::Foundation::BSTR, - pub bstrFilename: super::super::Foundation::BSTR, + pub bstrFolderName: ::windows::core::BSTR, + pub bstrFilename: ::windows::core::BSTR, pub lNumFiles: i32, - pub pbstrFilePaths: *mut super::super::Foundation::BSTR, + pub pbstrFilePaths: *mut ::windows::core::BSTR, pub pWiaItem: ::core::option::Option, } #[cfg(feature = "Win32_Foundation")] @@ -5744,7 +5471,7 @@ impl ::core::default::Default for WIAS_CHANGED_VALUE_INFO { pub union WIAS_CHANGED_VALUE_INFO_0 { pub lVal: i32, pub fltVal: f32, - pub bstrVal: ::core::mem::ManuallyDrop, + pub bstrVal: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pub guidVal: ::windows::core::GUID, } #[cfg(feature = "Win32_Foundation")] @@ -5777,7 +5504,7 @@ impl ::core::default::Default for WIAS_CHANGED_VALUE_INFO_0 { pub union WIAS_CHANGED_VALUE_INFO_1 { pub lVal: i32, pub fltVal: f32, - pub bstrVal: ::core::mem::ManuallyDrop, + pub bstrVal: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pub guidVal: ::windows::core::GUID, } #[cfg(feature = "Win32_Foundation")] @@ -6071,17 +5798,15 @@ impl ::core::default::Default for WIA_DATA_TRANSFER_INFO { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`*"] pub struct WIA_DEV_CAP { pub guid: ::windows::core::GUID, pub ulFlags: u32, - pub bstrName: super::super::Foundation::BSTR, - pub bstrDescription: super::super::Foundation::BSTR, - pub bstrIcon: super::super::Foundation::BSTR, - pub bstrCommandline: super::super::Foundation::BSTR, + pub bstrName: ::windows::core::BSTR, + pub bstrDescription: ::windows::core::BSTR, + pub bstrIcon: ::windows::core::BSTR, + pub bstrCommandline: ::windows::core::BSTR, } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for WIA_DEV_CAP { fn clone(&self) -> Self { Self { @@ -6094,25 +5819,20 @@ impl ::core::clone::Clone for WIA_DEV_CAP { } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for WIA_DEV_CAP { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("WIA_DEV_CAP").field("guid", &self.guid).field("ulFlags", &self.ulFlags).field("bstrName", &self.bstrName).field("bstrDescription", &self.bstrDescription).field("bstrIcon", &self.bstrIcon).field("bstrCommandline", &self.bstrCommandline).finish() } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for WIA_DEV_CAP { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for WIA_DEV_CAP { fn eq(&self, other: &Self) -> bool { self.guid == other.guid && self.ulFlags == other.ulFlags && self.bstrName == other.bstrName && self.bstrDescription == other.bstrDescription && self.bstrIcon == other.bstrIcon && self.bstrCommandline == other.bstrCommandline } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for WIA_DEV_CAP {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for WIA_DEV_CAP { fn default() -> Self { unsafe { ::core::mem::zeroed() } @@ -6153,17 +5873,15 @@ impl ::core::default::Default for WIA_DEV_CAP_DRV { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`*"] pub struct WIA_DITHER_PATTERN_DATA { pub lSize: i32, - pub bstrPatternName: super::super::Foundation::BSTR, + pub bstrPatternName: ::windows::core::BSTR, pub lPatternWidth: i32, pub lPatternLength: i32, pub cbPattern: i32, pub pbPattern: *mut u8, } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for WIA_DITHER_PATTERN_DATA { fn clone(&self) -> Self { Self { @@ -6176,25 +5894,20 @@ impl ::core::clone::Clone for WIA_DITHER_PATTERN_DATA { } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for WIA_DITHER_PATTERN_DATA { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("WIA_DITHER_PATTERN_DATA").field("lSize", &self.lSize).field("bstrPatternName", &self.bstrPatternName).field("lPatternWidth", &self.lPatternWidth).field("lPatternLength", &self.lPatternLength).field("cbPattern", &self.cbPattern).field("pbPattern", &self.pbPattern).finish() } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for WIA_DITHER_PATTERN_DATA { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for WIA_DITHER_PATTERN_DATA { fn eq(&self, other: &Self) -> bool { self.lSize == other.lSize && self.bstrPatternName == other.bstrPatternName && self.lPatternWidth == other.lPatternWidth && self.lPatternLength == other.lPatternLength && self.cbPattern == other.cbPattern && self.pbPattern == other.pbPattern } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for WIA_DITHER_PATTERN_DATA {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for WIA_DITHER_PATTERN_DATA { fn default() -> Self { unsafe { ::core::mem::zeroed() } @@ -6439,40 +6152,40 @@ impl ::core::default::Default for WIA_PROPERTY_CONTEXT { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_System_Com\"`*"] +#[cfg(feature = "Win32_System_Com")] pub struct WIA_PROPERTY_INFO { pub lAccessFlags: u32, pub vt: super::super::System::Com::VARENUM, pub ValidVal: WIA_PROPERTY_INFO_0, } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::clone::Clone for WIA_PROPERTY_INFO { fn clone(&self) -> Self { Self { lAccessFlags: self.lAccessFlags, vt: self.vt, ValidVal: self.ValidVal.clone() } } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] unsafe impl ::windows::core::Abi for WIA_PROPERTY_INFO { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::cmp::PartialEq for WIA_PROPERTY_INFO { fn eq(&self, other: &Self) -> bool { self.lAccessFlags == other.lAccessFlags && self.vt == other.vt && self.ValidVal == other.ValidVal } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::cmp::Eq for WIA_PROPERTY_INFO {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::default::Default for WIA_PROPERTY_INFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_System_Com\"`*"] +#[cfg(feature = "Win32_System_Com")] pub union WIA_PROPERTY_INFO_0 { pub Range: WIA_PROPERTY_INFO_0_7, pub RangeFloat: WIA_PROPERTY_INFO_0_6, @@ -6483,342 +6196,342 @@ pub union WIA_PROPERTY_INFO_0 { pub Flag: WIA_PROPERTY_INFO_0_0, pub None: WIA_PROPERTY_INFO_0_5, } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::clone::Clone for WIA_PROPERTY_INFO_0 { fn clone(&self) -> Self { unsafe { ::core::mem::transmute_copy(self) } } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] unsafe impl ::windows::core::Abi for WIA_PROPERTY_INFO_0 { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::cmp::PartialEq for WIA_PROPERTY_INFO_0 { fn eq(&self, other: &Self) -> bool { unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::cmp::Eq for WIA_PROPERTY_INFO_0 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::default::Default for WIA_PROPERTY_INFO_0 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_System_Com\"`*"] +#[cfg(feature = "Win32_System_Com")] pub struct WIA_PROPERTY_INFO_0_0 { pub Nom: i32, pub ValidBits: i32, } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::marker::Copy for WIA_PROPERTY_INFO_0_0 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::clone::Clone for WIA_PROPERTY_INFO_0_0 { fn clone(&self) -> Self { *self } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::fmt::Debug for WIA_PROPERTY_INFO_0_0 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("WIA_PROPERTY_INFO_0_0").field("Nom", &self.Nom).field("ValidBits", &self.ValidBits).finish() } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] unsafe impl ::windows::core::Abi for WIA_PROPERTY_INFO_0_0 { type Abi = Self; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::cmp::PartialEq for WIA_PROPERTY_INFO_0_0 { fn eq(&self, other: &Self) -> bool { unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::cmp::Eq for WIA_PROPERTY_INFO_0_0 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::default::Default for WIA_PROPERTY_INFO_0_0 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_System_Com\"`*"] +#[cfg(feature = "Win32_System_Com")] pub struct WIA_PROPERTY_INFO_0_1 { pub cNumList: i32, - pub Nom: super::super::Foundation::BSTR, - pub pList: *mut super::super::Foundation::BSTR, + pub Nom: ::windows::core::BSTR, + pub pList: *mut ::windows::core::BSTR, } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::clone::Clone for WIA_PROPERTY_INFO_0_1 { fn clone(&self) -> Self { Self { cNumList: self.cNumList, Nom: self.Nom.clone(), pList: self.pList } } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::fmt::Debug for WIA_PROPERTY_INFO_0_1 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("WIA_PROPERTY_INFO_0_1").field("cNumList", &self.cNumList).field("Nom", &self.Nom).field("pList", &self.pList).finish() } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] unsafe impl ::windows::core::Abi for WIA_PROPERTY_INFO_0_1 { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::cmp::PartialEq for WIA_PROPERTY_INFO_0_1 { fn eq(&self, other: &Self) -> bool { self.cNumList == other.cNumList && self.Nom == other.Nom && self.pList == other.pList } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::cmp::Eq for WIA_PROPERTY_INFO_0_1 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::default::Default for WIA_PROPERTY_INFO_0_1 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_System_Com\"`*"] +#[cfg(feature = "Win32_System_Com")] pub struct WIA_PROPERTY_INFO_0_2 { pub cNumList: i32, pub Nom: f64, pub pList: *mut u8, } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::marker::Copy for WIA_PROPERTY_INFO_0_2 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::clone::Clone for WIA_PROPERTY_INFO_0_2 { fn clone(&self) -> Self { *self } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::fmt::Debug for WIA_PROPERTY_INFO_0_2 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("WIA_PROPERTY_INFO_0_2").field("cNumList", &self.cNumList).field("Nom", &self.Nom).field("pList", &self.pList).finish() } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] unsafe impl ::windows::core::Abi for WIA_PROPERTY_INFO_0_2 { type Abi = Self; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::cmp::PartialEq for WIA_PROPERTY_INFO_0_2 { fn eq(&self, other: &Self) -> bool { unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::cmp::Eq for WIA_PROPERTY_INFO_0_2 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::default::Default for WIA_PROPERTY_INFO_0_2 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_System_Com\"`*"] +#[cfg(feature = "Win32_System_Com")] pub struct WIA_PROPERTY_INFO_0_3 { pub cNumList: i32, pub Nom: ::windows::core::GUID, pub pList: *mut ::windows::core::GUID, } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::marker::Copy for WIA_PROPERTY_INFO_0_3 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::clone::Clone for WIA_PROPERTY_INFO_0_3 { fn clone(&self) -> Self { *self } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::fmt::Debug for WIA_PROPERTY_INFO_0_3 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("WIA_PROPERTY_INFO_0_3").field("cNumList", &self.cNumList).field("Nom", &self.Nom).field("pList", &self.pList).finish() } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] unsafe impl ::windows::core::Abi for WIA_PROPERTY_INFO_0_3 { type Abi = Self; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::cmp::PartialEq for WIA_PROPERTY_INFO_0_3 { fn eq(&self, other: &Self) -> bool { unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::cmp::Eq for WIA_PROPERTY_INFO_0_3 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::default::Default for WIA_PROPERTY_INFO_0_3 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_System_Com\"`*"] +#[cfg(feature = "Win32_System_Com")] pub struct WIA_PROPERTY_INFO_0_4 { pub cNumList: i32, pub Nom: i32, pub pList: *mut u8, } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::marker::Copy for WIA_PROPERTY_INFO_0_4 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::clone::Clone for WIA_PROPERTY_INFO_0_4 { fn clone(&self) -> Self { *self } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::fmt::Debug for WIA_PROPERTY_INFO_0_4 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("WIA_PROPERTY_INFO_0_4").field("cNumList", &self.cNumList).field("Nom", &self.Nom).field("pList", &self.pList).finish() } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] unsafe impl ::windows::core::Abi for WIA_PROPERTY_INFO_0_4 { type Abi = Self; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::cmp::PartialEq for WIA_PROPERTY_INFO_0_4 { fn eq(&self, other: &Self) -> bool { unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::cmp::Eq for WIA_PROPERTY_INFO_0_4 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::default::Default for WIA_PROPERTY_INFO_0_4 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_System_Com\"`*"] +#[cfg(feature = "Win32_System_Com")] pub struct WIA_PROPERTY_INFO_0_5 { pub Dummy: i32, } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::marker::Copy for WIA_PROPERTY_INFO_0_5 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::clone::Clone for WIA_PROPERTY_INFO_0_5 { fn clone(&self) -> Self { *self } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::fmt::Debug for WIA_PROPERTY_INFO_0_5 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("WIA_PROPERTY_INFO_0_5").field("Dummy", &self.Dummy).finish() } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] unsafe impl ::windows::core::Abi for WIA_PROPERTY_INFO_0_5 { type Abi = Self; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::cmp::PartialEq for WIA_PROPERTY_INFO_0_5 { fn eq(&self, other: &Self) -> bool { unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::cmp::Eq for WIA_PROPERTY_INFO_0_5 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::default::Default for WIA_PROPERTY_INFO_0_5 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_System_Com\"`*"] +#[cfg(feature = "Win32_System_Com")] pub struct WIA_PROPERTY_INFO_0_6 { pub Min: f64, pub Nom: f64, pub Max: f64, pub Inc: f64, } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::marker::Copy for WIA_PROPERTY_INFO_0_6 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::clone::Clone for WIA_PROPERTY_INFO_0_6 { fn clone(&self) -> Self { *self } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::fmt::Debug for WIA_PROPERTY_INFO_0_6 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("WIA_PROPERTY_INFO_0_6").field("Min", &self.Min).field("Nom", &self.Nom).field("Max", &self.Max).field("Inc", &self.Inc).finish() } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] unsafe impl ::windows::core::Abi for WIA_PROPERTY_INFO_0_6 { type Abi = Self; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::cmp::PartialEq for WIA_PROPERTY_INFO_0_6 { fn eq(&self, other: &Self) -> bool { unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::cmp::Eq for WIA_PROPERTY_INFO_0_6 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::default::Default for WIA_PROPERTY_INFO_0_6 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[doc = "*Required features: `\"Win32_Devices_ImageAcquisition\"`, `\"Win32_System_Com\"`*"] +#[cfg(feature = "Win32_System_Com")] pub struct WIA_PROPERTY_INFO_0_7 { pub Min: i32, pub Nom: i32, pub Max: i32, pub Inc: i32, } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::marker::Copy for WIA_PROPERTY_INFO_0_7 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::clone::Clone for WIA_PROPERTY_INFO_0_7 { fn clone(&self) -> Self { *self } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::fmt::Debug for WIA_PROPERTY_INFO_0_7 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("WIA_PROPERTY_INFO_0_7").field("Min", &self.Min).field("Nom", &self.Nom).field("Max", &self.Max).field("Inc", &self.Inc).finish() } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] unsafe impl ::windows::core::Abi for WIA_PROPERTY_INFO_0_7 { type Abi = Self; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::cmp::PartialEq for WIA_PROPERTY_INFO_0_7 { fn eq(&self, other: &Self) -> bool { unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::cmp::Eq for WIA_PROPERTY_INFO_0_7 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::default::Default for WIA_PROPERTY_INFO_0_7 { fn default() -> Self { unsafe { ::core::mem::zeroed() } diff --git a/crates/libs/windows/src/Windows/Win32/Devices/PortableDevices/impl.rs b/crates/libs/windows/src/Windows/Win32/Devices/PortableDevices/impl.rs index 1ac8caca49..5630aba6fe 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/PortableDevices/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/PortableDevices/impl.rs @@ -149,15 +149,12 @@ impl IMediaRadioManager_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IMediaRadioManagerNotifySink_Impl: Sized { fn OnInstanceAdd(&self, pradioinstance: &::core::option::Option) -> ::windows::core::Result<()>; - fn OnInstanceRemove(&self, bstrradioinstanceid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn OnInstanceRadioChange(&self, bstrradioinstanceid: &super::super::Foundation::BSTR, radiostate: DEVICE_RADIO_STATE) -> ::windows::core::Result<()>; + fn OnInstanceRemove(&self, bstrradioinstanceid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn OnInstanceRadioChange(&self, bstrradioinstanceid: &::windows::core::BSTR, radiostate: DEVICE_RADIO_STATE) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IMediaRadioManagerNotifySink {} -#[cfg(feature = "Win32_Foundation")] impl IMediaRadioManagerNotifySink_Vtbl { pub const fn new, Impl: IMediaRadioManagerNotifySink_Impl, const OFFSET: isize>() -> IMediaRadioManagerNotifySink_Vtbl { unsafe extern "system" fn OnInstanceAdd, Impl: IMediaRadioManagerNotifySink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pradioinstance: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -165,12 +162,12 @@ impl IMediaRadioManagerNotifySink_Vtbl { let this = (*this).get_impl(); this.OnInstanceAdd(::core::mem::transmute(&pradioinstance)).into() } - unsafe extern "system" fn OnInstanceRemove, Impl: IMediaRadioManagerNotifySink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrradioinstanceid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnInstanceRemove, Impl: IMediaRadioManagerNotifySink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrradioinstanceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnInstanceRemove(::core::mem::transmute(&bstrradioinstanceid)).into() } - unsafe extern "system" fn OnInstanceRadioChange, Impl: IMediaRadioManagerNotifySink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrradioinstanceid: ::core::mem::ManuallyDrop, radiostate: DEVICE_RADIO_STATE) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnInstanceRadioChange, Impl: IMediaRadioManagerNotifySink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrradioinstanceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, radiostate: DEVICE_RADIO_STATE) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnInstanceRadioChange(::core::mem::transmute(&bstrradioinstanceid), ::core::mem::transmute_copy(&radiostate)).into() @@ -2116,15 +2113,15 @@ impl IPortableDeviceValuesCollection_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IPortableDeviceWebControl_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn GetDeviceFromId(&self, deviceid: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetDeviceFromIdAsync(&self, deviceid: &super::super::Foundation::BSTR, pcompletionhandler: &::core::option::Option, perrorhandler: &::core::option::Option) -> ::windows::core::Result<()>; + fn GetDeviceFromId(&self, deviceid: &::windows::core::BSTR) -> ::windows::core::Result; + fn GetDeviceFromIdAsync(&self, deviceid: &::windows::core::BSTR, pcompletionhandler: &::core::option::Option, perrorhandler: &::core::option::Option) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IPortableDeviceWebControl {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IPortableDeviceWebControl_Vtbl { pub const fn new, Impl: IPortableDeviceWebControl_Impl, const OFFSET: isize>() -> IPortableDeviceWebControl_Vtbl { - unsafe extern "system" fn GetDeviceFromId, Impl: IPortableDeviceWebControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, deviceid: ::core::mem::ManuallyDrop, ppdevice: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDeviceFromId, Impl: IPortableDeviceWebControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, deviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppdevice: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDeviceFromId(::core::mem::transmute(&deviceid)) { @@ -2135,7 +2132,7 @@ impl IPortableDeviceWebControl_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetDeviceFromIdAsync, Impl: IPortableDeviceWebControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, deviceid: ::core::mem::ManuallyDrop, pcompletionhandler: *mut ::core::ffi::c_void, perrorhandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDeviceFromIdAsync, Impl: IPortableDeviceWebControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, deviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcompletionhandler: *mut ::core::ffi::c_void, perrorhandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetDeviceFromIdAsync(::core::mem::transmute(&deviceid), ::core::mem::transmute(&pcompletionhandler), ::core::mem::transmute(&perrorhandler)).into() @@ -2153,8 +2150,8 @@ impl IPortableDeviceWebControl_Vtbl { #[cfg(feature = "Win32_Foundation")] pub trait IRadioInstance_Impl: Sized { fn GetRadioManagerSignature(&self) -> ::windows::core::Result<::windows::core::GUID>; - fn GetInstanceSignature(&self) -> ::windows::core::Result; - fn GetFriendlyName(&self, lcid: u32) -> ::windows::core::Result; + fn GetInstanceSignature(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetFriendlyName(&self, lcid: u32) -> ::windows::core::Result<::windows::core::BSTR>; fn GetRadioState(&self) -> ::windows::core::Result; fn SetRadioState(&self, radiostate: DEVICE_RADIO_STATE, utimeoutsec: u32) -> ::windows::core::Result<()>; fn IsMultiComm(&self) -> super::super::Foundation::BOOL; @@ -2176,7 +2173,7 @@ impl IRadioInstance_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetInstanceSignature, Impl: IRadioInstance_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetInstanceSignature, Impl: IRadioInstance_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetInstanceSignature() { @@ -2187,7 +2184,7 @@ impl IRadioInstance_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetFriendlyName, Impl: IRadioInstance_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lcid: u32, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFriendlyName, Impl: IRadioInstance_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lcid: u32, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetFriendlyName(::core::mem::transmute_copy(&lcid)) { diff --git a/crates/libs/windows/src/Windows/Win32/Devices/PortableDevices/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/PortableDevices/mod.rs index 892a906629..b8b298253f 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/PortableDevices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/PortableDevices/mod.rs @@ -1,16 +1,15 @@ -#[doc = "*Required features: `\"Win32_Devices_PortableDevices\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_Devices_PortableDevices\"`*"] #[inline] -pub unsafe fn DMProcessConfigXMLFiltered<'a, P0>(pszxmlin: P0, rgszallowedcspnodes: &[::windows::core::PWSTR]) -> ::windows::core::Result +pub unsafe fn DMProcessConfigXMLFiltered<'a, P0>(pszxmlin: P0, rgszallowedcspnodes: &[::windows::core::PWSTR]) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn DMProcessConfigXMLFiltered(pszxmlin: ::windows::core::PCWSTR, rgszallowedcspnodes: *const ::windows::core::PWSTR, dwnumallowedcspnodes: u32, pbstrxmlout: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn DMProcessConfigXMLFiltered(pszxmlin: ::windows::core::PCWSTR, rgszallowedcspnodes: *const ::windows::core::PWSTR, dwnumallowedcspnodes: u32, pbstrxmlout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); - DMProcessConfigXMLFiltered(pszxmlin.into(), ::core::mem::transmute(rgszallowedcspnodes.as_ptr()), rgszallowedcspnodes.len() as _, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + DMProcessConfigXMLFiltered(pszxmlin.into(), ::core::mem::transmute(rgszallowedcspnodes.as_ptr()), rgszallowedcspnodes.len() as _, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Devices_PortableDevices\"`*"] #[repr(transparent)] @@ -253,21 +252,11 @@ impl IMediaRadioManagerNotifySink { { (::windows::core::Interface::vtable(self).OnInstanceAdd)(::windows::core::Interface::as_raw(self), pradioinstance.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OnInstanceRemove<'a, P0>(&self, bstrradioinstanceid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).OnInstanceRemove)(::windows::core::Interface::as_raw(self), bstrradioinstanceid.into().abi()).ok() + pub unsafe fn OnInstanceRemove(&self, bstrradioinstanceid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).OnInstanceRemove)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrradioinstanceid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OnInstanceRadioChange<'a, P0>(&self, bstrradioinstanceid: P0, radiostate: DEVICE_RADIO_STATE) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).OnInstanceRadioChange)(::windows::core::Interface::as_raw(self), bstrradioinstanceid.into().abi(), radiostate).ok() + pub unsafe fn OnInstanceRadioChange(&self, bstrradioinstanceid: &::windows::core::BSTR, radiostate: DEVICE_RADIO_STATE) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).OnInstanceRadioChange)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrradioinstanceid), radiostate).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -310,14 +299,8 @@ unsafe impl ::windows::core::Interface for IMediaRadioManagerNotifySink { pub struct IMediaRadioManagerNotifySink_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub OnInstanceAdd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pradioinstance: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub OnInstanceRemove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrradioinstanceid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OnInstanceRemove: usize, - #[cfg(feature = "Win32_Foundation")] - pub OnInstanceRadioChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrradioinstanceid: ::core::mem::ManuallyDrop, radiostate: DEVICE_RADIO_STATE) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OnInstanceRadioChange: usize, + pub OnInstanceRemove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrradioinstanceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub OnInstanceRadioChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrradioinstanceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, radiostate: DEVICE_RADIO_STATE) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_PortableDevices\"`*"] #[repr(transparent)] @@ -2831,24 +2814,20 @@ pub struct IPortableDeviceValuesCollection_Vtbl { pub struct IPortableDeviceWebControl(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IPortableDeviceWebControl { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetDeviceFromId<'a, P0>(&self, deviceid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetDeviceFromId(&self, deviceid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDeviceFromId)(::windows::core::Interface::as_raw(self), deviceid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDeviceFromId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(deviceid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetDeviceFromIdAsync<'a, P0, P1, P2>(&self, deviceid: P0, pcompletionhandler: P1, perrorhandler: P2) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetDeviceFromIdAsync<'a, P0, P1>(&self, deviceid: &::windows::core::BSTR, pcompletionhandler: P0, perrorhandler: P1) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IDispatch>>, P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IDispatch>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IDispatch>>, { - (::windows::core::Interface::vtable(self).GetDeviceFromIdAsync)(::windows::core::Interface::as_raw(self), deviceid.into().abi(), pcompletionhandler.into().abi(), perrorhandler.into().abi()).ok() + (::windows::core::Interface::vtable(self).GetDeviceFromIdAsync)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(deviceid), pcompletionhandler.into().abi(), perrorhandler.into().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2917,13 +2896,13 @@ unsafe impl ::windows::core::Interface for IPortableDeviceWebControl { #[doc(hidden)] pub struct IPortableDeviceWebControl_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetDeviceFromId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::core::mem::ManuallyDrop, ppdevice: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetDeviceFromId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppdevice: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetDeviceFromId: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetDeviceFromIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::core::mem::ManuallyDrop, pcompletionhandler: *mut ::core::ffi::c_void, perrorhandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetDeviceFromIdAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcompletionhandler: *mut ::core::ffi::c_void, perrorhandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetDeviceFromIdAsync: usize, } #[doc = "*Required features: `\"Win32_Devices_PortableDevices\"`*"] @@ -2934,17 +2913,13 @@ impl IRadioInstance { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetRadioManagerSignature)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetInstanceSignature(&self) -> ::windows::core::Result { + pub unsafe fn GetInstanceSignature(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetInstanceSignature)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetInstanceSignature)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetFriendlyName(&self, lcid: u32) -> ::windows::core::Result { + pub unsafe fn GetFriendlyName(&self, lcid: u32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetFriendlyName)(::windows::core::Interface::as_raw(self), lcid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetFriendlyName)(::windows::core::Interface::as_raw(self), lcid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetRadioState(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3004,14 +2979,8 @@ unsafe impl ::windows::core::Interface for IRadioInstance { pub struct IRadioInstance_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub GetRadioManagerSignature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguidsignature: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetInstanceSignature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetInstanceSignature: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetFriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lcid: u32, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetFriendlyName: usize, + pub GetInstanceSignature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetFriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lcid: u32, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetRadioState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pradiostate: *mut DEVICE_RADIO_STATE) -> ::windows::core::HRESULT, pub SetRadioState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, radiostate: DEVICE_RADIO_STATE, utimeoutsec: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Sensors/impl.rs b/crates/libs/windows/src/Windows/Win32/Devices/Sensors/impl.rs index 6b840d5d68..818002c504 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Sensors/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Sensors/impl.rs @@ -39,7 +39,7 @@ pub trait ISensor_Impl: Sized { fn GetID(&self) -> ::windows::core::Result<::windows::core::GUID>; fn GetCategory(&self) -> ::windows::core::Result<::windows::core::GUID>; fn GetType(&self) -> ::windows::core::Result<::windows::core::GUID>; - fn GetFriendlyName(&self) -> ::windows::core::Result; + fn GetFriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetProperty(&self, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> ::windows::core::Result; fn GetProperties(&self, pkeys: &::core::option::Option) -> ::windows::core::Result; fn GetSupportedDataFields(&self) -> ::windows::core::Result; @@ -90,7 +90,7 @@ impl ISensor_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetFriendlyName, Impl: ISensor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfriendlyname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFriendlyName, Impl: ISensor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfriendlyname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetFriendlyName() { diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Sensors/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/Sensors/mod.rs index eae0ab101d..8355afbab3 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Sensors/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Sensors/mod.rs @@ -478,11 +478,9 @@ impl ISensor { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetFriendlyName(&self) -> ::windows::core::Result { + pub unsafe fn GetFriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_UI_Shell_PropertiesSystem\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_PropertiesSystem"))] @@ -587,10 +585,7 @@ pub struct ISensor_Vtbl { pub GetID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, pub GetCategory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psensorcategory: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, pub GetType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psensortype: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetFriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfriendlyname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetFriendlyName: usize, + pub GetFriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfriendlyname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_PropertiesSystem"))] pub GetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pproperty: *mut super::super::System::Com::StructuredStorage::PROPVARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_PropertiesSystem")))] diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Tapi/impl.rs b/crates/libs/windows/src/Windows/Win32/Devices/Tapi/impl.rs index 2312897217..ab79d6708d 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Tapi/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Tapi/impl.rs @@ -248,19 +248,16 @@ impl IEnumAgentSession_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IEnumBstr_Impl: Sized { - fn Next(&self, celt: u32, ppstrings: *mut super::super::Foundation::BSTR, pceltfetched: *mut u32) -> ::windows::core::Result<()>; + fn Next(&self, celt: u32, ppstrings: *mut ::windows::core::BSTR, pceltfetched: *mut u32) -> ::windows::core::Result<()>; fn Reset(&self) -> ::windows::core::Result<()>; fn Skip(&self, celt: u32) -> ::windows::core::Result<()>; fn Clone(&self) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IEnumBstr {} -#[cfg(feature = "Win32_Foundation")] impl IEnumBstr_Vtbl { pub const fn new, Impl: IEnumBstr_Impl, const OFFSET: isize>() -> IEnumBstr_Vtbl { - unsafe extern "system" fn Next, Impl: IEnumBstr_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, celt: u32, ppstrings: *mut super::super::Foundation::BSTR, pceltfetched: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn Next, Impl: IEnumBstr_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, celt: u32, ppstrings: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pceltfetched: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Next(::core::mem::transmute_copy(&celt), ::core::mem::transmute_copy(&ppstrings), ::core::mem::transmute_copy(&pceltfetched)).into() @@ -448,19 +445,16 @@ impl IEnumCallingCard_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IEnumDialableAddrs_Impl: Sized { - fn Next(&self, celt: u32, ppelements: *mut super::super::Foundation::BSTR, pcfetched: *mut u32) -> ::windows::core::Result<()>; + fn Next(&self, celt: u32, ppelements: *mut ::windows::core::BSTR, pcfetched: *mut u32) -> ::windows::core::Result<()>; fn Reset(&self) -> ::windows::core::Result<()>; fn Skip(&self, celt: u32) -> ::windows::core::Result<()>; fn Clone(&self) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IEnumDialableAddrs {} -#[cfg(feature = "Win32_Foundation")] impl IEnumDialableAddrs_Vtbl { pub const fn new, Impl: IEnumDialableAddrs_Impl, const OFFSET: isize>() -> IEnumDialableAddrs_Vtbl { - unsafe extern "system" fn Next, Impl: IEnumDialableAddrs_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, celt: u32, ppelements: *mut super::super::Foundation::BSTR, pcfetched: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn Next, Impl: IEnumDialableAddrs_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, celt: u32, ppelements: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcfetched: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Next(::core::mem::transmute_copy(&celt), ::core::mem::transmute_copy(&ppelements), ::core::mem::transmute_copy(&pcfetched)).into() @@ -1103,7 +1097,7 @@ pub trait IMcastAddressAllocation_Impl: Sized + super::super::System::Com::IDisp fn RenewAddress(&self, lreserved: i32, prenewrequest: &::core::option::Option) -> ::windows::core::Result; fn ReleaseAddress(&self, preleaserequest: &::core::option::Option) -> ::windows::core::Result<()>; fn CreateLeaseInfo(&self, leasestarttime: f64, leasestoptime: f64, dwnumaddresses: u32, ppaddresses: *const ::windows::core::PWSTR, prequestid: &::windows::core::PCWSTR, pserveraddress: &::windows::core::PCWSTR) -> ::windows::core::Result; - fn CreateLeaseInfoFromVariant(&self, leasestarttime: f64, leasestoptime: f64, vaddresses: &super::super::System::Com::VARIANT, prequestid: &super::super::Foundation::BSTR, pserveraddress: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn CreateLeaseInfoFromVariant(&self, leasestarttime: f64, leasestoptime: f64, vaddresses: &super::super::System::Com::VARIANT, prequestid: &::windows::core::BSTR, pserveraddress: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IMcastAddressAllocation {} @@ -1170,7 +1164,7 @@ impl IMcastAddressAllocation_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateLeaseInfoFromVariant, Impl: IMcastAddressAllocation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, leasestarttime: f64, leasestoptime: f64, vaddresses: ::core::mem::ManuallyDrop, prequestid: ::core::mem::ManuallyDrop, pserveraddress: ::core::mem::ManuallyDrop, ppreleaserequest: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateLeaseInfoFromVariant, Impl: IMcastAddressAllocation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, leasestarttime: f64, leasestoptime: f64, vaddresses: ::core::mem::ManuallyDrop, prequestid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pserveraddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppreleaserequest: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateLeaseInfoFromVariant(::core::mem::transmute_copy(&leasestarttime), ::core::mem::transmute_copy(&leasestoptime), ::core::mem::transmute(&vaddresses), ::core::mem::transmute(&prequestid), ::core::mem::transmute(&pserveraddress)) { @@ -1198,13 +1192,13 @@ impl IMcastAddressAllocation_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IMcastLeaseInfo_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn RequestID(&self) -> ::windows::core::Result; + fn RequestID(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn LeaseStartTime(&self) -> ::windows::core::Result; fn SetLeaseStartTime(&self, time: f64) -> ::windows::core::Result<()>; fn LeaseStopTime(&self) -> ::windows::core::Result; fn SetLeaseStopTime(&self, time: f64) -> ::windows::core::Result<()>; fn AddressCount(&self) -> ::windows::core::Result; - fn ServerAddress(&self) -> ::windows::core::Result; + fn ServerAddress(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn TTL(&self) -> ::windows::core::Result; fn Addresses(&self) -> ::windows::core::Result; fn EnumerateAddresses(&self) -> ::windows::core::Result; @@ -1214,7 +1208,7 @@ impl ::windows::core::RuntimeName for IMcastLeaseInfo {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IMcastLeaseInfo_Vtbl { pub const fn new, Impl: IMcastLeaseInfo_Impl, const OFFSET: isize>() -> IMcastLeaseInfo_Vtbl { - unsafe extern "system" fn RequestID, Impl: IMcastLeaseInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pprequestid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RequestID, Impl: IMcastLeaseInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pprequestid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RequestID() { @@ -1268,7 +1262,7 @@ impl IMcastLeaseInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ServerAddress, Impl: IMcastLeaseInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ServerAddress, Impl: IMcastLeaseInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ServerAddress() { @@ -1335,7 +1329,7 @@ pub trait IMcastScope_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn ScopeID(&self) -> ::windows::core::Result; fn ServerID(&self) -> ::windows::core::Result; fn InterfaceID(&self) -> ::windows::core::Result; - fn ScopeDescription(&self) -> ::windows::core::Result; + fn ScopeDescription(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn TTL(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -1376,7 +1370,7 @@ impl IMcastScope_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ScopeDescription, Impl: IMcastScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ScopeDescription, Impl: IMcastScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ScopeDescription() { @@ -1413,7 +1407,7 @@ impl IMcastScope_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ITACDGroup_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn EnumerateQueues(&self) -> ::windows::core::Result; fn Queues(&self) -> ::windows::core::Result; } @@ -1422,7 +1416,7 @@ impl ::windows::core::RuntimeName for ITACDGroup {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ITACDGroup_Vtbl { pub const fn new, Impl: ITACDGroup_Impl, const OFFSET: isize>() -> ITACDGroup_Vtbl { - unsafe extern "system" fn Name, Impl: ITACDGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: ITACDGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -1602,13 +1596,13 @@ impl ITASRTerminalEvent_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ITAddress_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn State(&self) -> ::windows::core::Result; - fn AddressName(&self) -> ::windows::core::Result; - fn ServiceProviderName(&self) -> ::windows::core::Result; + fn AddressName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ServiceProviderName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn TAPIObject(&self) -> ::windows::core::Result; - fn CreateCall(&self, pdestaddress: &super::super::Foundation::BSTR, laddresstype: i32, lmediatypes: i32) -> ::windows::core::Result; + fn CreateCall(&self, pdestaddress: &::windows::core::BSTR, laddresstype: i32, lmediatypes: i32) -> ::windows::core::Result; fn Calls(&self) -> ::windows::core::Result; fn EnumerateCalls(&self) -> ::windows::core::Result; - fn DialableAddress(&self) -> ::windows::core::Result; + fn DialableAddress(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CreateForwardInfoObject(&self) -> ::windows::core::Result; fn Forward(&self, pforwardinfo: &::core::option::Option, pcall: &::core::option::Option) -> ::windows::core::Result<()>; fn CurrentForwardInfo(&self) -> ::windows::core::Result; @@ -1633,7 +1627,7 @@ impl ITAddress_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AddressName, Impl: ITAddress_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddressName, Impl: ITAddress_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AddressName() { @@ -1644,7 +1638,7 @@ impl ITAddress_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ServiceProviderName, Impl: ITAddress_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ServiceProviderName, Impl: ITAddress_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ServiceProviderName() { @@ -1666,7 +1660,7 @@ impl ITAddress_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateCall, Impl: ITAddress_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdestaddress: ::core::mem::ManuallyDrop, laddresstype: i32, lmediatypes: i32, ppcall: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateCall, Impl: ITAddress_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdestaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, laddresstype: i32, lmediatypes: i32, ppcall: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateCall(::core::mem::transmute(&pdestaddress), ::core::mem::transmute_copy(&laddresstype), ::core::mem::transmute_copy(&lmediatypes)) { @@ -1699,7 +1693,7 @@ impl ITAddress_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DialableAddress, Impl: ITAddress_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdialableaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DialableAddress, Impl: ITAddress_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdialableaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DialableAddress() { @@ -1923,7 +1917,7 @@ impl ITAddress2_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ITAddressCapabilities_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn get_AddressCapability(&self, addresscap: ADDRESS_CAPABILITY) -> ::windows::core::Result; - fn get_AddressCapabilityString(&self, addresscapstring: ADDRESS_CAPABILITY_STRING) -> ::windows::core::Result; + fn get_AddressCapabilityString(&self, addresscapstring: ADDRESS_CAPABILITY_STRING) -> ::windows::core::Result<::windows::core::BSTR>; fn CallTreatments(&self) -> ::windows::core::Result; fn EnumerateCallTreatments(&self) -> ::windows::core::Result; fn CompletionMessages(&self) -> ::windows::core::Result; @@ -1947,7 +1941,7 @@ impl ITAddressCapabilities_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_AddressCapabilityString, Impl: ITAddressCapabilities_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, addresscapstring: ADDRESS_CAPABILITY_STRING, ppcapabilitystring: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_AddressCapabilityString, Impl: ITAddressCapabilities_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, addresscapstring: ADDRESS_CAPABILITY_STRING, ppcapabilitystring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_AddressCapabilityString(::core::mem::transmute_copy(&addresscapstring)) { @@ -2178,8 +2172,8 @@ impl ITAddressEvent_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ITAddressTranslation_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn TranslateAddress(&self, paddresstotranslate: &super::super::Foundation::BSTR, lcard: i32, ltranslateoptions: i32) -> ::windows::core::Result; - fn TranslateDialog(&self, hwndowner: isize, paddressin: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn TranslateAddress(&self, paddresstotranslate: &::windows::core::BSTR, lcard: i32, ltranslateoptions: i32) -> ::windows::core::Result; + fn TranslateDialog(&self, hwndowner: isize, paddressin: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn EnumerateLocations(&self) -> ::windows::core::Result; fn Locations(&self) -> ::windows::core::Result; fn EnumerateCallingCards(&self) -> ::windows::core::Result; @@ -2190,7 +2184,7 @@ impl ::windows::core::RuntimeName for ITAddressTranslation {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ITAddressTranslation_Vtbl { pub const fn new, Impl: ITAddressTranslation_Impl, const OFFSET: isize>() -> ITAddressTranslation_Vtbl { - unsafe extern "system" fn TranslateAddress, Impl: ITAddressTranslation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, paddresstotranslate: ::core::mem::ManuallyDrop, lcard: i32, ltranslateoptions: i32, pptranslated: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn TranslateAddress, Impl: ITAddressTranslation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, paddresstotranslate: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lcard: i32, ltranslateoptions: i32, pptranslated: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TranslateAddress(::core::mem::transmute(&paddresstotranslate), ::core::mem::transmute_copy(&lcard), ::core::mem::transmute_copy(<ranslateoptions)) { @@ -2201,7 +2195,7 @@ impl ITAddressTranslation_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn TranslateDialog, Impl: ITAddressTranslation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwndowner: isize, paddressin: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn TranslateDialog, Impl: ITAddressTranslation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwndowner: isize, paddressin: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.TranslateDialog(::core::mem::transmute_copy(&hwndowner), ::core::mem::transmute(&paddressin)).into() @@ -2266,8 +2260,8 @@ impl ITAddressTranslation_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ITAddressTranslationInfo_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn DialableString(&self) -> ::windows::core::Result; - fn DisplayableString(&self) -> ::windows::core::Result; + fn DialableString(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn DisplayableString(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CurrentCountryCode(&self) -> ::windows::core::Result; fn DestinationCountryCode(&self) -> ::windows::core::Result; fn TranslationResults(&self) -> ::windows::core::Result; @@ -2277,7 +2271,7 @@ impl ::windows::core::RuntimeName for ITAddressTranslationInfo {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ITAddressTranslationInfo_Vtbl { pub const fn new, Impl: ITAddressTranslationInfo_Impl, const OFFSET: isize>() -> ITAddressTranslationInfo_Vtbl { - unsafe extern "system" fn DialableString, Impl: ITAddressTranslationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppdialablestring: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DialableString, Impl: ITAddressTranslationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppdialablestring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DialableString() { @@ -2288,7 +2282,7 @@ impl ITAddressTranslationInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DisplayableString, Impl: ITAddressTranslationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppdisplayablestring: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DisplayableString, Impl: ITAddressTranslationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppdisplayablestring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DisplayableString() { @@ -2349,9 +2343,9 @@ impl ITAddressTranslationInfo_Vtbl { pub trait ITAgent_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn EnumerateAgentSessions(&self) -> ::windows::core::Result; fn CreateSession(&self, pacdgroup: &::core::option::Option, paddress: &::core::option::Option) -> ::windows::core::Result; - fn CreateSessionWithPIN(&self, pacdgroup: &::core::option::Option, paddress: &::core::option::Option, ppin: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn ID(&self) -> ::windows::core::Result; - fn User(&self) -> ::windows::core::Result; + fn CreateSessionWithPIN(&self, pacdgroup: &::core::option::Option, paddress: &::core::option::Option, ppin: &::windows::core::BSTR) -> ::windows::core::Result; + fn ID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn User(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn SetState(&self, agentstate: AGENT_STATE) -> ::windows::core::Result<()>; fn State(&self) -> ::windows::core::Result; fn SetMeasurementPeriod(&self, lperiod: i32) -> ::windows::core::Result<()>; @@ -2392,7 +2386,7 @@ impl ITAgent_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateSessionWithPIN, Impl: ITAgent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pacdgroup: *mut ::core::ffi::c_void, paddress: *mut ::core::ffi::c_void, ppin: ::core::mem::ManuallyDrop, ppagentsession: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateSessionWithPIN, Impl: ITAgent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pacdgroup: *mut ::core::ffi::c_void, paddress: *mut ::core::ffi::c_void, ppin: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppagentsession: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateSessionWithPIN(::core::mem::transmute(&pacdgroup), ::core::mem::transmute(&paddress), ::core::mem::transmute(&ppin)) { @@ -2403,7 +2397,7 @@ impl ITAgent_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ID, Impl: ITAgent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ID, Impl: ITAgent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ID() { @@ -2414,7 +2408,7 @@ impl ITAgent_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn User, Impl: ITAgent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppuser: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn User, Impl: ITAgent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppuser: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.User() { @@ -2614,9 +2608,9 @@ impl ITAgentEvent_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ITAgentHandler_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CreateAgent(&self) -> ::windows::core::Result; - fn CreateAgentWithID(&self, pid: &super::super::Foundation::BSTR, ppin: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn CreateAgentWithID(&self, pid: &::windows::core::BSTR, ppin: &::windows::core::BSTR) -> ::windows::core::Result; fn EnumerateACDGroups(&self) -> ::windows::core::Result; fn EnumerateUsableAddresses(&self) -> ::windows::core::Result; fn ACDGroups(&self) -> ::windows::core::Result; @@ -2627,7 +2621,7 @@ impl ::windows::core::RuntimeName for ITAgentHandler {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ITAgentHandler_Vtbl { pub const fn new, Impl: ITAgentHandler_Impl, const OFFSET: isize>() -> ITAgentHandler_Vtbl { - unsafe extern "system" fn Name, Impl: ITAgentHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: ITAgentHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -2649,7 +2643,7 @@ impl ITAgentHandler_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateAgentWithID, Impl: ITAgentHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pid: ::core::mem::ManuallyDrop, ppin: ::core::mem::ManuallyDrop, ppagent: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateAgentWithID, Impl: ITAgentHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppin: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppagent: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateAgentWithID(::core::mem::transmute(&pid), ::core::mem::transmute(&ppin)) { @@ -3502,18 +3496,18 @@ pub trait ITBasicCallControl_Impl: Sized + super::super::System::Com::IDispatch_ fn Answer(&self) -> ::windows::core::Result<()>; fn Disconnect(&self, code: DISCONNECT_CODE) -> ::windows::core::Result<()>; fn Hold(&self, fhold: i16) -> ::windows::core::Result<()>; - fn HandoffDirect(&self, papplicationname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn HandoffDirect(&self, papplicationname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn HandoffIndirect(&self, lmediatype: i32) -> ::windows::core::Result<()>; fn Conference(&self, pcall: &::core::option::Option, fsync: i16) -> ::windows::core::Result<()>; fn Transfer(&self, pcall: &::core::option::Option, fsync: i16) -> ::windows::core::Result<()>; - fn BlindTransfer(&self, pdestaddress: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn BlindTransfer(&self, pdestaddress: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SwapHold(&self, pcall: &::core::option::Option) -> ::windows::core::Result<()>; - fn ParkDirect(&self, pparkaddress: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ParkIndirect(&self) -> ::windows::core::Result; + fn ParkDirect(&self, pparkaddress: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ParkIndirect(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Unpark(&self) -> ::windows::core::Result<()>; fn SetQOS(&self, lmediatype: i32, servicelevel: QOS_SERVICE_LEVEL) -> ::windows::core::Result<()>; - fn Pickup(&self, pgroupid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Dial(&self, pdestaddress: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Pickup(&self, pgroupid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Dial(&self, pdestaddress: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Finish(&self, finishmode: FINISH_MODE) -> ::windows::core::Result<()>; fn RemoveFromConference(&self) -> ::windows::core::Result<()>; } @@ -3542,7 +3536,7 @@ impl ITBasicCallControl_Vtbl { let this = (*this).get_impl(); this.Hold(::core::mem::transmute_copy(&fhold)).into() } - unsafe extern "system" fn HandoffDirect, Impl: ITBasicCallControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, papplicationname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn HandoffDirect, Impl: ITBasicCallControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, papplicationname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.HandoffDirect(::core::mem::transmute(&papplicationname)).into() @@ -3562,7 +3556,7 @@ impl ITBasicCallControl_Vtbl { let this = (*this).get_impl(); this.Transfer(::core::mem::transmute(&pcall), ::core::mem::transmute_copy(&fsync)).into() } - unsafe extern "system" fn BlindTransfer, Impl: ITBasicCallControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdestaddress: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn BlindTransfer, Impl: ITBasicCallControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdestaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.BlindTransfer(::core::mem::transmute(&pdestaddress)).into() @@ -3572,12 +3566,12 @@ impl ITBasicCallControl_Vtbl { let this = (*this).get_impl(); this.SwapHold(::core::mem::transmute(&pcall)).into() } - unsafe extern "system" fn ParkDirect, Impl: ITBasicCallControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pparkaddress: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ParkDirect, Impl: ITBasicCallControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pparkaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ParkDirect(::core::mem::transmute(&pparkaddress)).into() } - unsafe extern "system" fn ParkIndirect, Impl: ITBasicCallControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppnondiraddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ParkIndirect, Impl: ITBasicCallControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppnondiraddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ParkIndirect() { @@ -3598,12 +3592,12 @@ impl ITBasicCallControl_Vtbl { let this = (*this).get_impl(); this.SetQOS(::core::mem::transmute_copy(&lmediatype), ::core::mem::transmute_copy(&servicelevel)).into() } - unsafe extern "system" fn Pickup, Impl: ITBasicCallControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pgroupid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Pickup, Impl: ITBasicCallControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pgroupid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Pickup(::core::mem::transmute(&pgroupid)).into() } - unsafe extern "system" fn Dial, Impl: ITBasicCallControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdestaddress: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Dial, Impl: ITBasicCallControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdestaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Dial(::core::mem::transmute(&pdestaddress)).into() @@ -3646,7 +3640,7 @@ impl ITBasicCallControl_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ITBasicCallControl2_Impl: Sized + super::super::System::Com::IDispatch_Impl + ITBasicCallControl_Impl { - fn RequestTerminal(&self, bstrterminalclassguid: &super::super::Foundation::BSTR, lmediatype: i32, direction: TERMINAL_DIRECTION) -> ::windows::core::Result; + fn RequestTerminal(&self, bstrterminalclassguid: &::windows::core::BSTR, lmediatype: i32, direction: TERMINAL_DIRECTION) -> ::windows::core::Result; fn SelectTerminalOnCall(&self, pterminal: &::core::option::Option) -> ::windows::core::Result<()>; fn UnselectTerminalOnCall(&self, pterminal: &::core::option::Option) -> ::windows::core::Result<()>; } @@ -3655,7 +3649,7 @@ impl ::windows::core::RuntimeName for ITBasicCallControl2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ITBasicCallControl2_Vtbl { pub const fn new, Impl: ITBasicCallControl2_Impl, const OFFSET: isize>() -> ITBasicCallControl2_Vtbl { - unsafe extern "system" fn RequestTerminal, Impl: ITBasicCallControl2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrterminalclassguid: ::core::mem::ManuallyDrop, lmediatype: i32, direction: TERMINAL_DIRECTION, ppterminal: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn RequestTerminal, Impl: ITBasicCallControl2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrterminalclassguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lmediatype: i32, direction: TERMINAL_DIRECTION, ppterminal: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RequestTerminal(::core::mem::transmute(&bstrterminalclassguid), ::core::mem::transmute_copy(&lmediatype), ::core::mem::transmute_copy(&direction)) { @@ -3825,8 +3819,8 @@ pub trait ITCallInfo_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn CallHub(&self) -> ::windows::core::Result; fn get_CallInfoLong(&self, callinfolong: CALLINFO_LONG) -> ::windows::core::Result; fn put_CallInfoLong(&self, callinfolong: CALLINFO_LONG, lcallinfolongval: i32) -> ::windows::core::Result<()>; - fn get_CallInfoString(&self, callinfostring: CALLINFO_STRING) -> ::windows::core::Result; - fn put_CallInfoString(&self, callinfostring: CALLINFO_STRING, pcallinfostring: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn get_CallInfoString(&self, callinfostring: CALLINFO_STRING) -> ::windows::core::Result<::windows::core::BSTR>; + fn put_CallInfoString(&self, callinfostring: CALLINFO_STRING, pcallinfostring: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn get_CallInfoBuffer(&self, callinfobuffer: CALLINFO_BUFFER) -> ::windows::core::Result; fn put_CallInfoBuffer(&self, callinfobuffer: CALLINFO_BUFFER, pcallinfobuffer: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn GetCallInfoBuffer(&self, callinfobuffer: CALLINFO_BUFFER, pdwsize: *mut u32, ppcallinfobuffer: *mut *mut u8) -> ::windows::core::Result<()>; @@ -3898,7 +3892,7 @@ impl ITCallInfo_Vtbl { let this = (*this).get_impl(); this.put_CallInfoLong(::core::mem::transmute_copy(&callinfolong), ::core::mem::transmute_copy(&lcallinfolongval)).into() } - unsafe extern "system" fn get_CallInfoString, Impl: ITCallInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, callinfostring: CALLINFO_STRING, ppcallinfostring: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_CallInfoString, Impl: ITCallInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, callinfostring: CALLINFO_STRING, ppcallinfostring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_CallInfoString(::core::mem::transmute_copy(&callinfostring)) { @@ -3909,7 +3903,7 @@ impl ITCallInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn put_CallInfoString, Impl: ITCallInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, callinfostring: CALLINFO_STRING, pcallinfostring: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn put_CallInfoString, Impl: ITCallInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, callinfostring: CALLINFO_STRING, pcallinfostring: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.put_CallInfoString(::core::mem::transmute_copy(&callinfostring), ::core::mem::transmute(&pcallinfostring)).into() @@ -4279,10 +4273,10 @@ pub trait ITCallingCard_Impl: Sized + super::super::System::Com::IDispatch_Impl fn PermanentCardID(&self) -> ::windows::core::Result; fn NumberOfDigits(&self) -> ::windows::core::Result; fn Options(&self) -> ::windows::core::Result; - fn CardName(&self) -> ::windows::core::Result; - fn SameAreaDialingRule(&self) -> ::windows::core::Result; - fn LongDistanceDialingRule(&self) -> ::windows::core::Result; - fn InternationalDialingRule(&self) -> ::windows::core::Result; + fn CardName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SameAreaDialingRule(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn LongDistanceDialingRule(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn InternationalDialingRule(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ITCallingCard {} @@ -4322,7 +4316,7 @@ impl ITCallingCard_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CardName, Impl: ITCallingCard_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppcardname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CardName, Impl: ITCallingCard_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppcardname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CardName() { @@ -4333,7 +4327,7 @@ impl ITCallingCard_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SameAreaDialingRule, Impl: ITCallingCard_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pprule: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SameAreaDialingRule, Impl: ITCallingCard_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pprule: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SameAreaDialingRule() { @@ -4344,7 +4338,7 @@ impl ITCallingCard_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn LongDistanceDialingRule, Impl: ITCallingCard_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pprule: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LongDistanceDialingRule, Impl: ITCallingCard_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pprule: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LongDistanceDialingRule() { @@ -4355,7 +4349,7 @@ impl ITCallingCard_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn InternationalDialingRule, Impl: ITCallingCard_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pprule: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn InternationalDialingRule, Impl: ITCallingCard_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pprule: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.InternationalDialingRule() { @@ -4786,7 +4780,7 @@ impl ITDigitGenerationEvent_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ITDigitsGatheredEvent_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn Call(&self) -> ::windows::core::Result; - fn Digits(&self) -> ::windows::core::Result; + fn Digits(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GatherTermination(&self) -> ::windows::core::Result; fn TickCount(&self) -> ::windows::core::Result; fn CallbackInstance(&self) -> ::windows::core::Result; @@ -4807,7 +4801,7 @@ impl ITDigitsGatheredEvent_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Digits, Impl: ITDigitsGatheredEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppdigits: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Digits, Impl: ITDigitsGatheredEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppdigits: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Digits() { @@ -4867,19 +4861,19 @@ impl ITDigitsGatheredEvent_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ITDirectory_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn DirectoryType(&self) -> ::windows::core::Result; - fn DisplayName(&self) -> ::windows::core::Result; + fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn IsDynamic(&self) -> ::windows::core::Result; fn DefaultObjectTTL(&self) -> ::windows::core::Result; fn SetDefaultObjectTTL(&self, ttl: i32) -> ::windows::core::Result<()>; fn EnableAutoRefresh(&self, fenable: i16) -> ::windows::core::Result<()>; fn Connect(&self, fsecure: i16) -> ::windows::core::Result<()>; - fn Bind(&self, pdomainname: &super::super::Foundation::BSTR, pusername: &super::super::Foundation::BSTR, ppassword: &super::super::Foundation::BSTR, lflags: i32) -> ::windows::core::Result<()>; + fn Bind(&self, pdomainname: &::windows::core::BSTR, pusername: &::windows::core::BSTR, ppassword: &::windows::core::BSTR, lflags: i32) -> ::windows::core::Result<()>; fn AddDirectoryObject(&self, pdirectoryobject: &::core::option::Option) -> ::windows::core::Result<()>; fn ModifyDirectoryObject(&self, pdirectoryobject: &::core::option::Option) -> ::windows::core::Result<()>; fn RefreshDirectoryObject(&self, pdirectoryobject: &::core::option::Option) -> ::windows::core::Result<()>; fn DeleteDirectoryObject(&self, pdirectoryobject: &::core::option::Option) -> ::windows::core::Result<()>; - fn get_DirectoryObjects(&self, directoryobjecttype: DIRECTORY_OBJECT_TYPE, pname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn EnumerateDirectoryObjects(&self, directoryobjecttype: DIRECTORY_OBJECT_TYPE, pname: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn get_DirectoryObjects(&self, directoryobjecttype: DIRECTORY_OBJECT_TYPE, pname: &::windows::core::BSTR) -> ::windows::core::Result; + fn EnumerateDirectoryObjects(&self, directoryobjecttype: DIRECTORY_OBJECT_TYPE, pname: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ITDirectory {} @@ -4897,7 +4891,7 @@ impl ITDirectory_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DisplayName, Impl: ITDirectory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DisplayName, Impl: ITDirectory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DisplayName() { @@ -4945,7 +4939,7 @@ impl ITDirectory_Vtbl { let this = (*this).get_impl(); this.Connect(::core::mem::transmute_copy(&fsecure)).into() } - unsafe extern "system" fn Bind, Impl: ITDirectory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdomainname: ::core::mem::ManuallyDrop, pusername: ::core::mem::ManuallyDrop, ppassword: ::core::mem::ManuallyDrop, lflags: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn Bind, Impl: ITDirectory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdomainname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Bind(::core::mem::transmute(&pdomainname), ::core::mem::transmute(&pusername), ::core::mem::transmute(&ppassword), ::core::mem::transmute_copy(&lflags)).into() @@ -4970,7 +4964,7 @@ impl ITDirectory_Vtbl { let this = (*this).get_impl(); this.DeleteDirectoryObject(::core::mem::transmute(&pdirectoryobject)).into() } - unsafe extern "system" fn get_DirectoryObjects, Impl: ITDirectory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, directoryobjecttype: DIRECTORY_OBJECT_TYPE, pname: ::core::mem::ManuallyDrop, pvariant: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_DirectoryObjects, Impl: ITDirectory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, directoryobjecttype: DIRECTORY_OBJECT_TYPE, pname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvariant: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_DirectoryObjects(::core::mem::transmute_copy(&directoryobjecttype), ::core::mem::transmute(&pname)) { @@ -4981,7 +4975,7 @@ impl ITDirectory_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateDirectoryObjects, Impl: ITDirectory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, directoryobjecttype: DIRECTORY_OBJECT_TYPE, pname: ::core::mem::ManuallyDrop, ppenumobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn EnumerateDirectoryObjects, Impl: ITDirectory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, directoryobjecttype: DIRECTORY_OBJECT_TYPE, pname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppenumobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EnumerateDirectoryObjects(::core::mem::transmute_copy(&directoryobjecttype), ::core::mem::transmute(&pname)) { @@ -5017,8 +5011,8 @@ impl ITDirectory_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ITDirectoryObject_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn ObjectType(&self) -> ::windows::core::Result; - fn Name(&self) -> ::windows::core::Result; - fn SetName(&self, pname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetName(&self, pname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn get_DialableAddrs(&self, dwaddresstype: i32) -> ::windows::core::Result; fn EnumerateDialableAddrs(&self, dwaddresstype: u32) -> ::windows::core::Result; fn SecurityDescriptor(&self) -> ::windows::core::Result; @@ -5040,7 +5034,7 @@ impl ITDirectoryObject_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Name, Impl: ITDirectoryObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: ITDirectoryObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -5051,7 +5045,7 @@ impl ITDirectoryObject_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetName, Impl: ITDirectoryObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: ITDirectoryObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&pname)).into() @@ -5111,15 +5105,15 @@ impl ITDirectoryObject_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ITDirectoryObjectConference_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Protocol(&self) -> ::windows::core::Result; - fn Originator(&self) -> ::windows::core::Result; - fn SetOriginator(&self, poriginator: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Protocol(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Originator(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetOriginator(&self, poriginator: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn AdvertisingScope(&self) -> ::windows::core::Result; fn SetAdvertisingScope(&self, advertisingscope: RND_ADVERTISING_SCOPE) -> ::windows::core::Result<()>; - fn Url(&self) -> ::windows::core::Result; - fn SetUrl(&self, purl: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Description(&self) -> ::windows::core::Result; - fn SetDescription(&self, pdescription: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Url(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetUrl(&self, purl: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDescription(&self, pdescription: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn IsEncrypted(&self) -> ::windows::core::Result; fn SetIsEncrypted(&self, fencrypted: i16) -> ::windows::core::Result<()>; fn StartTime(&self) -> ::windows::core::Result; @@ -5132,7 +5126,7 @@ impl ::windows::core::RuntimeName for ITDirectoryObjectConference {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ITDirectoryObjectConference_Vtbl { pub const fn new, Impl: ITDirectoryObjectConference_Impl, const OFFSET: isize>() -> ITDirectoryObjectConference_Vtbl { - unsafe extern "system" fn Protocol, Impl: ITDirectoryObjectConference_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppprotocol: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Protocol, Impl: ITDirectoryObjectConference_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppprotocol: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Protocol() { @@ -5143,7 +5137,7 @@ impl ITDirectoryObjectConference_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Originator, Impl: ITDirectoryObjectConference_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pporiginator: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Originator, Impl: ITDirectoryObjectConference_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pporiginator: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Originator() { @@ -5154,7 +5148,7 @@ impl ITDirectoryObjectConference_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetOriginator, Impl: ITDirectoryObjectConference_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, poriginator: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetOriginator, Impl: ITDirectoryObjectConference_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, poriginator: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetOriginator(::core::mem::transmute(&poriginator)).into() @@ -5175,7 +5169,7 @@ impl ITDirectoryObjectConference_Vtbl { let this = (*this).get_impl(); this.SetAdvertisingScope(::core::mem::transmute_copy(&advertisingscope)).into() } - unsafe extern "system" fn Url, Impl: ITDirectoryObjectConference_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Url, Impl: ITDirectoryObjectConference_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Url() { @@ -5186,12 +5180,12 @@ impl ITDirectoryObjectConference_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetUrl, Impl: ITDirectoryObjectConference_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, purl: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetUrl, Impl: ITDirectoryObjectConference_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, purl: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetUrl(::core::mem::transmute(&purl)).into() } - unsafe extern "system" fn Description, Impl: ITDirectoryObjectConference_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: ITDirectoryObjectConference_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -5202,7 +5196,7 @@ impl ITDirectoryObjectConference_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription, Impl: ITDirectoryObjectConference_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDescription, Impl: ITDirectoryObjectConference_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDescription(::core::mem::transmute(&pdescription)).into() @@ -5280,15 +5274,15 @@ impl ITDirectoryObjectConference_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ITDirectoryObjectUser_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn IPPhonePrimary(&self) -> ::windows::core::Result; - fn SetIPPhonePrimary(&self, pname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn IPPhonePrimary(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetIPPhonePrimary(&self, pname: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ITDirectoryObjectUser {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ITDirectoryObjectUser_Vtbl { pub const fn new, Impl: ITDirectoryObjectUser_Impl, const OFFSET: isize>() -> ITDirectoryObjectUser_Vtbl { - unsafe extern "system" fn IPPhonePrimary, Impl: ITDirectoryObjectUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn IPPhonePrimary, Impl: ITDirectoryObjectUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.IPPhonePrimary() { @@ -5299,7 +5293,7 @@ impl ITDirectoryObjectUser_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetIPPhonePrimary, Impl: ITDirectoryObjectUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetIPPhonePrimary, Impl: ITDirectoryObjectUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetIPPhonePrimary(::core::mem::transmute(&pname)).into() @@ -5316,14 +5310,14 @@ impl ITDirectoryObjectUser_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ITDispatchMapper_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn QueryDispatchInterface(&self, piid: &super::super::Foundation::BSTR, pinterfacetomap: &::core::option::Option) -> ::windows::core::Result; + fn QueryDispatchInterface(&self, piid: &::windows::core::BSTR, pinterfacetomap: &::core::option::Option) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ITDispatchMapper {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ITDispatchMapper_Vtbl { pub const fn new, Impl: ITDispatchMapper_Impl, const OFFSET: isize>() -> ITDispatchMapper_Vtbl { - unsafe extern "system" fn QueryDispatchInterface, Impl: ITDispatchMapper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, piid: ::core::mem::ManuallyDrop, pinterfacetomap: *mut ::core::ffi::c_void, ppreturnedinterface: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn QueryDispatchInterface, Impl: ITDispatchMapper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, piid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pinterfacetomap: *mut ::core::ffi::c_void, ppreturnedinterface: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.QueryDispatchInterface(::core::mem::transmute(&piid), ::core::mem::transmute(&pinterfacetomap)) { @@ -5523,10 +5517,10 @@ impl ITFileTrack_Vtbl { pub trait ITForwardInformation_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn SetNumRingsNoAnswer(&self, lnumrings: i32) -> ::windows::core::Result<()>; fn NumRingsNoAnswer(&self) -> ::windows::core::Result; - fn SetForwardType(&self, forwardtype: i32, pdestaddress: &super::super::Foundation::BSTR, pcalleraddress: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn get_ForwardTypeDestination(&self, forwardtype: i32) -> ::windows::core::Result; - fn get_ForwardTypeCaller(&self, forwardtype: i32) -> ::windows::core::Result; - fn GetForwardType(&self, forwardtype: i32, ppdestinationaddress: *mut super::super::Foundation::BSTR, ppcalleraddress: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetForwardType(&self, forwardtype: i32, pdestaddress: &::windows::core::BSTR, pcalleraddress: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn get_ForwardTypeDestination(&self, forwardtype: i32) -> ::windows::core::Result<::windows::core::BSTR>; + fn get_ForwardTypeCaller(&self, forwardtype: i32) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetForwardType(&self, forwardtype: i32, ppdestinationaddress: *mut ::windows::core::BSTR, ppcalleraddress: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn Clear(&self) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -5550,12 +5544,12 @@ impl ITForwardInformation_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetForwardType, Impl: ITForwardInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, forwardtype: i32, pdestaddress: ::core::mem::ManuallyDrop, pcalleraddress: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetForwardType, Impl: ITForwardInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, forwardtype: i32, pdestaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcalleraddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetForwardType(::core::mem::transmute_copy(&forwardtype), ::core::mem::transmute(&pdestaddress), ::core::mem::transmute(&pcalleraddress)).into() } - unsafe extern "system" fn get_ForwardTypeDestination, Impl: ITForwardInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, forwardtype: i32, ppdestaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_ForwardTypeDestination, Impl: ITForwardInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, forwardtype: i32, ppdestaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_ForwardTypeDestination(::core::mem::transmute_copy(&forwardtype)) { @@ -5566,7 +5560,7 @@ impl ITForwardInformation_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_ForwardTypeCaller, Impl: ITForwardInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, forwardtype: i32, ppcalleraddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_ForwardTypeCaller, Impl: ITForwardInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, forwardtype: i32, ppcalleraddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_ForwardTypeCaller(::core::mem::transmute_copy(&forwardtype)) { @@ -5577,7 +5571,7 @@ impl ITForwardInformation_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetForwardType, Impl: ITForwardInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, forwardtype: i32, ppdestinationaddress: *mut super::super::Foundation::BSTR, ppcalleraddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetForwardType, Impl: ITForwardInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, forwardtype: i32, ppdestinationaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppcalleraddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetForwardType(::core::mem::transmute_copy(&forwardtype), ::core::mem::transmute_copy(&ppdestinationaddress), ::core::mem::transmute_copy(&ppcalleraddress)).into() @@ -5604,8 +5598,8 @@ impl ITForwardInformation_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ITForwardInformation2_Impl: Sized + super::super::System::Com::IDispatch_Impl + ITForwardInformation_Impl { - fn SetForwardType2(&self, forwardtype: i32, pdestaddress: &super::super::Foundation::BSTR, destaddresstype: i32, pcalleraddress: &super::super::Foundation::BSTR, calleraddresstype: i32) -> ::windows::core::Result<()>; - fn GetForwardType2(&self, forwardtype: i32, ppdestinationaddress: *mut super::super::Foundation::BSTR, pdestaddresstype: *mut i32, ppcalleraddress: *mut super::super::Foundation::BSTR, pcalleraddresstype: *mut i32) -> ::windows::core::Result<()>; + fn SetForwardType2(&self, forwardtype: i32, pdestaddress: &::windows::core::BSTR, destaddresstype: i32, pcalleraddress: &::windows::core::BSTR, calleraddresstype: i32) -> ::windows::core::Result<()>; + fn GetForwardType2(&self, forwardtype: i32, ppdestinationaddress: *mut ::windows::core::BSTR, pdestaddresstype: *mut i32, ppcalleraddress: *mut ::windows::core::BSTR, pcalleraddresstype: *mut i32) -> ::windows::core::Result<()>; fn get_ForwardTypeDestinationAddressType(&self, forwardtype: i32) -> ::windows::core::Result; fn get_ForwardTypeCallerAddressType(&self, forwardtype: i32) -> ::windows::core::Result; } @@ -5614,12 +5608,12 @@ impl ::windows::core::RuntimeName for ITForwardInformation2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ITForwardInformation2_Vtbl { pub const fn new, Impl: ITForwardInformation2_Impl, const OFFSET: isize>() -> ITForwardInformation2_Vtbl { - unsafe extern "system" fn SetForwardType2, Impl: ITForwardInformation2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, forwardtype: i32, pdestaddress: ::core::mem::ManuallyDrop, destaddresstype: i32, pcalleraddress: ::core::mem::ManuallyDrop, calleraddresstype: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetForwardType2, Impl: ITForwardInformation2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, forwardtype: i32, pdestaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, destaddresstype: i32, pcalleraddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, calleraddresstype: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetForwardType2(::core::mem::transmute_copy(&forwardtype), ::core::mem::transmute(&pdestaddress), ::core::mem::transmute_copy(&destaddresstype), ::core::mem::transmute(&pcalleraddress), ::core::mem::transmute_copy(&calleraddresstype)).into() } - unsafe extern "system" fn GetForwardType2, Impl: ITForwardInformation2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, forwardtype: i32, ppdestinationaddress: *mut super::super::Foundation::BSTR, pdestaddresstype: *mut i32, ppcalleraddress: *mut super::super::Foundation::BSTR, pcalleraddresstype: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetForwardType2, Impl: ITForwardInformation2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, forwardtype: i32, ppdestinationaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdestaddresstype: *mut i32, ppcalleraddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcalleraddresstype: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetForwardType2(::core::mem::transmute_copy(&forwardtype), ::core::mem::transmute_copy(&ppdestinationaddress), ::core::mem::transmute_copy(&pdestaddresstype), ::core::mem::transmute_copy(&ppcalleraddress), ::core::mem::transmute_copy(&pcalleraddresstype)).into() @@ -5694,28 +5688,25 @@ impl ITILSConfig_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait ITLegacyAddressMediaControl_Impl: Sized { - fn GetID(&self, pdeviceclass: &super::super::Foundation::BSTR, pdwsize: *mut u32, ppdeviceid: *mut *mut u8) -> ::windows::core::Result<()>; - fn GetDevConfig(&self, pdeviceclass: &super::super::Foundation::BSTR, pdwsize: *mut u32, ppdeviceconfig: *mut *mut u8) -> ::windows::core::Result<()>; - fn SetDevConfig(&self, pdeviceclass: &super::super::Foundation::BSTR, dwsize: u32, pdeviceconfig: *const u8) -> ::windows::core::Result<()>; + fn GetID(&self, pdeviceclass: &::windows::core::BSTR, pdwsize: *mut u32, ppdeviceid: *mut *mut u8) -> ::windows::core::Result<()>; + fn GetDevConfig(&self, pdeviceclass: &::windows::core::BSTR, pdwsize: *mut u32, ppdeviceconfig: *mut *mut u8) -> ::windows::core::Result<()>; + fn SetDevConfig(&self, pdeviceclass: &::windows::core::BSTR, dwsize: u32, pdeviceconfig: *const u8) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ITLegacyAddressMediaControl {} -#[cfg(feature = "Win32_Foundation")] impl ITLegacyAddressMediaControl_Vtbl { pub const fn new, Impl: ITLegacyAddressMediaControl_Impl, const OFFSET: isize>() -> ITLegacyAddressMediaControl_Vtbl { - unsafe extern "system" fn GetID, Impl: ITLegacyAddressMediaControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdeviceclass: ::core::mem::ManuallyDrop, pdwsize: *mut u32, ppdeviceid: *mut *mut u8) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetID, Impl: ITLegacyAddressMediaControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdeviceclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwsize: *mut u32, ppdeviceid: *mut *mut u8) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetID(::core::mem::transmute(&pdeviceclass), ::core::mem::transmute_copy(&pdwsize), ::core::mem::transmute_copy(&ppdeviceid)).into() } - unsafe extern "system" fn GetDevConfig, Impl: ITLegacyAddressMediaControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdeviceclass: ::core::mem::ManuallyDrop, pdwsize: *mut u32, ppdeviceconfig: *mut *mut u8) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDevConfig, Impl: ITLegacyAddressMediaControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdeviceclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwsize: *mut u32, ppdeviceconfig: *mut *mut u8) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetDevConfig(::core::mem::transmute(&pdeviceclass), ::core::mem::transmute_copy(&pdwsize), ::core::mem::transmute_copy(&ppdeviceconfig)).into() } - unsafe extern "system" fn SetDevConfig, Impl: ITLegacyAddressMediaControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdeviceclass: ::core::mem::ManuallyDrop, dwsize: u32, pdeviceconfig: *const u8) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDevConfig, Impl: ITLegacyAddressMediaControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdeviceclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwsize: u32, pdeviceconfig: *const u8) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDevConfig(::core::mem::transmute(&pdeviceclass), ::core::mem::transmute_copy(&dwsize), ::core::mem::transmute_copy(&pdeviceconfig)).into() @@ -5733,20 +5724,20 @@ impl ITLegacyAddressMediaControl_Vtbl { } #[cfg(feature = "Win32_Foundation")] pub trait ITLegacyAddressMediaControl2_Impl: Sized + ITLegacyAddressMediaControl_Impl { - fn ConfigDialog(&self, hwndowner: super::super::Foundation::HWND, pdeviceclass: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ConfigDialogEdit(&self, hwndowner: super::super::Foundation::HWND, pdeviceclass: &super::super::Foundation::BSTR, dwsizein: u32, pdeviceconfigin: *const u8, pdwsizeout: *mut u32, ppdeviceconfigout: *mut *mut u8) -> ::windows::core::Result<()>; + fn ConfigDialog(&self, hwndowner: super::super::Foundation::HWND, pdeviceclass: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ConfigDialogEdit(&self, hwndowner: super::super::Foundation::HWND, pdeviceclass: &::windows::core::BSTR, dwsizein: u32, pdeviceconfigin: *const u8, pdwsizeout: *mut u32, ppdeviceconfigout: *mut *mut u8) -> ::windows::core::Result<()>; } #[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ITLegacyAddressMediaControl2 {} #[cfg(feature = "Win32_Foundation")] impl ITLegacyAddressMediaControl2_Vtbl { pub const fn new, Impl: ITLegacyAddressMediaControl2_Impl, const OFFSET: isize>() -> ITLegacyAddressMediaControl2_Vtbl { - unsafe extern "system" fn ConfigDialog, Impl: ITLegacyAddressMediaControl2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwndowner: super::super::Foundation::HWND, pdeviceclass: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ConfigDialog, Impl: ITLegacyAddressMediaControl2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwndowner: super::super::Foundation::HWND, pdeviceclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ConfigDialog(::core::mem::transmute_copy(&hwndowner), ::core::mem::transmute(&pdeviceclass)).into() } - unsafe extern "system" fn ConfigDialogEdit, Impl: ITLegacyAddressMediaControl2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwndowner: super::super::Foundation::HWND, pdeviceclass: ::core::mem::ManuallyDrop, dwsizein: u32, pdeviceconfigin: *const u8, pdwsizeout: *mut u32, ppdeviceconfigout: *mut *mut u8) -> ::windows::core::HRESULT { + unsafe extern "system" fn ConfigDialogEdit, Impl: ITLegacyAddressMediaControl2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwndowner: super::super::Foundation::HWND, pdeviceclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwsizein: u32, pdeviceconfigin: *const u8, pdwsizeout: *mut u32, ppdeviceconfigout: *mut *mut u8) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ConfigDialogEdit(::core::mem::transmute_copy(&hwndowner), ::core::mem::transmute(&pdeviceclass), ::core::mem::transmute_copy(&dwsizein), ::core::mem::transmute_copy(&pdeviceconfigin), ::core::mem::transmute_copy(&pdwsizeout), ::core::mem::transmute_copy(&ppdeviceconfigout)).into() @@ -5764,8 +5755,8 @@ impl ITLegacyAddressMediaControl2_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ITLegacyCallMediaControl_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn DetectDigits(&self, digitmode: i32) -> ::windows::core::Result<()>; - fn GenerateDigits(&self, pdigits: &super::super::Foundation::BSTR, digitmode: i32) -> ::windows::core::Result<()>; - fn GetID(&self, pdeviceclass: &super::super::Foundation::BSTR, pdwsize: *mut u32, ppdeviceid: *mut *mut u8) -> ::windows::core::Result<()>; + fn GenerateDigits(&self, pdigits: &::windows::core::BSTR, digitmode: i32) -> ::windows::core::Result<()>; + fn GetID(&self, pdeviceclass: &::windows::core::BSTR, pdwsize: *mut u32, ppdeviceid: *mut *mut u8) -> ::windows::core::Result<()>; fn SetMediaType(&self, lmediatype: i32) -> ::windows::core::Result<()>; fn MonitorMedia(&self, lmediatype: i32) -> ::windows::core::Result<()>; } @@ -5779,12 +5770,12 @@ impl ITLegacyCallMediaControl_Vtbl { let this = (*this).get_impl(); this.DetectDigits(::core::mem::transmute_copy(&digitmode)).into() } - unsafe extern "system" fn GenerateDigits, Impl: ITLegacyCallMediaControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdigits: ::core::mem::ManuallyDrop, digitmode: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GenerateDigits, Impl: ITLegacyCallMediaControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdigits: ::core::mem::ManuallyDrop<::windows::core::BSTR>, digitmode: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GenerateDigits(::core::mem::transmute(&pdigits), ::core::mem::transmute_copy(&digitmode)).into() } - unsafe extern "system" fn GetID, Impl: ITLegacyCallMediaControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdeviceclass: ::core::mem::ManuallyDrop, pdwsize: *mut u32, ppdeviceid: *mut *mut u8) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetID, Impl: ITLegacyCallMediaControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdeviceclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwsize: *mut u32, ppdeviceid: *mut *mut u8) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetID(::core::mem::transmute(&pdeviceclass), ::core::mem::transmute_copy(&pdwsize), ::core::mem::transmute_copy(&ppdeviceid)).into() @@ -5814,8 +5805,8 @@ impl ITLegacyCallMediaControl_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ITLegacyCallMediaControl2_Impl: Sized + super::super::System::Com::IDispatch_Impl + ITLegacyCallMediaControl_Impl { - fn GenerateDigits2(&self, pdigits: &super::super::Foundation::BSTR, digitmode: i32, lduration: i32) -> ::windows::core::Result<()>; - fn GatherDigits(&self, digitmode: i32, lnumdigits: i32, pterminationdigits: &super::super::Foundation::BSTR, lfirstdigittimeout: i32, linterdigittimeout: i32) -> ::windows::core::Result<()>; + fn GenerateDigits2(&self, pdigits: &::windows::core::BSTR, digitmode: i32, lduration: i32) -> ::windows::core::Result<()>; + fn GatherDigits(&self, digitmode: i32, lnumdigits: i32, pterminationdigits: &::windows::core::BSTR, lfirstdigittimeout: i32, linterdigittimeout: i32) -> ::windows::core::Result<()>; fn DetectTones(&self, ptonelist: *const TAPI_DETECTTONE, lnumtones: i32) -> ::windows::core::Result<()>; fn DetectTonesByCollection(&self, pdetecttonecollection: &::core::option::Option) -> ::windows::core::Result<()>; fn GenerateTone(&self, tonemode: TAPI_TONEMODE, lduration: i32) -> ::windows::core::Result<()>; @@ -5823,19 +5814,19 @@ pub trait ITLegacyCallMediaControl2_Impl: Sized + super::super::System::Com::IDi fn GenerateCustomTonesByCollection(&self, pcustomtonecollection: &::core::option::Option, lduration: i32) -> ::windows::core::Result<()>; fn CreateDetectToneObject(&self) -> ::windows::core::Result; fn CreateCustomToneObject(&self) -> ::windows::core::Result; - fn GetIDAsVariant(&self, bstrdeviceclass: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetIDAsVariant(&self, bstrdeviceclass: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ITLegacyCallMediaControl2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ITLegacyCallMediaControl2_Vtbl { pub const fn new, Impl: ITLegacyCallMediaControl2_Impl, const OFFSET: isize>() -> ITLegacyCallMediaControl2_Vtbl { - unsafe extern "system" fn GenerateDigits2, Impl: ITLegacyCallMediaControl2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdigits: ::core::mem::ManuallyDrop, digitmode: i32, lduration: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GenerateDigits2, Impl: ITLegacyCallMediaControl2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdigits: ::core::mem::ManuallyDrop<::windows::core::BSTR>, digitmode: i32, lduration: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GenerateDigits2(::core::mem::transmute(&pdigits), ::core::mem::transmute_copy(&digitmode), ::core::mem::transmute_copy(&lduration)).into() } - unsafe extern "system" fn GatherDigits, Impl: ITLegacyCallMediaControl2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, digitmode: i32, lnumdigits: i32, pterminationdigits: ::core::mem::ManuallyDrop, lfirstdigittimeout: i32, linterdigittimeout: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GatherDigits, Impl: ITLegacyCallMediaControl2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, digitmode: i32, lnumdigits: i32, pterminationdigits: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lfirstdigittimeout: i32, linterdigittimeout: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GatherDigits(::core::mem::transmute_copy(&digitmode), ::core::mem::transmute_copy(&lnumdigits), ::core::mem::transmute(&pterminationdigits), ::core::mem::transmute_copy(&lfirstdigittimeout), ::core::mem::transmute_copy(&linterdigittimeout)).into() @@ -5887,7 +5878,7 @@ impl ITLegacyCallMediaControl2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetIDAsVariant, Impl: ITLegacyCallMediaControl2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdeviceclass: ::core::mem::ManuallyDrop, pvardeviceid: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetIDAsVariant, Impl: ITLegacyCallMediaControl2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdeviceclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvardeviceid: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetIDAsVariant(::core::mem::transmute(&bstrdeviceclass)) { @@ -5949,12 +5940,12 @@ pub trait ITLocationInfo_Impl: Sized + super::super::System::Com::IDispatch_Impl fn CountryID(&self) -> ::windows::core::Result; fn Options(&self) -> ::windows::core::Result; fn PreferredCardID(&self) -> ::windows::core::Result; - fn LocationName(&self) -> ::windows::core::Result; - fn CityCode(&self) -> ::windows::core::Result; - fn LocalAccessCode(&self) -> ::windows::core::Result; - fn LongDistanceAccessCode(&self) -> ::windows::core::Result; - fn TollPrefixList(&self) -> ::windows::core::Result; - fn CancelCallWaitingCode(&self) -> ::windows::core::Result; + fn LocationName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CityCode(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn LocalAccessCode(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn LongDistanceAccessCode(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn TollPrefixList(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CancelCallWaitingCode(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ITLocationInfo {} @@ -6016,7 +6007,7 @@ impl ITLocationInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn LocationName, Impl: ITLocationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pplocationname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LocationName, Impl: ITLocationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pplocationname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LocationName() { @@ -6027,7 +6018,7 @@ impl ITLocationInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CityCode, Impl: ITLocationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppcode: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CityCode, Impl: ITLocationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppcode: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CityCode() { @@ -6038,7 +6029,7 @@ impl ITLocationInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn LocalAccessCode, Impl: ITLocationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppcode: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LocalAccessCode, Impl: ITLocationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppcode: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LocalAccessCode() { @@ -6049,7 +6040,7 @@ impl ITLocationInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn LongDistanceAccessCode, Impl: ITLocationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppcode: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LongDistanceAccessCode, Impl: ITLocationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppcode: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LongDistanceAccessCode() { @@ -6060,7 +6051,7 @@ impl ITLocationInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn TollPrefixList, Impl: ITLocationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pptolllist: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TollPrefixList, Impl: ITLocationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pptolllist: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TollPrefixList() { @@ -6071,7 +6062,7 @@ impl ITLocationInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CancelCallWaitingCode, Impl: ITLocationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppcode: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CancelCallWaitingCode, Impl: ITLocationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppcode: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CancelCallWaitingCode() { @@ -6250,20 +6241,20 @@ impl ITMediaPlayback_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ITMediaRecord_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn SetFileName(&self, bstrfilename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn FileName(&self) -> ::windows::core::Result; + fn SetFileName(&self, bstrfilename: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn FileName(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ITMediaRecord {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ITMediaRecord_Vtbl { pub const fn new, Impl: ITMediaRecord_Impl, const OFFSET: isize>() -> ITMediaRecord_Vtbl { - unsafe extern "system" fn SetFileName, Impl: ITMediaRecord_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetFileName, Impl: ITMediaRecord_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetFileName(::core::mem::transmute(&bstrfilename)).into() } - unsafe extern "system" fn FileName, Impl: ITMediaRecord_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfilename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FileName, Impl: ITMediaRecord_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfilename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FileName() { @@ -6421,15 +6412,15 @@ pub trait ITPhone_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn Addresses(&self) -> ::windows::core::Result; fn EnumerateAddresses(&self) -> ::windows::core::Result; fn get_PhoneCapsLong(&self, pclcap: PHONECAPS_LONG) -> ::windows::core::Result; - fn get_PhoneCapsString(&self, pcscap: PHONECAPS_STRING) -> ::windows::core::Result; + fn get_PhoneCapsString(&self, pcscap: PHONECAPS_STRING) -> ::windows::core::Result<::windows::core::BSTR>; fn get_Terminals(&self, paddress: &::core::option::Option) -> ::windows::core::Result; fn EnumerateTerminals(&self, paddress: &::core::option::Option) -> ::windows::core::Result; fn get_ButtonMode(&self, lbuttonid: i32) -> ::windows::core::Result; fn put_ButtonMode(&self, lbuttonid: i32, buttonmode: PHONE_BUTTON_MODE) -> ::windows::core::Result<()>; fn get_ButtonFunction(&self, lbuttonid: i32) -> ::windows::core::Result; fn put_ButtonFunction(&self, lbuttonid: i32, buttonfunction: PHONE_BUTTON_FUNCTION) -> ::windows::core::Result<()>; - fn get_ButtonText(&self, lbuttonid: i32) -> ::windows::core::Result; - fn put_ButtonText(&self, lbuttonid: i32, bstrbuttontext: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn get_ButtonText(&self, lbuttonid: i32) -> ::windows::core::Result<::windows::core::BSTR>; + fn put_ButtonText(&self, lbuttonid: i32, bstrbuttontext: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn get_ButtonState(&self, lbuttonid: i32) -> ::windows::core::Result; fn get_HookSwitchState(&self, hookswitchdevice: PHONE_HOOK_SWITCH_DEVICE) -> ::windows::core::Result; fn put_HookSwitchState(&self, hookswitchdevice: PHONE_HOOK_SWITCH_DEVICE, hookswitchstate: PHONE_HOOK_SWITCH_STATE) -> ::windows::core::Result<()>; @@ -6442,8 +6433,8 @@ pub trait ITPhone_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn get_PhoneCapsBuffer(&self, pcbcaps: PHONECAPS_BUFFER) -> ::windows::core::Result; fn get_LampMode(&self, llampid: i32) -> ::windows::core::Result; fn put_LampMode(&self, llampid: i32, lampmode: PHONE_LAMP_MODE) -> ::windows::core::Result<()>; - fn Display(&self) -> ::windows::core::Result; - fn SetDisplay(&self, lrow: i32, lcolumn: i32, bstrdisplay: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Display(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDisplay(&self, lrow: i32, lcolumn: i32, bstrdisplay: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn PreferredAddresses(&self) -> ::windows::core::Result; fn EnumeratePreferredAddresses(&self) -> ::windows::core::Result; fn DeviceSpecific(&self, pparams: *const u8, dwsize: u32) -> ::windows::core::Result<()>; @@ -6498,7 +6489,7 @@ impl ITPhone_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_PhoneCapsString, Impl: ITPhone_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcscap: PHONECAPS_STRING, ppcapability: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_PhoneCapsString, Impl: ITPhone_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcscap: PHONECAPS_STRING, ppcapability: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_PhoneCapsString(::core::mem::transmute_copy(&pcscap)) { @@ -6563,7 +6554,7 @@ impl ITPhone_Vtbl { let this = (*this).get_impl(); this.put_ButtonFunction(::core::mem::transmute_copy(&lbuttonid), ::core::mem::transmute_copy(&buttonfunction)).into() } - unsafe extern "system" fn get_ButtonText, Impl: ITPhone_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lbuttonid: i32, ppbuttontext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_ButtonText, Impl: ITPhone_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lbuttonid: i32, ppbuttontext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_ButtonText(::core::mem::transmute_copy(&lbuttonid)) { @@ -6574,7 +6565,7 @@ impl ITPhone_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn put_ButtonText, Impl: ITPhone_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lbuttonid: i32, bstrbuttontext: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn put_ButtonText, Impl: ITPhone_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lbuttonid: i32, bstrbuttontext: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.put_ButtonText(::core::mem::transmute_copy(&lbuttonid), ::core::mem::transmute(&bstrbuttontext)).into() @@ -6681,7 +6672,7 @@ impl ITPhone_Vtbl { let this = (*this).get_impl(); this.put_LampMode(::core::mem::transmute_copy(&llampid), ::core::mem::transmute_copy(&lampmode)).into() } - unsafe extern "system" fn Display, Impl: ITPhone_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdisplay: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Display, Impl: ITPhone_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdisplay: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Display() { @@ -6692,7 +6683,7 @@ impl ITPhone_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDisplay, Impl: ITPhone_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lrow: i32, lcolumn: i32, bstrdisplay: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDisplay, Impl: ITPhone_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lrow: i32, lcolumn: i32, bstrdisplay: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDisplay(::core::mem::transmute_copy(&lrow), ::core::mem::transmute_copy(&lcolumn), ::core::mem::transmute(&bstrdisplay)).into() @@ -6858,7 +6849,7 @@ pub trait ITPhoneEvent_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn HookSwitchDevice(&self) -> ::windows::core::Result; fn RingMode(&self) -> ::windows::core::Result; fn ButtonLampId(&self) -> ::windows::core::Result; - fn NumberGathered(&self) -> ::windows::core::Result; + fn NumberGathered(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Call(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -6943,7 +6934,7 @@ impl ITPhoneEvent_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn NumberGathered, Impl: ITPhoneEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppnumber: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn NumberGathered, Impl: ITPhoneEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppnumber: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.NumberGathered() { @@ -6984,11 +6975,11 @@ impl ITPhoneEvent_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ITPluggableTerminalClassInfo_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; - fn Company(&self) -> ::windows::core::Result; - fn Version(&self) -> ::windows::core::Result; - fn TerminalClass(&self) -> ::windows::core::Result; - fn CLSID(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Company(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Version(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn TerminalClass(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CLSID(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Direction(&self) -> ::windows::core::Result; fn MediaTypes(&self) -> ::windows::core::Result; } @@ -6997,7 +6988,7 @@ impl ::windows::core::RuntimeName for ITPluggableTerminalClassInfo {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ITPluggableTerminalClassInfo_Vtbl { pub const fn new, Impl: ITPluggableTerminalClassInfo_Impl, const OFFSET: isize>() -> ITPluggableTerminalClassInfo_Vtbl { - unsafe extern "system" fn Name, Impl: ITPluggableTerminalClassInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: ITPluggableTerminalClassInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -7008,7 +6999,7 @@ impl ITPluggableTerminalClassInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Company, Impl: ITPluggableTerminalClassInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcompany: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Company, Impl: ITPluggableTerminalClassInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcompany: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Company() { @@ -7019,7 +7010,7 @@ impl ITPluggableTerminalClassInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Version, Impl: ITPluggableTerminalClassInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pversion: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Version, Impl: ITPluggableTerminalClassInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pversion: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Version() { @@ -7030,7 +7021,7 @@ impl ITPluggableTerminalClassInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn TerminalClass, Impl: ITPluggableTerminalClassInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pterminalclass: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TerminalClass, Impl: ITPluggableTerminalClassInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pterminalclass: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TerminalClass() { @@ -7041,7 +7032,7 @@ impl ITPluggableTerminalClassInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CLSID, Impl: ITPluggableTerminalClassInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pclsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CLSID, Impl: ITPluggableTerminalClassInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pclsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CLSID() { @@ -7138,15 +7129,15 @@ impl ITPluggableTerminalEventSinkRegistration_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ITPluggableTerminalSuperclassInfo_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; - fn CLSID(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CLSID(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ITPluggableTerminalSuperclassInfo {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ITPluggableTerminalSuperclassInfo_Vtbl { pub const fn new, Impl: ITPluggableTerminalSuperclassInfo_Impl, const OFFSET: isize>() -> ITPluggableTerminalSuperclassInfo_Vtbl { - unsafe extern "system" fn Name, Impl: ITPluggableTerminalSuperclassInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: ITPluggableTerminalSuperclassInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -7157,7 +7148,7 @@ impl ITPluggableTerminalSuperclassInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CLSID, Impl: ITPluggableTerminalSuperclassInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pclsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CLSID, Impl: ITPluggableTerminalSuperclassInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pclsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CLSID() { @@ -7327,7 +7318,7 @@ pub trait ITQueue_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn CurrentLongestWaitTime(&self) -> ::windows::core::Result; fn AverageWaitTime(&self) -> ::windows::core::Result; fn FinalDisposition(&self) -> ::windows::core::Result; - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ITQueue {} @@ -7449,7 +7440,7 @@ impl ITQueue_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Name, Impl: ITQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: ITQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -7526,8 +7517,8 @@ impl ITQueueEvent_Vtbl { pub trait ITRendezvous_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn DefaultDirectories(&self) -> ::windows::core::Result; fn EnumerateDefaultDirectories(&self) -> ::windows::core::Result; - fn CreateDirectory(&self, directorytype: DIRECTORY_TYPE, pname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn CreateDirectoryObject(&self, directoryobjecttype: DIRECTORY_OBJECT_TYPE, pname: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn CreateDirectory(&self, directorytype: DIRECTORY_TYPE, pname: &::windows::core::BSTR) -> ::windows::core::Result; + fn CreateDirectoryObject(&self, directoryobjecttype: DIRECTORY_OBJECT_TYPE, pname: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ITRendezvous {} @@ -7556,7 +7547,7 @@ impl ITRendezvous_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateDirectory, Impl: ITRendezvous_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, directorytype: DIRECTORY_TYPE, pname: ::core::mem::ManuallyDrop, ppdir: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateDirectory, Impl: ITRendezvous_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, directorytype: DIRECTORY_TYPE, pname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppdir: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateDirectory(::core::mem::transmute_copy(&directorytype), ::core::mem::transmute(&pname)) { @@ -7567,7 +7558,7 @@ impl ITRendezvous_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateDirectoryObject, Impl: ITRendezvous_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, directoryobjecttype: DIRECTORY_OBJECT_TYPE, pname: ::core::mem::ManuallyDrop, ppdirectoryobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateDirectoryObject, Impl: ITRendezvous_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, directoryobjecttype: DIRECTORY_OBJECT_TYPE, pname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppdirectoryobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateDirectoryObject(::core::mem::transmute_copy(&directoryobjecttype), ::core::mem::transmute(&pname)) { @@ -7592,14 +7583,14 @@ impl ITRendezvous_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ITRequest_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn MakeCall(&self, pdestaddress: &super::super::Foundation::BSTR, pappname: &super::super::Foundation::BSTR, pcalledparty: &super::super::Foundation::BSTR, pcomment: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn MakeCall(&self, pdestaddress: &::windows::core::BSTR, pappname: &::windows::core::BSTR, pcalledparty: &::windows::core::BSTR, pcomment: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ITRequest {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ITRequest_Vtbl { pub const fn new, Impl: ITRequest_Impl, const OFFSET: isize>() -> ITRequest_Vtbl { - unsafe extern "system" fn MakeCall, Impl: ITRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdestaddress: ::core::mem::ManuallyDrop, pappname: ::core::mem::ManuallyDrop, pcalledparty: ::core::mem::ManuallyDrop, pcomment: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn MakeCall, Impl: ITRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdestaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pappname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcalledparty: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcomment: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.MakeCall(::core::mem::transmute(&pdestaddress), ::core::mem::transmute(&pappname), ::core::mem::transmute(&pcalledparty), ::core::mem::transmute(&pcomment)).into() @@ -7614,10 +7605,10 @@ impl ITRequest_Vtbl { pub trait ITRequestEvent_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn RegistrationInstance(&self) -> ::windows::core::Result; fn RequestMode(&self) -> ::windows::core::Result; - fn DestAddress(&self) -> ::windows::core::Result; - fn AppName(&self) -> ::windows::core::Result; - fn CalledParty(&self) -> ::windows::core::Result; - fn Comment(&self) -> ::windows::core::Result; + fn DestAddress(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn AppName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CalledParty(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Comment(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ITRequestEvent {} @@ -7646,7 +7637,7 @@ impl ITRequestEvent_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DestAddress, Impl: ITRequestEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppdestaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DestAddress, Impl: ITRequestEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppdestaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DestAddress() { @@ -7657,7 +7648,7 @@ impl ITRequestEvent_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AppName, Impl: ITRequestEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppappname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn AppName, Impl: ITRequestEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppappname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AppName() { @@ -7668,7 +7659,7 @@ impl ITRequestEvent_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CalledParty, Impl: ITRequestEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppcalledparty: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CalledParty, Impl: ITRequestEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppcalledparty: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CalledParty() { @@ -7679,7 +7670,7 @@ impl ITRequestEvent_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Comment, Impl: ITRequestEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppcomment: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Comment, Impl: ITRequestEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppcomment: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Comment() { @@ -7870,7 +7861,7 @@ impl ITStaticAudioTerminal_Vtbl { pub trait ITStream_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn MediaType(&self) -> ::windows::core::Result; fn Direction(&self) -> ::windows::core::Result; - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn StartStream(&self) -> ::windows::core::Result<()>; fn PauseStream(&self) -> ::windows::core::Result<()>; fn StopStream(&self) -> ::windows::core::Result<()>; @@ -7906,7 +7897,7 @@ impl ITStream_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Name, Impl: ITStream_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: ITStream_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -8210,8 +8201,8 @@ pub trait ITTAPI_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn EnumeratePrivateTAPIObjects(&self) -> ::windows::core::Result; fn PrivateTAPIObjects(&self) -> ::windows::core::Result; fn RegisterRequestRecipient(&self, lregistrationinstance: i32, lrequestmode: i32, fenable: i16) -> ::windows::core::Result<()>; - fn SetAssistedTelephonyPriority(&self, pappfilename: &super::super::Foundation::BSTR, fpriority: i16) -> ::windows::core::Result<()>; - fn SetApplicationPriority(&self, pappfilename: &super::super::Foundation::BSTR, lmediatype: i32, fpriority: i16) -> ::windows::core::Result<()>; + fn SetAssistedTelephonyPriority(&self, pappfilename: &::windows::core::BSTR, fpriority: i16) -> ::windows::core::Result<()>; + fn SetApplicationPriority(&self, pappfilename: &::windows::core::BSTR, lmediatype: i32, fpriority: i16) -> ::windows::core::Result<()>; fn SetEventFilter(&self, lfiltermask: i32) -> ::windows::core::Result<()>; fn EventFilter(&self) -> ::windows::core::Result; } @@ -8322,12 +8313,12 @@ impl ITTAPI_Vtbl { let this = (*this).get_impl(); this.RegisterRequestRecipient(::core::mem::transmute_copy(&lregistrationinstance), ::core::mem::transmute_copy(&lrequestmode), ::core::mem::transmute_copy(&fenable)).into() } - unsafe extern "system" fn SetAssistedTelephonyPriority, Impl: ITTAPI_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pappfilename: ::core::mem::ManuallyDrop, fpriority: i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetAssistedTelephonyPriority, Impl: ITTAPI_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pappfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fpriority: i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetAssistedTelephonyPriority(::core::mem::transmute(&pappfilename), ::core::mem::transmute_copy(&fpriority)).into() } - unsafe extern "system" fn SetApplicationPriority, Impl: ITTAPI_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pappfilename: ::core::mem::ManuallyDrop, lmediatype: i32, fpriority: i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetApplicationPriority, Impl: ITTAPI_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pappfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lmediatype: i32, fpriority: i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetApplicationPriority(::core::mem::transmute(&pappfilename), ::core::mem::transmute_copy(&lmediatype), ::core::mem::transmute_copy(&fpriority)).into() @@ -8653,10 +8644,10 @@ impl ITTTSTerminalEvent_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ITTerminal_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn State(&self) -> ::windows::core::Result; fn TerminalType(&self) -> ::windows::core::Result; - fn TerminalClass(&self) -> ::windows::core::Result; + fn TerminalClass(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn MediaType(&self) -> ::windows::core::Result; fn Direction(&self) -> ::windows::core::Result; } @@ -8665,7 +8656,7 @@ impl ::windows::core::RuntimeName for ITTerminal {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ITTerminal_Vtbl { pub const fn new, Impl: ITTerminal_Impl, const OFFSET: isize>() -> ITTerminal_Vtbl { - unsafe extern "system" fn Name, Impl: ITTerminal_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: ITTerminal_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -8698,7 +8689,7 @@ impl ITTerminal_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn TerminalClass, Impl: ITTerminal_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppterminalclass: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TerminalClass, Impl: ITTerminal_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppterminalclass: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TerminalClass() { @@ -8751,7 +8742,7 @@ pub trait ITTerminalSupport_Impl: Sized + super::super::System::Com::IDispatch_I fn EnumerateStaticTerminals(&self) -> ::windows::core::Result; fn DynamicTerminalClasses(&self) -> ::windows::core::Result; fn EnumerateDynamicTerminalClasses(&self) -> ::windows::core::Result; - fn CreateTerminal(&self, pterminalclass: &super::super::Foundation::BSTR, lmediatype: i32, direction: TERMINAL_DIRECTION) -> ::windows::core::Result; + fn CreateTerminal(&self, pterminalclass: &::windows::core::BSTR, lmediatype: i32, direction: TERMINAL_DIRECTION) -> ::windows::core::Result; fn GetDefaultStaticTerminal(&self, lmediatype: i32, direction: TERMINAL_DIRECTION) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -8803,7 +8794,7 @@ impl ITTerminalSupport_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateTerminal, Impl: ITTerminalSupport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pterminalclass: ::core::mem::ManuallyDrop, lmediatype: i32, direction: TERMINAL_DIRECTION, ppterminal: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateTerminal, Impl: ITTerminalSupport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pterminalclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lmediatype: i32, direction: TERMINAL_DIRECTION, ppterminal: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateTerminal(::core::mem::transmute(&pterminalclass), ::core::mem::transmute_copy(&lmediatype), ::core::mem::transmute_copy(&direction)) { @@ -8843,7 +8834,7 @@ impl ITTerminalSupport_Vtbl { pub trait ITTerminalSupport2_Impl: Sized + super::super::System::Com::IDispatch_Impl + ITTerminalSupport_Impl { fn PluggableSuperclasses(&self) -> ::windows::core::Result; fn EnumeratePluggableSuperclasses(&self) -> ::windows::core::Result; - fn get_PluggableTerminalClasses(&self, bstrterminalsuperclass: &super::super::Foundation::BSTR, lmediatype: i32) -> ::windows::core::Result; + fn get_PluggableTerminalClasses(&self, bstrterminalsuperclass: &::windows::core::BSTR, lmediatype: i32) -> ::windows::core::Result; fn EnumeratePluggableTerminalClasses(&self, iidterminalsuperclass: &::windows::core::GUID, lmediatype: i32) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -8873,7 +8864,7 @@ impl ITTerminalSupport2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_PluggableTerminalClasses, Impl: ITTerminalSupport2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrterminalsuperclass: ::core::mem::ManuallyDrop, lmediatype: i32, pvariant: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_PluggableTerminalClasses, Impl: ITTerminalSupport2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrterminalsuperclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lmediatype: i32, pvariant: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_PluggableTerminalClasses(::core::mem::transmute(&bstrterminalsuperclass), ::core::mem::transmute_copy(&lmediatype)) { diff --git a/crates/libs/windows/src/Windows/Win32/Devices/Tapi/mod.rs b/crates/libs/windows/src/Windows/Win32/Devices/Tapi/mod.rs index da7df9dbb0..b94b1c1924 100644 --- a/crates/libs/windows/src/Windows/Win32/Devices/Tapi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Devices/Tapi/mod.rs @@ -3017,9 +3017,7 @@ pub struct IEnumAgentSession_Vtbl { #[repr(transparent)] pub struct IEnumBstr(::windows::core::IUnknown); impl IEnumBstr { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Next(&self, ppstrings: &mut [super::super::Foundation::BSTR], pceltfetched: ::core::option::Option<&mut u32>) -> ::windows::core::Result<()> { + pub unsafe fn Next(&self, ppstrings: &mut [::windows::core::BSTR], pceltfetched: ::core::option::Option<&mut u32>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Next)(::windows::core::Interface::as_raw(self), ppstrings.len() as _, ::core::mem::transmute(ppstrings.as_ptr()), ::core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Reset(&self) -> ::windows::core::Result<()> { @@ -3072,10 +3070,7 @@ unsafe impl ::windows::core::Interface for IEnumBstr { #[doc(hidden)] pub struct IEnumBstr_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32, ppstrings: *mut super::super::Foundation::BSTR, pceltfetched: *mut u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Next: usize, + pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32, ppstrings: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pceltfetched: *mut u32) -> ::windows::core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows::core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -3285,9 +3280,7 @@ pub struct IEnumCallingCard_Vtbl { #[repr(transparent)] pub struct IEnumDialableAddrs(::windows::core::IUnknown); impl IEnumDialableAddrs { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Next(&self, ppelements: &mut [super::super::Foundation::BSTR], pcfetched: ::core::option::Option<&mut u32>) -> ::windows::core::Result<()> { + pub unsafe fn Next(&self, ppelements: &mut [::windows::core::BSTR], pcfetched: ::core::option::Option<&mut u32>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Next)(::windows::core::Interface::as_raw(self), ppelements.len() as _, ::core::mem::transmute(ppelements.as_ptr()), ::core::mem::transmute(pcfetched)).ok() } pub unsafe fn Reset(&self) -> ::windows::core::Result<()> { @@ -3340,10 +3333,7 @@ unsafe impl ::windows::core::Interface for IEnumDialableAddrs { #[doc(hidden)] pub struct IEnumDialableAddrs_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32, ppelements: *mut super::super::Foundation::BSTR, pcfetched: *mut u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Next: usize, + pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32, ppelements: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcfetched: *mut u32) -> ::windows::core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows::core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -4201,14 +4191,12 @@ impl IMcastAddressAllocation { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateLeaseInfoFromVariant<'a, P0, P1, P2>(&self, leasestarttime: f64, leasestoptime: f64, vaddresses: P0, prequestid: P1, pserveraddress: P2) -> ::windows::core::Result + pub unsafe fn CreateLeaseInfoFromVariant<'a, P0>(&self, leasestarttime: f64, leasestoptime: f64, vaddresses: P0, prequestid: &::windows::core::BSTR, pserveraddress: &::windows::core::BSTR) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateLeaseInfoFromVariant)(::windows::core::Interface::as_raw(self), leasestarttime, leasestoptime, vaddresses.into().abi(), prequestid.into().abi(), pserveraddress.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateLeaseInfoFromVariant)(::windows::core::Interface::as_raw(self), leasestarttime, leasestoptime, vaddresses.into().abi(), ::core::mem::transmute_copy(prequestid), ::core::mem::transmute_copy(pserveraddress), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -4299,7 +4287,7 @@ pub struct IMcastAddressAllocation_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateLeaseInfo: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub CreateLeaseInfoFromVariant: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, leasestarttime: f64, leasestoptime: f64, vaddresses: ::core::mem::ManuallyDrop, prequestid: ::core::mem::ManuallyDrop, pserveraddress: ::core::mem::ManuallyDrop, ppreleaserequest: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub CreateLeaseInfoFromVariant: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, leasestarttime: f64, leasestoptime: f64, vaddresses: ::core::mem::ManuallyDrop, prequestid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pserveraddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppreleaserequest: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] CreateLeaseInfoFromVariant: usize, } @@ -4309,11 +4297,9 @@ pub struct IMcastAddressAllocation_Vtbl { pub struct IMcastLeaseInfo(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMcastLeaseInfo { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RequestID(&self) -> ::windows::core::Result { + pub unsafe fn RequestID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RequestID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RequestID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn LeaseStartTime(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4333,11 +4319,9 @@ impl IMcastLeaseInfo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).AddressCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ServerAddress(&self) -> ::windows::core::Result { + pub unsafe fn ServerAddress(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ServerAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ServerAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn TTL(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4420,19 +4404,13 @@ unsafe impl ::windows::core::Interface for IMcastLeaseInfo { #[doc(hidden)] pub struct IMcastLeaseInfo_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub RequestID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprequestid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RequestID: usize, + pub RequestID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprequestid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub LeaseStartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptime: *mut f64) -> ::windows::core::HRESULT, pub SetLeaseStartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, time: f64) -> ::windows::core::HRESULT, pub LeaseStopTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptime: *mut f64) -> ::windows::core::HRESULT, pub SetLeaseStopTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, time: f64) -> ::windows::core::HRESULT, pub AddressCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcount: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ServerAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ServerAddress: usize, + pub ServerAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub TTL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pttl: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub Addresses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvariant: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, @@ -4458,11 +4436,9 @@ impl IMcastScope { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).InterfaceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ScopeDescription(&self) -> ::windows::core::Result { + pub unsafe fn ScopeDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ScopeDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ScopeDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn TTL(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4538,10 +4514,7 @@ pub struct IMcastScope_Vtbl { pub ScopeID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pid: *mut i32) -> ::windows::core::HRESULT, pub ServerID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pid: *mut i32) -> ::windows::core::HRESULT, pub InterfaceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pid: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ScopeDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ScopeDescription: usize, + pub ScopeDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub TTL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pttl: *mut i32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_Tapi\"`, `\"Win32_System_Com\"`*"] @@ -4550,11 +4523,9 @@ pub struct IMcastScope_Vtbl { pub struct ITACDGroup(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ITACDGroup { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn EnumerateQueues(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4633,10 +4604,7 @@ unsafe impl ::windows::core::Interface for ITACDGroup { #[doc(hidden)] pub struct ITACDGroup_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub EnumerateQueues: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumqueue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub Queues: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvariant: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, @@ -4905,17 +4873,13 @@ impl ITAddress { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).State)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddressName(&self) -> ::windows::core::Result { + pub unsafe fn AddressName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AddressName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AddressName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ServiceProviderName(&self) -> ::windows::core::Result { + pub unsafe fn ServiceProviderName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ServiceProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ServiceProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4923,14 +4887,11 @@ impl ITAddress { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).TAPIObject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateCall<'a, P0>(&self, pdestaddress: P0, laddresstype: i32, lmediatypes: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateCall(&self, pdestaddress: &::windows::core::BSTR, laddresstype: i32, lmediatypes: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateCall)(::windows::core::Interface::as_raw(self), pdestaddress.into().abi(), laddresstype, lmediatypes, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateCall)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pdestaddress), laddresstype, lmediatypes, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -4942,11 +4903,9 @@ impl ITAddress { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).EnumerateCalls)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DialableAddress(&self) -> ::windows::core::Result { + pub unsafe fn DialableAddress(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DialableAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DialableAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5051,31 +5010,22 @@ unsafe impl ::windows::core::Interface for ITAddress { pub struct ITAddress_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, paddressstate: *mut ADDRESS_STATE) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub AddressName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddressName: usize, - #[cfg(feature = "Win32_Foundation")] - pub ServiceProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ServiceProviderName: usize, + pub AddressName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ServiceProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub TAPIObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pptapiobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] TAPIObject: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreateCall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdestaddress: ::core::mem::ManuallyDrop, laddresstype: i32, lmediatypes: i32, ppcall: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreateCall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdestaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, laddresstype: i32, lmediatypes: i32, ppcall: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreateCall: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub Calls: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvariant: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Calls: usize, pub EnumerateCalls: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcallenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub DialableAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdialableaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DialableAddress: usize, + pub DialableAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdialableaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub CreateForwardInfoObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppforwardinfo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -5103,17 +5053,13 @@ impl ITAddress2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.State)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddressName(&self) -> ::windows::core::Result { + pub unsafe fn AddressName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.AddressName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.AddressName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ServiceProviderName(&self) -> ::windows::core::Result { + pub unsafe fn ServiceProviderName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ServiceProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ServiceProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5121,14 +5067,11 @@ impl ITAddress2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.TAPIObject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateCall<'a, P0>(&self, pdestaddress: P0, laddresstype: i32, lmediatypes: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateCall(&self, pdestaddress: &::windows::core::BSTR, laddresstype: i32, lmediatypes: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CreateCall)(::windows::core::Interface::as_raw(self), pdestaddress.into().abi(), laddresstype, lmediatypes, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CreateCall)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pdestaddress), laddresstype, lmediatypes, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -5140,11 +5083,9 @@ impl ITAddress2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.EnumerateCalls)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DialableAddress(&self) -> ::windows::core::Result { + pub unsafe fn DialableAddress(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.DialableAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.DialableAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5359,11 +5300,9 @@ impl ITAddressCapabilities { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).get_AddressCapability)(::windows::core::Interface::as_raw(self), addresscap, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_AddressCapabilityString(&self, addresscapstring: ADDRESS_CAPABILITY_STRING) -> ::windows::core::Result { + pub unsafe fn get_AddressCapabilityString(&self, addresscapstring: ADDRESS_CAPABILITY_STRING) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_AddressCapabilityString)(::windows::core::Interface::as_raw(self), addresscapstring, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_AddressCapabilityString)(::windows::core::Interface::as_raw(self), addresscapstring, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -5463,10 +5402,7 @@ unsafe impl ::windows::core::Interface for ITAddressCapabilities { pub struct ITAddressCapabilities_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub get_AddressCapability: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, addresscap: ADDRESS_CAPABILITY, plcapability: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub get_AddressCapabilityString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, addresscapstring: ADDRESS_CAPABILITY_STRING, ppcapabilitystring: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_AddressCapabilityString: usize, + pub get_AddressCapabilityString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, addresscapstring: ADDRESS_CAPABILITY_STRING, ppcapabilitystring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub CallTreatments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvariant: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -5697,22 +5633,14 @@ pub struct ITAddressEvent_Vtbl { pub struct ITAddressTranslation(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ITAddressTranslation { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn TranslateAddress<'a, P0>(&self, paddresstotranslate: P0, lcard: i32, ltranslateoptions: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn TranslateAddress(&self, paddresstotranslate: &::windows::core::BSTR, lcard: i32, ltranslateoptions: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TranslateAddress)(::windows::core::Interface::as_raw(self), paddresstotranslate.into().abi(), lcard, ltranslateoptions, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TranslateAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(paddresstotranslate), lcard, ltranslateoptions, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TranslateDialog<'a, P0>(&self, hwndowner: isize, paddressin: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).TranslateDialog)(::windows::core::Interface::as_raw(self), hwndowner, paddressin.into().abi()).ok() + pub unsafe fn TranslateDialog(&self, hwndowner: isize, paddressin: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).TranslateDialog)(::windows::core::Interface::as_raw(self), hwndowner, ::core::mem::transmute_copy(paddressin)).ok() } pub unsafe fn EnumerateLocations(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5801,14 +5729,11 @@ unsafe impl ::windows::core::Interface for ITAddressTranslation { #[doc(hidden)] pub struct ITAddressTranslation_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub TranslateAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, paddresstotranslate: ::core::mem::ManuallyDrop, lcard: i32, ltranslateoptions: i32, pptranslated: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub TranslateAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, paddresstotranslate: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lcard: i32, ltranslateoptions: i32, pptranslated: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] TranslateAddress: usize, - #[cfg(feature = "Win32_Foundation")] - pub TranslateDialog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndowner: isize, paddressin: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TranslateDialog: usize, + pub TranslateDialog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndowner: isize, paddressin: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub EnumerateLocations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumlocation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub Locations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvariant: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, @@ -5826,17 +5751,13 @@ pub struct ITAddressTranslation_Vtbl { pub struct ITAddressTranslationInfo(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ITAddressTranslationInfo { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DialableString(&self) -> ::windows::core::Result { + pub unsafe fn DialableString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DialableString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DialableString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisplayableString(&self) -> ::windows::core::Result { + pub unsafe fn DisplayableString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DisplayableString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DisplayableString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CurrentCountryCode(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5917,14 +5838,8 @@ unsafe impl ::windows::core::Interface for ITAddressTranslationInfo { #[doc(hidden)] pub struct ITAddressTranslationInfo_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub DialableString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdialablestring: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DialableString: usize, - #[cfg(feature = "Win32_Foundation")] - pub DisplayableString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdisplayablestring: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DisplayableString: usize, + pub DialableString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdialablestring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DisplayableString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdisplayablestring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub CurrentCountryCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, countrycode: *mut i32) -> ::windows::core::HRESULT, pub DestinationCountryCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, countrycode: *mut i32) -> ::windows::core::HRESULT, pub TranslationResults: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plresults: *mut i32) -> ::windows::core::HRESULT, @@ -5949,28 +5864,23 @@ impl ITAgent { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CreateSession)(::windows::core::Interface::as_raw(self), pacdgroup.into().abi(), paddress.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateSessionWithPIN<'a, P0, P1, P2>(&self, pacdgroup: P0, paddress: P1, ppin: P2) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateSessionWithPIN<'a, P0, P1>(&self, pacdgroup: P0, paddress: P1, ppin: &::windows::core::BSTR) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, ITACDGroup>>, P1: ::std::convert::Into<::windows::core::InParam<'a, ITAddress>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateSessionWithPIN)(::windows::core::Interface::as_raw(self), pacdgroup.into().abi(), paddress.into().abi(), ppin.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateSessionWithPIN)(::windows::core::Interface::as_raw(self), pacdgroup.into().abi(), paddress.into().abi(), ::core::mem::transmute_copy(ppin), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ID(&self) -> ::windows::core::Result { + pub unsafe fn ID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn User(&self) -> ::windows::core::Result { + pub unsafe fn User(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).User)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).User)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetState(&self, agentstate: AGENT_STATE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetState)(::windows::core::Interface::as_raw(self), agentstate).ok() @@ -6094,18 +6004,12 @@ pub struct ITAgent_Vtbl { pub CreateSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pacdgroup: *mut ::core::ffi::c_void, paddress: *mut ::core::ffi::c_void, ppagentsession: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] CreateSession: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreateSessionWithPIN: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pacdgroup: *mut ::core::ffi::c_void, paddress: *mut ::core::ffi::c_void, ppin: ::core::mem::ManuallyDrop, ppagentsession: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreateSessionWithPIN: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pacdgroup: *mut ::core::ffi::c_void, paddress: *mut ::core::ffi::c_void, ppin: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppagentsession: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreateSessionWithPIN: usize, - #[cfg(feature = "Win32_Foundation")] - pub ID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ID: usize, - #[cfg(feature = "Win32_Foundation")] - pub User: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppuser: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - User: usize, + pub ID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub User: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppuser: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, agentstate: AGENT_STATE) -> ::windows::core::HRESULT, pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pagentstate: *mut AGENT_STATE) -> ::windows::core::HRESULT, pub SetMeasurementPeriod: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lperiod: i32) -> ::windows::core::HRESULT, @@ -6220,11 +6124,9 @@ pub struct ITAgentEvent_Vtbl { pub struct ITAgentHandler(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ITAgentHandler { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6232,15 +6134,11 @@ impl ITAgentHandler { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CreateAgent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateAgentWithID<'a, P0, P1>(&self, pid: P0, ppin: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateAgentWithID(&self, pid: &::windows::core::BSTR, ppin: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateAgentWithID)(::windows::core::Interface::as_raw(self), pid.into().abi(), ppin.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateAgentWithID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pid), ::core::mem::transmute_copy(ppin), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn EnumerateACDGroups(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6329,17 +6227,14 @@ unsafe impl ::windows::core::Interface for ITAgentHandler { #[doc(hidden)] pub struct ITAgentHandler_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub CreateAgent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppagent: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] CreateAgent: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreateAgentWithID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pid: ::core::mem::ManuallyDrop, ppin: ::core::mem::ManuallyDrop, ppagent: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreateAgentWithID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppin: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppagent: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreateAgentWithID: usize, pub EnumerateACDGroups: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumacdgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub EnumerateUsableAddresses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumaddress: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -7151,13 +7046,8 @@ impl ITBasicCallControl { pub unsafe fn Hold(&self, fhold: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Hold)(::windows::core::Interface::as_raw(self), fhold).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn HandoffDirect<'a, P0>(&self, papplicationname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).HandoffDirect)(::windows::core::Interface::as_raw(self), papplicationname.into().abi()).ok() + pub unsafe fn HandoffDirect(&self, papplicationname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).HandoffDirect)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(papplicationname)).ok() } pub unsafe fn HandoffIndirect(&self, lmediatype: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).HandoffIndirect)(::windows::core::Interface::as_raw(self), lmediatype).ok() @@ -7178,13 +7068,8 @@ impl ITBasicCallControl { { (::windows::core::Interface::vtable(self).Transfer)(::windows::core::Interface::as_raw(self), pcall.into().abi(), fsync).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BlindTransfer<'a, P0>(&self, pdestaddress: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).BlindTransfer)(::windows::core::Interface::as_raw(self), pdestaddress.into().abi()).ok() + pub unsafe fn BlindTransfer(&self, pdestaddress: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).BlindTransfer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pdestaddress)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7194,19 +7079,12 @@ impl ITBasicCallControl { { (::windows::core::Interface::vtable(self).SwapHold)(::windows::core::Interface::as_raw(self), pcall.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ParkDirect<'a, P0>(&self, pparkaddress: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ParkDirect)(::windows::core::Interface::as_raw(self), pparkaddress.into().abi()).ok() + pub unsafe fn ParkDirect(&self, pparkaddress: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ParkDirect)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pparkaddress)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ParkIndirect(&self) -> ::windows::core::Result { + pub unsafe fn ParkIndirect(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ParkIndirect)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ParkIndirect)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Unpark(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Unpark)(::windows::core::Interface::as_raw(self)).ok() @@ -7214,21 +7092,11 @@ impl ITBasicCallControl { pub unsafe fn SetQOS(&self, lmediatype: i32, servicelevel: QOS_SERVICE_LEVEL) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetQOS)(::windows::core::Interface::as_raw(self), lmediatype, servicelevel).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Pickup<'a, P0>(&self, pgroupid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Pickup)(::windows::core::Interface::as_raw(self), pgroupid.into().abi()).ok() + pub unsafe fn Pickup(&self, pgroupid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Pickup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pgroupid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Dial<'a, P0>(&self, pdestaddress: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Dial)(::windows::core::Interface::as_raw(self), pdestaddress.into().abi()).ok() + pub unsafe fn Dial(&self, pdestaddress: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Dial)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pdestaddress)).ok() } pub unsafe fn Finish(&self, finishmode: FINISH_MODE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Finish)(::windows::core::Interface::as_raw(self), finishmode).ok() @@ -7307,10 +7175,7 @@ pub struct ITBasicCallControl_Vtbl { pub Answer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Disconnect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, code: DISCONNECT_CODE) -> ::windows::core::HRESULT, pub Hold: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fhold: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub HandoffDirect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, papplicationname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - HandoffDirect: usize, + pub HandoffDirect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, papplicationname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub HandoffIndirect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lmediatype: i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Conference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcall: *mut ::core::ffi::c_void, fsync: i16) -> ::windows::core::HRESULT, @@ -7320,32 +7185,17 @@ pub struct ITBasicCallControl_Vtbl { pub Transfer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcall: *mut ::core::ffi::c_void, fsync: i16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Transfer: usize, - #[cfg(feature = "Win32_Foundation")] - pub BlindTransfer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdestaddress: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BlindTransfer: usize, + pub BlindTransfer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdestaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub SwapHold: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcall: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] SwapHold: usize, - #[cfg(feature = "Win32_Foundation")] - pub ParkDirect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pparkaddress: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ParkDirect: usize, - #[cfg(feature = "Win32_Foundation")] - pub ParkIndirect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppnondiraddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ParkIndirect: usize, + pub ParkDirect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pparkaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ParkIndirect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppnondiraddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Unpark: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub SetQOS: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lmediatype: i32, servicelevel: QOS_SERVICE_LEVEL) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Pickup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pgroupid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Pickup: usize, - #[cfg(feature = "Win32_Foundation")] - pub Dial: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdestaddress: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Dial: usize, + pub Pickup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pgroupid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Dial: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdestaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Finish: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, finishmode: FINISH_MODE) -> ::windows::core::HRESULT, pub RemoveFromConference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } @@ -7367,13 +7217,8 @@ impl ITBasicCallControl2 { pub unsafe fn Hold(&self, fhold: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Hold)(::windows::core::Interface::as_raw(self), fhold).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn HandoffDirect<'a, P0>(&self, papplicationname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.HandoffDirect)(::windows::core::Interface::as_raw(self), papplicationname.into().abi()).ok() + pub unsafe fn HandoffDirect(&self, papplicationname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.HandoffDirect)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(papplicationname)).ok() } pub unsafe fn HandoffIndirect(&self, lmediatype: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.HandoffIndirect)(::windows::core::Interface::as_raw(self), lmediatype).ok() @@ -7394,13 +7239,8 @@ impl ITBasicCallControl2 { { (::windows::core::Interface::vtable(self).base__.Transfer)(::windows::core::Interface::as_raw(self), pcall.into().abi(), fsync).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BlindTransfer<'a, P0>(&self, pdestaddress: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.BlindTransfer)(::windows::core::Interface::as_raw(self), pdestaddress.into().abi()).ok() + pub unsafe fn BlindTransfer(&self, pdestaddress: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.BlindTransfer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pdestaddress)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7410,19 +7250,12 @@ impl ITBasicCallControl2 { { (::windows::core::Interface::vtable(self).base__.SwapHold)(::windows::core::Interface::as_raw(self), pcall.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ParkDirect<'a, P0>(&self, pparkaddress: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.ParkDirect)(::windows::core::Interface::as_raw(self), pparkaddress.into().abi()).ok() + pub unsafe fn ParkDirect(&self, pparkaddress: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.ParkDirect)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pparkaddress)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ParkIndirect(&self) -> ::windows::core::Result { + pub unsafe fn ParkIndirect(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ParkIndirect)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ParkIndirect)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Unpark(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Unpark)(::windows::core::Interface::as_raw(self)).ok() @@ -7430,21 +7263,11 @@ impl ITBasicCallControl2 { pub unsafe fn SetQOS(&self, lmediatype: i32, servicelevel: QOS_SERVICE_LEVEL) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetQOS)(::windows::core::Interface::as_raw(self), lmediatype, servicelevel).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Pickup<'a, P0>(&self, pgroupid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.Pickup)(::windows::core::Interface::as_raw(self), pgroupid.into().abi()).ok() + pub unsafe fn Pickup(&self, pgroupid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.Pickup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pgroupid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Dial<'a, P0>(&self, pdestaddress: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.Dial)(::windows::core::Interface::as_raw(self), pdestaddress.into().abi()).ok() + pub unsafe fn Dial(&self, pdestaddress: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.Dial)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pdestaddress)).ok() } pub unsafe fn Finish(&self, finishmode: FINISH_MODE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Finish)(::windows::core::Interface::as_raw(self), finishmode).ok() @@ -7452,14 +7275,11 @@ impl ITBasicCallControl2 { pub unsafe fn RemoveFromConference(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.RemoveFromConference)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn RequestTerminal<'a, P0>(&self, bstrterminalclassguid: P0, lmediatype: i32, direction: TERMINAL_DIRECTION) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn RequestTerminal(&self, bstrterminalclassguid: &::windows::core::BSTR, lmediatype: i32, direction: TERMINAL_DIRECTION) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RequestTerminal)(::windows::core::Interface::as_raw(self), bstrterminalclassguid.into().abi(), lmediatype, direction, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RequestTerminal)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrterminalclassguid), lmediatype, direction, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7562,9 +7382,9 @@ unsafe impl ::windows::core::Interface for ITBasicCallControl2 { #[doc(hidden)] pub struct ITBasicCallControl2_Vtbl { pub base__: ITBasicCallControl_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub RequestTerminal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrterminalclassguid: ::core::mem::ManuallyDrop, lmediatype: i32, direction: TERMINAL_DIRECTION, ppterminal: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub RequestTerminal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrterminalclassguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lmediatype: i32, direction: TERMINAL_DIRECTION, ppterminal: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] RequestTerminal: usize, #[cfg(feature = "Win32_System_Com")] pub SelectTerminalOnCall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pterminal: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -7810,19 +7630,12 @@ impl ITCallInfo { pub unsafe fn put_CallInfoLong(&self, callinfolong: CALLINFO_LONG, lcallinfolongval: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).put_CallInfoLong)(::windows::core::Interface::as_raw(self), callinfolong, lcallinfolongval).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_CallInfoString(&self, callinfostring: CALLINFO_STRING) -> ::windows::core::Result { + pub unsafe fn get_CallInfoString(&self, callinfostring: CALLINFO_STRING) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_CallInfoString)(::windows::core::Interface::as_raw(self), callinfostring, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_CallInfoString)(::windows::core::Interface::as_raw(self), callinfostring, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_CallInfoString<'a, P0>(&self, callinfostring: CALLINFO_STRING, pcallinfostring: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).put_CallInfoString)(::windows::core::Interface::as_raw(self), callinfostring, pcallinfostring.into().abi()).ok() + pub unsafe fn put_CallInfoString(&self, callinfostring: CALLINFO_STRING, pcallinfostring: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).put_CallInfoString)(::windows::core::Interface::as_raw(self), callinfostring, ::core::mem::transmute_copy(pcallinfostring)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -7926,14 +7739,8 @@ pub struct ITCallInfo_Vtbl { CallHub: usize, pub get_CallInfoLong: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, callinfolong: CALLINFO_LONG, plcallinfolongval: *mut i32) -> ::windows::core::HRESULT, pub put_CallInfoLong: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, callinfolong: CALLINFO_LONG, lcallinfolongval: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub get_CallInfoString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, callinfostring: CALLINFO_STRING, ppcallinfostring: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_CallInfoString: usize, - #[cfg(feature = "Win32_Foundation")] - pub put_CallInfoString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, callinfostring: CALLINFO_STRING, pcallinfostring: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - put_CallInfoString: usize, + pub get_CallInfoString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, callinfostring: CALLINFO_STRING, ppcallinfostring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub put_CallInfoString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, callinfostring: CALLINFO_STRING, pcallinfostring: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub get_CallInfoBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, callinfobuffer: CALLINFO_BUFFER, ppcallinfobuffer: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -7979,19 +7786,12 @@ impl ITCallInfo2 { pub unsafe fn put_CallInfoLong(&self, callinfolong: CALLINFO_LONG, lcallinfolongval: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.put_CallInfoLong)(::windows::core::Interface::as_raw(self), callinfolong, lcallinfolongval).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_CallInfoString(&self, callinfostring: CALLINFO_STRING) -> ::windows::core::Result { + pub unsafe fn get_CallInfoString(&self, callinfostring: CALLINFO_STRING) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_CallInfoString)(::windows::core::Interface::as_raw(self), callinfostring, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_CallInfoString)(::windows::core::Interface::as_raw(self), callinfostring, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_CallInfoString<'a, P0>(&self, callinfostring: CALLINFO_STRING, pcallinfostring: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.put_CallInfoString)(::windows::core::Interface::as_raw(self), callinfostring, pcallinfostring.into().abi()).ok() + pub unsafe fn put_CallInfoString(&self, callinfostring: CALLINFO_STRING, pcallinfostring: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.put_CallInfoString)(::windows::core::Interface::as_raw(self), callinfostring, ::core::mem::transmute_copy(pcallinfostring)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -8535,29 +8335,21 @@ impl ITCallingCard { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Options)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CardName(&self) -> ::windows::core::Result { + pub unsafe fn CardName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CardName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CardName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SameAreaDialingRule(&self) -> ::windows::core::Result { + pub unsafe fn SameAreaDialingRule(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SameAreaDialingRule)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SameAreaDialingRule)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LongDistanceDialingRule(&self) -> ::windows::core::Result { + pub unsafe fn LongDistanceDialingRule(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LongDistanceDialingRule)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LongDistanceDialingRule)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InternationalDialingRule(&self) -> ::windows::core::Result { + pub unsafe fn InternationalDialingRule(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).InternationalDialingRule)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).InternationalDialingRule)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -8629,22 +8421,10 @@ pub struct ITCallingCard_Vtbl { pub PermanentCardID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcardid: *mut i32) -> ::windows::core::HRESULT, pub NumberOfDigits: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pldigits: *mut i32) -> ::windows::core::HRESULT, pub Options: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ploptions: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CardName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcardname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CardName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SameAreaDialingRule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprule: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SameAreaDialingRule: usize, - #[cfg(feature = "Win32_Foundation")] - pub LongDistanceDialingRule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprule: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LongDistanceDialingRule: usize, - #[cfg(feature = "Win32_Foundation")] - pub InternationalDialingRule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprule: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InternationalDialingRule: usize, + pub CardName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcardname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SameAreaDialingRule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprule: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub LongDistanceDialingRule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprule: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub InternationalDialingRule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprule: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_Tapi\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9285,11 +9065,9 @@ impl ITDigitsGatheredEvent { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Call)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Digits(&self) -> ::windows::core::Result { + pub unsafe fn Digits(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Digits)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Digits)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GatherTermination(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -9374,10 +9152,7 @@ pub struct ITDigitsGatheredEvent_Vtbl { pub Call: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcallinfo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Call: usize, - #[cfg(feature = "Win32_Foundation")] - pub Digits: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdigits: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Digits: usize, + pub Digits: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdigits: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GatherTermination: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pgathertermination: *mut TAPI_GATHERTERM) -> ::windows::core::HRESULT, pub TickCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pltickcount: *mut i32) -> ::windows::core::HRESULT, pub CallbackInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcallbackinstance: *mut i32) -> ::windows::core::HRESULT, @@ -9392,11 +9167,9 @@ impl ITDirectory { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).DirectoryType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisplayName(&self) -> ::windows::core::Result { + pub unsafe fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn IsDynamic(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -9415,15 +9188,8 @@ impl ITDirectory { pub unsafe fn Connect(&self, fsecure: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Connect)(::windows::core::Interface::as_raw(self), fsecure).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Bind<'a, P0, P1, P2>(&self, pdomainname: P0, pusername: P1, ppassword: P2, lflags: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Bind)(::windows::core::Interface::as_raw(self), pdomainname.into().abi(), pusername.into().abi(), ppassword.into().abi(), lflags).ok() + pub unsafe fn Bind(&self, pdomainname: &::windows::core::BSTR, pusername: &::windows::core::BSTR, ppassword: &::windows::core::BSTR, lflags: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Bind)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pdomainname), ::core::mem::transmute_copy(pusername), ::core::mem::transmute_copy(ppassword), lflags).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9459,21 +9225,13 @@ impl ITDirectory { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn get_DirectoryObjects<'a, P0>(&self, directoryobjecttype: DIRECTORY_OBJECT_TYPE, pname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn get_DirectoryObjects(&self, directoryobjecttype: DIRECTORY_OBJECT_TYPE, pname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_DirectoryObjects)(::windows::core::Interface::as_raw(self), directoryobjecttype, pname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_DirectoryObjects)(::windows::core::Interface::as_raw(self), directoryobjecttype, ::core::mem::transmute_copy(pname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EnumerateDirectoryObjects<'a, P0>(&self, directoryobjecttype: DIRECTORY_OBJECT_TYPE, pname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn EnumerateDirectoryObjects(&self, directoryobjecttype: DIRECTORY_OBJECT_TYPE, pname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).EnumerateDirectoryObjects)(::windows::core::Interface::as_raw(self), directoryobjecttype, pname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).EnumerateDirectoryObjects)(::windows::core::Interface::as_raw(self), directoryobjecttype, ::core::mem::transmute_copy(pname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -9543,19 +9301,13 @@ unsafe impl ::windows::core::Interface for ITDirectory { pub struct ITDirectory_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub DirectoryType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdirectorytype: *mut DIRECTORY_TYPE) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DisplayName: usize, + pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub IsDynamic: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfdynamic: *mut i16) -> ::windows::core::HRESULT, pub DefaultObjectTTL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pttl: *mut i32) -> ::windows::core::HRESULT, pub SetDefaultObjectTTL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ttl: i32) -> ::windows::core::HRESULT, pub EnableAutoRefresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fenable: i16) -> ::windows::core::HRESULT, pub Connect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fsecure: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Bind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdomainname: ::core::mem::ManuallyDrop, pusername: ::core::mem::ManuallyDrop, ppassword: ::core::mem::ManuallyDrop, lflags: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Bind: usize, + pub Bind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdomainname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub AddDirectoryObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdirectoryobject: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -9573,13 +9325,10 @@ pub struct ITDirectory_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] DeleteDirectoryObject: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub get_DirectoryObjects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, directoryobjecttype: DIRECTORY_OBJECT_TYPE, pname: ::core::mem::ManuallyDrop, pvariant: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub get_DirectoryObjects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, directoryobjecttype: DIRECTORY_OBJECT_TYPE, pname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvariant: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_DirectoryObjects: usize, - #[cfg(feature = "Win32_Foundation")] - pub EnumerateDirectoryObjects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, directoryobjecttype: DIRECTORY_OBJECT_TYPE, pname: ::core::mem::ManuallyDrop, ppenumobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EnumerateDirectoryObjects: usize, + pub EnumerateDirectoryObjects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, directoryobjecttype: DIRECTORY_OBJECT_TYPE, pname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppenumobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_Tapi\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9591,19 +9340,12 @@ impl ITDirectoryObject { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ObjectType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, pname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), pname.into().abi()).ok() + pub unsafe fn SetName(&self, pname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pname)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -9697,14 +9439,8 @@ unsafe impl ::windows::core::Interface for ITDirectoryObject { pub struct ITDirectoryObject_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub ObjectType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pobjecttype: *mut DIRECTORY_OBJECT_TYPE) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub get_DialableAddrs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwaddresstype: i32, pvariant: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -9725,25 +9461,16 @@ pub struct ITDirectoryObject_Vtbl { pub struct ITDirectoryObjectConference(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ITDirectoryObjectConference { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Protocol(&self) -> ::windows::core::Result { + pub unsafe fn Protocol(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Protocol)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Protocol)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Originator(&self) -> ::windows::core::Result { + pub unsafe fn Originator(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Originator)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Originator)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetOriginator<'a, P0>(&self, poriginator: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetOriginator)(::windows::core::Interface::as_raw(self), poriginator.into().abi()).ok() + pub unsafe fn SetOriginator(&self, poriginator: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetOriginator)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(poriginator)).ok() } pub unsafe fn AdvertisingScope(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -9752,33 +9479,19 @@ impl ITDirectoryObjectConference { pub unsafe fn SetAdvertisingScope(&self, advertisingscope: RND_ADVERTISING_SCOPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetAdvertisingScope)(::windows::core::Interface::as_raw(self), advertisingscope).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Url(&self) -> ::windows::core::Result { + pub unsafe fn Url(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Url)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Url)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetUrl<'a, P0>(&self, purl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetUrl)(::windows::core::Interface::as_raw(self), purl.into().abi()).ok() + pub unsafe fn SetUrl(&self, purl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(purl)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, pdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), pdescription.into().abi()).ok() + pub unsafe fn SetDescription(&self, pdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pdescription)).ok() } pub unsafe fn IsEncrypted(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -9868,36 +9581,15 @@ unsafe impl ::windows::core::Interface for ITDirectoryObjectConference { #[doc(hidden)] pub struct ITDirectoryObjectConference_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Protocol: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppprotocol: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Protocol: usize, - #[cfg(feature = "Win32_Foundation")] - pub Originator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pporiginator: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Originator: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetOriginator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, poriginator: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetOriginator: usize, + pub Protocol: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppprotocol: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Originator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pporiginator: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetOriginator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, poriginator: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub AdvertisingScope: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, padvertisingscope: *mut RND_ADVERTISING_SCOPE) -> ::windows::core::HRESULT, pub SetAdvertisingScope: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, advertisingscope: RND_ADVERTISING_SCOPE) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Url: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Url: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, purl: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetUrl: usize, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDescription: usize, + pub Url: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, purl: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub IsEncrypted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfencrypted: *mut i16) -> ::windows::core::HRESULT, pub SetIsEncrypted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fencrypted: i16) -> ::windows::core::HRESULT, pub StartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdate: *mut f64) -> ::windows::core::HRESULT, @@ -9911,19 +9603,12 @@ pub struct ITDirectoryObjectConference_Vtbl { pub struct ITDirectoryObjectUser(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ITDirectoryObjectUser { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IPPhonePrimary(&self) -> ::windows::core::Result { + pub unsafe fn IPPhonePrimary(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).IPPhonePrimary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).IPPhonePrimary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetIPPhonePrimary<'a, P0>(&self, pname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetIPPhonePrimary)(::windows::core::Interface::as_raw(self), pname.into().abi()).ok() + pub unsafe fn SetIPPhonePrimary(&self, pname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetIPPhonePrimary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pname)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -9992,14 +9677,8 @@ unsafe impl ::windows::core::Interface for ITDirectoryObjectUser { #[doc(hidden)] pub struct ITDirectoryObjectUser_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub IPPhonePrimary: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - IPPhonePrimary: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetIPPhonePrimary: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetIPPhonePrimary: usize, + pub IPPhonePrimary: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetIPPhonePrimary: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_Tapi\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -10007,15 +9686,14 @@ pub struct ITDirectoryObjectUser_Vtbl { pub struct ITDispatchMapper(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ITDispatchMapper { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn QueryDispatchInterface<'a, P0, P1>(&self, piid: P0, pinterfacetomap: P1) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn QueryDispatchInterface<'a, P0>(&self, piid: &::windows::core::BSTR, pinterfacetomap: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IDispatch>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).QueryDispatchInterface)(::windows::core::Interface::as_raw(self), piid.into().abi(), pinterfacetomap.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).QueryDispatchInterface)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(piid), pinterfacetomap.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -10084,9 +9762,9 @@ unsafe impl ::windows::core::Interface for ITDispatchMapper { #[doc(hidden)] pub struct ITDispatchMapper_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub QueryDispatchInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, piid: ::core::mem::ManuallyDrop, pinterfacetomap: *mut ::core::ffi::c_void, ppreturnedinterface: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub QueryDispatchInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, piid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pinterfacetomap: *mut ::core::ffi::c_void, ppreturnedinterface: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] QueryDispatchInterface: usize, } #[doc = "*Required features: `\"Win32_Devices_Tapi\"`, `\"Win32_System_Com\"`*"] @@ -10356,30 +10034,18 @@ impl ITForwardInformation { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).NumRingsNoAnswer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetForwardType<'a, P0, P1>(&self, forwardtype: i32, pdestaddress: P0, pcalleraddress: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetForwardType)(::windows::core::Interface::as_raw(self), forwardtype, pdestaddress.into().abi(), pcalleraddress.into().abi()).ok() + pub unsafe fn SetForwardType(&self, forwardtype: i32, pdestaddress: &::windows::core::BSTR, pcalleraddress: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetForwardType)(::windows::core::Interface::as_raw(self), forwardtype, ::core::mem::transmute_copy(pdestaddress), ::core::mem::transmute_copy(pcalleraddress)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_ForwardTypeDestination(&self, forwardtype: i32) -> ::windows::core::Result { + pub unsafe fn get_ForwardTypeDestination(&self, forwardtype: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_ForwardTypeDestination)(::windows::core::Interface::as_raw(self), forwardtype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_ForwardTypeDestination)(::windows::core::Interface::as_raw(self), forwardtype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_ForwardTypeCaller(&self, forwardtype: i32) -> ::windows::core::Result { + pub unsafe fn get_ForwardTypeCaller(&self, forwardtype: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_ForwardTypeCaller)(::windows::core::Interface::as_raw(self), forwardtype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_ForwardTypeCaller)(::windows::core::Interface::as_raw(self), forwardtype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetForwardType(&self, forwardtype: i32, ppdestinationaddress: &mut super::super::Foundation::BSTR, ppcalleraddress: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetForwardType(&self, forwardtype: i32, ppdestinationaddress: &mut ::windows::core::BSTR, ppcalleraddress: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetForwardType)(::windows::core::Interface::as_raw(self), forwardtype, ::core::mem::transmute(ppdestinationaddress), ::core::mem::transmute(ppcalleraddress)).ok() } pub unsafe fn Clear(&self) -> ::windows::core::Result<()> { @@ -10454,22 +10120,10 @@ pub struct ITForwardInformation_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub SetNumRingsNoAnswer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnumrings: i32) -> ::windows::core::HRESULT, pub NumRingsNoAnswer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plnumrings: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetForwardType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, forwardtype: i32, pdestaddress: ::core::mem::ManuallyDrop, pcalleraddress: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetForwardType: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_ForwardTypeDestination: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, forwardtype: i32, ppdestaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_ForwardTypeDestination: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_ForwardTypeCaller: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, forwardtype: i32, ppcalleraddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_ForwardTypeCaller: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetForwardType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, forwardtype: i32, ppdestinationaddress: *mut super::super::Foundation::BSTR, ppcalleraddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetForwardType: usize, + pub SetForwardType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, forwardtype: i32, pdestaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcalleraddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub get_ForwardTypeDestination: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, forwardtype: i32, ppdestaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub get_ForwardTypeCaller: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, forwardtype: i32, ppcalleraddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetForwardType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, forwardtype: i32, ppdestinationaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppcalleraddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_Tapi\"`, `\"Win32_System_Com\"`*"] @@ -10485,47 +10139,27 @@ impl ITForwardInformation2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.NumRingsNoAnswer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetForwardType<'a, P0, P1>(&self, forwardtype: i32, pdestaddress: P0, pcalleraddress: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetForwardType)(::windows::core::Interface::as_raw(self), forwardtype, pdestaddress.into().abi(), pcalleraddress.into().abi()).ok() + pub unsafe fn SetForwardType(&self, forwardtype: i32, pdestaddress: &::windows::core::BSTR, pcalleraddress: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetForwardType)(::windows::core::Interface::as_raw(self), forwardtype, ::core::mem::transmute_copy(pdestaddress), ::core::mem::transmute_copy(pcalleraddress)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_ForwardTypeDestination(&self, forwardtype: i32) -> ::windows::core::Result { + pub unsafe fn get_ForwardTypeDestination(&self, forwardtype: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_ForwardTypeDestination)(::windows::core::Interface::as_raw(self), forwardtype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_ForwardTypeDestination)(::windows::core::Interface::as_raw(self), forwardtype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_ForwardTypeCaller(&self, forwardtype: i32) -> ::windows::core::Result { + pub unsafe fn get_ForwardTypeCaller(&self, forwardtype: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_ForwardTypeCaller)(::windows::core::Interface::as_raw(self), forwardtype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_ForwardTypeCaller)(::windows::core::Interface::as_raw(self), forwardtype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetForwardType(&self, forwardtype: i32, ppdestinationaddress: &mut super::super::Foundation::BSTR, ppcalleraddress: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetForwardType(&self, forwardtype: i32, ppdestinationaddress: &mut ::windows::core::BSTR, ppcalleraddress: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetForwardType)(::windows::core::Interface::as_raw(self), forwardtype, ::core::mem::transmute(ppdestinationaddress), ::core::mem::transmute(ppcalleraddress)).ok() } pub unsafe fn Clear(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Clear)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetForwardType2<'a, P0, P1>(&self, forwardtype: i32, pdestaddress: P0, destaddresstype: i32, pcalleraddress: P1, calleraddresstype: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetForwardType2)(::windows::core::Interface::as_raw(self), forwardtype, pdestaddress.into().abi(), destaddresstype, pcalleraddress.into().abi(), calleraddresstype).ok() + pub unsafe fn SetForwardType2(&self, forwardtype: i32, pdestaddress: &::windows::core::BSTR, destaddresstype: i32, pcalleraddress: &::windows::core::BSTR, calleraddresstype: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetForwardType2)(::windows::core::Interface::as_raw(self), forwardtype, ::core::mem::transmute_copy(pdestaddress), destaddresstype, ::core::mem::transmute_copy(pcalleraddress), calleraddresstype).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetForwardType2(&self, forwardtype: i32, ppdestinationaddress: &mut super::super::Foundation::BSTR, pdestaddresstype: &mut i32, ppcalleraddress: &mut super::super::Foundation::BSTR, pcalleraddresstype: &mut i32) -> ::windows::core::Result<()> { + pub unsafe fn GetForwardType2(&self, forwardtype: i32, ppdestinationaddress: &mut ::windows::core::BSTR, pdestaddresstype: &mut i32, ppcalleraddress: &mut ::windows::core::BSTR, pcalleraddresstype: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetForwardType2)(::windows::core::Interface::as_raw(self), forwardtype, ::core::mem::transmute(ppdestinationaddress), ::core::mem::transmute(pdestaddresstype), ::core::mem::transmute(ppcalleraddress), ::core::mem::transmute(pcalleraddresstype)).ok() } pub unsafe fn get_ForwardTypeDestinationAddressType(&self, forwardtype: i32) -> ::windows::core::Result { @@ -10621,14 +10255,8 @@ unsafe impl ::windows::core::Interface for ITForwardInformation2 { #[doc(hidden)] pub struct ITForwardInformation2_Vtbl { pub base__: ITForwardInformation_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub SetForwardType2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, forwardtype: i32, pdestaddress: ::core::mem::ManuallyDrop, destaddresstype: i32, pcalleraddress: ::core::mem::ManuallyDrop, calleraddresstype: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetForwardType2: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetForwardType2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, forwardtype: i32, ppdestinationaddress: *mut super::super::Foundation::BSTR, pdestaddresstype: *mut i32, ppcalleraddress: *mut super::super::Foundation::BSTR, pcalleraddresstype: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetForwardType2: usize, + pub SetForwardType2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, forwardtype: i32, pdestaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, destaddresstype: i32, pcalleraddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, calleraddresstype: i32) -> ::windows::core::HRESULT, + pub GetForwardType2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, forwardtype: i32, ppdestinationaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdestaddresstype: *mut i32, ppcalleraddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcalleraddresstype: *mut i32) -> ::windows::core::HRESULT, pub get_ForwardTypeDestinationAddressType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, forwardtype: i32, pdestaddresstype: *mut i32) -> ::windows::core::HRESULT, pub get_ForwardTypeCallerAddressType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, forwardtype: i32, pcalleraddresstype: *mut i32) -> ::windows::core::HRESULT, } @@ -10719,29 +10347,14 @@ pub struct ITILSConfig_Vtbl { #[repr(transparent)] pub struct ITLegacyAddressMediaControl(::windows::core::IUnknown); impl ITLegacyAddressMediaControl { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetID<'a, P0>(&self, pdeviceclass: P0, pdwsize: &mut u32, ppdeviceid: *mut *mut u8) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetID)(::windows::core::Interface::as_raw(self), pdeviceclass.into().abi(), ::core::mem::transmute(pdwsize), ::core::mem::transmute(ppdeviceid)).ok() + pub unsafe fn GetID(&self, pdeviceclass: &::windows::core::BSTR, pdwsize: &mut u32, ppdeviceid: *mut *mut u8) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pdeviceclass), ::core::mem::transmute(pdwsize), ::core::mem::transmute(ppdeviceid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDevConfig<'a, P0>(&self, pdeviceclass: P0, pdwsize: &mut u32, ppdeviceconfig: *mut *mut u8) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetDevConfig)(::windows::core::Interface::as_raw(self), pdeviceclass.into().abi(), ::core::mem::transmute(pdwsize), ::core::mem::transmute(ppdeviceconfig)).ok() + pub unsafe fn GetDevConfig(&self, pdeviceclass: &::windows::core::BSTR, pdwsize: &mut u32, ppdeviceconfig: *mut *mut u8) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetDevConfig)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pdeviceclass), ::core::mem::transmute(pdwsize), ::core::mem::transmute(ppdeviceconfig)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDevConfig<'a, P0>(&self, pdeviceclass: P0, pdeviceconfig: &[u8]) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDevConfig)(::windows::core::Interface::as_raw(self), pdeviceclass.into().abi(), pdeviceconfig.len() as _, ::core::mem::transmute(pdeviceconfig.as_ptr())).ok() + pub unsafe fn SetDevConfig(&self, pdeviceclass: &::windows::core::BSTR, pdeviceconfig: &[u8]) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDevConfig)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pdeviceclass), pdeviceconfig.len() as _, ::core::mem::transmute(pdeviceconfig.as_ptr())).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -10783,64 +10396,38 @@ unsafe impl ::windows::core::Interface for ITLegacyAddressMediaControl { #[doc(hidden)] pub struct ITLegacyAddressMediaControl_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdeviceclass: ::core::mem::ManuallyDrop, pdwsize: *mut u32, ppdeviceid: *mut *mut u8) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetID: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetDevConfig: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdeviceclass: ::core::mem::ManuallyDrop, pdwsize: *mut u32, ppdeviceconfig: *mut *mut u8) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDevConfig: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDevConfig: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdeviceclass: ::core::mem::ManuallyDrop, dwsize: u32, pdeviceconfig: *const u8) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDevConfig: usize, + pub GetID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdeviceclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwsize: *mut u32, ppdeviceid: *mut *mut u8) -> ::windows::core::HRESULT, + pub GetDevConfig: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdeviceclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwsize: *mut u32, ppdeviceconfig: *mut *mut u8) -> ::windows::core::HRESULT, + pub SetDevConfig: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdeviceclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwsize: u32, pdeviceconfig: *const u8) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_Tapi\"`*"] #[repr(transparent)] pub struct ITLegacyAddressMediaControl2(::windows::core::IUnknown); impl ITLegacyAddressMediaControl2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetID<'a, P0>(&self, pdeviceclass: P0, pdwsize: &mut u32, ppdeviceid: *mut *mut u8) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.GetID)(::windows::core::Interface::as_raw(self), pdeviceclass.into().abi(), ::core::mem::transmute(pdwsize), ::core::mem::transmute(ppdeviceid)).ok() + pub unsafe fn GetID(&self, pdeviceclass: &::windows::core::BSTR, pdwsize: &mut u32, ppdeviceid: *mut *mut u8) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.GetID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pdeviceclass), ::core::mem::transmute(pdwsize), ::core::mem::transmute(ppdeviceid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDevConfig<'a, P0>(&self, pdeviceclass: P0, pdwsize: &mut u32, ppdeviceconfig: *mut *mut u8) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.GetDevConfig)(::windows::core::Interface::as_raw(self), pdeviceclass.into().abi(), ::core::mem::transmute(pdwsize), ::core::mem::transmute(ppdeviceconfig)).ok() + pub unsafe fn GetDevConfig(&self, pdeviceclass: &::windows::core::BSTR, pdwsize: &mut u32, ppdeviceconfig: *mut *mut u8) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.GetDevConfig)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pdeviceclass), ::core::mem::transmute(pdwsize), ::core::mem::transmute(ppdeviceconfig)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDevConfig<'a, P0>(&self, pdeviceclass: P0, pdeviceconfig: &[u8]) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetDevConfig)(::windows::core::Interface::as_raw(self), pdeviceclass.into().abi(), pdeviceconfig.len() as _, ::core::mem::transmute(pdeviceconfig.as_ptr())).ok() + pub unsafe fn SetDevConfig(&self, pdeviceclass: &::windows::core::BSTR, pdeviceconfig: &[u8]) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetDevConfig)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pdeviceclass), pdeviceconfig.len() as _, ::core::mem::transmute(pdeviceconfig.as_ptr())).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ConfigDialog<'a, P0, P1>(&self, hwndowner: P0, pdeviceclass: P1) -> ::windows::core::Result<()> + pub unsafe fn ConfigDialog<'a, P0>(&self, hwndowner: P0, pdeviceclass: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).ConfigDialog)(::windows::core::Interface::as_raw(self), hwndowner.into(), pdeviceclass.into().abi()).ok() + (::windows::core::Interface::vtable(self).ConfigDialog)(::windows::core::Interface::as_raw(self), hwndowner.into(), ::core::mem::transmute_copy(pdeviceclass)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ConfigDialogEdit<'a, P0, P1>(&self, hwndowner: P0, pdeviceclass: P1, pdeviceconfigin: &[u8], pdwsizeout: &mut u32, ppdeviceconfigout: *mut *mut u8) -> ::windows::core::Result<()> + pub unsafe fn ConfigDialogEdit<'a, P0>(&self, hwndowner: P0, pdeviceclass: &::windows::core::BSTR, pdeviceconfigin: &[u8], pdwsizeout: &mut u32, ppdeviceconfigout: *mut *mut u8) -> ::windows::core::Result<()> where P0: ::std::convert::Into, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).ConfigDialogEdit)(::windows::core::Interface::as_raw(self), hwndowner.into(), pdeviceclass.into().abi(), pdeviceconfigin.len() as _, ::core::mem::transmute(pdeviceconfigin.as_ptr()), ::core::mem::transmute(pdwsizeout), ::core::mem::transmute(ppdeviceconfigout)).ok() + (::windows::core::Interface::vtable(self).ConfigDialogEdit)(::windows::core::Interface::as_raw(self), hwndowner.into(), ::core::mem::transmute_copy(pdeviceclass), pdeviceconfigin.len() as _, ::core::mem::transmute(pdeviceconfigin.as_ptr()), ::core::mem::transmute(pdwsizeout), ::core::mem::transmute(ppdeviceconfigout)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -10898,11 +10485,11 @@ unsafe impl ::windows::core::Interface for ITLegacyAddressMediaControl2 { pub struct ITLegacyAddressMediaControl2_Vtbl { pub base__: ITLegacyAddressMediaControl_Vtbl, #[cfg(feature = "Win32_Foundation")] - pub ConfigDialog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndowner: super::super::Foundation::HWND, pdeviceclass: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub ConfigDialog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndowner: super::super::Foundation::HWND, pdeviceclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] ConfigDialog: usize, #[cfg(feature = "Win32_Foundation")] - pub ConfigDialogEdit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndowner: super::super::Foundation::HWND, pdeviceclass: ::core::mem::ManuallyDrop, dwsizein: u32, pdeviceconfigin: *const u8, pdwsizeout: *mut u32, ppdeviceconfigout: *mut *mut u8) -> ::windows::core::HRESULT, + pub ConfigDialogEdit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndowner: super::super::Foundation::HWND, pdeviceclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwsizein: u32, pdeviceconfigin: *const u8, pdwsizeout: *mut u32, ppdeviceconfigout: *mut *mut u8) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] ConfigDialogEdit: usize, } @@ -10915,21 +10502,11 @@ impl ITLegacyCallMediaControl { pub unsafe fn DetectDigits(&self, digitmode: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).DetectDigits)(::windows::core::Interface::as_raw(self), digitmode).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GenerateDigits<'a, P0>(&self, pdigits: P0, digitmode: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GenerateDigits)(::windows::core::Interface::as_raw(self), pdigits.into().abi(), digitmode).ok() + pub unsafe fn GenerateDigits(&self, pdigits: &::windows::core::BSTR, digitmode: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GenerateDigits)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pdigits), digitmode).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetID<'a, P0>(&self, pdeviceclass: P0, pdwsize: &mut u32, ppdeviceid: *mut *mut u8) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetID)(::windows::core::Interface::as_raw(self), pdeviceclass.into().abi(), ::core::mem::transmute(pdwsize), ::core::mem::transmute(ppdeviceid)).ok() + pub unsafe fn GetID(&self, pdeviceclass: &::windows::core::BSTR, pdwsize: &mut u32, ppdeviceid: *mut *mut u8) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pdeviceclass), ::core::mem::transmute(pdwsize), ::core::mem::transmute(ppdeviceid)).ok() } pub unsafe fn SetMediaType(&self, lmediatype: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetMediaType)(::windows::core::Interface::as_raw(self), lmediatype).ok() @@ -11005,14 +10582,8 @@ unsafe impl ::windows::core::Interface for ITLegacyCallMediaControl { pub struct ITLegacyCallMediaControl_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub DetectDigits: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, digitmode: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GenerateDigits: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdigits: ::core::mem::ManuallyDrop, digitmode: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GenerateDigits: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdeviceclass: ::core::mem::ManuallyDrop, pdwsize: *mut u32, ppdeviceid: *mut *mut u8) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetID: usize, + pub GenerateDigits: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdigits: ::core::mem::ManuallyDrop<::windows::core::BSTR>, digitmode: i32) -> ::windows::core::HRESULT, + pub GetID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdeviceclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwsize: *mut u32, ppdeviceid: *mut *mut u8) -> ::windows::core::HRESULT, pub SetMediaType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lmediatype: i32) -> ::windows::core::HRESULT, pub MonitorMedia: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lmediatype: i32) -> ::windows::core::HRESULT, } @@ -11025,21 +10596,11 @@ impl ITLegacyCallMediaControl2 { pub unsafe fn DetectDigits(&self, digitmode: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.DetectDigits)(::windows::core::Interface::as_raw(self), digitmode).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GenerateDigits<'a, P0>(&self, pdigits: P0, digitmode: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.GenerateDigits)(::windows::core::Interface::as_raw(self), pdigits.into().abi(), digitmode).ok() + pub unsafe fn GenerateDigits(&self, pdigits: &::windows::core::BSTR, digitmode: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.GenerateDigits)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pdigits), digitmode).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetID<'a, P0>(&self, pdeviceclass: P0, pdwsize: &mut u32, ppdeviceid: *mut *mut u8) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.GetID)(::windows::core::Interface::as_raw(self), pdeviceclass.into().abi(), ::core::mem::transmute(pdwsize), ::core::mem::transmute(ppdeviceid)).ok() + pub unsafe fn GetID(&self, pdeviceclass: &::windows::core::BSTR, pdwsize: &mut u32, ppdeviceid: *mut *mut u8) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.GetID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pdeviceclass), ::core::mem::transmute(pdwsize), ::core::mem::transmute(ppdeviceid)).ok() } pub unsafe fn SetMediaType(&self, lmediatype: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetMediaType)(::windows::core::Interface::as_raw(self), lmediatype).ok() @@ -11047,21 +10608,11 @@ impl ITLegacyCallMediaControl2 { pub unsafe fn MonitorMedia(&self, lmediatype: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.MonitorMedia)(::windows::core::Interface::as_raw(self), lmediatype).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GenerateDigits2<'a, P0>(&self, pdigits: P0, digitmode: i32, lduration: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GenerateDigits2)(::windows::core::Interface::as_raw(self), pdigits.into().abi(), digitmode, lduration).ok() + pub unsafe fn GenerateDigits2(&self, pdigits: &::windows::core::BSTR, digitmode: i32, lduration: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GenerateDigits2)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pdigits), digitmode, lduration).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GatherDigits<'a, P0>(&self, digitmode: i32, lnumdigits: i32, pterminationdigits: P0, lfirstdigittimeout: i32, linterdigittimeout: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GatherDigits)(::windows::core::Interface::as_raw(self), digitmode, lnumdigits, pterminationdigits.into().abi(), lfirstdigittimeout, linterdigittimeout).ok() + pub unsafe fn GatherDigits(&self, digitmode: i32, lnumdigits: i32, pterminationdigits: &::windows::core::BSTR, lfirstdigittimeout: i32, linterdigittimeout: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GatherDigits)(::windows::core::Interface::as_raw(self), digitmode, lnumdigits, ::core::mem::transmute_copy(pterminationdigits), lfirstdigittimeout, linterdigittimeout).ok() } pub unsafe fn DetectTones(&self, ptonelist: &TAPI_DETECTTONE, lnumtones: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).DetectTones)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptonelist), lnumtones).ok() @@ -11102,12 +10653,9 @@ impl ITLegacyCallMediaControl2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetIDAsVariant<'a, P0>(&self, bstrdeviceclass: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetIDAsVariant(&self, bstrdeviceclass: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetIDAsVariant)(::windows::core::Interface::as_raw(self), bstrdeviceclass.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetIDAsVariant)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdeviceclass), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -11194,14 +10742,8 @@ unsafe impl ::windows::core::Interface for ITLegacyCallMediaControl2 { #[doc(hidden)] pub struct ITLegacyCallMediaControl2_Vtbl { pub base__: ITLegacyCallMediaControl_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub GenerateDigits2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdigits: ::core::mem::ManuallyDrop, digitmode: i32, lduration: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GenerateDigits2: usize, - #[cfg(feature = "Win32_Foundation")] - pub GatherDigits: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, digitmode: i32, lnumdigits: i32, pterminationdigits: ::core::mem::ManuallyDrop, lfirstdigittimeout: i32, linterdigittimeout: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GatherDigits: usize, + pub GenerateDigits2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdigits: ::core::mem::ManuallyDrop<::windows::core::BSTR>, digitmode: i32, lduration: i32) -> ::windows::core::HRESULT, + pub GatherDigits: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, digitmode: i32, lnumdigits: i32, pterminationdigits: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lfirstdigittimeout: i32, linterdigittimeout: i32) -> ::windows::core::HRESULT, pub DetectTones: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptonelist: *const TAPI_DETECTTONE, lnumtones: i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub DetectTonesByCollection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdetecttonecollection: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -11222,7 +10764,7 @@ pub struct ITLegacyCallMediaControl2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] CreateCustomToneObject: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetIDAsVariant: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdeviceclass: ::core::mem::ManuallyDrop, pvardeviceid: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetIDAsVariant: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdeviceclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvardeviceid: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetIDAsVariant: usize, } @@ -11331,41 +10873,29 @@ impl ITLocationInfo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).PreferredCardID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LocationName(&self) -> ::windows::core::Result { + pub unsafe fn LocationName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LocationName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LocationName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CityCode(&self) -> ::windows::core::Result { + pub unsafe fn CityCode(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CityCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CityCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LocalAccessCode(&self) -> ::windows::core::Result { + pub unsafe fn LocalAccessCode(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LocalAccessCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LocalAccessCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LongDistanceAccessCode(&self) -> ::windows::core::Result { + pub unsafe fn LongDistanceAccessCode(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LongDistanceAccessCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LongDistanceAccessCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TollPrefixList(&self) -> ::windows::core::Result { + pub unsafe fn TollPrefixList(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TollPrefixList)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TollPrefixList)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CancelCallWaitingCode(&self) -> ::windows::core::Result { + pub unsafe fn CancelCallWaitingCode(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CancelCallWaitingCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CancelCallWaitingCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -11439,30 +10969,12 @@ pub struct ITLocationInfo_Vtbl { pub CountryID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcountryid: *mut i32) -> ::windows::core::HRESULT, pub Options: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ploptions: *mut i32) -> ::windows::core::HRESULT, pub PreferredCardID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcardid: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub LocationName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pplocationname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LocationName: usize, - #[cfg(feature = "Win32_Foundation")] - pub CityCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcode: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CityCode: usize, - #[cfg(feature = "Win32_Foundation")] - pub LocalAccessCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcode: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LocalAccessCode: usize, - #[cfg(feature = "Win32_Foundation")] - pub LongDistanceAccessCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcode: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LongDistanceAccessCode: usize, - #[cfg(feature = "Win32_Foundation")] - pub TollPrefixList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pptolllist: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TollPrefixList: usize, - #[cfg(feature = "Win32_Foundation")] - pub CancelCallWaitingCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcode: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CancelCallWaitingCode: usize, + pub LocationName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pplocationname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CityCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcode: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub LocalAccessCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcode: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub LongDistanceAccessCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcode: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub TollPrefixList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pptolllist: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CancelCallWaitingCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcode: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_Tapi\"`*"] #[repr(transparent)] @@ -11736,19 +11248,12 @@ pub struct ITMediaPlayback_Vtbl { pub struct ITMediaRecord(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ITMediaRecord { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFileName<'a, P0>(&self, bstrfilename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetFileName)(::windows::core::Interface::as_raw(self), bstrfilename.into().abi()).ok() + pub unsafe fn SetFileName(&self, bstrfilename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrfilename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FileName(&self) -> ::windows::core::Result { + pub unsafe fn FileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -11817,14 +11322,8 @@ unsafe impl ::windows::core::Interface for ITMediaRecord { #[doc(hidden)] pub struct ITMediaRecord_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub SetFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetFileName: usize, - #[cfg(feature = "Win32_Foundation")] - pub FileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfilename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FileName: usize, + pub SetFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfilename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_Tapi\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -12057,11 +11556,9 @@ impl ITPhone { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).get_PhoneCapsLong)(::windows::core::Interface::as_raw(self), pclcap, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_PhoneCapsString(&self, pcscap: PHONECAPS_STRING) -> ::windows::core::Result { + pub unsafe fn get_PhoneCapsString(&self, pcscap: PHONECAPS_STRING) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_PhoneCapsString)(::windows::core::Interface::as_raw(self), pcscap, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_PhoneCapsString)(::windows::core::Interface::as_raw(self), pcscap, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -12095,19 +11592,12 @@ impl ITPhone { pub unsafe fn put_ButtonFunction(&self, lbuttonid: i32, buttonfunction: PHONE_BUTTON_FUNCTION) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).put_ButtonFunction)(::windows::core::Interface::as_raw(self), lbuttonid, buttonfunction).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_ButtonText(&self, lbuttonid: i32) -> ::windows::core::Result { + pub unsafe fn get_ButtonText(&self, lbuttonid: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_ButtonText)(::windows::core::Interface::as_raw(self), lbuttonid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_ButtonText)(::windows::core::Interface::as_raw(self), lbuttonid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_ButtonText<'a, P0>(&self, lbuttonid: i32, bstrbuttontext: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).put_ButtonText)(::windows::core::Interface::as_raw(self), lbuttonid, bstrbuttontext.into().abi()).ok() + pub unsafe fn put_ButtonText(&self, lbuttonid: i32, bstrbuttontext: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).put_ButtonText)(::windows::core::Interface::as_raw(self), lbuttonid, ::core::mem::transmute_copy(bstrbuttontext)).ok() } pub unsafe fn get_ButtonState(&self, lbuttonid: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -12154,19 +11644,12 @@ impl ITPhone { pub unsafe fn put_LampMode(&self, llampid: i32, lampmode: PHONE_LAMP_MODE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).put_LampMode)(::windows::core::Interface::as_raw(self), llampid, lampmode).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Display(&self) -> ::windows::core::Result { + pub unsafe fn Display(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Display)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Display)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDisplay<'a, P0>(&self, lrow: i32, lcolumn: i32, bstrdisplay: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDisplay)(::windows::core::Interface::as_raw(self), lrow, lcolumn, bstrdisplay.into().abi()).ok() + pub unsafe fn SetDisplay(&self, lrow: i32, lcolumn: i32, bstrdisplay: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDisplay)(::windows::core::Interface::as_raw(self), lrow, lcolumn, ::core::mem::transmute_copy(bstrdisplay)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -12268,10 +11751,7 @@ pub struct ITPhone_Vtbl { Addresses: usize, pub EnumerateAddresses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumaddress: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub get_PhoneCapsLong: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pclcap: PHONECAPS_LONG, plcapability: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub get_PhoneCapsString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcscap: PHONECAPS_STRING, ppcapability: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_PhoneCapsString: usize, + pub get_PhoneCapsString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcscap: PHONECAPS_STRING, ppcapability: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub get_Terminals: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, paddress: *mut ::core::ffi::c_void, pterminals: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -12284,14 +11764,8 @@ pub struct ITPhone_Vtbl { pub put_ButtonMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lbuttonid: i32, buttonmode: PHONE_BUTTON_MODE) -> ::windows::core::HRESULT, pub get_ButtonFunction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lbuttonid: i32, pbuttonfunction: *mut PHONE_BUTTON_FUNCTION) -> ::windows::core::HRESULT, pub put_ButtonFunction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lbuttonid: i32, buttonfunction: PHONE_BUTTON_FUNCTION) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub get_ButtonText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lbuttonid: i32, ppbuttontext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_ButtonText: usize, - #[cfg(feature = "Win32_Foundation")] - pub put_ButtonText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lbuttonid: i32, bstrbuttontext: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - put_ButtonText: usize, + pub get_ButtonText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lbuttonid: i32, ppbuttontext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub put_ButtonText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lbuttonid: i32, bstrbuttontext: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub get_ButtonState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lbuttonid: i32, pbuttonstate: *mut PHONE_BUTTON_STATE) -> ::windows::core::HRESULT, pub get_HookSwitchState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hookswitchdevice: PHONE_HOOK_SWITCH_DEVICE, phookswitchstate: *mut PHONE_HOOK_SWITCH_STATE) -> ::windows::core::HRESULT, pub put_HookSwitchState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hookswitchdevice: PHONE_HOOK_SWITCH_DEVICE, hookswitchstate: PHONE_HOOK_SWITCH_STATE) -> ::windows::core::HRESULT, @@ -12307,14 +11781,8 @@ pub struct ITPhone_Vtbl { get_PhoneCapsBuffer: usize, pub get_LampMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, llampid: i32, plampmode: *mut PHONE_LAMP_MODE) -> ::windows::core::HRESULT, pub put_LampMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, llampid: i32, lampmode: PHONE_LAMP_MODE) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Display: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdisplay: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Display: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDisplay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lrow: i32, lcolumn: i32, bstrdisplay: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDisplay: usize, + pub Display: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdisplay: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDisplay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lrow: i32, lcolumn: i32, bstrdisplay: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub PreferredAddresses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, paddresses: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -12462,11 +11930,9 @@ impl ITPhoneEvent { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ButtonLampId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NumberGathered(&self) -> ::windows::core::Result { + pub unsafe fn NumberGathered(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).NumberGathered)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).NumberGathered)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -12551,10 +12017,7 @@ pub struct ITPhoneEvent_Vtbl { pub HookSwitchDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdevice: *mut PHONE_HOOK_SWITCH_DEVICE) -> ::windows::core::HRESULT, pub RingMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plringmode: *mut i32) -> ::windows::core::HRESULT, pub ButtonLampId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plbuttonlampid: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub NumberGathered: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppnumber: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - NumberGathered: usize, + pub NumberGathered: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppnumber: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Call: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcallinfo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -12566,35 +12029,25 @@ pub struct ITPhoneEvent_Vtbl { pub struct ITPluggableTerminalClassInfo(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ITPluggableTerminalClassInfo { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Company(&self) -> ::windows::core::Result { + pub unsafe fn Company(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Company)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Company)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Version(&self) -> ::windows::core::Result { + pub unsafe fn Version(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Version)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Version)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TerminalClass(&self) -> ::windows::core::Result { + pub unsafe fn TerminalClass(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TerminalClass)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TerminalClass)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CLSID(&self) -> ::windows::core::Result { + pub unsafe fn CLSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Direction(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -12671,26 +12124,11 @@ unsafe impl ::windows::core::Interface for ITPluggableTerminalClassInfo { #[doc(hidden)] pub struct ITPluggableTerminalClassInfo_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub Company: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcompany: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Company: usize, - #[cfg(feature = "Win32_Foundation")] - pub Version: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pversion: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Version: usize, - #[cfg(feature = "Win32_Foundation")] - pub TerminalClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pterminalclass: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TerminalClass: usize, - #[cfg(feature = "Win32_Foundation")] - pub CLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pclsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CLSID: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Company: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcompany: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Version: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pversion: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub TerminalClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pterminalclass: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pclsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Direction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdirection: *mut TERMINAL_DIRECTION) -> ::windows::core::HRESULT, pub MediaTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmediatypes: *mut i32) -> ::windows::core::HRESULT, } @@ -12810,17 +12248,13 @@ pub struct ITPluggableTerminalEventSinkRegistration_Vtbl { pub struct ITPluggableTerminalSuperclassInfo(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ITPluggableTerminalSuperclassInfo { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CLSID(&self) -> ::windows::core::Result { + pub unsafe fn CLSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -12889,14 +12323,8 @@ unsafe impl ::windows::core::Interface for ITPluggableTerminalSuperclassInfo { #[doc(hidden)] pub struct ITPluggableTerminalSuperclassInfo_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub CLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pclsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CLSID: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pclsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_Tapi\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -13160,11 +12588,9 @@ impl ITQueue { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).FinalDisposition)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -13244,10 +12670,7 @@ pub struct ITQueue_Vtbl { pub CurrentLongestWaitTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plwaittime: *mut i32) -> ::windows::core::HRESULT, pub AverageWaitTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plwaittime: *mut i32) -> ::windows::core::HRESULT, pub FinalDisposition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcalls: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_Tapi\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -13354,23 +12777,17 @@ impl ITRendezvous { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).EnumerateDefaultDirectories)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateDirectory<'a, P0>(&self, directorytype: DIRECTORY_TYPE, pname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateDirectory(&self, directorytype: DIRECTORY_TYPE, pname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateDirectory)(::windows::core::Interface::as_raw(self), directorytype, pname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateDirectory)(::windows::core::Interface::as_raw(self), directorytype, ::core::mem::transmute_copy(pname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateDirectoryObject<'a, P0>(&self, directoryobjecttype: DIRECTORY_OBJECT_TYPE, pname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateDirectoryObject(&self, directoryobjecttype: DIRECTORY_OBJECT_TYPE, pname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateDirectoryObject)(::windows::core::Interface::as_raw(self), directoryobjecttype, pname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateDirectoryObject)(::windows::core::Interface::as_raw(self), directoryobjecttype, ::core::mem::transmute_copy(pname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -13444,13 +12861,13 @@ pub struct ITRendezvous_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DefaultDirectories: usize, pub EnumerateDefaultDirectories: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumdirectory: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreateDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, directorytype: DIRECTORY_TYPE, pname: ::core::mem::ManuallyDrop, ppdir: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreateDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, directorytype: DIRECTORY_TYPE, pname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppdir: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreateDirectory: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreateDirectoryObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, directoryobjecttype: DIRECTORY_OBJECT_TYPE, pname: ::core::mem::ManuallyDrop, ppdirectoryobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreateDirectoryObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, directoryobjecttype: DIRECTORY_OBJECT_TYPE, pname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppdirectoryobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreateDirectoryObject: usize, } #[doc = "*Required features: `\"Win32_Devices_Tapi\"`, `\"Win32_System_Com\"`*"] @@ -13459,16 +12876,8 @@ pub struct ITRendezvous_Vtbl { pub struct ITRequest(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ITRequest { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MakeCall<'a, P0, P1, P2, P3>(&self, pdestaddress: P0, pappname: P1, pcalledparty: P2, pcomment: P3) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).MakeCall)(::windows::core::Interface::as_raw(self), pdestaddress.into().abi(), pappname.into().abi(), pcalledparty.into().abi(), pcomment.into().abi()).ok() + pub unsafe fn MakeCall(&self, pdestaddress: &::windows::core::BSTR, pappname: &::windows::core::BSTR, pcalledparty: &::windows::core::BSTR, pcomment: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).MakeCall)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pdestaddress), ::core::mem::transmute_copy(pappname), ::core::mem::transmute_copy(pcalledparty), ::core::mem::transmute_copy(pcomment)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -13537,10 +12946,7 @@ unsafe impl ::windows::core::Interface for ITRequest { #[doc(hidden)] pub struct ITRequest_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub MakeCall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdestaddress: ::core::mem::ManuallyDrop, pappname: ::core::mem::ManuallyDrop, pcalledparty: ::core::mem::ManuallyDrop, pcomment: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MakeCall: usize, + pub MakeCall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdestaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pappname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcalledparty: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcomment: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_Tapi\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -13556,29 +12962,21 @@ impl ITRequestEvent { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).RequestMode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DestAddress(&self) -> ::windows::core::Result { + pub unsafe fn DestAddress(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DestAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DestAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AppName(&self) -> ::windows::core::Result { + pub unsafe fn AppName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AppName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AppName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CalledParty(&self) -> ::windows::core::Result { + pub unsafe fn CalledParty(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CalledParty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CalledParty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Comment(&self) -> ::windows::core::Result { + pub unsafe fn Comment(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Comment)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Comment)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -13649,22 +13047,10 @@ pub struct ITRequestEvent_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub RegistrationInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plregistrationinstance: *mut i32) -> ::windows::core::HRESULT, pub RequestMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plrequestmode: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub DestAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdestaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DestAddress: usize, - #[cfg(feature = "Win32_Foundation")] - pub AppName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppappname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AppName: usize, - #[cfg(feature = "Win32_Foundation")] - pub CalledParty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcalledparty: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CalledParty: usize, - #[cfg(feature = "Win32_Foundation")] - pub Comment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcomment: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Comment: usize, + pub DestAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdestaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub AppName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppappname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CalledParty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcalledparty: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Comment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcomment: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Devices_Tapi\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -13887,11 +13273,9 @@ impl ITStream { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Direction)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn StartStream(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).StartStream)(::windows::core::Interface::as_raw(self)).ok() @@ -13997,10 +13381,7 @@ pub struct ITStream_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub MediaType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plmediatype: *mut i32) -> ::windows::core::HRESULT, pub Direction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptd: *mut TERMINAL_DIRECTION) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub StartStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub PauseStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub StopStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -14442,21 +13823,11 @@ impl ITTAPI { pub unsafe fn RegisterRequestRecipient(&self, lregistrationinstance: i32, lrequestmode: i32, fenable: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RegisterRequestRecipient)(::windows::core::Interface::as_raw(self), lregistrationinstance, lrequestmode, fenable).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetAssistedTelephonyPriority<'a, P0>(&self, pappfilename: P0, fpriority: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetAssistedTelephonyPriority)(::windows::core::Interface::as_raw(self), pappfilename.into().abi(), fpriority).ok() + pub unsafe fn SetAssistedTelephonyPriority(&self, pappfilename: &::windows::core::BSTR, fpriority: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetAssistedTelephonyPriority)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pappfilename), fpriority).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetApplicationPriority<'a, P0>(&self, pappfilename: P0, lmediatype: i32, fpriority: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetApplicationPriority)(::windows::core::Interface::as_raw(self), pappfilename.into().abi(), lmediatype, fpriority).ok() + pub unsafe fn SetApplicationPriority(&self, pappfilename: &::windows::core::BSTR, lmediatype: i32, fpriority: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetApplicationPriority)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pappfilename), lmediatype, fpriority).ok() } pub unsafe fn SetEventFilter(&self, lfiltermask: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetEventFilter)(::windows::core::Interface::as_raw(self), lfiltermask).ok() @@ -14562,14 +13933,8 @@ pub struct ITTAPI_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] PrivateTAPIObjects: usize, pub RegisterRequestRecipient: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lregistrationinstance: i32, lrequestmode: i32, fenable: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetAssistedTelephonyPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pappfilename: ::core::mem::ManuallyDrop, fpriority: i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetAssistedTelephonyPriority: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetApplicationPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pappfilename: ::core::mem::ManuallyDrop, lmediatype: i32, fpriority: i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetApplicationPriority: usize, + pub SetAssistedTelephonyPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pappfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fpriority: i16) -> ::windows::core::HRESULT, + pub SetApplicationPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pappfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lmediatype: i32, fpriority: i16) -> ::windows::core::HRESULT, pub SetEventFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lfiltermask: i32) -> ::windows::core::HRESULT, pub EventFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plfiltermask: *mut i32) -> ::windows::core::HRESULT, } @@ -14640,21 +14005,11 @@ impl ITTAPI2 { pub unsafe fn RegisterRequestRecipient(&self, lregistrationinstance: i32, lrequestmode: i32, fenable: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.RegisterRequestRecipient)(::windows::core::Interface::as_raw(self), lregistrationinstance, lrequestmode, fenable).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetAssistedTelephonyPriority<'a, P0>(&self, pappfilename: P0, fpriority: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetAssistedTelephonyPriority)(::windows::core::Interface::as_raw(self), pappfilename.into().abi(), fpriority).ok() + pub unsafe fn SetAssistedTelephonyPriority(&self, pappfilename: &::windows::core::BSTR, fpriority: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetAssistedTelephonyPriority)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pappfilename), fpriority).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetApplicationPriority<'a, P0>(&self, pappfilename: P0, lmediatype: i32, fpriority: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetApplicationPriority)(::windows::core::Interface::as_raw(self), pappfilename.into().abi(), lmediatype, fpriority).ok() + pub unsafe fn SetApplicationPriority(&self, pappfilename: &::windows::core::BSTR, lmediatype: i32, fpriority: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetApplicationPriority)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pappfilename), lmediatype, fpriority).ok() } pub unsafe fn SetEventFilter(&self, lfiltermask: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetEventFilter)(::windows::core::Interface::as_raw(self), lfiltermask).ok() @@ -15324,11 +14679,9 @@ pub struct ITTTSTerminalEvent_Vtbl { pub struct ITTerminal(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ITTerminal { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn State(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -15338,11 +14691,9 @@ impl ITTerminal { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).TerminalType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TerminalClass(&self) -> ::windows::core::Result { + pub unsafe fn TerminalClass(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TerminalClass)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TerminalClass)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn MediaType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -15419,16 +14770,10 @@ unsafe impl ::windows::core::Interface for ITTerminal { #[doc(hidden)] pub struct ITTerminal_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pterminalstate: *mut TERMINAL_STATE) -> ::windows::core::HRESULT, pub TerminalType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptype: *mut TERMINAL_TYPE) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub TerminalClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppterminalclass: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TerminalClass: usize, + pub TerminalClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppterminalclass: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub MediaType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plmediatype: *mut i32) -> ::windows::core::HRESULT, pub Direction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdirection: *mut TERMINAL_DIRECTION) -> ::windows::core::HRESULT, } @@ -15458,14 +14803,11 @@ impl ITTerminalSupport { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).EnumerateDynamicTerminalClasses)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateTerminal<'a, P0>(&self, pterminalclass: P0, lmediatype: i32, direction: TERMINAL_DIRECTION) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateTerminal(&self, pterminalclass: &::windows::core::BSTR, lmediatype: i32, direction: TERMINAL_DIRECTION) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateTerminal)(::windows::core::Interface::as_raw(self), pterminalclass.into().abi(), lmediatype, direction, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateTerminal)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pterminalclass), lmediatype, direction, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -15550,9 +14892,9 @@ pub struct ITTerminalSupport_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DynamicTerminalClasses: usize, pub EnumerateDynamicTerminalClasses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppterminalclassenumerator: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreateTerminal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pterminalclass: ::core::mem::ManuallyDrop, lmediatype: i32, direction: TERMINAL_DIRECTION, ppterminal: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreateTerminal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pterminalclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lmediatype: i32, direction: TERMINAL_DIRECTION, ppterminal: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreateTerminal: usize, #[cfg(feature = "Win32_System_Com")] pub GetDefaultStaticTerminal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lmediatype: i32, direction: TERMINAL_DIRECTION, ppterminal: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -15585,14 +14927,11 @@ impl ITTerminalSupport2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.EnumerateDynamicTerminalClasses)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateTerminal<'a, P0>(&self, pterminalclass: P0, lmediatype: i32, direction: TERMINAL_DIRECTION) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateTerminal(&self, pterminalclass: &::windows::core::BSTR, lmediatype: i32, direction: TERMINAL_DIRECTION) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CreateTerminal)(::windows::core::Interface::as_raw(self), pterminalclass.into().abi(), lmediatype, direction, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CreateTerminal)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pterminalclass), lmediatype, direction, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -15612,12 +14951,9 @@ impl ITTerminalSupport2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn get_PluggableTerminalClasses<'a, P0>(&self, bstrterminalsuperclass: P0, lmediatype: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn get_PluggableTerminalClasses(&self, bstrterminalsuperclass: &::windows::core::BSTR, lmediatype: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_PluggableTerminalClasses)(::windows::core::Interface::as_raw(self), bstrterminalsuperclass.into().abi(), lmediatype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_PluggableTerminalClasses)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrterminalsuperclass), lmediatype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn EnumeratePluggableTerminalClasses(&self, iidterminalsuperclass: ::windows::core::GUID, lmediatype: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -15714,7 +15050,7 @@ pub struct ITTerminalSupport2_Vtbl { PluggableSuperclasses: usize, pub EnumeratePluggableSuperclasses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsuperclassenumerator: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub get_PluggableTerminalClasses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrterminalsuperclass: ::core::mem::ManuallyDrop, lmediatype: i32, pvariant: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub get_PluggableTerminalClasses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrterminalsuperclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lmediatype: i32, pvariant: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_PluggableTerminalClasses: usize, pub EnumeratePluggableTerminalClasses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iidterminalsuperclass: ::windows::core::GUID, lmediatype: i32, ppclassenumerator: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, diff --git a/crates/libs/windows/src/Windows/Win32/Foundation/mod.rs b/crates/libs/windows/src/Windows/Win32/Foundation/mod.rs index b196d601d2..ff3573002b 100644 --- a/crates/libs/windows/src/Windows/Win32/Foundation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Foundation/mod.rs @@ -103,117 +103,102 @@ pub unsafe fn SetLastErrorEx(dwerrcode: WIN32_ERROR, dwtype: u32) { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[inline] -pub unsafe fn SysAddRefString<'a, P0>(bstrstring: P0) -> ::windows::core::Result<()> -where - P0: ::std::convert::Into<::windows::core::InParam<'a, BSTR>>, -{ +pub unsafe fn SysAddRefString(bstrstring: &::windows::core::BSTR) -> ::windows::core::Result<()> { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn SysAddRefString(bstrstring: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT; + fn SysAddRefString(bstrstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } - SysAddRefString(bstrstring.into().abi()).ok() + SysAddRefString(::core::mem::transmute_copy(bstrstring)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[inline] -pub unsafe fn SysAllocString<'a, P0>(psz: P0) -> BSTR +pub unsafe fn SysAllocString<'a, P0>(psz: P0) -> ::windows::core::BSTR where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn SysAllocString(psz: ::windows::core::PCWSTR) -> BSTR; + fn SysAllocString(psz: ::windows::core::PCWSTR) -> ::windows::core::BSTR; } SysAllocString(psz.into()) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[inline] -pub unsafe fn SysAllocStringByteLen(psz: ::core::option::Option<&[u8]>) -> BSTR { +pub unsafe fn SysAllocStringByteLen(psz: ::core::option::Option<&[u8]>) -> ::windows::core::BSTR { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn SysAllocStringByteLen(psz: ::windows::core::PCSTR, len: u32) -> BSTR; + fn SysAllocStringByteLen(psz: ::windows::core::PCSTR, len: u32) -> ::windows::core::BSTR; } SysAllocStringByteLen(::core::mem::transmute(psz.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), psz.as_deref().map_or(0, |slice| slice.len() as _)) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[inline] -pub unsafe fn SysAllocStringLen(strin: ::core::option::Option<&[u16]>) -> BSTR { +pub unsafe fn SysAllocStringLen(strin: ::core::option::Option<&[u16]>) -> ::windows::core::BSTR { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn SysAllocStringLen(strin: ::windows::core::PCWSTR, ui: u32) -> BSTR; + fn SysAllocStringLen(strin: ::windows::core::PCWSTR, ui: u32) -> ::windows::core::BSTR; } SysAllocStringLen(::core::mem::transmute(strin.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), strin.as_deref().map_or(0, |slice| slice.len() as _)) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[inline] -pub unsafe fn SysFreeString<'a, P0>(bstrstring: P0) -where - P0: ::std::convert::Into<::windows::core::InParam<'a, BSTR>>, -{ +pub unsafe fn SysFreeString(bstrstring: &::windows::core::BSTR) { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn SysFreeString(bstrstring: ::core::mem::ManuallyDrop); + fn SysFreeString(bstrstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>); } - SysFreeString(bstrstring.into().abi()) + SysFreeString(::core::mem::transmute_copy(bstrstring)) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[inline] -pub unsafe fn SysReAllocString<'a, P0>(pbstr: &mut BSTR, psz: P0) -> i32 +pub unsafe fn SysReAllocString<'a, P0>(pbstr: &mut ::windows::core::BSTR, psz: P0) -> i32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn SysReAllocString(pbstr: *mut BSTR, psz: ::windows::core::PCWSTR) -> i32; + fn SysReAllocString(pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, psz: ::windows::core::PCWSTR) -> i32; } SysReAllocString(::core::mem::transmute(pbstr), psz.into()) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[inline] -pub unsafe fn SysReAllocStringLen<'a, P0>(pbstr: &mut BSTR, psz: P0, len: u32) -> i32 +pub unsafe fn SysReAllocStringLen<'a, P0>(pbstr: &mut ::windows::core::BSTR, psz: P0, len: u32) -> i32 where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn SysReAllocStringLen(pbstr: *mut BSTR, psz: ::windows::core::PCWSTR, len: u32) -> i32; + fn SysReAllocStringLen(pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, psz: ::windows::core::PCWSTR, len: u32) -> i32; } SysReAllocStringLen(::core::mem::transmute(pbstr), psz.into(), len) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[inline] -pub unsafe fn SysReleaseString<'a, P0>(bstrstring: P0) -where - P0: ::std::convert::Into<::windows::core::InParam<'a, BSTR>>, -{ +pub unsafe fn SysReleaseString(bstrstring: &::windows::core::BSTR) { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn SysReleaseString(bstrstring: ::core::mem::ManuallyDrop); + fn SysReleaseString(bstrstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>); } - SysReleaseString(bstrstring.into().abi()) + SysReleaseString(::core::mem::transmute_copy(bstrstring)) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[inline] -pub unsafe fn SysStringByteLen<'a, P0>(bstr: P0) -> u32 -where - P0: ::std::convert::Into<::windows::core::InParam<'a, BSTR>>, -{ +pub unsafe fn SysStringByteLen(bstr: &::windows::core::BSTR) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn SysStringByteLen(bstr: ::core::mem::ManuallyDrop) -> u32; + fn SysStringByteLen(bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> u32; } - SysStringByteLen(bstr.into().abi()) + SysStringByteLen(::core::mem::transmute_copy(bstr)) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[inline] -pub unsafe fn SysStringLen<'a, P0>(pbstr: P0) -> u32 -where - P0: ::std::convert::Into<::windows::core::InParam<'a, BSTR>>, -{ +pub unsafe fn SysStringLen(pbstr: &::windows::core::BSTR) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn SysStringLen(pbstr: ::core::mem::ManuallyDrop) -> u32; + fn SysStringLen(pbstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> u32; } - SysStringLen(pbstr.into().abi()) + SysStringLen(::core::mem::transmute_copy(pbstr)) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] pub const APPMODEL_ERROR_DYNAMIC_PROPERTY_INVALID: i32 = 15705i32; @@ -20195,125 +20180,6 @@ impl ::core::ops::Not for BOOLEAN { } } #[repr(transparent)] -pub struct BSTR(*const u16); -impl BSTR { - pub fn new() -> Self { - Self(core::ptr::null_mut()) - } - pub fn is_empty(&self) -> bool { - self.len() == 0 - } - pub fn len(&self) -> usize { - if self.0.is_null() { - 0 - } else { - unsafe { SysStringLen(self) as usize } - } - } - pub fn from_wide(value: &[u16]) -> Self { - if value.is_empty() { - return Self(::core::ptr::null_mut()); - } - unsafe { SysAllocStringLen(Some(value)) } - } - pub fn as_wide(&self) -> &[u16] { - if self.0.is_null() { - return &[]; - } - unsafe { ::core::slice::from_raw_parts(self.0, self.len()) } - } - pub unsafe fn from_raw(raw: *const u16) -> Self { - Self(raw) - } - pub fn into_raw(self) -> *const u16 { - unsafe { std::mem::transmute(self) } - } -} -impl ::core::clone::Clone for BSTR { - fn clone(&self) -> Self { - Self::from_wide(self.as_wide()) - } -} -impl ::core::convert::From<&str> for BSTR { - fn from(value: &str) -> Self { - let value: ::windows::core::alloc::vec::Vec = value.encode_utf16().collect(); - Self::from_wide(&value) - } -} -impl ::core::convert::From<::windows::core::alloc::string::String> for BSTR { - fn from(value: ::windows::core::alloc::string::String) -> Self { - value.as_str().into() - } -} -impl ::core::convert::From<&::windows::core::alloc::string::String> for BSTR { - fn from(value: &::windows::core::alloc::string::String) -> Self { - value.as_str().into() - } -} -impl<'a> ::core::convert::TryFrom<&'a BSTR> for ::windows::core::alloc::string::String { - type Error = ::windows::core::alloc::string::FromUtf16Error; - fn try_from(value: &BSTR) -> ::core::result::Result { - ::windows::core::alloc::string::String::from_utf16(value.as_wide()) - } -} -impl ::core::convert::TryFrom for ::windows::core::alloc::string::String { - type Error = ::windows::core::alloc::string::FromUtf16Error; - fn try_from(value: BSTR) -> ::core::result::Result { - ::windows::core::alloc::string::String::try_from(&value) - } -} -impl ::core::default::Default for BSTR { - fn default() -> Self { - Self(::core::ptr::null_mut()) - } -} -impl ::core::fmt::Display for BSTR { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - ::core::write!(f, "{}", ::windows::core::Decode(|| ::core::char::decode_utf16(self.as_wide().iter().cloned()))) - } -} -impl ::core::fmt::Debug for BSTR { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - ::core::write!(f, "{}", self) - } -} -impl ::core::cmp::PartialEq for BSTR { - fn eq(&self, other: &Self) -> bool { - self.as_wide() == other.as_wide() - } -} -impl ::core::cmp::Eq for BSTR {} -impl ::core::cmp::PartialEq<::windows::core::alloc::string::String> for BSTR { - fn eq(&self, other: &::windows::core::alloc::string::String) -> bool { - self == other.as_str() - } -} -impl ::core::cmp::PartialEq for BSTR { - fn eq(&self, other: &str) -> bool { - self == other - } -} -impl ::core::cmp::PartialEq<&str> for BSTR { - fn eq(&self, other: &&str) -> bool { - self.as_wide().iter().copied().eq(other.encode_utf16()) - } -} -impl ::core::cmp::PartialEq for &str { - fn eq(&self, other: &BSTR) -> bool { - other == self - } -} -impl ::core::ops::Drop for BSTR { - fn drop(&mut self) { - if !self.0.is_null() { - unsafe { SysFreeString(self as &Self) } - } - } -} -unsafe impl ::windows::core::Abi for BSTR { - type Abi = ::core::mem::ManuallyDrop; -} -#[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct CHAR(pub u8); impl ::core::default::Default for CHAR { diff --git a/crates/libs/windows/src/Windows/Win32/Gaming/impl.rs b/crates/libs/windows/src/Windows/Win32/Gaming/impl.rs index 37d969e6bb..b68905b060 100644 --- a/crates/libs/windows/src/Windows/Win32/Gaming/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Gaming/impl.rs @@ -1,16 +1,16 @@ #[cfg(feature = "Win32_Foundation")] pub trait IGameExplorer_Impl: Sized { - fn AddGame(&self, bstrgdfbinarypath: &super::Foundation::BSTR, bstrgameinstalldirectory: &super::Foundation::BSTR, installscope: GAME_INSTALL_SCOPE, pguidinstanceid: *mut ::windows::core::GUID) -> ::windows::core::Result<()>; + fn AddGame(&self, bstrgdfbinarypath: &::windows::core::BSTR, bstrgameinstalldirectory: &::windows::core::BSTR, installscope: GAME_INSTALL_SCOPE, pguidinstanceid: *mut ::windows::core::GUID) -> ::windows::core::Result<()>; fn RemoveGame(&self, guidinstanceid: &::windows::core::GUID) -> ::windows::core::Result<()>; fn UpdateGame(&self, guidinstanceid: &::windows::core::GUID) -> ::windows::core::Result<()>; - fn VerifyAccess(&self, bstrgdfbinarypath: &super::Foundation::BSTR) -> ::windows::core::Result; + fn VerifyAccess(&self, bstrgdfbinarypath: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IGameExplorer {} #[cfg(feature = "Win32_Foundation")] impl IGameExplorer_Vtbl { pub const fn new, Impl: IGameExplorer_Impl, const OFFSET: isize>() -> IGameExplorer_Vtbl { - unsafe extern "system" fn AddGame, Impl: IGameExplorer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgdfbinarypath: ::core::mem::ManuallyDrop, bstrgameinstalldirectory: ::core::mem::ManuallyDrop, installscope: GAME_INSTALL_SCOPE, pguidinstanceid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddGame, Impl: IGameExplorer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgdfbinarypath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrgameinstalldirectory: ::core::mem::ManuallyDrop<::windows::core::BSTR>, installscope: GAME_INSTALL_SCOPE, pguidinstanceid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddGame(::core::mem::transmute(&bstrgdfbinarypath), ::core::mem::transmute(&bstrgameinstalldirectory), ::core::mem::transmute_copy(&installscope), ::core::mem::transmute_copy(&pguidinstanceid)).into() @@ -25,7 +25,7 @@ impl IGameExplorer_Vtbl { let this = (*this).get_impl(); this.UpdateGame(::core::mem::transmute(&guidinstanceid)).into() } - unsafe extern "system" fn VerifyAccess, Impl: IGameExplorer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgdfbinarypath: ::core::mem::ManuallyDrop, pfhasaccess: *mut super::Foundation::BOOL) -> ::windows::core::HRESULT { + unsafe extern "system" fn VerifyAccess, Impl: IGameExplorer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgdfbinarypath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfhasaccess: *mut super::Foundation::BOOL) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.VerifyAccess(::core::mem::transmute(&bstrgdfbinarypath)) { diff --git a/crates/libs/windows/src/Windows/Win32/Gaming/mod.rs b/crates/libs/windows/src/Windows/Win32/Gaming/mod.rs index 6e4b264928..0491783a77 100644 --- a/crates/libs/windows/src/Windows/Win32/Gaming/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Gaming/mod.rs @@ -321,14 +321,8 @@ pub unsafe fn TryCancelPendingGameUI() -> super::Foundation::BOOL { #[repr(transparent)] pub struct IGameExplorer(::windows::core::IUnknown); impl IGameExplorer { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddGame<'a, P0, P1>(&self, bstrgdfbinarypath: P0, bstrgameinstalldirectory: P1, installscope: GAME_INSTALL_SCOPE, pguidinstanceid: &mut ::windows::core::GUID) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AddGame)(::windows::core::Interface::as_raw(self), bstrgdfbinarypath.into().abi(), bstrgameinstalldirectory.into().abi(), installscope, ::core::mem::transmute(pguidinstanceid)).ok() + pub unsafe fn AddGame(&self, bstrgdfbinarypath: &::windows::core::BSTR, bstrgameinstalldirectory: &::windows::core::BSTR, installscope: GAME_INSTALL_SCOPE, pguidinstanceid: &mut ::windows::core::GUID) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AddGame)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrgdfbinarypath), ::core::mem::transmute_copy(bstrgameinstalldirectory), installscope, ::core::mem::transmute(pguidinstanceid)).ok() } pub unsafe fn RemoveGame(&self, guidinstanceid: ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RemoveGame)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(guidinstanceid)).ok() @@ -338,12 +332,9 @@ impl IGameExplorer { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn VerifyAccess<'a, P0>(&self, bstrgdfbinarypath: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::Foundation::BSTR>>, - { + pub unsafe fn VerifyAccess(&self, bstrgdfbinarypath: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).VerifyAccess)(::windows::core::Interface::as_raw(self), bstrgdfbinarypath.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).VerifyAccess)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrgdfbinarypath), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -385,14 +376,11 @@ unsafe impl ::windows::core::Interface for IGameExplorer { #[doc(hidden)] pub struct IGameExplorer_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub AddGame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgdfbinarypath: ::core::mem::ManuallyDrop, bstrgameinstalldirectory: ::core::mem::ManuallyDrop, installscope: GAME_INSTALL_SCOPE, pguidinstanceid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddGame: usize, + pub AddGame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgdfbinarypath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrgameinstalldirectory: ::core::mem::ManuallyDrop<::windows::core::BSTR>, installscope: GAME_INSTALL_SCOPE, pguidinstanceid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, pub RemoveGame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidinstanceid: ::windows::core::GUID) -> ::windows::core::HRESULT, pub UpdateGame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guidinstanceid: ::windows::core::GUID) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub VerifyAccess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgdfbinarypath: ::core::mem::ManuallyDrop, pfhasaccess: *mut super::Foundation::BOOL) -> ::windows::core::HRESULT, + pub VerifyAccess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgdfbinarypath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfhasaccess: *mut super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] VerifyAccess: usize, } diff --git a/crates/libs/windows/src/Windows/Win32/Globalization/impl.rs b/crates/libs/windows/src/Windows/Win32/Globalization/impl.rs index d7b2ae2d00..c1be854401 100644 --- a/crates/libs/windows/src/Windows/Win32/Globalization/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Globalization/impl.rs @@ -808,27 +808,24 @@ impl IMLangStringWStr_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IMultiLanguage_Impl: Sized { fn GetNumberOfCodePageInfo(&self) -> ::windows::core::Result; fn GetCodePageInfo(&self, uicodepage: u32) -> ::windows::core::Result; fn GetFamilyCodePage(&self, uicodepage: u32) -> ::windows::core::Result; fn EnumCodePages(&self, grfflags: u32) -> ::windows::core::Result; - fn GetCharsetInfo(&self, charset: &super::Foundation::BSTR) -> ::windows::core::Result; + fn GetCharsetInfo(&self, charset: &::windows::core::BSTR) -> ::windows::core::Result; fn IsConvertible(&self, dwsrcencoding: u32, dwdstencoding: u32) -> ::windows::core::Result<()>; fn ConvertString(&self, pdwmode: *mut u32, dwsrcencoding: u32, dwdstencoding: u32, psrcstr: *const u8, pcsrcsize: *mut u32, pdststr: *mut u8, pcdstsize: *mut u32) -> ::windows::core::Result<()>; fn ConvertStringToUnicode(&self, pdwmode: *mut u32, dwencoding: u32, psrcstr: &::windows::core::PCSTR, pcsrcsize: *mut u32, pdststr: ::windows::core::PWSTR, pcdstsize: *mut u32) -> ::windows::core::Result<()>; fn ConvertStringFromUnicode(&self, pdwmode: *mut u32, dwencoding: u32, psrcstr: &::windows::core::PCWSTR, pcsrcsize: *mut u32, pdststr: ::windows::core::PSTR, pcdstsize: *mut u32) -> ::windows::core::Result<()>; fn ConvertStringReset(&self) -> ::windows::core::Result<()>; - fn GetRfc1766FromLcid(&self, locale: u32) -> ::windows::core::Result; - fn GetLcidFromRfc1766(&self, plocale: *mut u32, bstrrfc1766: &super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetRfc1766FromLcid(&self, locale: u32) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetLcidFromRfc1766(&self, plocale: *mut u32, bstrrfc1766: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn EnumRfc1766(&self) -> ::windows::core::Result; fn GetRfc1766Info(&self, locale: u32) -> ::windows::core::Result; fn CreateConvertCharset(&self, uisrccodepage: u32, uidstcodepage: u32, dwproperty: u32) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IMultiLanguage {} -#[cfg(feature = "Win32_Foundation")] impl IMultiLanguage_Vtbl { pub const fn new, Impl: IMultiLanguage_Impl, const OFFSET: isize>() -> IMultiLanguage_Vtbl { unsafe extern "system" fn GetNumberOfCodePageInfo, Impl: IMultiLanguage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pccodepage: *mut u32) -> ::windows::core::HRESULT { @@ -875,7 +872,7 @@ impl IMultiLanguage_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetCharsetInfo, Impl: IMultiLanguage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, charset: ::core::mem::ManuallyDrop, pcharsetinfo: *mut MIMECSETINFO) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCharsetInfo, Impl: IMultiLanguage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, charset: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcharsetinfo: *mut MIMECSETINFO) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCharsetInfo(::core::mem::transmute(&charset)) { @@ -911,7 +908,7 @@ impl IMultiLanguage_Vtbl { let this = (*this).get_impl(); this.ConvertStringReset().into() } - unsafe extern "system" fn GetRfc1766FromLcid, Impl: IMultiLanguage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, locale: u32, pbstrrfc1766: *mut super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetRfc1766FromLcid, Impl: IMultiLanguage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, locale: u32, pbstrrfc1766: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetRfc1766FromLcid(::core::mem::transmute_copy(&locale)) { @@ -922,7 +919,7 @@ impl IMultiLanguage_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetLcidFromRfc1766, Impl: IMultiLanguage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, plocale: *mut u32, bstrrfc1766: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetLcidFromRfc1766, Impl: IMultiLanguage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, plocale: *mut u32, bstrrfc1766: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetLcidFromRfc1766(::core::mem::transmute_copy(&plocale), ::core::mem::transmute(&bstrrfc1766)).into() @@ -989,14 +986,14 @@ pub trait IMultiLanguage2_Impl: Sized { fn GetCodePageInfo(&self, uicodepage: u32, langid: u16) -> ::windows::core::Result; fn GetFamilyCodePage(&self, uicodepage: u32) -> ::windows::core::Result; fn EnumCodePages(&self, grfflags: u32, langid: u16) -> ::windows::core::Result; - fn GetCharsetInfo(&self, charset: &super::Foundation::BSTR) -> ::windows::core::Result; + fn GetCharsetInfo(&self, charset: &::windows::core::BSTR) -> ::windows::core::Result; fn IsConvertible(&self, dwsrcencoding: u32, dwdstencoding: u32) -> ::windows::core::Result<()>; fn ConvertString(&self, pdwmode: *mut u32, dwsrcencoding: u32, dwdstencoding: u32, psrcstr: *const u8, pcsrcsize: *mut u32, pdststr: *mut u8, pcdstsize: *mut u32) -> ::windows::core::Result<()>; fn ConvertStringToUnicode(&self, pdwmode: *mut u32, dwencoding: u32, psrcstr: &::windows::core::PCSTR, pcsrcsize: *mut u32, pdststr: ::windows::core::PWSTR, pcdstsize: *mut u32) -> ::windows::core::Result<()>; fn ConvertStringFromUnicode(&self, pdwmode: *mut u32, dwencoding: u32, psrcstr: &::windows::core::PCWSTR, pcsrcsize: *mut u32, pdststr: ::windows::core::PSTR, pcdstsize: *mut u32) -> ::windows::core::Result<()>; fn ConvertStringReset(&self) -> ::windows::core::Result<()>; - fn GetRfc1766FromLcid(&self, locale: u32) -> ::windows::core::Result; - fn GetLcidFromRfc1766(&self, plocale: *mut u32, bstrrfc1766: &super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetRfc1766FromLcid(&self, locale: u32) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetLcidFromRfc1766(&self, plocale: *mut u32, bstrrfc1766: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn EnumRfc1766(&self, langid: u16) -> ::windows::core::Result; fn GetRfc1766Info(&self, locale: u32, langid: u16) -> ::windows::core::Result; fn CreateConvertCharset(&self, uisrccodepage: u32, uidstcodepage: u32, dwproperty: u32) -> ::windows::core::Result; @@ -1062,7 +1059,7 @@ impl IMultiLanguage2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetCharsetInfo, Impl: IMultiLanguage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, charset: ::core::mem::ManuallyDrop, pcharsetinfo: *mut MIMECSETINFO) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCharsetInfo, Impl: IMultiLanguage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, charset: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcharsetinfo: *mut MIMECSETINFO) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCharsetInfo(::core::mem::transmute(&charset)) { @@ -1098,7 +1095,7 @@ impl IMultiLanguage2_Vtbl { let this = (*this).get_impl(); this.ConvertStringReset().into() } - unsafe extern "system" fn GetRfc1766FromLcid, Impl: IMultiLanguage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, locale: u32, pbstrrfc1766: *mut super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetRfc1766FromLcid, Impl: IMultiLanguage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, locale: u32, pbstrrfc1766: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetRfc1766FromLcid(::core::mem::transmute_copy(&locale)) { @@ -1109,7 +1106,7 @@ impl IMultiLanguage2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetLcidFromRfc1766, Impl: IMultiLanguage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, plocale: *mut u32, bstrrfc1766: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetLcidFromRfc1766, Impl: IMultiLanguage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, plocale: *mut u32, bstrrfc1766: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetLcidFromRfc1766(::core::mem::transmute_copy(&plocale), ::core::mem::transmute(&bstrrfc1766)).into() diff --git a/crates/libs/windows/src/Windows/Win32/Globalization/mod.rs b/crates/libs/windows/src/Windows/Win32/Globalization/mod.rs index 2a7062f9ae..632b5d0bec 100644 --- a/crates/libs/windows/src/Windows/Win32/Globalization/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Globalization/mod.rs @@ -13197,14 +13197,9 @@ impl IMultiLanguage { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).EnumCodePages)(::windows::core::Interface::as_raw(self), grfflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCharsetInfo<'a, P0>(&self, charset: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::Foundation::BSTR>>, - { + pub unsafe fn GetCharsetInfo(&self, charset: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetCharsetInfo)(::windows::core::Interface::as_raw(self), charset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetCharsetInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(charset), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn IsConvertible(&self, dwsrcencoding: u32, dwdstencoding: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).IsConvertible)(::windows::core::Interface::as_raw(self), dwsrcencoding, dwdstencoding).ok() @@ -13221,19 +13216,12 @@ impl IMultiLanguage { pub unsafe fn ConvertStringReset(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ConvertStringReset)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetRfc1766FromLcid(&self, locale: u32) -> ::windows::core::Result { + pub unsafe fn GetRfc1766FromLcid(&self, locale: u32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetRfc1766FromLcid)(::windows::core::Interface::as_raw(self), locale, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetRfc1766FromLcid)(::windows::core::Interface::as_raw(self), locale, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetLcidFromRfc1766<'a, P0>(&self, plocale: &mut u32, bstrrfc1766: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetLcidFromRfc1766)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(plocale), bstrrfc1766.into().abi()).ok() + pub unsafe fn GetLcidFromRfc1766(&self, plocale: &mut u32, bstrrfc1766: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetLcidFromRfc1766)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(plocale), ::core::mem::transmute_copy(bstrrfc1766)).ok() } pub unsafe fn EnumRfc1766(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -13291,23 +13279,14 @@ pub struct IMultiLanguage_Vtbl { pub GetCodePageInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uicodepage: u32, pcodepageinfo: *mut MIMECPINFO) -> ::windows::core::HRESULT, pub GetFamilyCodePage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uicodepage: u32, puifamilycodepage: *mut u32) -> ::windows::core::HRESULT, pub EnumCodePages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, grfflags: u32, ppenumcodepage: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetCharsetInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, charset: ::core::mem::ManuallyDrop, pcharsetinfo: *mut MIMECSETINFO) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetCharsetInfo: usize, + pub GetCharsetInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, charset: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcharsetinfo: *mut MIMECSETINFO) -> ::windows::core::HRESULT, pub IsConvertible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwsrcencoding: u32, dwdstencoding: u32) -> ::windows::core::HRESULT, pub ConvertString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwmode: *mut u32, dwsrcencoding: u32, dwdstencoding: u32, psrcstr: *const u8, pcsrcsize: *mut u32, pdststr: *mut u8, pcdstsize: *mut u32) -> ::windows::core::HRESULT, pub ConvertStringToUnicode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwmode: *mut u32, dwencoding: u32, psrcstr: ::windows::core::PCSTR, pcsrcsize: *mut u32, pdststr: ::windows::core::PWSTR, pcdstsize: *mut u32) -> ::windows::core::HRESULT, pub ConvertStringFromUnicode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwmode: *mut u32, dwencoding: u32, psrcstr: ::windows::core::PCWSTR, pcsrcsize: *mut u32, pdststr: ::windows::core::PSTR, pcdstsize: *mut u32) -> ::windows::core::HRESULT, pub ConvertStringReset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetRfc1766FromLcid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, locale: u32, pbstrrfc1766: *mut super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetRfc1766FromLcid: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetLcidFromRfc1766: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plocale: *mut u32, bstrrfc1766: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetLcidFromRfc1766: usize, + pub GetRfc1766FromLcid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, locale: u32, pbstrrfc1766: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetLcidFromRfc1766: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plocale: *mut u32, bstrrfc1766: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub EnumRfc1766: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumrfc1766: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetRfc1766Info: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, locale: u32, prfc1766info: *mut RFC1766INFO) -> ::windows::core::HRESULT, pub CreateConvertCharset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uisrccodepage: u32, uidstcodepage: u32, dwproperty: u32, ppmlangconvertcharset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -13332,14 +13311,9 @@ impl IMultiLanguage2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).EnumCodePages)(::windows::core::Interface::as_raw(self), grfflags, langid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCharsetInfo<'a, P0>(&self, charset: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::Foundation::BSTR>>, - { + pub unsafe fn GetCharsetInfo(&self, charset: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetCharsetInfo)(::windows::core::Interface::as_raw(self), charset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetCharsetInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(charset), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn IsConvertible(&self, dwsrcencoding: u32, dwdstencoding: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).IsConvertible)(::windows::core::Interface::as_raw(self), dwsrcencoding, dwdstencoding).ok() @@ -13356,19 +13330,12 @@ impl IMultiLanguage2 { pub unsafe fn ConvertStringReset(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ConvertStringReset)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetRfc1766FromLcid(&self, locale: u32) -> ::windows::core::Result { + pub unsafe fn GetRfc1766FromLcid(&self, locale: u32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetRfc1766FromLcid)(::windows::core::Interface::as_raw(self), locale, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetRfc1766FromLcid)(::windows::core::Interface::as_raw(self), locale, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetLcidFromRfc1766<'a, P0>(&self, plocale: &mut u32, bstrrfc1766: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetLcidFromRfc1766)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(plocale), bstrrfc1766.into().abi()).ok() + pub unsafe fn GetLcidFromRfc1766(&self, plocale: &mut u32, bstrrfc1766: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetLcidFromRfc1766)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(plocale), ::core::mem::transmute_copy(bstrrfc1766)).ok() } pub unsafe fn EnumRfc1766(&self, langid: u16) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -13492,23 +13459,14 @@ pub struct IMultiLanguage2_Vtbl { pub GetCodePageInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uicodepage: u32, langid: u16, pcodepageinfo: *mut MIMECPINFO) -> ::windows::core::HRESULT, pub GetFamilyCodePage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uicodepage: u32, puifamilycodepage: *mut u32) -> ::windows::core::HRESULT, pub EnumCodePages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, grfflags: u32, langid: u16, ppenumcodepage: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetCharsetInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, charset: ::core::mem::ManuallyDrop, pcharsetinfo: *mut MIMECSETINFO) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetCharsetInfo: usize, + pub GetCharsetInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, charset: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcharsetinfo: *mut MIMECSETINFO) -> ::windows::core::HRESULT, pub IsConvertible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwsrcencoding: u32, dwdstencoding: u32) -> ::windows::core::HRESULT, pub ConvertString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwmode: *mut u32, dwsrcencoding: u32, dwdstencoding: u32, psrcstr: *const u8, pcsrcsize: *mut u32, pdststr: *mut u8, pcdstsize: *mut u32) -> ::windows::core::HRESULT, pub ConvertStringToUnicode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwmode: *mut u32, dwencoding: u32, psrcstr: ::windows::core::PCSTR, pcsrcsize: *mut u32, pdststr: ::windows::core::PWSTR, pcdstsize: *mut u32) -> ::windows::core::HRESULT, pub ConvertStringFromUnicode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwmode: *mut u32, dwencoding: u32, psrcstr: ::windows::core::PCWSTR, pcsrcsize: *mut u32, pdststr: ::windows::core::PSTR, pcdstsize: *mut u32) -> ::windows::core::HRESULT, pub ConvertStringReset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetRfc1766FromLcid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, locale: u32, pbstrrfc1766: *mut super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetRfc1766FromLcid: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetLcidFromRfc1766: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plocale: *mut u32, bstrrfc1766: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetLcidFromRfc1766: usize, + pub GetRfc1766FromLcid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, locale: u32, pbstrrfc1766: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetLcidFromRfc1766: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plocale: *mut u32, bstrrfc1766: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub EnumRfc1766: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, langid: u16, ppenumrfc1766: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetRfc1766Info: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, locale: u32, langid: u16, prfc1766info: *mut RFC1766INFO) -> ::windows::core::HRESULT, pub CreateConvertCharset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uisrccodepage: u32, uidstcodepage: u32, dwproperty: u32, ppmlangconvertcharset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -13557,14 +13515,9 @@ impl IMultiLanguage3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.EnumCodePages)(::windows::core::Interface::as_raw(self), grfflags, langid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCharsetInfo<'a, P0>(&self, charset: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::Foundation::BSTR>>, - { + pub unsafe fn GetCharsetInfo(&self, charset: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetCharsetInfo)(::windows::core::Interface::as_raw(self), charset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetCharsetInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(charset), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn IsConvertible(&self, dwsrcencoding: u32, dwdstencoding: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.IsConvertible)(::windows::core::Interface::as_raw(self), dwsrcencoding, dwdstencoding).ok() @@ -13581,19 +13534,12 @@ impl IMultiLanguage3 { pub unsafe fn ConvertStringReset(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.ConvertStringReset)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetRfc1766FromLcid(&self, locale: u32) -> ::windows::core::Result { + pub unsafe fn GetRfc1766FromLcid(&self, locale: u32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetRfc1766FromLcid)(::windows::core::Interface::as_raw(self), locale, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetRfc1766FromLcid)(::windows::core::Interface::as_raw(self), locale, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetLcidFromRfc1766<'a, P0>(&self, plocale: &mut u32, bstrrfc1766: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.GetLcidFromRfc1766)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(plocale), bstrrfc1766.into().abi()).ok() + pub unsafe fn GetLcidFromRfc1766(&self, plocale: &mut u32, bstrrfc1766: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.GetLcidFromRfc1766)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(plocale), ::core::mem::transmute_copy(bstrrfc1766)).ok() } pub unsafe fn EnumRfc1766(&self, langid: u16) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/Dxc/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/Dxc/impl.rs index 990c993eed..fe25d16764 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/Dxc/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/Dxc/impl.rs @@ -816,20 +816,20 @@ pub trait IDxcPdbUtils_Impl: Sized { fn Load(&self, ppdbordxil: &::core::option::Option) -> ::windows::core::Result<()>; fn GetSourceCount(&self) -> ::windows::core::Result; fn GetSource(&self, uindex: u32) -> ::windows::core::Result; - fn GetSourceName(&self, uindex: u32) -> ::windows::core::Result; + fn GetSourceName(&self, uindex: u32) -> ::windows::core::Result<::windows::core::BSTR>; fn GetFlagCount(&self) -> ::windows::core::Result; - fn GetFlag(&self, uindex: u32) -> ::windows::core::Result; + fn GetFlag(&self, uindex: u32) -> ::windows::core::Result<::windows::core::BSTR>; fn GetArgCount(&self) -> ::windows::core::Result; - fn GetArg(&self, uindex: u32) -> ::windows::core::Result; + fn GetArg(&self, uindex: u32) -> ::windows::core::Result<::windows::core::BSTR>; fn GetArgPairCount(&self) -> ::windows::core::Result; - fn GetArgPair(&self, uindex: u32, pname: *mut super::super::super::Foundation::BSTR, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetArgPair(&self, uindex: u32, pname: *mut ::windows::core::BSTR, pvalue: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetDefineCount(&self) -> ::windows::core::Result; - fn GetDefine(&self, uindex: u32) -> ::windows::core::Result; - fn GetTargetProfile(&self) -> ::windows::core::Result; - fn GetEntryPoint(&self) -> ::windows::core::Result; - fn GetMainFileName(&self) -> ::windows::core::Result; + fn GetDefine(&self, uindex: u32) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetTargetProfile(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetEntryPoint(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetMainFileName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetHash(&self) -> ::windows::core::Result; - fn GetName(&self) -> ::windows::core::Result; + fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn IsFullPDB(&self) -> super::super::super::Foundation::BOOL; fn GetFullPDB(&self) -> ::windows::core::Result; fn GetVersionInfo(&self) -> ::windows::core::Result; @@ -870,7 +870,7 @@ impl IDxcPdbUtils_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetSourceName, Impl: IDxcPdbUtils_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uindex: u32, presult: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSourceName, Impl: IDxcPdbUtils_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uindex: u32, presult: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetSourceName(::core::mem::transmute_copy(&uindex)) { @@ -892,7 +892,7 @@ impl IDxcPdbUtils_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetFlag, Impl: IDxcPdbUtils_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uindex: u32, presult: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFlag, Impl: IDxcPdbUtils_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uindex: u32, presult: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetFlag(::core::mem::transmute_copy(&uindex)) { @@ -914,7 +914,7 @@ impl IDxcPdbUtils_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetArg, Impl: IDxcPdbUtils_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uindex: u32, presult: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetArg, Impl: IDxcPdbUtils_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uindex: u32, presult: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetArg(::core::mem::transmute_copy(&uindex)) { @@ -936,7 +936,7 @@ impl IDxcPdbUtils_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetArgPair, Impl: IDxcPdbUtils_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uindex: u32, pname: *mut super::super::super::Foundation::BSTR, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetArgPair, Impl: IDxcPdbUtils_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uindex: u32, pname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetArgPair(::core::mem::transmute_copy(&uindex), ::core::mem::transmute_copy(&pname), ::core::mem::transmute_copy(&pvalue)).into() @@ -952,7 +952,7 @@ impl IDxcPdbUtils_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetDefine, Impl: IDxcPdbUtils_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uindex: u32, presult: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDefine, Impl: IDxcPdbUtils_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uindex: u32, presult: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDefine(::core::mem::transmute_copy(&uindex)) { @@ -963,7 +963,7 @@ impl IDxcPdbUtils_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetTargetProfile, Impl: IDxcPdbUtils_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, presult: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetTargetProfile, Impl: IDxcPdbUtils_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, presult: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetTargetProfile() { @@ -974,7 +974,7 @@ impl IDxcPdbUtils_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetEntryPoint, Impl: IDxcPdbUtils_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, presult: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetEntryPoint, Impl: IDxcPdbUtils_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, presult: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetEntryPoint() { @@ -985,7 +985,7 @@ impl IDxcPdbUtils_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetMainFileName, Impl: IDxcPdbUtils_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, presult: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetMainFileName, Impl: IDxcPdbUtils_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, presult: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetMainFileName() { @@ -1007,7 +1007,7 @@ impl IDxcPdbUtils_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetName, Impl: IDxcPdbUtils_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, presult: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetName, Impl: IDxcPdbUtils_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, presult: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetName() { diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/Dxc/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/Dxc/mod.rs index 40f6489a37..0a1746a666 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/Dxc/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Direct3D/Dxc/mod.rs @@ -1359,78 +1359,60 @@ impl IDxcPdbUtils { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetSource)(::windows::core::Interface::as_raw(self), uindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetSourceName(&self, uindex: u32) -> ::windows::core::Result { + pub unsafe fn GetSourceName(&self, uindex: u32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetSourceName)(::windows::core::Interface::as_raw(self), uindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetSourceName)(::windows::core::Interface::as_raw(self), uindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetFlagCount(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetFlagCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetFlag(&self, uindex: u32) -> ::windows::core::Result { + pub unsafe fn GetFlag(&self, uindex: u32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetFlag)(::windows::core::Interface::as_raw(self), uindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetFlag)(::windows::core::Interface::as_raw(self), uindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetArgCount(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetArgCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetArg(&self, uindex: u32) -> ::windows::core::Result { + pub unsafe fn GetArg(&self, uindex: u32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetArg)(::windows::core::Interface::as_raw(self), uindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetArg)(::windows::core::Interface::as_raw(self), uindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetArgPairCount(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetArgPairCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetArgPair(&self, uindex: u32, pname: &mut super::super::super::Foundation::BSTR, pvalue: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetArgPair(&self, uindex: u32, pname: &mut ::windows::core::BSTR, pvalue: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetArgPair)(::windows::core::Interface::as_raw(self), uindex, ::core::mem::transmute(pname), ::core::mem::transmute(pvalue)).ok() } pub unsafe fn GetDefineCount(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetDefineCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDefine(&self, uindex: u32) -> ::windows::core::Result { + pub unsafe fn GetDefine(&self, uindex: u32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDefine)(::windows::core::Interface::as_raw(self), uindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDefine)(::windows::core::Interface::as_raw(self), uindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetTargetProfile(&self) -> ::windows::core::Result { + pub unsafe fn GetTargetProfile(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetTargetProfile)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetTargetProfile)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetEntryPoint(&self) -> ::windows::core::Result { + pub unsafe fn GetEntryPoint(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetEntryPoint)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetEntryPoint)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetMainFileName(&self) -> ::windows::core::Result { + pub unsafe fn GetMainFileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetMainFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetMainFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetHash(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetHash)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self) -> ::windows::core::Result { + pub unsafe fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -1507,47 +1489,20 @@ pub struct IDxcPdbUtils_Vtbl { pub Load: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdbordxil: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetSourceCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcount: *mut u32) -> ::windows::core::HRESULT, pub GetSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uindex: u32, ppresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetSourceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uindex: u32, presult: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetSourceName: usize, + pub GetSourceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uindex: u32, presult: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetFlagCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcount: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetFlag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uindex: u32, presult: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetFlag: usize, + pub GetFlag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uindex: u32, presult: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetArgCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcount: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetArg: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uindex: u32, presult: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetArg: usize, + pub GetArg: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uindex: u32, presult: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetArgPairCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcount: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetArgPair: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uindex: u32, pname: *mut super::super::super::Foundation::BSTR, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetArgPair: usize, + pub GetArgPair: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uindex: u32, pname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetDefineCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcount: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetDefine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uindex: u32, presult: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDefine: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetTargetProfile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, presult: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetTargetProfile: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetEntryPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, presult: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetEntryPoint: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetMainFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, presult: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetMainFileName: usize, + pub GetDefine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uindex: u32, presult: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetTargetProfile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, presult: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetEntryPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, presult: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetMainFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, presult: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetHash: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, presult: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetName: usize, + pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, presult: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub IsFullPDB: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::super::Foundation::BOOL, #[cfg(not(feature = "Win32_Foundation"))] diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Printing/PrintTicket/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Printing/PrintTicket/mod.rs index 7c3e239baf..f54fdb3053 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Printing/PrintTicket/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Printing/PrintTicket/mod.rs @@ -28,21 +28,21 @@ where #[doc = "*Required features: `\"Win32_Graphics_Printing_PrintTicket\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_Storage_Xps\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_Storage_Xps", feature = "Win32_System_Com"))] #[inline] -pub unsafe fn PTConvertPrintTicketToDevMode<'a, P0, P1>(hprovider: P0, pprintticket: P1, basedevmodetype: EDefaultDevmodeType, scope: EPrintTicketScope, pcbdevmode: &mut u32, ppdevmode: &mut *mut super::super::Gdi::DEVMODEA, pbstrerrormessage: ::core::option::Option<&mut super::super::super::Foundation::BSTR>) -> ::windows::core::Result<()> +pub unsafe fn PTConvertPrintTicketToDevMode<'a, P0, P1>(hprovider: P0, pprintticket: P1, basedevmodetype: EDefaultDevmodeType, scope: EPrintTicketScope, pcbdevmode: &mut u32, ppdevmode: &mut *mut super::super::Gdi::DEVMODEA, pbstrerrormessage: ::core::option::Option<&mut ::windows::core::BSTR>) -> ::windows::core::Result<()> where P0: ::std::convert::Into, P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::IStream>>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn PTConvertPrintTicketToDevMode(hprovider: super::super::super::Storage::Xps::HPTPROVIDER, pprintticket: *mut ::core::ffi::c_void, basedevmodetype: EDefaultDevmodeType, scope: EPrintTicketScope, pcbdevmode: *mut u32, ppdevmode: *mut *mut super::super::Gdi::DEVMODEA, pbstrerrormessage: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn PTConvertPrintTicketToDevMode(hprovider: super::super::super::Storage::Xps::HPTPROVIDER, pprintticket: *mut ::core::ffi::c_void, basedevmodetype: EDefaultDevmodeType, scope: EPrintTicketScope, pcbdevmode: *mut u32, ppdevmode: *mut *mut super::super::Gdi::DEVMODEA, pbstrerrormessage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } PTConvertPrintTicketToDevMode(hprovider.into(), pprintticket.into().abi(), basedevmodetype, scope, ::core::mem::transmute(pcbdevmode), ::core::mem::transmute(ppdevmode), ::core::mem::transmute(pbstrerrormessage)).ok() } -#[doc = "*Required features: `\"Win32_Graphics_Printing_PrintTicket\"`, `\"Win32_Foundation\"`, `\"Win32_Storage_Xps\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Storage_Xps", feature = "Win32_System_Com"))] +#[doc = "*Required features: `\"Win32_Graphics_Printing_PrintTicket\"`, `\"Win32_Storage_Xps\"`, `\"Win32_System_Com\"`*"] +#[cfg(all(feature = "Win32_Storage_Xps", feature = "Win32_System_Com"))] #[inline] -pub unsafe fn PTGetPrintCapabilities<'a, P0, P1, P2>(hprovider: P0, pprintticket: P1, pcapabilities: P2) -> ::windows::core::Result +pub unsafe fn PTGetPrintCapabilities<'a, P0, P1, P2>(hprovider: P0, pprintticket: P1, pcapabilities: P2) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into, P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::IStream>>, @@ -50,15 +50,15 @@ where { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn PTGetPrintCapabilities(hprovider: super::super::super::Storage::Xps::HPTPROVIDER, pprintticket: *mut ::core::ffi::c_void, pcapabilities: *mut ::core::ffi::c_void, pbstrerrormessage: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn PTGetPrintCapabilities(hprovider: super::super::super::Storage::Xps::HPTPROVIDER, pprintticket: *mut ::core::ffi::c_void, pcapabilities: *mut ::core::ffi::c_void, pbstrerrormessage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); - PTGetPrintCapabilities(hprovider.into(), pprintticket.into().abi(), pcapabilities.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + PTGetPrintCapabilities(hprovider.into(), pprintticket.into().abi(), pcapabilities.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } -#[doc = "*Required features: `\"Win32_Graphics_Printing_PrintTicket\"`, `\"Win32_Foundation\"`, `\"Win32_Storage_Xps\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Storage_Xps", feature = "Win32_System_Com"))] +#[doc = "*Required features: `\"Win32_Graphics_Printing_PrintTicket\"`, `\"Win32_Storage_Xps\"`, `\"Win32_System_Com\"`*"] +#[cfg(all(feature = "Win32_Storage_Xps", feature = "Win32_System_Com"))] #[inline] -pub unsafe fn PTGetPrintDeviceCapabilities<'a, P0, P1, P2>(hprovider: P0, pprintticket: P1, pdevicecapabilities: P2) -> ::windows::core::Result +pub unsafe fn PTGetPrintDeviceCapabilities<'a, P0, P1, P2>(hprovider: P0, pprintticket: P1, pdevicecapabilities: P2) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into, P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::IStream>>, @@ -66,15 +66,15 @@ where { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn PTGetPrintDeviceCapabilities(hprovider: super::super::super::Storage::Xps::HPTPROVIDER, pprintticket: *mut ::core::ffi::c_void, pdevicecapabilities: *mut ::core::ffi::c_void, pbstrerrormessage: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn PTGetPrintDeviceCapabilities(hprovider: super::super::super::Storage::Xps::HPTPROVIDER, pprintticket: *mut ::core::ffi::c_void, pdevicecapabilities: *mut ::core::ffi::c_void, pbstrerrormessage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); - PTGetPrintDeviceCapabilities(hprovider.into(), pprintticket.into().abi(), pdevicecapabilities.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + PTGetPrintDeviceCapabilities(hprovider.into(), pprintticket.into().abi(), pdevicecapabilities.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } -#[doc = "*Required features: `\"Win32_Graphics_Printing_PrintTicket\"`, `\"Win32_Foundation\"`, `\"Win32_Storage_Xps\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Storage_Xps", feature = "Win32_System_Com"))] +#[doc = "*Required features: `\"Win32_Graphics_Printing_PrintTicket\"`, `\"Win32_Storage_Xps\"`, `\"Win32_System_Com\"`*"] +#[cfg(all(feature = "Win32_Storage_Xps", feature = "Win32_System_Com"))] #[inline] -pub unsafe fn PTGetPrintDeviceResources<'a, P0, P1, P2, P3>(hprovider: P0, pszlocalename: P1, pprintticket: P2, pdeviceresources: P3) -> ::windows::core::Result +pub unsafe fn PTGetPrintDeviceResources<'a, P0, P1, P2, P3>(hprovider: P0, pszlocalename: P1, pprintticket: P2, pdeviceresources: P3) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into, P1: ::std::convert::Into<::windows::core::PCWSTR>, @@ -83,15 +83,15 @@ where { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn PTGetPrintDeviceResources(hprovider: super::super::super::Storage::Xps::HPTPROVIDER, pszlocalename: ::windows::core::PCWSTR, pprintticket: *mut ::core::ffi::c_void, pdeviceresources: *mut ::core::ffi::c_void, pbstrerrormessage: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn PTGetPrintDeviceResources(hprovider: super::super::super::Storage::Xps::HPTPROVIDER, pszlocalename: ::windows::core::PCWSTR, pprintticket: *mut ::core::ffi::c_void, pdeviceresources: *mut ::core::ffi::c_void, pbstrerrormessage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); - PTGetPrintDeviceResources(hprovider.into(), pszlocalename.into(), pprintticket.into().abi(), pdeviceresources.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + PTGetPrintDeviceResources(hprovider.into(), pszlocalename.into(), pprintticket.into().abi(), pdeviceresources.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } -#[doc = "*Required features: `\"Win32_Graphics_Printing_PrintTicket\"`, `\"Win32_Foundation\"`, `\"Win32_Storage_Xps\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Storage_Xps", feature = "Win32_System_Com"))] +#[doc = "*Required features: `\"Win32_Graphics_Printing_PrintTicket\"`, `\"Win32_Storage_Xps\"`, `\"Win32_System_Com\"`*"] +#[cfg(all(feature = "Win32_Storage_Xps", feature = "Win32_System_Com"))] #[inline] -pub unsafe fn PTMergeAndValidatePrintTicket<'a, P0, P1, P2, P3>(hprovider: P0, pbaseticket: P1, pdeltaticket: P2, scope: EPrintTicketScope, presultticket: P3) -> ::windows::core::Result +pub unsafe fn PTMergeAndValidatePrintTicket<'a, P0, P1, P2, P3>(hprovider: P0, pbaseticket: P1, pdeltaticket: P2, scope: EPrintTicketScope, presultticket: P3) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into, P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::IStream>>, @@ -100,10 +100,10 @@ where { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn PTMergeAndValidatePrintTicket(hprovider: super::super::super::Storage::Xps::HPTPROVIDER, pbaseticket: *mut ::core::ffi::c_void, pdeltaticket: *mut ::core::ffi::c_void, scope: EPrintTicketScope, presultticket: *mut ::core::ffi::c_void, pbstrerrormessage: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn PTMergeAndValidatePrintTicket(hprovider: super::super::super::Storage::Xps::HPTPROVIDER, pbaseticket: *mut ::core::ffi::c_void, pdeltaticket: *mut ::core::ffi::c_void, scope: EPrintTicketScope, presultticket: *mut ::core::ffi::c_void, pbstrerrormessage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); - PTMergeAndValidatePrintTicket(hprovider.into(), pbaseticket.into().abi(), pdeltaticket.into().abi(), scope, presultticket.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + PTMergeAndValidatePrintTicket(hprovider.into(), pbaseticket.into().abi(), pdeltaticket.into().abi(), scope, presultticket.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Graphics_Printing_PrintTicket\"`, `\"Win32_Storage_Xps\"`*"] #[cfg(feature = "Win32_Storage_Xps")] diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Printing/impl.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Printing/impl.rs index 7f86a5f70e..c1cace1e02 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Printing/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Printing/impl.rs @@ -250,16 +250,16 @@ impl IBidiSpl_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IBidiSpl2_Impl: Sized { fn BindDevice(&self, pszdevicename: &::windows::core::PCWSTR, dwaccess: u32) -> ::windows::core::Result<()>; fn UnbindDevice(&self) -> ::windows::core::Result<()>; - fn SendRecvXMLString(&self, bstrrequest: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn SendRecvXMLString(&self, bstrrequest: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; fn SendRecvXMLStream(&self, psrequest: &::core::option::Option) -> ::windows::core::Result; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IBidiSpl2 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IBidiSpl2_Vtbl { pub const fn new, Impl: IBidiSpl2_Impl, const OFFSET: isize>() -> IBidiSpl2_Vtbl { unsafe extern "system" fn BindDevice, Impl: IBidiSpl2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszdevicename: ::windows::core::PCWSTR, dwaccess: u32) -> ::windows::core::HRESULT { @@ -272,7 +272,7 @@ impl IBidiSpl2_Vtbl { let this = (*this).get_impl(); this.UnbindDevice().into() } - unsafe extern "system" fn SendRecvXMLString, Impl: IBidiSpl2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrequest: ::core::mem::ManuallyDrop, pbstrresponse: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SendRecvXMLString, Impl: IBidiSpl2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrequest: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrresponse: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SendRecvXMLString(::core::mem::transmute(&bstrrequest)) { @@ -306,18 +306,15 @@ impl IBidiSpl2_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IFixedDocument_Impl: Sized { - fn GetUri(&self) -> ::windows::core::Result; + fn GetUri(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetPrintTicket(&self) -> ::windows::core::Result; fn SetPrintTicket(&self, pprintticket: &::core::option::Option) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IFixedDocument {} -#[cfg(feature = "Win32_Foundation")] impl IFixedDocument_Vtbl { pub const fn new, Impl: IFixedDocument_Impl, const OFFSET: isize>() -> IFixedDocument_Vtbl { - unsafe extern "system" fn GetUri, Impl: IFixedDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetUri, Impl: IFixedDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetUri() { @@ -355,18 +352,15 @@ impl IFixedDocument_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IFixedDocumentSequence_Impl: Sized { - fn GetUri(&self) -> ::windows::core::Result; + fn GetUri(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetPrintTicket(&self) -> ::windows::core::Result; fn SetPrintTicket(&self, pprintticket: &::core::option::Option) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IFixedDocumentSequence {} -#[cfg(feature = "Win32_Foundation")] impl IFixedDocumentSequence_Vtbl { pub const fn new, Impl: IFixedDocumentSequence_Impl, const OFFSET: isize>() -> IFixedDocumentSequence_Vtbl { - unsafe extern "system" fn GetUri, Impl: IFixedDocumentSequence_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetUri, Impl: IFixedDocumentSequence_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetUri() { @@ -404,7 +398,6 @@ impl IFixedDocumentSequence_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IFixedPage_Impl: Sized + IPartBase_Impl { fn GetPrintTicket(&self) -> ::windows::core::Result; fn GetPagePart(&self, uri: &::windows::core::PCWSTR) -> ::windows::core::Result<::windows::core::IUnknown>; @@ -414,9 +407,7 @@ pub trait IFixedPage_Impl: Sized + IPartBase_Impl { fn DeleteResource(&self, uri: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn GetXpsPartIterator(&self) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IFixedPage {} -#[cfg(feature = "Win32_Foundation")] impl IFixedPage_Vtbl { pub const fn new, Impl: IFixedPage_Impl, const OFFSET: isize>() -> IFixedPage_Vtbl { unsafe extern "system" fn GetPrintTicket, Impl: IFixedPage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppprintticket: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -493,13 +484,13 @@ impl IFixedPage_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] +#[cfg(feature = "Win32_System_Ole")] pub trait IImgCreateErrorInfo_Impl: Sized + super::super::System::Ole::ICreateErrorInfo_Impl { fn AttachToErrorInfo(&self, perrorinfo: *mut ImgErrorInfo) -> ::windows::core::Result<()>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] +#[cfg(feature = "Win32_System_Ole")] impl ::windows::core::RuntimeName for IImgCreateErrorInfo {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] +#[cfg(feature = "Win32_System_Ole")] impl IImgCreateErrorInfo_Vtbl { pub const fn new, Impl: IImgCreateErrorInfo_Impl, const OFFSET: isize>() -> IImgCreateErrorInfo_Vtbl { unsafe extern "system" fn AttachToErrorInfo, Impl: IImgCreateErrorInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, perrorinfo: *mut ImgErrorInfo) -> ::windows::core::HRESULT { @@ -516,22 +507,22 @@ impl IImgCreateErrorInfo_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IImgErrorInfo_Impl: Sized + super::super::System::Com::IErrorInfo_Impl { - fn GetDeveloperDescription(&self) -> ::windows::core::Result; + fn GetDeveloperDescription(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetUserErrorId(&self) -> ::windows::core::Result<::windows::core::GUID>; fn GetUserParameterCount(&self) -> ::windows::core::Result; - fn GetUserParameter(&self, cparam: u32) -> ::windows::core::Result; - fn GetUserFallback(&self) -> ::windows::core::Result; + fn GetUserParameter(&self, cparam: u32) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetUserFallback(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetExceptionId(&self) -> ::windows::core::Result; fn DetachErrorInfo(&self) -> ::windows::core::Result; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IImgErrorInfo {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IImgErrorInfo_Vtbl { pub const fn new, Impl: IImgErrorInfo_Impl, const OFFSET: isize>() -> IImgErrorInfo_Vtbl { - unsafe extern "system" fn GetDeveloperDescription, Impl: IImgErrorInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdevdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDeveloperDescription, Impl: IImgErrorInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdevdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDeveloperDescription() { @@ -564,7 +555,7 @@ impl IImgErrorInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetUserParameter, Impl: IImgErrorInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, cparam: u32, pbstrparam: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetUserParameter, Impl: IImgErrorInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, cparam: u32, pbstrparam: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetUserParameter(::core::mem::transmute_copy(&cparam)) { @@ -575,7 +566,7 @@ impl IImgErrorInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetUserFallback, Impl: IImgErrorInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfallback: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetUserFallback, Impl: IImgErrorInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfallback: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetUserFallback() { @@ -650,19 +641,16 @@ impl IInterFilterCommunicator_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IPartBase_Impl: Sized { - fn GetUri(&self) -> ::windows::core::Result; + fn GetUri(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetStream(&self) -> ::windows::core::Result; fn GetPartCompression(&self) -> ::windows::core::Result; fn SetPartCompression(&self, compression: EXpsCompressionOptions) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IPartBase {} -#[cfg(feature = "Win32_Foundation")] impl IPartBase_Vtbl { pub const fn new, Impl: IPartBase_Impl, const OFFSET: isize>() -> IPartBase_Vtbl { - unsafe extern "system" fn GetUri, Impl: IPartBase_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetUri, Impl: IPartBase_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetUri() { @@ -712,11 +700,8 @@ impl IPartBase_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IPartColorProfile_Impl: Sized + IPartBase_Impl {} -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IPartColorProfile {} -#[cfg(feature = "Win32_Foundation")] impl IPartColorProfile_Vtbl { pub const fn new, Impl: IPartColorProfile_Impl, const OFFSET: isize>() -> IPartColorProfile_Vtbl { Self { base__: IPartBase_Vtbl::new::() } @@ -725,16 +710,13 @@ impl IPartColorProfile_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IPartDiscardControl_Impl: Sized { - fn GetDiscardProperties(&self, urisentinelpage: *mut super::super::Foundation::BSTR, uriparttodiscard: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetDiscardProperties(&self, urisentinelpage: *mut ::windows::core::BSTR, uriparttodiscard: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IPartDiscardControl {} -#[cfg(feature = "Win32_Foundation")] impl IPartDiscardControl_Vtbl { pub const fn new, Impl: IPartDiscardControl_Impl, const OFFSET: isize>() -> IPartDiscardControl_Vtbl { - unsafe extern "system" fn GetDiscardProperties, Impl: IPartDiscardControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, urisentinelpage: *mut super::super::Foundation::BSTR, uriparttodiscard: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDiscardProperties, Impl: IPartDiscardControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, urisentinelpage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, uriparttodiscard: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetDiscardProperties(::core::mem::transmute_copy(&urisentinelpage), ::core::mem::transmute_copy(&uriparttodiscard)).into() @@ -745,18 +727,15 @@ impl IPartDiscardControl_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IPartFont_Impl: Sized + IPartBase_Impl { - fn GetFontProperties(&self, pcontenttype: *mut super::super::Foundation::BSTR, pfontoptions: *mut EXpsFontOptions) -> ::windows::core::Result<()>; + fn GetFontProperties(&self, pcontenttype: *mut ::windows::core::BSTR, pfontoptions: *mut EXpsFontOptions) -> ::windows::core::Result<()>; fn SetFontContent(&self, pcontenttype: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn SetFontOptions(&self, options: EXpsFontOptions) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IPartFont {} -#[cfg(feature = "Win32_Foundation")] impl IPartFont_Vtbl { pub const fn new, Impl: IPartFont_Impl, const OFFSET: isize>() -> IPartFont_Vtbl { - unsafe extern "system" fn GetFontProperties, Impl: IPartFont_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcontenttype: *mut super::super::Foundation::BSTR, pfontoptions: *mut EXpsFontOptions) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFontProperties, Impl: IPartFont_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcontenttype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfontoptions: *mut EXpsFontOptions) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetFontProperties(::core::mem::transmute_copy(&pcontenttype), ::core::mem::transmute_copy(&pfontoptions)).into() @@ -782,13 +761,10 @@ impl IPartFont_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IPartFont2_Impl: Sized + IPartBase_Impl + IPartFont_Impl { fn GetFontRestriction(&self) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IPartFont2 {} -#[cfg(feature = "Win32_Foundation")] impl IPartFont2_Vtbl { pub const fn new, Impl: IPartFont2_Impl, const OFFSET: isize>() -> IPartFont2_Vtbl { unsafe extern "system" fn GetFontRestriction, Impl: IPartFont2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, prestriction: *mut EXpsFontRestriction) -> ::windows::core::HRESULT { @@ -808,17 +784,14 @@ impl IPartFont2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IPartImage_Impl: Sized + IPartBase_Impl { - fn GetImageProperties(&self) -> ::windows::core::Result; + fn GetImageProperties(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn SetImageContent(&self, pcontenttype: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IPartImage {} -#[cfg(feature = "Win32_Foundation")] impl IPartImage_Vtbl { pub const fn new, Impl: IPartImage_Impl, const OFFSET: isize>() -> IPartImage_Vtbl { - unsafe extern "system" fn GetImageProperties, Impl: IPartImage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcontenttype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetImageProperties, Impl: IPartImage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcontenttype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetImageProperties() { @@ -844,11 +817,8 @@ impl IPartImage_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IPartPrintTicket_Impl: Sized + IPartBase_Impl {} -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IPartPrintTicket {} -#[cfg(feature = "Win32_Foundation")] impl IPartPrintTicket_Vtbl { pub const fn new, Impl: IPartPrintTicket_Impl, const OFFSET: isize>() -> IPartPrintTicket_Vtbl { Self { base__: IPartBase_Vtbl::new::() } @@ -857,11 +827,8 @@ impl IPartPrintTicket_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IPartResourceDictionary_Impl: Sized + IPartBase_Impl {} -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IPartResourceDictionary {} -#[cfg(feature = "Win32_Foundation")] impl IPartResourceDictionary_Vtbl { pub const fn new, Impl: IPartResourceDictionary_Impl, const OFFSET: isize>() -> IPartResourceDictionary_Vtbl { Self { base__: IPartBase_Vtbl::new::() } @@ -870,17 +837,14 @@ impl IPartResourceDictionary_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IPartThumbnail_Impl: Sized + IPartBase_Impl { - fn GetThumbnailProperties(&self) -> ::windows::core::Result; + fn GetThumbnailProperties(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn SetThumbnailContent(&self, pcontenttype: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IPartThumbnail {} -#[cfg(feature = "Win32_Foundation")] impl IPartThumbnail_Vtbl { pub const fn new, Impl: IPartThumbnail_Impl, const OFFSET: isize>() -> IPartThumbnail_Vtbl { - unsafe extern "system" fn GetThumbnailProperties, Impl: IPartThumbnail_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcontenttype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetThumbnailProperties, Impl: IPartThumbnail_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcontenttype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetThumbnailProperties() { @@ -1441,9 +1405,8 @@ impl IPrintCoreUI2_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IPrintJob_Impl: Sized { - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Id(&self) -> ::windows::core::Result; fn PrintedPages(&self) -> ::windows::core::Result; fn TotalPages(&self) -> ::windows::core::Result; @@ -1451,12 +1414,10 @@ pub trait IPrintJob_Impl: Sized { fn SubmissionTime(&self) -> ::windows::core::Result; fn RequestCancel(&self) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IPrintJob {} -#[cfg(feature = "Win32_Foundation")] impl IPrintJob_Vtbl { pub const fn new, Impl: IPrintJob_Impl, const OFFSET: isize>() -> IPrintJob_Vtbl { - unsafe extern "system" fn Name, Impl: IPrintJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IPrintJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -2110,8 +2071,8 @@ impl IPrintSchemaAsyncOperationEvent_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IPrintSchemaCapabilities_Impl: Sized + super::super::System::Com::IDispatch_Impl + IPrintSchemaElement_Impl { - fn GetFeatureByKeyName(&self, bstrkeyname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetFeature(&self, bstrname: &super::super::Foundation::BSTR, bstrnamespaceuri: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetFeatureByKeyName(&self, bstrkeyname: &::windows::core::BSTR) -> ::windows::core::Result; + fn GetFeature(&self, bstrname: &::windows::core::BSTR, bstrnamespaceuri: &::windows::core::BSTR) -> ::windows::core::Result; fn PageImageableSize(&self) -> ::windows::core::Result; fn JobCopiesAllDocumentsMinValue(&self) -> ::windows::core::Result; fn JobCopiesAllDocumentsMaxValue(&self) -> ::windows::core::Result; @@ -2123,7 +2084,7 @@ impl ::windows::core::RuntimeName for IPrintSchemaCapabilities {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IPrintSchemaCapabilities_Vtbl { pub const fn new, Impl: IPrintSchemaCapabilities_Impl, const OFFSET: isize>() -> IPrintSchemaCapabilities_Vtbl { - unsafe extern "system" fn GetFeatureByKeyName, Impl: IPrintSchemaCapabilities_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrkeyname: ::core::mem::ManuallyDrop, ppfeature: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFeatureByKeyName, Impl: IPrintSchemaCapabilities_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrkeyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppfeature: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetFeatureByKeyName(::core::mem::transmute(&bstrkeyname)) { @@ -2134,7 +2095,7 @@ impl IPrintSchemaCapabilities_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetFeature, Impl: IPrintSchemaCapabilities_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, bstrnamespaceuri: ::core::mem::ManuallyDrop, ppfeature: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFeature, Impl: IPrintSchemaCapabilities_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrnamespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppfeature: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetFeature(::core::mem::transmute(&bstrname), ::core::mem::transmute(&bstrnamespaceuri)) { @@ -2217,14 +2178,14 @@ impl IPrintSchemaCapabilities_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IPrintSchemaCapabilities2_Impl: Sized + super::super::System::Com::IDispatch_Impl + IPrintSchemaElement_Impl + IPrintSchemaCapabilities_Impl { - fn GetParameterDefinition(&self, bstrname: &super::super::Foundation::BSTR, bstrnamespaceuri: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetParameterDefinition(&self, bstrname: &::windows::core::BSTR, bstrnamespaceuri: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IPrintSchemaCapabilities2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IPrintSchemaCapabilities2_Vtbl { pub const fn new, Impl: IPrintSchemaCapabilities2_Impl, const OFFSET: isize>() -> IPrintSchemaCapabilities2_Vtbl { - unsafe extern "system" fn GetParameterDefinition, Impl: IPrintSchemaCapabilities2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, bstrnamespaceuri: ::core::mem::ManuallyDrop, ppparameterdefinition: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetParameterDefinition, Impl: IPrintSchemaCapabilities2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrnamespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppparameterdefinition: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetParameterDefinition(::core::mem::transmute(&bstrname), ::core::mem::transmute(&bstrnamespaceuri)) { @@ -2243,14 +2204,14 @@ impl IPrintSchemaCapabilities2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IPrintSchemaDisplayableElement_Impl: Sized + super::super::System::Com::IDispatch_Impl + IPrintSchemaElement_Impl { - fn DisplayName(&self) -> ::windows::core::Result; + fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IPrintSchemaDisplayableElement {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IPrintSchemaDisplayableElement_Vtbl { pub const fn new, Impl: IPrintSchemaDisplayableElement_Impl, const OFFSET: isize>() -> IPrintSchemaDisplayableElement_Vtbl { - unsafe extern "system" fn DisplayName, Impl: IPrintSchemaDisplayableElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdisplayname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DisplayName, Impl: IPrintSchemaDisplayableElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdisplayname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DisplayName() { @@ -2270,8 +2231,8 @@ impl IPrintSchemaDisplayableElement_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IPrintSchemaElement_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn XmlNode(&self) -> ::windows::core::Result<::windows::core::IUnknown>; - fn Name(&self) -> ::windows::core::Result; - fn NamespaceUri(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn NamespaceUri(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IPrintSchemaElement {} @@ -2289,7 +2250,7 @@ impl IPrintSchemaElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Name, Impl: IPrintSchemaElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IPrintSchemaElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -2300,7 +2261,7 @@ impl IPrintSchemaElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn NamespaceUri, Impl: IPrintSchemaElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrnamespaceuri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn NamespaceUri, Impl: IPrintSchemaElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrnamespaceuri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.NamespaceUri() { @@ -2327,7 +2288,7 @@ pub trait IPrintSchemaFeature_Impl: Sized + super::super::System::Com::IDispatch fn SelectedOption(&self) -> ::windows::core::Result; fn SetSelectedOption(&self, poption: &::core::option::Option) -> ::windows::core::Result<()>; fn SelectionType(&self) -> ::windows::core::Result; - fn GetOption(&self, bstrname: &super::super::Foundation::BSTR, bstrnamespaceuri: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetOption(&self, bstrname: &::windows::core::BSTR, bstrnamespaceuri: &::windows::core::BSTR) -> ::windows::core::Result; fn DisplayUI(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2362,7 +2323,7 @@ impl IPrintSchemaFeature_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetOption, Impl: IPrintSchemaFeature_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, bstrnamespaceuri: ::core::mem::ManuallyDrop, ppoption: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetOption, Impl: IPrintSchemaFeature_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrnamespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppoption: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetOption(::core::mem::transmute(&bstrname), ::core::mem::transmute(&bstrnamespaceuri)) { @@ -2427,7 +2388,7 @@ impl IPrintSchemaNUpOption_Vtbl { pub trait IPrintSchemaOption_Impl: Sized + super::super::System::Com::IDispatch_Impl + IPrintSchemaElement_Impl + IPrintSchemaDisplayableElement_Impl { fn Selected(&self) -> ::windows::core::Result; fn Constrained(&self) -> ::windows::core::Result; - fn GetPropertyValue(&self, bstrname: &super::super::Foundation::BSTR, bstrnamespaceuri: &super::super::Foundation::BSTR) -> ::windows::core::Result<::windows::core::IUnknown>; + fn GetPropertyValue(&self, bstrname: &::windows::core::BSTR, bstrnamespaceuri: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::IUnknown>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IPrintSchemaOption {} @@ -2456,7 +2417,7 @@ impl IPrintSchemaOption_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetPropertyValue, Impl: IPrintSchemaOption_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, bstrnamespaceuri: ::core::mem::ManuallyDrop, ppxmlvaluenode: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPropertyValue, Impl: IPrintSchemaOption_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrnamespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppxmlvaluenode: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetPropertyValue(::core::mem::transmute(&bstrname), ::core::mem::transmute(&bstrnamespaceuri)) { @@ -2672,7 +2633,7 @@ impl IPrintSchemaPageMediaSizeOption_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IPrintSchemaParameterDefinition_Impl: Sized + super::super::System::Com::IDispatch_Impl + IPrintSchemaElement_Impl + IPrintSchemaDisplayableElement_Impl { fn UserInputRequired(&self) -> ::windows::core::Result; - fn UnitType(&self) -> ::windows::core::Result; + fn UnitType(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn DataType(&self) -> ::windows::core::Result; fn RangeMin(&self) -> ::windows::core::Result; fn RangeMax(&self) -> ::windows::core::Result; @@ -2693,7 +2654,7 @@ impl IPrintSchemaParameterDefinition_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn UnitType, Impl: IPrintSchemaParameterDefinition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrunittype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UnitType, Impl: IPrintSchemaParameterDefinition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrunittype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UnitType() { @@ -2788,8 +2749,8 @@ impl IPrintSchemaParameterInitializer_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IPrintSchemaTicket_Impl: Sized + super::super::System::Com::IDispatch_Impl + IPrintSchemaElement_Impl { - fn GetFeatureByKeyName(&self, bstrkeyname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetFeature(&self, bstrname: &super::super::Foundation::BSTR, bstrnamespaceuri: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetFeatureByKeyName(&self, bstrkeyname: &::windows::core::BSTR) -> ::windows::core::Result; + fn GetFeature(&self, bstrname: &::windows::core::BSTR, bstrnamespaceuri: &::windows::core::BSTR) -> ::windows::core::Result; fn ValidateAsync(&self) -> ::windows::core::Result; fn CommitAsync(&self, pprintticketcommit: &::core::option::Option) -> ::windows::core::Result; fn NotifyXmlChanged(&self) -> ::windows::core::Result<()>; @@ -2802,7 +2763,7 @@ impl ::windows::core::RuntimeName for IPrintSchemaTicket {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IPrintSchemaTicket_Vtbl { pub const fn new, Impl: IPrintSchemaTicket_Impl, const OFFSET: isize>() -> IPrintSchemaTicket_Vtbl { - unsafe extern "system" fn GetFeatureByKeyName, Impl: IPrintSchemaTicket_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrkeyname: ::core::mem::ManuallyDrop, ppfeature: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFeatureByKeyName, Impl: IPrintSchemaTicket_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrkeyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppfeature: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetFeatureByKeyName(::core::mem::transmute(&bstrkeyname)) { @@ -2813,7 +2774,7 @@ impl IPrintSchemaTicket_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetFeature, Impl: IPrintSchemaTicket_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, bstrnamespaceuri: ::core::mem::ManuallyDrop, ppfeature: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFeature, Impl: IPrintSchemaTicket_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrnamespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppfeature: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetFeature(::core::mem::transmute(&bstrname), ::core::mem::transmute(&bstrnamespaceuri)) { @@ -2896,14 +2857,14 @@ impl IPrintSchemaTicket_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IPrintSchemaTicket2_Impl: Sized + super::super::System::Com::IDispatch_Impl + IPrintSchemaElement_Impl + IPrintSchemaTicket_Impl { - fn GetParameterInitializer(&self, bstrname: &super::super::Foundation::BSTR, bstrnamespaceuri: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetParameterInitializer(&self, bstrname: &::windows::core::BSTR, bstrnamespaceuri: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IPrintSchemaTicket2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IPrintSchemaTicket2_Vtbl { pub const fn new, Impl: IPrintSchemaTicket2_Impl, const OFFSET: isize>() -> IPrintSchemaTicket2_Vtbl { - unsafe extern "system" fn GetParameterInitializer, Impl: IPrintSchemaTicket2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, bstrnamespaceuri: ::core::mem::ManuallyDrop, ppparameterinitializer: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetParameterInitializer, Impl: IPrintSchemaTicket2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrnamespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppparameterinitializer: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetParameterInitializer(::core::mem::transmute(&bstrname), ::core::mem::transmute(&bstrnamespaceuri)) { @@ -2923,8 +2884,8 @@ impl IPrintSchemaTicket2_Vtbl { #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] pub trait IPrintTicketProvider_Impl: Sized { fn GetSupportedVersions(&self, hprinter: super::super::Foundation::HANDLE, ppversions: *mut *mut i32, cversions: *mut i32) -> ::windows::core::Result<()>; - fn BindPrinter(&self, hprinter: super::super::Foundation::HANDLE, version: i32, poptions: *mut SHIMOPTS, pdevmodeflags: *mut u32, cnamespaces: *mut i32, ppnamespaces: *mut *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn QueryDeviceNamespace(&self, pdefaultnamespace: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn BindPrinter(&self, hprinter: super::super::Foundation::HANDLE, version: i32, poptions: *mut SHIMOPTS, pdevmodeflags: *mut u32, cnamespaces: *mut i32, ppnamespaces: *mut *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn QueryDeviceNamespace(&self, pdefaultnamespace: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn ConvertPrintTicketToDevMode(&self, pprintticket: &::core::option::Option, cbdevmodein: u32, pdevmodein: *mut super::Gdi::DEVMODEA, pcbdevmodeout: *mut u32, ppdevmodeout: *mut *mut super::Gdi::DEVMODEA) -> ::windows::core::Result<()>; fn ConvertDevModeToPrintTicket(&self, cbdevmode: u32, pdevmode: *mut super::Gdi::DEVMODEA, pprintticket: &::core::option::Option) -> ::windows::core::Result<()>; fn GetPrintCapabilities(&self, pprintticket: &::core::option::Option) -> ::windows::core::Result; @@ -2940,12 +2901,12 @@ impl IPrintTicketProvider_Vtbl { let this = (*this).get_impl(); this.GetSupportedVersions(::core::mem::transmute_copy(&hprinter), ::core::mem::transmute_copy(&ppversions), ::core::mem::transmute_copy(&cversions)).into() } - unsafe extern "system" fn BindPrinter, Impl: IPrintTicketProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hprinter: super::super::Foundation::HANDLE, version: i32, poptions: *mut SHIMOPTS, pdevmodeflags: *mut u32, cnamespaces: *mut i32, ppnamespaces: *mut *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn BindPrinter, Impl: IPrintTicketProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hprinter: super::super::Foundation::HANDLE, version: i32, poptions: *mut SHIMOPTS, pdevmodeflags: *mut u32, cnamespaces: *mut i32, ppnamespaces: *mut *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.BindPrinter(::core::mem::transmute_copy(&hprinter), ::core::mem::transmute_copy(&version), ::core::mem::transmute_copy(&poptions), ::core::mem::transmute_copy(&pdevmodeflags), ::core::mem::transmute_copy(&cnamespaces), ::core::mem::transmute_copy(&ppnamespaces)).into() } - unsafe extern "system" fn QueryDeviceNamespace, Impl: IPrintTicketProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdefaultnamespace: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn QueryDeviceNamespace, Impl: IPrintTicketProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdefaultnamespace: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.QueryDeviceNamespace(::core::mem::transmute_copy(&pdefaultnamespace)).into() @@ -3103,16 +3064,13 @@ impl IPrintWriteStreamFlush_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IPrinterBidiSetRequestCallback_Impl: Sized { - fn Completed(&self, bstrresponse: &super::super::Foundation::BSTR, hrstatus: ::windows::core::HRESULT) -> ::windows::core::Result<()>; + fn Completed(&self, bstrresponse: &::windows::core::BSTR, hrstatus: ::windows::core::HRESULT) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IPrinterBidiSetRequestCallback {} -#[cfg(feature = "Win32_Foundation")] impl IPrinterBidiSetRequestCallback_Vtbl { pub const fn new, Impl: IPrinterBidiSetRequestCallback_Impl, const OFFSET: isize>() -> IPrinterBidiSetRequestCallback_Vtbl { - unsafe extern "system" fn Completed, Impl: IPrinterBidiSetRequestCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrresponse: ::core::mem::ManuallyDrop, hrstatus: ::windows::core::HRESULT) -> ::windows::core::HRESULT { + unsafe extern "system" fn Completed, Impl: IPrinterBidiSetRequestCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrresponse: ::core::mem::ManuallyDrop<::windows::core::BSTR>, hrstatus: ::windows::core::HRESULT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Completed(::core::mem::transmute(&bstrresponse), ::core::mem::transmute_copy(&hrstatus)).into() @@ -3295,10 +3253,10 @@ impl IPrinterExtensionEvent_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IPrinterExtensionEventArgs_Impl: Sized + super::super::System::Com::IDispatch_Impl + IPrinterExtensionContext_Impl { - fn BidiNotification(&self) -> ::windows::core::Result; + fn BidiNotification(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn ReasonId(&self) -> ::windows::core::Result<::windows::core::GUID>; fn Request(&self) -> ::windows::core::Result; - fn SourceApplication(&self) -> ::windows::core::Result; + fn SourceApplication(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn DetailedReasonId(&self) -> ::windows::core::Result<::windows::core::GUID>; fn WindowModal(&self) -> ::windows::core::Result; fn WindowParent(&self) -> ::windows::core::Result; @@ -3308,7 +3266,7 @@ impl ::windows::core::RuntimeName for IPrinterExtensionEventArgs {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IPrinterExtensionEventArgs_Vtbl { pub const fn new, Impl: IPrinterExtensionEventArgs_Impl, const OFFSET: isize>() -> IPrinterExtensionEventArgs_Vtbl { - unsafe extern "system" fn BidiNotification, Impl: IPrinterExtensionEventArgs_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrbidinotification: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn BidiNotification, Impl: IPrinterExtensionEventArgs_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrbidinotification: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BidiNotification() { @@ -3341,7 +3299,7 @@ impl IPrinterExtensionEventArgs_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SourceApplication, Impl: IPrinterExtensionEventArgs_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrapplication: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SourceApplication, Impl: IPrinterExtensionEventArgs_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrapplication: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SourceApplication() { @@ -3429,7 +3387,7 @@ impl IPrinterExtensionManager_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IPrinterExtensionRequest_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Cancel(&self, hrstatus: ::windows::core::HRESULT, bstrlogmessage: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Cancel(&self, hrstatus: ::windows::core::HRESULT, bstrlogmessage: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Complete(&self) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3437,7 +3395,7 @@ impl ::windows::core::RuntimeName for IPrinterExtensionRequest {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IPrinterExtensionRequest_Vtbl { pub const fn new, Impl: IPrinterExtensionRequest_Impl, const OFFSET: isize>() -> IPrinterExtensionRequest_Vtbl { - unsafe extern "system" fn Cancel, Impl: IPrinterExtensionRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hrstatus: ::windows::core::HRESULT, bstrlogmessage: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Cancel, Impl: IPrinterExtensionRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hrstatus: ::windows::core::HRESULT, bstrlogmessage: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Cancel(::core::mem::transmute_copy(&hrstatus), ::core::mem::transmute(&bstrlogmessage)).into() @@ -3459,23 +3417,23 @@ impl IPrinterExtensionRequest_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IPrinterPropertyBag_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn GetBool(&self, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn SetBool(&self, bstrname: &super::super::Foundation::BSTR, bvalue: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; - fn GetInt32(&self, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn SetInt32(&self, bstrname: &super::super::Foundation::BSTR, nvalue: i32) -> ::windows::core::Result<()>; - fn GetString(&self, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn SetString(&self, bstrname: &super::super::Foundation::BSTR, bstrvalue: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetBytes(&self, bstrname: &super::super::Foundation::BSTR, pcbvalue: *mut u32, ppvalue: *mut *mut u8) -> ::windows::core::Result<()>; - fn SetBytes(&self, bstrname: &super::super::Foundation::BSTR, cbvalue: u32, pvalue: *const u8) -> ::windows::core::Result<()>; - fn GetReadStream(&self, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetWriteStream(&self, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetBool(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result; + fn SetBool(&self, bstrname: &::windows::core::BSTR, bvalue: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; + fn GetInt32(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result; + fn SetInt32(&self, bstrname: &::windows::core::BSTR, nvalue: i32) -> ::windows::core::Result<()>; + fn GetString(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetString(&self, bstrname: &::windows::core::BSTR, bstrvalue: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetBytes(&self, bstrname: &::windows::core::BSTR, pcbvalue: *mut u32, ppvalue: *mut *mut u8) -> ::windows::core::Result<()>; + fn SetBytes(&self, bstrname: &::windows::core::BSTR, cbvalue: u32, pvalue: *const u8) -> ::windows::core::Result<()>; + fn GetReadStream(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result; + fn GetWriteStream(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IPrinterPropertyBag {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IPrinterPropertyBag_Vtbl { pub const fn new, Impl: IPrinterPropertyBag_Impl, const OFFSET: isize>() -> IPrinterPropertyBag_Vtbl { - unsafe extern "system" fn GetBool, Impl: IPrinterPropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, pbvalue: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetBool, Impl: IPrinterPropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbvalue: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetBool(::core::mem::transmute(&bstrname)) { @@ -3486,12 +3444,12 @@ impl IPrinterPropertyBag_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetBool, Impl: IPrinterPropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, bvalue: super::super::Foundation::BOOL) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetBool, Impl: IPrinterPropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bvalue: super::super::Foundation::BOOL) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetBool(::core::mem::transmute(&bstrname), ::core::mem::transmute_copy(&bvalue)).into() } - unsafe extern "system" fn GetInt32, Impl: IPrinterPropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, pnvalue: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetInt32, Impl: IPrinterPropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pnvalue: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetInt32(::core::mem::transmute(&bstrname)) { @@ -3502,12 +3460,12 @@ impl IPrinterPropertyBag_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetInt32, Impl: IPrinterPropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, nvalue: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetInt32, Impl: IPrinterPropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, nvalue: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetInt32(::core::mem::transmute(&bstrname), ::core::mem::transmute_copy(&nvalue)).into() } - unsafe extern "system" fn GetString, Impl: IPrinterPropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, pbstrvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetString, Impl: IPrinterPropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetString(::core::mem::transmute(&bstrname)) { @@ -3518,22 +3476,22 @@ impl IPrinterPropertyBag_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetString, Impl: IPrinterPropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, bstrvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetString, Impl: IPrinterPropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetString(::core::mem::transmute(&bstrname), ::core::mem::transmute(&bstrvalue)).into() } - unsafe extern "system" fn GetBytes, Impl: IPrinterPropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, pcbvalue: *mut u32, ppvalue: *mut *mut u8) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetBytes, Impl: IPrinterPropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcbvalue: *mut u32, ppvalue: *mut *mut u8) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetBytes(::core::mem::transmute(&bstrname), ::core::mem::transmute_copy(&pcbvalue), ::core::mem::transmute_copy(&ppvalue)).into() } - unsafe extern "system" fn SetBytes, Impl: IPrinterPropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, cbvalue: u32, pvalue: *const u8) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetBytes, Impl: IPrinterPropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, cbvalue: u32, pvalue: *const u8) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetBytes(::core::mem::transmute(&bstrname), ::core::mem::transmute_copy(&cbvalue), ::core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn GetReadStream, Impl: IPrinterPropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetReadStream, Impl: IPrinterPropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetReadStream(::core::mem::transmute(&bstrname)) { @@ -3544,7 +3502,7 @@ impl IPrinterPropertyBag_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetWriteStream, Impl: IPrinterPropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetWriteStream, Impl: IPrinterPropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetWriteStream(::core::mem::transmute(&bstrname)) { @@ -3576,8 +3534,8 @@ impl IPrinterPropertyBag_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IPrinterQueue_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn Handle(&self) -> ::windows::core::Result; - fn Name(&self) -> ::windows::core::Result; - fn SendBidiQuery(&self, bstrbidiquery: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SendBidiQuery(&self, bstrbidiquery: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetProperties(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3596,7 +3554,7 @@ impl IPrinterQueue_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Name, Impl: IPrinterQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IPrinterQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -3607,7 +3565,7 @@ impl IPrinterQueue_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SendBidiQuery, Impl: IPrinterQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrbidiquery: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SendBidiQuery, Impl: IPrinterQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrbidiquery: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SendBidiQuery(::core::mem::transmute(&bstrbidiquery)).into() @@ -3637,7 +3595,7 @@ impl IPrinterQueue_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IPrinterQueue2_Impl: Sized + super::super::System::Com::IDispatch_Impl + IPrinterQueue_Impl { - fn SendBidiSetRequestAsync(&self, bstrbidirequest: &super::super::Foundation::BSTR, pcallback: &::core::option::Option) -> ::windows::core::Result; + fn SendBidiSetRequestAsync(&self, bstrbidirequest: &::windows::core::BSTR, pcallback: &::core::option::Option) -> ::windows::core::Result; fn GetPrinterQueueView(&self, ulviewoffset: u32, ulviewsize: u32) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3645,7 +3603,7 @@ impl ::windows::core::RuntimeName for IPrinterQueue2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IPrinterQueue2_Vtbl { pub const fn new, Impl: IPrinterQueue2_Impl, const OFFSET: isize>() -> IPrinterQueue2_Vtbl { - unsafe extern "system" fn SendBidiSetRequestAsync, Impl: IPrinterQueue2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrbidirequest: ::core::mem::ManuallyDrop, pcallback: *mut ::core::ffi::c_void, ppasyncoperation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn SendBidiSetRequestAsync, Impl: IPrinterQueue2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrbidirequest: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcallback: *mut ::core::ffi::c_void, ppasyncoperation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SendBidiSetRequestAsync(::core::mem::transmute(&bstrbidirequest), ::core::mem::transmute(&pcallback)) { @@ -3679,14 +3637,14 @@ impl IPrinterQueue2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IPrinterQueueEvent_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn OnBidiResponseReceived(&self, bstrresponse: &super::super::Foundation::BSTR, hrstatus: ::windows::core::HRESULT) -> ::windows::core::Result<()>; + fn OnBidiResponseReceived(&self, bstrresponse: &::windows::core::BSTR, hrstatus: ::windows::core::HRESULT) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IPrinterQueueEvent {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IPrinterQueueEvent_Vtbl { pub const fn new, Impl: IPrinterQueueEvent_Impl, const OFFSET: isize>() -> IPrinterQueueEvent_Vtbl { - unsafe extern "system" fn OnBidiResponseReceived, Impl: IPrinterQueueEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrresponse: ::core::mem::ManuallyDrop, hrstatus: ::windows::core::HRESULT) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnBidiResponseReceived, Impl: IPrinterQueueEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrresponse: ::core::mem::ManuallyDrop<::windows::core::BSTR>, hrstatus: ::windows::core::HRESULT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnBidiResponseReceived(::core::mem::transmute(&bstrresponse), ::core::mem::transmute_copy(&hrstatus)).into() @@ -3797,23 +3755,23 @@ impl IPrinterScriptContext_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IPrinterScriptablePropertyBag_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn GetBool(&self, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn SetBool(&self, bstrname: &super::super::Foundation::BSTR, bvalue: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; - fn GetInt32(&self, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn SetInt32(&self, bstrname: &super::super::Foundation::BSTR, nvalue: i32) -> ::windows::core::Result<()>; - fn GetString(&self, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn SetString(&self, bstrname: &super::super::Foundation::BSTR, bstrvalue: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetBytes(&self, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn SetBytes(&self, bstrname: &super::super::Foundation::BSTR, parray: &::core::option::Option) -> ::windows::core::Result<()>; - fn GetReadStream(&self, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetWriteStream(&self, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetBool(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result; + fn SetBool(&self, bstrname: &::windows::core::BSTR, bvalue: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; + fn GetInt32(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result; + fn SetInt32(&self, bstrname: &::windows::core::BSTR, nvalue: i32) -> ::windows::core::Result<()>; + fn GetString(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetString(&self, bstrname: &::windows::core::BSTR, bstrvalue: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetBytes(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result; + fn SetBytes(&self, bstrname: &::windows::core::BSTR, parray: &::core::option::Option) -> ::windows::core::Result<()>; + fn GetReadStream(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result; + fn GetWriteStream(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IPrinterScriptablePropertyBag {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IPrinterScriptablePropertyBag_Vtbl { pub const fn new, Impl: IPrinterScriptablePropertyBag_Impl, const OFFSET: isize>() -> IPrinterScriptablePropertyBag_Vtbl { - unsafe extern "system" fn GetBool, Impl: IPrinterScriptablePropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, pbvalue: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetBool, Impl: IPrinterScriptablePropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbvalue: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetBool(::core::mem::transmute(&bstrname)) { @@ -3824,12 +3782,12 @@ impl IPrinterScriptablePropertyBag_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetBool, Impl: IPrinterScriptablePropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, bvalue: super::super::Foundation::BOOL) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetBool, Impl: IPrinterScriptablePropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bvalue: super::super::Foundation::BOOL) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetBool(::core::mem::transmute(&bstrname), ::core::mem::transmute_copy(&bvalue)).into() } - unsafe extern "system" fn GetInt32, Impl: IPrinterScriptablePropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, pnvalue: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetInt32, Impl: IPrinterScriptablePropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pnvalue: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetInt32(::core::mem::transmute(&bstrname)) { @@ -3840,12 +3798,12 @@ impl IPrinterScriptablePropertyBag_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetInt32, Impl: IPrinterScriptablePropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, nvalue: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetInt32, Impl: IPrinterScriptablePropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, nvalue: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetInt32(::core::mem::transmute(&bstrname), ::core::mem::transmute_copy(&nvalue)).into() } - unsafe extern "system" fn GetString, Impl: IPrinterScriptablePropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, pbstrvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetString, Impl: IPrinterScriptablePropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetString(::core::mem::transmute(&bstrname)) { @@ -3856,12 +3814,12 @@ impl IPrinterScriptablePropertyBag_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetString, Impl: IPrinterScriptablePropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, bstrvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetString, Impl: IPrinterScriptablePropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetString(::core::mem::transmute(&bstrname), ::core::mem::transmute(&bstrvalue)).into() } - unsafe extern "system" fn GetBytes, Impl: IPrinterScriptablePropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, pparray: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetBytes, Impl: IPrinterScriptablePropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pparray: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetBytes(::core::mem::transmute(&bstrname)) { @@ -3872,12 +3830,12 @@ impl IPrinterScriptablePropertyBag_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetBytes, Impl: IPrinterScriptablePropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, parray: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetBytes, Impl: IPrinterScriptablePropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, parray: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetBytes(::core::mem::transmute(&bstrname), ::core::mem::transmute(&parray)).into() } - unsafe extern "system" fn GetReadStream, Impl: IPrinterScriptablePropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, ppstream: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetReadStream, Impl: IPrinterScriptablePropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppstream: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetReadStream(::core::mem::transmute(&bstrname)) { @@ -3888,7 +3846,7 @@ impl IPrinterScriptablePropertyBag_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetWriteStream, Impl: IPrinterScriptablePropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, ppstream: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetWriteStream, Impl: IPrinterScriptablePropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppstream: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetWriteStream(::core::mem::transmute(&bstrname)) { @@ -3919,14 +3877,14 @@ impl IPrinterScriptablePropertyBag_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IPrinterScriptablePropertyBag2_Impl: Sized + super::super::System::Com::IDispatch_Impl + IPrinterScriptablePropertyBag_Impl { - fn GetReadStreamAsXML(&self, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result<::windows::core::IUnknown>; + fn GetReadStreamAsXML(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::IUnknown>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IPrinterScriptablePropertyBag2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IPrinterScriptablePropertyBag2_Vtbl { pub const fn new, Impl: IPrinterScriptablePropertyBag2_Impl, const OFFSET: isize>() -> IPrinterScriptablePropertyBag2_Vtbl { - unsafe extern "system" fn GetReadStreamAsXML, Impl: IPrinterScriptablePropertyBag2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, ppxmlnode: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetReadStreamAsXML, Impl: IPrinterScriptablePropertyBag2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppxmlnode: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetReadStreamAsXML(::core::mem::transmute(&bstrname)) { @@ -4149,7 +4107,7 @@ impl IXpsDocumentProvider_Vtbl { #[cfg(feature = "Win32_Foundation")] pub trait IXpsPartIterator_Impl: Sized { fn Reset(&self); - fn Current(&self, puri: *mut super::super::Foundation::BSTR, ppxpspart: *mut ::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result<()>; + fn Current(&self, puri: *mut ::windows::core::BSTR, ppxpspart: *mut ::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result<()>; fn IsDone(&self) -> super::super::Foundation::BOOL; fn Next(&self); } @@ -4163,7 +4121,7 @@ impl IXpsPartIterator_Vtbl { let this = (*this).get_impl(); this.Reset() } - unsafe extern "system" fn Current, Impl: IXpsPartIterator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, puri: *mut super::super::Foundation::BSTR, ppxpspart: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Current, Impl: IXpsPartIterator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, puri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppxpspart: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Current(::core::mem::transmute_copy(&puri), ::core::mem::transmute_copy(&ppxpspart)).into() diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Printing/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Printing/mod.rs index 405c80bfc3..f532afa421 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Printing/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Printing/mod.rs @@ -3332,14 +3332,9 @@ impl IBidiSpl2 { pub unsafe fn UnbindDevice(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).UnbindDevice)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SendRecvXMLString<'a, P0>(&self, bstrrequest: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn SendRecvXMLString(&self, bstrrequest: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SendRecvXMLString)(::windows::core::Interface::as_raw(self), bstrrequest.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SendRecvXMLString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrequest), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3392,10 +3387,7 @@ pub struct IBidiSpl2_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub BindDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszdevicename: ::windows::core::PCWSTR, dwaccess: u32) -> ::windows::core::HRESULT, pub UnbindDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SendRecvXMLString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrequest: ::core::mem::ManuallyDrop, pbstrresponse: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SendRecvXMLString: usize, + pub SendRecvXMLString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrequest: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrresponse: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub SendRecvXMLStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psrequest: *mut ::core::ffi::c_void, ppsresponse: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -3405,11 +3397,9 @@ pub struct IBidiSpl2_Vtbl { #[repr(transparent)] pub struct IFixedDocument(::windows::core::IUnknown); impl IFixedDocument { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetUri(&self) -> ::windows::core::Result { + pub unsafe fn GetUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetPrintTicket(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3461,10 +3451,7 @@ unsafe impl ::windows::core::Interface for IFixedDocument { #[doc(hidden)] pub struct IFixedDocument_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetUri: usize, + pub GetUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetPrintTicket: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppprintticket: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub SetPrintTicket: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprintticket: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } @@ -3472,11 +3459,9 @@ pub struct IFixedDocument_Vtbl { #[repr(transparent)] pub struct IFixedDocumentSequence(::windows::core::IUnknown); impl IFixedDocumentSequence { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetUri(&self) -> ::windows::core::Result { + pub unsafe fn GetUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetPrintTicket(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3528,10 +3513,7 @@ unsafe impl ::windows::core::Interface for IFixedDocumentSequence { #[doc(hidden)] pub struct IFixedDocumentSequence_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetUri: usize, + pub GetUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetPrintTicket: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppprintticket: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub SetPrintTicket: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprintticket: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } @@ -3539,11 +3521,9 @@ pub struct IFixedDocumentSequence_Vtbl { #[repr(transparent)] pub struct IFixedPage(::windows::core::IUnknown); impl IFixedPage { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetUri(&self) -> ::windows::core::Result { + pub unsafe fn GetUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetStream(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3696,8 +3676,6 @@ impl IImgCreateErrorInfo { pub unsafe fn SetHelpContext(&self, dwhelpcontext: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetHelpContext)(::windows::core::Interface::as_raw(self), dwhelpcontext).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn AttachToErrorInfo(&self, perrorinfo: &mut ImgErrorInfo) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).AttachToErrorInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(perrorinfo)).ok() } @@ -3768,10 +3746,7 @@ unsafe impl ::windows::core::Interface for IImgCreateErrorInfo { #[doc(hidden)] pub struct IImgCreateErrorInfo_Vtbl { pub base__: super::super::System::Ole::ICreateErrorInfo_Vtbl, - #[cfg(feature = "Win32_Foundation")] pub AttachToErrorInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, perrorinfo: *mut ImgErrorInfo) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AttachToErrorInfo: usize, } #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3785,23 +3760,23 @@ impl IImgErrorInfo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetGUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetSource(&self) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetSource(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetSource)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetSource)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetDescription(&self) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetHelpFile(&self) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetHelpFile(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetHelpFile)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetHelpFile)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3809,11 +3784,9 @@ impl IImgErrorInfo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetHelpContext)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDeveloperDescription(&self) -> ::windows::core::Result { + pub unsafe fn GetDeveloperDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDeveloperDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDeveloperDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetUserErrorId(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3823,24 +3796,18 @@ impl IImgErrorInfo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetUserParameterCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetUserParameter(&self, cparam: u32) -> ::windows::core::Result { + pub unsafe fn GetUserParameter(&self, cparam: u32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetUserParameter)(::windows::core::Interface::as_raw(self), cparam, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetUserParameter)(::windows::core::Interface::as_raw(self), cparam, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetUserFallback(&self) -> ::windows::core::Result { + pub unsafe fn GetUserFallback(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetUserFallback)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetUserFallback)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetExceptionId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetExceptionId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn DetachErrorInfo(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).DetachErrorInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) @@ -3912,25 +3879,13 @@ unsafe impl ::windows::core::Interface for IImgErrorInfo { #[doc(hidden)] pub struct IImgErrorInfo_Vtbl { pub base__: super::super::System::Com::IErrorInfo_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetDeveloperDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdevdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDeveloperDescription: usize, + pub GetDeveloperDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdevdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetUserErrorId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, perrorid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, pub GetUserParameterCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcuserparams: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetUserParameter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cparam: u32, pbstrparam: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetUserParameter: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetUserFallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfallback: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetUserFallback: usize, + pub GetUserParameter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cparam: u32, pbstrparam: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetUserFallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfallback: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetExceptionId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pexceptionid: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] pub DetachErrorInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, perrorinfo: *mut ImgErrorInfo) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DetachErrorInfo: usize, } #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] #[repr(transparent)] @@ -3989,11 +3944,9 @@ pub struct IInterFilterCommunicator_Vtbl { #[repr(transparent)] pub struct IPartBase(::windows::core::IUnknown); impl IPartBase { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetUri(&self) -> ::windows::core::Result { + pub unsafe fn GetUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetStream(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4046,10 +3999,7 @@ unsafe impl ::windows::core::Interface for IPartBase { #[doc(hidden)] pub struct IPartBase_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetUri: usize, + pub GetUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppstream: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetPartCompression: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcompression: *mut EXpsCompressionOptions) -> ::windows::core::HRESULT, pub SetPartCompression: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, compression: EXpsCompressionOptions) -> ::windows::core::HRESULT, @@ -4058,11 +4008,9 @@ pub struct IPartBase_Vtbl { #[repr(transparent)] pub struct IPartColorProfile(::windows::core::IUnknown); impl IPartColorProfile { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetUri(&self) -> ::windows::core::Result { + pub unsafe fn GetUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetStream(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4135,9 +4083,7 @@ pub struct IPartColorProfile_Vtbl { #[repr(transparent)] pub struct IPartDiscardControl(::windows::core::IUnknown); impl IPartDiscardControl { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDiscardProperties(&self, urisentinelpage: &mut super::super::Foundation::BSTR, uriparttodiscard: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetDiscardProperties(&self, urisentinelpage: &mut ::windows::core::BSTR, uriparttodiscard: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetDiscardProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(urisentinelpage), ::core::mem::transmute(uriparttodiscard)).ok() } } @@ -4180,20 +4126,15 @@ unsafe impl ::windows::core::Interface for IPartDiscardControl { #[doc(hidden)] pub struct IPartDiscardControl_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetDiscardProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, urisentinelpage: *mut super::super::Foundation::BSTR, uriparttodiscard: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDiscardProperties: usize, + pub GetDiscardProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, urisentinelpage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, uriparttodiscard: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] #[repr(transparent)] pub struct IPartFont(::windows::core::IUnknown); impl IPartFont { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetUri(&self) -> ::windows::core::Result { + pub unsafe fn GetUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetStream(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4206,9 +4147,7 @@ impl IPartFont { pub unsafe fn SetPartCompression(&self, compression: EXpsCompressionOptions) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetPartCompression)(::windows::core::Interface::as_raw(self), compression).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetFontProperties(&self, pcontenttype: &mut super::super::Foundation::BSTR, pfontoptions: &mut EXpsFontOptions) -> ::windows::core::Result<()> { + pub unsafe fn GetFontProperties(&self, pcontenttype: &mut ::windows::core::BSTR, pfontoptions: &mut EXpsFontOptions) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetFontProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pcontenttype), ::core::mem::transmute(pfontoptions)).ok() } pub unsafe fn SetFontContent<'a, P0>(&self, pcontenttype: P0) -> ::windows::core::Result<()> @@ -4275,10 +4214,7 @@ unsafe impl ::windows::core::Interface for IPartFont { #[doc(hidden)] pub struct IPartFont_Vtbl { pub base__: IPartBase_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetFontProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontenttype: *mut super::super::Foundation::BSTR, pfontoptions: *mut EXpsFontOptions) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetFontProperties: usize, + pub GetFontProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontenttype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfontoptions: *mut EXpsFontOptions) -> ::windows::core::HRESULT, pub SetFontContent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontenttype: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, pub SetFontOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: EXpsFontOptions) -> ::windows::core::HRESULT, } @@ -4286,11 +4222,9 @@ pub struct IPartFont_Vtbl { #[repr(transparent)] pub struct IPartFont2(::windows::core::IUnknown); impl IPartFont2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetUri(&self) -> ::windows::core::Result { + pub unsafe fn GetUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetStream(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4303,9 +4237,7 @@ impl IPartFont2 { pub unsafe fn SetPartCompression(&self, compression: EXpsCompressionOptions) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.SetPartCompression)(::windows::core::Interface::as_raw(self), compression).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetFontProperties(&self, pcontenttype: &mut super::super::Foundation::BSTR, pfontoptions: &mut EXpsFontOptions) -> ::windows::core::Result<()> { + pub unsafe fn GetFontProperties(&self, pcontenttype: &mut ::windows::core::BSTR, pfontoptions: &mut EXpsFontOptions) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetFontProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pcontenttype), ::core::mem::transmute(pfontoptions)).ok() } pub unsafe fn SetFontContent<'a, P0>(&self, pcontenttype: P0) -> ::windows::core::Result<()> @@ -4397,11 +4329,9 @@ pub struct IPartFont2_Vtbl { #[repr(transparent)] pub struct IPartImage(::windows::core::IUnknown); impl IPartImage { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetUri(&self) -> ::windows::core::Result { + pub unsafe fn GetUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetStream(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4414,11 +4344,9 @@ impl IPartImage { pub unsafe fn SetPartCompression(&self, compression: EXpsCompressionOptions) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetPartCompression)(::windows::core::Interface::as_raw(self), compression).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetImageProperties(&self) -> ::windows::core::Result { + pub unsafe fn GetImageProperties(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetImageProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetImageProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetImageContent<'a, P0>(&self, pcontenttype: P0) -> ::windows::core::Result<()> where @@ -4481,21 +4409,16 @@ unsafe impl ::windows::core::Interface for IPartImage { #[doc(hidden)] pub struct IPartImage_Vtbl { pub base__: IPartBase_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetImageProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontenttype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetImageProperties: usize, + pub GetImageProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontenttype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetImageContent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontenttype: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] #[repr(transparent)] pub struct IPartPrintTicket(::windows::core::IUnknown); impl IPartPrintTicket { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetUri(&self) -> ::windows::core::Result { + pub unsafe fn GetUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetStream(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4568,11 +4491,9 @@ pub struct IPartPrintTicket_Vtbl { #[repr(transparent)] pub struct IPartResourceDictionary(::windows::core::IUnknown); impl IPartResourceDictionary { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetUri(&self) -> ::windows::core::Result { + pub unsafe fn GetUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetStream(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4645,11 +4566,9 @@ pub struct IPartResourceDictionary_Vtbl { #[repr(transparent)] pub struct IPartThumbnail(::windows::core::IUnknown); impl IPartThumbnail { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetUri(&self) -> ::windows::core::Result { + pub unsafe fn GetUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetStream(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4662,11 +4581,9 @@ impl IPartThumbnail { pub unsafe fn SetPartCompression(&self, compression: EXpsCompressionOptions) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetPartCompression)(::windows::core::Interface::as_raw(self), compression).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetThumbnailProperties(&self) -> ::windows::core::Result { + pub unsafe fn GetThumbnailProperties(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetThumbnailProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetThumbnailProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetThumbnailContent<'a, P0>(&self, pcontenttype: P0) -> ::windows::core::Result<()> where @@ -4729,10 +4646,7 @@ unsafe impl ::windows::core::Interface for IPartThumbnail { #[doc(hidden)] pub struct IPartThumbnail_Vtbl { pub base__: IPartBase_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetThumbnailProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontenttype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetThumbnailProperties: usize, + pub GetThumbnailProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontenttype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetThumbnailContent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontenttype: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] @@ -6108,11 +6022,9 @@ pub struct IPrintCoreUI2_Vtbl { #[repr(transparent)] pub struct IPrintJob(::windows::core::IUnknown); impl IPrintJob { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Id(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6177,10 +6089,7 @@ unsafe impl ::windows::core::Interface for IPrintJob { #[doc(hidden)] pub struct IPrintJob_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulid: *mut u32) -> ::windows::core::HRESULT, pub PrintedPages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulpages: *mut u32) -> ::windows::core::HRESULT, pub TotalPages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulpages: *mut u32) -> ::windows::core::HRESULT, @@ -7492,36 +7401,25 @@ impl IPrintSchemaCapabilities { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.XmlNode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NamespaceUri(&self) -> ::windows::core::Result { + pub unsafe fn NamespaceUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.NamespaceUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.NamespaceUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetFeatureByKeyName<'a, P0>(&self, bstrkeyname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetFeatureByKeyName(&self, bstrkeyname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetFeatureByKeyName)(::windows::core::Interface::as_raw(self), bstrkeyname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetFeatureByKeyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrkeyname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetFeature<'a, P0, P1>(&self, bstrname: P0, bstrnamespaceuri: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetFeature(&self, bstrname: &::windows::core::BSTR, bstrnamespaceuri: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetFeature)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), bstrnamespaceuri.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetFeature)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute_copy(bstrnamespaceuri), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7640,13 +7538,13 @@ unsafe impl ::windows::core::Interface for IPrintSchemaCapabilities { #[doc(hidden)] pub struct IPrintSchemaCapabilities_Vtbl { pub base__: IPrintSchemaElement_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetFeatureByKeyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrkeyname: ::core::mem::ManuallyDrop, ppfeature: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetFeatureByKeyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrkeyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppfeature: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetFeatureByKeyName: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, bstrnamespaceuri: ::core::mem::ManuallyDrop, ppfeature: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrnamespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppfeature: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetFeature: usize, #[cfg(feature = "Win32_System_Com")] pub PageImageableSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pppageimageablesize: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -7673,36 +7571,25 @@ impl IPrintSchemaCapabilities2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.XmlNode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NamespaceUri(&self) -> ::windows::core::Result { + pub unsafe fn NamespaceUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.NamespaceUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.NamespaceUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetFeatureByKeyName<'a, P0>(&self, bstrkeyname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetFeatureByKeyName(&self, bstrkeyname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetFeatureByKeyName)(::windows::core::Interface::as_raw(self), bstrkeyname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetFeatureByKeyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrkeyname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetFeature<'a, P0, P1>(&self, bstrname: P0, bstrnamespaceuri: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetFeature(&self, bstrname: &::windows::core::BSTR, bstrnamespaceuri: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetFeature)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), bstrnamespaceuri.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetFeature)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute_copy(bstrnamespaceuri), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7736,15 +7623,11 @@ impl IPrintSchemaCapabilities2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetOptions)(::windows::core::Interface::as_raw(self), pfeature.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetParameterDefinition<'a, P0, P1>(&self, bstrname: P0, bstrnamespaceuri: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetParameterDefinition(&self, bstrname: &::windows::core::BSTR, bstrnamespaceuri: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetParameterDefinition)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), bstrnamespaceuri.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetParameterDefinition)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute_copy(bstrnamespaceuri), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -7849,9 +7732,9 @@ unsafe impl ::windows::core::Interface for IPrintSchemaCapabilities2 { #[doc(hidden)] pub struct IPrintSchemaCapabilities2_Vtbl { pub base__: IPrintSchemaCapabilities_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetParameterDefinition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, bstrnamespaceuri: ::core::mem::ManuallyDrop, ppparameterdefinition: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetParameterDefinition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrnamespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppparameterdefinition: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetParameterDefinition: usize, } #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_System_Com\"`*"] @@ -7864,23 +7747,17 @@ impl IPrintSchemaDisplayableElement { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.XmlNode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NamespaceUri(&self) -> ::windows::core::Result { + pub unsafe fn NamespaceUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.NamespaceUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.NamespaceUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisplayName(&self) -> ::windows::core::Result { + pub unsafe fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -7967,10 +7844,7 @@ unsafe impl ::windows::core::Interface for IPrintSchemaDisplayableElement { #[doc(hidden)] pub struct IPrintSchemaDisplayableElement_Vtbl { pub base__: IPrintSchemaElement_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdisplayname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DisplayName: usize, + pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdisplayname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7982,17 +7856,13 @@ impl IPrintSchemaElement { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).XmlNode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NamespaceUri(&self) -> ::windows::core::Result { + pub unsafe fn NamespaceUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).NamespaceUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).NamespaceUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -8062,14 +7932,8 @@ unsafe impl ::windows::core::Interface for IPrintSchemaElement { pub struct IPrintSchemaElement_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub XmlNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppxmlnode: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub NamespaceUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrnamespaceuri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - NamespaceUri: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub NamespaceUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrnamespaceuri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -8081,23 +7945,17 @@ impl IPrintSchemaFeature { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.XmlNode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NamespaceUri(&self) -> ::windows::core::Result { + pub unsafe fn NamespaceUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.NamespaceUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.NamespaceUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisplayName(&self) -> ::windows::core::Result { + pub unsafe fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -8117,15 +7975,11 @@ impl IPrintSchemaFeature { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).SelectionType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetOption<'a, P0, P1>(&self, bstrname: P0, bstrnamespaceuri: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetOption(&self, bstrname: &::windows::core::BSTR, bstrnamespaceuri: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetOption)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), bstrnamespaceuri.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetOption)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute_copy(bstrnamespaceuri), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -8245,9 +8099,9 @@ pub struct IPrintSchemaFeature_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetSelectedOption: usize, pub SelectionType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pselectiontype: *mut PrintSchemaSelectionType) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetOption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, bstrnamespaceuri: ::core::mem::ManuallyDrop, ppoption: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetOption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrnamespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppoption: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetOption: usize, #[cfg(feature = "Win32_Foundation")] pub DisplayUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbshow: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, @@ -8264,23 +8118,17 @@ impl IPrintSchemaNUpOption { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.XmlNode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NamespaceUri(&self) -> ::windows::core::Result { + pub unsafe fn NamespaceUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.NamespaceUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.NamespaceUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisplayName(&self) -> ::windows::core::Result { + pub unsafe fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -8292,15 +8140,9 @@ impl IPrintSchemaNUpOption { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Constrained)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPropertyValue<'a, P0, P1>(&self, bstrname: P0, bstrnamespaceuri: P1) -> ::windows::core::Result<::windows::core::IUnknown> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetPropertyValue(&self, bstrname: &::windows::core::BSTR, bstrnamespaceuri: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetPropertyValue)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), bstrnamespaceuri.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) + (::windows::core::Interface::vtable(self).base__.GetPropertyValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute_copy(bstrnamespaceuri), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } pub unsafe fn PagesPerSheet(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -8439,23 +8281,17 @@ impl IPrintSchemaOption { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.XmlNode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NamespaceUri(&self) -> ::windows::core::Result { + pub unsafe fn NamespaceUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.NamespaceUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.NamespaceUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisplayName(&self) -> ::windows::core::Result { + pub unsafe fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -8467,15 +8303,9 @@ impl IPrintSchemaOption { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Constrained)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPropertyValue<'a, P0, P1>(&self, bstrname: P0, bstrnamespaceuri: P1) -> ::windows::core::Result<::windows::core::IUnknown> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetPropertyValue(&self, bstrname: &::windows::core::BSTR, bstrnamespaceuri: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetPropertyValue)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), bstrnamespaceuri.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) + (::windows::core::Interface::vtable(self).GetPropertyValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute_copy(bstrnamespaceuri), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -8585,10 +8415,7 @@ pub struct IPrintSchemaOption_Vtbl { #[cfg(not(feature = "Win32_Foundation"))] Selected: usize, pub Constrained: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psetting: *mut PrintSchemaConstrainedSetting) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetPropertyValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, bstrnamespaceuri: ::core::mem::ManuallyDrop, ppxmlvaluenode: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPropertyValue: usize, + pub GetPropertyValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrnamespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppxmlvaluenode: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -8694,17 +8521,13 @@ impl IPrintSchemaPageImageableSize { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.XmlNode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NamespaceUri(&self) -> ::windows::core::Result { + pub unsafe fn NamespaceUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.NamespaceUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.NamespaceUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn ImageableSizeWidthInMicrons(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -8832,23 +8655,17 @@ impl IPrintSchemaPageMediaSizeOption { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.XmlNode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NamespaceUri(&self) -> ::windows::core::Result { + pub unsafe fn NamespaceUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.NamespaceUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.NamespaceUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisplayName(&self) -> ::windows::core::Result { + pub unsafe fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -8860,15 +8677,9 @@ impl IPrintSchemaPageMediaSizeOption { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Constrained)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPropertyValue<'a, P0, P1>(&self, bstrname: P0, bstrnamespaceuri: P1) -> ::windows::core::Result<::windows::core::IUnknown> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetPropertyValue(&self, bstrname: &::windows::core::BSTR, bstrnamespaceuri: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetPropertyValue)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), bstrnamespaceuri.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) + (::windows::core::Interface::vtable(self).base__.GetPropertyValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute_copy(bstrnamespaceuri), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } pub unsafe fn WidthInMicrons(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -9012,23 +8823,17 @@ impl IPrintSchemaParameterDefinition { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.XmlNode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NamespaceUri(&self) -> ::windows::core::Result { + pub unsafe fn NamespaceUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.NamespaceUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.NamespaceUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisplayName(&self) -> ::windows::core::Result { + pub unsafe fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -9036,11 +8841,9 @@ impl IPrintSchemaParameterDefinition { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).UserInputRequired)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UnitType(&self) -> ::windows::core::Result { + pub unsafe fn UnitType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UnitType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UnitType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn DataType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -9161,10 +8964,7 @@ pub struct IPrintSchemaParameterDefinition_Vtbl { pub UserInputRequired: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbisrequired: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] UserInputRequired: usize, - #[cfg(feature = "Win32_Foundation")] - pub UnitType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrunittype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UnitType: usize, + pub UnitType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrunittype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub DataType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdatatype: *mut PrintSchemaParameterDataType) -> ::windows::core::HRESULT, pub RangeMin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prangemin: *mut i32) -> ::windows::core::HRESULT, pub RangeMax: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prangemax: *mut i32) -> ::windows::core::HRESULT, @@ -9179,17 +8979,13 @@ impl IPrintSchemaParameterInitializer { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.XmlNode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NamespaceUri(&self) -> ::windows::core::Result { + pub unsafe fn NamespaceUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.NamespaceUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.NamespaceUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -9306,36 +9102,25 @@ impl IPrintSchemaTicket { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.XmlNode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NamespaceUri(&self) -> ::windows::core::Result { + pub unsafe fn NamespaceUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.NamespaceUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.NamespaceUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetFeatureByKeyName<'a, P0>(&self, bstrkeyname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetFeatureByKeyName(&self, bstrkeyname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetFeatureByKeyName)(::windows::core::Interface::as_raw(self), bstrkeyname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetFeatureByKeyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrkeyname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetFeature<'a, P0, P1>(&self, bstrname: P0, bstrnamespaceuri: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetFeature(&self, bstrname: &::windows::core::BSTR, bstrnamespaceuri: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetFeature)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), bstrnamespaceuri.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetFeature)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute_copy(bstrnamespaceuri), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9453,13 +9238,13 @@ unsafe impl ::windows::core::Interface for IPrintSchemaTicket { #[doc(hidden)] pub struct IPrintSchemaTicket_Vtbl { pub base__: IPrintSchemaElement_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetFeatureByKeyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrkeyname: ::core::mem::ManuallyDrop, ppfeature: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetFeatureByKeyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrkeyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppfeature: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetFeatureByKeyName: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, bstrnamespaceuri: ::core::mem::ManuallyDrop, ppfeature: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetFeature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrnamespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppfeature: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetFeature: usize, #[cfg(feature = "Win32_System_Com")] pub ValidateAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppasyncoperation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -9487,36 +9272,25 @@ impl IPrintSchemaTicket2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.XmlNode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NamespaceUri(&self) -> ::windows::core::Result { + pub unsafe fn NamespaceUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.NamespaceUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.NamespaceUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetFeatureByKeyName<'a, P0>(&self, bstrkeyname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetFeatureByKeyName(&self, bstrkeyname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetFeatureByKeyName)(::windows::core::Interface::as_raw(self), bstrkeyname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetFeatureByKeyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrkeyname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetFeature<'a, P0, P1>(&self, bstrname: P0, bstrnamespaceuri: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetFeature(&self, bstrname: &::windows::core::BSTR, bstrnamespaceuri: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetFeature)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), bstrnamespaceuri.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetFeature)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute_copy(bstrnamespaceuri), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9549,15 +9323,11 @@ impl IPrintSchemaTicket2 { pub unsafe fn SetJobCopiesAllDocuments(&self, uljobcopiesalldocuments: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetJobCopiesAllDocuments)(::windows::core::Interface::as_raw(self), uljobcopiesalldocuments).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetParameterInitializer<'a, P0, P1>(&self, bstrname: P0, bstrnamespaceuri: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetParameterInitializer(&self, bstrname: &::windows::core::BSTR, bstrnamespaceuri: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetParameterInitializer)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), bstrnamespaceuri.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetParameterInitializer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute_copy(bstrnamespaceuri), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -9662,9 +9432,9 @@ unsafe impl ::windows::core::Interface for IPrintSchemaTicket2 { #[doc(hidden)] pub struct IPrintSchemaTicket2_Vtbl { pub base__: IPrintSchemaTicket_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetParameterInitializer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, bstrnamespaceuri: ::core::mem::ManuallyDrop, ppparameterinitializer: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetParameterInitializer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrnamespaceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppparameterinitializer: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetParameterInitializer: usize, } #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] @@ -9681,15 +9451,13 @@ impl IPrintTicketProvider { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BindPrinter<'a, P0>(&self, hprinter: P0, version: i32, poptions: &mut SHIMOPTS, pdevmodeflags: &mut u32, cnamespaces: &mut i32, ppnamespaces: &mut *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> + pub unsafe fn BindPrinter<'a, P0>(&self, hprinter: P0, version: i32, poptions: &mut SHIMOPTS, pdevmodeflags: &mut u32, cnamespaces: &mut i32, ppnamespaces: &mut *mut ::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into, { (::windows::core::Interface::vtable(self).BindPrinter)(::windows::core::Interface::as_raw(self), hprinter.into(), version, ::core::mem::transmute(poptions), ::core::mem::transmute(pdevmodeflags), ::core::mem::transmute(cnamespaces), ::core::mem::transmute(ppnamespaces)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn QueryDeviceNamespace(&self, pdefaultnamespace: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn QueryDeviceNamespace(&self, pdefaultnamespace: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).QueryDeviceNamespace)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdefaultnamespace)).ok() } #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`*"] @@ -9770,13 +9538,10 @@ pub struct IPrintTicketProvider_Vtbl { #[cfg(not(feature = "Win32_Foundation"))] GetSupportedVersions: usize, #[cfg(feature = "Win32_Foundation")] - pub BindPrinter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hprinter: super::super::Foundation::HANDLE, version: i32, poptions: *mut SHIMOPTS, pdevmodeflags: *mut u32, cnamespaces: *mut i32, ppnamespaces: *mut *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub BindPrinter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hprinter: super::super::Foundation::HANDLE, version: i32, poptions: *mut SHIMOPTS, pdevmodeflags: *mut u32, cnamespaces: *mut i32, ppnamespaces: *mut *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] BindPrinter: usize, - #[cfg(feature = "Win32_Foundation")] - pub QueryDeviceNamespace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdefaultnamespace: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - QueryDeviceNamespace: usize, + pub QueryDeviceNamespace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdefaultnamespace: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] pub ConvertPrintTicketToDevMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprintticket: *mut ::core::ffi::c_void, cbdevmodein: u32, pdevmodein: *mut super::Gdi::DEVMODEA, pcbdevmodeout: *mut u32, ppdevmodeout: *mut *mut super::Gdi::DEVMODEA) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com")))] @@ -9808,15 +9573,13 @@ impl IPrintTicketProvider2 { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BindPrinter<'a, P0>(&self, hprinter: P0, version: i32, poptions: &mut SHIMOPTS, pdevmodeflags: &mut u32, cnamespaces: &mut i32, ppnamespaces: &mut *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> + pub unsafe fn BindPrinter<'a, P0>(&self, hprinter: P0, version: i32, poptions: &mut SHIMOPTS, pdevmodeflags: &mut u32, cnamespaces: &mut i32, ppnamespaces: &mut *mut ::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into, { (::windows::core::Interface::vtable(self).base__.BindPrinter)(::windows::core::Interface::as_raw(self), hprinter.into(), version, ::core::mem::transmute(poptions), ::core::mem::transmute(pdevmodeflags), ::core::mem::transmute(cnamespaces), ::core::mem::transmute(ppnamespaces)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn QueryDeviceNamespace(&self, pdefaultnamespace: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn QueryDeviceNamespace(&self, pdefaultnamespace: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.QueryDeviceNamespace)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdefaultnamespace)).ok() } #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`*"] @@ -10115,13 +9878,8 @@ pub struct IPrintWriteStreamFlush_Vtbl { #[repr(transparent)] pub struct IPrinterBidiSetRequestCallback(::windows::core::IUnknown); impl IPrinterBidiSetRequestCallback { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Completed<'a, P0>(&self, bstrresponse: P0, hrstatus: ::windows::core::HRESULT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Completed)(::windows::core::Interface::as_raw(self), bstrresponse.into().abi(), hrstatus).ok() + pub unsafe fn Completed(&self, bstrresponse: &::windows::core::BSTR, hrstatus: ::windows::core::HRESULT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Completed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrresponse), hrstatus).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -10163,10 +9921,7 @@ unsafe impl ::windows::core::Interface for IPrinterBidiSetRequestCallback { #[doc(hidden)] pub struct IPrinterBidiSetRequestCallback_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub Completed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrresponse: ::core::mem::ManuallyDrop, hrstatus: ::windows::core::HRESULT) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Completed: usize, + pub Completed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrresponse: ::core::mem::ManuallyDrop<::windows::core::BSTR>, hrstatus: ::windows::core::HRESULT) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] #[repr(transparent)] @@ -10553,11 +10308,9 @@ impl IPrinterExtensionEventArgs { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.UserProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BidiNotification(&self) -> ::windows::core::Result { + pub unsafe fn BidiNotification(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).BidiNotification)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).BidiNotification)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn ReasonId(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -10569,11 +10322,9 @@ impl IPrinterExtensionEventArgs { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Request)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SourceApplication(&self) -> ::windows::core::Result { + pub unsafe fn SourceApplication(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SourceApplication)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SourceApplication)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn DetailedReasonId(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -10676,19 +10427,13 @@ unsafe impl ::windows::core::Interface for IPrinterExtensionEventArgs { #[doc(hidden)] pub struct IPrinterExtensionEventArgs_Vtbl { pub base__: IPrinterExtensionContext_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub BidiNotification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbidinotification: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BidiNotification: usize, + pub BidiNotification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbidinotification: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ReasonId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, preasonid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprequest: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Request: usize, - #[cfg(feature = "Win32_Foundation")] - pub SourceApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrapplication: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SourceApplication: usize, + pub SourceApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrapplication: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub DetailedReasonId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdetailedreasonid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub WindowModal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbmodal: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, @@ -10758,13 +10503,8 @@ pub struct IPrinterExtensionManager_Vtbl { pub struct IPrinterExtensionRequest(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IPrinterExtensionRequest { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Cancel<'a, P0>(&self, hrstatus: ::windows::core::HRESULT, bstrlogmessage: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Cancel)(::windows::core::Interface::as_raw(self), hrstatus, bstrlogmessage.into().abi()).ok() + pub unsafe fn Cancel(&self, hrstatus: ::windows::core::HRESULT, bstrlogmessage: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Cancel)(::windows::core::Interface::as_raw(self), hrstatus, ::core::mem::transmute_copy(bstrlogmessage)).ok() } pub unsafe fn Complete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Complete)(::windows::core::Interface::as_raw(self)).ok() @@ -10836,10 +10576,7 @@ unsafe impl ::windows::core::Interface for IPrinterExtensionRequest { #[doc(hidden)] pub struct IPrinterExtensionRequest_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrstatus: ::windows::core::HRESULT, bstrlogmessage: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Cancel: usize, + pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrstatus: ::windows::core::HRESULT, bstrlogmessage: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Complete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_System_Com\"`*"] @@ -10850,90 +10587,49 @@ pub struct IPrinterPropertyBag(::windows::core::IUnknown); impl IPrinterPropertyBag { #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetBool<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetBool(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetBool)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetBool)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetBool<'a, P0, P1>(&self, bstrname: P0, bvalue: P1) -> ::windows::core::Result<()> + pub unsafe fn SetBool<'a, P0>(&self, bstrname: &::windows::core::BSTR, bvalue: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into, + P0: ::std::convert::Into, { - (::windows::core::Interface::vtable(self).SetBool)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), bvalue.into()).ok() + (::windows::core::Interface::vtable(self).SetBool)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), bvalue.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetInt32<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetInt32(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetInt32)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetInt32)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetInt32<'a, P0>(&self, bstrname: P0, nvalue: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetInt32)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), nvalue).ok() + pub unsafe fn SetInt32(&self, bstrname: &::windows::core::BSTR, nvalue: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetInt32)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), nvalue).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetString<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetString(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetString)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetString<'a, P0, P1>(&self, bstrname: P0, bstrvalue: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetString)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), bstrvalue.into().abi()).ok() + pub unsafe fn SetString(&self, bstrname: &::windows::core::BSTR, bstrvalue: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute_copy(bstrvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetBytes<'a, P0>(&self, bstrname: P0, pcbvalue: &mut u32, ppvalue: *mut *mut u8) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetBytes)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(pcbvalue), ::core::mem::transmute(ppvalue)).ok() + pub unsafe fn GetBytes(&self, bstrname: &::windows::core::BSTR, pcbvalue: &mut u32, ppvalue: *mut *mut u8) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetBytes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(pcbvalue), ::core::mem::transmute(ppvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetBytes<'a, P0>(&self, bstrname: P0, pvalue: &[u8]) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetBytes)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), pvalue.len() as _, ::core::mem::transmute(pvalue.as_ptr())).ok() + pub unsafe fn SetBytes(&self, bstrname: &::windows::core::BSTR, pvalue: &[u8]) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetBytes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), pvalue.len() as _, ::core::mem::transmute(pvalue.as_ptr())).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetReadStream<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetReadStream(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetReadStream)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetReadStream)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetWriteStream<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetWriteStream(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetWriteStream)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetWriteStream)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -11003,44 +10699,26 @@ unsafe impl ::windows::core::Interface for IPrinterPropertyBag { pub struct IPrinterPropertyBag_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, #[cfg(feature = "Win32_Foundation")] - pub GetBool: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, pbvalue: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, + pub GetBool: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbvalue: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] GetBool: usize, #[cfg(feature = "Win32_Foundation")] - pub SetBool: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, bvalue: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, + pub SetBool: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bvalue: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] SetBool: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetInt32: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, pnvalue: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetInt32: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetInt32: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, nvalue: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetInt32: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, pbstrvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetString: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, bstrvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetString: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetBytes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, pcbvalue: *mut u32, ppvalue: *mut *mut u8) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetBytes: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetBytes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, cbvalue: u32, pvalue: *const u8) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetBytes: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetReadStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub GetInt32: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pnvalue: *mut i32) -> ::windows::core::HRESULT, + pub SetInt32: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, nvalue: i32) -> ::windows::core::HRESULT, + pub GetString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetBytes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcbvalue: *mut u32, ppvalue: *mut *mut u8) -> ::windows::core::HRESULT, + pub SetBytes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, cbvalue: u32, pvalue: *const u8) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub GetReadStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetReadStream: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetWriteStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetWriteStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetWriteStream: usize, } #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_System_Com\"`*"] @@ -11055,19 +10733,12 @@ impl IPrinterQueue { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Handle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SendBidiQuery<'a, P0>(&self, bstrbidiquery: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SendBidiQuery)(::windows::core::Interface::as_raw(self), bstrbidiquery.into().abi()).ok() + pub unsafe fn SendBidiQuery(&self, bstrbidiquery: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SendBidiQuery)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrbidiquery)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -11146,14 +10817,8 @@ pub struct IPrinterQueue_Vtbl { pub Handle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phprinter: *mut super::super::Foundation::HANDLE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] Handle: usize, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub SendBidiQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrbidiquery: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SendBidiQuery: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SendBidiQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrbidiquery: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub GetProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pppropertybag: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -11171,19 +10836,12 @@ impl IPrinterQueue2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Handle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SendBidiQuery<'a, P0>(&self, bstrbidiquery: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SendBidiQuery)(::windows::core::Interface::as_raw(self), bstrbidiquery.into().abi()).ok() + pub unsafe fn SendBidiQuery(&self, bstrbidiquery: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SendBidiQuery)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrbidiquery)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -11191,15 +10849,12 @@ impl IPrinterQueue2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SendBidiSetRequestAsync<'a, P0, P1>(&self, bstrbidirequest: P0, pcallback: P1) -> ::windows::core::Result + pub unsafe fn SendBidiSetRequestAsync<'a, P0>(&self, bstrbidirequest: &::windows::core::BSTR, pcallback: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IPrinterBidiSetRequestCallback>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IPrinterBidiSetRequestCallback>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SendBidiSetRequestAsync)(::windows::core::Interface::as_raw(self), bstrbidirequest.into().abi(), pcallback.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SendBidiSetRequestAsync)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrbidirequest), pcallback.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -11292,10 +10947,7 @@ unsafe impl ::windows::core::Interface for IPrinterQueue2 { #[doc(hidden)] pub struct IPrinterQueue2_Vtbl { pub base__: IPrinterQueue_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub SendBidiSetRequestAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrbidirequest: ::core::mem::ManuallyDrop, pcallback: *mut ::core::ffi::c_void, ppasyncoperation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SendBidiSetRequestAsync: usize, + pub SendBidiSetRequestAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrbidirequest: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcallback: *mut ::core::ffi::c_void, ppasyncoperation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub GetPrinterQueueView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulviewoffset: u32, ulviewsize: u32, ppjobview: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -11307,13 +10959,8 @@ pub struct IPrinterQueue2_Vtbl { pub struct IPrinterQueueEvent(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IPrinterQueueEvent { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OnBidiResponseReceived<'a, P0>(&self, bstrresponse: P0, hrstatus: ::windows::core::HRESULT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).OnBidiResponseReceived)(::windows::core::Interface::as_raw(self), bstrresponse.into().abi(), hrstatus).ok() + pub unsafe fn OnBidiResponseReceived(&self, bstrresponse: &::windows::core::BSTR, hrstatus: ::windows::core::HRESULT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).OnBidiResponseReceived)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrresponse), hrstatus).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -11382,10 +11029,7 @@ unsafe impl ::windows::core::Interface for IPrinterQueueEvent { #[doc(hidden)] pub struct IPrinterQueueEvent_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub OnBidiResponseReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrresponse: ::core::mem::ManuallyDrop, hrstatus: ::windows::core::HRESULT) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OnBidiResponseReceived: usize, + pub OnBidiResponseReceived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrresponse: ::core::mem::ManuallyDrop<::windows::core::BSTR>, hrstatus: ::windows::core::HRESULT) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -11663,92 +11307,57 @@ pub struct IPrinterScriptablePropertyBag(::windows::core::IUnknown); impl IPrinterScriptablePropertyBag { #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetBool<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetBool(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetBool)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetBool)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetBool<'a, P0, P1>(&self, bstrname: P0, bvalue: P1) -> ::windows::core::Result<()> + pub unsafe fn SetBool<'a, P0>(&self, bstrname: &::windows::core::BSTR, bvalue: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into, + P0: ::std::convert::Into, { - (::windows::core::Interface::vtable(self).SetBool)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), bvalue.into()).ok() + (::windows::core::Interface::vtable(self).SetBool)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), bvalue.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetInt32<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetInt32(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetInt32)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetInt32)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetInt32<'a, P0>(&self, bstrname: P0, nvalue: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetInt32)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), nvalue).ok() + pub unsafe fn SetInt32(&self, bstrname: &::windows::core::BSTR, nvalue: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetInt32)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), nvalue).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetString<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetString(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetString)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetString<'a, P0, P1>(&self, bstrname: P0, bstrvalue: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetString)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), bstrvalue.into().abi()).ok() + pub unsafe fn SetString(&self, bstrname: &::windows::core::BSTR, bstrvalue: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute_copy(bstrvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetBytes<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetBytes(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetBytes)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetBytes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn SetBytes<'a, P0, P1>(&self, bstrname: P0, parray: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn SetBytes<'a, P0>(&self, bstrname: &::windows::core::BSTR, parray: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IDispatch>>, { - (::windows::core::Interface::vtable(self).SetBytes)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), parray.into().abi()).ok() + (::windows::core::Interface::vtable(self).SetBytes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), parray.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetReadStream<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetReadStream(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetReadStream)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetReadStream)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetWriteStream<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetWriteStream(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetWriteStream)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetWriteStream)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -11818,44 +11427,32 @@ unsafe impl ::windows::core::Interface for IPrinterScriptablePropertyBag { pub struct IPrinterScriptablePropertyBag_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, #[cfg(feature = "Win32_Foundation")] - pub GetBool: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, pbvalue: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, + pub GetBool: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbvalue: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] GetBool: usize, #[cfg(feature = "Win32_Foundation")] - pub SetBool: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, bvalue: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, + pub SetBool: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bvalue: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] SetBool: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetInt32: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, pnvalue: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetInt32: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetInt32: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, nvalue: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetInt32: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, pbstrvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetString: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, bstrvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetString: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetBytes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, pparray: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub GetInt32: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pnvalue: *mut i32) -> ::windows::core::HRESULT, + pub SetInt32: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, nvalue: i32) -> ::windows::core::HRESULT, + pub GetString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub GetBytes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pparray: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetBytes: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub SetBytes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, parray: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub SetBytes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, parray: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] SetBytes: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetReadStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, ppstream: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetReadStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppstream: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetReadStream: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetWriteStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, ppstream: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetWriteStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppstream: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetWriteStream: usize, } #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_System_Com\"`*"] @@ -11866,101 +11463,61 @@ pub struct IPrinterScriptablePropertyBag2(::windows::core::IUnknown); impl IPrinterScriptablePropertyBag2 { #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetBool<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetBool(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetBool)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetBool)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetBool<'a, P0, P1>(&self, bstrname: P0, bvalue: P1) -> ::windows::core::Result<()> + pub unsafe fn SetBool<'a, P0>(&self, bstrname: &::windows::core::BSTR, bvalue: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into, + P0: ::std::convert::Into, { - (::windows::core::Interface::vtable(self).base__.SetBool)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), bvalue.into()).ok() + (::windows::core::Interface::vtable(self).base__.SetBool)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), bvalue.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetInt32<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetInt32(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetInt32)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetInt32)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetInt32<'a, P0>(&self, bstrname: P0, nvalue: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetInt32)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), nvalue).ok() + pub unsafe fn SetInt32(&self, bstrname: &::windows::core::BSTR, nvalue: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetInt32)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), nvalue).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetString<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetString(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetString)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetString<'a, P0, P1>(&self, bstrname: P0, bstrvalue: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetString)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), bstrvalue.into().abi()).ok() + pub unsafe fn SetString(&self, bstrname: &::windows::core::BSTR, bstrvalue: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute_copy(bstrvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetBytes<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetBytes(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetBytes)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetBytes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn SetBytes<'a, P0, P1>(&self, bstrname: P0, parray: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn SetBytes<'a, P0>(&self, bstrname: &::windows::core::BSTR, parray: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IDispatch>>, { - (::windows::core::Interface::vtable(self).base__.SetBytes)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), parray.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.SetBytes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), parray.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetReadStream<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetReadStream(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetReadStream)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetReadStream)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetWriteStream<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetWriteStream(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetWriteStream)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetWriteStream)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetReadStreamAsXML<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<::windows::core::IUnknown> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetReadStreamAsXML(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetReadStreamAsXML)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) + (::windows::core::Interface::vtable(self).GetReadStreamAsXML)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -12047,10 +11604,7 @@ unsafe impl ::windows::core::Interface for IPrinterScriptablePropertyBag2 { #[doc(hidden)] pub struct IPrinterScriptablePropertyBag2_Vtbl { pub base__: IPrinterScriptablePropertyBag_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetReadStreamAsXML: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, ppxmlnode: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetReadStreamAsXML: usize, + pub GetReadStreamAsXML: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppxmlnode: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -12479,9 +12033,7 @@ impl IXpsPartIterator { pub unsafe fn Reset(&self) { (::windows::core::Interface::vtable(self).Reset)(::windows::core::Interface::as_raw(self)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Current(&self, puri: &mut super::super::Foundation::BSTR, ppxpspart: &mut ::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result<()> { + pub unsafe fn Current(&self, puri: &mut ::windows::core::BSTR, ppxpspart: &mut ::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Current)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(puri), ::core::mem::transmute(ppxpspart)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] @@ -12533,10 +12085,7 @@ unsafe impl ::windows::core::Interface for IXpsPartIterator { pub struct IXpsPartIterator_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), - #[cfg(feature = "Win32_Foundation")] - pub Current: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puri: *mut super::super::Foundation::BSTR, ppxpspart: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Current: usize, + pub Current: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppxpspart: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub IsDone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL, #[cfg(not(feature = "Win32_Foundation"))] @@ -19713,22 +19262,20 @@ impl ::core::default::Default for INVOC { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Graphics_Printing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_Graphics_Printing\"`*"] pub struct ImgErrorInfo { - pub description: super::super::Foundation::BSTR, + pub description: ::windows::core::BSTR, pub guid: ::windows::core::GUID, pub helpContext: u32, - pub helpFile: super::super::Foundation::BSTR, - pub source: super::super::Foundation::BSTR, - pub devDescription: super::super::Foundation::BSTR, + pub helpFile: ::windows::core::BSTR, + pub source: ::windows::core::BSTR, + pub devDescription: ::windows::core::BSTR, pub errorID: ::windows::core::GUID, pub cUserParameters: u32, - pub aUserParameters: *mut super::super::Foundation::BSTR, - pub userFallback: super::super::Foundation::BSTR, + pub aUserParameters: *mut ::windows::core::BSTR, + pub userFallback: ::windows::core::BSTR, pub exceptionID: u32, } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for ImgErrorInfo { fn clone(&self) -> Self { Self { @@ -19746,25 +19293,20 @@ impl ::core::clone::Clone for ImgErrorInfo { } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for ImgErrorInfo { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("ImgErrorInfo").field("description", &self.description).field("guid", &self.guid).field("helpContext", &self.helpContext).field("helpFile", &self.helpFile).field("source", &self.source).field("devDescription", &self.devDescription).field("errorID", &self.errorID).field("cUserParameters", &self.cUserParameters).field("aUserParameters", &self.aUserParameters).field("userFallback", &self.userFallback).field("exceptionID", &self.exceptionID).finish() } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for ImgErrorInfo { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for ImgErrorInfo { fn eq(&self, other: &Self) -> bool { self.description == other.description && self.guid == other.guid && self.helpContext == other.helpContext && self.helpFile == other.helpFile && self.source == other.source && self.devDescription == other.devDescription && self.errorID == other.errorID && self.cUserParameters == other.cUserParameters && self.aUserParameters == other.aUserParameters && self.userFallback == other.userFallback && self.exceptionID == other.exceptionID } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for ImgErrorInfo {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for ImgErrorInfo { fn default() -> Self { unsafe { ::core::mem::zeroed() } diff --git a/crates/libs/windows/src/Windows/Win32/Media/DirectShow/Xml/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/DirectShow/Xml/impl.rs index c004c4f83c..30e5627744 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/DirectShow/Xml/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/DirectShow/Xml/impl.rs @@ -1,12 +1,12 @@ -#[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] pub trait IXMLGraphBuilder_Impl: Sized { fn BuildFromXML(&self, pgraph: &::core::option::Option, pxml: &::core::option::Option) -> ::windows::core::Result<()>; - fn SaveToXML(&self, pgraph: &::core::option::Option, pbstrxml: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SaveToXML(&self, pgraph: &::core::option::Option, pbstrxml: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn BuildFromXMLFile(&self, pgraph: &::core::option::Option, wszfilename: &::windows::core::PCWSTR, wszbaseurl: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; } -#[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] impl ::windows::core::RuntimeName for IXMLGraphBuilder {} -#[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] impl IXMLGraphBuilder_Vtbl { pub const fn new, Impl: IXMLGraphBuilder_Impl, const OFFSET: isize>() -> IXMLGraphBuilder_Vtbl { unsafe extern "system" fn BuildFromXML, Impl: IXMLGraphBuilder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pgraph: *mut ::core::ffi::c_void, pxml: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -14,7 +14,7 @@ impl IXMLGraphBuilder_Vtbl { let this = (*this).get_impl(); this.BuildFromXML(::core::mem::transmute(&pgraph), ::core::mem::transmute(&pxml)).into() } - unsafe extern "system" fn SaveToXML, Impl: IXMLGraphBuilder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pgraph: *mut ::core::ffi::c_void, pbstrxml: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SaveToXML, Impl: IXMLGraphBuilder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pgraph: *mut ::core::ffi::c_void, pbstrxml: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SaveToXML(::core::mem::transmute(&pgraph), ::core::mem::transmute_copy(&pbstrxml)).into() diff --git a/crates/libs/windows/src/Windows/Win32/Media/DirectShow/Xml/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/DirectShow/Xml/mod.rs index 01806586bd..fb50c28359 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/DirectShow/Xml/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/DirectShow/Xml/mod.rs @@ -11,9 +11,7 @@ impl IXMLGraphBuilder { { (::windows::core::Interface::vtable(self).BuildFromXML)(::windows::core::Interface::as_raw(self), pgraph.into().abi(), pxml.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SaveToXML<'a, P0>(&self, pgraph: P0, pbstrxml: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> + pub unsafe fn SaveToXML<'a, P0>(&self, pgraph: P0, pbstrxml: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::IGraphBuilder>>, { @@ -71,10 +69,7 @@ pub struct IXMLGraphBuilder_Vtbl { pub BuildFromXML: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pgraph: *mut ::core::ffi::c_void, pxml: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com")))] BuildFromXML: usize, - #[cfg(feature = "Win32_Foundation")] - pub SaveToXML: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pgraph: *mut ::core::ffi::c_void, pbstrxml: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SaveToXML: usize, + pub SaveToXML: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pgraph: *mut ::core::ffi::c_void, pbstrxml: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub BuildFromXMLFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pgraph: *mut ::core::ffi::c_void, wszfilename: ::windows::core::PCWSTR, wszbaseurl: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, } pub const CLSID_XMLGraphBuilder: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1bb05961_5fbf_11d2_a521_44df07c10000); diff --git a/crates/libs/windows/src/Windows/Win32/Media/DirectShow/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/DirectShow/impl.rs index ea8ecc4ae7..7538ea72d2 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/DirectShow/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/DirectShow/impl.rs @@ -547,44 +547,44 @@ impl IAMCertifiedOutputProtection_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IAMChannelInfo_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn ChannelName(&self, pbstrchannelname: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ChannelDescription(&self, pbstrchanneldescription: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ChannelURL(&self, pbstrchannelurl: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ContactAddress(&self, pbstrcontactaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ContactPhone(&self, pbstrcontactphone: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ContactEmail(&self, pbstrcontactemail: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ChannelName(&self, pbstrchannelname: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ChannelDescription(&self, pbstrchanneldescription: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ChannelURL(&self, pbstrchannelurl: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ContactAddress(&self, pbstrcontactaddress: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ContactPhone(&self, pbstrcontactphone: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ContactEmail(&self, pbstrcontactemail: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IAMChannelInfo {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IAMChannelInfo_Vtbl { pub const fn new, Impl: IAMChannelInfo_Impl, const OFFSET: isize>() -> IAMChannelInfo_Vtbl { - unsafe extern "system" fn ChannelName, Impl: IAMChannelInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrchannelname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ChannelName, Impl: IAMChannelInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrchannelname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ChannelName(::core::mem::transmute_copy(&pbstrchannelname)).into() } - unsafe extern "system" fn ChannelDescription, Impl: IAMChannelInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrchanneldescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ChannelDescription, Impl: IAMChannelInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrchanneldescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ChannelDescription(::core::mem::transmute_copy(&pbstrchanneldescription)).into() } - unsafe extern "system" fn ChannelURL, Impl: IAMChannelInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrchannelurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ChannelURL, Impl: IAMChannelInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrchannelurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ChannelURL(::core::mem::transmute_copy(&pbstrchannelurl)).into() } - unsafe extern "system" fn ContactAddress, Impl: IAMChannelInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcontactaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ContactAddress, Impl: IAMChannelInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcontactaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ContactAddress(::core::mem::transmute_copy(&pbstrcontactaddress)).into() } - unsafe extern "system" fn ContactPhone, Impl: IAMChannelInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcontactphone: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ContactPhone, Impl: IAMChannelInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcontactphone: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ContactPhone(::core::mem::transmute_copy(&pbstrcontactphone)).into() } - unsafe extern "system" fn ContactEmail, Impl: IAMChannelInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcontactemail: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ContactEmail, Impl: IAMChannelInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcontactemail: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ContactEmail(::core::mem::transmute_copy(&pbstrcontactemail)).into() @@ -1453,7 +1453,7 @@ impl IAMExtTransport_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IAMExtendedErrorInfo_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn HasError(&self, phaserror: *mut i16) -> ::windows::core::Result<()>; - fn ErrorDescription(&self, pbstrerrordescription: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ErrorDescription(&self, pbstrerrordescription: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn ErrorCode(&self, perrorcode: *mut i32) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -1466,7 +1466,7 @@ impl IAMExtendedErrorInfo_Vtbl { let this = (*this).get_impl(); this.HasError(::core::mem::transmute_copy(&phaserror)).into() } - unsafe extern "system" fn ErrorDescription, Impl: IAMExtendedErrorInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrerrordescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ErrorDescription, Impl: IAMExtendedErrorInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrerrordescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ErrorDescription(::core::mem::transmute_copy(&pbstrerrordescription)).into() @@ -1493,7 +1493,7 @@ pub trait IAMExtendedSeeking_Impl: Sized + super::super::System::Com::IDispatch_ fn MarkerCount(&self, pmarkercount: *mut i32) -> ::windows::core::Result<()>; fn CurrentMarker(&self, pcurrentmarker: *mut i32) -> ::windows::core::Result<()>; fn GetMarkerTime(&self, markernum: i32, pmarkertime: *mut f64) -> ::windows::core::Result<()>; - fn GetMarkerName(&self, markernum: i32, pbstrmarkername: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetMarkerName(&self, markernum: i32, pbstrmarkername: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn SetPlaybackSpeed(&self, speed: f64) -> ::windows::core::Result<()>; fn PlaybackSpeed(&self, pspeed: *mut f64) -> ::windows::core::Result<()>; } @@ -1522,7 +1522,7 @@ impl IAMExtendedSeeking_Vtbl { let this = (*this).get_impl(); this.GetMarkerTime(::core::mem::transmute_copy(&markernum), ::core::mem::transmute_copy(&pmarkertime)).into() } - unsafe extern "system" fn GetMarkerName, Impl: IAMExtendedSeeking_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, markernum: i32, pbstrmarkername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetMarkerName, Impl: IAMExtendedSeeking_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, markernum: i32, pbstrmarkername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetMarkerName(::core::mem::transmute_copy(&markernum), ::core::mem::transmute_copy(&pbstrmarkername)).into() @@ -1785,86 +1785,86 @@ impl IAMLine21Decoder_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IAMMediaContent_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn AuthorName(&self, pbstrauthorname: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Title(&self, pbstrtitle: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Rating(&self, pbstrrating: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Description(&self, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Copyright(&self, pbstrcopyright: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn BaseURL(&self, pbstrbaseurl: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn LogoURL(&self, pbstrlogourl: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn LogoIconURL(&self, pbstrlogourl: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn WatermarkURL(&self, pbstrwatermarkurl: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn MoreInfoURL(&self, pbstrmoreinfourl: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn MoreInfoBannerImage(&self, pbstrmoreinfobannerimage: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn MoreInfoBannerURL(&self, pbstrmoreinfobannerurl: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn MoreInfoText(&self, pbstrmoreinfotext: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn AuthorName(&self, pbstrauthorname: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Title(&self, pbstrtitle: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Rating(&self, pbstrrating: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Description(&self, pbstrdescription: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Copyright(&self, pbstrcopyright: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn BaseURL(&self, pbstrbaseurl: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn LogoURL(&self, pbstrlogourl: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn LogoIconURL(&self, pbstrlogourl: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn WatermarkURL(&self, pbstrwatermarkurl: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn MoreInfoURL(&self, pbstrmoreinfourl: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn MoreInfoBannerImage(&self, pbstrmoreinfobannerimage: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn MoreInfoBannerURL(&self, pbstrmoreinfobannerurl: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn MoreInfoText(&self, pbstrmoreinfotext: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IAMMediaContent {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IAMMediaContent_Vtbl { pub const fn new, Impl: IAMMediaContent_Impl, const OFFSET: isize>() -> IAMMediaContent_Vtbl { - unsafe extern "system" fn AuthorName, Impl: IAMMediaContent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrauthorname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn AuthorName, Impl: IAMMediaContent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrauthorname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AuthorName(::core::mem::transmute_copy(&pbstrauthorname)).into() } - unsafe extern "system" fn Title, Impl: IAMMediaContent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtitle: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Title, Impl: IAMMediaContent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtitle: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Title(::core::mem::transmute_copy(&pbstrtitle)).into() } - unsafe extern "system" fn Rating, Impl: IAMMediaContent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrrating: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Rating, Impl: IAMMediaContent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrrating: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Rating(::core::mem::transmute_copy(&pbstrrating)).into() } - unsafe extern "system" fn Description, Impl: IAMMediaContent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IAMMediaContent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Description(::core::mem::transmute_copy(&pbstrdescription)).into() } - unsafe extern "system" fn Copyright, Impl: IAMMediaContent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcopyright: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Copyright, Impl: IAMMediaContent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcopyright: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Copyright(::core::mem::transmute_copy(&pbstrcopyright)).into() } - unsafe extern "system" fn BaseURL, Impl: IAMMediaContent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrbaseurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn BaseURL, Impl: IAMMediaContent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrbaseurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.BaseURL(::core::mem::transmute_copy(&pbstrbaseurl)).into() } - unsafe extern "system" fn LogoURL, Impl: IAMMediaContent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrlogourl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LogoURL, Impl: IAMMediaContent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrlogourl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.LogoURL(::core::mem::transmute_copy(&pbstrlogourl)).into() } - unsafe extern "system" fn LogoIconURL, Impl: IAMMediaContent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrlogourl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LogoIconURL, Impl: IAMMediaContent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrlogourl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.LogoIconURL(::core::mem::transmute_copy(&pbstrlogourl)).into() } - unsafe extern "system" fn WatermarkURL, Impl: IAMMediaContent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrwatermarkurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn WatermarkURL, Impl: IAMMediaContent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrwatermarkurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.WatermarkURL(::core::mem::transmute_copy(&pbstrwatermarkurl)).into() } - unsafe extern "system" fn MoreInfoURL, Impl: IAMMediaContent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrmoreinfourl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn MoreInfoURL, Impl: IAMMediaContent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrmoreinfourl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.MoreInfoURL(::core::mem::transmute_copy(&pbstrmoreinfourl)).into() } - unsafe extern "system" fn MoreInfoBannerImage, Impl: IAMMediaContent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrmoreinfobannerimage: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn MoreInfoBannerImage, Impl: IAMMediaContent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrmoreinfobannerimage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.MoreInfoBannerImage(::core::mem::transmute_copy(&pbstrmoreinfobannerimage)).into() } - unsafe extern "system" fn MoreInfoBannerURL, Impl: IAMMediaContent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrmoreinfobannerurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn MoreInfoBannerURL, Impl: IAMMediaContent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrmoreinfobannerurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.MoreInfoBannerURL(::core::mem::transmute_copy(&pbstrmoreinfobannerurl)).into() } - unsafe extern "system" fn MoreInfoText, Impl: IAMMediaContent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrmoreinfotext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn MoreInfoText, Impl: IAMMediaContent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrmoreinfotext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.MoreInfoText(::core::mem::transmute_copy(&pbstrmoreinfotext)).into() @@ -1892,8 +1892,8 @@ impl IAMMediaContent_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IAMMediaContent2_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn get_MediaParameter(&self, entrynum: i32, bstrname: &super::super::Foundation::BSTR, pbstrvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn get_MediaParameterName(&self, entrynum: i32, index: i32, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn get_MediaParameter(&self, entrynum: i32, bstrname: &::windows::core::BSTR, pbstrvalue: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn get_MediaParameterName(&self, entrynum: i32, index: i32, pbstrname: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn PlaylistCount(&self, pnumberentries: *mut i32) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -1901,12 +1901,12 @@ impl ::windows::core::RuntimeName for IAMMediaContent2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IAMMediaContent2_Vtbl { pub const fn new, Impl: IAMMediaContent2_Impl, const OFFSET: isize>() -> IAMMediaContent2_Vtbl { - unsafe extern "system" fn get_MediaParameter, Impl: IAMMediaContent2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, entrynum: i32, bstrname: ::core::mem::ManuallyDrop, pbstrvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_MediaParameter, Impl: IAMMediaContent2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, entrynum: i32, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_MediaParameter(::core::mem::transmute_copy(&entrynum), ::core::mem::transmute(&bstrname), ::core::mem::transmute_copy(&pbstrvalue)).into() } - unsafe extern "system" fn get_MediaParameterName, Impl: IAMMediaContent2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, entrynum: i32, index: i32, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_MediaParameterName, Impl: IAMMediaContent2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, entrynum: i32, index: i32, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_MediaParameterName(::core::mem::transmute_copy(&entrynum), ::core::mem::transmute_copy(&index), ::core::mem::transmute_copy(&pbstrname)).into() @@ -2283,8 +2283,8 @@ pub trait IAMNetShowConfig_Impl: Sized + super::super::System::Com::IDispatch_Im fn SetUseHTTPProxy(&self, usehttpproxy: i16) -> ::windows::core::Result<()>; fn EnableAutoProxy(&self, penableautoproxy: *mut i16) -> ::windows::core::Result<()>; fn SetEnableAutoProxy(&self, enableautoproxy: i16) -> ::windows::core::Result<()>; - fn HTTPProxyHost(&self, pbstrhttpproxyhost: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetHTTPProxyHost(&self, bstrhttpproxyhost: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn HTTPProxyHost(&self, pbstrhttpproxyhost: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetHTTPProxyHost(&self, bstrhttpproxyhost: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn HTTPProxyPort(&self, phttpproxyport: *mut i32) -> ::windows::core::Result<()>; fn SetHTTPProxyPort(&self, httpproxyport: i32) -> ::windows::core::Result<()>; fn EnableMulticast(&self, penablemulticast: *mut i16) -> ::windows::core::Result<()>; @@ -2351,12 +2351,12 @@ impl IAMNetShowConfig_Vtbl { let this = (*this).get_impl(); this.SetEnableAutoProxy(::core::mem::transmute_copy(&enableautoproxy)).into() } - unsafe extern "system" fn HTTPProxyHost, Impl: IAMNetShowConfig_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrhttpproxyhost: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn HTTPProxyHost, Impl: IAMNetShowConfig_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrhttpproxyhost: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.HTTPProxyHost(::core::mem::transmute_copy(&pbstrhttpproxyhost)).into() } - unsafe extern "system" fn SetHTTPProxyHost, Impl: IAMNetShowConfig_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrhttpproxyhost: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetHTTPProxyHost, Impl: IAMNetShowConfig_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrhttpproxyhost: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetHTTPProxyHost(::core::mem::transmute(&bstrhttpproxyhost)).into() @@ -2445,13 +2445,13 @@ impl IAMNetShowConfig_Vtbl { pub trait IAMNetShowExProps_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn SourceProtocol(&self, psourceprotocol: *mut i32) -> ::windows::core::Result<()>; fn Bandwidth(&self, pbandwidth: *mut i32) -> ::windows::core::Result<()>; - fn ErrorCorrection(&self, pbstrerrorcorrection: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ErrorCorrection(&self, pbstrerrorcorrection: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn CodecCount(&self, pcodeccount: *mut i32) -> ::windows::core::Result<()>; fn GetCodecInstalled(&self, codecnum: i32, pcodecinstalled: *mut i16) -> ::windows::core::Result<()>; - fn GetCodecDescription(&self, codecnum: i32, pbstrcodecdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetCodecURL(&self, codecnum: i32, pbstrcodecurl: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetCodecDescription(&self, codecnum: i32, pbstrcodecdescription: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetCodecURL(&self, codecnum: i32, pbstrcodecurl: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn CreationDate(&self, pcreationdate: *mut f64) -> ::windows::core::Result<()>; - fn SourceLink(&self, pbstrsourcelink: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SourceLink(&self, pbstrsourcelink: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IAMNetShowExProps {} @@ -2468,7 +2468,7 @@ impl IAMNetShowExProps_Vtbl { let this = (*this).get_impl(); this.Bandwidth(::core::mem::transmute_copy(&pbandwidth)).into() } - unsafe extern "system" fn ErrorCorrection, Impl: IAMNetShowExProps_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrerrorcorrection: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ErrorCorrection, Impl: IAMNetShowExProps_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrerrorcorrection: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ErrorCorrection(::core::mem::transmute_copy(&pbstrerrorcorrection)).into() @@ -2483,12 +2483,12 @@ impl IAMNetShowExProps_Vtbl { let this = (*this).get_impl(); this.GetCodecInstalled(::core::mem::transmute_copy(&codecnum), ::core::mem::transmute_copy(&pcodecinstalled)).into() } - unsafe extern "system" fn GetCodecDescription, Impl: IAMNetShowExProps_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, codecnum: i32, pbstrcodecdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCodecDescription, Impl: IAMNetShowExProps_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, codecnum: i32, pbstrcodecdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetCodecDescription(::core::mem::transmute_copy(&codecnum), ::core::mem::transmute_copy(&pbstrcodecdescription)).into() } - unsafe extern "system" fn GetCodecURL, Impl: IAMNetShowExProps_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, codecnum: i32, pbstrcodecurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCodecURL, Impl: IAMNetShowExProps_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, codecnum: i32, pbstrcodecurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetCodecURL(::core::mem::transmute_copy(&codecnum), ::core::mem::transmute_copy(&pbstrcodecurl)).into() @@ -2498,7 +2498,7 @@ impl IAMNetShowExProps_Vtbl { let this = (*this).get_impl(); this.CreationDate(::core::mem::transmute_copy(&pcreationdate)).into() } - unsafe extern "system" fn SourceLink, Impl: IAMNetShowExProps_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsourcelink: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SourceLink, Impl: IAMNetShowExProps_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsourcelink: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SourceLink(::core::mem::transmute_copy(&pbstrsourcelink)).into() @@ -2811,23 +2811,20 @@ impl IAMPlayList_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IAMPlayListItem_Impl: Sized { fn GetFlags(&self) -> ::windows::core::Result; fn GetSourceCount(&self) -> ::windows::core::Result; - fn GetSourceURL(&self, dwsourceindex: u32) -> ::windows::core::Result; + fn GetSourceURL(&self, dwsourceindex: u32) -> ::windows::core::Result<::windows::core::BSTR>; fn GetSourceStart(&self, dwsourceindex: u32) -> ::windows::core::Result; fn GetSourceDuration(&self, dwsourceindex: u32) -> ::windows::core::Result; fn GetSourceStartMarker(&self, dwsourceindex: u32) -> ::windows::core::Result; fn GetSourceEndMarker(&self, dwsourceindex: u32) -> ::windows::core::Result; - fn GetSourceStartMarkerName(&self, dwsourceindex: u32) -> ::windows::core::Result; - fn GetSourceEndMarkerName(&self, dwsourceindex: u32) -> ::windows::core::Result; - fn GetLinkURL(&self) -> ::windows::core::Result; + fn GetSourceStartMarkerName(&self, dwsourceindex: u32) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetSourceEndMarkerName(&self, dwsourceindex: u32) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetLinkURL(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetScanDuration(&self, dwsourceindex: u32) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IAMPlayListItem {} -#[cfg(feature = "Win32_Foundation")] impl IAMPlayListItem_Vtbl { pub const fn new, Impl: IAMPlayListItem_Impl, const OFFSET: isize>() -> IAMPlayListItem_Vtbl { unsafe extern "system" fn GetFlags, Impl: IAMPlayListItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdwflags: *mut u32) -> ::windows::core::HRESULT { @@ -2852,7 +2849,7 @@ impl IAMPlayListItem_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetSourceURL, Impl: IAMPlayListItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwsourceindex: u32, pbstrurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSourceURL, Impl: IAMPlayListItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwsourceindex: u32, pbstrurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetSourceURL(::core::mem::transmute_copy(&dwsourceindex)) { @@ -2907,7 +2904,7 @@ impl IAMPlayListItem_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetSourceStartMarkerName, Impl: IAMPlayListItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwsourceindex: u32, pbstrstartmarker: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSourceStartMarkerName, Impl: IAMPlayListItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwsourceindex: u32, pbstrstartmarker: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetSourceStartMarkerName(::core::mem::transmute_copy(&dwsourceindex)) { @@ -2918,7 +2915,7 @@ impl IAMPlayListItem_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetSourceEndMarkerName, Impl: IAMPlayListItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwsourceindex: u32, pbstrendmarker: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSourceEndMarkerName, Impl: IAMPlayListItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwsourceindex: u32, pbstrendmarker: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetSourceEndMarkerName(::core::mem::transmute_copy(&dwsourceindex)) { @@ -2929,7 +2926,7 @@ impl IAMPlayListItem_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetLinkURL, Impl: IAMPlayListItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetLinkURL, Impl: IAMPlayListItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetLinkURL() { @@ -3158,9 +3155,9 @@ impl IAMResourceControl_Vtbl { pub trait IAMStats_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn Reset(&self) -> ::windows::core::Result<()>; fn Count(&self) -> ::windows::core::Result; - fn GetValueByIndex(&self, lindex: i32, szname: *mut super::super::Foundation::BSTR, lcount: *mut i32, dlast: *mut f64, daverage: *mut f64, dstddev: *mut f64, dmin: *mut f64, dmax: *mut f64) -> ::windows::core::Result<()>; - fn GetValueByName(&self, szname: &super::super::Foundation::BSTR, lindex: *mut i32, lcount: *mut i32, dlast: *mut f64, daverage: *mut f64, dstddev: *mut f64, dmin: *mut f64, dmax: *mut f64) -> ::windows::core::Result<()>; - fn GetIndex(&self, szname: &super::super::Foundation::BSTR, lcreate: i32) -> ::windows::core::Result; + fn GetValueByIndex(&self, lindex: i32, szname: *mut ::windows::core::BSTR, lcount: *mut i32, dlast: *mut f64, daverage: *mut f64, dstddev: *mut f64, dmin: *mut f64, dmax: *mut f64) -> ::windows::core::Result<()>; + fn GetValueByName(&self, szname: &::windows::core::BSTR, lindex: *mut i32, lcount: *mut i32, dlast: *mut f64, daverage: *mut f64, dstddev: *mut f64, dmin: *mut f64, dmax: *mut f64) -> ::windows::core::Result<()>; + fn GetIndex(&self, szname: &::windows::core::BSTR, lcreate: i32) -> ::windows::core::Result; fn AddValue(&self, lindex: i32, dvalue: f64) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3184,17 +3181,17 @@ impl IAMStats_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetValueByIndex, Impl: IAMStats_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lindex: i32, szname: *mut super::super::Foundation::BSTR, lcount: *mut i32, dlast: *mut f64, daverage: *mut f64, dstddev: *mut f64, dmin: *mut f64, dmax: *mut f64) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetValueByIndex, Impl: IAMStats_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lindex: i32, szname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, lcount: *mut i32, dlast: *mut f64, daverage: *mut f64, dstddev: *mut f64, dmin: *mut f64, dmax: *mut f64) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetValueByIndex(::core::mem::transmute_copy(&lindex), ::core::mem::transmute_copy(&szname), ::core::mem::transmute_copy(&lcount), ::core::mem::transmute_copy(&dlast), ::core::mem::transmute_copy(&daverage), ::core::mem::transmute_copy(&dstddev), ::core::mem::transmute_copy(&dmin), ::core::mem::transmute_copy(&dmax)).into() } - unsafe extern "system" fn GetValueByName, Impl: IAMStats_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, szname: ::core::mem::ManuallyDrop, lindex: *mut i32, lcount: *mut i32, dlast: *mut f64, daverage: *mut f64, dstddev: *mut f64, dmin: *mut f64, dmax: *mut f64) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetValueByName, Impl: IAMStats_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, szname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lindex: *mut i32, lcount: *mut i32, dlast: *mut f64, daverage: *mut f64, dstddev: *mut f64, dmin: *mut f64, dmax: *mut f64) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetValueByName(::core::mem::transmute(&szname), ::core::mem::transmute_copy(&lindex), ::core::mem::transmute_copy(&lcount), ::core::mem::transmute_copy(&dlast), ::core::mem::transmute_copy(&daverage), ::core::mem::transmute_copy(&dstddev), ::core::mem::transmute_copy(&dmin), ::core::mem::transmute_copy(&dmax)).into() } - unsafe extern "system" fn GetIndex, Impl: IAMStats_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, szname: ::core::mem::ManuallyDrop, lcreate: i32, plindex: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetIndex, Impl: IAMStats_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, szname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lcreate: i32, plindex: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetIndex(::core::mem::transmute(&szname), ::core::mem::transmute_copy(&lcreate)) { @@ -6761,30 +6758,27 @@ impl IBDA_AutoDemodulateEx_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IBDA_ConditionalAccess_Impl: Sized { - fn get_SmartCardStatus(&self, pcardstatus: *mut SmartCardStatusType, pcardassociation: *mut SmartCardAssociationType, pbstrcarderror: *mut super::super::Foundation::BSTR, pfooblocked: *mut i16) -> ::windows::core::Result<()>; - fn get_SmartCardInfo(&self, pbstrcardname: *mut super::super::Foundation::BSTR, pbstrcardmanufacturer: *mut super::super::Foundation::BSTR, pfdaylightsavings: *mut i16, pbyratingregion: *mut u8, pltimezoneoffsetminutes: *mut i32, pbstrlanguage: *mut super::super::Foundation::BSTR, pealocationcode: *mut EALocationCodeType) -> ::windows::core::Result<()>; + fn get_SmartCardStatus(&self, pcardstatus: *mut SmartCardStatusType, pcardassociation: *mut SmartCardAssociationType, pbstrcarderror: *mut ::windows::core::BSTR, pfooblocked: *mut i16) -> ::windows::core::Result<()>; + fn get_SmartCardInfo(&self, pbstrcardname: *mut ::windows::core::BSTR, pbstrcardmanufacturer: *mut ::windows::core::BSTR, pfdaylightsavings: *mut i16, pbyratingregion: *mut u8, pltimezoneoffsetminutes: *mut i32, pbstrlanguage: *mut ::windows::core::BSTR, pealocationcode: *mut EALocationCodeType) -> ::windows::core::Result<()>; fn get_SmartCardApplications(&self, pulcapplications: *mut u32, ulcapplicationsmax: u32, rgapplications: *mut SmartCardApplication) -> ::windows::core::Result<()>; fn get_Entitlement(&self, usvirtualchannel: u16) -> ::windows::core::Result; fn TuneByChannel(&self, usvirtualchannel: u16) -> ::windows::core::Result<()>; fn SetProgram(&self, usprogramnumber: u16) -> ::windows::core::Result<()>; fn AddProgram(&self, usprogramnumber: u16) -> ::windows::core::Result<()>; fn RemoveProgram(&self, usprogramnumber: u16) -> ::windows::core::Result<()>; - fn GetModuleUI(&self, bydialognumber: u8) -> ::windows::core::Result; + fn GetModuleUI(&self, bydialognumber: u8) -> ::windows::core::Result<::windows::core::BSTR>; fn InformUIClosed(&self, bydialognumber: u8, closereason: UICloseReasonType) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IBDA_ConditionalAccess {} -#[cfg(feature = "Win32_Foundation")] impl IBDA_ConditionalAccess_Vtbl { pub const fn new, Impl: IBDA_ConditionalAccess_Impl, const OFFSET: isize>() -> IBDA_ConditionalAccess_Vtbl { - unsafe extern "system" fn get_SmartCardStatus, Impl: IBDA_ConditionalAccess_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcardstatus: *mut SmartCardStatusType, pcardassociation: *mut SmartCardAssociationType, pbstrcarderror: *mut super::super::Foundation::BSTR, pfooblocked: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_SmartCardStatus, Impl: IBDA_ConditionalAccess_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcardstatus: *mut SmartCardStatusType, pcardassociation: *mut SmartCardAssociationType, pbstrcarderror: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfooblocked: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_SmartCardStatus(::core::mem::transmute_copy(&pcardstatus), ::core::mem::transmute_copy(&pcardassociation), ::core::mem::transmute_copy(&pbstrcarderror), ::core::mem::transmute_copy(&pfooblocked)).into() } - unsafe extern "system" fn get_SmartCardInfo, Impl: IBDA_ConditionalAccess_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcardname: *mut super::super::Foundation::BSTR, pbstrcardmanufacturer: *mut super::super::Foundation::BSTR, pfdaylightsavings: *mut i16, pbyratingregion: *mut u8, pltimezoneoffsetminutes: *mut i32, pbstrlanguage: *mut super::super::Foundation::BSTR, pealocationcode: *mut EALocationCodeType) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_SmartCardInfo, Impl: IBDA_ConditionalAccess_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcardname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrcardmanufacturer: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfdaylightsavings: *mut i16, pbyratingregion: *mut u8, pltimezoneoffsetminutes: *mut i32, pbstrlanguage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pealocationcode: *mut EALocationCodeType) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_SmartCardInfo(::core::mem::transmute_copy(&pbstrcardname), ::core::mem::transmute_copy(&pbstrcardmanufacturer), ::core::mem::transmute_copy(&pfdaylightsavings), ::core::mem::transmute_copy(&pbyratingregion), ::core::mem::transmute_copy(&pltimezoneoffsetminutes), ::core::mem::transmute_copy(&pbstrlanguage), ::core::mem::transmute_copy(&pealocationcode)).into() @@ -6825,7 +6819,7 @@ impl IBDA_ConditionalAccess_Vtbl { let this = (*this).get_impl(); this.RemoveProgram(::core::mem::transmute_copy(&usprogramnumber)).into() } - unsafe extern "system" fn GetModuleUI, Impl: IBDA_ConditionalAccess_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bydialognumber: u8, pbstrurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetModuleUI, Impl: IBDA_ConditionalAccess_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bydialognumber: u8, pbstrurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetModuleUI(::core::mem::transmute_copy(&bydialognumber)) { @@ -6859,20 +6853,17 @@ impl IBDA_ConditionalAccess_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IBDA_ConditionalAccessEx_Impl: Sized { - fn CheckEntitlementToken(&self, uldialogrequest: u32, bstrlanguage: &super::super::Foundation::BSTR, requesttype: BDA_CONDITIONALACCESS_REQUESTTYPE, ulcbentitlementtokenlen: u32, pbentitlementtoken: *const u8) -> ::windows::core::Result; + fn CheckEntitlementToken(&self, uldialogrequest: u32, bstrlanguage: &::windows::core::BSTR, requesttype: BDA_CONDITIONALACCESS_REQUESTTYPE, ulcbentitlementtokenlen: u32, pbentitlementtoken: *const u8) -> ::windows::core::Result; fn SetCaptureToken(&self, ulcbcapturetokenlen: u32, pbcapturetoken: *const u8) -> ::windows::core::Result<()>; - fn OpenBroadcastMmi(&self, uldialogrequest: u32, bstrlanguage: &super::super::Foundation::BSTR, eventid: u32) -> ::windows::core::Result<()>; - fn CloseMmiDialog(&self, uldialogrequest: u32, bstrlanguage: &super::super::Foundation::BSTR, uldialognumber: u32, reasoncode: BDA_CONDITIONALACCESS_MMICLOSEREASON) -> ::windows::core::Result; + fn OpenBroadcastMmi(&self, uldialogrequest: u32, bstrlanguage: &::windows::core::BSTR, eventid: u32) -> ::windows::core::Result<()>; + fn CloseMmiDialog(&self, uldialogrequest: u32, bstrlanguage: &::windows::core::BSTR, uldialognumber: u32, reasoncode: BDA_CONDITIONALACCESS_MMICLOSEREASON) -> ::windows::core::Result; fn CreateDialogRequestNumber(&self) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IBDA_ConditionalAccessEx {} -#[cfg(feature = "Win32_Foundation")] impl IBDA_ConditionalAccessEx_Vtbl { pub const fn new, Impl: IBDA_ConditionalAccessEx_Impl, const OFFSET: isize>() -> IBDA_ConditionalAccessEx_Vtbl { - unsafe extern "system" fn CheckEntitlementToken, Impl: IBDA_ConditionalAccessEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uldialogrequest: u32, bstrlanguage: ::core::mem::ManuallyDrop, requesttype: BDA_CONDITIONALACCESS_REQUESTTYPE, ulcbentitlementtokenlen: u32, pbentitlementtoken: *const u8, puldescramblestatus: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn CheckEntitlementToken, Impl: IBDA_ConditionalAccessEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uldialogrequest: u32, bstrlanguage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, requesttype: BDA_CONDITIONALACCESS_REQUESTTYPE, ulcbentitlementtokenlen: u32, pbentitlementtoken: *const u8, puldescramblestatus: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CheckEntitlementToken(::core::mem::transmute_copy(&uldialogrequest), ::core::mem::transmute(&bstrlanguage), ::core::mem::transmute_copy(&requesttype), ::core::mem::transmute_copy(&ulcbentitlementtokenlen), ::core::mem::transmute_copy(&pbentitlementtoken)) { @@ -6888,12 +6879,12 @@ impl IBDA_ConditionalAccessEx_Vtbl { let this = (*this).get_impl(); this.SetCaptureToken(::core::mem::transmute_copy(&ulcbcapturetokenlen), ::core::mem::transmute_copy(&pbcapturetoken)).into() } - unsafe extern "system" fn OpenBroadcastMmi, Impl: IBDA_ConditionalAccessEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uldialogrequest: u32, bstrlanguage: ::core::mem::ManuallyDrop, eventid: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn OpenBroadcastMmi, Impl: IBDA_ConditionalAccessEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uldialogrequest: u32, bstrlanguage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, eventid: u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OpenBroadcastMmi(::core::mem::transmute_copy(&uldialogrequest), ::core::mem::transmute(&bstrlanguage), ::core::mem::transmute_copy(&eventid)).into() } - unsafe extern "system" fn CloseMmiDialog, Impl: IBDA_ConditionalAccessEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uldialogrequest: u32, bstrlanguage: ::core::mem::ManuallyDrop, uldialognumber: u32, reasoncode: BDA_CONDITIONALACCESS_MMICLOSEREASON, pulsessionresult: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn CloseMmiDialog, Impl: IBDA_ConditionalAccessEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uldialogrequest: u32, bstrlanguage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, uldialognumber: u32, reasoncode: BDA_CONDITIONALACCESS_MMICLOSEREASON, pulsessionresult: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CloseMmiDialog(::core::mem::transmute_copy(&uldialogrequest), ::core::mem::transmute(&bstrlanguage), ::core::mem::transmute_copy(&uldialognumber), ::core::mem::transmute_copy(&reasoncode)) { @@ -6928,23 +6919,20 @@ impl IBDA_ConditionalAccessEx_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IBDA_DRIDRMService_Impl: Sized { - fn SetDRM(&self, bstrnewdrm: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetDRMStatus(&self, pbstrdrmuuidlist: *mut super::super::Foundation::BSTR, drmuuid: *mut ::windows::core::GUID) -> ::windows::core::Result<()>; + fn SetDRM(&self, bstrnewdrm: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetDRMStatus(&self, pbstrdrmuuidlist: *mut ::windows::core::BSTR, drmuuid: *mut ::windows::core::GUID) -> ::windows::core::Result<()>; fn GetPairingStatus(&self, penumpairingstatus: *mut BDA_DrmPairingError) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IBDA_DRIDRMService {} -#[cfg(feature = "Win32_Foundation")] impl IBDA_DRIDRMService_Vtbl { pub const fn new, Impl: IBDA_DRIDRMService_Impl, const OFFSET: isize>() -> IBDA_DRIDRMService_Vtbl { - unsafe extern "system" fn SetDRM, Impl: IBDA_DRIDRMService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrnewdrm: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDRM, Impl: IBDA_DRIDRMService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrnewdrm: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDRM(::core::mem::transmute(&bstrnewdrm)).into() } - unsafe extern "system" fn GetDRMStatus, Impl: IBDA_DRIDRMService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdrmuuidlist: *mut super::super::Foundation::BSTR, drmuuid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDRMStatus, Impl: IBDA_DRIDRMService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdrmuuidlist: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, drmuuid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetDRMStatus(::core::mem::transmute_copy(&pbstrdrmuuidlist), ::core::mem::transmute_copy(&drmuuid)).into() @@ -7057,14 +7045,11 @@ impl IBDA_DRM_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IBDA_DRMService_Impl: Sized { fn SetDRM(&self, puuidnewdrm: *const ::windows::core::GUID) -> ::windows::core::Result<()>; - fn GetDRMStatus(&self, pbstrdrmuuidlist: *mut super::super::Foundation::BSTR, drmuuid: *mut ::windows::core::GUID) -> ::windows::core::Result<()>; + fn GetDRMStatus(&self, pbstrdrmuuidlist: *mut ::windows::core::BSTR, drmuuid: *mut ::windows::core::GUID) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IBDA_DRMService {} -#[cfg(feature = "Win32_Foundation")] impl IBDA_DRMService_Vtbl { pub const fn new, Impl: IBDA_DRMService_Impl, const OFFSET: isize>() -> IBDA_DRMService_Vtbl { unsafe extern "system" fn SetDRM, Impl: IBDA_DRMService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, puuidnewdrm: *const ::windows::core::GUID) -> ::windows::core::HRESULT { @@ -7072,7 +7057,7 @@ impl IBDA_DRMService_Vtbl { let this = (*this).get_impl(); this.SetDRM(::core::mem::transmute_copy(&puuidnewdrm)).into() } - unsafe extern "system" fn GetDRMStatus, Impl: IBDA_DRMService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdrmuuidlist: *mut super::super::Foundation::BSTR, drmuuid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDRMStatus, Impl: IBDA_DRMService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdrmuuidlist: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, drmuuid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetDRMStatus(::core::mem::transmute_copy(&pbstrdrmuuidlist), ::core::mem::transmute_copy(&drmuuid)).into() @@ -7582,12 +7567,12 @@ impl IBDA_EventingService_Vtbl { } #[cfg(feature = "Win32_Foundation")] pub trait IBDA_FDC_Impl: Sized { - fn GetStatus(&self, currentbitrate: *mut u32, carrierlock: *mut super::super::Foundation::BOOL, currentfrequency: *mut u32, currentspectruminversion: *mut super::super::Foundation::BOOL, currentpidlist: *mut super::super::Foundation::BSTR, currenttidlist: *mut super::super::Foundation::BSTR, overflow: *mut super::super::Foundation::BOOL) -> ::windows::core::Result<()>; - fn RequestTables(&self, tableids: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn AddPid(&self, pidstoadd: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn RemovePid(&self, pidstoremove: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn AddTid(&self, tidstoadd: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn RemoveTid(&self, tidstoremove: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetStatus(&self, currentbitrate: *mut u32, carrierlock: *mut super::super::Foundation::BOOL, currentfrequency: *mut u32, currentspectruminversion: *mut super::super::Foundation::BOOL, currentpidlist: *mut ::windows::core::BSTR, currenttidlist: *mut ::windows::core::BSTR, overflow: *mut super::super::Foundation::BOOL) -> ::windows::core::Result<()>; + fn RequestTables(&self, tableids: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn AddPid(&self, pidstoadd: &::windows::core::BSTR) -> ::windows::core::Result; + fn RemovePid(&self, pidstoremove: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn AddTid(&self, tidstoadd: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; + fn RemoveTid(&self, tidstoremove: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetTableSection(&self, pid: *mut u32, maxbuffersize: u32, actualsize: *mut u32, secbuffer: *mut u8) -> ::windows::core::Result<()>; } #[cfg(feature = "Win32_Foundation")] @@ -7595,17 +7580,17 @@ impl ::windows::core::RuntimeName for IBDA_FDC {} #[cfg(feature = "Win32_Foundation")] impl IBDA_FDC_Vtbl { pub const fn new, Impl: IBDA_FDC_Impl, const OFFSET: isize>() -> IBDA_FDC_Vtbl { - unsafe extern "system" fn GetStatus, Impl: IBDA_FDC_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, currentbitrate: *mut u32, carrierlock: *mut super::super::Foundation::BOOL, currentfrequency: *mut u32, currentspectruminversion: *mut super::super::Foundation::BOOL, currentpidlist: *mut super::super::Foundation::BSTR, currenttidlist: *mut super::super::Foundation::BSTR, overflow: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetStatus, Impl: IBDA_FDC_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, currentbitrate: *mut u32, carrierlock: *mut super::super::Foundation::BOOL, currentfrequency: *mut u32, currentspectruminversion: *mut super::super::Foundation::BOOL, currentpidlist: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, currenttidlist: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, overflow: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetStatus(::core::mem::transmute_copy(¤tbitrate), ::core::mem::transmute_copy(&carrierlock), ::core::mem::transmute_copy(¤tfrequency), ::core::mem::transmute_copy(¤tspectruminversion), ::core::mem::transmute_copy(¤tpidlist), ::core::mem::transmute_copy(¤ttidlist), ::core::mem::transmute_copy(&overflow)).into() } - unsafe extern "system" fn RequestTables, Impl: IBDA_FDC_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, tableids: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn RequestTables, Impl: IBDA_FDC_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, tableids: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RequestTables(::core::mem::transmute(&tableids)).into() } - unsafe extern "system" fn AddPid, Impl: IBDA_FDC_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pidstoadd: ::core::mem::ManuallyDrop, remainingfilterentries: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddPid, Impl: IBDA_FDC_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pidstoadd: ::core::mem::ManuallyDrop<::windows::core::BSTR>, remainingfilterentries: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AddPid(::core::mem::transmute(&pidstoadd)) { @@ -7616,12 +7601,12 @@ impl IBDA_FDC_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RemovePid, Impl: IBDA_FDC_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pidstoremove: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn RemovePid, Impl: IBDA_FDC_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pidstoremove: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RemovePid(::core::mem::transmute(&pidstoremove)).into() } - unsafe extern "system" fn AddTid, Impl: IBDA_FDC_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, tidstoadd: ::core::mem::ManuallyDrop, currenttidlist: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddTid, Impl: IBDA_FDC_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, tidstoadd: ::core::mem::ManuallyDrop<::windows::core::BSTR>, currenttidlist: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AddTid(::core::mem::transmute(&tidstoadd)) { @@ -7632,7 +7617,7 @@ impl IBDA_FDC_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RemoveTid, Impl: IBDA_FDC_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, tidstoremove: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn RemoveTid, Impl: IBDA_FDC_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, tidstoremove: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RemoveTid(::core::mem::transmute(&tidstoremove)).into() @@ -7754,18 +7739,15 @@ impl IBDA_FrequencyFilter_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IBDA_GuideDataDeliveryService_Impl: Sized { fn GetGuideDataType(&self) -> ::windows::core::Result<::windows::core::GUID>; fn GetGuideData(&self, pulcbbufferlen: *mut u32, pbbuffer: *mut u8, pulguidedatapercentageprogress: *mut u32) -> ::windows::core::Result<()>; fn RequestGuideDataUpdate(&self) -> ::windows::core::Result<()>; - fn GetTuneXmlFromServiceIdx(&self, ul64serviceidx: u64) -> ::windows::core::Result; + fn GetTuneXmlFromServiceIdx(&self, ul64serviceidx: u64) -> ::windows::core::Result<::windows::core::BSTR>; fn GetServices(&self, pulcbbufferlen: *mut u32, pbbuffer: *mut u8) -> ::windows::core::Result<()>; - fn GetServiceInfoFromTuneXml(&self, bstrtunexml: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetServiceInfoFromTuneXml(&self, bstrtunexml: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IBDA_GuideDataDeliveryService {} -#[cfg(feature = "Win32_Foundation")] impl IBDA_GuideDataDeliveryService_Vtbl { pub const fn new, Impl: IBDA_GuideDataDeliveryService_Impl, const OFFSET: isize>() -> IBDA_GuideDataDeliveryService_Vtbl { unsafe extern "system" fn GetGuideDataType, Impl: IBDA_GuideDataDeliveryService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pguiddatatype: *mut ::windows::core::GUID) -> ::windows::core::HRESULT { @@ -7789,7 +7771,7 @@ impl IBDA_GuideDataDeliveryService_Vtbl { let this = (*this).get_impl(); this.RequestGuideDataUpdate().into() } - unsafe extern "system" fn GetTuneXmlFromServiceIdx, Impl: IBDA_GuideDataDeliveryService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ul64serviceidx: u64, pbstrtunexml: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetTuneXmlFromServiceIdx, Impl: IBDA_GuideDataDeliveryService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ul64serviceidx: u64, pbstrtunexml: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetTuneXmlFromServiceIdx(::core::mem::transmute_copy(&ul64serviceidx)) { @@ -7805,7 +7787,7 @@ impl IBDA_GuideDataDeliveryService_Vtbl { let this = (*this).get_impl(); this.GetServices(::core::mem::transmute_copy(&pulcbbufferlen), ::core::mem::transmute_copy(&pbbuffer)).into() } - unsafe extern "system" fn GetServiceInfoFromTuneXml, Impl: IBDA_GuideDataDeliveryService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtunexml: ::core::mem::ManuallyDrop, pbstrservicedescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetServiceInfoFromTuneXml, Impl: IBDA_GuideDataDeliveryService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtunexml: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrservicedescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetServiceInfoFromTuneXml(::core::mem::transmute(&bstrtunexml)) { @@ -7857,15 +7839,12 @@ impl IBDA_IPSinkControl_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IBDA_IPSinkInfo_Impl: Sized { fn get_MulticastList(&self, pulcbaddresses: *mut u32, ppbaddresslist: *mut *mut u8) -> ::windows::core::Result<()>; - fn AdapterIPAddress(&self) -> ::windows::core::Result; - fn AdapterDescription(&self) -> ::windows::core::Result; + fn AdapterIPAddress(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn AdapterDescription(&self) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IBDA_IPSinkInfo {} -#[cfg(feature = "Win32_Foundation")] impl IBDA_IPSinkInfo_Vtbl { pub const fn new, Impl: IBDA_IPSinkInfo_Impl, const OFFSET: isize>() -> IBDA_IPSinkInfo_Vtbl { unsafe extern "system" fn get_MulticastList, Impl: IBDA_IPSinkInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pulcbaddresses: *mut u32, ppbaddresslist: *mut *mut u8) -> ::windows::core::HRESULT { @@ -7873,7 +7852,7 @@ impl IBDA_IPSinkInfo_Vtbl { let this = (*this).get_impl(); this.get_MulticastList(::core::mem::transmute_copy(&pulcbaddresses), ::core::mem::transmute_copy(&ppbaddresslist)).into() } - unsafe extern "system" fn AdapterIPAddress, Impl: IBDA_IPSinkInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrbuffer: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn AdapterIPAddress, Impl: IBDA_IPSinkInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrbuffer: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AdapterIPAddress() { @@ -7884,7 +7863,7 @@ impl IBDA_IPSinkInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AdapterDescription, Impl: IBDA_IPSinkInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrbuffer: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn AdapterDescription, Impl: IBDA_IPSinkInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrbuffer: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AdapterDescription() { @@ -8113,18 +8092,15 @@ impl IBDA_MUX_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IBDA_NameValueService_Impl: Sized { - fn GetValueNameByIndex(&self, ulindex: u32) -> ::windows::core::Result; - fn GetValue(&self, bstrname: &super::super::Foundation::BSTR, bstrlanguage: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn SetValue(&self, uldialogrequest: u32, bstrlanguage: &super::super::Foundation::BSTR, bstrname: &super::super::Foundation::BSTR, bstrvalue: &super::super::Foundation::BSTR, ulreserved: u32) -> ::windows::core::Result<()>; + fn GetValueNameByIndex(&self, ulindex: u32) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetValue(&self, bstrname: &::windows::core::BSTR, bstrlanguage: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetValue(&self, uldialogrequest: u32, bstrlanguage: &::windows::core::BSTR, bstrname: &::windows::core::BSTR, bstrvalue: &::windows::core::BSTR, ulreserved: u32) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IBDA_NameValueService {} -#[cfg(feature = "Win32_Foundation")] impl IBDA_NameValueService_Vtbl { pub const fn new, Impl: IBDA_NameValueService_Impl, const OFFSET: isize>() -> IBDA_NameValueService_Vtbl { - unsafe extern "system" fn GetValueNameByIndex, Impl: IBDA_NameValueService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ulindex: u32, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetValueNameByIndex, Impl: IBDA_NameValueService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ulindex: u32, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetValueNameByIndex(::core::mem::transmute_copy(&ulindex)) { @@ -8135,7 +8111,7 @@ impl IBDA_NameValueService_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetValue, Impl: IBDA_NameValueService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, bstrlanguage: ::core::mem::ManuallyDrop, pbstrvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetValue, Impl: IBDA_NameValueService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrlanguage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetValue(::core::mem::transmute(&bstrname), ::core::mem::transmute(&bstrlanguage)) { @@ -8146,7 +8122,7 @@ impl IBDA_NameValueService_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetValue, Impl: IBDA_NameValueService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uldialogrequest: u32, bstrlanguage: ::core::mem::ManuallyDrop, bstrname: ::core::mem::ManuallyDrop, bstrvalue: ::core::mem::ManuallyDrop, ulreserved: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetValue, Impl: IBDA_NameValueService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uldialogrequest: u32, bstrlanguage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ulreserved: u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetValue(::core::mem::transmute_copy(&uldialogrequest), ::core::mem::transmute(&bstrlanguage), ::core::mem::transmute(&bstrname), ::core::mem::transmute(&bstrvalue), ::core::mem::transmute_copy(&ulreserved)).into() @@ -8724,21 +8700,18 @@ impl IBDA_WMDRMSession_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IBDA_WMDRMTuner_Impl: Sized { - fn PurchaseEntitlement(&self, uldialogrequest: u32, bstrlanguage: &super::super::Foundation::BSTR, ulpurchasetokenlen: u32, pbpurchasetoken: *const u8, puldescramblestatus: *mut u32, pulcapturetokenlen: *mut u32, pbcapturetoken: *mut u8) -> ::windows::core::Result<()>; + fn PurchaseEntitlement(&self, uldialogrequest: u32, bstrlanguage: &::windows::core::BSTR, ulpurchasetokenlen: u32, pbpurchasetoken: *const u8, puldescramblestatus: *mut u32, pulcapturetokenlen: *mut u32, pbcapturetoken: *mut u8) -> ::windows::core::Result<()>; fn CancelCaptureToken(&self, ulcapturetokenlen: u32, pbcapturetoken: *const u8) -> ::windows::core::Result<()>; fn SetPidProtection(&self, ulpid: u32, uuidkey: *const ::windows::core::GUID) -> ::windows::core::Result<()>; fn GetPidProtection(&self, pulpid: u32) -> ::windows::core::Result<::windows::core::GUID>; fn SetSyncValue(&self, ulsyncvalue: u32) -> ::windows::core::Result<()>; fn GetStartCodeProfile(&self, pulstartcodeprofilelen: *mut u32, pbstartcodeprofile: *mut u8) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IBDA_WMDRMTuner {} -#[cfg(feature = "Win32_Foundation")] impl IBDA_WMDRMTuner_Vtbl { pub const fn new, Impl: IBDA_WMDRMTuner_Impl, const OFFSET: isize>() -> IBDA_WMDRMTuner_Vtbl { - unsafe extern "system" fn PurchaseEntitlement, Impl: IBDA_WMDRMTuner_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uldialogrequest: u32, bstrlanguage: ::core::mem::ManuallyDrop, ulpurchasetokenlen: u32, pbpurchasetoken: *const u8, puldescramblestatus: *mut u32, pulcapturetokenlen: *mut u32, pbcapturetoken: *mut u8) -> ::windows::core::HRESULT { + unsafe extern "system" fn PurchaseEntitlement, Impl: IBDA_WMDRMTuner_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uldialogrequest: u32, bstrlanguage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ulpurchasetokenlen: u32, pbpurchasetoken: *const u8, puldescramblestatus: *mut u32, pulcapturetokenlen: *mut u32, pbcapturetoken: *mut u8) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.PurchaseEntitlement(::core::mem::transmute_copy(&uldialogrequest), ::core::mem::transmute(&bstrlanguage), ::core::mem::transmute_copy(&ulpurchasetokenlen), ::core::mem::transmute_copy(&pbpurchasetoken), ::core::mem::transmute_copy(&puldescramblestatus), ::core::mem::transmute_copy(&pulcapturetokenlen), ::core::mem::transmute_copy(&pbcapturetoken)).into() @@ -10203,15 +10176,15 @@ impl ICaptureGraphBuilder2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IChannelIDTuneRequest_Impl: Sized + super::super::System::Com::IDispatch_Impl + ITuneRequest_Impl { - fn ChannelID(&self) -> ::windows::core::Result; - fn SetChannelID(&self, channelid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ChannelID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetChannelID(&self, channelid: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IChannelIDTuneRequest {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IChannelIDTuneRequest_Vtbl { pub const fn new, Impl: IChannelIDTuneRequest_Impl, const OFFSET: isize>() -> IChannelIDTuneRequest_Vtbl { - unsafe extern "system" fn ChannelID, Impl: IChannelIDTuneRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, channelid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ChannelID, Impl: IChannelIDTuneRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, channelid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ChannelID() { @@ -10222,7 +10195,7 @@ impl IChannelIDTuneRequest_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetChannelID, Impl: IChannelIDTuneRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, channelid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetChannelID, Impl: IChannelIDTuneRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, channelid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetChannelID(::core::mem::transmute(&channelid)).into() @@ -10281,8 +10254,8 @@ pub trait IComponent_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn SetDescLangID(&self, langid: i32) -> ::windows::core::Result<()>; fn Status(&self) -> ::windows::core::Result; fn SetStatus(&self, status: ComponentStatus) -> ::windows::core::Result<()>; - fn Description(&self) -> ::windows::core::Result; - fn SetDescription(&self, description: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Clone(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -10338,7 +10311,7 @@ impl IComponent_Vtbl { let this = (*this).get_impl(); this.SetStatus(::core::mem::transmute_copy(&status)).into() } - unsafe extern "system" fn Description, Impl: IComponent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IComponent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -10349,7 +10322,7 @@ impl IComponent_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription, Impl: IComponent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDescription, Impl: IComponent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDescription(::core::mem::transmute(&description)).into() @@ -10386,16 +10359,16 @@ impl IComponent_Vtbl { pub trait IComponentType_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn Category(&self) -> ::windows::core::Result; fn SetCategory(&self, category: ComponentCategory) -> ::windows::core::Result<()>; - fn MediaMajorType(&self) -> ::windows::core::Result; - fn SetMediaMajorType(&self, mediamajortype: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn MediaMajorType(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetMediaMajorType(&self, mediamajortype: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn _MediaMajorType(&self) -> ::windows::core::Result<::windows::core::GUID>; fn Set_MediaMajorType(&self, mediamajortypeguid: *const ::windows::core::GUID) -> ::windows::core::Result<()>; - fn MediaSubType(&self) -> ::windows::core::Result; - fn SetMediaSubType(&self, mediasubtype: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn MediaSubType(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetMediaSubType(&self, mediasubtype: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn _MediaSubType(&self) -> ::windows::core::Result<::windows::core::GUID>; fn Set_MediaSubType(&self, mediasubtypeguid: *const ::windows::core::GUID) -> ::windows::core::Result<()>; - fn MediaFormatType(&self) -> ::windows::core::Result; - fn SetMediaFormatType(&self, mediaformattype: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn MediaFormatType(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetMediaFormatType(&self, mediaformattype: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn _MediaFormatType(&self) -> ::windows::core::Result<::windows::core::GUID>; fn Set_MediaFormatType(&self, mediaformattypeguid: *const ::windows::core::GUID) -> ::windows::core::Result<()>; fn MediaType(&self) -> ::windows::core::Result; @@ -10423,7 +10396,7 @@ impl IComponentType_Vtbl { let this = (*this).get_impl(); this.SetCategory(::core::mem::transmute_copy(&category)).into() } - unsafe extern "system" fn MediaMajorType, Impl: IComponentType_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mediamajortype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn MediaMajorType, Impl: IComponentType_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mediamajortype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.MediaMajorType() { @@ -10434,7 +10407,7 @@ impl IComponentType_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetMediaMajorType, Impl: IComponentType_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mediamajortype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetMediaMajorType, Impl: IComponentType_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mediamajortype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetMediaMajorType(::core::mem::transmute(&mediamajortype)).into() @@ -10455,7 +10428,7 @@ impl IComponentType_Vtbl { let this = (*this).get_impl(); this.Set_MediaMajorType(::core::mem::transmute_copy(&mediamajortypeguid)).into() } - unsafe extern "system" fn MediaSubType, Impl: IComponentType_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mediasubtype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn MediaSubType, Impl: IComponentType_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mediasubtype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.MediaSubType() { @@ -10466,7 +10439,7 @@ impl IComponentType_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetMediaSubType, Impl: IComponentType_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mediasubtype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetMediaSubType, Impl: IComponentType_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mediasubtype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetMediaSubType(::core::mem::transmute(&mediasubtype)).into() @@ -10487,7 +10460,7 @@ impl IComponentType_Vtbl { let this = (*this).get_impl(); this.Set_MediaSubType(::core::mem::transmute_copy(&mediasubtypeguid)).into() } - unsafe extern "system" fn MediaFormatType, Impl: IComponentType_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mediaformattype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn MediaFormatType, Impl: IComponentType_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mediaformattype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.MediaFormatType() { @@ -10498,7 +10471,7 @@ impl IComponentType_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetMediaFormatType, Impl: IComponentType_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mediaformattype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetMediaFormatType, Impl: IComponentType_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mediaformattype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetMediaFormatType(::core::mem::transmute(&mediaformattype)).into() @@ -11296,22 +11269,19 @@ impl IDMOWrapperFilter_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDShowPlugin_Impl: Sized { - fn URL(&self, purl: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn UserAgent(&self, puseragent: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn URL(&self, purl: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn UserAgent(&self, puseragent: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDShowPlugin {} -#[cfg(feature = "Win32_Foundation")] impl IDShowPlugin_Vtbl { pub const fn new, Impl: IDShowPlugin_Impl, const OFFSET: isize>() -> IDShowPlugin_Vtbl { - unsafe extern "system" fn URL, Impl: IDShowPlugin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, purl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn URL, Impl: IDShowPlugin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, purl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.URL(::core::mem::transmute_copy(&purl)).into() } - unsafe extern "system" fn UserAgent, Impl: IDShowPlugin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, puseragent: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UserAgent, Impl: IDShowPlugin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, puseragent: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.UserAgent(::core::mem::transmute_copy(&puseragent)).into() @@ -11424,7 +11394,7 @@ impl IDTFilter_Vtbl { } #[cfg(feature = "Win32_Foundation")] pub trait IDTFilter2_Impl: Sized + IDTFilter_Impl { - fn ChallengeUrl(&self) -> ::windows::core::Result; + fn ChallengeUrl(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetCurrLicenseExpDate(&self, prottype: *const ProtType) -> ::windows::core::Result; fn GetLastErrorCode(&self) -> ::windows::core::Result<()>; } @@ -11433,7 +11403,7 @@ impl ::windows::core::RuntimeName for IDTFilter2 {} #[cfg(feature = "Win32_Foundation")] impl IDTFilter2_Vtbl { pub const fn new, Impl: IDTFilter2_Impl, const OFFSET: isize>() -> IDTFilter2_Vtbl { - unsafe extern "system" fn ChallengeUrl, Impl: IDTFilter2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrchallengeurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ChallengeUrl, Impl: IDTFilter2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrchallengeurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ChallengeUrl() { @@ -11475,7 +11445,7 @@ impl IDTFilter2_Vtbl { pub trait IDTFilter3_Impl: Sized + IDTFilter_Impl + IDTFilter2_Impl { fn GetProtectionType(&self) -> ::windows::core::Result; fn LicenseHasExpirationDate(&self) -> ::windows::core::Result; - fn SetRights(&self, bstrrights: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetRights(&self, bstrrights: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDTFilter3 {} @@ -11504,7 +11474,7 @@ impl IDTFilter3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetRights, Impl: IDTFilter3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrights: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetRights, Impl: IDTFilter3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrights: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetRights(::core::mem::transmute(&bstrrights)).into() @@ -11866,8 +11836,8 @@ pub trait IDVBSTuningSpace_Impl: Sized + super::super::System::Com::IDispatch_Im fn SetHighOscillator(&self, highoscillator: i32) -> ::windows::core::Result<()>; fn LNBSwitch(&self) -> ::windows::core::Result; fn SetLNBSwitch(&self, lnbswitch: i32) -> ::windows::core::Result<()>; - fn InputRange(&self) -> ::windows::core::Result; - fn SetInputRange(&self, inputrange: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn InputRange(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetInputRange(&self, inputrange: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SpectralInversion(&self) -> ::windows::core::Result; fn SetSpectralInversion(&self, spectralinversionval: SpectralInversion) -> ::windows::core::Result<()>; } @@ -11924,7 +11894,7 @@ impl IDVBSTuningSpace_Vtbl { let this = (*this).get_impl(); this.SetLNBSwitch(::core::mem::transmute_copy(&lnbswitch)).into() } - unsafe extern "system" fn InputRange, Impl: IDVBSTuningSpace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, inputrange: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn InputRange, Impl: IDVBSTuningSpace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, inputrange: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.InputRange() { @@ -11935,7 +11905,7 @@ impl IDVBSTuningSpace_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetInputRange, Impl: IDVBSTuningSpace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, inputrange: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetInputRange, Impl: IDVBSTuningSpace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, inputrange: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetInputRange(::core::mem::transmute(&inputrange)).into() @@ -14518,7 +14488,6 @@ impl IDvbCableDeliverySystemDescriptor_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDvbComponentDescriptor_Impl: Sized { fn GetTag(&self) -> ::windows::core::Result; fn GetLength(&self) -> ::windows::core::Result; @@ -14526,11 +14495,9 @@ pub trait IDvbComponentDescriptor_Impl: Sized { fn GetComponentType(&self) -> ::windows::core::Result; fn GetComponentTag(&self) -> ::windows::core::Result; fn GetLanguageCode(&self, pszcode: *mut u8) -> ::windows::core::Result<()>; - fn GetTextW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result; + fn GetTextW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDvbComponentDescriptor {} -#[cfg(feature = "Win32_Foundation")] impl IDvbComponentDescriptor_Vtbl { pub const fn new, Impl: IDvbComponentDescriptor_Impl, const OFFSET: isize>() -> IDvbComponentDescriptor_Vtbl { unsafe extern "system" fn GetTag, Impl: IDvbComponentDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT { @@ -14593,7 +14560,7 @@ impl IDvbComponentDescriptor_Vtbl { let this = (*this).get_impl(); this.GetLanguageCode(::core::mem::transmute_copy(&pszcode)).into() } - unsafe extern "system" fn GetTextW, Impl: IDvbComponentDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetTextW, Impl: IDvbComponentDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetTextW(::core::mem::transmute_copy(&convmode)) { @@ -14967,7 +14934,6 @@ impl IDvbDefaultAuthorityDescriptor_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDvbExtendedEventDescriptor_Impl: Sized { fn GetTag(&self) -> ::windows::core::Result; fn GetLength(&self) -> ::windows::core::Result; @@ -14975,15 +14941,13 @@ pub trait IDvbExtendedEventDescriptor_Impl: Sized { fn GetLastDescriptorNumber(&self) -> ::windows::core::Result; fn GetLanguageCode(&self, pszcode: *mut u8) -> ::windows::core::Result<()>; fn GetCountOfRecords(&self) -> ::windows::core::Result; - fn GetRecordItemW(&self, brecordindex: u8, convmode: DVB_STRCONV_MODE, pbstrdesc: *mut super::super::Foundation::BSTR, pbstritem: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetConcatenatedItemW(&self, pfollowingdescriptor: &::core::option::Option, convmode: DVB_STRCONV_MODE, pbstrdesc: *mut super::super::Foundation::BSTR, pbstritem: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetTextW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result; - fn GetConcatenatedTextW(&self, followingdescriptor: &::core::option::Option, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result; + fn GetRecordItemW(&self, brecordindex: u8, convmode: DVB_STRCONV_MODE, pbstrdesc: *mut ::windows::core::BSTR, pbstritem: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetConcatenatedItemW(&self, pfollowingdescriptor: &::core::option::Option, convmode: DVB_STRCONV_MODE, pbstrdesc: *mut ::windows::core::BSTR, pbstritem: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetTextW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetConcatenatedTextW(&self, followingdescriptor: &::core::option::Option, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR>; fn GetRecordItemRawBytes(&self, brecordindex: u8, ppbrawitem: *mut *mut u8, pbitemlength: *mut u8) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDvbExtendedEventDescriptor {} -#[cfg(feature = "Win32_Foundation")] impl IDvbExtendedEventDescriptor_Vtbl { pub const fn new, Impl: IDvbExtendedEventDescriptor_Impl, const OFFSET: isize>() -> IDvbExtendedEventDescriptor_Vtbl { unsafe extern "system" fn GetTag, Impl: IDvbExtendedEventDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT { @@ -15046,17 +15010,17 @@ impl IDvbExtendedEventDescriptor_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordItemW, Impl: IDvbExtendedEventDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, brecordindex: u8, convmode: DVB_STRCONV_MODE, pbstrdesc: *mut super::super::Foundation::BSTR, pbstritem: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetRecordItemW, Impl: IDvbExtendedEventDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, brecordindex: u8, convmode: DVB_STRCONV_MODE, pbstrdesc: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstritem: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetRecordItemW(::core::mem::transmute_copy(&brecordindex), ::core::mem::transmute_copy(&convmode), ::core::mem::transmute_copy(&pbstrdesc), ::core::mem::transmute_copy(&pbstritem)).into() } - unsafe extern "system" fn GetConcatenatedItemW, Impl: IDvbExtendedEventDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfollowingdescriptor: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrdesc: *mut super::super::Foundation::BSTR, pbstritem: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetConcatenatedItemW, Impl: IDvbExtendedEventDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfollowingdescriptor: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrdesc: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstritem: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetConcatenatedItemW(::core::mem::transmute(&pfollowingdescriptor), ::core::mem::transmute_copy(&convmode), ::core::mem::transmute_copy(&pbstrdesc), ::core::mem::transmute_copy(&pbstritem)).into() } - unsafe extern "system" fn GetTextW, Impl: IDvbExtendedEventDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetTextW, Impl: IDvbExtendedEventDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetTextW(::core::mem::transmute_copy(&convmode)) { @@ -15067,7 +15031,7 @@ impl IDvbExtendedEventDescriptor_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetConcatenatedTextW, Impl: IDvbExtendedEventDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, followingdescriptor: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetConcatenatedTextW, Impl: IDvbExtendedEventDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, followingdescriptor: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetConcatenatedTextW(::core::mem::transmute(&followingdescriptor), ::core::mem::transmute_copy(&convmode)) { @@ -15301,20 +15265,17 @@ impl IDvbLinkageDescriptor_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDvbLogicalChannel2Descriptor_Impl: Sized + IDvbLogicalChannelDescriptor_Impl + IDvbLogicalChannelDescriptor2_Impl { fn GetCountOfLists(&self) -> ::windows::core::Result; fn GetListId(&self, blistindex: u8) -> ::windows::core::Result; - fn GetListNameW(&self, blistindex: u8, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result; + fn GetListNameW(&self, blistindex: u8, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR>; fn GetListCountryCode(&self, blistindex: u8, pszcode: *mut u8) -> ::windows::core::Result<()>; fn GetListCountOfRecords(&self, bchannellistindex: u8) -> ::windows::core::Result; fn GetListRecordServiceId(&self, blistindex: u8, brecordindex: u8) -> ::windows::core::Result; fn GetListRecordLogicalChannelNumber(&self, blistindex: u8, brecordindex: u8) -> ::windows::core::Result; fn GetListRecordLogicalChannelAndVisibility(&self, blistindex: u8, brecordindex: u8) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDvbLogicalChannel2Descriptor {} -#[cfg(feature = "Win32_Foundation")] impl IDvbLogicalChannel2Descriptor_Vtbl { pub const fn new, Impl: IDvbLogicalChannel2Descriptor_Impl, const OFFSET: isize>() -> IDvbLogicalChannel2Descriptor_Vtbl { unsafe extern "system" fn GetCountOfLists, Impl: IDvbLogicalChannel2Descriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT { @@ -15339,7 +15300,7 @@ impl IDvbLogicalChannel2Descriptor_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetListNameW, Impl: IDvbLogicalChannel2Descriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, blistindex: u8, convmode: DVB_STRCONV_MODE, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetListNameW, Impl: IDvbLogicalChannel2Descriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, blistindex: u8, convmode: DVB_STRCONV_MODE, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetListNameW(::core::mem::transmute_copy(&blistindex), ::core::mem::transmute_copy(&convmode)) { @@ -15519,18 +15480,15 @@ impl IDvbLogicalChannelDescriptor2_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDvbMultilingualServiceNameDescriptor_Impl: Sized { fn GetTag(&self) -> ::windows::core::Result; fn GetLength(&self) -> ::windows::core::Result; fn GetCountOfRecords(&self) -> ::windows::core::Result; fn GetRecordLangId(&self, brecordindex: u8) -> ::windows::core::Result; - fn GetRecordServiceProviderNameW(&self, brecordindex: u8, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result; - fn GetRecordServiceNameW(&self, brecordindex: u8, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result; + fn GetRecordServiceProviderNameW(&self, brecordindex: u8, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetRecordServiceNameW(&self, brecordindex: u8, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDvbMultilingualServiceNameDescriptor {} -#[cfg(feature = "Win32_Foundation")] impl IDvbMultilingualServiceNameDescriptor_Vtbl { pub const fn new, Impl: IDvbMultilingualServiceNameDescriptor_Impl, const OFFSET: isize>() -> IDvbMultilingualServiceNameDescriptor_Vtbl { unsafe extern "system" fn GetTag, Impl: IDvbMultilingualServiceNameDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT { @@ -15577,7 +15535,7 @@ impl IDvbMultilingualServiceNameDescriptor_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordServiceProviderNameW, Impl: IDvbMultilingualServiceNameDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, brecordindex: u8, convmode: DVB_STRCONV_MODE, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetRecordServiceProviderNameW, Impl: IDvbMultilingualServiceNameDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, brecordindex: u8, convmode: DVB_STRCONV_MODE, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetRecordServiceProviderNameW(::core::mem::transmute_copy(&brecordindex), ::core::mem::transmute_copy(&convmode)) { @@ -15588,7 +15546,7 @@ impl IDvbMultilingualServiceNameDescriptor_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordServiceNameW, Impl: IDvbMultilingualServiceNameDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, brecordindex: u8, convmode: DVB_STRCONV_MODE, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetRecordServiceNameW, Impl: IDvbMultilingualServiceNameDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, brecordindex: u8, convmode: DVB_STRCONV_MODE, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetRecordServiceNameW(::core::mem::transmute_copy(&brecordindex), ::core::mem::transmute_copy(&convmode)) { @@ -15613,16 +15571,13 @@ impl IDvbMultilingualServiceNameDescriptor_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDvbNetworkNameDescriptor_Impl: Sized { fn GetTag(&self) -> ::windows::core::Result; fn GetLength(&self) -> ::windows::core::Result; fn GetNetworkName(&self) -> ::windows::core::Result<*mut u8>; - fn GetNetworkNameW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result; + fn GetNetworkNameW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDvbNetworkNameDescriptor {} -#[cfg(feature = "Win32_Foundation")] impl IDvbNetworkNameDescriptor_Vtbl { pub const fn new, Impl: IDvbNetworkNameDescriptor_Impl, const OFFSET: isize>() -> IDvbNetworkNameDescriptor_Vtbl { unsafe extern "system" fn GetTag, Impl: IDvbNetworkNameDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT { @@ -15658,7 +15613,7 @@ impl IDvbNetworkNameDescriptor_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetNetworkNameW, Impl: IDvbNetworkNameDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetNetworkNameW, Impl: IDvbNetworkNameDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetNetworkNameW(::core::mem::transmute_copy(&convmode)) { @@ -16016,20 +15971,17 @@ impl IDvbServiceAttributeDescriptor_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDvbServiceDescriptor_Impl: Sized { fn GetTag(&self) -> ::windows::core::Result; fn GetLength(&self) -> ::windows::core::Result; fn GetServiceType(&self) -> ::windows::core::Result; fn GetServiceProviderName(&self) -> ::windows::core::Result<*mut u8>; - fn GetServiceProviderNameW(&self) -> ::windows::core::Result; + fn GetServiceProviderNameW(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetServiceName(&self) -> ::windows::core::Result<*mut u8>; - fn GetProcessedServiceName(&self) -> ::windows::core::Result; - fn GetServiceNameEmphasized(&self) -> ::windows::core::Result; + fn GetProcessedServiceName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetServiceNameEmphasized(&self) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDvbServiceDescriptor {} -#[cfg(feature = "Win32_Foundation")] impl IDvbServiceDescriptor_Vtbl { pub const fn new, Impl: IDvbServiceDescriptor_Impl, const OFFSET: isize>() -> IDvbServiceDescriptor_Vtbl { unsafe extern "system" fn GetTag, Impl: IDvbServiceDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT { @@ -16076,7 +16028,7 @@ impl IDvbServiceDescriptor_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetServiceProviderNameW, Impl: IDvbServiceDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetServiceProviderNameW, Impl: IDvbServiceDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetServiceProviderNameW() { @@ -16098,7 +16050,7 @@ impl IDvbServiceDescriptor_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetProcessedServiceName, Impl: IDvbServiceDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetProcessedServiceName, Impl: IDvbServiceDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetProcessedServiceName() { @@ -16109,7 +16061,7 @@ impl IDvbServiceDescriptor_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetServiceNameEmphasized, Impl: IDvbServiceDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetServiceNameEmphasized, Impl: IDvbServiceDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetServiceNameEmphasized() { @@ -16136,17 +16088,14 @@ impl IDvbServiceDescriptor_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDvbServiceDescriptor2_Impl: Sized + IDvbServiceDescriptor_Impl { - fn GetServiceProviderNameW2(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result; - fn GetServiceNameW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result; + fn GetServiceProviderNameW2(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetServiceNameW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDvbServiceDescriptor2 {} -#[cfg(feature = "Win32_Foundation")] impl IDvbServiceDescriptor2_Vtbl { pub const fn new, Impl: IDvbServiceDescriptor2_Impl, const OFFSET: isize>() -> IDvbServiceDescriptor2_Vtbl { - unsafe extern "system" fn GetServiceProviderNameW2, Impl: IDvbServiceDescriptor2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetServiceProviderNameW2, Impl: IDvbServiceDescriptor2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetServiceProviderNameW2(::core::mem::transmute_copy(&convmode)) { @@ -16157,7 +16106,7 @@ impl IDvbServiceDescriptor2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetServiceNameW, Impl: IDvbServiceDescriptor2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetServiceNameW, Impl: IDvbServiceDescriptor2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetServiceNameW(::core::mem::transmute_copy(&convmode)) { @@ -16256,17 +16205,14 @@ impl IDvbServiceListDescriptor_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDvbShortEventDescriptor_Impl: Sized { fn GetTag(&self) -> ::windows::core::Result; fn GetLength(&self) -> ::windows::core::Result; fn GetLanguageCode(&self, pszcode: *mut u8) -> ::windows::core::Result<()>; - fn GetEventNameW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result; - fn GetTextW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result; + fn GetEventNameW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetTextW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDvbShortEventDescriptor {} -#[cfg(feature = "Win32_Foundation")] impl IDvbShortEventDescriptor_Vtbl { pub const fn new, Impl: IDvbShortEventDescriptor_Impl, const OFFSET: isize>() -> IDvbShortEventDescriptor_Vtbl { unsafe extern "system" fn GetTag, Impl: IDvbShortEventDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT { @@ -16296,7 +16242,7 @@ impl IDvbShortEventDescriptor_Vtbl { let this = (*this).get_impl(); this.GetLanguageCode(::core::mem::transmute_copy(&pszcode)).into() } - unsafe extern "system" fn GetEventNameW, Impl: IDvbShortEventDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetEventNameW, Impl: IDvbShortEventDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetEventNameW(::core::mem::transmute_copy(&convmode)) { @@ -16307,7 +16253,7 @@ impl IDvbShortEventDescriptor_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetTextW, Impl: IDvbShortEventDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetTextW, Impl: IDvbShortEventDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetTextW(::core::mem::transmute_copy(&convmode)) { @@ -18576,13 +18522,13 @@ impl IDvdState_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IESCloseMmiEvent_Impl: Sized + IESEvent_Impl { fn GetDialogNumber(&self) -> ::windows::core::Result; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IESCloseMmiEvent {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IESCloseMmiEvent_Vtbl { pub const fn new, Impl: IESCloseMmiEvent_Impl, const OFFSET: isize>() -> IESCloseMmiEvent_Vtbl { unsafe extern "system" fn GetDialogNumber, Impl: IESCloseMmiEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdialognumber: *mut u32) -> ::windows::core::HRESULT { @@ -18602,17 +18548,17 @@ impl IESCloseMmiEvent_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IESEvent_Impl: Sized { fn GetEventId(&self) -> ::windows::core::Result; fn GetEventType(&self) -> ::windows::core::Result<::windows::core::GUID>; fn SetCompletionStatus(&self, dwresult: u32) -> ::windows::core::Result<()>; fn GetData(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; - fn GetStringData(&self) -> ::windows::core::Result; + fn GetStringData(&self) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IESEvent {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IESEvent_Vtbl { pub const fn new, Impl: IESEvent_Impl, const OFFSET: isize>() -> IESEvent_Vtbl { unsafe extern "system" fn GetEventId, Impl: IESEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdweventid: *mut u32) -> ::windows::core::HRESULT { @@ -18653,7 +18599,7 @@ impl IESEvent_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetStringData, Impl: IESEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetStringData, Impl: IESEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetStringData() { @@ -18677,16 +18623,13 @@ impl IESEvent_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IESEventFactory_Impl: Sized { - fn CreateESEvent(&self, pserviceprovider: &::core::option::Option<::windows::core::IUnknown>, dweventid: u32, guideventtype: &::windows::core::GUID, dweventdatalength: u32, peventdata: *const u8, bstrbaseurl: &super::super::Foundation::BSTR, pinitcontext: &::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result; + fn CreateESEvent(&self, pserviceprovider: &::core::option::Option<::windows::core::IUnknown>, dweventid: u32, guideventtype: &::windows::core::GUID, dweventdatalength: u32, peventdata: *const u8, bstrbaseurl: &::windows::core::BSTR, pinitcontext: &::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IESEventFactory {} -#[cfg(feature = "Win32_Foundation")] impl IESEventFactory_Vtbl { pub const fn new, Impl: IESEventFactory_Impl, const OFFSET: isize>() -> IESEventFactory_Vtbl { - unsafe extern "system" fn CreateESEvent, Impl: IESEventFactory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pserviceprovider: *mut ::core::ffi::c_void, dweventid: u32, guideventtype: ::windows::core::GUID, dweventdatalength: u32, peventdata: *const u8, bstrbaseurl: ::core::mem::ManuallyDrop, pinitcontext: *mut ::core::ffi::c_void, ppesevent: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateESEvent, Impl: IESEventFactory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pserviceprovider: *mut ::core::ffi::c_void, dweventid: u32, guideventtype: ::windows::core::GUID, dweventdatalength: u32, peventdata: *const u8, bstrbaseurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pinitcontext: *mut ::core::ffi::c_void, ppesevent: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateESEvent(::core::mem::transmute(&pserviceprovider), ::core::mem::transmute_copy(&dweventid), ::core::mem::transmute(&guideventtype), ::core::mem::transmute_copy(&dweventdatalength), ::core::mem::transmute_copy(&peventdata), ::core::mem::transmute(&bstrbaseurl), ::core::mem::transmute(&pinitcontext)) { @@ -18886,16 +18829,16 @@ impl IESFileExpiryDateEvent_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IESIsdbCasResponseEvent_Impl: Sized + IESEvent_Impl { fn GetRequestId(&self) -> ::windows::core::Result; fn GetStatus(&self) -> ::windows::core::Result; fn GetDataLength(&self) -> ::windows::core::Result; fn GetResponseData(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IESIsdbCasResponseEvent {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IESIsdbCasResponseEvent_Vtbl { pub const fn new, Impl: IESIsdbCasResponseEvent_Impl, const OFFSET: isize>() -> IESIsdbCasResponseEvent_Vtbl { unsafe extern "system" fn GetRequestId, Impl: IESIsdbCasResponseEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, prequestid: *mut u32) -> ::windows::core::HRESULT { @@ -18957,7 +18900,7 @@ impl IESIsdbCasResponseEvent_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub trait IESLicenseRenewalResultEvent_Impl: Sized + IESEvent_Impl { fn GetCallersId(&self) -> ::windows::core::Result; - fn GetFileName(&self) -> ::windows::core::Result; + fn GetFileName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn IsRenewalSuccessful(&self) -> ::windows::core::Result; fn IsCheckEntitlementCallRequired(&self) -> ::windows::core::Result; fn GetDescrambledStatus(&self) -> ::windows::core::Result; @@ -18984,7 +18927,7 @@ impl IESLicenseRenewalResultEvent_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetFileName, Impl: IESLicenseRenewalResultEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfilename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFileName, Impl: IESLicenseRenewalResultEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfilename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetFileName() { @@ -19113,16 +19056,16 @@ impl IESLicenseRenewalResultEvent_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IESOpenMmiEvent_Impl: Sized + IESEvent_Impl { fn GetDialogNumber(&self, pdialogrequest: *mut u32, pdialognumber: *mut u32) -> ::windows::core::Result<()>; fn GetDialogType(&self) -> ::windows::core::Result<::windows::core::GUID>; fn GetDialogData(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; - fn GetDialogStringData(&self, pbstrbaseurl: *mut super::super::Foundation::BSTR, pbstrdata: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetDialogStringData(&self, pbstrbaseurl: *mut ::windows::core::BSTR, pbstrdata: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IESOpenMmiEvent {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IESOpenMmiEvent_Vtbl { pub const fn new, Impl: IESOpenMmiEvent_Impl, const OFFSET: isize>() -> IESOpenMmiEvent_Vtbl { unsafe extern "system" fn GetDialogNumber, Impl: IESOpenMmiEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdialogrequest: *mut u32, pdialognumber: *mut u32) -> ::windows::core::HRESULT { @@ -19152,7 +19095,7 @@ impl IESOpenMmiEvent_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetDialogStringData, Impl: IESOpenMmiEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrbaseurl: *mut super::super::Foundation::BSTR, pbstrdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDialogStringData, Impl: IESOpenMmiEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrbaseurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetDialogStringData(::core::mem::transmute_copy(&pbstrbaseurl), ::core::mem::transmute_copy(&pbstrdata)).into() @@ -19169,16 +19112,16 @@ impl IESOpenMmiEvent_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IESRequestTunerEvent_Impl: Sized + IESEvent_Impl { fn GetPriority(&self) -> ::windows::core::Result; fn GetReason(&self) -> ::windows::core::Result; fn GetConsequences(&self) -> ::windows::core::Result; fn GetEstimatedTime(&self) -> ::windows::core::Result; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IESRequestTunerEvent {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IESRequestTunerEvent_Vtbl { pub const fn new, Impl: IESRequestTunerEvent_Impl, const OFFSET: isize>() -> IESRequestTunerEvent_Vtbl { unsafe extern "system" fn GetPriority, Impl: IESRequestTunerEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbypriority: *mut u8) -> ::windows::core::HRESULT { @@ -19237,13 +19180,13 @@ impl IESRequestTunerEvent_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IESValueUpdatedEvent_Impl: Sized + IESEvent_Impl { fn GetValueNames(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IESValueUpdatedEvent {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IESValueUpdatedEvent_Vtbl { pub const fn new, Impl: IESValueUpdatedEvent_Impl, const OFFSET: isize>() -> IESValueUpdatedEvent_Vtbl { unsafe extern "system" fn GetValueNames, Impl: IESValueUpdatedEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrnames: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT { @@ -20440,21 +20383,21 @@ impl IFilterGraph3_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFilterInfo_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn FindPin(&self, strpinid: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn Name(&self) -> ::windows::core::Result; - fn VendorInfo(&self) -> ::windows::core::Result; + fn FindPin(&self, strpinid: &::windows::core::BSTR) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn VendorInfo(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Filter(&self) -> ::windows::core::Result<::windows::core::IUnknown>; fn Pins(&self) -> ::windows::core::Result; fn IsFileSource(&self) -> ::windows::core::Result; - fn Filename(&self) -> ::windows::core::Result; - fn SetFilename(&self, strfilename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Filename(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetFilename(&self, strfilename: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFilterInfo {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFilterInfo_Vtbl { pub const fn new, Impl: IFilterInfo_Impl, const OFFSET: isize>() -> IFilterInfo_Vtbl { - unsafe extern "system" fn FindPin, Impl: IFilterInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpinid: ::core::mem::ManuallyDrop, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn FindPin, Impl: IFilterInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpinid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FindPin(::core::mem::transmute(&strpinid)) { @@ -20465,7 +20408,7 @@ impl IFilterInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Name, Impl: IFilterInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IFilterInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -20476,7 +20419,7 @@ impl IFilterInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn VendorInfo, Impl: IFilterInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strvendorinfo: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn VendorInfo, Impl: IFilterInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strvendorinfo: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.VendorInfo() { @@ -20520,7 +20463,7 @@ impl IFilterInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Filename, Impl: IFilterInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrfilename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Filename, Impl: IFilterInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrfilename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Filename() { @@ -20531,7 +20474,7 @@ impl IFilterInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetFilename, Impl: IFilterInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strfilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetFilename, Impl: IFilterInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetFilename(::core::mem::transmute(&strfilename)).into() @@ -20794,8 +20737,8 @@ pub trait IFullScreenVideo_Impl: Sized { fn GetMonitor(&self) -> ::windows::core::Result; fn HideOnDeactivate(&self, hide: i32) -> ::windows::core::Result<()>; fn IsHideOnDeactivate(&self) -> ::windows::core::Result<()>; - fn SetCaption(&self, strcaption: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetCaption(&self) -> ::windows::core::Result; + fn SetCaption(&self, strcaption: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetCaption(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn SetDefault(&self) -> ::windows::core::Result<()>; } #[cfg(feature = "Win32_Foundation")] @@ -20903,12 +20846,12 @@ impl IFullScreenVideo_Vtbl { let this = (*this).get_impl(); this.IsHideOnDeactivate().into() } - unsafe extern "system" fn SetCaption, Impl: IFullScreenVideo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strcaption: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCaption, Impl: IFullScreenVideo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strcaption: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCaption(::core::mem::transmute(&strcaption)).into() } - unsafe extern "system" fn GetCaption, Impl: IFullScreenVideo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrcaption: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCaption, Impl: IFullScreenVideo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrcaption: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCaption() { @@ -21117,16 +21060,13 @@ impl IGetCapabilitiesKey_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IGpnvsCommonBase_Impl: Sized { - fn GetValueUpdateName(&self) -> ::windows::core::Result; + fn GetValueUpdateName(&self) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IGpnvsCommonBase {} -#[cfg(feature = "Win32_Foundation")] impl IGpnvsCommonBase_Vtbl { pub const fn new, Impl: IGpnvsCommonBase_Impl, const OFFSET: isize>() -> IGpnvsCommonBase_Vtbl { - unsafe extern "system" fn GetValueUpdateName, Impl: IGpnvsCommonBase_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetValueUpdateName, Impl: IGpnvsCommonBase_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetValueUpdateName() { @@ -21534,7 +21474,7 @@ impl IGuideDataLoader_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IGuideDataProperty_Impl: Sized { - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Language(&self) -> ::windows::core::Result; fn Value(&self) -> ::windows::core::Result; } @@ -21543,7 +21483,7 @@ impl ::windows::core::RuntimeName for IGuideDataProperty {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IGuideDataProperty_Vtbl { pub const fn new, Impl: IGuideDataProperty_Impl, const OFFSET: isize>() -> IGuideDataProperty_Vtbl { - unsafe extern "system" fn Name, Impl: IGuideDataProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IGuideDataProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -22676,7 +22616,7 @@ pub trait IIsdbAudioComponentDescriptor_Impl: Sized { fn GetSamplingRate(&self) -> ::windows::core::Result; fn GetLanguageCode(&self, pszcode: *mut u8) -> ::windows::core::Result<()>; fn GetLanguageCode2(&self, pszcode: *mut u8) -> ::windows::core::Result<()>; - fn GetTextW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result; + fn GetTextW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IIsdbAudioComponentDescriptor {} @@ -22814,7 +22754,7 @@ impl IIsdbAudioComponentDescriptor_Vtbl { let this = (*this).get_impl(); this.GetLanguageCode2(::core::mem::transmute_copy(&pszcode)).into() } - unsafe extern "system" fn GetTextW, Impl: IIsdbAudioComponentDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetTextW, Impl: IIsdbAudioComponentDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetTextW(::core::mem::transmute_copy(&convmode)) { @@ -22847,7 +22787,6 @@ impl IIsdbAudioComponentDescriptor_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IIsdbCAContractInformationDescriptor_Impl: Sized { fn GetTag(&self) -> ::windows::core::Result; fn GetLength(&self) -> ::windows::core::Result; @@ -22857,11 +22796,9 @@ pub trait IIsdbCAContractInformationDescriptor_Impl: Sized { fn GetRecordComponentTag(&self, brecordindex: u8) -> ::windows::core::Result; fn GetContractVerificationInfoLength(&self) -> ::windows::core::Result; fn GetContractVerificationInfo(&self, bbuflength: u8) -> ::windows::core::Result; - fn GetFeeNameW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result; + fn GetFeeNameW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IIsdbCAContractInformationDescriptor {} -#[cfg(feature = "Win32_Foundation")] impl IIsdbCAContractInformationDescriptor_Vtbl { pub const fn new, Impl: IIsdbCAContractInformationDescriptor_Impl, const OFFSET: isize>() -> IIsdbCAContractInformationDescriptor_Vtbl { unsafe extern "system" fn GetTag, Impl: IIsdbCAContractInformationDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT { @@ -22952,7 +22889,7 @@ impl IIsdbCAContractInformationDescriptor_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetFeeNameW, Impl: IIsdbCAContractInformationDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFeeNameW, Impl: IIsdbCAContractInformationDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetFeeNameW(::core::mem::transmute_copy(&convmode)) { @@ -23150,7 +23087,6 @@ impl IIsdbCAServiceDescriptor_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IIsdbComponentGroupDescriptor_Impl: Sized { fn GetTag(&self) -> ::windows::core::Result; fn GetLength(&self) -> ::windows::core::Result; @@ -23162,11 +23098,9 @@ pub trait IIsdbComponentGroupDescriptor_Impl: Sized { fn GetRecordCAUnitNumberOfComponents(&self, brecordindex: u8, bcaunitindex: u8) -> ::windows::core::Result; fn GetRecordCAUnitComponentTag(&self, brecordindex: u8, bcaunitindex: u8, bcomponentindex: u8) -> ::windows::core::Result; fn GetRecordTotalBitRate(&self, brecordindex: u8) -> ::windows::core::Result; - fn GetRecordTextW(&self, brecordindex: u8, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result; + fn GetRecordTextW(&self, brecordindex: u8, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IIsdbComponentGroupDescriptor {} -#[cfg(feature = "Win32_Foundation")] impl IIsdbComponentGroupDescriptor_Vtbl { pub const fn new, Impl: IIsdbComponentGroupDescriptor_Impl, const OFFSET: isize>() -> IIsdbComponentGroupDescriptor_Vtbl { unsafe extern "system" fn GetTag, Impl: IIsdbComponentGroupDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT { @@ -23279,7 +23213,7 @@ impl IIsdbComponentGroupDescriptor_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetRecordTextW, Impl: IIsdbComponentGroupDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, brecordindex: u8, convmode: DVB_STRCONV_MODE, pbstrtext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetRecordTextW, Impl: IIsdbComponentGroupDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, brecordindex: u8, convmode: DVB_STRCONV_MODE, pbstrtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetRecordTextW(::core::mem::transmute_copy(&brecordindex), ::core::mem::transmute_copy(&convmode)) { @@ -23309,7 +23243,6 @@ impl IIsdbComponentGroupDescriptor_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IIsdbDataContentDescriptor_Impl: Sized { fn GetTag(&self) -> ::windows::core::Result; fn GetLength(&self) -> ::windows::core::Result; @@ -23320,11 +23253,9 @@ pub trait IIsdbDataContentDescriptor_Impl: Sized { fn GetCountOfRecords(&self) -> ::windows::core::Result; fn GetRecordComponentRef(&self, brecordindex: u8) -> ::windows::core::Result; fn GetLanguageCode(&self, pszcode: *mut u8) -> ::windows::core::Result<()>; - fn GetTextW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result; + fn GetTextW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IIsdbDataContentDescriptor {} -#[cfg(feature = "Win32_Foundation")] impl IIsdbDataContentDescriptor_Vtbl { pub const fn new, Impl: IIsdbDataContentDescriptor_Impl, const OFFSET: isize>() -> IIsdbDataContentDescriptor_Vtbl { unsafe extern "system" fn GetTag, Impl: IIsdbDataContentDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT { @@ -23420,7 +23351,7 @@ impl IIsdbDataContentDescriptor_Vtbl { let this = (*this).get_impl(); this.GetLanguageCode(::core::mem::transmute_copy(&pszcode)).into() } - unsafe extern "system" fn GetTextW, Impl: IIsdbDataContentDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetTextW, Impl: IIsdbDataContentDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetTextW(::core::mem::transmute_copy(&convmode)) { @@ -23533,7 +23464,7 @@ pub trait IIsdbDownloadContentDescriptor_Impl: Sized { fn GetRecordModuleInfoLength(&self, wrecordindex: u16) -> ::windows::core::Result; fn GetRecordModuleInfo(&self, wrecordindex: u16) -> ::windows::core::Result<*mut u8>; fn GetTextLanguageCode(&self, szcode: *mut u8) -> ::windows::core::Result<()>; - fn GetTextW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result; + fn GetTextW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IIsdbDownloadContentDescriptor {} @@ -23704,7 +23635,7 @@ impl IIsdbDownloadContentDescriptor_Vtbl { let this = (*this).get_impl(); this.GetTextLanguageCode(::core::mem::transmute_copy(&szcode)).into() } - unsafe extern "system" fn GetTextW, Impl: IIsdbDownloadContentDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetTextW, Impl: IIsdbDownloadContentDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetTextW(::core::mem::transmute_copy(&convmode)) { @@ -24021,7 +23952,6 @@ impl IIsdbHierarchicalTransmissionDescriptor_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IIsdbLogoTransmissionDescriptor_Impl: Sized { fn GetTag(&self) -> ::windows::core::Result; fn GetLength(&self) -> ::windows::core::Result; @@ -24029,11 +23959,9 @@ pub trait IIsdbLogoTransmissionDescriptor_Impl: Sized { fn GetLogoId(&self) -> ::windows::core::Result; fn GetLogoVersion(&self) -> ::windows::core::Result; fn GetDownloadDataId(&self) -> ::windows::core::Result; - fn GetLogoCharW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result; + fn GetLogoCharW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IIsdbLogoTransmissionDescriptor {} -#[cfg(feature = "Win32_Foundation")] impl IIsdbLogoTransmissionDescriptor_Vtbl { pub const fn new, Impl: IIsdbLogoTransmissionDescriptor_Impl, const OFFSET: isize>() -> IIsdbLogoTransmissionDescriptor_Vtbl { unsafe extern "system" fn GetTag, Impl: IIsdbLogoTransmissionDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT { @@ -24102,7 +24030,7 @@ impl IIsdbLogoTransmissionDescriptor_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetLogoCharW, Impl: IIsdbLogoTransmissionDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrchar: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetLogoCharW, Impl: IIsdbLogoTransmissionDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrchar: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetLogoCharW(::core::mem::transmute_copy(&convmode)) { @@ -24249,7 +24177,7 @@ pub trait IIsdbSeriesDescriptor_Impl: Sized { fn GetExpireDate(&self, pfvalid: *mut super::super::Foundation::BOOL, pmdtval: *mut MPEG_DATE_AND_TIME) -> ::windows::core::Result<()>; fn GetEpisodeNumber(&self) -> ::windows::core::Result; fn GetLastEpisodeNumber(&self) -> ::windows::core::Result; - fn GetSeriesNameW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result; + fn GetSeriesNameW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IIsdbSeriesDescriptor {} @@ -24338,7 +24266,7 @@ impl IIsdbSeriesDescriptor_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetSeriesNameW, Impl: IIsdbSeriesDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSeriesNameW, Impl: IIsdbSeriesDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetSeriesNameW(::core::mem::transmute_copy(&convmode)) { @@ -24470,20 +24398,17 @@ impl IIsdbSiParser2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IIsdbTSInformationDescriptor_Impl: Sized { fn GetTag(&self) -> ::windows::core::Result; fn GetLength(&self) -> ::windows::core::Result; fn GetRemoteControlKeyId(&self) -> ::windows::core::Result; - fn GetTSNameW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result; + fn GetTSNameW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR>; fn GetCountOfRecords(&self) -> ::windows::core::Result; fn GetRecordTransmissionTypeInfo(&self, brecordindex: u8) -> ::windows::core::Result; fn GetRecordNumberOfServices(&self, brecordindex: u8) -> ::windows::core::Result; fn GetRecordServiceIdByIndex(&self, brecordindex: u8, bserviceindex: u8) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IIsdbTSInformationDescriptor {} -#[cfg(feature = "Win32_Foundation")] impl IIsdbTSInformationDescriptor_Vtbl { pub const fn new, Impl: IIsdbTSInformationDescriptor_Impl, const OFFSET: isize>() -> IIsdbTSInformationDescriptor_Vtbl { unsafe extern "system" fn GetTag, Impl: IIsdbTSInformationDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT { @@ -24519,7 +24444,7 @@ impl IIsdbTSInformationDescriptor_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetTSNameW, Impl: IIsdbTSInformationDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetTSNameW, Impl: IIsdbTSInformationDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetTSNameW(::core::mem::transmute_copy(&convmode)) { @@ -25384,7 +25309,7 @@ impl IMPEG2_TIF_CONTROL_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IMSEventBinder_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Bind(&self, peventobject: &::core::option::Option, eventname: &super::super::Foundation::BSTR, eventhandler: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn Bind(&self, peventobject: &::core::option::Option, eventname: &::windows::core::BSTR, eventhandler: &::windows::core::BSTR) -> ::windows::core::Result; fn Unbind(&self, cancelcookie: u32) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -25392,7 +25317,7 @@ impl ::windows::core::RuntimeName for IMSEventBinder {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IMSEventBinder_Vtbl { pub const fn new, Impl: IMSEventBinder_Impl, const OFFSET: isize>() -> IMSEventBinder_Vtbl { - unsafe extern "system" fn Bind, Impl: IMSEventBinder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, peventobject: *mut ::core::ffi::c_void, eventname: ::core::mem::ManuallyDrop, eventhandler: ::core::mem::ManuallyDrop, cancelid: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn Bind, Impl: IMSEventBinder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, peventobject: *mut ::core::ffi::c_void, eventname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, eventhandler: ::core::mem::ManuallyDrop<::windows::core::BSTR>, cancelid: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Bind(::core::mem::transmute(&peventobject), ::core::mem::transmute(&eventname), ::core::mem::transmute(&eventhandler)) { @@ -25970,8 +25895,8 @@ pub trait IMSVidCtl_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn SetMaintainAspectRatio(&self, newvalue: i16) -> ::windows::core::Result<()>; fn ColorKey(&self) -> ::windows::core::Result; fn SetColorKey(&self, newvalue: u32) -> ::windows::core::Result<()>; - fn get_InputsAvailable(&self, categoryguid: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn get_OutputsAvailable(&self, categoryguid: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn get_InputsAvailable(&self, categoryguid: &::windows::core::BSTR) -> ::windows::core::Result; + fn get_OutputsAvailable(&self, categoryguid: &::windows::core::BSTR) -> ::windows::core::Result; fn get__InputsAvailable(&self, categoryguid: *const ::windows::core::GUID) -> ::windows::core::Result; fn get__OutputsAvailable(&self, categoryguid: *const ::windows::core::GUID) -> ::windows::core::Result; fn VideoRenderersAvailable(&self) -> ::windows::core::Result; @@ -26131,7 +26056,7 @@ impl IMSVidCtl_Vtbl { let this = (*this).get_impl(); this.SetColorKey(::core::mem::transmute_copy(&newvalue)).into() } - unsafe extern "system" fn get_InputsAvailable, Impl: IMSVidCtl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, categoryguid: ::core::mem::ManuallyDrop, pval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_InputsAvailable, Impl: IMSVidCtl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, categoryguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_InputsAvailable(::core::mem::transmute(&categoryguid)) { @@ -26142,7 +26067,7 @@ impl IMSVidCtl_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_OutputsAvailable, Impl: IMSVidCtl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, categoryguid: ::core::mem::ManuallyDrop, pval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_OutputsAvailable, Impl: IMSVidCtl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, categoryguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_OutputsAvailable(::core::mem::transmute(&categoryguid)) { @@ -26423,12 +26348,12 @@ impl IMSVidDataServicesEvent_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IMSVidDevice_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Status(&self) -> ::windows::core::Result; fn SetPower(&self, power: i16) -> ::windows::core::Result<()>; fn Power(&self) -> ::windows::core::Result; - fn Category(&self) -> ::windows::core::Result; - fn ClassID(&self) -> ::windows::core::Result; + fn Category(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ClassID(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn _Category(&self) -> ::windows::core::Result<::windows::core::GUID>; fn _ClassID(&self) -> ::windows::core::Result<::windows::core::GUID>; fn IsEqualDevice(&self, device: &::core::option::Option) -> ::windows::core::Result; @@ -26438,7 +26363,7 @@ impl ::windows::core::RuntimeName for IMSVidDevice {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IMSVidDevice_Vtbl { pub const fn new, Impl: IMSVidDevice_Impl, const OFFSET: isize>() -> IMSVidDevice_Vtbl { - unsafe extern "system" fn Name, Impl: IMSVidDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IMSVidDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -26476,7 +26401,7 @@ impl IMSVidDevice_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Category, Impl: IMSVidDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, guid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Category, Impl: IMSVidDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, guid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Category() { @@ -26487,7 +26412,7 @@ impl IMSVidDevice_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ClassID, Impl: IMSVidDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, clsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ClassID, Impl: IMSVidDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, clsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ClassID() { @@ -26548,16 +26473,13 @@ impl IMSVidDevice_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IMSVidDevice2_Impl: Sized { - fn DevicePath(&self) -> ::windows::core::Result; + fn DevicePath(&self) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IMSVidDevice2 {} -#[cfg(feature = "Win32_Foundation")] impl IMSVidDevice2_Vtbl { pub const fn new, Impl: IMSVidDevice2_Impl, const OFFSET: isize>() -> IMSVidDevice2_Vtbl { - unsafe extern "system" fn DevicePath, Impl: IMSVidDevice2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, devpath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DevicePath, Impl: IMSVidDevice2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, devpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DevicePath() { @@ -26809,15 +26731,15 @@ impl IMSVidFeatures_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IMSVidFilePlayback_Impl: Sized + super::super::System::Com::IDispatch_Impl + IMSVidDevice_Impl + IMSVidInputDevice_Impl + IMSVidPlayback_Impl { - fn FileName(&self) -> ::windows::core::Result; - fn SetFileName(&self, filename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn FileName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetFileName(&self, filename: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IMSVidFilePlayback {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IMSVidFilePlayback_Vtbl { pub const fn new, Impl: IMSVidFilePlayback_Impl, const OFFSET: isize>() -> IMSVidFilePlayback_Vtbl { - unsafe extern "system" fn FileName, Impl: IMSVidFilePlayback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FileName, Impl: IMSVidFilePlayback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FileName() { @@ -26828,7 +26750,7 @@ impl IMSVidFilePlayback_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetFileName, Impl: IMSVidFilePlayback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetFileName, Impl: IMSVidFilePlayback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetFileName(::core::mem::transmute(&filename)).into() @@ -26845,7 +26767,7 @@ impl IMSVidFilePlayback_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IMSVidFilePlayback2_Impl: Sized + super::super::System::Com::IDispatch_Impl + IMSVidDevice_Impl + IMSVidInputDevice_Impl + IMSVidPlayback_Impl + IMSVidFilePlayback_Impl { - fn Set_SourceFilter(&self, filename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Set_SourceFilter(&self, filename: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Set__SourceFilter(&self, filename: &::windows::core::GUID) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -26853,7 +26775,7 @@ impl ::windows::core::RuntimeName for IMSVidFilePlayback2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IMSVidFilePlayback2_Vtbl { pub const fn new, Impl: IMSVidFilePlayback2_Impl, const OFFSET: isize>() -> IMSVidFilePlayback2_Vtbl { - unsafe extern "system" fn Set_SourceFilter, Impl: IMSVidFilePlayback2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Set_SourceFilter, Impl: IMSVidFilePlayback2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Set_SourceFilter(::core::mem::transmute(&filename)).into() @@ -26888,7 +26810,7 @@ impl IMSVidFilePlaybackEvent_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IMSVidGenericSink_Impl: Sized + super::super::System::Com::IDispatch_Impl + IMSVidDevice_Impl + IMSVidOutputDevice_Impl { - fn SetSinkFilter(&self, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetSinkFilter(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SinkStreams(&self) -> ::windows::core::Result; fn SetSinkStreams(&self, streams: MSVidSinkStreams) -> ::windows::core::Result<()>; } @@ -26897,7 +26819,7 @@ impl ::windows::core::RuntimeName for IMSVidGenericSink {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IMSVidGenericSink_Vtbl { pub const fn new, Impl: IMSVidGenericSink_Impl, const OFFSET: isize>() -> IMSVidGenericSink_Vtbl { - unsafe extern "system" fn SetSinkFilter, Impl: IMSVidGenericSink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSinkFilter, Impl: IMSVidGenericSink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSinkFilter(::core::mem::transmute(&bstrname)).into() @@ -26931,7 +26853,7 @@ impl IMSVidGenericSink_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IMSVidGenericSink2_Impl: Sized + super::super::System::Com::IDispatch_Impl + IMSVidDevice_Impl + IMSVidOutputDevice_Impl + IMSVidGenericSink_Impl { - fn AddFilter(&self, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn AddFilter(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn ResetFilterList(&self) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -26939,7 +26861,7 @@ impl ::windows::core::RuntimeName for IMSVidGenericSink2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IMSVidGenericSink2_Vtbl { pub const fn new, Impl: IMSVidGenericSink2_Impl, const OFFSET: isize>() -> IMSVidGenericSink2_Vtbl { - unsafe extern "system" fn AddFilter, Impl: IMSVidGenericSink2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddFilter, Impl: IMSVidGenericSink2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddFilter(::core::mem::transmute(&bstrname)).into() @@ -27936,10 +27858,10 @@ impl IMSVidStreamBufferRecordingControl_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IMSVidStreamBufferSink_Impl: Sized + super::super::System::Com::IDispatch_Impl + IMSVidDevice_Impl + IMSVidOutputDevice_Impl { - fn get_ContentRecorder(&self, pszfilename: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn get_ReferenceRecorder(&self, pszfilename: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn SinkName(&self) -> ::windows::core::Result; - fn SetSinkName(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn get_ContentRecorder(&self, pszfilename: &::windows::core::BSTR) -> ::windows::core::Result; + fn get_ReferenceRecorder(&self, pszfilename: &::windows::core::BSTR) -> ::windows::core::Result; + fn SinkName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetSinkName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn NameSetLock(&self) -> ::windows::core::Result<()>; fn SBESink(&self) -> ::windows::core::Result<::windows::core::IUnknown>; } @@ -27948,7 +27870,7 @@ impl ::windows::core::RuntimeName for IMSVidStreamBufferSink {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IMSVidStreamBufferSink_Vtbl { pub const fn new, Impl: IMSVidStreamBufferSink_Impl, const OFFSET: isize>() -> IMSVidStreamBufferSink_Vtbl { - unsafe extern "system" fn get_ContentRecorder, Impl: IMSVidStreamBufferSink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszfilename: ::core::mem::ManuallyDrop, precordingiunknown: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_ContentRecorder, Impl: IMSVidStreamBufferSink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, precordingiunknown: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_ContentRecorder(::core::mem::transmute(&pszfilename)) { @@ -27959,7 +27881,7 @@ impl IMSVidStreamBufferSink_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_ReferenceRecorder, Impl: IMSVidStreamBufferSink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszfilename: ::core::mem::ManuallyDrop, precordingiunknown: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_ReferenceRecorder, Impl: IMSVidStreamBufferSink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, precordingiunknown: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_ReferenceRecorder(::core::mem::transmute(&pszfilename)) { @@ -27970,7 +27892,7 @@ impl IMSVidStreamBufferSink_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SinkName, Impl: IMSVidStreamBufferSink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SinkName, Impl: IMSVidStreamBufferSink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SinkName() { @@ -27981,7 +27903,7 @@ impl IMSVidStreamBufferSink_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSinkName, Impl: IMSVidStreamBufferSink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSinkName, Impl: IMSVidStreamBufferSink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSinkName(::core::mem::transmute(&name)).into() @@ -28043,16 +27965,16 @@ pub trait IMSVidStreamBufferSink3_Impl: Sized + super::super::System::Com::IDisp fn VideoCounter(&self) -> ::windows::core::Result<::windows::core::IUnknown>; fn CCCounter(&self) -> ::windows::core::Result<::windows::core::IUnknown>; fn WSTCounter(&self) -> ::windows::core::Result<::windows::core::IUnknown>; - fn SetAudioAnalysisFilter(&self, szclsid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn AudioAnalysisFilter(&self) -> ::windows::core::Result; + fn SetAudioAnalysisFilter(&self, szclsid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn AudioAnalysisFilter(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Set_AudioAnalysisFilter(&self, guid: &::windows::core::GUID) -> ::windows::core::Result<()>; fn _AudioAnalysisFilter(&self) -> ::windows::core::Result<::windows::core::GUID>; - fn SetVideoAnalysisFilter(&self, szclsid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn VideoAnalysisFilter(&self) -> ::windows::core::Result; + fn SetVideoAnalysisFilter(&self, szclsid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn VideoAnalysisFilter(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Set_VideoAnalysisFilter(&self, guid: &::windows::core::GUID) -> ::windows::core::Result<()>; fn _VideoAnalysisFilter(&self) -> ::windows::core::Result<::windows::core::GUID>; - fn SetDataAnalysisFilter(&self, szclsid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn DataAnalysisFilter(&self) -> ::windows::core::Result; + fn SetDataAnalysisFilter(&self, szclsid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn DataAnalysisFilter(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Set_DataAnalysisFilter(&self, guid: &::windows::core::GUID) -> ::windows::core::Result<()>; fn _DataAnalysisFilter(&self) -> ::windows::core::Result<::windows::core::GUID>; fn LicenseErrorCode(&self) -> ::windows::core::Result<::windows::core::HRESULT>; @@ -28117,12 +28039,12 @@ impl IMSVidStreamBufferSink3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetAudioAnalysisFilter, Impl: IMSVidStreamBufferSink3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, szclsid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetAudioAnalysisFilter, Impl: IMSVidStreamBufferSink3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, szclsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetAudioAnalysisFilter(::core::mem::transmute(&szclsid)).into() } - unsafe extern "system" fn AudioAnalysisFilter, Impl: IMSVidStreamBufferSink3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszclsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn AudioAnalysisFilter, Impl: IMSVidStreamBufferSink3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszclsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AudioAnalysisFilter() { @@ -28149,12 +28071,12 @@ impl IMSVidStreamBufferSink3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetVideoAnalysisFilter, Impl: IMSVidStreamBufferSink3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, szclsid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetVideoAnalysisFilter, Impl: IMSVidStreamBufferSink3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, szclsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetVideoAnalysisFilter(::core::mem::transmute(&szclsid)).into() } - unsafe extern "system" fn VideoAnalysisFilter, Impl: IMSVidStreamBufferSink3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszclsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn VideoAnalysisFilter, Impl: IMSVidStreamBufferSink3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszclsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.VideoAnalysisFilter() { @@ -28181,12 +28103,12 @@ impl IMSVidStreamBufferSink3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDataAnalysisFilter, Impl: IMSVidStreamBufferSink3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, szclsid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDataAnalysisFilter, Impl: IMSVidStreamBufferSink3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, szclsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDataAnalysisFilter(::core::mem::transmute(&szclsid)).into() } - unsafe extern "system" fn DataAnalysisFilter, Impl: IMSVidStreamBufferSink3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszclsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DataAnalysisFilter, Impl: IMSVidStreamBufferSink3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszclsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DataAnalysisFilter() { @@ -28616,8 +28538,8 @@ impl IMSVidStreamBufferSourceEvent2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IMSVidStreamBufferSourceEvent3_Impl: Sized + super::super::System::Com::IDispatch_Impl + IMSVidInputDeviceEvent_Impl + IMSVidPlaybackEvent_Impl + IMSVidFilePlaybackEvent_Impl + IMSVidStreamBufferSourceEvent_Impl + IMSVidStreamBufferSourceEvent2_Impl { - fn BroadcastEvent(&self, guid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn BroadcastEventEx(&self, guid: &super::super::Foundation::BSTR, param1: u32, param2: u32, param3: u32, param4: u32) -> ::windows::core::Result<()>; + fn BroadcastEvent(&self, guid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn BroadcastEventEx(&self, guid: &::windows::core::BSTR, param1: u32, param2: u32, param3: u32, param4: u32) -> ::windows::core::Result<()>; fn COPPBlocked(&self) -> ::windows::core::Result<()>; fn COPPUnblocked(&self) -> ::windows::core::Result<()>; fn ContentPrimarilyAudio(&self) -> ::windows::core::Result<()>; @@ -28627,12 +28549,12 @@ impl ::windows::core::RuntimeName for IMSVidStreamBufferSourceEvent3 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IMSVidStreamBufferSourceEvent3_Vtbl { pub const fn new, Impl: IMSVidStreamBufferSourceEvent3_Impl, const OFFSET: isize>() -> IMSVidStreamBufferSourceEvent3_Vtbl { - unsafe extern "system" fn BroadcastEvent, Impl: IMSVidStreamBufferSourceEvent3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, guid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn BroadcastEvent, Impl: IMSVidStreamBufferSourceEvent3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, guid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.BroadcastEvent(::core::mem::transmute(&guid)).into() } - unsafe extern "system" fn BroadcastEventEx, Impl: IMSVidStreamBufferSourceEvent3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, guid: ::core::mem::ManuallyDrop, param1: u32, param2: u32, param3: u32, param4: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn BroadcastEventEx, Impl: IMSVidStreamBufferSourceEvent3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, guid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, param1: u32, param2: u32, param3: u32, param4: u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.BroadcastEventEx(::core::mem::transmute(&guid), ::core::mem::transmute_copy(¶m1), ::core::mem::transmute_copy(¶m2), ::core::mem::transmute_copy(¶m3), ::core::mem::transmute_copy(¶m4)).into() @@ -28673,8 +28595,8 @@ pub trait IMSVidStreamBufferV2SourceEvent_Impl: Sized + super::super::System::Co fn ContentBecomingStale(&self) -> ::windows::core::Result<()>; fn StaleFileDeleted(&self) -> ::windows::core::Result<()>; fn RateChange(&self, qwnewrate: f64, qwoldrate: f64) -> ::windows::core::Result<()>; - fn BroadcastEvent(&self, guid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn BroadcastEventEx(&self, guid: &super::super::Foundation::BSTR, param1: u32, param2: u32, param3: u32, param4: u32) -> ::windows::core::Result<()>; + fn BroadcastEvent(&self, guid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn BroadcastEventEx(&self, guid: &::windows::core::BSTR, param1: u32, param2: u32, param3: u32, param4: u32) -> ::windows::core::Result<()>; fn ContentPrimarilyAudio(&self) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -28712,12 +28634,12 @@ impl IMSVidStreamBufferV2SourceEvent_Vtbl { let this = (*this).get_impl(); this.RateChange(::core::mem::transmute_copy(&qwnewrate), ::core::mem::transmute_copy(&qwoldrate)).into() } - unsafe extern "system" fn BroadcastEvent, Impl: IMSVidStreamBufferV2SourceEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, guid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn BroadcastEvent, Impl: IMSVidStreamBufferV2SourceEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, guid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.BroadcastEvent(::core::mem::transmute(&guid)).into() } - unsafe extern "system" fn BroadcastEventEx, Impl: IMSVidStreamBufferV2SourceEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, guid: ::core::mem::ManuallyDrop, param1: u32, param2: u32, param3: u32, param4: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn BroadcastEventEx, Impl: IMSVidStreamBufferV2SourceEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, guid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, param1: u32, param2: u32, param3: u32, param4: u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.BroadcastEventEx(::core::mem::transmute(&guid), ::core::mem::transmute_copy(¶m1), ::core::mem::transmute_copy(¶m2), ::core::mem::transmute_copy(¶m3), ::core::mem::transmute_copy(¶m4)).into() @@ -29115,8 +29037,8 @@ impl IMSVidVideoInputDevice_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IMSVidVideoRenderer_Impl: Sized + super::super::System::Com::IDispatch_Impl + IMSVidDevice_Impl + IMSVidOutputDevice_Impl { - fn CustomCompositorClass(&self) -> ::windows::core::Result; - fn SetCustomCompositorClass(&self, compositorclsid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn CustomCompositorClass(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetCustomCompositorClass(&self, compositorclsid: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn _CustomCompositorClass(&self) -> ::windows::core::Result<::windows::core::GUID>; fn Set_CustomCompositorClass(&self, compositorclsid: *const ::windows::core::GUID) -> ::windows::core::Result<()>; fn _CustomCompositor(&self) -> ::windows::core::Result; @@ -29151,7 +29073,7 @@ impl ::windows::core::RuntimeName for IMSVidVideoRenderer {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_DirectDraw", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IMSVidVideoRenderer_Vtbl { pub const fn new, Impl: IMSVidVideoRenderer_Impl, const OFFSET: isize>() -> IMSVidVideoRenderer_Vtbl { - unsafe extern "system" fn CustomCompositorClass, Impl: IMSVidVideoRenderer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, compositorclsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CustomCompositorClass, Impl: IMSVidVideoRenderer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, compositorclsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CustomCompositorClass() { @@ -29162,7 +29084,7 @@ impl IMSVidVideoRenderer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetCustomCompositorClass, Impl: IMSVidVideoRenderer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, compositorclsid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCustomCompositorClass, Impl: IMSVidVideoRenderer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, compositorclsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCustomCompositorClass(::core::mem::transmute(&compositorclsid)).into() @@ -29646,14 +29568,14 @@ pub trait IMSVidWebDVD_Impl: Sized + super::super::System::Com::IDispatch_Impl + fn PlayChapterInTitle(&self, ltitle: i32, lchapter: i32) -> ::windows::core::Result<()>; fn PlayChapter(&self, lchapter: i32) -> ::windows::core::Result<()>; fn PlayChaptersAutoStop(&self, ltitle: i32, lstrchapter: i32, lchaptercount: i32) -> ::windows::core::Result<()>; - fn PlayAtTime(&self, strtime: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn PlayAtTimeInTitle(&self, ltitle: i32, strtime: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn PlayPeriodInTitleAutoStop(&self, ltitle: i32, strstarttime: &super::super::Foundation::BSTR, strendtime: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn PlayAtTime(&self, strtime: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn PlayAtTimeInTitle(&self, ltitle: i32, strtime: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn PlayPeriodInTitleAutoStop(&self, ltitle: i32, strstarttime: &::windows::core::BSTR, strendtime: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn ReplayChapter(&self) -> ::windows::core::Result<()>; fn PlayPrevChapter(&self) -> ::windows::core::Result<()>; fn PlayNextChapter(&self) -> ::windows::core::Result<()>; fn StillOff(&self) -> ::windows::core::Result<()>; - fn get_AudioLanguage(&self, lstream: i32, fformat: i16) -> ::windows::core::Result; + fn get_AudioLanguage(&self, lstream: i32, fformat: i16) -> ::windows::core::Result<::windows::core::BSTR>; fn ShowMenu(&self, menuid: DVDMenuIDConstants) -> ::windows::core::Result<()>; fn Resume(&self) -> ::windows::core::Result<()>; fn ReturnFromSubmenu(&self) -> ::windows::core::Result<()>; @@ -29669,7 +29591,7 @@ pub trait IMSVidWebDVD_Impl: Sized + super::super::System::Com::IDispatch_Impl + fn SelectAtPosition(&self, xpos: i32, ypos: i32) -> ::windows::core::Result<()>; fn get_ButtonAtPosition(&self, xpos: i32, ypos: i32) -> ::windows::core::Result; fn get_NumberOfChapters(&self, ltitle: i32) -> ::windows::core::Result; - fn TotalTitleTime(&self) -> ::windows::core::Result; + fn TotalTitleTime(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn TitlesAvailable(&self) -> ::windows::core::Result; fn VolumesAvailable(&self) -> ::windows::core::Result; fn CurrentVolume(&self) -> ::windows::core::Result; @@ -29677,15 +29599,15 @@ pub trait IMSVidWebDVD_Impl: Sized + super::super::System::Com::IDispatch_Impl + fn CurrentDomain(&self) -> ::windows::core::Result; fn CurrentChapter(&self) -> ::windows::core::Result; fn CurrentTitle(&self) -> ::windows::core::Result; - fn CurrentTime(&self) -> ::windows::core::Result; - fn DVDTimeCode2bstr(&self, timecode: i32) -> ::windows::core::Result; - fn DVDDirectory(&self) -> ::windows::core::Result; - fn SetDVDDirectory(&self, newval: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn CurrentTime(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn DVDTimeCode2bstr(&self, timecode: i32) -> ::windows::core::Result<::windows::core::BSTR>; + fn DVDDirectory(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDVDDirectory(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn IsSubpictureStreamEnabled(&self, lstream: i32) -> ::windows::core::Result; fn IsAudioStreamEnabled(&self, lstream: i32) -> ::windows::core::Result; fn CurrentSubpictureStream(&self) -> ::windows::core::Result; fn SetCurrentSubpictureStream(&self, newval: i32) -> ::windows::core::Result<()>; - fn get_SubpictureLanguage(&self, lstream: i32) -> ::windows::core::Result; + fn get_SubpictureLanguage(&self, lstream: i32) -> ::windows::core::Result<::windows::core::BSTR>; fn CurrentAudioStream(&self) -> ::windows::core::Result; fn SetCurrentAudioStream(&self, newval: i32) -> ::windows::core::Result<()>; fn AudioStreamsAvailable(&self) -> ::windows::core::Result; @@ -29695,11 +29617,11 @@ pub trait IMSVidWebDVD_Impl: Sized + super::super::System::Com::IDispatch_Impl + fn SubpictureStreamsAvailable(&self) -> ::windows::core::Result; fn SubpictureOn(&self) -> ::windows::core::Result; fn SetSubpictureOn(&self, newval: i16) -> ::windows::core::Result<()>; - fn DVDUniqueID(&self) -> ::windows::core::Result; - fn AcceptParentalLevelChange(&self, faccept: i16, strusername: &super::super::Foundation::BSTR, strpassword: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn DVDUniqueID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn AcceptParentalLevelChange(&self, faccept: i16, strusername: &::windows::core::BSTR, strpassword: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn NotifyParentalLevelChange(&self, newval: i16) -> ::windows::core::Result<()>; - fn SelectParentalCountry(&self, lcountry: i32, strusername: &super::super::Foundation::BSTR, strpassword: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SelectParentalLevel(&self, lparentallevel: i32, strusername: &super::super::Foundation::BSTR, strpassword: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SelectParentalCountry(&self, lcountry: i32, strusername: &::windows::core::BSTR, strpassword: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SelectParentalLevel(&self, lparentallevel: i32, strusername: &::windows::core::BSTR, strpassword: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn get_TitleParentalLevels(&self, ltitle: i32) -> ::windows::core::Result; fn PlayerParentalCountry(&self) -> ::windows::core::Result; fn PlayerParentalLevel(&self) -> ::windows::core::Result; @@ -29709,7 +29631,7 @@ pub trait IMSVidWebDVD_Impl: Sized + super::super::System::Com::IDispatch_Impl + fn get_GPRM(&self, lindex: i32) -> ::windows::core::Result; fn put_GPRM(&self, lindex: i32, svalue: i16) -> ::windows::core::Result<()>; fn get_DVDTextStringType(&self, llangindex: i32, lstringindex: i32) -> ::windows::core::Result; - fn get_DVDTextString(&self, llangindex: i32, lstringindex: i32) -> ::windows::core::Result; + fn get_DVDTextString(&self, llangindex: i32, lstringindex: i32) -> ::windows::core::Result<::windows::core::BSTR>; fn get_DVDTextNumberOfStrings(&self, llangindex: i32) -> ::windows::core::Result; fn DVDTextNumberOfLanguages(&self) -> ::windows::core::Result; fn get_DVDTextLanguageLCID(&self, llangindex: i32) -> ::windows::core::Result; @@ -29727,7 +29649,7 @@ pub trait IMSVidWebDVD_Impl: Sized + super::super::System::Com::IDispatch_Impl + fn DefaultAudioLanguage(&self) -> ::windows::core::Result; fn DefaultSubpictureLanguageExt(&self) -> ::windows::core::Result; fn DefaultAudioLanguageExt(&self) -> ::windows::core::Result; - fn get_LanguageFromLCID(&self, lcid: i32) -> ::windows::core::Result; + fn get_LanguageFromLCID(&self, lcid: i32) -> ::windows::core::Result<::windows::core::BSTR>; fn KaraokeAudioPresentationMode(&self) -> ::windows::core::Result; fn SetKaraokeAudioPresentationMode(&self, newval: i32) -> ::windows::core::Result<()>; fn get_KaraokeChannelContent(&self, lstream: i32, lchan: i32) -> ::windows::core::Result; @@ -29767,17 +29689,17 @@ impl IMSVidWebDVD_Vtbl { let this = (*this).get_impl(); this.PlayChaptersAutoStop(::core::mem::transmute_copy(<itle), ::core::mem::transmute_copy(&lstrchapter), ::core::mem::transmute_copy(&lchaptercount)).into() } - unsafe extern "system" fn PlayAtTime, Impl: IMSVidWebDVD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strtime: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn PlayAtTime, Impl: IMSVidWebDVD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strtime: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.PlayAtTime(::core::mem::transmute(&strtime)).into() } - unsafe extern "system" fn PlayAtTimeInTitle, Impl: IMSVidWebDVD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ltitle: i32, strtime: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn PlayAtTimeInTitle, Impl: IMSVidWebDVD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ltitle: i32, strtime: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.PlayAtTimeInTitle(::core::mem::transmute_copy(<itle), ::core::mem::transmute(&strtime)).into() } - unsafe extern "system" fn PlayPeriodInTitleAutoStop, Impl: IMSVidWebDVD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ltitle: i32, strstarttime: ::core::mem::ManuallyDrop, strendtime: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn PlayPeriodInTitleAutoStop, Impl: IMSVidWebDVD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ltitle: i32, strstarttime: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strendtime: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.PlayPeriodInTitleAutoStop(::core::mem::transmute_copy(<itle), ::core::mem::transmute(&strstarttime), ::core::mem::transmute(&strendtime)).into() @@ -29802,7 +29724,7 @@ impl IMSVidWebDVD_Vtbl { let this = (*this).get_impl(); this.StillOff().into() } - unsafe extern "system" fn get_AudioLanguage, Impl: IMSVidWebDVD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lstream: i32, fformat: i16, straudiolang: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_AudioLanguage, Impl: IMSVidWebDVD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lstream: i32, fformat: i16, straudiolang: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_AudioLanguage(::core::mem::transmute_copy(&lstream), ::core::mem::transmute_copy(&fformat)) { @@ -29912,7 +29834,7 @@ impl IMSVidWebDVD_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn TotalTitleTime, Impl: IMSVidWebDVD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TotalTitleTime, Impl: IMSVidWebDVD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TotalTitleTime() { @@ -30000,7 +29922,7 @@ impl IMSVidWebDVD_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CurrentTime, Impl: IMSVidWebDVD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CurrentTime, Impl: IMSVidWebDVD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CurrentTime() { @@ -30011,7 +29933,7 @@ impl IMSVidWebDVD_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DVDTimeCode2bstr, Impl: IMSVidWebDVD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, timecode: i32, ptimestr: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DVDTimeCode2bstr, Impl: IMSVidWebDVD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, timecode: i32, ptimestr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DVDTimeCode2bstr(::core::mem::transmute_copy(&timecode)) { @@ -30022,7 +29944,7 @@ impl IMSVidWebDVD_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DVDDirectory, Impl: IMSVidWebDVD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DVDDirectory, Impl: IMSVidWebDVD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DVDDirectory() { @@ -30033,7 +29955,7 @@ impl IMSVidWebDVD_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDVDDirectory, Impl: IMSVidWebDVD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDVDDirectory, Impl: IMSVidWebDVD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDVDDirectory(::core::mem::transmute(&newval)).into() @@ -30076,7 +29998,7 @@ impl IMSVidWebDVD_Vtbl { let this = (*this).get_impl(); this.SetCurrentSubpictureStream(::core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn get_SubpictureLanguage, Impl: IMSVidWebDVD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lstream: i32, strlanguage: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_SubpictureLanguage, Impl: IMSVidWebDVD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lstream: i32, strlanguage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_SubpictureLanguage(::core::mem::transmute_copy(&lstream)) { @@ -30168,7 +30090,7 @@ impl IMSVidWebDVD_Vtbl { let this = (*this).get_impl(); this.SetSubpictureOn(::core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn DVDUniqueID, Impl: IMSVidWebDVD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DVDUniqueID, Impl: IMSVidWebDVD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DVDUniqueID() { @@ -30179,7 +30101,7 @@ impl IMSVidWebDVD_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AcceptParentalLevelChange, Impl: IMSVidWebDVD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, faccept: i16, strusername: ::core::mem::ManuallyDrop, strpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AcceptParentalLevelChange, Impl: IMSVidWebDVD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, faccept: i16, strusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AcceptParentalLevelChange(::core::mem::transmute_copy(&faccept), ::core::mem::transmute(&strusername), ::core::mem::transmute(&strpassword)).into() @@ -30189,12 +30111,12 @@ impl IMSVidWebDVD_Vtbl { let this = (*this).get_impl(); this.NotifyParentalLevelChange(::core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn SelectParentalCountry, Impl: IMSVidWebDVD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lcountry: i32, strusername: ::core::mem::ManuallyDrop, strpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SelectParentalCountry, Impl: IMSVidWebDVD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lcountry: i32, strusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SelectParentalCountry(::core::mem::transmute_copy(&lcountry), ::core::mem::transmute(&strusername), ::core::mem::transmute(&strpassword)).into() } - unsafe extern "system" fn SelectParentalLevel, Impl: IMSVidWebDVD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lparentallevel: i32, strusername: ::core::mem::ManuallyDrop, strpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SelectParentalLevel, Impl: IMSVidWebDVD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lparentallevel: i32, strusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SelectParentalLevel(::core::mem::transmute_copy(&lparentallevel), ::core::mem::transmute(&strusername), ::core::mem::transmute(&strpassword)).into() @@ -30286,7 +30208,7 @@ impl IMSVidWebDVD_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_DVDTextString, Impl: IMSVidWebDVD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, llangindex: i32, lstringindex: i32, pstrtext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_DVDTextString, Impl: IMSVidWebDVD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, llangindex: i32, lstringindex: i32, pstrtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_DVDTextString(::core::mem::transmute_copy(&llangindex), ::core::mem::transmute_copy(&lstringindex)) { @@ -30442,7 +30364,7 @@ impl IMSVidWebDVD_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_LanguageFromLCID, Impl: IMSVidWebDVD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lcid: i32, lang: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_LanguageFromLCID, Impl: IMSVidWebDVD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lcid: i32, lang: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_LanguageFromLCID(::core::mem::transmute_copy(&lcid)) { @@ -30658,10 +30580,10 @@ impl IMSVidWebDVD2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IMSVidWebDVDAdm_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn ChangePassword(&self, strusername: &super::super::Foundation::BSTR, strold: &super::super::Foundation::BSTR, strnew: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SaveParentalLevel(&self, level: i32, strusername: &super::super::Foundation::BSTR, strpassword: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SaveParentalCountry(&self, country: i32, strusername: &super::super::Foundation::BSTR, strpassword: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ConfirmPassword(&self, strusername: &super::super::Foundation::BSTR, strpassword: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn ChangePassword(&self, strusername: &::windows::core::BSTR, strold: &::windows::core::BSTR, strnew: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SaveParentalLevel(&self, level: i32, strusername: &::windows::core::BSTR, strpassword: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SaveParentalCountry(&self, country: i32, strusername: &::windows::core::BSTR, strpassword: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ConfirmPassword(&self, strusername: &::windows::core::BSTR, strpassword: &::windows::core::BSTR) -> ::windows::core::Result; fn GetParentalLevel(&self) -> ::windows::core::Result; fn GetParentalCountry(&self) -> ::windows::core::Result; fn DefaultAudioLCID(&self) -> ::windows::core::Result; @@ -30678,22 +30600,22 @@ impl ::windows::core::RuntimeName for IMSVidWebDVDAdm {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IMSVidWebDVDAdm_Vtbl { pub const fn new, Impl: IMSVidWebDVDAdm_Impl, const OFFSET: isize>() -> IMSVidWebDVDAdm_Vtbl { - unsafe extern "system" fn ChangePassword, Impl: IMSVidWebDVDAdm_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strusername: ::core::mem::ManuallyDrop, strold: ::core::mem::ManuallyDrop, strnew: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ChangePassword, Impl: IMSVidWebDVDAdm_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strold: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strnew: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ChangePassword(::core::mem::transmute(&strusername), ::core::mem::transmute(&strold), ::core::mem::transmute(&strnew)).into() } - unsafe extern "system" fn SaveParentalLevel, Impl: IMSVidWebDVDAdm_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, level: i32, strusername: ::core::mem::ManuallyDrop, strpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SaveParentalLevel, Impl: IMSVidWebDVDAdm_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, level: i32, strusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SaveParentalLevel(::core::mem::transmute_copy(&level), ::core::mem::transmute(&strusername), ::core::mem::transmute(&strpassword)).into() } - unsafe extern "system" fn SaveParentalCountry, Impl: IMSVidWebDVDAdm_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, country: i32, strusername: ::core::mem::ManuallyDrop, strpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SaveParentalCountry, Impl: IMSVidWebDVDAdm_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, country: i32, strusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SaveParentalCountry(::core::mem::transmute_copy(&country), ::core::mem::transmute(&strusername), ::core::mem::transmute(&strpassword)).into() } - unsafe extern "system" fn ConfirmPassword, Impl: IMSVidWebDVDAdm_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strusername: ::core::mem::ManuallyDrop, strpassword: ::core::mem::ManuallyDrop, pval: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn ConfirmPassword, Impl: IMSVidWebDVDAdm_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pval: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ConfirmPassword(::core::mem::transmute(&strusername), ::core::mem::transmute(&strpassword)) { @@ -31058,8 +30980,8 @@ pub trait IMediaControl_Impl: Sized + super::super::System::Com::IDispatch_Impl fn Pause(&self) -> ::windows::core::Result<()>; fn Stop(&self) -> ::windows::core::Result<()>; fn GetState(&self, mstimeout: i32) -> ::windows::core::Result; - fn RenderFile(&self, strfilename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn AddSourceFilter(&self, strfilename: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn RenderFile(&self, strfilename: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn AddSourceFilter(&self, strfilename: &::windows::core::BSTR) -> ::windows::core::Result; fn FilterCollection(&self) -> ::windows::core::Result; fn RegFilterCollection(&self) -> ::windows::core::Result; fn StopWhenReady(&self) -> ::windows::core::Result<()>; @@ -31095,12 +31017,12 @@ impl IMediaControl_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RenderFile, Impl: IMediaControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strfilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn RenderFile, Impl: IMediaControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RenderFile(::core::mem::transmute(&strfilename)).into() } - unsafe extern "system" fn AddSourceFilter, Impl: IMediaControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strfilename: ::core::mem::ManuallyDrop, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddSourceFilter, Impl: IMediaControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AddSourceFilter(::core::mem::transmute(&strfilename)) { @@ -32203,15 +32125,15 @@ impl IMediaStreamFilter_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IMediaTypeInfo_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Type(&self) -> ::windows::core::Result; - fn Subtype(&self) -> ::windows::core::Result; + fn Type(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Subtype(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IMediaTypeInfo {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IMediaTypeInfo_Vtbl { pub const fn new, Impl: IMediaTypeInfo_Impl, const OFFSET: isize>() -> IMediaTypeInfo_Vtbl { - unsafe extern "system" fn Type, Impl: IMediaTypeInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strtype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Type, Impl: IMediaTypeInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strtype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Type() { @@ -32222,7 +32144,7 @@ impl IMediaTypeInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Subtype, Impl: IMediaTypeInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strtype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Subtype, Impl: IMediaTypeInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strtype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Subtype() { @@ -34157,14 +34079,14 @@ impl IPersistTuneXmlUtility_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IPersistTuneXmlUtility2_Impl: Sized + IPersistTuneXmlUtility_Impl { - fn Serialize(&self, pitunerequest: &::core::option::Option) -> ::windows::core::Result; + fn Serialize(&self, pitunerequest: &::core::option::Option) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IPersistTuneXmlUtility2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IPersistTuneXmlUtility2_Vtbl { pub const fn new, Impl: IPersistTuneXmlUtility2_Impl, const OFFSET: isize>() -> IPersistTuneXmlUtility2_Vtbl { - unsafe extern "system" fn Serialize, Impl: IPersistTuneXmlUtility2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pitunerequest: *mut ::core::ffi::c_void, pstring: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Serialize, Impl: IPersistTuneXmlUtility2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pitunerequest: *mut ::core::ffi::c_void, pstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Serialize(::core::mem::transmute(&pitunerequest)) { @@ -34408,9 +34330,9 @@ pub trait IPinInfo_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn ConnectedTo(&self) -> ::windows::core::Result; fn ConnectionMediaType(&self) -> ::windows::core::Result; fn FilterInfo(&self) -> ::windows::core::Result; - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Direction(&self) -> ::windows::core::Result; - fn PinID(&self) -> ::windows::core::Result; + fn PinID(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn MediaTypes(&self) -> ::windows::core::Result; fn Connect(&self, ppin: &::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result<()>; fn ConnectDirect(&self, ppin: &::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result<()>; @@ -34467,7 +34389,7 @@ impl IPinInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Name, Impl: IPinInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppunk: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IPinInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppunk: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -34489,7 +34411,7 @@ impl IPinInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn PinID, Impl: IPinInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpinid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PinID, Impl: IPinInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpinid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PinID() { @@ -34710,7 +34632,7 @@ impl IQueueCommand_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IRegFilterInfo_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Filter(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -34718,7 +34640,7 @@ impl ::windows::core::RuntimeName for IRegFilterInfo {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IRegFilterInfo_Vtbl { pub const fn new, Impl: IRegFilterInfo_Impl, const OFFSET: isize>() -> IRegFilterInfo_Vtbl { - unsafe extern "system" fn Name, Impl: IRegFilterInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IRegFilterInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -35175,7 +35097,6 @@ impl ISBE2StreamMap_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait ISCTE_EAS_Impl: Sized { fn Initialize(&self, psectionlist: &::core::option::Option, pmpegdata: &::core::option::Option) -> ::windows::core::Result<()>; fn GetVersionNumber(&self) -> ::windows::core::Result; @@ -35187,7 +35108,7 @@ pub trait ISCTE_EAS_Impl: Sized { fn GetEASEventCode(&self) -> ::windows::core::Result; fn GetRawNatureOfActivationTextLen(&self) -> ::windows::core::Result; fn GetRawNatureOfActivationText(&self) -> ::windows::core::Result; - fn GetNatureOfActivationText(&self, bstris0639code: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetNatureOfActivationText(&self, bstris0639code: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; fn GetTimeRemaining(&self) -> ::windows::core::Result; fn GetStartTime(&self) -> ::windows::core::Result; fn GetDuration(&self) -> ::windows::core::Result; @@ -35196,7 +35117,7 @@ pub trait ISCTE_EAS_Impl: Sized { fn GetDetailsMajor(&self) -> ::windows::core::Result; fn GetDetailsMinor(&self) -> ::windows::core::Result; fn GetDetailsAudioOOBSourceID(&self) -> ::windows::core::Result; - fn GetAlertText(&self, bstris0639code: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetAlertText(&self, bstris0639code: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; fn GetRawAlertTextLen(&self) -> ::windows::core::Result; fn GetRawAlertText(&self) -> ::windows::core::Result; fn GetLocationCount(&self) -> ::windows::core::Result; @@ -35207,9 +35128,7 @@ pub trait ISCTE_EAS_Impl: Sized { fn GetTableDescriptorByIndex(&self, dwindex: u32) -> ::windows::core::Result; fn GetTableDescriptorByTag(&self, btag: u8, pdwcookie: *mut u32, ppdescriptor: *mut ::core::option::Option) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ISCTE_EAS {} -#[cfg(feature = "Win32_Foundation")] impl ISCTE_EAS_Vtbl { pub const fn new, Impl: ISCTE_EAS_Impl, const OFFSET: isize>() -> ISCTE_EAS_Vtbl { unsafe extern "system" fn Initialize, Impl: ISCTE_EAS_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, psectionlist: *mut ::core::ffi::c_void, pmpegdata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -35316,7 +35235,7 @@ impl ISCTE_EAS_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetNatureOfActivationText, Impl: ISCTE_EAS_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstris0639code: ::core::mem::ManuallyDrop, pbstrstring: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetNatureOfActivationText, Impl: ISCTE_EAS_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstris0639code: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetNatureOfActivationText(::core::mem::transmute(&bstris0639code)) { @@ -35415,7 +35334,7 @@ impl ISCTE_EAS_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetAlertText, Impl: ISCTE_EAS_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstris0639code: ::core::mem::ManuallyDrop, pbstrstring: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetAlertText, Impl: ISCTE_EAS_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstris0639code: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetAlertText(::core::mem::transmute(&bstris0639code)) { @@ -37023,13 +36942,13 @@ impl ITunerCapEx_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ITuningSpace_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn UniqueName(&self) -> ::windows::core::Result; - fn SetUniqueName(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn FriendlyName(&self) -> ::windows::core::Result; - fn SetFriendlyName(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn CLSID(&self) -> ::windows::core::Result; - fn NetworkType(&self) -> ::windows::core::Result; - fn SetNetworkType(&self, networktypeguid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn UniqueName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetUniqueName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn FriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetFriendlyName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn CLSID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn NetworkType(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetNetworkType(&self, networktypeguid: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn _NetworkType(&self) -> ::windows::core::Result<::windows::core::GUID>; fn Set_NetworkType(&self, networktypeguid: *const ::windows::core::GUID) -> ::windows::core::Result<()>; fn CreateTuneRequest(&self) -> ::windows::core::Result; @@ -37037,8 +36956,8 @@ pub trait ITuningSpace_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn EnumDeviceMonikers(&self) -> ::windows::core::Result; fn DefaultPreferredComponentTypes(&self) -> ::windows::core::Result; fn SetDefaultPreferredComponentTypes(&self, newcomponenttypes: &::core::option::Option) -> ::windows::core::Result<()>; - fn FrequencyMapping(&self) -> ::windows::core::Result; - fn SetFrequencyMapping(&self, mapping: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn FrequencyMapping(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetFrequencyMapping(&self, mapping: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn DefaultLocator(&self) -> ::windows::core::Result; fn SetDefaultLocator(&self, locatorval: &::core::option::Option) -> ::windows::core::Result<()>; fn Clone(&self) -> ::windows::core::Result; @@ -37048,7 +36967,7 @@ impl ::windows::core::RuntimeName for ITuningSpace {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ITuningSpace_Vtbl { pub const fn new, Impl: ITuningSpace_Impl, const OFFSET: isize>() -> ITuningSpace_Vtbl { - unsafe extern "system" fn UniqueName, Impl: ITuningSpace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UniqueName, Impl: ITuningSpace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UniqueName() { @@ -37059,12 +36978,12 @@ impl ITuningSpace_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetUniqueName, Impl: ITuningSpace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetUniqueName, Impl: ITuningSpace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetUniqueName(::core::mem::transmute(&name)).into() } - unsafe extern "system" fn FriendlyName, Impl: ITuningSpace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FriendlyName, Impl: ITuningSpace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FriendlyName() { @@ -37075,12 +36994,12 @@ impl ITuningSpace_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetFriendlyName, Impl: ITuningSpace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetFriendlyName, Impl: ITuningSpace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetFriendlyName(::core::mem::transmute(&name)).into() } - unsafe extern "system" fn CLSID, Impl: ITuningSpace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, spaceclsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CLSID, Impl: ITuningSpace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, spaceclsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CLSID() { @@ -37091,7 +37010,7 @@ impl ITuningSpace_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn NetworkType, Impl: ITuningSpace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, networktypeguid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn NetworkType, Impl: ITuningSpace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, networktypeguid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.NetworkType() { @@ -37102,7 +37021,7 @@ impl ITuningSpace_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetNetworkType, Impl: ITuningSpace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, networktypeguid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetNetworkType, Impl: ITuningSpace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, networktypeguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetNetworkType(::core::mem::transmute(&networktypeguid)).into() @@ -37172,7 +37091,7 @@ impl ITuningSpace_Vtbl { let this = (*this).get_impl(); this.SetDefaultPreferredComponentTypes(::core::mem::transmute(&newcomponenttypes)).into() } - unsafe extern "system" fn FrequencyMapping, Impl: ITuningSpace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pmapping: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FrequencyMapping, Impl: ITuningSpace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pmapping: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FrequencyMapping() { @@ -37183,7 +37102,7 @@ impl ITuningSpace_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetFrequencyMapping, Impl: ITuningSpace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mapping: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetFrequencyMapping, Impl: ITuningSpace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mapping: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetFrequencyMapping(::core::mem::transmute(&mapping)).into() @@ -37248,9 +37167,9 @@ pub trait ITuningSpaceContainer_Impl: Sized + super::super::System::Com::IDispat fn _NewEnum(&self) -> ::windows::core::Result; fn get_Item(&self, varindex: &super::super::System::Com::VARIANT) -> ::windows::core::Result; fn put_Item(&self, varindex: &super::super::System::Com::VARIANT, tuningspace: &::core::option::Option) -> ::windows::core::Result<()>; - fn TuningSpacesForCLSID(&self, spaceclsid: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn TuningSpacesForCLSID(&self, spaceclsid: &::windows::core::BSTR) -> ::windows::core::Result; fn _TuningSpacesForCLSID2(&self, spaceclsid: *const ::windows::core::GUID) -> ::windows::core::Result; - fn TuningSpacesForName(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn TuningSpacesForName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result; fn FindID(&self, tuningspace: &::core::option::Option) -> ::windows::core::Result; fn Add(&self, tuningspace: &::core::option::Option) -> ::windows::core::Result; fn EnumTuningSpaces(&self) -> ::windows::core::Result; @@ -37301,7 +37220,7 @@ impl ITuningSpaceContainer_Vtbl { let this = (*this).get_impl(); this.put_Item(::core::mem::transmute(&varindex), ::core::mem::transmute(&tuningspace)).into() } - unsafe extern "system" fn TuningSpacesForCLSID, Impl: ITuningSpaceContainer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, spaceclsid: ::core::mem::ManuallyDrop, newcoll: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn TuningSpacesForCLSID, Impl: ITuningSpaceContainer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, spaceclsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, newcoll: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TuningSpacesForCLSID(::core::mem::transmute(&spaceclsid)) { @@ -37323,7 +37242,7 @@ impl ITuningSpaceContainer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn TuningSpacesForName, Impl: ITuningSpaceContainer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, newcoll: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn TuningSpacesForName, Impl: ITuningSpaceContainer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, newcoll: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TuningSpacesForName(::core::mem::transmute(&name)) { @@ -39750,8 +39669,8 @@ impl IVideoProcAmp_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IVideoWindow_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn SetCaption(&self, strcaption: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Caption(&self) -> ::windows::core::Result; + fn SetCaption(&self, strcaption: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Caption(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn SetWindowStyle(&self, windowstyle: i32) -> ::windows::core::Result<()>; fn WindowStyle(&self) -> ::windows::core::Result; fn SetWindowStyleEx(&self, windowstyleex: i32) -> ::windows::core::Result<()>; @@ -39795,12 +39714,12 @@ impl ::windows::core::RuntimeName for IVideoWindow {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IVideoWindow_Vtbl { pub const fn new, Impl: IVideoWindow_Impl, const OFFSET: isize>() -> IVideoWindow_Vtbl { - unsafe extern "system" fn SetCaption, Impl: IVideoWindow_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strcaption: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCaption, Impl: IVideoWindow_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strcaption: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCaption(::core::mem::transmute(&strcaption)).into() } - unsafe extern "system" fn Caption, Impl: IVideoWindow_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strcaption: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Caption, Impl: IVideoWindow_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strcaption: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Caption() { @@ -40200,19 +40119,16 @@ impl IWMCodecVideoAccelerator_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IXDSCodec_Impl: Sized { fn XDSToRatObjOK(&self) -> ::windows::core::Result<::windows::core::HRESULT>; fn SetCCSubstreamService(&self, substreammask: i32) -> ::windows::core::Result<()>; fn CCSubstreamService(&self) -> ::windows::core::Result; fn GetContentAdvisoryRating(&self, prat: *mut i32, ppktseqid: *mut i32, pcallseqid: *mut i32, ptimestart: *mut i64, ptimeend: *mut i64) -> ::windows::core::Result<()>; - fn GetXDSPacket(&self, pxdsclasspkt: *mut i32, pxdstypepkt: *mut i32, pbstrxdspkt: *mut super::super::Foundation::BSTR, ppktseqid: *mut i32, pcallseqid: *mut i32, ptimestart: *mut i64, ptimeend: *mut i64) -> ::windows::core::Result<()>; + fn GetXDSPacket(&self, pxdsclasspkt: *mut i32, pxdstypepkt: *mut i32, pbstrxdspkt: *mut ::windows::core::BSTR, ppktseqid: *mut i32, pcallseqid: *mut i32, ptimestart: *mut i64, ptimeend: *mut i64) -> ::windows::core::Result<()>; fn GetCurrLicenseExpDate(&self, prottype: *const ProtType) -> ::windows::core::Result; fn GetLastErrorCode(&self) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IXDSCodec {} -#[cfg(feature = "Win32_Foundation")] impl IXDSCodec_Vtbl { pub const fn new, Impl: IXDSCodec_Impl, const OFFSET: isize>() -> IXDSCodec_Vtbl { unsafe extern "system" fn XDSToRatObjOK, Impl: IXDSCodec_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, phrcocreateretval: *mut ::windows::core::HRESULT) -> ::windows::core::HRESULT { @@ -40247,7 +40163,7 @@ impl IXDSCodec_Vtbl { let this = (*this).get_impl(); this.GetContentAdvisoryRating(::core::mem::transmute_copy(&prat), ::core::mem::transmute_copy(&ppktseqid), ::core::mem::transmute_copy(&pcallseqid), ::core::mem::transmute_copy(&ptimestart), ::core::mem::transmute_copy(&ptimeend)).into() } - unsafe extern "system" fn GetXDSPacket, Impl: IXDSCodec_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pxdsclasspkt: *mut i32, pxdstypepkt: *mut i32, pbstrxdspkt: *mut super::super::Foundation::BSTR, ppktseqid: *mut i32, pcallseqid: *mut i32, ptimestart: *mut i64, ptimeend: *mut i64) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetXDSPacket, Impl: IXDSCodec_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pxdsclasspkt: *mut i32, pxdstypepkt: *mut i32, pbstrxdspkt: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppktseqid: *mut i32, pcallseqid: *mut i32, ptimestart: *mut i64, ptimeend: *mut i64) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetXDSPacket(::core::mem::transmute_copy(&pxdsclasspkt), ::core::mem::transmute_copy(&pxdstypepkt), ::core::mem::transmute_copy(&pbstrxdspkt), ::core::mem::transmute_copy(&ppktseqid), ::core::mem::transmute_copy(&pcallseqid), ::core::mem::transmute_copy(&ptimestart), ::core::mem::transmute_copy(&ptimeend)).into() diff --git a/crates/libs/windows/src/Windows/Win32/Media/DirectShow/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/DirectShow/mod.rs index f70884970e..1afc42ed15 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/DirectShow/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/DirectShow/mod.rs @@ -634,34 +634,22 @@ pub struct IAMCertifiedOutputProtection_Vtbl { pub struct IAMChannelInfo(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IAMChannelInfo { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ChannelName(&self, pbstrchannelname: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn ChannelName(&self, pbstrchannelname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ChannelName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrchannelname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ChannelDescription(&self, pbstrchanneldescription: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn ChannelDescription(&self, pbstrchanneldescription: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ChannelDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrchanneldescription)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ChannelURL(&self, pbstrchannelurl: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn ChannelURL(&self, pbstrchannelurl: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ChannelURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrchannelurl)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ContactAddress(&self, pbstrcontactaddress: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn ContactAddress(&self, pbstrcontactaddress: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ContactAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrcontactaddress)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ContactPhone(&self, pbstrcontactphone: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn ContactPhone(&self, pbstrcontactphone: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ContactPhone)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrcontactphone)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ContactEmail(&self, pbstrcontactemail: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn ContactEmail(&self, pbstrcontactemail: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ContactEmail)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrcontactemail)).ok() } } @@ -731,30 +719,12 @@ unsafe impl ::windows::core::Interface for IAMChannelInfo { #[doc(hidden)] pub struct IAMChannelInfo_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub ChannelName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrchannelname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ChannelName: usize, - #[cfg(feature = "Win32_Foundation")] - pub ChannelDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrchanneldescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ChannelDescription: usize, - #[cfg(feature = "Win32_Foundation")] - pub ChannelURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrchannelurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ChannelURL: usize, - #[cfg(feature = "Win32_Foundation")] - pub ContactAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcontactaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ContactAddress: usize, - #[cfg(feature = "Win32_Foundation")] - pub ContactPhone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcontactphone: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ContactPhone: usize, - #[cfg(feature = "Win32_Foundation")] - pub ContactEmail: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcontactemail: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ContactEmail: usize, + pub ChannelName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrchannelname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ChannelDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrchanneldescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ChannelURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrchannelurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ContactAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcontactaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ContactPhone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcontactphone: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ContactEmail: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcontactemail: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] #[repr(transparent)] @@ -1763,9 +1733,7 @@ impl IAMExtendedErrorInfo { pub unsafe fn HasError(&self, phaserror: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).HasError)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(phaserror)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ErrorDescription(&self, pbstrerrordescription: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn ErrorDescription(&self, pbstrerrordescription: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ErrorDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrerrordescription)).ok() } pub unsafe fn ErrorCode(&self, perrorcode: &mut i32) -> ::windows::core::Result<()> { @@ -1839,10 +1807,7 @@ unsafe impl ::windows::core::Interface for IAMExtendedErrorInfo { pub struct IAMExtendedErrorInfo_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub HasError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phaserror: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ErrorDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrerrordescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ErrorDescription: usize, + pub ErrorDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrerrordescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ErrorCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, perrorcode: *mut i32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`, `\"Win32_System_Com\"`*"] @@ -1863,9 +1828,7 @@ impl IAMExtendedSeeking { pub unsafe fn GetMarkerTime(&self, markernum: i32, pmarkertime: &mut f64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetMarkerTime)(::windows::core::Interface::as_raw(self), markernum, ::core::mem::transmute(pmarkertime)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetMarkerName(&self, markernum: i32, pbstrmarkername: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetMarkerName(&self, markernum: i32, pbstrmarkername: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetMarkerName)(::windows::core::Interface::as_raw(self), markernum, ::core::mem::transmute(pbstrmarkername)).ok() } pub unsafe fn SetPlaybackSpeed(&self, speed: f64) -> ::windows::core::Result<()> { @@ -1945,10 +1908,7 @@ pub struct IAMExtendedSeeking_Vtbl { pub MarkerCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmarkercount: *mut i32) -> ::windows::core::HRESULT, pub CurrentMarker: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcurrentmarker: *mut i32) -> ::windows::core::HRESULT, pub GetMarkerTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, markernum: i32, pmarkertime: *mut f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetMarkerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, markernum: i32, pbstrmarkername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetMarkerName: usize, + pub GetMarkerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, markernum: i32, pbstrmarkername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetPlaybackSpeed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, speed: f64) -> ::windows::core::HRESULT, pub PlaybackSpeed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pspeed: *mut f64) -> ::windows::core::HRESULT, } @@ -2361,69 +2321,43 @@ pub struct IAMLine21Decoder_Vtbl { pub struct IAMMediaContent(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IAMMediaContent { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AuthorName(&self, pbstrauthorname: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn AuthorName(&self, pbstrauthorname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).AuthorName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrauthorname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Title(&self, pbstrtitle: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Title(&self, pbstrtitle: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrtitle)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Rating(&self, pbstrrating: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Rating(&self, pbstrrating: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Rating)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrrating)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self, pbstrdescription: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Description(&self, pbstrdescription: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrdescription)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Copyright(&self, pbstrcopyright: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Copyright(&self, pbstrcopyright: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Copyright)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrcopyright)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BaseURL(&self, pbstrbaseurl: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn BaseURL(&self, pbstrbaseurl: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).BaseURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrbaseurl)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LogoURL(&self, pbstrlogourl: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn LogoURL(&self, pbstrlogourl: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).LogoURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrlogourl)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LogoIconURL(&self, pbstrlogourl: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn LogoIconURL(&self, pbstrlogourl: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).LogoIconURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrlogourl)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn WatermarkURL(&self, pbstrwatermarkurl: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn WatermarkURL(&self, pbstrwatermarkurl: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).WatermarkURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrwatermarkurl)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MoreInfoURL(&self, pbstrmoreinfourl: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn MoreInfoURL(&self, pbstrmoreinfourl: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).MoreInfoURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrmoreinfourl)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MoreInfoBannerImage(&self, pbstrmoreinfobannerimage: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn MoreInfoBannerImage(&self, pbstrmoreinfobannerimage: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).MoreInfoBannerImage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrmoreinfobannerimage)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MoreInfoBannerURL(&self, pbstrmoreinfobannerurl: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn MoreInfoBannerURL(&self, pbstrmoreinfobannerurl: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).MoreInfoBannerURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrmoreinfobannerurl)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MoreInfoText(&self, pbstrmoreinfotext: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn MoreInfoText(&self, pbstrmoreinfotext: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).MoreInfoText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrmoreinfotext)).ok() } } @@ -2493,58 +2427,19 @@ unsafe impl ::windows::core::Interface for IAMMediaContent { #[doc(hidden)] pub struct IAMMediaContent_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub AuthorName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrauthorname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AuthorName: usize, - #[cfg(feature = "Win32_Foundation")] - pub Title: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtitle: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Title: usize, - #[cfg(feature = "Win32_Foundation")] - pub Rating: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrrating: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Rating: usize, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub Copyright: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcopyright: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Copyright: usize, - #[cfg(feature = "Win32_Foundation")] - pub BaseURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbaseurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BaseURL: usize, - #[cfg(feature = "Win32_Foundation")] - pub LogoURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrlogourl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LogoURL: usize, - #[cfg(feature = "Win32_Foundation")] - pub LogoIconURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrlogourl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LogoIconURL: usize, - #[cfg(feature = "Win32_Foundation")] - pub WatermarkURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrwatermarkurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - WatermarkURL: usize, - #[cfg(feature = "Win32_Foundation")] - pub MoreInfoURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmoreinfourl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MoreInfoURL: usize, - #[cfg(feature = "Win32_Foundation")] - pub MoreInfoBannerImage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmoreinfobannerimage: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MoreInfoBannerImage: usize, - #[cfg(feature = "Win32_Foundation")] - pub MoreInfoBannerURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmoreinfobannerurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MoreInfoBannerURL: usize, - #[cfg(feature = "Win32_Foundation")] - pub MoreInfoText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmoreinfotext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MoreInfoText: usize, + pub AuthorName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrauthorname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Title: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtitle: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Rating: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrrating: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Copyright: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcopyright: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub BaseURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbaseurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub LogoURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrlogourl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub LogoIconURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrlogourl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub WatermarkURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrwatermarkurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub MoreInfoURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmoreinfourl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub MoreInfoBannerImage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmoreinfobannerimage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub MoreInfoBannerURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmoreinfobannerurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub MoreInfoText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmoreinfotext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2552,17 +2447,10 @@ pub struct IAMMediaContent_Vtbl { pub struct IAMMediaContent2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IAMMediaContent2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_MediaParameter<'a, P0>(&self, entrynum: i32, bstrname: P0, pbstrvalue: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).get_MediaParameter)(::windows::core::Interface::as_raw(self), entrynum, bstrname.into().abi(), ::core::mem::transmute(pbstrvalue)).ok() + pub unsafe fn get_MediaParameter(&self, entrynum: i32, bstrname: &::windows::core::BSTR, pbstrvalue: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).get_MediaParameter)(::windows::core::Interface::as_raw(self), entrynum, ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(pbstrvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_MediaParameterName(&self, entrynum: i32, index: i32, pbstrname: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn get_MediaParameterName(&self, entrynum: i32, index: i32, pbstrname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).get_MediaParameterName)(::windows::core::Interface::as_raw(self), entrynum, index, ::core::mem::transmute(pbstrname)).ok() } pub unsafe fn PlaylistCount(&self, pnumberentries: &mut i32) -> ::windows::core::Result<()> { @@ -2635,14 +2523,8 @@ unsafe impl ::windows::core::Interface for IAMMediaContent2 { #[doc(hidden)] pub struct IAMMediaContent2_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub get_MediaParameter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, entrynum: i32, bstrname: ::core::mem::ManuallyDrop, pbstrvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_MediaParameter: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_MediaParameterName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, entrynum: i32, index: i32, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_MediaParameterName: usize, + pub get_MediaParameter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, entrynum: i32, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub get_MediaParameterName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, entrynum: i32, index: i32, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub PlaylistCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnumberentries: *mut i32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] @@ -3260,18 +3142,11 @@ impl IAMNetShowConfig { pub unsafe fn SetEnableAutoProxy(&self, enableautoproxy: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetEnableAutoProxy)(::windows::core::Interface::as_raw(self), enableautoproxy).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn HTTPProxyHost(&self, pbstrhttpproxyhost: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn HTTPProxyHost(&self, pbstrhttpproxyhost: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).HTTPProxyHost)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrhttpproxyhost)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetHTTPProxyHost<'a, P0>(&self, bstrhttpproxyhost: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetHTTPProxyHost)(::windows::core::Interface::as_raw(self), bstrhttpproxyhost.into().abi()).ok() + pub unsafe fn SetHTTPProxyHost(&self, bstrhttpproxyhost: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetHTTPProxyHost)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrhttpproxyhost)).ok() } pub unsafe fn HTTPProxyPort(&self, phttpproxyport: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).HTTPProxyPort)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(phttpproxyport)).ok() @@ -3380,14 +3255,8 @@ pub struct IAMNetShowConfig_Vtbl { pub SetUseHTTPProxy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, usehttpproxy: i16) -> ::windows::core::HRESULT, pub EnableAutoProxy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penableautoproxy: *mut i16) -> ::windows::core::HRESULT, pub SetEnableAutoProxy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enableautoproxy: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub HTTPProxyHost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrhttpproxyhost: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - HTTPProxyHost: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetHTTPProxyHost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrhttpproxyhost: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetHTTPProxyHost: usize, + pub HTTPProxyHost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrhttpproxyhost: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetHTTPProxyHost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrhttpproxyhost: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub HTTPProxyPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phttpproxyport: *mut i32) -> ::windows::core::HRESULT, pub SetHTTPProxyPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, httpproxyport: i32) -> ::windows::core::HRESULT, pub EnableMulticast: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penablemulticast: *mut i16) -> ::windows::core::HRESULT, @@ -3411,9 +3280,7 @@ impl IAMNetShowExProps { pub unsafe fn Bandwidth(&self, pbandwidth: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Bandwidth)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbandwidth)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ErrorCorrection(&self, pbstrerrorcorrection: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn ErrorCorrection(&self, pbstrerrorcorrection: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ErrorCorrection)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrerrorcorrection)).ok() } pub unsafe fn CodecCount(&self, pcodeccount: &mut i32) -> ::windows::core::Result<()> { @@ -3422,22 +3289,16 @@ impl IAMNetShowExProps { pub unsafe fn GetCodecInstalled(&self, codecnum: i32, pcodecinstalled: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetCodecInstalled)(::windows::core::Interface::as_raw(self), codecnum, ::core::mem::transmute(pcodecinstalled)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCodecDescription(&self, codecnum: i32, pbstrcodecdescription: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetCodecDescription(&self, codecnum: i32, pbstrcodecdescription: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetCodecDescription)(::windows::core::Interface::as_raw(self), codecnum, ::core::mem::transmute(pbstrcodecdescription)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCodecURL(&self, codecnum: i32, pbstrcodecurl: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetCodecURL(&self, codecnum: i32, pbstrcodecurl: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetCodecURL)(::windows::core::Interface::as_raw(self), codecnum, ::core::mem::transmute(pbstrcodecurl)).ok() } pub unsafe fn CreationDate(&self, pcreationdate: &mut f64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).CreationDate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pcreationdate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SourceLink(&self, pbstrsourcelink: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn SourceLink(&self, pbstrsourcelink: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SourceLink)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrsourcelink)).ok() } } @@ -3509,25 +3370,13 @@ pub struct IAMNetShowExProps_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub SourceProtocol: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psourceprotocol: *mut i32) -> ::windows::core::HRESULT, pub Bandwidth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbandwidth: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ErrorCorrection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrerrorcorrection: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ErrorCorrection: usize, + pub ErrorCorrection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrerrorcorrection: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub CodecCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcodeccount: *mut i32) -> ::windows::core::HRESULT, pub GetCodecInstalled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, codecnum: i32, pcodecinstalled: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetCodecDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, codecnum: i32, pbstrcodecdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetCodecDescription: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetCodecURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, codecnum: i32, pbstrcodecurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetCodecURL: usize, + pub GetCodecDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, codecnum: i32, pbstrcodecdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetCodecURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, codecnum: i32, pbstrcodecurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub CreationDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcreationdate: *mut f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SourceLink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsourcelink: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SourceLink: usize, + pub SourceLink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsourcelink: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4015,11 +3864,9 @@ impl IAMPlayListItem { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetSourceCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetSourceURL(&self, dwsourceindex: u32) -> ::windows::core::Result { + pub unsafe fn GetSourceURL(&self, dwsourceindex: u32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetSourceURL)(::windows::core::Interface::as_raw(self), dwsourceindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetSourceURL)(::windows::core::Interface::as_raw(self), dwsourceindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetSourceStart(&self, dwsourceindex: u32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4037,23 +3884,17 @@ impl IAMPlayListItem { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetSourceEndMarker)(::windows::core::Interface::as_raw(self), dwsourceindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetSourceStartMarkerName(&self, dwsourceindex: u32) -> ::windows::core::Result { + pub unsafe fn GetSourceStartMarkerName(&self, dwsourceindex: u32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetSourceStartMarkerName)(::windows::core::Interface::as_raw(self), dwsourceindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetSourceStartMarkerName)(::windows::core::Interface::as_raw(self), dwsourceindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetSourceEndMarkerName(&self, dwsourceindex: u32) -> ::windows::core::Result { + pub unsafe fn GetSourceEndMarkerName(&self, dwsourceindex: u32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetSourceEndMarkerName)(::windows::core::Interface::as_raw(self), dwsourceindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetSourceEndMarkerName)(::windows::core::Interface::as_raw(self), dwsourceindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetLinkURL(&self) -> ::windows::core::Result { + pub unsafe fn GetLinkURL(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetLinkURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetLinkURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetScanDuration(&self, dwsourceindex: u32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4101,26 +3942,14 @@ pub struct IAMPlayListItem_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub GetFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwflags: *mut u32) -> ::windows::core::HRESULT, pub GetSourceCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwsources: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetSourceURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwsourceindex: u32, pbstrurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetSourceURL: usize, + pub GetSourceURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwsourceindex: u32, pbstrurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetSourceStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwsourceindex: u32, prtstart: *mut i64) -> ::windows::core::HRESULT, pub GetSourceDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwsourceindex: u32, prtduration: *mut i64) -> ::windows::core::HRESULT, pub GetSourceStartMarker: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwsourceindex: u32, pdwmarker: *mut u32) -> ::windows::core::HRESULT, pub GetSourceEndMarker: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwsourceindex: u32, pdwmarker: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetSourceStartMarkerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwsourceindex: u32, pbstrstartmarker: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetSourceStartMarkerName: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetSourceEndMarkerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwsourceindex: u32, pbstrendmarker: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetSourceEndMarkerName: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetLinkURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetLinkURL: usize, + pub GetSourceStartMarkerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwsourceindex: u32, pbstrstartmarker: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetSourceEndMarkerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwsourceindex: u32, pbstrendmarker: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetLinkURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetScanDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwsourceindex: u32, prtscanduration: *mut i64) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] @@ -4411,27 +4240,15 @@ impl IAMStats { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Count)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetValueByIndex(&self, lindex: i32, szname: &mut super::super::Foundation::BSTR, lcount: &mut i32, dlast: &mut f64, daverage: &mut f64, dstddev: &mut f64, dmin: &mut f64, dmax: &mut f64) -> ::windows::core::Result<()> { + pub unsafe fn GetValueByIndex(&self, lindex: i32, szname: &mut ::windows::core::BSTR, lcount: &mut i32, dlast: &mut f64, daverage: &mut f64, dstddev: &mut f64, dmin: &mut f64, dmax: &mut f64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetValueByIndex)(::windows::core::Interface::as_raw(self), lindex, ::core::mem::transmute(szname), ::core::mem::transmute(lcount), ::core::mem::transmute(dlast), ::core::mem::transmute(daverage), ::core::mem::transmute(dstddev), ::core::mem::transmute(dmin), ::core::mem::transmute(dmax)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetValueByName<'a, P0>(&self, szname: P0, lindex: &mut i32, lcount: &mut i32, dlast: &mut f64, daverage: &mut f64, dstddev: &mut f64, dmin: &mut f64, dmax: &mut f64) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetValueByName)(::windows::core::Interface::as_raw(self), szname.into().abi(), ::core::mem::transmute(lindex), ::core::mem::transmute(lcount), ::core::mem::transmute(dlast), ::core::mem::transmute(daverage), ::core::mem::transmute(dstddev), ::core::mem::transmute(dmin), ::core::mem::transmute(dmax)).ok() + pub unsafe fn GetValueByName(&self, szname: &::windows::core::BSTR, lindex: &mut i32, lcount: &mut i32, dlast: &mut f64, daverage: &mut f64, dstddev: &mut f64, dmin: &mut f64, dmax: &mut f64) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetValueByName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(szname), ::core::mem::transmute(lindex), ::core::mem::transmute(lcount), ::core::mem::transmute(dlast), ::core::mem::transmute(daverage), ::core::mem::transmute(dstddev), ::core::mem::transmute(dmin), ::core::mem::transmute(dmax)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetIndex<'a, P0>(&self, szname: P0, lcreate: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetIndex(&self, szname: &::windows::core::BSTR, lcreate: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetIndex)(::windows::core::Interface::as_raw(self), szname.into().abi(), lcreate, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetIndex)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(szname), lcreate, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn AddValue(&self, lindex: i32, dvalue: f64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).AddValue)(::windows::core::Interface::as_raw(self), lindex, dvalue).ok() @@ -4505,18 +4322,9 @@ pub struct IAMStats_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetValueByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lindex: i32, szname: *mut super::super::Foundation::BSTR, lcount: *mut i32, dlast: *mut f64, daverage: *mut f64, dstddev: *mut f64, dmin: *mut f64, dmax: *mut f64) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetValueByIndex: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetValueByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szname: ::core::mem::ManuallyDrop, lindex: *mut i32, lcount: *mut i32, dlast: *mut f64, daverage: *mut f64, dstddev: *mut f64, dmin: *mut f64, dmax: *mut f64) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetValueByName: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szname: ::core::mem::ManuallyDrop, lcreate: i32, plindex: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetIndex: usize, + pub GetValueByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lindex: i32, szname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, lcount: *mut i32, dlast: *mut f64, daverage: *mut f64, dstddev: *mut f64, dmin: *mut f64, dmax: *mut f64) -> ::windows::core::HRESULT, + pub GetValueByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lindex: *mut i32, lcount: *mut i32, dlast: *mut f64, daverage: *mut f64, dstddev: *mut f64, dmin: *mut f64, dmax: *mut f64) -> ::windows::core::HRESULT, + pub GetIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lcreate: i32, plindex: *mut i32) -> ::windows::core::HRESULT, pub AddValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lindex: i32, dvalue: f64) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] @@ -6521,19 +6329,12 @@ impl IATSCComponentType { pub unsafe fn SetCategory(&self, category: ComponentCategory) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.SetCategory)(::windows::core::Interface::as_raw(self), category).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MediaMajorType(&self) -> ::windows::core::Result { + pub unsafe fn MediaMajorType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.MediaMajorType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.MediaMajorType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMediaMajorType<'a, P0>(&self, mediamajortype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.SetMediaMajorType)(::windows::core::Interface::as_raw(self), mediamajortype.into().abi()).ok() + pub unsafe fn SetMediaMajorType(&self, mediamajortype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.SetMediaMajorType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mediamajortype)).ok() } pub unsafe fn _MediaMajorType(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6542,19 +6343,12 @@ impl IATSCComponentType { pub unsafe fn Set_MediaMajorType(&self, mediamajortypeguid: &::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.Set_MediaMajorType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(mediamajortypeguid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MediaSubType(&self) -> ::windows::core::Result { + pub unsafe fn MediaSubType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.MediaSubType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.MediaSubType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMediaSubType<'a, P0>(&self, mediasubtype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.SetMediaSubType)(::windows::core::Interface::as_raw(self), mediasubtype.into().abi()).ok() + pub unsafe fn SetMediaSubType(&self, mediasubtype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.SetMediaSubType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mediasubtype)).ok() } pub unsafe fn _MediaSubType(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6563,19 +6357,12 @@ impl IATSCComponentType { pub unsafe fn Set_MediaSubType(&self, mediasubtypeguid: &::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.Set_MediaSubType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(mediasubtypeguid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MediaFormatType(&self) -> ::windows::core::Result { + pub unsafe fn MediaFormatType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.MediaFormatType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.MediaFormatType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMediaFormatType<'a, P0>(&self, mediaformattype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.SetMediaFormatType)(::windows::core::Interface::as_raw(self), mediaformattype.into().abi()).ok() + pub unsafe fn SetMediaFormatType(&self, mediaformattype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.SetMediaFormatType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mediaformattype)).ok() } pub unsafe fn _MediaFormatType(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7141,53 +6928,30 @@ pub struct IATSCLocator2_Vtbl { pub struct IATSCTuningSpace(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IATSCTuningSpace { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UniqueName(&self) -> ::windows::core::Result { + pub unsafe fn UniqueName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.UniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.UniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetUniqueName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetUniqueName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetUniqueName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetUniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FriendlyName(&self) -> ::windows::core::Result { + pub unsafe fn FriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFriendlyName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetFriendlyName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetFriendlyName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CLSID(&self) -> ::windows::core::Result { + pub unsafe fn CLSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NetworkType(&self) -> ::windows::core::Result { + pub unsafe fn NetworkType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.NetworkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.NetworkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetNetworkType<'a, P0>(&self, networktypeguid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetNetworkType)(::windows::core::Interface::as_raw(self), networktypeguid.into().abi()).ok() + pub unsafe fn SetNetworkType(&self, networktypeguid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetNetworkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(networktypeguid)).ok() } pub unsafe fn _NetworkType(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7228,19 +6992,12 @@ impl IATSCTuningSpace { { (::windows::core::Interface::vtable(self).base__.base__.SetDefaultPreferredComponentTypes)(::windows::core::Interface::as_raw(self), newcomponenttypes.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FrequencyMapping(&self) -> ::windows::core::Result { + pub unsafe fn FrequencyMapping(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.FrequencyMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.FrequencyMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFrequencyMapping<'a, P0>(&self, mapping: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetFrequencyMapping)(::windows::core::Interface::as_raw(self), mapping.into().abi()).ok() + pub unsafe fn SetFrequencyMapping(&self, mapping: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetFrequencyMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mapping)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -8023,19 +7780,12 @@ impl IAnalogAudioComponentType { pub unsafe fn SetCategory(&self, category: ComponentCategory) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetCategory)(::windows::core::Interface::as_raw(self), category).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MediaMajorType(&self) -> ::windows::core::Result { + pub unsafe fn MediaMajorType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.MediaMajorType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.MediaMajorType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMediaMajorType<'a, P0>(&self, mediamajortype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetMediaMajorType)(::windows::core::Interface::as_raw(self), mediamajortype.into().abi()).ok() + pub unsafe fn SetMediaMajorType(&self, mediamajortype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetMediaMajorType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mediamajortype)).ok() } pub unsafe fn _MediaMajorType(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -8044,19 +7794,12 @@ impl IAnalogAudioComponentType { pub unsafe fn Set_MediaMajorType(&self, mediamajortypeguid: &::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Set_MediaMajorType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(mediamajortypeguid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MediaSubType(&self) -> ::windows::core::Result { + pub unsafe fn MediaSubType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.MediaSubType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.MediaSubType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMediaSubType<'a, P0>(&self, mediasubtype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetMediaSubType)(::windows::core::Interface::as_raw(self), mediasubtype.into().abi()).ok() + pub unsafe fn SetMediaSubType(&self, mediasubtype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetMediaSubType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mediasubtype)).ok() } pub unsafe fn _MediaSubType(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -8065,19 +7808,12 @@ impl IAnalogAudioComponentType { pub unsafe fn Set_MediaSubType(&self, mediasubtypeguid: &::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Set_MediaSubType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(mediasubtypeguid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MediaFormatType(&self) -> ::windows::core::Result { + pub unsafe fn MediaFormatType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.MediaFormatType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.MediaFormatType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMediaFormatType<'a, P0>(&self, mediaformattype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetMediaFormatType)(::windows::core::Interface::as_raw(self), mediaformattype.into().abi()).ok() + pub unsafe fn SetMediaFormatType(&self, mediaformattype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetMediaFormatType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mediaformattype)).ok() } pub unsafe fn _MediaFormatType(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -8360,53 +8096,30 @@ pub struct IAnalogLocator_Vtbl { pub struct IAnalogRadioTuningSpace(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IAnalogRadioTuningSpace { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UniqueName(&self) -> ::windows::core::Result { + pub unsafe fn UniqueName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.UniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.UniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetUniqueName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetUniqueName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetUniqueName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetUniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FriendlyName(&self) -> ::windows::core::Result { + pub unsafe fn FriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFriendlyName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetFriendlyName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetFriendlyName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CLSID(&self) -> ::windows::core::Result { + pub unsafe fn CLSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NetworkType(&self) -> ::windows::core::Result { + pub unsafe fn NetworkType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.NetworkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.NetworkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetNetworkType<'a, P0>(&self, networktypeguid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetNetworkType)(::windows::core::Interface::as_raw(self), networktypeguid.into().abi()).ok() + pub unsafe fn SetNetworkType(&self, networktypeguid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetNetworkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(networktypeguid)).ok() } pub unsafe fn _NetworkType(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -8447,19 +8160,12 @@ impl IAnalogRadioTuningSpace { { (::windows::core::Interface::vtable(self).base__.SetDefaultPreferredComponentTypes)(::windows::core::Interface::as_raw(self), newcomponenttypes.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FrequencyMapping(&self) -> ::windows::core::Result { + pub unsafe fn FrequencyMapping(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FrequencyMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.FrequencyMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFrequencyMapping<'a, P0>(&self, mapping: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetFrequencyMapping)(::windows::core::Interface::as_raw(self), mapping.into().abi()).ok() + pub unsafe fn SetFrequencyMapping(&self, mapping: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetFrequencyMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mapping)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -8600,53 +8306,30 @@ pub struct IAnalogRadioTuningSpace_Vtbl { pub struct IAnalogRadioTuningSpace2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IAnalogRadioTuningSpace2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UniqueName(&self) -> ::windows::core::Result { + pub unsafe fn UniqueName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.UniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.UniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetUniqueName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetUniqueName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetUniqueName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetUniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FriendlyName(&self) -> ::windows::core::Result { + pub unsafe fn FriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFriendlyName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetFriendlyName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetFriendlyName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CLSID(&self) -> ::windows::core::Result { + pub unsafe fn CLSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NetworkType(&self) -> ::windows::core::Result { + pub unsafe fn NetworkType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.NetworkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.NetworkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetNetworkType<'a, P0>(&self, networktypeguid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetNetworkType)(::windows::core::Interface::as_raw(self), networktypeguid.into().abi()).ok() + pub unsafe fn SetNetworkType(&self, networktypeguid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetNetworkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(networktypeguid)).ok() } pub unsafe fn _NetworkType(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -8687,19 +8370,12 @@ impl IAnalogRadioTuningSpace2 { { (::windows::core::Interface::vtable(self).base__.base__.SetDefaultPreferredComponentTypes)(::windows::core::Interface::as_raw(self), newcomponenttypes.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FrequencyMapping(&self) -> ::windows::core::Result { + pub unsafe fn FrequencyMapping(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.FrequencyMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.FrequencyMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFrequencyMapping<'a, P0>(&self, mapping: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetFrequencyMapping)(::windows::core::Interface::as_raw(self), mapping.into().abi()).ok() + pub unsafe fn SetFrequencyMapping(&self, mapping: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetFrequencyMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mapping)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -8861,53 +8537,30 @@ pub struct IAnalogRadioTuningSpace2_Vtbl { pub struct IAnalogTVTuningSpace(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IAnalogTVTuningSpace { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UniqueName(&self) -> ::windows::core::Result { + pub unsafe fn UniqueName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.UniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.UniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetUniqueName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetUniqueName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetUniqueName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetUniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FriendlyName(&self) -> ::windows::core::Result { + pub unsafe fn FriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFriendlyName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetFriendlyName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetFriendlyName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CLSID(&self) -> ::windows::core::Result { + pub unsafe fn CLSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NetworkType(&self) -> ::windows::core::Result { + pub unsafe fn NetworkType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.NetworkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.NetworkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetNetworkType<'a, P0>(&self, networktypeguid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetNetworkType)(::windows::core::Interface::as_raw(self), networktypeguid.into().abi()).ok() + pub unsafe fn SetNetworkType(&self, networktypeguid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetNetworkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(networktypeguid)).ok() } pub unsafe fn _NetworkType(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -8948,19 +8601,12 @@ impl IAnalogTVTuningSpace { { (::windows::core::Interface::vtable(self).base__.SetDefaultPreferredComponentTypes)(::windows::core::Interface::as_raw(self), newcomponenttypes.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FrequencyMapping(&self) -> ::windows::core::Result { + pub unsafe fn FrequencyMapping(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FrequencyMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.FrequencyMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFrequencyMapping<'a, P0>(&self, mapping: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetFrequencyMapping)(::windows::core::Interface::as_raw(self), mapping.into().abi()).ok() + pub unsafe fn SetFrequencyMapping(&self, mapping: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetFrequencyMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mapping)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9785,53 +9431,30 @@ pub struct IAudioStreamSample_Vtbl { pub struct IAuxInTuningSpace(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IAuxInTuningSpace { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UniqueName(&self) -> ::windows::core::Result { + pub unsafe fn UniqueName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.UniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.UniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetUniqueName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetUniqueName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetUniqueName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetUniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FriendlyName(&self) -> ::windows::core::Result { + pub unsafe fn FriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFriendlyName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetFriendlyName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetFriendlyName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CLSID(&self) -> ::windows::core::Result { + pub unsafe fn CLSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NetworkType(&self) -> ::windows::core::Result { + pub unsafe fn NetworkType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.NetworkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.NetworkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetNetworkType<'a, P0>(&self, networktypeguid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetNetworkType)(::windows::core::Interface::as_raw(self), networktypeguid.into().abi()).ok() + pub unsafe fn SetNetworkType(&self, networktypeguid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetNetworkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(networktypeguid)).ok() } pub unsafe fn _NetworkType(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -9872,19 +9495,12 @@ impl IAuxInTuningSpace { { (::windows::core::Interface::vtable(self).base__.SetDefaultPreferredComponentTypes)(::windows::core::Interface::as_raw(self), newcomponenttypes.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FrequencyMapping(&self) -> ::windows::core::Result { + pub unsafe fn FrequencyMapping(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FrequencyMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.FrequencyMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFrequencyMapping<'a, P0>(&self, mapping: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetFrequencyMapping)(::windows::core::Interface::as_raw(self), mapping.into().abi()).ok() + pub unsafe fn SetFrequencyMapping(&self, mapping: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetFrequencyMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mapping)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9998,53 +9614,30 @@ pub struct IAuxInTuningSpace_Vtbl { pub struct IAuxInTuningSpace2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IAuxInTuningSpace2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UniqueName(&self) -> ::windows::core::Result { + pub unsafe fn UniqueName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.UniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.UniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetUniqueName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetUniqueName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetUniqueName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetUniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FriendlyName(&self) -> ::windows::core::Result { + pub unsafe fn FriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFriendlyName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetFriendlyName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetFriendlyName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CLSID(&self) -> ::windows::core::Result { + pub unsafe fn CLSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NetworkType(&self) -> ::windows::core::Result { + pub unsafe fn NetworkType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.NetworkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.NetworkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetNetworkType<'a, P0>(&self, networktypeguid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetNetworkType)(::windows::core::Interface::as_raw(self), networktypeguid.into().abi()).ok() + pub unsafe fn SetNetworkType(&self, networktypeguid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetNetworkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(networktypeguid)).ok() } pub unsafe fn _NetworkType(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -10085,19 +9678,12 @@ impl IAuxInTuningSpace2 { { (::windows::core::Interface::vtable(self).base__.base__.SetDefaultPreferredComponentTypes)(::windows::core::Interface::as_raw(self), newcomponenttypes.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FrequencyMapping(&self) -> ::windows::core::Result { + pub unsafe fn FrequencyMapping(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.FrequencyMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.FrequencyMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFrequencyMapping<'a, P0>(&self, mapping: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetFrequencyMapping)(::windows::core::Interface::as_raw(self), mapping.into().abi()).ok() + pub unsafe fn SetFrequencyMapping(&self, mapping: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetFrequencyMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mapping)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -10560,18 +10146,12 @@ pub struct IBDA_AutoDemodulateEx_Vtbl { #[repr(transparent)] pub struct IBDA_ConditionalAccess(::windows::core::IUnknown); impl IBDA_ConditionalAccess { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_SmartCardStatus(&self, pcardstatus: &mut SmartCardStatusType, pcardassociation: &mut SmartCardAssociationType, pbstrcarderror: &mut super::super::Foundation::BSTR, pfooblocked: &mut i16) -> ::windows::core::Result<()> { + pub unsafe fn get_SmartCardStatus(&self, pcardstatus: &mut SmartCardStatusType, pcardassociation: &mut SmartCardAssociationType, pbstrcarderror: &mut ::windows::core::BSTR, pfooblocked: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).get_SmartCardStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pcardstatus), ::core::mem::transmute(pcardassociation), ::core::mem::transmute(pbstrcarderror), ::core::mem::transmute(pfooblocked)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_SmartCardInfo(&self, pbstrcardname: &mut super::super::Foundation::BSTR, pbstrcardmanufacturer: &mut super::super::Foundation::BSTR, pfdaylightsavings: &mut i16, pbyratingregion: &mut u8, pltimezoneoffsetminutes: &mut i32, pbstrlanguage: &mut super::super::Foundation::BSTR, pealocationcode: &mut EALocationCodeType) -> ::windows::core::Result<()> { + pub unsafe fn get_SmartCardInfo(&self, pbstrcardname: &mut ::windows::core::BSTR, pbstrcardmanufacturer: &mut ::windows::core::BSTR, pfdaylightsavings: &mut i16, pbyratingregion: &mut u8, pltimezoneoffsetminutes: &mut i32, pbstrlanguage: &mut ::windows::core::BSTR, pealocationcode: &mut EALocationCodeType) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).get_SmartCardInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrcardname), ::core::mem::transmute(pbstrcardmanufacturer), ::core::mem::transmute(pfdaylightsavings), ::core::mem::transmute(pbyratingregion), ::core::mem::transmute(pltimezoneoffsetminutes), ::core::mem::transmute(pbstrlanguage), ::core::mem::transmute(pealocationcode)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_SmartCardApplications(&self, pulcapplications: &mut u32, rgapplications: &mut [SmartCardApplication]) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).get_SmartCardApplications)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pulcapplications), rgapplications.len() as _, ::core::mem::transmute(rgapplications.as_ptr())).ok() } @@ -10591,11 +10171,9 @@ impl IBDA_ConditionalAccess { pub unsafe fn RemoveProgram(&self, usprogramnumber: u16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RemoveProgram)(::windows::core::Interface::as_raw(self), usprogramnumber).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetModuleUI(&self, bydialognumber: u8) -> ::windows::core::Result { + pub unsafe fn GetModuleUI(&self, bydialognumber: u8) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetModuleUI)(::windows::core::Interface::as_raw(self), bydialognumber, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetModuleUI)(::windows::core::Interface::as_raw(self), bydialognumber, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn InformUIClosed(&self, bydialognumber: u8, closereason: UICloseReasonType) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).InformUIClosed)(::windows::core::Interface::as_raw(self), bydialognumber, closereason).ok() @@ -10640,61 +10218,34 @@ unsafe impl ::windows::core::Interface for IBDA_ConditionalAccess { #[doc(hidden)] pub struct IBDA_ConditionalAccess_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub get_SmartCardStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcardstatus: *mut SmartCardStatusType, pcardassociation: *mut SmartCardAssociationType, pbstrcarderror: *mut super::super::Foundation::BSTR, pfooblocked: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_SmartCardStatus: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_SmartCardInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcardname: *mut super::super::Foundation::BSTR, pbstrcardmanufacturer: *mut super::super::Foundation::BSTR, pfdaylightsavings: *mut i16, pbyratingregion: *mut u8, pltimezoneoffsetminutes: *mut i32, pbstrlanguage: *mut super::super::Foundation::BSTR, pealocationcode: *mut EALocationCodeType) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_SmartCardInfo: usize, - #[cfg(feature = "Win32_Foundation")] + pub get_SmartCardStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcardstatus: *mut SmartCardStatusType, pcardassociation: *mut SmartCardAssociationType, pbstrcarderror: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfooblocked: *mut i16) -> ::windows::core::HRESULT, + pub get_SmartCardInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcardname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrcardmanufacturer: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfdaylightsavings: *mut i16, pbyratingregion: *mut u8, pltimezoneoffsetminutes: *mut i32, pbstrlanguage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pealocationcode: *mut EALocationCodeType) -> ::windows::core::HRESULT, pub get_SmartCardApplications: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulcapplications: *mut u32, ulcapplicationsmax: u32, rgapplications: *mut SmartCardApplication) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_SmartCardApplications: usize, pub get_Entitlement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, usvirtualchannel: u16, pentitlement: *mut EntitlementType) -> ::windows::core::HRESULT, pub TuneByChannel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, usvirtualchannel: u16) -> ::windows::core::HRESULT, pub SetProgram: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, usprogramnumber: u16) -> ::windows::core::HRESULT, pub AddProgram: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, usprogramnumber: u16) -> ::windows::core::HRESULT, pub RemoveProgram: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, usprogramnumber: u16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetModuleUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bydialognumber: u8, pbstrurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetModuleUI: usize, + pub GetModuleUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bydialognumber: u8, pbstrurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub InformUIClosed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bydialognumber: u8, closereason: UICloseReasonType) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] #[repr(transparent)] pub struct IBDA_ConditionalAccessEx(::windows::core::IUnknown); impl IBDA_ConditionalAccessEx { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CheckEntitlementToken<'a, P0>(&self, uldialogrequest: u32, bstrlanguage: P0, requesttype: BDA_CONDITIONALACCESS_REQUESTTYPE, pbentitlementtoken: &[u8]) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn CheckEntitlementToken(&self, uldialogrequest: u32, bstrlanguage: &::windows::core::BSTR, requesttype: BDA_CONDITIONALACCESS_REQUESTTYPE, pbentitlementtoken: &[u8]) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CheckEntitlementToken)(::windows::core::Interface::as_raw(self), uldialogrequest, bstrlanguage.into().abi(), requesttype, pbentitlementtoken.len() as _, ::core::mem::transmute(pbentitlementtoken.as_ptr()), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CheckEntitlementToken)(::windows::core::Interface::as_raw(self), uldialogrequest, ::core::mem::transmute_copy(bstrlanguage), requesttype, pbentitlementtoken.len() as _, ::core::mem::transmute(pbentitlementtoken.as_ptr()), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn SetCaptureToken(&self, pbcapturetoken: &[u8]) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetCaptureToken)(::windows::core::Interface::as_raw(self), pbcapturetoken.len() as _, ::core::mem::transmute(pbcapturetoken.as_ptr())).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OpenBroadcastMmi<'a, P0>(&self, uldialogrequest: u32, bstrlanguage: P0, eventid: u32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).OpenBroadcastMmi)(::windows::core::Interface::as_raw(self), uldialogrequest, bstrlanguage.into().abi(), eventid).ok() + pub unsafe fn OpenBroadcastMmi(&self, uldialogrequest: u32, bstrlanguage: &::windows::core::BSTR, eventid: u32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).OpenBroadcastMmi)(::windows::core::Interface::as_raw(self), uldialogrequest, ::core::mem::transmute_copy(bstrlanguage), eventid).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CloseMmiDialog<'a, P0>(&self, uldialogrequest: u32, bstrlanguage: P0, uldialognumber: u32, reasoncode: BDA_CONDITIONALACCESS_MMICLOSEREASON) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn CloseMmiDialog(&self, uldialogrequest: u32, bstrlanguage: &::windows::core::BSTR, uldialognumber: u32, reasoncode: BDA_CONDITIONALACCESS_MMICLOSEREASON) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CloseMmiDialog)(::windows::core::Interface::as_raw(self), uldialogrequest, bstrlanguage.into().abi(), uldialognumber, reasoncode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CloseMmiDialog)(::windows::core::Interface::as_raw(self), uldialogrequest, ::core::mem::transmute_copy(bstrlanguage), uldialognumber, reasoncode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn CreateDialogRequestNumber(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -10740,36 +10291,20 @@ unsafe impl ::windows::core::Interface for IBDA_ConditionalAccessEx { #[doc(hidden)] pub struct IBDA_ConditionalAccessEx_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub CheckEntitlementToken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uldialogrequest: u32, bstrlanguage: ::core::mem::ManuallyDrop, requesttype: BDA_CONDITIONALACCESS_REQUESTTYPE, ulcbentitlementtokenlen: u32, pbentitlementtoken: *const u8, puldescramblestatus: *mut u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CheckEntitlementToken: usize, + pub CheckEntitlementToken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uldialogrequest: u32, bstrlanguage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, requesttype: BDA_CONDITIONALACCESS_REQUESTTYPE, ulcbentitlementtokenlen: u32, pbentitlementtoken: *const u8, puldescramblestatus: *mut u32) -> ::windows::core::HRESULT, pub SetCaptureToken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulcbcapturetokenlen: u32, pbcapturetoken: *const u8) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub OpenBroadcastMmi: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uldialogrequest: u32, bstrlanguage: ::core::mem::ManuallyDrop, eventid: u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OpenBroadcastMmi: usize, - #[cfg(feature = "Win32_Foundation")] - pub CloseMmiDialog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uldialogrequest: u32, bstrlanguage: ::core::mem::ManuallyDrop, uldialognumber: u32, reasoncode: BDA_CONDITIONALACCESS_MMICLOSEREASON, pulsessionresult: *mut u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CloseMmiDialog: usize, + pub OpenBroadcastMmi: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uldialogrequest: u32, bstrlanguage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, eventid: u32) -> ::windows::core::HRESULT, + pub CloseMmiDialog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uldialogrequest: u32, bstrlanguage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, uldialognumber: u32, reasoncode: BDA_CONDITIONALACCESS_MMICLOSEREASON, pulsessionresult: *mut u32) -> ::windows::core::HRESULT, pub CreateDialogRequestNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puldialogrequestnumber: *mut u32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] #[repr(transparent)] pub struct IBDA_DRIDRMService(::windows::core::IUnknown); impl IBDA_DRIDRMService { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDRM<'a, P0>(&self, bstrnewdrm: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDRM)(::windows::core::Interface::as_raw(self), bstrnewdrm.into().abi()).ok() + pub unsafe fn SetDRM(&self, bstrnewdrm: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDRM)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrnewdrm)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDRMStatus(&self, pbstrdrmuuidlist: &mut super::super::Foundation::BSTR, drmuuid: &mut ::windows::core::GUID) -> ::windows::core::Result<()> { + pub unsafe fn GetDRMStatus(&self, pbstrdrmuuidlist: &mut ::windows::core::BSTR, drmuuid: &mut ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetDRMStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrdrmuuidlist), ::core::mem::transmute(drmuuid)).ok() } pub unsafe fn GetPairingStatus(&self, penumpairingstatus: &mut BDA_DrmPairingError) -> ::windows::core::Result<()> { @@ -10815,14 +10350,8 @@ unsafe impl ::windows::core::Interface for IBDA_DRIDRMService { #[doc(hidden)] pub struct IBDA_DRIDRMService_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub SetDRM: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrnewdrm: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDRM: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetDRMStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdrmuuidlist: *mut super::super::Foundation::BSTR, drmuuid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDRMStatus: usize, + pub SetDRM: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrnewdrm: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetDRMStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdrmuuidlist: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, drmuuid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, pub GetPairingStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penumpairingstatus: *mut BDA_DrmPairingError) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] @@ -10966,9 +10495,7 @@ impl IBDA_DRMService { pub unsafe fn SetDRM(&self, puuidnewdrm: &::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetDRM)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(puuidnewdrm)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDRMStatus(&self, pbstrdrmuuidlist: &mut super::super::Foundation::BSTR, drmuuid: &mut ::windows::core::GUID) -> ::windows::core::Result<()> { + pub unsafe fn GetDRMStatus(&self, pbstrdrmuuidlist: &mut ::windows::core::BSTR, drmuuid: &mut ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetDRMStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrdrmuuidlist), ::core::mem::transmute(drmuuid)).ok() } } @@ -11012,10 +10539,7 @@ unsafe impl ::windows::core::Interface for IBDA_DRMService { pub struct IBDA_DRMService_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub SetDRM: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puuidnewdrm: *const ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetDRMStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdrmuuidlist: *mut super::super::Foundation::BSTR, drmuuid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDRMStatus: usize, + pub GetDRMStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdrmuuidlist: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, drmuuid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] #[repr(transparent)] @@ -11908,50 +11432,25 @@ pub struct IBDA_FDC(::windows::core::IUnknown); impl IBDA_FDC { #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetStatus(&self, currentbitrate: &mut u32, carrierlock: &mut super::super::Foundation::BOOL, currentfrequency: &mut u32, currentspectruminversion: &mut super::super::Foundation::BOOL, currentpidlist: &mut super::super::Foundation::BSTR, currenttidlist: &mut super::super::Foundation::BSTR, overflow: &mut super::super::Foundation::BOOL) -> ::windows::core::Result<()> { + pub unsafe fn GetStatus(&self, currentbitrate: &mut u32, carrierlock: &mut super::super::Foundation::BOOL, currentfrequency: &mut u32, currentspectruminversion: &mut super::super::Foundation::BOOL, currentpidlist: &mut ::windows::core::BSTR, currenttidlist: &mut ::windows::core::BSTR, overflow: &mut super::super::Foundation::BOOL) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(currentbitrate), ::core::mem::transmute(carrierlock), ::core::mem::transmute(currentfrequency), ::core::mem::transmute(currentspectruminversion), ::core::mem::transmute(currentpidlist), ::core::mem::transmute(currenttidlist), ::core::mem::transmute(overflow)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RequestTables<'a, P0>(&self, tableids: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).RequestTables)(::windows::core::Interface::as_raw(self), tableids.into().abi()).ok() + pub unsafe fn RequestTables(&self, tableids: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).RequestTables)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(tableids)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddPid<'a, P0>(&self, pidstoadd: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn AddPid(&self, pidstoadd: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AddPid)(::windows::core::Interface::as_raw(self), pidstoadd.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AddPid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pidstoadd), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemovePid<'a, P0>(&self, pidstoremove: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).RemovePid)(::windows::core::Interface::as_raw(self), pidstoremove.into().abi()).ok() + pub unsafe fn RemovePid(&self, pidstoremove: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).RemovePid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pidstoremove)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddTid<'a, P0>(&self, tidstoadd: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn AddTid(&self, tidstoadd: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AddTid)(::windows::core::Interface::as_raw(self), tidstoadd.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AddTid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(tidstoadd), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoveTid<'a, P0>(&self, tidstoremove: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).RemoveTid)(::windows::core::Interface::as_raw(self), tidstoremove.into().abi()).ok() + pub unsafe fn RemoveTid(&self, tidstoremove: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).RemoveTid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(tidstoremove)).ok() } pub unsafe fn GetTableSection(&self, pid: &mut u32, maxbuffersize: u32, actualsize: &mut u32, secbuffer: &mut u8) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetTableSection)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pid), maxbuffersize, ::core::mem::transmute(actualsize), ::core::mem::transmute(secbuffer)).ok() @@ -11997,29 +11496,14 @@ unsafe impl ::windows::core::Interface for IBDA_FDC { pub struct IBDA_FDC_Vtbl { pub base__: ::windows::core::IUnknownVtbl, #[cfg(feature = "Win32_Foundation")] - pub GetStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, currentbitrate: *mut u32, carrierlock: *mut super::super::Foundation::BOOL, currentfrequency: *mut u32, currentspectruminversion: *mut super::super::Foundation::BOOL, currentpidlist: *mut super::super::Foundation::BSTR, currenttidlist: *mut super::super::Foundation::BSTR, overflow: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, + pub GetStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, currentbitrate: *mut u32, carrierlock: *mut super::super::Foundation::BOOL, currentfrequency: *mut u32, currentspectruminversion: *mut super::super::Foundation::BOOL, currentpidlist: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, currenttidlist: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, overflow: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] GetStatus: usize, - #[cfg(feature = "Win32_Foundation")] - pub RequestTables: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tableids: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RequestTables: usize, - #[cfg(feature = "Win32_Foundation")] - pub AddPid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pidstoadd: ::core::mem::ManuallyDrop, remainingfilterentries: *mut u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddPid: usize, - #[cfg(feature = "Win32_Foundation")] - pub RemovePid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pidstoremove: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RemovePid: usize, - #[cfg(feature = "Win32_Foundation")] - pub AddTid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tidstoadd: ::core::mem::ManuallyDrop, currenttidlist: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddTid: usize, - #[cfg(feature = "Win32_Foundation")] - pub RemoveTid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tidstoremove: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RemoveTid: usize, + pub RequestTables: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tableids: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub AddPid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pidstoadd: ::core::mem::ManuallyDrop<::windows::core::BSTR>, remainingfilterentries: *mut u32) -> ::windows::core::HRESULT, + pub RemovePid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pidstoremove: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub AddTid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tidstoadd: ::core::mem::ManuallyDrop<::windows::core::BSTR>, currenttidlist: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub RemoveTid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tidstoremove: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetTableSection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pid: *mut u32, maxbuffersize: u32, actualsize: *mut u32, secbuffer: *mut u8) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] @@ -12129,23 +11613,16 @@ impl IBDA_GuideDataDeliveryService { pub unsafe fn RequestGuideDataUpdate(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RequestGuideDataUpdate)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetTuneXmlFromServiceIdx(&self, ul64serviceidx: u64) -> ::windows::core::Result { + pub unsafe fn GetTuneXmlFromServiceIdx(&self, ul64serviceidx: u64) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetTuneXmlFromServiceIdx)(::windows::core::Interface::as_raw(self), ul64serviceidx, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetTuneXmlFromServiceIdx)(::windows::core::Interface::as_raw(self), ul64serviceidx, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetServices(&self, pulcbbufferlen: &mut u32, pbbuffer: &mut u8) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetServices)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pulcbbufferlen), ::core::mem::transmute(pbbuffer)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetServiceInfoFromTuneXml<'a, P0>(&self, bstrtunexml: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetServiceInfoFromTuneXml(&self, bstrtunexml: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetServiceInfoFromTuneXml)(::windows::core::Interface::as_raw(self), bstrtunexml.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetServiceInfoFromTuneXml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtunexml), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -12190,15 +11667,9 @@ pub struct IBDA_GuideDataDeliveryService_Vtbl { pub GetGuideDataType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguiddatatype: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, pub GetGuideData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulcbbufferlen: *mut u32, pbbuffer: *mut u8, pulguidedatapercentageprogress: *mut u32) -> ::windows::core::HRESULT, pub RequestGuideDataUpdate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetTuneXmlFromServiceIdx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ul64serviceidx: u64, pbstrtunexml: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetTuneXmlFromServiceIdx: usize, + pub GetTuneXmlFromServiceIdx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ul64serviceidx: u64, pbstrtunexml: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetServices: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulcbbufferlen: *mut u32, pbbuffer: *mut u8) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetServiceInfoFromTuneXml: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtunexml: ::core::mem::ManuallyDrop, pbstrservicedescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetServiceInfoFromTuneXml: usize, + pub GetServiceInfoFromTuneXml: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtunexml: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrservicedescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] #[repr(transparent)] @@ -12260,17 +11731,13 @@ impl IBDA_IPSinkInfo { pub unsafe fn get_MulticastList(&self, pulcbaddresses: &mut u32, ppbaddresslist: *mut *mut u8) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).get_MulticastList)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pulcbaddresses), ::core::mem::transmute(ppbaddresslist)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AdapterIPAddress(&self) -> ::windows::core::Result { + pub unsafe fn AdapterIPAddress(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AdapterIPAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AdapterIPAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AdapterDescription(&self) -> ::windows::core::Result { + pub unsafe fn AdapterDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AdapterDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AdapterDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -12313,14 +11780,8 @@ unsafe impl ::windows::core::Interface for IBDA_IPSinkInfo { pub struct IBDA_IPSinkInfo_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub get_MulticastList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulcbaddresses: *mut u32, ppbaddresslist: *mut *mut u8) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub AdapterIPAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbuffer: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AdapterIPAddress: usize, - #[cfg(feature = "Win32_Foundation")] - pub AdapterDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbuffer: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AdapterDescription: usize, + pub AdapterIPAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbuffer: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub AdapterDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbuffer: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] #[repr(transparent)] @@ -12629,31 +12090,16 @@ pub struct IBDA_MUX_Vtbl { #[repr(transparent)] pub struct IBDA_NameValueService(::windows::core::IUnknown); impl IBDA_NameValueService { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetValueNameByIndex(&self, ulindex: u32) -> ::windows::core::Result { + pub unsafe fn GetValueNameByIndex(&self, ulindex: u32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetValueNameByIndex)(::windows::core::Interface::as_raw(self), ulindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetValueNameByIndex)(::windows::core::Interface::as_raw(self), ulindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetValue<'a, P0, P1>(&self, bstrname: P0, bstrlanguage: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetValue(&self, bstrname: &::windows::core::BSTR, bstrlanguage: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetValue)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), bstrlanguage.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute_copy(bstrlanguage), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetValue<'a, P0, P1, P2>(&self, uldialogrequest: u32, bstrlanguage: P0, bstrname: P1, bstrvalue: P2, ulreserved: u32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetValue)(::windows::core::Interface::as_raw(self), uldialogrequest, bstrlanguage.into().abi(), bstrname.into().abi(), bstrvalue.into().abi(), ulreserved).ok() + pub unsafe fn SetValue(&self, uldialogrequest: u32, bstrlanguage: &::windows::core::BSTR, bstrname: &::windows::core::BSTR, bstrvalue: &::windows::core::BSTR, ulreserved: u32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetValue)(::windows::core::Interface::as_raw(self), uldialogrequest, ::core::mem::transmute_copy(bstrlanguage), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute_copy(bstrvalue), ulreserved).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -12695,18 +12141,9 @@ unsafe impl ::windows::core::Interface for IBDA_NameValueService { #[doc(hidden)] pub struct IBDA_NameValueService_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetValueNameByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulindex: u32, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetValueNameByIndex: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, bstrlanguage: ::core::mem::ManuallyDrop, pbstrvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetValue: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uldialogrequest: u32, bstrlanguage: ::core::mem::ManuallyDrop, bstrname: ::core::mem::ManuallyDrop, bstrvalue: ::core::mem::ManuallyDrop, ulreserved: u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetValue: usize, + pub GetValueNameByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulindex: u32, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrlanguage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uldialogrequest: u32, bstrlanguage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ulreserved: u32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] #[repr(transparent)] @@ -13509,13 +12946,8 @@ pub struct IBDA_WMDRMSession_Vtbl { #[repr(transparent)] pub struct IBDA_WMDRMTuner(::windows::core::IUnknown); impl IBDA_WMDRMTuner { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PurchaseEntitlement<'a, P0>(&self, uldialogrequest: u32, bstrlanguage: P0, pbpurchasetoken: &[u8], puldescramblestatus: &mut u32, pulcapturetokenlen: &mut u32, pbcapturetoken: &mut u8) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).PurchaseEntitlement)(::windows::core::Interface::as_raw(self), uldialogrequest, bstrlanguage.into().abi(), pbpurchasetoken.len() as _, ::core::mem::transmute(pbpurchasetoken.as_ptr()), ::core::mem::transmute(puldescramblestatus), ::core::mem::transmute(pulcapturetokenlen), ::core::mem::transmute(pbcapturetoken)).ok() + pub unsafe fn PurchaseEntitlement(&self, uldialogrequest: u32, bstrlanguage: &::windows::core::BSTR, pbpurchasetoken: &[u8], puldescramblestatus: &mut u32, pulcapturetokenlen: &mut u32, pbcapturetoken: &mut u8) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).PurchaseEntitlement)(::windows::core::Interface::as_raw(self), uldialogrequest, ::core::mem::transmute_copy(bstrlanguage), pbpurchasetoken.len() as _, ::core::mem::transmute(pbpurchasetoken.as_ptr()), ::core::mem::transmute(puldescramblestatus), ::core::mem::transmute(pulcapturetokenlen), ::core::mem::transmute(pbcapturetoken)).ok() } pub unsafe fn CancelCaptureToken(&self, pbcapturetoken: &[u8]) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).CancelCaptureToken)(::windows::core::Interface::as_raw(self), pbcapturetoken.len() as _, ::core::mem::transmute(pbcapturetoken.as_ptr())).ok() @@ -13573,10 +13005,7 @@ unsafe impl ::windows::core::Interface for IBDA_WMDRMTuner { #[doc(hidden)] pub struct IBDA_WMDRMTuner_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub PurchaseEntitlement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uldialogrequest: u32, bstrlanguage: ::core::mem::ManuallyDrop, ulpurchasetokenlen: u32, pbpurchasetoken: *const u8, puldescramblestatus: *mut u32, pulcapturetokenlen: *mut u32, pbcapturetoken: *mut u8) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PurchaseEntitlement: usize, + pub PurchaseEntitlement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uldialogrequest: u32, bstrlanguage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ulpurchasetokenlen: u32, pbpurchasetoken: *const u8, puldescramblestatus: *mut u32, pulcapturetokenlen: *mut u32, pbcapturetoken: *mut u8) -> ::windows::core::HRESULT, pub CancelCaptureToken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulcapturetokenlen: u32, pbcapturetoken: *const u8) -> ::windows::core::HRESULT, pub SetPidProtection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulpid: u32, uuidkey: *const ::windows::core::GUID) -> ::windows::core::HRESULT, pub GetPidProtection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulpid: u32, uuidkey: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, @@ -15406,19 +14835,12 @@ impl IChannelIDTuneRequest { { (::windows::core::Interface::vtable(self).base__.SetLocator)(::windows::core::Interface::as_raw(self), locator.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ChannelID(&self) -> ::windows::core::Result { + pub unsafe fn ChannelID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ChannelID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ChannelID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetChannelID<'a, P0>(&self, channelid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetChannelID)(::windows::core::Interface::as_raw(self), channelid.into().abi()).ok() + pub unsafe fn SetChannelID(&self, channelid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetChannelID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(channelid)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -15505,14 +14927,8 @@ unsafe impl ::windows::core::Interface for IChannelIDTuneRequest { #[doc(hidden)] pub struct IChannelIDTuneRequest_Vtbl { pub base__: ITuneRequest_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub ChannelID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, channelid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ChannelID: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetChannelID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, channelid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetChannelID: usize, + pub ChannelID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, channelid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetChannelID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, channelid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -15681,19 +15097,12 @@ impl IComponent { pub unsafe fn SetStatus(&self, status: ComponentStatus) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetStatus)(::windows::core::Interface::as_raw(self), status).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, description: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), description.into().abi()).ok() + pub unsafe fn SetDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(description)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -15780,14 +15189,8 @@ pub struct IComponent_Vtbl { pub SetDescLangID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, langid: i32) -> ::windows::core::HRESULT, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, status: *mut ComponentStatus) -> ::windows::core::HRESULT, pub SetStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, status: ComponentStatus) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDescription: usize, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newcomponent: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -15806,19 +15209,12 @@ impl IComponentType { pub unsafe fn SetCategory(&self, category: ComponentCategory) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetCategory)(::windows::core::Interface::as_raw(self), category).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MediaMajorType(&self) -> ::windows::core::Result { + pub unsafe fn MediaMajorType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).MediaMajorType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).MediaMajorType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMediaMajorType<'a, P0>(&self, mediamajortype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetMediaMajorType)(::windows::core::Interface::as_raw(self), mediamajortype.into().abi()).ok() + pub unsafe fn SetMediaMajorType(&self, mediamajortype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetMediaMajorType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mediamajortype)).ok() } pub unsafe fn _MediaMajorType(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -15827,19 +15223,12 @@ impl IComponentType { pub unsafe fn Set_MediaMajorType(&self, mediamajortypeguid: &::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Set_MediaMajorType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(mediamajortypeguid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MediaSubType(&self) -> ::windows::core::Result { + pub unsafe fn MediaSubType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).MediaSubType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).MediaSubType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMediaSubType<'a, P0>(&self, mediasubtype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetMediaSubType)(::windows::core::Interface::as_raw(self), mediasubtype.into().abi()).ok() + pub unsafe fn SetMediaSubType(&self, mediasubtype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetMediaSubType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mediasubtype)).ok() } pub unsafe fn _MediaSubType(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -15848,19 +15237,12 @@ impl IComponentType { pub unsafe fn Set_MediaSubType(&self, mediasubtypeguid: &::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Set_MediaSubType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(mediasubtypeguid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MediaFormatType(&self) -> ::windows::core::Result { + pub unsafe fn MediaFormatType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).MediaFormatType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).MediaFormatType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMediaFormatType<'a, P0>(&self, mediaformattype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetMediaFormatType)(::windows::core::Interface::as_raw(self), mediaformattype.into().abi()).ok() + pub unsafe fn SetMediaFormatType(&self, mediaformattype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetMediaFormatType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mediaformattype)).ok() } pub unsafe fn _MediaFormatType(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -15955,34 +15337,16 @@ pub struct IComponentType_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub Category: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, category: *mut ComponentCategory) -> ::windows::core::HRESULT, pub SetCategory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, category: ComponentCategory) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub MediaMajorType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mediamajortype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MediaMajorType: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetMediaMajorType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mediamajortype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetMediaMajorType: usize, + pub MediaMajorType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mediamajortype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetMediaMajorType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mediamajortype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub _MediaMajorType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mediamajortypeguid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, pub Set_MediaMajorType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mediamajortypeguid: *const ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub MediaSubType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mediasubtype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MediaSubType: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetMediaSubType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mediasubtype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetMediaSubType: usize, + pub MediaSubType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mediasubtype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetMediaSubType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mediasubtype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub _MediaSubType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mediasubtypeguid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, pub Set_MediaSubType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mediasubtypeguid: *const ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub MediaFormatType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mediaformattype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MediaFormatType: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetMediaFormatType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mediaformattype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetMediaFormatType: usize, + pub MediaFormatType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mediaformattype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetMediaFormatType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mediaformattype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub _MediaFormatType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mediaformattypeguid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, pub Set_MediaFormatType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mediaformattypeguid: *const ::windows::core::GUID) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Media_MediaFoundation"))] @@ -17161,14 +16525,10 @@ pub struct IDMOWrapperFilter_Vtbl { #[repr(transparent)] pub struct IDShowPlugin(::windows::core::IUnknown); impl IDShowPlugin { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn URL(&self, purl: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn URL(&self, purl: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).URL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(purl)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserAgent(&self, puseragent: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn UserAgent(&self, puseragent: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).UserAgent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(puseragent)).ok() } } @@ -17211,14 +16571,8 @@ unsafe impl ::windows::core::Interface for IDShowPlugin { #[doc(hidden)] pub struct IDShowPlugin_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub URL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, purl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - URL: usize, - #[cfg(feature = "Win32_Foundation")] - pub UserAgent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puseragent: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UserAgent: usize, + pub URL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, purl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub UserAgent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puseragent: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] #[repr(transparent)] @@ -17353,11 +16707,9 @@ impl IDTFilter2 { pub unsafe fn SetBlockUnRatedDelay(&self, msecsdelaybeforeblock: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetBlockUnRatedDelay)(::windows::core::Interface::as_raw(self), msecsdelaybeforeblock).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ChallengeUrl(&self) -> ::windows::core::Result { + pub unsafe fn ChallengeUrl(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ChallengeUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ChallengeUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetCurrLicenseExpDate(&self, prottype: &ProtType) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -17421,10 +16773,7 @@ unsafe impl ::windows::core::Interface for IDTFilter2 { #[doc(hidden)] pub struct IDTFilter2_Vtbl { pub base__: IDTFilter_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub ChallengeUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrchallengeurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ChallengeUrl: usize, + pub ChallengeUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrchallengeurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetCurrLicenseExpDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prottype: *const ProtType, lpdatetime: *mut i32) -> ::windows::core::HRESULT, pub GetLastErrorCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } @@ -17467,11 +16816,9 @@ impl IDTFilter3 { pub unsafe fn SetBlockUnRatedDelay(&self, msecsdelaybeforeblock: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.SetBlockUnRatedDelay)(::windows::core::Interface::as_raw(self), msecsdelaybeforeblock).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ChallengeUrl(&self) -> ::windows::core::Result { + pub unsafe fn ChallengeUrl(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ChallengeUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ChallengeUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetCurrLicenseExpDate(&self, prottype: &ProtType) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -17490,13 +16837,8 @@ impl IDTFilter3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).LicenseHasExpirationDate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRights<'a, P0>(&self, bstrrights: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetRights)(::windows::core::Interface::as_raw(self), bstrrights.into().abi()).ok() + pub unsafe fn SetRights(&self, bstrrights: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetRights)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrights)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -17573,10 +16915,7 @@ pub struct IDTFilter3_Vtbl { pub LicenseHasExpirationDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pflicensehasexpirationdate: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] LicenseHasExpirationDate: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetRights: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrights: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetRights: usize, + pub SetRights: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrights: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] #[repr(transparent)] @@ -18412,53 +17751,30 @@ pub struct IDVBSLocator2_Vtbl { pub struct IDVBSTuningSpace(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IDVBSTuningSpace { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UniqueName(&self) -> ::windows::core::Result { + pub unsafe fn UniqueName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.UniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.UniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetUniqueName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.SetUniqueName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetUniqueName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.SetUniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FriendlyName(&self) -> ::windows::core::Result { + pub unsafe fn FriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFriendlyName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.SetFriendlyName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetFriendlyName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.SetFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CLSID(&self) -> ::windows::core::Result { + pub unsafe fn CLSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.CLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.CLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NetworkType(&self) -> ::windows::core::Result { + pub unsafe fn NetworkType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.NetworkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.NetworkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetNetworkType<'a, P0>(&self, networktypeguid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.SetNetworkType)(::windows::core::Interface::as_raw(self), networktypeguid.into().abi()).ok() + pub unsafe fn SetNetworkType(&self, networktypeguid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.SetNetworkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(networktypeguid)).ok() } pub unsafe fn _NetworkType(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -18499,19 +17815,12 @@ impl IDVBSTuningSpace { { (::windows::core::Interface::vtable(self).base__.base__.base__.SetDefaultPreferredComponentTypes)(::windows::core::Interface::as_raw(self), newcomponenttypes.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FrequencyMapping(&self) -> ::windows::core::Result { + pub unsafe fn FrequencyMapping(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.FrequencyMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.FrequencyMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFrequencyMapping<'a, P0>(&self, mapping: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.SetFrequencyMapping)(::windows::core::Interface::as_raw(self), mapping.into().abi()).ok() + pub unsafe fn SetFrequencyMapping(&self, mapping: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.SetFrequencyMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mapping)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -18568,19 +17877,12 @@ impl IDVBSTuningSpace { pub unsafe fn SetLNBSwitch(&self, lnbswitch: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetLNBSwitch)(::windows::core::Interface::as_raw(self), lnbswitch).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InputRange(&self) -> ::windows::core::Result { + pub unsafe fn InputRange(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).InputRange)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).InputRange)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetInputRange<'a, P0>(&self, inputrange: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetInputRange)(::windows::core::Interface::as_raw(self), inputrange.into().abi()).ok() + pub unsafe fn SetInputRange(&self, inputrange: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetInputRange)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(inputrange)).ok() } pub unsafe fn SpectralInversion(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -18716,14 +18018,8 @@ pub struct IDVBSTuningSpace_Vtbl { pub SetHighOscillator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, highoscillator: i32) -> ::windows::core::HRESULT, pub LNBSwitch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnbswitch: *mut i32) -> ::windows::core::HRESULT, pub SetLNBSwitch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnbswitch: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub InputRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, inputrange: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InputRange: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetInputRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, inputrange: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetInputRange: usize, + pub InputRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, inputrange: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetInputRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, inputrange: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SpectralInversion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, spectralinversionval: *mut SpectralInversion) -> ::windows::core::HRESULT, pub SetSpectralInversion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, spectralinversionval: SpectralInversion) -> ::windows::core::HRESULT, } @@ -19353,53 +18649,30 @@ pub struct IDVBTuneRequest_Vtbl { pub struct IDVBTuningSpace(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IDVBTuningSpace { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UniqueName(&self) -> ::windows::core::Result { + pub unsafe fn UniqueName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.UniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.UniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetUniqueName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetUniqueName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetUniqueName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetUniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FriendlyName(&self) -> ::windows::core::Result { + pub unsafe fn FriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFriendlyName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetFriendlyName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetFriendlyName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CLSID(&self) -> ::windows::core::Result { + pub unsafe fn CLSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NetworkType(&self) -> ::windows::core::Result { + pub unsafe fn NetworkType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.NetworkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.NetworkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetNetworkType<'a, P0>(&self, networktypeguid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetNetworkType)(::windows::core::Interface::as_raw(self), networktypeguid.into().abi()).ok() + pub unsafe fn SetNetworkType(&self, networktypeguid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetNetworkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(networktypeguid)).ok() } pub unsafe fn _NetworkType(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -19440,19 +18713,12 @@ impl IDVBTuningSpace { { (::windows::core::Interface::vtable(self).base__.SetDefaultPreferredComponentTypes)(::windows::core::Interface::as_raw(self), newcomponenttypes.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FrequencyMapping(&self) -> ::windows::core::Result { + pub unsafe fn FrequencyMapping(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FrequencyMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.FrequencyMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFrequencyMapping<'a, P0>(&self, mapping: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetFrequencyMapping)(::windows::core::Interface::as_raw(self), mapping.into().abi()).ok() + pub unsafe fn SetFrequencyMapping(&self, mapping: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetFrequencyMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mapping)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -19575,53 +18841,30 @@ pub struct IDVBTuningSpace_Vtbl { pub struct IDVBTuningSpace2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IDVBTuningSpace2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UniqueName(&self) -> ::windows::core::Result { + pub unsafe fn UniqueName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.UniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.UniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetUniqueName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetUniqueName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetUniqueName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetUniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FriendlyName(&self) -> ::windows::core::Result { + pub unsafe fn FriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFriendlyName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetFriendlyName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetFriendlyName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CLSID(&self) -> ::windows::core::Result { + pub unsafe fn CLSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NetworkType(&self) -> ::windows::core::Result { + pub unsafe fn NetworkType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.NetworkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.NetworkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetNetworkType<'a, P0>(&self, networktypeguid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetNetworkType)(::windows::core::Interface::as_raw(self), networktypeguid.into().abi()).ok() + pub unsafe fn SetNetworkType(&self, networktypeguid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetNetworkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(networktypeguid)).ok() } pub unsafe fn _NetworkType(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -19662,19 +18905,12 @@ impl IDVBTuningSpace2 { { (::windows::core::Interface::vtable(self).base__.base__.SetDefaultPreferredComponentTypes)(::windows::core::Interface::as_raw(self), newcomponenttypes.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FrequencyMapping(&self) -> ::windows::core::Result { + pub unsafe fn FrequencyMapping(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.FrequencyMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.FrequencyMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFrequencyMapping<'a, P0>(&self, mapping: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetFrequencyMapping)(::windows::core::Interface::as_raw(self), mapping.into().abi()).ok() + pub unsafe fn SetFrequencyMapping(&self, mapping: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetFrequencyMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mapping)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -21760,53 +20996,30 @@ pub struct IDigitalCableTuneRequest_Vtbl { pub struct IDigitalCableTuningSpace(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IDigitalCableTuningSpace { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UniqueName(&self) -> ::windows::core::Result { + pub unsafe fn UniqueName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.UniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.UniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetUniqueName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.SetUniqueName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetUniqueName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.SetUniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FriendlyName(&self) -> ::windows::core::Result { + pub unsafe fn FriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFriendlyName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.SetFriendlyName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetFriendlyName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.SetFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CLSID(&self) -> ::windows::core::Result { + pub unsafe fn CLSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.CLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.CLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NetworkType(&self) -> ::windows::core::Result { + pub unsafe fn NetworkType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.NetworkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.NetworkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetNetworkType<'a, P0>(&self, networktypeguid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.SetNetworkType)(::windows::core::Interface::as_raw(self), networktypeguid.into().abi()).ok() + pub unsafe fn SetNetworkType(&self, networktypeguid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.SetNetworkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(networktypeguid)).ok() } pub unsafe fn _NetworkType(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -21847,19 +21060,12 @@ impl IDigitalCableTuningSpace { { (::windows::core::Interface::vtable(self).base__.base__.base__.SetDefaultPreferredComponentTypes)(::windows::core::Interface::as_raw(self), newcomponenttypes.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FrequencyMapping(&self) -> ::windows::core::Result { + pub unsafe fn FrequencyMapping(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.FrequencyMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.FrequencyMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFrequencyMapping<'a, P0>(&self, mapping: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.SetFrequencyMapping)(::windows::core::Interface::as_raw(self), mapping.into().abi()).ok() + pub unsafe fn SetFrequencyMapping(&self, mapping: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.SetFrequencyMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mapping)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -22986,11 +22192,9 @@ impl IDvbComponentDescriptor { pub unsafe fn GetLanguageCode(&self, pszcode: &mut [u8; 4]) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetLanguageCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pszcode.as_ptr())).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetTextW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result { + pub unsafe fn GetTextW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetTextW)(::windows::core::Interface::as_raw(self), convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetTextW)(::windows::core::Interface::as_raw(self), convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -23038,10 +22242,7 @@ pub struct IDvbComponentDescriptor_Vtbl { pub GetComponentType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT, pub GetComponentTag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT, pub GetLanguageCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszcode: *mut u8) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetTextW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetTextW: usize, + pub GetTextW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] #[repr(transparent)] @@ -23413,33 +22614,25 @@ impl IDvbExtendedEventDescriptor { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetCountOfRecords)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetRecordItemW(&self, brecordindex: u8, convmode: DVB_STRCONV_MODE, pbstrdesc: &mut super::super::Foundation::BSTR, pbstritem: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetRecordItemW(&self, brecordindex: u8, convmode: DVB_STRCONV_MODE, pbstrdesc: &mut ::windows::core::BSTR, pbstritem: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetRecordItemW)(::windows::core::Interface::as_raw(self), brecordindex, convmode, ::core::mem::transmute(pbstrdesc), ::core::mem::transmute(pbstritem)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetConcatenatedItemW<'a, P0>(&self, pfollowingdescriptor: P0, convmode: DVB_STRCONV_MODE, pbstrdesc: &mut super::super::Foundation::BSTR, pbstritem: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> + pub unsafe fn GetConcatenatedItemW<'a, P0>(&self, pfollowingdescriptor: P0, convmode: DVB_STRCONV_MODE, pbstrdesc: &mut ::windows::core::BSTR, pbstritem: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IDvbExtendedEventDescriptor>>, { (::windows::core::Interface::vtable(self).GetConcatenatedItemW)(::windows::core::Interface::as_raw(self), pfollowingdescriptor.into().abi(), convmode, ::core::mem::transmute(pbstrdesc), ::core::mem::transmute(pbstritem)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetTextW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result { + pub unsafe fn GetTextW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetTextW)(::windows::core::Interface::as_raw(self), convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetTextW)(::windows::core::Interface::as_raw(self), convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetConcatenatedTextW<'a, P0>(&self, followingdescriptor: P0, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result + pub unsafe fn GetConcatenatedTextW<'a, P0>(&self, followingdescriptor: P0, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, IDvbExtendedEventDescriptor>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetConcatenatedTextW)(::windows::core::Interface::as_raw(self), followingdescriptor.into().abi(), convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetConcatenatedTextW)(::windows::core::Interface::as_raw(self), followingdescriptor.into().abi(), convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetRecordItemRawBytes(&self, brecordindex: u8, ppbrawitem: &mut *mut u8, pbitemlength: &mut u8) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetRecordItemRawBytes)(::windows::core::Interface::as_raw(self), brecordindex, ::core::mem::transmute(ppbrawitem), ::core::mem::transmute(pbitemlength)).ok() @@ -23490,22 +22683,10 @@ pub struct IDvbExtendedEventDescriptor_Vtbl { pub GetLastDescriptorNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT, pub GetLanguageCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszcode: *mut u8) -> ::windows::core::HRESULT, pub GetCountOfRecords: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetRecordItemW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, convmode: DVB_STRCONV_MODE, pbstrdesc: *mut super::super::Foundation::BSTR, pbstritem: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetRecordItemW: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetConcatenatedItemW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfollowingdescriptor: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrdesc: *mut super::super::Foundation::BSTR, pbstritem: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetConcatenatedItemW: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetTextW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetTextW: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetConcatenatedTextW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, followingdescriptor: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetConcatenatedTextW: usize, + pub GetRecordItemW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, convmode: DVB_STRCONV_MODE, pbstrdesc: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstritem: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetConcatenatedItemW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfollowingdescriptor: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrdesc: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstritem: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetTextW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetConcatenatedTextW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, followingdescriptor: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetRecordItemRawBytes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, ppbrawitem: *mut *mut u8, pbitemlength: *mut u8) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] @@ -23797,11 +22978,9 @@ impl IDvbLogicalChannel2Descriptor { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetListId)(::windows::core::Interface::as_raw(self), blistindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetListNameW(&self, blistindex: u8, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result { + pub unsafe fn GetListNameW(&self, blistindex: u8, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetListNameW)(::windows::core::Interface::as_raw(self), blistindex, convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetListNameW)(::windows::core::Interface::as_raw(self), blistindex, convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetListCountryCode(&self, blistindex: u8, pszcode: &mut [u8; 4]) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetListCountryCode)(::windows::core::Interface::as_raw(self), blistindex, ::core::mem::transmute(pszcode.as_ptr())).ok() @@ -23894,10 +23073,7 @@ pub struct IDvbLogicalChannel2Descriptor_Vtbl { pub base__: IDvbLogicalChannelDescriptor2_Vtbl, pub GetCountOfLists: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT, pub GetListId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, blistindex: u8, pbval: *mut u8) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetListNameW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, blistindex: u8, convmode: DVB_STRCONV_MODE, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetListNameW: usize, + pub GetListNameW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, blistindex: u8, convmode: DVB_STRCONV_MODE, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetListCountryCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, blistindex: u8, pszcode: *mut u8) -> ::windows::core::HRESULT, pub GetListCountOfRecords: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bchannellistindex: u8, pbval: *mut u8) -> ::windows::core::HRESULT, pub GetListRecordServiceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, blistindex: u8, brecordindex: u8, pwval: *mut u16) -> ::windows::core::HRESULT, @@ -24079,17 +23255,13 @@ impl IDvbMultilingualServiceNameDescriptor { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetRecordLangId)(::windows::core::Interface::as_raw(self), brecordindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetRecordServiceProviderNameW(&self, brecordindex: u8, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result { + pub unsafe fn GetRecordServiceProviderNameW(&self, brecordindex: u8, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetRecordServiceProviderNameW)(::windows::core::Interface::as_raw(self), brecordindex, convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetRecordServiceProviderNameW)(::windows::core::Interface::as_raw(self), brecordindex, convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetRecordServiceNameW(&self, brecordindex: u8, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result { + pub unsafe fn GetRecordServiceNameW(&self, brecordindex: u8, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetRecordServiceNameW)(::windows::core::Interface::as_raw(self), brecordindex, convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetRecordServiceNameW)(::windows::core::Interface::as_raw(self), brecordindex, convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -24135,14 +23307,8 @@ pub struct IDvbMultilingualServiceNameDescriptor_Vtbl { pub GetLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT, pub GetCountOfRecords: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT, pub GetRecordLangId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, ulval: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetRecordServiceProviderNameW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, convmode: DVB_STRCONV_MODE, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetRecordServiceProviderNameW: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetRecordServiceNameW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, convmode: DVB_STRCONV_MODE, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetRecordServiceNameW: usize, + pub GetRecordServiceProviderNameW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, convmode: DVB_STRCONV_MODE, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetRecordServiceNameW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, convmode: DVB_STRCONV_MODE, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] #[repr(transparent)] @@ -24160,11 +23326,9 @@ impl IDvbNetworkNameDescriptor { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetNetworkName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut u8>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetNetworkNameW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result { + pub unsafe fn GetNetworkNameW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetNetworkNameW)(::windows::core::Interface::as_raw(self), convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetNetworkNameW)(::windows::core::Interface::as_raw(self), convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -24209,10 +23373,7 @@ pub struct IDvbNetworkNameDescriptor_Vtbl { pub GetTag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT, pub GetLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT, pub GetNetworkName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszname: *mut *mut u8) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetNetworkNameW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetNetworkNameW: usize, + pub GetNetworkNameW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] #[repr(transparent)] @@ -24533,27 +23694,21 @@ impl IDvbServiceDescriptor { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetServiceProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut u8>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetServiceProviderNameW(&self) -> ::windows::core::Result { + pub unsafe fn GetServiceProviderNameW(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetServiceProviderNameW)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetServiceProviderNameW)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetServiceName(&self) -> ::windows::core::Result<*mut u8> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetServiceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut u8>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetProcessedServiceName(&self) -> ::windows::core::Result { + pub unsafe fn GetProcessedServiceName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetProcessedServiceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetProcessedServiceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetServiceNameEmphasized(&self) -> ::windows::core::Result { + pub unsafe fn GetServiceNameEmphasized(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetServiceNameEmphasized)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetServiceNameEmphasized)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -24599,19 +23754,10 @@ pub struct IDvbServiceDescriptor_Vtbl { pub GetLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT, pub GetServiceType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT, pub GetServiceProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszname: *mut *mut u8) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetServiceProviderNameW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetServiceProviderNameW: usize, + pub GetServiceProviderNameW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetServiceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszname: *mut *mut u8) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetProcessedServiceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetProcessedServiceName: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetServiceNameEmphasized: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetServiceNameEmphasized: usize, + pub GetProcessedServiceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetServiceNameEmphasized: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] #[repr(transparent)] @@ -24633,39 +23779,29 @@ impl IDvbServiceDescriptor2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetServiceProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut u8>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetServiceProviderNameW(&self) -> ::windows::core::Result { + pub unsafe fn GetServiceProviderNameW(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetServiceProviderNameW)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetServiceProviderNameW)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetServiceName(&self) -> ::windows::core::Result<*mut u8> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetServiceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut u8>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetProcessedServiceName(&self) -> ::windows::core::Result { + pub unsafe fn GetProcessedServiceName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetProcessedServiceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetProcessedServiceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetServiceNameEmphasized(&self) -> ::windows::core::Result { + pub unsafe fn GetServiceNameEmphasized(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetServiceNameEmphasized)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetServiceNameEmphasized)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetServiceProviderNameW2(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result { + pub unsafe fn GetServiceProviderNameW2(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetServiceProviderNameW2)(::windows::core::Interface::as_raw(self), convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetServiceProviderNameW2)(::windows::core::Interface::as_raw(self), convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetServiceNameW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result { + pub unsafe fn GetServiceNameW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetServiceNameW)(::windows::core::Interface::as_raw(self), convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetServiceNameW)(::windows::core::Interface::as_raw(self), convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -24722,14 +23858,8 @@ unsafe impl ::windows::core::Interface for IDvbServiceDescriptor2 { #[doc(hidden)] pub struct IDvbServiceDescriptor2_Vtbl { pub base__: IDvbServiceDescriptor_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetServiceProviderNameW2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetServiceProviderNameW2: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetServiceNameW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetServiceNameW: usize, + pub GetServiceProviderNameW2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetServiceNameW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] #[repr(transparent)] @@ -24816,17 +23946,13 @@ impl IDvbShortEventDescriptor { pub unsafe fn GetLanguageCode(&self, pszcode: &mut [u8; 4]) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetLanguageCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pszcode.as_ptr())).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetEventNameW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result { + pub unsafe fn GetEventNameW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetEventNameW)(::windows::core::Interface::as_raw(self), convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetEventNameW)(::windows::core::Interface::as_raw(self), convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetTextW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result { + pub unsafe fn GetTextW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetTextW)(::windows::core::Interface::as_raw(self), convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetTextW)(::windows::core::Interface::as_raw(self), convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -24871,14 +23997,8 @@ pub struct IDvbShortEventDescriptor_Vtbl { pub GetTag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT, pub GetLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT, pub GetLanguageCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszcode: *mut u8) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetEventNameW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetEventNameW: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetTextW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetTextW: usize, + pub GetEventNameW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetTextW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] #[repr(transparent)] @@ -26606,11 +25726,9 @@ impl IESCloseMmiEvent { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut super::super::System::Com::SAFEARRAY>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetStringData(&self) -> ::windows::core::Result { + pub unsafe fn GetStringData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetStringData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetStringData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetDialogNumber(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -26694,11 +25812,9 @@ impl IESEvent { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut super::super::System::Com::SAFEARRAY>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetStringData(&self) -> ::windows::core::Result { + pub unsafe fn GetStringData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetStringData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetStringData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -26747,25 +25863,19 @@ pub struct IESEvent_Vtbl { pub GetData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbdata: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetData: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetStringData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetStringData: usize, + pub GetStringData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] #[repr(transparent)] pub struct IESEventFactory(::windows::core::IUnknown); impl IESEventFactory { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateESEvent<'a, P0, P1, P2>(&self, pserviceprovider: P0, dweventid: u32, guideventtype: ::windows::core::GUID, peventdata: &[u8], bstrbaseurl: P1, pinitcontext: P2) -> ::windows::core::Result + pub unsafe fn CreateESEvent<'a, P0, P1>(&self, pserviceprovider: P0, dweventid: u32, guideventtype: ::windows::core::GUID, peventdata: &[u8], bstrbaseurl: &::windows::core::BSTR, pinitcontext: P1) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateESEvent)(::windows::core::Interface::as_raw(self), pserviceprovider.into().abi(), dweventid, ::core::mem::transmute(guideventtype), peventdata.len() as _, ::core::mem::transmute(peventdata.as_ptr()), bstrbaseurl.into().abi(), pinitcontext.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateESEvent)(::windows::core::Interface::as_raw(self), pserviceprovider.into().abi(), dweventid, ::core::mem::transmute(guideventtype), peventdata.len() as _, ::core::mem::transmute(peventdata.as_ptr()), ::core::mem::transmute_copy(bstrbaseurl), pinitcontext.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -26807,10 +25917,7 @@ unsafe impl ::windows::core::Interface for IESEventFactory { #[doc(hidden)] pub struct IESEventFactory_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub CreateESEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pserviceprovider: *mut ::core::ffi::c_void, dweventid: u32, guideventtype: ::windows::core::GUID, dweventdatalength: u32, peventdata: *const u8, bstrbaseurl: ::core::mem::ManuallyDrop, pinitcontext: *mut ::core::ffi::c_void, ppesevent: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CreateESEvent: usize, + pub CreateESEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pserviceprovider: *mut ::core::ffi::c_void, dweventid: u32, guideventtype: ::windows::core::GUID, dweventdatalength: u32, peventdata: *const u8, bstrbaseurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pinitcontext: *mut ::core::ffi::c_void, ppesevent: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] #[repr(transparent)] @@ -27018,11 +26125,9 @@ impl IESFileExpiryDateEvent { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut super::super::System::Com::SAFEARRAY>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetStringData(&self) -> ::windows::core::Result { + pub unsafe fn GetStringData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetStringData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetStringData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetTunerId(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -27141,11 +26246,9 @@ impl IESIsdbCasResponseEvent { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut super::super::System::Com::SAFEARRAY>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetStringData(&self) -> ::windows::core::Result { + pub unsafe fn GetStringData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetStringData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetStringData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetRequestId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -27249,21 +26352,17 @@ impl IESLicenseRenewalResultEvent { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut super::super::System::Com::SAFEARRAY>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetStringData(&self) -> ::windows::core::Result { + pub unsafe fn GetStringData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetStringData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetStringData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetCallersId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetCallersId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetFileName(&self) -> ::windows::core::Result { + pub unsafe fn GetFileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -27363,10 +26462,7 @@ unsafe impl ::windows::core::Interface for IESLicenseRenewalResultEvent { pub struct IESLicenseRenewalResultEvent_Vtbl { pub base__: IESEvent_Vtbl, pub GetCallersId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwcallersid: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfilename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetFileName: usize, + pub GetFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfilename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub IsRenewalSuccessful: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfrenewalsuccessful: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -27407,11 +26503,9 @@ impl IESOpenMmiEvent { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut super::super::System::Com::SAFEARRAY>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetStringData(&self) -> ::windows::core::Result { + pub unsafe fn GetStringData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetStringData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetStringData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetDialogNumber(&self, pdialogrequest: &mut u32, pdialognumber: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetDialogNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdialogrequest), ::core::mem::transmute(pdialognumber)).ok() @@ -27426,9 +26520,7 @@ impl IESOpenMmiEvent { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetDialogData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut super::super::System::Com::SAFEARRAY>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDialogStringData(&self, pbstrbaseurl: &mut super::super::Foundation::BSTR, pbstrdata: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetDialogStringData(&self, pbstrbaseurl: &mut ::windows::core::BSTR, pbstrdata: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetDialogStringData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrbaseurl), ::core::mem::transmute(pbstrdata)).ok() } } @@ -27492,10 +26584,7 @@ pub struct IESOpenMmiEvent_Vtbl { pub GetDialogData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbdata: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetDialogData: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetDialogStringData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbaseurl: *mut super::super::Foundation::BSTR, pbstrdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDialogStringData: usize, + pub GetDialogStringData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbaseurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] #[repr(transparent)] @@ -27518,11 +26607,9 @@ impl IESRequestTunerEvent { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut super::super::System::Com::SAFEARRAY>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetStringData(&self) -> ::windows::core::Result { + pub unsafe fn GetStringData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetStringData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetStringData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetPriority(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -27621,11 +26708,9 @@ impl IESValueUpdatedEvent { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut super::super::System::Com::SAFEARRAY>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetStringData(&self) -> ::windows::core::Result { + pub unsafe fn GetStringData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetStringData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetStringData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -29809,26 +28894,19 @@ pub struct IFilterGraph3_Vtbl { pub struct IFilterInfo(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IFilterInfo { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn FindPin<'a, P0>(&self, strpinid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn FindPin(&self, strpinid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FindPin)(::windows::core::Interface::as_raw(self), strpinid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FindPin)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strpinid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn VendorInfo(&self) -> ::windows::core::Result { + pub unsafe fn VendorInfo(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).VendorInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).VendorInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Filter(&self) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -29844,19 +28922,12 @@ impl IFilterInfo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).IsFileSource)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Filename(&self) -> ::windows::core::Result { + pub unsafe fn Filename(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Filename)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Filename)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFilename<'a, P0>(&self, strfilename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetFilename)(::windows::core::Interface::as_raw(self), strfilename.into().abi()).ok() + pub unsafe fn SetFilename(&self, strfilename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetFilename)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strfilename)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -29925,32 +28996,20 @@ unsafe impl ::windows::core::Interface for IFilterInfo { #[doc(hidden)] pub struct IFilterInfo_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub FindPin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpinid: ::core::mem::ManuallyDrop, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub FindPin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpinid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] FindPin: usize, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub VendorInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strvendorinfo: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - VendorInfo: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub VendorInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strvendorinfo: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Filter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Pins: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Pins: usize, pub IsFileSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbissource: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Filename: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrfilename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Filename: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetFilename: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strfilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetFilename: usize, + pub Filename: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrfilename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetFilename: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] #[repr(transparent)] @@ -30377,19 +29436,12 @@ impl IFullScreenVideo { pub unsafe fn IsHideOnDeactivate(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).IsHideOnDeactivate)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCaption<'a, P0>(&self, strcaption: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetCaption)(::windows::core::Interface::as_raw(self), strcaption.into().abi()).ok() + pub unsafe fn SetCaption(&self, strcaption: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetCaption)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strcaption)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCaption(&self) -> ::windows::core::Result { + pub unsafe fn GetCaption(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetCaption)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetCaption)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetDefault(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetDefault)(::windows::core::Interface::as_raw(self)).ok() @@ -30454,14 +29506,8 @@ pub struct IFullScreenVideo_Vtbl { pub GetMonitor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, monitor: *mut i32) -> ::windows::core::HRESULT, pub HideOnDeactivate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hide: i32) -> ::windows::core::HRESULT, pub IsHideOnDeactivate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetCaption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strcaption: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetCaption: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetCaption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrcaption: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetCaption: usize, + pub SetCaption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strcaption: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetCaption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrcaption: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] @@ -30522,19 +29568,12 @@ impl IFullScreenVideoEx { pub unsafe fn IsHideOnDeactivate(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.IsHideOnDeactivate)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCaption<'a, P0>(&self, strcaption: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetCaption)(::windows::core::Interface::as_raw(self), strcaption.into().abi()).ok() + pub unsafe fn SetCaption(&self, strcaption: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetCaption)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strcaption)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCaption(&self) -> ::windows::core::Result { + pub unsafe fn GetCaption(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetCaption)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetCaption)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetDefault(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetDefault)(::windows::core::Interface::as_raw(self)).ok() @@ -30833,11 +29872,9 @@ pub struct IGetCapabilitiesKey_Vtbl { #[repr(transparent)] pub struct IGpnvsCommonBase(::windows::core::IUnknown); impl IGpnvsCommonBase { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetValueUpdateName(&self) -> ::windows::core::Result { + pub unsafe fn GetValueUpdateName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetValueUpdateName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetValueUpdateName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -30879,10 +29916,7 @@ unsafe impl ::windows::core::Interface for IGpnvsCommonBase { #[doc(hidden)] pub struct IGpnvsCommonBase_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetValueUpdateName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetValueUpdateName: usize, + pub GetValueUpdateName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] #[repr(transparent)] @@ -31592,11 +30626,9 @@ pub struct IGuideDataLoader_Vtbl { #[repr(transparent)] pub struct IGuideDataProperty(::windows::core::IUnknown); impl IGuideDataProperty { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Language(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -31648,10 +30680,7 @@ unsafe impl ::windows::core::Interface for IGuideDataProperty { #[doc(hidden)] pub struct IGuideDataProperty_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Language: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, idlang: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvar: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, @@ -32812,11 +31841,9 @@ impl IIsdbAudioComponentDescriptor { pub unsafe fn GetLanguageCode2(&self, pszcode: &mut [u8; 4]) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetLanguageCode2)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pszcode.as_ptr())).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetTextW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result { + pub unsafe fn GetTextW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetTextW)(::windows::core::Interface::as_raw(self), convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetTextW)(::windows::core::Interface::as_raw(self), convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -32877,10 +31904,7 @@ pub struct IIsdbAudioComponentDescriptor_Vtbl { pub GetSamplingRate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT, pub GetLanguageCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszcode: *mut u8) -> ::windows::core::HRESULT, pub GetLanguageCode2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszcode: *mut u8) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetTextW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetTextW: usize, + pub GetTextW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] #[repr(transparent)] @@ -32918,11 +31942,9 @@ impl IIsdbCAContractInformationDescriptor { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetContractVerificationInfo)(::windows::core::Interface::as_raw(self), bbuflength, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetFeeNameW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result { + pub unsafe fn GetFeeNameW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetFeeNameW)(::windows::core::Interface::as_raw(self), convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetFeeNameW)(::windows::core::Interface::as_raw(self), convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -32972,10 +31994,7 @@ pub struct IIsdbCAContractInformationDescriptor_Vtbl { pub GetRecordComponentTag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> ::windows::core::HRESULT, pub GetContractVerificationInfoLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT, pub GetContractVerificationInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bbuflength: u8, pbbuf: *mut u8) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetFeeNameW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetFeeNameW: usize, + pub GetFeeNameW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] #[repr(transparent)] @@ -33169,11 +32188,9 @@ impl IIsdbComponentGroupDescriptor { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetRecordTotalBitRate)(::windows::core::Interface::as_raw(self), brecordindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetRecordTextW(&self, brecordindex: u8, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result { + pub unsafe fn GetRecordTextW(&self, brecordindex: u8, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetRecordTextW)(::windows::core::Interface::as_raw(self), brecordindex, convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetRecordTextW)(::windows::core::Interface::as_raw(self), brecordindex, convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -33225,10 +32242,7 @@ pub struct IIsdbComponentGroupDescriptor_Vtbl { pub GetRecordCAUnitNumberOfComponents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, bcaunitindex: u8, pbval: *mut u8) -> ::windows::core::HRESULT, pub GetRecordCAUnitComponentTag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, bcaunitindex: u8, bcomponentindex: u8, pbval: *mut u8) -> ::windows::core::HRESULT, pub GetRecordTotalBitRate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetRecordTextW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, convmode: DVB_STRCONV_MODE, pbstrtext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetRecordTextW: usize, + pub GetRecordTextW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, convmode: DVB_STRCONV_MODE, pbstrtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] #[repr(transparent)] @@ -33269,11 +32283,9 @@ impl IIsdbDataContentDescriptor { pub unsafe fn GetLanguageCode(&self, pszcode: &mut [u8; 4]) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetLanguageCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pszcode.as_ptr())).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetTextW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result { + pub unsafe fn GetTextW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetTextW)(::windows::core::Interface::as_raw(self), convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetTextW)(::windows::core::Interface::as_raw(self), convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -33324,10 +32336,7 @@ pub struct IIsdbDataContentDescriptor_Vtbl { pub GetCountOfRecords: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT, pub GetRecordComponentRef: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> ::windows::core::HRESULT, pub GetLanguageCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszcode: *mut u8) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetTextW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetTextW: usize, + pub GetTextW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] #[repr(transparent)] @@ -33465,11 +32474,9 @@ impl IIsdbDownloadContentDescriptor { pub unsafe fn GetTextLanguageCode(&self, szcode: &mut [u8; 4]) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetTextLanguageCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(szcode.as_ptr())).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetTextW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result { + pub unsafe fn GetTextW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetTextW)(::windows::core::Interface::as_raw(self), convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetTextW)(::windows::core::Interface::as_raw(self), convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -33530,10 +32537,7 @@ pub struct IIsdbDownloadContentDescriptor_Vtbl { pub GetRecordModuleInfoLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wrecordindex: u16, pbval: *mut u8) -> ::windows::core::HRESULT, pub GetRecordModuleInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wrecordindex: u16, ppbdata: *mut *mut u8) -> ::windows::core::HRESULT, pub GetTextLanguageCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szcode: *mut u8) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetTextW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetTextW: usize, + pub GetTextW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] #[repr(transparent)] @@ -33795,11 +32799,9 @@ impl IIsdbLogoTransmissionDescriptor { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetDownloadDataId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetLogoCharW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result { + pub unsafe fn GetLogoCharW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetLogoCharW)(::windows::core::Interface::as_raw(self), convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetLogoCharW)(::windows::core::Interface::as_raw(self), convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -33847,10 +32849,7 @@ pub struct IIsdbLogoTransmissionDescriptor_Vtbl { pub GetLogoId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwval: *mut u16) -> ::windows::core::HRESULT, pub GetLogoVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwval: *mut u16) -> ::windows::core::HRESULT, pub GetDownloadDataId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwval: *mut u16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetLogoCharW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrchar: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetLogoCharW: usize, + pub GetLogoCharW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrchar: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] #[repr(transparent)] @@ -33973,11 +32972,9 @@ impl IIsdbSeriesDescriptor { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetLastEpisodeNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetSeriesNameW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result { + pub unsafe fn GetSeriesNameW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetSeriesNameW)(::windows::core::Interface::as_raw(self), convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetSeriesNameW)(::windows::core::Interface::as_raw(self), convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -34030,10 +33027,7 @@ pub struct IIsdbSeriesDescriptor_Vtbl { GetExpireDate: usize, pub GetEpisodeNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwval: *mut u16) -> ::windows::core::HRESULT, pub GetLastEpisodeNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwval: *mut u16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetSeriesNameW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetSeriesNameW: usize, + pub GetSeriesNameW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] #[repr(transparent)] @@ -34227,11 +33221,9 @@ impl IIsdbTSInformationDescriptor { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetRemoteControlKeyId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetTSNameW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result { + pub unsafe fn GetTSNameW(&self, convmode: DVB_STRCONV_MODE) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetTSNameW)(::windows::core::Interface::as_raw(self), convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetTSNameW)(::windows::core::Interface::as_raw(self), convmode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetCountOfRecords(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -34292,10 +33284,7 @@ pub struct IIsdbTSInformationDescriptor_Vtbl { pub GetTag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT, pub GetLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT, pub GetRemoteControlKeyId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetTSNameW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetTSNameW: usize, + pub GetTSNameW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, convmode: DVB_STRCONV_MODE, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetCountOfRecords: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT, pub GetRecordTransmissionTypeInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> ::windows::core::HRESULT, pub GetRecordNumberOfServices: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, brecordindex: u8, pbval: *mut u8) -> ::windows::core::HRESULT, @@ -34535,19 +33524,12 @@ impl ILanguageComponentType { pub unsafe fn SetCategory(&self, category: ComponentCategory) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetCategory)(::windows::core::Interface::as_raw(self), category).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MediaMajorType(&self) -> ::windows::core::Result { + pub unsafe fn MediaMajorType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.MediaMajorType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.MediaMajorType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMediaMajorType<'a, P0>(&self, mediamajortype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetMediaMajorType)(::windows::core::Interface::as_raw(self), mediamajortype.into().abi()).ok() + pub unsafe fn SetMediaMajorType(&self, mediamajortype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetMediaMajorType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mediamajortype)).ok() } pub unsafe fn _MediaMajorType(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -34556,19 +33538,12 @@ impl ILanguageComponentType { pub unsafe fn Set_MediaMajorType(&self, mediamajortypeguid: &::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Set_MediaMajorType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(mediamajortypeguid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MediaSubType(&self) -> ::windows::core::Result { + pub unsafe fn MediaSubType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.MediaSubType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.MediaSubType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMediaSubType<'a, P0>(&self, mediasubtype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetMediaSubType)(::windows::core::Interface::as_raw(self), mediasubtype.into().abi()).ok() + pub unsafe fn SetMediaSubType(&self, mediasubtype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetMediaSubType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mediasubtype)).ok() } pub unsafe fn _MediaSubType(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -34577,19 +33552,12 @@ impl ILanguageComponentType { pub unsafe fn Set_MediaSubType(&self, mediasubtypeguid: &::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Set_MediaSubType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(mediasubtypeguid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MediaFormatType(&self) -> ::windows::core::Result { + pub unsafe fn MediaFormatType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.MediaFormatType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.MediaFormatType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMediaFormatType<'a, P0>(&self, mediaformattype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetMediaFormatType)(::windows::core::Interface::as_raw(self), mediaformattype.into().abi()).ok() + pub unsafe fn SetMediaFormatType(&self, mediaformattype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetMediaFormatType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mediaformattype)).ok() } pub unsafe fn _MediaFormatType(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -34891,19 +33859,12 @@ impl IMPEG2Component { pub unsafe fn SetStatus(&self, status: ComponentStatus) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetStatus)(::windows::core::Interface::as_raw(self), status).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, description: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), description.into().abi()).ok() + pub unsafe fn SetDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(description)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -35037,19 +33998,12 @@ impl IMPEG2ComponentType { pub unsafe fn SetCategory(&self, category: ComponentCategory) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.SetCategory)(::windows::core::Interface::as_raw(self), category).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MediaMajorType(&self) -> ::windows::core::Result { + pub unsafe fn MediaMajorType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.MediaMajorType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.MediaMajorType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMediaMajorType<'a, P0>(&self, mediamajortype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetMediaMajorType)(::windows::core::Interface::as_raw(self), mediamajortype.into().abi()).ok() + pub unsafe fn SetMediaMajorType(&self, mediamajortype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetMediaMajorType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mediamajortype)).ok() } pub unsafe fn _MediaMajorType(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -35058,19 +34012,12 @@ impl IMPEG2ComponentType { pub unsafe fn Set_MediaMajorType(&self, mediamajortypeguid: &::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.Set_MediaMajorType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(mediamajortypeguid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MediaSubType(&self) -> ::windows::core::Result { + pub unsafe fn MediaSubType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.MediaSubType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.MediaSubType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMediaSubType<'a, P0>(&self, mediasubtype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetMediaSubType)(::windows::core::Interface::as_raw(self), mediasubtype.into().abi()).ok() + pub unsafe fn SetMediaSubType(&self, mediasubtype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetMediaSubType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mediasubtype)).ok() } pub unsafe fn _MediaSubType(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -35079,19 +34026,12 @@ impl IMPEG2ComponentType { pub unsafe fn Set_MediaSubType(&self, mediasubtypeguid: &::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.Set_MediaSubType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(mediasubtypeguid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MediaFormatType(&self) -> ::windows::core::Result { + pub unsafe fn MediaFormatType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.MediaFormatType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.MediaFormatType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMediaFormatType<'a, P0>(&self, mediaformattype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetMediaFormatType)(::windows::core::Interface::as_raw(self), mediaformattype.into().abi()).ok() + pub unsafe fn SetMediaFormatType(&self, mediaformattype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetMediaFormatType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mediaformattype)).ok() } pub unsafe fn _MediaFormatType(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -35705,16 +34645,14 @@ pub struct IMPEG2_TIF_CONTROL_Vtbl { pub struct IMSEventBinder(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSEventBinder { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Bind<'a, P0, P1, P2>(&self, peventobject: P0, eventname: P1, eventhandler: P2) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Bind<'a, P0>(&self, peventobject: P0, eventname: &::windows::core::BSTR, eventhandler: &::windows::core::BSTR) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IDispatch>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Bind)(::windows::core::Interface::as_raw(self), peventobject.into().abi(), eventname.into().abi(), eventhandler.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Bind)(::windows::core::Interface::as_raw(self), peventobject.into().abi(), ::core::mem::transmute_copy(eventname), ::core::mem::transmute_copy(eventhandler), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn Unbind(&self, cancelcookie: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Unbind)(::windows::core::Interface::as_raw(self), cancelcookie).ok() @@ -35786,9 +34724,9 @@ unsafe impl ::windows::core::Interface for IMSEventBinder { #[doc(hidden)] pub struct IMSEventBinder_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Bind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, peventobject: *mut ::core::ffi::c_void, eventname: ::core::mem::ManuallyDrop, eventhandler: ::core::mem::ManuallyDrop, cancelid: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub Bind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, peventobject: *mut ::core::ffi::c_void, eventname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, eventhandler: ::core::mem::ManuallyDrop<::windows::core::BSTR>, cancelid: *mut i32) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Bind: usize, pub Unbind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cancelcookie: u32) -> ::windows::core::HRESULT, } @@ -35798,11 +34736,9 @@ pub struct IMSEventBinder_Vtbl { pub struct IMSVidAnalogTuner(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSVidAnalogTuner { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Status(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -35815,17 +34751,13 @@ impl IMSVidAnalogTuner { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Power)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Category(&self) -> ::windows::core::Result { + pub unsafe fn Category(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassID(&self) -> ::windows::core::Result { + pub unsafe fn ClassID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn _Category(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -36070,11 +35002,9 @@ pub struct IMSVidAnalogTuner_Vtbl { pub struct IMSVidAnalogTuner2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSVidAnalogTuner2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Status(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -36087,17 +35017,13 @@ impl IMSVidAnalogTuner2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.Power)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Category(&self) -> ::windows::core::Result { + pub unsafe fn Category(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassID(&self) -> ::windows::core::Result { + pub unsafe fn ClassID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn _Category(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -36484,11 +35410,9 @@ pub struct IMSVidAnalogTunerEvent_Vtbl { pub struct IMSVidAudioRenderer(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSVidAudioRenderer { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Status(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -36501,17 +35425,13 @@ impl IMSVidAudioRenderer { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.Power)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Category(&self) -> ::windows::core::Result { + pub unsafe fn Category(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassID(&self) -> ::windows::core::Result { + pub unsafe fn ClassID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn _Category(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -37070,11 +35990,9 @@ pub struct IMSVidAudioRendererEvent2_Vtbl { pub struct IMSVidClosedCaptioning(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSVidClosedCaptioning { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Status(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -37087,17 +36005,13 @@ impl IMSVidClosedCaptioning { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.Power)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Category(&self) -> ::windows::core::Result { + pub unsafe fn Category(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassID(&self) -> ::windows::core::Result { + pub unsafe fn ClassID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn _Category(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -37235,11 +36149,9 @@ pub struct IMSVidClosedCaptioning_Vtbl { pub struct IMSVidClosedCaptioning2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSVidClosedCaptioning2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Status(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -37252,17 +36164,13 @@ impl IMSVidClosedCaptioning2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.Power)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Category(&self) -> ::windows::core::Result { + pub unsafe fn Category(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassID(&self) -> ::windows::core::Result { + pub unsafe fn ClassID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn _Category(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -37425,11 +36333,9 @@ pub struct IMSVidClosedCaptioning2_Vtbl { pub struct IMSVidClosedCaptioning3(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSVidClosedCaptioning3 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Status(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -37442,17 +36348,13 @@ impl IMSVidClosedCaptioning3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Power)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Category(&self) -> ::windows::core::Result { + pub unsafe fn Category(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassID(&self) -> ::windows::core::Result { + pub unsafe fn ClassID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn _Category(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -37881,23 +36783,17 @@ impl IMSVidCtl { pub unsafe fn SetColorKey(&self, newvalue: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetColorKey)(::windows::core::Interface::as_raw(self), newvalue).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn get_InputsAvailable<'a, P0>(&self, categoryguid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn get_InputsAvailable(&self, categoryguid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_InputsAvailable)(::windows::core::Interface::as_raw(self), categoryguid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_InputsAvailable)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(categoryguid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn get_OutputsAvailable<'a, P0>(&self, categoryguid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn get_OutputsAvailable(&self, categoryguid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_OutputsAvailable)(::windows::core::Interface::as_raw(self), categoryguid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_OutputsAvailable)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(categoryguid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -38120,13 +37016,13 @@ pub struct IMSVidCtl_Vtbl { pub SetMaintainAspectRatio: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newvalue: i16) -> ::windows::core::HRESULT, pub ColorKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, currentvalue: *mut u32) -> ::windows::core::HRESULT, pub SetColorKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newvalue: u32) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub get_InputsAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, categoryguid: ::core::mem::ManuallyDrop, pval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub get_InputsAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, categoryguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] get_InputsAvailable: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub get_OutputsAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, categoryguid: ::core::mem::ManuallyDrop, pval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub get_OutputsAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, categoryguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] get_OutputsAvailable: usize, #[cfg(feature = "Win32_System_Com")] pub get__InputsAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, categoryguid: *const ::windows::core::GUID, pval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -38211,11 +37107,9 @@ pub struct IMSVidCtl_Vtbl { pub struct IMSVidDataServices(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSVidDataServices { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Status(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -38228,17 +37122,13 @@ impl IMSVidDataServices { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.Power)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Category(&self) -> ::windows::core::Result { + pub unsafe fn Category(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassID(&self) -> ::windows::core::Result { + pub unsafe fn ClassID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn _Category(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -38467,11 +37357,9 @@ pub struct IMSVidDataServicesEvent_Vtbl { pub struct IMSVidDevice(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSVidDevice { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Status(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -38484,17 +37372,13 @@ impl IMSVidDevice { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Power)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Category(&self) -> ::windows::core::Result { + pub unsafe fn Category(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassID(&self) -> ::windows::core::Result { + pub unsafe fn ClassID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn _Category(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -38580,21 +37464,12 @@ unsafe impl ::windows::core::Interface for IMSVidDevice { #[doc(hidden)] pub struct IMSVidDevice_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, status: *mut i32) -> ::windows::core::HRESULT, pub SetPower: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, power: i16) -> ::windows::core::HRESULT, pub Power: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, power: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Category: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Category: usize, - #[cfg(feature = "Win32_Foundation")] - pub ClassID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ClassID: usize, + pub Category: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ClassID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub _Category: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, pub _ClassID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clsid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] @@ -38606,11 +37481,9 @@ pub struct IMSVidDevice_Vtbl { #[repr(transparent)] pub struct IMSVidDevice2(::windows::core::IUnknown); impl IMSVidDevice2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DevicePath(&self) -> ::windows::core::Result { + pub unsafe fn DevicePath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DevicePath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DevicePath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -38652,10 +37525,7 @@ unsafe impl ::windows::core::Interface for IMSVidDevice2 { #[doc(hidden)] pub struct IMSVidDevice2_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub DevicePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, devpath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DevicePath: usize, + pub DevicePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, devpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -38749,11 +37619,9 @@ pub struct IMSVidDeviceEvent_Vtbl { pub struct IMSVidEVR(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSVidEVR { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Status(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -38766,17 +37634,13 @@ impl IMSVidEVR { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.Power)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Category(&self) -> ::windows::core::Result { + pub unsafe fn Category(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassID(&self) -> ::windows::core::Result { + pub unsafe fn ClassID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn _Category(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -38795,19 +37659,12 @@ impl IMSVidEVR { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.IsEqualDevice)(::windows::core::Interface::as_raw(self), device.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CustomCompositorClass(&self) -> ::windows::core::Result { + pub unsafe fn CustomCompositorClass(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CustomCompositorClass)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CustomCompositorClass)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCustomCompositorClass<'a, P0>(&self, compositorclsid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetCustomCompositorClass)(::windows::core::Interface::as_raw(self), compositorclsid.into().abi()).ok() + pub unsafe fn SetCustomCompositorClass(&self, compositorclsid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetCustomCompositorClass)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(compositorclsid)).ok() } pub unsafe fn _CustomCompositorClass(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -39230,11 +38087,9 @@ pub struct IMSVidEVREvent_Vtbl { pub struct IMSVidEncoder(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSVidEncoder { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Status(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -39247,17 +38102,13 @@ impl IMSVidEncoder { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.Power)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Category(&self) -> ::windows::core::Result { + pub unsafe fn Category(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassID(&self) -> ::windows::core::Result { + pub unsafe fn ClassID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn _Category(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -39396,11 +38247,9 @@ pub struct IMSVidEncoder_Vtbl { pub struct IMSVidFeature(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSVidFeature { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Status(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -39413,17 +38262,13 @@ impl IMSVidFeature { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Power)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Category(&self) -> ::windows::core::Result { + pub unsafe fn Category(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassID(&self) -> ::windows::core::Result { + pub unsafe fn ClassID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn _Category(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -39760,11 +38605,9 @@ pub struct IMSVidFeatures_Vtbl { pub struct IMSVidFilePlayback(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSVidFilePlayback { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Status(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -39777,17 +38620,13 @@ impl IMSVidFilePlayback { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.Power)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Category(&self) -> ::windows::core::Result { + pub unsafe fn Category(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassID(&self) -> ::windows::core::Result { + pub unsafe fn ClassID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn _Category(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -39865,19 +38704,12 @@ impl IMSVidFilePlayback { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Length)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FileName(&self) -> ::windows::core::Result { + pub unsafe fn FileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFileName<'a, P0>(&self, filename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetFileName)(::windows::core::Interface::as_raw(self), filename.into().abi()).ok() + pub unsafe fn SetFileName(&self, filename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(filename)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -40000,14 +38832,8 @@ unsafe impl ::windows::core::Interface for IMSVidFilePlayback { #[doc(hidden)] pub struct IMSVidFilePlayback_Vtbl { pub base__: IMSVidPlayback_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub FileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FileName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetFileName: usize, + pub FileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -40015,11 +38841,9 @@ pub struct IMSVidFilePlayback_Vtbl { pub struct IMSVidFilePlayback2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSVidFilePlayback2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Status(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -40032,17 +38856,13 @@ impl IMSVidFilePlayback2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Power)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Category(&self) -> ::windows::core::Result { + pub unsafe fn Category(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassID(&self) -> ::windows::core::Result { + pub unsafe fn ClassID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn _Category(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -40120,27 +38940,15 @@ impl IMSVidFilePlayback2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.Length)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FileName(&self) -> ::windows::core::Result { + pub unsafe fn FileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.FileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFileName<'a, P0>(&self, filename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetFileName)(::windows::core::Interface::as_raw(self), filename.into().abi()).ok() + pub unsafe fn SetFileName(&self, filename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(filename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Set_SourceFilter<'a, P0>(&self, filename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Set_SourceFilter)(::windows::core::Interface::as_raw(self), filename.into().abi()).ok() + pub unsafe fn Set_SourceFilter(&self, filename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Set_SourceFilter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(filename)).ok() } pub unsafe fn Set__SourceFilter(&self, filename: ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Set__SourceFilter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(filename)).ok() @@ -40284,10 +39092,7 @@ unsafe impl ::windows::core::Interface for IMSVidFilePlayback2 { #[doc(hidden)] pub struct IMSVidFilePlayback2_Vtbl { pub base__: IMSVidFilePlayback_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Set_SourceFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Set_SourceFilter: usize, + pub Set_SourceFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Set__SourceFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::windows::core::GUID) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`, `\"Win32_System_Com\"`*"] @@ -40414,11 +39219,9 @@ pub struct IMSVidFilePlaybackEvent_Vtbl { pub struct IMSVidGenericSink(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSVidGenericSink { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Status(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -40431,17 +39234,13 @@ impl IMSVidGenericSink { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.Power)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Category(&self) -> ::windows::core::Result { + pub unsafe fn Category(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassID(&self) -> ::windows::core::Result { + pub unsafe fn ClassID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn _Category(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -40460,13 +39259,8 @@ impl IMSVidGenericSink { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.IsEqualDevice)(::windows::core::Interface::as_raw(self), device.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSinkFilter<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSinkFilter)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetSinkFilter(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSinkFilter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } pub unsafe fn SinkStreams(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -40578,10 +39372,7 @@ unsafe impl ::windows::core::Interface for IMSVidGenericSink { #[doc(hidden)] pub struct IMSVidGenericSink_Vtbl { pub base__: IMSVidOutputDevice_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub SetSinkFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSinkFilter: usize, + pub SetSinkFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SinkStreams: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstreams: *mut MSVidSinkStreams) -> ::windows::core::HRESULT, pub SetSinkStreams: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, streams: MSVidSinkStreams) -> ::windows::core::HRESULT, } @@ -40591,11 +39382,9 @@ pub struct IMSVidGenericSink_Vtbl { pub struct IMSVidGenericSink2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSVidGenericSink2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Status(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -40608,17 +39397,13 @@ impl IMSVidGenericSink2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.Power)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Category(&self) -> ::windows::core::Result { + pub unsafe fn Category(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassID(&self) -> ::windows::core::Result { + pub unsafe fn ClassID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn _Category(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -40637,13 +39422,8 @@ impl IMSVidGenericSink2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.IsEqualDevice)(::windows::core::Interface::as_raw(self), device.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSinkFilter<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetSinkFilter)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetSinkFilter(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetSinkFilter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } pub unsafe fn SinkStreams(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -40652,13 +39432,8 @@ impl IMSVidGenericSink2 { pub unsafe fn SetSinkStreams(&self, streams: MSVidSinkStreams) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetSinkStreams)(::windows::core::Interface::as_raw(self), streams).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddFilter<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AddFilter)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn AddFilter(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AddFilter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } pub unsafe fn ResetFilterList(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ResetFilterList)(::windows::core::Interface::as_raw(self)).ok() @@ -40784,10 +39559,7 @@ unsafe impl ::windows::core::Interface for IMSVidGenericSink2 { #[doc(hidden)] pub struct IMSVidGenericSink2_Vtbl { pub base__: IMSVidGenericSink_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub AddFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddFilter: usize, + pub AddFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ResetFilterList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`, `\"Win32_System_Com\"`*"] @@ -41144,11 +39916,9 @@ pub struct IMSVidGraphSegmentUserInput_Vtbl { pub struct IMSVidInputDevice(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSVidInputDevice { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Status(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -41161,17 +39931,13 @@ impl IMSVidInputDevice { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Power)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Category(&self) -> ::windows::core::Result { + pub unsafe fn Category(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassID(&self) -> ::windows::core::Result { + pub unsafe fn ClassID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn _Category(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -41500,11 +40266,9 @@ pub struct IMSVidInputDevices_Vtbl { pub struct IMSVidOutputDevice(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSVidOutputDevice { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Status(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -41517,17 +40281,13 @@ impl IMSVidOutputDevice { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Power)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Category(&self) -> ::windows::core::Result { + pub unsafe fn Category(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassID(&self) -> ::windows::core::Result { + pub unsafe fn ClassID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn _Category(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -41864,11 +40624,9 @@ pub struct IMSVidOutputDevices_Vtbl { pub struct IMSVidPlayback(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSVidPlayback { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Status(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -41881,17 +40639,13 @@ impl IMSVidPlayback { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.Power)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Category(&self) -> ::windows::core::Result { + pub unsafe fn Category(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassID(&self) -> ::windows::core::Result { + pub unsafe fn ClassID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn _Category(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -42453,11 +41207,9 @@ pub struct IMSVidStreamBufferRecordingControl_Vtbl { pub struct IMSVidStreamBufferSink(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSVidStreamBufferSink { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Status(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -42470,17 +41222,13 @@ impl IMSVidStreamBufferSink { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.Power)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Category(&self) -> ::windows::core::Result { + pub unsafe fn Category(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassID(&self) -> ::windows::core::Result { + pub unsafe fn ClassID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn _Category(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -42499,37 +41247,24 @@ impl IMSVidStreamBufferSink { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.IsEqualDevice)(::windows::core::Interface::as_raw(self), device.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn get_ContentRecorder<'a, P0>(&self, pszfilename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn get_ContentRecorder(&self, pszfilename: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_ContentRecorder)(::windows::core::Interface::as_raw(self), pszfilename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_ContentRecorder)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pszfilename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn get_ReferenceRecorder<'a, P0>(&self, pszfilename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn get_ReferenceRecorder(&self, pszfilename: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_ReferenceRecorder)(::windows::core::Interface::as_raw(self), pszfilename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_ReferenceRecorder)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pszfilename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SinkName(&self) -> ::windows::core::Result { + pub unsafe fn SinkName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SinkName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SinkName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSinkName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSinkName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetSinkName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSinkName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } pub unsafe fn NameSetLock(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).NameSetLock)(::windows::core::Interface::as_raw(self)).ok() @@ -42641,22 +41376,16 @@ unsafe impl ::windows::core::Interface for IMSVidStreamBufferSink { #[doc(hidden)] pub struct IMSVidStreamBufferSink_Vtbl { pub base__: IMSVidOutputDevice_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub get_ContentRecorder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszfilename: ::core::mem::ManuallyDrop, precordingiunknown: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub get_ContentRecorder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, precordingiunknown: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] get_ContentRecorder: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub get_ReferenceRecorder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszfilename: ::core::mem::ManuallyDrop, precordingiunknown: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub get_ReferenceRecorder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, precordingiunknown: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] get_ReferenceRecorder: usize, - #[cfg(feature = "Win32_Foundation")] - pub SinkName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SinkName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSinkName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSinkName: usize, + pub SinkName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSinkName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub NameSetLock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub SBESink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sbeconfig: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } @@ -42666,11 +41395,9 @@ pub struct IMSVidStreamBufferSink_Vtbl { pub struct IMSVidStreamBufferSink2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSVidStreamBufferSink2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Status(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -42683,17 +41410,13 @@ impl IMSVidStreamBufferSink2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.Power)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Category(&self) -> ::windows::core::Result { + pub unsafe fn Category(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassID(&self) -> ::windows::core::Result { + pub unsafe fn ClassID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn _Category(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -42712,37 +41435,24 @@ impl IMSVidStreamBufferSink2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.IsEqualDevice)(::windows::core::Interface::as_raw(self), device.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn get_ContentRecorder<'a, P0>(&self, pszfilename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn get_ContentRecorder(&self, pszfilename: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_ContentRecorder)(::windows::core::Interface::as_raw(self), pszfilename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_ContentRecorder)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pszfilename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn get_ReferenceRecorder<'a, P0>(&self, pszfilename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn get_ReferenceRecorder(&self, pszfilename: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_ReferenceRecorder)(::windows::core::Interface::as_raw(self), pszfilename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_ReferenceRecorder)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pszfilename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SinkName(&self) -> ::windows::core::Result { + pub unsafe fn SinkName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.SinkName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.SinkName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSinkName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetSinkName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetSinkName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetSinkName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } pub unsafe fn NameSetLock(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.NameSetLock)(::windows::core::Interface::as_raw(self)).ok() @@ -42883,11 +41593,9 @@ pub struct IMSVidStreamBufferSink2_Vtbl { pub struct IMSVidStreamBufferSink3(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSVidStreamBufferSink3 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Status(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -42900,17 +41608,13 @@ impl IMSVidStreamBufferSink3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Power)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Category(&self) -> ::windows::core::Result { + pub unsafe fn Category(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassID(&self) -> ::windows::core::Result { + pub unsafe fn ClassID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn _Category(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -42929,37 +41633,24 @@ impl IMSVidStreamBufferSink3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.IsEqualDevice)(::windows::core::Interface::as_raw(self), device.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn get_ContentRecorder<'a, P0>(&self, pszfilename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn get_ContentRecorder(&self, pszfilename: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.get_ContentRecorder)(::windows::core::Interface::as_raw(self), pszfilename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.get_ContentRecorder)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pszfilename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn get_ReferenceRecorder<'a, P0>(&self, pszfilename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn get_ReferenceRecorder(&self, pszfilename: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.get_ReferenceRecorder)(::windows::core::Interface::as_raw(self), pszfilename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.get_ReferenceRecorder)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pszfilename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SinkName(&self) -> ::windows::core::Result { + pub unsafe fn SinkName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.SinkName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.SinkName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSinkName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetSinkName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetSinkName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetSinkName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } pub unsafe fn NameSetLock(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.NameSetLock)(::windows::core::Interface::as_raw(self)).ok() @@ -42991,19 +41682,12 @@ impl IMSVidStreamBufferSink3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).WSTCounter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetAudioAnalysisFilter<'a, P0>(&self, szclsid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetAudioAnalysisFilter)(::windows::core::Interface::as_raw(self), szclsid.into().abi()).ok() + pub unsafe fn SetAudioAnalysisFilter(&self, szclsid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetAudioAnalysisFilter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(szclsid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AudioAnalysisFilter(&self) -> ::windows::core::Result { + pub unsafe fn AudioAnalysisFilter(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AudioAnalysisFilter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AudioAnalysisFilter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Set_AudioAnalysisFilter(&self, guid: ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Set_AudioAnalysisFilter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(guid)).ok() @@ -43012,19 +41696,12 @@ impl IMSVidStreamBufferSink3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self)._AudioAnalysisFilter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetVideoAnalysisFilter<'a, P0>(&self, szclsid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetVideoAnalysisFilter)(::windows::core::Interface::as_raw(self), szclsid.into().abi()).ok() + pub unsafe fn SetVideoAnalysisFilter(&self, szclsid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetVideoAnalysisFilter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(szclsid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn VideoAnalysisFilter(&self) -> ::windows::core::Result { + pub unsafe fn VideoAnalysisFilter(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).VideoAnalysisFilter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).VideoAnalysisFilter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Set_VideoAnalysisFilter(&self, guid: ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Set_VideoAnalysisFilter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(guid)).ok() @@ -43033,19 +41710,12 @@ impl IMSVidStreamBufferSink3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self)._VideoAnalysisFilter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDataAnalysisFilter<'a, P0>(&self, szclsid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDataAnalysisFilter)(::windows::core::Interface::as_raw(self), szclsid.into().abi()).ok() + pub unsafe fn SetDataAnalysisFilter(&self, szclsid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDataAnalysisFilter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(szclsid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DataAnalysisFilter(&self) -> ::windows::core::Result { + pub unsafe fn DataAnalysisFilter(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DataAnalysisFilter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DataAnalysisFilter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Set_DataAnalysisFilter(&self, guid: ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Set_DataAnalysisFilter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(guid)).ok() @@ -43202,34 +41872,16 @@ pub struct IMSVidStreamBufferSink3_Vtbl { pub VideoCounter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub CCCounter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub WSTCounter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetAudioAnalysisFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szclsid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetAudioAnalysisFilter: usize, - #[cfg(feature = "Win32_Foundation")] - pub AudioAnalysisFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszclsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AudioAnalysisFilter: usize, + pub SetAudioAnalysisFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szclsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub AudioAnalysisFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszclsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Set_AudioAnalysisFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: ::windows::core::GUID) -> ::windows::core::HRESULT, pub _AudioAnalysisFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetVideoAnalysisFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szclsid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetVideoAnalysisFilter: usize, - #[cfg(feature = "Win32_Foundation")] - pub VideoAnalysisFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszclsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - VideoAnalysisFilter: usize, + pub SetVideoAnalysisFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szclsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub VideoAnalysisFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszclsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Set_VideoAnalysisFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: ::windows::core::GUID) -> ::windows::core::HRESULT, pub _VideoAnalysisFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetDataAnalysisFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szclsid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDataAnalysisFilter: usize, - #[cfg(feature = "Win32_Foundation")] - pub DataAnalysisFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszclsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DataAnalysisFilter: usize, + pub SetDataAnalysisFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szclsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DataAnalysisFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszclsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Set_DataAnalysisFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: ::windows::core::GUID) -> ::windows::core::HRESULT, pub _DataAnalysisFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, pub LicenseErrorCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hres: *mut ::windows::core::HRESULT) -> ::windows::core::HRESULT, @@ -43890,11 +42542,9 @@ pub struct IMSVidStreamBufferSinkEvent4_Vtbl { pub struct IMSVidStreamBufferSource(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSVidStreamBufferSource { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Status(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -43907,17 +42557,13 @@ impl IMSVidStreamBufferSource { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Power)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Category(&self) -> ::windows::core::Result { + pub unsafe fn Category(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassID(&self) -> ::windows::core::Result { + pub unsafe fn ClassID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn _Category(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -43995,19 +42641,12 @@ impl IMSVidStreamBufferSource { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.Length)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FileName(&self) -> ::windows::core::Result { + pub unsafe fn FileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.FileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFileName<'a, P0>(&self, filename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetFileName)(::windows::core::Interface::as_raw(self), filename.into().abi()).ok() + pub unsafe fn SetFileName(&self, filename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(filename)).ok() } pub unsafe fn Start(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -44186,11 +42825,9 @@ pub struct IMSVidStreamBufferSource_Vtbl { pub struct IMSVidStreamBufferSource2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSVidStreamBufferSource2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Status(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -44203,17 +42840,13 @@ impl IMSVidStreamBufferSource2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.Power)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Category(&self) -> ::windows::core::Result { + pub unsafe fn Category(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassID(&self) -> ::windows::core::Result { + pub unsafe fn ClassID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn _Category(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -44291,19 +42924,12 @@ impl IMSVidStreamBufferSource2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.Length)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FileName(&self) -> ::windows::core::Result { + pub unsafe fn FileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.FileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.FileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFileName<'a, P0>(&self, filename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetFileName)(::windows::core::Interface::as_raw(self), filename.into().abi()).ok() + pub unsafe fn SetFileName(&self, filename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(filename)).ok() } pub unsafe fn Start(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -44912,21 +43538,11 @@ impl IMSVidStreamBufferSourceEvent3 { pub unsafe fn RateChange(&self, qwnewrate: f64, qwoldrate: f64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.RateChange)(::windows::core::Interface::as_raw(self), qwnewrate, qwoldrate).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BroadcastEvent<'a, P0>(&self, guid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).BroadcastEvent)(::windows::core::Interface::as_raw(self), guid.into().abi()).ok() + pub unsafe fn BroadcastEvent(&self, guid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).BroadcastEvent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(guid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BroadcastEventEx<'a, P0>(&self, guid: P0, param1: u32, param2: u32, param3: u32, param4: u32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).BroadcastEventEx)(::windows::core::Interface::as_raw(self), guid.into().abi(), param1, param2, param3, param4).ok() + pub unsafe fn BroadcastEventEx(&self, guid: &::windows::core::BSTR, param1: u32, param2: u32, param3: u32, param4: u32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).BroadcastEventEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(guid), param1, param2, param3, param4).ok() } pub unsafe fn COPPBlocked(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).COPPBlocked)(::windows::core::Interface::as_raw(self)).ok() @@ -45094,14 +43710,8 @@ unsafe impl ::windows::core::Interface for IMSVidStreamBufferSourceEvent3 { #[doc(hidden)] pub struct IMSVidStreamBufferSourceEvent3_Vtbl { pub base__: IMSVidStreamBufferSourceEvent2_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub BroadcastEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BroadcastEvent: usize, - #[cfg(feature = "Win32_Foundation")] - pub BroadcastEventEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: ::core::mem::ManuallyDrop, param1: u32, param2: u32, param3: u32, param4: u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BroadcastEventEx: usize, + pub BroadcastEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub BroadcastEventEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, param1: u32, param2: u32, param3: u32, param4: u32) -> ::windows::core::HRESULT, pub COPPBlocked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub COPPUnblocked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub ContentPrimarilyAudio: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -45138,21 +43748,11 @@ impl IMSVidStreamBufferV2SourceEvent { pub unsafe fn RateChange(&self, qwnewrate: f64, qwoldrate: f64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RateChange)(::windows::core::Interface::as_raw(self), qwnewrate, qwoldrate).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BroadcastEvent<'a, P0>(&self, guid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).BroadcastEvent)(::windows::core::Interface::as_raw(self), guid.into().abi()).ok() + pub unsafe fn BroadcastEvent(&self, guid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).BroadcastEvent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(guid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BroadcastEventEx<'a, P0>(&self, guid: P0, param1: u32, param2: u32, param3: u32, param4: u32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).BroadcastEventEx)(::windows::core::Interface::as_raw(self), guid.into().abi(), param1, param2, param3, param4).ok() + pub unsafe fn BroadcastEventEx(&self, guid: &::windows::core::BSTR, param1: u32, param2: u32, param3: u32, param4: u32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).BroadcastEventEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(guid), param1, param2, param3, param4).ok() } pub unsafe fn ContentPrimarilyAudio(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ContentPrimarilyAudio)(::windows::core::Interface::as_raw(self)).ok() @@ -45284,14 +43884,8 @@ pub struct IMSVidStreamBufferV2SourceEvent_Vtbl { pub ContentBecomingStale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub StaleFileDeleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub RateChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, qwnewrate: f64, qwoldrate: f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub BroadcastEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BroadcastEvent: usize, - #[cfg(feature = "Win32_Foundation")] - pub BroadcastEventEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: ::core::mem::ManuallyDrop, param1: u32, param2: u32, param3: u32, param4: u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BroadcastEventEx: usize, + pub BroadcastEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub BroadcastEventEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, param1: u32, param2: u32, param3: u32, param4: u32) -> ::windows::core::HRESULT, pub ContentPrimarilyAudio: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`, `\"Win32_System_Com\"`*"] @@ -45300,11 +43894,9 @@ pub struct IMSVidStreamBufferV2SourceEvent_Vtbl { pub struct IMSVidTuner(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSVidTuner { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Status(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -45317,17 +43909,13 @@ impl IMSVidTuner { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.Power)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Category(&self) -> ::windows::core::Result { + pub unsafe fn Category(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassID(&self) -> ::windows::core::Result { + pub unsafe fn ClassID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn _Category(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -45633,11 +44221,9 @@ pub struct IMSVidTunerEvent_Vtbl { pub struct IMSVidVMR9(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSVidVMR9 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Status(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -45650,17 +44236,13 @@ impl IMSVidVMR9 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.Power)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Category(&self) -> ::windows::core::Result { + pub unsafe fn Category(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassID(&self) -> ::windows::core::Result { + pub unsafe fn ClassID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn _Category(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -45679,19 +44261,12 @@ impl IMSVidVMR9 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.IsEqualDevice)(::windows::core::Interface::as_raw(self), device.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CustomCompositorClass(&self) -> ::windows::core::Result { + pub unsafe fn CustomCompositorClass(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CustomCompositorClass)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CustomCompositorClass)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCustomCompositorClass<'a, P0>(&self, compositorclsid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetCustomCompositorClass)(::windows::core::Interface::as_raw(self), compositorclsid.into().abi()).ok() + pub unsafe fn SetCustomCompositorClass(&self, compositorclsid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetCustomCompositorClass)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(compositorclsid)).ok() } pub unsafe fn _CustomCompositorClass(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -46279,11 +44854,9 @@ pub struct IMSVidVRGraphSegment_Vtbl { pub struct IMSVidVideoInputDevice(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSVidVideoInputDevice { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Status(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -46296,17 +44869,13 @@ impl IMSVidVideoInputDevice { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.Power)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Category(&self) -> ::windows::core::Result { + pub unsafe fn Category(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassID(&self) -> ::windows::core::Result { + pub unsafe fn ClassID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn _Category(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -46446,11 +45015,9 @@ pub struct IMSVidVideoInputDevice_Vtbl { pub struct IMSVidVideoRenderer(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSVidVideoRenderer { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Status(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -46463,17 +45030,13 @@ impl IMSVidVideoRenderer { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.Power)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Category(&self) -> ::windows::core::Result { + pub unsafe fn Category(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassID(&self) -> ::windows::core::Result { + pub unsafe fn ClassID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn _Category(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -46492,19 +45055,12 @@ impl IMSVidVideoRenderer { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.IsEqualDevice)(::windows::core::Interface::as_raw(self), device.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CustomCompositorClass(&self) -> ::windows::core::Result { + pub unsafe fn CustomCompositorClass(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CustomCompositorClass)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CustomCompositorClass)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCustomCompositorClass<'a, P0>(&self, compositorclsid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetCustomCompositorClass)(::windows::core::Interface::as_raw(self), compositorclsid.into().abi()).ok() + pub unsafe fn SetCustomCompositorClass(&self, compositorclsid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetCustomCompositorClass)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(compositorclsid)).ok() } pub unsafe fn _CustomCompositorClass(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -46749,14 +45305,8 @@ unsafe impl ::windows::core::Interface for IMSVidVideoRenderer { #[doc(hidden)] pub struct IMSVidVideoRenderer_Vtbl { pub base__: IMSVidOutputDevice_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub CustomCompositorClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, compositorclsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CustomCompositorClass: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetCustomCompositorClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, compositorclsid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetCustomCompositorClass: usize, + pub CustomCompositorClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, compositorclsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetCustomCompositorClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, compositorclsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub _CustomCompositorClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, compositorclsid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, pub Set_CustomCompositorClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, compositorclsid: *const ::windows::core::GUID) -> ::windows::core::HRESULT, pub _CustomCompositor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, compositor: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -46828,11 +45378,9 @@ pub struct IMSVidVideoRenderer_Vtbl { pub struct IMSVidVideoRenderer2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSVidVideoRenderer2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Status(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -46845,17 +45393,13 @@ impl IMSVidVideoRenderer2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.Power)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Category(&self) -> ::windows::core::Result { + pub unsafe fn Category(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassID(&self) -> ::windows::core::Result { + pub unsafe fn ClassID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn _Category(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -46874,19 +45418,12 @@ impl IMSVidVideoRenderer2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.IsEqualDevice)(::windows::core::Interface::as_raw(self), device.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CustomCompositorClass(&self) -> ::windows::core::Result { + pub unsafe fn CustomCompositorClass(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CustomCompositorClass)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CustomCompositorClass)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCustomCompositorClass<'a, P0>(&self, compositorclsid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetCustomCompositorClass)(::windows::core::Interface::as_raw(self), compositorclsid.into().abi()).ok() + pub unsafe fn SetCustomCompositorClass(&self, compositorclsid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetCustomCompositorClass)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(compositorclsid)).ok() } pub unsafe fn _CustomCompositorClass(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -47564,11 +46101,9 @@ pub struct IMSVidVideoRendererEvent2_Vtbl { pub struct IMSVidWebDVD(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSVidWebDVD { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Status(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -47581,17 +46116,13 @@ impl IMSVidWebDVD { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.Power)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Category(&self) -> ::windows::core::Result { + pub unsafe fn Category(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassID(&self) -> ::windows::core::Result { + pub unsafe fn ClassID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn _Category(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -47684,30 +46215,14 @@ impl IMSVidWebDVD { pub unsafe fn PlayChaptersAutoStop(&self, ltitle: i32, lstrchapter: i32, lchaptercount: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).PlayChaptersAutoStop)(::windows::core::Interface::as_raw(self), ltitle, lstrchapter, lchaptercount).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PlayAtTime<'a, P0>(&self, strtime: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).PlayAtTime)(::windows::core::Interface::as_raw(self), strtime.into().abi()).ok() + pub unsafe fn PlayAtTime(&self, strtime: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).PlayAtTime)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strtime)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PlayAtTimeInTitle<'a, P0>(&self, ltitle: i32, strtime: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).PlayAtTimeInTitle)(::windows::core::Interface::as_raw(self), ltitle, strtime.into().abi()).ok() + pub unsafe fn PlayAtTimeInTitle(&self, ltitle: i32, strtime: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).PlayAtTimeInTitle)(::windows::core::Interface::as_raw(self), ltitle, ::core::mem::transmute_copy(strtime)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PlayPeriodInTitleAutoStop<'a, P0, P1>(&self, ltitle: i32, strstarttime: P0, strendtime: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).PlayPeriodInTitleAutoStop)(::windows::core::Interface::as_raw(self), ltitle, strstarttime.into().abi(), strendtime.into().abi()).ok() + pub unsafe fn PlayPeriodInTitleAutoStop(&self, ltitle: i32, strstarttime: &::windows::core::BSTR, strendtime: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).PlayPeriodInTitleAutoStop)(::windows::core::Interface::as_raw(self), ltitle, ::core::mem::transmute_copy(strstarttime), ::core::mem::transmute_copy(strendtime)).ok() } pub unsafe fn ReplayChapter(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ReplayChapter)(::windows::core::Interface::as_raw(self)).ok() @@ -47721,11 +46236,9 @@ impl IMSVidWebDVD { pub unsafe fn StillOff(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).StillOff)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_AudioLanguage(&self, lstream: i32, fformat: i16) -> ::windows::core::Result { + pub unsafe fn get_AudioLanguage(&self, lstream: i32, fformat: i16) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_AudioLanguage)(::windows::core::Interface::as_raw(self), lstream, fformat, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_AudioLanguage)(::windows::core::Interface::as_raw(self), lstream, fformat, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn ShowMenu(&self, menuid: DVDMenuIDConstants) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ShowMenu)(::windows::core::Interface::as_raw(self), menuid).ok() @@ -47776,11 +46289,9 @@ impl IMSVidWebDVD { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).get_NumberOfChapters)(::windows::core::Interface::as_raw(self), ltitle, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TotalTitleTime(&self) -> ::windows::core::Result { + pub unsafe fn TotalTitleTime(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TotalTitleTime)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TotalTitleTime)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn TitlesAvailable(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -47810,31 +46321,20 @@ impl IMSVidWebDVD { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CurrentTitle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentTime(&self) -> ::windows::core::Result { + pub unsafe fn CurrentTime(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CurrentTime)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CurrentTime)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DVDTimeCode2bstr(&self, timecode: i32) -> ::windows::core::Result { + pub unsafe fn DVDTimeCode2bstr(&self, timecode: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DVDTimeCode2bstr)(::windows::core::Interface::as_raw(self), timecode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DVDTimeCode2bstr)(::windows::core::Interface::as_raw(self), timecode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DVDDirectory(&self) -> ::windows::core::Result { + pub unsafe fn DVDDirectory(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DVDDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DVDDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDVDDirectory<'a, P0>(&self, newval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDVDDirectory)(::windows::core::Interface::as_raw(self), newval.into().abi()).ok() + pub unsafe fn SetDVDDirectory(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDVDDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(newval)).ok() } pub unsafe fn IsSubpictureStreamEnabled(&self, lstream: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -47851,11 +46351,9 @@ impl IMSVidWebDVD { pub unsafe fn SetCurrentSubpictureStream(&self, newval: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetCurrentSubpictureStream)(::windows::core::Interface::as_raw(self), newval).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_SubpictureLanguage(&self, lstream: i32) -> ::windows::core::Result { + pub unsafe fn get_SubpictureLanguage(&self, lstream: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_SubpictureLanguage)(::windows::core::Interface::as_raw(self), lstream, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_SubpictureLanguage)(::windows::core::Interface::as_raw(self), lstream, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CurrentAudioStream(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -47890,41 +46388,21 @@ impl IMSVidWebDVD { pub unsafe fn SetSubpictureOn(&self, newval: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetSubpictureOn)(::windows::core::Interface::as_raw(self), newval).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DVDUniqueID(&self) -> ::windows::core::Result { + pub unsafe fn DVDUniqueID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DVDUniqueID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DVDUniqueID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AcceptParentalLevelChange<'a, P0, P1>(&self, faccept: i16, strusername: P0, strpassword: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AcceptParentalLevelChange)(::windows::core::Interface::as_raw(self), faccept, strusername.into().abi(), strpassword.into().abi()).ok() + pub unsafe fn AcceptParentalLevelChange(&self, faccept: i16, strusername: &::windows::core::BSTR, strpassword: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AcceptParentalLevelChange)(::windows::core::Interface::as_raw(self), faccept, ::core::mem::transmute_copy(strusername), ::core::mem::transmute_copy(strpassword)).ok() } pub unsafe fn NotifyParentalLevelChange(&self, newval: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).NotifyParentalLevelChange)(::windows::core::Interface::as_raw(self), newval).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SelectParentalCountry<'a, P0, P1>(&self, lcountry: i32, strusername: P0, strpassword: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SelectParentalCountry)(::windows::core::Interface::as_raw(self), lcountry, strusername.into().abi(), strpassword.into().abi()).ok() + pub unsafe fn SelectParentalCountry(&self, lcountry: i32, strusername: &::windows::core::BSTR, strpassword: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SelectParentalCountry)(::windows::core::Interface::as_raw(self), lcountry, ::core::mem::transmute_copy(strusername), ::core::mem::transmute_copy(strpassword)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SelectParentalLevel<'a, P0, P1>(&self, lparentallevel: i32, strusername: P0, strpassword: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SelectParentalLevel)(::windows::core::Interface::as_raw(self), lparentallevel, strusername.into().abi(), strpassword.into().abi()).ok() + pub unsafe fn SelectParentalLevel(&self, lparentallevel: i32, strusername: &::windows::core::BSTR, strpassword: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SelectParentalLevel)(::windows::core::Interface::as_raw(self), lparentallevel, ::core::mem::transmute_copy(strusername), ::core::mem::transmute_copy(strpassword)).ok() } pub unsafe fn get_TitleParentalLevels(&self, ltitle: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -47960,11 +46438,9 @@ impl IMSVidWebDVD { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).get_DVDTextStringType)(::windows::core::Interface::as_raw(self), llangindex, lstringindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_DVDTextString(&self, llangindex: i32, lstringindex: i32) -> ::windows::core::Result { + pub unsafe fn get_DVDTextString(&self, llangindex: i32, lstringindex: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_DVDTextString)(::windows::core::Interface::as_raw(self), llangindex, lstringindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_DVDTextString)(::windows::core::Interface::as_raw(self), llangindex, lstringindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn get_DVDTextNumberOfStrings(&self, llangindex: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -48029,11 +46505,9 @@ impl IMSVidWebDVD { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).DefaultAudioLanguageExt)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_LanguageFromLCID(&self, lcid: i32) -> ::windows::core::Result { + pub unsafe fn get_LanguageFromLCID(&self, lcid: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_LanguageFromLCID)(::windows::core::Interface::as_raw(self), lcid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_LanguageFromLCID)(::windows::core::Interface::as_raw(self), lcid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn KaraokeAudioPresentationMode(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -48199,26 +46673,14 @@ pub struct IMSVidWebDVD_Vtbl { pub PlayChapterInTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ltitle: i32, lchapter: i32) -> ::windows::core::HRESULT, pub PlayChapter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lchapter: i32) -> ::windows::core::HRESULT, pub PlayChaptersAutoStop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ltitle: i32, lstrchapter: i32, lchaptercount: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub PlayAtTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strtime: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PlayAtTime: usize, - #[cfg(feature = "Win32_Foundation")] - pub PlayAtTimeInTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ltitle: i32, strtime: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PlayAtTimeInTitle: usize, - #[cfg(feature = "Win32_Foundation")] - pub PlayPeriodInTitleAutoStop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ltitle: i32, strstarttime: ::core::mem::ManuallyDrop, strendtime: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PlayPeriodInTitleAutoStop: usize, + pub PlayAtTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strtime: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub PlayAtTimeInTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ltitle: i32, strtime: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub PlayPeriodInTitleAutoStop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ltitle: i32, strstarttime: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strendtime: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ReplayChapter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub PlayPrevChapter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub PlayNextChapter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub StillOff: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub get_AudioLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lstream: i32, fformat: i16, straudiolang: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_AudioLanguage: usize, + pub get_AudioLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lstream: i32, fformat: i16, straudiolang: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ShowMenu: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, menuid: DVDMenuIDConstants) -> ::windows::core::HRESULT, pub Resume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub ReturnFromSubmenu: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -48234,10 +46696,7 @@ pub struct IMSVidWebDVD_Vtbl { pub SelectAtPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, xpos: i32, ypos: i32) -> ::windows::core::HRESULT, pub get_ButtonAtPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, xpos: i32, ypos: i32, plbutton: *mut i32) -> ::windows::core::HRESULT, pub get_NumberOfChapters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ltitle: i32, pval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub TotalTitleTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TotalTitleTime: usize, + pub TotalTitleTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub TitlesAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows::core::HRESULT, pub VolumesAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows::core::HRESULT, pub CurrentVolume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows::core::HRESULT, @@ -48245,30 +46704,15 @@ pub struct IMSVidWebDVD_Vtbl { pub CurrentDomain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows::core::HRESULT, pub CurrentChapter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows::core::HRESULT, pub CurrentTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CurrentTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CurrentTime: usize, - #[cfg(feature = "Win32_Foundation")] - pub DVDTimeCode2bstr: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, timecode: i32, ptimestr: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DVDTimeCode2bstr: usize, - #[cfg(feature = "Win32_Foundation")] - pub DVDDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DVDDirectory: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDVDDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDVDDirectory: usize, + pub CurrentTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DVDTimeCode2bstr: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, timecode: i32, ptimestr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DVDDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDVDDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub IsSubpictureStreamEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lstream: i32, fenabled: *mut i16) -> ::windows::core::HRESULT, pub IsAudioStreamEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lstream: i32, fenabled: *mut i16) -> ::windows::core::HRESULT, pub CurrentSubpictureStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows::core::HRESULT, pub SetCurrentSubpictureStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub get_SubpictureLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lstream: i32, strlanguage: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_SubpictureLanguage: usize, + pub get_SubpictureLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lstream: i32, strlanguage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub CurrentAudioStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows::core::HRESULT, pub SetCurrentAudioStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: i32) -> ::windows::core::HRESULT, pub AudioStreamsAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows::core::HRESULT, @@ -48278,23 +46722,11 @@ pub struct IMSVidWebDVD_Vtbl { pub SubpictureStreamsAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows::core::HRESULT, pub SubpictureOn: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i16) -> ::windows::core::HRESULT, pub SetSubpictureOn: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub DVDUniqueID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DVDUniqueID: usize, - #[cfg(feature = "Win32_Foundation")] - pub AcceptParentalLevelChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, faccept: i16, strusername: ::core::mem::ManuallyDrop, strpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AcceptParentalLevelChange: usize, + pub DVDUniqueID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub AcceptParentalLevelChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, faccept: i16, strusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub NotifyParentalLevelChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SelectParentalCountry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lcountry: i32, strusername: ::core::mem::ManuallyDrop, strpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SelectParentalCountry: usize, - #[cfg(feature = "Win32_Foundation")] - pub SelectParentalLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lparentallevel: i32, strusername: ::core::mem::ManuallyDrop, strpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SelectParentalLevel: usize, + pub SelectParentalCountry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lcountry: i32, strusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SelectParentalLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lparentallevel: i32, strusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub get_TitleParentalLevels: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ltitle: i32, plparentallevels: *mut i32) -> ::windows::core::HRESULT, pub PlayerParentalCountry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcountrycode: *mut i32) -> ::windows::core::HRESULT, pub PlayerParentalLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plparentallevel: *mut i32) -> ::windows::core::HRESULT, @@ -48304,10 +46736,7 @@ pub struct IMSVidWebDVD_Vtbl { pub get_GPRM: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lindex: i32, pssprm: *mut i16) -> ::windows::core::HRESULT, pub put_GPRM: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lindex: i32, svalue: i16) -> ::windows::core::HRESULT, pub get_DVDTextStringType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, llangindex: i32, lstringindex: i32, ptype: *mut DVDTextStringType) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub get_DVDTextString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, llangindex: i32, lstringindex: i32, pstrtext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_DVDTextString: usize, + pub get_DVDTextString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, llangindex: i32, lstringindex: i32, pstrtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub get_DVDTextNumberOfStrings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, llangindex: i32, plnumofstrings: *mut i32) -> ::windows::core::HRESULT, pub DVDTextNumberOfLanguages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plnumoflangs: *mut i32) -> ::windows::core::HRESULT, pub get_DVDTextLanguageLCID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, llangindex: i32, lcid: *mut i32) -> ::windows::core::HRESULT, @@ -48328,10 +46757,7 @@ pub struct IMSVidWebDVD_Vtbl { pub DefaultAudioLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lang: *mut i32) -> ::windows::core::HRESULT, pub DefaultSubpictureLanguageExt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ext: *mut DVDSPExt) -> ::windows::core::HRESULT, pub DefaultAudioLanguageExt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ext: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub get_LanguageFromLCID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lcid: i32, lang: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_LanguageFromLCID: usize, + pub get_LanguageFromLCID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lcid: i32, lang: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub KaraokeAudioPresentationMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows::core::HRESULT, pub SetKaraokeAudioPresentationMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: i32) -> ::windows::core::HRESULT, pub get_KaraokeChannelContent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lstream: i32, lchan: i32, lcontent: *mut i32) -> ::windows::core::HRESULT, @@ -48356,11 +46782,9 @@ pub struct IMSVidWebDVD_Vtbl { pub struct IMSVidWebDVD2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSVidWebDVD2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Status(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -48373,17 +46797,13 @@ impl IMSVidWebDVD2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Power)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Category(&self) -> ::windows::core::Result { + pub unsafe fn Category(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassID(&self) -> ::windows::core::Result { + pub unsafe fn ClassID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn _Category(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -48476,30 +46896,14 @@ impl IMSVidWebDVD2 { pub unsafe fn PlayChaptersAutoStop(&self, ltitle: i32, lstrchapter: i32, lchaptercount: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.PlayChaptersAutoStop)(::windows::core::Interface::as_raw(self), ltitle, lstrchapter, lchaptercount).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PlayAtTime<'a, P0>(&self, strtime: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.PlayAtTime)(::windows::core::Interface::as_raw(self), strtime.into().abi()).ok() + pub unsafe fn PlayAtTime(&self, strtime: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.PlayAtTime)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strtime)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PlayAtTimeInTitle<'a, P0>(&self, ltitle: i32, strtime: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.PlayAtTimeInTitle)(::windows::core::Interface::as_raw(self), ltitle, strtime.into().abi()).ok() + pub unsafe fn PlayAtTimeInTitle(&self, ltitle: i32, strtime: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.PlayAtTimeInTitle)(::windows::core::Interface::as_raw(self), ltitle, ::core::mem::transmute_copy(strtime)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PlayPeriodInTitleAutoStop<'a, P0, P1>(&self, ltitle: i32, strstarttime: P0, strendtime: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.PlayPeriodInTitleAutoStop)(::windows::core::Interface::as_raw(self), ltitle, strstarttime.into().abi(), strendtime.into().abi()).ok() + pub unsafe fn PlayPeriodInTitleAutoStop(&self, ltitle: i32, strstarttime: &::windows::core::BSTR, strendtime: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.PlayPeriodInTitleAutoStop)(::windows::core::Interface::as_raw(self), ltitle, ::core::mem::transmute_copy(strstarttime), ::core::mem::transmute_copy(strendtime)).ok() } pub unsafe fn ReplayChapter(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.ReplayChapter)(::windows::core::Interface::as_raw(self)).ok() @@ -48513,11 +46917,9 @@ impl IMSVidWebDVD2 { pub unsafe fn StillOff(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.StillOff)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_AudioLanguage(&self, lstream: i32, fformat: i16) -> ::windows::core::Result { + pub unsafe fn get_AudioLanguage(&self, lstream: i32, fformat: i16) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_AudioLanguage)(::windows::core::Interface::as_raw(self), lstream, fformat, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_AudioLanguage)(::windows::core::Interface::as_raw(self), lstream, fformat, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn ShowMenu(&self, menuid: DVDMenuIDConstants) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.ShowMenu)(::windows::core::Interface::as_raw(self), menuid).ok() @@ -48568,11 +46970,9 @@ impl IMSVidWebDVD2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.get_NumberOfChapters)(::windows::core::Interface::as_raw(self), ltitle, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TotalTitleTime(&self) -> ::windows::core::Result { + pub unsafe fn TotalTitleTime(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.TotalTitleTime)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.TotalTitleTime)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn TitlesAvailable(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -48602,31 +47002,20 @@ impl IMSVidWebDVD2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.CurrentTitle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentTime(&self) -> ::windows::core::Result { + pub unsafe fn CurrentTime(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CurrentTime)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CurrentTime)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DVDTimeCode2bstr(&self, timecode: i32) -> ::windows::core::Result { + pub unsafe fn DVDTimeCode2bstr(&self, timecode: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.DVDTimeCode2bstr)(::windows::core::Interface::as_raw(self), timecode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.DVDTimeCode2bstr)(::windows::core::Interface::as_raw(self), timecode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DVDDirectory(&self) -> ::windows::core::Result { + pub unsafe fn DVDDirectory(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.DVDDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.DVDDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDVDDirectory<'a, P0>(&self, newval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetDVDDirectory)(::windows::core::Interface::as_raw(self), newval.into().abi()).ok() + pub unsafe fn SetDVDDirectory(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetDVDDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(newval)).ok() } pub unsafe fn IsSubpictureStreamEnabled(&self, lstream: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -48643,11 +47032,9 @@ impl IMSVidWebDVD2 { pub unsafe fn SetCurrentSubpictureStream(&self, newval: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetCurrentSubpictureStream)(::windows::core::Interface::as_raw(self), newval).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_SubpictureLanguage(&self, lstream: i32) -> ::windows::core::Result { + pub unsafe fn get_SubpictureLanguage(&self, lstream: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_SubpictureLanguage)(::windows::core::Interface::as_raw(self), lstream, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_SubpictureLanguage)(::windows::core::Interface::as_raw(self), lstream, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CurrentAudioStream(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -48682,41 +47069,21 @@ impl IMSVidWebDVD2 { pub unsafe fn SetSubpictureOn(&self, newval: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetSubpictureOn)(::windows::core::Interface::as_raw(self), newval).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DVDUniqueID(&self) -> ::windows::core::Result { + pub unsafe fn DVDUniqueID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.DVDUniqueID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.DVDUniqueID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AcceptParentalLevelChange<'a, P0, P1>(&self, faccept: i16, strusername: P0, strpassword: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.AcceptParentalLevelChange)(::windows::core::Interface::as_raw(self), faccept, strusername.into().abi(), strpassword.into().abi()).ok() + pub unsafe fn AcceptParentalLevelChange(&self, faccept: i16, strusername: &::windows::core::BSTR, strpassword: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.AcceptParentalLevelChange)(::windows::core::Interface::as_raw(self), faccept, ::core::mem::transmute_copy(strusername), ::core::mem::transmute_copy(strpassword)).ok() } pub unsafe fn NotifyParentalLevelChange(&self, newval: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.NotifyParentalLevelChange)(::windows::core::Interface::as_raw(self), newval).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SelectParentalCountry<'a, P0, P1>(&self, lcountry: i32, strusername: P0, strpassword: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SelectParentalCountry)(::windows::core::Interface::as_raw(self), lcountry, strusername.into().abi(), strpassword.into().abi()).ok() + pub unsafe fn SelectParentalCountry(&self, lcountry: i32, strusername: &::windows::core::BSTR, strpassword: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SelectParentalCountry)(::windows::core::Interface::as_raw(self), lcountry, ::core::mem::transmute_copy(strusername), ::core::mem::transmute_copy(strpassword)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SelectParentalLevel<'a, P0, P1>(&self, lparentallevel: i32, strusername: P0, strpassword: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SelectParentalLevel)(::windows::core::Interface::as_raw(self), lparentallevel, strusername.into().abi(), strpassword.into().abi()).ok() + pub unsafe fn SelectParentalLevel(&self, lparentallevel: i32, strusername: &::windows::core::BSTR, strpassword: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SelectParentalLevel)(::windows::core::Interface::as_raw(self), lparentallevel, ::core::mem::transmute_copy(strusername), ::core::mem::transmute_copy(strpassword)).ok() } pub unsafe fn get_TitleParentalLevels(&self, ltitle: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -48752,11 +47119,9 @@ impl IMSVidWebDVD2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.get_DVDTextStringType)(::windows::core::Interface::as_raw(self), llangindex, lstringindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_DVDTextString(&self, llangindex: i32, lstringindex: i32) -> ::windows::core::Result { + pub unsafe fn get_DVDTextString(&self, llangindex: i32, lstringindex: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_DVDTextString)(::windows::core::Interface::as_raw(self), llangindex, lstringindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_DVDTextString)(::windows::core::Interface::as_raw(self), llangindex, lstringindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn get_DVDTextNumberOfStrings(&self, llangindex: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -48821,11 +47186,9 @@ impl IMSVidWebDVD2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.DefaultAudioLanguageExt)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_LanguageFromLCID(&self, lcid: i32) -> ::windows::core::Result { + pub unsafe fn get_LanguageFromLCID(&self, lcid: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_LanguageFromLCID)(::windows::core::Interface::as_raw(self), lcid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_LanguageFromLCID)(::windows::core::Interface::as_raw(self), lcid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn KaraokeAudioPresentationMode(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -49019,43 +47382,18 @@ pub struct IMSVidWebDVD2_Vtbl { pub struct IMSVidWebDVDAdm(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSVidWebDVDAdm { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ChangePassword<'a, P0, P1, P2>(&self, strusername: P0, strold: P1, strnew: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ChangePassword)(::windows::core::Interface::as_raw(self), strusername.into().abi(), strold.into().abi(), strnew.into().abi()).ok() + pub unsafe fn ChangePassword(&self, strusername: &::windows::core::BSTR, strold: &::windows::core::BSTR, strnew: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ChangePassword)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strusername), ::core::mem::transmute_copy(strold), ::core::mem::transmute_copy(strnew)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SaveParentalLevel<'a, P0, P1>(&self, level: i32, strusername: P0, strpassword: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SaveParentalLevel)(::windows::core::Interface::as_raw(self), level, strusername.into().abi(), strpassword.into().abi()).ok() + pub unsafe fn SaveParentalLevel(&self, level: i32, strusername: &::windows::core::BSTR, strpassword: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SaveParentalLevel)(::windows::core::Interface::as_raw(self), level, ::core::mem::transmute_copy(strusername), ::core::mem::transmute_copy(strpassword)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SaveParentalCountry<'a, P0, P1>(&self, country: i32, strusername: P0, strpassword: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SaveParentalCountry)(::windows::core::Interface::as_raw(self), country, strusername.into().abi(), strpassword.into().abi()).ok() + pub unsafe fn SaveParentalCountry(&self, country: i32, strusername: &::windows::core::BSTR, strpassword: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SaveParentalCountry)(::windows::core::Interface::as_raw(self), country, ::core::mem::transmute_copy(strusername), ::core::mem::transmute_copy(strpassword)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ConfirmPassword<'a, P0, P1>(&self, strusername: P0, strpassword: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn ConfirmPassword(&self, strusername: &::windows::core::BSTR, strpassword: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ConfirmPassword)(::windows::core::Interface::as_raw(self), strusername.into().abi(), strpassword.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ConfirmPassword)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strusername), ::core::mem::transmute_copy(strpassword), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn GetParentalLevel(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -49160,22 +47498,10 @@ unsafe impl ::windows::core::Interface for IMSVidWebDVDAdm { #[doc(hidden)] pub struct IMSVidWebDVDAdm_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub ChangePassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strusername: ::core::mem::ManuallyDrop, strold: ::core::mem::ManuallyDrop, strnew: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ChangePassword: usize, - #[cfg(feature = "Win32_Foundation")] - pub SaveParentalLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, level: i32, strusername: ::core::mem::ManuallyDrop, strpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SaveParentalLevel: usize, - #[cfg(feature = "Win32_Foundation")] - pub SaveParentalCountry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, country: i32, strusername: ::core::mem::ManuallyDrop, strpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SaveParentalCountry: usize, - #[cfg(feature = "Win32_Foundation")] - pub ConfirmPassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strusername: ::core::mem::ManuallyDrop, strpassword: ::core::mem::ManuallyDrop, pval: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ConfirmPassword: usize, + pub ChangePassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strold: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strnew: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SaveParentalLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, level: i32, strusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SaveParentalCountry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, country: i32, strusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ConfirmPassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pval: *mut i16) -> ::windows::core::HRESULT, pub GetParentalLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, llevel: *mut i32) -> ::windows::core::HRESULT, pub GetParentalCountry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lcountry: *mut i32) -> ::windows::core::HRESULT, pub DefaultAudioLCID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows::core::HRESULT, @@ -49412,11 +47738,9 @@ pub struct IMSVidWebDVDEvent_Vtbl { pub struct IMSVidXDS(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSVidXDS { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Status(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -49429,17 +47753,13 @@ impl IMSVidXDS { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.Power)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Category(&self) -> ::windows::core::Result { + pub unsafe fn Category(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassID(&self) -> ::windows::core::Result { + pub unsafe fn ClassID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.ClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn _Category(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -49757,22 +48077,14 @@ impl IMediaControl { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetState)(::windows::core::Interface::as_raw(self), mstimeout, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RenderFile<'a, P0>(&self, strfilename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).RenderFile)(::windows::core::Interface::as_raw(self), strfilename.into().abi()).ok() + pub unsafe fn RenderFile(&self, strfilename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).RenderFile)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strfilename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn AddSourceFilter<'a, P0>(&self, strfilename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn AddSourceFilter(&self, strfilename: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AddSourceFilter)(::windows::core::Interface::as_raw(self), strfilename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AddSourceFilter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strfilename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -49860,13 +48172,10 @@ pub struct IMediaControl_Vtbl { pub Pause: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mstimeout: i32, pfs: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub RenderFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strfilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RenderFile: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub AddSourceFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strfilename: ::core::mem::ManuallyDrop, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub RenderFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub AddSourceFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] AddSourceFilter: usize, #[cfg(feature = "Win32_System_Com")] pub FilterCollection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -51387,17 +49696,13 @@ pub struct IMediaStreamFilter_Vtbl { pub struct IMediaTypeInfo(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMediaTypeInfo { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Type(&self) -> ::windows::core::Result { + pub unsafe fn Type(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Subtype(&self) -> ::windows::core::Result { + pub unsafe fn Subtype(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Subtype)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Subtype)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -51466,14 +49771,8 @@ unsafe impl ::windows::core::Interface for IMediaTypeInfo { #[doc(hidden)] pub struct IMediaTypeInfo_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strtype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Type: usize, - #[cfg(feature = "Win32_Foundation")] - pub Subtype: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strtype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Subtype: usize, + pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strtype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Subtype: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strtype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] #[repr(transparent)] @@ -54026,14 +52325,14 @@ impl IPersistTuneXmlUtility2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Deserialize)(::windows::core::Interface::as_raw(self), varvalue.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Serialize<'a, P0>(&self, pitunerequest: P0) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Serialize<'a, P0>(&self, pitunerequest: P0) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, ITuneRequest>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Serialize)(::windows::core::Interface::as_raw(self), pitunerequest.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Serialize)(::windows::core::Interface::as_raw(self), pitunerequest.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -54090,9 +52389,9 @@ unsafe impl ::windows::core::Interface for IPersistTuneXmlUtility2 { #[doc(hidden)] pub struct IPersistTuneXmlUtility2_Vtbl { pub base__: IPersistTuneXmlUtility_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Serialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pitunerequest: *mut ::core::ffi::c_void, pstring: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub Serialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pitunerequest: *mut ::core::ffi::c_void, pstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Serialize: usize, } #[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] @@ -54396,21 +52695,17 @@ impl IPinInfo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).FilterInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Direction(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Direction)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PinID(&self) -> ::windows::core::Result { + pub unsafe fn PinID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PinID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PinID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -54525,15 +52820,9 @@ pub struct IPinInfo_Vtbl { pub FilterInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] FilterInfo: usize, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunk: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunk: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Direction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdirection: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub PinID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpinid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PinID: usize, + pub PinID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpinid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub MediaTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -54755,11 +53044,9 @@ pub struct IQueueCommand_Vtbl { pub struct IRegFilterInfo(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IRegFilterInfo { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -54834,10 +53121,7 @@ unsafe impl ::windows::core::Interface for IRegFilterInfo { #[doc(hidden)] pub struct IRegFilterInfo_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Filter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -55650,14 +53934,9 @@ impl ISCTE_EAS { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetRawNatureOfActivationText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetNatureOfActivationText<'a, P0>(&self, bstris0639code: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetNatureOfActivationText(&self, bstris0639code: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetNatureOfActivationText)(::windows::core::Interface::as_raw(self), bstris0639code.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetNatureOfActivationText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstris0639code), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetTimeRemaining(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -55691,14 +53970,9 @@ impl ISCTE_EAS { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetDetailsAudioOOBSourceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetAlertText<'a, P0>(&self, bstris0639code: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetAlertText(&self, bstris0639code: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetAlertText)(::windows::core::Interface::as_raw(self), bstris0639code.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetAlertText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstris0639code), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetRawAlertTextLen(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -55783,10 +54057,7 @@ pub struct ISCTE_EAS_Vtbl { pub GetEASEventCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT, pub GetRawNatureOfActivationTextLen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT, pub GetRawNatureOfActivationText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetNatureOfActivationText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstris0639code: ::core::mem::ManuallyDrop, pbstrstring: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetNatureOfActivationText: usize, + pub GetNatureOfActivationText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstris0639code: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetTimeRemaining: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT, pub GetStartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwval: *mut u32) -> ::windows::core::HRESULT, pub GetDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwval: *mut u16) -> ::windows::core::HRESULT, @@ -55795,10 +54066,7 @@ pub struct ISCTE_EAS_Vtbl { pub GetDetailsMajor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwval: *mut u16) -> ::windows::core::HRESULT, pub GetDetailsMinor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwval: *mut u16) -> ::windows::core::HRESULT, pub GetDetailsAudioOOBSourceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwval: *mut u16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetAlertText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstris0639code: ::core::mem::ManuallyDrop, pbstrstring: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetAlertText: usize, + pub GetAlertText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstris0639code: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetRawAlertTextLen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwval: *mut u16) -> ::windows::core::HRESULT, pub GetRawAlertText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT, pub GetLocationCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbval: *mut u8) -> ::windows::core::HRESULT, @@ -58664,53 +56932,30 @@ pub struct ITunerCapEx_Vtbl { pub struct ITuningSpace(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ITuningSpace { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UniqueName(&self) -> ::windows::core::Result { + pub unsafe fn UniqueName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetUniqueName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetUniqueName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetUniqueName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetUniqueName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FriendlyName(&self) -> ::windows::core::Result { + pub unsafe fn FriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFriendlyName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetFriendlyName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetFriendlyName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CLSID(&self) -> ::windows::core::Result { + pub unsafe fn CLSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NetworkType(&self) -> ::windows::core::Result { + pub unsafe fn NetworkType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).NetworkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).NetworkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetNetworkType<'a, P0>(&self, networktypeguid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetNetworkType)(::windows::core::Interface::as_raw(self), networktypeguid.into().abi()).ok() + pub unsafe fn SetNetworkType(&self, networktypeguid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetNetworkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(networktypeguid)).ok() } pub unsafe fn _NetworkType(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -58751,19 +56996,12 @@ impl ITuningSpace { { (::windows::core::Interface::vtable(self).SetDefaultPreferredComponentTypes)(::windows::core::Interface::as_raw(self), newcomponenttypes.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FrequencyMapping(&self) -> ::windows::core::Result { + pub unsafe fn FrequencyMapping(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FrequencyMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FrequencyMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFrequencyMapping<'a, P0>(&self, mapping: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetFrequencyMapping)(::windows::core::Interface::as_raw(self), mapping.into().abi()).ok() + pub unsafe fn SetFrequencyMapping(&self, mapping: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetFrequencyMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mapping)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -58852,34 +57090,13 @@ unsafe impl ::windows::core::Interface for ITuningSpace { #[doc(hidden)] pub struct ITuningSpace_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub UniqueName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UniqueName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetUniqueName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetUniqueName: usize, - #[cfg(feature = "Win32_Foundation")] - pub FriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FriendlyName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetFriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetFriendlyName: usize, - #[cfg(feature = "Win32_Foundation")] - pub CLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, spaceclsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CLSID: usize, - #[cfg(feature = "Win32_Foundation")] - pub NetworkType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, networktypeguid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - NetworkType: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetNetworkType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, networktypeguid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetNetworkType: usize, + pub UniqueName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetUniqueName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetFriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, spaceclsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub NetworkType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, networktypeguid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetNetworkType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, networktypeguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub _NetworkType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, networktypeguid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, pub Set_NetworkType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, networktypeguid: *const ::windows::core::GUID) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] @@ -58902,14 +57119,8 @@ pub struct ITuningSpace_Vtbl { pub SetDefaultPreferredComponentTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newcomponenttypes: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] SetDefaultPreferredComponentTypes: usize, - #[cfg(feature = "Win32_Foundation")] - pub FrequencyMapping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmapping: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FrequencyMapping: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetFrequencyMapping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mapping: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetFrequencyMapping: usize, + pub FrequencyMapping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmapping: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetFrequencyMapping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mapping: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub DefaultLocator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, locatorval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -58957,14 +57168,11 @@ impl ITuningSpaceContainer { { (::windows::core::Interface::vtable(self).put_Item)(::windows::core::Interface::as_raw(self), varindex.into().abi(), tuningspace.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn TuningSpacesForCLSID<'a, P0>(&self, spaceclsid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn TuningSpacesForCLSID(&self, spaceclsid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TuningSpacesForCLSID)(::windows::core::Interface::as_raw(self), spaceclsid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TuningSpacesForCLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(spaceclsid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -58972,14 +57180,11 @@ impl ITuningSpaceContainer { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self)._TuningSpacesForCLSID2)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(spaceclsid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn TuningSpacesForName<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn TuningSpacesForName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TuningSpacesForName)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TuningSpacesForName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -59098,17 +57303,17 @@ pub struct ITuningSpaceContainer_Vtbl { pub put_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varindex: ::core::mem::ManuallyDrop, tuningspace: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] put_Item: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub TuningSpacesForCLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, spaceclsid: ::core::mem::ManuallyDrop, newcoll: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub TuningSpacesForCLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, spaceclsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, newcoll: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] TuningSpacesForCLSID: usize, #[cfg(feature = "Win32_System_Com")] pub _TuningSpacesForCLSID2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, spaceclsid: *const ::windows::core::GUID, newcoll: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] _TuningSpacesForCLSID2: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub TuningSpacesForName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, newcoll: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub TuningSpacesForName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, newcoll: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] TuningSpacesForName: usize, #[cfg(feature = "Win32_System_Com")] pub FindID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tuningspace: *mut ::core::ffi::c_void, id: *mut i32) -> ::windows::core::HRESULT, @@ -62722,19 +60927,12 @@ pub struct IVideoProcAmp_Vtbl { pub struct IVideoWindow(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IVideoWindow { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCaption<'a, P0>(&self, strcaption: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetCaption)(::windows::core::Interface::as_raw(self), strcaption.into().abi()).ok() + pub unsafe fn SetCaption(&self, strcaption: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetCaption)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strcaption)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Caption(&self) -> ::windows::core::Result { + pub unsafe fn Caption(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Caption)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Caption)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetWindowStyle(&self, windowstyle: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetWindowStyle)(::windows::core::Interface::as_raw(self), windowstyle).ok() @@ -62929,14 +61127,8 @@ unsafe impl ::windows::core::Interface for IVideoWindow { #[doc(hidden)] pub struct IVideoWindow_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub SetCaption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strcaption: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetCaption: usize, - #[cfg(feature = "Win32_Foundation")] - pub Caption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strcaption: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Caption: usize, + pub SetCaption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strcaption: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Caption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strcaption: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetWindowStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, windowstyle: i32) -> ::windows::core::HRESULT, pub WindowStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, windowstyle: *mut i32) -> ::windows::core::HRESULT, pub SetWindowStyleEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, windowstyleex: i32) -> ::windows::core::HRESULT, @@ -63135,9 +61327,7 @@ impl IXDSCodec { pub unsafe fn GetContentAdvisoryRating(&self, prat: &mut i32, ppktseqid: &mut i32, pcallseqid: &mut i32, ptimestart: &mut i64, ptimeend: &mut i64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetContentAdvisoryRating)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(prat), ::core::mem::transmute(ppktseqid), ::core::mem::transmute(pcallseqid), ::core::mem::transmute(ptimestart), ::core::mem::transmute(ptimeend)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetXDSPacket(&self, pxdsclasspkt: &mut i32, pxdstypepkt: &mut i32, pbstrxdspkt: &mut super::super::Foundation::BSTR, ppktseqid: &mut i32, pcallseqid: &mut i32, ptimestart: &mut i64, ptimeend: &mut i64) -> ::windows::core::Result<()> { + pub unsafe fn GetXDSPacket(&self, pxdsclasspkt: &mut i32, pxdstypepkt: &mut i32, pbstrxdspkt: &mut ::windows::core::BSTR, ppktseqid: &mut i32, pcallseqid: &mut i32, ptimestart: &mut i64, ptimeend: &mut i64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetXDSPacket)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pxdsclasspkt), ::core::mem::transmute(pxdstypepkt), ::core::mem::transmute(pbstrxdspkt), ::core::mem::transmute(ppktseqid), ::core::mem::transmute(pcallseqid), ::core::mem::transmute(ptimestart), ::core::mem::transmute(ptimeend)).ok() } pub unsafe fn GetCurrLicenseExpDate(&self, prottype: &ProtType) -> ::windows::core::Result { @@ -63191,10 +61381,7 @@ pub struct IXDSCodec_Vtbl { pub SetCCSubstreamService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, substreammask: i32) -> ::windows::core::HRESULT, pub CCSubstreamService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psubstreammask: *mut i32) -> ::windows::core::HRESULT, pub GetContentAdvisoryRating: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prat: *mut i32, ppktseqid: *mut i32, pcallseqid: *mut i32, ptimestart: *mut i64, ptimeend: *mut i64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetXDSPacket: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pxdsclasspkt: *mut i32, pxdstypepkt: *mut i32, pbstrxdspkt: *mut super::super::Foundation::BSTR, ppktseqid: *mut i32, pcallseqid: *mut i32, ptimestart: *mut i64, ptimeend: *mut i64) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetXDSPacket: usize, + pub GetXDSPacket: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pxdsclasspkt: *mut i32, pxdstypepkt: *mut i32, pbstrxdspkt: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppktseqid: *mut i32, pcallseqid: *mut i32, ptimestart: *mut i64, ptimeend: *mut i64) -> ::windows::core::HRESULT, pub GetCurrLicenseExpDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prottype: *const ProtType, lpdatetime: *mut i32) -> ::windows::core::HRESULT, pub GetLastErrorCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } @@ -86597,15 +84784,13 @@ impl ::core::default::Default for STREAM_ID_MAP { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Media_DirectShow\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_Media_DirectShow\"`*"] pub struct SmartCardApplication { pub ApplicationType: ApplicationTypeType, pub ApplicationVersion: u16, - pub pbstrApplicationName: super::super::Foundation::BSTR, - pub pbstrApplicationURL: super::super::Foundation::BSTR, + pub pbstrApplicationName: ::windows::core::BSTR, + pub pbstrApplicationURL: ::windows::core::BSTR, } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for SmartCardApplication { fn clone(&self) -> Self { Self { @@ -86616,25 +84801,20 @@ impl ::core::clone::Clone for SmartCardApplication { } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for SmartCardApplication { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("SmartCardApplication").field("ApplicationType", &self.ApplicationType).field("ApplicationVersion", &self.ApplicationVersion).field("pbstrApplicationName", &self.pbstrApplicationName).field("pbstrApplicationURL", &self.pbstrApplicationURL).finish() } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for SmartCardApplication { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for SmartCardApplication { fn eq(&self, other: &Self) -> bool { self.ApplicationType == other.ApplicationType && self.ApplicationVersion == other.ApplicationVersion && self.pbstrApplicationName == other.pbstrApplicationName && self.pbstrApplicationURL == other.pbstrApplicationURL } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for SmartCardApplication {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for SmartCardApplication { fn default() -> Self { unsafe { ::core::mem::zeroed() } diff --git a/crates/libs/windows/src/Windows/Win32/Media/LibrarySharingServices/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/LibrarySharingServices/impl.rs index 75d8d3c091..0ae8b51dec 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/LibrarySharingServices/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/LibrarySharingServices/impl.rs @@ -1,6 +1,6 @@ #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWindowsMediaLibrarySharingDevice_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn DeviceID(&self) -> ::windows::core::Result; + fn DeviceID(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Authorization(&self) -> ::windows::core::Result; fn SetAuthorization(&self, authorization: WindowsMediaLibrarySharingDeviceAuthorizationStatus) -> ::windows::core::Result<()>; fn Properties(&self) -> ::windows::core::Result; @@ -10,7 +10,7 @@ impl ::windows::core::RuntimeName for IWindowsMediaLibrarySharingDevice {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWindowsMediaLibrarySharingDevice_Vtbl { pub const fn new, Impl: IWindowsMediaLibrarySharingDevice_Impl, const OFFSET: isize>() -> IWindowsMediaLibrarySharingDevice_Vtbl { - unsafe extern "system" fn DeviceID, Impl: IWindowsMediaLibrarySharingDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, deviceid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeviceID, Impl: IWindowsMediaLibrarySharingDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, deviceid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DeviceID() { @@ -64,7 +64,7 @@ impl IWindowsMediaLibrarySharingDevice_Vtbl { pub trait IWindowsMediaLibrarySharingDeviceProperties_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn get_Item(&self, index: i32) -> ::windows::core::Result; fn Count(&self) -> ::windows::core::Result; - fn GetProperty(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetProperty(&self, name: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWindowsMediaLibrarySharingDeviceProperties {} @@ -93,7 +93,7 @@ impl IWindowsMediaLibrarySharingDeviceProperties_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetProperty, Impl: IWindowsMediaLibrarySharingDeviceProperties_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, property: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetProperty, Impl: IWindowsMediaLibrarySharingDeviceProperties_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, property: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetProperty(::core::mem::transmute(&name)) { @@ -117,7 +117,7 @@ impl IWindowsMediaLibrarySharingDeviceProperties_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWindowsMediaLibrarySharingDeviceProperty_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Value(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -125,7 +125,7 @@ impl ::windows::core::RuntimeName for IWindowsMediaLibrarySharingDeviceProperty #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWindowsMediaLibrarySharingDeviceProperty_Vtbl { pub const fn new, Impl: IWindowsMediaLibrarySharingDeviceProperty_Impl, const OFFSET: isize>() -> IWindowsMediaLibrarySharingDeviceProperty_Vtbl { - unsafe extern "system" fn Name, Impl: IWindowsMediaLibrarySharingDeviceProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IWindowsMediaLibrarySharingDeviceProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -161,7 +161,7 @@ impl IWindowsMediaLibrarySharingDeviceProperty_Vtbl { pub trait IWindowsMediaLibrarySharingDevices_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn get_Item(&self, index: i32) -> ::windows::core::Result; fn Count(&self) -> ::windows::core::Result; - fn GetDevice(&self, deviceid: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetDevice(&self, deviceid: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWindowsMediaLibrarySharingDevices {} @@ -190,7 +190,7 @@ impl IWindowsMediaLibrarySharingDevices_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetDevice, Impl: IWindowsMediaLibrarySharingDevices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, deviceid: ::core::mem::ManuallyDrop, device: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDevice, Impl: IWindowsMediaLibrarySharingDevices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, deviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, device: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDevice(::core::mem::transmute(&deviceid)) { @@ -214,23 +214,23 @@ impl IWindowsMediaLibrarySharingDevices_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWindowsMediaLibrarySharingServices_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn showShareMediaCPL(&self, device: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn showShareMediaCPL(&self, device: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn userHomeMediaSharingState(&self) -> ::windows::core::Result; fn SetuserHomeMediaSharingState(&self, sharingenabled: i16) -> ::windows::core::Result<()>; - fn userHomeMediaSharingLibraryName(&self) -> ::windows::core::Result; - fn SetuserHomeMediaSharingLibraryName(&self, libraryname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn userHomeMediaSharingLibraryName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetuserHomeMediaSharingLibraryName(&self, libraryname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn computerHomeMediaSharingAllowedState(&self) -> ::windows::core::Result; fn SetcomputerHomeMediaSharingAllowedState(&self, sharingallowed: i16) -> ::windows::core::Result<()>; fn userInternetMediaSharingState(&self) -> ::windows::core::Result; fn SetuserInternetMediaSharingState(&self, sharingenabled: i16) -> ::windows::core::Result<()>; fn computerInternetMediaSharingAllowedState(&self) -> ::windows::core::Result; fn SetcomputerInternetMediaSharingAllowedState(&self, sharingallowed: i16) -> ::windows::core::Result<()>; - fn internetMediaSharingSecurityGroup(&self) -> ::windows::core::Result; - fn SetinternetMediaSharingSecurityGroup(&self, securitygroup: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn internetMediaSharingSecurityGroup(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetinternetMediaSharingSecurityGroup(&self, securitygroup: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn allowSharingToAllDevices(&self) -> ::windows::core::Result; fn SetallowSharingToAllDevices(&self, sharingenabled: i16) -> ::windows::core::Result<()>; - fn setDefaultAuthorization(&self, macaddresses: &super::super::Foundation::BSTR, friendlyname: &super::super::Foundation::BSTR, authorization: i16) -> ::windows::core::Result<()>; - fn setAuthorizationState(&self, macaddress: &super::super::Foundation::BSTR, authorizationstate: i16) -> ::windows::core::Result<()>; + fn setDefaultAuthorization(&self, macaddresses: &::windows::core::BSTR, friendlyname: &::windows::core::BSTR, authorization: i16) -> ::windows::core::Result<()>; + fn setAuthorizationState(&self, macaddress: &::windows::core::BSTR, authorizationstate: i16) -> ::windows::core::Result<()>; fn getAllDevices(&self) -> ::windows::core::Result; fn customSettingsApplied(&self) -> ::windows::core::Result; } @@ -239,7 +239,7 @@ impl ::windows::core::RuntimeName for IWindowsMediaLibrarySharingServices {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWindowsMediaLibrarySharingServices_Vtbl { pub const fn new, Impl: IWindowsMediaLibrarySharingServices_Impl, const OFFSET: isize>() -> IWindowsMediaLibrarySharingServices_Vtbl { - unsafe extern "system" fn showShareMediaCPL, Impl: IWindowsMediaLibrarySharingServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, device: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn showShareMediaCPL, Impl: IWindowsMediaLibrarySharingServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, device: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.showShareMediaCPL(::core::mem::transmute(&device)).into() @@ -260,7 +260,7 @@ impl IWindowsMediaLibrarySharingServices_Vtbl { let this = (*this).get_impl(); this.SetuserHomeMediaSharingState(::core::mem::transmute_copy(&sharingenabled)).into() } - unsafe extern "system" fn userHomeMediaSharingLibraryName, Impl: IWindowsMediaLibrarySharingServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, libraryname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn userHomeMediaSharingLibraryName, Impl: IWindowsMediaLibrarySharingServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, libraryname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.userHomeMediaSharingLibraryName() { @@ -271,7 +271,7 @@ impl IWindowsMediaLibrarySharingServices_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetuserHomeMediaSharingLibraryName, Impl: IWindowsMediaLibrarySharingServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, libraryname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetuserHomeMediaSharingLibraryName, Impl: IWindowsMediaLibrarySharingServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, libraryname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetuserHomeMediaSharingLibraryName(::core::mem::transmute(&libraryname)).into() @@ -324,7 +324,7 @@ impl IWindowsMediaLibrarySharingServices_Vtbl { let this = (*this).get_impl(); this.SetcomputerInternetMediaSharingAllowedState(::core::mem::transmute_copy(&sharingallowed)).into() } - unsafe extern "system" fn internetMediaSharingSecurityGroup, Impl: IWindowsMediaLibrarySharingServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, securitygroup: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn internetMediaSharingSecurityGroup, Impl: IWindowsMediaLibrarySharingServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, securitygroup: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.internetMediaSharingSecurityGroup() { @@ -335,7 +335,7 @@ impl IWindowsMediaLibrarySharingServices_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetinternetMediaSharingSecurityGroup, Impl: IWindowsMediaLibrarySharingServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, securitygroup: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetinternetMediaSharingSecurityGroup, Impl: IWindowsMediaLibrarySharingServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, securitygroup: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetinternetMediaSharingSecurityGroup(::core::mem::transmute(&securitygroup)).into() @@ -356,12 +356,12 @@ impl IWindowsMediaLibrarySharingServices_Vtbl { let this = (*this).get_impl(); this.SetallowSharingToAllDevices(::core::mem::transmute_copy(&sharingenabled)).into() } - unsafe extern "system" fn setDefaultAuthorization, Impl: IWindowsMediaLibrarySharingServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, macaddresses: ::core::mem::ManuallyDrop, friendlyname: ::core::mem::ManuallyDrop, authorization: i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn setDefaultAuthorization, Impl: IWindowsMediaLibrarySharingServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, macaddresses: ::core::mem::ManuallyDrop<::windows::core::BSTR>, friendlyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, authorization: i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.setDefaultAuthorization(::core::mem::transmute(&macaddresses), ::core::mem::transmute(&friendlyname), ::core::mem::transmute_copy(&authorization)).into() } - unsafe extern "system" fn setAuthorizationState, Impl: IWindowsMediaLibrarySharingServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, macaddress: ::core::mem::ManuallyDrop, authorizationstate: i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn setAuthorizationState, Impl: IWindowsMediaLibrarySharingServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, macaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, authorizationstate: i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.setAuthorizationState(::core::mem::transmute(&macaddress), ::core::mem::transmute_copy(&authorizationstate)).into() diff --git a/crates/libs/windows/src/Windows/Win32/Media/LibrarySharingServices/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/LibrarySharingServices/mod.rs index 67870b6187..bf60b14c23 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/LibrarySharingServices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/LibrarySharingServices/mod.rs @@ -4,11 +4,9 @@ pub struct IWindowsMediaLibrarySharingDevice(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWindowsMediaLibrarySharingDevice { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeviceID(&self) -> ::windows::core::Result { + pub unsafe fn DeviceID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DeviceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DeviceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Authorization(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -90,10 +88,7 @@ unsafe impl ::windows::core::Interface for IWindowsMediaLibrarySharingDevice { #[doc(hidden)] pub struct IWindowsMediaLibrarySharingDevice_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub DeviceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeviceID: usize, + pub DeviceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Authorization: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, authorization: *mut WindowsMediaLibrarySharingDeviceAuthorizationStatus) -> ::windows::core::HRESULT, pub SetAuthorization: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, authorization: WindowsMediaLibrarySharingDeviceAuthorizationStatus) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] @@ -117,14 +112,11 @@ impl IWindowsMediaLibrarySharingDeviceProperties { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Count)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetProperty<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetProperty(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetProperty)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -198,9 +190,9 @@ pub struct IWindowsMediaLibrarySharingDeviceProperties_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] get_Item: usize, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: *mut i32) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, property: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, property: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetProperty: usize, } #[doc = "*Required features: `\"Win32_Media_LibrarySharingServices\"`, `\"Win32_System_Com\"`*"] @@ -209,11 +201,9 @@ pub struct IWindowsMediaLibrarySharingDeviceProperties_Vtbl { pub struct IWindowsMediaLibrarySharingDeviceProperty(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWindowsMediaLibrarySharingDeviceProperty { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -288,10 +278,7 @@ unsafe impl ::windows::core::Interface for IWindowsMediaLibrarySharingDeviceProp #[doc(hidden)] pub struct IWindowsMediaLibrarySharingDeviceProperty_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -313,14 +300,11 @@ impl IWindowsMediaLibrarySharingDevices { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Count)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetDevice<'a, P0>(&self, deviceid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetDevice(&self, deviceid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDevice)(::windows::core::Interface::as_raw(self), deviceid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDevice)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(deviceid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -394,9 +378,9 @@ pub struct IWindowsMediaLibrarySharingDevices_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] get_Item: usize, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: *mut i32) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::core::mem::ManuallyDrop, device: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, device: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetDevice: usize, } #[doc = "*Required features: `\"Win32_Media_LibrarySharingServices\"`, `\"Win32_System_Com\"`*"] @@ -405,13 +389,8 @@ pub struct IWindowsMediaLibrarySharingDevices_Vtbl { pub struct IWindowsMediaLibrarySharingServices(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWindowsMediaLibrarySharingServices { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn showShareMediaCPL<'a, P0>(&self, device: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).showShareMediaCPL)(::windows::core::Interface::as_raw(self), device.into().abi()).ok() + pub unsafe fn showShareMediaCPL(&self, device: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).showShareMediaCPL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(device)).ok() } pub unsafe fn userHomeMediaSharingState(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -420,19 +399,12 @@ impl IWindowsMediaLibrarySharingServices { pub unsafe fn SetuserHomeMediaSharingState(&self, sharingenabled: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetuserHomeMediaSharingState)(::windows::core::Interface::as_raw(self), sharingenabled).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn userHomeMediaSharingLibraryName(&self) -> ::windows::core::Result { + pub unsafe fn userHomeMediaSharingLibraryName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).userHomeMediaSharingLibraryName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).userHomeMediaSharingLibraryName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetuserHomeMediaSharingLibraryName<'a, P0>(&self, libraryname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetuserHomeMediaSharingLibraryName)(::windows::core::Interface::as_raw(self), libraryname.into().abi()).ok() + pub unsafe fn SetuserHomeMediaSharingLibraryName(&self, libraryname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetuserHomeMediaSharingLibraryName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(libraryname)).ok() } pub unsafe fn computerHomeMediaSharingAllowedState(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -455,19 +427,12 @@ impl IWindowsMediaLibrarySharingServices { pub unsafe fn SetcomputerInternetMediaSharingAllowedState(&self, sharingallowed: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetcomputerInternetMediaSharingAllowedState)(::windows::core::Interface::as_raw(self), sharingallowed).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn internetMediaSharingSecurityGroup(&self) -> ::windows::core::Result { + pub unsafe fn internetMediaSharingSecurityGroup(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).internetMediaSharingSecurityGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).internetMediaSharingSecurityGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetinternetMediaSharingSecurityGroup<'a, P0>(&self, securitygroup: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetinternetMediaSharingSecurityGroup)(::windows::core::Interface::as_raw(self), securitygroup.into().abi()).ok() + pub unsafe fn SetinternetMediaSharingSecurityGroup(&self, securitygroup: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetinternetMediaSharingSecurityGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(securitygroup)).ok() } pub unsafe fn allowSharingToAllDevices(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -476,22 +441,11 @@ impl IWindowsMediaLibrarySharingServices { pub unsafe fn SetallowSharingToAllDevices(&self, sharingenabled: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetallowSharingToAllDevices)(::windows::core::Interface::as_raw(self), sharingenabled).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn setDefaultAuthorization<'a, P0, P1>(&self, macaddresses: P0, friendlyname: P1, authorization: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).setDefaultAuthorization)(::windows::core::Interface::as_raw(self), macaddresses.into().abi(), friendlyname.into().abi(), authorization).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn setAuthorizationState<'a, P0>(&self, macaddress: P0, authorizationstate: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).setAuthorizationState)(::windows::core::Interface::as_raw(self), macaddress.into().abi(), authorizationstate).ok() + pub unsafe fn setDefaultAuthorization(&self, macaddresses: &::windows::core::BSTR, friendlyname: &::windows::core::BSTR, authorization: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).setDefaultAuthorization)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(macaddresses), ::core::mem::transmute_copy(friendlyname), authorization).ok() + } + pub unsafe fn setAuthorizationState(&self, macaddress: &::windows::core::BSTR, authorizationstate: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).setAuthorizationState)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(macaddress), authorizationstate).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -570,44 +524,23 @@ unsafe impl ::windows::core::Interface for IWindowsMediaLibrarySharingServices { #[doc(hidden)] pub struct IWindowsMediaLibrarySharingServices_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub showShareMediaCPL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, device: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - showShareMediaCPL: usize, + pub showShareMediaCPL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, device: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub userHomeMediaSharingState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sharingenabled: *mut i16) -> ::windows::core::HRESULT, pub SetuserHomeMediaSharingState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sharingenabled: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub userHomeMediaSharingLibraryName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, libraryname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - userHomeMediaSharingLibraryName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetuserHomeMediaSharingLibraryName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, libraryname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetuserHomeMediaSharingLibraryName: usize, + pub userHomeMediaSharingLibraryName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, libraryname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetuserHomeMediaSharingLibraryName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, libraryname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub computerHomeMediaSharingAllowedState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sharingallowed: *mut i16) -> ::windows::core::HRESULT, pub SetcomputerHomeMediaSharingAllowedState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sharingallowed: i16) -> ::windows::core::HRESULT, pub userInternetMediaSharingState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sharingenabled: *mut i16) -> ::windows::core::HRESULT, pub SetuserInternetMediaSharingState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sharingenabled: i16) -> ::windows::core::HRESULT, pub computerInternetMediaSharingAllowedState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sharingallowed: *mut i16) -> ::windows::core::HRESULT, pub SetcomputerInternetMediaSharingAllowedState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sharingallowed: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub internetMediaSharingSecurityGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, securitygroup: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - internetMediaSharingSecurityGroup: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetinternetMediaSharingSecurityGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, securitygroup: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetinternetMediaSharingSecurityGroup: usize, + pub internetMediaSharingSecurityGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, securitygroup: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetinternetMediaSharingSecurityGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, securitygroup: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub allowSharingToAllDevices: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sharingenabled: *mut i16) -> ::windows::core::HRESULT, pub SetallowSharingToAllDevices: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sharingenabled: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub setDefaultAuthorization: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, macaddresses: ::core::mem::ManuallyDrop, friendlyname: ::core::mem::ManuallyDrop, authorization: i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - setDefaultAuthorization: usize, - #[cfg(feature = "Win32_Foundation")] - pub setAuthorizationState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, macaddress: ::core::mem::ManuallyDrop, authorizationstate: i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - setAuthorizationState: usize, + pub setDefaultAuthorization: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, macaddresses: ::core::mem::ManuallyDrop<::windows::core::BSTR>, friendlyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, authorization: i16) -> ::windows::core::HRESULT, + pub setAuthorizationState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, macaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, authorizationstate: i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub getAllDevices: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, devices: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] diff --git a/crates/libs/windows/src/Windows/Win32/Media/MediaFoundation/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/MediaFoundation/impl.rs index 3480c5bc7d..f2b56a69fe 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/MediaFoundation/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/MediaFoundation/impl.rs @@ -5977,17 +5977,14 @@ impl IMFDLNASinkInit_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IMFDRMNetHelper_Impl: Sized { - fn ProcessLicenseRequest(&self, plicenserequest: *const u8, cblicenserequest: u32, pplicenseresponse: *mut *mut u8, pcblicenseresponse: *mut u32, pbstrkid: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ProcessLicenseRequest(&self, plicenserequest: *const u8, cblicenserequest: u32, pplicenseresponse: *mut *mut u8, pcblicenseresponse: *mut u32, pbstrkid: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetChainedLicenseResponse(&self, pplicenseresponse: *mut *mut u8, pcblicenseresponse: *mut u32) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IMFDRMNetHelper {} -#[cfg(feature = "Win32_Foundation")] impl IMFDRMNetHelper_Vtbl { pub const fn new, Impl: IMFDRMNetHelper_Impl, const OFFSET: isize>() -> IMFDRMNetHelper_Vtbl { - unsafe extern "system" fn ProcessLicenseRequest, Impl: IMFDRMNetHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, plicenserequest: *const u8, cblicenserequest: u32, pplicenseresponse: *mut *mut u8, pcblicenseresponse: *mut u32, pbstrkid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ProcessLicenseRequest, Impl: IMFDRMNetHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, plicenserequest: *const u8, cblicenserequest: u32, pplicenseresponse: *mut *mut u8, pcblicenseresponse: *mut u32, pbstrkid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ProcessLicenseRequest(::core::mem::transmute_copy(&plicenserequest), ::core::mem::transmute_copy(&cblicenserequest), ::core::mem::transmute_copy(&pplicenseresponse), ::core::mem::transmute_copy(&pcblicenseresponse), ::core::mem::transmute_copy(&pbstrkid)).into() @@ -6663,16 +6660,13 @@ impl IMFExtendedCameraIntrinsicsDistortionModelArcTan_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IMFExtendedDRMTypeSupport_Impl: Sized { - fn IsTypeSupportedEx(&self, r#type: &super::super::Foundation::BSTR, keysystem: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn IsTypeSupportedEx(&self, r#type: &::windows::core::BSTR, keysystem: &::windows::core::BSTR) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IMFExtendedDRMTypeSupport {} -#[cfg(feature = "Win32_Foundation")] impl IMFExtendedDRMTypeSupport_Vtbl { pub const fn new, Impl: IMFExtendedDRMTypeSupport_Impl, const OFFSET: isize>() -> IMFExtendedDRMTypeSupport_Vtbl { - unsafe extern "system" fn IsTypeSupportedEx, Impl: IMFExtendedDRMTypeSupport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, r#type: ::core::mem::ManuallyDrop, keysystem: ::core::mem::ManuallyDrop, panswer: *mut MF_MEDIA_ENGINE_CANPLAY) -> ::windows::core::HRESULT { + unsafe extern "system" fn IsTypeSupportedEx, Impl: IMFExtendedDRMTypeSupport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, r#type: ::core::mem::ManuallyDrop<::windows::core::BSTR>, keysystem: ::core::mem::ManuallyDrop<::windows::core::BSTR>, panswer: *mut MF_MEDIA_ENGINE_CANPLAY) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.IsTypeSupportedEx(::core::mem::transmute(&r#type), ::core::mem::transmute(&keysystem)) { @@ -7012,15 +7006,12 @@ impl IMFHttpDownloadSessionProvider_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IMFImageSharingEngine_Impl: Sized { fn SetSource(&self, pstream: &::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result<()>; fn GetDevice(&self) -> ::windows::core::Result; fn Shutdown(&self) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IMFImageSharingEngine {} -#[cfg(feature = "Win32_Foundation")] impl IMFImageSharingEngine_Vtbl { pub const fn new, Impl: IMFImageSharingEngine_Impl, const OFFSET: isize>() -> IMFImageSharingEngine_Vtbl { unsafe extern "system" fn SetSource, Impl: IMFImageSharingEngine_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstream: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -7055,16 +7046,13 @@ impl IMFImageSharingEngine_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IMFImageSharingEngineClassFactory_Impl: Sized { - fn CreateInstanceFromUDN(&self, puniquedevicename: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn CreateInstanceFromUDN(&self, puniquedevicename: &::windows::core::BSTR) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IMFImageSharingEngineClassFactory {} -#[cfg(feature = "Win32_Foundation")] impl IMFImageSharingEngineClassFactory_Vtbl { pub const fn new, Impl: IMFImageSharingEngineClassFactory_Impl, const OFFSET: isize>() -> IMFImageSharingEngineClassFactory_Vtbl { - unsafe extern "system" fn CreateInstanceFromUDN, Impl: IMFImageSharingEngineClassFactory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, puniquedevicename: ::core::mem::ManuallyDrop, ppengine: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateInstanceFromUDN, Impl: IMFImageSharingEngineClassFactory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, puniquedevicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppengine: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateInstanceFromUDN(::core::mem::transmute(&puniquedevicename)) { @@ -7230,14 +7218,14 @@ pub trait IMFMediaEngine_Impl: Sized { fn GetError(&self) -> ::windows::core::Result; fn SetErrorCode(&self, error: MF_MEDIA_ENGINE_ERR) -> ::windows::core::Result<()>; fn SetSourceElements(&self, psrcelements: &::core::option::Option) -> ::windows::core::Result<()>; - fn SetSource(&self, purl: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetCurrentSource(&self) -> ::windows::core::Result; + fn SetSource(&self, purl: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetCurrentSource(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetNetworkState(&self) -> u16; fn GetPreload(&self) -> MF_MEDIA_ENGINE_PRELOAD; fn SetPreload(&self, preload: MF_MEDIA_ENGINE_PRELOAD) -> ::windows::core::Result<()>; fn GetBuffered(&self) -> ::windows::core::Result; fn Load(&self) -> ::windows::core::Result<()>; - fn CanPlayType(&self, r#type: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn CanPlayType(&self, r#type: &::windows::core::BSTR) -> ::windows::core::Result; fn GetReadyState(&self) -> u16; fn IsSeeking(&self) -> super::super::Foundation::BOOL; fn GetCurrentTime(&self) -> f64; @@ -7296,12 +7284,12 @@ impl IMFMediaEngine_Vtbl { let this = (*this).get_impl(); this.SetSourceElements(::core::mem::transmute(&psrcelements)).into() } - unsafe extern "system" fn SetSource, Impl: IMFMediaEngine_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, purl: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSource, Impl: IMFMediaEngine_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, purl: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSource(::core::mem::transmute(&purl)).into() } - unsafe extern "system" fn GetCurrentSource, Impl: IMFMediaEngine_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCurrentSource, Impl: IMFMediaEngine_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCurrentSource() { @@ -7343,7 +7331,7 @@ impl IMFMediaEngine_Vtbl { let this = (*this).get_impl(); this.Load().into() } - unsafe extern "system" fn CanPlayType, Impl: IMFMediaEngine_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, r#type: ::core::mem::ManuallyDrop, panswer: *mut MF_MEDIA_ENGINE_CANPLAY) -> ::windows::core::HRESULT { + unsafe extern "system" fn CanPlayType, Impl: IMFMediaEngine_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, r#type: ::core::mem::ManuallyDrop<::windows::core::BSTR>, panswer: *mut MF_MEDIA_ENGINE_CANPLAY) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CanPlayType(::core::mem::transmute(&r#type)) { @@ -7662,16 +7650,13 @@ impl IMFMediaEngineClassFactory_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IMFMediaEngineClassFactory2_Impl: Sized { - fn CreateMediaKeys2(&self, keysystem: &super::super::Foundation::BSTR, defaultcdmstorepath: &super::super::Foundation::BSTR, inprivatecdmstorepath: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn CreateMediaKeys2(&self, keysystem: &::windows::core::BSTR, defaultcdmstorepath: &::windows::core::BSTR, inprivatecdmstorepath: &::windows::core::BSTR) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IMFMediaEngineClassFactory2 {} -#[cfg(feature = "Win32_Foundation")] impl IMFMediaEngineClassFactory2_Vtbl { pub const fn new, Impl: IMFMediaEngineClassFactory2_Impl, const OFFSET: isize>() -> IMFMediaEngineClassFactory2_Vtbl { - unsafe extern "system" fn CreateMediaKeys2, Impl: IMFMediaEngineClassFactory2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, keysystem: ::core::mem::ManuallyDrop, defaultcdmstorepath: ::core::mem::ManuallyDrop, inprivatecdmstorepath: ::core::mem::ManuallyDrop, ppkeys: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateMediaKeys2, Impl: IMFMediaEngineClassFactory2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, keysystem: ::core::mem::ManuallyDrop<::windows::core::BSTR>, defaultcdmstorepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, inprivatecdmstorepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppkeys: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateMediaKeys2(::core::mem::transmute(&keysystem), ::core::mem::transmute(&defaultcdmstorepath), ::core::mem::transmute(&inprivatecdmstorepath)) { @@ -7688,16 +7673,16 @@ impl IMFMediaEngineClassFactory2_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_PropertiesSystem"))] +#[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub trait IMFMediaEngineClassFactory3_Impl: Sized { - fn CreateMediaKeySystemAccess(&self, keysystem: &super::super::Foundation::BSTR, ppsupportedconfigurationsarray: *const ::core::option::Option, usize: u32) -> ::windows::core::Result; + fn CreateMediaKeySystemAccess(&self, keysystem: &::windows::core::BSTR, ppsupportedconfigurationsarray: *const ::core::option::Option, usize: u32) -> ::windows::core::Result; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_PropertiesSystem"))] +#[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl ::windows::core::RuntimeName for IMFMediaEngineClassFactory3 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_PropertiesSystem"))] +#[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IMFMediaEngineClassFactory3_Vtbl { pub const fn new, Impl: IMFMediaEngineClassFactory3_Impl, const OFFSET: isize>() -> IMFMediaEngineClassFactory3_Vtbl { - unsafe extern "system" fn CreateMediaKeySystemAccess, Impl: IMFMediaEngineClassFactory3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, keysystem: ::core::mem::ManuallyDrop, ppsupportedconfigurationsarray: *const *mut ::core::ffi::c_void, usize: u32, ppkeyaccess: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateMediaKeySystemAccess, Impl: IMFMediaEngineClassFactory3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, keysystem: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppsupportedconfigurationsarray: *const *mut ::core::ffi::c_void, usize: u32, ppkeyaccess: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateMediaKeySystemAccess(::core::mem::transmute(&keysystem), ::core::mem::transmute_copy(&ppsupportedconfigurationsarray), ::core::mem::transmute_copy(&usize)) { @@ -7740,8 +7725,8 @@ impl IMFMediaEngineClassFactory4_Vtbl { #[cfg(feature = "Win32_Foundation")] pub trait IMFMediaEngineClassFactoryEx_Impl: Sized + IMFMediaEngineClassFactory_Impl { fn CreateMediaSourceExtension(&self, dwflags: u32, pattr: &::core::option::Option) -> ::windows::core::Result; - fn CreateMediaKeys(&self, keysystem: &super::super::Foundation::BSTR, cdmstorepath: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn IsTypeSupported(&self, r#type: &super::super::Foundation::BSTR, keysystem: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn CreateMediaKeys(&self, keysystem: &::windows::core::BSTR, cdmstorepath: &::windows::core::BSTR) -> ::windows::core::Result; + fn IsTypeSupported(&self, r#type: &::windows::core::BSTR, keysystem: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IMFMediaEngineClassFactoryEx {} @@ -7759,7 +7744,7 @@ impl IMFMediaEngineClassFactoryEx_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateMediaKeys, Impl: IMFMediaEngineClassFactoryEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, keysystem: ::core::mem::ManuallyDrop, cdmstorepath: ::core::mem::ManuallyDrop, ppkeys: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateMediaKeys, Impl: IMFMediaEngineClassFactoryEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, keysystem: ::core::mem::ManuallyDrop<::windows::core::BSTR>, cdmstorepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppkeys: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateMediaKeys(::core::mem::transmute(&keysystem), ::core::mem::transmute(&cdmstorepath)) { @@ -7770,7 +7755,7 @@ impl IMFMediaEngineClassFactoryEx_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn IsTypeSupported, Impl: IMFMediaEngineClassFactoryEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, r#type: ::core::mem::ManuallyDrop, keysystem: ::core::mem::ManuallyDrop, issupported: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT { + unsafe extern "system" fn IsTypeSupported, Impl: IMFMediaEngineClassFactoryEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, r#type: ::core::mem::ManuallyDrop<::windows::core::BSTR>, keysystem: ::core::mem::ManuallyDrop<::windows::core::BSTR>, issupported: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.IsTypeSupported(::core::mem::transmute(&r#type), ::core::mem::transmute(&keysystem)) { @@ -7825,17 +7810,14 @@ impl IMFMediaEngineEME_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IMFMediaEngineEMENotify_Impl: Sized { - fn Encrypted(&self, pbinitdata: *const u8, cb: u32, bstrinitdatatype: &super::super::Foundation::BSTR); + fn Encrypted(&self, pbinitdata: *const u8, cb: u32, bstrinitdatatype: &::windows::core::BSTR); fn WaitingForKey(&self); } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IMFMediaEngineEMENotify {} -#[cfg(feature = "Win32_Foundation")] impl IMFMediaEngineEMENotify_Vtbl { pub const fn new, Impl: IMFMediaEngineEMENotify_Impl, const OFFSET: isize>() -> IMFMediaEngineEMENotify_Vtbl { - unsafe extern "system" fn Encrypted, Impl: IMFMediaEngineEMENotify_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbinitdata: *const u8, cb: u32, bstrinitdatatype: ::core::mem::ManuallyDrop) { + unsafe extern "system" fn Encrypted, Impl: IMFMediaEngineEMENotify_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbinitdata: *const u8, cb: u32, bstrinitdatatype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Encrypted(::core::mem::transmute_copy(&pbinitdata), ::core::mem::transmute_copy(&cb), ::core::mem::transmute(&bstrinitdatatype)) @@ -7857,7 +7839,7 @@ impl IMFMediaEngineEMENotify_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] pub trait IMFMediaEngineEx_Impl: Sized + IMFMediaEngine_Impl { - fn SetSourceFromByteStream(&self, pbytestream: &::core::option::Option, purl: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetSourceFromByteStream(&self, pbytestream: &::core::option::Option, purl: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetStatistics(&self, statisticid: MF_MEDIA_ENGINE_STATISTIC) -> ::windows::core::Result; fn UpdateVideoStream(&self, psrc: *const MFVideoNormalizedRect, pdst: *const super::super::Foundation::RECT, pborderclr: *const MFARGB) -> ::windows::core::Result<()>; fn GetBalance(&self) -> f64; @@ -7900,7 +7882,7 @@ impl ::windows::core::RuntimeName for IMFMediaEngineEx {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] impl IMFMediaEngineEx_Vtbl { pub const fn new, Impl: IMFMediaEngineEx_Impl, const OFFSET: isize>() -> IMFMediaEngineEx_Vtbl { - unsafe extern "system" fn SetSourceFromByteStream, Impl: IMFMediaEngineEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbytestream: *mut ::core::ffi::c_void, purl: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSourceFromByteStream, Impl: IMFMediaEngineEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbytestream: *mut ::core::ffi::c_void, purl: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSourceFromByteStream(::core::mem::transmute(&pbytestream), ::core::mem::transmute(&purl)).into() @@ -8216,8 +8198,8 @@ impl IMFMediaEngineEx_Vtbl { } #[cfg(feature = "Win32_Foundation")] pub trait IMFMediaEngineExtension_Impl: Sized { - fn CanPlayType(&self, audioonly: super::super::Foundation::BOOL, mimetype: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn BeginCreateObject(&self, bstrurl: &super::super::Foundation::BSTR, pbytestream: &::core::option::Option, r#type: MF_OBJECT_TYPE, ppiunknowncancelcookie: *mut ::core::option::Option<::windows::core::IUnknown>, pcallback: &::core::option::Option, punkstate: &::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result<()>; + fn CanPlayType(&self, audioonly: super::super::Foundation::BOOL, mimetype: &::windows::core::BSTR) -> ::windows::core::Result; + fn BeginCreateObject(&self, bstrurl: &::windows::core::BSTR, pbytestream: &::core::option::Option, r#type: MF_OBJECT_TYPE, ppiunknowncancelcookie: *mut ::core::option::Option<::windows::core::IUnknown>, pcallback: &::core::option::Option, punkstate: &::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result<()>; fn CancelObjectCreation(&self, piunknowncancelcookie: &::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result<()>; fn EndCreateObject(&self, presult: &::core::option::Option) -> ::windows::core::Result<::windows::core::IUnknown>; } @@ -8226,7 +8208,7 @@ impl ::windows::core::RuntimeName for IMFMediaEngineExtension {} #[cfg(feature = "Win32_Foundation")] impl IMFMediaEngineExtension_Vtbl { pub const fn new, Impl: IMFMediaEngineExtension_Impl, const OFFSET: isize>() -> IMFMediaEngineExtension_Vtbl { - unsafe extern "system" fn CanPlayType, Impl: IMFMediaEngineExtension_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, audioonly: super::super::Foundation::BOOL, mimetype: ::core::mem::ManuallyDrop, panswer: *mut MF_MEDIA_ENGINE_CANPLAY) -> ::windows::core::HRESULT { + unsafe extern "system" fn CanPlayType, Impl: IMFMediaEngineExtension_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, audioonly: super::super::Foundation::BOOL, mimetype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, panswer: *mut MF_MEDIA_ENGINE_CANPLAY) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CanPlayType(::core::mem::transmute_copy(&audioonly), ::core::mem::transmute(&mimetype)) { @@ -8237,7 +8219,7 @@ impl IMFMediaEngineExtension_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn BeginCreateObject, Impl: IMFMediaEngineExtension_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop, pbytestream: *mut ::core::ffi::c_void, r#type: MF_OBJECT_TYPE, ppiunknowncancelcookie: *mut *mut ::core::ffi::c_void, pcallback: *mut ::core::ffi::c_void, punkstate: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn BeginCreateObject, Impl: IMFMediaEngineExtension_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbytestream: *mut ::core::ffi::c_void, r#type: MF_OBJECT_TYPE, ppiunknowncancelcookie: *mut *mut ::core::ffi::c_void, pcallback: *mut ::core::ffi::c_void, punkstate: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.BeginCreateObject(::core::mem::transmute(&bstrurl), ::core::mem::transmute(&pbytestream), ::core::mem::transmute_copy(&r#type), ::core::mem::transmute_copy(&ppiunknowncancelcookie), ::core::mem::transmute(&pcallback), ::core::mem::transmute(&punkstate)).into() @@ -8394,18 +8376,15 @@ impl IMFMediaEngineProtectedContent_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IMFMediaEngineSrcElements_Impl: Sized { fn GetLength(&self) -> u32; - fn GetURL(&self, index: u32) -> ::windows::core::Result; - fn GetType(&self, index: u32) -> ::windows::core::Result; - fn GetMedia(&self, index: u32) -> ::windows::core::Result; - fn AddElement(&self, purl: &super::super::Foundation::BSTR, ptype: &super::super::Foundation::BSTR, pmedia: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetURL(&self, index: u32) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetType(&self, index: u32) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetMedia(&self, index: u32) -> ::windows::core::Result<::windows::core::BSTR>; + fn AddElement(&self, purl: &::windows::core::BSTR, ptype: &::windows::core::BSTR, pmedia: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn RemoveAllElements(&self) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IMFMediaEngineSrcElements {} -#[cfg(feature = "Win32_Foundation")] impl IMFMediaEngineSrcElements_Vtbl { pub const fn new, Impl: IMFMediaEngineSrcElements_Impl, const OFFSET: isize>() -> IMFMediaEngineSrcElements_Vtbl { unsafe extern "system" fn GetLength, Impl: IMFMediaEngineSrcElements_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> u32 { @@ -8413,7 +8392,7 @@ impl IMFMediaEngineSrcElements_Vtbl { let this = (*this).get_impl(); this.GetLength() } - unsafe extern "system" fn GetURL, Impl: IMFMediaEngineSrcElements_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: u32, purl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetURL, Impl: IMFMediaEngineSrcElements_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: u32, purl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetURL(::core::mem::transmute_copy(&index)) { @@ -8424,7 +8403,7 @@ impl IMFMediaEngineSrcElements_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetType, Impl: IMFMediaEngineSrcElements_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: u32, ptype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetType, Impl: IMFMediaEngineSrcElements_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: u32, ptype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetType(::core::mem::transmute_copy(&index)) { @@ -8435,7 +8414,7 @@ impl IMFMediaEngineSrcElements_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetMedia, Impl: IMFMediaEngineSrcElements_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: u32, pmedia: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetMedia, Impl: IMFMediaEngineSrcElements_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: u32, pmedia: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetMedia(::core::mem::transmute_copy(&index)) { @@ -8446,7 +8425,7 @@ impl IMFMediaEngineSrcElements_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AddElement, Impl: IMFMediaEngineSrcElements_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, purl: ::core::mem::ManuallyDrop, ptype: ::core::mem::ManuallyDrop, pmedia: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddElement, Impl: IMFMediaEngineSrcElements_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, purl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ptype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pmedia: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddElement(::core::mem::transmute(&purl), ::core::mem::transmute(&ptype), ::core::mem::transmute(&pmedia)).into() @@ -8470,22 +8449,19 @@ impl IMFMediaEngineSrcElements_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IMFMediaEngineSrcElementsEx_Impl: Sized + IMFMediaEngineSrcElements_Impl { - fn AddElementEx(&self, purl: &super::super::Foundation::BSTR, ptype: &super::super::Foundation::BSTR, pmedia: &super::super::Foundation::BSTR, keysystem: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetKeySystem(&self, index: u32) -> ::windows::core::Result; + fn AddElementEx(&self, purl: &::windows::core::BSTR, ptype: &::windows::core::BSTR, pmedia: &::windows::core::BSTR, keysystem: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetKeySystem(&self, index: u32) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IMFMediaEngineSrcElementsEx {} -#[cfg(feature = "Win32_Foundation")] impl IMFMediaEngineSrcElementsEx_Vtbl { pub const fn new, Impl: IMFMediaEngineSrcElementsEx_Impl, const OFFSET: isize>() -> IMFMediaEngineSrcElementsEx_Vtbl { - unsafe extern "system" fn AddElementEx, Impl: IMFMediaEngineSrcElementsEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, purl: ::core::mem::ManuallyDrop, ptype: ::core::mem::ManuallyDrop, pmedia: ::core::mem::ManuallyDrop, keysystem: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddElementEx, Impl: IMFMediaEngineSrcElementsEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, purl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ptype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pmedia: ::core::mem::ManuallyDrop<::windows::core::BSTR>, keysystem: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddElementEx(::core::mem::transmute(&purl), ::core::mem::transmute(&ptype), ::core::mem::transmute(&pmedia), ::core::mem::transmute(&keysystem)).into() } - unsafe extern "system" fn GetKeySystem, Impl: IMFMediaEngineSrcElementsEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: u32, ptype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetKeySystem, Impl: IMFMediaEngineSrcElementsEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: u32, ptype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetKeySystem(::core::mem::transmute_copy(&index)) { @@ -8854,17 +8830,14 @@ impl IMFMediaEventQueue_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IMFMediaKeySession_Impl: Sized { fn GetError(&self, code: *mut u16, systemcode: *mut u32) -> ::windows::core::Result<()>; - fn KeySystem(&self) -> ::windows::core::Result; - fn SessionId(&self) -> ::windows::core::Result; + fn KeySystem(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SessionId(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Update(&self, key: *const u8, cb: u32) -> ::windows::core::Result<()>; fn Close(&self) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IMFMediaKeySession {} -#[cfg(feature = "Win32_Foundation")] impl IMFMediaKeySession_Vtbl { pub const fn new, Impl: IMFMediaKeySession_Impl, const OFFSET: isize>() -> IMFMediaKeySession_Vtbl { unsafe extern "system" fn GetError, Impl: IMFMediaKeySession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, code: *mut u16, systemcode: *mut u32) -> ::windows::core::HRESULT { @@ -8872,7 +8845,7 @@ impl IMFMediaKeySession_Vtbl { let this = (*this).get_impl(); this.GetError(::core::mem::transmute_copy(&code), ::core::mem::transmute_copy(&systemcode)).into() } - unsafe extern "system" fn KeySystem, Impl: IMFMediaKeySession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, keysystem: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn KeySystem, Impl: IMFMediaKeySession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, keysystem: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.KeySystem() { @@ -8883,7 +8856,7 @@ impl IMFMediaKeySession_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SessionId, Impl: IMFMediaKeySession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sessionid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SessionId, Impl: IMFMediaKeySession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sessionid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SessionId() { @@ -8920,8 +8893,8 @@ impl IMFMediaKeySession_Vtbl { #[cfg(feature = "Win32_Foundation")] pub trait IMFMediaKeySession2_Impl: Sized + IMFMediaKeySession_Impl { fn get_KeyStatuses(&self, pkeystatusesarray: *mut *mut MFMediaKeyStatus, pusize: *mut u32) -> ::windows::core::Result<()>; - fn Load(&self, bstrsessionid: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GenerateRequest(&self, initdatatype: &super::super::Foundation::BSTR, pbinitdata: *const u8, cb: u32) -> ::windows::core::Result<()>; + fn Load(&self, bstrsessionid: &::windows::core::BSTR) -> ::windows::core::Result; + fn GenerateRequest(&self, initdatatype: &::windows::core::BSTR, pbinitdata: *const u8, cb: u32) -> ::windows::core::Result<()>; fn Expiration(&self) -> ::windows::core::Result; fn Remove(&self) -> ::windows::core::Result<()>; fn Shutdown(&self) -> ::windows::core::Result<()>; @@ -8936,7 +8909,7 @@ impl IMFMediaKeySession2_Vtbl { let this = (*this).get_impl(); this.get_KeyStatuses(::core::mem::transmute_copy(&pkeystatusesarray), ::core::mem::transmute_copy(&pusize)).into() } - unsafe extern "system" fn Load, Impl: IMFMediaKeySession2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsessionid: ::core::mem::ManuallyDrop, pfloaded: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT { + unsafe extern "system" fn Load, Impl: IMFMediaKeySession2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsessionid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfloaded: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Load(::core::mem::transmute(&bstrsessionid)) { @@ -8947,7 +8920,7 @@ impl IMFMediaKeySession2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GenerateRequest, Impl: IMFMediaKeySession2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, initdatatype: ::core::mem::ManuallyDrop, pbinitdata: *const u8, cb: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GenerateRequest, Impl: IMFMediaKeySession2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, initdatatype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbinitdata: *const u8, cb: u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GenerateRequest(::core::mem::transmute(&initdatatype), ::core::mem::transmute_copy(&pbinitdata), ::core::mem::transmute_copy(&cb)).into() @@ -8987,18 +8960,15 @@ impl IMFMediaKeySession2_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IMFMediaKeySessionNotify_Impl: Sized { - fn KeyMessage(&self, destinationurl: &super::super::Foundation::BSTR, message: *const u8, cb: u32); + fn KeyMessage(&self, destinationurl: &::windows::core::BSTR, message: *const u8, cb: u32); fn KeyAdded(&self); fn KeyError(&self, code: u16, systemcode: u32); } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IMFMediaKeySessionNotify {} -#[cfg(feature = "Win32_Foundation")] impl IMFMediaKeySessionNotify_Vtbl { pub const fn new, Impl: IMFMediaKeySessionNotify_Impl, const OFFSET: isize>() -> IMFMediaKeySessionNotify_Vtbl { - unsafe extern "system" fn KeyMessage, Impl: IMFMediaKeySessionNotify_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, destinationurl: ::core::mem::ManuallyDrop, message: *const u8, cb: u32) { + unsafe extern "system" fn KeyMessage, Impl: IMFMediaKeySessionNotify_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, destinationurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, message: *const u8, cb: u32) { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.KeyMessage(::core::mem::transmute(&destinationurl), ::core::mem::transmute_copy(&message), ::core::mem::transmute_copy(&cb)) @@ -9024,17 +8994,14 @@ impl IMFMediaKeySessionNotify_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IMFMediaKeySessionNotify2_Impl: Sized + IMFMediaKeySessionNotify_Impl { - fn KeyMessage2(&self, emessagetype: MF_MEDIAKEYSESSION_MESSAGETYPE, destinationurl: &super::super::Foundation::BSTR, pbmessage: *const u8, cbmessage: u32); + fn KeyMessage2(&self, emessagetype: MF_MEDIAKEYSESSION_MESSAGETYPE, destinationurl: &::windows::core::BSTR, pbmessage: *const u8, cbmessage: u32); fn KeyStatusChange(&self); } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IMFMediaKeySessionNotify2 {} -#[cfg(feature = "Win32_Foundation")] impl IMFMediaKeySessionNotify2_Vtbl { pub const fn new, Impl: IMFMediaKeySessionNotify2_Impl, const OFFSET: isize>() -> IMFMediaKeySessionNotify2_Vtbl { - unsafe extern "system" fn KeyMessage2, Impl: IMFMediaKeySessionNotify2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, emessagetype: MF_MEDIAKEYSESSION_MESSAGETYPE, destinationurl: ::core::mem::ManuallyDrop, pbmessage: *const u8, cbmessage: u32) { + unsafe extern "system" fn KeyMessage2, Impl: IMFMediaKeySessionNotify2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, emessagetype: MF_MEDIAKEYSESSION_MESSAGETYPE, destinationurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbmessage: *const u8, cbmessage: u32) { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.KeyMessage2(::core::mem::transmute_copy(&emessagetype), ::core::mem::transmute(&destinationurl), ::core::mem::transmute_copy(&pbmessage), ::core::mem::transmute_copy(&cbmessage)) @@ -9054,15 +9021,15 @@ impl IMFMediaKeySessionNotify2_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_PropertiesSystem"))] +#[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] pub trait IMFMediaKeySystemAccess_Impl: Sized { fn CreateMediaKeys(&self, pcdmcustomconfig: &::core::option::Option) -> ::windows::core::Result; fn SupportedConfiguration(&self) -> ::windows::core::Result; - fn KeySystem(&self) -> ::windows::core::Result; + fn KeySystem(&self) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_PropertiesSystem"))] +#[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl ::windows::core::RuntimeName for IMFMediaKeySystemAccess {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_PropertiesSystem"))] +#[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] impl IMFMediaKeySystemAccess_Vtbl { pub const fn new, Impl: IMFMediaKeySystemAccess_Impl, const OFFSET: isize>() -> IMFMediaKeySystemAccess_Vtbl { unsafe extern "system" fn CreateMediaKeys, Impl: IMFMediaKeySystemAccess_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcdmcustomconfig: *mut ::core::ffi::c_void, ppkeys: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -9087,7 +9054,7 @@ impl IMFMediaKeySystemAccess_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn KeySystem, Impl: IMFMediaKeySystemAccess_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pkeysystem: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn KeySystem, Impl: IMFMediaKeySystemAccess_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pkeysystem: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.KeySystem() { @@ -9109,19 +9076,16 @@ impl IMFMediaKeySystemAccess_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IMFMediaKeys_Impl: Sized { - fn CreateSession(&self, mimetype: &super::super::Foundation::BSTR, initdata: *const u8, cb: u32, customdata: *const u8, cbcustomdata: u32, notify: &::core::option::Option) -> ::windows::core::Result; - fn KeySystem(&self) -> ::windows::core::Result; + fn CreateSession(&self, mimetype: &::windows::core::BSTR, initdata: *const u8, cb: u32, customdata: *const u8, cbcustomdata: u32, notify: &::core::option::Option) -> ::windows::core::Result; + fn KeySystem(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Shutdown(&self) -> ::windows::core::Result<()>; fn GetSuspendNotify(&self) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IMFMediaKeys {} -#[cfg(feature = "Win32_Foundation")] impl IMFMediaKeys_Vtbl { pub const fn new, Impl: IMFMediaKeys_Impl, const OFFSET: isize>() -> IMFMediaKeys_Vtbl { - unsafe extern "system" fn CreateSession, Impl: IMFMediaKeys_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mimetype: ::core::mem::ManuallyDrop, initdata: *const u8, cb: u32, customdata: *const u8, cbcustomdata: u32, notify: *mut ::core::ffi::c_void, ppsession: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateSession, Impl: IMFMediaKeys_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mimetype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, initdata: *const u8, cb: u32, customdata: *const u8, cbcustomdata: u32, notify: *mut ::core::ffi::c_void, ppsession: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateSession(::core::mem::transmute(&mimetype), ::core::mem::transmute_copy(&initdata), ::core::mem::transmute_copy(&cb), ::core::mem::transmute_copy(&customdata), ::core::mem::transmute_copy(&cbcustomdata), ::core::mem::transmute(¬ify)) { @@ -9132,7 +9096,7 @@ impl IMFMediaKeys_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn KeySystem, Impl: IMFMediaKeys_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, keysystem: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn KeySystem, Impl: IMFMediaKeys_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, keysystem: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.KeySystem() { @@ -9171,15 +9135,12 @@ impl IMFMediaKeys_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IMFMediaKeys2_Impl: Sized + IMFMediaKeys_Impl { fn CreateSession2(&self, esessiontype: MF_MEDIAKEYSESSION_TYPE, pmfmediakeysessionnotify2: &::core::option::Option) -> ::windows::core::Result; fn SetServerCertificate(&self, pbservercertificate: *const u8, cb: u32) -> ::windows::core::Result<()>; fn GetDOMException(&self, systemcode: ::windows::core::HRESULT) -> ::windows::core::Result<::windows::core::HRESULT>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IMFMediaKeys2 {} -#[cfg(feature = "Win32_Foundation")] impl IMFMediaKeys2_Vtbl { pub const fn new, Impl: IMFMediaKeys2_Impl, const OFFSET: isize>() -> IMFMediaKeys2_Vtbl { unsafe extern "system" fn CreateSession2, Impl: IMFMediaKeys2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, esessiontype: MF_MEDIAKEYSESSION_TYPE, pmfmediakeysessionnotify2: *mut ::core::ffi::c_void, ppsession: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -9648,10 +9609,10 @@ pub trait IMFMediaSourceExtension_Impl: Sized { fn GetReadyState(&self) -> MF_MSE_READY; fn GetDuration(&self) -> f64; fn SetDuration(&self, duration: f64) -> ::windows::core::Result<()>; - fn AddSourceBuffer(&self, r#type: &super::super::Foundation::BSTR, pnotify: &::core::option::Option) -> ::windows::core::Result; + fn AddSourceBuffer(&self, r#type: &::windows::core::BSTR, pnotify: &::core::option::Option) -> ::windows::core::Result; fn RemoveSourceBuffer(&self, psourcebuffer: &::core::option::Option) -> ::windows::core::Result<()>; fn SetEndOfStream(&self, error: MF_MSE_ERROR) -> ::windows::core::Result<()>; - fn IsTypeSupported(&self, r#type: &super::super::Foundation::BSTR) -> super::super::Foundation::BOOL; + fn IsTypeSupported(&self, r#type: &::windows::core::BSTR) -> super::super::Foundation::BOOL; fn GetSourceBuffer(&self, dwstreamindex: u32) -> ::core::option::Option; } #[cfg(feature = "Win32_Foundation")] @@ -9684,7 +9645,7 @@ impl IMFMediaSourceExtension_Vtbl { let this = (*this).get_impl(); this.SetDuration(::core::mem::transmute_copy(&duration)).into() } - unsafe extern "system" fn AddSourceBuffer, Impl: IMFMediaSourceExtension_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, r#type: ::core::mem::ManuallyDrop, pnotify: *mut ::core::ffi::c_void, ppsourcebuffer: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddSourceBuffer, Impl: IMFMediaSourceExtension_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, r#type: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pnotify: *mut ::core::ffi::c_void, ppsourcebuffer: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AddSourceBuffer(::core::mem::transmute(&r#type), ::core::mem::transmute(&pnotify)) { @@ -9705,7 +9666,7 @@ impl IMFMediaSourceExtension_Vtbl { let this = (*this).get_impl(); this.SetEndOfStream(::core::mem::transmute_copy(&error)).into() } - unsafe extern "system" fn IsTypeSupported, Impl: IMFMediaSourceExtension_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, r#type: ::core::mem::ManuallyDrop) -> super::super::Foundation::BOOL { + unsafe extern "system" fn IsTypeSupported, Impl: IMFMediaSourceExtension_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, r#type: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> super::super::Foundation::BOOL { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.IsTypeSupported(::core::mem::transmute(&r#type)) diff --git a/crates/libs/windows/src/Windows/Win32/Media/MediaFoundation/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/MediaFoundation/mod.rs index bc4cb87542..35964523b5 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/MediaFoundation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/MediaFoundation/mod.rs @@ -15295,9 +15295,7 @@ pub struct IMFDLNASinkInit_Vtbl { #[repr(transparent)] pub struct IMFDRMNetHelper(::windows::core::IUnknown); impl IMFDRMNetHelper { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ProcessLicenseRequest(&self, plicenserequest: &[u8], pplicenseresponse: *mut *mut u8, pcblicenseresponse: &mut u32, pbstrkid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn ProcessLicenseRequest(&self, plicenserequest: &[u8], pplicenseresponse: *mut *mut u8, pcblicenseresponse: &mut u32, pbstrkid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ProcessLicenseRequest)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(plicenserequest.as_ptr()), plicenserequest.len() as _, ::core::mem::transmute(pplicenseresponse), ::core::mem::transmute(pcblicenseresponse), ::core::mem::transmute(pbstrkid)).ok() } pub unsafe fn GetChainedLicenseResponse(&self, pplicenseresponse: *mut *mut u8, pcblicenseresponse: &mut u32) -> ::windows::core::Result<()> { @@ -15343,10 +15341,7 @@ unsafe impl ::windows::core::Interface for IMFDRMNetHelper { #[doc(hidden)] pub struct IMFDRMNetHelper_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub ProcessLicenseRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plicenserequest: *const u8, cblicenserequest: u32, pplicenseresponse: *mut *mut u8, pcblicenseresponse: *mut u32, pbstrkid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ProcessLicenseRequest: usize, + pub ProcessLicenseRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plicenserequest: *const u8, cblicenserequest: u32, pplicenseresponse: *mut *mut u8, pcblicenseresponse: *mut u32, pbstrkid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetChainedLicenseResponse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pplicenseresponse: *mut *mut u8, pcblicenseresponse: *mut u32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`*"] @@ -16210,15 +16205,9 @@ pub struct IMFExtendedCameraIntrinsicsDistortionModelArcTan_Vtbl { #[repr(transparent)] pub struct IMFExtendedDRMTypeSupport(::windows::core::IUnknown); impl IMFExtendedDRMTypeSupport { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsTypeSupportedEx<'a, P0, P1>(&self, r#type: P0, keysystem: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsTypeSupportedEx(&self, r#type: &::windows::core::BSTR, keysystem: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).IsTypeSupportedEx)(::windows::core::Interface::as_raw(self), r#type.into().abi(), keysystem.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).IsTypeSupportedEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(r#type), ::core::mem::transmute_copy(keysystem), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -16260,10 +16249,7 @@ unsafe impl ::windows::core::Interface for IMFExtendedDRMTypeSupport { #[doc(hidden)] pub struct IMFExtendedDRMTypeSupport_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub IsTypeSupportedEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: ::core::mem::ManuallyDrop, keysystem: ::core::mem::ManuallyDrop, panswer: *mut MF_MEDIA_ENGINE_CANPLAY) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - IsTypeSupportedEx: usize, + pub IsTypeSupportedEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: ::core::mem::ManuallyDrop<::windows::core::BSTR>, keysystem: ::core::mem::ManuallyDrop<::windows::core::BSTR>, panswer: *mut MF_MEDIA_ENGINE_CANPLAY) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`*"] #[repr(transparent)] @@ -16831,8 +16817,6 @@ impl IMFImageSharingEngine { { (::windows::core::Interface::vtable(self).SetSource)(::windows::core::Interface::as_raw(self), pstream.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetDevice(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetDevice)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) @@ -16881,24 +16865,16 @@ unsafe impl ::windows::core::Interface for IMFImageSharingEngine { pub struct IMFImageSharingEngine_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub SetSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstream: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] pub GetDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdevice: *mut DEVICE_INFO) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDevice: usize, pub Shutdown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`*"] #[repr(transparent)] pub struct IMFImageSharingEngineClassFactory(::windows::core::IUnknown); impl IMFImageSharingEngineClassFactory { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateInstanceFromUDN<'a, P0>(&self, puniquedevicename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn CreateInstanceFromUDN(&self, puniquedevicename: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateInstanceFromUDN)(::windows::core::Interface::as_raw(self), puniquedevicename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateInstanceFromUDN)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(puniquedevicename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -16940,10 +16916,7 @@ unsafe impl ::windows::core::Interface for IMFImageSharingEngineClassFactory { #[doc(hidden)] pub struct IMFImageSharingEngineClassFactory_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub CreateInstanceFromUDN: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puniquedevicename: ::core::mem::ManuallyDrop, ppengine: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CreateInstanceFromUDN: usize, + pub CreateInstanceFromUDN: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puniquedevicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppengine: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`*"] #[repr(transparent)] @@ -17149,19 +17122,12 @@ impl IMFMediaEngine { { (::windows::core::Interface::vtable(self).SetSourceElements)(::windows::core::Interface::as_raw(self), psrcelements.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSource<'a, P0>(&self, purl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSource)(::windows::core::Interface::as_raw(self), purl.into().abi()).ok() + pub unsafe fn SetSource(&self, purl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSource)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(purl)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCurrentSource(&self) -> ::windows::core::Result { + pub unsafe fn GetCurrentSource(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetCurrentSource)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetCurrentSource)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetNetworkState(&self) -> u16 { (::windows::core::Interface::vtable(self).GetNetworkState)(::windows::core::Interface::as_raw(self)) @@ -17179,14 +17145,9 @@ impl IMFMediaEngine { pub unsafe fn Load(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Load)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CanPlayType<'a, P0>(&self, r#type: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn CanPlayType(&self, r#type: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CanPlayType)(::windows::core::Interface::as_raw(self), r#type.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CanPlayType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(r#type), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn GetReadyState(&self) -> u16 { (::windows::core::Interface::vtable(self).GetReadyState)(::windows::core::Interface::as_raw(self)) @@ -17363,23 +17324,14 @@ pub struct IMFMediaEngine_Vtbl { pub GetError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pperror: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub SetErrorCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, error: MF_MEDIA_ENGINE_ERR) -> ::windows::core::HRESULT, pub SetSourceElements: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psrcelements: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, purl: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSource: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetCurrentSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetCurrentSource: usize, + pub SetSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, purl: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetCurrentSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetNetworkState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u16, pub GetPreload: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> MF_MEDIA_ENGINE_PRELOAD, pub SetPreload: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, preload: MF_MEDIA_ENGINE_PRELOAD) -> ::windows::core::HRESULT, pub GetBuffered: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppbuffered: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Load: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CanPlayType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: ::core::mem::ManuallyDrop, panswer: *mut MF_MEDIA_ENGINE_CANPLAY) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CanPlayType: usize, + pub CanPlayType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: ::core::mem::ManuallyDrop<::windows::core::BSTR>, panswer: *mut MF_MEDIA_ENGINE_CANPLAY) -> ::windows::core::HRESULT, pub GetReadyState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u16, #[cfg(feature = "Win32_Foundation")] pub IsSeeking: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL, @@ -17572,16 +17524,9 @@ pub struct IMFMediaEngineClassFactory_Vtbl { #[repr(transparent)] pub struct IMFMediaEngineClassFactory2(::windows::core::IUnknown); impl IMFMediaEngineClassFactory2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateMediaKeys2<'a, P0, P1, P2>(&self, keysystem: P0, defaultcdmstorepath: P1, inprivatecdmstorepath: P2) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn CreateMediaKeys2(&self, keysystem: &::windows::core::BSTR, defaultcdmstorepath: &::windows::core::BSTR, inprivatecdmstorepath: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateMediaKeys2)(::windows::core::Interface::as_raw(self), keysystem.into().abi(), defaultcdmstorepath.into().abi(), inprivatecdmstorepath.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateMediaKeys2)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(keysystem), ::core::mem::transmute_copy(defaultcdmstorepath), ::core::mem::transmute_copy(inprivatecdmstorepath), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -17623,23 +17568,17 @@ unsafe impl ::windows::core::Interface for IMFMediaEngineClassFactory2 { #[doc(hidden)] pub struct IMFMediaEngineClassFactory2_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub CreateMediaKeys2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, keysystem: ::core::mem::ManuallyDrop, defaultcdmstorepath: ::core::mem::ManuallyDrop, inprivatecdmstorepath: ::core::mem::ManuallyDrop, ppkeys: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CreateMediaKeys2: usize, + pub CreateMediaKeys2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, keysystem: ::core::mem::ManuallyDrop<::windows::core::BSTR>, defaultcdmstorepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, inprivatecdmstorepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppkeys: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`*"] #[repr(transparent)] pub struct IMFMediaEngineClassFactory3(::windows::core::IUnknown); impl IMFMediaEngineClassFactory3 { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_UI_Shell_PropertiesSystem\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_PropertiesSystem"))] - pub unsafe fn CreateMediaKeySystemAccess<'a, P0>(&self, keysystem: P0, ppsupportedconfigurationsarray: &[::core::option::Option]) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_UI_Shell_PropertiesSystem\"`*"] + #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] + pub unsafe fn CreateMediaKeySystemAccess(&self, keysystem: &::windows::core::BSTR, ppsupportedconfigurationsarray: &[::core::option::Option]) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateMediaKeySystemAccess)(::windows::core::Interface::as_raw(self), keysystem.into().abi(), ::core::mem::transmute(ppsupportedconfigurationsarray.as_ptr()), ppsupportedconfigurationsarray.len() as _, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateMediaKeySystemAccess)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(keysystem), ::core::mem::transmute(ppsupportedconfigurationsarray.as_ptr()), ppsupportedconfigurationsarray.len() as _, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -17681,9 +17620,9 @@ unsafe impl ::windows::core::Interface for IMFMediaEngineClassFactory3 { #[doc(hidden)] pub struct IMFMediaEngineClassFactory3_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_PropertiesSystem"))] - pub CreateMediaKeySystemAccess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, keysystem: ::core::mem::ManuallyDrop, ppsupportedconfigurationsarray: *const *mut ::core::ffi::c_void, usize: u32, ppkeyaccess: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_PropertiesSystem")))] + #[cfg(feature = "Win32_UI_Shell_PropertiesSystem")] + pub CreateMediaKeySystemAccess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, keysystem: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppsupportedconfigurationsarray: *const *mut ::core::ffi::c_void, usize: u32, ppkeyaccess: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] CreateMediaKeySystemAccess: usize, } #[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`*"] @@ -17764,25 +17703,15 @@ impl IMFMediaEngineClassFactoryEx { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CreateMediaSourceExtension)(::windows::core::Interface::as_raw(self), dwflags, pattr.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateMediaKeys<'a, P0, P1>(&self, keysystem: P0, cdmstorepath: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn CreateMediaKeys(&self, keysystem: &::windows::core::BSTR, cdmstorepath: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateMediaKeys)(::windows::core::Interface::as_raw(self), keysystem.into().abi(), cdmstorepath.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateMediaKeys)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(keysystem), ::core::mem::transmute_copy(cdmstorepath), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsTypeSupported<'a, P0, P1>(&self, r#type: P0, keysystem: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsTypeSupported(&self, r#type: &::windows::core::BSTR, keysystem: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).IsTypeSupported)(::windows::core::Interface::as_raw(self), r#type.into().abi(), keysystem.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).IsTypeSupported)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(r#type), ::core::mem::transmute_copy(keysystem), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -17840,12 +17769,9 @@ unsafe impl ::windows::core::Interface for IMFMediaEngineClassFactoryEx { pub struct IMFMediaEngineClassFactoryEx_Vtbl { pub base__: IMFMediaEngineClassFactory_Vtbl, pub CreateMediaSourceExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32, pattr: *mut ::core::ffi::c_void, ppmse: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub CreateMediaKeys: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, keysystem: ::core::mem::ManuallyDrop<::windows::core::BSTR>, cdmstorepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppkeys: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub CreateMediaKeys: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, keysystem: ::core::mem::ManuallyDrop, cdmstorepath: ::core::mem::ManuallyDrop, ppkeys: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CreateMediaKeys: usize, - #[cfg(feature = "Win32_Foundation")] - pub IsTypeSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: ::core::mem::ManuallyDrop, keysystem: ::core::mem::ManuallyDrop, issupported: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, + pub IsTypeSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: ::core::mem::ManuallyDrop<::windows::core::BSTR>, keysystem: ::core::mem::ManuallyDrop<::windows::core::BSTR>, issupported: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] IsTypeSupported: usize, } @@ -17910,13 +17836,8 @@ pub struct IMFMediaEngineEME_Vtbl { #[repr(transparent)] pub struct IMFMediaEngineEMENotify(::windows::core::IUnknown); impl IMFMediaEngineEMENotify { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Encrypted<'a, P0>(&self, pbinitdata: ::core::option::Option<&[u8]>, bstrinitdatatype: P0) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Encrypted)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbinitdata.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), pbinitdata.as_deref().map_or(0, |slice| slice.len() as _), bstrinitdatatype.into().abi()) + pub unsafe fn Encrypted(&self, pbinitdata: ::core::option::Option<&[u8]>, bstrinitdatatype: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).Encrypted)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbinitdata.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), pbinitdata.as_deref().map_or(0, |slice| slice.len() as _), ::core::mem::transmute_copy(bstrinitdatatype)) } pub unsafe fn WaitingForKey(&self) { (::windows::core::Interface::vtable(self).WaitingForKey)(::windows::core::Interface::as_raw(self)) @@ -17961,10 +17882,7 @@ unsafe impl ::windows::core::Interface for IMFMediaEngineEMENotify { #[doc(hidden)] pub struct IMFMediaEngineEMENotify_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub Encrypted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbinitdata: *const u8, cb: u32, bstrinitdatatype: ::core::mem::ManuallyDrop), - #[cfg(not(feature = "Win32_Foundation"))] - Encrypted: usize, + pub Encrypted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbinitdata: *const u8, cb: u32, bstrinitdatatype: ::core::mem::ManuallyDrop<::windows::core::BSTR>), pub WaitingForKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } #[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`*"] @@ -17984,19 +17902,12 @@ impl IMFMediaEngineEx { { (::windows::core::Interface::vtable(self).base__.SetSourceElements)(::windows::core::Interface::as_raw(self), psrcelements.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSource<'a, P0>(&self, purl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetSource)(::windows::core::Interface::as_raw(self), purl.into().abi()).ok() + pub unsafe fn SetSource(&self, purl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetSource)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(purl)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCurrentSource(&self) -> ::windows::core::Result { + pub unsafe fn GetCurrentSource(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetCurrentSource)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetCurrentSource)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetNetworkState(&self) -> u16 { (::windows::core::Interface::vtable(self).base__.GetNetworkState)(::windows::core::Interface::as_raw(self)) @@ -18014,14 +17925,9 @@ impl IMFMediaEngineEx { pub unsafe fn Load(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Load)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CanPlayType<'a, P0>(&self, r#type: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn CanPlayType(&self, r#type: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CanPlayType)(::windows::core::Interface::as_raw(self), r#type.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CanPlayType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(r#type), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn GetReadyState(&self) -> u16 { (::windows::core::Interface::vtable(self).base__.GetReadyState)(::windows::core::Interface::as_raw(self)) @@ -18155,14 +18061,11 @@ impl IMFMediaEngineEx { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.OnVideoStreamTick)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSourceFromByteStream<'a, P0, P1>(&self, pbytestream: P0, purl: P1) -> ::windows::core::Result<()> + pub unsafe fn SetSourceFromByteStream<'a, P0>(&self, pbytestream: P0, purl: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IMFByteStream>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).SetSourceFromByteStream)(::windows::core::Interface::as_raw(self), pbytestream.into().abi(), purl.into().abi()).ok() + (::windows::core::Interface::vtable(self).SetSourceFromByteStream)(::windows::core::Interface::as_raw(self), pbytestream.into().abi(), ::core::mem::transmute_copy(purl)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com_StructuredStorage\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] @@ -18403,10 +18306,7 @@ unsafe impl ::windows::core::Interface for IMFMediaEngineEx { #[doc(hidden)] pub struct IMFMediaEngineEx_Vtbl { pub base__: IMFMediaEngine_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub SetSourceFromByteStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbytestream: *mut ::core::ffi::c_void, purl: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSourceFromByteStream: usize, + pub SetSourceFromByteStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbytestream: *mut ::core::ffi::c_void, purl: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] pub GetStatistics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, statisticid: MF_MEDIA_ENGINE_STATISTIC, pstatistic: *mut super::super::System::Com::StructuredStorage::PROPVARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage")))] @@ -18504,24 +18404,20 @@ pub struct IMFMediaEngineExtension(::windows::core::IUnknown); impl IMFMediaEngineExtension { #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CanPlayType<'a, P0, P1>(&self, audioonly: P0, mimetype: P1) -> ::windows::core::Result + pub unsafe fn CanPlayType<'a, P0>(&self, audioonly: P0, mimetype: &::windows::core::BSTR) -> ::windows::core::Result where P0: ::std::convert::Into, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CanPlayType)(::windows::core::Interface::as_raw(self), audioonly.into(), mimetype.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CanPlayType)(::windows::core::Interface::as_raw(self), audioonly.into(), ::core::mem::transmute_copy(mimetype), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BeginCreateObject<'a, P0, P1, P2, P3>(&self, bstrurl: P0, pbytestream: P1, r#type: MF_OBJECT_TYPE, ppiunknowncancelcookie: &mut ::core::option::Option<::windows::core::IUnknown>, pcallback: P2, punkstate: P3) -> ::windows::core::Result<()> + pub unsafe fn BeginCreateObject<'a, P0, P1, P2>(&self, bstrurl: &::windows::core::BSTR, pbytestream: P0, r#type: MF_OBJECT_TYPE, ppiunknowncancelcookie: &mut ::core::option::Option<::windows::core::IUnknown>, pcallback: P1, punkstate: P2) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IMFByteStream>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IMFAsyncCallback>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IMFByteStream>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, IMFAsyncCallback>>, + P2: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, { - (::windows::core::Interface::vtable(self).BeginCreateObject)(::windows::core::Interface::as_raw(self), bstrurl.into().abi(), pbytestream.into().abi(), r#type, ::core::mem::transmute(ppiunknowncancelcookie), pcallback.into().abi(), punkstate.into().abi()).ok() + (::windows::core::Interface::vtable(self).BeginCreateObject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrurl), pbytestream.into().abi(), r#type, ::core::mem::transmute(ppiunknowncancelcookie), pcallback.into().abi(), punkstate.into().abi()).ok() } pub unsafe fn CancelObjectCreation<'a, P0>(&self, piunknowncancelcookie: P0) -> ::windows::core::Result<()> where @@ -18577,13 +18473,10 @@ unsafe impl ::windows::core::Interface for IMFMediaEngineExtension { pub struct IMFMediaEngineExtension_Vtbl { pub base__: ::windows::core::IUnknownVtbl, #[cfg(feature = "Win32_Foundation")] - pub CanPlayType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, audioonly: super::super::Foundation::BOOL, mimetype: ::core::mem::ManuallyDrop, panswer: *mut MF_MEDIA_ENGINE_CANPLAY) -> ::windows::core::HRESULT, + pub CanPlayType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, audioonly: super::super::Foundation::BOOL, mimetype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, panswer: *mut MF_MEDIA_ENGINE_CANPLAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] CanPlayType: usize, - #[cfg(feature = "Win32_Foundation")] - pub BeginCreateObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop, pbytestream: *mut ::core::ffi::c_void, r#type: MF_OBJECT_TYPE, ppiunknowncancelcookie: *mut *mut ::core::ffi::c_void, pcallback: *mut ::core::ffi::c_void, punkstate: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BeginCreateObject: usize, + pub BeginCreateObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbytestream: *mut ::core::ffi::c_void, r#type: MF_OBJECT_TYPE, ppiunknowncancelcookie: *mut *mut ::core::ffi::c_void, pcallback: *mut ::core::ffi::c_void, punkstate: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub CancelObjectCreation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, piunknowncancelcookie: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub EndCreateObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, presult: *mut ::core::ffi::c_void, ppobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } @@ -18839,33 +18732,20 @@ impl IMFMediaEngineSrcElements { pub unsafe fn GetLength(&self) -> u32 { (::windows::core::Interface::vtable(self).GetLength)(::windows::core::Interface::as_raw(self)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetURL(&self, index: u32) -> ::windows::core::Result { + pub unsafe fn GetURL(&self, index: u32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetURL)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetURL)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetType(&self, index: u32) -> ::windows::core::Result { + pub unsafe fn GetType(&self, index: u32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetType)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetType)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetMedia(&self, index: u32) -> ::windows::core::Result { + pub unsafe fn GetMedia(&self, index: u32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetMedia)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetMedia)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddElement<'a, P0, P1, P2>(&self, purl: P0, ptype: P1, pmedia: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AddElement)(::windows::core::Interface::as_raw(self), purl.into().abi(), ptype.into().abi(), pmedia.into().abi()).ok() + pub unsafe fn AddElement(&self, purl: &::windows::core::BSTR, ptype: &::windows::core::BSTR, pmedia: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AddElement)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(purl), ::core::mem::transmute_copy(ptype), ::core::mem::transmute_copy(pmedia)).ok() } pub unsafe fn RemoveAllElements(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RemoveAllElements)(::windows::core::Interface::as_raw(self)).ok() @@ -18911,22 +18791,10 @@ unsafe impl ::windows::core::Interface for IMFMediaEngineSrcElements { pub struct IMFMediaEngineSrcElements_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub GetLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, - #[cfg(feature = "Win32_Foundation")] - pub GetURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, purl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetURL: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, ptype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetType: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetMedia: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, pmedia: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetMedia: usize, - #[cfg(feature = "Win32_Foundation")] - pub AddElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, purl: ::core::mem::ManuallyDrop, ptype: ::core::mem::ManuallyDrop, pmedia: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddElement: usize, + pub GetURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, purl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, ptype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetMedia: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, pmedia: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub AddElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, purl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ptype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pmedia: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub RemoveAllElements: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`*"] @@ -18936,53 +18804,30 @@ impl IMFMediaEngineSrcElementsEx { pub unsafe fn GetLength(&self) -> u32 { (::windows::core::Interface::vtable(self).base__.GetLength)(::windows::core::Interface::as_raw(self)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetURL(&self, index: u32) -> ::windows::core::Result { + pub unsafe fn GetURL(&self, index: u32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetURL)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetURL)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetType(&self, index: u32) -> ::windows::core::Result { + pub unsafe fn GetType(&self, index: u32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetType)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetType)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetMedia(&self, index: u32) -> ::windows::core::Result { + pub unsafe fn GetMedia(&self, index: u32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetMedia)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetMedia)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddElement<'a, P0, P1, P2>(&self, purl: P0, ptype: P1, pmedia: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.AddElement)(::windows::core::Interface::as_raw(self), purl.into().abi(), ptype.into().abi(), pmedia.into().abi()).ok() + pub unsafe fn AddElement(&self, purl: &::windows::core::BSTR, ptype: &::windows::core::BSTR, pmedia: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.AddElement)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(purl), ::core::mem::transmute_copy(ptype), ::core::mem::transmute_copy(pmedia)).ok() } pub unsafe fn RemoveAllElements(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.RemoveAllElements)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddElementEx<'a, P0, P1, P2, P3>(&self, purl: P0, ptype: P1, pmedia: P2, keysystem: P3) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AddElementEx)(::windows::core::Interface::as_raw(self), purl.into().abi(), ptype.into().abi(), pmedia.into().abi(), keysystem.into().abi()).ok() + pub unsafe fn AddElementEx(&self, purl: &::windows::core::BSTR, ptype: &::windows::core::BSTR, pmedia: &::windows::core::BSTR, keysystem: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AddElementEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(purl), ::core::mem::transmute_copy(ptype), ::core::mem::transmute_copy(pmedia), ::core::mem::transmute_copy(keysystem)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetKeySystem(&self, index: u32) -> ::windows::core::Result { + pub unsafe fn GetKeySystem(&self, index: u32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetKeySystem)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetKeySystem)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -19039,14 +18884,8 @@ unsafe impl ::windows::core::Interface for IMFMediaEngineSrcElementsEx { #[doc(hidden)] pub struct IMFMediaEngineSrcElementsEx_Vtbl { pub base__: IMFMediaEngineSrcElements_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub AddElementEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, purl: ::core::mem::ManuallyDrop, ptype: ::core::mem::ManuallyDrop, pmedia: ::core::mem::ManuallyDrop, keysystem: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddElementEx: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetKeySystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, ptype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetKeySystem: usize, + pub AddElementEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, purl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ptype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pmedia: ::core::mem::ManuallyDrop<::windows::core::BSTR>, keysystem: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetKeySystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, ptype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`*"] #[repr(transparent)] @@ -19678,17 +19517,13 @@ impl IMFMediaKeySession { pub unsafe fn GetError(&self, code: &mut u16, systemcode: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetError)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(code), ::core::mem::transmute(systemcode)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn KeySystem(&self) -> ::windows::core::Result { + pub unsafe fn KeySystem(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).KeySystem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).KeySystem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SessionId(&self) -> ::windows::core::Result { + pub unsafe fn SessionId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SessionId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SessionId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Update(&self, key: &[u8]) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Update)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(key.as_ptr()), key.len() as _).ok() @@ -19737,14 +19572,8 @@ unsafe impl ::windows::core::Interface for IMFMediaKeySession { pub struct IMFMediaKeySession_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub GetError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, code: *mut u16, systemcode: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub KeySystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, keysystem: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - KeySystem: usize, - #[cfg(feature = "Win32_Foundation")] - pub SessionId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sessionid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SessionId: usize, + pub KeySystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, keysystem: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SessionId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sessionid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Update: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, key: *const u8, cb: u32) -> ::windows::core::HRESULT, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } @@ -19755,17 +19584,13 @@ impl IMFMediaKeySession2 { pub unsafe fn GetError(&self, code: &mut u16, systemcode: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetError)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(code), ::core::mem::transmute(systemcode)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn KeySystem(&self) -> ::windows::core::Result { + pub unsafe fn KeySystem(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.KeySystem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.KeySystem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SessionId(&self) -> ::windows::core::Result { + pub unsafe fn SessionId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.SessionId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.SessionId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Update(&self, key: &[u8]) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Update)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(key.as_ptr()), key.len() as _).ok() @@ -19778,20 +19603,12 @@ impl IMFMediaKeySession2 { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Load<'a, P0>(&self, bstrsessionid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn Load(&self, bstrsessionid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Load)(::windows::core::Interface::as_raw(self), bstrsessionid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Load)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsessionid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GenerateRequest<'a, P0>(&self, initdatatype: P0, pbinitdata: &[u8]) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GenerateRequest)(::windows::core::Interface::as_raw(self), initdatatype.into().abi(), ::core::mem::transmute(pbinitdata.as_ptr()), pbinitdata.len() as _).ok() + pub unsafe fn GenerateRequest(&self, initdatatype: &::windows::core::BSTR, pbinitdata: &[u8]) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GenerateRequest)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(initdatatype), ::core::mem::transmute(pbinitdata.as_ptr()), pbinitdata.len() as _).ok() } pub unsafe fn Expiration(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -19860,13 +19677,10 @@ pub struct IMFMediaKeySession2_Vtbl { pub base__: IMFMediaKeySession_Vtbl, pub get_KeyStatuses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pkeystatusesarray: *mut *mut MFMediaKeyStatus, pusize: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub Load: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsessionid: ::core::mem::ManuallyDrop, pfloaded: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, + pub Load: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsessionid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfloaded: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] Load: usize, - #[cfg(feature = "Win32_Foundation")] - pub GenerateRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, initdatatype: ::core::mem::ManuallyDrop, pbinitdata: *const u8, cb: u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GenerateRequest: usize, + pub GenerateRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, initdatatype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbinitdata: *const u8, cb: u32) -> ::windows::core::HRESULT, pub Expiration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dblexpiration: *mut f64) -> ::windows::core::HRESULT, pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Shutdown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -19875,13 +19689,8 @@ pub struct IMFMediaKeySession2_Vtbl { #[repr(transparent)] pub struct IMFMediaKeySessionNotify(::windows::core::IUnknown); impl IMFMediaKeySessionNotify { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn KeyMessage<'a, P0>(&self, destinationurl: P0, message: &[u8]) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).KeyMessage)(::windows::core::Interface::as_raw(self), destinationurl.into().abi(), ::core::mem::transmute(message.as_ptr()), message.len() as _) + pub unsafe fn KeyMessage(&self, destinationurl: &::windows::core::BSTR, message: &[u8]) { + (::windows::core::Interface::vtable(self).KeyMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(destinationurl), ::core::mem::transmute(message.as_ptr()), message.len() as _) } pub unsafe fn KeyAdded(&self) { (::windows::core::Interface::vtable(self).KeyAdded)(::windows::core::Interface::as_raw(self)) @@ -19929,10 +19738,7 @@ unsafe impl ::windows::core::Interface for IMFMediaKeySessionNotify { #[doc(hidden)] pub struct IMFMediaKeySessionNotify_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub KeyMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, destinationurl: ::core::mem::ManuallyDrop, message: *const u8, cb: u32), - #[cfg(not(feature = "Win32_Foundation"))] - KeyMessage: usize, + pub KeyMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, destinationurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, message: *const u8, cb: u32), pub KeyAdded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), pub KeyError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, code: u16, systemcode: u32), } @@ -19940,13 +19746,8 @@ pub struct IMFMediaKeySessionNotify_Vtbl { #[repr(transparent)] pub struct IMFMediaKeySessionNotify2(::windows::core::IUnknown); impl IMFMediaKeySessionNotify2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn KeyMessage<'a, P0>(&self, destinationurl: P0, message: &[u8]) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.KeyMessage)(::windows::core::Interface::as_raw(self), destinationurl.into().abi(), ::core::mem::transmute(message.as_ptr()), message.len() as _) + pub unsafe fn KeyMessage(&self, destinationurl: &::windows::core::BSTR, message: &[u8]) { + (::windows::core::Interface::vtable(self).base__.KeyMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(destinationurl), ::core::mem::transmute(message.as_ptr()), message.len() as _) } pub unsafe fn KeyAdded(&self) { (::windows::core::Interface::vtable(self).base__.KeyAdded)(::windows::core::Interface::as_raw(self)) @@ -19954,13 +19755,8 @@ impl IMFMediaKeySessionNotify2 { pub unsafe fn KeyError(&self, code: u16, systemcode: u32) { (::windows::core::Interface::vtable(self).base__.KeyError)(::windows::core::Interface::as_raw(self), code, systemcode) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn KeyMessage2<'a, P0>(&self, emessagetype: MF_MEDIAKEYSESSION_MESSAGETYPE, destinationurl: P0, pbmessage: &[u8]) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).KeyMessage2)(::windows::core::Interface::as_raw(self), emessagetype, destinationurl.into().abi(), ::core::mem::transmute(pbmessage.as_ptr()), pbmessage.len() as _) + pub unsafe fn KeyMessage2(&self, emessagetype: MF_MEDIAKEYSESSION_MESSAGETYPE, destinationurl: &::windows::core::BSTR, pbmessage: &[u8]) { + (::windows::core::Interface::vtable(self).KeyMessage2)(::windows::core::Interface::as_raw(self), emessagetype, ::core::mem::transmute_copy(destinationurl), ::core::mem::transmute(pbmessage.as_ptr()), pbmessage.len() as _) } pub unsafe fn KeyStatusChange(&self) { (::windows::core::Interface::vtable(self).KeyStatusChange)(::windows::core::Interface::as_raw(self)) @@ -20020,10 +19816,7 @@ unsafe impl ::windows::core::Interface for IMFMediaKeySessionNotify2 { #[doc(hidden)] pub struct IMFMediaKeySessionNotify2_Vtbl { pub base__: IMFMediaKeySessionNotify_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub KeyMessage2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, emessagetype: MF_MEDIAKEYSESSION_MESSAGETYPE, destinationurl: ::core::mem::ManuallyDrop, pbmessage: *const u8, cbmessage: u32), - #[cfg(not(feature = "Win32_Foundation"))] - KeyMessage2: usize, + pub KeyMessage2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, emessagetype: MF_MEDIAKEYSESSION_MESSAGETYPE, destinationurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbmessage: *const u8, cbmessage: u32), pub KeyStatusChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } #[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`*"] @@ -20045,11 +19838,9 @@ impl IMFMediaKeySystemAccess { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).SupportedConfiguration)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn KeySystem(&self) -> ::windows::core::Result { + pub unsafe fn KeySystem(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).KeySystem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).KeySystem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -20099,30 +19890,22 @@ pub struct IMFMediaKeySystemAccess_Vtbl { pub SupportedConfiguration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsupportedconfiguration: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_Shell_PropertiesSystem"))] SupportedConfiguration: usize, - #[cfg(feature = "Win32_Foundation")] - pub KeySystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pkeysystem: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - KeySystem: usize, + pub KeySystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pkeysystem: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`*"] #[repr(transparent)] pub struct IMFMediaKeys(::windows::core::IUnknown); impl IMFMediaKeys { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateSession<'a, P0, P1>(&self, mimetype: P0, initdata: ::core::option::Option<&[u8]>, customdata: ::core::option::Option<&[u8]>, notify: P1) -> ::windows::core::Result + pub unsafe fn CreateSession<'a, P0>(&self, mimetype: &::windows::core::BSTR, initdata: ::core::option::Option<&[u8]>, customdata: ::core::option::Option<&[u8]>, notify: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IMFMediaKeySessionNotify>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IMFMediaKeySessionNotify>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateSession)(::windows::core::Interface::as_raw(self), mimetype.into().abi(), ::core::mem::transmute(initdata.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), initdata.as_deref().map_or(0, |slice| slice.len() as _), ::core::mem::transmute(customdata.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), customdata.as_deref().map_or(0, |slice| slice.len() as _), notify.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateSession)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mimetype), ::core::mem::transmute(initdata.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), initdata.as_deref().map_or(0, |slice| slice.len() as _), ::core::mem::transmute(customdata.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), customdata.as_deref().map_or(0, |slice| slice.len() as _), notify.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn KeySystem(&self) -> ::windows::core::Result { + pub unsafe fn KeySystem(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).KeySystem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).KeySystem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Shutdown(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Shutdown)(::windows::core::Interface::as_raw(self)).ok() @@ -20171,14 +19954,8 @@ unsafe impl ::windows::core::Interface for IMFMediaKeys { #[doc(hidden)] pub struct IMFMediaKeys_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub CreateSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mimetype: ::core::mem::ManuallyDrop, initdata: *const u8, cb: u32, customdata: *const u8, cbcustomdata: u32, notify: *mut ::core::ffi::c_void, ppsession: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CreateSession: usize, - #[cfg(feature = "Win32_Foundation")] - pub KeySystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, keysystem: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - KeySystem: usize, + pub CreateSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mimetype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, initdata: *const u8, cb: u32, customdata: *const u8, cbcustomdata: u32, notify: *mut ::core::ffi::c_void, ppsession: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub KeySystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, keysystem: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Shutdown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetSuspendNotify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, notify: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } @@ -20186,21 +19963,16 @@ pub struct IMFMediaKeys_Vtbl { #[repr(transparent)] pub struct IMFMediaKeys2(::windows::core::IUnknown); impl IMFMediaKeys2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateSession<'a, P0, P1>(&self, mimetype: P0, initdata: ::core::option::Option<&[u8]>, customdata: ::core::option::Option<&[u8]>, notify: P1) -> ::windows::core::Result + pub unsafe fn CreateSession<'a, P0>(&self, mimetype: &::windows::core::BSTR, initdata: ::core::option::Option<&[u8]>, customdata: ::core::option::Option<&[u8]>, notify: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IMFMediaKeySessionNotify>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IMFMediaKeySessionNotify>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CreateSession)(::windows::core::Interface::as_raw(self), mimetype.into().abi(), ::core::mem::transmute(initdata.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), initdata.as_deref().map_or(0, |slice| slice.len() as _), ::core::mem::transmute(customdata.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), customdata.as_deref().map_or(0, |slice| slice.len() as _), notify.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CreateSession)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mimetype), ::core::mem::transmute(initdata.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), initdata.as_deref().map_or(0, |slice| slice.len() as _), ::core::mem::transmute(customdata.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), customdata.as_deref().map_or(0, |slice| slice.len() as _), notify.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn KeySystem(&self) -> ::windows::core::Result { + pub unsafe fn KeySystem(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.KeySystem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.KeySystem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Shutdown(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Shutdown)(::windows::core::Interface::as_raw(self)).ok() @@ -20433,19 +20205,12 @@ impl IMFMediaSharingEngine { { (::windows::core::Interface::vtable(self).base__.SetSourceElements)(::windows::core::Interface::as_raw(self), psrcelements.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSource<'a, P0>(&self, purl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetSource)(::windows::core::Interface::as_raw(self), purl.into().abi()).ok() + pub unsafe fn SetSource(&self, purl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetSource)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(purl)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCurrentSource(&self) -> ::windows::core::Result { + pub unsafe fn GetCurrentSource(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetCurrentSource)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetCurrentSource)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetNetworkState(&self) -> u16 { (::windows::core::Interface::vtable(self).base__.GetNetworkState)(::windows::core::Interface::as_raw(self)) @@ -20463,14 +20228,9 @@ impl IMFMediaSharingEngine { pub unsafe fn Load(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Load)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CanPlayType<'a, P0>(&self, r#type: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn CanPlayType(&self, r#type: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CanPlayType)(::windows::core::Interface::as_raw(self), r#type.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CanPlayType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(r#type), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn GetReadyState(&self) -> u16 { (::windows::core::Interface::vtable(self).base__.GetReadyState)(::windows::core::Interface::as_raw(self)) @@ -20604,8 +20364,6 @@ impl IMFMediaSharingEngine { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.OnVideoStreamTick)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetDevice(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetDevice)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) @@ -20665,10 +20423,7 @@ unsafe impl ::windows::core::Interface for IMFMediaSharingEngine { #[doc(hidden)] pub struct IMFMediaSharingEngine_Vtbl { pub base__: IMFMediaEngine_Vtbl, - #[cfg(feature = "Win32_Foundation")] pub GetDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdevice: *mut DEVICE_INFO) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDevice: usize, } #[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`*"] #[repr(transparent)] @@ -21300,15 +21055,12 @@ impl IMFMediaSourceExtension { pub unsafe fn SetDuration(&self, duration: f64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetDuration)(::windows::core::Interface::as_raw(self), duration).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddSourceBuffer<'a, P0, P1>(&self, r#type: P0, pnotify: P1) -> ::windows::core::Result + pub unsafe fn AddSourceBuffer<'a, P0>(&self, r#type: &::windows::core::BSTR, pnotify: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IMFSourceBufferNotify>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IMFSourceBufferNotify>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AddSourceBuffer)(::windows::core::Interface::as_raw(self), r#type.into().abi(), pnotify.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AddSourceBuffer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(r#type), pnotify.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn RemoveSourceBuffer<'a, P0>(&self, psourcebuffer: P0) -> ::windows::core::Result<()> where @@ -21321,11 +21073,8 @@ impl IMFMediaSourceExtension { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsTypeSupported<'a, P0>(&self, r#type: P0) -> super::super::Foundation::BOOL - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).IsTypeSupported)(::windows::core::Interface::as_raw(self), r#type.into().abi()) + pub unsafe fn IsTypeSupported(&self, r#type: &::windows::core::BSTR) -> super::super::Foundation::BOOL { + (::windows::core::Interface::vtable(self).IsTypeSupported)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(r#type)) } pub unsafe fn GetSourceBuffer(&self, dwstreamindex: u32) -> ::core::option::Option { (::windows::core::Interface::vtable(self).GetSourceBuffer)(::windows::core::Interface::as_raw(self), dwstreamindex) @@ -21375,14 +21124,11 @@ pub struct IMFMediaSourceExtension_Vtbl { pub GetReadyState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> MF_MSE_READY, pub GetDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> f64, pub SetDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, duration: f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub AddSourceBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: ::core::mem::ManuallyDrop, pnotify: *mut ::core::ffi::c_void, ppsourcebuffer: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddSourceBuffer: usize, + pub AddSourceBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pnotify: *mut ::core::ffi::c_void, ppsourcebuffer: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub RemoveSourceBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psourcebuffer: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub SetEndOfStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, error: MF_MSE_ERROR) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub IsTypeSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: ::core::mem::ManuallyDrop) -> super::super::Foundation::BOOL, + pub IsTypeSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> super::super::Foundation::BOOL, #[cfg(not(feature = "Win32_Foundation"))] IsTypeSupported: usize, pub GetSourceBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstreamindex: u32) -> ::core::option::Option, @@ -59871,16 +59617,14 @@ impl ::core::default::Default for D3DOVERLAYCAPS { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_Media_MediaFoundation\"`*"] pub struct DEVICE_INFO { - pub pFriendlyDeviceName: super::super::Foundation::BSTR, - pub pUniqueDeviceName: super::super::Foundation::BSTR, - pub pManufacturerName: super::super::Foundation::BSTR, - pub pModelName: super::super::Foundation::BSTR, - pub pIconURL: super::super::Foundation::BSTR, + pub pFriendlyDeviceName: ::windows::core::BSTR, + pub pUniqueDeviceName: ::windows::core::BSTR, + pub pManufacturerName: ::windows::core::BSTR, + pub pModelName: ::windows::core::BSTR, + pub pIconURL: ::windows::core::BSTR, } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for DEVICE_INFO { fn clone(&self) -> Self { Self { @@ -59892,25 +59636,20 @@ impl ::core::clone::Clone for DEVICE_INFO { } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for DEVICE_INFO { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("DEVICE_INFO").field("pFriendlyDeviceName", &self.pFriendlyDeviceName).field("pUniqueDeviceName", &self.pUniqueDeviceName).field("pManufacturerName", &self.pManufacturerName).field("pModelName", &self.pModelName).field("pIconURL", &self.pIconURL).finish() } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for DEVICE_INFO { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for DEVICE_INFO { fn eq(&self, other: &Self) -> bool { self.pFriendlyDeviceName == other.pFriendlyDeviceName && self.pUniqueDeviceName == other.pUniqueDeviceName && self.pManufacturerName == other.pManufacturerName && self.pModelName == other.pModelName && self.pIconURL == other.pIconURL } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for DEVICE_INFO {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for DEVICE_INFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } diff --git a/crates/libs/windows/src/Windows/Win32/Media/MediaPlayer/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/MediaPlayer/impl.rs index b09fa4d9d3..e4bad4b177 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/MediaPlayer/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/MediaPlayer/impl.rs @@ -1,13 +1,13 @@ #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFeed_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Xml(&self, count: i32, sortproperty: FEEDS_XML_SORT_PROPERTY, sortorder: FEEDS_XML_SORT_ORDER, filterflags: FEEDS_XML_FILTER_FLAGS, includeflags: FEEDS_XML_INCLUDE_FLAGS) -> ::windows::core::Result; - fn Name(&self) -> ::windows::core::Result; - fn Rename(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Url(&self) -> ::windows::core::Result; - fn SetUrl(&self, feedurl: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn LocalId(&self) -> ::windows::core::Result; - fn Path(&self) -> ::windows::core::Result; - fn Move(&self, newparentpath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Xml(&self, count: i32, sortproperty: FEEDS_XML_SORT_PROPERTY, sortorder: FEEDS_XML_SORT_ORDER, filterflags: FEEDS_XML_FILTER_FLAGS, includeflags: FEEDS_XML_INCLUDE_FLAGS) -> ::windows::core::Result<::windows::core::BSTR>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Rename(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Url(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetUrl(&self, feedurl: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn LocalId(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Move(&self, newparentpath: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Parent(&self) -> ::windows::core::Result; fn LastWriteTime(&self) -> ::windows::core::Result; fn Delete(&self) -> ::windows::core::Result<()>; @@ -19,26 +19,26 @@ pub trait IFeed_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn Interval(&self) -> ::windows::core::Result; fn SetInterval(&self, minutes: i32) -> ::windows::core::Result<()>; fn LastDownloadTime(&self) -> ::windows::core::Result; - fn LocalEnclosurePath(&self) -> ::windows::core::Result; + fn LocalEnclosurePath(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Items(&self) -> ::windows::core::Result; fn GetItem(&self, itemid: i32) -> ::windows::core::Result; - fn Title(&self) -> ::windows::core::Result; - fn Description(&self) -> ::windows::core::Result; - fn Link(&self) -> ::windows::core::Result; - fn Image(&self) -> ::windows::core::Result; + fn Title(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Link(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Image(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn LastBuildDate(&self) -> ::windows::core::Result; fn PubDate(&self) -> ::windows::core::Result; fn Ttl(&self) -> ::windows::core::Result; - fn Language(&self) -> ::windows::core::Result; - fn Copyright(&self) -> ::windows::core::Result; + fn Language(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Copyright(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn MaxItemCount(&self) -> ::windows::core::Result; fn SetMaxItemCount(&self, count: i32) -> ::windows::core::Result<()>; fn DownloadEnclosuresAutomatically(&self) -> ::windows::core::Result; fn SetDownloadEnclosuresAutomatically(&self, downloadenclosuresautomatically: i16) -> ::windows::core::Result<()>; fn DownloadStatus(&self) -> ::windows::core::Result; fn LastDownloadError(&self) -> ::windows::core::Result; - fn Merge(&self, feedxml: &super::super::Foundation::BSTR, feedurl: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn DownloadUrl(&self) -> ::windows::core::Result; + fn Merge(&self, feedxml: &::windows::core::BSTR, feedurl: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn DownloadUrl(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn IsList(&self) -> ::windows::core::Result; fn MarkAllItemsRead(&self) -> ::windows::core::Result<()>; fn GetWatcher(&self, scope: FEEDS_EVENTS_SCOPE, mask: FEEDS_EVENTS_MASK) -> ::windows::core::Result; @@ -50,7 +50,7 @@ impl ::windows::core::RuntimeName for IFeed {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFeed_Vtbl { pub const fn new, Impl: IFeed_Impl, const OFFSET: isize>() -> IFeed_Vtbl { - unsafe extern "system" fn Xml, Impl: IFeed_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, count: i32, sortproperty: FEEDS_XML_SORT_PROPERTY, sortorder: FEEDS_XML_SORT_ORDER, filterflags: FEEDS_XML_FILTER_FLAGS, includeflags: FEEDS_XML_INCLUDE_FLAGS, xml: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Xml, Impl: IFeed_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, count: i32, sortproperty: FEEDS_XML_SORT_PROPERTY, sortorder: FEEDS_XML_SORT_ORDER, filterflags: FEEDS_XML_FILTER_FLAGS, includeflags: FEEDS_XML_INCLUDE_FLAGS, xml: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Xml(::core::mem::transmute_copy(&count), ::core::mem::transmute_copy(&sortproperty), ::core::mem::transmute_copy(&sortorder), ::core::mem::transmute_copy(&filterflags), ::core::mem::transmute_copy(&includeflags)) { @@ -61,7 +61,7 @@ impl IFeed_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Name, Impl: IFeed_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IFeed_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -72,12 +72,12 @@ impl IFeed_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Rename, Impl: IFeed_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Rename, Impl: IFeed_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Rename(::core::mem::transmute(&name)).into() } - unsafe extern "system" fn Url, Impl: IFeed_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feedurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Url, Impl: IFeed_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feedurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Url() { @@ -88,12 +88,12 @@ impl IFeed_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetUrl, Impl: IFeed_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feedurl: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetUrl, Impl: IFeed_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feedurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetUrl(::core::mem::transmute(&feedurl)).into() } - unsafe extern "system" fn LocalId, Impl: IFeed_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feedguid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LocalId, Impl: IFeed_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feedguid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LocalId() { @@ -104,7 +104,7 @@ impl IFeed_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Path, Impl: IFeed_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Path, Impl: IFeed_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Path() { @@ -115,7 +115,7 @@ impl IFeed_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Move, Impl: IFeed_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newparentpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Move, Impl: IFeed_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newparentpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Move(::core::mem::transmute(&newparentpath)).into() @@ -205,7 +205,7 @@ impl IFeed_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn LocalEnclosurePath, Impl: IFeed_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LocalEnclosurePath, Impl: IFeed_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LocalEnclosurePath() { @@ -238,7 +238,7 @@ impl IFeed_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Title, Impl: IFeed_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, title: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Title, Impl: IFeed_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, title: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Title() { @@ -249,7 +249,7 @@ impl IFeed_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Description, Impl: IFeed_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IFeed_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -260,7 +260,7 @@ impl IFeed_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Link, Impl: IFeed_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, homepage: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Link, Impl: IFeed_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, homepage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Link() { @@ -271,7 +271,7 @@ impl IFeed_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Image, Impl: IFeed_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, imageurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Image, Impl: IFeed_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, imageurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Image() { @@ -315,7 +315,7 @@ impl IFeed_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Language, Impl: IFeed_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, language: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Language, Impl: IFeed_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, language: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Language() { @@ -326,7 +326,7 @@ impl IFeed_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Copyright, Impl: IFeed_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, copyright: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Copyright, Impl: IFeed_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, copyright: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Copyright() { @@ -391,12 +391,12 @@ impl IFeed_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Merge, Impl: IFeed_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feedxml: ::core::mem::ManuallyDrop, feedurl: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Merge, Impl: IFeed_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feedxml: ::core::mem::ManuallyDrop<::windows::core::BSTR>, feedurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Merge(::core::mem::transmute(&feedxml), ::core::mem::transmute(&feedurl)).into() } - unsafe extern "system" fn DownloadUrl, Impl: IFeed_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feedurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DownloadUrl, Impl: IFeed_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feedurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DownloadUrl() { @@ -512,9 +512,9 @@ impl IFeed_Vtbl { pub trait IFeed2_Impl: Sized + super::super::System::Com::IDispatch_Impl + IFeed_Impl { fn GetItemByEffectiveId(&self, itemeffectiveid: i32) -> ::windows::core::Result; fn LastItemDownloadTime(&self) -> ::windows::core::Result; - fn Username(&self) -> ::windows::core::Result; - fn Password(&self) -> ::windows::core::Result; - fn SetCredentials(&self, username: &super::super::Foundation::BSTR, password: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Username(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Password(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetCredentials(&self, username: &::windows::core::BSTR, password: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn ClearCredentials(&self) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -544,7 +544,7 @@ impl IFeed2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Username, Impl: IFeed2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, username: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Username, Impl: IFeed2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, username: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Username() { @@ -555,7 +555,7 @@ impl IFeed2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Password, Impl: IFeed2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, password: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Password, Impl: IFeed2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, password: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Password() { @@ -566,7 +566,7 @@ impl IFeed2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetCredentials, Impl: IFeed2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, username: ::core::mem::ManuallyDrop, password: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCredentials, Impl: IFeed2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, username: ::core::mem::ManuallyDrop<::windows::core::BSTR>, password: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCredentials(::core::mem::transmute(&username), ::core::mem::transmute(&password)).into() @@ -592,26 +592,26 @@ impl IFeed2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFeedEnclosure_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Url(&self) -> ::windows::core::Result; - fn Type(&self) -> ::windows::core::Result; + fn Url(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Type(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Length(&self) -> ::windows::core::Result; fn AsyncDownload(&self) -> ::windows::core::Result<()>; fn CancelAsyncDownload(&self) -> ::windows::core::Result<()>; fn DownloadStatus(&self) -> ::windows::core::Result; fn LastDownloadError(&self) -> ::windows::core::Result; - fn LocalPath(&self) -> ::windows::core::Result; + fn LocalPath(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Parent(&self) -> ::windows::core::Result; - fn DownloadUrl(&self) -> ::windows::core::Result; - fn DownloadMimeType(&self) -> ::windows::core::Result; + fn DownloadUrl(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn DownloadMimeType(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn RemoveFile(&self) -> ::windows::core::Result<()>; - fn SetFile(&self, downloadurl: &super::super::Foundation::BSTR, downloadfilepath: &super::super::Foundation::BSTR, downloadmimetype: &super::super::Foundation::BSTR, enclosurefilename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetFile(&self, downloadurl: &::windows::core::BSTR, downloadfilepath: &::windows::core::BSTR, downloadmimetype: &::windows::core::BSTR, enclosurefilename: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFeedEnclosure {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFeedEnclosure_Vtbl { pub const fn new, Impl: IFeedEnclosure_Impl, const OFFSET: isize>() -> IFeedEnclosure_Vtbl { - unsafe extern "system" fn Url, Impl: IFeedEnclosure_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, enclosureurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Url, Impl: IFeedEnclosure_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, enclosureurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Url() { @@ -622,7 +622,7 @@ impl IFeedEnclosure_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Type, Impl: IFeedEnclosure_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mimetype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Type, Impl: IFeedEnclosure_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mimetype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Type() { @@ -676,7 +676,7 @@ impl IFeedEnclosure_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn LocalPath, Impl: IFeedEnclosure_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, localpath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LocalPath, Impl: IFeedEnclosure_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, localpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LocalPath() { @@ -698,7 +698,7 @@ impl IFeedEnclosure_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DownloadUrl, Impl: IFeedEnclosure_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, enclosureurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DownloadUrl, Impl: IFeedEnclosure_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, enclosureurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DownloadUrl() { @@ -709,7 +709,7 @@ impl IFeedEnclosure_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DownloadMimeType, Impl: IFeedEnclosure_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mimetype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DownloadMimeType, Impl: IFeedEnclosure_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mimetype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DownloadMimeType() { @@ -725,7 +725,7 @@ impl IFeedEnclosure_Vtbl { let this = (*this).get_impl(); this.RemoveFile().into() } - unsafe extern "system" fn SetFile, Impl: IFeedEnclosure_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, downloadurl: ::core::mem::ManuallyDrop, downloadfilepath: ::core::mem::ManuallyDrop, downloadmimetype: ::core::mem::ManuallyDrop, enclosurefilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetFile, Impl: IFeedEnclosure_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, downloadurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, downloadfilepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, downloadmimetype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, enclosurefilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetFile(::core::mem::transmute(&downloadurl), ::core::mem::transmute(&downloadfilepath), ::core::mem::transmute(&downloadmimetype), ::core::mem::transmute(&enclosurefilename)).into() @@ -754,13 +754,13 @@ impl IFeedEnclosure_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFeedEvents_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn Error(&self) -> ::windows::core::Result<()>; - fn FeedDeleted(&self, path: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn FeedRenamed(&self, path: &super::super::Foundation::BSTR, oldpath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn FeedUrlChanged(&self, path: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn FeedMoved(&self, path: &super::super::Foundation::BSTR, oldpath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn FeedDownloading(&self, path: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn FeedDownloadCompleted(&self, path: &super::super::Foundation::BSTR, error: FEEDS_DOWNLOAD_ERROR) -> ::windows::core::Result<()>; - fn FeedItemCountChanged(&self, path: &super::super::Foundation::BSTR, itemcounttype: i32) -> ::windows::core::Result<()>; + fn FeedDeleted(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn FeedRenamed(&self, path: &::windows::core::BSTR, oldpath: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn FeedUrlChanged(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn FeedMoved(&self, path: &::windows::core::BSTR, oldpath: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn FeedDownloading(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn FeedDownloadCompleted(&self, path: &::windows::core::BSTR, error: FEEDS_DOWNLOAD_ERROR) -> ::windows::core::Result<()>; + fn FeedItemCountChanged(&self, path: &::windows::core::BSTR, itemcounttype: i32) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFeedEvents {} @@ -772,37 +772,37 @@ impl IFeedEvents_Vtbl { let this = (*this).get_impl(); this.Error().into() } - unsafe extern "system" fn FeedDeleted, Impl: IFeedEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn FeedDeleted, Impl: IFeedEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.FeedDeleted(::core::mem::transmute(&path)).into() } - unsafe extern "system" fn FeedRenamed, Impl: IFeedEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, oldpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn FeedRenamed, Impl: IFeedEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, oldpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.FeedRenamed(::core::mem::transmute(&path), ::core::mem::transmute(&oldpath)).into() } - unsafe extern "system" fn FeedUrlChanged, Impl: IFeedEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn FeedUrlChanged, Impl: IFeedEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.FeedUrlChanged(::core::mem::transmute(&path)).into() } - unsafe extern "system" fn FeedMoved, Impl: IFeedEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, oldpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn FeedMoved, Impl: IFeedEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, oldpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.FeedMoved(::core::mem::transmute(&path), ::core::mem::transmute(&oldpath)).into() } - unsafe extern "system" fn FeedDownloading, Impl: IFeedEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn FeedDownloading, Impl: IFeedEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.FeedDownloading(::core::mem::transmute(&path)).into() } - unsafe extern "system" fn FeedDownloadCompleted, Impl: IFeedEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, error: FEEDS_DOWNLOAD_ERROR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FeedDownloadCompleted, Impl: IFeedEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, error: FEEDS_DOWNLOAD_ERROR) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.FeedDownloadCompleted(::core::mem::transmute(&path), ::core::mem::transmute_copy(&error)).into() } - unsafe extern "system" fn FeedItemCountChanged, Impl: IFeedEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, itemcounttype: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn FeedItemCountChanged, Impl: IFeedEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, itemcounttype: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.FeedItemCountChanged(::core::mem::transmute(&path), ::core::mem::transmute_copy(&itemcounttype)).into() @@ -827,17 +827,17 @@ impl IFeedEvents_Vtbl { pub trait IFeedFolder_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn Feeds(&self) -> ::windows::core::Result; fn Subfolders(&self) -> ::windows::core::Result; - fn CreateFeed(&self, feedname: &super::super::Foundation::BSTR, feedurl: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn CreateSubfolder(&self, foldername: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn ExistsFeed(&self, feedname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetFeed(&self, feedname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn ExistsSubfolder(&self, foldername: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetSubfolder(&self, foldername: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn CreateFeed(&self, feedname: &::windows::core::BSTR, feedurl: &::windows::core::BSTR) -> ::windows::core::Result; + fn CreateSubfolder(&self, foldername: &::windows::core::BSTR) -> ::windows::core::Result; + fn ExistsFeed(&self, feedname: &::windows::core::BSTR) -> ::windows::core::Result; + fn GetFeed(&self, feedname: &::windows::core::BSTR) -> ::windows::core::Result; + fn ExistsSubfolder(&self, foldername: &::windows::core::BSTR) -> ::windows::core::Result; + fn GetSubfolder(&self, foldername: &::windows::core::BSTR) -> ::windows::core::Result; fn Delete(&self) -> ::windows::core::Result<()>; - fn Name(&self) -> ::windows::core::Result; - fn Rename(&self, foldername: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Path(&self) -> ::windows::core::Result; - fn Move(&self, newparentpath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Rename(&self, foldername: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Move(&self, newparentpath: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Parent(&self) -> ::windows::core::Result; fn IsRoot(&self) -> ::windows::core::Result; fn TotalUnreadItemCount(&self) -> ::windows::core::Result; @@ -871,7 +871,7 @@ impl IFeedFolder_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateFeed, Impl: IFeedFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feedname: ::core::mem::ManuallyDrop, feedurl: ::core::mem::ManuallyDrop, disp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateFeed, Impl: IFeedFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feedname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, feedurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, disp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateFeed(::core::mem::transmute(&feedname), ::core::mem::transmute(&feedurl)) { @@ -882,7 +882,7 @@ impl IFeedFolder_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateSubfolder, Impl: IFeedFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, foldername: ::core::mem::ManuallyDrop, disp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateSubfolder, Impl: IFeedFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, foldername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, disp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateSubfolder(::core::mem::transmute(&foldername)) { @@ -893,7 +893,7 @@ impl IFeedFolder_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ExistsFeed, Impl: IFeedFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feedname: ::core::mem::ManuallyDrop, exists: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExistsFeed, Impl: IFeedFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feedname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, exists: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ExistsFeed(::core::mem::transmute(&feedname)) { @@ -904,7 +904,7 @@ impl IFeedFolder_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetFeed, Impl: IFeedFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feedname: ::core::mem::ManuallyDrop, disp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFeed, Impl: IFeedFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feedname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, disp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetFeed(::core::mem::transmute(&feedname)) { @@ -915,7 +915,7 @@ impl IFeedFolder_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ExistsSubfolder, Impl: IFeedFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, foldername: ::core::mem::ManuallyDrop, exists: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExistsSubfolder, Impl: IFeedFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, foldername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, exists: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ExistsSubfolder(::core::mem::transmute(&foldername)) { @@ -926,7 +926,7 @@ impl IFeedFolder_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetSubfolder, Impl: IFeedFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, foldername: ::core::mem::ManuallyDrop, disp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSubfolder, Impl: IFeedFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, foldername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, disp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetSubfolder(::core::mem::transmute(&foldername)) { @@ -942,7 +942,7 @@ impl IFeedFolder_Vtbl { let this = (*this).get_impl(); this.Delete().into() } - unsafe extern "system" fn Name, Impl: IFeedFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, foldername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IFeedFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, foldername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -953,12 +953,12 @@ impl IFeedFolder_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Rename, Impl: IFeedFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, foldername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Rename, Impl: IFeedFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, foldername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Rename(::core::mem::transmute(&foldername)).into() } - unsafe extern "system" fn Path, Impl: IFeedFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, folderpath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Path, Impl: IFeedFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, folderpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Path() { @@ -969,7 +969,7 @@ impl IFeedFolder_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Move, Impl: IFeedFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newparentpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Move, Impl: IFeedFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newparentpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Move(::core::mem::transmute(&newparentpath)).into() @@ -1058,21 +1058,21 @@ impl IFeedFolder_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFeedFolderEvents_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn Error(&self) -> ::windows::core::Result<()>; - fn FolderAdded(&self, path: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn FolderDeleted(&self, path: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn FolderRenamed(&self, path: &super::super::Foundation::BSTR, oldpath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn FolderMovedFrom(&self, path: &super::super::Foundation::BSTR, oldpath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn FolderMovedTo(&self, path: &super::super::Foundation::BSTR, oldpath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn FolderItemCountChanged(&self, path: &super::super::Foundation::BSTR, itemcounttype: i32) -> ::windows::core::Result<()>; - fn FeedAdded(&self, path: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn FeedDeleted(&self, path: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn FeedRenamed(&self, path: &super::super::Foundation::BSTR, oldpath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn FeedUrlChanged(&self, path: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn FeedMovedFrom(&self, path: &super::super::Foundation::BSTR, oldpath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn FeedMovedTo(&self, path: &super::super::Foundation::BSTR, oldpath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn FeedDownloading(&self, path: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn FeedDownloadCompleted(&self, path: &super::super::Foundation::BSTR, error: FEEDS_DOWNLOAD_ERROR) -> ::windows::core::Result<()>; - fn FeedItemCountChanged(&self, path: &super::super::Foundation::BSTR, itemcounttype: i32) -> ::windows::core::Result<()>; + fn FolderAdded(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn FolderDeleted(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn FolderRenamed(&self, path: &::windows::core::BSTR, oldpath: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn FolderMovedFrom(&self, path: &::windows::core::BSTR, oldpath: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn FolderMovedTo(&self, path: &::windows::core::BSTR, oldpath: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn FolderItemCountChanged(&self, path: &::windows::core::BSTR, itemcounttype: i32) -> ::windows::core::Result<()>; + fn FeedAdded(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn FeedDeleted(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn FeedRenamed(&self, path: &::windows::core::BSTR, oldpath: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn FeedUrlChanged(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn FeedMovedFrom(&self, path: &::windows::core::BSTR, oldpath: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn FeedMovedTo(&self, path: &::windows::core::BSTR, oldpath: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn FeedDownloading(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn FeedDownloadCompleted(&self, path: &::windows::core::BSTR, error: FEEDS_DOWNLOAD_ERROR) -> ::windows::core::Result<()>; + fn FeedItemCountChanged(&self, path: &::windows::core::BSTR, itemcounttype: i32) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFeedFolderEvents {} @@ -1084,77 +1084,77 @@ impl IFeedFolderEvents_Vtbl { let this = (*this).get_impl(); this.Error().into() } - unsafe extern "system" fn FolderAdded, Impl: IFeedFolderEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn FolderAdded, Impl: IFeedFolderEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.FolderAdded(::core::mem::transmute(&path)).into() } - unsafe extern "system" fn FolderDeleted, Impl: IFeedFolderEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn FolderDeleted, Impl: IFeedFolderEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.FolderDeleted(::core::mem::transmute(&path)).into() } - unsafe extern "system" fn FolderRenamed, Impl: IFeedFolderEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, oldpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn FolderRenamed, Impl: IFeedFolderEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, oldpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.FolderRenamed(::core::mem::transmute(&path), ::core::mem::transmute(&oldpath)).into() } - unsafe extern "system" fn FolderMovedFrom, Impl: IFeedFolderEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, oldpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn FolderMovedFrom, Impl: IFeedFolderEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, oldpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.FolderMovedFrom(::core::mem::transmute(&path), ::core::mem::transmute(&oldpath)).into() } - unsafe extern "system" fn FolderMovedTo, Impl: IFeedFolderEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, oldpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn FolderMovedTo, Impl: IFeedFolderEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, oldpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.FolderMovedTo(::core::mem::transmute(&path), ::core::mem::transmute(&oldpath)).into() } - unsafe extern "system" fn FolderItemCountChanged, Impl: IFeedFolderEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, itemcounttype: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn FolderItemCountChanged, Impl: IFeedFolderEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, itemcounttype: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.FolderItemCountChanged(::core::mem::transmute(&path), ::core::mem::transmute_copy(&itemcounttype)).into() } - unsafe extern "system" fn FeedAdded, Impl: IFeedFolderEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn FeedAdded, Impl: IFeedFolderEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.FeedAdded(::core::mem::transmute(&path)).into() } - unsafe extern "system" fn FeedDeleted, Impl: IFeedFolderEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn FeedDeleted, Impl: IFeedFolderEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.FeedDeleted(::core::mem::transmute(&path)).into() } - unsafe extern "system" fn FeedRenamed, Impl: IFeedFolderEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, oldpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn FeedRenamed, Impl: IFeedFolderEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, oldpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.FeedRenamed(::core::mem::transmute(&path), ::core::mem::transmute(&oldpath)).into() } - unsafe extern "system" fn FeedUrlChanged, Impl: IFeedFolderEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn FeedUrlChanged, Impl: IFeedFolderEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.FeedUrlChanged(::core::mem::transmute(&path)).into() } - unsafe extern "system" fn FeedMovedFrom, Impl: IFeedFolderEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, oldpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn FeedMovedFrom, Impl: IFeedFolderEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, oldpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.FeedMovedFrom(::core::mem::transmute(&path), ::core::mem::transmute(&oldpath)).into() } - unsafe extern "system" fn FeedMovedTo, Impl: IFeedFolderEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, oldpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn FeedMovedTo, Impl: IFeedFolderEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, oldpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.FeedMovedTo(::core::mem::transmute(&path), ::core::mem::transmute(&oldpath)).into() } - unsafe extern "system" fn FeedDownloading, Impl: IFeedFolderEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn FeedDownloading, Impl: IFeedFolderEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.FeedDownloading(::core::mem::transmute(&path)).into() } - unsafe extern "system" fn FeedDownloadCompleted, Impl: IFeedFolderEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, error: FEEDS_DOWNLOAD_ERROR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FeedDownloadCompleted, Impl: IFeedFolderEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, error: FEEDS_DOWNLOAD_ERROR) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.FeedDownloadCompleted(::core::mem::transmute(&path), ::core::mem::transmute_copy(&error)).into() } - unsafe extern "system" fn FeedItemCountChanged, Impl: IFeedFolderEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, itemcounttype: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn FeedItemCountChanged, Impl: IFeedFolderEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, itemcounttype: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.FeedItemCountChanged(::core::mem::transmute(&path), ::core::mem::transmute_copy(&itemcounttype)).into() @@ -1185,21 +1185,21 @@ impl IFeedFolderEvents_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFeedItem_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Xml(&self, includeflags: FEEDS_XML_INCLUDE_FLAGS) -> ::windows::core::Result; - fn Title(&self) -> ::windows::core::Result; - fn Link(&self) -> ::windows::core::Result; - fn Guid(&self) -> ::windows::core::Result; - fn Description(&self) -> ::windows::core::Result; + fn Xml(&self, includeflags: FEEDS_XML_INCLUDE_FLAGS) -> ::windows::core::Result<::windows::core::BSTR>; + fn Title(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Link(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Guid(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn PubDate(&self) -> ::windows::core::Result; - fn Comments(&self) -> ::windows::core::Result; - fn Author(&self) -> ::windows::core::Result; + fn Comments(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Author(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Enclosure(&self) -> ::windows::core::Result; fn IsRead(&self) -> ::windows::core::Result; fn SetIsRead(&self, isread: i16) -> ::windows::core::Result<()>; fn LocalId(&self) -> ::windows::core::Result; fn Parent(&self) -> ::windows::core::Result; fn Delete(&self) -> ::windows::core::Result<()>; - fn DownloadUrl(&self) -> ::windows::core::Result; + fn DownloadUrl(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn LastDownloadTime(&self) -> ::windows::core::Result; fn Modified(&self) -> ::windows::core::Result; } @@ -1208,7 +1208,7 @@ impl ::windows::core::RuntimeName for IFeedItem {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFeedItem_Vtbl { pub const fn new, Impl: IFeedItem_Impl, const OFFSET: isize>() -> IFeedItem_Vtbl { - unsafe extern "system" fn Xml, Impl: IFeedItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, includeflags: FEEDS_XML_INCLUDE_FLAGS, xml: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Xml, Impl: IFeedItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, includeflags: FEEDS_XML_INCLUDE_FLAGS, xml: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Xml(::core::mem::transmute_copy(&includeflags)) { @@ -1219,7 +1219,7 @@ impl IFeedItem_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Title, Impl: IFeedItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, title: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Title, Impl: IFeedItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, title: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Title() { @@ -1230,7 +1230,7 @@ impl IFeedItem_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Link, Impl: IFeedItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, linkurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Link, Impl: IFeedItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, linkurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Link() { @@ -1241,7 +1241,7 @@ impl IFeedItem_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Guid, Impl: IFeedItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, itemguid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Guid, Impl: IFeedItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, itemguid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Guid() { @@ -1252,7 +1252,7 @@ impl IFeedItem_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Description, Impl: IFeedItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IFeedItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -1274,7 +1274,7 @@ impl IFeedItem_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Comments, Impl: IFeedItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, comments: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Comments, Impl: IFeedItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, comments: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Comments() { @@ -1285,7 +1285,7 @@ impl IFeedItem_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Author, Impl: IFeedItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, author: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Author, Impl: IFeedItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, author: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Author() { @@ -1350,7 +1350,7 @@ impl IFeedItem_Vtbl { let this = (*this).get_impl(); this.Delete().into() } - unsafe extern "system" fn DownloadUrl, Impl: IFeedItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, itemurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DownloadUrl, Impl: IFeedItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, itemurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DownloadUrl() { @@ -1492,20 +1492,20 @@ impl IFeedsEnum_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFeedsManager_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn RootFolder(&self) -> ::windows::core::Result; - fn IsSubscribed(&self, feedurl: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn ExistsFeed(&self, feedpath: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetFeed(&self, feedpath: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetFeedByUrl(&self, feedurl: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn ExistsFolder(&self, folderpath: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetFolder(&self, folderpath: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn DeleteFeed(&self, feedpath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn DeleteFolder(&self, folderpath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn IsSubscribed(&self, feedurl: &::windows::core::BSTR) -> ::windows::core::Result; + fn ExistsFeed(&self, feedpath: &::windows::core::BSTR) -> ::windows::core::Result; + fn GetFeed(&self, feedpath: &::windows::core::BSTR) -> ::windows::core::Result; + fn GetFeedByUrl(&self, feedurl: &::windows::core::BSTR) -> ::windows::core::Result; + fn ExistsFolder(&self, folderpath: &::windows::core::BSTR) -> ::windows::core::Result; + fn GetFolder(&self, folderpath: &::windows::core::BSTR) -> ::windows::core::Result; + fn DeleteFeed(&self, feedpath: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn DeleteFolder(&self, folderpath: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn BackgroundSync(&self, action: FEEDS_BACKGROUNDSYNC_ACTION) -> ::windows::core::Result<()>; fn BackgroundSyncStatus(&self) -> ::windows::core::Result; fn DefaultInterval(&self) -> ::windows::core::Result; fn SetDefaultInterval(&self, minutes: i32) -> ::windows::core::Result<()>; fn AsyncSyncAll(&self) -> ::windows::core::Result<()>; - fn Normalize(&self, feedxmlin: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn Normalize(&self, feedxmlin: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; fn ItemCountLimit(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -1524,7 +1524,7 @@ impl IFeedsManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn IsSubscribed, Impl: IFeedsManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feedurl: ::core::mem::ManuallyDrop, subscribed: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn IsSubscribed, Impl: IFeedsManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feedurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, subscribed: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.IsSubscribed(::core::mem::transmute(&feedurl)) { @@ -1535,7 +1535,7 @@ impl IFeedsManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ExistsFeed, Impl: IFeedsManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feedpath: ::core::mem::ManuallyDrop, exists: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExistsFeed, Impl: IFeedsManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feedpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, exists: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ExistsFeed(::core::mem::transmute(&feedpath)) { @@ -1546,7 +1546,7 @@ impl IFeedsManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetFeed, Impl: IFeedsManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feedpath: ::core::mem::ManuallyDrop, disp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFeed, Impl: IFeedsManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feedpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, disp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetFeed(::core::mem::transmute(&feedpath)) { @@ -1557,7 +1557,7 @@ impl IFeedsManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetFeedByUrl, Impl: IFeedsManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feedurl: ::core::mem::ManuallyDrop, disp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFeedByUrl, Impl: IFeedsManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feedurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, disp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetFeedByUrl(::core::mem::transmute(&feedurl)) { @@ -1568,7 +1568,7 @@ impl IFeedsManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ExistsFolder, Impl: IFeedsManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, folderpath: ::core::mem::ManuallyDrop, exists: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExistsFolder, Impl: IFeedsManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, folderpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, exists: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ExistsFolder(::core::mem::transmute(&folderpath)) { @@ -1579,7 +1579,7 @@ impl IFeedsManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetFolder, Impl: IFeedsManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, folderpath: ::core::mem::ManuallyDrop, disp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFolder, Impl: IFeedsManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, folderpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, disp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetFolder(::core::mem::transmute(&folderpath)) { @@ -1590,12 +1590,12 @@ impl IFeedsManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DeleteFeed, Impl: IFeedsManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feedpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteFeed, Impl: IFeedsManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feedpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteFeed(::core::mem::transmute(&feedpath)).into() } - unsafe extern "system" fn DeleteFolder, Impl: IFeedsManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, folderpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteFolder, Impl: IFeedsManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, folderpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteFolder(::core::mem::transmute(&folderpath)).into() @@ -1637,7 +1637,7 @@ impl IFeedsManager_Vtbl { let this = (*this).get_impl(); this.AsyncSyncAll().into() } - unsafe extern "system" fn Normalize, Impl: IFeedsManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feedxmlin: ::core::mem::ManuallyDrop, feedxmlout: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Normalize, Impl: IFeedsManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feedxmlin: ::core::mem::ManuallyDrop<::windows::core::BSTR>, feedxmlout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Normalize(::core::mem::transmute(&feedxmlin)) { @@ -1683,22 +1683,19 @@ impl IFeedsManager_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IWMPAudioRenderConfig_Impl: Sized { - fn audioOutputDevice(&self, pbstroutputdevice: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetaudioOutputDevice(&self, bstroutputdevice: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn audioOutputDevice(&self, pbstroutputdevice: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetaudioOutputDevice(&self, bstroutputdevice: &::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IWMPAudioRenderConfig {} -#[cfg(feature = "Win32_Foundation")] impl IWMPAudioRenderConfig_Vtbl { pub const fn new, Impl: IWMPAudioRenderConfig_Impl, const OFFSET: isize>() -> IWMPAudioRenderConfig_Vtbl { - unsafe extern "system" fn audioOutputDevice, Impl: IWMPAudioRenderConfig_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstroutputdevice: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn audioOutputDevice, Impl: IWMPAudioRenderConfig_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstroutputdevice: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.audioOutputDevice(::core::mem::transmute_copy(&pbstroutputdevice)).into() } - unsafe extern "system" fn SetaudioOutputDevice, Impl: IWMPAudioRenderConfig_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstroutputdevice: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetaudioOutputDevice, Impl: IWMPAudioRenderConfig_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstroutputdevice: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetaudioOutputDevice(::core::mem::transmute(&bstroutputdevice)).into() @@ -1715,7 +1712,7 @@ impl IWMPAudioRenderConfig_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWMPCdrom_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn driveSpecifier(&self, pbstrdrive: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn driveSpecifier(&self, pbstrdrive: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn playlist(&self) -> ::windows::core::Result; fn eject(&self) -> ::windows::core::Result<()>; } @@ -1724,7 +1721,7 @@ impl ::windows::core::RuntimeName for IWMPCdrom {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWMPCdrom_Vtbl { pub const fn new, Impl: IWMPCdrom_Impl, const OFFSET: isize>() -> IWMPCdrom_Vtbl { - unsafe extern "system" fn driveSpecifier, Impl: IWMPCdrom_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdrive: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn driveSpecifier, Impl: IWMPCdrom_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdrive: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.driveSpecifier(::core::mem::transmute_copy(&pbstrdrive)).into() @@ -1756,12 +1753,12 @@ impl IWMPCdrom_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IWMPCdromBurn_Impl: Sized { - fn isAvailable(&self, bstritem: &super::super::Foundation::BSTR, pisavailable: *mut i16) -> ::windows::core::Result<()>; - fn getItemInfo(&self, bstritem: &super::super::Foundation::BSTR, pbstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn label(&self, pbstrlabel: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Setlabel(&self, bstrlabel: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn isAvailable(&self, bstritem: &::windows::core::BSTR, pisavailable: *mut i16) -> ::windows::core::Result<()>; + fn getItemInfo(&self, bstritem: &::windows::core::BSTR, pbstrval: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn label(&self, pbstrlabel: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Setlabel(&self, bstrlabel: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn burnFormat(&self, pwmpbf: *mut WMPBurnFormat) -> ::windows::core::Result<()>; fn SetburnFormat(&self, wmpbf: WMPBurnFormat) -> ::windows::core::Result<()>; fn burnPlaylist(&self) -> ::windows::core::Result; @@ -1773,27 +1770,27 @@ pub trait IWMPCdromBurn_Impl: Sized { fn stopBurn(&self) -> ::windows::core::Result<()>; fn erase(&self) -> ::windows::core::Result<()>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IWMPCdromBurn {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IWMPCdromBurn_Vtbl { pub const fn new, Impl: IWMPCdromBurn_Impl, const OFFSET: isize>() -> IWMPCdromBurn_Vtbl { - unsafe extern "system" fn isAvailable, Impl: IWMPCdromBurn_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstritem: ::core::mem::ManuallyDrop, pisavailable: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn isAvailable, Impl: IWMPCdromBurn_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstritem: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pisavailable: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.isAvailable(::core::mem::transmute(&bstritem), ::core::mem::transmute_copy(&pisavailable)).into() } - unsafe extern "system" fn getItemInfo, Impl: IWMPCdromBurn_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstritem: ::core::mem::ManuallyDrop, pbstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn getItemInfo, Impl: IWMPCdromBurn_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstritem: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.getItemInfo(::core::mem::transmute(&bstritem), ::core::mem::transmute_copy(&pbstrval)).into() } - unsafe extern "system" fn label, Impl: IWMPCdromBurn_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrlabel: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn label, Impl: IWMPCdromBurn_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrlabel: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.label(::core::mem::transmute_copy(&pbstrlabel)).into() } - unsafe extern "system" fn Setlabel, Impl: IWMPCdromBurn_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrlabel: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Setlabel, Impl: IWMPCdromBurn_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrlabel: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Setlabel(::core::mem::transmute(&bstrlabel)).into() @@ -1880,7 +1877,7 @@ impl IWMPCdromBurn_Vtbl { pub trait IWMPCdromCollection_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn count(&self, plcount: *mut i32) -> ::windows::core::Result<()>; fn item(&self, lindex: i32) -> ::windows::core::Result; - fn getByDriveSpecifier(&self, bstrdrivespecifier: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn getByDriveSpecifier(&self, bstrdrivespecifier: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWMPCdromCollection {} @@ -1903,7 +1900,7 @@ impl IWMPCdromCollection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn getByDriveSpecifier, Impl: IWMPCdromCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdrivespecifier: ::core::mem::ManuallyDrop, ppcdrom: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn getByDriveSpecifier, Impl: IWMPCdromCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdrivespecifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppcdrom: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getByDriveSpecifier(::core::mem::transmute(&bstrdrivespecifier)) { @@ -1968,56 +1965,56 @@ impl IWMPCdromRip_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWMPClosedCaption_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn SAMIStyle(&self, pbstrsamistyle: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetSAMIStyle(&self, bstrsamistyle: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SAMILang(&self, pbstrsamilang: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetSAMILang(&self, bstrsamilang: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SAMIFileName(&self, pbstrsamifilename: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetSAMIFileName(&self, bstrsamifilename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn captioningId(&self, pbstrcaptioningid: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetcaptioningId(&self, bstrcaptioningid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SAMIStyle(&self, pbstrsamistyle: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetSAMIStyle(&self, bstrsamistyle: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SAMILang(&self, pbstrsamilang: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetSAMILang(&self, bstrsamilang: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SAMIFileName(&self, pbstrsamifilename: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetSAMIFileName(&self, bstrsamifilename: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn captioningId(&self, pbstrcaptioningid: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetcaptioningId(&self, bstrcaptioningid: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWMPClosedCaption {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWMPClosedCaption_Vtbl { pub const fn new, Impl: IWMPClosedCaption_Impl, const OFFSET: isize>() -> IWMPClosedCaption_Vtbl { - unsafe extern "system" fn SAMIStyle, Impl: IWMPClosedCaption_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsamistyle: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SAMIStyle, Impl: IWMPClosedCaption_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsamistyle: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SAMIStyle(::core::mem::transmute_copy(&pbstrsamistyle)).into() } - unsafe extern "system" fn SetSAMIStyle, Impl: IWMPClosedCaption_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsamistyle: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSAMIStyle, Impl: IWMPClosedCaption_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsamistyle: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSAMIStyle(::core::mem::transmute(&bstrsamistyle)).into() } - unsafe extern "system" fn SAMILang, Impl: IWMPClosedCaption_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsamilang: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SAMILang, Impl: IWMPClosedCaption_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsamilang: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SAMILang(::core::mem::transmute_copy(&pbstrsamilang)).into() } - unsafe extern "system" fn SetSAMILang, Impl: IWMPClosedCaption_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsamilang: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSAMILang, Impl: IWMPClosedCaption_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsamilang: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSAMILang(::core::mem::transmute(&bstrsamilang)).into() } - unsafe extern "system" fn SAMIFileName, Impl: IWMPClosedCaption_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsamifilename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SAMIFileName, Impl: IWMPClosedCaption_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsamifilename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SAMIFileName(::core::mem::transmute_copy(&pbstrsamifilename)).into() } - unsafe extern "system" fn SetSAMIFileName, Impl: IWMPClosedCaption_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsamifilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSAMIFileName, Impl: IWMPClosedCaption_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsamifilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSAMIFileName(::core::mem::transmute(&bstrsamifilename)).into() } - unsafe extern "system" fn captioningId, Impl: IWMPClosedCaption_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcaptioningid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn captioningId, Impl: IWMPClosedCaption_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcaptioningid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.captioningId(::core::mem::transmute_copy(&pbstrcaptioningid)).into() } - unsafe extern "system" fn SetcaptioningId, Impl: IWMPClosedCaption_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcaptioningid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetcaptioningId, Impl: IWMPClosedCaption_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcaptioningid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetcaptioningId(::core::mem::transmute(&bstrcaptioningid)).into() @@ -2041,10 +2038,10 @@ impl IWMPClosedCaption_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWMPClosedCaption2_Impl: Sized + super::super::System::Com::IDispatch_Impl + IWMPClosedCaption_Impl { fn SAMILangCount(&self, plcount: *mut i32) -> ::windows::core::Result<()>; - fn getSAMILangName(&self, nindex: i32, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn getSAMILangName(&self, nindex: i32, pbstrname: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn getSAMILangID(&self, nindex: i32, pllangid: *mut i32) -> ::windows::core::Result<()>; fn SAMIStyleCount(&self, plcount: *mut i32) -> ::windows::core::Result<()>; - fn getSAMIStyleName(&self, nindex: i32, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn getSAMIStyleName(&self, nindex: i32, pbstrname: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWMPClosedCaption2 {} @@ -2056,7 +2053,7 @@ impl IWMPClosedCaption2_Vtbl { let this = (*this).get_impl(); this.SAMILangCount(::core::mem::transmute_copy(&plcount)).into() } - unsafe extern "system" fn getSAMILangName, Impl: IWMPClosedCaption2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nindex: i32, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn getSAMILangName, Impl: IWMPClosedCaption2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nindex: i32, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.getSAMILangName(::core::mem::transmute_copy(&nindex), ::core::mem::transmute_copy(&pbstrname)).into() @@ -2071,7 +2068,7 @@ impl IWMPClosedCaption2_Vtbl { let this = (*this).get_impl(); this.SAMIStyleCount(::core::mem::transmute_copy(&plcount)).into() } - unsafe extern "system" fn getSAMIStyleName, Impl: IWMPClosedCaption2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nindex: i32, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn getSAMIStyleName, Impl: IWMPClosedCaption2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nindex: i32, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.getSAMIStyleName(::core::mem::transmute_copy(&nindex), ::core::mem::transmute_copy(&pbstrname)).into() @@ -2089,18 +2086,15 @@ impl IWMPClosedCaption2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IWMPContentContainer_Impl: Sized { fn GetID(&self) -> ::windows::core::Result; - fn GetPrice(&self) -> ::windows::core::Result; - fn GetType(&self) -> ::windows::core::Result; + fn GetPrice(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetType(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetContentCount(&self) -> ::windows::core::Result; - fn GetContentPrice(&self, idxcontent: u32) -> ::windows::core::Result; + fn GetContentPrice(&self, idxcontent: u32) -> ::windows::core::Result<::windows::core::BSTR>; fn GetContentID(&self, idxcontent: u32) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IWMPContentContainer {} -#[cfg(feature = "Win32_Foundation")] impl IWMPContentContainer_Vtbl { pub const fn new, Impl: IWMPContentContainer_Impl, const OFFSET: isize>() -> IWMPContentContainer_Vtbl { unsafe extern "system" fn GetID, Impl: IWMPContentContainer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcontentid: *mut u32) -> ::windows::core::HRESULT { @@ -2114,7 +2108,7 @@ impl IWMPContentContainer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetPrice, Impl: IWMPContentContainer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprice: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPrice, Impl: IWMPContentContainer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprice: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetPrice() { @@ -2125,7 +2119,7 @@ impl IWMPContentContainer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetType, Impl: IWMPContentContainer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetType, Impl: IWMPContentContainer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetType() { @@ -2147,7 +2141,7 @@ impl IWMPContentContainer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetContentPrice, Impl: IWMPContentContainer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, idxcontent: u32, pbstrprice: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetContentPrice, Impl: IWMPContentContainer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, idxcontent: u32, pbstrprice: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetContentPrice(::core::mem::transmute_copy(&idxcontent)) { @@ -2239,27 +2233,27 @@ impl IWMPContentContainerList_Vtbl { pub trait IWMPContentPartner_Impl: Sized { fn SetCallback(&self, pcallback: &::core::option::Option) -> ::windows::core::Result<()>; fn Notify(&self, r#type: WMPPartnerNotification, pcontext: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn GetItemInfo(&self, bstrinfoname: &super::super::Foundation::BSTR, pcontext: *const super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn GetContentPartnerInfo(&self, bstrinfoname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetCommands(&self, location: &super::super::Foundation::BSTR, plocationcontext: *const super::super::System::Com::VARIANT, itemlocation: &super::super::Foundation::BSTR, citemids: u32, prgitemids: *const u32, pcitemids: *mut u32, pprgitems: *mut *mut WMPContextMenuInfo) -> ::windows::core::Result<()>; - fn InvokeCommand(&self, dwcommandid: u32, location: &super::super::Foundation::BSTR, plocationcontext: *const super::super::System::Com::VARIANT, itemlocation: &super::super::Foundation::BSTR, citemids: u32, rgitemids: *const u32) -> ::windows::core::Result<()>; - fn CanBuySilent(&self, pinfo: &::core::option::Option, pbstrtotalprice: *mut super::super::Foundation::BSTR, psilentok: *mut i16) -> ::windows::core::Result<()>; + fn GetItemInfo(&self, bstrinfoname: &::windows::core::BSTR, pcontext: *const super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn GetContentPartnerInfo(&self, bstrinfoname: &::windows::core::BSTR) -> ::windows::core::Result; + fn GetCommands(&self, location: &::windows::core::BSTR, plocationcontext: *const super::super::System::Com::VARIANT, itemlocation: &::windows::core::BSTR, citemids: u32, prgitemids: *const u32, pcitemids: *mut u32, pprgitems: *mut *mut WMPContextMenuInfo) -> ::windows::core::Result<()>; + fn InvokeCommand(&self, dwcommandid: u32, location: &::windows::core::BSTR, plocationcontext: *const super::super::System::Com::VARIANT, itemlocation: &::windows::core::BSTR, citemids: u32, rgitemids: *const u32) -> ::windows::core::Result<()>; + fn CanBuySilent(&self, pinfo: &::core::option::Option, pbstrtotalprice: *mut ::windows::core::BSTR, psilentok: *mut i16) -> ::windows::core::Result<()>; fn Buy(&self, pinfo: &::core::option::Option, cookie: u32) -> ::windows::core::Result<()>; - fn GetStreamingURL(&self, st: WMPStreamingType, pstreamcontext: *const super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn GetStreamingURL(&self, st: WMPStreamingType, pstreamcontext: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<::windows::core::BSTR>; fn Download(&self, pinfo: &::core::option::Option, cookie: u32) -> ::windows::core::Result<()>; - fn DownloadTrackComplete(&self, hrresult: ::windows::core::HRESULT, contentid: u32, downloadtrackparam: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn RefreshLicense(&self, dwcookie: u32, flocal: i16, bstrurl: &super::super::Foundation::BSTR, r#type: WMPStreamingType, contentid: u32, bstrrefreshreason: &super::super::Foundation::BSTR, preasoncontext: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn GetCatalogURL(&self, dwcatalogversion: u32, dwcatalogschemaversion: u32, cataloglcid: u32, pdwnewcatalogversion: *mut u32, pbstrcatalogurl: *mut super::super::Foundation::BSTR, pexpirationdate: *mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn GetTemplate(&self, task: WMPTaskType, location: &super::super::Foundation::BSTR, pcontext: *const super::super::System::Com::VARIANT, clicklocation: &super::super::Foundation::BSTR, pclickcontext: *const super::super::System::Com::VARIANT, bstrfilter: &super::super::Foundation::BSTR, bstrviewparams: &super::super::Foundation::BSTR, pbstrtemplateurl: *mut super::super::Foundation::BSTR, ptemplatesize: *mut WMPTemplateSize) -> ::windows::core::Result<()>; - fn UpdateDevice(&self, bstrdevicename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetListContents(&self, location: &super::super::Foundation::BSTR, pcontext: *const super::super::System::Com::VARIANT, bstrlisttype: &super::super::Foundation::BSTR, bstrparams: &super::super::Foundation::BSTR, dwlistcookie: u32) -> ::windows::core::Result<()>; + fn DownloadTrackComplete(&self, hrresult: ::windows::core::HRESULT, contentid: u32, downloadtrackparam: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn RefreshLicense(&self, dwcookie: u32, flocal: i16, bstrurl: &::windows::core::BSTR, r#type: WMPStreamingType, contentid: u32, bstrrefreshreason: &::windows::core::BSTR, preasoncontext: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn GetCatalogURL(&self, dwcatalogversion: u32, dwcatalogschemaversion: u32, cataloglcid: u32, pdwnewcatalogversion: *mut u32, pbstrcatalogurl: *mut ::windows::core::BSTR, pexpirationdate: *mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn GetTemplate(&self, task: WMPTaskType, location: &::windows::core::BSTR, pcontext: *const super::super::System::Com::VARIANT, clicklocation: &::windows::core::BSTR, pclickcontext: *const super::super::System::Com::VARIANT, bstrfilter: &::windows::core::BSTR, bstrviewparams: &::windows::core::BSTR, pbstrtemplateurl: *mut ::windows::core::BSTR, ptemplatesize: *mut WMPTemplateSize) -> ::windows::core::Result<()>; + fn UpdateDevice(&self, bstrdevicename: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetListContents(&self, location: &::windows::core::BSTR, pcontext: *const super::super::System::Com::VARIANT, bstrlisttype: &::windows::core::BSTR, bstrparams: &::windows::core::BSTR, dwlistcookie: u32) -> ::windows::core::Result<()>; fn Login(&self, userinfo: &super::super::System::Com::BLOB, pwdinfo: &super::super::System::Com::BLOB, fusedcachedcreds: i16, foktocache: i16) -> ::windows::core::Result<()>; fn Authenticate(&self, userinfo: &super::super::System::Com::BLOB, pwdinfo: &super::super::System::Com::BLOB) -> ::windows::core::Result<()>; fn Logout(&self) -> ::windows::core::Result<()>; - fn SendMessage(&self, bstrmsg: &super::super::Foundation::BSTR, bstrparam: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn StationEvent(&self, bstrstationeventtype: &super::super::Foundation::BSTR, stationid: u32, playlistindex: u32, trackid: u32, trackdata: &super::super::Foundation::BSTR, dwsecondsplayed: u32) -> ::windows::core::Result<()>; + fn SendMessage(&self, bstrmsg: &::windows::core::BSTR, bstrparam: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn StationEvent(&self, bstrstationeventtype: &::windows::core::BSTR, stationid: u32, playlistindex: u32, trackid: u32, trackdata: &::windows::core::BSTR, dwsecondsplayed: u32) -> ::windows::core::Result<()>; fn CompareContainerListPrices(&self, plistbase: &::core::option::Option, plistcompare: &::core::option::Option) -> ::windows::core::Result; - fn VerifyPermission(&self, bstrpermission: &super::super::Foundation::BSTR, pcontext: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn VerifyPermission(&self, bstrpermission: &::windows::core::BSTR, pcontext: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWMPContentPartner {} @@ -2276,7 +2270,7 @@ impl IWMPContentPartner_Vtbl { let this = (*this).get_impl(); this.Notify(::core::mem::transmute_copy(&r#type), ::core::mem::transmute_copy(&pcontext)).into() } - unsafe extern "system" fn GetItemInfo, Impl: IWMPContentPartner_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrinfoname: ::core::mem::ManuallyDrop, pcontext: *const super::super::System::Com::VARIANT, pdata: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetItemInfo, Impl: IWMPContentPartner_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrinfoname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcontext: *const super::super::System::Com::VARIANT, pdata: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetItemInfo(::core::mem::transmute(&bstrinfoname), ::core::mem::transmute_copy(&pcontext)) { @@ -2287,7 +2281,7 @@ impl IWMPContentPartner_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetContentPartnerInfo, Impl: IWMPContentPartner_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrinfoname: ::core::mem::ManuallyDrop, pdata: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetContentPartnerInfo, Impl: IWMPContentPartner_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrinfoname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdata: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetContentPartnerInfo(::core::mem::transmute(&bstrinfoname)) { @@ -2298,17 +2292,17 @@ impl IWMPContentPartner_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetCommands, Impl: IWMPContentPartner_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, location: ::core::mem::ManuallyDrop, plocationcontext: *const super::super::System::Com::VARIANT, itemlocation: ::core::mem::ManuallyDrop, citemids: u32, prgitemids: *const u32, pcitemids: *mut u32, pprgitems: *mut *mut WMPContextMenuInfo) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCommands, Impl: IWMPContentPartner_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, location: ::core::mem::ManuallyDrop<::windows::core::BSTR>, plocationcontext: *const super::super::System::Com::VARIANT, itemlocation: ::core::mem::ManuallyDrop<::windows::core::BSTR>, citemids: u32, prgitemids: *const u32, pcitemids: *mut u32, pprgitems: *mut *mut WMPContextMenuInfo) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetCommands(::core::mem::transmute(&location), ::core::mem::transmute_copy(&plocationcontext), ::core::mem::transmute(&itemlocation), ::core::mem::transmute_copy(&citemids), ::core::mem::transmute_copy(&prgitemids), ::core::mem::transmute_copy(&pcitemids), ::core::mem::transmute_copy(&pprgitems)).into() } - unsafe extern "system" fn InvokeCommand, Impl: IWMPContentPartner_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwcommandid: u32, location: ::core::mem::ManuallyDrop, plocationcontext: *const super::super::System::Com::VARIANT, itemlocation: ::core::mem::ManuallyDrop, citemids: u32, rgitemids: *const u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn InvokeCommand, Impl: IWMPContentPartner_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwcommandid: u32, location: ::core::mem::ManuallyDrop<::windows::core::BSTR>, plocationcontext: *const super::super::System::Com::VARIANT, itemlocation: ::core::mem::ManuallyDrop<::windows::core::BSTR>, citemids: u32, rgitemids: *const u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InvokeCommand(::core::mem::transmute_copy(&dwcommandid), ::core::mem::transmute(&location), ::core::mem::transmute_copy(&plocationcontext), ::core::mem::transmute(&itemlocation), ::core::mem::transmute_copy(&citemids), ::core::mem::transmute_copy(&rgitemids)).into() } - unsafe extern "system" fn CanBuySilent, Impl: IWMPContentPartner_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pinfo: *mut ::core::ffi::c_void, pbstrtotalprice: *mut super::super::Foundation::BSTR, psilentok: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn CanBuySilent, Impl: IWMPContentPartner_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pinfo: *mut ::core::ffi::c_void, pbstrtotalprice: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, psilentok: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CanBuySilent(::core::mem::transmute(&pinfo), ::core::mem::transmute_copy(&pbstrtotalprice), ::core::mem::transmute_copy(&psilentok)).into() @@ -2318,7 +2312,7 @@ impl IWMPContentPartner_Vtbl { let this = (*this).get_impl(); this.Buy(::core::mem::transmute(&pinfo), ::core::mem::transmute_copy(&cookie)).into() } - unsafe extern "system" fn GetStreamingURL, Impl: IWMPContentPartner_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, st: WMPStreamingType, pstreamcontext: *const super::super::System::Com::VARIANT, pbstrurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetStreamingURL, Impl: IWMPContentPartner_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, st: WMPStreamingType, pstreamcontext: *const super::super::System::Com::VARIANT, pbstrurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetStreamingURL(::core::mem::transmute_copy(&st), ::core::mem::transmute_copy(&pstreamcontext)) { @@ -2334,32 +2328,32 @@ impl IWMPContentPartner_Vtbl { let this = (*this).get_impl(); this.Download(::core::mem::transmute(&pinfo), ::core::mem::transmute_copy(&cookie)).into() } - unsafe extern "system" fn DownloadTrackComplete, Impl: IWMPContentPartner_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hrresult: ::windows::core::HRESULT, contentid: u32, downloadtrackparam: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DownloadTrackComplete, Impl: IWMPContentPartner_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hrresult: ::windows::core::HRESULT, contentid: u32, downloadtrackparam: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DownloadTrackComplete(::core::mem::transmute_copy(&hrresult), ::core::mem::transmute_copy(&contentid), ::core::mem::transmute(&downloadtrackparam)).into() } - unsafe extern "system" fn RefreshLicense, Impl: IWMPContentPartner_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwcookie: u32, flocal: i16, bstrurl: ::core::mem::ManuallyDrop, r#type: WMPStreamingType, contentid: u32, bstrrefreshreason: ::core::mem::ManuallyDrop, preasoncontext: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn RefreshLicense, Impl: IWMPContentPartner_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwcookie: u32, flocal: i16, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, r#type: WMPStreamingType, contentid: u32, bstrrefreshreason: ::core::mem::ManuallyDrop<::windows::core::BSTR>, preasoncontext: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RefreshLicense(::core::mem::transmute_copy(&dwcookie), ::core::mem::transmute_copy(&flocal), ::core::mem::transmute(&bstrurl), ::core::mem::transmute_copy(&r#type), ::core::mem::transmute_copy(&contentid), ::core::mem::transmute(&bstrrefreshreason), ::core::mem::transmute_copy(&preasoncontext)).into() } - unsafe extern "system" fn GetCatalogURL, Impl: IWMPContentPartner_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwcatalogversion: u32, dwcatalogschemaversion: u32, cataloglcid: u32, pdwnewcatalogversion: *mut u32, pbstrcatalogurl: *mut super::super::Foundation::BSTR, pexpirationdate: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCatalogURL, Impl: IWMPContentPartner_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwcatalogversion: u32, dwcatalogschemaversion: u32, cataloglcid: u32, pdwnewcatalogversion: *mut u32, pbstrcatalogurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pexpirationdate: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetCatalogURL(::core::mem::transmute_copy(&dwcatalogversion), ::core::mem::transmute_copy(&dwcatalogschemaversion), ::core::mem::transmute_copy(&cataloglcid), ::core::mem::transmute_copy(&pdwnewcatalogversion), ::core::mem::transmute_copy(&pbstrcatalogurl), ::core::mem::transmute_copy(&pexpirationdate)).into() } - unsafe extern "system" fn GetTemplate, Impl: IWMPContentPartner_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, task: WMPTaskType, location: ::core::mem::ManuallyDrop, pcontext: *const super::super::System::Com::VARIANT, clicklocation: ::core::mem::ManuallyDrop, pclickcontext: *const super::super::System::Com::VARIANT, bstrfilter: ::core::mem::ManuallyDrop, bstrviewparams: ::core::mem::ManuallyDrop, pbstrtemplateurl: *mut super::super::Foundation::BSTR, ptemplatesize: *mut WMPTemplateSize) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetTemplate, Impl: IWMPContentPartner_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, task: WMPTaskType, location: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcontext: *const super::super::System::Com::VARIANT, clicklocation: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pclickcontext: *const super::super::System::Com::VARIANT, bstrfilter: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrviewparams: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrtemplateurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, ptemplatesize: *mut WMPTemplateSize) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetTemplate(::core::mem::transmute_copy(&task), ::core::mem::transmute(&location), ::core::mem::transmute_copy(&pcontext), ::core::mem::transmute(&clicklocation), ::core::mem::transmute_copy(&pclickcontext), ::core::mem::transmute(&bstrfilter), ::core::mem::transmute(&bstrviewparams), ::core::mem::transmute_copy(&pbstrtemplateurl), ::core::mem::transmute_copy(&ptemplatesize)).into() } - unsafe extern "system" fn UpdateDevice, Impl: IWMPContentPartner_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdevicename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn UpdateDevice, Impl: IWMPContentPartner_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdevicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.UpdateDevice(::core::mem::transmute(&bstrdevicename)).into() } - unsafe extern "system" fn GetListContents, Impl: IWMPContentPartner_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, location: ::core::mem::ManuallyDrop, pcontext: *const super::super::System::Com::VARIANT, bstrlisttype: ::core::mem::ManuallyDrop, bstrparams: ::core::mem::ManuallyDrop, dwlistcookie: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetListContents, Impl: IWMPContentPartner_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, location: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcontext: *const super::super::System::Com::VARIANT, bstrlisttype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrparams: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwlistcookie: u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetListContents(::core::mem::transmute(&location), ::core::mem::transmute_copy(&pcontext), ::core::mem::transmute(&bstrlisttype), ::core::mem::transmute(&bstrparams), ::core::mem::transmute_copy(&dwlistcookie)).into() @@ -2379,12 +2373,12 @@ impl IWMPContentPartner_Vtbl { let this = (*this).get_impl(); this.Logout().into() } - unsafe extern "system" fn SendMessage, Impl: IWMPContentPartner_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmsg: ::core::mem::ManuallyDrop, bstrparam: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SendMessage, Impl: IWMPContentPartner_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmsg: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrparam: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SendMessage(::core::mem::transmute(&bstrmsg), ::core::mem::transmute(&bstrparam)).into() } - unsafe extern "system" fn StationEvent, Impl: IWMPContentPartner_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrstationeventtype: ::core::mem::ManuallyDrop, stationid: u32, playlistindex: u32, trackid: u32, trackdata: ::core::mem::ManuallyDrop, dwsecondsplayed: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn StationEvent, Impl: IWMPContentPartner_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrstationeventtype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, stationid: u32, playlistindex: u32, trackid: u32, trackdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwsecondsplayed: u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.StationEvent(::core::mem::transmute(&bstrstationeventtype), ::core::mem::transmute_copy(&stationid), ::core::mem::transmute_copy(&playlistindex), ::core::mem::transmute_copy(&trackid), ::core::mem::transmute(&trackdata), ::core::mem::transmute_copy(&dwsecondsplayed)).into() @@ -2400,7 +2394,7 @@ impl IWMPContentPartner_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn VerifyPermission, Impl: IWMPContentPartner_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpermission: ::core::mem::ManuallyDrop, pcontext: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn VerifyPermission, Impl: IWMPContentPartner_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpermission: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcontext: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.VerifyPermission(::core::mem::transmute(&bstrpermission), ::core::mem::transmute_copy(&pcontext)).into() @@ -2440,17 +2434,17 @@ impl IWMPContentPartner_Vtbl { pub trait IWMPContentPartnerCallback_Impl: Sized { fn Notify(&self, r#type: WMPCallbackNotification, pcontext: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn BuyComplete(&self, hrresult: ::windows::core::HRESULT, dwbuycookie: u32) -> ::windows::core::Result<()>; - fn DownloadTrack(&self, cookie: u32, bstrtrackurl: &super::super::Foundation::BSTR, dwservicetrackid: u32, bstrdownloadparams: &super::super::Foundation::BSTR, hrdownload: ::windows::core::HRESULT) -> ::windows::core::Result<()>; + fn DownloadTrack(&self, cookie: u32, bstrtrackurl: &::windows::core::BSTR, dwservicetrackid: u32, bstrdownloadparams: &::windows::core::BSTR, hrdownload: ::windows::core::HRESULT) -> ::windows::core::Result<()>; fn GetCatalogVersion(&self, pdwversion: *mut u32, pdwschemaversion: *mut u32, plcid: *mut u32) -> ::windows::core::Result<()>; - fn UpdateDeviceComplete(&self, bstrdevicename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ChangeView(&self, bstrtype: &super::super::Foundation::BSTR, bstrid: &super::super::Foundation::BSTR, bstrfilter: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn UpdateDeviceComplete(&self, bstrdevicename: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ChangeView(&self, bstrtype: &::windows::core::BSTR, bstrid: &::windows::core::BSTR, bstrfilter: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn AddListContents(&self, dwlistcookie: u32, citems: u32, prgitems: *const u32) -> ::windows::core::Result<()>; fn ListContentsComplete(&self, dwlistcookie: u32, hrsuccess: ::windows::core::HRESULT) -> ::windows::core::Result<()>; - fn SendMessageComplete(&self, bstrmsg: &super::super::Foundation::BSTR, bstrparam: &super::super::Foundation::BSTR, bstrresult: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SendMessageComplete(&self, bstrmsg: &::windows::core::BSTR, bstrparam: &::windows::core::BSTR, bstrresult: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetContentIDsInLibrary(&self, pccontentids: *mut u32, pprgids: *mut *mut u32) -> ::windows::core::Result<()>; fn RefreshLicenseComplete(&self, dwcookie: u32, contentid: u32, hrrefresh: ::windows::core::HRESULT) -> ::windows::core::Result<()>; - fn ShowPopup(&self, lindex: i32, bstrparameters: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn VerifyPermissionComplete(&self, bstrpermission: &super::super::Foundation::BSTR, pcontext: *const super::super::System::Com::VARIANT, hrpermission: ::windows::core::HRESULT) -> ::windows::core::Result<()>; + fn ShowPopup(&self, lindex: i32, bstrparameters: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn VerifyPermissionComplete(&self, bstrpermission: &::windows::core::BSTR, pcontext: *const super::super::System::Com::VARIANT, hrpermission: ::windows::core::HRESULT) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWMPContentPartnerCallback {} @@ -2467,7 +2461,7 @@ impl IWMPContentPartnerCallback_Vtbl { let this = (*this).get_impl(); this.BuyComplete(::core::mem::transmute_copy(&hrresult), ::core::mem::transmute_copy(&dwbuycookie)).into() } - unsafe extern "system" fn DownloadTrack, Impl: IWMPContentPartnerCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, cookie: u32, bstrtrackurl: ::core::mem::ManuallyDrop, dwservicetrackid: u32, bstrdownloadparams: ::core::mem::ManuallyDrop, hrdownload: ::windows::core::HRESULT) -> ::windows::core::HRESULT { + unsafe extern "system" fn DownloadTrack, Impl: IWMPContentPartnerCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, cookie: u32, bstrtrackurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwservicetrackid: u32, bstrdownloadparams: ::core::mem::ManuallyDrop<::windows::core::BSTR>, hrdownload: ::windows::core::HRESULT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DownloadTrack(::core::mem::transmute_copy(&cookie), ::core::mem::transmute(&bstrtrackurl), ::core::mem::transmute_copy(&dwservicetrackid), ::core::mem::transmute(&bstrdownloadparams), ::core::mem::transmute_copy(&hrdownload)).into() @@ -2477,12 +2471,12 @@ impl IWMPContentPartnerCallback_Vtbl { let this = (*this).get_impl(); this.GetCatalogVersion(::core::mem::transmute_copy(&pdwversion), ::core::mem::transmute_copy(&pdwschemaversion), ::core::mem::transmute_copy(&plcid)).into() } - unsafe extern "system" fn UpdateDeviceComplete, Impl: IWMPContentPartnerCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdevicename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn UpdateDeviceComplete, Impl: IWMPContentPartnerCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdevicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.UpdateDeviceComplete(::core::mem::transmute(&bstrdevicename)).into() } - unsafe extern "system" fn ChangeView, Impl: IWMPContentPartnerCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtype: ::core::mem::ManuallyDrop, bstrid: ::core::mem::ManuallyDrop, bstrfilter: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ChangeView, Impl: IWMPContentPartnerCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrfilter: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ChangeView(::core::mem::transmute(&bstrtype), ::core::mem::transmute(&bstrid), ::core::mem::transmute(&bstrfilter)).into() @@ -2497,7 +2491,7 @@ impl IWMPContentPartnerCallback_Vtbl { let this = (*this).get_impl(); this.ListContentsComplete(::core::mem::transmute_copy(&dwlistcookie), ::core::mem::transmute_copy(&hrsuccess)).into() } - unsafe extern "system" fn SendMessageComplete, Impl: IWMPContentPartnerCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmsg: ::core::mem::ManuallyDrop, bstrparam: ::core::mem::ManuallyDrop, bstrresult: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SendMessageComplete, Impl: IWMPContentPartnerCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmsg: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrparam: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrresult: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SendMessageComplete(::core::mem::transmute(&bstrmsg), ::core::mem::transmute(&bstrparam), ::core::mem::transmute(&bstrresult)).into() @@ -2512,12 +2506,12 @@ impl IWMPContentPartnerCallback_Vtbl { let this = (*this).get_impl(); this.RefreshLicenseComplete(::core::mem::transmute_copy(&dwcookie), ::core::mem::transmute_copy(&contentid), ::core::mem::transmute_copy(&hrrefresh)).into() } - unsafe extern "system" fn ShowPopup, Impl: IWMPContentPartnerCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lindex: i32, bstrparameters: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ShowPopup, Impl: IWMPContentPartnerCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lindex: i32, bstrparameters: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ShowPopup(::core::mem::transmute_copy(&lindex), ::core::mem::transmute(&bstrparameters)).into() } - unsafe extern "system" fn VerifyPermissionComplete, Impl: IWMPContentPartnerCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpermission: ::core::mem::ManuallyDrop, pcontext: *const super::super::System::Com::VARIANT, hrpermission: ::windows::core::HRESULT) -> ::windows::core::HRESULT { + unsafe extern "system" fn VerifyPermissionComplete, Impl: IWMPContentPartnerCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpermission: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcontext: *const super::super::System::Com::VARIANT, hrpermission: ::windows::core::HRESULT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.VerifyPermissionComplete(::core::mem::transmute(&bstrpermission), ::core::mem::transmute_copy(&pcontext), ::core::mem::transmute_copy(&hrpermission)).into() @@ -2545,7 +2539,7 @@ impl IWMPContentPartnerCallback_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWMPControls_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn get_isAvailable(&self, bstritem: &super::super::Foundation::BSTR, pisavailable: *mut i16) -> ::windows::core::Result<()>; + fn get_isAvailable(&self, bstritem: &::windows::core::BSTR, pisavailable: *mut i16) -> ::windows::core::Result<()>; fn play(&self) -> ::windows::core::Result<()>; fn stop(&self) -> ::windows::core::Result<()>; fn pause(&self) -> ::windows::core::Result<()>; @@ -2553,7 +2547,7 @@ pub trait IWMPControls_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn fastReverse(&self) -> ::windows::core::Result<()>; fn currentPosition(&self, pdcurrentposition: *mut f64) -> ::windows::core::Result<()>; fn SetcurrentPosition(&self, dcurrentposition: f64) -> ::windows::core::Result<()>; - fn currentPositionString(&self, pbstrcurrentposition: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn currentPositionString(&self, pbstrcurrentposition: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn next(&self) -> ::windows::core::Result<()>; fn previous(&self) -> ::windows::core::Result<()>; fn currentItem(&self) -> ::windows::core::Result; @@ -2567,7 +2561,7 @@ impl ::windows::core::RuntimeName for IWMPControls {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWMPControls_Vtbl { pub const fn new, Impl: IWMPControls_Impl, const OFFSET: isize>() -> IWMPControls_Vtbl { - unsafe extern "system" fn get_isAvailable, Impl: IWMPControls_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstritem: ::core::mem::ManuallyDrop, pisavailable: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_isAvailable, Impl: IWMPControls_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstritem: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pisavailable: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_isAvailable(::core::mem::transmute(&bstritem), ::core::mem::transmute_copy(&pisavailable)).into() @@ -2607,7 +2601,7 @@ impl IWMPControls_Vtbl { let this = (*this).get_impl(); this.SetcurrentPosition(::core::mem::transmute_copy(&dcurrentposition)).into() } - unsafe extern "system" fn currentPositionString, Impl: IWMPControls_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcurrentposition: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn currentPositionString, Impl: IWMPControls_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcurrentposition: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.currentPositionString(::core::mem::transmute_copy(&pbstrcurrentposition)).into() @@ -2701,14 +2695,14 @@ impl IWMPControls2_Vtbl { pub trait IWMPControls3_Impl: Sized + super::super::System::Com::IDispatch_Impl + IWMPControls_Impl + IWMPControls2_Impl { fn audioLanguageCount(&self, plcount: *mut i32) -> ::windows::core::Result<()>; fn getAudioLanguageID(&self, lindex: i32, pllangid: *mut i32) -> ::windows::core::Result<()>; - fn getAudioLanguageDescription(&self, lindex: i32, pbstrlangdesc: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn getAudioLanguageDescription(&self, lindex: i32, pbstrlangdesc: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn currentAudioLanguage(&self, pllangid: *mut i32) -> ::windows::core::Result<()>; fn SetcurrentAudioLanguage(&self, llangid: i32) -> ::windows::core::Result<()>; fn currentAudioLanguageIndex(&self, plindex: *mut i32) -> ::windows::core::Result<()>; fn SetcurrentAudioLanguageIndex(&self, lindex: i32) -> ::windows::core::Result<()>; - fn getLanguageName(&self, llangid: i32, pbstrlangname: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn currentPositionTimecode(&self, bstrtimecode: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetcurrentPositionTimecode(&self, bstrtimecode: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn getLanguageName(&self, llangid: i32, pbstrlangname: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn currentPositionTimecode(&self, bstrtimecode: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetcurrentPositionTimecode(&self, bstrtimecode: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWMPControls3 {} @@ -2725,7 +2719,7 @@ impl IWMPControls3_Vtbl { let this = (*this).get_impl(); this.getAudioLanguageID(::core::mem::transmute_copy(&lindex), ::core::mem::transmute_copy(&pllangid)).into() } - unsafe extern "system" fn getAudioLanguageDescription, Impl: IWMPControls3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lindex: i32, pbstrlangdesc: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn getAudioLanguageDescription, Impl: IWMPControls3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lindex: i32, pbstrlangdesc: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.getAudioLanguageDescription(::core::mem::transmute_copy(&lindex), ::core::mem::transmute_copy(&pbstrlangdesc)).into() @@ -2750,17 +2744,17 @@ impl IWMPControls3_Vtbl { let this = (*this).get_impl(); this.SetcurrentAudioLanguageIndex(::core::mem::transmute_copy(&lindex)).into() } - unsafe extern "system" fn getLanguageName, Impl: IWMPControls3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, llangid: i32, pbstrlangname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn getLanguageName, Impl: IWMPControls3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, llangid: i32, pbstrlangname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.getLanguageName(::core::mem::transmute_copy(&llangid), ::core::mem::transmute_copy(&pbstrlangname)).into() } - unsafe extern "system" fn currentPositionTimecode, Impl: IWMPControls3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtimecode: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn currentPositionTimecode, Impl: IWMPControls3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtimecode: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.currentPositionTimecode(::core::mem::transmute_copy(&bstrtimecode)).into() } - unsafe extern "system" fn SetcurrentPositionTimecode, Impl: IWMPControls3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtimecode: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetcurrentPositionTimecode, Impl: IWMPControls3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtimecode: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetcurrentPositionTimecode(::core::mem::transmute(&bstrtimecode)).into() @@ -2783,22 +2777,19 @@ impl IWMPControls3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IWMPConvert_Impl: Sized { - fn ConvertFile(&self, bstrinputfile: &super::super::Foundation::BSTR, bstrdestinationfolder: &super::super::Foundation::BSTR, pbstroutputfile: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetErrorURL(&self, pbstrurl: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ConvertFile(&self, bstrinputfile: &::windows::core::BSTR, bstrdestinationfolder: &::windows::core::BSTR, pbstroutputfile: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetErrorURL(&self, pbstrurl: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IWMPConvert {} -#[cfg(feature = "Win32_Foundation")] impl IWMPConvert_Vtbl { pub const fn new, Impl: IWMPConvert_Impl, const OFFSET: isize>() -> IWMPConvert_Vtbl { - unsafe extern "system" fn ConvertFile, Impl: IWMPConvert_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrinputfile: ::core::mem::ManuallyDrop, bstrdestinationfolder: ::core::mem::ManuallyDrop, pbstroutputfile: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ConvertFile, Impl: IWMPConvert_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrinputfile: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdestinationfolder: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstroutputfile: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ConvertFile(::core::mem::transmute(&bstrinputfile), ::core::mem::transmute(&bstrdestinationfolder), ::core::mem::transmute_copy(&pbstroutputfile)).into() } - unsafe extern "system" fn GetErrorURL, Impl: IWMPConvert_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetErrorURL, Impl: IWMPConvert_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetErrorURL(::core::mem::transmute_copy(&pbstrurl)).into() @@ -2816,8 +2807,8 @@ impl IWMPConvert_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWMPCore_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn close(&self) -> ::windows::core::Result<()>; - fn URL(&self, pbstrurl: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetURL(&self, bstrurl: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn URL(&self, pbstrurl: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetURL(&self, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn openState(&self, pwmpos: *mut WMPOpenState) -> ::windows::core::Result<()>; fn playState(&self, pwmpps: *mut WMPPlayState) -> ::windows::core::Result<()>; fn controls(&self) -> ::windows::core::Result; @@ -2826,8 +2817,8 @@ pub trait IWMPCore_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn SetcurrentMedia(&self, pmedia: &::core::option::Option) -> ::windows::core::Result<()>; fn mediaCollection(&self) -> ::windows::core::Result; fn playlistCollection(&self) -> ::windows::core::Result; - fn versionInfo(&self, pbstrversioninfo: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn launchURL(&self, bstrurl: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn versionInfo(&self, pbstrversioninfo: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn launchURL(&self, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn network(&self) -> ::windows::core::Result; fn currentPlaylist(&self) -> ::windows::core::Result; fn SetcurrentPlaylist(&self, ppl: &::core::option::Option) -> ::windows::core::Result<()>; @@ -2835,7 +2826,7 @@ pub trait IWMPCore_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn closedCaption(&self) -> ::windows::core::Result; fn isOnline(&self, pfonline: *mut i16) -> ::windows::core::Result<()>; fn error(&self) -> ::windows::core::Result; - fn status(&self, pbstrstatus: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn status(&self, pbstrstatus: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWMPCore {} @@ -2847,12 +2838,12 @@ impl IWMPCore_Vtbl { let this = (*this).get_impl(); this.close().into() } - unsafe extern "system" fn URL, Impl: IWMPCore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn URL, Impl: IWMPCore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.URL(::core::mem::transmute_copy(&pbstrurl)).into() } - unsafe extern "system" fn SetURL, Impl: IWMPCore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetURL, Impl: IWMPCore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetURL(::core::mem::transmute(&bstrurl)).into() @@ -2927,12 +2918,12 @@ impl IWMPCore_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn versionInfo, Impl: IWMPCore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrversioninfo: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn versionInfo, Impl: IWMPCore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrversioninfo: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.versionInfo(::core::mem::transmute_copy(&pbstrversioninfo)).into() } - unsafe extern "system" fn launchURL, Impl: IWMPCore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn launchURL, Impl: IWMPCore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.launchURL(::core::mem::transmute(&bstrurl)).into() @@ -3002,7 +2993,7 @@ impl IWMPCore_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn status, Impl: IWMPCore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrstatus: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn status, Impl: IWMPCore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrstatus: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.status(::core::mem::transmute_copy(&pbstrstatus)).into() @@ -3064,15 +3055,15 @@ impl IWMPCore2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWMPCore3_Impl: Sized + super::super::System::Com::IDispatch_Impl + IWMPCore_Impl + IWMPCore2_Impl { - fn newPlaylist(&self, bstrname: &super::super::Foundation::BSTR, bstrurl: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn newMedia(&self, bstrurl: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn newPlaylist(&self, bstrname: &::windows::core::BSTR, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result; + fn newMedia(&self, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWMPCore3 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWMPCore3_Vtbl { pub const fn new, Impl: IWMPCore3_Impl, const OFFSET: isize>() -> IWMPCore3_Vtbl { - unsafe extern "system" fn newPlaylist, Impl: IWMPCore3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, bstrurl: ::core::mem::ManuallyDrop, ppplaylist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn newPlaylist, Impl: IWMPCore3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppplaylist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.newPlaylist(::core::mem::transmute(&bstrname), ::core::mem::transmute(&bstrurl)) { @@ -3083,7 +3074,7 @@ impl IWMPCore3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn newMedia, Impl: IWMPCore3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop, ppmedia: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn newMedia, Impl: IWMPCore3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppmedia: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.newMedia(::core::mem::transmute(&bstrurl)) { @@ -3106,8 +3097,8 @@ impl IWMPCore3_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWMPDVD_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn get_isAvailable(&self, bstritem: &super::super::Foundation::BSTR, pisavailable: *mut i16) -> ::windows::core::Result<()>; - fn domain(&self, strdomain: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn get_isAvailable(&self, bstritem: &::windows::core::BSTR, pisavailable: *mut i16) -> ::windows::core::Result<()>; + fn domain(&self, strdomain: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn topMenu(&self) -> ::windows::core::Result<()>; fn titleMenu(&self) -> ::windows::core::Result<()>; fn back(&self) -> ::windows::core::Result<()>; @@ -3118,12 +3109,12 @@ impl ::windows::core::RuntimeName for IWMPDVD {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWMPDVD_Vtbl { pub const fn new, Impl: IWMPDVD_Impl, const OFFSET: isize>() -> IWMPDVD_Vtbl { - unsafe extern "system" fn get_isAvailable, Impl: IWMPDVD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstritem: ::core::mem::ManuallyDrop, pisavailable: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_isAvailable, Impl: IWMPDVD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstritem: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pisavailable: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_isAvailable(::core::mem::transmute(&bstritem), ::core::mem::transmute_copy(&pisavailable)).into() } - unsafe extern "system" fn domain, Impl: IWMPDVD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strdomain: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn domain, Impl: IWMPDVD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strdomain: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.domain(::core::mem::transmute_copy(&strdomain)).into() @@ -3167,7 +3158,7 @@ pub trait IWMPDownloadCollection_Impl: Sized + super::super::System::Com::IDispa fn id(&self, plid: *mut i32) -> ::windows::core::Result<()>; fn count(&self, plcount: *mut i32) -> ::windows::core::Result<()>; fn item(&self, litem: i32) -> ::windows::core::Result; - fn startDownload(&self, bstrsourceurl: &super::super::Foundation::BSTR, bstrtype: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn startDownload(&self, bstrsourceurl: &::windows::core::BSTR, bstrtype: &::windows::core::BSTR) -> ::windows::core::Result; fn removeItem(&self, litem: i32) -> ::windows::core::Result<()>; fn Clear(&self) -> ::windows::core::Result<()>; } @@ -3197,7 +3188,7 @@ impl IWMPDownloadCollection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn startDownload, Impl: IWMPDownloadCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsourceurl: ::core::mem::ManuallyDrop, bstrtype: ::core::mem::ManuallyDrop, ppdownload: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn startDownload, Impl: IWMPDownloadCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsourceurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrtype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppdownload: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.startDownload(::core::mem::transmute(&bstrsourceurl), ::core::mem::transmute(&bstrtype)) { @@ -3234,9 +3225,9 @@ impl IWMPDownloadCollection_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWMPDownloadItem_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn sourceURL(&self, pbstrurl: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn sourceURL(&self, pbstrurl: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn size(&self, plsize: *mut i32) -> ::windows::core::Result<()>; - fn r#type(&self, pbstrtype: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn r#type(&self, pbstrtype: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn progress(&self, plprogress: *mut i32) -> ::windows::core::Result<()>; fn downloadState(&self, pwmpsdls: *mut WMPSubscriptionDownloadState) -> ::windows::core::Result<()>; fn pause(&self) -> ::windows::core::Result<()>; @@ -3248,7 +3239,7 @@ impl ::windows::core::RuntimeName for IWMPDownloadItem {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWMPDownloadItem_Vtbl { pub const fn new, Impl: IWMPDownloadItem_Impl, const OFFSET: isize>() -> IWMPDownloadItem_Vtbl { - unsafe extern "system" fn sourceURL, Impl: IWMPDownloadItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn sourceURL, Impl: IWMPDownloadItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.sourceURL(::core::mem::transmute_copy(&pbstrurl)).into() @@ -3258,7 +3249,7 @@ impl IWMPDownloadItem_Vtbl { let this = (*this).get_impl(); this.size(::core::mem::transmute_copy(&plsize)).into() } - unsafe extern "system" fn r#type, Impl: IWMPDownloadItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn r#type, Impl: IWMPDownloadItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.r#type(::core::mem::transmute_copy(&pbstrtype)).into() @@ -3306,14 +3297,14 @@ impl IWMPDownloadItem_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWMPDownloadItem2_Impl: Sized + super::super::System::Com::IDispatch_Impl + IWMPDownloadItem_Impl { - fn getItemInfo(&self, bstritemname: &super::super::Foundation::BSTR, pbstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn getItemInfo(&self, bstritemname: &::windows::core::BSTR, pbstrval: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWMPDownloadItem2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWMPDownloadItem2_Vtbl { pub const fn new, Impl: IWMPDownloadItem2_Impl, const OFFSET: isize>() -> IWMPDownloadItem2_Vtbl { - unsafe extern "system" fn getItemInfo, Impl: IWMPDownloadItem2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop, pbstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn getItemInfo, Impl: IWMPDownloadItem2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.getItemInfo(::core::mem::transmute(&bstritemname), ::core::mem::transmute_copy(&pbstrval)).into() @@ -3369,10 +3360,10 @@ impl IWMPDownloadManager_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub trait IWMPEffects_Impl: Sized { fn Render(&self, plevels: *mut TimedLevel, hdc: super::super::Graphics::Gdi::HDC, prc: *mut super::super::Foundation::RECT) -> ::windows::core::Result<()>; - fn MediaInfo(&self, lchannelcount: i32, lsamplerate: i32, bstrtitle: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn MediaInfo(&self, lchannelcount: i32, lsamplerate: i32, bstrtitle: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetCapabilities(&self, pdwcapabilities: *mut u32) -> ::windows::core::Result<()>; - fn GetTitle(&self, bstrtitle: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetPresetTitle(&self, npreset: i32, bstrpresettitle: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetTitle(&self, bstrtitle: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetPresetTitle(&self, npreset: i32, bstrpresettitle: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetPresetCount(&self, pnpresetcount: *mut i32) -> ::windows::core::Result<()>; fn SetCurrentPreset(&self, npreset: i32) -> ::windows::core::Result<()>; fn GetCurrentPreset(&self, pnpreset: *mut i32) -> ::windows::core::Result<()>; @@ -3390,7 +3381,7 @@ impl IWMPEffects_Vtbl { let this = (*this).get_impl(); this.Render(::core::mem::transmute_copy(&plevels), ::core::mem::transmute_copy(&hdc), ::core::mem::transmute_copy(&prc)).into() } - unsafe extern "system" fn MediaInfo, Impl: IWMPEffects_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lchannelcount: i32, lsamplerate: i32, bstrtitle: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn MediaInfo, Impl: IWMPEffects_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lchannelcount: i32, lsamplerate: i32, bstrtitle: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.MediaInfo(::core::mem::transmute_copy(&lchannelcount), ::core::mem::transmute_copy(&lsamplerate), ::core::mem::transmute(&bstrtitle)).into() @@ -3400,12 +3391,12 @@ impl IWMPEffects_Vtbl { let this = (*this).get_impl(); this.GetCapabilities(::core::mem::transmute_copy(&pdwcapabilities)).into() } - unsafe extern "system" fn GetTitle, Impl: IWMPEffects_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtitle: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetTitle, Impl: IWMPEffects_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtitle: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetTitle(::core::mem::transmute_copy(&bstrtitle)).into() } - unsafe extern "system" fn GetPresetTitle, Impl: IWMPEffects_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, npreset: i32, bstrpresettitle: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPresetTitle, Impl: IWMPEffects_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, npreset: i32, bstrpresettitle: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetPresetTitle(::core::mem::transmute_copy(&npreset), ::core::mem::transmute_copy(&bstrpresettitle)).into() @@ -3570,10 +3561,10 @@ impl IWMPError_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWMPErrorItem_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn errorCode(&self, phr: *mut i32) -> ::windows::core::Result<()>; - fn errorDescription(&self, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn errorDescription(&self, pbstrdescription: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn errorContext(&self, pvarcontext: *mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn remedy(&self, plremedy: *mut i32) -> ::windows::core::Result<()>; - fn customUrl(&self, pbstrcustomurl: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn customUrl(&self, pbstrcustomurl: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWMPErrorItem {} @@ -3585,7 +3576,7 @@ impl IWMPErrorItem_Vtbl { let this = (*this).get_impl(); this.errorCode(::core::mem::transmute_copy(&phr)).into() } - unsafe extern "system" fn errorDescription, Impl: IWMPErrorItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn errorDescription, Impl: IWMPErrorItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.errorDescription(::core::mem::transmute_copy(&pbstrdescription)).into() @@ -3600,7 +3591,7 @@ impl IWMPErrorItem_Vtbl { let this = (*this).get_impl(); this.remedy(::core::mem::transmute_copy(&plremedy)).into() } - unsafe extern "system" fn customUrl, Impl: IWMPErrorItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcustomurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn customUrl, Impl: IWMPErrorItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcustomurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.customUrl(::core::mem::transmute_copy(&pbstrcustomurl)).into() @@ -3638,18 +3629,18 @@ impl IWMPErrorItem2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IWMPEvents_Impl: Sized { fn OpenStateChange(&self, newstate: i32); fn PlayStateChange(&self, newstate: i32); fn AudioLanguageChange(&self, langid: i32); fn StatusChange(&self); - fn ScriptCommand(&self, sctype: &super::super::Foundation::BSTR, param: &super::super::Foundation::BSTR); + fn ScriptCommand(&self, sctype: &::windows::core::BSTR, param: &::windows::core::BSTR); fn NewStream(&self); fn Disconnect(&self, result: i32); fn Buffering(&self, start: i16); fn Error(&self); - fn Warning(&self, warningtype: i32, param: i32, description: &super::super::Foundation::BSTR); + fn Warning(&self, warningtype: i32, param: i32, description: &::windows::core::BSTR); fn EndOfStream(&self, result: i32); fn PositionChange(&self, oldposition: f64, newposition: f64); fn MarkerHit(&self, markernum: i32); @@ -3657,22 +3648,22 @@ pub trait IWMPEvents_Impl: Sized { fn CdromMediaChange(&self, cdromnum: i32); fn PlaylistChange(&self, playlist: &::core::option::Option, change: WMPPlaylistChangeEventType); fn CurrentPlaylistChange(&self, change: WMPPlaylistChangeEventType); - fn CurrentPlaylistItemAvailable(&self, bstritemname: &super::super::Foundation::BSTR); + fn CurrentPlaylistItemAvailable(&self, bstritemname: &::windows::core::BSTR); fn MediaChange(&self, item: &::core::option::Option); - fn CurrentMediaItemAvailable(&self, bstritemname: &super::super::Foundation::BSTR); + fn CurrentMediaItemAvailable(&self, bstritemname: &::windows::core::BSTR); fn CurrentItemChange(&self, pdispmedia: &::core::option::Option); fn MediaCollectionChange(&self); - fn MediaCollectionAttributeStringAdded(&self, bstrattribname: &super::super::Foundation::BSTR, bstrattribval: &super::super::Foundation::BSTR); - fn MediaCollectionAttributeStringRemoved(&self, bstrattribname: &super::super::Foundation::BSTR, bstrattribval: &super::super::Foundation::BSTR); - fn MediaCollectionAttributeStringChanged(&self, bstrattribname: &super::super::Foundation::BSTR, bstroldattribval: &super::super::Foundation::BSTR, bstrnewattribval: &super::super::Foundation::BSTR); + fn MediaCollectionAttributeStringAdded(&self, bstrattribname: &::windows::core::BSTR, bstrattribval: &::windows::core::BSTR); + fn MediaCollectionAttributeStringRemoved(&self, bstrattribname: &::windows::core::BSTR, bstrattribval: &::windows::core::BSTR); + fn MediaCollectionAttributeStringChanged(&self, bstrattribname: &::windows::core::BSTR, bstroldattribval: &::windows::core::BSTR, bstrnewattribval: &::windows::core::BSTR); fn PlaylistCollectionChange(&self); - fn PlaylistCollectionPlaylistAdded(&self, bstrplaylistname: &super::super::Foundation::BSTR); - fn PlaylistCollectionPlaylistRemoved(&self, bstrplaylistname: &super::super::Foundation::BSTR); - fn PlaylistCollectionPlaylistSetAsDeleted(&self, bstrplaylistname: &super::super::Foundation::BSTR, varfisdeleted: i16); - fn ModeChange(&self, modename: &super::super::Foundation::BSTR, newvalue: i16); + fn PlaylistCollectionPlaylistAdded(&self, bstrplaylistname: &::windows::core::BSTR); + fn PlaylistCollectionPlaylistRemoved(&self, bstrplaylistname: &::windows::core::BSTR); + fn PlaylistCollectionPlaylistSetAsDeleted(&self, bstrplaylistname: &::windows::core::BSTR, varfisdeleted: i16); + fn ModeChange(&self, modename: &::windows::core::BSTR, newvalue: i16); fn MediaError(&self, pmediaobject: &::core::option::Option); fn OpenPlaylistSwitch(&self, pitem: &::core::option::Option); - fn DomainChange(&self, strdomain: &super::super::Foundation::BSTR); + fn DomainChange(&self, strdomain: &::windows::core::BSTR); fn SwitchedToPlayerApplication(&self); fn SwitchedToControl(&self); fn PlayerDockedStateChange(&self); @@ -3686,9 +3677,9 @@ pub trait IWMPEvents_Impl: Sized { fn MouseMove(&self, nbutton: i16, nshiftstate: i16, fx: i32, fy: i32); fn MouseUp(&self, nbutton: i16, nshiftstate: i16, fx: i32, fy: i32); } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IWMPEvents {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IWMPEvents_Vtbl { pub const fn new, Impl: IWMPEvents_Impl, const OFFSET: isize>() -> IWMPEvents_Vtbl { unsafe extern "system" fn OpenStateChange, Impl: IWMPEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newstate: i32) { @@ -3711,7 +3702,7 @@ impl IWMPEvents_Vtbl { let this = (*this).get_impl(); this.StatusChange() } - unsafe extern "system" fn ScriptCommand, Impl: IWMPEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sctype: ::core::mem::ManuallyDrop, param: ::core::mem::ManuallyDrop) { + unsafe extern "system" fn ScriptCommand, Impl: IWMPEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sctype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, param: ::core::mem::ManuallyDrop<::windows::core::BSTR>) { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ScriptCommand(::core::mem::transmute(&sctype), ::core::mem::transmute(¶m)) @@ -3736,7 +3727,7 @@ impl IWMPEvents_Vtbl { let this = (*this).get_impl(); this.Error() } - unsafe extern "system" fn Warning, Impl: IWMPEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, warningtype: i32, param: i32, description: ::core::mem::ManuallyDrop) { + unsafe extern "system" fn Warning, Impl: IWMPEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, warningtype: i32, param: i32, description: ::core::mem::ManuallyDrop<::windows::core::BSTR>) { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Warning(::core::mem::transmute_copy(&warningtype), ::core::mem::transmute_copy(¶m), ::core::mem::transmute(&description)) @@ -3776,7 +3767,7 @@ impl IWMPEvents_Vtbl { let this = (*this).get_impl(); this.CurrentPlaylistChange(::core::mem::transmute_copy(&change)) } - unsafe extern "system" fn CurrentPlaylistItemAvailable, Impl: IWMPEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop) { + unsafe extern "system" fn CurrentPlaylistItemAvailable, Impl: IWMPEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CurrentPlaylistItemAvailable(::core::mem::transmute(&bstritemname)) @@ -3786,7 +3777,7 @@ impl IWMPEvents_Vtbl { let this = (*this).get_impl(); this.MediaChange(::core::mem::transmute(&item)) } - unsafe extern "system" fn CurrentMediaItemAvailable, Impl: IWMPEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop) { + unsafe extern "system" fn CurrentMediaItemAvailable, Impl: IWMPEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CurrentMediaItemAvailable(::core::mem::transmute(&bstritemname)) @@ -3801,17 +3792,17 @@ impl IWMPEvents_Vtbl { let this = (*this).get_impl(); this.MediaCollectionChange() } - unsafe extern "system" fn MediaCollectionAttributeStringAdded, Impl: IWMPEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrattribname: ::core::mem::ManuallyDrop, bstrattribval: ::core::mem::ManuallyDrop) { + unsafe extern "system" fn MediaCollectionAttributeStringAdded, Impl: IWMPEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrattribname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrattribval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.MediaCollectionAttributeStringAdded(::core::mem::transmute(&bstrattribname), ::core::mem::transmute(&bstrattribval)) } - unsafe extern "system" fn MediaCollectionAttributeStringRemoved, Impl: IWMPEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrattribname: ::core::mem::ManuallyDrop, bstrattribval: ::core::mem::ManuallyDrop) { + unsafe extern "system" fn MediaCollectionAttributeStringRemoved, Impl: IWMPEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrattribname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrattribval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.MediaCollectionAttributeStringRemoved(::core::mem::transmute(&bstrattribname), ::core::mem::transmute(&bstrattribval)) } - unsafe extern "system" fn MediaCollectionAttributeStringChanged, Impl: IWMPEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrattribname: ::core::mem::ManuallyDrop, bstroldattribval: ::core::mem::ManuallyDrop, bstrnewattribval: ::core::mem::ManuallyDrop) { + unsafe extern "system" fn MediaCollectionAttributeStringChanged, Impl: IWMPEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrattribname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstroldattribval: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrnewattribval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.MediaCollectionAttributeStringChanged(::core::mem::transmute(&bstrattribname), ::core::mem::transmute(&bstroldattribval), ::core::mem::transmute(&bstrnewattribval)) @@ -3821,22 +3812,22 @@ impl IWMPEvents_Vtbl { let this = (*this).get_impl(); this.PlaylistCollectionChange() } - unsafe extern "system" fn PlaylistCollectionPlaylistAdded, Impl: IWMPEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrplaylistname: ::core::mem::ManuallyDrop) { + unsafe extern "system" fn PlaylistCollectionPlaylistAdded, Impl: IWMPEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrplaylistname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.PlaylistCollectionPlaylistAdded(::core::mem::transmute(&bstrplaylistname)) } - unsafe extern "system" fn PlaylistCollectionPlaylistRemoved, Impl: IWMPEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrplaylistname: ::core::mem::ManuallyDrop) { + unsafe extern "system" fn PlaylistCollectionPlaylistRemoved, Impl: IWMPEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrplaylistname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.PlaylistCollectionPlaylistRemoved(::core::mem::transmute(&bstrplaylistname)) } - unsafe extern "system" fn PlaylistCollectionPlaylistSetAsDeleted, Impl: IWMPEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrplaylistname: ::core::mem::ManuallyDrop, varfisdeleted: i16) { + unsafe extern "system" fn PlaylistCollectionPlaylistSetAsDeleted, Impl: IWMPEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrplaylistname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varfisdeleted: i16) { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.PlaylistCollectionPlaylistSetAsDeleted(::core::mem::transmute(&bstrplaylistname), ::core::mem::transmute_copy(&varfisdeleted)) } - unsafe extern "system" fn ModeChange, Impl: IWMPEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, modename: ::core::mem::ManuallyDrop, newvalue: i16) { + unsafe extern "system" fn ModeChange, Impl: IWMPEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, modename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, newvalue: i16) { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ModeChange(::core::mem::transmute(&modename), ::core::mem::transmute_copy(&newvalue)) @@ -3851,7 +3842,7 @@ impl IWMPEvents_Vtbl { let this = (*this).get_impl(); this.OpenPlaylistSwitch(::core::mem::transmute(&pitem)) } - unsafe extern "system" fn DomainChange, Impl: IWMPEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strdomain: ::core::mem::ManuallyDrop) { + unsafe extern "system" fn DomainChange, Impl: IWMPEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strdomain: ::core::mem::ManuallyDrop<::windows::core::BSTR>) { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DomainChange(::core::mem::transmute(&strdomain)) @@ -3969,7 +3960,7 @@ impl IWMPEvents_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IWMPEvents2_Impl: Sized + IWMPEvents_Impl { fn DeviceConnect(&self, pdevice: &::core::option::Option); fn DeviceDisconnect(&self, pdevice: &::core::option::Option); @@ -3978,9 +3969,9 @@ pub trait IWMPEvents2_Impl: Sized + IWMPEvents_Impl { fn DeviceSyncError(&self, pdevice: &::core::option::Option, pmedia: &::core::option::Option); fn CreatePartnershipComplete(&self, pdevice: &::core::option::Option, hrresult: ::windows::core::HRESULT); } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IWMPEvents2 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IWMPEvents2_Vtbl { pub const fn new, Impl: IWMPEvents2_Impl, const OFFSET: isize>() -> IWMPEvents2_Vtbl { unsafe extern "system" fn DeviceConnect, Impl: IWMPEvents2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdevice: *mut ::core::ffi::c_void) { @@ -4027,7 +4018,7 @@ impl IWMPEvents2_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IWMPEvents3_Impl: Sized + IWMPEvents_Impl + IWMPEvents2_Impl { fn CdromRipStateChange(&self, pcdromrip: &::core::option::Option, wmprs: WMPRipState); fn CdromRipMediaError(&self, pcdromrip: &::core::option::Option, pmedia: &::core::option::Option); @@ -4041,9 +4032,9 @@ pub trait IWMPEvents3_Impl: Sized + IWMPEvents_Impl + IWMPEvents2_Impl { fn MediaCollectionMediaAdded(&self, pdispmedia: &::core::option::Option); fn MediaCollectionMediaRemoved(&self, pdispmedia: &::core::option::Option); } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IWMPEvents3 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IWMPEvents3_Vtbl { pub const fn new, Impl: IWMPEvents3_Impl, const OFFSET: isize>() -> IWMPEvents3_Vtbl { unsafe extern "system" fn CdromRipStateChange, Impl: IWMPEvents3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcdromrip: *mut ::core::ffi::c_void, wmprs: WMPRipState) { @@ -4120,13 +4111,13 @@ impl IWMPEvents3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IWMPEvents4_Impl: Sized + IWMPEvents_Impl + IWMPEvents2_Impl + IWMPEvents3_Impl { fn DeviceEstimation(&self, pdevice: &::core::option::Option, hrresult: ::windows::core::HRESULT, qwestimatedusedspace: i64, qwestimatedspace: i64); } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IWMPEvents4 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IWMPEvents4_Vtbl { pub const fn new, Impl: IWMPEvents4_Impl, const OFFSET: isize>() -> IWMPEvents4_Vtbl { unsafe extern "system" fn DeviceEstimation, Impl: IWMPEvents4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdevice: *mut ::core::ffi::c_void, hrresult: ::windows::core::HRESULT, qwestimatedusedspace: i64, qwestimatedspace: i64) { @@ -4140,23 +4131,20 @@ impl IWMPEvents4_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IWMPFolderMonitorServices_Impl: Sized { fn count(&self, plcount: *mut i32) -> ::windows::core::Result<()>; - fn item(&self, lindex: i32, pbstrfolder: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn add(&self, bstrfolder: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn item(&self, lindex: i32, pbstrfolder: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn add(&self, bstrfolder: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn remove(&self, lindex: i32) -> ::windows::core::Result<()>; fn scanState(&self, pwmpfss: *mut WMPFolderScanState) -> ::windows::core::Result<()>; - fn currentFolder(&self, pbstrfolder: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn currentFolder(&self, pbstrfolder: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn scannedFilesCount(&self, plcount: *mut i32) -> ::windows::core::Result<()>; fn addedFilesCount(&self, plcount: *mut i32) -> ::windows::core::Result<()>; fn updateProgress(&self, plprogress: *mut i32) -> ::windows::core::Result<()>; fn startScan(&self) -> ::windows::core::Result<()>; fn stopScan(&self) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IWMPFolderMonitorServices {} -#[cfg(feature = "Win32_Foundation")] impl IWMPFolderMonitorServices_Vtbl { pub const fn new, Impl: IWMPFolderMonitorServices_Impl, const OFFSET: isize>() -> IWMPFolderMonitorServices_Vtbl { unsafe extern "system" fn count, Impl: IWMPFolderMonitorServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, plcount: *mut i32) -> ::windows::core::HRESULT { @@ -4164,12 +4152,12 @@ impl IWMPFolderMonitorServices_Vtbl { let this = (*this).get_impl(); this.count(::core::mem::transmute_copy(&plcount)).into() } - unsafe extern "system" fn item, Impl: IWMPFolderMonitorServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lindex: i32, pbstrfolder: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn item, Impl: IWMPFolderMonitorServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lindex: i32, pbstrfolder: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.item(::core::mem::transmute_copy(&lindex), ::core::mem::transmute_copy(&pbstrfolder)).into() } - unsafe extern "system" fn add, Impl: IWMPFolderMonitorServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfolder: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn add, Impl: IWMPFolderMonitorServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfolder: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.add(::core::mem::transmute(&bstrfolder)).into() @@ -4184,7 +4172,7 @@ impl IWMPFolderMonitorServices_Vtbl { let this = (*this).get_impl(); this.scanState(::core::mem::transmute_copy(&pwmpfss)).into() } - unsafe extern "system" fn currentFolder, Impl: IWMPFolderMonitorServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfolder: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn currentFolder, Impl: IWMPFolderMonitorServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfolder: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.currentFolder(::core::mem::transmute_copy(&pbstrfolder)).into() @@ -4267,19 +4255,19 @@ impl IWMPGraphCreation_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IWMPLibrary_Impl: Sized { - fn name(&self, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn name(&self, pbstrname: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn r#type(&self, pwmplt: *mut WMPLibraryType) -> ::windows::core::Result<()>; fn mediaCollection(&self) -> ::windows::core::Result; fn isIdentical(&self, piwmplibrary: &::core::option::Option, pvbool: *mut i16) -> ::windows::core::Result<()>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IWMPLibrary {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IWMPLibrary_Vtbl { pub const fn new, Impl: IWMPLibrary_Impl, const OFFSET: isize>() -> IWMPLibrary_Vtbl { - unsafe extern "system" fn name, Impl: IWMPLibrary_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn name, Impl: IWMPLibrary_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.name(::core::mem::transmute_copy(&pbstrname)).into() @@ -4317,16 +4305,16 @@ impl IWMPLibrary_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IWMPLibrary2_Impl: Sized + IWMPLibrary_Impl { - fn getItemInfo(&self, bstritemname: &super::super::Foundation::BSTR, pbstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn getItemInfo(&self, bstritemname: &::windows::core::BSTR, pbstrval: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IWMPLibrary2 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IWMPLibrary2_Vtbl { pub const fn new, Impl: IWMPLibrary2_Impl, const OFFSET: isize>() -> IWMPLibrary2_Vtbl { - unsafe extern "system" fn getItemInfo, Impl: IWMPLibrary2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop, pbstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn getItemInfo, Impl: IWMPLibrary2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.getItemInfo(::core::mem::transmute(&bstritemname), ::core::mem::transmute_copy(&pbstrval)).into() @@ -4407,23 +4395,23 @@ impl IWMPLibrarySharingServices_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWMPMedia_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn get_isIdentical(&self, piwmpmedia: &::core::option::Option, pvbool: *mut i16) -> ::windows::core::Result<()>; - fn sourceURL(&self, pbstrsourceurl: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn name(&self, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Setname(&self, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn sourceURL(&self, pbstrsourceurl: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn name(&self, pbstrname: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Setname(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn imageSourceWidth(&self, pwidth: *mut i32) -> ::windows::core::Result<()>; fn imageSourceHeight(&self, pheight: *mut i32) -> ::windows::core::Result<()>; fn markerCount(&self, pmarkercount: *mut i32) -> ::windows::core::Result<()>; fn getMarkerTime(&self, markernum: i32, pmarkertime: *mut f64) -> ::windows::core::Result<()>; - fn getMarkerName(&self, markernum: i32, pbstrmarkername: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn getMarkerName(&self, markernum: i32, pbstrmarkername: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn duration(&self, pduration: *mut f64) -> ::windows::core::Result<()>; - fn durationString(&self, pbstrduration: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn durationString(&self, pbstrduration: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn attributeCount(&self, plcount: *mut i32) -> ::windows::core::Result<()>; - fn getAttributeName(&self, lindex: i32, pbstritemname: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn getItemInfo(&self, bstritemname: &super::super::Foundation::BSTR, pbstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn setItemInfo(&self, bstritemname: &super::super::Foundation::BSTR, bstrval: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn getItemInfoByAtom(&self, latom: i32, pbstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn getAttributeName(&self, lindex: i32, pbstritemname: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn getItemInfo(&self, bstritemname: &::windows::core::BSTR, pbstrval: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn setItemInfo(&self, bstritemname: &::windows::core::BSTR, bstrval: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn getItemInfoByAtom(&self, latom: i32, pbstrval: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn isMemberOf(&self, pplaylist: &::core::option::Option, pvarfismemberof: *mut i16) -> ::windows::core::Result<()>; - fn isReadOnlyItem(&self, bstritemname: &super::super::Foundation::BSTR, pvarfisreadonly: *mut i16) -> ::windows::core::Result<()>; + fn isReadOnlyItem(&self, bstritemname: &::windows::core::BSTR, pvarfisreadonly: *mut i16) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWMPMedia {} @@ -4435,17 +4423,17 @@ impl IWMPMedia_Vtbl { let this = (*this).get_impl(); this.get_isIdentical(::core::mem::transmute(&piwmpmedia), ::core::mem::transmute_copy(&pvbool)).into() } - unsafe extern "system" fn sourceURL, Impl: IWMPMedia_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsourceurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn sourceURL, Impl: IWMPMedia_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsourceurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.sourceURL(::core::mem::transmute_copy(&pbstrsourceurl)).into() } - unsafe extern "system" fn name, Impl: IWMPMedia_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn name, Impl: IWMPMedia_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.name(::core::mem::transmute_copy(&pbstrname)).into() } - unsafe extern "system" fn Setname, Impl: IWMPMedia_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Setname, Impl: IWMPMedia_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Setname(::core::mem::transmute(&bstrname)).into() @@ -4470,7 +4458,7 @@ impl IWMPMedia_Vtbl { let this = (*this).get_impl(); this.getMarkerTime(::core::mem::transmute_copy(&markernum), ::core::mem::transmute_copy(&pmarkertime)).into() } - unsafe extern "system" fn getMarkerName, Impl: IWMPMedia_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, markernum: i32, pbstrmarkername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn getMarkerName, Impl: IWMPMedia_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, markernum: i32, pbstrmarkername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.getMarkerName(::core::mem::transmute_copy(&markernum), ::core::mem::transmute_copy(&pbstrmarkername)).into() @@ -4480,7 +4468,7 @@ impl IWMPMedia_Vtbl { let this = (*this).get_impl(); this.duration(::core::mem::transmute_copy(&pduration)).into() } - unsafe extern "system" fn durationString, Impl: IWMPMedia_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrduration: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn durationString, Impl: IWMPMedia_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrduration: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.durationString(::core::mem::transmute_copy(&pbstrduration)).into() @@ -4490,22 +4478,22 @@ impl IWMPMedia_Vtbl { let this = (*this).get_impl(); this.attributeCount(::core::mem::transmute_copy(&plcount)).into() } - unsafe extern "system" fn getAttributeName, Impl: IWMPMedia_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lindex: i32, pbstritemname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn getAttributeName, Impl: IWMPMedia_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lindex: i32, pbstritemname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.getAttributeName(::core::mem::transmute_copy(&lindex), ::core::mem::transmute_copy(&pbstritemname)).into() } - unsafe extern "system" fn getItemInfo, Impl: IWMPMedia_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop, pbstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn getItemInfo, Impl: IWMPMedia_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.getItemInfo(::core::mem::transmute(&bstritemname), ::core::mem::transmute_copy(&pbstrval)).into() } - unsafe extern "system" fn setItemInfo, Impl: IWMPMedia_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop, bstrval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn setItemInfo, Impl: IWMPMedia_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.setItemInfo(::core::mem::transmute(&bstritemname), ::core::mem::transmute(&bstrval)).into() } - unsafe extern "system" fn getItemInfoByAtom, Impl: IWMPMedia_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, latom: i32, pbstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn getItemInfoByAtom, Impl: IWMPMedia_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, latom: i32, pbstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.getItemInfoByAtom(::core::mem::transmute_copy(&latom), ::core::mem::transmute_copy(&pbstrval)).into() @@ -4515,7 +4503,7 @@ impl IWMPMedia_Vtbl { let this = (*this).get_impl(); this.isMemberOf(::core::mem::transmute(&pplaylist), ::core::mem::transmute_copy(&pvarfismemberof)).into() } - unsafe extern "system" fn isReadOnlyItem, Impl: IWMPMedia_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop, pvarfisreadonly: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn isReadOnlyItem, Impl: IWMPMedia_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarfisreadonly: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.isReadOnlyItem(::core::mem::transmute(&bstritemname), ::core::mem::transmute_copy(&pvarfisreadonly)).into() @@ -4574,20 +4562,20 @@ impl IWMPMedia2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWMPMedia3_Impl: Sized + super::super::System::Com::IDispatch_Impl + IWMPMedia_Impl + IWMPMedia2_Impl { - fn getAttributeCountByType(&self, bstrtype: &super::super::Foundation::BSTR, bstrlanguage: &super::super::Foundation::BSTR, plcount: *mut i32) -> ::windows::core::Result<()>; - fn getItemInfoByType(&self, bstrtype: &super::super::Foundation::BSTR, bstrlanguage: &super::super::Foundation::BSTR, lindex: i32, pvarvalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn getAttributeCountByType(&self, bstrtype: &::windows::core::BSTR, bstrlanguage: &::windows::core::BSTR, plcount: *mut i32) -> ::windows::core::Result<()>; + fn getItemInfoByType(&self, bstrtype: &::windows::core::BSTR, bstrlanguage: &::windows::core::BSTR, lindex: i32, pvarvalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWMPMedia3 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWMPMedia3_Vtbl { pub const fn new, Impl: IWMPMedia3_Impl, const OFFSET: isize>() -> IWMPMedia3_Vtbl { - unsafe extern "system" fn getAttributeCountByType, Impl: IWMPMedia3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtype: ::core::mem::ManuallyDrop, bstrlanguage: ::core::mem::ManuallyDrop, plcount: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn getAttributeCountByType, Impl: IWMPMedia3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrlanguage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, plcount: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.getAttributeCountByType(::core::mem::transmute(&bstrtype), ::core::mem::transmute(&bstrlanguage), ::core::mem::transmute_copy(&plcount)).into() } - unsafe extern "system" fn getItemInfoByType, Impl: IWMPMedia3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtype: ::core::mem::ManuallyDrop, bstrlanguage: ::core::mem::ManuallyDrop, lindex: i32, pvarvalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn getItemInfoByType, Impl: IWMPMedia3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrlanguage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lindex: i32, pvarvalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.getItemInfoByType(::core::mem::transmute(&bstrtype), ::core::mem::transmute(&bstrlanguage), ::core::mem::transmute_copy(&lindex), ::core::mem::transmute_copy(&pvarvalue)).into() @@ -4604,16 +4592,16 @@ impl IWMPMedia3_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWMPMediaCollection_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn add(&self, bstrurl: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn add(&self, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result; fn getAll(&self) -> ::windows::core::Result; - fn getByName(&self, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn getByGenre(&self, bstrgenre: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn getByAuthor(&self, bstrauthor: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn getByAlbum(&self, bstralbum: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn getByAttribute(&self, bstrattribute: &super::super::Foundation::BSTR, bstrvalue: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn getByName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result; + fn getByGenre(&self, bstrgenre: &::windows::core::BSTR) -> ::windows::core::Result; + fn getByAuthor(&self, bstrauthor: &::windows::core::BSTR) -> ::windows::core::Result; + fn getByAlbum(&self, bstralbum: &::windows::core::BSTR) -> ::windows::core::Result; + fn getByAttribute(&self, bstrattribute: &::windows::core::BSTR, bstrvalue: &::windows::core::BSTR) -> ::windows::core::Result; fn remove(&self, pitem: &::core::option::Option, varfdeletefile: i16) -> ::windows::core::Result<()>; - fn getAttributeStringCollection(&self, bstrattribute: &super::super::Foundation::BSTR, bstrmediatype: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn getMediaAtom(&self, bstritemname: &super::super::Foundation::BSTR, platom: *mut i32) -> ::windows::core::Result<()>; + fn getAttributeStringCollection(&self, bstrattribute: &::windows::core::BSTR, bstrmediatype: &::windows::core::BSTR) -> ::windows::core::Result; + fn getMediaAtom(&self, bstritemname: &::windows::core::BSTR, platom: *mut i32) -> ::windows::core::Result<()>; fn setDeleted(&self, pitem: &::core::option::Option, varfisdeleted: i16) -> ::windows::core::Result<()>; fn isDeleted(&self, pitem: &::core::option::Option, pvarfisdeleted: *mut i16) -> ::windows::core::Result<()>; } @@ -4622,7 +4610,7 @@ impl ::windows::core::RuntimeName for IWMPMediaCollection {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWMPMediaCollection_Vtbl { pub const fn new, Impl: IWMPMediaCollection_Impl, const OFFSET: isize>() -> IWMPMediaCollection_Vtbl { - unsafe extern "system" fn add, Impl: IWMPMediaCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop, ppitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn add, Impl: IWMPMediaCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.add(::core::mem::transmute(&bstrurl)) { @@ -4644,7 +4632,7 @@ impl IWMPMediaCollection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn getByName, Impl: IWMPMediaCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, ppmediaitems: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn getByName, Impl: IWMPMediaCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppmediaitems: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getByName(::core::mem::transmute(&bstrname)) { @@ -4655,7 +4643,7 @@ impl IWMPMediaCollection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn getByGenre, Impl: IWMPMediaCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgenre: ::core::mem::ManuallyDrop, ppmediaitems: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn getByGenre, Impl: IWMPMediaCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgenre: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppmediaitems: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getByGenre(::core::mem::transmute(&bstrgenre)) { @@ -4666,7 +4654,7 @@ impl IWMPMediaCollection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn getByAuthor, Impl: IWMPMediaCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrauthor: ::core::mem::ManuallyDrop, ppmediaitems: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn getByAuthor, Impl: IWMPMediaCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrauthor: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppmediaitems: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getByAuthor(::core::mem::transmute(&bstrauthor)) { @@ -4677,7 +4665,7 @@ impl IWMPMediaCollection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn getByAlbum, Impl: IWMPMediaCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstralbum: ::core::mem::ManuallyDrop, ppmediaitems: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn getByAlbum, Impl: IWMPMediaCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstralbum: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppmediaitems: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getByAlbum(::core::mem::transmute(&bstralbum)) { @@ -4688,7 +4676,7 @@ impl IWMPMediaCollection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn getByAttribute, Impl: IWMPMediaCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrattribute: ::core::mem::ManuallyDrop, bstrvalue: ::core::mem::ManuallyDrop, ppmediaitems: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn getByAttribute, Impl: IWMPMediaCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrattribute: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppmediaitems: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getByAttribute(::core::mem::transmute(&bstrattribute), ::core::mem::transmute(&bstrvalue)) { @@ -4704,7 +4692,7 @@ impl IWMPMediaCollection_Vtbl { let this = (*this).get_impl(); this.remove(::core::mem::transmute(&pitem), ::core::mem::transmute_copy(&varfdeletefile)).into() } - unsafe extern "system" fn getAttributeStringCollection, Impl: IWMPMediaCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrattribute: ::core::mem::ManuallyDrop, bstrmediatype: ::core::mem::ManuallyDrop, ppstringcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn getAttributeStringCollection, Impl: IWMPMediaCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrattribute: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrmediatype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppstringcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getAttributeStringCollection(::core::mem::transmute(&bstrattribute), ::core::mem::transmute(&bstrmediatype)) { @@ -4715,7 +4703,7 @@ impl IWMPMediaCollection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn getMediaAtom, Impl: IWMPMediaCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop, platom: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn getMediaAtom, Impl: IWMPMediaCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, platom: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.getMediaAtom(::core::mem::transmute(&bstritemname), ::core::mem::transmute_copy(&platom)).into() @@ -4753,9 +4741,9 @@ impl IWMPMediaCollection_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWMPMediaCollection2_Impl: Sized + super::super::System::Com::IDispatch_Impl + IWMPMediaCollection_Impl { fn createQuery(&self) -> ::windows::core::Result; - fn getPlaylistByQuery(&self, pquery: &::core::option::Option, bstrmediatype: &super::super::Foundation::BSTR, bstrsortattribute: &super::super::Foundation::BSTR, fsortascending: i16) -> ::windows::core::Result; - fn getStringCollectionByQuery(&self, bstrattribute: &super::super::Foundation::BSTR, pquery: &::core::option::Option, bstrmediatype: &super::super::Foundation::BSTR, bstrsortattribute: &super::super::Foundation::BSTR, fsortascending: i16) -> ::windows::core::Result; - fn getByAttributeAndMediaType(&self, bstrattribute: &super::super::Foundation::BSTR, bstrvalue: &super::super::Foundation::BSTR, bstrmediatype: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn getPlaylistByQuery(&self, pquery: &::core::option::Option, bstrmediatype: &::windows::core::BSTR, bstrsortattribute: &::windows::core::BSTR, fsortascending: i16) -> ::windows::core::Result; + fn getStringCollectionByQuery(&self, bstrattribute: &::windows::core::BSTR, pquery: &::core::option::Option, bstrmediatype: &::windows::core::BSTR, bstrsortattribute: &::windows::core::BSTR, fsortascending: i16) -> ::windows::core::Result; + fn getByAttributeAndMediaType(&self, bstrattribute: &::windows::core::BSTR, bstrvalue: &::windows::core::BSTR, bstrmediatype: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWMPMediaCollection2 {} @@ -4773,7 +4761,7 @@ impl IWMPMediaCollection2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn getPlaylistByQuery, Impl: IWMPMediaCollection2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pquery: *mut ::core::ffi::c_void, bstrmediatype: ::core::mem::ManuallyDrop, bstrsortattribute: ::core::mem::ManuallyDrop, fsortascending: i16, ppplaylist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn getPlaylistByQuery, Impl: IWMPMediaCollection2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pquery: *mut ::core::ffi::c_void, bstrmediatype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrsortattribute: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fsortascending: i16, ppplaylist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getPlaylistByQuery(::core::mem::transmute(&pquery), ::core::mem::transmute(&bstrmediatype), ::core::mem::transmute(&bstrsortattribute), ::core::mem::transmute_copy(&fsortascending)) { @@ -4784,7 +4772,7 @@ impl IWMPMediaCollection2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn getStringCollectionByQuery, Impl: IWMPMediaCollection2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrattribute: ::core::mem::ManuallyDrop, pquery: *mut ::core::ffi::c_void, bstrmediatype: ::core::mem::ManuallyDrop, bstrsortattribute: ::core::mem::ManuallyDrop, fsortascending: i16, ppstringcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn getStringCollectionByQuery, Impl: IWMPMediaCollection2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrattribute: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pquery: *mut ::core::ffi::c_void, bstrmediatype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrsortattribute: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fsortascending: i16, ppstringcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getStringCollectionByQuery(::core::mem::transmute(&bstrattribute), ::core::mem::transmute(&pquery), ::core::mem::transmute(&bstrmediatype), ::core::mem::transmute(&bstrsortattribute), ::core::mem::transmute_copy(&fsortascending)) { @@ -4795,7 +4783,7 @@ impl IWMPMediaCollection2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn getByAttributeAndMediaType, Impl: IWMPMediaCollection2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrattribute: ::core::mem::ManuallyDrop, bstrvalue: ::core::mem::ManuallyDrop, bstrmediatype: ::core::mem::ManuallyDrop, ppmediaitems: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn getByAttributeAndMediaType, Impl: IWMPMediaCollection2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrattribute: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrmediatype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppmediaitems: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getByAttributeAndMediaType(::core::mem::transmute(&bstrattribute), ::core::mem::transmute(&bstrvalue), ::core::mem::transmute(&bstrmediatype)) { @@ -4847,32 +4835,32 @@ impl IWMPMediaPluginRegistrar_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWMPMetadataPicture_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn mimeType(&self, pbstrmimetype: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn pictureType(&self, pbstrpicturetype: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn description(&self, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn URL(&self, pbstrurl: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn mimeType(&self, pbstrmimetype: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn pictureType(&self, pbstrpicturetype: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn description(&self, pbstrdescription: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn URL(&self, pbstrurl: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWMPMetadataPicture {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWMPMetadataPicture_Vtbl { pub const fn new, Impl: IWMPMetadataPicture_Impl, const OFFSET: isize>() -> IWMPMetadataPicture_Vtbl { - unsafe extern "system" fn mimeType, Impl: IWMPMetadataPicture_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrmimetype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn mimeType, Impl: IWMPMetadataPicture_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrmimetype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.mimeType(::core::mem::transmute_copy(&pbstrmimetype)).into() } - unsafe extern "system" fn pictureType, Impl: IWMPMetadataPicture_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpicturetype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn pictureType, Impl: IWMPMetadataPicture_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpicturetype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.pictureType(::core::mem::transmute_copy(&pbstrpicturetype)).into() } - unsafe extern "system" fn description, Impl: IWMPMetadataPicture_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn description, Impl: IWMPMetadataPicture_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.description(::core::mem::transmute_copy(&pbstrdescription)).into() } - unsafe extern "system" fn URL, Impl: IWMPMetadataPicture_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn URL, Impl: IWMPMetadataPicture_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.URL(::core::mem::transmute_copy(&pbstrurl)).into() @@ -4891,20 +4879,20 @@ impl IWMPMetadataPicture_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWMPMetadataText_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn description(&self, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn text(&self, pbstrtext: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn description(&self, pbstrdescription: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn text(&self, pbstrtext: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWMPMetadataText {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWMPMetadataText_Vtbl { pub const fn new, Impl: IWMPMetadataText_Impl, const OFFSET: isize>() -> IWMPMetadataText_Vtbl { - unsafe extern "system" fn description, Impl: IWMPMetadataText_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn description, Impl: IWMPMetadataText_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.description(::core::mem::transmute_copy(&pbstrdescription)).into() } - unsafe extern "system" fn text, Impl: IWMPMetadataText_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn text, Impl: IWMPMetadataText_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.text(::core::mem::transmute_copy(&pbstrtext)).into() @@ -4923,7 +4911,7 @@ impl IWMPMetadataText_Vtbl { pub trait IWMPNetwork_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn bandWidth(&self, plbandwidth: *mut i32) -> ::windows::core::Result<()>; fn recoveredPackets(&self, plrecoveredpackets: *mut i32) -> ::windows::core::Result<()>; - fn sourceProtocol(&self, pbstrsourceprotocol: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn sourceProtocol(&self, pbstrsourceprotocol: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn receivedPackets(&self, plreceivedpackets: *mut i32) -> ::windows::core::Result<()>; fn lostPackets(&self, pllostpackets: *mut i32) -> ::windows::core::Result<()>; fn receptionQuality(&self, plreceptionquality: *mut i32) -> ::windows::core::Result<()>; @@ -4934,16 +4922,16 @@ pub trait IWMPNetwork_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn frameRate(&self, plframerate: *mut i32) -> ::windows::core::Result<()>; fn maxBitRate(&self, plbitrate: *mut i32) -> ::windows::core::Result<()>; fn bitRate(&self, plbitrate: *mut i32) -> ::windows::core::Result<()>; - fn getProxySettings(&self, bstrprotocol: &super::super::Foundation::BSTR, plproxysetting: *mut i32) -> ::windows::core::Result<()>; - fn setProxySettings(&self, bstrprotocol: &super::super::Foundation::BSTR, lproxysetting: i32) -> ::windows::core::Result<()>; - fn getProxyName(&self, bstrprotocol: &super::super::Foundation::BSTR, pbstrproxyname: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn setProxyName(&self, bstrprotocol: &super::super::Foundation::BSTR, bstrproxyname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn getProxyPort(&self, bstrprotocol: &super::super::Foundation::BSTR, lproxyport: *mut i32) -> ::windows::core::Result<()>; - fn setProxyPort(&self, bstrprotocol: &super::super::Foundation::BSTR, lproxyport: i32) -> ::windows::core::Result<()>; - fn getProxyExceptionList(&self, bstrprotocol: &super::super::Foundation::BSTR, pbstrexceptionlist: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn setProxyExceptionList(&self, bstrprotocol: &super::super::Foundation::BSTR, pbstrexceptionlist: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn getProxyBypassForLocal(&self, bstrprotocol: &super::super::Foundation::BSTR, pfbypassforlocal: *mut i16) -> ::windows::core::Result<()>; - fn setProxyBypassForLocal(&self, bstrprotocol: &super::super::Foundation::BSTR, fbypassforlocal: i16) -> ::windows::core::Result<()>; + fn getProxySettings(&self, bstrprotocol: &::windows::core::BSTR, plproxysetting: *mut i32) -> ::windows::core::Result<()>; + fn setProxySettings(&self, bstrprotocol: &::windows::core::BSTR, lproxysetting: i32) -> ::windows::core::Result<()>; + fn getProxyName(&self, bstrprotocol: &::windows::core::BSTR, pbstrproxyname: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn setProxyName(&self, bstrprotocol: &::windows::core::BSTR, bstrproxyname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn getProxyPort(&self, bstrprotocol: &::windows::core::BSTR, lproxyport: *mut i32) -> ::windows::core::Result<()>; + fn setProxyPort(&self, bstrprotocol: &::windows::core::BSTR, lproxyport: i32) -> ::windows::core::Result<()>; + fn getProxyExceptionList(&self, bstrprotocol: &::windows::core::BSTR, pbstrexceptionlist: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn setProxyExceptionList(&self, bstrprotocol: &::windows::core::BSTR, pbstrexceptionlist: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn getProxyBypassForLocal(&self, bstrprotocol: &::windows::core::BSTR, pfbypassforlocal: *mut i16) -> ::windows::core::Result<()>; + fn setProxyBypassForLocal(&self, bstrprotocol: &::windows::core::BSTR, fbypassforlocal: i16) -> ::windows::core::Result<()>; fn maxBandwidth(&self, lmaxbandwidth: *mut i32) -> ::windows::core::Result<()>; fn SetmaxBandwidth(&self, lmaxbandwidth: i32) -> ::windows::core::Result<()>; fn downloadProgress(&self, pldownloadprogress: *mut i32) -> ::windows::core::Result<()>; @@ -4965,7 +4953,7 @@ impl IWMPNetwork_Vtbl { let this = (*this).get_impl(); this.recoveredPackets(::core::mem::transmute_copy(&plrecoveredpackets)).into() } - unsafe extern "system" fn sourceProtocol, Impl: IWMPNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsourceprotocol: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn sourceProtocol, Impl: IWMPNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsourceprotocol: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.sourceProtocol(::core::mem::transmute_copy(&pbstrsourceprotocol)).into() @@ -5020,52 +5008,52 @@ impl IWMPNetwork_Vtbl { let this = (*this).get_impl(); this.bitRate(::core::mem::transmute_copy(&plbitrate)).into() } - unsafe extern "system" fn getProxySettings, Impl: IWMPNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop, plproxysetting: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn getProxySettings, Impl: IWMPNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>, plproxysetting: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.getProxySettings(::core::mem::transmute(&bstrprotocol), ::core::mem::transmute_copy(&plproxysetting)).into() } - unsafe extern "system" fn setProxySettings, Impl: IWMPNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop, lproxysetting: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn setProxySettings, Impl: IWMPNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lproxysetting: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.setProxySettings(::core::mem::transmute(&bstrprotocol), ::core::mem::transmute_copy(&lproxysetting)).into() } - unsafe extern "system" fn getProxyName, Impl: IWMPNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop, pbstrproxyname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn getProxyName, Impl: IWMPNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrproxyname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.getProxyName(::core::mem::transmute(&bstrprotocol), ::core::mem::transmute_copy(&pbstrproxyname)).into() } - unsafe extern "system" fn setProxyName, Impl: IWMPNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop, bstrproxyname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn setProxyName, Impl: IWMPNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrproxyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.setProxyName(::core::mem::transmute(&bstrprotocol), ::core::mem::transmute(&bstrproxyname)).into() } - unsafe extern "system" fn getProxyPort, Impl: IWMPNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop, lproxyport: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn getProxyPort, Impl: IWMPNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lproxyport: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.getProxyPort(::core::mem::transmute(&bstrprotocol), ::core::mem::transmute_copy(&lproxyport)).into() } - unsafe extern "system" fn setProxyPort, Impl: IWMPNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop, lproxyport: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn setProxyPort, Impl: IWMPNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lproxyport: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.setProxyPort(::core::mem::transmute(&bstrprotocol), ::core::mem::transmute_copy(&lproxyport)).into() } - unsafe extern "system" fn getProxyExceptionList, Impl: IWMPNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop, pbstrexceptionlist: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn getProxyExceptionList, Impl: IWMPNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrexceptionlist: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.getProxyExceptionList(::core::mem::transmute(&bstrprotocol), ::core::mem::transmute_copy(&pbstrexceptionlist)).into() } - unsafe extern "system" fn setProxyExceptionList, Impl: IWMPNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop, pbstrexceptionlist: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn setProxyExceptionList, Impl: IWMPNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrexceptionlist: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.setProxyExceptionList(::core::mem::transmute(&bstrprotocol), ::core::mem::transmute(&pbstrexceptionlist)).into() } - unsafe extern "system" fn getProxyBypassForLocal, Impl: IWMPNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop, pfbypassforlocal: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn getProxyBypassForLocal, Impl: IWMPNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfbypassforlocal: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.getProxyBypassForLocal(::core::mem::transmute(&bstrprotocol), ::core::mem::transmute_copy(&pfbypassforlocal)).into() } - unsafe extern "system" fn setProxyBypassForLocal, Impl: IWMPNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop, fbypassforlocal: i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn setProxyBypassForLocal, Impl: IWMPNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fbypassforlocal: i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.setProxyBypassForLocal(::core::mem::transmute(&bstrprotocol), ::core::mem::transmute_copy(&fbypassforlocal)).into() @@ -5324,8 +5312,8 @@ pub trait IWMPPlayer_Impl: Sized + super::super::System::Com::IDispatch_Impl + I fn SetfullScreen(&self, bfullscreen: i16) -> ::windows::core::Result<()>; fn enableContextMenu(&self, pbenablecontextmenu: *mut i16) -> ::windows::core::Result<()>; fn SetenableContextMenu(&self, benablecontextmenu: i16) -> ::windows::core::Result<()>; - fn SetuiMode(&self, bstrmode: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn uiMode(&self, pbstrmode: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetuiMode(&self, bstrmode: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn uiMode(&self, pbstrmode: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWMPPlayer {} @@ -5362,12 +5350,12 @@ impl IWMPPlayer_Vtbl { let this = (*this).get_impl(); this.SetenableContextMenu(::core::mem::transmute_copy(&benablecontextmenu)).into() } - unsafe extern "system" fn SetuiMode, Impl: IWMPPlayer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmode: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetuiMode, Impl: IWMPPlayer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmode: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetuiMode(::core::mem::transmute(&bstrmode)).into() } - unsafe extern "system" fn uiMode, Impl: IWMPPlayer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrmode: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn uiMode, Impl: IWMPPlayer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrmode: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.uiMode(::core::mem::transmute_copy(&pbstrmode)).into() @@ -5396,8 +5384,8 @@ pub trait IWMPPlayer2_Impl: Sized + super::super::System::Com::IDispatch_Impl + fn SetfullScreen(&self, bfullscreen: i16) -> ::windows::core::Result<()>; fn enableContextMenu(&self, pbenablecontextmenu: *mut i16) -> ::windows::core::Result<()>; fn SetenableContextMenu(&self, benablecontextmenu: i16) -> ::windows::core::Result<()>; - fn SetuiMode(&self, bstrmode: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn uiMode(&self, pbstrmode: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetuiMode(&self, bstrmode: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn uiMode(&self, pbstrmode: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn stretchToFit(&self, pbenabled: *mut i16) -> ::windows::core::Result<()>; fn SetstretchToFit(&self, benabled: i16) -> ::windows::core::Result<()>; fn windowlessVideo(&self, pbenabled: *mut i16) -> ::windows::core::Result<()>; @@ -5438,12 +5426,12 @@ impl IWMPPlayer2_Vtbl { let this = (*this).get_impl(); this.SetenableContextMenu(::core::mem::transmute_copy(&benablecontextmenu)).into() } - unsafe extern "system" fn SetuiMode, Impl: IWMPPlayer2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmode: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetuiMode, Impl: IWMPPlayer2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmode: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetuiMode(::core::mem::transmute(&bstrmode)).into() } - unsafe extern "system" fn uiMode, Impl: IWMPPlayer2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrmode: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn uiMode, Impl: IWMPPlayer2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrmode: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.uiMode(::core::mem::transmute_copy(&pbstrmode)).into() @@ -5496,8 +5484,8 @@ pub trait IWMPPlayer3_Impl: Sized + super::super::System::Com::IDispatch_Impl + fn SetfullScreen(&self, bfullscreen: i16) -> ::windows::core::Result<()>; fn enableContextMenu(&self, pbenablecontextmenu: *mut i16) -> ::windows::core::Result<()>; fn SetenableContextMenu(&self, benablecontextmenu: i16) -> ::windows::core::Result<()>; - fn SetuiMode(&self, bstrmode: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn uiMode(&self, pbstrmode: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetuiMode(&self, bstrmode: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn uiMode(&self, pbstrmode: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn stretchToFit(&self, pbenabled: *mut i16) -> ::windows::core::Result<()>; fn SetstretchToFit(&self, benabled: i16) -> ::windows::core::Result<()>; fn windowlessVideo(&self, pbenabled: *mut i16) -> ::windows::core::Result<()>; @@ -5538,12 +5526,12 @@ impl IWMPPlayer3_Vtbl { let this = (*this).get_impl(); this.SetenableContextMenu(::core::mem::transmute_copy(&benablecontextmenu)).into() } - unsafe extern "system" fn SetuiMode, Impl: IWMPPlayer3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmode: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetuiMode, Impl: IWMPPlayer3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmode: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetuiMode(::core::mem::transmute(&bstrmode)).into() } - unsafe extern "system" fn uiMode, Impl: IWMPPlayer3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrmode: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn uiMode, Impl: IWMPPlayer3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrmode: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.uiMode(::core::mem::transmute_copy(&pbstrmode)).into() @@ -5596,15 +5584,15 @@ pub trait IWMPPlayer4_Impl: Sized + super::super::System::Com::IDispatch_Impl + fn SetfullScreen(&self, bfullscreen: i16) -> ::windows::core::Result<()>; fn enableContextMenu(&self, pbenablecontextmenu: *mut i16) -> ::windows::core::Result<()>; fn SetenableContextMenu(&self, benablecontextmenu: i16) -> ::windows::core::Result<()>; - fn SetuiMode(&self, bstrmode: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn uiMode(&self, pbstrmode: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetuiMode(&self, bstrmode: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn uiMode(&self, pbstrmode: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn stretchToFit(&self, pbenabled: *mut i16) -> ::windows::core::Result<()>; fn SetstretchToFit(&self, benabled: i16) -> ::windows::core::Result<()>; fn windowlessVideo(&self, pbenabled: *mut i16) -> ::windows::core::Result<()>; fn SetwindowlessVideo(&self, benabled: i16) -> ::windows::core::Result<()>; fn isRemote(&self, pvarfisremote: *mut i16) -> ::windows::core::Result<()>; fn playerApplication(&self) -> ::windows::core::Result; - fn openPlayer(&self, bstrurl: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn openPlayer(&self, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWMPPlayer4 {} @@ -5641,12 +5629,12 @@ impl IWMPPlayer4_Vtbl { let this = (*this).get_impl(); this.SetenableContextMenu(::core::mem::transmute_copy(&benablecontextmenu)).into() } - unsafe extern "system" fn SetuiMode, Impl: IWMPPlayer4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmode: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetuiMode, Impl: IWMPPlayer4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmode: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetuiMode(::core::mem::transmute(&bstrmode)).into() } - unsafe extern "system" fn uiMode, Impl: IWMPPlayer4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrmode: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn uiMode, Impl: IWMPPlayer4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrmode: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.uiMode(::core::mem::transmute_copy(&pbstrmode)).into() @@ -5687,7 +5675,7 @@ impl IWMPPlayer4_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn openPlayer, Impl: IWMPPlayer4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn openPlayer, Impl: IWMPPlayer4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.openPlayer(::core::mem::transmute(&bstrurl)).into() @@ -5759,28 +5747,25 @@ impl IWMPPlayerApplication_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IWMPPlayerServices_Impl: Sized { - fn activateUIPlugin(&self, bstrplugin: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn setTaskPane(&self, bstrtaskpane: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn setTaskPaneURL(&self, bstrtaskpane: &super::super::Foundation::BSTR, bstrurl: &super::super::Foundation::BSTR, bstrfriendlyname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn activateUIPlugin(&self, bstrplugin: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn setTaskPane(&self, bstrtaskpane: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn setTaskPaneURL(&self, bstrtaskpane: &::windows::core::BSTR, bstrurl: &::windows::core::BSTR, bstrfriendlyname: &::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IWMPPlayerServices {} -#[cfg(feature = "Win32_Foundation")] impl IWMPPlayerServices_Vtbl { pub const fn new, Impl: IWMPPlayerServices_Impl, const OFFSET: isize>() -> IWMPPlayerServices_Vtbl { - unsafe extern "system" fn activateUIPlugin, Impl: IWMPPlayerServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrplugin: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn activateUIPlugin, Impl: IWMPPlayerServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrplugin: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.activateUIPlugin(::core::mem::transmute(&bstrplugin)).into() } - unsafe extern "system" fn setTaskPane, Impl: IWMPPlayerServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtaskpane: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn setTaskPane, Impl: IWMPPlayerServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtaskpane: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.setTaskPane(::core::mem::transmute(&bstrtaskpane)).into() } - unsafe extern "system" fn setTaskPaneURL, Impl: IWMPPlayerServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtaskpane: ::core::mem::ManuallyDrop, bstrurl: ::core::mem::ManuallyDrop, bstrfriendlyname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn setTaskPaneURL, Impl: IWMPPlayerServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtaskpane: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrfriendlyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.setTaskPaneURL(::core::mem::transmute(&bstrtaskpane), ::core::mem::transmute(&bstrurl), ::core::mem::transmute(&bstrfriendlyname)).into() @@ -5796,16 +5781,13 @@ impl IWMPPlayerServices_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IWMPPlayerServices2_Impl: Sized + IWMPPlayerServices_Impl { - fn setBackgroundProcessingPriority(&self, bstrpriority: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn setBackgroundProcessingPriority(&self, bstrpriority: &::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IWMPPlayerServices2 {} -#[cfg(feature = "Win32_Foundation")] impl IWMPPlayerServices2_Vtbl { pub const fn new, Impl: IWMPPlayerServices2_Impl, const OFFSET: isize>() -> IWMPPlayerServices2_Vtbl { - unsafe extern "system" fn setBackgroundProcessingPriority, Impl: IWMPPlayerServices2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpriority: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn setBackgroundProcessingPriority, Impl: IWMPPlayerServices2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpriority: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.setBackgroundProcessingPriority(::core::mem::transmute(&bstrpriority)).into() @@ -5822,13 +5804,13 @@ impl IWMPPlayerServices2_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWMPPlaylist_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn count(&self, plcount: *mut i32) -> ::windows::core::Result<()>; - fn name(&self, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Setname(&self, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn name(&self, pbstrname: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Setname(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn attributeCount(&self, plcount: *mut i32) -> ::windows::core::Result<()>; - fn get_attributeName(&self, lindex: i32, pbstrattributename: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn get_attributeName(&self, lindex: i32, pbstrattributename: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn get_item(&self, lindex: i32) -> ::windows::core::Result; - fn getItemInfo(&self, bstrname: &super::super::Foundation::BSTR, pbstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn setItemInfo(&self, bstrname: &super::super::Foundation::BSTR, bstrvalue: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn getItemInfo(&self, bstrname: &::windows::core::BSTR, pbstrval: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn setItemInfo(&self, bstrname: &::windows::core::BSTR, bstrvalue: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn get_isIdentical(&self, piwmpplaylist: &::core::option::Option, pvbool: *mut i16) -> ::windows::core::Result<()>; fn clear(&self) -> ::windows::core::Result<()>; fn insertItem(&self, lindex: i32, piwmpmedia: &::core::option::Option) -> ::windows::core::Result<()>; @@ -5846,12 +5828,12 @@ impl IWMPPlaylist_Vtbl { let this = (*this).get_impl(); this.count(::core::mem::transmute_copy(&plcount)).into() } - unsafe extern "system" fn name, Impl: IWMPPlaylist_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn name, Impl: IWMPPlaylist_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.name(::core::mem::transmute_copy(&pbstrname)).into() } - unsafe extern "system" fn Setname, Impl: IWMPPlaylist_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Setname, Impl: IWMPPlaylist_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Setname(::core::mem::transmute(&bstrname)).into() @@ -5861,7 +5843,7 @@ impl IWMPPlaylist_Vtbl { let this = (*this).get_impl(); this.attributeCount(::core::mem::transmute_copy(&plcount)).into() } - unsafe extern "system" fn get_attributeName, Impl: IWMPPlaylist_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lindex: i32, pbstrattributename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_attributeName, Impl: IWMPPlaylist_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lindex: i32, pbstrattributename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_attributeName(::core::mem::transmute_copy(&lindex), ::core::mem::transmute_copy(&pbstrattributename)).into() @@ -5877,12 +5859,12 @@ impl IWMPPlaylist_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn getItemInfo, Impl: IWMPPlaylist_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, pbstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn getItemInfo, Impl: IWMPPlaylist_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.getItemInfo(::core::mem::transmute(&bstrname), ::core::mem::transmute_copy(&pbstrval)).into() } - unsafe extern "system" fn setItemInfo, Impl: IWMPPlaylist_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, bstrvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn setItemInfo, Impl: IWMPPlaylist_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.setItemInfo(::core::mem::transmute(&bstrname), ::core::mem::transmute(&bstrvalue)).into() @@ -5977,9 +5959,9 @@ impl IWMPPlaylistArray_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWMPPlaylistCollection_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn newPlaylist(&self, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn newPlaylist(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result; fn getAll(&self) -> ::windows::core::Result; - fn getByName(&self, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn getByName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result; fn remove(&self, pitem: &::core::option::Option) -> ::windows::core::Result<()>; fn setDeleted(&self, pitem: &::core::option::Option, varfisdeleted: i16) -> ::windows::core::Result<()>; fn isDeleted(&self, pitem: &::core::option::Option, pvarfisdeleted: *mut i16) -> ::windows::core::Result<()>; @@ -5990,7 +5972,7 @@ impl ::windows::core::RuntimeName for IWMPPlaylistCollection {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWMPPlaylistCollection_Vtbl { pub const fn new, Impl: IWMPPlaylistCollection_Impl, const OFFSET: isize>() -> IWMPPlaylistCollection_Vtbl { - unsafe extern "system" fn newPlaylist, Impl: IWMPPlaylistCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, ppitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn newPlaylist, Impl: IWMPPlaylistCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.newPlaylist(::core::mem::transmute(&bstrname)) { @@ -6012,7 +5994,7 @@ impl IWMPPlaylistCollection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn getByName, Impl: IWMPPlaylistCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, ppplaylistarray: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn getByName, Impl: IWMPPlaylistCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppplaylistarray: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getByName(::core::mem::transmute(&bstrname)) { @@ -6216,7 +6198,7 @@ impl IWMPPluginUI_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWMPQuery_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn addCondition(&self, bstrattribute: &super::super::Foundation::BSTR, bstroperator: &super::super::Foundation::BSTR, bstrvalue: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn addCondition(&self, bstrattribute: &::windows::core::BSTR, bstroperator: &::windows::core::BSTR, bstrvalue: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn beginNextGroup(&self) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -6224,7 +6206,7 @@ impl ::windows::core::RuntimeName for IWMPQuery {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWMPQuery_Vtbl { pub const fn new, Impl: IWMPQuery_Impl, const OFFSET: isize>() -> IWMPQuery_Vtbl { - unsafe extern "system" fn addCondition, Impl: IWMPQuery_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrattribute: ::core::mem::ManuallyDrop, bstroperator: ::core::mem::ManuallyDrop, bstrvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn addCondition, Impl: IWMPQuery_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrattribute: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstroperator: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.addCondition(::core::mem::transmute(&bstrattribute), ::core::mem::transmute(&bstroperator), ::core::mem::transmute(&bstrvalue)).into() @@ -6244,34 +6226,34 @@ impl IWMPQuery_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IWMPRemoteMediaServices_Impl: Sized { - fn GetServiceType(&self, pbstrtype: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetApplicationName(&self, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetScriptableObject(&self, pbstrname: *mut super::super::Foundation::BSTR, ppdispatch: *mut ::core::option::Option) -> ::windows::core::Result<()>; - fn GetCustomUIMode(&self, pbstrfile: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetServiceType(&self, pbstrtype: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetApplicationName(&self, pbstrname: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetScriptableObject(&self, pbstrname: *mut ::windows::core::BSTR, ppdispatch: *mut ::core::option::Option) -> ::windows::core::Result<()>; + fn GetCustomUIMode(&self, pbstrfile: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IWMPRemoteMediaServices {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IWMPRemoteMediaServices_Vtbl { pub const fn new, Impl: IWMPRemoteMediaServices_Impl, const OFFSET: isize>() -> IWMPRemoteMediaServices_Vtbl { - unsafe extern "system" fn GetServiceType, Impl: IWMPRemoteMediaServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetServiceType, Impl: IWMPRemoteMediaServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetServiceType(::core::mem::transmute_copy(&pbstrtype)).into() } - unsafe extern "system" fn GetApplicationName, Impl: IWMPRemoteMediaServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetApplicationName, Impl: IWMPRemoteMediaServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetApplicationName(::core::mem::transmute_copy(&pbstrname)).into() } - unsafe extern "system" fn GetScriptableObject, Impl: IWMPRemoteMediaServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR, ppdispatch: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetScriptableObject, Impl: IWMPRemoteMediaServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppdispatch: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetScriptableObject(::core::mem::transmute_copy(&pbstrname), ::core::mem::transmute_copy(&ppdispatch)).into() } - unsafe extern "system" fn GetCustomUIMode, Impl: IWMPRemoteMediaServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfile: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCustomUIMode, Impl: IWMPRemoteMediaServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfile: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetCustomUIMode(::core::mem::transmute_copy(&pbstrfile)).into() @@ -6347,13 +6329,13 @@ impl IWMPServices_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWMPSettings_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn get_isAvailable(&self, bstritem: &super::super::Foundation::BSTR, pisavailable: *mut i16) -> ::windows::core::Result<()>; + fn get_isAvailable(&self, bstritem: &::windows::core::BSTR, pisavailable: *mut i16) -> ::windows::core::Result<()>; fn autoStart(&self, pfautostart: *mut i16) -> ::windows::core::Result<()>; fn SetautoStart(&self, fautostart: i16) -> ::windows::core::Result<()>; - fn baseURL(&self, pbstrbaseurl: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetbaseURL(&self, bstrbaseurl: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn defaultFrame(&self, pbstrdefaultframe: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetdefaultFrame(&self, bstrdefaultframe: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn baseURL(&self, pbstrbaseurl: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetbaseURL(&self, bstrbaseurl: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn defaultFrame(&self, pbstrdefaultframe: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetdefaultFrame(&self, bstrdefaultframe: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn invokeURLs(&self, pfinvokeurls: *mut i16) -> ::windows::core::Result<()>; fn SetinvokeURLs(&self, finvokeurls: i16) -> ::windows::core::Result<()>; fn mute(&self, pfmute: *mut i16) -> ::windows::core::Result<()>; @@ -6366,8 +6348,8 @@ pub trait IWMPSettings_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn Setbalance(&self, lbalance: i32) -> ::windows::core::Result<()>; fn volume(&self, plvolume: *mut i32) -> ::windows::core::Result<()>; fn Setvolume(&self, lvolume: i32) -> ::windows::core::Result<()>; - fn getMode(&self, bstrmode: &super::super::Foundation::BSTR, pvarfmode: *mut i16) -> ::windows::core::Result<()>; - fn setMode(&self, bstrmode: &super::super::Foundation::BSTR, varfmode: i16) -> ::windows::core::Result<()>; + fn getMode(&self, bstrmode: &::windows::core::BSTR, pvarfmode: *mut i16) -> ::windows::core::Result<()>; + fn setMode(&self, bstrmode: &::windows::core::BSTR, varfmode: i16) -> ::windows::core::Result<()>; fn enableErrorDialogs(&self, pfenableerrordialogs: *mut i16) -> ::windows::core::Result<()>; fn SetenableErrorDialogs(&self, fenableerrordialogs: i16) -> ::windows::core::Result<()>; } @@ -6376,7 +6358,7 @@ impl ::windows::core::RuntimeName for IWMPSettings {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWMPSettings_Vtbl { pub const fn new, Impl: IWMPSettings_Impl, const OFFSET: isize>() -> IWMPSettings_Vtbl { - unsafe extern "system" fn get_isAvailable, Impl: IWMPSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstritem: ::core::mem::ManuallyDrop, pisavailable: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_isAvailable, Impl: IWMPSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstritem: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pisavailable: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_isAvailable(::core::mem::transmute(&bstritem), ::core::mem::transmute_copy(&pisavailable)).into() @@ -6391,22 +6373,22 @@ impl IWMPSettings_Vtbl { let this = (*this).get_impl(); this.SetautoStart(::core::mem::transmute_copy(&fautostart)).into() } - unsafe extern "system" fn baseURL, Impl: IWMPSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrbaseurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn baseURL, Impl: IWMPSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrbaseurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.baseURL(::core::mem::transmute_copy(&pbstrbaseurl)).into() } - unsafe extern "system" fn SetbaseURL, Impl: IWMPSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrbaseurl: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetbaseURL, Impl: IWMPSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrbaseurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetbaseURL(::core::mem::transmute(&bstrbaseurl)).into() } - unsafe extern "system" fn defaultFrame, Impl: IWMPSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdefaultframe: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn defaultFrame, Impl: IWMPSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdefaultframe: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.defaultFrame(::core::mem::transmute_copy(&pbstrdefaultframe)).into() } - unsafe extern "system" fn SetdefaultFrame, Impl: IWMPSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdefaultframe: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetdefaultFrame, Impl: IWMPSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdefaultframe: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetdefaultFrame(::core::mem::transmute(&bstrdefaultframe)).into() @@ -6471,12 +6453,12 @@ impl IWMPSettings_Vtbl { let this = (*this).get_impl(); this.Setvolume(::core::mem::transmute_copy(&lvolume)).into() } - unsafe extern "system" fn getMode, Impl: IWMPSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmode: ::core::mem::ManuallyDrop, pvarfmode: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn getMode, Impl: IWMPSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmode: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarfmode: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.getMode(::core::mem::transmute(&bstrmode), ::core::mem::transmute_copy(&pvarfmode)).into() } - unsafe extern "system" fn setMode, Impl: IWMPSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmode: ::core::mem::ManuallyDrop, varfmode: i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn setMode, Impl: IWMPSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmode: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varfmode: i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.setMode(::core::mem::transmute(&bstrmode), ::core::mem::transmute_copy(&varfmode)).into() @@ -6525,8 +6507,8 @@ impl IWMPSettings_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWMPSettings2_Impl: Sized + super::super::System::Com::IDispatch_Impl + IWMPSettings_Impl { fn defaultAudioLanguage(&self, pllangid: *mut i32) -> ::windows::core::Result<()>; - fn mediaAccessRights(&self, pbstrrights: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn requestMediaAccessRights(&self, bstrdesiredaccess: &super::super::Foundation::BSTR, pvbaccepted: *mut i16) -> ::windows::core::Result<()>; + fn mediaAccessRights(&self, pbstrrights: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn requestMediaAccessRights(&self, bstrdesiredaccess: &::windows::core::BSTR, pvbaccepted: *mut i16) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWMPSettings2 {} @@ -6538,12 +6520,12 @@ impl IWMPSettings2_Vtbl { let this = (*this).get_impl(); this.defaultAudioLanguage(::core::mem::transmute_copy(&pllangid)).into() } - unsafe extern "system" fn mediaAccessRights, Impl: IWMPSettings2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrrights: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn mediaAccessRights, Impl: IWMPSettings2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrrights: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.mediaAccessRights(::core::mem::transmute_copy(&pbstrrights)).into() } - unsafe extern "system" fn requestMediaAccessRights, Impl: IWMPSettings2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdesiredaccess: ::core::mem::ManuallyDrop, pvbaccepted: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn requestMediaAccessRights, Impl: IWMPSettings2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdesiredaccess: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvbaccepted: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.requestMediaAccessRights(::core::mem::transmute(&bstrdesiredaccess), ::core::mem::transmute_copy(&pvbaccepted)).into() @@ -6559,16 +6541,13 @@ impl IWMPSettings2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IWMPSkinManager_Impl: Sized { - fn SetVisualStyle(&self, bstrpath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetVisualStyle(&self, bstrpath: &::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IWMPSkinManager {} -#[cfg(feature = "Win32_Foundation")] impl IWMPSkinManager_Vtbl { pub const fn new, Impl: IWMPSkinManager_Impl, const OFFSET: isize>() -> IWMPSkinManager_Vtbl { - unsafe extern "system" fn SetVisualStyle, Impl: IWMPSkinManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetVisualStyle, Impl: IWMPSkinManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetVisualStyle(::core::mem::transmute(&bstrpath)).into() @@ -6582,7 +6561,7 @@ impl IWMPSkinManager_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWMPStringCollection_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn count(&self, plcount: *mut i32) -> ::windows::core::Result<()>; - fn item(&self, lindex: i32, pbstrstring: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn item(&self, lindex: i32, pbstrstring: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWMPStringCollection {} @@ -6594,7 +6573,7 @@ impl IWMPStringCollection_Vtbl { let this = (*this).get_impl(); this.count(::core::mem::transmute_copy(&plcount)).into() } - unsafe extern "system" fn item, Impl: IWMPStringCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lindex: i32, pbstrstring: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn item, Impl: IWMPStringCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lindex: i32, pbstrstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.item(::core::mem::transmute_copy(&lindex), ::core::mem::transmute_copy(&pbstrstring)).into() @@ -6612,9 +6591,9 @@ impl IWMPStringCollection_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWMPStringCollection2_Impl: Sized + super::super::System::Com::IDispatch_Impl + IWMPStringCollection_Impl { fn isIdentical(&self, piwmpstringcollection2: &::core::option::Option, pvbool: *mut i16) -> ::windows::core::Result<()>; - fn getItemInfo(&self, lcollectionindex: i32, bstritemname: &super::super::Foundation::BSTR, pbstrvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn getAttributeCountByType(&self, lcollectionindex: i32, bstrtype: &super::super::Foundation::BSTR, bstrlanguage: &super::super::Foundation::BSTR, plcount: *mut i32) -> ::windows::core::Result<()>; - fn getItemInfoByType(&self, lcollectionindex: i32, bstrtype: &super::super::Foundation::BSTR, bstrlanguage: &super::super::Foundation::BSTR, lattributeindex: i32, pvarvalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn getItemInfo(&self, lcollectionindex: i32, bstritemname: &::windows::core::BSTR, pbstrvalue: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn getAttributeCountByType(&self, lcollectionindex: i32, bstrtype: &::windows::core::BSTR, bstrlanguage: &::windows::core::BSTR, plcount: *mut i32) -> ::windows::core::Result<()>; + fn getItemInfoByType(&self, lcollectionindex: i32, bstrtype: &::windows::core::BSTR, bstrlanguage: &::windows::core::BSTR, lattributeindex: i32, pvarvalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWMPStringCollection2 {} @@ -6626,17 +6605,17 @@ impl IWMPStringCollection2_Vtbl { let this = (*this).get_impl(); this.isIdentical(::core::mem::transmute(&piwmpstringcollection2), ::core::mem::transmute_copy(&pvbool)).into() } - unsafe extern "system" fn getItemInfo, Impl: IWMPStringCollection2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lcollectionindex: i32, bstritemname: ::core::mem::ManuallyDrop, pbstrvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn getItemInfo, Impl: IWMPStringCollection2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lcollectionindex: i32, bstritemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.getItemInfo(::core::mem::transmute_copy(&lcollectionindex), ::core::mem::transmute(&bstritemname), ::core::mem::transmute_copy(&pbstrvalue)).into() } - unsafe extern "system" fn getAttributeCountByType, Impl: IWMPStringCollection2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lcollectionindex: i32, bstrtype: ::core::mem::ManuallyDrop, bstrlanguage: ::core::mem::ManuallyDrop, plcount: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn getAttributeCountByType, Impl: IWMPStringCollection2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lcollectionindex: i32, bstrtype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrlanguage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, plcount: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.getAttributeCountByType(::core::mem::transmute_copy(&lcollectionindex), ::core::mem::transmute(&bstrtype), ::core::mem::transmute(&bstrlanguage), ::core::mem::transmute_copy(&plcount)).into() } - unsafe extern "system" fn getItemInfoByType, Impl: IWMPStringCollection2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lcollectionindex: i32, bstrtype: ::core::mem::ManuallyDrop, bstrlanguage: ::core::mem::ManuallyDrop, lattributeindex: i32, pvarvalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn getItemInfoByType, Impl: IWMPStringCollection2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lcollectionindex: i32, bstrtype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrlanguage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lattributeindex: i32, pvarvalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.getItemInfoByType(::core::mem::transmute_copy(&lcollectionindex), ::core::mem::transmute(&bstrtype), ::core::mem::transmute(&bstrlanguage), ::core::mem::transmute_copy(&lattributeindex), ::core::mem::transmute_copy(&pvarvalue)).into() @@ -6701,8 +6680,8 @@ impl IWMPSubscriptionService_Vtbl { pub trait IWMPSubscriptionService2_Impl: Sized + IWMPSubscriptionService_Impl { fn stopBackgroundProcessing(&self) -> ::windows::core::Result<()>; fn serviceEvent(&self, event: WMPSubscriptionServiceEvent) -> ::windows::core::Result<()>; - fn deviceAvailable(&self, bstrdevicename: &super::super::Foundation::BSTR, pcb: &::core::option::Option) -> ::windows::core::Result<()>; - fn prepareForSync(&self, bstrfilename: &super::super::Foundation::BSTR, bstrdevicename: &super::super::Foundation::BSTR, pcb: &::core::option::Option) -> ::windows::core::Result<()>; + fn deviceAvailable(&self, bstrdevicename: &::windows::core::BSTR, pcb: &::core::option::Option) -> ::windows::core::Result<()>; + fn prepareForSync(&self, bstrfilename: &::windows::core::BSTR, bstrdevicename: &::windows::core::BSTR, pcb: &::core::option::Option) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] impl ::windows::core::RuntimeName for IWMPSubscriptionService2 {} @@ -6719,12 +6698,12 @@ impl IWMPSubscriptionService2_Vtbl { let this = (*this).get_impl(); this.serviceEvent(::core::mem::transmute_copy(&event)).into() } - unsafe extern "system" fn deviceAvailable, Impl: IWMPSubscriptionService2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdevicename: ::core::mem::ManuallyDrop, pcb: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn deviceAvailable, Impl: IWMPSubscriptionService2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdevicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcb: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.deviceAvailable(::core::mem::transmute(&bstrdevicename), ::core::mem::transmute(&pcb)).into() } - unsafe extern "system" fn prepareForSync, Impl: IWMPSubscriptionService2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop, bstrdevicename: ::core::mem::ManuallyDrop, pcb: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn prepareForSync, Impl: IWMPSubscriptionService2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdevicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcb: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.prepareForSync(::core::mem::transmute(&bstrfilename), ::core::mem::transmute(&bstrdevicename), ::core::mem::transmute(&pcb)).into() @@ -6758,18 +6737,17 @@ impl IWMPSubscriptionServiceCallback_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IWMPSyncDevice_Impl: Sized { - fn friendlyName(&self, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetfriendlyName(&self, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn deviceName(&self, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn deviceId(&self, pbstrdeviceid: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn friendlyName(&self, pbstrname: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetfriendlyName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn deviceName(&self, pbstrname: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn deviceId(&self, pbstrdeviceid: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn partnershipIndex(&self, plindex: *mut i32) -> ::windows::core::Result<()>; fn connected(&self, pvbconnected: *mut i16) -> ::windows::core::Result<()>; fn status(&self, pwmpds: *mut WMPDeviceStatus) -> ::windows::core::Result<()>; fn syncState(&self, pwmpss: *mut WMPSyncState) -> ::windows::core::Result<()>; fn progress(&self, plprogress: *mut i32) -> ::windows::core::Result<()>; - fn getItemInfo(&self, bstritemname: &super::super::Foundation::BSTR, pbstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn getItemInfo(&self, bstritemname: &::windows::core::BSTR, pbstrval: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn createPartnership(&self, vbshowui: i16) -> ::windows::core::Result<()>; fn deletePartnership(&self) -> ::windows::core::Result<()>; fn start(&self) -> ::windows::core::Result<()>; @@ -6777,27 +6755,25 @@ pub trait IWMPSyncDevice_Impl: Sized { fn showSettings(&self) -> ::windows::core::Result<()>; fn isIdentical(&self, pdevice: &::core::option::Option, pvbool: *mut i16) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IWMPSyncDevice {} -#[cfg(feature = "Win32_Foundation")] impl IWMPSyncDevice_Vtbl { pub const fn new, Impl: IWMPSyncDevice_Impl, const OFFSET: isize>() -> IWMPSyncDevice_Vtbl { - unsafe extern "system" fn friendlyName, Impl: IWMPSyncDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn friendlyName, Impl: IWMPSyncDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.friendlyName(::core::mem::transmute_copy(&pbstrname)).into() } - unsafe extern "system" fn SetfriendlyName, Impl: IWMPSyncDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetfriendlyName, Impl: IWMPSyncDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetfriendlyName(::core::mem::transmute(&bstrname)).into() } - unsafe extern "system" fn deviceName, Impl: IWMPSyncDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn deviceName, Impl: IWMPSyncDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.deviceName(::core::mem::transmute_copy(&pbstrname)).into() } - unsafe extern "system" fn deviceId, Impl: IWMPSyncDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdeviceid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn deviceId, Impl: IWMPSyncDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdeviceid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.deviceId(::core::mem::transmute_copy(&pbstrdeviceid)).into() @@ -6827,7 +6803,7 @@ impl IWMPSyncDevice_Vtbl { let this = (*this).get_impl(); this.progress(::core::mem::transmute_copy(&plprogress)).into() } - unsafe extern "system" fn getItemInfo, Impl: IWMPSyncDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop, pbstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn getItemInfo, Impl: IWMPSyncDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.getItemInfo(::core::mem::transmute(&bstritemname), ::core::mem::transmute_copy(&pbstrval)).into() @@ -6886,16 +6862,13 @@ impl IWMPSyncDevice_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IWMPSyncDevice2_Impl: Sized + IWMPSyncDevice_Impl { - fn setItemInfo(&self, bstritemname: &super::super::Foundation::BSTR, bstrval: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn setItemInfo(&self, bstritemname: &::windows::core::BSTR, bstrval: &::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IWMPSyncDevice2 {} -#[cfg(feature = "Win32_Foundation")] impl IWMPSyncDevice2_Vtbl { pub const fn new, Impl: IWMPSyncDevice2_Impl, const OFFSET: isize>() -> IWMPSyncDevice2_Vtbl { - unsafe extern "system" fn setItemInfo, Impl: IWMPSyncDevice2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop, bstrval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn setItemInfo, Impl: IWMPSyncDevice2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.setItemInfo(::core::mem::transmute(&bstritemname), ::core::mem::transmute(&bstrval)).into() @@ -6906,14 +6879,14 @@ impl IWMPSyncDevice2_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IWMPSyncDevice3_Impl: Sized + IWMPSyncDevice_Impl + IWMPSyncDevice2_Impl { fn estimateSyncSize(&self, pnonruleplaylist: &::core::option::Option, prulesplaylist: &::core::option::Option) -> ::windows::core::Result<()>; fn cancelEstimation(&self) -> ::windows::core::Result<()>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IWMPSyncDevice3 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IWMPSyncDevice3_Vtbl { pub const fn new, Impl: IWMPSyncDevice3_Impl, const OFFSET: isize>() -> IWMPSyncDevice3_Vtbl { unsafe extern "system" fn estimateSyncSize, Impl: IWMPSyncDevice3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pnonruleplaylist: *mut ::core::ffi::c_void, prulesplaylist: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { diff --git a/crates/libs/windows/src/Windows/Win32/Media/MediaPlayer/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/MediaPlayer/mod.rs index 4ef0bb8fe3..04c3676779 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/MediaPlayer/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/MediaPlayer/mod.rs @@ -4,59 +4,34 @@ pub struct IFeed(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IFeed { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Xml(&self, count: i32, sortproperty: FEEDS_XML_SORT_PROPERTY, sortorder: FEEDS_XML_SORT_ORDER, filterflags: FEEDS_XML_FILTER_FLAGS, includeflags: FEEDS_XML_INCLUDE_FLAGS) -> ::windows::core::Result { + pub unsafe fn Xml(&self, count: i32, sortproperty: FEEDS_XML_SORT_PROPERTY, sortorder: FEEDS_XML_SORT_ORDER, filterflags: FEEDS_XML_FILTER_FLAGS, includeflags: FEEDS_XML_INCLUDE_FLAGS) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Xml)(::windows::core::Interface::as_raw(self), count, sortproperty, sortorder, filterflags, includeflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Xml)(::windows::core::Interface::as_raw(self), count, sortproperty, sortorder, filterflags, includeflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Rename<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Rename)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn Rename(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Rename)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Url(&self) -> ::windows::core::Result { + pub unsafe fn Url(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Url)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Url)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetUrl<'a, P0>(&self, feedurl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetUrl)(::windows::core::Interface::as_raw(self), feedurl.into().abi()).ok() + pub unsafe fn SetUrl(&self, feedurl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(feedurl)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LocalId(&self) -> ::windows::core::Result { + pub unsafe fn LocalId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LocalId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LocalId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Path(&self) -> ::windows::core::Result { + pub unsafe fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Move<'a, P0>(&self, newparentpath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Move)(::windows::core::Interface::as_raw(self), newparentpath.into().abi()).ok() + pub unsafe fn Move(&self, newparentpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Move)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(newparentpath)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -98,11 +73,9 @@ impl IFeed { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).LastDownloadTime)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LocalEnclosurePath(&self) -> ::windows::core::Result { + pub unsafe fn LocalEnclosurePath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LocalEnclosurePath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LocalEnclosurePath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -116,29 +89,21 @@ impl IFeed { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetItem)(::windows::core::Interface::as_raw(self), itemid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Title(&self) -> ::windows::core::Result { + pub unsafe fn Title(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Link(&self) -> ::windows::core::Result { + pub unsafe fn Link(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Link)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Link)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Image(&self) -> ::windows::core::Result { + pub unsafe fn Image(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Image)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Image)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn LastBuildDate(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -152,17 +117,13 @@ impl IFeed { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Ttl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Language(&self) -> ::windows::core::Result { + pub unsafe fn Language(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Language)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Language)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Copyright(&self) -> ::windows::core::Result { + pub unsafe fn Copyright(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Copyright)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Copyright)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn MaxItemCount(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -186,20 +147,12 @@ impl IFeed { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).LastDownloadError)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Merge<'a, P0, P1>(&self, feedxml: P0, feedurl: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Merge)(::windows::core::Interface::as_raw(self), feedxml.into().abi(), feedurl.into().abi()).ok() + pub unsafe fn Merge(&self, feedxml: &::windows::core::BSTR, feedurl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Merge)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(feedxml), ::core::mem::transmute_copy(feedurl)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DownloadUrl(&self) -> ::windows::core::Result { + pub unsafe fn DownloadUrl(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DownloadUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DownloadUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn IsList(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -289,38 +242,14 @@ unsafe impl ::windows::core::Interface for IFeed { #[doc(hidden)] pub struct IFeed_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Xml: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: i32, sortproperty: FEEDS_XML_SORT_PROPERTY, sortorder: FEEDS_XML_SORT_ORDER, filterflags: FEEDS_XML_FILTER_FLAGS, includeflags: FEEDS_XML_INCLUDE_FLAGS, xml: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Xml: usize, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub Rename: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Rename: usize, - #[cfg(feature = "Win32_Foundation")] - pub Url: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feedurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Url: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feedurl: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetUrl: usize, - #[cfg(feature = "Win32_Foundation")] - pub LocalId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feedguid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LocalId: usize, - #[cfg(feature = "Win32_Foundation")] - pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Path: usize, - #[cfg(feature = "Win32_Foundation")] - pub Move: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newparentpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Move: usize, + pub Xml: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: i32, sortproperty: FEEDS_XML_SORT_PROPERTY, sortorder: FEEDS_XML_SORT_ORDER, filterflags: FEEDS_XML_FILTER_FLAGS, includeflags: FEEDS_XML_INCLUDE_FLAGS, xml: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Rename: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Url: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feedurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feedurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub LocalId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feedguid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Move: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newparentpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Parent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, disp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -335,10 +264,7 @@ pub struct IFeed_Vtbl { pub Interval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, minutes: *mut i32) -> ::windows::core::HRESULT, pub SetInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, minutes: i32) -> ::windows::core::HRESULT, pub LastDownloadTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lastdownload: *mut f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub LocalEnclosurePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LocalEnclosurePath: usize, + pub LocalEnclosurePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Items: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, disp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -347,47 +273,23 @@ pub struct IFeed_Vtbl { pub GetItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, itemid: i32, disp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetItem: usize, - #[cfg(feature = "Win32_Foundation")] - pub Title: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, title: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Title: usize, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub Link: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, homepage: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Link: usize, - #[cfg(feature = "Win32_Foundation")] - pub Image: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, imageurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Image: usize, + pub Title: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, title: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Link: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, homepage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Image: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, imageurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub LastBuildDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lastbuilddate: *mut f64) -> ::windows::core::HRESULT, pub PubDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lastpopulatedate: *mut f64) -> ::windows::core::HRESULT, pub Ttl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ttl: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Language: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, language: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Language: usize, - #[cfg(feature = "Win32_Foundation")] - pub Copyright: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, copyright: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Copyright: usize, + pub Language: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, language: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Copyright: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, copyright: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub MaxItemCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: *mut i32) -> ::windows::core::HRESULT, pub SetMaxItemCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: i32) -> ::windows::core::HRESULT, pub DownloadEnclosuresAutomatically: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, downloadenclosuresautomatically: *mut i16) -> ::windows::core::HRESULT, pub SetDownloadEnclosuresAutomatically: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, downloadenclosuresautomatically: i16) -> ::windows::core::HRESULT, pub DownloadStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, status: *mut FEEDS_DOWNLOAD_STATUS) -> ::windows::core::HRESULT, pub LastDownloadError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, error: *mut FEEDS_DOWNLOAD_ERROR) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Merge: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feedxml: ::core::mem::ManuallyDrop, feedurl: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Merge: usize, - #[cfg(feature = "Win32_Foundation")] - pub DownloadUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feedurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DownloadUrl: usize, + pub Merge: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feedxml: ::core::mem::ManuallyDrop<::windows::core::BSTR>, feedurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DownloadUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feedurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub IsList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, islist: *mut i16) -> ::windows::core::HRESULT, pub MarkAllItemsRead: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] @@ -403,59 +305,34 @@ pub struct IFeed_Vtbl { pub struct IFeed2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IFeed2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Xml(&self, count: i32, sortproperty: FEEDS_XML_SORT_PROPERTY, sortorder: FEEDS_XML_SORT_ORDER, filterflags: FEEDS_XML_FILTER_FLAGS, includeflags: FEEDS_XML_INCLUDE_FLAGS) -> ::windows::core::Result { + pub unsafe fn Xml(&self, count: i32, sortproperty: FEEDS_XML_SORT_PROPERTY, sortorder: FEEDS_XML_SORT_ORDER, filterflags: FEEDS_XML_FILTER_FLAGS, includeflags: FEEDS_XML_INCLUDE_FLAGS) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Xml)(::windows::core::Interface::as_raw(self), count, sortproperty, sortorder, filterflags, includeflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Xml)(::windows::core::Interface::as_raw(self), count, sortproperty, sortorder, filterflags, includeflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Rename<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.Rename)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn Rename(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.Rename)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Url(&self) -> ::windows::core::Result { + pub unsafe fn Url(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Url)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Url)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetUrl<'a, P0>(&self, feedurl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetUrl)(::windows::core::Interface::as_raw(self), feedurl.into().abi()).ok() + pub unsafe fn SetUrl(&self, feedurl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(feedurl)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LocalId(&self) -> ::windows::core::Result { + pub unsafe fn LocalId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.LocalId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.LocalId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Path(&self) -> ::windows::core::Result { + pub unsafe fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Move<'a, P0>(&self, newparentpath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.Move)(::windows::core::Interface::as_raw(self), newparentpath.into().abi()).ok() + pub unsafe fn Move(&self, newparentpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.Move)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(newparentpath)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -497,11 +374,9 @@ impl IFeed2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.LastDownloadTime)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LocalEnclosurePath(&self) -> ::windows::core::Result { + pub unsafe fn LocalEnclosurePath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.LocalEnclosurePath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.LocalEnclosurePath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -515,29 +390,21 @@ impl IFeed2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetItem)(::windows::core::Interface::as_raw(self), itemid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Title(&self) -> ::windows::core::Result { + pub unsafe fn Title(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Link(&self) -> ::windows::core::Result { + pub unsafe fn Link(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Link)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Link)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Image(&self) -> ::windows::core::Result { + pub unsafe fn Image(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Image)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Image)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn LastBuildDate(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -551,17 +418,13 @@ impl IFeed2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Ttl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Language(&self) -> ::windows::core::Result { + pub unsafe fn Language(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Language)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Language)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Copyright(&self) -> ::windows::core::Result { + pub unsafe fn Copyright(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Copyright)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Copyright)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn MaxItemCount(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -585,20 +448,12 @@ impl IFeed2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.LastDownloadError)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Merge<'a, P0, P1>(&self, feedxml: P0, feedurl: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.Merge)(::windows::core::Interface::as_raw(self), feedxml.into().abi(), feedurl.into().abi()).ok() + pub unsafe fn Merge(&self, feedxml: &::windows::core::BSTR, feedurl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.Merge)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(feedxml), ::core::mem::transmute_copy(feedurl)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DownloadUrl(&self) -> ::windows::core::Result { + pub unsafe fn DownloadUrl(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.DownloadUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.DownloadUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn IsList(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -631,26 +486,16 @@ impl IFeed2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).LastItemDownloadTime)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Username(&self) -> ::windows::core::Result { + pub unsafe fn Username(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Username)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Username)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Password(&self) -> ::windows::core::Result { + pub unsafe fn Password(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Password)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Password)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCredentials<'a, P0, P1>(&self, username: P0, password: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetCredentials)(::windows::core::Interface::as_raw(self), username.into().abi(), password.into().abi()).ok() + pub unsafe fn SetCredentials(&self, username: &::windows::core::BSTR, password: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetCredentials)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(username), ::core::mem::transmute_copy(password)).ok() } pub unsafe fn ClearCredentials(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ClearCredentials)(::windows::core::Interface::as_raw(self)).ok() @@ -745,18 +590,9 @@ pub struct IFeed2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetItemByEffectiveId: usize, pub LastItemDownloadTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lastitemdownloadtime: *mut f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Username: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, username: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Username: usize, - #[cfg(feature = "Win32_Foundation")] - pub Password: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, password: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Password: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetCredentials: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, username: ::core::mem::ManuallyDrop, password: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetCredentials: usize, + pub Username: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, username: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Password: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, password: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetCredentials: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, username: ::core::mem::ManuallyDrop<::windows::core::BSTR>, password: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ClearCredentials: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_MediaPlayer\"`, `\"Win32_System_Com\"`*"] @@ -765,17 +601,13 @@ pub struct IFeed2_Vtbl { pub struct IFeedEnclosure(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IFeedEnclosure { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Url(&self) -> ::windows::core::Result { + pub unsafe fn Url(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Url)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Url)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Type(&self) -> ::windows::core::Result { + pub unsafe fn Type(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Length(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -795,11 +627,9 @@ impl IFeedEnclosure { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).LastDownloadError)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LocalPath(&self) -> ::windows::core::Result { + pub unsafe fn LocalPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LocalPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LocalPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -807,31 +637,19 @@ impl IFeedEnclosure { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DownloadUrl(&self) -> ::windows::core::Result { + pub unsafe fn DownloadUrl(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DownloadUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DownloadUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DownloadMimeType(&self) -> ::windows::core::Result { + pub unsafe fn DownloadMimeType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DownloadMimeType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DownloadMimeType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn RemoveFile(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RemoveFile)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFile<'a, P0, P1, P2, P3>(&self, downloadurl: P0, downloadfilepath: P1, downloadmimetype: P2, enclosurefilename: P3) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetFile)(::windows::core::Interface::as_raw(self), downloadurl.into().abi(), downloadfilepath.into().abi(), downloadmimetype.into().abi(), enclosurefilename.into().abi()).ok() + pub unsafe fn SetFile(&self, downloadurl: &::windows::core::BSTR, downloadfilepath: &::windows::core::BSTR, downloadmimetype: &::windows::core::BSTR, enclosurefilename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetFile)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(downloadurl), ::core::mem::transmute_copy(downloadfilepath), ::core::mem::transmute_copy(downloadmimetype), ::core::mem::transmute_copy(enclosurefilename)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -900,40 +718,22 @@ unsafe impl ::windows::core::Interface for IFeedEnclosure { #[doc(hidden)] pub struct IFeedEnclosure_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Url: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enclosureurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Url: usize, - #[cfg(feature = "Win32_Foundation")] - pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mimetype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Type: usize, + pub Url: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enclosureurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mimetype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Length: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, length: *mut i32) -> ::windows::core::HRESULT, pub AsyncDownload: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub CancelAsyncDownload: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub DownloadStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, status: *mut FEEDS_DOWNLOAD_STATUS) -> ::windows::core::HRESULT, pub LastDownloadError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, error: *mut FEEDS_DOWNLOAD_ERROR) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub LocalPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, localpath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LocalPath: usize, + pub LocalPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, localpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Parent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, disp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Parent: usize, - #[cfg(feature = "Win32_Foundation")] - pub DownloadUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enclosureurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DownloadUrl: usize, - #[cfg(feature = "Win32_Foundation")] - pub DownloadMimeType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mimetype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DownloadMimeType: usize, + pub DownloadUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enclosureurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DownloadMimeType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mimetype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub RemoveFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, downloadurl: ::core::mem::ManuallyDrop, downloadfilepath: ::core::mem::ManuallyDrop, downloadmimetype: ::core::mem::ManuallyDrop, enclosurefilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetFile: usize, + pub SetFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, downloadurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, downloadfilepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, downloadmimetype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, enclosurefilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_MediaPlayer\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -944,63 +744,26 @@ impl IFeedEvents { pub unsafe fn Error(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Error)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FeedDeleted<'a, P0>(&self, path: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).FeedDeleted)(::windows::core::Interface::as_raw(self), path.into().abi()).ok() + pub unsafe fn FeedDeleted(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).FeedDeleted)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FeedRenamed<'a, P0, P1>(&self, path: P0, oldpath: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).FeedRenamed)(::windows::core::Interface::as_raw(self), path.into().abi(), oldpath.into().abi()).ok() + pub unsafe fn FeedRenamed(&self, path: &::windows::core::BSTR, oldpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).FeedRenamed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), ::core::mem::transmute_copy(oldpath)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FeedUrlChanged<'a, P0>(&self, path: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).FeedUrlChanged)(::windows::core::Interface::as_raw(self), path.into().abi()).ok() + pub unsafe fn FeedUrlChanged(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).FeedUrlChanged)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FeedMoved<'a, P0, P1>(&self, path: P0, oldpath: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).FeedMoved)(::windows::core::Interface::as_raw(self), path.into().abi(), oldpath.into().abi()).ok() + pub unsafe fn FeedMoved(&self, path: &::windows::core::BSTR, oldpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).FeedMoved)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), ::core::mem::transmute_copy(oldpath)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FeedDownloading<'a, P0>(&self, path: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).FeedDownloading)(::windows::core::Interface::as_raw(self), path.into().abi()).ok() + pub unsafe fn FeedDownloading(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).FeedDownloading)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FeedDownloadCompleted<'a, P0>(&self, path: P0, error: FEEDS_DOWNLOAD_ERROR) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).FeedDownloadCompleted)(::windows::core::Interface::as_raw(self), path.into().abi(), error).ok() + pub unsafe fn FeedDownloadCompleted(&self, path: &::windows::core::BSTR, error: FEEDS_DOWNLOAD_ERROR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).FeedDownloadCompleted)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), error).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FeedItemCountChanged<'a, P0>(&self, path: P0, itemcounttype: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).FeedItemCountChanged)(::windows::core::Interface::as_raw(self), path.into().abi(), itemcounttype).ok() + pub unsafe fn FeedItemCountChanged(&self, path: &::windows::core::BSTR, itemcounttype: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).FeedItemCountChanged)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), itemcounttype).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1070,34 +833,13 @@ unsafe impl ::windows::core::Interface for IFeedEvents { pub struct IFeedEvents_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub Error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub FeedDeleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FeedDeleted: usize, - #[cfg(feature = "Win32_Foundation")] - pub FeedRenamed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, oldpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FeedRenamed: usize, - #[cfg(feature = "Win32_Foundation")] - pub FeedUrlChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FeedUrlChanged: usize, - #[cfg(feature = "Win32_Foundation")] - pub FeedMoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, oldpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FeedMoved: usize, - #[cfg(feature = "Win32_Foundation")] - pub FeedDownloading: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FeedDownloading: usize, - #[cfg(feature = "Win32_Foundation")] - pub FeedDownloadCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, error: FEEDS_DOWNLOAD_ERROR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FeedDownloadCompleted: usize, - #[cfg(feature = "Win32_Foundation")] - pub FeedItemCountChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, itemcounttype: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FeedItemCountChanged: usize, + pub FeedDeleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FeedRenamed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, oldpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FeedUrlChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FeedMoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, oldpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FeedDownloading: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FeedDownloadCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, error: FEEDS_DOWNLOAD_ERROR) -> ::windows::core::HRESULT, + pub FeedItemCountChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, itemcounttype: i32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_MediaPlayer\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1117,91 +859,54 @@ impl IFeedFolder { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Subfolders)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateFeed<'a, P0, P1>(&self, feedname: P0, feedurl: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateFeed(&self, feedname: &::windows::core::BSTR, feedurl: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateFeed)(::windows::core::Interface::as_raw(self), feedname.into().abi(), feedurl.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateFeed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(feedname), ::core::mem::transmute_copy(feedurl), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateSubfolder<'a, P0>(&self, foldername: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateSubfolder(&self, foldername: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateSubfolder)(::windows::core::Interface::as_raw(self), foldername.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateSubfolder)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(foldername), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExistsFeed<'a, P0>(&self, feedname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn ExistsFeed(&self, feedname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ExistsFeed)(::windows::core::Interface::as_raw(self), feedname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ExistsFeed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(feedname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetFeed<'a, P0>(&self, feedname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetFeed(&self, feedname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetFeed)(::windows::core::Interface::as_raw(self), feedname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetFeed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(feedname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExistsSubfolder<'a, P0>(&self, foldername: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn ExistsSubfolder(&self, foldername: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ExistsSubfolder)(::windows::core::Interface::as_raw(self), foldername.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ExistsSubfolder)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(foldername), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetSubfolder<'a, P0>(&self, foldername: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetSubfolder(&self, foldername: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetSubfolder)(::windows::core::Interface::as_raw(self), foldername.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetSubfolder)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(foldername), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Delete)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Rename<'a, P0>(&self, foldername: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Rename)(::windows::core::Interface::as_raw(self), foldername.into().abi()).ok() + pub unsafe fn Rename(&self, foldername: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Rename)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(foldername)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Path(&self) -> ::windows::core::Result { + pub unsafe fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Move<'a, P0>(&self, newparentpath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Move)(::windows::core::Interface::as_raw(self), newparentpath.into().abi()).ok() + pub unsafe fn Move(&self, newparentpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Move)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(newparentpath)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1302,47 +1007,29 @@ pub struct IFeedFolder_Vtbl { pub Subfolders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, disp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Subfolders: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreateFeed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feedname: ::core::mem::ManuallyDrop, feedurl: ::core::mem::ManuallyDrop, disp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreateFeed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feedname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, feedurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, disp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreateFeed: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreateSubfolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, foldername: ::core::mem::ManuallyDrop, disp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreateSubfolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, foldername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, disp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreateSubfolder: usize, - #[cfg(feature = "Win32_Foundation")] - pub ExistsFeed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feedname: ::core::mem::ManuallyDrop, exists: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ExistsFeed: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetFeed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feedname: ::core::mem::ManuallyDrop, disp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub ExistsFeed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feedname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, exists: *mut i16) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub GetFeed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feedname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, disp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetFeed: usize, - #[cfg(feature = "Win32_Foundation")] - pub ExistsSubfolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, foldername: ::core::mem::ManuallyDrop, exists: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ExistsSubfolder: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetSubfolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, foldername: ::core::mem::ManuallyDrop, disp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub ExistsSubfolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, foldername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, exists: *mut i16) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub GetSubfolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, foldername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, disp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetSubfolder: usize, pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, foldername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub Rename: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, foldername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Rename: usize, - #[cfg(feature = "Win32_Foundation")] - pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, folderpath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Path: usize, - #[cfg(feature = "Win32_Foundation")] - pub Move: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newparentpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Move: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, foldername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Rename: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, foldername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, folderpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Move: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newparentpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Parent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, disp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -1364,131 +1051,50 @@ impl IFeedFolderEvents { pub unsafe fn Error(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Error)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FolderAdded<'a, P0>(&self, path: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).FolderAdded)(::windows::core::Interface::as_raw(self), path.into().abi()).ok() + pub unsafe fn FolderAdded(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).FolderAdded)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FolderDeleted<'a, P0>(&self, path: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).FolderDeleted)(::windows::core::Interface::as_raw(self), path.into().abi()).ok() + pub unsafe fn FolderDeleted(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).FolderDeleted)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FolderRenamed<'a, P0, P1>(&self, path: P0, oldpath: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).FolderRenamed)(::windows::core::Interface::as_raw(self), path.into().abi(), oldpath.into().abi()).ok() + pub unsafe fn FolderRenamed(&self, path: &::windows::core::BSTR, oldpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).FolderRenamed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), ::core::mem::transmute_copy(oldpath)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FolderMovedFrom<'a, P0, P1>(&self, path: P0, oldpath: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).FolderMovedFrom)(::windows::core::Interface::as_raw(self), path.into().abi(), oldpath.into().abi()).ok() + pub unsafe fn FolderMovedFrom(&self, path: &::windows::core::BSTR, oldpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).FolderMovedFrom)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), ::core::mem::transmute_copy(oldpath)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FolderMovedTo<'a, P0, P1>(&self, path: P0, oldpath: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).FolderMovedTo)(::windows::core::Interface::as_raw(self), path.into().abi(), oldpath.into().abi()).ok() + pub unsafe fn FolderMovedTo(&self, path: &::windows::core::BSTR, oldpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).FolderMovedTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), ::core::mem::transmute_copy(oldpath)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FolderItemCountChanged<'a, P0>(&self, path: P0, itemcounttype: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).FolderItemCountChanged)(::windows::core::Interface::as_raw(self), path.into().abi(), itemcounttype).ok() + pub unsafe fn FolderItemCountChanged(&self, path: &::windows::core::BSTR, itemcounttype: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).FolderItemCountChanged)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), itemcounttype).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FeedAdded<'a, P0>(&self, path: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).FeedAdded)(::windows::core::Interface::as_raw(self), path.into().abi()).ok() + pub unsafe fn FeedAdded(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).FeedAdded)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FeedDeleted<'a, P0>(&self, path: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).FeedDeleted)(::windows::core::Interface::as_raw(self), path.into().abi()).ok() + pub unsafe fn FeedDeleted(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).FeedDeleted)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FeedRenamed<'a, P0, P1>(&self, path: P0, oldpath: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).FeedRenamed)(::windows::core::Interface::as_raw(self), path.into().abi(), oldpath.into().abi()).ok() + pub unsafe fn FeedRenamed(&self, path: &::windows::core::BSTR, oldpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).FeedRenamed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), ::core::mem::transmute_copy(oldpath)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FeedUrlChanged<'a, P0>(&self, path: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).FeedUrlChanged)(::windows::core::Interface::as_raw(self), path.into().abi()).ok() + pub unsafe fn FeedUrlChanged(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).FeedUrlChanged)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FeedMovedFrom<'a, P0, P1>(&self, path: P0, oldpath: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).FeedMovedFrom)(::windows::core::Interface::as_raw(self), path.into().abi(), oldpath.into().abi()).ok() + pub unsafe fn FeedMovedFrom(&self, path: &::windows::core::BSTR, oldpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).FeedMovedFrom)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), ::core::mem::transmute_copy(oldpath)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FeedMovedTo<'a, P0, P1>(&self, path: P0, oldpath: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).FeedMovedTo)(::windows::core::Interface::as_raw(self), path.into().abi(), oldpath.into().abi()).ok() + pub unsafe fn FeedMovedTo(&self, path: &::windows::core::BSTR, oldpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).FeedMovedTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), ::core::mem::transmute_copy(oldpath)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FeedDownloading<'a, P0>(&self, path: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).FeedDownloading)(::windows::core::Interface::as_raw(self), path.into().abi()).ok() + pub unsafe fn FeedDownloading(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).FeedDownloading)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FeedDownloadCompleted<'a, P0>(&self, path: P0, error: FEEDS_DOWNLOAD_ERROR) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).FeedDownloadCompleted)(::windows::core::Interface::as_raw(self), path.into().abi(), error).ok() + pub unsafe fn FeedDownloadCompleted(&self, path: &::windows::core::BSTR, error: FEEDS_DOWNLOAD_ERROR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).FeedDownloadCompleted)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), error).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FeedItemCountChanged<'a, P0>(&self, path: P0, itemcounttype: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).FeedItemCountChanged)(::windows::core::Interface::as_raw(self), path.into().abi(), itemcounttype).ok() + pub unsafe fn FeedItemCountChanged(&self, path: &::windows::core::BSTR, itemcounttype: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).FeedItemCountChanged)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), itemcounttype).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1533,143 +1139,84 @@ impl ::core::clone::Clone for IFeedFolderEvents { Self(self.0.clone()) } } -#[cfg(feature = "Win32_System_Com")] -impl ::core::cmp::PartialEq for IFeedFolderEvents { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -#[cfg(feature = "Win32_System_Com")] -impl ::core::cmp::Eq for IFeedFolderEvents {} -#[cfg(feature = "Win32_System_Com")] -impl ::core::fmt::Debug for IFeedFolderEvents { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFeedFolderEvents").field(&self.0).finish() - } -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows::core::Interface for IFeedFolderEvents { - type Vtable = IFeedFolderEvents_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x20a59fa6_a844_4630_9e98_175f70b4d55b); -} -#[cfg(feature = "Win32_System_Com")] -#[repr(C)] -#[doc(hidden)] -pub struct IFeedFolderEvents_Vtbl { - pub base__: super::super::System::Com::IDispatch_Vtbl, - pub Error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub FolderAdded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FolderAdded: usize, - #[cfg(feature = "Win32_Foundation")] - pub FolderDeleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FolderDeleted: usize, - #[cfg(feature = "Win32_Foundation")] - pub FolderRenamed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, oldpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FolderRenamed: usize, - #[cfg(feature = "Win32_Foundation")] - pub FolderMovedFrom: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, oldpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FolderMovedFrom: usize, - #[cfg(feature = "Win32_Foundation")] - pub FolderMovedTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, oldpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FolderMovedTo: usize, - #[cfg(feature = "Win32_Foundation")] - pub FolderItemCountChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, itemcounttype: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FolderItemCountChanged: usize, - #[cfg(feature = "Win32_Foundation")] - pub FeedAdded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FeedAdded: usize, - #[cfg(feature = "Win32_Foundation")] - pub FeedDeleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FeedDeleted: usize, - #[cfg(feature = "Win32_Foundation")] - pub FeedRenamed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, oldpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FeedRenamed: usize, - #[cfg(feature = "Win32_Foundation")] - pub FeedUrlChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FeedUrlChanged: usize, - #[cfg(feature = "Win32_Foundation")] - pub FeedMovedFrom: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, oldpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FeedMovedFrom: usize, - #[cfg(feature = "Win32_Foundation")] - pub FeedMovedTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, oldpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FeedMovedTo: usize, - #[cfg(feature = "Win32_Foundation")] - pub FeedDownloading: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FeedDownloading: usize, - #[cfg(feature = "Win32_Foundation")] - pub FeedDownloadCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, error: FEEDS_DOWNLOAD_ERROR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FeedDownloadCompleted: usize, - #[cfg(feature = "Win32_Foundation")] - pub FeedItemCountChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, itemcounttype: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FeedItemCountChanged: usize, -} +#[cfg(feature = "Win32_System_Com")] +impl ::core::cmp::PartialEq for IFeedFolderEvents { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } +} +#[cfg(feature = "Win32_System_Com")] +impl ::core::cmp::Eq for IFeedFolderEvents {} +#[cfg(feature = "Win32_System_Com")] +impl ::core::fmt::Debug for IFeedFolderEvents { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFeedFolderEvents").field(&self.0).finish() + } +} +#[cfg(feature = "Win32_System_Com")] +unsafe impl ::windows::core::Interface for IFeedFolderEvents { + type Vtable = IFeedFolderEvents_Vtbl; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x20a59fa6_a844_4630_9e98_175f70b4d55b); +} +#[cfg(feature = "Win32_System_Com")] +#[repr(C)] +#[doc(hidden)] +pub struct IFeedFolderEvents_Vtbl { + pub base__: super::super::System::Com::IDispatch_Vtbl, + pub Error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub FolderAdded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FolderDeleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FolderRenamed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, oldpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FolderMovedFrom: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, oldpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FolderMovedTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, oldpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FolderItemCountChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, itemcounttype: i32) -> ::windows::core::HRESULT, + pub FeedAdded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FeedDeleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FeedRenamed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, oldpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FeedUrlChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FeedMovedFrom: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, oldpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FeedMovedTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, oldpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FeedDownloading: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FeedDownloadCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, error: FEEDS_DOWNLOAD_ERROR) -> ::windows::core::HRESULT, + pub FeedItemCountChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, itemcounttype: i32) -> ::windows::core::HRESULT, +} #[doc = "*Required features: `\"Win32_Media_MediaPlayer\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] #[repr(transparent)] pub struct IFeedItem(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IFeedItem { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Xml(&self, includeflags: FEEDS_XML_INCLUDE_FLAGS) -> ::windows::core::Result { + pub unsafe fn Xml(&self, includeflags: FEEDS_XML_INCLUDE_FLAGS) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Xml)(::windows::core::Interface::as_raw(self), includeflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Xml)(::windows::core::Interface::as_raw(self), includeflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Title(&self) -> ::windows::core::Result { + pub unsafe fn Title(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Link(&self) -> ::windows::core::Result { + pub unsafe fn Link(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Link)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Link)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Guid(&self) -> ::windows::core::Result { + pub unsafe fn Guid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Guid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Guid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn PubDate(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).PubDate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Comments(&self) -> ::windows::core::Result { + pub unsafe fn Comments(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Comments)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Comments)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Author(&self) -> ::windows::core::Result { + pub unsafe fn Author(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Author)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Author)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1697,11 +1244,9 @@ impl IFeedItem { pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Delete)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DownloadUrl(&self) -> ::windows::core::Result { + pub unsafe fn DownloadUrl(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DownloadUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DownloadUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn LastDownloadTime(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1778,35 +1323,14 @@ unsafe impl ::windows::core::Interface for IFeedItem { #[doc(hidden)] pub struct IFeedItem_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Xml: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, includeflags: FEEDS_XML_INCLUDE_FLAGS, xml: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Xml: usize, - #[cfg(feature = "Win32_Foundation")] - pub Title: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, title: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Title: usize, - #[cfg(feature = "Win32_Foundation")] - pub Link: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, linkurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Link: usize, - #[cfg(feature = "Win32_Foundation")] - pub Guid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, itemguid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Guid: usize, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, + pub Xml: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, includeflags: FEEDS_XML_INCLUDE_FLAGS, xml: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Title: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, title: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Link: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, linkurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Guid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, itemguid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub PubDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pubdate: *mut f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Comments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, comments: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Comments: usize, - #[cfg(feature = "Win32_Foundation")] - pub Author: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, author: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Author: usize, + pub Comments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, comments: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Author: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, author: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Enclosure: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, disp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -1819,10 +1343,7 @@ pub struct IFeedItem_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Parent: usize, pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub DownloadUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, itemurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DownloadUrl: usize, + pub DownloadUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, itemurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub LastDownloadTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lastdownload: *mut f64) -> ::windows::core::HRESULT, pub Modified: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, modified: *mut f64) -> ::windows::core::HRESULT, } @@ -1832,51 +1353,37 @@ pub struct IFeedItem_Vtbl { pub struct IFeedItem2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IFeedItem2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Xml(&self, includeflags: FEEDS_XML_INCLUDE_FLAGS) -> ::windows::core::Result { + pub unsafe fn Xml(&self, includeflags: FEEDS_XML_INCLUDE_FLAGS) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Xml)(::windows::core::Interface::as_raw(self), includeflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Xml)(::windows::core::Interface::as_raw(self), includeflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Title(&self) -> ::windows::core::Result { + pub unsafe fn Title(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Link(&self) -> ::windows::core::Result { + pub unsafe fn Link(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Link)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Link)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Guid(&self) -> ::windows::core::Result { + pub unsafe fn Guid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Guid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Guid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn PubDate(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.PubDate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Comments(&self) -> ::windows::core::Result { + pub unsafe fn Comments(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Comments)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Comments)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Author(&self) -> ::windows::core::Result { + pub unsafe fn Author(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Author)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Author)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1904,11 +1411,9 @@ impl IFeedItem2 { pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Delete)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DownloadUrl(&self) -> ::windows::core::Result { + pub unsafe fn DownloadUrl(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.DownloadUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.DownloadUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn LastDownloadTime(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2120,75 +1625,41 @@ impl IFeedsManager { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).RootFolder)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsSubscribed<'a, P0>(&self, feedurl: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsSubscribed(&self, feedurl: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).IsSubscribed)(::windows::core::Interface::as_raw(self), feedurl.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).IsSubscribed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(feedurl), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExistsFeed<'a, P0>(&self, feedpath: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn ExistsFeed(&self, feedpath: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ExistsFeed)(::windows::core::Interface::as_raw(self), feedpath.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ExistsFeed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(feedpath), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetFeed<'a, P0>(&self, feedpath: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetFeed(&self, feedpath: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetFeed)(::windows::core::Interface::as_raw(self), feedpath.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetFeed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(feedpath), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetFeedByUrl<'a, P0>(&self, feedurl: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetFeedByUrl(&self, feedurl: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetFeedByUrl)(::windows::core::Interface::as_raw(self), feedurl.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetFeedByUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(feedurl), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExistsFolder<'a, P0>(&self, folderpath: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn ExistsFolder(&self, folderpath: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ExistsFolder)(::windows::core::Interface::as_raw(self), folderpath.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ExistsFolder)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(folderpath), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetFolder<'a, P0>(&self, folderpath: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetFolder(&self, folderpath: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetFolder)(::windows::core::Interface::as_raw(self), folderpath.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetFolder)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(folderpath), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeleteFeed<'a, P0>(&self, feedpath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DeleteFeed)(::windows::core::Interface::as_raw(self), feedpath.into().abi()).ok() + pub unsafe fn DeleteFeed(&self, feedpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DeleteFeed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(feedpath)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeleteFolder<'a, P0>(&self, folderpath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DeleteFolder)(::windows::core::Interface::as_raw(self), folderpath.into().abi()).ok() + pub unsafe fn DeleteFolder(&self, folderpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DeleteFolder)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(folderpath)).ok() } pub unsafe fn BackgroundSync(&self, action: FEEDS_BACKGROUNDSYNC_ACTION) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).BackgroundSync)(::windows::core::Interface::as_raw(self), action).ok() @@ -2207,14 +1678,9 @@ impl IFeedsManager { pub unsafe fn AsyncSyncAll(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).AsyncSyncAll)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Normalize<'a, P0>(&self, feedxmlin: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn Normalize(&self, feedxmlin: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Normalize)(::windows::core::Interface::as_raw(self), feedxmlin.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Normalize)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(feedxmlin), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn ItemCountLimit(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2291,65 +1757,40 @@ pub struct IFeedsManager_Vtbl { pub RootFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, disp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] RootFolder: usize, - #[cfg(feature = "Win32_Foundation")] - pub IsSubscribed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feedurl: ::core::mem::ManuallyDrop, subscribed: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - IsSubscribed: usize, - #[cfg(feature = "Win32_Foundation")] - pub ExistsFeed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feedpath: ::core::mem::ManuallyDrop, exists: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ExistsFeed: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetFeed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feedpath: ::core::mem::ManuallyDrop, disp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub IsSubscribed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feedurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, subscribed: *mut i16) -> ::windows::core::HRESULT, + pub ExistsFeed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feedpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, exists: *mut i16) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub GetFeed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feedpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, disp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetFeed: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetFeedByUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feedurl: ::core::mem::ManuallyDrop, disp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetFeedByUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feedurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, disp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetFeedByUrl: usize, - #[cfg(feature = "Win32_Foundation")] - pub ExistsFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, folderpath: ::core::mem::ManuallyDrop, exists: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ExistsFolder: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, folderpath: ::core::mem::ManuallyDrop, disp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub ExistsFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, folderpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, exists: *mut i16) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub GetFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, folderpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, disp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetFolder: usize, - #[cfg(feature = "Win32_Foundation")] - pub DeleteFeed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feedpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeleteFeed: usize, - #[cfg(feature = "Win32_Foundation")] - pub DeleteFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, folderpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeleteFolder: usize, + pub DeleteFeed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feedpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DeleteFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, folderpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub BackgroundSync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, action: FEEDS_BACKGROUNDSYNC_ACTION) -> ::windows::core::HRESULT, pub BackgroundSyncStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, status: *mut FEEDS_BACKGROUNDSYNC_STATUS) -> ::windows::core::HRESULT, pub DefaultInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, minutes: *mut i32) -> ::windows::core::HRESULT, pub SetDefaultInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, minutes: i32) -> ::windows::core::HRESULT, pub AsyncSyncAll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Normalize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feedxmlin: ::core::mem::ManuallyDrop, feedxmlout: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Normalize: usize, + pub Normalize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feedxmlin: ::core::mem::ManuallyDrop<::windows::core::BSTR>, feedxmlout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ItemCountLimit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, itemcountlimit: *mut i32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_MediaPlayer\"`*"] #[repr(transparent)] pub struct IWMPAudioRenderConfig(::windows::core::IUnknown); impl IWMPAudioRenderConfig { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn audioOutputDevice(&self, pbstroutputdevice: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn audioOutputDevice(&self, pbstroutputdevice: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).audioOutputDevice)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstroutputdevice)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetaudioOutputDevice<'a, P0>(&self, bstroutputdevice: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetaudioOutputDevice)(::windows::core::Interface::as_raw(self), bstroutputdevice.into().abi()).ok() + pub unsafe fn SetaudioOutputDevice(&self, bstroutputdevice: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetaudioOutputDevice)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstroutputdevice)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -2391,14 +1832,8 @@ unsafe impl ::windows::core::Interface for IWMPAudioRenderConfig { #[doc(hidden)] pub struct IWMPAudioRenderConfig_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub audioOutputDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstroutputdevice: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - audioOutputDevice: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetaudioOutputDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstroutputdevice: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetaudioOutputDevice: usize, + pub audioOutputDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstroutputdevice: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetaudioOutputDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstroutputdevice: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_MediaPlayer\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2406,9 +1841,7 @@ pub struct IWMPAudioRenderConfig_Vtbl { pub struct IWMPCdrom(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWMPCdrom { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn driveSpecifier(&self, pbstrdrive: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn driveSpecifier(&self, pbstrdrive: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).driveSpecifier)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrdrive)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] @@ -2487,10 +1920,7 @@ unsafe impl ::windows::core::Interface for IWMPCdrom { #[doc(hidden)] pub struct IWMPCdrom_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub driveSpecifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdrive: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - driveSpecifier: usize, + pub driveSpecifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdrive: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub playlist: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppplaylist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -2501,34 +1931,17 @@ pub struct IWMPCdrom_Vtbl { #[repr(transparent)] pub struct IWMPCdromBurn(::windows::core::IUnknown); impl IWMPCdromBurn { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn isAvailable<'a, P0>(&self, bstritem: P0, pisavailable: &mut i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).isAvailable)(::windows::core::Interface::as_raw(self), bstritem.into().abi(), ::core::mem::transmute(pisavailable)).ok() + pub unsafe fn isAvailable(&self, bstritem: &::windows::core::BSTR, pisavailable: &mut i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).isAvailable)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstritem), ::core::mem::transmute(pisavailable)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getItemInfo<'a, P0>(&self, bstritem: P0, pbstrval: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).getItemInfo)(::windows::core::Interface::as_raw(self), bstritem.into().abi(), ::core::mem::transmute(pbstrval)).ok() + pub unsafe fn getItemInfo(&self, bstritem: &::windows::core::BSTR, pbstrval: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).getItemInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstritem), ::core::mem::transmute(pbstrval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn label(&self, pbstrlabel: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn label(&self, pbstrlabel: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).label)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrlabel)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Setlabel<'a, P0>(&self, bstrlabel: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Setlabel)(::windows::core::Interface::as_raw(self), bstrlabel.into().abi()).ok() + pub unsafe fn Setlabel(&self, bstrlabel: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Setlabel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrlabel)).ok() } pub unsafe fn burnFormat(&self, pwmpbf: &mut WMPBurnFormat) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).burnFormat)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pwmpbf)).ok() @@ -2608,22 +2021,10 @@ unsafe impl ::windows::core::Interface for IWMPCdromBurn { #[doc(hidden)] pub struct IWMPCdromBurn_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub isAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritem: ::core::mem::ManuallyDrop, pisavailable: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - isAvailable: usize, - #[cfg(feature = "Win32_Foundation")] - pub getItemInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritem: ::core::mem::ManuallyDrop, pbstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getItemInfo: usize, - #[cfg(feature = "Win32_Foundation")] - pub label: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrlabel: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - label: usize, - #[cfg(feature = "Win32_Foundation")] - pub Setlabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrlabel: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Setlabel: usize, + pub isAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritem: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pisavailable: *mut i16) -> ::windows::core::HRESULT, + pub getItemInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritem: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub label: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrlabel: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Setlabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrlabel: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub burnFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwmpbf: *mut WMPBurnFormat) -> ::windows::core::HRESULT, pub SetburnFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wmpbf: WMPBurnFormat) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] @@ -2656,14 +2057,11 @@ impl IWMPCdromCollection { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).item)(::windows::core::Interface::as_raw(self), lindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn getByDriveSpecifier<'a, P0>(&self, bstrdrivespecifier: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn getByDriveSpecifier(&self, bstrdrivespecifier: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getByDriveSpecifier)(::windows::core::Interface::as_raw(self), bstrdrivespecifier.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getByDriveSpecifier)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdrivespecifier), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -2737,9 +2135,9 @@ pub struct IWMPCdromCollection_Vtbl { pub item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lindex: i32, ppitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] item: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub getByDriveSpecifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdrivespecifier: ::core::mem::ManuallyDrop, ppcdrom: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub getByDriveSpecifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdrivespecifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppcdrom: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] getByDriveSpecifier: usize, } #[doc = "*Required features: `\"Win32_Media_MediaPlayer\"`*"] @@ -2809,57 +2207,29 @@ pub struct IWMPCdromRip_Vtbl { pub struct IWMPClosedCaption(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWMPClosedCaption { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SAMIStyle(&self, pbstrsamistyle: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn SAMIStyle(&self, pbstrsamistyle: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SAMIStyle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrsamistyle)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSAMIStyle<'a, P0>(&self, bstrsamistyle: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSAMIStyle)(::windows::core::Interface::as_raw(self), bstrsamistyle.into().abi()).ok() + pub unsafe fn SetSAMIStyle(&self, bstrsamistyle: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSAMIStyle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsamistyle)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SAMILang(&self, pbstrsamilang: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn SAMILang(&self, pbstrsamilang: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SAMILang)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrsamilang)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSAMILang<'a, P0>(&self, bstrsamilang: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSAMILang)(::windows::core::Interface::as_raw(self), bstrsamilang.into().abi()).ok() + pub unsafe fn SetSAMILang(&self, bstrsamilang: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSAMILang)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsamilang)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SAMIFileName(&self, pbstrsamifilename: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn SAMIFileName(&self, pbstrsamifilename: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SAMIFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrsamifilename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSAMIFileName<'a, P0>(&self, bstrsamifilename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSAMIFileName)(::windows::core::Interface::as_raw(self), bstrsamifilename.into().abi()).ok() + pub unsafe fn SetSAMIFileName(&self, bstrsamifilename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSAMIFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsamifilename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn captioningId(&self, pbstrcaptioningid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn captioningId(&self, pbstrcaptioningid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).captioningId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrcaptioningid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetcaptioningId<'a, P0>(&self, bstrcaptioningid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetcaptioningId)(::windows::core::Interface::as_raw(self), bstrcaptioningid.into().abi()).ok() + pub unsafe fn SetcaptioningId(&self, bstrcaptioningid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetcaptioningId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcaptioningid)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2928,38 +2298,14 @@ unsafe impl ::windows::core::Interface for IWMPClosedCaption { #[doc(hidden)] pub struct IWMPClosedCaption_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub SAMIStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsamistyle: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SAMIStyle: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSAMIStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsamistyle: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSAMIStyle: usize, - #[cfg(feature = "Win32_Foundation")] - pub SAMILang: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsamilang: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SAMILang: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSAMILang: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsamilang: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSAMILang: usize, - #[cfg(feature = "Win32_Foundation")] - pub SAMIFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsamifilename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SAMIFileName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSAMIFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsamifilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSAMIFileName: usize, - #[cfg(feature = "Win32_Foundation")] - pub captioningId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcaptioningid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - captioningId: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetcaptioningId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcaptioningid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetcaptioningId: usize, + pub SAMIStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsamistyle: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSAMIStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsamistyle: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SAMILang: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsamilang: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSAMILang: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsamilang: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SAMIFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsamifilename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSAMIFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsamifilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub captioningId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcaptioningid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetcaptioningId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcaptioningid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_MediaPlayer\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2967,64 +2313,34 @@ pub struct IWMPClosedCaption_Vtbl { pub struct IWMPClosedCaption2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWMPClosedCaption2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SAMIStyle(&self, pbstrsamistyle: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn SAMIStyle(&self, pbstrsamistyle: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SAMIStyle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrsamistyle)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSAMIStyle<'a, P0>(&self, bstrsamistyle: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetSAMIStyle)(::windows::core::Interface::as_raw(self), bstrsamistyle.into().abi()).ok() + pub unsafe fn SetSAMIStyle(&self, bstrsamistyle: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetSAMIStyle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsamistyle)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SAMILang(&self, pbstrsamilang: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn SAMILang(&self, pbstrsamilang: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SAMILang)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrsamilang)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSAMILang<'a, P0>(&self, bstrsamilang: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetSAMILang)(::windows::core::Interface::as_raw(self), bstrsamilang.into().abi()).ok() + pub unsafe fn SetSAMILang(&self, bstrsamilang: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetSAMILang)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsamilang)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SAMIFileName(&self, pbstrsamifilename: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn SAMIFileName(&self, pbstrsamifilename: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SAMIFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrsamifilename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSAMIFileName<'a, P0>(&self, bstrsamifilename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetSAMIFileName)(::windows::core::Interface::as_raw(self), bstrsamifilename.into().abi()).ok() + pub unsafe fn SetSAMIFileName(&self, bstrsamifilename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetSAMIFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsamifilename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn captioningId(&self, pbstrcaptioningid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn captioningId(&self, pbstrcaptioningid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.captioningId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrcaptioningid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetcaptioningId<'a, P0>(&self, bstrcaptioningid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetcaptioningId)(::windows::core::Interface::as_raw(self), bstrcaptioningid.into().abi()).ok() - } + pub unsafe fn SetcaptioningId(&self, bstrcaptioningid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetcaptioningId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcaptioningid)).ok() + } pub unsafe fn SAMILangCount(&self, plcount: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SAMILangCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(plcount)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getSAMILangName(&self, nindex: i32, pbstrname: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn getSAMILangName(&self, nindex: i32, pbstrname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).getSAMILangName)(::windows::core::Interface::as_raw(self), nindex, ::core::mem::transmute(pbstrname)).ok() } pub unsafe fn getSAMILangID(&self, nindex: i32, pllangid: &mut i32) -> ::windows::core::Result<()> { @@ -3033,9 +2349,7 @@ impl IWMPClosedCaption2 { pub unsafe fn SAMIStyleCount(&self, plcount: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SAMIStyleCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(plcount)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getSAMIStyleName(&self, nindex: i32, pbstrname: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn getSAMIStyleName(&self, nindex: i32, pbstrname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).getSAMIStyleName)(::windows::core::Interface::as_raw(self), nindex, ::core::mem::transmute(pbstrname)).ok() } } @@ -3124,16 +2438,10 @@ unsafe impl ::windows::core::Interface for IWMPClosedCaption2 { pub struct IWMPClosedCaption2_Vtbl { pub base__: IWMPClosedCaption_Vtbl, pub SAMILangCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub getSAMILangName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: i32, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getSAMILangName: usize, + pub getSAMILangName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: i32, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub getSAMILangID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: i32, pllangid: *mut i32) -> ::windows::core::HRESULT, pub SAMIStyleCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub getSAMIStyleName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: i32, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getSAMIStyleName: usize, + pub getSAMIStyleName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: i32, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_MediaPlayer\"`*"] #[repr(transparent)] @@ -3143,27 +2451,21 @@ impl IWMPContentContainer { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPrice(&self) -> ::windows::core::Result { + pub unsafe fn GetPrice(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetPrice)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetPrice)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetType(&self) -> ::windows::core::Result { + pub unsafe fn GetType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetContentCount(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetContentCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetContentPrice(&self, idxcontent: u32) -> ::windows::core::Result { + pub unsafe fn GetContentPrice(&self, idxcontent: u32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetContentPrice)(::windows::core::Interface::as_raw(self), idxcontent, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetContentPrice)(::windows::core::Interface::as_raw(self), idxcontent, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetContentID(&self, idxcontent: u32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3210,19 +2512,10 @@ unsafe impl ::windows::core::Interface for IWMPContentContainer { pub struct IWMPContentContainer_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub GetID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontentid: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetPrice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprice: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPrice: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetType: usize, + pub GetPrice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprice: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetContentCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pccontent: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetContentPrice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, idxcontent: u32, pbstrprice: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetContentPrice: usize, + pub GetContentPrice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, idxcontent: u32, pbstrprice: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetContentID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, idxcontent: u32, pcontentid: *mut u32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_MediaPlayer\"`*"] @@ -3302,43 +2595,27 @@ impl IWMPContentPartner { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetItemInfo<'a, P0>(&self, bstrinfoname: P0, pcontext: &super::super::System::Com::VARIANT) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetItemInfo(&self, bstrinfoname: &::windows::core::BSTR, pcontext: &super::super::System::Com::VARIANT) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetItemInfo)(::windows::core::Interface::as_raw(self), bstrinfoname.into().abi(), ::core::mem::transmute(pcontext), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetItemInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrinfoname), ::core::mem::transmute(pcontext), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetContentPartnerInfo<'a, P0>(&self, bstrinfoname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetContentPartnerInfo(&self, bstrinfoname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetContentPartnerInfo)(::windows::core::Interface::as_raw(self), bstrinfoname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetContentPartnerInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrinfoname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetCommands<'a, P0, P1>(&self, location: P0, plocationcontext: &super::super::System::Com::VARIANT, itemlocation: P1, prgitemids: &[u32], pcitemids: &mut u32, pprgitems: *mut *mut WMPContextMenuInfo) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetCommands)(::windows::core::Interface::as_raw(self), location.into().abi(), ::core::mem::transmute(plocationcontext), itemlocation.into().abi(), prgitemids.len() as _, ::core::mem::transmute(prgitemids.as_ptr()), ::core::mem::transmute(pcitemids), ::core::mem::transmute(pprgitems)).ok() + pub unsafe fn GetCommands(&self, location: &::windows::core::BSTR, plocationcontext: &super::super::System::Com::VARIANT, itemlocation: &::windows::core::BSTR, prgitemids: &[u32], pcitemids: &mut u32, pprgitems: *mut *mut WMPContextMenuInfo) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetCommands)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(location), ::core::mem::transmute(plocationcontext), ::core::mem::transmute_copy(itemlocation), prgitemids.len() as _, ::core::mem::transmute(prgitemids.as_ptr()), ::core::mem::transmute(pcitemids), ::core::mem::transmute(pprgitems)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn InvokeCommand<'a, P0, P1>(&self, dwcommandid: u32, location: P0, plocationcontext: &super::super::System::Com::VARIANT, itemlocation: P1, rgitemids: &[u32]) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InvokeCommand)(::windows::core::Interface::as_raw(self), dwcommandid, location.into().abi(), ::core::mem::transmute(plocationcontext), itemlocation.into().abi(), rgitemids.len() as _, ::core::mem::transmute(rgitemids.as_ptr())).ok() + pub unsafe fn InvokeCommand(&self, dwcommandid: u32, location: &::windows::core::BSTR, plocationcontext: &super::super::System::Com::VARIANT, itemlocation: &::windows::core::BSTR, rgitemids: &[u32]) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InvokeCommand)(::windows::core::Interface::as_raw(self), dwcommandid, ::core::mem::transmute_copy(location), ::core::mem::transmute(plocationcontext), ::core::mem::transmute_copy(itemlocation), rgitemids.len() as _, ::core::mem::transmute(rgitemids.as_ptr())).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CanBuySilent<'a, P0>(&self, pinfo: P0, pbstrtotalprice: &mut super::super::Foundation::BSTR, psilentok: &mut i16) -> ::windows::core::Result<()> + pub unsafe fn CanBuySilent<'a, P0>(&self, pinfo: P0, pbstrtotalprice: &mut ::windows::core::BSTR, psilentok: &mut i16) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IWMPContentContainerList>>, { @@ -3352,9 +2629,9 @@ impl IWMPContentPartner { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetStreamingURL(&self, st: WMPStreamingType, pstreamcontext: &super::super::System::Com::VARIANT) -> ::windows::core::Result { + pub unsafe fn GetStreamingURL(&self, st: WMPStreamingType, pstreamcontext: &super::super::System::Com::VARIANT) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetStreamingURL)(::windows::core::Interface::as_raw(self), st, ::core::mem::transmute(pstreamcontext), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetStreamingURL)(::windows::core::Interface::as_raw(self), st, ::core::mem::transmute(pstreamcontext), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Download<'a, P0>(&self, pinfo: P0, cookie: u32) -> ::windows::core::Result<()> where @@ -3362,56 +2639,31 @@ impl IWMPContentPartner { { (::windows::core::Interface::vtable(self).Download)(::windows::core::Interface::as_raw(self), pinfo.into().abi(), cookie).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DownloadTrackComplete<'a, P0>(&self, hrresult: ::windows::core::HRESULT, contentid: u32, downloadtrackparam: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DownloadTrackComplete)(::windows::core::Interface::as_raw(self), hrresult, contentid, downloadtrackparam.into().abi()).ok() + pub unsafe fn DownloadTrackComplete(&self, hrresult: ::windows::core::HRESULT, contentid: u32, downloadtrackparam: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DownloadTrackComplete)(::windows::core::Interface::as_raw(self), hrresult, contentid, ::core::mem::transmute_copy(downloadtrackparam)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn RefreshLicense<'a, P0, P1>(&self, dwcookie: u32, flocal: i16, bstrurl: P0, r#type: WMPStreamingType, contentid: u32, bstrrefreshreason: P1, preasoncontext: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).RefreshLicense)(::windows::core::Interface::as_raw(self), dwcookie, flocal, bstrurl.into().abi(), r#type, contentid, bstrrefreshreason.into().abi(), ::core::mem::transmute(preasoncontext)).ok() + pub unsafe fn RefreshLicense(&self, dwcookie: u32, flocal: i16, bstrurl: &::windows::core::BSTR, r#type: WMPStreamingType, contentid: u32, bstrrefreshreason: &::windows::core::BSTR, preasoncontext: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).RefreshLicense)(::windows::core::Interface::as_raw(self), dwcookie, flocal, ::core::mem::transmute_copy(bstrurl), r#type, contentid, ::core::mem::transmute_copy(bstrrefreshreason), ::core::mem::transmute(preasoncontext)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetCatalogURL(&self, dwcatalogversion: u32, dwcatalogschemaversion: u32, cataloglcid: u32, pdwnewcatalogversion: &mut u32, pbstrcatalogurl: &mut super::super::Foundation::BSTR, pexpirationdate: &mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + pub unsafe fn GetCatalogURL(&self, dwcatalogversion: u32, dwcatalogschemaversion: u32, cataloglcid: u32, pdwnewcatalogversion: &mut u32, pbstrcatalogurl: &mut ::windows::core::BSTR, pexpirationdate: &mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetCatalogURL)(::windows::core::Interface::as_raw(self), dwcatalogversion, dwcatalogschemaversion, cataloglcid, ::core::mem::transmute(pdwnewcatalogversion), ::core::mem::transmute(pbstrcatalogurl), ::core::mem::transmute(pexpirationdate)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetTemplate<'a, P0, P1, P2, P3>(&self, task: WMPTaskType, location: P0, pcontext: &super::super::System::Com::VARIANT, clicklocation: P1, pclickcontext: &super::super::System::Com::VARIANT, bstrfilter: P2, bstrviewparams: P3, pbstrtemplateurl: &mut super::super::Foundation::BSTR, ptemplatesize: &mut WMPTemplateSize) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetTemplate)(::windows::core::Interface::as_raw(self), task, location.into().abi(), ::core::mem::transmute(pcontext), clicklocation.into().abi(), ::core::mem::transmute(pclickcontext), bstrfilter.into().abi(), bstrviewparams.into().abi(), ::core::mem::transmute(pbstrtemplateurl), ::core::mem::transmute(ptemplatesize)).ok() + pub unsafe fn GetTemplate(&self, task: WMPTaskType, location: &::windows::core::BSTR, pcontext: &super::super::System::Com::VARIANT, clicklocation: &::windows::core::BSTR, pclickcontext: &super::super::System::Com::VARIANT, bstrfilter: &::windows::core::BSTR, bstrviewparams: &::windows::core::BSTR, pbstrtemplateurl: &mut ::windows::core::BSTR, ptemplatesize: &mut WMPTemplateSize) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetTemplate)(::windows::core::Interface::as_raw(self), task, ::core::mem::transmute_copy(location), ::core::mem::transmute(pcontext), ::core::mem::transmute_copy(clicklocation), ::core::mem::transmute(pclickcontext), ::core::mem::transmute_copy(bstrfilter), ::core::mem::transmute_copy(bstrviewparams), ::core::mem::transmute(pbstrtemplateurl), ::core::mem::transmute(ptemplatesize)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UpdateDevice<'a, P0>(&self, bstrdevicename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).UpdateDevice)(::windows::core::Interface::as_raw(self), bstrdevicename.into().abi()).ok() + pub unsafe fn UpdateDevice(&self, bstrdevicename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).UpdateDevice)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdevicename)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetListContents<'a, P0, P1, P2>(&self, location: P0, pcontext: &super::super::System::Com::VARIANT, bstrlisttype: P1, bstrparams: P2, dwlistcookie: u32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetListContents)(::windows::core::Interface::as_raw(self), location.into().abi(), ::core::mem::transmute(pcontext), bstrlisttype.into().abi(), bstrparams.into().abi(), dwlistcookie).ok() + pub unsafe fn GetListContents(&self, location: &::windows::core::BSTR, pcontext: &super::super::System::Com::VARIANT, bstrlisttype: &::windows::core::BSTR, bstrparams: &::windows::core::BSTR, dwlistcookie: u32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetListContents)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(location), ::core::mem::transmute(pcontext), ::core::mem::transmute_copy(bstrlisttype), ::core::mem::transmute_copy(bstrparams), dwlistcookie).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3426,23 +2678,11 @@ impl IWMPContentPartner { pub unsafe fn Logout(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Logout)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SendMessage<'a, P0, P1>(&self, bstrmsg: P0, bstrparam: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SendMessage)(::windows::core::Interface::as_raw(self), bstrmsg.into().abi(), bstrparam.into().abi()).ok() + pub unsafe fn SendMessage(&self, bstrmsg: &::windows::core::BSTR, bstrparam: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SendMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrmsg), ::core::mem::transmute_copy(bstrparam)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StationEvent<'a, P0, P1>(&self, bstrstationeventtype: P0, stationid: u32, playlistindex: u32, trackid: u32, trackdata: P1, dwsecondsplayed: u32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).StationEvent)(::windows::core::Interface::as_raw(self), bstrstationeventtype.into().abi(), stationid, playlistindex, trackid, trackdata.into().abi(), dwsecondsplayed).ok() + pub unsafe fn StationEvent(&self, bstrstationeventtype: &::windows::core::BSTR, stationid: u32, playlistindex: u32, trackid: u32, trackdata: &::windows::core::BSTR, dwsecondsplayed: u32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).StationEvent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrstationeventtype), stationid, playlistindex, trackid, ::core::mem::transmute_copy(trackdata), dwsecondsplayed).ok() } pub unsafe fn CompareContainerListPrices<'a, P0, P1>(&self, plistbase: P0, plistcompare: P1) -> ::windows::core::Result where @@ -3454,11 +2694,8 @@ impl IWMPContentPartner { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn VerifyPermission<'a, P0>(&self, bstrpermission: P0, pcontext: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).VerifyPermission)(::windows::core::Interface::as_raw(self), bstrpermission.into().abi(), ::core::mem::transmute(pcontext)).ok() + pub unsafe fn VerifyPermission(&self, bstrpermission: &::windows::core::BSTR, pcontext: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).VerifyPermission)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpermission), ::core::mem::transmute(pcontext)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -3506,53 +2743,44 @@ pub struct IWMPContentPartner_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Notify: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetItemInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinfoname: ::core::mem::ManuallyDrop, pcontext: *const super::super::System::Com::VARIANT, pdata: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetItemInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinfoname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcontext: *const super::super::System::Com::VARIANT, pdata: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetItemInfo: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetContentPartnerInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinfoname: ::core::mem::ManuallyDrop, pdata: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetContentPartnerInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinfoname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdata: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetContentPartnerInfo: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetCommands: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, location: ::core::mem::ManuallyDrop, plocationcontext: *const super::super::System::Com::VARIANT, itemlocation: ::core::mem::ManuallyDrop, citemids: u32, prgitemids: *const u32, pcitemids: *mut u32, pprgitems: *mut *mut WMPContextMenuInfo) -> ::windows::core::HRESULT, + pub GetCommands: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, location: ::core::mem::ManuallyDrop<::windows::core::BSTR>, plocationcontext: *const super::super::System::Com::VARIANT, itemlocation: ::core::mem::ManuallyDrop<::windows::core::BSTR>, citemids: u32, prgitemids: *const u32, pcitemids: *mut u32, pprgitems: *mut *mut WMPContextMenuInfo) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetCommands: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub InvokeCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcommandid: u32, location: ::core::mem::ManuallyDrop, plocationcontext: *const super::super::System::Com::VARIANT, itemlocation: ::core::mem::ManuallyDrop, citemids: u32, rgitemids: *const u32) -> ::windows::core::HRESULT, + pub InvokeCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcommandid: u32, location: ::core::mem::ManuallyDrop<::windows::core::BSTR>, plocationcontext: *const super::super::System::Com::VARIANT, itemlocation: ::core::mem::ManuallyDrop<::windows::core::BSTR>, citemids: u32, rgitemids: *const u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] InvokeCommand: usize, - #[cfg(feature = "Win32_Foundation")] - pub CanBuySilent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *mut ::core::ffi::c_void, pbstrtotalprice: *mut super::super::Foundation::BSTR, psilentok: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CanBuySilent: usize, + pub CanBuySilent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *mut ::core::ffi::c_void, pbstrtotalprice: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, psilentok: *mut i16) -> ::windows::core::HRESULT, pub Buy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *mut ::core::ffi::c_void, cookie: u32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetStreamingURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, st: WMPStreamingType, pstreamcontext: *const super::super::System::Com::VARIANT, pbstrurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub GetStreamingURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, st: WMPStreamingType, pstreamcontext: *const super::super::System::Com::VARIANT, pbstrurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetStreamingURL: usize, pub Download: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *mut ::core::ffi::c_void, cookie: u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub DownloadTrackComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrresult: ::windows::core::HRESULT, contentid: u32, downloadtrackparam: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DownloadTrackComplete: usize, + pub DownloadTrackComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrresult: ::windows::core::HRESULT, contentid: u32, downloadtrackparam: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub RefreshLicense: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcookie: u32, flocal: i16, bstrurl: ::core::mem::ManuallyDrop, r#type: WMPStreamingType, contentid: u32, bstrrefreshreason: ::core::mem::ManuallyDrop, preasoncontext: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub RefreshLicense: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcookie: u32, flocal: i16, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, r#type: WMPStreamingType, contentid: u32, bstrrefreshreason: ::core::mem::ManuallyDrop<::windows::core::BSTR>, preasoncontext: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] RefreshLicense: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetCatalogURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcatalogversion: u32, dwcatalogschemaversion: u32, cataloglcid: u32, pdwnewcatalogversion: *mut u32, pbstrcatalogurl: *mut super::super::Foundation::BSTR, pexpirationdate: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetCatalogURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcatalogversion: u32, dwcatalogschemaversion: u32, cataloglcid: u32, pdwnewcatalogversion: *mut u32, pbstrcatalogurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pexpirationdate: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetCatalogURL: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetTemplate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, task: WMPTaskType, location: ::core::mem::ManuallyDrop, pcontext: *const super::super::System::Com::VARIANT, clicklocation: ::core::mem::ManuallyDrop, pclickcontext: *const super::super::System::Com::VARIANT, bstrfilter: ::core::mem::ManuallyDrop, bstrviewparams: ::core::mem::ManuallyDrop, pbstrtemplateurl: *mut super::super::Foundation::BSTR, ptemplatesize: *mut WMPTemplateSize) -> ::windows::core::HRESULT, + pub GetTemplate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, task: WMPTaskType, location: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcontext: *const super::super::System::Com::VARIANT, clicklocation: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pclickcontext: *const super::super::System::Com::VARIANT, bstrfilter: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrviewparams: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrtemplateurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, ptemplatesize: *mut WMPTemplateSize) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetTemplate: usize, - #[cfg(feature = "Win32_Foundation")] - pub UpdateDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdevicename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UpdateDevice: usize, + pub UpdateDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdevicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetListContents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, location: ::core::mem::ManuallyDrop, pcontext: *const super::super::System::Com::VARIANT, bstrlisttype: ::core::mem::ManuallyDrop, bstrparams: ::core::mem::ManuallyDrop, dwlistcookie: u32) -> ::windows::core::HRESULT, + pub GetListContents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, location: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcontext: *const super::super::System::Com::VARIANT, bstrlisttype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrparams: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwlistcookie: u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetListContents: usize, #[cfg(feature = "Win32_System_Com")] @@ -3564,17 +2792,11 @@ pub struct IWMPContentPartner_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Authenticate: usize, pub Logout: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SendMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmsg: ::core::mem::ManuallyDrop, bstrparam: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SendMessage: usize, - #[cfg(feature = "Win32_Foundation")] - pub StationEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrstationeventtype: ::core::mem::ManuallyDrop, stationid: u32, playlistindex: u32, trackid: u32, trackdata: ::core::mem::ManuallyDrop, dwsecondsplayed: u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - StationEvent: usize, + pub SendMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmsg: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrparam: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub StationEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrstationeventtype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, stationid: u32, playlistindex: u32, trackid: u32, trackdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwsecondsplayed: u32) -> ::windows::core::HRESULT, pub CompareContainerListPrices: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plistbase: *mut ::core::ffi::c_void, plistcompare: *mut ::core::ffi::c_void, presult: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub VerifyPermission: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpermission: ::core::mem::ManuallyDrop, pcontext: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub VerifyPermission: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpermission: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcontext: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] VerifyPermission: usize, } @@ -3590,35 +2812,17 @@ impl IWMPContentPartnerCallback { pub unsafe fn BuyComplete(&self, hrresult: ::windows::core::HRESULT, dwbuycookie: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).BuyComplete)(::windows::core::Interface::as_raw(self), hrresult, dwbuycookie).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DownloadTrack<'a, P0, P1>(&self, cookie: u32, bstrtrackurl: P0, dwservicetrackid: u32, bstrdownloadparams: P1, hrdownload: ::windows::core::HRESULT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DownloadTrack)(::windows::core::Interface::as_raw(self), cookie, bstrtrackurl.into().abi(), dwservicetrackid, bstrdownloadparams.into().abi(), hrdownload).ok() + pub unsafe fn DownloadTrack(&self, cookie: u32, bstrtrackurl: &::windows::core::BSTR, dwservicetrackid: u32, bstrdownloadparams: &::windows::core::BSTR, hrdownload: ::windows::core::HRESULT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DownloadTrack)(::windows::core::Interface::as_raw(self), cookie, ::core::mem::transmute_copy(bstrtrackurl), dwservicetrackid, ::core::mem::transmute_copy(bstrdownloadparams), hrdownload).ok() } pub unsafe fn GetCatalogVersion(&self, pdwversion: &mut u32, pdwschemaversion: &mut u32, plcid: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetCatalogVersion)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdwversion), ::core::mem::transmute(pdwschemaversion), ::core::mem::transmute(plcid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UpdateDeviceComplete<'a, P0>(&self, bstrdevicename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).UpdateDeviceComplete)(::windows::core::Interface::as_raw(self), bstrdevicename.into().abi()).ok() + pub unsafe fn UpdateDeviceComplete(&self, bstrdevicename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).UpdateDeviceComplete)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdevicename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ChangeView<'a, P0, P1, P2>(&self, bstrtype: P0, bstrid: P1, bstrfilter: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ChangeView)(::windows::core::Interface::as_raw(self), bstrtype.into().abi(), bstrid.into().abi(), bstrfilter.into().abi()).ok() + pub unsafe fn ChangeView(&self, bstrtype: &::windows::core::BSTR, bstrid: &::windows::core::BSTR, bstrfilter: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ChangeView)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtype), ::core::mem::transmute_copy(bstrid), ::core::mem::transmute_copy(bstrfilter)).ok() } pub unsafe fn AddListContents(&self, dwlistcookie: u32, prgitems: &[u32]) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).AddListContents)(::windows::core::Interface::as_raw(self), dwlistcookie, prgitems.len() as _, ::core::mem::transmute(prgitems.as_ptr())).ok() @@ -3626,15 +2830,8 @@ impl IWMPContentPartnerCallback { pub unsafe fn ListContentsComplete(&self, dwlistcookie: u32, hrsuccess: ::windows::core::HRESULT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ListContentsComplete)(::windows::core::Interface::as_raw(self), dwlistcookie, hrsuccess).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SendMessageComplete<'a, P0, P1, P2>(&self, bstrmsg: P0, bstrparam: P1, bstrresult: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SendMessageComplete)(::windows::core::Interface::as_raw(self), bstrmsg.into().abi(), bstrparam.into().abi(), bstrresult.into().abi()).ok() + pub unsafe fn SendMessageComplete(&self, bstrmsg: &::windows::core::BSTR, bstrparam: &::windows::core::BSTR, bstrresult: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SendMessageComplete)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrmsg), ::core::mem::transmute_copy(bstrparam), ::core::mem::transmute_copy(bstrresult)).ok() } pub unsafe fn GetContentIDsInLibrary(&self, pccontentids: &mut u32, pprgids: *mut *mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetContentIDsInLibrary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pccontentids), ::core::mem::transmute(pprgids)).ok() @@ -3642,21 +2839,13 @@ impl IWMPContentPartnerCallback { pub unsafe fn RefreshLicenseComplete(&self, dwcookie: u32, contentid: u32, hrrefresh: ::windows::core::HRESULT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RefreshLicenseComplete)(::windows::core::Interface::as_raw(self), dwcookie, contentid, hrrefresh).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ShowPopup<'a, P0>(&self, lindex: i32, bstrparameters: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ShowPopup)(::windows::core::Interface::as_raw(self), lindex, bstrparameters.into().abi()).ok() + pub unsafe fn ShowPopup(&self, lindex: i32, bstrparameters: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ShowPopup)(::windows::core::Interface::as_raw(self), lindex, ::core::mem::transmute_copy(bstrparameters)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn VerifyPermissionComplete<'a, P0>(&self, bstrpermission: P0, pcontext: &super::super::System::Com::VARIANT, hrpermission: ::windows::core::HRESULT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).VerifyPermissionComplete)(::windows::core::Interface::as_raw(self), bstrpermission.into().abi(), ::core::mem::transmute(pcontext), hrpermission).ok() + pub unsafe fn VerifyPermissionComplete(&self, bstrpermission: &::windows::core::BSTR, pcontext: &super::super::System::Com::VARIANT, hrpermission: ::windows::core::HRESULT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).VerifyPermissionComplete)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpermission), ::core::mem::transmute(pcontext), hrpermission).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -3703,33 +2892,18 @@ pub struct IWMPContentPartnerCallback_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Notify: usize, pub BuyComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrresult: ::windows::core::HRESULT, dwbuycookie: u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub DownloadTrack: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: u32, bstrtrackurl: ::core::mem::ManuallyDrop, dwservicetrackid: u32, bstrdownloadparams: ::core::mem::ManuallyDrop, hrdownload: ::windows::core::HRESULT) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DownloadTrack: usize, + pub DownloadTrack: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cookie: u32, bstrtrackurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwservicetrackid: u32, bstrdownloadparams: ::core::mem::ManuallyDrop<::windows::core::BSTR>, hrdownload: ::windows::core::HRESULT) -> ::windows::core::HRESULT, pub GetCatalogVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwversion: *mut u32, pdwschemaversion: *mut u32, plcid: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub UpdateDeviceComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdevicename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UpdateDeviceComplete: usize, - #[cfg(feature = "Win32_Foundation")] - pub ChangeView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtype: ::core::mem::ManuallyDrop, bstrid: ::core::mem::ManuallyDrop, bstrfilter: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ChangeView: usize, + pub UpdateDeviceComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdevicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ChangeView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrfilter: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub AddListContents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwlistcookie: u32, citems: u32, prgitems: *const u32) -> ::windows::core::HRESULT, pub ListContentsComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwlistcookie: u32, hrsuccess: ::windows::core::HRESULT) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SendMessageComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmsg: ::core::mem::ManuallyDrop, bstrparam: ::core::mem::ManuallyDrop, bstrresult: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SendMessageComplete: usize, + pub SendMessageComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmsg: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrparam: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrresult: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetContentIDsInLibrary: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pccontentids: *mut u32, pprgids: *mut *mut u32) -> ::windows::core::HRESULT, pub RefreshLicenseComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcookie: u32, contentid: u32, hrrefresh: ::windows::core::HRESULT) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ShowPopup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lindex: i32, bstrparameters: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ShowPopup: usize, + pub ShowPopup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lindex: i32, bstrparameters: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub VerifyPermissionComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpermission: ::core::mem::ManuallyDrop, pcontext: *const super::super::System::Com::VARIANT, hrpermission: ::windows::core::HRESULT) -> ::windows::core::HRESULT, + pub VerifyPermissionComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpermission: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcontext: *const super::super::System::Com::VARIANT, hrpermission: ::windows::core::HRESULT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] VerifyPermissionComplete: usize, } @@ -3739,13 +2913,8 @@ pub struct IWMPContentPartnerCallback_Vtbl { pub struct IWMPControls(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWMPControls { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_isAvailable<'a, P0>(&self, bstritem: P0, pisavailable: &mut i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).get_isAvailable)(::windows::core::Interface::as_raw(self), bstritem.into().abi(), ::core::mem::transmute(pisavailable)).ok() + pub unsafe fn get_isAvailable(&self, bstritem: &::windows::core::BSTR, pisavailable: &mut i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).get_isAvailable)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstritem), ::core::mem::transmute(pisavailable)).ok() } pub unsafe fn play(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).play)(::windows::core::Interface::as_raw(self)).ok() @@ -3768,9 +2937,7 @@ impl IWMPControls { pub unsafe fn SetcurrentPosition(&self, dcurrentposition: f64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetcurrentPosition)(::windows::core::Interface::as_raw(self), dcurrentposition).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn currentPositionString(&self, pbstrcurrentposition: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn currentPositionString(&self, pbstrcurrentposition: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).currentPositionString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrcurrentposition)).ok() } pub unsafe fn next(&self) -> ::windows::core::Result<()> { @@ -3874,10 +3041,7 @@ unsafe impl ::windows::core::Interface for IWMPControls { #[doc(hidden)] pub struct IWMPControls_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub get_isAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritem: ::core::mem::ManuallyDrop, pisavailable: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_isAvailable: usize, + pub get_isAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritem: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pisavailable: *mut i16) -> ::windows::core::HRESULT, pub play: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub pause: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -3885,10 +3049,7 @@ pub struct IWMPControls_Vtbl { pub fastReverse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub currentPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdcurrentposition: *mut f64) -> ::windows::core::HRESULT, pub SetcurrentPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dcurrentposition: f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub currentPositionString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcurrentposition: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - currentPositionString: usize, + pub currentPositionString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcurrentposition: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub previous: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] @@ -3912,13 +3073,8 @@ pub struct IWMPControls_Vtbl { pub struct IWMPControls2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWMPControls2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_isAvailable<'a, P0>(&self, bstritem: P0, pisavailable: &mut i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.get_isAvailable)(::windows::core::Interface::as_raw(self), bstritem.into().abi(), ::core::mem::transmute(pisavailable)).ok() + pub unsafe fn get_isAvailable(&self, bstritem: &::windows::core::BSTR, pisavailable: &mut i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.get_isAvailable)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstritem), ::core::mem::transmute(pisavailable)).ok() } pub unsafe fn play(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.play)(::windows::core::Interface::as_raw(self)).ok() @@ -3941,9 +3097,7 @@ impl IWMPControls2 { pub unsafe fn SetcurrentPosition(&self, dcurrentposition: f64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetcurrentPosition)(::windows::core::Interface::as_raw(self), dcurrentposition).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn currentPositionString(&self, pbstrcurrentposition: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn currentPositionString(&self, pbstrcurrentposition: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.currentPositionString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrcurrentposition)).ok() } pub unsafe fn next(&self) -> ::windows::core::Result<()> { @@ -4076,13 +3230,8 @@ pub struct IWMPControls2_Vtbl { pub struct IWMPControls3(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWMPControls3 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_isAvailable<'a, P0>(&self, bstritem: P0, pisavailable: &mut i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.get_isAvailable)(::windows::core::Interface::as_raw(self), bstritem.into().abi(), ::core::mem::transmute(pisavailable)).ok() + pub unsafe fn get_isAvailable(&self, bstritem: &::windows::core::BSTR, pisavailable: &mut i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.get_isAvailable)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstritem), ::core::mem::transmute(pisavailable)).ok() } pub unsafe fn play(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.play)(::windows::core::Interface::as_raw(self)).ok() @@ -4105,9 +3254,7 @@ impl IWMPControls3 { pub unsafe fn SetcurrentPosition(&self, dcurrentposition: f64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.SetcurrentPosition)(::windows::core::Interface::as_raw(self), dcurrentposition).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn currentPositionString(&self, pbstrcurrentposition: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn currentPositionString(&self, pbstrcurrentposition: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.currentPositionString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrcurrentposition)).ok() } pub unsafe fn next(&self) -> ::windows::core::Result<()> { @@ -4153,9 +3300,7 @@ impl IWMPControls3 { pub unsafe fn getAudioLanguageID(&self, lindex: i32, pllangid: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).getAudioLanguageID)(::windows::core::Interface::as_raw(self), lindex, ::core::mem::transmute(pllangid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getAudioLanguageDescription(&self, lindex: i32, pbstrlangdesc: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn getAudioLanguageDescription(&self, lindex: i32, pbstrlangdesc: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).getAudioLanguageDescription)(::windows::core::Interface::as_raw(self), lindex, ::core::mem::transmute(pbstrlangdesc)).ok() } pub unsafe fn currentAudioLanguage(&self, pllangid: &mut i32) -> ::windows::core::Result<()> { @@ -4170,23 +3315,14 @@ impl IWMPControls3 { pub unsafe fn SetcurrentAudioLanguageIndex(&self, lindex: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetcurrentAudioLanguageIndex)(::windows::core::Interface::as_raw(self), lindex).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getLanguageName(&self, llangid: i32, pbstrlangname: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn getLanguageName(&self, llangid: i32, pbstrlangname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).getLanguageName)(::windows::core::Interface::as_raw(self), llangid, ::core::mem::transmute(pbstrlangname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn currentPositionTimecode(&self, bstrtimecode: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn currentPositionTimecode(&self, bstrtimecode: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).currentPositionTimecode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(bstrtimecode)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetcurrentPositionTimecode<'a, P0>(&self, bstrtimecode: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetcurrentPositionTimecode)(::windows::core::Interface::as_raw(self), bstrtimecode.into().abi()).ok() + pub unsafe fn SetcurrentPositionTimecode(&self, bstrtimecode: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetcurrentPositionTimecode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtimecode)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4293,43 +3429,23 @@ pub struct IWMPControls3_Vtbl { pub base__: IWMPControls2_Vtbl, pub audioLanguageCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut i32) -> ::windows::core::HRESULT, pub getAudioLanguageID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lindex: i32, pllangid: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub getAudioLanguageDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lindex: i32, pbstrlangdesc: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getAudioLanguageDescription: usize, + pub getAudioLanguageDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lindex: i32, pbstrlangdesc: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub currentAudioLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pllangid: *mut i32) -> ::windows::core::HRESULT, pub SetcurrentAudioLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, llangid: i32) -> ::windows::core::HRESULT, pub currentAudioLanguageIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plindex: *mut i32) -> ::windows::core::HRESULT, pub SetcurrentAudioLanguageIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lindex: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub getLanguageName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, llangid: i32, pbstrlangname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getLanguageName: usize, - #[cfg(feature = "Win32_Foundation")] - pub currentPositionTimecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtimecode: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - currentPositionTimecode: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetcurrentPositionTimecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtimecode: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetcurrentPositionTimecode: usize, + pub getLanguageName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, llangid: i32, pbstrlangname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub currentPositionTimecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtimecode: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetcurrentPositionTimecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtimecode: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_MediaPlayer\"`*"] #[repr(transparent)] pub struct IWMPConvert(::windows::core::IUnknown); impl IWMPConvert { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ConvertFile<'a, P0, P1>(&self, bstrinputfile: P0, bstrdestinationfolder: P1, pbstroutputfile: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ConvertFile)(::windows::core::Interface::as_raw(self), bstrinputfile.into().abi(), bstrdestinationfolder.into().abi(), ::core::mem::transmute(pbstroutputfile)).ok() + pub unsafe fn ConvertFile(&self, bstrinputfile: &::windows::core::BSTR, bstrdestinationfolder: &::windows::core::BSTR, pbstroutputfile: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ConvertFile)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrinputfile), ::core::mem::transmute_copy(bstrdestinationfolder), ::core::mem::transmute(pbstroutputfile)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetErrorURL(&self, pbstrurl: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetErrorURL(&self, pbstrurl: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetErrorURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrurl)).ok() } } @@ -4372,14 +3488,8 @@ unsafe impl ::windows::core::Interface for IWMPConvert { #[doc(hidden)] pub struct IWMPConvert_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub ConvertFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinputfile: ::core::mem::ManuallyDrop, bstrdestinationfolder: ::core::mem::ManuallyDrop, pbstroutputfile: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ConvertFile: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetErrorURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetErrorURL: usize, + pub ConvertFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinputfile: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdestinationfolder: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstroutputfile: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetErrorURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_MediaPlayer\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4390,18 +3500,11 @@ impl IWMPCore { pub unsafe fn close(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).close)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn URL(&self, pbstrurl: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn URL(&self, pbstrurl: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).URL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrurl)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetURL<'a, P0>(&self, bstrurl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetURL)(::windows::core::Interface::as_raw(self), bstrurl.into().abi()).ok() + pub unsafe fn SetURL(&self, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrurl)).ok() } pub unsafe fn openState(&self, pwmpos: &mut WMPOpenState) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).openState)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pwmpos)).ok() @@ -4447,18 +3550,11 @@ impl IWMPCore { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).playlistCollection)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn versionInfo(&self, pbstrversioninfo: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn versionInfo(&self, pbstrversioninfo: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).versionInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrversioninfo)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn launchURL<'a, P0>(&self, bstrurl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).launchURL)(::windows::core::Interface::as_raw(self), bstrurl.into().abi()).ok() + pub unsafe fn launchURL(&self, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).launchURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrurl)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4501,9 +3597,7 @@ impl IWMPCore { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).error)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn status(&self, pbstrstatus: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn status(&self, pbstrstatus: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).status)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrstatus)).ok() } } @@ -4574,14 +3668,8 @@ unsafe impl ::windows::core::Interface for IWMPCore { pub struct IWMPCore_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub URL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - URL: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetURL: usize, + pub URL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub openState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwmpos: *mut WMPOpenState) -> ::windows::core::HRESULT, pub playState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwmpps: *mut WMPPlayState) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] @@ -4608,14 +3696,8 @@ pub struct IWMPCore_Vtbl { pub playlistCollection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppplaylistcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] playlistCollection: usize, - #[cfg(feature = "Win32_Foundation")] - pub versionInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrversioninfo: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - versionInfo: usize, - #[cfg(feature = "Win32_Foundation")] - pub launchURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - launchURL: usize, + pub versionInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrversioninfo: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub launchURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub network: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppqni: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -4641,10 +3723,7 @@ pub struct IWMPCore_Vtbl { pub error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pperror: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] error: usize, - #[cfg(feature = "Win32_Foundation")] - pub status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstatus: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - status: usize, + pub status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstatus: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_MediaPlayer\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4655,18 +3734,11 @@ impl IWMPCore2 { pub unsafe fn close(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.close)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn URL(&self, pbstrurl: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn URL(&self, pbstrurl: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.URL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrurl)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetURL<'a, P0>(&self, bstrurl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetURL)(::windows::core::Interface::as_raw(self), bstrurl.into().abi()).ok() + pub unsafe fn SetURL(&self, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrurl)).ok() } pub unsafe fn openState(&self, pwmpos: &mut WMPOpenState) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.openState)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pwmpos)).ok() @@ -4712,18 +3784,11 @@ impl IWMPCore2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.playlistCollection)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn versionInfo(&self, pbstrversioninfo: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn versionInfo(&self, pbstrversioninfo: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.versionInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrversioninfo)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn launchURL<'a, P0>(&self, bstrurl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.launchURL)(::windows::core::Interface::as_raw(self), bstrurl.into().abi()).ok() + pub unsafe fn launchURL(&self, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.launchURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrurl)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4766,9 +3831,7 @@ impl IWMPCore2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.error)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn status(&self, pbstrstatus: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn status(&self, pbstrstatus: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.status)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrstatus)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] @@ -4876,18 +3939,11 @@ impl IWMPCore3 { pub unsafe fn close(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.close)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn URL(&self, pbstrurl: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn URL(&self, pbstrurl: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.URL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrurl)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetURL<'a, P0>(&self, bstrurl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetURL)(::windows::core::Interface::as_raw(self), bstrurl.into().abi()).ok() + pub unsafe fn SetURL(&self, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrurl)).ok() } pub unsafe fn openState(&self, pwmpos: &mut WMPOpenState) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.openState)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pwmpos)).ok() @@ -4933,18 +3989,11 @@ impl IWMPCore3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.playlistCollection)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn versionInfo(&self, pbstrversioninfo: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn versionInfo(&self, pbstrversioninfo: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.versionInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrversioninfo)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn launchURL<'a, P0>(&self, bstrurl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.launchURL)(::windows::core::Interface::as_raw(self), bstrurl.into().abi()).ok() + pub unsafe fn launchURL(&self, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.launchURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrurl)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4987,9 +4036,7 @@ impl IWMPCore3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.error)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn status(&self, pbstrstatus: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn status(&self, pbstrstatus: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.status)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrstatus)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] @@ -4998,24 +4045,17 @@ impl IWMPCore3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.dvd)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn newPlaylist<'a, P0, P1>(&self, bstrname: P0, bstrurl: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn newPlaylist(&self, bstrname: &::windows::core::BSTR, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).newPlaylist)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), bstrurl.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).newPlaylist)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute_copy(bstrurl), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn newMedia<'a, P0>(&self, bstrurl: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn newMedia(&self, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).newMedia)(::windows::core::Interface::as_raw(self), bstrurl.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).newMedia)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrurl), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -5120,13 +4160,13 @@ unsafe impl ::windows::core::Interface for IWMPCore3 { #[doc(hidden)] pub struct IWMPCore3_Vtbl { pub base__: IWMPCore2_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub newPlaylist: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, bstrurl: ::core::mem::ManuallyDrop, ppplaylist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub newPlaylist: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppplaylist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] newPlaylist: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub newMedia: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop, ppmedia: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub newMedia: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppmedia: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] newMedia: usize, } #[doc = "*Required features: `\"Win32_Media_MediaPlayer\"`, `\"Win32_System_Com\"`*"] @@ -5135,17 +4175,10 @@ pub struct IWMPCore3_Vtbl { pub struct IWMPDVD(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWMPDVD { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_isAvailable<'a, P0>(&self, bstritem: P0, pisavailable: &mut i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).get_isAvailable)(::windows::core::Interface::as_raw(self), bstritem.into().abi(), ::core::mem::transmute(pisavailable)).ok() + pub unsafe fn get_isAvailable(&self, bstritem: &::windows::core::BSTR, pisavailable: &mut i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).get_isAvailable)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstritem), ::core::mem::transmute(pisavailable)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn domain(&self, strdomain: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn domain(&self, strdomain: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).domain)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(strdomain)).ok() } pub unsafe fn topMenu(&self) -> ::windows::core::Result<()> { @@ -5227,14 +4260,8 @@ unsafe impl ::windows::core::Interface for IWMPDVD { #[doc(hidden)] pub struct IWMPDVD_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub get_isAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritem: ::core::mem::ManuallyDrop, pisavailable: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_isAvailable: usize, - #[cfg(feature = "Win32_Foundation")] - pub domain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strdomain: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - domain: usize, + pub get_isAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritem: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pisavailable: *mut i16) -> ::windows::core::HRESULT, + pub domain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strdomain: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub topMenu: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub titleMenu: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub back: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -5258,15 +4285,11 @@ impl IWMPDownloadCollection { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).item)(::windows::core::Interface::as_raw(self), litem, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn startDownload<'a, P0, P1>(&self, bstrsourceurl: P0, bstrtype: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn startDownload(&self, bstrsourceurl: &::windows::core::BSTR, bstrtype: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).startDownload)(::windows::core::Interface::as_raw(self), bstrsourceurl.into().abi(), bstrtype.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).startDownload)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsourceurl), ::core::mem::transmute_copy(bstrtype), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn removeItem(&self, litem: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).removeItem)(::windows::core::Interface::as_raw(self), litem).ok() @@ -5347,9 +4370,9 @@ pub struct IWMPDownloadCollection_Vtbl { pub item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, litem: i32, ppdownload: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] item: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub startDownload: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsourceurl: ::core::mem::ManuallyDrop, bstrtype: ::core::mem::ManuallyDrop, ppdownload: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub startDownload: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsourceurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrtype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppdownload: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] startDownload: usize, pub removeItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, litem: i32) -> ::windows::core::HRESULT, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -5360,17 +4383,13 @@ pub struct IWMPDownloadCollection_Vtbl { pub struct IWMPDownloadItem(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWMPDownloadItem { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn sourceURL(&self, pbstrurl: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn sourceURL(&self, pbstrurl: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).sourceURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrurl)).ok() } pub unsafe fn size(&self, plsize: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).size)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(plsize)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn r#type(&self, pbstrtype: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn r#type(&self, pbstrtype: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).r#type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrtype)).ok() } pub unsafe fn progress(&self, plprogress: &mut i32) -> ::windows::core::Result<()> { @@ -5455,15 +4474,9 @@ unsafe impl ::windows::core::Interface for IWMPDownloadItem { #[doc(hidden)] pub struct IWMPDownloadItem_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub sourceURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - sourceURL: usize, + pub sourceURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub size: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plsize: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub r#type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - r#type: usize, + pub r#type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub progress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plprogress: *mut i32) -> ::windows::core::HRESULT, pub downloadState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwmpsdls: *mut WMPSubscriptionDownloadState) -> ::windows::core::HRESULT, pub pause: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -5476,17 +4489,13 @@ pub struct IWMPDownloadItem_Vtbl { pub struct IWMPDownloadItem2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWMPDownloadItem2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn sourceURL(&self, pbstrurl: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn sourceURL(&self, pbstrurl: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.sourceURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrurl)).ok() } pub unsafe fn size(&self, plsize: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.size)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(plsize)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn r#type(&self, pbstrtype: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn r#type(&self, pbstrtype: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.r#type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrtype)).ok() } pub unsafe fn progress(&self, plprogress: &mut i32) -> ::windows::core::Result<()> { @@ -5504,14 +4513,9 @@ impl IWMPDownloadItem2 { pub unsafe fn cancel(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.cancel)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getItemInfo<'a, P0>(&self, bstritemname: P0, pbstrval: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).getItemInfo)(::windows::core::Interface::as_raw(self), bstritemname.into().abi(), ::core::mem::transmute(pbstrval)).ok() - } + pub unsafe fn getItemInfo(&self, bstritemname: &::windows::core::BSTR, pbstrval: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).getItemInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstritemname), ::core::mem::transmute(pbstrval)).ok() + } } #[cfg(feature = "Win32_System_Com")] impl ::core::convert::From for ::windows::core::IUnknown { @@ -5597,10 +4601,7 @@ unsafe impl ::windows::core::Interface for IWMPDownloadItem2 { #[doc(hidden)] pub struct IWMPDownloadItem2_Vtbl { pub base__: IWMPDownloadItem_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub getItemInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop, pbstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getItemInfo: usize, + pub getItemInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_MediaPlayer\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5708,25 +4709,16 @@ impl IWMPEffects { { (::windows::core::Interface::vtable(self).Render)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(plevels), hdc.into(), ::core::mem::transmute(prc)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MediaInfo<'a, P0>(&self, lchannelcount: i32, lsamplerate: i32, bstrtitle: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).MediaInfo)(::windows::core::Interface::as_raw(self), lchannelcount, lsamplerate, bstrtitle.into().abi()).ok() + pub unsafe fn MediaInfo(&self, lchannelcount: i32, lsamplerate: i32, bstrtitle: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).MediaInfo)(::windows::core::Interface::as_raw(self), lchannelcount, lsamplerate, ::core::mem::transmute_copy(bstrtitle)).ok() } pub unsafe fn GetCapabilities(&self, pdwcapabilities: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetCapabilities)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdwcapabilities)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetTitle(&self, bstrtitle: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetTitle(&self, bstrtitle: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetTitle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(bstrtitle)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPresetTitle(&self, npreset: i32, bstrpresettitle: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetPresetTitle(&self, npreset: i32, bstrpresettitle: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetPresetTitle)(::windows::core::Interface::as_raw(self), npreset, ::core::mem::transmute(bstrpresettitle)).ok() } pub unsafe fn GetPresetCount(&self, pnpresetcount: &mut i32) -> ::windows::core::Result<()> { @@ -5801,19 +4793,10 @@ pub struct IWMPEffects_Vtbl { pub Render: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plevels: *mut TimedLevel, hdc: super::super::Graphics::Gdi::HDC, prc: *mut super::super::Foundation::RECT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi")))] Render: usize, - #[cfg(feature = "Win32_Foundation")] - pub MediaInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lchannelcount: i32, lsamplerate: i32, bstrtitle: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MediaInfo: usize, + pub MediaInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lchannelcount: i32, lsamplerate: i32, bstrtitle: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetCapabilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwcapabilities: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtitle: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetTitle: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetPresetTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, npreset: i32, bstrpresettitle: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPresetTitle: usize, + pub GetTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtitle: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetPresetTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, npreset: i32, bstrpresettitle: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetPresetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnpresetcount: *mut i32) -> ::windows::core::HRESULT, pub SetCurrentPreset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, npreset: i32) -> ::windows::core::HRESULT, pub GetCurrentPreset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnpreset: *mut i32) -> ::windows::core::HRESULT, @@ -5839,25 +4822,16 @@ impl IWMPEffects2 { { (::windows::core::Interface::vtable(self).base__.Render)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(plevels), hdc.into(), ::core::mem::transmute(prc)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MediaInfo<'a, P0>(&self, lchannelcount: i32, lsamplerate: i32, bstrtitle: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.MediaInfo)(::windows::core::Interface::as_raw(self), lchannelcount, lsamplerate, bstrtitle.into().abi()).ok() + pub unsafe fn MediaInfo(&self, lchannelcount: i32, lsamplerate: i32, bstrtitle: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.MediaInfo)(::windows::core::Interface::as_raw(self), lchannelcount, lsamplerate, ::core::mem::transmute_copy(bstrtitle)).ok() } pub unsafe fn GetCapabilities(&self, pdwcapabilities: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetCapabilities)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdwcapabilities)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetTitle(&self, bstrtitle: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetTitle(&self, bstrtitle: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetTitle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(bstrtitle)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPresetTitle(&self, npreset: i32, bstrpresettitle: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetPresetTitle(&self, npreset: i32, bstrpresettitle: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetPresetTitle)(::windows::core::Interface::as_raw(self), npreset, ::core::mem::transmute(bstrpresettitle)).ok() } pub unsafe fn GetPresetCount(&self, pnpresetcount: &mut i32) -> ::windows::core::Result<()> { @@ -6114,9 +5088,7 @@ impl IWMPErrorItem { pub unsafe fn errorCode(&self, phr: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).errorCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(phr)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn errorDescription(&self, pbstrdescription: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn errorDescription(&self, pbstrdescription: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).errorDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrdescription)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -6127,9 +5099,7 @@ impl IWMPErrorItem { pub unsafe fn remedy(&self, plremedy: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).remedy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(plremedy)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn customUrl(&self, pbstrcustomurl: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn customUrl(&self, pbstrcustomurl: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).customUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrcustomurl)).ok() } } @@ -6200,19 +5170,13 @@ unsafe impl ::windows::core::Interface for IWMPErrorItem { pub struct IWMPErrorItem_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub errorCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phr: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub errorDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - errorDescription: usize, + pub errorDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub errorContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvarcontext: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] errorContext: usize, pub remedy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plremedy: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub customUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcustomurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - customUrl: usize, + pub customUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcustomurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_MediaPlayer\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6223,9 +5187,7 @@ impl IWMPErrorItem2 { pub unsafe fn errorCode(&self, phr: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.errorCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(phr)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn errorDescription(&self, pbstrdescription: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn errorDescription(&self, pbstrdescription: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.errorDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrdescription)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -6236,9 +5198,7 @@ impl IWMPErrorItem2 { pub unsafe fn remedy(&self, plremedy: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.remedy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(plremedy)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn customUrl(&self, pbstrcustomurl: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn customUrl(&self, pbstrcustomurl: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.customUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrcustomurl)).ok() } pub unsafe fn condition(&self, plcondition: &mut i32) -> ::windows::core::Result<()> { @@ -6347,14 +5307,8 @@ impl IWMPEvents { pub unsafe fn StatusChange(&self) { (::windows::core::Interface::vtable(self).StatusChange)(::windows::core::Interface::as_raw(self)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ScriptCommand<'a, P0, P1>(&self, sctype: P0, param: P1) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ScriptCommand)(::windows::core::Interface::as_raw(self), sctype.into().abi(), param.into().abi()) + pub unsafe fn ScriptCommand(&self, sctype: &::windows::core::BSTR, param: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).ScriptCommand)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(sctype), ::core::mem::transmute_copy(param)) } pub unsafe fn NewStream(&self) { (::windows::core::Interface::vtable(self).NewStream)(::windows::core::Interface::as_raw(self)) @@ -6368,13 +5322,8 @@ impl IWMPEvents { pub unsafe fn Error(&self) { (::windows::core::Interface::vtable(self).Error)(::windows::core::Interface::as_raw(self)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Warning<'a, P0>(&self, warningtype: i32, param: i32, description: P0) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Warning)(::windows::core::Interface::as_raw(self), warningtype, param, description.into().abi()) + pub unsafe fn Warning(&self, warningtype: i32, param: i32, description: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).Warning)(::windows::core::Interface::as_raw(self), warningtype, param, ::core::mem::transmute_copy(description)) } pub unsafe fn EndOfStream(&self, result: i32) { (::windows::core::Interface::vtable(self).EndOfStream)(::windows::core::Interface::as_raw(self), result) @@ -6402,13 +5351,8 @@ impl IWMPEvents { pub unsafe fn CurrentPlaylistChange(&self, change: WMPPlaylistChangeEventType) { (::windows::core::Interface::vtable(self).CurrentPlaylistChange)(::windows::core::Interface::as_raw(self), change) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentPlaylistItemAvailable<'a, P0>(&self, bstritemname: P0) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).CurrentPlaylistItemAvailable)(::windows::core::Interface::as_raw(self), bstritemname.into().abi()) + pub unsafe fn CurrentPlaylistItemAvailable(&self, bstritemname: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).CurrentPlaylistItemAvailable)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstritemname)) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6418,13 +5362,8 @@ impl IWMPEvents { { (::windows::core::Interface::vtable(self).MediaChange)(::windows::core::Interface::as_raw(self), item.into().abi()) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentMediaItemAvailable<'a, P0>(&self, bstritemname: P0) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).CurrentMediaItemAvailable)(::windows::core::Interface::as_raw(self), bstritemname.into().abi()) + pub unsafe fn CurrentMediaItemAvailable(&self, bstritemname: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).CurrentMediaItemAvailable)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstritemname)) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6437,68 +5376,29 @@ impl IWMPEvents { pub unsafe fn MediaCollectionChange(&self) { (::windows::core::Interface::vtable(self).MediaCollectionChange)(::windows::core::Interface::as_raw(self)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MediaCollectionAttributeStringAdded<'a, P0, P1>(&self, bstrattribname: P0, bstrattribval: P1) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).MediaCollectionAttributeStringAdded)(::windows::core::Interface::as_raw(self), bstrattribname.into().abi(), bstrattribval.into().abi()) + pub unsafe fn MediaCollectionAttributeStringAdded(&self, bstrattribname: &::windows::core::BSTR, bstrattribval: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).MediaCollectionAttributeStringAdded)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrattribname), ::core::mem::transmute_copy(bstrattribval)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MediaCollectionAttributeStringRemoved<'a, P0, P1>(&self, bstrattribname: P0, bstrattribval: P1) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).MediaCollectionAttributeStringRemoved)(::windows::core::Interface::as_raw(self), bstrattribname.into().abi(), bstrattribval.into().abi()) + pub unsafe fn MediaCollectionAttributeStringRemoved(&self, bstrattribname: &::windows::core::BSTR, bstrattribval: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).MediaCollectionAttributeStringRemoved)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrattribname), ::core::mem::transmute_copy(bstrattribval)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MediaCollectionAttributeStringChanged<'a, P0, P1, P2>(&self, bstrattribname: P0, bstroldattribval: P1, bstrnewattribval: P2) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).MediaCollectionAttributeStringChanged)(::windows::core::Interface::as_raw(self), bstrattribname.into().abi(), bstroldattribval.into().abi(), bstrnewattribval.into().abi()) + pub unsafe fn MediaCollectionAttributeStringChanged(&self, bstrattribname: &::windows::core::BSTR, bstroldattribval: &::windows::core::BSTR, bstrnewattribval: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).MediaCollectionAttributeStringChanged)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrattribname), ::core::mem::transmute_copy(bstroldattribval), ::core::mem::transmute_copy(bstrnewattribval)) } pub unsafe fn PlaylistCollectionChange(&self) { (::windows::core::Interface::vtable(self).PlaylistCollectionChange)(::windows::core::Interface::as_raw(self)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PlaylistCollectionPlaylistAdded<'a, P0>(&self, bstrplaylistname: P0) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).PlaylistCollectionPlaylistAdded)(::windows::core::Interface::as_raw(self), bstrplaylistname.into().abi()) + pub unsafe fn PlaylistCollectionPlaylistAdded(&self, bstrplaylistname: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).PlaylistCollectionPlaylistAdded)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrplaylistname)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PlaylistCollectionPlaylistRemoved<'a, P0>(&self, bstrplaylistname: P0) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).PlaylistCollectionPlaylistRemoved)(::windows::core::Interface::as_raw(self), bstrplaylistname.into().abi()) + pub unsafe fn PlaylistCollectionPlaylistRemoved(&self, bstrplaylistname: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).PlaylistCollectionPlaylistRemoved)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrplaylistname)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PlaylistCollectionPlaylistSetAsDeleted<'a, P0>(&self, bstrplaylistname: P0, varfisdeleted: i16) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).PlaylistCollectionPlaylistSetAsDeleted)(::windows::core::Interface::as_raw(self), bstrplaylistname.into().abi(), varfisdeleted) + pub unsafe fn PlaylistCollectionPlaylistSetAsDeleted(&self, bstrplaylistname: &::windows::core::BSTR, varfisdeleted: i16) { + (::windows::core::Interface::vtable(self).PlaylistCollectionPlaylistSetAsDeleted)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrplaylistname), varfisdeleted) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ModeChange<'a, P0>(&self, modename: P0, newvalue: i16) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ModeChange)(::windows::core::Interface::as_raw(self), modename.into().abi(), newvalue) + pub unsafe fn ModeChange(&self, modename: &::windows::core::BSTR, newvalue: i16) { + (::windows::core::Interface::vtable(self).ModeChange)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(modename), newvalue) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6516,13 +5416,8 @@ impl IWMPEvents { { (::windows::core::Interface::vtable(self).OpenPlaylistSwitch)(::windows::core::Interface::as_raw(self), pitem.into().abi()) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DomainChange<'a, P0>(&self, strdomain: P0) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DomainChange)(::windows::core::Interface::as_raw(self), strdomain.into().abi()) + pub unsafe fn DomainChange(&self, strdomain: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).DomainChange)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strdomain)) } pub unsafe fn SwitchedToPlayerApplication(&self) { (::windows::core::Interface::vtable(self).SwitchedToPlayerApplication)(::windows::core::Interface::as_raw(self)) @@ -6604,18 +5499,12 @@ pub struct IWMPEvents_Vtbl { pub PlayStateChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newstate: i32), pub AudioLanguageChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, langid: i32), pub StatusChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), - #[cfg(feature = "Win32_Foundation")] - pub ScriptCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sctype: ::core::mem::ManuallyDrop, param: ::core::mem::ManuallyDrop), - #[cfg(not(feature = "Win32_Foundation"))] - ScriptCommand: usize, + pub ScriptCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sctype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, param: ::core::mem::ManuallyDrop<::windows::core::BSTR>), pub NewStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), pub Disconnect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result: i32), pub Buffering: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, start: i16), pub Error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), - #[cfg(feature = "Win32_Foundation")] - pub Warning: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, warningtype: i32, param: i32, description: ::core::mem::ManuallyDrop), - #[cfg(not(feature = "Win32_Foundation"))] - Warning: usize, + pub Warning: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, warningtype: i32, param: i32, description: ::core::mem::ManuallyDrop<::windows::core::BSTR>), pub EndOfStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result: i32), pub PositionChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, oldposition: f64, newposition: f64), pub MarkerHit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, markernum: i32), @@ -6626,52 +5515,25 @@ pub struct IWMPEvents_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] PlaylistChange: usize, pub CurrentPlaylistChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, change: WMPPlaylistChangeEventType), - #[cfg(feature = "Win32_Foundation")] - pub CurrentPlaylistItemAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop), - #[cfg(not(feature = "Win32_Foundation"))] - CurrentPlaylistItemAvailable: usize, + pub CurrentPlaylistItemAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>), #[cfg(feature = "Win32_System_Com")] pub MediaChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, item: *mut ::core::ffi::c_void), #[cfg(not(feature = "Win32_System_Com"))] MediaChange: usize, - #[cfg(feature = "Win32_Foundation")] - pub CurrentMediaItemAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop), - #[cfg(not(feature = "Win32_Foundation"))] - CurrentMediaItemAvailable: usize, + pub CurrentMediaItemAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>), #[cfg(feature = "Win32_System_Com")] pub CurrentItemChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdispmedia: *mut ::core::ffi::c_void), #[cfg(not(feature = "Win32_System_Com"))] CurrentItemChange: usize, pub MediaCollectionChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), - #[cfg(feature = "Win32_Foundation")] - pub MediaCollectionAttributeStringAdded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrattribname: ::core::mem::ManuallyDrop, bstrattribval: ::core::mem::ManuallyDrop), - #[cfg(not(feature = "Win32_Foundation"))] - MediaCollectionAttributeStringAdded: usize, - #[cfg(feature = "Win32_Foundation")] - pub MediaCollectionAttributeStringRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrattribname: ::core::mem::ManuallyDrop, bstrattribval: ::core::mem::ManuallyDrop), - #[cfg(not(feature = "Win32_Foundation"))] - MediaCollectionAttributeStringRemoved: usize, - #[cfg(feature = "Win32_Foundation")] - pub MediaCollectionAttributeStringChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrattribname: ::core::mem::ManuallyDrop, bstroldattribval: ::core::mem::ManuallyDrop, bstrnewattribval: ::core::mem::ManuallyDrop), - #[cfg(not(feature = "Win32_Foundation"))] - MediaCollectionAttributeStringChanged: usize, + pub MediaCollectionAttributeStringAdded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrattribname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrattribval: ::core::mem::ManuallyDrop<::windows::core::BSTR>), + pub MediaCollectionAttributeStringRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrattribname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrattribval: ::core::mem::ManuallyDrop<::windows::core::BSTR>), + pub MediaCollectionAttributeStringChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrattribname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstroldattribval: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrnewattribval: ::core::mem::ManuallyDrop<::windows::core::BSTR>), pub PlaylistCollectionChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), - #[cfg(feature = "Win32_Foundation")] - pub PlaylistCollectionPlaylistAdded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrplaylistname: ::core::mem::ManuallyDrop), - #[cfg(not(feature = "Win32_Foundation"))] - PlaylistCollectionPlaylistAdded: usize, - #[cfg(feature = "Win32_Foundation")] - pub PlaylistCollectionPlaylistRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrplaylistname: ::core::mem::ManuallyDrop), - #[cfg(not(feature = "Win32_Foundation"))] - PlaylistCollectionPlaylistRemoved: usize, - #[cfg(feature = "Win32_Foundation")] - pub PlaylistCollectionPlaylistSetAsDeleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrplaylistname: ::core::mem::ManuallyDrop, varfisdeleted: i16), - #[cfg(not(feature = "Win32_Foundation"))] - PlaylistCollectionPlaylistSetAsDeleted: usize, - #[cfg(feature = "Win32_Foundation")] - pub ModeChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, modename: ::core::mem::ManuallyDrop, newvalue: i16), - #[cfg(not(feature = "Win32_Foundation"))] - ModeChange: usize, + pub PlaylistCollectionPlaylistAdded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrplaylistname: ::core::mem::ManuallyDrop<::windows::core::BSTR>), + pub PlaylistCollectionPlaylistRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrplaylistname: ::core::mem::ManuallyDrop<::windows::core::BSTR>), + pub PlaylistCollectionPlaylistSetAsDeleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrplaylistname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varfisdeleted: i16), + pub ModeChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, modename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, newvalue: i16), #[cfg(feature = "Win32_System_Com")] pub MediaError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmediaobject: *mut ::core::ffi::c_void), #[cfg(not(feature = "Win32_System_Com"))] @@ -6680,10 +5542,7 @@ pub struct IWMPEvents_Vtbl { pub OpenPlaylistSwitch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pitem: *mut ::core::ffi::c_void), #[cfg(not(feature = "Win32_System_Com"))] OpenPlaylistSwitch: usize, - #[cfg(feature = "Win32_Foundation")] - pub DomainChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strdomain: ::core::mem::ManuallyDrop), - #[cfg(not(feature = "Win32_Foundation"))] - DomainChange: usize, + pub DomainChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strdomain: ::core::mem::ManuallyDrop<::windows::core::BSTR>), pub SwitchedToPlayerApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), pub SwitchedToControl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), pub PlayerDockedStateChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), @@ -6713,14 +5572,8 @@ impl IWMPEvents2 { pub unsafe fn StatusChange(&self) { (::windows::core::Interface::vtable(self).base__.StatusChange)(::windows::core::Interface::as_raw(self)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ScriptCommand<'a, P0, P1>(&self, sctype: P0, param: P1) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.ScriptCommand)(::windows::core::Interface::as_raw(self), sctype.into().abi(), param.into().abi()) + pub unsafe fn ScriptCommand(&self, sctype: &::windows::core::BSTR, param: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).base__.ScriptCommand)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(sctype), ::core::mem::transmute_copy(param)) } pub unsafe fn NewStream(&self) { (::windows::core::Interface::vtable(self).base__.NewStream)(::windows::core::Interface::as_raw(self)) @@ -6734,13 +5587,8 @@ impl IWMPEvents2 { pub unsafe fn Error(&self) { (::windows::core::Interface::vtable(self).base__.Error)(::windows::core::Interface::as_raw(self)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Warning<'a, P0>(&self, warningtype: i32, param: i32, description: P0) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.Warning)(::windows::core::Interface::as_raw(self), warningtype, param, description.into().abi()) + pub unsafe fn Warning(&self, warningtype: i32, param: i32, description: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).base__.Warning)(::windows::core::Interface::as_raw(self), warningtype, param, ::core::mem::transmute_copy(description)) } pub unsafe fn EndOfStream(&self, result: i32) { (::windows::core::Interface::vtable(self).base__.EndOfStream)(::windows::core::Interface::as_raw(self), result) @@ -6768,13 +5616,8 @@ impl IWMPEvents2 { pub unsafe fn CurrentPlaylistChange(&self, change: WMPPlaylistChangeEventType) { (::windows::core::Interface::vtable(self).base__.CurrentPlaylistChange)(::windows::core::Interface::as_raw(self), change) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentPlaylistItemAvailable<'a, P0>(&self, bstritemname: P0) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.CurrentPlaylistItemAvailable)(::windows::core::Interface::as_raw(self), bstritemname.into().abi()) + pub unsafe fn CurrentPlaylistItemAvailable(&self, bstritemname: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).base__.CurrentPlaylistItemAvailable)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstritemname)) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6784,13 +5627,8 @@ impl IWMPEvents2 { { (::windows::core::Interface::vtable(self).base__.MediaChange)(::windows::core::Interface::as_raw(self), item.into().abi()) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentMediaItemAvailable<'a, P0>(&self, bstritemname: P0) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.CurrentMediaItemAvailable)(::windows::core::Interface::as_raw(self), bstritemname.into().abi()) + pub unsafe fn CurrentMediaItemAvailable(&self, bstritemname: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).base__.CurrentMediaItemAvailable)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstritemname)) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6803,68 +5641,29 @@ impl IWMPEvents2 { pub unsafe fn MediaCollectionChange(&self) { (::windows::core::Interface::vtable(self).base__.MediaCollectionChange)(::windows::core::Interface::as_raw(self)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MediaCollectionAttributeStringAdded<'a, P0, P1>(&self, bstrattribname: P0, bstrattribval: P1) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.MediaCollectionAttributeStringAdded)(::windows::core::Interface::as_raw(self), bstrattribname.into().abi(), bstrattribval.into().abi()) + pub unsafe fn MediaCollectionAttributeStringAdded(&self, bstrattribname: &::windows::core::BSTR, bstrattribval: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).base__.MediaCollectionAttributeStringAdded)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrattribname), ::core::mem::transmute_copy(bstrattribval)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MediaCollectionAttributeStringRemoved<'a, P0, P1>(&self, bstrattribname: P0, bstrattribval: P1) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.MediaCollectionAttributeStringRemoved)(::windows::core::Interface::as_raw(self), bstrattribname.into().abi(), bstrattribval.into().abi()) + pub unsafe fn MediaCollectionAttributeStringRemoved(&self, bstrattribname: &::windows::core::BSTR, bstrattribval: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).base__.MediaCollectionAttributeStringRemoved)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrattribname), ::core::mem::transmute_copy(bstrattribval)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MediaCollectionAttributeStringChanged<'a, P0, P1, P2>(&self, bstrattribname: P0, bstroldattribval: P1, bstrnewattribval: P2) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.MediaCollectionAttributeStringChanged)(::windows::core::Interface::as_raw(self), bstrattribname.into().abi(), bstroldattribval.into().abi(), bstrnewattribval.into().abi()) + pub unsafe fn MediaCollectionAttributeStringChanged(&self, bstrattribname: &::windows::core::BSTR, bstroldattribval: &::windows::core::BSTR, bstrnewattribval: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).base__.MediaCollectionAttributeStringChanged)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrattribname), ::core::mem::transmute_copy(bstroldattribval), ::core::mem::transmute_copy(bstrnewattribval)) } pub unsafe fn PlaylistCollectionChange(&self) { (::windows::core::Interface::vtable(self).base__.PlaylistCollectionChange)(::windows::core::Interface::as_raw(self)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PlaylistCollectionPlaylistAdded<'a, P0>(&self, bstrplaylistname: P0) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.PlaylistCollectionPlaylistAdded)(::windows::core::Interface::as_raw(self), bstrplaylistname.into().abi()) + pub unsafe fn PlaylistCollectionPlaylistAdded(&self, bstrplaylistname: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).base__.PlaylistCollectionPlaylistAdded)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrplaylistname)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PlaylistCollectionPlaylistRemoved<'a, P0>(&self, bstrplaylistname: P0) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.PlaylistCollectionPlaylistRemoved)(::windows::core::Interface::as_raw(self), bstrplaylistname.into().abi()) + pub unsafe fn PlaylistCollectionPlaylistRemoved(&self, bstrplaylistname: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).base__.PlaylistCollectionPlaylistRemoved)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrplaylistname)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PlaylistCollectionPlaylistSetAsDeleted<'a, P0>(&self, bstrplaylistname: P0, varfisdeleted: i16) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.PlaylistCollectionPlaylistSetAsDeleted)(::windows::core::Interface::as_raw(self), bstrplaylistname.into().abi(), varfisdeleted) + pub unsafe fn PlaylistCollectionPlaylistSetAsDeleted(&self, bstrplaylistname: &::windows::core::BSTR, varfisdeleted: i16) { + (::windows::core::Interface::vtable(self).base__.PlaylistCollectionPlaylistSetAsDeleted)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrplaylistname), varfisdeleted) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ModeChange<'a, P0>(&self, modename: P0, newvalue: i16) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.ModeChange)(::windows::core::Interface::as_raw(self), modename.into().abi(), newvalue) + pub unsafe fn ModeChange(&self, modename: &::windows::core::BSTR, newvalue: i16) { + (::windows::core::Interface::vtable(self).base__.ModeChange)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(modename), newvalue) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6882,13 +5681,8 @@ impl IWMPEvents2 { { (::windows::core::Interface::vtable(self).base__.OpenPlaylistSwitch)(::windows::core::Interface::as_raw(self), pitem.into().abi()) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DomainChange<'a, P0>(&self, strdomain: P0) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.DomainChange)(::windows::core::Interface::as_raw(self), strdomain.into().abi()) + pub unsafe fn DomainChange(&self, strdomain: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).base__.DomainChange)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strdomain)) } pub unsafe fn SwitchedToPlayerApplication(&self) { (::windows::core::Interface::vtable(self).base__.SwitchedToPlayerApplication)(::windows::core::Interface::as_raw(self)) @@ -7046,14 +5840,8 @@ impl IWMPEvents3 { pub unsafe fn StatusChange(&self) { (::windows::core::Interface::vtable(self).base__.base__.StatusChange)(::windows::core::Interface::as_raw(self)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ScriptCommand<'a, P0, P1>(&self, sctype: P0, param: P1) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.ScriptCommand)(::windows::core::Interface::as_raw(self), sctype.into().abi(), param.into().abi()) + pub unsafe fn ScriptCommand(&self, sctype: &::windows::core::BSTR, param: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).base__.base__.ScriptCommand)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(sctype), ::core::mem::transmute_copy(param)) } pub unsafe fn NewStream(&self) { (::windows::core::Interface::vtable(self).base__.base__.NewStream)(::windows::core::Interface::as_raw(self)) @@ -7067,13 +5855,8 @@ impl IWMPEvents3 { pub unsafe fn Error(&self) { (::windows::core::Interface::vtable(self).base__.base__.Error)(::windows::core::Interface::as_raw(self)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Warning<'a, P0>(&self, warningtype: i32, param: i32, description: P0) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.Warning)(::windows::core::Interface::as_raw(self), warningtype, param, description.into().abi()) + pub unsafe fn Warning(&self, warningtype: i32, param: i32, description: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).base__.base__.Warning)(::windows::core::Interface::as_raw(self), warningtype, param, ::core::mem::transmute_copy(description)) } pub unsafe fn EndOfStream(&self, result: i32) { (::windows::core::Interface::vtable(self).base__.base__.EndOfStream)(::windows::core::Interface::as_raw(self), result) @@ -7101,13 +5884,8 @@ impl IWMPEvents3 { pub unsafe fn CurrentPlaylistChange(&self, change: WMPPlaylistChangeEventType) { (::windows::core::Interface::vtable(self).base__.base__.CurrentPlaylistChange)(::windows::core::Interface::as_raw(self), change) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentPlaylistItemAvailable<'a, P0>(&self, bstritemname: P0) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.CurrentPlaylistItemAvailable)(::windows::core::Interface::as_raw(self), bstritemname.into().abi()) + pub unsafe fn CurrentPlaylistItemAvailable(&self, bstritemname: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).base__.base__.CurrentPlaylistItemAvailable)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstritemname)) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7117,13 +5895,8 @@ impl IWMPEvents3 { { (::windows::core::Interface::vtable(self).base__.base__.MediaChange)(::windows::core::Interface::as_raw(self), item.into().abi()) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentMediaItemAvailable<'a, P0>(&self, bstritemname: P0) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.CurrentMediaItemAvailable)(::windows::core::Interface::as_raw(self), bstritemname.into().abi()) + pub unsafe fn CurrentMediaItemAvailable(&self, bstritemname: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).base__.base__.CurrentMediaItemAvailable)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstritemname)) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7136,68 +5909,29 @@ impl IWMPEvents3 { pub unsafe fn MediaCollectionChange(&self) { (::windows::core::Interface::vtable(self).base__.base__.MediaCollectionChange)(::windows::core::Interface::as_raw(self)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MediaCollectionAttributeStringAdded<'a, P0, P1>(&self, bstrattribname: P0, bstrattribval: P1) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.MediaCollectionAttributeStringAdded)(::windows::core::Interface::as_raw(self), bstrattribname.into().abi(), bstrattribval.into().abi()) + pub unsafe fn MediaCollectionAttributeStringAdded(&self, bstrattribname: &::windows::core::BSTR, bstrattribval: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).base__.base__.MediaCollectionAttributeStringAdded)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrattribname), ::core::mem::transmute_copy(bstrattribval)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MediaCollectionAttributeStringRemoved<'a, P0, P1>(&self, bstrattribname: P0, bstrattribval: P1) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.MediaCollectionAttributeStringRemoved)(::windows::core::Interface::as_raw(self), bstrattribname.into().abi(), bstrattribval.into().abi()) + pub unsafe fn MediaCollectionAttributeStringRemoved(&self, bstrattribname: &::windows::core::BSTR, bstrattribval: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).base__.base__.MediaCollectionAttributeStringRemoved)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrattribname), ::core::mem::transmute_copy(bstrattribval)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MediaCollectionAttributeStringChanged<'a, P0, P1, P2>(&self, bstrattribname: P0, bstroldattribval: P1, bstrnewattribval: P2) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.MediaCollectionAttributeStringChanged)(::windows::core::Interface::as_raw(self), bstrattribname.into().abi(), bstroldattribval.into().abi(), bstrnewattribval.into().abi()) + pub unsafe fn MediaCollectionAttributeStringChanged(&self, bstrattribname: &::windows::core::BSTR, bstroldattribval: &::windows::core::BSTR, bstrnewattribval: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).base__.base__.MediaCollectionAttributeStringChanged)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrattribname), ::core::mem::transmute_copy(bstroldattribval), ::core::mem::transmute_copy(bstrnewattribval)) } pub unsafe fn PlaylistCollectionChange(&self) { (::windows::core::Interface::vtable(self).base__.base__.PlaylistCollectionChange)(::windows::core::Interface::as_raw(self)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PlaylistCollectionPlaylistAdded<'a, P0>(&self, bstrplaylistname: P0) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.PlaylistCollectionPlaylistAdded)(::windows::core::Interface::as_raw(self), bstrplaylistname.into().abi()) + pub unsafe fn PlaylistCollectionPlaylistAdded(&self, bstrplaylistname: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).base__.base__.PlaylistCollectionPlaylistAdded)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrplaylistname)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PlaylistCollectionPlaylistRemoved<'a, P0>(&self, bstrplaylistname: P0) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.PlaylistCollectionPlaylistRemoved)(::windows::core::Interface::as_raw(self), bstrplaylistname.into().abi()) + pub unsafe fn PlaylistCollectionPlaylistRemoved(&self, bstrplaylistname: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).base__.base__.PlaylistCollectionPlaylistRemoved)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrplaylistname)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PlaylistCollectionPlaylistSetAsDeleted<'a, P0>(&self, bstrplaylistname: P0, varfisdeleted: i16) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.PlaylistCollectionPlaylistSetAsDeleted)(::windows::core::Interface::as_raw(self), bstrplaylistname.into().abi(), varfisdeleted) + pub unsafe fn PlaylistCollectionPlaylistSetAsDeleted(&self, bstrplaylistname: &::windows::core::BSTR, varfisdeleted: i16) { + (::windows::core::Interface::vtable(self).base__.base__.PlaylistCollectionPlaylistSetAsDeleted)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrplaylistname), varfisdeleted) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ModeChange<'a, P0>(&self, modename: P0, newvalue: i16) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.ModeChange)(::windows::core::Interface::as_raw(self), modename.into().abi(), newvalue) + pub unsafe fn ModeChange(&self, modename: &::windows::core::BSTR, newvalue: i16) { + (::windows::core::Interface::vtable(self).base__.base__.ModeChange)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(modename), newvalue) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7215,13 +5949,8 @@ impl IWMPEvents3 { { (::windows::core::Interface::vtable(self).base__.base__.OpenPlaylistSwitch)(::windows::core::Interface::as_raw(self), pitem.into().abi()) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DomainChange<'a, P0>(&self, strdomain: P0) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.DomainChange)(::windows::core::Interface::as_raw(self), strdomain.into().abi()) + pub unsafe fn DomainChange(&self, strdomain: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).base__.base__.DomainChange)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strdomain)) } pub unsafe fn SwitchedToPlayerApplication(&self) { (::windows::core::Interface::vtable(self).base__.base__.SwitchedToPlayerApplication)(::windows::core::Interface::as_raw(self)) @@ -7486,14 +6215,8 @@ impl IWMPEvents4 { pub unsafe fn StatusChange(&self) { (::windows::core::Interface::vtable(self).base__.base__.base__.StatusChange)(::windows::core::Interface::as_raw(self)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ScriptCommand<'a, P0, P1>(&self, sctype: P0, param: P1) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.ScriptCommand)(::windows::core::Interface::as_raw(self), sctype.into().abi(), param.into().abi()) + pub unsafe fn ScriptCommand(&self, sctype: &::windows::core::BSTR, param: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).base__.base__.base__.ScriptCommand)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(sctype), ::core::mem::transmute_copy(param)) } pub unsafe fn NewStream(&self) { (::windows::core::Interface::vtable(self).base__.base__.base__.NewStream)(::windows::core::Interface::as_raw(self)) @@ -7507,13 +6230,8 @@ impl IWMPEvents4 { pub unsafe fn Error(&self) { (::windows::core::Interface::vtable(self).base__.base__.base__.Error)(::windows::core::Interface::as_raw(self)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Warning<'a, P0>(&self, warningtype: i32, param: i32, description: P0) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.Warning)(::windows::core::Interface::as_raw(self), warningtype, param, description.into().abi()) + pub unsafe fn Warning(&self, warningtype: i32, param: i32, description: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).base__.base__.base__.Warning)(::windows::core::Interface::as_raw(self), warningtype, param, ::core::mem::transmute_copy(description)) } pub unsafe fn EndOfStream(&self, result: i32) { (::windows::core::Interface::vtable(self).base__.base__.base__.EndOfStream)(::windows::core::Interface::as_raw(self), result) @@ -7541,13 +6259,8 @@ impl IWMPEvents4 { pub unsafe fn CurrentPlaylistChange(&self, change: WMPPlaylistChangeEventType) { (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentPlaylistChange)(::windows::core::Interface::as_raw(self), change) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentPlaylistItemAvailable<'a, P0>(&self, bstritemname: P0) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentPlaylistItemAvailable)(::windows::core::Interface::as_raw(self), bstritemname.into().abi()) + pub unsafe fn CurrentPlaylistItemAvailable(&self, bstritemname: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentPlaylistItemAvailable)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstritemname)) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7557,13 +6270,8 @@ impl IWMPEvents4 { { (::windows::core::Interface::vtable(self).base__.base__.base__.MediaChange)(::windows::core::Interface::as_raw(self), item.into().abi()) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentMediaItemAvailable<'a, P0>(&self, bstritemname: P0) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentMediaItemAvailable)(::windows::core::Interface::as_raw(self), bstritemname.into().abi()) + pub unsafe fn CurrentMediaItemAvailable(&self, bstritemname: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentMediaItemAvailable)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstritemname)) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7576,68 +6284,29 @@ impl IWMPEvents4 { pub unsafe fn MediaCollectionChange(&self) { (::windows::core::Interface::vtable(self).base__.base__.base__.MediaCollectionChange)(::windows::core::Interface::as_raw(self)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MediaCollectionAttributeStringAdded<'a, P0, P1>(&self, bstrattribname: P0, bstrattribval: P1) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.MediaCollectionAttributeStringAdded)(::windows::core::Interface::as_raw(self), bstrattribname.into().abi(), bstrattribval.into().abi()) + pub unsafe fn MediaCollectionAttributeStringAdded(&self, bstrattribname: &::windows::core::BSTR, bstrattribval: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).base__.base__.base__.MediaCollectionAttributeStringAdded)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrattribname), ::core::mem::transmute_copy(bstrattribval)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MediaCollectionAttributeStringRemoved<'a, P0, P1>(&self, bstrattribname: P0, bstrattribval: P1) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.MediaCollectionAttributeStringRemoved)(::windows::core::Interface::as_raw(self), bstrattribname.into().abi(), bstrattribval.into().abi()) + pub unsafe fn MediaCollectionAttributeStringRemoved(&self, bstrattribname: &::windows::core::BSTR, bstrattribval: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).base__.base__.base__.MediaCollectionAttributeStringRemoved)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrattribname), ::core::mem::transmute_copy(bstrattribval)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MediaCollectionAttributeStringChanged<'a, P0, P1, P2>(&self, bstrattribname: P0, bstroldattribval: P1, bstrnewattribval: P2) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.MediaCollectionAttributeStringChanged)(::windows::core::Interface::as_raw(self), bstrattribname.into().abi(), bstroldattribval.into().abi(), bstrnewattribval.into().abi()) + pub unsafe fn MediaCollectionAttributeStringChanged(&self, bstrattribname: &::windows::core::BSTR, bstroldattribval: &::windows::core::BSTR, bstrnewattribval: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).base__.base__.base__.MediaCollectionAttributeStringChanged)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrattribname), ::core::mem::transmute_copy(bstroldattribval), ::core::mem::transmute_copy(bstrnewattribval)) } pub unsafe fn PlaylistCollectionChange(&self) { (::windows::core::Interface::vtable(self).base__.base__.base__.PlaylistCollectionChange)(::windows::core::Interface::as_raw(self)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PlaylistCollectionPlaylistAdded<'a, P0>(&self, bstrplaylistname: P0) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.PlaylistCollectionPlaylistAdded)(::windows::core::Interface::as_raw(self), bstrplaylistname.into().abi()) + pub unsafe fn PlaylistCollectionPlaylistAdded(&self, bstrplaylistname: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).base__.base__.base__.PlaylistCollectionPlaylistAdded)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrplaylistname)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PlaylistCollectionPlaylistRemoved<'a, P0>(&self, bstrplaylistname: P0) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.PlaylistCollectionPlaylistRemoved)(::windows::core::Interface::as_raw(self), bstrplaylistname.into().abi()) + pub unsafe fn PlaylistCollectionPlaylistRemoved(&self, bstrplaylistname: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).base__.base__.base__.PlaylistCollectionPlaylistRemoved)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrplaylistname)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PlaylistCollectionPlaylistSetAsDeleted<'a, P0>(&self, bstrplaylistname: P0, varfisdeleted: i16) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.PlaylistCollectionPlaylistSetAsDeleted)(::windows::core::Interface::as_raw(self), bstrplaylistname.into().abi(), varfisdeleted) + pub unsafe fn PlaylistCollectionPlaylistSetAsDeleted(&self, bstrplaylistname: &::windows::core::BSTR, varfisdeleted: i16) { + (::windows::core::Interface::vtable(self).base__.base__.base__.PlaylistCollectionPlaylistSetAsDeleted)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrplaylistname), varfisdeleted) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ModeChange<'a, P0>(&self, modename: P0, newvalue: i16) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.ModeChange)(::windows::core::Interface::as_raw(self), modename.into().abi(), newvalue) + pub unsafe fn ModeChange(&self, modename: &::windows::core::BSTR, newvalue: i16) { + (::windows::core::Interface::vtable(self).base__.base__.base__.ModeChange)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(modename), newvalue) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7655,13 +6324,8 @@ impl IWMPEvents4 { { (::windows::core::Interface::vtable(self).base__.base__.base__.OpenPlaylistSwitch)(::windows::core::Interface::as_raw(self), pitem.into().abi()) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DomainChange<'a, P0>(&self, strdomain: P0) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.DomainChange)(::windows::core::Interface::as_raw(self), strdomain.into().abi()) + pub unsafe fn DomainChange(&self, strdomain: &::windows::core::BSTR) { + (::windows::core::Interface::vtable(self).base__.base__.base__.DomainChange)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strdomain)) } pub unsafe fn SwitchedToPlayerApplication(&self) { (::windows::core::Interface::vtable(self).base__.base__.base__.SwitchedToPlayerApplication)(::windows::core::Interface::as_raw(self)) @@ -7912,19 +6576,12 @@ pub struct IWMPFolderMonitorServices(::windows::core::IUnknown); impl IWMPFolderMonitorServices { pub unsafe fn count(&self, plcount: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).count)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(plcount)).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn item(&self, lindex: i32, pbstrfolder: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + } + pub unsafe fn item(&self, lindex: i32, pbstrfolder: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).item)(::windows::core::Interface::as_raw(self), lindex, ::core::mem::transmute(pbstrfolder)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn add<'a, P0>(&self, bstrfolder: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).add)(::windows::core::Interface::as_raw(self), bstrfolder.into().abi()).ok() + pub unsafe fn add(&self, bstrfolder: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).add)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrfolder)).ok() } pub unsafe fn remove(&self, lindex: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).remove)(::windows::core::Interface::as_raw(self), lindex).ok() @@ -7932,9 +6589,7 @@ impl IWMPFolderMonitorServices { pub unsafe fn scanState(&self, pwmpfss: &mut WMPFolderScanState) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).scanState)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pwmpfss)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn currentFolder(&self, pbstrfolder: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn currentFolder(&self, pbstrfolder: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).currentFolder)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrfolder)).ok() } pub unsafe fn scannedFilesCount(&self, plcount: &mut i32) -> ::windows::core::Result<()> { @@ -7993,20 +6648,11 @@ unsafe impl ::windows::core::Interface for IWMPFolderMonitorServices { pub struct IWMPFolderMonitorServices_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lindex: i32, pbstrfolder: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - item: usize, - #[cfg(feature = "Win32_Foundation")] - pub add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfolder: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - add: usize, + pub item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lindex: i32, pbstrfolder: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfolder: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lindex: i32) -> ::windows::core::HRESULT, pub scanState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwmpfss: *mut WMPFolderScanState) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub currentFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfolder: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - currentFolder: usize, + pub currentFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfolder: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub scannedFilesCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut i32) -> ::windows::core::HRESULT, pub addedFilesCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut i32) -> ::windows::core::HRESULT, pub updateProgress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plprogress: *mut i32) -> ::windows::core::HRESULT, @@ -8081,9 +6727,7 @@ pub struct IWMPGraphCreation_Vtbl { #[repr(transparent)] pub struct IWMPLibrary(::windows::core::IUnknown); impl IWMPLibrary { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn name(&self, pbstrname: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn name(&self, pbstrname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrname)).ok() } pub unsafe fn r#type(&self, pwmplt: &mut WMPLibraryType) -> ::windows::core::Result<()> { @@ -8141,10 +6785,7 @@ unsafe impl ::windows::core::Interface for IWMPLibrary { #[doc(hidden)] pub struct IWMPLibrary_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - name: usize, + pub name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub r#type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwmplt: *mut WMPLibraryType) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub mediaCollection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppiwmpmediacollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -8156,9 +6797,7 @@ pub struct IWMPLibrary_Vtbl { #[repr(transparent)] pub struct IWMPLibrary2(::windows::core::IUnknown); impl IWMPLibrary2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn name(&self, pbstrname: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn name(&self, pbstrname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrname)).ok() } pub unsafe fn r#type(&self, pwmplt: &mut WMPLibraryType) -> ::windows::core::Result<()> { @@ -8176,13 +6815,8 @@ impl IWMPLibrary2 { { (::windows::core::Interface::vtable(self).base__.isIdentical)(::windows::core::Interface::as_raw(self), piwmplibrary.into().abi(), ::core::mem::transmute(pvbool)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getItemInfo<'a, P0>(&self, bstritemname: P0, pbstrval: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).getItemInfo)(::windows::core::Interface::as_raw(self), bstritemname.into().abi(), ::core::mem::transmute(pbstrval)).ok() + pub unsafe fn getItemInfo(&self, bstritemname: &::windows::core::BSTR, pbstrval: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).getItemInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstritemname), ::core::mem::transmute(pbstrval)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -8239,10 +6873,7 @@ unsafe impl ::windows::core::Interface for IWMPLibrary2 { #[doc(hidden)] pub struct IWMPLibrary2_Vtbl { pub base__: IWMPLibrary_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub getItemInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop, pbstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getItemInfo: usize, + pub getItemInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_MediaPlayer\"`*"] #[repr(transparent)] @@ -8369,23 +7000,14 @@ impl IWMPMedia { { (::windows::core::Interface::vtable(self).get_isIdentical)(::windows::core::Interface::as_raw(self), piwmpmedia.into().abi(), ::core::mem::transmute(pvbool)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn sourceURL(&self, pbstrsourceurl: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn sourceURL(&self, pbstrsourceurl: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).sourceURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrsourceurl)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn name(&self, pbstrname: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn name(&self, pbstrname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Setname<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Setname)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn Setname(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Setname)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } pub unsafe fn imageSourceWidth(&self, pwidth: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).imageSourceWidth)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pwidth)).ok() @@ -8399,47 +7021,28 @@ impl IWMPMedia { pub unsafe fn getMarkerTime(&self, markernum: i32, pmarkertime: &mut f64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).getMarkerTime)(::windows::core::Interface::as_raw(self), markernum, ::core::mem::transmute(pmarkertime)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getMarkerName(&self, markernum: i32, pbstrmarkername: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn getMarkerName(&self, markernum: i32, pbstrmarkername: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).getMarkerName)(::windows::core::Interface::as_raw(self), markernum, ::core::mem::transmute(pbstrmarkername)).ok() } pub unsafe fn duration(&self, pduration: &mut f64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).duration)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pduration)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn durationString(&self, pbstrduration: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn durationString(&self, pbstrduration: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).durationString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrduration)).ok() } pub unsafe fn attributeCount(&self, plcount: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).attributeCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(plcount)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getAttributeName(&self, lindex: i32, pbstritemname: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn getAttributeName(&self, lindex: i32, pbstritemname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).getAttributeName)(::windows::core::Interface::as_raw(self), lindex, ::core::mem::transmute(pbstritemname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getItemInfo<'a, P0>(&self, bstritemname: P0, pbstrval: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).getItemInfo)(::windows::core::Interface::as_raw(self), bstritemname.into().abi(), ::core::mem::transmute(pbstrval)).ok() + pub unsafe fn getItemInfo(&self, bstritemname: &::windows::core::BSTR, pbstrval: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).getItemInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstritemname), ::core::mem::transmute(pbstrval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn setItemInfo<'a, P0, P1>(&self, bstritemname: P0, bstrval: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).setItemInfo)(::windows::core::Interface::as_raw(self), bstritemname.into().abi(), bstrval.into().abi()).ok() + pub unsafe fn setItemInfo(&self, bstritemname: &::windows::core::BSTR, bstrval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).setItemInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstritemname), ::core::mem::transmute_copy(bstrval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getItemInfoByAtom(&self, latom: i32, pbstrval: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn getItemInfoByAtom(&self, latom: i32, pbstrval: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).getItemInfoByAtom)(::windows::core::Interface::as_raw(self), latom, ::core::mem::transmute(pbstrval)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] @@ -8450,13 +7053,8 @@ impl IWMPMedia { { (::windows::core::Interface::vtable(self).isMemberOf)(::windows::core::Interface::as_raw(self), pplaylist.into().abi(), ::core::mem::transmute(pvarfismemberof)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn isReadOnlyItem<'a, P0>(&self, bstritemname: P0, pvarfisreadonly: &mut i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).isReadOnlyItem)(::windows::core::Interface::as_raw(self), bstritemname.into().abi(), ::core::mem::transmute(pvarfisreadonly)).ok() + pub unsafe fn isReadOnlyItem(&self, bstritemname: &::windows::core::BSTR, pvarfisreadonly: &mut i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).isReadOnlyItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstritemname), ::core::mem::transmute(pvarfisreadonly)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -8529,56 +7127,26 @@ pub struct IWMPMedia_Vtbl { pub get_isIdentical: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, piwmpmedia: *mut ::core::ffi::c_void, pvbool: *mut i16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] get_isIdentical: usize, - #[cfg(feature = "Win32_Foundation")] - pub sourceURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsourceurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - sourceURL: usize, - #[cfg(feature = "Win32_Foundation")] - pub name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - name: usize, - #[cfg(feature = "Win32_Foundation")] - pub Setname: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Setname: usize, + pub sourceURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsourceurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Setname: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub imageSourceWidth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwidth: *mut i32) -> ::windows::core::HRESULT, pub imageSourceHeight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pheight: *mut i32) -> ::windows::core::HRESULT, pub markerCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmarkercount: *mut i32) -> ::windows::core::HRESULT, pub getMarkerTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, markernum: i32, pmarkertime: *mut f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub getMarkerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, markernum: i32, pbstrmarkername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getMarkerName: usize, + pub getMarkerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, markernum: i32, pbstrmarkername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub duration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pduration: *mut f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub durationString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrduration: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - durationString: usize, + pub durationString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrduration: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub attributeCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub getAttributeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lindex: i32, pbstritemname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getAttributeName: usize, - #[cfg(feature = "Win32_Foundation")] - pub getItemInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop, pbstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getItemInfo: usize, - #[cfg(feature = "Win32_Foundation")] - pub setItemInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop, bstrval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - setItemInfo: usize, - #[cfg(feature = "Win32_Foundation")] - pub getItemInfoByAtom: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, latom: i32, pbstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getItemInfoByAtom: usize, + pub getAttributeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lindex: i32, pbstritemname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub getItemInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub setItemInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub getItemInfoByAtom: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, latom: i32, pbstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub isMemberOf: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pplaylist: *mut ::core::ffi::c_void, pvarfismemberof: *mut i16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] isMemberOf: usize, - #[cfg(feature = "Win32_Foundation")] - pub isReadOnlyItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop, pvarfisreadonly: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - isReadOnlyItem: usize, + pub isReadOnlyItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarfisreadonly: *mut i16) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_MediaPlayer\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -8594,23 +7162,14 @@ impl IWMPMedia2 { { (::windows::core::Interface::vtable(self).base__.get_isIdentical)(::windows::core::Interface::as_raw(self), piwmpmedia.into().abi(), ::core::mem::transmute(pvbool)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn sourceURL(&self, pbstrsourceurl: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn sourceURL(&self, pbstrsourceurl: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.sourceURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrsourceurl)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn name(&self, pbstrname: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn name(&self, pbstrname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Setname<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.Setname)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn Setname(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.Setname)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } pub unsafe fn imageSourceWidth(&self, pwidth: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.imageSourceWidth)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pwidth)).ok() @@ -8624,47 +7183,28 @@ impl IWMPMedia2 { pub unsafe fn getMarkerTime(&self, markernum: i32, pmarkertime: &mut f64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.getMarkerTime)(::windows::core::Interface::as_raw(self), markernum, ::core::mem::transmute(pmarkertime)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getMarkerName(&self, markernum: i32, pbstrmarkername: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn getMarkerName(&self, markernum: i32, pbstrmarkername: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.getMarkerName)(::windows::core::Interface::as_raw(self), markernum, ::core::mem::transmute(pbstrmarkername)).ok() } pub unsafe fn duration(&self, pduration: &mut f64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.duration)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pduration)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn durationString(&self, pbstrduration: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn durationString(&self, pbstrduration: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.durationString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrduration)).ok() } pub unsafe fn attributeCount(&self, plcount: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.attributeCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(plcount)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getAttributeName(&self, lindex: i32, pbstritemname: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn getAttributeName(&self, lindex: i32, pbstritemname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.getAttributeName)(::windows::core::Interface::as_raw(self), lindex, ::core::mem::transmute(pbstritemname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getItemInfo<'a, P0>(&self, bstritemname: P0, pbstrval: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.getItemInfo)(::windows::core::Interface::as_raw(self), bstritemname.into().abi(), ::core::mem::transmute(pbstrval)).ok() + pub unsafe fn getItemInfo(&self, bstritemname: &::windows::core::BSTR, pbstrval: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.getItemInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstritemname), ::core::mem::transmute(pbstrval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn setItemInfo<'a, P0, P1>(&self, bstritemname: P0, bstrval: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.setItemInfo)(::windows::core::Interface::as_raw(self), bstritemname.into().abi(), bstrval.into().abi()).ok() + pub unsafe fn setItemInfo(&self, bstritemname: &::windows::core::BSTR, bstrval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.setItemInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstritemname), ::core::mem::transmute_copy(bstrval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getItemInfoByAtom(&self, latom: i32, pbstrval: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn getItemInfoByAtom(&self, latom: i32, pbstrval: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.getItemInfoByAtom)(::windows::core::Interface::as_raw(self), latom, ::core::mem::transmute(pbstrval)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] @@ -8675,13 +7215,8 @@ impl IWMPMedia2 { { (::windows::core::Interface::vtable(self).base__.isMemberOf)(::windows::core::Interface::as_raw(self), pplaylist.into().abi(), ::core::mem::transmute(pvarfismemberof)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn isReadOnlyItem<'a, P0>(&self, bstritemname: P0, pvarfisreadonly: &mut i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.isReadOnlyItem)(::windows::core::Interface::as_raw(self), bstritemname.into().abi(), ::core::mem::transmute(pvarfisreadonly)).ok() + pub unsafe fn isReadOnlyItem(&self, bstritemname: &::windows::core::BSTR, pvarfisreadonly: &mut i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.isReadOnlyItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstritemname), ::core::mem::transmute(pvarfisreadonly)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -8793,23 +7328,14 @@ impl IWMPMedia3 { { (::windows::core::Interface::vtable(self).base__.base__.get_isIdentical)(::windows::core::Interface::as_raw(self), piwmpmedia.into().abi(), ::core::mem::transmute(pvbool)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn sourceURL(&self, pbstrsourceurl: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn sourceURL(&self, pbstrsourceurl: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.sourceURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrsourceurl)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn name(&self, pbstrname: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn name(&self, pbstrname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Setname<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.Setname)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn Setname(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.Setname)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } pub unsafe fn imageSourceWidth(&self, pwidth: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.imageSourceWidth)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pwidth)).ok() @@ -8823,47 +7349,28 @@ impl IWMPMedia3 { pub unsafe fn getMarkerTime(&self, markernum: i32, pmarkertime: &mut f64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.getMarkerTime)(::windows::core::Interface::as_raw(self), markernum, ::core::mem::transmute(pmarkertime)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getMarkerName(&self, markernum: i32, pbstrmarkername: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn getMarkerName(&self, markernum: i32, pbstrmarkername: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.getMarkerName)(::windows::core::Interface::as_raw(self), markernum, ::core::mem::transmute(pbstrmarkername)).ok() } pub unsafe fn duration(&self, pduration: &mut f64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.duration)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pduration)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn durationString(&self, pbstrduration: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn durationString(&self, pbstrduration: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.durationString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrduration)).ok() } pub unsafe fn attributeCount(&self, plcount: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.attributeCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(plcount)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getAttributeName(&self, lindex: i32, pbstritemname: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn getAttributeName(&self, lindex: i32, pbstritemname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.getAttributeName)(::windows::core::Interface::as_raw(self), lindex, ::core::mem::transmute(pbstritemname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getItemInfo<'a, P0>(&self, bstritemname: P0, pbstrval: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.getItemInfo)(::windows::core::Interface::as_raw(self), bstritemname.into().abi(), ::core::mem::transmute(pbstrval)).ok() + pub unsafe fn getItemInfo(&self, bstritemname: &::windows::core::BSTR, pbstrval: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.getItemInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstritemname), ::core::mem::transmute(pbstrval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn setItemInfo<'a, P0, P1>(&self, bstritemname: P0, bstrval: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.setItemInfo)(::windows::core::Interface::as_raw(self), bstritemname.into().abi(), bstrval.into().abi()).ok() + pub unsafe fn setItemInfo(&self, bstritemname: &::windows::core::BSTR, bstrval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.setItemInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstritemname), ::core::mem::transmute_copy(bstrval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getItemInfoByAtom(&self, latom: i32, pbstrval: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn getItemInfoByAtom(&self, latom: i32, pbstrval: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.getItemInfoByAtom)(::windows::core::Interface::as_raw(self), latom, ::core::mem::transmute(pbstrval)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] @@ -8874,13 +7381,8 @@ impl IWMPMedia3 { { (::windows::core::Interface::vtable(self).base__.base__.isMemberOf)(::windows::core::Interface::as_raw(self), pplaylist.into().abi(), ::core::mem::transmute(pvarfismemberof)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn isReadOnlyItem<'a, P0>(&self, bstritemname: P0, pvarfisreadonly: &mut i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.isReadOnlyItem)(::windows::core::Interface::as_raw(self), bstritemname.into().abi(), ::core::mem::transmute(pvarfisreadonly)).ok() + pub unsafe fn isReadOnlyItem(&self, bstritemname: &::windows::core::BSTR, pvarfisreadonly: &mut i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.isReadOnlyItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstritemname), ::core::mem::transmute(pvarfisreadonly)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -8888,23 +7390,13 @@ impl IWMPMedia3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.error)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getAttributeCountByType<'a, P0, P1>(&self, bstrtype: P0, bstrlanguage: P1, plcount: &mut i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).getAttributeCountByType)(::windows::core::Interface::as_raw(self), bstrtype.into().abi(), bstrlanguage.into().abi(), ::core::mem::transmute(plcount)).ok() + pub unsafe fn getAttributeCountByType(&self, bstrtype: &::windows::core::BSTR, bstrlanguage: &::windows::core::BSTR, plcount: &mut i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).getAttributeCountByType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtype), ::core::mem::transmute_copy(bstrlanguage), ::core::mem::transmute(plcount)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn getItemInfoByType<'a, P0, P1>(&self, bstrtype: P0, bstrlanguage: P1, lindex: i32, pvarvalue: &mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).getItemInfoByType)(::windows::core::Interface::as_raw(self), bstrtype.into().abi(), bstrlanguage.into().abi(), lindex, ::core::mem::transmute(pvarvalue)).ok() + pub unsafe fn getItemInfoByType(&self, bstrtype: &::windows::core::BSTR, bstrlanguage: &::windows::core::BSTR, lindex: i32, pvarvalue: &mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).getItemInfoByType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtype), ::core::mem::transmute_copy(bstrlanguage), lindex, ::core::mem::transmute(pvarvalue)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -9009,12 +7501,9 @@ unsafe impl ::windows::core::Interface for IWMPMedia3 { #[doc(hidden)] pub struct IWMPMedia3_Vtbl { pub base__: IWMPMedia2_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub getAttributeCountByType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtype: ::core::mem::ManuallyDrop, bstrlanguage: ::core::mem::ManuallyDrop, plcount: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getAttributeCountByType: usize, + pub getAttributeCountByType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrlanguage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, plcount: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub getItemInfoByType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtype: ::core::mem::ManuallyDrop, bstrlanguage: ::core::mem::ManuallyDrop, lindex: i32, pvarvalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub getItemInfoByType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrlanguage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lindex: i32, pvarvalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] getItemInfoByType: usize, } @@ -9024,14 +7513,11 @@ pub struct IWMPMedia3_Vtbl { pub struct IWMPMediaCollection(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWMPMediaCollection { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn add<'a, P0>(&self, bstrurl: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn add(&self, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).add)(::windows::core::Interface::as_raw(self), bstrurl.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).add)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrurl), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9039,51 +7525,35 @@ impl IWMPMediaCollection { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).getAll)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn getByName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn getByName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getByName)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getByName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn getByGenre<'a, P0>(&self, bstrgenre: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn getByGenre(&self, bstrgenre: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getByGenre)(::windows::core::Interface::as_raw(self), bstrgenre.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getByGenre)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrgenre), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn getByAuthor<'a, P0>(&self, bstrauthor: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn getByAuthor(&self, bstrauthor: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getByAuthor)(::windows::core::Interface::as_raw(self), bstrauthor.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getByAuthor)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrauthor), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn getByAlbum<'a, P0>(&self, bstralbum: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn getByAlbum(&self, bstralbum: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getByAlbum)(::windows::core::Interface::as_raw(self), bstralbum.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getByAlbum)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstralbum), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn getByAttribute<'a, P0, P1>(&self, bstrattribute: P0, bstrvalue: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn getByAttribute(&self, bstrattribute: &::windows::core::BSTR, bstrvalue: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getByAttribute)(::windows::core::Interface::as_raw(self), bstrattribute.into().abi(), bstrvalue.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getByAttribute)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrattribute), ::core::mem::transmute_copy(bstrvalue), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9093,23 +7563,14 @@ impl IWMPMediaCollection { { (::windows::core::Interface::vtable(self).remove)(::windows::core::Interface::as_raw(self), pitem.into().abi(), varfdeletefile).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn getAttributeStringCollection<'a, P0, P1>(&self, bstrattribute: P0, bstrmediatype: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn getAttributeStringCollection(&self, bstrattribute: &::windows::core::BSTR, bstrmediatype: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getAttributeStringCollection)(::windows::core::Interface::as_raw(self), bstrattribute.into().abi(), bstrmediatype.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getAttributeStringCollection)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrattribute), ::core::mem::transmute_copy(bstrmediatype), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getMediaAtom<'a, P0>(&self, bstritemname: P0, platom: &mut i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).getMediaAtom)(::windows::core::Interface::as_raw(self), bstritemname.into().abi(), ::core::mem::transmute(platom)).ok() + pub unsafe fn getMediaAtom(&self, bstritemname: &::windows::core::BSTR, platom: &mut i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).getMediaAtom)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstritemname), ::core::mem::transmute(platom)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9194,46 +7655,43 @@ unsafe impl ::windows::core::Interface for IWMPMediaCollection { #[doc(hidden)] pub struct IWMPMediaCollection_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop, ppitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] add: usize, #[cfg(feature = "Win32_System_Com")] pub getAll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppmediaitems: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] getAll: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub getByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, ppmediaitems: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub getByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppmediaitems: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] getByName: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub getByGenre: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgenre: ::core::mem::ManuallyDrop, ppmediaitems: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub getByGenre: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgenre: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppmediaitems: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] getByGenre: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub getByAuthor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrauthor: ::core::mem::ManuallyDrop, ppmediaitems: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub getByAuthor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrauthor: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppmediaitems: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] getByAuthor: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub getByAlbum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstralbum: ::core::mem::ManuallyDrop, ppmediaitems: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub getByAlbum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstralbum: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppmediaitems: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] getByAlbum: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub getByAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrattribute: ::core::mem::ManuallyDrop, bstrvalue: ::core::mem::ManuallyDrop, ppmediaitems: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub getByAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrattribute: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppmediaitems: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] getByAttribute: usize, #[cfg(feature = "Win32_System_Com")] pub remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pitem: *mut ::core::ffi::c_void, varfdeletefile: i16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] remove: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub getAttributeStringCollection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrattribute: ::core::mem::ManuallyDrop, bstrmediatype: ::core::mem::ManuallyDrop, ppstringcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub getAttributeStringCollection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrattribute: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrmediatype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppstringcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] getAttributeStringCollection: usize, - #[cfg(feature = "Win32_Foundation")] - pub getMediaAtom: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop, platom: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getMediaAtom: usize, + pub getMediaAtom: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, platom: *mut i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub setDeleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pitem: *mut ::core::ffi::c_void, varfisdeleted: i16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -9249,14 +7707,11 @@ pub struct IWMPMediaCollection_Vtbl { pub struct IWMPMediaCollection2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWMPMediaCollection2 { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn add<'a, P0>(&self, bstrurl: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn add(&self, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.add)(::windows::core::Interface::as_raw(self), bstrurl.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.add)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrurl), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9264,51 +7719,35 @@ impl IWMPMediaCollection2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.getAll)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn getByName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn getByName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.getByName)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.getByName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn getByGenre<'a, P0>(&self, bstrgenre: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn getByGenre(&self, bstrgenre: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.getByGenre)(::windows::core::Interface::as_raw(self), bstrgenre.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.getByGenre)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrgenre), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn getByAuthor<'a, P0>(&self, bstrauthor: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn getByAuthor(&self, bstrauthor: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.getByAuthor)(::windows::core::Interface::as_raw(self), bstrauthor.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.getByAuthor)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrauthor), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn getByAlbum<'a, P0>(&self, bstralbum: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn getByAlbum(&self, bstralbum: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.getByAlbum)(::windows::core::Interface::as_raw(self), bstralbum.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.getByAlbum)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstralbum), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn getByAttribute<'a, P0, P1>(&self, bstrattribute: P0, bstrvalue: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn getByAttribute(&self, bstrattribute: &::windows::core::BSTR, bstrvalue: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.getByAttribute)(::windows::core::Interface::as_raw(self), bstrattribute.into().abi(), bstrvalue.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.getByAttribute)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrattribute), ::core::mem::transmute_copy(bstrvalue), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9318,23 +7757,14 @@ impl IWMPMediaCollection2 { { (::windows::core::Interface::vtable(self).base__.remove)(::windows::core::Interface::as_raw(self), pitem.into().abi(), varfdeletefile).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn getAttributeStringCollection<'a, P0, P1>(&self, bstrattribute: P0, bstrmediatype: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn getAttributeStringCollection(&self, bstrattribute: &::windows::core::BSTR, bstrmediatype: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.getAttributeStringCollection)(::windows::core::Interface::as_raw(self), bstrattribute.into().abi(), bstrmediatype.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.getAttributeStringCollection)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrattribute), ::core::mem::transmute_copy(bstrmediatype), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getMediaAtom<'a, P0>(&self, bstritemname: P0, platom: &mut i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.getMediaAtom)(::windows::core::Interface::as_raw(self), bstritemname.into().abi(), ::core::mem::transmute(platom)).ok() + pub unsafe fn getMediaAtom(&self, bstritemname: &::windows::core::BSTR, platom: &mut i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.getMediaAtom)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstritemname), ::core::mem::transmute(platom)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9358,39 +7788,29 @@ impl IWMPMediaCollection2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).createQuery)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn getPlaylistByQuery<'a, P0, P1, P2>(&self, pquery: P0, bstrmediatype: P1, bstrsortattribute: P2, fsortascending: i16) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn getPlaylistByQuery<'a, P0>(&self, pquery: P0, bstrmediatype: &::windows::core::BSTR, bstrsortattribute: &::windows::core::BSTR, fsortascending: i16) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, IWMPQuery>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getPlaylistByQuery)(::windows::core::Interface::as_raw(self), pquery.into().abi(), bstrmediatype.into().abi(), bstrsortattribute.into().abi(), fsortascending, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getPlaylistByQuery)(::windows::core::Interface::as_raw(self), pquery.into().abi(), ::core::mem::transmute_copy(bstrmediatype), ::core::mem::transmute_copy(bstrsortattribute), fsortascending, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn getStringCollectionByQuery<'a, P0, P1, P2, P3>(&self, bstrattribute: P0, pquery: P1, bstrmediatype: P2, bstrsortattribute: P3, fsortascending: i16) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn getStringCollectionByQuery<'a, P0>(&self, bstrattribute: &::windows::core::BSTR, pquery: P0, bstrmediatype: &::windows::core::BSTR, bstrsortattribute: &::windows::core::BSTR, fsortascending: i16) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IWMPQuery>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IWMPQuery>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getStringCollectionByQuery)(::windows::core::Interface::as_raw(self), bstrattribute.into().abi(), pquery.into().abi(), bstrmediatype.into().abi(), bstrsortattribute.into().abi(), fsortascending, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getStringCollectionByQuery)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrattribute), pquery.into().abi(), ::core::mem::transmute_copy(bstrmediatype), ::core::mem::transmute_copy(bstrsortattribute), fsortascending, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn getByAttributeAndMediaType<'a, P0, P1, P2>(&self, bstrattribute: P0, bstrvalue: P1, bstrmediatype: P2) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn getByAttributeAndMediaType(&self, bstrattribute: &::windows::core::BSTR, bstrvalue: &::windows::core::BSTR, bstrmediatype: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getByAttributeAndMediaType)(::windows::core::Interface::as_raw(self), bstrattribute.into().abi(), bstrvalue.into().abi(), bstrmediatype.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getByAttributeAndMediaType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrattribute), ::core::mem::transmute_copy(bstrvalue), ::core::mem::transmute_copy(bstrmediatype), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -9481,17 +7901,17 @@ pub struct IWMPMediaCollection2_Vtbl { pub createQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppquery: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] createQuery: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub getPlaylistByQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pquery: *mut ::core::ffi::c_void, bstrmediatype: ::core::mem::ManuallyDrop, bstrsortattribute: ::core::mem::ManuallyDrop, fsortascending: i16, ppplaylist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub getPlaylistByQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pquery: *mut ::core::ffi::c_void, bstrmediatype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrsortattribute: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fsortascending: i16, ppplaylist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] getPlaylistByQuery: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub getStringCollectionByQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrattribute: ::core::mem::ManuallyDrop, pquery: *mut ::core::ffi::c_void, bstrmediatype: ::core::mem::ManuallyDrop, bstrsortattribute: ::core::mem::ManuallyDrop, fsortascending: i16, ppstringcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub getStringCollectionByQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrattribute: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pquery: *mut ::core::ffi::c_void, bstrmediatype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrsortattribute: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fsortascending: i16, ppstringcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] getStringCollectionByQuery: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub getByAttributeAndMediaType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrattribute: ::core::mem::ManuallyDrop, bstrvalue: ::core::mem::ManuallyDrop, bstrmediatype: ::core::mem::ManuallyDrop, ppmediaitems: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub getByAttributeAndMediaType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrattribute: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrmediatype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppmediaitems: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] getByAttributeAndMediaType: usize, } #[doc = "*Required features: `\"Win32_Media_MediaPlayer\"`*"] @@ -9558,24 +7978,16 @@ pub struct IWMPMediaPluginRegistrar_Vtbl { pub struct IWMPMetadataPicture(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWMPMetadataPicture { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn mimeType(&self, pbstrmimetype: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn mimeType(&self, pbstrmimetype: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).mimeType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrmimetype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn pictureType(&self, pbstrpicturetype: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn pictureType(&self, pbstrpicturetype: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).pictureType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrpicturetype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn description(&self, pbstrdescription: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn description(&self, pbstrdescription: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrdescription)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn URL(&self, pbstrurl: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn URL(&self, pbstrurl: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).URL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrurl)).ok() } } @@ -9645,22 +8057,10 @@ unsafe impl ::windows::core::Interface for IWMPMetadataPicture { #[doc(hidden)] pub struct IWMPMetadataPicture_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub mimeType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmimetype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - mimeType: usize, - #[cfg(feature = "Win32_Foundation")] - pub pictureType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpicturetype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - pictureType: usize, - #[cfg(feature = "Win32_Foundation")] - pub description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - description: usize, - #[cfg(feature = "Win32_Foundation")] - pub URL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - URL: usize, + pub mimeType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmimetype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub pictureType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpicturetype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub URL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_MediaPlayer\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9668,14 +8068,10 @@ pub struct IWMPMetadataPicture_Vtbl { pub struct IWMPMetadataText(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWMPMetadataText { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn description(&self, pbstrdescription: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn description(&self, pbstrdescription: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrdescription)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn text(&self, pbstrtext: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn text(&self, pbstrtext: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).text)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrtext)).ok() } } @@ -9745,14 +8141,8 @@ unsafe impl ::windows::core::Interface for IWMPMetadataText { #[doc(hidden)] pub struct IWMPMetadataText_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - description: usize, - #[cfg(feature = "Win32_Foundation")] - pub text: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - text: usize, + pub description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub text: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_MediaPlayer\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9766,9 +8156,7 @@ impl IWMPNetwork { pub unsafe fn recoveredPackets(&self, plrecoveredpackets: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).recoveredPackets)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(plrecoveredpackets)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn sourceProtocol(&self, pbstrsourceprotocol: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn sourceProtocol(&self, pbstrsourceprotocol: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).sourceProtocol)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrsourceprotocol)).ok() } pub unsafe fn receivedPackets(&self, plreceivedpackets: &mut i32) -> ::windows::core::Result<()> { @@ -9801,87 +8189,35 @@ impl IWMPNetwork { pub unsafe fn bitRate(&self, plbitrate: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).bitRate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(plbitrate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getProxySettings<'a, P0>(&self, bstrprotocol: P0, plproxysetting: &mut i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).getProxySettings)(::windows::core::Interface::as_raw(self), bstrprotocol.into().abi(), ::core::mem::transmute(plproxysetting)).ok() + pub unsafe fn getProxySettings(&self, bstrprotocol: &::windows::core::BSTR, plproxysetting: &mut i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).getProxySettings)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprotocol), ::core::mem::transmute(plproxysetting)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn setProxySettings<'a, P0>(&self, bstrprotocol: P0, lproxysetting: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).setProxySettings)(::windows::core::Interface::as_raw(self), bstrprotocol.into().abi(), lproxysetting).ok() + pub unsafe fn setProxySettings(&self, bstrprotocol: &::windows::core::BSTR, lproxysetting: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).setProxySettings)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprotocol), lproxysetting).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getProxyName<'a, P0>(&self, bstrprotocol: P0, pbstrproxyname: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).getProxyName)(::windows::core::Interface::as_raw(self), bstrprotocol.into().abi(), ::core::mem::transmute(pbstrproxyname)).ok() + pub unsafe fn getProxyName(&self, bstrprotocol: &::windows::core::BSTR, pbstrproxyname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).getProxyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprotocol), ::core::mem::transmute(pbstrproxyname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn setProxyName<'a, P0, P1>(&self, bstrprotocol: P0, bstrproxyname: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).setProxyName)(::windows::core::Interface::as_raw(self), bstrprotocol.into().abi(), bstrproxyname.into().abi()).ok() + pub unsafe fn setProxyName(&self, bstrprotocol: &::windows::core::BSTR, bstrproxyname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).setProxyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprotocol), ::core::mem::transmute_copy(bstrproxyname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getProxyPort<'a, P0>(&self, bstrprotocol: P0, lproxyport: &mut i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).getProxyPort)(::windows::core::Interface::as_raw(self), bstrprotocol.into().abi(), ::core::mem::transmute(lproxyport)).ok() + pub unsafe fn getProxyPort(&self, bstrprotocol: &::windows::core::BSTR, lproxyport: &mut i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).getProxyPort)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprotocol), ::core::mem::transmute(lproxyport)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn setProxyPort<'a, P0>(&self, bstrprotocol: P0, lproxyport: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).setProxyPort)(::windows::core::Interface::as_raw(self), bstrprotocol.into().abi(), lproxyport).ok() + pub unsafe fn setProxyPort(&self, bstrprotocol: &::windows::core::BSTR, lproxyport: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).setProxyPort)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprotocol), lproxyport).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getProxyExceptionList<'a, P0>(&self, bstrprotocol: P0, pbstrexceptionlist: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).getProxyExceptionList)(::windows::core::Interface::as_raw(self), bstrprotocol.into().abi(), ::core::mem::transmute(pbstrexceptionlist)).ok() + pub unsafe fn getProxyExceptionList(&self, bstrprotocol: &::windows::core::BSTR, pbstrexceptionlist: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).getProxyExceptionList)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprotocol), ::core::mem::transmute(pbstrexceptionlist)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn setProxyExceptionList<'a, P0, P1>(&self, bstrprotocol: P0, pbstrexceptionlist: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).setProxyExceptionList)(::windows::core::Interface::as_raw(self), bstrprotocol.into().abi(), pbstrexceptionlist.into().abi()).ok() + pub unsafe fn setProxyExceptionList(&self, bstrprotocol: &::windows::core::BSTR, pbstrexceptionlist: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).setProxyExceptionList)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprotocol), ::core::mem::transmute_copy(pbstrexceptionlist)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getProxyBypassForLocal<'a, P0>(&self, bstrprotocol: P0, pfbypassforlocal: &mut i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).getProxyBypassForLocal)(::windows::core::Interface::as_raw(self), bstrprotocol.into().abi(), ::core::mem::transmute(pfbypassforlocal)).ok() + pub unsafe fn getProxyBypassForLocal(&self, bstrprotocol: &::windows::core::BSTR, pfbypassforlocal: &mut i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).getProxyBypassForLocal)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprotocol), ::core::mem::transmute(pfbypassforlocal)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn setProxyBypassForLocal<'a, P0>(&self, bstrprotocol: P0, fbypassforlocal: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).setProxyBypassForLocal)(::windows::core::Interface::as_raw(self), bstrprotocol.into().abi(), fbypassforlocal).ok() + pub unsafe fn setProxyBypassForLocal(&self, bstrprotocol: &::windows::core::BSTR, fbypassforlocal: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).setProxyBypassForLocal)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprotocol), fbypassforlocal).ok() } pub unsafe fn maxBandwidth(&self, lmaxbandwidth: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).maxBandwidth)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(lmaxbandwidth)).ok() @@ -9967,10 +8303,7 @@ pub struct IWMPNetwork_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub bandWidth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plbandwidth: *mut i32) -> ::windows::core::HRESULT, pub recoveredPackets: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plrecoveredpackets: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub sourceProtocol: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsourceprotocol: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - sourceProtocol: usize, + pub sourceProtocol: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsourceprotocol: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub receivedPackets: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plreceivedpackets: *mut i32) -> ::windows::core::HRESULT, pub lostPackets: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pllostpackets: *mut i32) -> ::windows::core::HRESULT, pub receptionQuality: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plreceptionquality: *mut i32) -> ::windows::core::HRESULT, @@ -9981,46 +8314,16 @@ pub struct IWMPNetwork_Vtbl { pub frameRate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plframerate: *mut i32) -> ::windows::core::HRESULT, pub maxBitRate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plbitrate: *mut i32) -> ::windows::core::HRESULT, pub bitRate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plbitrate: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub getProxySettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop, plproxysetting: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getProxySettings: usize, - #[cfg(feature = "Win32_Foundation")] - pub setProxySettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop, lproxysetting: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - setProxySettings: usize, - #[cfg(feature = "Win32_Foundation")] - pub getProxyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop, pbstrproxyname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getProxyName: usize, - #[cfg(feature = "Win32_Foundation")] - pub setProxyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop, bstrproxyname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - setProxyName: usize, - #[cfg(feature = "Win32_Foundation")] - pub getProxyPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop, lproxyport: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getProxyPort: usize, - #[cfg(feature = "Win32_Foundation")] - pub setProxyPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop, lproxyport: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - setProxyPort: usize, - #[cfg(feature = "Win32_Foundation")] - pub getProxyExceptionList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop, pbstrexceptionlist: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getProxyExceptionList: usize, - #[cfg(feature = "Win32_Foundation")] - pub setProxyExceptionList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop, pbstrexceptionlist: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - setProxyExceptionList: usize, - #[cfg(feature = "Win32_Foundation")] - pub getProxyBypassForLocal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop, pfbypassforlocal: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getProxyBypassForLocal: usize, - #[cfg(feature = "Win32_Foundation")] - pub setProxyBypassForLocal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop, fbypassforlocal: i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - setProxyBypassForLocal: usize, + pub getProxySettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>, plproxysetting: *mut i32) -> ::windows::core::HRESULT, + pub setProxySettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lproxysetting: i32) -> ::windows::core::HRESULT, + pub getProxyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrproxyname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub setProxyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrproxyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub getProxyPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lproxyport: *mut i32) -> ::windows::core::HRESULT, + pub setProxyPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lproxyport: i32) -> ::windows::core::HRESULT, + pub getProxyExceptionList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrexceptionlist: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub setProxyExceptionList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrexceptionlist: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub getProxyBypassForLocal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfbypassforlocal: *mut i16) -> ::windows::core::HRESULT, + pub setProxyBypassForLocal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fbypassforlocal: i16) -> ::windows::core::HRESULT, pub maxBandwidth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lmaxbandwidth: *mut i32) -> ::windows::core::HRESULT, pub SetmaxBandwidth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lmaxbandwidth: i32) -> ::windows::core::HRESULT, pub downloadProgress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pldownloadprogress: *mut i32) -> ::windows::core::HRESULT, @@ -10462,18 +8765,11 @@ impl IWMPPlayer { pub unsafe fn close(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.close)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn URL(&self, pbstrurl: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn URL(&self, pbstrurl: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.URL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrurl)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetURL<'a, P0>(&self, bstrurl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetURL)(::windows::core::Interface::as_raw(self), bstrurl.into().abi()).ok() + pub unsafe fn SetURL(&self, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrurl)).ok() } pub unsafe fn openState(&self, pwmpos: &mut WMPOpenState) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.openState)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pwmpos)).ok() @@ -10519,18 +8815,11 @@ impl IWMPPlayer { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.playlistCollection)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn versionInfo(&self, pbstrversioninfo: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn versionInfo(&self, pbstrversioninfo: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.versionInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrversioninfo)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn launchURL<'a, P0>(&self, bstrurl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.launchURL)(::windows::core::Interface::as_raw(self), bstrurl.into().abi()).ok() + pub unsafe fn launchURL(&self, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.launchURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrurl)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -10573,9 +8862,7 @@ impl IWMPPlayer { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.error)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn status(&self, pbstrstatus: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn status(&self, pbstrstatus: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.status)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrstatus)).ok() } pub unsafe fn enabled(&self, pbenabled: &mut i16) -> ::windows::core::Result<()> { @@ -10596,17 +8883,10 @@ impl IWMPPlayer { pub unsafe fn SetenableContextMenu(&self, benablecontextmenu: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetenableContextMenu)(::windows::core::Interface::as_raw(self), benablecontextmenu).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetuiMode<'a, P0>(&self, bstrmode: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetuiMode)(::windows::core::Interface::as_raw(self), bstrmode.into().abi()).ok() + pub unsafe fn SetuiMode(&self, bstrmode: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetuiMode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrmode)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn uiMode(&self, pbstrmode: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn uiMode(&self, pbstrmode: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).uiMode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrmode)).ok() } } @@ -10700,14 +8980,8 @@ pub struct IWMPPlayer_Vtbl { pub SetfullScreen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bfullscreen: i16) -> ::windows::core::HRESULT, pub enableContextMenu: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbenablecontextmenu: *mut i16) -> ::windows::core::HRESULT, pub SetenableContextMenu: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, benablecontextmenu: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetuiMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmode: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetuiMode: usize, - #[cfg(feature = "Win32_Foundation")] - pub uiMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmode: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - uiMode: usize, + pub SetuiMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmode: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub uiMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmode: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_MediaPlayer\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -10718,18 +8992,11 @@ impl IWMPPlayer2 { pub unsafe fn close(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.close)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn URL(&self, pbstrurl: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn URL(&self, pbstrurl: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.URL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrurl)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetURL<'a, P0>(&self, bstrurl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetURL)(::windows::core::Interface::as_raw(self), bstrurl.into().abi()).ok() + pub unsafe fn SetURL(&self, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrurl)).ok() } pub unsafe fn openState(&self, pwmpos: &mut WMPOpenState) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.openState)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pwmpos)).ok() @@ -10775,18 +9042,11 @@ impl IWMPPlayer2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.playlistCollection)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn versionInfo(&self, pbstrversioninfo: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn versionInfo(&self, pbstrversioninfo: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.versionInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrversioninfo)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn launchURL<'a, P0>(&self, bstrurl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.launchURL)(::windows::core::Interface::as_raw(self), bstrurl.into().abi()).ok() + pub unsafe fn launchURL(&self, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.launchURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrurl)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -10829,9 +9089,7 @@ impl IWMPPlayer2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.error)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn status(&self, pbstrstatus: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn status(&self, pbstrstatus: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.status)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrstatus)).ok() } pub unsafe fn enabled(&self, pbenabled: &mut i16) -> ::windows::core::Result<()> { @@ -10852,17 +9110,10 @@ impl IWMPPlayer2 { pub unsafe fn SetenableContextMenu(&self, benablecontextmenu: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetenableContextMenu)(::windows::core::Interface::as_raw(self), benablecontextmenu).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetuiMode<'a, P0>(&self, bstrmode: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetuiMode)(::windows::core::Interface::as_raw(self), bstrmode.into().abi()).ok() + pub unsafe fn SetuiMode(&self, bstrmode: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetuiMode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrmode)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn uiMode(&self, pbstrmode: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn uiMode(&self, pbstrmode: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).uiMode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrmode)).ok() } pub unsafe fn stretchToFit(&self, pbenabled: &mut i16) -> ::windows::core::Result<()> { @@ -10968,14 +9219,8 @@ pub struct IWMPPlayer2_Vtbl { pub SetfullScreen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bfullscreen: i16) -> ::windows::core::HRESULT, pub enableContextMenu: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbenablecontextmenu: *mut i16) -> ::windows::core::HRESULT, pub SetenableContextMenu: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, benablecontextmenu: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetuiMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmode: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetuiMode: usize, - #[cfg(feature = "Win32_Foundation")] - pub uiMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmode: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - uiMode: usize, + pub SetuiMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmode: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub uiMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmode: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub stretchToFit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbenabled: *mut i16) -> ::windows::core::HRESULT, pub SetstretchToFit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, benabled: i16) -> ::windows::core::HRESULT, pub windowlessVideo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbenabled: *mut i16) -> ::windows::core::HRESULT, @@ -10990,18 +9235,11 @@ impl IWMPPlayer3 { pub unsafe fn close(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.close)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn URL(&self, pbstrurl: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn URL(&self, pbstrurl: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.URL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrurl)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetURL<'a, P0>(&self, bstrurl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetURL)(::windows::core::Interface::as_raw(self), bstrurl.into().abi()).ok() + pub unsafe fn SetURL(&self, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrurl)).ok() } pub unsafe fn openState(&self, pwmpos: &mut WMPOpenState) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.openState)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pwmpos)).ok() @@ -11047,18 +9285,11 @@ impl IWMPPlayer3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.playlistCollection)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn versionInfo(&self, pbstrversioninfo: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn versionInfo(&self, pbstrversioninfo: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.versionInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrversioninfo)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn launchURL<'a, P0>(&self, bstrurl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.launchURL)(::windows::core::Interface::as_raw(self), bstrurl.into().abi()).ok() + pub unsafe fn launchURL(&self, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.launchURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrurl)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -11101,9 +9332,7 @@ impl IWMPPlayer3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.error)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn status(&self, pbstrstatus: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn status(&self, pbstrstatus: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.status)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrstatus)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] @@ -11130,17 +9359,10 @@ impl IWMPPlayer3 { pub unsafe fn SetenableContextMenu(&self, benablecontextmenu: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetenableContextMenu)(::windows::core::Interface::as_raw(self), benablecontextmenu).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetuiMode<'a, P0>(&self, bstrmode: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetuiMode)(::windows::core::Interface::as_raw(self), bstrmode.into().abi()).ok() + pub unsafe fn SetuiMode(&self, bstrmode: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetuiMode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrmode)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn uiMode(&self, pbstrmode: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn uiMode(&self, pbstrmode: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).uiMode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrmode)).ok() } pub unsafe fn stretchToFit(&self, pbenabled: &mut i16) -> ::windows::core::Result<()> { @@ -11264,14 +9486,8 @@ pub struct IWMPPlayer3_Vtbl { pub SetfullScreen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bfullscreen: i16) -> ::windows::core::HRESULT, pub enableContextMenu: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbenablecontextmenu: *mut i16) -> ::windows::core::HRESULT, pub SetenableContextMenu: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, benablecontextmenu: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetuiMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmode: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetuiMode: usize, - #[cfg(feature = "Win32_Foundation")] - pub uiMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmode: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - uiMode: usize, + pub SetuiMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmode: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub uiMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmode: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub stretchToFit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbenabled: *mut i16) -> ::windows::core::HRESULT, pub SetstretchToFit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, benabled: i16) -> ::windows::core::HRESULT, pub windowlessVideo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbenabled: *mut i16) -> ::windows::core::HRESULT, @@ -11286,18 +9502,11 @@ impl IWMPPlayer4 { pub unsafe fn close(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.close)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn URL(&self, pbstrurl: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn URL(&self, pbstrurl: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.URL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrurl)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetURL<'a, P0>(&self, bstrurl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.SetURL)(::windows::core::Interface::as_raw(self), bstrurl.into().abi()).ok() + pub unsafe fn SetURL(&self, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.SetURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrurl)).ok() } pub unsafe fn openState(&self, pwmpos: &mut WMPOpenState) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.openState)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pwmpos)).ok() @@ -11343,18 +9552,11 @@ impl IWMPPlayer4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.playlistCollection)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn versionInfo(&self, pbstrversioninfo: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn versionInfo(&self, pbstrversioninfo: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.versionInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrversioninfo)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn launchURL<'a, P0>(&self, bstrurl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.launchURL)(::windows::core::Interface::as_raw(self), bstrurl.into().abi()).ok() + pub unsafe fn launchURL(&self, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.launchURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrurl)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -11397,9 +9599,7 @@ impl IWMPPlayer4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.error)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn status(&self, pbstrstatus: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn status(&self, pbstrstatus: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.status)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrstatus)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] @@ -11408,24 +9608,17 @@ impl IWMPPlayer4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.dvd)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn newPlaylist<'a, P0, P1>(&self, bstrname: P0, bstrurl: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn newPlaylist(&self, bstrname: &::windows::core::BSTR, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.newPlaylist)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), bstrurl.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.newPlaylist)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute_copy(bstrurl), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn newMedia<'a, P0>(&self, bstrurl: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn newMedia(&self, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.newMedia)(::windows::core::Interface::as_raw(self), bstrurl.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.newMedia)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrurl), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn enabled(&self, pbenabled: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).enabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbenabled)).ok() @@ -11445,17 +9638,10 @@ impl IWMPPlayer4 { pub unsafe fn SetenableContextMenu(&self, benablecontextmenu: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetenableContextMenu)(::windows::core::Interface::as_raw(self), benablecontextmenu).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetuiMode<'a, P0>(&self, bstrmode: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetuiMode)(::windows::core::Interface::as_raw(self), bstrmode.into().abi()).ok() + pub unsafe fn SetuiMode(&self, bstrmode: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetuiMode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrmode)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn uiMode(&self, pbstrmode: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn uiMode(&self, pbstrmode: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).uiMode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrmode)).ok() } pub unsafe fn stretchToFit(&self, pbenabled: &mut i16) -> ::windows::core::Result<()> { @@ -11479,13 +9665,8 @@ impl IWMPPlayer4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).playerApplication)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn openPlayer<'a, P0>(&self, bstrurl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).openPlayer)(::windows::core::Interface::as_raw(self), bstrurl.into().abi()).ok() + pub unsafe fn openPlayer(&self, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).openPlayer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrurl)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -11614,14 +9795,8 @@ pub struct IWMPPlayer4_Vtbl { pub SetfullScreen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bfullscreen: i16) -> ::windows::core::HRESULT, pub enableContextMenu: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbenablecontextmenu: *mut i16) -> ::windows::core::HRESULT, pub SetenableContextMenu: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, benablecontextmenu: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetuiMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmode: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetuiMode: usize, - #[cfg(feature = "Win32_Foundation")] - pub uiMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmode: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - uiMode: usize, + pub SetuiMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmode: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub uiMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmode: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub stretchToFit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbenabled: *mut i16) -> ::windows::core::HRESULT, pub SetstretchToFit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, benabled: i16) -> ::windows::core::HRESULT, pub windowlessVideo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbenabled: *mut i16) -> ::windows::core::HRESULT, @@ -11631,10 +9806,7 @@ pub struct IWMPPlayer4_Vtbl { pub playerApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppiwmpplayerapplication: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] playerApplication: usize, - #[cfg(feature = "Win32_Foundation")] - pub openPlayer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - openPlayer: usize, + pub openPlayer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_MediaPlayer\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -11730,31 +9902,14 @@ pub struct IWMPPlayerApplication_Vtbl { #[repr(transparent)] pub struct IWMPPlayerServices(::windows::core::IUnknown); impl IWMPPlayerServices { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn activateUIPlugin<'a, P0>(&self, bstrplugin: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).activateUIPlugin)(::windows::core::Interface::as_raw(self), bstrplugin.into().abi()).ok() + pub unsafe fn activateUIPlugin(&self, bstrplugin: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).activateUIPlugin)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrplugin)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn setTaskPane<'a, P0>(&self, bstrtaskpane: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).setTaskPane)(::windows::core::Interface::as_raw(self), bstrtaskpane.into().abi()).ok() + pub unsafe fn setTaskPane(&self, bstrtaskpane: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).setTaskPane)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtaskpane)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn setTaskPaneURL<'a, P0, P1, P2>(&self, bstrtaskpane: P0, bstrurl: P1, bstrfriendlyname: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).setTaskPaneURL)(::windows::core::Interface::as_raw(self), bstrtaskpane.into().abi(), bstrurl.into().abi(), bstrfriendlyname.into().abi()).ok() + pub unsafe fn setTaskPaneURL(&self, bstrtaskpane: &::windows::core::BSTR, bstrurl: &::windows::core::BSTR, bstrfriendlyname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).setTaskPaneURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtaskpane), ::core::mem::transmute_copy(bstrurl), ::core::mem::transmute_copy(bstrfriendlyname)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -11796,56 +9951,25 @@ unsafe impl ::windows::core::Interface for IWMPPlayerServices { #[doc(hidden)] pub struct IWMPPlayerServices_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub activateUIPlugin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrplugin: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - activateUIPlugin: usize, - #[cfg(feature = "Win32_Foundation")] - pub setTaskPane: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtaskpane: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - setTaskPane: usize, - #[cfg(feature = "Win32_Foundation")] - pub setTaskPaneURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtaskpane: ::core::mem::ManuallyDrop, bstrurl: ::core::mem::ManuallyDrop, bstrfriendlyname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - setTaskPaneURL: usize, + pub activateUIPlugin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrplugin: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub setTaskPane: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtaskpane: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub setTaskPaneURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtaskpane: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrfriendlyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_MediaPlayer\"`*"] #[repr(transparent)] pub struct IWMPPlayerServices2(::windows::core::IUnknown); impl IWMPPlayerServices2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn activateUIPlugin<'a, P0>(&self, bstrplugin: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.activateUIPlugin)(::windows::core::Interface::as_raw(self), bstrplugin.into().abi()).ok() + pub unsafe fn activateUIPlugin(&self, bstrplugin: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.activateUIPlugin)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrplugin)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn setTaskPane<'a, P0>(&self, bstrtaskpane: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.setTaskPane)(::windows::core::Interface::as_raw(self), bstrtaskpane.into().abi()).ok() + pub unsafe fn setTaskPane(&self, bstrtaskpane: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.setTaskPane)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtaskpane)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn setTaskPaneURL<'a, P0, P1, P2>(&self, bstrtaskpane: P0, bstrurl: P1, bstrfriendlyname: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.setTaskPaneURL)(::windows::core::Interface::as_raw(self), bstrtaskpane.into().abi(), bstrurl.into().abi(), bstrfriendlyname.into().abi()).ok() + pub unsafe fn setTaskPaneURL(&self, bstrtaskpane: &::windows::core::BSTR, bstrurl: &::windows::core::BSTR, bstrfriendlyname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.setTaskPaneURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtaskpane), ::core::mem::transmute_copy(bstrurl), ::core::mem::transmute_copy(bstrfriendlyname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn setBackgroundProcessingPriority<'a, P0>(&self, bstrpriority: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).setBackgroundProcessingPriority)(::windows::core::Interface::as_raw(self), bstrpriority.into().abi()).ok() + pub unsafe fn setBackgroundProcessingPriority(&self, bstrpriority: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).setBackgroundProcessingPriority)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpriority)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -11902,10 +10026,7 @@ unsafe impl ::windows::core::Interface for IWMPPlayerServices2 { #[doc(hidden)] pub struct IWMPPlayerServices2_Vtbl { pub base__: IWMPPlayerServices_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub setBackgroundProcessingPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpriority: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - setBackgroundProcessingPriority: usize, + pub setBackgroundProcessingPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpriority: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_MediaPlayer\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -11916,25 +10037,16 @@ impl IWMPPlaylist { pub unsafe fn count(&self, plcount: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).count)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(plcount)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn name(&self, pbstrname: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn name(&self, pbstrname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Setname<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Setname)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn Setname(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Setname)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } pub unsafe fn attributeCount(&self, plcount: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).attributeCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(plcount)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_attributeName(&self, lindex: i32, pbstrattributename: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn get_attributeName(&self, lindex: i32, pbstrattributename: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).get_attributeName)(::windows::core::Interface::as_raw(self), lindex, ::core::mem::transmute(pbstrattributename)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] @@ -11943,22 +10055,11 @@ impl IWMPPlaylist { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).get_item)(::windows::core::Interface::as_raw(self), lindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getItemInfo<'a, P0>(&self, bstrname: P0, pbstrval: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).getItemInfo)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(pbstrval)).ok() + pub unsafe fn getItemInfo(&self, bstrname: &::windows::core::BSTR, pbstrval: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).getItemInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(pbstrval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn setItemInfo<'a, P0, P1>(&self, bstrname: P0, bstrvalue: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).setItemInfo)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), bstrvalue.into().abi()).ok() + pub unsafe fn setItemInfo(&self, bstrname: &::windows::core::BSTR, bstrvalue: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).setItemInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute_copy(bstrvalue)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -12066,31 +10167,16 @@ unsafe impl ::windows::core::Interface for IWMPPlaylist { pub struct IWMPPlaylist_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - name: usize, - #[cfg(feature = "Win32_Foundation")] - pub Setname: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Setname: usize, + pub name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Setname: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub attributeCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub get_attributeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lindex: i32, pbstrattributename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_attributeName: usize, + pub get_attributeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lindex: i32, pbstrattributename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub get_item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lindex: i32, ppiwmpmedia: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] get_item: usize, - #[cfg(feature = "Win32_Foundation")] - pub getItemInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, pbstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getItemInfo: usize, - #[cfg(feature = "Win32_Foundation")] - pub setItemInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, bstrvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - setItemInfo: usize, + pub getItemInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub setItemInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub get_isIdentical: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, piwmpplaylist: *mut ::core::ffi::c_void, pvbool: *mut i16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -12204,14 +10290,11 @@ pub struct IWMPPlaylistArray_Vtbl { pub struct IWMPPlaylistCollection(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWMPPlaylistCollection { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn newPlaylist<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn newPlaylist(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).newPlaylist)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).newPlaylist)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -12219,14 +10302,11 @@ impl IWMPPlaylistCollection { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).getAll)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn getByName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn getByName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getByName)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getByName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -12328,17 +10408,17 @@ unsafe impl ::windows::core::Interface for IWMPPlaylistCollection { #[doc(hidden)] pub struct IWMPPlaylistCollection_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub newPlaylist: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, ppitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub newPlaylist: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] newPlaylist: usize, #[cfg(feature = "Win32_System_Com")] pub getAll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppplaylistarray: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] getAll: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub getByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, ppplaylistarray: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub getByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppplaylistarray: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] getByName: usize, #[cfg(feature = "Win32_System_Com")] pub remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pitem: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -12619,15 +10699,8 @@ pub struct IWMPPluginUI_Vtbl { pub struct IWMPQuery(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWMPQuery { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn addCondition<'a, P0, P1, P2>(&self, bstrattribute: P0, bstroperator: P1, bstrvalue: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).addCondition)(::windows::core::Interface::as_raw(self), bstrattribute.into().abi(), bstroperator.into().abi(), bstrvalue.into().abi()).ok() + pub unsafe fn addCondition(&self, bstrattribute: &::windows::core::BSTR, bstroperator: &::windows::core::BSTR, bstrvalue: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).addCondition)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrattribute), ::core::mem::transmute_copy(bstroperator), ::core::mem::transmute_copy(bstrvalue)).ok() } pub unsafe fn beginNextGroup(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).beginNextGroup)(::windows::core::Interface::as_raw(self)).ok() @@ -12699,34 +10772,25 @@ unsafe impl ::windows::core::Interface for IWMPQuery { #[doc(hidden)] pub struct IWMPQuery_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub addCondition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrattribute: ::core::mem::ManuallyDrop, bstroperator: ::core::mem::ManuallyDrop, bstrvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - addCondition: usize, + pub addCondition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrattribute: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstroperator: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub beginNextGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_MediaPlayer\"`*"] #[repr(transparent)] pub struct IWMPRemoteMediaServices(::windows::core::IUnknown); impl IWMPRemoteMediaServices { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetServiceType(&self, pbstrtype: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetServiceType(&self, pbstrtype: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetServiceType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrtype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetApplicationName(&self, pbstrname: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetApplicationName(&self, pbstrname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetApplicationName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetScriptableObject(&self, pbstrname: &mut super::super::Foundation::BSTR, ppdispatch: &mut ::core::option::Option) -> ::windows::core::Result<()> { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetScriptableObject(&self, pbstrname: &mut ::windows::core::BSTR, ppdispatch: &mut ::core::option::Option) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetScriptableObject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrname), ::core::mem::transmute(ppdispatch)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCustomUIMode(&self, pbstrfile: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetCustomUIMode(&self, pbstrfile: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetCustomUIMode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrfile)).ok() } } @@ -12769,22 +10833,13 @@ unsafe impl ::windows::core::Interface for IWMPRemoteMediaServices { #[doc(hidden)] pub struct IWMPRemoteMediaServices_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetServiceType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetServiceType: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetApplicationName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetApplicationName: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetScriptableObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR, ppdispatch: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub GetServiceType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetApplicationName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub GetScriptableObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppdispatch: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetScriptableObject: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetCustomUIMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfile: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetCustomUIMode: usize, + pub GetCustomUIMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfile: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_MediaPlayer\"`*"] #[repr(transparent)] @@ -12911,13 +10966,8 @@ pub struct IWMPServices_Vtbl { pub struct IWMPSettings(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWMPSettings { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_isAvailable<'a, P0>(&self, bstritem: P0, pisavailable: &mut i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).get_isAvailable)(::windows::core::Interface::as_raw(self), bstritem.into().abi(), ::core::mem::transmute(pisavailable)).ok() + pub unsafe fn get_isAvailable(&self, bstritem: &::windows::core::BSTR, pisavailable: &mut i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).get_isAvailable)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstritem), ::core::mem::transmute(pisavailable)).ok() } pub unsafe fn autoStart(&self, pfautostart: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).autoStart)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pfautostart)).ok() @@ -12925,31 +10975,17 @@ impl IWMPSettings { pub unsafe fn SetautoStart(&self, fautostart: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetautoStart)(::windows::core::Interface::as_raw(self), fautostart).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn baseURL(&self, pbstrbaseurl: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn baseURL(&self, pbstrbaseurl: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).baseURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrbaseurl)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetbaseURL<'a, P0>(&self, bstrbaseurl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetbaseURL)(::windows::core::Interface::as_raw(self), bstrbaseurl.into().abi()).ok() + pub unsafe fn SetbaseURL(&self, bstrbaseurl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetbaseURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrbaseurl)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn defaultFrame(&self, pbstrdefaultframe: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn defaultFrame(&self, pbstrdefaultframe: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).defaultFrame)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrdefaultframe)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetdefaultFrame<'a, P0>(&self, bstrdefaultframe: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetdefaultFrame)(::windows::core::Interface::as_raw(self), bstrdefaultframe.into().abi()).ok() + pub unsafe fn SetdefaultFrame(&self, bstrdefaultframe: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetdefaultFrame)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdefaultframe)).ok() } pub unsafe fn invokeURLs(&self, pfinvokeurls: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).invokeURLs)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pfinvokeurls)).ok() @@ -12987,21 +11023,11 @@ impl IWMPSettings { pub unsafe fn Setvolume(&self, lvolume: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Setvolume)(::windows::core::Interface::as_raw(self), lvolume).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getMode<'a, P0>(&self, bstrmode: P0, pvarfmode: &mut i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).getMode)(::windows::core::Interface::as_raw(self), bstrmode.into().abi(), ::core::mem::transmute(pvarfmode)).ok() + pub unsafe fn getMode(&self, bstrmode: &::windows::core::BSTR, pvarfmode: &mut i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).getMode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrmode), ::core::mem::transmute(pvarfmode)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn setMode<'a, P0>(&self, bstrmode: P0, varfmode: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).setMode)(::windows::core::Interface::as_raw(self), bstrmode.into().abi(), varfmode).ok() + pub unsafe fn setMode(&self, bstrmode: &::windows::core::BSTR, varfmode: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).setMode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrmode), varfmode).ok() } pub unsafe fn enableErrorDialogs(&self, pfenableerrordialogs: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).enableErrorDialogs)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pfenableerrordialogs)).ok() @@ -13076,28 +11102,13 @@ unsafe impl ::windows::core::Interface for IWMPSettings { #[doc(hidden)] pub struct IWMPSettings_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub get_isAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritem: ::core::mem::ManuallyDrop, pisavailable: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_isAvailable: usize, + pub get_isAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritem: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pisavailable: *mut i16) -> ::windows::core::HRESULT, pub autoStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfautostart: *mut i16) -> ::windows::core::HRESULT, pub SetautoStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fautostart: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub baseURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbaseurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - baseURL: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetbaseURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrbaseurl: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetbaseURL: usize, - #[cfg(feature = "Win32_Foundation")] - pub defaultFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdefaultframe: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - defaultFrame: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetdefaultFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdefaultframe: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetdefaultFrame: usize, + pub baseURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbaseurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetbaseURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrbaseurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub defaultFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdefaultframe: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetdefaultFrame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdefaultframe: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub invokeURLs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfinvokeurls: *mut i16) -> ::windows::core::HRESULT, pub SetinvokeURLs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, finvokeurls: i16) -> ::windows::core::HRESULT, pub mute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfmute: *mut i16) -> ::windows::core::HRESULT, @@ -13110,14 +11121,8 @@ pub struct IWMPSettings_Vtbl { pub Setbalance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lbalance: i32) -> ::windows::core::HRESULT, pub volume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plvolume: *mut i32) -> ::windows::core::HRESULT, pub Setvolume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lvolume: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub getMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmode: ::core::mem::ManuallyDrop, pvarfmode: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getMode: usize, - #[cfg(feature = "Win32_Foundation")] - pub setMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmode: ::core::mem::ManuallyDrop, varfmode: i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - setMode: usize, + pub getMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmode: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarfmode: *mut i16) -> ::windows::core::HRESULT, + pub setMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmode: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varfmode: i16) -> ::windows::core::HRESULT, pub enableErrorDialogs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfenableerrordialogs: *mut i16) -> ::windows::core::HRESULT, pub SetenableErrorDialogs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fenableerrordialogs: i16) -> ::windows::core::HRESULT, } @@ -13127,13 +11132,8 @@ pub struct IWMPSettings_Vtbl { pub struct IWMPSettings2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWMPSettings2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_isAvailable<'a, P0>(&self, bstritem: P0, pisavailable: &mut i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.get_isAvailable)(::windows::core::Interface::as_raw(self), bstritem.into().abi(), ::core::mem::transmute(pisavailable)).ok() + pub unsafe fn get_isAvailable(&self, bstritem: &::windows::core::BSTR, pisavailable: &mut i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.get_isAvailable)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstritem), ::core::mem::transmute(pisavailable)).ok() } pub unsafe fn autoStart(&self, pfautostart: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.autoStart)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pfautostart)).ok() @@ -13141,31 +11141,17 @@ impl IWMPSettings2 { pub unsafe fn SetautoStart(&self, fautostart: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetautoStart)(::windows::core::Interface::as_raw(self), fautostart).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn baseURL(&self, pbstrbaseurl: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn baseURL(&self, pbstrbaseurl: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.baseURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrbaseurl)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetbaseURL<'a, P0>(&self, bstrbaseurl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetbaseURL)(::windows::core::Interface::as_raw(self), bstrbaseurl.into().abi()).ok() + pub unsafe fn SetbaseURL(&self, bstrbaseurl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetbaseURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrbaseurl)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn defaultFrame(&self, pbstrdefaultframe: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn defaultFrame(&self, pbstrdefaultframe: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.defaultFrame)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrdefaultframe)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetdefaultFrame<'a, P0>(&self, bstrdefaultframe: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetdefaultFrame)(::windows::core::Interface::as_raw(self), bstrdefaultframe.into().abi()).ok() + pub unsafe fn SetdefaultFrame(&self, bstrdefaultframe: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetdefaultFrame)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdefaultframe)).ok() } pub unsafe fn invokeURLs(&self, pfinvokeurls: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.invokeURLs)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pfinvokeurls)).ok() @@ -13203,21 +11189,11 @@ impl IWMPSettings2 { pub unsafe fn Setvolume(&self, lvolume: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Setvolume)(::windows::core::Interface::as_raw(self), lvolume).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getMode<'a, P0>(&self, bstrmode: P0, pvarfmode: &mut i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.getMode)(::windows::core::Interface::as_raw(self), bstrmode.into().abi(), ::core::mem::transmute(pvarfmode)).ok() + pub unsafe fn getMode(&self, bstrmode: &::windows::core::BSTR, pvarfmode: &mut i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.getMode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrmode), ::core::mem::transmute(pvarfmode)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn setMode<'a, P0>(&self, bstrmode: P0, varfmode: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.setMode)(::windows::core::Interface::as_raw(self), bstrmode.into().abi(), varfmode).ok() + pub unsafe fn setMode(&self, bstrmode: &::windows::core::BSTR, varfmode: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.setMode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrmode), varfmode).ok() } pub unsafe fn enableErrorDialogs(&self, pfenableerrordialogs: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.enableErrorDialogs)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pfenableerrordialogs)).ok() @@ -13228,18 +11204,11 @@ impl IWMPSettings2 { pub unsafe fn defaultAudioLanguage(&self, pllangid: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).defaultAudioLanguage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pllangid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn mediaAccessRights(&self, pbstrrights: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn mediaAccessRights(&self, pbstrrights: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).mediaAccessRights)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrrights)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn requestMediaAccessRights<'a, P0>(&self, bstrdesiredaccess: P0, pvbaccepted: &mut i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).requestMediaAccessRights)(::windows::core::Interface::as_raw(self), bstrdesiredaccess.into().abi(), ::core::mem::transmute(pvbaccepted)).ok() + pub unsafe fn requestMediaAccessRights(&self, bstrdesiredaccess: &::windows::core::BSTR, pvbaccepted: &mut i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).requestMediaAccessRights)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdesiredaccess), ::core::mem::transmute(pvbaccepted)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -13327,26 +11296,15 @@ unsafe impl ::windows::core::Interface for IWMPSettings2 { pub struct IWMPSettings2_Vtbl { pub base__: IWMPSettings_Vtbl, pub defaultAudioLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pllangid: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub mediaAccessRights: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrrights: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - mediaAccessRights: usize, - #[cfg(feature = "Win32_Foundation")] - pub requestMediaAccessRights: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdesiredaccess: ::core::mem::ManuallyDrop, pvbaccepted: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - requestMediaAccessRights: usize, + pub mediaAccessRights: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrrights: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub requestMediaAccessRights: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdesiredaccess: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvbaccepted: *mut i16) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_MediaPlayer\"`*"] #[repr(transparent)] pub struct IWMPSkinManager(::windows::core::IUnknown); impl IWMPSkinManager { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetVisualStyle<'a, P0>(&self, bstrpath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetVisualStyle)(::windows::core::Interface::as_raw(self), bstrpath.into().abi()).ok() + pub unsafe fn SetVisualStyle(&self, bstrpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetVisualStyle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpath)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -13388,10 +11346,7 @@ unsafe impl ::windows::core::Interface for IWMPSkinManager { #[doc(hidden)] pub struct IWMPSkinManager_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub SetVisualStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetVisualStyle: usize, + pub SetVisualStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_MediaPlayer\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -13402,9 +11357,7 @@ impl IWMPStringCollection { pub unsafe fn count(&self, plcount: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).count)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(plcount)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn item(&self, lindex: i32, pbstrstring: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn item(&self, lindex: i32, pbstrstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).item)(::windows::core::Interface::as_raw(self), lindex, ::core::mem::transmute(pbstrstring)).ok() } } @@ -13475,10 +11428,7 @@ unsafe impl ::windows::core::Interface for IWMPStringCollection { pub struct IWMPStringCollection_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lindex: i32, pbstrstring: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - item: usize, + pub item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lindex: i32, pbstrstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_MediaPlayer\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -13489,9 +11439,7 @@ impl IWMPStringCollection2 { pub unsafe fn count(&self, plcount: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.count)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(plcount)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn item(&self, lindex: i32, pbstrstring: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn item(&self, lindex: i32, pbstrstring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.item)(::windows::core::Interface::as_raw(self), lindex, ::core::mem::transmute(pbstrstring)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] @@ -13502,31 +11450,16 @@ impl IWMPStringCollection2 { { (::windows::core::Interface::vtable(self).isIdentical)(::windows::core::Interface::as_raw(self), piwmpstringcollection2.into().abi(), ::core::mem::transmute(pvbool)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getItemInfo<'a, P0>(&self, lcollectionindex: i32, bstritemname: P0, pbstrvalue: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).getItemInfo)(::windows::core::Interface::as_raw(self), lcollectionindex, bstritemname.into().abi(), ::core::mem::transmute(pbstrvalue)).ok() + pub unsafe fn getItemInfo(&self, lcollectionindex: i32, bstritemname: &::windows::core::BSTR, pbstrvalue: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).getItemInfo)(::windows::core::Interface::as_raw(self), lcollectionindex, ::core::mem::transmute_copy(bstritemname), ::core::mem::transmute(pbstrvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getAttributeCountByType<'a, P0, P1>(&self, lcollectionindex: i32, bstrtype: P0, bstrlanguage: P1, plcount: &mut i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).getAttributeCountByType)(::windows::core::Interface::as_raw(self), lcollectionindex, bstrtype.into().abi(), bstrlanguage.into().abi(), ::core::mem::transmute(plcount)).ok() + pub unsafe fn getAttributeCountByType(&self, lcollectionindex: i32, bstrtype: &::windows::core::BSTR, bstrlanguage: &::windows::core::BSTR, plcount: &mut i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).getAttributeCountByType)(::windows::core::Interface::as_raw(self), lcollectionindex, ::core::mem::transmute_copy(bstrtype), ::core::mem::transmute_copy(bstrlanguage), ::core::mem::transmute(plcount)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn getItemInfoByType<'a, P0, P1>(&self, lcollectionindex: i32, bstrtype: P0, bstrlanguage: P1, lattributeindex: i32, pvarvalue: &mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).getItemInfoByType)(::windows::core::Interface::as_raw(self), lcollectionindex, bstrtype.into().abi(), bstrlanguage.into().abi(), lattributeindex, ::core::mem::transmute(pvarvalue)).ok() + pub unsafe fn getItemInfoByType(&self, lcollectionindex: i32, bstrtype: &::windows::core::BSTR, bstrlanguage: &::windows::core::BSTR, lattributeindex: i32, pvarvalue: &mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).getItemInfoByType)(::windows::core::Interface::as_raw(self), lcollectionindex, ::core::mem::transmute_copy(bstrtype), ::core::mem::transmute_copy(bstrlanguage), lattributeindex, ::core::mem::transmute(pvarvalue)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -13617,16 +11550,10 @@ pub struct IWMPStringCollection2_Vtbl { pub isIdentical: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, piwmpstringcollection2: *mut ::core::ffi::c_void, pvbool: *mut i16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] isIdentical: usize, - #[cfg(feature = "Win32_Foundation")] - pub getItemInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lcollectionindex: i32, bstritemname: ::core::mem::ManuallyDrop, pbstrvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getItemInfo: usize, - #[cfg(feature = "Win32_Foundation")] - pub getAttributeCountByType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lcollectionindex: i32, bstrtype: ::core::mem::ManuallyDrop, bstrlanguage: ::core::mem::ManuallyDrop, plcount: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getAttributeCountByType: usize, + pub getItemInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lcollectionindex: i32, bstritemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub getAttributeCountByType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lcollectionindex: i32, bstrtype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrlanguage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, plcount: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub getItemInfoByType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lcollectionindex: i32, bstrtype: ::core::mem::ManuallyDrop, bstrlanguage: ::core::mem::ManuallyDrop, lattributeindex: i32, pvarvalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub getItemInfoByType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lcollectionindex: i32, bstrtype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrlanguage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lattributeindex: i32, pvarvalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] getItemInfoByType: usize, } @@ -13771,24 +11698,17 @@ impl IWMPSubscriptionService2 { pub unsafe fn serviceEvent(&self, event: WMPSubscriptionServiceEvent) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).serviceEvent)(::windows::core::Interface::as_raw(self), event).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn deviceAvailable<'a, P0, P1>(&self, bstrdevicename: P0, pcb: P1) -> ::windows::core::Result<()> + pub unsafe fn deviceAvailable<'a, P0>(&self, bstrdevicename: &::windows::core::BSTR, pcb: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IWMPSubscriptionServiceCallback>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IWMPSubscriptionServiceCallback>>, { - (::windows::core::Interface::vtable(self).deviceAvailable)(::windows::core::Interface::as_raw(self), bstrdevicename.into().abi(), pcb.into().abi()).ok() + (::windows::core::Interface::vtable(self).deviceAvailable)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdevicename), pcb.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn prepareForSync<'a, P0, P1, P2>(&self, bstrfilename: P0, bstrdevicename: P1, pcb: P2) -> ::windows::core::Result<()> + pub unsafe fn prepareForSync<'a, P0>(&self, bstrfilename: &::windows::core::BSTR, bstrdevicename: &::windows::core::BSTR, pcb: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IWMPSubscriptionServiceCallback>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IWMPSubscriptionServiceCallback>>, { - (::windows::core::Interface::vtable(self).prepareForSync)(::windows::core::Interface::as_raw(self), bstrfilename.into().abi(), bstrdevicename.into().abi(), pcb.into().abi()).ok() + (::windows::core::Interface::vtable(self).prepareForSync)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrfilename), ::core::mem::transmute_copy(bstrdevicename), pcb.into().abi()).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -13847,14 +11767,8 @@ pub struct IWMPSubscriptionService2_Vtbl { pub base__: IWMPSubscriptionService_Vtbl, pub stopBackgroundProcessing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub serviceEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, event: WMPSubscriptionServiceEvent) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub deviceAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdevicename: ::core::mem::ManuallyDrop, pcb: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - deviceAvailable: usize, - #[cfg(feature = "Win32_Foundation")] - pub prepareForSync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop, bstrdevicename: ::core::mem::ManuallyDrop, pcb: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - prepareForSync: usize, + pub deviceAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdevicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcb: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub prepareForSync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdevicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcb: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_MediaPlayer\"`*"] #[repr(transparent)] @@ -13909,27 +11823,16 @@ pub struct IWMPSubscriptionServiceCallback_Vtbl { #[repr(transparent)] pub struct IWMPSyncDevice(::windows::core::IUnknown); impl IWMPSyncDevice { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn friendlyName(&self, pbstrname: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn friendlyName(&self, pbstrname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).friendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetfriendlyName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetfriendlyName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetfriendlyName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetfriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn deviceName(&self, pbstrname: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn deviceName(&self, pbstrname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).deviceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn deviceId(&self, pbstrdeviceid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn deviceId(&self, pbstrdeviceid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).deviceId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrdeviceid)).ok() } pub unsafe fn partnershipIndex(&self, plindex: &mut i32) -> ::windows::core::Result<()> { @@ -13947,13 +11850,8 @@ impl IWMPSyncDevice { pub unsafe fn progress(&self, plprogress: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).progress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(plprogress)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getItemInfo<'a, P0>(&self, bstritemname: P0, pbstrval: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).getItemInfo)(::windows::core::Interface::as_raw(self), bstritemname.into().abi(), ::core::mem::transmute(pbstrval)).ok() + pub unsafe fn getItemInfo(&self, bstritemname: &::windows::core::BSTR, pbstrval: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).getItemInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstritemname), ::core::mem::transmute(pbstrval)).ok() } pub unsafe fn createPartnership(&self, vbshowui: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).createPartnership)(::windows::core::Interface::as_raw(self), vbshowui).ok() @@ -14016,31 +11914,16 @@ unsafe impl ::windows::core::Interface for IWMPSyncDevice { #[doc(hidden)] pub struct IWMPSyncDevice_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub friendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - friendlyName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetfriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetfriendlyName: usize, - #[cfg(feature = "Win32_Foundation")] - pub deviceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - deviceName: usize, - #[cfg(feature = "Win32_Foundation")] - pub deviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdeviceid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - deviceId: usize, + pub friendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetfriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub deviceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub deviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdeviceid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub partnershipIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plindex: *mut i32) -> ::windows::core::HRESULT, pub connected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvbconnected: *mut i16) -> ::windows::core::HRESULT, pub status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwmpds: *mut WMPDeviceStatus) -> ::windows::core::HRESULT, pub syncState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwmpss: *mut WMPSyncState) -> ::windows::core::HRESULT, pub progress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plprogress: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub getItemInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop, pbstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getItemInfo: usize, + pub getItemInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub createPartnership: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vbshowui: i16) -> ::windows::core::HRESULT, pub deletePartnership: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -14052,27 +11935,16 @@ pub struct IWMPSyncDevice_Vtbl { #[repr(transparent)] pub struct IWMPSyncDevice2(::windows::core::IUnknown); impl IWMPSyncDevice2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn friendlyName(&self, pbstrname: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn friendlyName(&self, pbstrname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.friendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetfriendlyName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetfriendlyName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetfriendlyName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetfriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn deviceName(&self, pbstrname: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn deviceName(&self, pbstrname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.deviceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn deviceId(&self, pbstrdeviceid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn deviceId(&self, pbstrdeviceid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.deviceId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrdeviceid)).ok() } pub unsafe fn partnershipIndex(&self, plindex: &mut i32) -> ::windows::core::Result<()> { @@ -14090,13 +11962,8 @@ impl IWMPSyncDevice2 { pub unsafe fn progress(&self, plprogress: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.progress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(plprogress)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getItemInfo<'a, P0>(&self, bstritemname: P0, pbstrval: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.getItemInfo)(::windows::core::Interface::as_raw(self), bstritemname.into().abi(), ::core::mem::transmute(pbstrval)).ok() + pub unsafe fn getItemInfo(&self, bstritemname: &::windows::core::BSTR, pbstrval: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.getItemInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstritemname), ::core::mem::transmute(pbstrval)).ok() } pub unsafe fn createPartnership(&self, vbshowui: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.createPartnership)(::windows::core::Interface::as_raw(self), vbshowui).ok() @@ -14119,14 +11986,8 @@ impl IWMPSyncDevice2 { { (::windows::core::Interface::vtable(self).base__.isIdentical)(::windows::core::Interface::as_raw(self), pdevice.into().abi(), ::core::mem::transmute(pvbool)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn setItemInfo<'a, P0, P1>(&self, bstritemname: P0, bstrval: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).setItemInfo)(::windows::core::Interface::as_raw(self), bstritemname.into().abi(), bstrval.into().abi()).ok() + pub unsafe fn setItemInfo(&self, bstritemname: &::windows::core::BSTR, bstrval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).setItemInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstritemname), ::core::mem::transmute_copy(bstrval)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -14183,36 +12044,22 @@ unsafe impl ::windows::core::Interface for IWMPSyncDevice2 { #[doc(hidden)] pub struct IWMPSyncDevice2_Vtbl { pub base__: IWMPSyncDevice_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub setItemInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop, bstrval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - setItemInfo: usize, + pub setItemInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritemname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_MediaPlayer\"`*"] #[repr(transparent)] pub struct IWMPSyncDevice3(::windows::core::IUnknown); impl IWMPSyncDevice3 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn friendlyName(&self, pbstrname: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn friendlyName(&self, pbstrname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.friendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetfriendlyName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetfriendlyName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetfriendlyName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetfriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn deviceName(&self, pbstrname: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn deviceName(&self, pbstrname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.deviceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn deviceId(&self, pbstrdeviceid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn deviceId(&self, pbstrdeviceid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.deviceId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrdeviceid)).ok() } pub unsafe fn partnershipIndex(&self, plindex: &mut i32) -> ::windows::core::Result<()> { @@ -14230,13 +12077,8 @@ impl IWMPSyncDevice3 { pub unsafe fn progress(&self, plprogress: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.progress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(plprogress)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getItemInfo<'a, P0>(&self, bstritemname: P0, pbstrval: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.getItemInfo)(::windows::core::Interface::as_raw(self), bstritemname.into().abi(), ::core::mem::transmute(pbstrval)).ok() + pub unsafe fn getItemInfo(&self, bstritemname: &::windows::core::BSTR, pbstrval: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.getItemInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstritemname), ::core::mem::transmute(pbstrval)).ok() } pub unsafe fn createPartnership(&self, vbshowui: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.createPartnership)(::windows::core::Interface::as_raw(self), vbshowui).ok() @@ -14259,14 +12101,8 @@ impl IWMPSyncDevice3 { { (::windows::core::Interface::vtable(self).base__.base__.isIdentical)(::windows::core::Interface::as_raw(self), pdevice.into().abi(), ::core::mem::transmute(pvbool)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn setItemInfo<'a, P0, P1>(&self, bstritemname: P0, bstrval: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.setItemInfo)(::windows::core::Interface::as_raw(self), bstritemname.into().abi(), bstrval.into().abi()).ok() + pub unsafe fn setItemInfo(&self, bstritemname: &::windows::core::BSTR, bstrval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.setItemInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstritemname), ::core::mem::transmute_copy(bstrval)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -18983,38 +16819,31 @@ impl ::core::default::Default for TimedLevel { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Media_MediaPlayer\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_Media_MediaPlayer\"`*"] pub struct WMPContextMenuInfo { pub dwID: u32, - pub bstrMenuText: super::super::Foundation::BSTR, - pub bstrHelpText: super::super::Foundation::BSTR, + pub bstrMenuText: ::windows::core::BSTR, + pub bstrHelpText: ::windows::core::BSTR, } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for WMPContextMenuInfo { fn clone(&self) -> Self { Self { dwID: self.dwID, bstrMenuText: self.bstrMenuText.clone(), bstrHelpText: self.bstrHelpText.clone() } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for WMPContextMenuInfo { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("WMPContextMenuInfo").field("dwID", &self.dwID).field("bstrMenuText", &self.bstrMenuText).field("bstrHelpText", &self.bstrHelpText).finish() } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for WMPContextMenuInfo { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for WMPContextMenuInfo { fn eq(&self, other: &Self) -> bool { self.dwID == other.dwID && self.bstrMenuText == other.bstrMenuText && self.bstrHelpText == other.bstrHelpText } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for WMPContextMenuInfo {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for WMPContextMenuInfo { fn default() -> Self { unsafe { ::core::mem::zeroed() } diff --git a/crates/libs/windows/src/Windows/Win32/Media/PictureAcquisition/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/PictureAcquisition/impl.rs index 85a2a13617..fa92a6444c 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/PictureAcquisition/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/PictureAcquisition/impl.rs @@ -51,7 +51,7 @@ impl IPhotoAcquire_Vtbl { pub trait IPhotoAcquireDeviceSelectionDialog_Impl: Sized { fn SetTitle(&self, psztitle: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn SetSubmitButtonText(&self, pszsubmitbuttontext: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; - fn DoModal(&self, hwndparent: super::super::Foundation::HWND, dwdeviceflags: u32, pbstrdeviceid: *mut super::super::Foundation::BSTR, pndevicetype: *mut DEVICE_SELECTION_DEVICE_TYPE) -> ::windows::core::Result<()>; + fn DoModal(&self, hwndparent: super::super::Foundation::HWND, dwdeviceflags: u32, pbstrdeviceid: *mut ::windows::core::BSTR, pndevicetype: *mut DEVICE_SELECTION_DEVICE_TYPE) -> ::windows::core::Result<()>; } #[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IPhotoAcquireDeviceSelectionDialog {} @@ -68,7 +68,7 @@ impl IPhotoAcquireDeviceSelectionDialog_Vtbl { let this = (*this).get_impl(); this.SetSubmitButtonText(::core::mem::transmute(&pszsubmitbuttontext)).into() } - unsafe extern "system" fn DoModal, Impl: IPhotoAcquireDeviceSelectionDialog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, dwdeviceflags: u32, pbstrdeviceid: *mut super::super::Foundation::BSTR, pndevicetype: *mut DEVICE_SELECTION_DEVICE_TYPE) -> ::windows::core::HRESULT { + unsafe extern "system" fn DoModal, Impl: IPhotoAcquireDeviceSelectionDialog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, dwdeviceflags: u32, pbstrdeviceid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pndevicetype: *mut DEVICE_SELECTION_DEVICE_TYPE) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DoModal(::core::mem::transmute_copy(&hwndparent), ::core::mem::transmute_copy(&dwdeviceflags), ::core::mem::transmute_copy(&pbstrdeviceid), ::core::mem::transmute_copy(&pndevicetype)).into() @@ -86,7 +86,7 @@ impl IPhotoAcquireDeviceSelectionDialog_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_PropertiesSystem"))] pub trait IPhotoAcquireItem_Impl: Sized { - fn GetItemName(&self) -> ::windows::core::Result; + fn GetItemName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetThumbnail(&self, sizethumbnail: &super::super::Foundation::SIZE) -> ::windows::core::Result; fn GetProperty(&self, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY) -> ::windows::core::Result; fn SetProperty(&self, key: *const super::super::UI::Shell::PropertiesSystem::PROPERTYKEY, pv: *const super::super::System::Com::StructuredStorage::PROPVARIANT) -> ::windows::core::Result<()>; @@ -101,7 +101,7 @@ impl ::windows::core::RuntimeName for IPhotoAcquireItem {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_UI_Shell_PropertiesSystem"))] impl IPhotoAcquireItem_Vtbl { pub const fn new, Impl: IPhotoAcquireItem_Impl, const OFFSET: isize>() -> IPhotoAcquireItem_Vtbl { - unsafe extern "system" fn GetItemName, Impl: IPhotoAcquireItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstritemname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetItemName, Impl: IPhotoAcquireItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstritemname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetItemName() { @@ -483,10 +483,10 @@ pub trait IPhotoAcquireSettings_Impl: Sized { fn SetGroupTag(&self, pszgrouptag: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn SetAcquisitionTime(&self, pftacquisitiontime: *const super::super::Foundation::FILETIME) -> ::windows::core::Result<()>; fn GetFlags(&self) -> ::windows::core::Result; - fn GetOutputFilenameTemplate(&self) -> ::windows::core::Result; + fn GetOutputFilenameTemplate(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetSequencePaddingWidth(&self) -> ::windows::core::Result; fn GetSequenceZeroPadding(&self) -> ::windows::core::Result; - fn GetGroupTag(&self) -> ::windows::core::Result; + fn GetGroupTag(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetAcquisitionTime(&self) -> ::windows::core::Result; } #[cfg(feature = "Win32_Foundation")] @@ -540,7 +540,7 @@ impl IPhotoAcquireSettings_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputFilenameTemplate, Impl: IPhotoAcquireSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtemplate: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetOutputFilenameTemplate, Impl: IPhotoAcquireSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtemplate: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetOutputFilenameTemplate() { @@ -573,7 +573,7 @@ impl IPhotoAcquireSettings_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetGroupTag, Impl: IPhotoAcquireSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrgrouptag: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetGroupTag, Impl: IPhotoAcquireSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrgrouptag: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetGroupTag() { @@ -618,13 +618,13 @@ impl IPhotoAcquireSettings_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] pub trait IPhotoAcquireSource_Impl: Sized { - fn GetFriendlyName(&self) -> ::windows::core::Result; + fn GetFriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetDeviceIcons(&self, nsize: u32, phlargeicon: *mut super::super::UI::WindowsAndMessaging::HICON, phsmallicon: *mut super::super::UI::WindowsAndMessaging::HICON) -> ::windows::core::Result<()>; fn InitializeItemList(&self, fforceenumeration: super::super::Foundation::BOOL, pphotoacquireprogresscb: &::core::option::Option, pnitemcount: *mut u32) -> ::windows::core::Result<()>; fn GetItemCount(&self) -> ::windows::core::Result; fn GetItemAt(&self, nindex: u32) -> ::windows::core::Result; fn GetPhotoAcquireSettings(&self) -> ::windows::core::Result; - fn GetDeviceId(&self) -> ::windows::core::Result; + fn GetDeviceId(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn BindToObject(&self, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] @@ -632,7 +632,7 @@ impl ::windows::core::RuntimeName for IPhotoAcquireSource {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl IPhotoAcquireSource_Vtbl { pub const fn new, Impl: IPhotoAcquireSource_Impl, const OFFSET: isize>() -> IPhotoAcquireSource_Vtbl { - unsafe extern "system" fn GetFriendlyName, Impl: IPhotoAcquireSource_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfriendlyname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFriendlyName, Impl: IPhotoAcquireSource_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfriendlyname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetFriendlyName() { @@ -686,7 +686,7 @@ impl IPhotoAcquireSource_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetDeviceId, Impl: IPhotoAcquireSource_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdeviceid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDeviceId, Impl: IPhotoAcquireSource_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdeviceid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDeviceId() { @@ -898,25 +898,25 @@ impl IPhotoProgressDialog_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] +#[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] pub trait IUserInputString_Impl: Sized { - fn GetSubmitButtonText(&self) -> ::windows::core::Result; - fn GetPrompt(&self) -> ::windows::core::Result; - fn GetStringId(&self) -> ::windows::core::Result; + fn GetSubmitButtonText(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetPrompt(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetStringId(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetStringType(&self) -> ::windows::core::Result; - fn GetTooltipText(&self) -> ::windows::core::Result; + fn GetTooltipText(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetMaxLength(&self) -> ::windows::core::Result; - fn GetDefault(&self) -> ::windows::core::Result; + fn GetDefault(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetMruCount(&self) -> ::windows::core::Result; - fn GetMruEntryAt(&self, nindex: u32) -> ::windows::core::Result; + fn GetMruEntryAt(&self, nindex: u32) -> ::windows::core::Result<::windows::core::BSTR>; fn GetImage(&self, nsize: u32, phbitmap: *mut super::super::Graphics::Gdi::HBITMAP, phicon: *mut super::super::UI::WindowsAndMessaging::HICON) -> ::windows::core::Result<()>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] +#[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] impl ::windows::core::RuntimeName for IUserInputString {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] +#[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] impl IUserInputString_Vtbl { pub const fn new, Impl: IUserInputString_Impl, const OFFSET: isize>() -> IUserInputString_Vtbl { - unsafe extern "system" fn GetSubmitButtonText, Impl: IUserInputString_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsubmitbuttontext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSubmitButtonText, Impl: IUserInputString_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsubmitbuttontext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetSubmitButtonText() { @@ -927,7 +927,7 @@ impl IUserInputString_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetPrompt, Impl: IUserInputString_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprompttitle: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPrompt, Impl: IUserInputString_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprompttitle: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetPrompt() { @@ -938,7 +938,7 @@ impl IUserInputString_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetStringId, Impl: IUserInputString_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrstringid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetStringId, Impl: IUserInputString_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrstringid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetStringId() { @@ -960,7 +960,7 @@ impl IUserInputString_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetTooltipText, Impl: IUserInputString_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtooltiptext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetTooltipText, Impl: IUserInputString_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtooltiptext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetTooltipText() { @@ -982,7 +982,7 @@ impl IUserInputString_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetDefault, Impl: IUserInputString_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdefault: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDefault, Impl: IUserInputString_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdefault: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDefault() { @@ -1004,7 +1004,7 @@ impl IUserInputString_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetMruEntryAt, Impl: IUserInputString_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nindex: u32, pbstrmruentry: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetMruEntryAt, Impl: IUserInputString_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nindex: u32, pbstrmruentry: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetMruEntryAt(::core::mem::transmute_copy(&nindex)) { diff --git a/crates/libs/windows/src/Windows/Win32/Media/PictureAcquisition/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/PictureAcquisition/mod.rs index cd52fdf2b4..3bb11c140b 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/PictureAcquisition/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/PictureAcquisition/mod.rs @@ -95,7 +95,7 @@ impl IPhotoAcquireDeviceSelectionDialog { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DoModal<'a, P0>(&self, hwndparent: P0, dwdeviceflags: u32, pbstrdeviceid: ::core::option::Option<&mut super::super::Foundation::BSTR>, pndevicetype: ::core::option::Option<&mut DEVICE_SELECTION_DEVICE_TYPE>) -> ::windows::core::Result<()> + pub unsafe fn DoModal<'a, P0>(&self, hwndparent: P0, dwdeviceflags: u32, pbstrdeviceid: ::core::option::Option<&mut ::windows::core::BSTR>, pndevicetype: ::core::option::Option<&mut DEVICE_SELECTION_DEVICE_TYPE>) -> ::windows::core::Result<()> where P0: ::std::convert::Into, { @@ -144,7 +144,7 @@ pub struct IPhotoAcquireDeviceSelectionDialog_Vtbl { pub SetTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psztitle: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, pub SetSubmitButtonText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszsubmitbuttontext: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub DoModal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, dwdeviceflags: u32, pbstrdeviceid: *mut super::super::Foundation::BSTR, pndevicetype: *mut DEVICE_SELECTION_DEVICE_TYPE) -> ::windows::core::HRESULT, + pub DoModal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, dwdeviceflags: u32, pbstrdeviceid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pndevicetype: *mut DEVICE_SELECTION_DEVICE_TYPE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] DoModal: usize, } @@ -152,11 +152,9 @@ pub struct IPhotoAcquireDeviceSelectionDialog_Vtbl { #[repr(transparent)] pub struct IPhotoAcquireItem(::windows::core::IUnknown); impl IPhotoAcquireItem { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetItemName(&self) -> ::windows::core::Result { + pub unsafe fn GetItemName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetItemName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetItemName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] @@ -238,10 +236,7 @@ unsafe impl ::windows::core::Interface for IPhotoAcquireItem { #[doc(hidden)] pub struct IPhotoAcquireItem_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetItemName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstritemname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetItemName: usize, + pub GetItemName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstritemname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] pub GetThumbnail: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sizethumbnail: super::super::Foundation::SIZE, phbmpthumbnail: *mut super::super::Graphics::Gdi::HBITMAP) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi")))] @@ -660,11 +655,9 @@ impl IPhotoAcquireSettings { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetFlags)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetOutputFilenameTemplate(&self) -> ::windows::core::Result { + pub unsafe fn GetOutputFilenameTemplate(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetOutputFilenameTemplate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetOutputFilenameTemplate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetSequencePaddingWidth(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -676,11 +669,9 @@ impl IPhotoAcquireSettings { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetSequenceZeroPadding)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetGroupTag(&self) -> ::windows::core::Result { + pub unsafe fn GetGroupTag(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetGroupTag)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetGroupTag)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -742,19 +733,13 @@ pub struct IPhotoAcquireSettings_Vtbl { #[cfg(not(feature = "Win32_Foundation"))] SetAcquisitionTime: usize, pub GetFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwphotoacquireflags: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetOutputFilenameTemplate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtemplate: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetOutputFilenameTemplate: usize, + pub GetOutputFilenameTemplate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtemplate: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetSequencePaddingWidth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwwidth: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub GetSequenceZeroPadding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfzeropad: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] GetSequenceZeroPadding: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetGroupTag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrgrouptag: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetGroupTag: usize, + pub GetGroupTag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrgrouptag: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub GetAcquisitionTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pftacquisitiontime: *mut super::super::Foundation::FILETIME) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -764,11 +749,9 @@ pub struct IPhotoAcquireSettings_Vtbl { #[repr(transparent)] pub struct IPhotoAcquireSource(::windows::core::IUnknown); impl IPhotoAcquireSource { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetFriendlyName(&self) -> ::windows::core::Result { + pub unsafe fn GetFriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_UI_WindowsAndMessaging\"`*"] #[cfg(feature = "Win32_UI_WindowsAndMessaging")] @@ -796,11 +779,9 @@ impl IPhotoAcquireSource { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetPhotoAcquireSettings)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDeviceId(&self) -> ::windows::core::Result { + pub unsafe fn GetDeviceId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDeviceId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDeviceId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn BindToObject(&self, riid: &::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).BindToObject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(riid), ::core::mem::transmute(ppv)).ok() @@ -845,10 +826,7 @@ unsafe impl ::windows::core::Interface for IPhotoAcquireSource { #[doc(hidden)] pub struct IPhotoAcquireSource_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetFriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfriendlyname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetFriendlyName: usize, + pub GetFriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfriendlyname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_UI_WindowsAndMessaging")] pub GetDeviceIcons: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nsize: u32, phlargeicon: *mut super::super::UI::WindowsAndMessaging::HICON, phsmallicon: *mut super::super::UI::WindowsAndMessaging::HICON) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] @@ -860,10 +838,7 @@ pub struct IPhotoAcquireSource_Vtbl { pub GetItemCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnitemcount: *mut u32) -> ::windows::core::HRESULT, pub GetItemAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: u32, ppphotoacquireitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetPhotoAcquireSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppphotoacquiresettings: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetDeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdeviceid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDeviceId: usize, + pub GetDeviceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdeviceid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub BindToObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_PictureAcquisition\"`*"] @@ -1132,53 +1107,41 @@ pub struct IPhotoProgressDialog_Vtbl { #[repr(transparent)] pub struct IUserInputString(::windows::core::IUnknown); impl IUserInputString { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetSubmitButtonText(&self) -> ::windows::core::Result { + pub unsafe fn GetSubmitButtonText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetSubmitButtonText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetSubmitButtonText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPrompt(&self) -> ::windows::core::Result { + pub unsafe fn GetPrompt(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetPrompt)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetPrompt)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetStringId(&self) -> ::windows::core::Result { + pub unsafe fn GetStringId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetStringId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetStringId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetStringType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetStringType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetTooltipText(&self) -> ::windows::core::Result { + pub unsafe fn GetTooltipText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetTooltipText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetTooltipText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetMaxLength(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetMaxLength)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDefault(&self) -> ::windows::core::Result { + pub unsafe fn GetDefault(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDefault)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDefault)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetMruCount(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetMruCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetMruEntryAt(&self, nindex: u32) -> ::windows::core::Result { + pub unsafe fn GetMruEntryAt(&self, nindex: u32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetMruEntryAt)(::windows::core::Interface::as_raw(self), nindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetMruEntryAt)(::windows::core::Interface::as_raw(self), nindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_UI_WindowsAndMessaging\"`*"] #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] @@ -1225,33 +1188,15 @@ unsafe impl ::windows::core::Interface for IUserInputString { #[doc(hidden)] pub struct IUserInputString_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetSubmitButtonText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsubmitbuttontext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetSubmitButtonText: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetPrompt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprompttitle: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPrompt: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetStringId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstringid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetStringId: usize, + pub GetSubmitButtonText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsubmitbuttontext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetPrompt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprompttitle: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetStringId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstringid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetStringType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnstringtype: *mut USER_INPUT_STRING_TYPE) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetTooltipText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtooltiptext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetTooltipText: usize, + pub GetTooltipText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtooltiptext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetMaxLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcchmaxlength: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdefault: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDefault: usize, + pub GetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdefault: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetMruCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnmrucount: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetMruEntryAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: u32, pbstrmruentry: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetMruEntryAt: usize, + pub GetMruEntryAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nindex: u32, pbstrmruentry: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] pub GetImage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nsize: u32, phbitmap: *mut super::super::Graphics::Gdi::HBITMAP, phicon: *mut super::super::UI::WindowsAndMessaging::HICON) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging")))] diff --git a/crates/libs/windows/src/Windows/Win32/Media/Speech/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/Speech/impl.rs index 6076f10e99..06f4b59d42 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Speech/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Speech/impl.rs @@ -2879,8 +2879,8 @@ impl ISpeechAudioBufferInfo_Vtbl { pub trait ISpeechAudioFormat_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn Type(&self) -> ::windows::core::Result; fn SetType(&self, audioformat: SpeechAudioFormatType) -> ::windows::core::Result<()>; - fn Guid(&self) -> ::windows::core::Result; - fn SetGuid(&self, guid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Guid(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetGuid(&self, guid: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetWaveFormatEx(&self) -> ::windows::core::Result; fn SetWaveFormatEx(&self, speechwaveformatex: &::core::option::Option) -> ::windows::core::Result<()>; } @@ -2905,7 +2905,7 @@ impl ISpeechAudioFormat_Vtbl { let this = (*this).get_impl(); this.SetType(::core::mem::transmute_copy(&audioformat)).into() } - unsafe extern "system" fn Guid, Impl: ISpeechAudioFormat_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, guid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Guid, Impl: ISpeechAudioFormat_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, guid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Guid() { @@ -2916,7 +2916,7 @@ impl ISpeechAudioFormat_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetGuid, Impl: ISpeechAudioFormat_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, guid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetGuid, Impl: ISpeechAudioFormat_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, guid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetGuid(::core::mem::transmute(&guid)).into() @@ -3139,30 +3139,30 @@ impl ISpeechCustomStream_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISpeechDataKey_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn SetBinaryValue(&self, valuename: &super::super::Foundation::BSTR, value: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn GetBinaryValue(&self, valuename: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn SetStringValue(&self, valuename: &super::super::Foundation::BSTR, value: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetStringValue(&self, valuename: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn SetLongValue(&self, valuename: &super::super::Foundation::BSTR, value: i32) -> ::windows::core::Result<()>; - fn GetLongValue(&self, valuename: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn OpenKey(&self, subkeyname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn CreateKey(&self, subkeyname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn DeleteKey(&self, subkeyname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn DeleteValue(&self, valuename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn EnumKeys(&self, index: i32) -> ::windows::core::Result; - fn EnumValues(&self, index: i32) -> ::windows::core::Result; + fn SetBinaryValue(&self, valuename: &::windows::core::BSTR, value: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn GetBinaryValue(&self, valuename: &::windows::core::BSTR) -> ::windows::core::Result; + fn SetStringValue(&self, valuename: &::windows::core::BSTR, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetStringValue(&self, valuename: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetLongValue(&self, valuename: &::windows::core::BSTR, value: i32) -> ::windows::core::Result<()>; + fn GetLongValue(&self, valuename: &::windows::core::BSTR) -> ::windows::core::Result; + fn OpenKey(&self, subkeyname: &::windows::core::BSTR) -> ::windows::core::Result; + fn CreateKey(&self, subkeyname: &::windows::core::BSTR) -> ::windows::core::Result; + fn DeleteKey(&self, subkeyname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn DeleteValue(&self, valuename: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn EnumKeys(&self, index: i32) -> ::windows::core::Result<::windows::core::BSTR>; + fn EnumValues(&self, index: i32) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ISpeechDataKey {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ISpeechDataKey_Vtbl { pub const fn new, Impl: ISpeechDataKey_Impl, const OFFSET: isize>() -> ISpeechDataKey_Vtbl { - unsafe extern "system" fn SetBinaryValue, Impl: ISpeechDataKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, valuename: ::core::mem::ManuallyDrop, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetBinaryValue, Impl: ISpeechDataKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, valuename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetBinaryValue(::core::mem::transmute(&valuename), ::core::mem::transmute(&value)).into() } - unsafe extern "system" fn GetBinaryValue, Impl: ISpeechDataKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, valuename: ::core::mem::ManuallyDrop, value: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetBinaryValue, Impl: ISpeechDataKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, valuename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetBinaryValue(::core::mem::transmute(&valuename)) { @@ -3173,12 +3173,12 @@ impl ISpeechDataKey_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetStringValue, Impl: ISpeechDataKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, valuename: ::core::mem::ManuallyDrop, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetStringValue, Impl: ISpeechDataKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, valuename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetStringValue(::core::mem::transmute(&valuename), ::core::mem::transmute(&value)).into() } - unsafe extern "system" fn GetStringValue, Impl: ISpeechDataKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, valuename: ::core::mem::ManuallyDrop, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetStringValue, Impl: ISpeechDataKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, valuename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetStringValue(::core::mem::transmute(&valuename)) { @@ -3189,12 +3189,12 @@ impl ISpeechDataKey_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetLongValue, Impl: ISpeechDataKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, valuename: ::core::mem::ManuallyDrop, value: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetLongValue, Impl: ISpeechDataKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, valuename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetLongValue(::core::mem::transmute(&valuename), ::core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetLongValue, Impl: ISpeechDataKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, valuename: ::core::mem::ManuallyDrop, value: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetLongValue, Impl: ISpeechDataKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, valuename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetLongValue(::core::mem::transmute(&valuename)) { @@ -3205,7 +3205,7 @@ impl ISpeechDataKey_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn OpenKey, Impl: ISpeechDataKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, subkeyname: ::core::mem::ManuallyDrop, subkey: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn OpenKey, Impl: ISpeechDataKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, subkeyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, subkey: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OpenKey(::core::mem::transmute(&subkeyname)) { @@ -3216,7 +3216,7 @@ impl ISpeechDataKey_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateKey, Impl: ISpeechDataKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, subkeyname: ::core::mem::ManuallyDrop, subkey: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateKey, Impl: ISpeechDataKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, subkeyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, subkey: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateKey(::core::mem::transmute(&subkeyname)) { @@ -3227,17 +3227,17 @@ impl ISpeechDataKey_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DeleteKey, Impl: ISpeechDataKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, subkeyname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteKey, Impl: ISpeechDataKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, subkeyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteKey(::core::mem::transmute(&subkeyname)).into() } - unsafe extern "system" fn DeleteValue, Impl: ISpeechDataKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, valuename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteValue, Impl: ISpeechDataKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, valuename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteValue(::core::mem::transmute(&valuename)).into() } - unsafe extern "system" fn EnumKeys, Impl: ISpeechDataKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: i32, subkeyname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn EnumKeys, Impl: ISpeechDataKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: i32, subkeyname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EnumKeys(::core::mem::transmute_copy(&index)) { @@ -3248,7 +3248,7 @@ impl ISpeechDataKey_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn EnumValues, Impl: ISpeechDataKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: i32, valuename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn EnumValues, Impl: ISpeechDataKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: i32, valuename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EnumValues(::core::mem::transmute_copy(&index)) { @@ -3281,7 +3281,7 @@ impl ISpeechDataKey_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISpeechFileStream_Impl: Sized + super::super::System::Com::IDispatch_Impl + ISpeechBaseStream_Impl { - fn Open(&self, filename: &super::super::Foundation::BSTR, filemode: SpeechStreamFileMode, doevents: i16) -> ::windows::core::Result<()>; + fn Open(&self, filename: &::windows::core::BSTR, filemode: SpeechStreamFileMode, doevents: i16) -> ::windows::core::Result<()>; fn Close(&self) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3289,7 +3289,7 @@ impl ::windows::core::RuntimeName for ISpeechFileStream {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ISpeechFileStream_Vtbl { pub const fn new, Impl: ISpeechFileStream_Impl, const OFFSET: isize>() -> ISpeechFileStream_Vtbl { - unsafe extern "system" fn Open, Impl: ISpeechFileStream_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop, filemode: SpeechStreamFileMode, doevents: i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn Open, Impl: ISpeechFileStream_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, filemode: SpeechStreamFileMode, doevents: i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Open(::core::mem::transmute(&filename), ::core::mem::transmute_copy(&filemode), ::core::mem::transmute_copy(&doevents)).into() @@ -3309,10 +3309,10 @@ impl ISpeechFileStream_Vtbl { pub trait ISpeechGrammarRule_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn Attributes(&self) -> ::windows::core::Result; fn InitialState(&self) -> ::windows::core::Result; - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Id(&self) -> ::windows::core::Result; fn Clear(&self) -> ::windows::core::Result<()>; - fn AddResource(&self, resourcename: &super::super::Foundation::BSTR, resourcevalue: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn AddResource(&self, resourcename: &::windows::core::BSTR, resourcevalue: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn AddState(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3342,7 +3342,7 @@ impl ISpeechGrammarRule_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Name, Impl: ISpeechGrammarRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: ISpeechGrammarRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -3369,7 +3369,7 @@ impl ISpeechGrammarRule_Vtbl { let this = (*this).get_impl(); this.Clear().into() } - unsafe extern "system" fn AddResource, Impl: ISpeechGrammarRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, resourcename: ::core::mem::ManuallyDrop, resourcevalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddResource, Impl: ISpeechGrammarRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, resourcename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, resourcevalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddResource(::core::mem::transmute(&resourcename), ::core::mem::transmute(&resourcevalue)).into() @@ -3404,9 +3404,9 @@ impl ISpeechGrammarRule_Vtbl { pub trait ISpeechGrammarRuleState_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn Rule(&self) -> ::windows::core::Result; fn Transitions(&self) -> ::windows::core::Result; - fn AddWordTransition(&self, deststate: &::core::option::Option, words: &super::super::Foundation::BSTR, separators: &super::super::Foundation::BSTR, r#type: SpeechGrammarWordType, propertyname: &super::super::Foundation::BSTR, propertyid: i32, propertyvalue: *const super::super::System::Com::VARIANT, weight: f32) -> ::windows::core::Result<()>; - fn AddRuleTransition(&self, destinationstate: &::core::option::Option, rule: &::core::option::Option, propertyname: &super::super::Foundation::BSTR, propertyid: i32, propertyvalue: *const super::super::System::Com::VARIANT, weight: f32) -> ::windows::core::Result<()>; - fn AddSpecialTransition(&self, destinationstate: &::core::option::Option, r#type: SpeechSpecialTransitionType, propertyname: &super::super::Foundation::BSTR, propertyid: i32, propertyvalue: *const super::super::System::Com::VARIANT, weight: f32) -> ::windows::core::Result<()>; + fn AddWordTransition(&self, deststate: &::core::option::Option, words: &::windows::core::BSTR, separators: &::windows::core::BSTR, r#type: SpeechGrammarWordType, propertyname: &::windows::core::BSTR, propertyid: i32, propertyvalue: *const super::super::System::Com::VARIANT, weight: f32) -> ::windows::core::Result<()>; + fn AddRuleTransition(&self, destinationstate: &::core::option::Option, rule: &::core::option::Option, propertyname: &::windows::core::BSTR, propertyid: i32, propertyvalue: *const super::super::System::Com::VARIANT, weight: f32) -> ::windows::core::Result<()>; + fn AddSpecialTransition(&self, destinationstate: &::core::option::Option, r#type: SpeechSpecialTransitionType, propertyname: &::windows::core::BSTR, propertyid: i32, propertyvalue: *const super::super::System::Com::VARIANT, weight: f32) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ISpeechGrammarRuleState {} @@ -3435,17 +3435,17 @@ impl ISpeechGrammarRuleState_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AddWordTransition, Impl: ISpeechGrammarRuleState_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, deststate: *mut ::core::ffi::c_void, words: ::core::mem::ManuallyDrop, separators: ::core::mem::ManuallyDrop, r#type: SpeechGrammarWordType, propertyname: ::core::mem::ManuallyDrop, propertyid: i32, propertyvalue: *const super::super::System::Com::VARIANT, weight: f32) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddWordTransition, Impl: ISpeechGrammarRuleState_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, deststate: *mut ::core::ffi::c_void, words: ::core::mem::ManuallyDrop<::windows::core::BSTR>, separators: ::core::mem::ManuallyDrop<::windows::core::BSTR>, r#type: SpeechGrammarWordType, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyid: i32, propertyvalue: *const super::super::System::Com::VARIANT, weight: f32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddWordTransition(::core::mem::transmute(&deststate), ::core::mem::transmute(&words), ::core::mem::transmute(&separators), ::core::mem::transmute_copy(&r#type), ::core::mem::transmute(&propertyname), ::core::mem::transmute_copy(&propertyid), ::core::mem::transmute_copy(&propertyvalue), ::core::mem::transmute_copy(&weight)).into() } - unsafe extern "system" fn AddRuleTransition, Impl: ISpeechGrammarRuleState_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, destinationstate: *mut ::core::ffi::c_void, rule: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop, propertyid: i32, propertyvalue: *const super::super::System::Com::VARIANT, weight: f32) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddRuleTransition, Impl: ISpeechGrammarRuleState_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, destinationstate: *mut ::core::ffi::c_void, rule: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyid: i32, propertyvalue: *const super::super::System::Com::VARIANT, weight: f32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddRuleTransition(::core::mem::transmute(&destinationstate), ::core::mem::transmute(&rule), ::core::mem::transmute(&propertyname), ::core::mem::transmute_copy(&propertyid), ::core::mem::transmute_copy(&propertyvalue), ::core::mem::transmute_copy(&weight)).into() } - unsafe extern "system" fn AddSpecialTransition, Impl: ISpeechGrammarRuleState_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, destinationstate: *mut ::core::ffi::c_void, r#type: SpeechSpecialTransitionType, propertyname: ::core::mem::ManuallyDrop, propertyid: i32, propertyvalue: *const super::super::System::Com::VARIANT, weight: f32) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddSpecialTransition, Impl: ISpeechGrammarRuleState_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, destinationstate: *mut ::core::ffi::c_void, r#type: SpeechSpecialTransitionType, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyid: i32, propertyvalue: *const super::super::System::Com::VARIANT, weight: f32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddSpecialTransition(::core::mem::transmute(&destinationstate), ::core::mem::transmute_copy(&r#type), ::core::mem::transmute(&propertyname), ::core::mem::transmute_copy(&propertyid), ::core::mem::transmute_copy(&propertyvalue), ::core::mem::transmute_copy(&weight)).into() @@ -3466,10 +3466,10 @@ impl ISpeechGrammarRuleState_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISpeechGrammarRuleStateTransition_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn Type(&self) -> ::windows::core::Result; - fn Text(&self) -> ::windows::core::Result; + fn Text(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Rule(&self) -> ::windows::core::Result; fn Weight(&self) -> ::windows::core::Result; - fn PropertyName(&self) -> ::windows::core::Result; + fn PropertyName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn PropertyId(&self) -> ::windows::core::Result; fn PropertyValue(&self) -> ::windows::core::Result; fn NextState(&self) -> ::windows::core::Result; @@ -3490,7 +3490,7 @@ impl ISpeechGrammarRuleStateTransition_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Text, Impl: ISpeechGrammarRuleStateTransition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, text: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Text, Impl: ISpeechGrammarRuleStateTransition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, text: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Text() { @@ -3523,7 +3523,7 @@ impl ISpeechGrammarRuleStateTransition_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn PropertyName, Impl: ISpeechGrammarRuleStateTransition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertyname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PropertyName, Impl: ISpeechGrammarRuleStateTransition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertyname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PropertyName() { @@ -3645,9 +3645,9 @@ pub trait ISpeechGrammarRules_Impl: Sized + super::super::System::Com::IDispatch fn Item(&self, index: i32) -> ::windows::core::Result; fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; fn Dynamic(&self) -> ::windows::core::Result; - fn Add(&self, rulename: &super::super::Foundation::BSTR, attributes: SpeechRuleAttributes, ruleid: i32) -> ::windows::core::Result; + fn Add(&self, rulename: &::windows::core::BSTR, attributes: SpeechRuleAttributes, ruleid: i32) -> ::windows::core::Result; fn Commit(&self) -> ::windows::core::Result<()>; - fn CommitAndSave(&self, errortext: *mut super::super::Foundation::BSTR, savestream: *mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn CommitAndSave(&self, errortext: *mut ::windows::core::BSTR, savestream: *mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ISpeechGrammarRules {} @@ -3709,7 +3709,7 @@ impl ISpeechGrammarRules_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Add, Impl: ISpeechGrammarRules_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, rulename: ::core::mem::ManuallyDrop, attributes: SpeechRuleAttributes, ruleid: i32, rule: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Add, Impl: ISpeechGrammarRules_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, rulename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, attributes: SpeechRuleAttributes, ruleid: i32, rule: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Add(::core::mem::transmute(&rulename), ::core::mem::transmute_copy(&attributes), ::core::mem::transmute_copy(&ruleid)) { @@ -3725,7 +3725,7 @@ impl ISpeechGrammarRules_Vtbl { let this = (*this).get_impl(); this.Commit().into() } - unsafe extern "system" fn CommitAndSave, Impl: ISpeechGrammarRules_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, errortext: *mut super::super::Foundation::BSTR, savestream: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn CommitAndSave, Impl: ISpeechGrammarRules_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, errortext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, savestream: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CommitAndSave(::core::mem::transmute_copy(&errortext), ::core::mem::transmute_copy(&savestream)).into() @@ -3750,11 +3750,11 @@ impl ISpeechGrammarRules_Vtbl { pub trait ISpeechLexicon_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn GenerationId(&self) -> ::windows::core::Result; fn GetWords(&self, flags: SpeechLexiconType, generationid: *mut i32, words: *mut ::core::option::Option) -> ::windows::core::Result<()>; - fn AddPronunciation(&self, bstrword: &super::super::Foundation::BSTR, langid: i32, partofspeech: SpeechPartOfSpeech, bstrpronunciation: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn AddPronunciationByPhoneIds(&self, bstrword: &super::super::Foundation::BSTR, langid: i32, partofspeech: SpeechPartOfSpeech, phoneids: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn RemovePronunciation(&self, bstrword: &super::super::Foundation::BSTR, langid: i32, partofspeech: SpeechPartOfSpeech, bstrpronunciation: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn RemovePronunciationByPhoneIds(&self, bstrword: &super::super::Foundation::BSTR, langid: i32, partofspeech: SpeechPartOfSpeech, phoneids: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn GetPronunciations(&self, bstrword: &super::super::Foundation::BSTR, langid: i32, typeflags: SpeechLexiconType) -> ::windows::core::Result; + fn AddPronunciation(&self, bstrword: &::windows::core::BSTR, langid: i32, partofspeech: SpeechPartOfSpeech, bstrpronunciation: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn AddPronunciationByPhoneIds(&self, bstrword: &::windows::core::BSTR, langid: i32, partofspeech: SpeechPartOfSpeech, phoneids: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn RemovePronunciation(&self, bstrword: &::windows::core::BSTR, langid: i32, partofspeech: SpeechPartOfSpeech, bstrpronunciation: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn RemovePronunciationByPhoneIds(&self, bstrword: &::windows::core::BSTR, langid: i32, partofspeech: SpeechPartOfSpeech, phoneids: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn GetPronunciations(&self, bstrword: &::windows::core::BSTR, langid: i32, typeflags: SpeechLexiconType) -> ::windows::core::Result; fn GetGenerationChange(&self, generationid: *mut i32, ppwords: *mut ::core::option::Option) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3778,27 +3778,27 @@ impl ISpeechLexicon_Vtbl { let this = (*this).get_impl(); this.GetWords(::core::mem::transmute_copy(&flags), ::core::mem::transmute_copy(&generationid), ::core::mem::transmute_copy(&words)).into() } - unsafe extern "system" fn AddPronunciation, Impl: ISpeechLexicon_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrword: ::core::mem::ManuallyDrop, langid: i32, partofspeech: SpeechPartOfSpeech, bstrpronunciation: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddPronunciation, Impl: ISpeechLexicon_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, langid: i32, partofspeech: SpeechPartOfSpeech, bstrpronunciation: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddPronunciation(::core::mem::transmute(&bstrword), ::core::mem::transmute_copy(&langid), ::core::mem::transmute_copy(&partofspeech), ::core::mem::transmute(&bstrpronunciation)).into() } - unsafe extern "system" fn AddPronunciationByPhoneIds, Impl: ISpeechLexicon_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrword: ::core::mem::ManuallyDrop, langid: i32, partofspeech: SpeechPartOfSpeech, phoneids: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddPronunciationByPhoneIds, Impl: ISpeechLexicon_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, langid: i32, partofspeech: SpeechPartOfSpeech, phoneids: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddPronunciationByPhoneIds(::core::mem::transmute(&bstrword), ::core::mem::transmute_copy(&langid), ::core::mem::transmute_copy(&partofspeech), ::core::mem::transmute_copy(&phoneids)).into() } - unsafe extern "system" fn RemovePronunciation, Impl: ISpeechLexicon_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrword: ::core::mem::ManuallyDrop, langid: i32, partofspeech: SpeechPartOfSpeech, bstrpronunciation: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn RemovePronunciation, Impl: ISpeechLexicon_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, langid: i32, partofspeech: SpeechPartOfSpeech, bstrpronunciation: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RemovePronunciation(::core::mem::transmute(&bstrword), ::core::mem::transmute_copy(&langid), ::core::mem::transmute_copy(&partofspeech), ::core::mem::transmute(&bstrpronunciation)).into() } - unsafe extern "system" fn RemovePronunciationByPhoneIds, Impl: ISpeechLexicon_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrword: ::core::mem::ManuallyDrop, langid: i32, partofspeech: SpeechPartOfSpeech, phoneids: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn RemovePronunciationByPhoneIds, Impl: ISpeechLexicon_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, langid: i32, partofspeech: SpeechPartOfSpeech, phoneids: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RemovePronunciationByPhoneIds(::core::mem::transmute(&bstrword), ::core::mem::transmute_copy(&langid), ::core::mem::transmute_copy(&partofspeech), ::core::mem::transmute_copy(&phoneids)).into() } - unsafe extern "system" fn GetPronunciations, Impl: ISpeechLexicon_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrword: ::core::mem::ManuallyDrop, langid: i32, typeflags: SpeechLexiconType, pppronunciations: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPronunciations, Impl: ISpeechLexicon_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, langid: i32, typeflags: SpeechLexiconType, pppronunciations: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetPronunciations(::core::mem::transmute(&bstrword), ::core::mem::transmute_copy(&langid), ::core::mem::transmute_copy(&typeflags)) { @@ -3836,7 +3836,7 @@ pub trait ISpeechLexiconPronunciation_Impl: Sized + super::super::System::Com::I fn LangId(&self) -> ::windows::core::Result; fn PartOfSpeech(&self) -> ::windows::core::Result; fn PhoneIds(&self) -> ::windows::core::Result; - fn Symbolic(&self) -> ::windows::core::Result; + fn Symbolic(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ISpeechLexiconPronunciation {} @@ -3887,7 +3887,7 @@ impl ISpeechLexiconPronunciation_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Symbolic, Impl: ISpeechLexiconPronunciation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, symbolic: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Symbolic, Impl: ISpeechLexiconPronunciation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, symbolic: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Symbolic() { @@ -3970,7 +3970,7 @@ impl ISpeechLexiconPronunciations_Vtbl { pub trait ISpeechLexiconWord_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn LangId(&self) -> ::windows::core::Result; fn Type(&self) -> ::windows::core::Result; - fn Word(&self) -> ::windows::core::Result; + fn Word(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Pronunciations(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -4000,7 +4000,7 @@ impl ISpeechLexiconWord_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Word, Impl: ISpeechLexiconWord_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, word: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Word, Impl: ISpeechLexiconWord_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, word: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Word() { @@ -4196,26 +4196,26 @@ impl ISpeechMemoryStream_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISpeechObjectToken_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Id(&self) -> ::windows::core::Result; + fn Id(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn DataKey(&self) -> ::windows::core::Result; fn Category(&self) -> ::windows::core::Result; - fn GetDescription(&self, locale: i32) -> ::windows::core::Result; - fn SetId(&self, id: &super::super::Foundation::BSTR, categoryid: &super::super::Foundation::BSTR, createifnotexist: i16) -> ::windows::core::Result<()>; - fn GetAttribute(&self, attributename: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetDescription(&self, locale: i32) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetId(&self, id: &::windows::core::BSTR, categoryid: &::windows::core::BSTR, createifnotexist: i16) -> ::windows::core::Result<()>; + fn GetAttribute(&self, attributename: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; fn CreateInstance(&self, punkouter: &::core::option::Option<::windows::core::IUnknown>, clscontext: SpeechTokenContext) -> ::windows::core::Result<::windows::core::IUnknown>; - fn Remove(&self, objectstorageclsid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetStorageFileName(&self, objectstorageclsid: &super::super::Foundation::BSTR, keyname: &super::super::Foundation::BSTR, filename: &super::super::Foundation::BSTR, folder: SpeechTokenShellFolder) -> ::windows::core::Result; - fn RemoveStorageFileName(&self, objectstorageclsid: &super::super::Foundation::BSTR, keyname: &super::super::Foundation::BSTR, deletefile: i16) -> ::windows::core::Result<()>; - fn IsUISupported(&self, typeofui: &super::super::Foundation::BSTR, extradata: *const super::super::System::Com::VARIANT, object: &::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result; - fn DisplayUI(&self, hwnd: i32, title: &super::super::Foundation::BSTR, typeofui: &super::super::Foundation::BSTR, extradata: *const super::super::System::Com::VARIANT, object: &::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result<()>; - fn MatchesAttributes(&self, attributes: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn Remove(&self, objectstorageclsid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetStorageFileName(&self, objectstorageclsid: &::windows::core::BSTR, keyname: &::windows::core::BSTR, filename: &::windows::core::BSTR, folder: SpeechTokenShellFolder) -> ::windows::core::Result<::windows::core::BSTR>; + fn RemoveStorageFileName(&self, objectstorageclsid: &::windows::core::BSTR, keyname: &::windows::core::BSTR, deletefile: i16) -> ::windows::core::Result<()>; + fn IsUISupported(&self, typeofui: &::windows::core::BSTR, extradata: *const super::super::System::Com::VARIANT, object: &::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result; + fn DisplayUI(&self, hwnd: i32, title: &::windows::core::BSTR, typeofui: &::windows::core::BSTR, extradata: *const super::super::System::Com::VARIANT, object: &::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result<()>; + fn MatchesAttributes(&self, attributes: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ISpeechObjectToken {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ISpeechObjectToken_Vtbl { pub const fn new, Impl: ISpeechObjectToken_Impl, const OFFSET: isize>() -> ISpeechObjectToken_Vtbl { - unsafe extern "system" fn Id, Impl: ISpeechObjectToken_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, objectid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Id, Impl: ISpeechObjectToken_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, objectid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Id() { @@ -4248,7 +4248,7 @@ impl ISpeechObjectToken_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetDescription, Impl: ISpeechObjectToken_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, locale: i32, description: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDescription, Impl: ISpeechObjectToken_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, locale: i32, description: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDescription(::core::mem::transmute_copy(&locale)) { @@ -4259,12 +4259,12 @@ impl ISpeechObjectToken_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetId, Impl: ISpeechObjectToken_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, id: ::core::mem::ManuallyDrop, categoryid: ::core::mem::ManuallyDrop, createifnotexist: i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetId, Impl: ISpeechObjectToken_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, id: ::core::mem::ManuallyDrop<::windows::core::BSTR>, categoryid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, createifnotexist: i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetId(::core::mem::transmute(&id), ::core::mem::transmute(&categoryid), ::core::mem::transmute_copy(&createifnotexist)).into() } - unsafe extern "system" fn GetAttribute, Impl: ISpeechObjectToken_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, attributename: ::core::mem::ManuallyDrop, attributevalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetAttribute, Impl: ISpeechObjectToken_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, attributename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, attributevalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetAttribute(::core::mem::transmute(&attributename)) { @@ -4286,12 +4286,12 @@ impl ISpeechObjectToken_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Remove, Impl: ISpeechObjectToken_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, objectstorageclsid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Remove, Impl: ISpeechObjectToken_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, objectstorageclsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Remove(::core::mem::transmute(&objectstorageclsid)).into() } - unsafe extern "system" fn GetStorageFileName, Impl: ISpeechObjectToken_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, objectstorageclsid: ::core::mem::ManuallyDrop, keyname: ::core::mem::ManuallyDrop, filename: ::core::mem::ManuallyDrop, folder: SpeechTokenShellFolder, filepath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetStorageFileName, Impl: ISpeechObjectToken_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, objectstorageclsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, keyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, filename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, folder: SpeechTokenShellFolder, filepath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetStorageFileName(::core::mem::transmute(&objectstorageclsid), ::core::mem::transmute(&keyname), ::core::mem::transmute(&filename), ::core::mem::transmute_copy(&folder)) { @@ -4302,12 +4302,12 @@ impl ISpeechObjectToken_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RemoveStorageFileName, Impl: ISpeechObjectToken_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, objectstorageclsid: ::core::mem::ManuallyDrop, keyname: ::core::mem::ManuallyDrop, deletefile: i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn RemoveStorageFileName, Impl: ISpeechObjectToken_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, objectstorageclsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, keyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, deletefile: i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RemoveStorageFileName(::core::mem::transmute(&objectstorageclsid), ::core::mem::transmute(&keyname), ::core::mem::transmute_copy(&deletefile)).into() } - unsafe extern "system" fn IsUISupported, Impl: ISpeechObjectToken_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, typeofui: ::core::mem::ManuallyDrop, extradata: *const super::super::System::Com::VARIANT, object: *mut ::core::ffi::c_void, supported: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn IsUISupported, Impl: ISpeechObjectToken_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, typeofui: ::core::mem::ManuallyDrop<::windows::core::BSTR>, extradata: *const super::super::System::Com::VARIANT, object: *mut ::core::ffi::c_void, supported: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.IsUISupported(::core::mem::transmute(&typeofui), ::core::mem::transmute_copy(&extradata), ::core::mem::transmute(&object)) { @@ -4318,12 +4318,12 @@ impl ISpeechObjectToken_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DisplayUI, Impl: ISpeechObjectToken_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwnd: i32, title: ::core::mem::ManuallyDrop, typeofui: ::core::mem::ManuallyDrop, extradata: *const super::super::System::Com::VARIANT, object: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn DisplayUI, Impl: ISpeechObjectToken_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwnd: i32, title: ::core::mem::ManuallyDrop<::windows::core::BSTR>, typeofui: ::core::mem::ManuallyDrop<::windows::core::BSTR>, extradata: *const super::super::System::Com::VARIANT, object: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DisplayUI(::core::mem::transmute_copy(&hwnd), ::core::mem::transmute(&title), ::core::mem::transmute(&typeofui), ::core::mem::transmute_copy(&extradata), ::core::mem::transmute(&object)).into() } - unsafe extern "system" fn MatchesAttributes, Impl: ISpeechObjectToken_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, attributes: ::core::mem::ManuallyDrop, matches: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn MatchesAttributes, Impl: ISpeechObjectToken_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, attributes: ::core::mem::ManuallyDrop<::windows::core::BSTR>, matches: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.MatchesAttributes(::core::mem::transmute(&attributes)) { @@ -4357,19 +4357,19 @@ impl ISpeechObjectToken_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISpeechObjectTokenCategory_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Id(&self) -> ::windows::core::Result; - fn SetDefault(&self, tokenid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Default(&self) -> ::windows::core::Result; - fn SetId(&self, id: &super::super::Foundation::BSTR, createifnotexist: i16) -> ::windows::core::Result<()>; + fn Id(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDefault(&self, tokenid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Default(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetId(&self, id: &::windows::core::BSTR, createifnotexist: i16) -> ::windows::core::Result<()>; fn GetDataKey(&self, location: SpeechDataKeyLocation) -> ::windows::core::Result; - fn EnumerateTokens(&self, requiredattributes: &super::super::Foundation::BSTR, optionalattributes: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn EnumerateTokens(&self, requiredattributes: &::windows::core::BSTR, optionalattributes: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ISpeechObjectTokenCategory {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ISpeechObjectTokenCategory_Vtbl { pub const fn new, Impl: ISpeechObjectTokenCategory_Impl, const OFFSET: isize>() -> ISpeechObjectTokenCategory_Vtbl { - unsafe extern "system" fn Id, Impl: ISpeechObjectTokenCategory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, id: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Id, Impl: ISpeechObjectTokenCategory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, id: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Id() { @@ -4380,12 +4380,12 @@ impl ISpeechObjectTokenCategory_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDefault, Impl: ISpeechObjectTokenCategory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, tokenid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDefault, Impl: ISpeechObjectTokenCategory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, tokenid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDefault(::core::mem::transmute(&tokenid)).into() } - unsafe extern "system" fn Default, Impl: ISpeechObjectTokenCategory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, tokenid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Default, Impl: ISpeechObjectTokenCategory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, tokenid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Default() { @@ -4396,7 +4396,7 @@ impl ISpeechObjectTokenCategory_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetId, Impl: ISpeechObjectTokenCategory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, id: ::core::mem::ManuallyDrop, createifnotexist: i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetId, Impl: ISpeechObjectTokenCategory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, id: ::core::mem::ManuallyDrop<::windows::core::BSTR>, createifnotexist: i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetId(::core::mem::transmute(&id), ::core::mem::transmute_copy(&createifnotexist)).into() @@ -4412,7 +4412,7 @@ impl ISpeechObjectTokenCategory_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateTokens, Impl: ISpeechObjectTokenCategory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, requiredattributes: ::core::mem::ManuallyDrop, optionalattributes: ::core::mem::ManuallyDrop, tokens: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn EnumerateTokens, Impl: ISpeechObjectTokenCategory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, requiredattributes: ::core::mem::ManuallyDrop<::windows::core::BSTR>, optionalattributes: ::core::mem::ManuallyDrop<::windows::core::BSTR>, tokens: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EnumerateTokens(::core::mem::transmute(&requiredattributes), ::core::mem::transmute(&optionalattributes)) { @@ -4496,8 +4496,8 @@ impl ISpeechObjectTokens_Vtbl { pub trait ISpeechPhoneConverter_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn LanguageId(&self) -> ::windows::core::Result; fn SetLanguageId(&self, languageid: i32) -> ::windows::core::Result<()>; - fn PhoneToId(&self, phonemes: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn IdToPhone(&self, idarray: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn PhoneToId(&self, phonemes: &::windows::core::BSTR) -> ::windows::core::Result; + fn IdToPhone(&self, idarray: &super::super::System::Com::VARIANT) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ISpeechPhoneConverter {} @@ -4520,7 +4520,7 @@ impl ISpeechPhoneConverter_Vtbl { let this = (*this).get_impl(); this.SetLanguageId(::core::mem::transmute_copy(&languageid)).into() } - unsafe extern "system" fn PhoneToId, Impl: ISpeechPhoneConverter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, phonemes: ::core::mem::ManuallyDrop, idarray: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn PhoneToId, Impl: ISpeechPhoneConverter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, phonemes: ::core::mem::ManuallyDrop<::windows::core::BSTR>, idarray: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PhoneToId(::core::mem::transmute(&phonemes)) { @@ -4531,7 +4531,7 @@ impl ISpeechPhoneConverter_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn IdToPhone, Impl: ISpeechPhoneConverter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, idarray: ::core::mem::ManuallyDrop, phonemes: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn IdToPhone, Impl: ISpeechPhoneConverter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, idarray: ::core::mem::ManuallyDrop, phonemes: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.IdToPhone(::core::mem::transmute(&idarray)) { @@ -4692,8 +4692,8 @@ pub trait ISpeechPhraseElement_Impl: Sized + super::super::System::Com::IDispatc fn AudioSizeBytes(&self) -> ::windows::core::Result; fn RetainedStreamOffset(&self) -> ::windows::core::Result; fn RetainedSizeBytes(&self) -> ::windows::core::Result; - fn DisplayText(&self) -> ::windows::core::Result; - fn LexicalForm(&self) -> ::windows::core::Result; + fn DisplayText(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn LexicalForm(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Pronunciation(&self) -> ::windows::core::Result; fn DisplayAttributes(&self) -> ::windows::core::Result; fn RequiredConfidence(&self) -> ::windows::core::Result; @@ -4771,7 +4771,7 @@ impl ISpeechPhraseElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DisplayText, Impl: ISpeechPhraseElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, displaytext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DisplayText, Impl: ISpeechPhraseElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, displaytext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DisplayText() { @@ -4782,7 +4782,7 @@ impl ISpeechPhraseElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn LexicalForm, Impl: ISpeechPhraseElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lexicalform: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LexicalForm, Impl: ISpeechPhraseElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lexicalform: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LexicalForm() { @@ -4937,10 +4937,10 @@ pub trait ISpeechPhraseInfo_Impl: Sized + super::super::System::Com::IDispatch_I fn Properties(&self) -> ::windows::core::Result; fn Elements(&self) -> ::windows::core::Result; fn Replacements(&self) -> ::windows::core::Result; - fn EngineId(&self) -> ::windows::core::Result; + fn EngineId(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn EnginePrivateData(&self) -> ::windows::core::Result; fn SaveToMemory(&self) -> ::windows::core::Result; - fn GetText(&self, startelement: i32, elements: i32, usereplacements: i16) -> ::windows::core::Result; + fn GetText(&self, startelement: i32, elements: i32, usereplacements: i16) -> ::windows::core::Result<::windows::core::BSTR>; fn GetDisplayAttributes(&self, startelement: i32, elements: i32, usereplacements: i16) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -5069,7 +5069,7 @@ impl ISpeechPhraseInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn EngineId, Impl: ISpeechPhraseInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, engineidguid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn EngineId, Impl: ISpeechPhraseInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, engineidguid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EngineId() { @@ -5102,7 +5102,7 @@ impl ISpeechPhraseInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetText, Impl: ISpeechPhraseInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, startelement: i32, elements: i32, usereplacements: i16, text: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetText, Impl: ISpeechPhraseInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, startelement: i32, elements: i32, usereplacements: i16, text: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetText(::core::mem::transmute_copy(&startelement), ::core::mem::transmute_copy(&elements), ::core::mem::transmute_copy(&usereplacements)) { @@ -5234,7 +5234,7 @@ impl ISpeechPhraseProperties_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISpeechPhraseProperty_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Id(&self) -> ::windows::core::Result; fn Value(&self) -> ::windows::core::Result; fn FirstElement(&self) -> ::windows::core::Result; @@ -5249,7 +5249,7 @@ impl ::windows::core::RuntimeName for ISpeechPhraseProperty {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ISpeechPhraseProperty_Vtbl { pub const fn new, Impl: ISpeechPhraseProperty_Impl, const OFFSET: isize>() -> ISpeechPhraseProperty_Vtbl { - unsafe extern "system" fn Name, Impl: ISpeechPhraseProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: ISpeechPhraseProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -5368,7 +5368,7 @@ impl ISpeechPhraseProperty_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISpeechPhraseReplacement_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn DisplayAttributes(&self) -> ::windows::core::Result; - fn Text(&self) -> ::windows::core::Result; + fn Text(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn FirstElement(&self) -> ::windows::core::Result; fn NumberOfElements(&self) -> ::windows::core::Result; } @@ -5388,7 +5388,7 @@ impl ISpeechPhraseReplacement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Text, Impl: ISpeechPhraseReplacement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, text: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Text, Impl: ISpeechPhraseReplacement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, text: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Text() { @@ -5490,7 +5490,7 @@ impl ISpeechPhraseReplacements_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISpeechPhraseRule_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Id(&self) -> ::windows::core::Result; fn FirstElement(&self) -> ::windows::core::Result; fn NumberOfElements(&self) -> ::windows::core::Result; @@ -5504,7 +5504,7 @@ impl ::windows::core::RuntimeName for ISpeechPhraseRule {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ISpeechPhraseRule_Vtbl { pub const fn new, Impl: ISpeechPhraseRule_Impl, const OFFSET: isize>() -> ISpeechPhraseRule_Vtbl { - unsafe extern "system" fn Name, Impl: ISpeechPhraseRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: ISpeechPhraseRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -5667,7 +5667,7 @@ impl ISpeechPhraseRules_Vtbl { pub trait ISpeechRecoContext_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn Recognizer(&self) -> ::windows::core::Result; fn AudioInputInterferenceStatus(&self) -> ::windows::core::Result; - fn RequestedUIType(&self) -> ::windows::core::Result; + fn RequestedUIType(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn putref_Voice(&self, voice: &::core::option::Option) -> ::windows::core::Result<()>; fn Voice(&self) -> ::windows::core::Result; fn SetAllowVoiceFormatMatchingOnNextSet(&self, allow: i16) -> ::windows::core::Result<()>; @@ -5689,7 +5689,7 @@ pub trait ISpeechRecoContext_Impl: Sized + super::super::System::Com::IDispatch_ fn CreateGrammar(&self, grammarid: &super::super::System::Com::VARIANT) -> ::windows::core::Result; fn CreateResultFromMemory(&self, resultblock: *const super::super::System::Com::VARIANT) -> ::windows::core::Result; fn Bookmark(&self, options: SpeechBookmarkOptions, streampos: &super::super::System::Com::VARIANT, bookmarkid: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn SetAdaptationData(&self, adaptationstring: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetAdaptationData(&self, adaptationstring: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ISpeechRecoContext {} @@ -5718,7 +5718,7 @@ impl ISpeechRecoContext_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RequestedUIType, Impl: ISpeechRecoContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uitype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RequestedUIType, Impl: ISpeechRecoContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uitype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RequestedUIType() { @@ -5894,7 +5894,7 @@ impl ISpeechRecoContext_Vtbl { let this = (*this).get_impl(); this.Bookmark(::core::mem::transmute_copy(&options), ::core::mem::transmute(&streampos), ::core::mem::transmute(&bookmarkid)).into() } - unsafe extern "system" fn SetAdaptationData, Impl: ISpeechRecoContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, adaptationstring: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetAdaptationData, Impl: ISpeechRecoContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, adaptationstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetAdaptationData(::core::mem::transmute(&adaptationstring)).into() @@ -5940,19 +5940,19 @@ pub trait ISpeechRecoGrammar_Impl: Sized + super::super::System::Com::IDispatch_ fn State(&self) -> ::windows::core::Result; fn Rules(&self) -> ::windows::core::Result; fn Reset(&self, newlanguage: i32) -> ::windows::core::Result<()>; - fn CmdLoadFromFile(&self, filename: &super::super::Foundation::BSTR, loadoption: SpeechLoadOption) -> ::windows::core::Result<()>; - fn CmdLoadFromObject(&self, classid: &super::super::Foundation::BSTR, grammarname: &super::super::Foundation::BSTR, loadoption: SpeechLoadOption) -> ::windows::core::Result<()>; + fn CmdLoadFromFile(&self, filename: &::windows::core::BSTR, loadoption: SpeechLoadOption) -> ::windows::core::Result<()>; + fn CmdLoadFromObject(&self, classid: &::windows::core::BSTR, grammarname: &::windows::core::BSTR, loadoption: SpeechLoadOption) -> ::windows::core::Result<()>; fn CmdLoadFromResource(&self, hmodule: i32, resourcename: &super::super::System::Com::VARIANT, resourcetype: &super::super::System::Com::VARIANT, languageid: i32, loadoption: SpeechLoadOption) -> ::windows::core::Result<()>; fn CmdLoadFromMemory(&self, grammardata: &super::super::System::Com::VARIANT, loadoption: SpeechLoadOption) -> ::windows::core::Result<()>; - fn CmdLoadFromProprietaryGrammar(&self, proprietaryguid: &super::super::Foundation::BSTR, proprietarystring: &super::super::Foundation::BSTR, proprietarydata: &super::super::System::Com::VARIANT, loadoption: SpeechLoadOption) -> ::windows::core::Result<()>; - fn CmdSetRuleState(&self, name: &super::super::Foundation::BSTR, state: SpeechRuleState) -> ::windows::core::Result<()>; + fn CmdLoadFromProprietaryGrammar(&self, proprietaryguid: &::windows::core::BSTR, proprietarystring: &::windows::core::BSTR, proprietarydata: &super::super::System::Com::VARIANT, loadoption: SpeechLoadOption) -> ::windows::core::Result<()>; + fn CmdSetRuleState(&self, name: &::windows::core::BSTR, state: SpeechRuleState) -> ::windows::core::Result<()>; fn CmdSetRuleIdState(&self, ruleid: i32, state: SpeechRuleState) -> ::windows::core::Result<()>; - fn DictationLoad(&self, topicname: &super::super::Foundation::BSTR, loadoption: SpeechLoadOption) -> ::windows::core::Result<()>; + fn DictationLoad(&self, topicname: &::windows::core::BSTR, loadoption: SpeechLoadOption) -> ::windows::core::Result<()>; fn DictationUnload(&self) -> ::windows::core::Result<()>; fn DictationSetState(&self, state: SpeechRuleState) -> ::windows::core::Result<()>; - fn SetWordSequenceData(&self, text: &super::super::Foundation::BSTR, textlength: i32, info: &::core::option::Option) -> ::windows::core::Result<()>; + fn SetWordSequenceData(&self, text: &::windows::core::BSTR, textlength: i32, info: &::core::option::Option) -> ::windows::core::Result<()>; fn SetTextSelection(&self, info: &::core::option::Option) -> ::windows::core::Result<()>; - fn IsPronounceable(&self, word: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn IsPronounceable(&self, word: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ISpeechRecoGrammar {} @@ -6013,12 +6013,12 @@ impl ISpeechRecoGrammar_Vtbl { let this = (*this).get_impl(); this.Reset(::core::mem::transmute_copy(&newlanguage)).into() } - unsafe extern "system" fn CmdLoadFromFile, Impl: ISpeechRecoGrammar_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop, loadoption: SpeechLoadOption) -> ::windows::core::HRESULT { + unsafe extern "system" fn CmdLoadFromFile, Impl: ISpeechRecoGrammar_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, loadoption: SpeechLoadOption) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CmdLoadFromFile(::core::mem::transmute(&filename), ::core::mem::transmute_copy(&loadoption)).into() } - unsafe extern "system" fn CmdLoadFromObject, Impl: ISpeechRecoGrammar_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, classid: ::core::mem::ManuallyDrop, grammarname: ::core::mem::ManuallyDrop, loadoption: SpeechLoadOption) -> ::windows::core::HRESULT { + unsafe extern "system" fn CmdLoadFromObject, Impl: ISpeechRecoGrammar_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, classid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, grammarname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, loadoption: SpeechLoadOption) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CmdLoadFromObject(::core::mem::transmute(&classid), ::core::mem::transmute(&grammarname), ::core::mem::transmute_copy(&loadoption)).into() @@ -6033,12 +6033,12 @@ impl ISpeechRecoGrammar_Vtbl { let this = (*this).get_impl(); this.CmdLoadFromMemory(::core::mem::transmute(&grammardata), ::core::mem::transmute_copy(&loadoption)).into() } - unsafe extern "system" fn CmdLoadFromProprietaryGrammar, Impl: ISpeechRecoGrammar_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, proprietaryguid: ::core::mem::ManuallyDrop, proprietarystring: ::core::mem::ManuallyDrop, proprietarydata: ::core::mem::ManuallyDrop, loadoption: SpeechLoadOption) -> ::windows::core::HRESULT { + unsafe extern "system" fn CmdLoadFromProprietaryGrammar, Impl: ISpeechRecoGrammar_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, proprietaryguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, proprietarystring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, proprietarydata: ::core::mem::ManuallyDrop, loadoption: SpeechLoadOption) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CmdLoadFromProprietaryGrammar(::core::mem::transmute(&proprietaryguid), ::core::mem::transmute(&proprietarystring), ::core::mem::transmute(&proprietarydata), ::core::mem::transmute_copy(&loadoption)).into() } - unsafe extern "system" fn CmdSetRuleState, Impl: ISpeechRecoGrammar_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, state: SpeechRuleState) -> ::windows::core::HRESULT { + unsafe extern "system" fn CmdSetRuleState, Impl: ISpeechRecoGrammar_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, state: SpeechRuleState) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CmdSetRuleState(::core::mem::transmute(&name), ::core::mem::transmute_copy(&state)).into() @@ -6048,7 +6048,7 @@ impl ISpeechRecoGrammar_Vtbl { let this = (*this).get_impl(); this.CmdSetRuleIdState(::core::mem::transmute_copy(&ruleid), ::core::mem::transmute_copy(&state)).into() } - unsafe extern "system" fn DictationLoad, Impl: ISpeechRecoGrammar_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, topicname: ::core::mem::ManuallyDrop, loadoption: SpeechLoadOption) -> ::windows::core::HRESULT { + unsafe extern "system" fn DictationLoad, Impl: ISpeechRecoGrammar_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, topicname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, loadoption: SpeechLoadOption) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DictationLoad(::core::mem::transmute(&topicname), ::core::mem::transmute_copy(&loadoption)).into() @@ -6063,7 +6063,7 @@ impl ISpeechRecoGrammar_Vtbl { let this = (*this).get_impl(); this.DictationSetState(::core::mem::transmute_copy(&state)).into() } - unsafe extern "system" fn SetWordSequenceData, Impl: ISpeechRecoGrammar_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop, textlength: i32, info: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetWordSequenceData, Impl: ISpeechRecoGrammar_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop<::windows::core::BSTR>, textlength: i32, info: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetWordSequenceData(::core::mem::transmute(&text), ::core::mem::transmute_copy(&textlength), ::core::mem::transmute(&info)).into() @@ -6073,7 +6073,7 @@ impl ISpeechRecoGrammar_Vtbl { let this = (*this).get_impl(); this.SetTextSelection(::core::mem::transmute(&info)).into() } - unsafe extern "system" fn IsPronounceable, Impl: ISpeechRecoGrammar_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, word: ::core::mem::ManuallyDrop, wordpronounceable: *mut SpeechWordPronounceable) -> ::windows::core::HRESULT { + unsafe extern "system" fn IsPronounceable, Impl: ISpeechRecoGrammar_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, word: ::core::mem::ManuallyDrop<::windows::core::BSTR>, wordpronounceable: *mut SpeechWordPronounceable) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.IsPronounceable(::core::mem::transmute(&word)) { @@ -6247,14 +6247,14 @@ impl ISpeechRecoResult_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISpeechRecoResult2_Impl: Sized + super::super::System::Com::IDispatch_Impl + ISpeechRecoResult_Impl { - fn SetTextFeedback(&self, feedback: &super::super::Foundation::BSTR, wassuccessful: i16) -> ::windows::core::Result<()>; + fn SetTextFeedback(&self, feedback: &::windows::core::BSTR, wassuccessful: i16) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ISpeechRecoResult2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ISpeechRecoResult2_Vtbl { pub const fn new, Impl: ISpeechRecoResult2_Impl, const OFFSET: isize>() -> ISpeechRecoResult2_Vtbl { - unsafe extern "system" fn SetTextFeedback, Impl: ISpeechRecoResult2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feedback: ::core::mem::ManuallyDrop, wassuccessful: i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetTextFeedback, Impl: ISpeechRecoResult2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feedback: ::core::mem::ManuallyDrop<::windows::core::BSTR>, wassuccessful: i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetTextFeedback(::core::mem::transmute(&feedback), ::core::mem::transmute_copy(&wassuccessful)).into() @@ -6277,9 +6277,9 @@ pub trait ISpeechRecoResultDispatch_Impl: Sized + super::super::System::Com::IDi fn SpeakAudio(&self, startelement: i32, elements: i32, flags: SpeechVoiceSpeakFlags) -> ::windows::core::Result; fn SaveToMemory(&self) -> ::windows::core::Result; fn DiscardResultInfo(&self, valuetypes: SpeechDiscardType) -> ::windows::core::Result<()>; - fn GetXMLResult(&self, options: SPXMLRESULTOPTIONS) -> ::windows::core::Result; - fn GetXMLErrorInfo(&self, linenumber: *mut i32, scriptline: *mut super::super::Foundation::BSTR, source: *mut super::super::Foundation::BSTR, description: *mut super::super::Foundation::BSTR, resultcode: *mut ::windows::core::HRESULT, iserror: *mut i16) -> ::windows::core::Result<()>; - fn SetTextFeedback(&self, feedback: &super::super::Foundation::BSTR, wassuccessful: i16) -> ::windows::core::Result<()>; + fn GetXMLResult(&self, options: SPXMLRESULTOPTIONS) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetXMLErrorInfo(&self, linenumber: *mut i32, scriptline: *mut ::windows::core::BSTR, source: *mut ::windows::core::BSTR, description: *mut ::windows::core::BSTR, resultcode: *mut ::windows::core::HRESULT, iserror: *mut i16) -> ::windows::core::Result<()>; + fn SetTextFeedback(&self, feedback: &::windows::core::BSTR, wassuccessful: i16) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ISpeechRecoResultDispatch {} @@ -6384,7 +6384,7 @@ impl ISpeechRecoResultDispatch_Vtbl { let this = (*this).get_impl(); this.DiscardResultInfo(::core::mem::transmute_copy(&valuetypes)).into() } - unsafe extern "system" fn GetXMLResult, Impl: ISpeechRecoResultDispatch_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, options: SPXMLRESULTOPTIONS, presult: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetXMLResult, Impl: ISpeechRecoResultDispatch_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, options: SPXMLRESULTOPTIONS, presult: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetXMLResult(::core::mem::transmute_copy(&options)) { @@ -6395,12 +6395,12 @@ impl ISpeechRecoResultDispatch_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetXMLErrorInfo, Impl: ISpeechRecoResultDispatch_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, linenumber: *mut i32, scriptline: *mut super::super::Foundation::BSTR, source: *mut super::super::Foundation::BSTR, description: *mut super::super::Foundation::BSTR, resultcode: *mut ::windows::core::HRESULT, iserror: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetXMLErrorInfo, Impl: ISpeechRecoResultDispatch_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, linenumber: *mut i32, scriptline: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, source: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, description: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, resultcode: *mut ::windows::core::HRESULT, iserror: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetXMLErrorInfo(::core::mem::transmute_copy(&linenumber), ::core::mem::transmute_copy(&scriptline), ::core::mem::transmute_copy(&source), ::core::mem::transmute_copy(&description), ::core::mem::transmute_copy(&resultcode), ::core::mem::transmute_copy(&iserror)).into() } - unsafe extern "system" fn SetTextFeedback, Impl: ISpeechRecoResultDispatch_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feedback: ::core::mem::ManuallyDrop, wassuccessful: i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetTextFeedback, Impl: ISpeechRecoResultDispatch_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feedback: ::core::mem::ManuallyDrop<::windows::core::BSTR>, wassuccessful: i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetTextFeedback(::core::mem::transmute(&feedback), ::core::mem::transmute_copy(&wassuccessful)).into() @@ -6513,15 +6513,15 @@ pub trait ISpeechRecognizer_Impl: Sized + super::super::System::Com::IDispatch_I fn EmulateRecognition(&self, textelements: &super::super::System::Com::VARIANT, elementdisplayattributes: *const super::super::System::Com::VARIANT, languageid: i32) -> ::windows::core::Result<()>; fn CreateRecoContext(&self) -> ::windows::core::Result; fn GetFormat(&self, r#type: SpeechFormatType) -> ::windows::core::Result; - fn SetPropertyNumber(&self, name: &super::super::Foundation::BSTR, value: i32) -> ::windows::core::Result; - fn GetPropertyNumber(&self, name: &super::super::Foundation::BSTR, value: *mut i32, supported: *mut i16) -> ::windows::core::Result<()>; - fn SetPropertyString(&self, name: &super::super::Foundation::BSTR, value: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetPropertyString(&self, name: &super::super::Foundation::BSTR, value: *mut super::super::Foundation::BSTR, supported: *mut i16) -> ::windows::core::Result<()>; - fn IsUISupported(&self, typeofui: &super::super::Foundation::BSTR, extradata: *const super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn DisplayUI(&self, hwndparent: i32, title: &super::super::Foundation::BSTR, typeofui: &super::super::Foundation::BSTR, extradata: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn GetRecognizers(&self, requiredattributes: &super::super::Foundation::BSTR, optionalattributes: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetAudioInputs(&self, requiredattributes: &super::super::Foundation::BSTR, optionalattributes: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetProfiles(&self, requiredattributes: &super::super::Foundation::BSTR, optionalattributes: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn SetPropertyNumber(&self, name: &::windows::core::BSTR, value: i32) -> ::windows::core::Result; + fn GetPropertyNumber(&self, name: &::windows::core::BSTR, value: *mut i32, supported: *mut i16) -> ::windows::core::Result<()>; + fn SetPropertyString(&self, name: &::windows::core::BSTR, value: &::windows::core::BSTR) -> ::windows::core::Result; + fn GetPropertyString(&self, name: &::windows::core::BSTR, value: *mut ::windows::core::BSTR, supported: *mut i16) -> ::windows::core::Result<()>; + fn IsUISupported(&self, typeofui: &::windows::core::BSTR, extradata: *const super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn DisplayUI(&self, hwndparent: i32, title: &::windows::core::BSTR, typeofui: &::windows::core::BSTR, extradata: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn GetRecognizers(&self, requiredattributes: &::windows::core::BSTR, optionalattributes: &::windows::core::BSTR) -> ::windows::core::Result; + fn GetAudioInputs(&self, requiredattributes: &::windows::core::BSTR, optionalattributes: &::windows::core::BSTR) -> ::windows::core::Result; + fn GetProfiles(&self, requiredattributes: &::windows::core::BSTR, optionalattributes: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ISpeechRecognizer {} @@ -6673,7 +6673,7 @@ impl ISpeechRecognizer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPropertyNumber, Impl: ISpeechRecognizer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, value: i32, supported: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPropertyNumber, Impl: ISpeechRecognizer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: i32, supported: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SetPropertyNumber(::core::mem::transmute(&name), ::core::mem::transmute_copy(&value)) { @@ -6684,12 +6684,12 @@ impl ISpeechRecognizer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetPropertyNumber, Impl: ISpeechRecognizer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, value: *mut i32, supported: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPropertyNumber, Impl: ISpeechRecognizer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: *mut i32, supported: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetPropertyNumber(::core::mem::transmute(&name), ::core::mem::transmute_copy(&value), ::core::mem::transmute_copy(&supported)).into() } - unsafe extern "system" fn SetPropertyString, Impl: ISpeechRecognizer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, value: ::core::mem::ManuallyDrop, supported: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPropertyString, Impl: ISpeechRecognizer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>, supported: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SetPropertyString(::core::mem::transmute(&name), ::core::mem::transmute(&value)) { @@ -6700,12 +6700,12 @@ impl ISpeechRecognizer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetPropertyString, Impl: ISpeechRecognizer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, value: *mut super::super::Foundation::BSTR, supported: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPropertyString, Impl: ISpeechRecognizer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, supported: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetPropertyString(::core::mem::transmute(&name), ::core::mem::transmute_copy(&value), ::core::mem::transmute_copy(&supported)).into() } - unsafe extern "system" fn IsUISupported, Impl: ISpeechRecognizer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, typeofui: ::core::mem::ManuallyDrop, extradata: *const super::super::System::Com::VARIANT, supported: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn IsUISupported, Impl: ISpeechRecognizer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, typeofui: ::core::mem::ManuallyDrop<::windows::core::BSTR>, extradata: *const super::super::System::Com::VARIANT, supported: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.IsUISupported(::core::mem::transmute(&typeofui), ::core::mem::transmute_copy(&extradata)) { @@ -6716,12 +6716,12 @@ impl ISpeechRecognizer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DisplayUI, Impl: ISpeechRecognizer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwndparent: i32, title: ::core::mem::ManuallyDrop, typeofui: ::core::mem::ManuallyDrop, extradata: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn DisplayUI, Impl: ISpeechRecognizer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwndparent: i32, title: ::core::mem::ManuallyDrop<::windows::core::BSTR>, typeofui: ::core::mem::ManuallyDrop<::windows::core::BSTR>, extradata: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DisplayUI(::core::mem::transmute_copy(&hwndparent), ::core::mem::transmute(&title), ::core::mem::transmute(&typeofui), ::core::mem::transmute_copy(&extradata)).into() } - unsafe extern "system" fn GetRecognizers, Impl: ISpeechRecognizer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, requiredattributes: ::core::mem::ManuallyDrop, optionalattributes: ::core::mem::ManuallyDrop, objecttokens: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetRecognizers, Impl: ISpeechRecognizer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, requiredattributes: ::core::mem::ManuallyDrop<::windows::core::BSTR>, optionalattributes: ::core::mem::ManuallyDrop<::windows::core::BSTR>, objecttokens: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetRecognizers(::core::mem::transmute(&requiredattributes), ::core::mem::transmute(&optionalattributes)) { @@ -6732,7 +6732,7 @@ impl ISpeechRecognizer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetAudioInputs, Impl: ISpeechRecognizer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, requiredattributes: ::core::mem::ManuallyDrop, optionalattributes: ::core::mem::ManuallyDrop, objecttokens: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetAudioInputs, Impl: ISpeechRecognizer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, requiredattributes: ::core::mem::ManuallyDrop<::windows::core::BSTR>, optionalattributes: ::core::mem::ManuallyDrop<::windows::core::BSTR>, objecttokens: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetAudioInputs(::core::mem::transmute(&requiredattributes), ::core::mem::transmute(&optionalattributes)) { @@ -6743,7 +6743,7 @@ impl ISpeechRecognizer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetProfiles, Impl: ISpeechRecognizer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, requiredattributes: ::core::mem::ManuallyDrop, optionalattributes: ::core::mem::ManuallyDrop, objecttokens: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetProfiles, Impl: ISpeechRecognizer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, requiredattributes: ::core::mem::ManuallyDrop<::windows::core::BSTR>, optionalattributes: ::core::mem::ManuallyDrop<::windows::core::BSTR>, objecttokens: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetProfiles(::core::mem::transmute(&requiredattributes), ::core::mem::transmute(&optionalattributes)) { @@ -6794,7 +6794,7 @@ pub trait ISpeechRecognizerStatus_Impl: Sized + super::super::System::Com::IDisp fn CurrentStreamPosition(&self) -> ::windows::core::Result; fn CurrentStreamNumber(&self) -> ::windows::core::Result; fn NumberOfActiveRules(&self) -> ::windows::core::Result; - fn ClsidEngine(&self) -> ::windows::core::Result; + fn ClsidEngine(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn SupportedLanguages(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -6846,7 +6846,7 @@ impl ISpeechRecognizerStatus_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ClsidEngine, Impl: ISpeechRecognizerStatus_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, clsidengine: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ClsidEngine, Impl: ISpeechRecognizerStatus_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, clsidengine: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ClsidEngine() { @@ -6884,26 +6884,26 @@ impl ISpeechRecognizerStatus_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISpeechResourceLoader_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn LoadResource(&self, bstrresourceuri: &super::super::Foundation::BSTR, falwaysreload: i16, pstream: *mut ::core::option::Option<::windows::core::IUnknown>, pbstrmimetype: *mut super::super::Foundation::BSTR, pfmodified: *mut i16, pbstrredirecturl: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetLocalCopy(&self, bstrresourceuri: &super::super::Foundation::BSTR, pbstrlocalpath: *mut super::super::Foundation::BSTR, pbstrmimetype: *mut super::super::Foundation::BSTR, pbstrredirecturl: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ReleaseLocalCopy(&self, pbstrlocalpath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn LoadResource(&self, bstrresourceuri: &::windows::core::BSTR, falwaysreload: i16, pstream: *mut ::core::option::Option<::windows::core::IUnknown>, pbstrmimetype: *mut ::windows::core::BSTR, pfmodified: *mut i16, pbstrredirecturl: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetLocalCopy(&self, bstrresourceuri: &::windows::core::BSTR, pbstrlocalpath: *mut ::windows::core::BSTR, pbstrmimetype: *mut ::windows::core::BSTR, pbstrredirecturl: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ReleaseLocalCopy(&self, pbstrlocalpath: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ISpeechResourceLoader {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ISpeechResourceLoader_Vtbl { pub const fn new, Impl: ISpeechResourceLoader_Impl, const OFFSET: isize>() -> ISpeechResourceLoader_Vtbl { - unsafe extern "system" fn LoadResource, Impl: ISpeechResourceLoader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrresourceuri: ::core::mem::ManuallyDrop, falwaysreload: i16, pstream: *mut *mut ::core::ffi::c_void, pbstrmimetype: *mut super::super::Foundation::BSTR, pfmodified: *mut i16, pbstrredirecturl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LoadResource, Impl: ISpeechResourceLoader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrresourceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, falwaysreload: i16, pstream: *mut *mut ::core::ffi::c_void, pbstrmimetype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfmodified: *mut i16, pbstrredirecturl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.LoadResource(::core::mem::transmute(&bstrresourceuri), ::core::mem::transmute_copy(&falwaysreload), ::core::mem::transmute_copy(&pstream), ::core::mem::transmute_copy(&pbstrmimetype), ::core::mem::transmute_copy(&pfmodified), ::core::mem::transmute_copy(&pbstrredirecturl)).into() } - unsafe extern "system" fn GetLocalCopy, Impl: ISpeechResourceLoader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrresourceuri: ::core::mem::ManuallyDrop, pbstrlocalpath: *mut super::super::Foundation::BSTR, pbstrmimetype: *mut super::super::Foundation::BSTR, pbstrredirecturl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetLocalCopy, Impl: ISpeechResourceLoader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrresourceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrlocalpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrmimetype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrredirecturl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetLocalCopy(::core::mem::transmute(&bstrresourceuri), ::core::mem::transmute_copy(&pbstrlocalpath), ::core::mem::transmute_copy(&pbstrmimetype), ::core::mem::transmute_copy(&pbstrredirecturl)).into() } - unsafe extern "system" fn ReleaseLocalCopy, Impl: ISpeechResourceLoader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrlocalpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ReleaseLocalCopy, Impl: ISpeechResourceLoader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrlocalpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ReleaseLocalCopy(::core::mem::transmute(&pbstrlocalpath)).into() @@ -7038,17 +7038,17 @@ pub trait ISpeechVoice_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn AlertBoundary(&self) -> ::windows::core::Result; fn SetSynchronousSpeakTimeout(&self, mstimeout: i32) -> ::windows::core::Result<()>; fn SynchronousSpeakTimeout(&self) -> ::windows::core::Result; - fn Speak(&self, text: &super::super::Foundation::BSTR, flags: SpeechVoiceSpeakFlags) -> ::windows::core::Result; + fn Speak(&self, text: &::windows::core::BSTR, flags: SpeechVoiceSpeakFlags) -> ::windows::core::Result; fn SpeakStream(&self, stream: &::core::option::Option, flags: SpeechVoiceSpeakFlags) -> ::windows::core::Result; fn Pause(&self) -> ::windows::core::Result<()>; fn Resume(&self) -> ::windows::core::Result<()>; - fn Skip(&self, r#type: &super::super::Foundation::BSTR, numitems: i32) -> ::windows::core::Result; - fn GetVoices(&self, requiredattributes: &super::super::Foundation::BSTR, optionalattributes: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetAudioOutputs(&self, requiredattributes: &super::super::Foundation::BSTR, optionalattributes: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn Skip(&self, r#type: &::windows::core::BSTR, numitems: i32) -> ::windows::core::Result; + fn GetVoices(&self, requiredattributes: &::windows::core::BSTR, optionalattributes: &::windows::core::BSTR) -> ::windows::core::Result; + fn GetAudioOutputs(&self, requiredattributes: &::windows::core::BSTR, optionalattributes: &::windows::core::BSTR) -> ::windows::core::Result; fn WaitUntilDone(&self, mstimeout: i32) -> ::windows::core::Result; fn SpeakCompleteEvent(&self) -> ::windows::core::Result; - fn IsUISupported(&self, typeofui: &super::super::Foundation::BSTR, extradata: *const super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn DisplayUI(&self, hwndparent: i32, title: &super::super::Foundation::BSTR, typeofui: &super::super::Foundation::BSTR, extradata: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn IsUISupported(&self, typeofui: &::windows::core::BSTR, extradata: *const super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn DisplayUI(&self, hwndparent: i32, title: &::windows::core::BSTR, typeofui: &::windows::core::BSTR, extradata: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ISpeechVoice {} @@ -7226,7 +7226,7 @@ impl ISpeechVoice_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Speak, Impl: ISpeechVoice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop, flags: SpeechVoiceSpeakFlags, streamnumber: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn Speak, Impl: ISpeechVoice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: SpeechVoiceSpeakFlags, streamnumber: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Speak(::core::mem::transmute(&text), ::core::mem::transmute_copy(&flags)) { @@ -7258,7 +7258,7 @@ impl ISpeechVoice_Vtbl { let this = (*this).get_impl(); this.Resume().into() } - unsafe extern "system" fn Skip, Impl: ISpeechVoice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, r#type: ::core::mem::ManuallyDrop, numitems: i32, numskipped: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn Skip, Impl: ISpeechVoice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, r#type: ::core::mem::ManuallyDrop<::windows::core::BSTR>, numitems: i32, numskipped: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Skip(::core::mem::transmute(&r#type), ::core::mem::transmute_copy(&numitems)) { @@ -7269,7 +7269,7 @@ impl ISpeechVoice_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetVoices, Impl: ISpeechVoice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, requiredattributes: ::core::mem::ManuallyDrop, optionalattributes: ::core::mem::ManuallyDrop, objecttokens: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetVoices, Impl: ISpeechVoice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, requiredattributes: ::core::mem::ManuallyDrop<::windows::core::BSTR>, optionalattributes: ::core::mem::ManuallyDrop<::windows::core::BSTR>, objecttokens: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetVoices(::core::mem::transmute(&requiredattributes), ::core::mem::transmute(&optionalattributes)) { @@ -7280,7 +7280,7 @@ impl ISpeechVoice_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetAudioOutputs, Impl: ISpeechVoice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, requiredattributes: ::core::mem::ManuallyDrop, optionalattributes: ::core::mem::ManuallyDrop, objecttokens: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetAudioOutputs, Impl: ISpeechVoice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, requiredattributes: ::core::mem::ManuallyDrop<::windows::core::BSTR>, optionalattributes: ::core::mem::ManuallyDrop<::windows::core::BSTR>, objecttokens: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetAudioOutputs(::core::mem::transmute(&requiredattributes), ::core::mem::transmute(&optionalattributes)) { @@ -7313,7 +7313,7 @@ impl ISpeechVoice_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn IsUISupported, Impl: ISpeechVoice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, typeofui: ::core::mem::ManuallyDrop, extradata: *const super::super::System::Com::VARIANT, supported: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn IsUISupported, Impl: ISpeechVoice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, typeofui: ::core::mem::ManuallyDrop<::windows::core::BSTR>, extradata: *const super::super::System::Com::VARIANT, supported: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.IsUISupported(::core::mem::transmute(&typeofui), ::core::mem::transmute_copy(&extradata)) { @@ -7324,7 +7324,7 @@ impl ISpeechVoice_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DisplayUI, Impl: ISpeechVoice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwndparent: i32, title: ::core::mem::ManuallyDrop, typeofui: ::core::mem::ManuallyDrop, extradata: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn DisplayUI, Impl: ISpeechVoice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwndparent: i32, title: ::core::mem::ManuallyDrop<::windows::core::BSTR>, typeofui: ::core::mem::ManuallyDrop<::windows::core::BSTR>, extradata: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DisplayUI(::core::mem::transmute_copy(&hwndparent), ::core::mem::transmute(&title), ::core::mem::transmute(&typeofui), ::core::mem::transmute_copy(&extradata)).into() @@ -7379,7 +7379,7 @@ pub trait ISpeechVoiceStatus_Impl: Sized + super::super::System::Com::IDispatch_ fn InputWordLength(&self) -> ::windows::core::Result; fn InputSentencePosition(&self) -> ::windows::core::Result; fn InputSentenceLength(&self) -> ::windows::core::Result; - fn LastBookmark(&self) -> ::windows::core::Result; + fn LastBookmark(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn LastBookmarkId(&self) -> ::windows::core::Result; fn PhonemeId(&self) -> ::windows::core::Result; fn VisemeId(&self) -> ::windows::core::Result; @@ -7477,7 +7477,7 @@ impl ISpeechVoiceStatus_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn LastBookmark, Impl: ISpeechVoiceStatus_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bookmark: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LastBookmark, Impl: ISpeechVoiceStatus_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bookmark: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LastBookmark() { @@ -7699,15 +7699,15 @@ impl ISpeechWaveFormatEx_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISpeechXMLRecoResult_Impl: Sized + super::super::System::Com::IDispatch_Impl + ISpeechRecoResult_Impl { - fn GetXMLResult(&self, options: SPXMLRESULTOPTIONS) -> ::windows::core::Result; - fn GetXMLErrorInfo(&self, linenumber: *mut i32, scriptline: *mut super::super::Foundation::BSTR, source: *mut super::super::Foundation::BSTR, description: *mut super::super::Foundation::BSTR, resultcode: *mut i32, iserror: *mut i16) -> ::windows::core::Result<()>; + fn GetXMLResult(&self, options: SPXMLRESULTOPTIONS) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetXMLErrorInfo(&self, linenumber: *mut i32, scriptline: *mut ::windows::core::BSTR, source: *mut ::windows::core::BSTR, description: *mut ::windows::core::BSTR, resultcode: *mut i32, iserror: *mut i16) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ISpeechXMLRecoResult {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ISpeechXMLRecoResult_Vtbl { pub const fn new, Impl: ISpeechXMLRecoResult_Impl, const OFFSET: isize>() -> ISpeechXMLRecoResult_Vtbl { - unsafe extern "system" fn GetXMLResult, Impl: ISpeechXMLRecoResult_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, options: SPXMLRESULTOPTIONS, presult: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetXMLResult, Impl: ISpeechXMLRecoResult_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, options: SPXMLRESULTOPTIONS, presult: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetXMLResult(::core::mem::transmute_copy(&options)) { @@ -7718,7 +7718,7 @@ impl ISpeechXMLRecoResult_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetXMLErrorInfo, Impl: ISpeechXMLRecoResult_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, linenumber: *mut i32, scriptline: *mut super::super::Foundation::BSTR, source: *mut super::super::Foundation::BSTR, description: *mut super::super::Foundation::BSTR, resultcode: *mut i32, iserror: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetXMLErrorInfo, Impl: ISpeechXMLRecoResult_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, linenumber: *mut i32, scriptline: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, source: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, description: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, resultcode: *mut i32, iserror: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetXMLErrorInfo(::core::mem::transmute_copy(&linenumber), ::core::mem::transmute_copy(&scriptline), ::core::mem::transmute_copy(&source), ::core::mem::transmute_copy(&description), ::core::mem::transmute_copy(&resultcode), ::core::mem::transmute_copy(&iserror)).into() diff --git a/crates/libs/windows/src/Windows/Win32/Media/Speech/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/Speech/mod.rs index 07394ddec2..be083b0620 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Speech/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Speech/mod.rs @@ -5970,19 +5970,12 @@ impl ISpeechAudioFormat { pub unsafe fn SetType(&self, audioformat: SpeechAudioFormatType) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetType)(::windows::core::Interface::as_raw(self), audioformat).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Guid(&self) -> ::windows::core::Result { + pub unsafe fn Guid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Guid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Guid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetGuid<'a, P0>(&self, guid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetGuid)(::windows::core::Interface::as_raw(self), guid.into().abi()).ok() + pub unsafe fn SetGuid(&self, guid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(guid)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6067,14 +6060,8 @@ pub struct ISpeechAudioFormat_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, audioformat: *mut SpeechAudioFormatType) -> ::windows::core::HRESULT, pub SetType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, audioformat: SpeechAudioFormatType) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Guid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Guid: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetGuid: usize, + pub Guid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub GetWaveFormatEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, speechwaveformatex: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -6473,102 +6460,57 @@ pub struct ISpeechDataKey(::windows::core::IUnknown); impl ISpeechDataKey { #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn SetBinaryValue<'a, P0, P1>(&self, valuename: P0, value: P1) -> ::windows::core::Result<()> + pub unsafe fn SetBinaryValue<'a, P0>(&self, valuename: &::windows::core::BSTR, value: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).SetBinaryValue)(::windows::core::Interface::as_raw(self), valuename.into().abi(), value.into().abi()).ok() + (::windows::core::Interface::vtable(self).SetBinaryValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(valuename), value.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetBinaryValue<'a, P0>(&self, valuename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetBinaryValue(&self, valuename: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetBinaryValue)(::windows::core::Interface::as_raw(self), valuename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetBinaryValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(valuename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetStringValue<'a, P0, P1>(&self, valuename: P0, value: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetStringValue)(::windows::core::Interface::as_raw(self), valuename.into().abi(), value.into().abi()).ok() + pub unsafe fn SetStringValue(&self, valuename: &::windows::core::BSTR, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetStringValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(valuename), ::core::mem::transmute_copy(value)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetStringValue<'a, P0>(&self, valuename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetStringValue(&self, valuename: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetStringValue)(::windows::core::Interface::as_raw(self), valuename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetStringValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(valuename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLongValue<'a, P0>(&self, valuename: P0, value: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetLongValue)(::windows::core::Interface::as_raw(self), valuename.into().abi(), value).ok() + pub unsafe fn SetLongValue(&self, valuename: &::windows::core::BSTR, value: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetLongValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(valuename), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetLongValue<'a, P0>(&self, valuename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetLongValue(&self, valuename: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetLongValue)(::windows::core::Interface::as_raw(self), valuename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetLongValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(valuename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn OpenKey<'a, P0>(&self, subkeyname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn OpenKey(&self, subkeyname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).OpenKey)(::windows::core::Interface::as_raw(self), subkeyname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).OpenKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(subkeyname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateKey<'a, P0>(&self, subkeyname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateKey(&self, subkeyname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateKey)(::windows::core::Interface::as_raw(self), subkeyname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(subkeyname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeleteKey<'a, P0>(&self, subkeyname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DeleteKey)(::windows::core::Interface::as_raw(self), subkeyname.into().abi()).ok() + pub unsafe fn DeleteKey(&self, subkeyname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DeleteKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(subkeyname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeleteValue<'a, P0>(&self, valuename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DeleteValue)(::windows::core::Interface::as_raw(self), valuename.into().abi()).ok() + pub unsafe fn DeleteValue(&self, valuename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DeleteValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(valuename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EnumKeys(&self, index: i32) -> ::windows::core::Result { + pub unsafe fn EnumKeys(&self, index: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).EnumKeys)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).EnumKeys)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EnumValues(&self, index: i32) -> ::windows::core::Result { + pub unsafe fn EnumValues(&self, index: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).EnumValues)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).EnumValues)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -6638,53 +6580,29 @@ unsafe impl ::windows::core::Interface for ISpeechDataKey { pub struct ISpeechDataKey_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub SetBinaryValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, valuename: ::core::mem::ManuallyDrop, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub SetBinaryValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, valuename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SetBinaryValue: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetBinaryValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, valuename: ::core::mem::ManuallyDrop, value: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetBinaryValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, valuename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetBinaryValue: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetStringValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, valuename: ::core::mem::ManuallyDrop, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetStringValue: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetStringValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, valuename: ::core::mem::ManuallyDrop, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetStringValue: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetLongValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, valuename: ::core::mem::ManuallyDrop, value: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetLongValue: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetLongValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, valuename: ::core::mem::ManuallyDrop, value: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetLongValue: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub OpenKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, subkeyname: ::core::mem::ManuallyDrop, subkey: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub SetStringValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, valuename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetStringValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, valuename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetLongValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, valuename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: i32) -> ::windows::core::HRESULT, + pub GetLongValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, valuename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub OpenKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, subkeyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, subkey: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] OpenKey: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreateKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, subkeyname: ::core::mem::ManuallyDrop, subkey: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreateKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, subkeyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, subkey: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreateKey: usize, - #[cfg(feature = "Win32_Foundation")] - pub DeleteKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, subkeyname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeleteKey: usize, - #[cfg(feature = "Win32_Foundation")] - pub DeleteValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, valuename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeleteValue: usize, - #[cfg(feature = "Win32_Foundation")] - pub EnumKeys: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, subkeyname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EnumKeys: usize, - #[cfg(feature = "Win32_Foundation")] - pub EnumValues: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, valuename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EnumValues: usize, + pub DeleteKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, subkeyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DeleteValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, valuename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub EnumKeys: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, subkeyname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub EnumValues: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, valuename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_Speech\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6729,13 +6647,8 @@ impl ISpeechFileStream { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Seek)(::windows::core::Interface::as_raw(self), position.into().abi(), origin, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Open<'a, P0>(&self, filename: P0, filemode: SpeechStreamFileMode, doevents: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Open)(::windows::core::Interface::as_raw(self), filename.into().abi(), filemode, doevents).ok() + pub unsafe fn Open(&self, filename: &::windows::core::BSTR, filemode: SpeechStreamFileMode, doevents: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Open)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(filename), filemode, doevents).ok() } pub unsafe fn Close(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Close)(::windows::core::Interface::as_raw(self)).ok() @@ -6825,10 +6738,7 @@ unsafe impl ::windows::core::Interface for ISpeechFileStream { #[doc(hidden)] pub struct ISpeechFileStream_Vtbl { pub base__: ISpeechBaseStream_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Open: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop, filemode: SpeechStreamFileMode, doevents: i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Open: usize, + pub Open: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, filemode: SpeechStreamFileMode, doevents: i16) -> ::windows::core::HRESULT, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_Speech\"`, `\"Win32_System_Com\"`*"] @@ -6847,11 +6757,9 @@ impl ISpeechGrammarRule { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).InitialState)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Id(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6860,14 +6768,8 @@ impl ISpeechGrammarRule { pub unsafe fn Clear(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Clear)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddResource<'a, P0, P1>(&self, resourcename: P0, resourcevalue: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AddResource)(::windows::core::Interface::as_raw(self), resourcename.into().abi(), resourcevalue.into().abi()).ok() + pub unsafe fn AddResource(&self, resourcename: &::windows::core::BSTR, resourcevalue: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AddResource)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(resourcename), ::core::mem::transmute_copy(resourcevalue)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6947,16 +6849,10 @@ pub struct ISpeechGrammarRule_Vtbl { pub InitialState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, state: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] InitialState: usize, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: *mut i32) -> ::windows::core::HRESULT, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub AddResource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, resourcename: ::core::mem::ManuallyDrop, resourcevalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddResource: usize, + pub AddResource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, resourcename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, resourcevalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub AddState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, state: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -6982,33 +6878,28 @@ impl ISpeechGrammarRuleState { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddWordTransition<'a, P0, P1, P2, P3>(&self, deststate: P0, words: P1, separators: P2, r#type: SpeechGrammarWordType, propertyname: P3, propertyid: i32, propertyvalue: &super::super::System::Com::VARIANT, weight: f32) -> ::windows::core::Result<()> + pub unsafe fn AddWordTransition<'a, P0>(&self, deststate: P0, words: &::windows::core::BSTR, separators: &::windows::core::BSTR, r#type: SpeechGrammarWordType, propertyname: &::windows::core::BSTR, propertyid: i32, propertyvalue: &super::super::System::Com::VARIANT, weight: f32) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, ISpeechGrammarRuleState>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).AddWordTransition)(::windows::core::Interface::as_raw(self), deststate.into().abi(), words.into().abi(), separators.into().abi(), r#type, propertyname.into().abi(), propertyid, ::core::mem::transmute(propertyvalue), weight).ok() + (::windows::core::Interface::vtable(self).AddWordTransition)(::windows::core::Interface::as_raw(self), deststate.into().abi(), ::core::mem::transmute_copy(words), ::core::mem::transmute_copy(separators), r#type, ::core::mem::transmute_copy(propertyname), propertyid, ::core::mem::transmute(propertyvalue), weight).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddRuleTransition<'a, P0, P1, P2>(&self, destinationstate: P0, rule: P1, propertyname: P2, propertyid: i32, propertyvalue: &super::super::System::Com::VARIANT, weight: f32) -> ::windows::core::Result<()> + pub unsafe fn AddRuleTransition<'a, P0, P1>(&self, destinationstate: P0, rule: P1, propertyname: &::windows::core::BSTR, propertyid: i32, propertyvalue: &super::super::System::Com::VARIANT, weight: f32) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, ISpeechGrammarRuleState>>, P1: ::std::convert::Into<::windows::core::InParam<'a, ISpeechGrammarRule>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).AddRuleTransition)(::windows::core::Interface::as_raw(self), destinationstate.into().abi(), rule.into().abi(), propertyname.into().abi(), propertyid, ::core::mem::transmute(propertyvalue), weight).ok() + (::windows::core::Interface::vtable(self).AddRuleTransition)(::windows::core::Interface::as_raw(self), destinationstate.into().abi(), rule.into().abi(), ::core::mem::transmute_copy(propertyname), propertyid, ::core::mem::transmute(propertyvalue), weight).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddSpecialTransition<'a, P0, P1>(&self, destinationstate: P0, r#type: SpeechSpecialTransitionType, propertyname: P1, propertyid: i32, propertyvalue: &super::super::System::Com::VARIANT, weight: f32) -> ::windows::core::Result<()> + pub unsafe fn AddSpecialTransition<'a, P0>(&self, destinationstate: P0, r#type: SpeechSpecialTransitionType, propertyname: &::windows::core::BSTR, propertyid: i32, propertyvalue: &super::super::System::Com::VARIANT, weight: f32) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, ISpeechGrammarRuleState>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).AddSpecialTransition)(::windows::core::Interface::as_raw(self), destinationstate.into().abi(), r#type, propertyname.into().abi(), propertyid, ::core::mem::transmute(propertyvalue), weight).ok() + (::windows::core::Interface::vtable(self).AddSpecialTransition)(::windows::core::Interface::as_raw(self), destinationstate.into().abi(), r#type, ::core::mem::transmute_copy(propertyname), propertyid, ::core::mem::transmute(propertyvalue), weight).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -7086,15 +6977,15 @@ pub struct ISpeechGrammarRuleState_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Transitions: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddWordTransition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deststate: *mut ::core::ffi::c_void, words: ::core::mem::ManuallyDrop, separators: ::core::mem::ManuallyDrop, r#type: SpeechGrammarWordType, propertyname: ::core::mem::ManuallyDrop, propertyid: i32, propertyvalue: *const super::super::System::Com::VARIANT, weight: f32) -> ::windows::core::HRESULT, + pub AddWordTransition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deststate: *mut ::core::ffi::c_void, words: ::core::mem::ManuallyDrop<::windows::core::BSTR>, separators: ::core::mem::ManuallyDrop<::windows::core::BSTR>, r#type: SpeechGrammarWordType, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyid: i32, propertyvalue: *const super::super::System::Com::VARIANT, weight: f32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddWordTransition: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddRuleTransition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, destinationstate: *mut ::core::ffi::c_void, rule: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop, propertyid: i32, propertyvalue: *const super::super::System::Com::VARIANT, weight: f32) -> ::windows::core::HRESULT, + pub AddRuleTransition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, destinationstate: *mut ::core::ffi::c_void, rule: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyid: i32, propertyvalue: *const super::super::System::Com::VARIANT, weight: f32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddRuleTransition: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddSpecialTransition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, destinationstate: *mut ::core::ffi::c_void, r#type: SpeechSpecialTransitionType, propertyname: ::core::mem::ManuallyDrop, propertyid: i32, propertyvalue: *const super::super::System::Com::VARIANT, weight: f32) -> ::windows::core::HRESULT, + pub AddSpecialTransition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, destinationstate: *mut ::core::ffi::c_void, r#type: SpeechSpecialTransitionType, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyid: i32, propertyvalue: *const super::super::System::Com::VARIANT, weight: f32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddSpecialTransition: usize, } @@ -7108,11 +6999,9 @@ impl ISpeechGrammarRuleStateTransition { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Text(&self) -> ::windows::core::Result { + pub unsafe fn Text(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Text)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Text)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7126,11 +7015,9 @@ impl ISpeechGrammarRuleStateTransition { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Weight)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PropertyName(&self) -> ::windows::core::Result { + pub unsafe fn PropertyName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PropertyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PropertyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn PropertyId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7216,10 +7103,7 @@ unsafe impl ::windows::core::Interface for ISpeechGrammarRuleStateTransition { pub struct ISpeechGrammarRuleStateTransition_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: *mut SpeechGrammarRuleStateTransitionType) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Text: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Text: usize, + pub Text: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Rule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rule: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -7228,10 +7112,7 @@ pub struct ISpeechGrammarRuleStateTransition_Vtbl { pub Weight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, weight: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Weight: usize, - #[cfg(feature = "Win32_Foundation")] - pub PropertyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PropertyName: usize, + pub PropertyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub PropertyId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyid: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub PropertyValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyvalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, @@ -7369,21 +7250,18 @@ impl ISpeechGrammarRules { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Dynamic)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Add<'a, P0>(&self, rulename: P0, attributes: SpeechRuleAttributes, ruleid: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Add(&self, rulename: &::windows::core::BSTR, attributes: SpeechRuleAttributes, ruleid: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), rulename.into().abi(), attributes, ruleid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(rulename), attributes, ruleid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn Commit(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Commit)(::windows::core::Interface::as_raw(self)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CommitAndSave(&self, errortext: &mut super::super::Foundation::BSTR, savestream: &mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + pub unsafe fn CommitAndSave(&self, errortext: &mut ::windows::core::BSTR, savestream: &mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).CommitAndSave)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(errortext), ::core::mem::transmute(savestream)).ok() } } @@ -7464,13 +7342,13 @@ pub struct ISpeechGrammarRules_Vtbl { Item: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enumvariant: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Dynamic: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dynamic: *mut i16) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rulename: ::core::mem::ManuallyDrop, attributes: SpeechRuleAttributes, ruleid: i32, rule: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rulename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, attributes: SpeechRuleAttributes, ruleid: i32, rule: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Add: usize, pub Commit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub CommitAndSave: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, errortext: *mut super::super::Foundation::BSTR, savestream: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub CommitAndSave: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, errortext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, savestream: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] CommitAndSave: usize, } @@ -7489,48 +7367,27 @@ impl ISpeechLexicon { pub unsafe fn GetWords(&self, flags: SpeechLexiconType, generationid: &mut i32, words: &mut ::core::option::Option) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetWords)(::windows::core::Interface::as_raw(self), flags, ::core::mem::transmute(generationid), ::core::mem::transmute(words)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddPronunciation<'a, P0, P1>(&self, bstrword: P0, langid: i32, partofspeech: SpeechPartOfSpeech, bstrpronunciation: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AddPronunciation)(::windows::core::Interface::as_raw(self), bstrword.into().abi(), langid, partofspeech, bstrpronunciation.into().abi()).ok() + pub unsafe fn AddPronunciation(&self, bstrword: &::windows::core::BSTR, langid: i32, partofspeech: SpeechPartOfSpeech, bstrpronunciation: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AddPronunciation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrword), langid, partofspeech, ::core::mem::transmute_copy(bstrpronunciation)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddPronunciationByPhoneIds<'a, P0>(&self, bstrword: P0, langid: i32, partofspeech: SpeechPartOfSpeech, phoneids: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AddPronunciationByPhoneIds)(::windows::core::Interface::as_raw(self), bstrword.into().abi(), langid, partofspeech, ::core::mem::transmute(phoneids)).ok() + pub unsafe fn AddPronunciationByPhoneIds(&self, bstrword: &::windows::core::BSTR, langid: i32, partofspeech: SpeechPartOfSpeech, phoneids: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AddPronunciationByPhoneIds)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrword), langid, partofspeech, ::core::mem::transmute(phoneids)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemovePronunciation<'a, P0, P1>(&self, bstrword: P0, langid: i32, partofspeech: SpeechPartOfSpeech, bstrpronunciation: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).RemovePronunciation)(::windows::core::Interface::as_raw(self), bstrword.into().abi(), langid, partofspeech, bstrpronunciation.into().abi()).ok() + pub unsafe fn RemovePronunciation(&self, bstrword: &::windows::core::BSTR, langid: i32, partofspeech: SpeechPartOfSpeech, bstrpronunciation: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).RemovePronunciation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrword), langid, partofspeech, ::core::mem::transmute_copy(bstrpronunciation)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn RemovePronunciationByPhoneIds<'a, P0>(&self, bstrword: P0, langid: i32, partofspeech: SpeechPartOfSpeech, phoneids: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).RemovePronunciationByPhoneIds)(::windows::core::Interface::as_raw(self), bstrword.into().abi(), langid, partofspeech, ::core::mem::transmute(phoneids)).ok() + pub unsafe fn RemovePronunciationByPhoneIds(&self, bstrword: &::windows::core::BSTR, langid: i32, partofspeech: SpeechPartOfSpeech, phoneids: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).RemovePronunciationByPhoneIds)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrword), langid, partofspeech, ::core::mem::transmute(phoneids)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetPronunciations<'a, P0>(&self, bstrword: P0, langid: i32, typeflags: SpeechLexiconType) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetPronunciations(&self, bstrword: &::windows::core::BSTR, langid: i32, typeflags: SpeechLexiconType) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetPronunciations)(::windows::core::Interface::as_raw(self), bstrword.into().abi(), langid, typeflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetPronunciations)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrword), langid, typeflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7609,25 +7466,19 @@ pub struct ISpeechLexicon_Vtbl { pub GetWords: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: SpeechLexiconType, generationid: *mut i32, words: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetWords: usize, - #[cfg(feature = "Win32_Foundation")] - pub AddPronunciation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrword: ::core::mem::ManuallyDrop, langid: i32, partofspeech: SpeechPartOfSpeech, bstrpronunciation: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddPronunciation: usize, + pub AddPronunciation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, langid: i32, partofspeech: SpeechPartOfSpeech, bstrpronunciation: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddPronunciationByPhoneIds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrword: ::core::mem::ManuallyDrop, langid: i32, partofspeech: SpeechPartOfSpeech, phoneids: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub AddPronunciationByPhoneIds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, langid: i32, partofspeech: SpeechPartOfSpeech, phoneids: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddPronunciationByPhoneIds: usize, - #[cfg(feature = "Win32_Foundation")] - pub RemovePronunciation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrword: ::core::mem::ManuallyDrop, langid: i32, partofspeech: SpeechPartOfSpeech, bstrpronunciation: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RemovePronunciation: usize, + pub RemovePronunciation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, langid: i32, partofspeech: SpeechPartOfSpeech, bstrpronunciation: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub RemovePronunciationByPhoneIds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrword: ::core::mem::ManuallyDrop, langid: i32, partofspeech: SpeechPartOfSpeech, phoneids: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub RemovePronunciationByPhoneIds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, langid: i32, partofspeech: SpeechPartOfSpeech, phoneids: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] RemovePronunciationByPhoneIds: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetPronunciations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrword: ::core::mem::ManuallyDrop, langid: i32, typeflags: SpeechLexiconType, pppronunciations: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetPronunciations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, langid: i32, typeflags: SpeechLexiconType, pppronunciations: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetPronunciations: usize, #[cfg(feature = "Win32_System_Com")] pub GetGenerationChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, generationid: *mut i32, ppwords: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -7658,11 +7509,9 @@ impl ISpeechLexiconPronunciation { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).PhoneIds)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Symbolic(&self) -> ::windows::core::Result { + pub unsafe fn Symbolic(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Symbolic)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Symbolic)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -7738,10 +7587,7 @@ pub struct ISpeechLexiconPronunciation_Vtbl { pub PhoneIds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phoneids: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] PhoneIds: usize, - #[cfg(feature = "Win32_Foundation")] - pub Symbolic: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, symbolic: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Symbolic: usize, + pub Symbolic: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, symbolic: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_Speech\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7851,11 +7697,9 @@ impl ISpeechLexiconWord { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Word(&self) -> ::windows::core::Result { + pub unsafe fn Word(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Word)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Word)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7932,10 +7776,7 @@ pub struct ISpeechLexiconWord_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub LangId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, langid: *mut i32) -> ::windows::core::HRESULT, pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wordtype: *mut SpeechWordType) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Word: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, word: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Word: usize, + pub Word: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, word: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Pronunciations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pronunciations: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -8401,11 +8242,9 @@ pub struct ISpeechMemoryStream_Vtbl { pub struct ISpeechObjectToken(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ISpeechObjectToken { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Id(&self) -> ::windows::core::Result { + pub unsafe fn Id(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -8419,29 +8258,16 @@ impl ISpeechObjectToken { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Category)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDescription(&self, locale: i32) -> ::windows::core::Result { + pub unsafe fn GetDescription(&self, locale: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDescription)(::windows::core::Interface::as_raw(self), locale, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDescription)(::windows::core::Interface::as_raw(self), locale, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetId<'a, P0, P1>(&self, id: P0, categoryid: P1, createifnotexist: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetId)(::windows::core::Interface::as_raw(self), id.into().abi(), categoryid.into().abi(), createifnotexist).ok() + pub unsafe fn SetId(&self, id: &::windows::core::BSTR, categoryid: &::windows::core::BSTR, createifnotexist: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(id), ::core::mem::transmute_copy(categoryid), createifnotexist).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetAttribute<'a, P0>(&self, attributename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetAttribute(&self, attributename: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetAttribute)(::windows::core::Interface::as_raw(self), attributename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetAttribute)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(attributename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CreateInstance<'a, P0>(&self, punkouter: P0, clscontext: SpeechTokenContext) -> ::windows::core::Result<::windows::core::IUnknown> where @@ -8450,62 +8276,36 @@ impl ISpeechObjectToken { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CreateInstance)(::windows::core::Interface::as_raw(self), punkouter.into().abi(), clscontext, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Remove<'a, P0>(&self, objectstorageclsid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), objectstorageclsid.into().abi()).ok() + pub unsafe fn Remove(&self, objectstorageclsid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(objectstorageclsid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetStorageFileName<'a, P0, P1, P2>(&self, objectstorageclsid: P0, keyname: P1, filename: P2, folder: SpeechTokenShellFolder) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetStorageFileName(&self, objectstorageclsid: &::windows::core::BSTR, keyname: &::windows::core::BSTR, filename: &::windows::core::BSTR, folder: SpeechTokenShellFolder) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetStorageFileName)(::windows::core::Interface::as_raw(self), objectstorageclsid.into().abi(), keyname.into().abi(), filename.into().abi(), folder, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetStorageFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(objectstorageclsid), ::core::mem::transmute_copy(keyname), ::core::mem::transmute_copy(filename), folder, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoveStorageFileName<'a, P0, P1>(&self, objectstorageclsid: P0, keyname: P1, deletefile: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).RemoveStorageFileName)(::windows::core::Interface::as_raw(self), objectstorageclsid.into().abi(), keyname.into().abi(), deletefile).ok() + pub unsafe fn RemoveStorageFileName(&self, objectstorageclsid: &::windows::core::BSTR, keyname: &::windows::core::BSTR, deletefile: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).RemoveStorageFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(objectstorageclsid), ::core::mem::transmute_copy(keyname), deletefile).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn IsUISupported<'a, P0, P1>(&self, typeofui: P0, extradata: &super::super::System::Com::VARIANT, object: P1) -> ::windows::core::Result + pub unsafe fn IsUISupported<'a, P0>(&self, typeofui: &::windows::core::BSTR, extradata: &super::super::System::Com::VARIANT, object: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).IsUISupported)(::windows::core::Interface::as_raw(self), typeofui.into().abi(), ::core::mem::transmute(extradata), object.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).IsUISupported)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(typeofui), ::core::mem::transmute(extradata), object.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DisplayUI<'a, P0, P1, P2>(&self, hwnd: i32, title: P0, typeofui: P1, extradata: &super::super::System::Com::VARIANT, object: P2) -> ::windows::core::Result<()> + pub unsafe fn DisplayUI<'a, P0>(&self, hwnd: i32, title: &::windows::core::BSTR, typeofui: &::windows::core::BSTR, extradata: &super::super::System::Com::VARIANT, object: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, { - (::windows::core::Interface::vtable(self).DisplayUI)(::windows::core::Interface::as_raw(self), hwnd, title.into().abi(), typeofui.into().abi(), ::core::mem::transmute(extradata), object.into().abi()).ok() + (::windows::core::Interface::vtable(self).DisplayUI)(::windows::core::Interface::as_raw(self), hwnd, ::core::mem::transmute_copy(title), ::core::mem::transmute_copy(typeofui), ::core::mem::transmute(extradata), object.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MatchesAttributes<'a, P0>(&self, attributes: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn MatchesAttributes(&self, attributes: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).MatchesAttributes)(::windows::core::Interface::as_raw(self), attributes.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).MatchesAttributes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(attributes), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -8574,10 +8374,7 @@ unsafe impl ::windows::core::Interface for ISpeechObjectToken { #[doc(hidden)] pub struct ISpeechObjectToken_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objectid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Id: usize, + pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objectid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub DataKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, datakey: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -8586,43 +8383,22 @@ pub struct ISpeechObjectToken_Vtbl { pub Category: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, category: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Category: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, locale: i32, description: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDescription: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::core::mem::ManuallyDrop, categoryid: ::core::mem::ManuallyDrop, createifnotexist: i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetId: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, attributename: ::core::mem::ManuallyDrop, attributevalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetAttribute: usize, + pub GetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, locale: i32, description: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::core::mem::ManuallyDrop<::windows::core::BSTR>, categoryid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, createifnotexist: i16) -> ::windows::core::HRESULT, + pub GetAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, attributename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, attributevalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkouter: *mut ::core::ffi::c_void, clscontext: SpeechTokenContext, object: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objectstorageclsid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Remove: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetStorageFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objectstorageclsid: ::core::mem::ManuallyDrop, keyname: ::core::mem::ManuallyDrop, filename: ::core::mem::ManuallyDrop, folder: SpeechTokenShellFolder, filepath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetStorageFileName: usize, - #[cfg(feature = "Win32_Foundation")] - pub RemoveStorageFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objectstorageclsid: ::core::mem::ManuallyDrop, keyname: ::core::mem::ManuallyDrop, deletefile: i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RemoveStorageFileName: usize, + pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objectstorageclsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetStorageFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objectstorageclsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, keyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, filename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, folder: SpeechTokenShellFolder, filepath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub RemoveStorageFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objectstorageclsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, keyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, deletefile: i16) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub IsUISupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, typeofui: ::core::mem::ManuallyDrop, extradata: *const super::super::System::Com::VARIANT, object: *mut ::core::ffi::c_void, supported: *mut i16) -> ::windows::core::HRESULT, + pub IsUISupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, typeofui: ::core::mem::ManuallyDrop<::windows::core::BSTR>, extradata: *const super::super::System::Com::VARIANT, object: *mut ::core::ffi::c_void, supported: *mut i16) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] IsUISupported: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DisplayUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: i32, title: ::core::mem::ManuallyDrop, typeofui: ::core::mem::ManuallyDrop, extradata: *const super::super::System::Com::VARIANT, object: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub DisplayUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: i32, title: ::core::mem::ManuallyDrop<::windows::core::BSTR>, typeofui: ::core::mem::ManuallyDrop<::windows::core::BSTR>, extradata: *const super::super::System::Com::VARIANT, object: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DisplayUI: usize, - #[cfg(feature = "Win32_Foundation")] - pub MatchesAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, attributes: ::core::mem::ManuallyDrop, matches: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MatchesAttributes: usize, + pub MatchesAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, attributes: ::core::mem::ManuallyDrop<::windows::core::BSTR>, matches: *mut i16) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_Speech\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -8630,33 +8406,19 @@ pub struct ISpeechObjectToken_Vtbl { pub struct ISpeechObjectTokenCategory(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ISpeechObjectTokenCategory { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Id(&self) -> ::windows::core::Result { + pub unsafe fn Id(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDefault<'a, P0>(&self, tokenid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDefault)(::windows::core::Interface::as_raw(self), tokenid.into().abi()).ok() + pub unsafe fn SetDefault(&self, tokenid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDefault)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(tokenid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Default(&self) -> ::windows::core::Result { + pub unsafe fn Default(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Default)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Default)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetId<'a, P0>(&self, id: P0, createifnotexist: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetId)(::windows::core::Interface::as_raw(self), id.into().abi(), createifnotexist).ok() + pub unsafe fn SetId(&self, id: &::windows::core::BSTR, createifnotexist: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(id), createifnotexist).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -8664,15 +8426,11 @@ impl ISpeechObjectTokenCategory { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetDataKey)(::windows::core::Interface::as_raw(self), location, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn EnumerateTokens<'a, P0, P1>(&self, requiredattributes: P0, optionalattributes: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn EnumerateTokens(&self, requiredattributes: &::windows::core::BSTR, optionalattributes: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).EnumerateTokens)(::windows::core::Interface::as_raw(self), requiredattributes.into().abi(), optionalattributes.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).EnumerateTokens)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(requiredattributes), ::core::mem::transmute_copy(optionalattributes), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -8741,29 +8499,17 @@ unsafe impl ::windows::core::Interface for ISpeechObjectTokenCategory { #[doc(hidden)] pub struct ISpeechObjectTokenCategory_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Id: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tokenid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDefault: usize, - #[cfg(feature = "Win32_Foundation")] - pub Default: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tokenid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Default: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::core::mem::ManuallyDrop, createifnotexist: i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetId: usize, + pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tokenid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Default: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tokenid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::core::mem::ManuallyDrop<::windows::core::BSTR>, createifnotexist: i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub GetDataKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, location: SpeechDataKeyLocation, datakey: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetDataKey: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub EnumerateTokens: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requiredattributes: ::core::mem::ManuallyDrop, optionalattributes: ::core::mem::ManuallyDrop, tokens: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub EnumerateTokens: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requiredattributes: ::core::mem::ManuallyDrop<::windows::core::BSTR>, optionalattributes: ::core::mem::ManuallyDrop<::windows::core::BSTR>, tokens: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] EnumerateTokens: usize, } #[doc = "*Required features: `\"Win32_Media_Speech\"`, `\"Win32_System_Com\"`*"] @@ -8875,21 +8621,18 @@ impl ISpeechPhoneConverter { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn PhoneToId<'a, P0>(&self, phonemes: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn PhoneToId(&self, phonemes: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PhoneToId)(::windows::core::Interface::as_raw(self), phonemes.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PhoneToId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(phonemes), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn IdToPhone<'a, P0>(&self, idarray: P0) -> ::windows::core::Result + pub unsafe fn IdToPhone<'a, P0>(&self, idarray: P0) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).IdToPhone)(::windows::core::Interface::as_raw(self), idarray.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).IdToPhone)(::windows::core::Interface::as_raw(self), idarray.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -8961,11 +8704,11 @@ pub struct ISpeechPhoneConverter_Vtbl { pub LanguageId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, languageid: *mut i32) -> ::windows::core::HRESULT, pub SetLanguageId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, languageid: i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub PhoneToId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phonemes: ::core::mem::ManuallyDrop, idarray: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub PhoneToId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phonemes: ::core::mem::ManuallyDrop<::windows::core::BSTR>, idarray: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] PhoneToId: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub IdToPhone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, idarray: ::core::mem::ManuallyDrop, phonemes: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub IdToPhone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, idarray: ::core::mem::ManuallyDrop, phonemes: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] IdToPhone: usize, } @@ -9201,17 +8944,13 @@ impl ISpeechPhraseElement { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).RetainedSizeBytes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisplayText(&self) -> ::windows::core::Result { + pub unsafe fn DisplayText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DisplayText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DisplayText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LexicalForm(&self) -> ::windows::core::Result { + pub unsafe fn LexicalForm(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LexicalForm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LexicalForm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -9308,14 +9047,8 @@ pub struct ISpeechPhraseElement_Vtbl { pub AudioSizeBytes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, audiosizebytes: *mut i32) -> ::windows::core::HRESULT, pub RetainedStreamOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retainedstreamoffset: *mut i32) -> ::windows::core::HRESULT, pub RetainedSizeBytes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retainedsizebytes: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub DisplayText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, displaytext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DisplayText: usize, - #[cfg(feature = "Win32_Foundation")] - pub LexicalForm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lexicalform: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LexicalForm: usize, + pub DisplayText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, displaytext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub LexicalForm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lexicalform: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub Pronunciation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pronunciation: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -9483,11 +9216,9 @@ impl ISpeechPhraseInfo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Replacements)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EngineId(&self) -> ::windows::core::Result { + pub unsafe fn EngineId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).EngineId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).EngineId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -9501,11 +9232,9 @@ impl ISpeechPhraseInfo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).SaveToMemory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetText(&self, startelement: i32, elements: i32, usereplacements: i16) -> ::windows::core::Result { + pub unsafe fn GetText(&self, startelement: i32, elements: i32, usereplacements: i16) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetText)(::windows::core::Interface::as_raw(self), startelement, elements, usereplacements, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetText)(::windows::core::Interface::as_raw(self), startelement, elements, usereplacements, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetDisplayAttributes(&self, startelement: i32, elements: i32, usereplacements: i16) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -9610,10 +9339,7 @@ pub struct ISpeechPhraseInfo_Vtbl { pub Replacements: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, replacements: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Replacements: usize, - #[cfg(feature = "Win32_Foundation")] - pub EngineId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, engineidguid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EngineId: usize, + pub EngineId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, engineidguid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub EnginePrivateData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, privatedata: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -9622,10 +9348,7 @@ pub struct ISpeechPhraseInfo_Vtbl { pub SaveToMemory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phraseblock: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SaveToMemory: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, startelement: i32, elements: i32, usereplacements: i16, text: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetText: usize, + pub GetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, startelement: i32, elements: i32, usereplacements: i16, text: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetDisplayAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, startelement: i32, elements: i32, usereplacements: i16, displayattributes: *mut SpeechDisplayAttributes) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_Speech\"`, `\"Win32_System_Com\"`*"] @@ -9812,11 +9535,9 @@ pub struct ISpeechPhraseProperties_Vtbl { pub struct ISpeechPhraseProperty(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ISpeechPhraseProperty { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Id(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -9923,10 +9644,7 @@ unsafe impl ::windows::core::Interface for ISpeechPhraseProperty { #[doc(hidden)] pub struct ISpeechPhraseProperty_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, @@ -9955,11 +9673,9 @@ impl ISpeechPhraseReplacement { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).DisplayAttributes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Text(&self) -> ::windows::core::Result { + pub unsafe fn Text(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Text)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Text)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn FirstElement(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -10037,10 +9753,7 @@ unsafe impl ::windows::core::Interface for ISpeechPhraseReplacement { pub struct ISpeechPhraseReplacement_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub DisplayAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, displayattributes: *mut SpeechDisplayAttributes) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Text: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Text: usize, + pub Text: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub FirstElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, firstelement: *mut i32) -> ::windows::core::HRESULT, pub NumberOfElements: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, numberofelements: *mut i32) -> ::windows::core::HRESULT, } @@ -10144,11 +9857,9 @@ pub struct ISpeechPhraseReplacements_Vtbl { pub struct ISpeechPhraseRule(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ISpeechPhraseRule { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Id(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -10249,10 +9960,7 @@ unsafe impl ::windows::core::Interface for ISpeechPhraseRule { #[doc(hidden)] pub struct ISpeechPhraseRule_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: *mut i32) -> ::windows::core::HRESULT, pub FirstElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, firstelement: *mut i32) -> ::windows::core::HRESULT, pub NumberOfElements: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, numberofelements: *mut i32) -> ::windows::core::HRESULT, @@ -10377,11 +10085,9 @@ impl ISpeechRecoContext { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).AudioInputInterferenceStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RequestedUIType(&self) -> ::windows::core::Result { + pub unsafe fn RequestedUIType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RequestedUIType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RequestedUIType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -10483,13 +10189,8 @@ impl ISpeechRecoContext { { (::windows::core::Interface::vtable(self).Bookmark)(::windows::core::Interface::as_raw(self), options, streampos.into().abi(), bookmarkid.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetAdaptationData<'a, P0>(&self, adaptationstring: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetAdaptationData)(::windows::core::Interface::as_raw(self), adaptationstring.into().abi()).ok() + pub unsafe fn SetAdaptationData(&self, adaptationstring: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetAdaptationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(adaptationstring)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -10563,10 +10264,7 @@ pub struct ISpeechRecoContext_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Recognizer: usize, pub AudioInputInterferenceStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, interference: *mut SpeechInterference) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub RequestedUIType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uitype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RequestedUIType: usize, + pub RequestedUIType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uitype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub putref_Voice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, voice: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -10609,10 +10307,7 @@ pub struct ISpeechRecoContext_Vtbl { pub Bookmark: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: SpeechBookmarkOptions, streampos: ::core::mem::ManuallyDrop, bookmarkid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Bookmark: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetAdaptationData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, adaptationstring: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetAdaptationData: usize, + pub SetAdaptationData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, adaptationstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_Speech\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -10648,22 +10343,11 @@ impl ISpeechRecoGrammar { pub unsafe fn Reset(&self, newlanguage: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Reset)(::windows::core::Interface::as_raw(self), newlanguage).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CmdLoadFromFile<'a, P0>(&self, filename: P0, loadoption: SpeechLoadOption) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).CmdLoadFromFile)(::windows::core::Interface::as_raw(self), filename.into().abi(), loadoption).ok() + pub unsafe fn CmdLoadFromFile(&self, filename: &::windows::core::BSTR, loadoption: SpeechLoadOption) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).CmdLoadFromFile)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(filename), loadoption).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CmdLoadFromObject<'a, P0, P1>(&self, classid: P0, grammarname: P1, loadoption: SpeechLoadOption) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).CmdLoadFromObject)(::windows::core::Interface::as_raw(self), classid.into().abi(), grammarname.into().abi(), loadoption).ok() + pub unsafe fn CmdLoadFromObject(&self, classid: &::windows::core::BSTR, grammarname: &::windows::core::BSTR, loadoption: SpeechLoadOption) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).CmdLoadFromObject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(classid), ::core::mem::transmute_copy(grammarname), loadoption).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -10684,32 +10368,20 @@ impl ISpeechRecoGrammar { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CmdLoadFromProprietaryGrammar<'a, P0, P1, P2>(&self, proprietaryguid: P0, proprietarystring: P1, proprietarydata: P2, loadoption: SpeechLoadOption) -> ::windows::core::Result<()> + pub unsafe fn CmdLoadFromProprietaryGrammar<'a, P0>(&self, proprietaryguid: &::windows::core::BSTR, proprietarystring: &::windows::core::BSTR, proprietarydata: P0, loadoption: SpeechLoadOption) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).CmdLoadFromProprietaryGrammar)(::windows::core::Interface::as_raw(self), proprietaryguid.into().abi(), proprietarystring.into().abi(), proprietarydata.into().abi(), loadoption).ok() + (::windows::core::Interface::vtable(self).CmdLoadFromProprietaryGrammar)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(proprietaryguid), ::core::mem::transmute_copy(proprietarystring), proprietarydata.into().abi(), loadoption).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CmdSetRuleState<'a, P0>(&self, name: P0, state: SpeechRuleState) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).CmdSetRuleState)(::windows::core::Interface::as_raw(self), name.into().abi(), state).ok() + pub unsafe fn CmdSetRuleState(&self, name: &::windows::core::BSTR, state: SpeechRuleState) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).CmdSetRuleState)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), state).ok() } pub unsafe fn CmdSetRuleIdState(&self, ruleid: i32, state: SpeechRuleState) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).CmdSetRuleIdState)(::windows::core::Interface::as_raw(self), ruleid, state).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DictationLoad<'a, P0>(&self, topicname: P0, loadoption: SpeechLoadOption) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DictationLoad)(::windows::core::Interface::as_raw(self), topicname.into().abi(), loadoption).ok() + pub unsafe fn DictationLoad(&self, topicname: &::windows::core::BSTR, loadoption: SpeechLoadOption) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DictationLoad)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(topicname), loadoption).ok() } pub unsafe fn DictationUnload(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).DictationUnload)(::windows::core::Interface::as_raw(self)).ok() @@ -10717,14 +10389,13 @@ impl ISpeechRecoGrammar { pub unsafe fn DictationSetState(&self, state: SpeechRuleState) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).DictationSetState)(::windows::core::Interface::as_raw(self), state).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn SetWordSequenceData<'a, P0, P1>(&self, text: P0, textlength: i32, info: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn SetWordSequenceData<'a, P0>(&self, text: &::windows::core::BSTR, textlength: i32, info: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, ISpeechTextSelectionInformation>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, ISpeechTextSelectionInformation>>, { - (::windows::core::Interface::vtable(self).SetWordSequenceData)(::windows::core::Interface::as_raw(self), text.into().abi(), textlength, info.into().abi()).ok() + (::windows::core::Interface::vtable(self).SetWordSequenceData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(text), textlength, info.into().abi()).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -10734,14 +10405,9 @@ impl ISpeechRecoGrammar { { (::windows::core::Interface::vtable(self).SetTextSelection)(::windows::core::Interface::as_raw(self), info.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsPronounceable<'a, P0>(&self, word: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsPronounceable(&self, word: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).IsPronounceable)(::windows::core::Interface::as_raw(self), word.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).IsPronounceable)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(word), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -10825,14 +10491,8 @@ pub struct ISpeechRecoGrammar_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Rules: usize, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newlanguage: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CmdLoadFromFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop, loadoption: SpeechLoadOption) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CmdLoadFromFile: usize, - #[cfg(feature = "Win32_Foundation")] - pub CmdLoadFromObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, classid: ::core::mem::ManuallyDrop, grammarname: ::core::mem::ManuallyDrop, loadoption: SpeechLoadOption) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CmdLoadFromObject: usize, + pub CmdLoadFromFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, loadoption: SpeechLoadOption) -> ::windows::core::HRESULT, + pub CmdLoadFromObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, classid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, grammarname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, loadoption: SpeechLoadOption) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub CmdLoadFromResource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hmodule: i32, resourcename: ::core::mem::ManuallyDrop, resourcetype: ::core::mem::ManuallyDrop, languageid: i32, loadoption: SpeechLoadOption) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -10842,32 +10502,23 @@ pub struct ISpeechRecoGrammar_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] CmdLoadFromMemory: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub CmdLoadFromProprietaryGrammar: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, proprietaryguid: ::core::mem::ManuallyDrop, proprietarystring: ::core::mem::ManuallyDrop, proprietarydata: ::core::mem::ManuallyDrop, loadoption: SpeechLoadOption) -> ::windows::core::HRESULT, + pub CmdLoadFromProprietaryGrammar: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, proprietaryguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, proprietarystring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, proprietarydata: ::core::mem::ManuallyDrop, loadoption: SpeechLoadOption) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] CmdLoadFromProprietaryGrammar: usize, - #[cfg(feature = "Win32_Foundation")] - pub CmdSetRuleState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, state: SpeechRuleState) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CmdSetRuleState: usize, + pub CmdSetRuleState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, state: SpeechRuleState) -> ::windows::core::HRESULT, pub CmdSetRuleIdState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ruleid: i32, state: SpeechRuleState) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub DictationLoad: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, topicname: ::core::mem::ManuallyDrop, loadoption: SpeechLoadOption) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DictationLoad: usize, + pub DictationLoad: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, topicname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, loadoption: SpeechLoadOption) -> ::windows::core::HRESULT, pub DictationUnload: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub DictationSetState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, state: SpeechRuleState) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub SetWordSequenceData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop, textlength: i32, info: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub SetWordSequenceData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop<::windows::core::BSTR>, textlength: i32, info: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] SetWordSequenceData: usize, #[cfg(feature = "Win32_System_Com")] pub SetTextSelection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, info: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] SetTextSelection: usize, - #[cfg(feature = "Win32_Foundation")] - pub IsPronounceable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, word: ::core::mem::ManuallyDrop, wordpronounceable: *mut SpeechWordPronounceable) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - IsPronounceable: usize, + pub IsPronounceable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, word: ::core::mem::ManuallyDrop<::windows::core::BSTR>, wordpronounceable: *mut SpeechWordPronounceable) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_Speech\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -11097,13 +10748,8 @@ impl ISpeechRecoResult2 { pub unsafe fn DiscardResultInfo(&self, valuetypes: SpeechDiscardType) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.DiscardResultInfo)(::windows::core::Interface::as_raw(self), valuetypes).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetTextFeedback<'a, P0>(&self, feedback: P0, wassuccessful: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetTextFeedback)(::windows::core::Interface::as_raw(self), feedback.into().abi(), wassuccessful).ok() + pub unsafe fn SetTextFeedback(&self, feedback: &::windows::core::BSTR, wassuccessful: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetTextFeedback)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(feedback), wassuccessful).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -11190,10 +10836,7 @@ unsafe impl ::windows::core::Interface for ISpeechRecoResult2 { #[doc(hidden)] pub struct ISpeechRecoResult2_Vtbl { pub base__: ISpeechRecoResult_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub SetTextFeedback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feedback: ::core::mem::ManuallyDrop, wassuccessful: i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetTextFeedback: usize, + pub SetTextFeedback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feedback: ::core::mem::ManuallyDrop<::windows::core::BSTR>, wassuccessful: i16) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_Speech\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -11258,24 +10901,15 @@ impl ISpeechRecoResultDispatch { pub unsafe fn DiscardResultInfo(&self, valuetypes: SpeechDiscardType) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).DiscardResultInfo)(::windows::core::Interface::as_raw(self), valuetypes).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetXMLResult(&self, options: SPXMLRESULTOPTIONS) -> ::windows::core::Result { + pub unsafe fn GetXMLResult(&self, options: SPXMLRESULTOPTIONS) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetXMLResult)(::windows::core::Interface::as_raw(self), options, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetXMLResult)(::windows::core::Interface::as_raw(self), options, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetXMLErrorInfo(&self, linenumber: &mut i32, scriptline: &mut super::super::Foundation::BSTR, source: &mut super::super::Foundation::BSTR, description: &mut super::super::Foundation::BSTR, resultcode: &mut ::windows::core::HRESULT, iserror: &mut i16) -> ::windows::core::Result<()> { + pub unsafe fn GetXMLErrorInfo(&self, linenumber: &mut i32, scriptline: &mut ::windows::core::BSTR, source: &mut ::windows::core::BSTR, description: &mut ::windows::core::BSTR, resultcode: &mut ::windows::core::HRESULT, iserror: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetXMLErrorInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(linenumber), ::core::mem::transmute(scriptline), ::core::mem::transmute(source), ::core::mem::transmute(description), ::core::mem::transmute(resultcode), ::core::mem::transmute(iserror)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetTextFeedback<'a, P0>(&self, feedback: P0, wassuccessful: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetTextFeedback)(::windows::core::Interface::as_raw(self), feedback.into().abi(), wassuccessful).ok() + pub unsafe fn SetTextFeedback(&self, feedback: &::windows::core::BSTR, wassuccessful: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetTextFeedback)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(feedback), wassuccessful).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -11378,18 +11012,9 @@ pub struct ISpeechRecoResultDispatch_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SaveToMemory: usize, pub DiscardResultInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, valuetypes: SpeechDiscardType) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetXMLResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: SPXMLRESULTOPTIONS, presult: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetXMLResult: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetXMLErrorInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, linenumber: *mut i32, scriptline: *mut super::super::Foundation::BSTR, source: *mut super::super::Foundation::BSTR, description: *mut super::super::Foundation::BSTR, resultcode: *mut ::windows::core::HRESULT, iserror: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetXMLErrorInfo: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetTextFeedback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feedback: ::core::mem::ManuallyDrop, wassuccessful: i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetTextFeedback: usize, + pub GetXMLResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: SPXMLRESULTOPTIONS, presult: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetXMLErrorInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, linenumber: *mut i32, scriptline: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, source: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, description: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, resultcode: *mut ::windows::core::HRESULT, iserror: *mut i16) -> ::windows::core::HRESULT, + pub SetTextFeedback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feedback: ::core::mem::ManuallyDrop<::windows::core::BSTR>, wassuccessful: i16) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_Speech\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -11606,88 +11231,48 @@ impl ISpeechRecognizer { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetFormat)(::windows::core::Interface::as_raw(self), r#type, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPropertyNumber<'a, P0>(&self, name: P0, value: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn SetPropertyNumber(&self, name: &::windows::core::BSTR, value: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SetPropertyNumber)(::windows::core::Interface::as_raw(self), name.into().abi(), value, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SetPropertyNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), value, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPropertyNumber<'a, P0>(&self, name: P0, value: &mut i32, supported: &mut i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetPropertyNumber)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(value), ::core::mem::transmute(supported)).ok() + pub unsafe fn GetPropertyNumber(&self, name: &::windows::core::BSTR, value: &mut i32, supported: &mut i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetPropertyNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(value), ::core::mem::transmute(supported)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPropertyString<'a, P0, P1>(&self, name: P0, value: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn SetPropertyString(&self, name: &::windows::core::BSTR, value: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SetPropertyString)(::windows::core::Interface::as_raw(self), name.into().abi(), value.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SetPropertyString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute_copy(value), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPropertyString<'a, P0>(&self, name: P0, value: &mut super::super::Foundation::BSTR, supported: &mut i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetPropertyString)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(value), ::core::mem::transmute(supported)).ok() + pub unsafe fn GetPropertyString(&self, name: &::windows::core::BSTR, value: &mut ::windows::core::BSTR, supported: &mut i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetPropertyString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(value), ::core::mem::transmute(supported)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn IsUISupported<'a, P0>(&self, typeofui: P0, extradata: &super::super::System::Com::VARIANT) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsUISupported(&self, typeofui: &::windows::core::BSTR, extradata: &super::super::System::Com::VARIANT) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).IsUISupported)(::windows::core::Interface::as_raw(self), typeofui.into().abi(), ::core::mem::transmute(extradata), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).IsUISupported)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(typeofui), ::core::mem::transmute(extradata), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DisplayUI<'a, P0, P1>(&self, hwndparent: i32, title: P0, typeofui: P1, extradata: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DisplayUI)(::windows::core::Interface::as_raw(self), hwndparent, title.into().abi(), typeofui.into().abi(), ::core::mem::transmute(extradata)).ok() + pub unsafe fn DisplayUI(&self, hwndparent: i32, title: &::windows::core::BSTR, typeofui: &::windows::core::BSTR, extradata: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DisplayUI)(::windows::core::Interface::as_raw(self), hwndparent, ::core::mem::transmute_copy(title), ::core::mem::transmute_copy(typeofui), ::core::mem::transmute(extradata)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetRecognizers<'a, P0, P1>(&self, requiredattributes: P0, optionalattributes: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetRecognizers(&self, requiredattributes: &::windows::core::BSTR, optionalattributes: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetRecognizers)(::windows::core::Interface::as_raw(self), requiredattributes.into().abi(), optionalattributes.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetRecognizers)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(requiredattributes), ::core::mem::transmute_copy(optionalattributes), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetAudioInputs<'a, P0, P1>(&self, requiredattributes: P0, optionalattributes: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetAudioInputs(&self, requiredattributes: &::windows::core::BSTR, optionalattributes: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetAudioInputs)(::windows::core::Interface::as_raw(self), requiredattributes.into().abi(), optionalattributes.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetAudioInputs)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(requiredattributes), ::core::mem::transmute_copy(optionalattributes), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetProfiles<'a, P0, P1>(&self, requiredattributes: P0, optionalattributes: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetProfiles(&self, requiredattributes: &::windows::core::BSTR, optionalattributes: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetProfiles)(::windows::core::Interface::as_raw(self), requiredattributes.into().abi(), optionalattributes.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetProfiles)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(requiredattributes), ::core::mem::transmute_copy(optionalattributes), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -11809,41 +11394,29 @@ pub struct ISpeechRecognizer_Vtbl { pub GetFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: SpeechFormatType, format: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetFormat: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPropertyNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, value: i32, supported: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPropertyNumber: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetPropertyNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, value: *mut i32, supported: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPropertyNumber: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPropertyString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, value: ::core::mem::ManuallyDrop, supported: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPropertyString: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetPropertyString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, value: *mut super::super::Foundation::BSTR, supported: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPropertyString: usize, + pub SetPropertyNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: i32, supported: *mut i16) -> ::windows::core::HRESULT, + pub GetPropertyNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: *mut i32, supported: *mut i16) -> ::windows::core::HRESULT, + pub SetPropertyString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>, supported: *mut i16) -> ::windows::core::HRESULT, + pub GetPropertyString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, supported: *mut i16) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub IsUISupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, typeofui: ::core::mem::ManuallyDrop, extradata: *const super::super::System::Com::VARIANT, supported: *mut i16) -> ::windows::core::HRESULT, + pub IsUISupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, typeofui: ::core::mem::ManuallyDrop<::windows::core::BSTR>, extradata: *const super::super::System::Com::VARIANT, supported: *mut i16) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] IsUISupported: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DisplayUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: i32, title: ::core::mem::ManuallyDrop, typeofui: ::core::mem::ManuallyDrop, extradata: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub DisplayUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: i32, title: ::core::mem::ManuallyDrop<::windows::core::BSTR>, typeofui: ::core::mem::ManuallyDrop<::windows::core::BSTR>, extradata: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DisplayUI: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetRecognizers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requiredattributes: ::core::mem::ManuallyDrop, optionalattributes: ::core::mem::ManuallyDrop, objecttokens: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetRecognizers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requiredattributes: ::core::mem::ManuallyDrop<::windows::core::BSTR>, optionalattributes: ::core::mem::ManuallyDrop<::windows::core::BSTR>, objecttokens: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetRecognizers: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetAudioInputs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requiredattributes: ::core::mem::ManuallyDrop, optionalattributes: ::core::mem::ManuallyDrop, objecttokens: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetAudioInputs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requiredattributes: ::core::mem::ManuallyDrop<::windows::core::BSTR>, optionalattributes: ::core::mem::ManuallyDrop<::windows::core::BSTR>, objecttokens: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetAudioInputs: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetProfiles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requiredattributes: ::core::mem::ManuallyDrop, optionalattributes: ::core::mem::ManuallyDrop, objecttokens: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetProfiles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requiredattributes: ::core::mem::ManuallyDrop<::windows::core::BSTR>, optionalattributes: ::core::mem::ManuallyDrop<::windows::core::BSTR>, objecttokens: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetProfiles: usize, } #[doc = "*Required features: `\"Win32_Media_Speech\"`, `\"Win32_System_Com\"`*"] @@ -11872,11 +11445,9 @@ impl ISpeechRecognizerStatus { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).NumberOfActiveRules)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClsidEngine(&self) -> ::windows::core::Result { + pub unsafe fn ClsidEngine(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ClsidEngine)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ClsidEngine)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -11961,10 +11532,7 @@ pub struct ISpeechRecognizerStatus_Vtbl { CurrentStreamPosition: usize, pub CurrentStreamNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, streamnumber: *mut i32) -> ::windows::core::HRESULT, pub NumberOfActiveRules: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, numberofactiverules: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ClsidEngine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clsidengine: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ClsidEngine: usize, + pub ClsidEngine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clsidengine: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub SupportedLanguages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, supportedlanguages: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -11976,29 +11544,14 @@ pub struct ISpeechRecognizerStatus_Vtbl { pub struct ISpeechResourceLoader(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ISpeechResourceLoader { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LoadResource<'a, P0>(&self, bstrresourceuri: P0, falwaysreload: i16, pstream: &mut ::core::option::Option<::windows::core::IUnknown>, pbstrmimetype: ::core::option::Option<&mut super::super::Foundation::BSTR>, pfmodified: &mut i16, pbstrredirecturl: ::core::option::Option<&mut super::super::Foundation::BSTR>) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).LoadResource)(::windows::core::Interface::as_raw(self), bstrresourceuri.into().abi(), falwaysreload, ::core::mem::transmute(pstream), ::core::mem::transmute(pbstrmimetype), ::core::mem::transmute(pfmodified), ::core::mem::transmute(pbstrredirecturl)).ok() + pub unsafe fn LoadResource(&self, bstrresourceuri: &::windows::core::BSTR, falwaysreload: i16, pstream: &mut ::core::option::Option<::windows::core::IUnknown>, pbstrmimetype: ::core::option::Option<&mut ::windows::core::BSTR>, pfmodified: &mut i16, pbstrredirecturl: ::core::option::Option<&mut ::windows::core::BSTR>) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).LoadResource)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrresourceuri), falwaysreload, ::core::mem::transmute(pstream), ::core::mem::transmute(pbstrmimetype), ::core::mem::transmute(pfmodified), ::core::mem::transmute(pbstrredirecturl)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetLocalCopy<'a, P0>(&self, bstrresourceuri: P0, pbstrlocalpath: &mut super::super::Foundation::BSTR, pbstrmimetype: ::core::option::Option<&mut super::super::Foundation::BSTR>, pbstrredirecturl: ::core::option::Option<&mut super::super::Foundation::BSTR>) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetLocalCopy)(::windows::core::Interface::as_raw(self), bstrresourceuri.into().abi(), ::core::mem::transmute(pbstrlocalpath), ::core::mem::transmute(pbstrmimetype), ::core::mem::transmute(pbstrredirecturl)).ok() + pub unsafe fn GetLocalCopy(&self, bstrresourceuri: &::windows::core::BSTR, pbstrlocalpath: &mut ::windows::core::BSTR, pbstrmimetype: ::core::option::Option<&mut ::windows::core::BSTR>, pbstrredirecturl: ::core::option::Option<&mut ::windows::core::BSTR>) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetLocalCopy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrresourceuri), ::core::mem::transmute(pbstrlocalpath), ::core::mem::transmute(pbstrmimetype), ::core::mem::transmute(pbstrredirecturl)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ReleaseLocalCopy<'a, P0>(&self, pbstrlocalpath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ReleaseLocalCopy)(::windows::core::Interface::as_raw(self), pbstrlocalpath.into().abi()).ok() + pub unsafe fn ReleaseLocalCopy(&self, pbstrlocalpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ReleaseLocalCopy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pbstrlocalpath)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -12067,18 +11620,9 @@ unsafe impl ::windows::core::Interface for ISpeechResourceLoader { #[doc(hidden)] pub struct ISpeechResourceLoader_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub LoadResource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrresourceuri: ::core::mem::ManuallyDrop, falwaysreload: i16, pstream: *mut *mut ::core::ffi::c_void, pbstrmimetype: *mut super::super::Foundation::BSTR, pfmodified: *mut i16, pbstrredirecturl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LoadResource: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetLocalCopy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrresourceuri: ::core::mem::ManuallyDrop, pbstrlocalpath: *mut super::super::Foundation::BSTR, pbstrmimetype: *mut super::super::Foundation::BSTR, pbstrredirecturl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetLocalCopy: usize, - #[cfg(feature = "Win32_Foundation")] - pub ReleaseLocalCopy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrlocalpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ReleaseLocalCopy: usize, + pub LoadResource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrresourceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, falwaysreload: i16, pstream: *mut *mut ::core::ffi::c_void, pbstrmimetype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfmodified: *mut i16, pbstrredirecturl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetLocalCopy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrresourceuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrlocalpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrmimetype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrredirecturl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ReleaseLocalCopy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrlocalpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_Speech\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -12293,14 +11837,9 @@ impl ISpeechVoice { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).SynchronousSpeakTimeout)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Speak<'a, P0>(&self, text: P0, flags: SpeechVoiceSpeakFlags) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn Speak(&self, text: &::windows::core::BSTR, flags: SpeechVoiceSpeakFlags) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Speak)(::windows::core::Interface::as_raw(self), text.into().abi(), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Speak)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(text), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -12317,34 +11856,21 @@ impl ISpeechVoice { pub unsafe fn Resume(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Resume)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Skip<'a, P0>(&self, r#type: P0, numitems: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn Skip(&self, r#type: &::windows::core::BSTR, numitems: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Skip)(::windows::core::Interface::as_raw(self), r#type.into().abi(), numitems, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Skip)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(r#type), numitems, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetVoices<'a, P0, P1>(&self, requiredattributes: P0, optionalattributes: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetVoices(&self, requiredattributes: &::windows::core::BSTR, optionalattributes: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetVoices)(::windows::core::Interface::as_raw(self), requiredattributes.into().abi(), optionalattributes.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetVoices)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(requiredattributes), ::core::mem::transmute_copy(optionalattributes), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetAudioOutputs<'a, P0, P1>(&self, requiredattributes: P0, optionalattributes: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetAudioOutputs(&self, requiredattributes: &::windows::core::BSTR, optionalattributes: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetAudioOutputs)(::windows::core::Interface::as_raw(self), requiredattributes.into().abi(), optionalattributes.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetAudioOutputs)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(requiredattributes), ::core::mem::transmute_copy(optionalattributes), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn WaitUntilDone(&self, mstimeout: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -12356,21 +11882,14 @@ impl ISpeechVoice { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn IsUISupported<'a, P0>(&self, typeofui: P0, extradata: &super::super::System::Com::VARIANT) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsUISupported(&self, typeofui: &::windows::core::BSTR, extradata: &super::super::System::Com::VARIANT) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).IsUISupported)(::windows::core::Interface::as_raw(self), typeofui.into().abi(), ::core::mem::transmute(extradata), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).IsUISupported)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(typeofui), ::core::mem::transmute(extradata), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DisplayUI<'a, P0, P1>(&self, hwndparent: i32, title: P0, typeofui: P1, extradata: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DisplayUI)(::windows::core::Interface::as_raw(self), hwndparent, title.into().abi(), typeofui.into().abi(), ::core::mem::transmute(extradata)).ok() + pub unsafe fn DisplayUI(&self, hwndparent: i32, title: &::windows::core::BSTR, typeofui: &::windows::core::BSTR, extradata: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DisplayUI)(::windows::core::Interface::as_raw(self), hwndparent, ::core::mem::transmute_copy(title), ::core::mem::transmute_copy(typeofui), ::core::mem::transmute(extradata)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -12481,36 +12000,30 @@ pub struct ISpeechVoice_Vtbl { pub AlertBoundary: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, boundary: *mut SpeechVoiceEvents) -> ::windows::core::HRESULT, pub SetSynchronousSpeakTimeout: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mstimeout: i32) -> ::windows::core::HRESULT, pub SynchronousSpeakTimeout: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mstimeout: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Speak: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop, flags: SpeechVoiceSpeakFlags, streamnumber: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Speak: usize, + pub Speak: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: SpeechVoiceSpeakFlags, streamnumber: *mut i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub SpeakStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stream: *mut ::core::ffi::c_void, flags: SpeechVoiceSpeakFlags, streamnumber: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] SpeakStream: usize, pub Pause: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Resume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: ::core::mem::ManuallyDrop, numitems: i32, numskipped: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Skip: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetVoices: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requiredattributes: ::core::mem::ManuallyDrop, optionalattributes: ::core::mem::ManuallyDrop, objecttokens: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: ::core::mem::ManuallyDrop<::windows::core::BSTR>, numitems: i32, numskipped: *mut i32) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub GetVoices: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requiredattributes: ::core::mem::ManuallyDrop<::windows::core::BSTR>, optionalattributes: ::core::mem::ManuallyDrop<::windows::core::BSTR>, objecttokens: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetVoices: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetAudioOutputs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requiredattributes: ::core::mem::ManuallyDrop, optionalattributes: ::core::mem::ManuallyDrop, objecttokens: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetAudioOutputs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requiredattributes: ::core::mem::ManuallyDrop<::windows::core::BSTR>, optionalattributes: ::core::mem::ManuallyDrop<::windows::core::BSTR>, objecttokens: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetAudioOutputs: usize, pub WaitUntilDone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mstimeout: i32, done: *mut i16) -> ::windows::core::HRESULT, pub SpeakCompleteEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handle: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub IsUISupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, typeofui: ::core::mem::ManuallyDrop, extradata: *const super::super::System::Com::VARIANT, supported: *mut i16) -> ::windows::core::HRESULT, + pub IsUISupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, typeofui: ::core::mem::ManuallyDrop<::windows::core::BSTR>, extradata: *const super::super::System::Com::VARIANT, supported: *mut i16) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] IsUISupported: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DisplayUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: i32, title: ::core::mem::ManuallyDrop, typeofui: ::core::mem::ManuallyDrop, extradata: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub DisplayUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: i32, title: ::core::mem::ManuallyDrop<::windows::core::BSTR>, typeofui: ::core::mem::ManuallyDrop<::windows::core::BSTR>, extradata: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DisplayUI: usize, } @@ -12552,11 +12065,9 @@ impl ISpeechVoiceStatus { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).InputSentenceLength)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LastBookmark(&self) -> ::windows::core::Result { + pub unsafe fn LastBookmark(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LastBookmark)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LastBookmark)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn LastBookmarkId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -12645,10 +12156,7 @@ pub struct ISpeechVoiceStatus_Vtbl { pub InputWordLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, length: *mut i32) -> ::windows::core::HRESULT, pub InputSentencePosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, position: *mut i32) -> ::windows::core::HRESULT, pub InputSentenceLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, length: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub LastBookmark: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bookmark: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LastBookmark: usize, + pub LastBookmark: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bookmark: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub LastBookmarkId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bookmarkid: *mut i32) -> ::windows::core::HRESULT, pub PhonemeId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phoneid: *mut i16) -> ::windows::core::HRESULT, pub VisemeId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, visemeid: *mut i16) -> ::windows::core::HRESULT, @@ -12866,15 +12374,11 @@ impl ISpeechXMLRecoResult { pub unsafe fn DiscardResultInfo(&self, valuetypes: SpeechDiscardType) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.DiscardResultInfo)(::windows::core::Interface::as_raw(self), valuetypes).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetXMLResult(&self, options: SPXMLRESULTOPTIONS) -> ::windows::core::Result { + pub unsafe fn GetXMLResult(&self, options: SPXMLRESULTOPTIONS) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetXMLResult)(::windows::core::Interface::as_raw(self), options, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetXMLResult)(::windows::core::Interface::as_raw(self), options, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetXMLErrorInfo(&self, linenumber: &mut i32, scriptline: &mut super::super::Foundation::BSTR, source: &mut super::super::Foundation::BSTR, description: &mut super::super::Foundation::BSTR, resultcode: &mut i32, iserror: &mut i16) -> ::windows::core::Result<()> { + pub unsafe fn GetXMLErrorInfo(&self, linenumber: &mut i32, scriptline: &mut ::windows::core::BSTR, source: &mut ::windows::core::BSTR, description: &mut ::windows::core::BSTR, resultcode: &mut i32, iserror: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetXMLErrorInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(linenumber), ::core::mem::transmute(scriptline), ::core::mem::transmute(source), ::core::mem::transmute(description), ::core::mem::transmute(resultcode), ::core::mem::transmute(iserror)).ok() } } @@ -12962,14 +12466,8 @@ unsafe impl ::windows::core::Interface for ISpeechXMLRecoResult { #[doc(hidden)] pub struct ISpeechXMLRecoResult_Vtbl { pub base__: ISpeechRecoResult_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetXMLResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: SPXMLRESULTOPTIONS, presult: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetXMLResult: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetXMLErrorInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, linenumber: *mut i32, scriptline: *mut super::super::Foundation::BSTR, source: *mut super::super::Foundation::BSTR, description: *mut super::super::Foundation::BSTR, resultcode: *mut i32, iserror: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetXMLErrorInfo: usize, + pub GetXMLResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: SPXMLRESULTOPTIONS, presult: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetXMLErrorInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, linenumber: *mut i32, scriptline: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, source: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, description: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, resultcode: *mut i32, iserror: *mut i16) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_Speech\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] diff --git a/crates/libs/windows/src/Windows/Win32/Media/WindowsMediaFormat/impl.rs b/crates/libs/windows/src/Windows/Win32/Media/WindowsMediaFormat/impl.rs index 853c13a184..4838076281 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/WindowsMediaFormat/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/WindowsMediaFormat/impl.rs @@ -306,22 +306,19 @@ impl IWMAddressAccess_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IWMAddressAccess2_Impl: Sized + IWMAddressAccess_Impl { - fn GetAccessEntryEx(&self, aetype: WM_AETYPE, dwentrynum: u32, pbstraddress: *mut super::super::Foundation::BSTR, pbstrmask: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn AddAccessEntryEx(&self, aetype: WM_AETYPE, bstraddress: &super::super::Foundation::BSTR, bstrmask: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetAccessEntryEx(&self, aetype: WM_AETYPE, dwentrynum: u32, pbstraddress: *mut ::windows::core::BSTR, pbstrmask: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn AddAccessEntryEx(&self, aetype: WM_AETYPE, bstraddress: &::windows::core::BSTR, bstrmask: &::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IWMAddressAccess2 {} -#[cfg(feature = "Win32_Foundation")] impl IWMAddressAccess2_Vtbl { pub const fn new, Impl: IWMAddressAccess2_Impl, const OFFSET: isize>() -> IWMAddressAccess2_Vtbl { - unsafe extern "system" fn GetAccessEntryEx, Impl: IWMAddressAccess2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, aetype: WM_AETYPE, dwentrynum: u32, pbstraddress: *mut super::super::Foundation::BSTR, pbstrmask: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetAccessEntryEx, Impl: IWMAddressAccess2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, aetype: WM_AETYPE, dwentrynum: u32, pbstraddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrmask: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetAccessEntryEx(::core::mem::transmute_copy(&aetype), ::core::mem::transmute_copy(&dwentrynum), ::core::mem::transmute_copy(&pbstraddress), ::core::mem::transmute_copy(&pbstrmask)).into() } - unsafe extern "system" fn AddAccessEntryEx, Impl: IWMAddressAccess2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, aetype: WM_AETYPE, bstraddress: ::core::mem::ManuallyDrop, bstrmask: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddAccessEntryEx, Impl: IWMAddressAccess2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, aetype: WM_AETYPE, bstraddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrmask: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddAccessEntryEx(::core::mem::transmute_copy(&aetype), ::core::mem::transmute(&bstraddress), ::core::mem::transmute(&bstrmask)).into() @@ -706,14 +703,11 @@ impl IWMDRMEditor_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IWMDRMMessageParser_Impl: Sized { fn ParseRegistrationReqMsg(&self, pbregistrationreqmsg: *const u8, cbregistrationreqmsg: u32, ppdevicecert: *mut ::core::option::Option, pdeviceserialnumber: *mut DRM_VAL16) -> ::windows::core::Result<()>; - fn ParseLicenseRequestMsg(&self, pblicenserequestmsg: *const u8, cblicenserequestmsg: u32, ppdevicecert: *mut ::core::option::Option, pdeviceserialnumber: *mut DRM_VAL16, pbstraction: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ParseLicenseRequestMsg(&self, pblicenserequestmsg: *const u8, cblicenserequestmsg: u32, ppdevicecert: *mut ::core::option::Option, pdeviceserialnumber: *mut DRM_VAL16, pbstraction: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IWMDRMMessageParser {} -#[cfg(feature = "Win32_Foundation")] impl IWMDRMMessageParser_Vtbl { pub const fn new, Impl: IWMDRMMessageParser_Impl, const OFFSET: isize>() -> IWMDRMMessageParser_Vtbl { unsafe extern "system" fn ParseRegistrationReqMsg, Impl: IWMDRMMessageParser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbregistrationreqmsg: *const u8, cbregistrationreqmsg: u32, ppdevicecert: *mut *mut ::core::ffi::c_void, pdeviceserialnumber: *mut DRM_VAL16) -> ::windows::core::HRESULT { @@ -721,7 +715,7 @@ impl IWMDRMMessageParser_Vtbl { let this = (*this).get_impl(); this.ParseRegistrationReqMsg(::core::mem::transmute_copy(&pbregistrationreqmsg), ::core::mem::transmute_copy(&cbregistrationreqmsg), ::core::mem::transmute_copy(&ppdevicecert), ::core::mem::transmute_copy(&pdeviceserialnumber)).into() } - unsafe extern "system" fn ParseLicenseRequestMsg, Impl: IWMDRMMessageParser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pblicenserequestmsg: *const u8, cblicenserequestmsg: u32, ppdevicecert: *mut *mut ::core::ffi::c_void, pdeviceserialnumber: *mut DRM_VAL16, pbstraction: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ParseLicenseRequestMsg, Impl: IWMDRMMessageParser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pblicenserequestmsg: *const u8, cblicenserequestmsg: u32, ppdevicecert: *mut *mut ::core::ffi::c_void, pdeviceserialnumber: *mut DRM_VAL16, pbstraction: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ParseLicenseRequestMsg(::core::mem::transmute_copy(&pblicenserequestmsg), ::core::mem::transmute_copy(&cblicenserequestmsg), ::core::mem::transmute_copy(&ppdevicecert), ::core::mem::transmute_copy(&pdeviceserialnumber), ::core::mem::transmute_copy(&pbstraction)).into() @@ -892,19 +886,16 @@ impl IWMDRMTranscryptionManager_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IWMDRMTranscryptor_Impl: Sized { - fn Initialize(&self, bstrfilename: &super::super::Foundation::BSTR, pblicenserequestmsg: *mut u8, cblicenserequestmsg: u32, pplicenseresponsemsg: *mut ::core::option::Option, pcallback: &::core::option::Option, pvcontext: *const ::core::ffi::c_void) -> ::windows::core::Result<()>; + fn Initialize(&self, bstrfilename: &::windows::core::BSTR, pblicenserequestmsg: *mut u8, cblicenserequestmsg: u32, pplicenseresponsemsg: *mut ::core::option::Option, pcallback: &::core::option::Option, pvcontext: *const ::core::ffi::c_void) -> ::windows::core::Result<()>; fn Seek(&self, hnstime: u64) -> ::windows::core::Result<()>; fn Read(&self, pbdata: *const u8, pcbdata: *const u32) -> ::windows::core::Result<()>; fn Close(&self) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IWMDRMTranscryptor {} -#[cfg(feature = "Win32_Foundation")] impl IWMDRMTranscryptor_Vtbl { pub const fn new, Impl: IWMDRMTranscryptor_Impl, const OFFSET: isize>() -> IWMDRMTranscryptor_Vtbl { - unsafe extern "system" fn Initialize, Impl: IWMDRMTranscryptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop, pblicenserequestmsg: *mut u8, cblicenserequestmsg: u32, pplicenseresponsemsg: *mut *mut ::core::ffi::c_void, pcallback: *mut ::core::ffi::c_void, pvcontext: *const ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Initialize, Impl: IWMDRMTranscryptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pblicenserequestmsg: *mut u8, cblicenserequestmsg: u32, pplicenseresponsemsg: *mut *mut ::core::ffi::c_void, pcallback: *mut ::core::ffi::c_void, pvcontext: *const ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Initialize(::core::mem::transmute(&bstrfilename), ::core::mem::transmute_copy(&pblicenserequestmsg), ::core::mem::transmute_copy(&cblicenserequestmsg), ::core::mem::transmute_copy(&pplicenseresponsemsg), ::core::mem::transmute(&pcallback), ::core::mem::transmute_copy(&pvcontext)).into() @@ -3969,9 +3960,9 @@ pub trait IWMRegisteredDevice_Impl: Sized { fn GetDeviceCertificate(&self) -> ::windows::core::Result; fn GetDeviceType(&self) -> ::windows::core::Result; fn GetAttributeCount(&self) -> ::windows::core::Result; - fn GetAttributeByIndex(&self, dwindex: u32, pbstrname: *mut super::super::Foundation::BSTR, pbstrvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetAttributeByName(&self, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn SetAttributeByName(&self, bstrname: &super::super::Foundation::BSTR, bstrvalue: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetAttributeByIndex(&self, dwindex: u32, pbstrname: *mut ::windows::core::BSTR, pbstrvalue: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetAttributeByName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetAttributeByName(&self, bstrname: &::windows::core::BSTR, bstrvalue: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Approve(&self, fapprove: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn IsValid(&self) -> ::windows::core::Result; fn IsApproved(&self) -> ::windows::core::Result; @@ -4029,12 +4020,12 @@ impl IWMRegisteredDevice_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetAttributeByIndex, Impl: IWMRegisteredDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwindex: u32, pbstrname: *mut super::super::Foundation::BSTR, pbstrvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetAttributeByIndex, Impl: IWMRegisteredDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwindex: u32, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetAttributeByIndex(::core::mem::transmute_copy(&dwindex), ::core::mem::transmute_copy(&pbstrname), ::core::mem::transmute_copy(&pbstrvalue)).into() } - unsafe extern "system" fn GetAttributeByName, Impl: IWMRegisteredDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, pbstrvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetAttributeByName, Impl: IWMRegisteredDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetAttributeByName(::core::mem::transmute(&bstrname)) { @@ -4045,7 +4036,7 @@ impl IWMRegisteredDevice_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetAttributeByName, Impl: IWMRegisteredDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, bstrvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetAttributeByName, Impl: IWMRegisteredDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetAttributeByName(::core::mem::transmute(&bstrname), ::core::mem::transmute(&bstrvalue)).into() @@ -4174,12 +4165,12 @@ impl IWMSBufferAllocator_Vtbl { pub trait IWMSInternalAdminNetSource_Impl: Sized { fn Initialize(&self, psharednamespace: &::core::option::Option<::windows::core::IUnknown>, pnamespacenode: &::core::option::Option<::windows::core::IUnknown>, pnetsourcecreator: &::core::option::Option, fembeddedinserver: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn GetNetSourceCreator(&self) -> ::windows::core::Result; - fn SetCredentials(&self, bstrrealm: &super::super::Foundation::BSTR, bstrname: &super::super::Foundation::BSTR, bstrpassword: &super::super::Foundation::BSTR, fpersist: super::super::Foundation::BOOL, fconfirmedgood: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; - fn GetCredentials(&self, bstrrealm: &super::super::Foundation::BSTR, pbstrname: *mut super::super::Foundation::BSTR, pbstrpassword: *mut super::super::Foundation::BSTR, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> ::windows::core::Result<()>; - fn DeleteCredentials(&self, bstrrealm: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetCredentials(&self, bstrrealm: &::windows::core::BSTR, bstrname: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR, fpersist: super::super::Foundation::BOOL, fconfirmedgood: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; + fn GetCredentials(&self, bstrrealm: &::windows::core::BSTR, pbstrname: *mut ::windows::core::BSTR, pbstrpassword: *mut ::windows::core::BSTR, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> ::windows::core::Result<()>; + fn DeleteCredentials(&self, bstrrealm: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetCredentialFlags(&self) -> ::windows::core::Result; fn SetCredentialFlags(&self, dwflags: u32) -> ::windows::core::Result<()>; - fn FindProxyForURL(&self, bstrprotocol: &super::super::Foundation::BSTR, bstrhost: &super::super::Foundation::BSTR, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut super::super::Foundation::BSTR, pdwproxyport: *mut u32, pdwproxycontext: *mut u32) -> ::windows::core::Result<()>; + fn FindProxyForURL(&self, bstrprotocol: &::windows::core::BSTR, bstrhost: &::windows::core::BSTR, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut ::windows::core::BSTR, pdwproxyport: *mut u32, pdwproxycontext: *mut u32) -> ::windows::core::Result<()>; fn RegisterProxyFailure(&self, hrparam: ::windows::core::HRESULT, dwproxycontext: u32) -> ::windows::core::Result<()>; fn ShutdownProxyContext(&self, dwproxycontext: u32) -> ::windows::core::Result<()>; fn IsUsingIE(&self, dwproxycontext: u32) -> ::windows::core::Result; @@ -4205,17 +4196,17 @@ impl IWMSInternalAdminNetSource_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetCredentials, Impl: IWMSInternalAdminNetSource_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrealm: ::core::mem::ManuallyDrop, bstrname: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop, fpersist: super::super::Foundation::BOOL, fconfirmedgood: super::super::Foundation::BOOL) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCredentials, Impl: IWMSInternalAdminNetSource_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrealm: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fpersist: super::super::Foundation::BOOL, fconfirmedgood: super::super::Foundation::BOOL) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCredentials(::core::mem::transmute(&bstrrealm), ::core::mem::transmute(&bstrname), ::core::mem::transmute(&bstrpassword), ::core::mem::transmute_copy(&fpersist), ::core::mem::transmute_copy(&fconfirmedgood)).into() } - unsafe extern "system" fn GetCredentials, Impl: IWMSInternalAdminNetSource_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrealm: ::core::mem::ManuallyDrop, pbstrname: *mut super::super::Foundation::BSTR, pbstrpassword: *mut super::super::Foundation::BSTR, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCredentials, Impl: IWMSInternalAdminNetSource_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrealm: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrpassword: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetCredentials(::core::mem::transmute(&bstrrealm), ::core::mem::transmute_copy(&pbstrname), ::core::mem::transmute_copy(&pbstrpassword), ::core::mem::transmute_copy(&pfconfirmedgood)).into() } - unsafe extern "system" fn DeleteCredentials, Impl: IWMSInternalAdminNetSource_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrealm: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteCredentials, Impl: IWMSInternalAdminNetSource_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrealm: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteCredentials(::core::mem::transmute(&bstrrealm)).into() @@ -4236,7 +4227,7 @@ impl IWMSInternalAdminNetSource_Vtbl { let this = (*this).get_impl(); this.SetCredentialFlags(::core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn FindProxyForURL, Impl: IWMSInternalAdminNetSource_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop, bstrhost: ::core::mem::ManuallyDrop, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut super::super::Foundation::BSTR, pdwproxyport: *mut u32, pdwproxycontext: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn FindProxyForURL, Impl: IWMSInternalAdminNetSource_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrhost: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwproxyport: *mut u32, pdwproxycontext: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.FindProxyForURL(::core::mem::transmute(&bstrprotocol), ::core::mem::transmute(&bstrhost), ::core::mem::transmute_copy(&pfproxyenabled), ::core::mem::transmute_copy(&pbstrproxyserver), ::core::mem::transmute_copy(&pdwproxyport), ::core::mem::transmute_copy(&pdwproxycontext)).into() @@ -4283,32 +4274,32 @@ impl IWMSInternalAdminNetSource_Vtbl { } #[cfg(feature = "Win32_Foundation")] pub trait IWMSInternalAdminNetSource2_Impl: Sized { - fn SetCredentialsEx(&self, bstrrealm: &super::super::Foundation::BSTR, bstrurl: &super::super::Foundation::BSTR, fproxy: super::super::Foundation::BOOL, bstrname: &super::super::Foundation::BSTR, bstrpassword: &super::super::Foundation::BSTR, fpersist: super::super::Foundation::BOOL, fconfirmedgood: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; - fn GetCredentialsEx(&self, bstrrealm: &super::super::Foundation::BSTR, bstrurl: &super::super::Foundation::BSTR, fproxy: super::super::Foundation::BOOL, pdwurlpolicy: *mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: *mut super::super::Foundation::BSTR, pbstrpassword: *mut super::super::Foundation::BSTR, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> ::windows::core::Result<()>; - fn DeleteCredentialsEx(&self, bstrrealm: &super::super::Foundation::BSTR, bstrurl: &super::super::Foundation::BSTR, fproxy: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; - fn FindProxyForURLEx(&self, bstrprotocol: &super::super::Foundation::BSTR, bstrhost: &super::super::Foundation::BSTR, bstrurl: &super::super::Foundation::BSTR, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut super::super::Foundation::BSTR, pdwproxyport: *mut u32, pdwproxycontext: *mut u32) -> ::windows::core::Result<()>; + fn SetCredentialsEx(&self, bstrrealm: &::windows::core::BSTR, bstrurl: &::windows::core::BSTR, fproxy: super::super::Foundation::BOOL, bstrname: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR, fpersist: super::super::Foundation::BOOL, fconfirmedgood: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; + fn GetCredentialsEx(&self, bstrrealm: &::windows::core::BSTR, bstrurl: &::windows::core::BSTR, fproxy: super::super::Foundation::BOOL, pdwurlpolicy: *mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: *mut ::windows::core::BSTR, pbstrpassword: *mut ::windows::core::BSTR, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> ::windows::core::Result<()>; + fn DeleteCredentialsEx(&self, bstrrealm: &::windows::core::BSTR, bstrurl: &::windows::core::BSTR, fproxy: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; + fn FindProxyForURLEx(&self, bstrprotocol: &::windows::core::BSTR, bstrhost: &::windows::core::BSTR, bstrurl: &::windows::core::BSTR, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut ::windows::core::BSTR, pdwproxyport: *mut u32, pdwproxycontext: *mut u32) -> ::windows::core::Result<()>; } #[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IWMSInternalAdminNetSource2 {} #[cfg(feature = "Win32_Foundation")] impl IWMSInternalAdminNetSource2_Vtbl { pub const fn new, Impl: IWMSInternalAdminNetSource2_Impl, const OFFSET: isize>() -> IWMSInternalAdminNetSource2_Vtbl { - unsafe extern "system" fn SetCredentialsEx, Impl: IWMSInternalAdminNetSource2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrealm: ::core::mem::ManuallyDrop, bstrurl: ::core::mem::ManuallyDrop, fproxy: super::super::Foundation::BOOL, bstrname: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop, fpersist: super::super::Foundation::BOOL, fconfirmedgood: super::super::Foundation::BOOL) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCredentialsEx, Impl: IWMSInternalAdminNetSource2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrealm: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fproxy: super::super::Foundation::BOOL, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fpersist: super::super::Foundation::BOOL, fconfirmedgood: super::super::Foundation::BOOL) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCredentialsEx(::core::mem::transmute(&bstrrealm), ::core::mem::transmute(&bstrurl), ::core::mem::transmute_copy(&fproxy), ::core::mem::transmute(&bstrname), ::core::mem::transmute(&bstrpassword), ::core::mem::transmute_copy(&fpersist), ::core::mem::transmute_copy(&fconfirmedgood)).into() } - unsafe extern "system" fn GetCredentialsEx, Impl: IWMSInternalAdminNetSource2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrealm: ::core::mem::ManuallyDrop, bstrurl: ::core::mem::ManuallyDrop, fproxy: super::super::Foundation::BOOL, pdwurlpolicy: *mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: *mut super::super::Foundation::BSTR, pbstrpassword: *mut super::super::Foundation::BSTR, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCredentialsEx, Impl: IWMSInternalAdminNetSource2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrealm: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fproxy: super::super::Foundation::BOOL, pdwurlpolicy: *mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrpassword: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetCredentialsEx(::core::mem::transmute(&bstrrealm), ::core::mem::transmute(&bstrurl), ::core::mem::transmute_copy(&fproxy), ::core::mem::transmute_copy(&pdwurlpolicy), ::core::mem::transmute_copy(&pbstrname), ::core::mem::transmute_copy(&pbstrpassword), ::core::mem::transmute_copy(&pfconfirmedgood)).into() } - unsafe extern "system" fn DeleteCredentialsEx, Impl: IWMSInternalAdminNetSource2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrealm: ::core::mem::ManuallyDrop, bstrurl: ::core::mem::ManuallyDrop, fproxy: super::super::Foundation::BOOL) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteCredentialsEx, Impl: IWMSInternalAdminNetSource2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrealm: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fproxy: super::super::Foundation::BOOL) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteCredentialsEx(::core::mem::transmute(&bstrrealm), ::core::mem::transmute(&bstrurl), ::core::mem::transmute_copy(&fproxy)).into() } - unsafe extern "system" fn FindProxyForURLEx, Impl: IWMSInternalAdminNetSource2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop, bstrhost: ::core::mem::ManuallyDrop, bstrurl: ::core::mem::ManuallyDrop, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut super::super::Foundation::BSTR, pdwproxyport: *mut u32, pdwproxycontext: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn FindProxyForURLEx, Impl: IWMSInternalAdminNetSource2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrhost: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwproxyport: *mut u32, pdwproxycontext: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.FindProxyForURLEx(::core::mem::transmute(&bstrprotocol), ::core::mem::transmute(&bstrhost), ::core::mem::transmute(&bstrurl), ::core::mem::transmute_copy(&pfproxyenabled), ::core::mem::transmute_copy(&pbstrproxyserver), ::core::mem::transmute_copy(&pdwproxyport), ::core::mem::transmute_copy(&pdwproxycontext)).into() @@ -4328,12 +4319,12 @@ impl IWMSInternalAdminNetSource2_Vtbl { #[cfg(feature = "Win32_Foundation")] pub trait IWMSInternalAdminNetSource3_Impl: Sized + IWMSInternalAdminNetSource2_Impl { fn GetNetSourceCreator2(&self) -> ::windows::core::Result<::windows::core::IUnknown>; - fn FindProxyForURLEx2(&self, bstrprotocol: &super::super::Foundation::BSTR, bstrhost: &super::super::Foundation::BSTR, bstrurl: &super::super::Foundation::BSTR, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut super::super::Foundation::BSTR, pdwproxyport: *mut u32, pqwproxycontext: *mut u64) -> ::windows::core::Result<()>; + fn FindProxyForURLEx2(&self, bstrprotocol: &::windows::core::BSTR, bstrhost: &::windows::core::BSTR, bstrurl: &::windows::core::BSTR, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut ::windows::core::BSTR, pdwproxyport: *mut u32, pqwproxycontext: *mut u64) -> ::windows::core::Result<()>; fn RegisterProxyFailure2(&self, hrparam: ::windows::core::HRESULT, qwproxycontext: u64) -> ::windows::core::Result<()>; fn ShutdownProxyContext2(&self, qwproxycontext: u64) -> ::windows::core::Result<()>; fn IsUsingIE2(&self, qwproxycontext: u64) -> ::windows::core::Result; - fn SetCredentialsEx2(&self, bstrrealm: &super::super::Foundation::BSTR, bstrurl: &super::super::Foundation::BSTR, fproxy: super::super::Foundation::BOOL, bstrname: &super::super::Foundation::BSTR, bstrpassword: &super::super::Foundation::BSTR, fpersist: super::super::Foundation::BOOL, fconfirmedgood: super::super::Foundation::BOOL, fcleartextauthentication: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; - fn GetCredentialsEx2(&self, bstrrealm: &super::super::Foundation::BSTR, bstrurl: &super::super::Foundation::BSTR, fproxy: super::super::Foundation::BOOL, fcleartextauthentication: super::super::Foundation::BOOL, pdwurlpolicy: *mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: *mut super::super::Foundation::BSTR, pbstrpassword: *mut super::super::Foundation::BSTR, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> ::windows::core::Result<()>; + fn SetCredentialsEx2(&self, bstrrealm: &::windows::core::BSTR, bstrurl: &::windows::core::BSTR, fproxy: super::super::Foundation::BOOL, bstrname: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR, fpersist: super::super::Foundation::BOOL, fconfirmedgood: super::super::Foundation::BOOL, fcleartextauthentication: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; + fn GetCredentialsEx2(&self, bstrrealm: &::windows::core::BSTR, bstrurl: &::windows::core::BSTR, fproxy: super::super::Foundation::BOOL, fcleartextauthentication: super::super::Foundation::BOOL, pdwurlpolicy: *mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: *mut ::windows::core::BSTR, pbstrpassword: *mut ::windows::core::BSTR, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> ::windows::core::Result<()>; } #[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IWMSInternalAdminNetSource3 {} @@ -4351,7 +4342,7 @@ impl IWMSInternalAdminNetSource3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn FindProxyForURLEx2, Impl: IWMSInternalAdminNetSource3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop, bstrhost: ::core::mem::ManuallyDrop, bstrurl: ::core::mem::ManuallyDrop, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut super::super::Foundation::BSTR, pdwproxyport: *mut u32, pqwproxycontext: *mut u64) -> ::windows::core::HRESULT { + unsafe extern "system" fn FindProxyForURLEx2, Impl: IWMSInternalAdminNetSource3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrhost: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwproxyport: *mut u32, pqwproxycontext: *mut u64) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.FindProxyForURLEx2(::core::mem::transmute(&bstrprotocol), ::core::mem::transmute(&bstrhost), ::core::mem::transmute(&bstrurl), ::core::mem::transmute_copy(&pfproxyenabled), ::core::mem::transmute_copy(&pbstrproxyserver), ::core::mem::transmute_copy(&pdwproxyport), ::core::mem::transmute_copy(&pqwproxycontext)).into() @@ -4377,12 +4368,12 @@ impl IWMSInternalAdminNetSource3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetCredentialsEx2, Impl: IWMSInternalAdminNetSource3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrealm: ::core::mem::ManuallyDrop, bstrurl: ::core::mem::ManuallyDrop, fproxy: super::super::Foundation::BOOL, bstrname: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop, fpersist: super::super::Foundation::BOOL, fconfirmedgood: super::super::Foundation::BOOL, fcleartextauthentication: super::super::Foundation::BOOL) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCredentialsEx2, Impl: IWMSInternalAdminNetSource3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrealm: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fproxy: super::super::Foundation::BOOL, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fpersist: super::super::Foundation::BOOL, fconfirmedgood: super::super::Foundation::BOOL, fcleartextauthentication: super::super::Foundation::BOOL) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCredentialsEx2(::core::mem::transmute(&bstrrealm), ::core::mem::transmute(&bstrurl), ::core::mem::transmute_copy(&fproxy), ::core::mem::transmute(&bstrname), ::core::mem::transmute(&bstrpassword), ::core::mem::transmute_copy(&fpersist), ::core::mem::transmute_copy(&fconfirmedgood), ::core::mem::transmute_copy(&fcleartextauthentication)).into() } - unsafe extern "system" fn GetCredentialsEx2, Impl: IWMSInternalAdminNetSource3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrealm: ::core::mem::ManuallyDrop, bstrurl: ::core::mem::ManuallyDrop, fproxy: super::super::Foundation::BOOL, fcleartextauthentication: super::super::Foundation::BOOL, pdwurlpolicy: *mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: *mut super::super::Foundation::BSTR, pbstrpassword: *mut super::super::Foundation::BSTR, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCredentialsEx2, Impl: IWMSInternalAdminNetSource3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrealm: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fproxy: super::super::Foundation::BOOL, fcleartextauthentication: super::super::Foundation::BOOL, pdwurlpolicy: *mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrpassword: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetCredentialsEx2(::core::mem::transmute(&bstrrealm), ::core::mem::transmute(&bstrurl), ::core::mem::transmute_copy(&fproxy), ::core::mem::transmute_copy(&fcleartextauthentication), ::core::mem::transmute_copy(&pdwurlpolicy), ::core::mem::transmute_copy(&pbstrname), ::core::mem::transmute_copy(&pbstrpassword), ::core::mem::transmute_copy(&pfconfirmedgood)).into() diff --git a/crates/libs/windows/src/Windows/Win32/Media/WindowsMediaFormat/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/WindowsMediaFormat/mod.rs index 1b93b614f0..2ddf493a18 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/WindowsMediaFormat/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/WindowsMediaFormat/mod.rs @@ -695,19 +695,11 @@ impl IWMAddressAccess2 { pub unsafe fn RemoveAccessEntry(&self, aetype: WM_AETYPE, dwentrynum: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.RemoveAccessEntry)(::windows::core::Interface::as_raw(self), aetype, dwentrynum).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetAccessEntryEx(&self, aetype: WM_AETYPE, dwentrynum: u32, pbstraddress: &mut super::super::Foundation::BSTR, pbstrmask: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetAccessEntryEx(&self, aetype: WM_AETYPE, dwentrynum: u32, pbstraddress: &mut ::windows::core::BSTR, pbstrmask: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetAccessEntryEx)(::windows::core::Interface::as_raw(self), aetype, dwentrynum, ::core::mem::transmute(pbstraddress), ::core::mem::transmute(pbstrmask)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddAccessEntryEx<'a, P0, P1>(&self, aetype: WM_AETYPE, bstraddress: P0, bstrmask: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AddAccessEntryEx)(::windows::core::Interface::as_raw(self), aetype, bstraddress.into().abi(), bstrmask.into().abi()).ok() + pub unsafe fn AddAccessEntryEx(&self, aetype: WM_AETYPE, bstraddress: &::windows::core::BSTR, bstrmask: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AddAccessEntryEx)(::windows::core::Interface::as_raw(self), aetype, ::core::mem::transmute_copy(bstraddress), ::core::mem::transmute_copy(bstrmask)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -764,14 +756,8 @@ unsafe impl ::windows::core::Interface for IWMAddressAccess2 { #[doc(hidden)] pub struct IWMAddressAccess2_Vtbl { pub base__: IWMAddressAccess_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetAccessEntryEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, aetype: WM_AETYPE, dwentrynum: u32, pbstraddress: *mut super::super::Foundation::BSTR, pbstrmask: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetAccessEntryEx: usize, - #[cfg(feature = "Win32_Foundation")] - pub AddAccessEntryEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, aetype: WM_AETYPE, bstraddress: ::core::mem::ManuallyDrop, bstrmask: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddAccessEntryEx: usize, + pub GetAccessEntryEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, aetype: WM_AETYPE, dwentrynum: u32, pbstraddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrmask: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub AddAccessEntryEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, aetype: WM_AETYPE, bstraddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrmask: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_WindowsMediaFormat\"`*"] #[repr(transparent)] @@ -1498,9 +1484,7 @@ impl IWMDRMMessageParser { pub unsafe fn ParseRegistrationReqMsg(&self, pbregistrationreqmsg: &[u8], ppdevicecert: &mut ::core::option::Option, pdeviceserialnumber: &mut DRM_VAL16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ParseRegistrationReqMsg)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbregistrationreqmsg.as_ptr()), pbregistrationreqmsg.len() as _, ::core::mem::transmute(ppdevicecert), ::core::mem::transmute(pdeviceserialnumber)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ParseLicenseRequestMsg(&self, pblicenserequestmsg: &[u8], ppdevicecert: &mut ::core::option::Option, pdeviceserialnumber: &mut DRM_VAL16, pbstraction: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn ParseLicenseRequestMsg(&self, pblicenserequestmsg: &[u8], ppdevicecert: &mut ::core::option::Option, pdeviceserialnumber: &mut DRM_VAL16, pbstraction: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ParseLicenseRequestMsg)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pblicenserequestmsg.as_ptr()), pblicenserequestmsg.len() as _, ::core::mem::transmute(ppdevicecert), ::core::mem::transmute(pdeviceserialnumber), ::core::mem::transmute(pbstraction)).ok() } } @@ -1544,10 +1528,7 @@ unsafe impl ::windows::core::Interface for IWMDRMMessageParser { pub struct IWMDRMMessageParser_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub ParseRegistrationReqMsg: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbregistrationreqmsg: *const u8, cbregistrationreqmsg: u32, ppdevicecert: *mut *mut ::core::ffi::c_void, pdeviceserialnumber: *mut DRM_VAL16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ParseLicenseRequestMsg: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pblicenserequestmsg: *const u8, cblicenserequestmsg: u32, ppdevicecert: *mut *mut ::core::ffi::c_void, pdeviceserialnumber: *mut DRM_VAL16, pbstraction: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ParseLicenseRequestMsg: usize, + pub ParseLicenseRequestMsg: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pblicenserequestmsg: *const u8, cblicenserequestmsg: u32, ppdevicecert: *mut *mut ::core::ffi::c_void, pdeviceserialnumber: *mut DRM_VAL16, pbstraction: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Media_WindowsMediaFormat\"`*"] #[repr(transparent)] @@ -1926,14 +1907,11 @@ pub struct IWMDRMTranscryptionManager_Vtbl { #[repr(transparent)] pub struct IWMDRMTranscryptor(::windows::core::IUnknown); impl IWMDRMTranscryptor { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Initialize<'a, P0, P1>(&self, bstrfilename: P0, pblicenserequestmsg: &mut u8, cblicenserequestmsg: u32, pplicenseresponsemsg: &mut ::core::option::Option, pcallback: P1, pvcontext: *const ::core::ffi::c_void) -> ::windows::core::Result<()> + pub unsafe fn Initialize<'a, P0>(&self, bstrfilename: &::windows::core::BSTR, pblicenserequestmsg: &mut u8, cblicenserequestmsg: u32, pplicenseresponsemsg: &mut ::core::option::Option, pcallback: P0, pvcontext: *const ::core::ffi::c_void) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IWMStatusCallback>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IWMStatusCallback>>, { - (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), bstrfilename.into().abi(), ::core::mem::transmute(pblicenserequestmsg), cblicenserequestmsg, ::core::mem::transmute(pplicenseresponsemsg), pcallback.into().abi(), ::core::mem::transmute(pvcontext)).ok() + (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrfilename), ::core::mem::transmute(pblicenserequestmsg), cblicenserequestmsg, ::core::mem::transmute(pplicenseresponsemsg), pcallback.into().abi(), ::core::mem::transmute(pvcontext)).ok() } pub unsafe fn Seek(&self, hnstime: u64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Seek)(::windows::core::Interface::as_raw(self), hnstime).ok() @@ -1984,10 +1962,7 @@ unsafe impl ::windows::core::Interface for IWMDRMTranscryptor { #[doc(hidden)] pub struct IWMDRMTranscryptor_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop, pblicenserequestmsg: *mut u8, cblicenserequestmsg: u32, pplicenseresponsemsg: *mut *mut ::core::ffi::c_void, pcallback: *mut ::core::ffi::c_void, pvcontext: *const ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Initialize: usize, + pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pblicenserequestmsg: *mut u8, cblicenserequestmsg: u32, pplicenseresponsemsg: *mut *mut ::core::ffi::c_void, pcallback: *mut ::core::ffi::c_void, pvcontext: *const ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Seek: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hnstime: u64) -> ::windows::core::HRESULT, pub Read: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbdata: *const u8, pcbdata: *const u32) -> ::windows::core::HRESULT, pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -1996,14 +1971,11 @@ pub struct IWMDRMTranscryptor_Vtbl { #[repr(transparent)] pub struct IWMDRMTranscryptor2(::windows::core::IUnknown); impl IWMDRMTranscryptor2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Initialize<'a, P0, P1>(&self, bstrfilename: P0, pblicenserequestmsg: &mut u8, cblicenserequestmsg: u32, pplicenseresponsemsg: &mut ::core::option::Option, pcallback: P1, pvcontext: *const ::core::ffi::c_void) -> ::windows::core::Result<()> + pub unsafe fn Initialize<'a, P0>(&self, bstrfilename: &::windows::core::BSTR, pblicenserequestmsg: &mut u8, cblicenserequestmsg: u32, pplicenseresponsemsg: &mut ::core::option::Option, pcallback: P0, pvcontext: *const ::core::ffi::c_void) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IWMStatusCallback>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IWMStatusCallback>>, { - (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), bstrfilename.into().abi(), ::core::mem::transmute(pblicenserequestmsg), cblicenserequestmsg, ::core::mem::transmute(pplicenseresponsemsg), pcallback.into().abi(), ::core::mem::transmute(pvcontext)).ok() + (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrfilename), ::core::mem::transmute(pblicenserequestmsg), cblicenserequestmsg, ::core::mem::transmute(pplicenseresponsemsg), pcallback.into().abi(), ::core::mem::transmute(pvcontext)).ok() } pub unsafe fn Seek(&self, hnstime: u64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Seek)(::windows::core::Interface::as_raw(self), hnstime).ok() @@ -8153,28 +8125,15 @@ impl IWMRegisteredDevice { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetAttributeCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetAttributeByIndex(&self, dwindex: u32, pbstrname: &mut super::super::Foundation::BSTR, pbstrvalue: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetAttributeByIndex(&self, dwindex: u32, pbstrname: &mut ::windows::core::BSTR, pbstrvalue: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetAttributeByIndex)(::windows::core::Interface::as_raw(self), dwindex, ::core::mem::transmute(pbstrname), ::core::mem::transmute(pbstrvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetAttributeByName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetAttributeByName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetAttributeByName)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetAttributeByName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetAttributeByName<'a, P0, P1>(&self, bstrname: P0, bstrvalue: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetAttributeByName)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), bstrvalue.into().abi()).ok() + pub unsafe fn SetAttributeByName(&self, bstrname: &::windows::core::BSTR, bstrvalue: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetAttributeByName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute_copy(bstrvalue)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -8258,18 +8217,9 @@ pub struct IWMRegisteredDevice_Vtbl { pub GetDeviceCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcertificate: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetDeviceType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwtype: *mut u32) -> ::windows::core::HRESULT, pub GetAttributeCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcattributes: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetAttributeByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwindex: u32, pbstrname: *mut super::super::Foundation::BSTR, pbstrvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetAttributeByIndex: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetAttributeByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, pbstrvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetAttributeByName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetAttributeByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, bstrvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetAttributeByName: usize, + pub GetAttributeByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwindex: u32, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetAttributeByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetAttributeByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub Approve: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fapprove: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -8369,31 +8319,20 @@ impl IWMSInternalAdminNetSource { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCredentials<'a, P0, P1, P2, P3, P4>(&self, bstrrealm: P0, bstrname: P1, bstrpassword: P2, fpersist: P3, fconfirmedgood: P4) -> ::windows::core::Result<()> + pub unsafe fn SetCredentials<'a, P0, P1>(&self, bstrrealm: &::windows::core::BSTR, bstrname: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR, fpersist: P0, fconfirmedgood: P1) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into, - P4: ::std::convert::Into, + P0: ::std::convert::Into, + P1: ::std::convert::Into, { - (::windows::core::Interface::vtable(self).SetCredentials)(::windows::core::Interface::as_raw(self), bstrrealm.into().abi(), bstrname.into().abi(), bstrpassword.into().abi(), fpersist.into(), fconfirmedgood.into()).ok() + (::windows::core::Interface::vtable(self).SetCredentials)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrealm), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute_copy(bstrpassword), fpersist.into(), fconfirmedgood.into()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCredentials<'a, P0>(&self, bstrrealm: P0, pbstrname: &mut super::super::Foundation::BSTR, pbstrpassword: &mut super::super::Foundation::BSTR, pfconfirmedgood: &mut super::super::Foundation::BOOL) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetCredentials)(::windows::core::Interface::as_raw(self), bstrrealm.into().abi(), ::core::mem::transmute(pbstrname), ::core::mem::transmute(pbstrpassword), ::core::mem::transmute(pfconfirmedgood)).ok() + pub unsafe fn GetCredentials(&self, bstrrealm: &::windows::core::BSTR, pbstrname: &mut ::windows::core::BSTR, pbstrpassword: &mut ::windows::core::BSTR, pfconfirmedgood: &mut super::super::Foundation::BOOL) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetCredentials)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrealm), ::core::mem::transmute(pbstrname), ::core::mem::transmute(pbstrpassword), ::core::mem::transmute(pfconfirmedgood)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeleteCredentials<'a, P0>(&self, bstrrealm: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DeleteCredentials)(::windows::core::Interface::as_raw(self), bstrrealm.into().abi()).ok() + pub unsafe fn DeleteCredentials(&self, bstrrealm: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DeleteCredentials)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrealm)).ok() } pub unsafe fn GetCredentialFlags(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -8404,12 +8343,8 @@ impl IWMSInternalAdminNetSource { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FindProxyForURL<'a, P0, P1>(&self, bstrprotocol: P0, bstrhost: P1, pfproxyenabled: &mut super::super::Foundation::BOOL, pbstrproxyserver: &mut super::super::Foundation::BSTR, pdwproxyport: &mut u32, pdwproxycontext: &mut u32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).FindProxyForURL)(::windows::core::Interface::as_raw(self), bstrprotocol.into().abi(), bstrhost.into().abi(), ::core::mem::transmute(pfproxyenabled), ::core::mem::transmute(pbstrproxyserver), ::core::mem::transmute(pdwproxyport), ::core::mem::transmute(pdwproxycontext)).ok() + pub unsafe fn FindProxyForURL(&self, bstrprotocol: &::windows::core::BSTR, bstrhost: &::windows::core::BSTR, pfproxyenabled: &mut super::super::Foundation::BOOL, pbstrproxyserver: &mut ::windows::core::BSTR, pdwproxyport: &mut u32, pdwproxycontext: &mut u32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).FindProxyForURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprotocol), ::core::mem::transmute_copy(bstrhost), ::core::mem::transmute(pfproxyenabled), ::core::mem::transmute(pbstrproxyserver), ::core::mem::transmute(pdwproxyport), ::core::mem::transmute(pdwproxycontext)).ok() } pub unsafe fn RegisterProxyFailure(&self, hrparam: ::windows::core::HRESULT, dwproxycontext: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RegisterProxyFailure)(::windows::core::Interface::as_raw(self), hrparam, dwproxycontext).ok() @@ -8469,21 +8404,18 @@ pub struct IWMSInternalAdminNetSource_Vtbl { Initialize: usize, pub GetNetSourceCreator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppnetsourcecreator: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub SetCredentials: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrealm: ::core::mem::ManuallyDrop, bstrname: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop, fpersist: super::super::Foundation::BOOL, fconfirmedgood: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, + pub SetCredentials: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrealm: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fpersist: super::super::Foundation::BOOL, fconfirmedgood: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] SetCredentials: usize, #[cfg(feature = "Win32_Foundation")] - pub GetCredentials: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrealm: ::core::mem::ManuallyDrop, pbstrname: *mut super::super::Foundation::BSTR, pbstrpassword: *mut super::super::Foundation::BSTR, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, + pub GetCredentials: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrealm: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrpassword: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] GetCredentials: usize, - #[cfg(feature = "Win32_Foundation")] - pub DeleteCredentials: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrealm: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeleteCredentials: usize, + pub DeleteCredentials: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrealm: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetCredentialFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpdwflags: *mut u32) -> ::windows::core::HRESULT, pub SetCredentialFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub FindProxyForURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop, bstrhost: ::core::mem::ManuallyDrop, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut super::super::Foundation::BSTR, pdwproxyport: *mut u32, pdwproxycontext: *mut u32) -> ::windows::core::HRESULT, + pub FindProxyForURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrhost: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwproxyport: *mut u32, pdwproxycontext: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] FindProxyForURL: usize, pub RegisterProxyFailure: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrparam: ::windows::core::HRESULT, dwproxycontext: u32) -> ::windows::core::HRESULT, @@ -8499,47 +8431,34 @@ pub struct IWMSInternalAdminNetSource2(::windows::core::IUnknown); impl IWMSInternalAdminNetSource2 { #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCredentialsEx<'a, P0, P1, P2, P3, P4, P5, P6>(&self, bstrrealm: P0, bstrurl: P1, fproxy: P2, bstrname: P3, bstrpassword: P4, fpersist: P5, fconfirmedgood: P6) -> ::windows::core::Result<()> + pub unsafe fn SetCredentialsEx<'a, P0, P1, P2>(&self, bstrrealm: &::windows::core::BSTR, bstrurl: &::windows::core::BSTR, fproxy: P0, bstrname: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR, fpersist: P1, fconfirmedgood: P2) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P0: ::std::convert::Into, + P1: ::std::convert::Into, P2: ::std::convert::Into, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P5: ::std::convert::Into, - P6: ::std::convert::Into, { - (::windows::core::Interface::vtable(self).SetCredentialsEx)(::windows::core::Interface::as_raw(self), bstrrealm.into().abi(), bstrurl.into().abi(), fproxy.into(), bstrname.into().abi(), bstrpassword.into().abi(), fpersist.into(), fconfirmedgood.into()).ok() + (::windows::core::Interface::vtable(self).SetCredentialsEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrealm), ::core::mem::transmute_copy(bstrurl), fproxy.into(), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute_copy(bstrpassword), fpersist.into(), fconfirmedgood.into()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCredentialsEx<'a, P0, P1, P2>(&self, bstrrealm: P0, bstrurl: P1, fproxy: P2, pdwurlpolicy: &mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: &mut super::super::Foundation::BSTR, pbstrpassword: &mut super::super::Foundation::BSTR, pfconfirmedgood: &mut super::super::Foundation::BOOL) -> ::windows::core::Result<()> + pub unsafe fn GetCredentialsEx<'a, P0>(&self, bstrrealm: &::windows::core::BSTR, bstrurl: &::windows::core::BSTR, fproxy: P0, pdwurlpolicy: &mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: &mut ::windows::core::BSTR, pbstrpassword: &mut ::windows::core::BSTR, pfconfirmedgood: &mut super::super::Foundation::BOOL) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into, + P0: ::std::convert::Into, { - (::windows::core::Interface::vtable(self).GetCredentialsEx)(::windows::core::Interface::as_raw(self), bstrrealm.into().abi(), bstrurl.into().abi(), fproxy.into(), ::core::mem::transmute(pdwurlpolicy), ::core::mem::transmute(pbstrname), ::core::mem::transmute(pbstrpassword), ::core::mem::transmute(pfconfirmedgood)).ok() + (::windows::core::Interface::vtable(self).GetCredentialsEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrealm), ::core::mem::transmute_copy(bstrurl), fproxy.into(), ::core::mem::transmute(pdwurlpolicy), ::core::mem::transmute(pbstrname), ::core::mem::transmute(pbstrpassword), ::core::mem::transmute(pfconfirmedgood)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeleteCredentialsEx<'a, P0, P1, P2>(&self, bstrrealm: P0, bstrurl: P1, fproxy: P2) -> ::windows::core::Result<()> + pub unsafe fn DeleteCredentialsEx<'a, P0>(&self, bstrrealm: &::windows::core::BSTR, bstrurl: &::windows::core::BSTR, fproxy: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into, + P0: ::std::convert::Into, { - (::windows::core::Interface::vtable(self).DeleteCredentialsEx)(::windows::core::Interface::as_raw(self), bstrrealm.into().abi(), bstrurl.into().abi(), fproxy.into()).ok() + (::windows::core::Interface::vtable(self).DeleteCredentialsEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrealm), ::core::mem::transmute_copy(bstrurl), fproxy.into()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FindProxyForURLEx<'a, P0, P1, P2>(&self, bstrprotocol: P0, bstrhost: P1, bstrurl: P2, pfproxyenabled: &mut super::super::Foundation::BOOL, pbstrproxyserver: &mut super::super::Foundation::BSTR, pdwproxyport: &mut u32, pdwproxycontext: &mut u32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).FindProxyForURLEx)(::windows::core::Interface::as_raw(self), bstrprotocol.into().abi(), bstrhost.into().abi(), bstrurl.into().abi(), ::core::mem::transmute(pfproxyenabled), ::core::mem::transmute(pbstrproxyserver), ::core::mem::transmute(pdwproxyport), ::core::mem::transmute(pdwproxycontext)).ok() + pub unsafe fn FindProxyForURLEx(&self, bstrprotocol: &::windows::core::BSTR, bstrhost: &::windows::core::BSTR, bstrurl: &::windows::core::BSTR, pfproxyenabled: &mut super::super::Foundation::BOOL, pbstrproxyserver: &mut ::windows::core::BSTR, pdwproxyport: &mut u32, pdwproxycontext: &mut u32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).FindProxyForURLEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprotocol), ::core::mem::transmute_copy(bstrhost), ::core::mem::transmute_copy(bstrurl), ::core::mem::transmute(pfproxyenabled), ::core::mem::transmute(pbstrproxyserver), ::core::mem::transmute(pdwproxyport), ::core::mem::transmute(pdwproxycontext)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -8582,19 +8501,19 @@ unsafe impl ::windows::core::Interface for IWMSInternalAdminNetSource2 { pub struct IWMSInternalAdminNetSource2_Vtbl { pub base__: ::windows::core::IUnknownVtbl, #[cfg(feature = "Win32_Foundation")] - pub SetCredentialsEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrealm: ::core::mem::ManuallyDrop, bstrurl: ::core::mem::ManuallyDrop, fproxy: super::super::Foundation::BOOL, bstrname: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop, fpersist: super::super::Foundation::BOOL, fconfirmedgood: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, + pub SetCredentialsEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrealm: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fproxy: super::super::Foundation::BOOL, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fpersist: super::super::Foundation::BOOL, fconfirmedgood: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] SetCredentialsEx: usize, #[cfg(feature = "Win32_Foundation")] - pub GetCredentialsEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrealm: ::core::mem::ManuallyDrop, bstrurl: ::core::mem::ManuallyDrop, fproxy: super::super::Foundation::BOOL, pdwurlpolicy: *mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: *mut super::super::Foundation::BSTR, pbstrpassword: *mut super::super::Foundation::BSTR, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, + pub GetCredentialsEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrealm: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fproxy: super::super::Foundation::BOOL, pdwurlpolicy: *mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrpassword: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] GetCredentialsEx: usize, #[cfg(feature = "Win32_Foundation")] - pub DeleteCredentialsEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrealm: ::core::mem::ManuallyDrop, bstrurl: ::core::mem::ManuallyDrop, fproxy: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, + pub DeleteCredentialsEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrealm: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fproxy: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] DeleteCredentialsEx: usize, #[cfg(feature = "Win32_Foundation")] - pub FindProxyForURLEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop, bstrhost: ::core::mem::ManuallyDrop, bstrurl: ::core::mem::ManuallyDrop, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut super::super::Foundation::BSTR, pdwproxyport: *mut u32, pdwproxycontext: *mut u32) -> ::windows::core::HRESULT, + pub FindProxyForURLEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrhost: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwproxyport: *mut u32, pdwproxycontext: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] FindProxyForURLEx: usize, } @@ -8604,47 +8523,34 @@ pub struct IWMSInternalAdminNetSource3(::windows::core::IUnknown); impl IWMSInternalAdminNetSource3 { #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCredentialsEx<'a, P0, P1, P2, P3, P4, P5, P6>(&self, bstrrealm: P0, bstrurl: P1, fproxy: P2, bstrname: P3, bstrpassword: P4, fpersist: P5, fconfirmedgood: P6) -> ::windows::core::Result<()> + pub unsafe fn SetCredentialsEx<'a, P0, P1, P2>(&self, bstrrealm: &::windows::core::BSTR, bstrurl: &::windows::core::BSTR, fproxy: P0, bstrname: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR, fpersist: P1, fconfirmedgood: P2) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P0: ::std::convert::Into, + P1: ::std::convert::Into, P2: ::std::convert::Into, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P5: ::std::convert::Into, - P6: ::std::convert::Into, { - (::windows::core::Interface::vtable(self).base__.SetCredentialsEx)(::windows::core::Interface::as_raw(self), bstrrealm.into().abi(), bstrurl.into().abi(), fproxy.into(), bstrname.into().abi(), bstrpassword.into().abi(), fpersist.into(), fconfirmedgood.into()).ok() + (::windows::core::Interface::vtable(self).base__.SetCredentialsEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrealm), ::core::mem::transmute_copy(bstrurl), fproxy.into(), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute_copy(bstrpassword), fpersist.into(), fconfirmedgood.into()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCredentialsEx<'a, P0, P1, P2>(&self, bstrrealm: P0, bstrurl: P1, fproxy: P2, pdwurlpolicy: &mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: &mut super::super::Foundation::BSTR, pbstrpassword: &mut super::super::Foundation::BSTR, pfconfirmedgood: &mut super::super::Foundation::BOOL) -> ::windows::core::Result<()> + pub unsafe fn GetCredentialsEx<'a, P0>(&self, bstrrealm: &::windows::core::BSTR, bstrurl: &::windows::core::BSTR, fproxy: P0, pdwurlpolicy: &mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: &mut ::windows::core::BSTR, pbstrpassword: &mut ::windows::core::BSTR, pfconfirmedgood: &mut super::super::Foundation::BOOL) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into, + P0: ::std::convert::Into, { - (::windows::core::Interface::vtable(self).base__.GetCredentialsEx)(::windows::core::Interface::as_raw(self), bstrrealm.into().abi(), bstrurl.into().abi(), fproxy.into(), ::core::mem::transmute(pdwurlpolicy), ::core::mem::transmute(pbstrname), ::core::mem::transmute(pbstrpassword), ::core::mem::transmute(pfconfirmedgood)).ok() + (::windows::core::Interface::vtable(self).base__.GetCredentialsEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrealm), ::core::mem::transmute_copy(bstrurl), fproxy.into(), ::core::mem::transmute(pdwurlpolicy), ::core::mem::transmute(pbstrname), ::core::mem::transmute(pbstrpassword), ::core::mem::transmute(pfconfirmedgood)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeleteCredentialsEx<'a, P0, P1, P2>(&self, bstrrealm: P0, bstrurl: P1, fproxy: P2) -> ::windows::core::Result<()> + pub unsafe fn DeleteCredentialsEx<'a, P0>(&self, bstrrealm: &::windows::core::BSTR, bstrurl: &::windows::core::BSTR, fproxy: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into, + P0: ::std::convert::Into, { - (::windows::core::Interface::vtable(self).base__.DeleteCredentialsEx)(::windows::core::Interface::as_raw(self), bstrrealm.into().abi(), bstrurl.into().abi(), fproxy.into()).ok() + (::windows::core::Interface::vtable(self).base__.DeleteCredentialsEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrealm), ::core::mem::transmute_copy(bstrurl), fproxy.into()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FindProxyForURLEx<'a, P0, P1, P2>(&self, bstrprotocol: P0, bstrhost: P1, bstrurl: P2, pfproxyenabled: &mut super::super::Foundation::BOOL, pbstrproxyserver: &mut super::super::Foundation::BSTR, pdwproxyport: &mut u32, pdwproxycontext: &mut u32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.FindProxyForURLEx)(::windows::core::Interface::as_raw(self), bstrprotocol.into().abi(), bstrhost.into().abi(), bstrurl.into().abi(), ::core::mem::transmute(pfproxyenabled), ::core::mem::transmute(pbstrproxyserver), ::core::mem::transmute(pdwproxyport), ::core::mem::transmute(pdwproxycontext)).ok() + pub unsafe fn FindProxyForURLEx(&self, bstrprotocol: &::windows::core::BSTR, bstrhost: &::windows::core::BSTR, bstrurl: &::windows::core::BSTR, pfproxyenabled: &mut super::super::Foundation::BOOL, pbstrproxyserver: &mut ::windows::core::BSTR, pdwproxyport: &mut u32, pdwproxycontext: &mut u32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.FindProxyForURLEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprotocol), ::core::mem::transmute_copy(bstrhost), ::core::mem::transmute_copy(bstrurl), ::core::mem::transmute(pfproxyenabled), ::core::mem::transmute(pbstrproxyserver), ::core::mem::transmute(pdwproxyport), ::core::mem::transmute(pdwproxycontext)).ok() } pub unsafe fn GetNetSourceCreator2(&self) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -8652,13 +8558,8 @@ impl IWMSInternalAdminNetSource3 { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FindProxyForURLEx2<'a, P0, P1, P2>(&self, bstrprotocol: P0, bstrhost: P1, bstrurl: P2, pfproxyenabled: &mut super::super::Foundation::BOOL, pbstrproxyserver: &mut super::super::Foundation::BSTR, pdwproxyport: &mut u32, pqwproxycontext: &mut u64) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).FindProxyForURLEx2)(::windows::core::Interface::as_raw(self), bstrprotocol.into().abi(), bstrhost.into().abi(), bstrurl.into().abi(), ::core::mem::transmute(pfproxyenabled), ::core::mem::transmute(pbstrproxyserver), ::core::mem::transmute(pdwproxyport), ::core::mem::transmute(pqwproxycontext)).ok() + pub unsafe fn FindProxyForURLEx2(&self, bstrprotocol: &::windows::core::BSTR, bstrhost: &::windows::core::BSTR, bstrurl: &::windows::core::BSTR, pfproxyenabled: &mut super::super::Foundation::BOOL, pbstrproxyserver: &mut ::windows::core::BSTR, pdwproxyport: &mut u32, pqwproxycontext: &mut u64) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).FindProxyForURLEx2)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprotocol), ::core::mem::transmute_copy(bstrhost), ::core::mem::transmute_copy(bstrurl), ::core::mem::transmute(pfproxyenabled), ::core::mem::transmute(pbstrproxyserver), ::core::mem::transmute(pdwproxyport), ::core::mem::transmute(pqwproxycontext)).ok() } pub unsafe fn RegisterProxyFailure2(&self, hrparam: ::windows::core::HRESULT, qwproxycontext: u64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RegisterProxyFailure2)(::windows::core::Interface::as_raw(self), hrparam, qwproxycontext).ok() @@ -8674,29 +8575,23 @@ impl IWMSInternalAdminNetSource3 { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCredentialsEx2<'a, P0, P1, P2, P3, P4, P5, P6, P7>(&self, bstrrealm: P0, bstrurl: P1, fproxy: P2, bstrname: P3, bstrpassword: P4, fpersist: P5, fconfirmedgood: P6, fcleartextauthentication: P7) -> ::windows::core::Result<()> + pub unsafe fn SetCredentialsEx2<'a, P0, P1, P2, P3>(&self, bstrrealm: &::windows::core::BSTR, bstrurl: &::windows::core::BSTR, fproxy: P0, bstrname: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR, fpersist: P1, fconfirmedgood: P2, fcleartextauthentication: P3) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P0: ::std::convert::Into, + P1: ::std::convert::Into, P2: ::std::convert::Into, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P5: ::std::convert::Into, - P6: ::std::convert::Into, - P7: ::std::convert::Into, + P3: ::std::convert::Into, { - (::windows::core::Interface::vtable(self).SetCredentialsEx2)(::windows::core::Interface::as_raw(self), bstrrealm.into().abi(), bstrurl.into().abi(), fproxy.into(), bstrname.into().abi(), bstrpassword.into().abi(), fpersist.into(), fconfirmedgood.into(), fcleartextauthentication.into()).ok() + (::windows::core::Interface::vtable(self).SetCredentialsEx2)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrealm), ::core::mem::transmute_copy(bstrurl), fproxy.into(), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute_copy(bstrpassword), fpersist.into(), fconfirmedgood.into(), fcleartextauthentication.into()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCredentialsEx2<'a, P0, P1, P2, P3>(&self, bstrrealm: P0, bstrurl: P1, fproxy: P2, fcleartextauthentication: P3, pdwurlpolicy: &mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: &mut super::super::Foundation::BSTR, pbstrpassword: &mut super::super::Foundation::BSTR, pfconfirmedgood: &mut super::super::Foundation::BOOL) -> ::windows::core::Result<()> + pub unsafe fn GetCredentialsEx2<'a, P0, P1>(&self, bstrrealm: &::windows::core::BSTR, bstrurl: &::windows::core::BSTR, fproxy: P0, fcleartextauthentication: P1, pdwurlpolicy: &mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: &mut ::windows::core::BSTR, pbstrpassword: &mut ::windows::core::BSTR, pfconfirmedgood: &mut super::super::Foundation::BOOL) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into, - P3: ::std::convert::Into, + P0: ::std::convert::Into, + P1: ::std::convert::Into, { - (::windows::core::Interface::vtable(self).GetCredentialsEx2)(::windows::core::Interface::as_raw(self), bstrrealm.into().abi(), bstrurl.into().abi(), fproxy.into(), fcleartextauthentication.into(), ::core::mem::transmute(pdwurlpolicy), ::core::mem::transmute(pbstrname), ::core::mem::transmute(pbstrpassword), ::core::mem::transmute(pfconfirmedgood)).ok() + (::windows::core::Interface::vtable(self).GetCredentialsEx2)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrealm), ::core::mem::transmute_copy(bstrurl), fproxy.into(), fcleartextauthentication.into(), ::core::mem::transmute(pdwurlpolicy), ::core::mem::transmute(pbstrname), ::core::mem::transmute(pbstrpassword), ::core::mem::transmute(pfconfirmedgood)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -8755,7 +8650,7 @@ pub struct IWMSInternalAdminNetSource3_Vtbl { pub base__: IWMSInternalAdminNetSource2_Vtbl, pub GetNetSourceCreator2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppnetsourcecreator: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub FindProxyForURLEx2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop, bstrhost: ::core::mem::ManuallyDrop, bstrurl: ::core::mem::ManuallyDrop, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut super::super::Foundation::BSTR, pdwproxyport: *mut u32, pqwproxycontext: *mut u64) -> ::windows::core::HRESULT, + pub FindProxyForURLEx2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrhost: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfproxyenabled: *mut super::super::Foundation::BOOL, pbstrproxyserver: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwproxyport: *mut u32, pqwproxycontext: *mut u64) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] FindProxyForURLEx2: usize, pub RegisterProxyFailure2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrparam: ::windows::core::HRESULT, qwproxycontext: u64) -> ::windows::core::HRESULT, @@ -8765,11 +8660,11 @@ pub struct IWMSInternalAdminNetSource3_Vtbl { #[cfg(not(feature = "Win32_Foundation"))] IsUsingIE2: usize, #[cfg(feature = "Win32_Foundation")] - pub SetCredentialsEx2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrealm: ::core::mem::ManuallyDrop, bstrurl: ::core::mem::ManuallyDrop, fproxy: super::super::Foundation::BOOL, bstrname: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop, fpersist: super::super::Foundation::BOOL, fconfirmedgood: super::super::Foundation::BOOL, fcleartextauthentication: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, + pub SetCredentialsEx2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrealm: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fproxy: super::super::Foundation::BOOL, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fpersist: super::super::Foundation::BOOL, fconfirmedgood: super::super::Foundation::BOOL, fcleartextauthentication: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] SetCredentialsEx2: usize, #[cfg(feature = "Win32_Foundation")] - pub GetCredentialsEx2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrealm: ::core::mem::ManuallyDrop, bstrurl: ::core::mem::ManuallyDrop, fproxy: super::super::Foundation::BOOL, fcleartextauthentication: super::super::Foundation::BOOL, pdwurlpolicy: *mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: *mut super::super::Foundation::BSTR, pbstrpassword: *mut super::super::Foundation::BSTR, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, + pub GetCredentialsEx2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrealm: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fproxy: super::super::Foundation::BOOL, fcleartextauthentication: super::super::Foundation::BOOL, pdwurlpolicy: *mut NETSOURCE_URLCREDPOLICY_SETTINGS, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrpassword: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfconfirmedgood: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] GetCredentialsEx2: usize, } diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/MobileBroadband/impl.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/MobileBroadband/impl.rs index e7b21390b0..2a3a8307f6 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/MobileBroadband/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/MobileBroadband/impl.rs @@ -11,22 +11,19 @@ impl IDummyMBNUCMExt_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IMbnConnection_Impl: Sized { - fn ConnectionID(&self) -> ::windows::core::Result; - fn InterfaceID(&self) -> ::windows::core::Result; + fn ConnectionID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn InterfaceID(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Connect(&self, connectionmode: MBN_CONNECTION_MODE, strprofile: &::windows::core::PCWSTR) -> ::windows::core::Result; fn Disconnect(&self) -> ::windows::core::Result; - fn GetConnectionState(&self, connectionstate: *mut MBN_ACTIVATION_STATE, profilename: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetConnectionState(&self, connectionstate: *mut MBN_ACTIVATION_STATE, profilename: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetVoiceCallState(&self) -> ::windows::core::Result; fn GetActivationNetworkError(&self) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IMbnConnection {} -#[cfg(feature = "Win32_Foundation")] impl IMbnConnection_Vtbl { pub const fn new, Impl: IMbnConnection_Impl, const OFFSET: isize>() -> IMbnConnection_Vtbl { - unsafe extern "system" fn ConnectionID, Impl: IMbnConnection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, connectionid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ConnectionID, Impl: IMbnConnection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, connectionid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ConnectionID() { @@ -37,7 +34,7 @@ impl IMbnConnection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn InterfaceID, Impl: IMbnConnection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, interfaceid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn InterfaceID, Impl: IMbnConnection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, interfaceid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.InterfaceID() { @@ -70,7 +67,7 @@ impl IMbnConnection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetConnectionState, Impl: IMbnConnection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, connectionstate: *mut MBN_ACTIVATION_STATE, profilename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetConnectionState, Impl: IMbnConnection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, connectionstate: *mut MBN_ACTIVATION_STATE, profilename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetConnectionState(::core::mem::transmute_copy(&connectionstate), ::core::mem::transmute_copy(&profilename)).into() @@ -112,14 +109,14 @@ impl IMbnConnection_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IMbnConnectionContext_Impl: Sized { fn GetProvisionedContexts(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; fn SetProvisionedContext(&self, provisionedcontexts: &MBN_CONTEXT, providerid: &::windows::core::PCWSTR) -> ::windows::core::Result; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IMbnConnectionContext {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IMbnConnectionContext_Vtbl { pub const fn new, Impl: IMbnConnectionContext_Impl, const OFFSET: isize>() -> IMbnConnectionContext_Vtbl { unsafe extern "system" fn GetProvisionedContexts, Impl: IMbnConnectionContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, provisionedcontexts: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT { @@ -291,18 +288,15 @@ impl IMbnConnectionManagerEvents_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IMbnConnectionProfile_Impl: Sized { - fn GetProfileXmlData(&self) -> ::windows::core::Result; + fn GetProfileXmlData(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn UpdateProfile(&self, strprofile: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn Delete(&self) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IMbnConnectionProfile {} -#[cfg(feature = "Win32_Foundation")] impl IMbnConnectionProfile_Vtbl { pub const fn new, Impl: IMbnConnectionProfile_Impl, const OFFSET: isize>() -> IMbnConnectionProfile_Vtbl { - unsafe extern "system" fn GetProfileXmlData, Impl: IMbnConnectionProfile_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, profiledata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetProfileXmlData, Impl: IMbnConnectionProfile_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, profiledata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetProfileXmlData() { @@ -437,8 +431,8 @@ pub trait IMbnDeviceService_Impl: Sized { fn OpenDataSession(&self) -> ::windows::core::Result; fn CloseDataSession(&self) -> ::windows::core::Result; fn WriteData(&self, deviceservicedata: *const super::super::System::Com::SAFEARRAY) -> ::windows::core::Result; - fn InterfaceID(&self) -> ::windows::core::Result; - fn DeviceServiceID(&self) -> ::windows::core::Result; + fn InterfaceID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn DeviceServiceID(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn IsCommandSessionOpen(&self) -> ::windows::core::Result; fn IsDataSessionOpen(&self) -> ::windows::core::Result; } @@ -535,7 +529,7 @@ impl IMbnDeviceService_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn InterfaceID, Impl: IMbnDeviceService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, interfaceid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn InterfaceID, Impl: IMbnDeviceService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, interfaceid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.InterfaceID() { @@ -546,7 +540,7 @@ impl IMbnDeviceService_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DeviceServiceID, Impl: IMbnDeviceService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, deviceserviceid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeviceServiceID, Impl: IMbnDeviceService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, deviceserviceid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DeviceServiceID() { @@ -599,16 +593,13 @@ impl IMbnDeviceService_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IMbnDeviceServiceStateEvents_Impl: Sized { - fn OnSessionsStateChange(&self, interfaceid: &super::super::Foundation::BSTR, statechange: MBN_DEVICE_SERVICE_SESSIONS_STATE) -> ::windows::core::Result<()>; + fn OnSessionsStateChange(&self, interfaceid: &::windows::core::BSTR, statechange: MBN_DEVICE_SERVICE_SESSIONS_STATE) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IMbnDeviceServiceStateEvents {} -#[cfg(feature = "Win32_Foundation")] impl IMbnDeviceServiceStateEvents_Vtbl { pub const fn new, Impl: IMbnDeviceServiceStateEvents_Impl, const OFFSET: isize>() -> IMbnDeviceServiceStateEvents_Vtbl { - unsafe extern "system" fn OnSessionsStateChange, Impl: IMbnDeviceServiceStateEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, interfaceid: ::core::mem::ManuallyDrop, statechange: MBN_DEVICE_SERVICE_SESSIONS_STATE) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnSessionsStateChange, Impl: IMbnDeviceServiceStateEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, interfaceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, statechange: MBN_DEVICE_SERVICE_SESSIONS_STATE) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnSessionsStateChange(::core::mem::transmute(&interfaceid), ::core::mem::transmute_copy(&statechange)).into() @@ -619,16 +610,16 @@ impl IMbnDeviceServiceStateEvents_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IMbnDeviceServicesContext_Impl: Sized { fn EnumerateDeviceServices(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; - fn GetDeviceService(&self, deviceserviceid: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetDeviceService(&self, deviceserviceid: &::windows::core::BSTR) -> ::windows::core::Result; fn MaxCommandSize(&self) -> ::windows::core::Result; fn MaxDataSize(&self) -> ::windows::core::Result; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IMbnDeviceServicesContext {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IMbnDeviceServicesContext_Vtbl { pub const fn new, Impl: IMbnDeviceServicesContext_Impl, const OFFSET: isize>() -> IMbnDeviceServicesContext_Vtbl { unsafe extern "system" fn EnumerateDeviceServices, Impl: IMbnDeviceServicesContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, deviceservices: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT { @@ -642,7 +633,7 @@ impl IMbnDeviceServicesContext_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetDeviceService, Impl: IMbnDeviceServicesContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, deviceserviceid: ::core::mem::ManuallyDrop, mbndeviceservice: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDeviceService, Impl: IMbnDeviceServicesContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, deviceserviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, mbndeviceservice: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDeviceService(::core::mem::transmute(&deviceserviceid)) { @@ -687,7 +678,7 @@ impl IMbnDeviceServicesContext_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IMbnDeviceServicesEvents_Impl: Sized { fn OnQuerySupportedCommandsComplete(&self, deviceservice: &::core::option::Option, commandidlist: *const super::super::System::Com::SAFEARRAY, status: ::windows::core::HRESULT, requestid: u32) -> ::windows::core::Result<()>; fn OnOpenCommandSessionComplete(&self, deviceservice: &::core::option::Option, status: ::windows::core::HRESULT, requestid: u32) -> ::windows::core::Result<()>; @@ -699,11 +690,11 @@ pub trait IMbnDeviceServicesEvents_Impl: Sized { fn OnCloseDataSessionComplete(&self, deviceservice: &::core::option::Option, status: ::windows::core::HRESULT, requestid: u32) -> ::windows::core::Result<()>; fn OnWriteDataComplete(&self, deviceservice: &::core::option::Option, status: ::windows::core::HRESULT, requestid: u32) -> ::windows::core::Result<()>; fn OnReadData(&self, deviceservice: &::core::option::Option, deviceservicedata: *const super::super::System::Com::SAFEARRAY) -> ::windows::core::Result<()>; - fn OnInterfaceStateChange(&self, interfaceid: &super::super::Foundation::BSTR, statechange: MBN_DEVICE_SERVICES_INTERFACE_STATE) -> ::windows::core::Result<()>; + fn OnInterfaceStateChange(&self, interfaceid: &::windows::core::BSTR, statechange: MBN_DEVICE_SERVICES_INTERFACE_STATE) -> ::windows::core::Result<()>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IMbnDeviceServicesEvents {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IMbnDeviceServicesEvents_Vtbl { pub const fn new, Impl: IMbnDeviceServicesEvents_Impl, const OFFSET: isize>() -> IMbnDeviceServicesEvents_Vtbl { unsafe extern "system" fn OnQuerySupportedCommandsComplete, Impl: IMbnDeviceServicesEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, deviceservice: *mut ::core::ffi::c_void, commandidlist: *const super::super::System::Com::SAFEARRAY, status: ::windows::core::HRESULT, requestid: u32) -> ::windows::core::HRESULT { @@ -756,7 +747,7 @@ impl IMbnDeviceServicesEvents_Vtbl { let this = (*this).get_impl(); this.OnReadData(::core::mem::transmute(&deviceservice), ::core::mem::transmute_copy(&deviceservicedata)).into() } - unsafe extern "system" fn OnInterfaceStateChange, Impl: IMbnDeviceServicesEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, interfaceid: ::core::mem::ManuallyDrop, statechange: MBN_DEVICE_SERVICES_INTERFACE_STATE) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnInterfaceStateChange, Impl: IMbnDeviceServicesEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, interfaceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, statechange: MBN_DEVICE_SERVICES_INTERFACE_STATE) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnInterfaceStateChange(::core::mem::transmute(&interfaceid), ::core::mem::transmute_copy(&statechange)).into() @@ -780,16 +771,13 @@ impl IMbnDeviceServicesEvents_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IMbnDeviceServicesManager_Impl: Sized { - fn GetDeviceServicesContext(&self, networkinterfaceid: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetDeviceServicesContext(&self, networkinterfaceid: &::windows::core::BSTR) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IMbnDeviceServicesManager {} -#[cfg(feature = "Win32_Foundation")] impl IMbnDeviceServicesManager_Vtbl { pub const fn new, Impl: IMbnDeviceServicesManager_Impl, const OFFSET: isize>() -> IMbnDeviceServicesManager_Vtbl { - unsafe extern "system" fn GetDeviceServicesContext, Impl: IMbnDeviceServicesManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, networkinterfaceid: ::core::mem::ManuallyDrop, mbndevicescontext: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDeviceServicesContext, Impl: IMbnDeviceServicesManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, networkinterfaceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, mbndevicescontext: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDeviceServicesContext(::core::mem::transmute(&networkinterfaceid)) { @@ -806,9 +794,9 @@ impl IMbnDeviceServicesManager_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IMbnInterface_Impl: Sized { - fn InterfaceID(&self) -> ::windows::core::Result; + fn InterfaceID(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetInterfaceCapability(&self) -> ::windows::core::Result; fn GetSubscriberInformation(&self) -> ::windows::core::Result; fn GetReadyState(&self) -> ::windows::core::Result; @@ -820,12 +808,12 @@ pub trait IMbnInterface_Impl: Sized { fn ScanNetwork(&self) -> ::windows::core::Result; fn GetConnection(&self) -> ::windows::core::Result; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IMbnInterface {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IMbnInterface_Vtbl { pub const fn new, Impl: IMbnInterface_Impl, const OFFSET: isize>() -> IMbnInterface_Vtbl { - unsafe extern "system" fn InterfaceID, Impl: IMbnInterface_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, interfaceid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn InterfaceID, Impl: IMbnInterface_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, interfaceid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.InterfaceID() { @@ -1097,7 +1085,7 @@ impl IMbnInterfaceManagerEvents_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IMbnMultiCarrier_Impl: Sized { fn SetHomeProvider(&self, homeprovider: *const MBN_PROVIDER2) -> ::windows::core::Result; fn GetPreferredProviders(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; @@ -1106,9 +1094,9 @@ pub trait IMbnMultiCarrier_Impl: Sized { fn GetCurrentCellularClass(&self) -> ::windows::core::Result; fn ScanNetwork(&self) -> ::windows::core::Result; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IMbnMultiCarrier {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IMbnMultiCarrier_Vtbl { pub const fn new, Impl: IMbnMultiCarrier_Impl, const OFFSET: isize>() -> IMbnMultiCarrier_Vtbl { unsafe extern "system" fn SetHomeProvider, Impl: IMbnMultiCarrier_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, homeprovider: *const MBN_PROVIDER2, requestid: *mut u32) -> ::windows::core::HRESULT { @@ -1598,22 +1586,19 @@ impl IMbnRadioEvents_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IMbnRegistration_Impl: Sized { fn GetRegisterState(&self) -> ::windows::core::Result; fn GetRegisterMode(&self) -> ::windows::core::Result; - fn GetProviderID(&self) -> ::windows::core::Result; - fn GetProviderName(&self) -> ::windows::core::Result; - fn GetRoamingText(&self) -> ::windows::core::Result; + fn GetProviderID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetProviderName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetRoamingText(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetAvailableDataClasses(&self) -> ::windows::core::Result; fn GetCurrentDataClass(&self) -> ::windows::core::Result; fn GetRegistrationNetworkError(&self) -> ::windows::core::Result; fn GetPacketAttachNetworkError(&self) -> ::windows::core::Result; fn SetRegisterMode(&self, registermode: MBN_REGISTER_MODE, providerid: &::windows::core::PCWSTR, dataclass: u32) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IMbnRegistration {} -#[cfg(feature = "Win32_Foundation")] impl IMbnRegistration_Vtbl { pub const fn new, Impl: IMbnRegistration_Impl, const OFFSET: isize>() -> IMbnRegistration_Vtbl { unsafe extern "system" fn GetRegisterState, Impl: IMbnRegistration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, registerstate: *mut MBN_REGISTER_STATE) -> ::windows::core::HRESULT { @@ -1638,7 +1623,7 @@ impl IMbnRegistration_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetProviderID, Impl: IMbnRegistration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, providerid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetProviderID, Impl: IMbnRegistration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, providerid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetProviderID() { @@ -1649,7 +1634,7 @@ impl IMbnRegistration_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetProviderName, Impl: IMbnRegistration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, providername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetProviderName, Impl: IMbnRegistration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, providername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetProviderName() { @@ -1660,7 +1645,7 @@ impl IMbnRegistration_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetRoamingText, Impl: IMbnRegistration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, roamingtext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetRoamingText, Impl: IMbnRegistration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, roamingtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetRoamingText() { @@ -2007,21 +1992,18 @@ impl IMbnSms_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IMbnSmsConfiguration_Impl: Sized { - fn ServiceCenterAddress(&self) -> ::windows::core::Result; + fn ServiceCenterAddress(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn SetServiceCenterAddress(&self, scaddress: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn MaxMessageIndex(&self) -> ::windows::core::Result; fn CdmaShortMsgSize(&self) -> ::windows::core::Result; fn SmsFormat(&self) -> ::windows::core::Result; fn SetSmsFormat(&self, smsformat: MBN_SMS_FORMAT) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IMbnSmsConfiguration {} -#[cfg(feature = "Win32_Foundation")] impl IMbnSmsConfiguration_Vtbl { pub const fn new, Impl: IMbnSmsConfiguration_Impl, const OFFSET: isize>() -> IMbnSmsConfiguration_Vtbl { - unsafe extern "system" fn ServiceCenterAddress, Impl: IMbnSmsConfiguration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, scaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ServiceCenterAddress, Impl: IMbnSmsConfiguration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, scaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ServiceCenterAddress() { @@ -2154,16 +2136,16 @@ impl IMbnSmsEvents_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IMbnSmsReadMsgPdu_Impl: Sized { fn Index(&self) -> ::windows::core::Result; fn Status(&self) -> ::windows::core::Result; - fn PduData(&self) -> ::windows::core::Result; + fn PduData(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Message(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IMbnSmsReadMsgPdu {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IMbnSmsReadMsgPdu_Vtbl { pub const fn new, Impl: IMbnSmsReadMsgPdu_Impl, const OFFSET: isize>() -> IMbnSmsReadMsgPdu_Vtbl { unsafe extern "system" fn Index, Impl: IMbnSmsReadMsgPdu_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: *mut u32) -> ::windows::core::HRESULT { @@ -2188,7 +2170,7 @@ impl IMbnSmsReadMsgPdu_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn PduData, Impl: IMbnSmsReadMsgPdu_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdudata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PduData, Impl: IMbnSmsReadMsgPdu_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdudata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PduData() { @@ -2222,20 +2204,20 @@ impl IMbnSmsReadMsgPdu_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IMbnSmsReadMsgTextCdma_Impl: Sized { fn Index(&self) -> ::windows::core::Result; fn Status(&self) -> ::windows::core::Result; - fn Address(&self) -> ::windows::core::Result; - fn Timestamp(&self) -> ::windows::core::Result; + fn Address(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Timestamp(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn EncodingID(&self) -> ::windows::core::Result; fn LanguageID(&self) -> ::windows::core::Result; fn SizeInCharacters(&self) -> ::windows::core::Result; fn Message(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IMbnSmsReadMsgTextCdma {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IMbnSmsReadMsgTextCdma_Vtbl { pub const fn new, Impl: IMbnSmsReadMsgTextCdma_Impl, const OFFSET: isize>() -> IMbnSmsReadMsgTextCdma_Vtbl { unsafe extern "system" fn Index, Impl: IMbnSmsReadMsgTextCdma_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: *mut u32) -> ::windows::core::HRESULT { @@ -2260,7 +2242,7 @@ impl IMbnSmsReadMsgTextCdma_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Address, Impl: IMbnSmsReadMsgTextCdma_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, address: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Address, Impl: IMbnSmsReadMsgTextCdma_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, address: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Address() { @@ -2271,7 +2253,7 @@ impl IMbnSmsReadMsgTextCdma_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Timestamp, Impl: IMbnSmsReadMsgTextCdma_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, timestamp: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Timestamp, Impl: IMbnSmsReadMsgTextCdma_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, timestamp: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Timestamp() { @@ -2342,18 +2324,18 @@ impl IMbnSmsReadMsgTextCdma_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IMbnSubscriberInformation_Impl: Sized { - fn SubscriberID(&self) -> ::windows::core::Result; - fn SimIccID(&self) -> ::windows::core::Result; + fn SubscriberID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SimIccID(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn TelephoneNumbers(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IMbnSubscriberInformation {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IMbnSubscriberInformation_Vtbl { pub const fn new, Impl: IMbnSubscriberInformation_Impl, const OFFSET: isize>() -> IMbnSubscriberInformation_Vtbl { - unsafe extern "system" fn SubscriberID, Impl: IMbnSubscriberInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, subscriberid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SubscriberID, Impl: IMbnSubscriberInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, subscriberid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SubscriberID() { @@ -2364,7 +2346,7 @@ impl IMbnSubscriberInformation_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SimIccID, Impl: IMbnSubscriberInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, simiccid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SimIccID, Impl: IMbnSubscriberInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, simiccid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SimIccID() { diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/MobileBroadband/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/MobileBroadband/mod.rs index 8d3208d708..1bf9b878ec 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/MobileBroadband/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/MobileBroadband/mod.rs @@ -75,17 +75,13 @@ pub struct IDummyMBNUCMExt_Vtbl { #[repr(transparent)] pub struct IMbnConnection(::windows::core::IUnknown); impl IMbnConnection { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ConnectionID(&self) -> ::windows::core::Result { + pub unsafe fn ConnectionID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ConnectionID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ConnectionID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InterfaceID(&self) -> ::windows::core::Result { + pub unsafe fn InterfaceID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).InterfaceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).InterfaceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Connect<'a, P0>(&self, connectionmode: MBN_CONNECTION_MODE, strprofile: P0) -> ::windows::core::Result where @@ -98,9 +94,7 @@ impl IMbnConnection { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Disconnect)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetConnectionState(&self, connectionstate: &mut MBN_ACTIVATION_STATE, profilename: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetConnectionState(&self, connectionstate: &mut MBN_ACTIVATION_STATE, profilename: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetConnectionState)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(connectionstate), ::core::mem::transmute(profilename)).ok() } pub unsafe fn GetVoiceCallState(&self) -> ::windows::core::Result { @@ -151,20 +145,11 @@ unsafe impl ::windows::core::Interface for IMbnConnection { #[doc(hidden)] pub struct IMbnConnection_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub ConnectionID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, connectionid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ConnectionID: usize, - #[cfg(feature = "Win32_Foundation")] - pub InterfaceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, interfaceid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InterfaceID: usize, + pub ConnectionID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, connectionid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub InterfaceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, interfaceid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Connect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, connectionmode: MBN_CONNECTION_MODE, strprofile: ::windows::core::PCWSTR, requestid: *mut u32) -> ::windows::core::HRESULT, pub Disconnect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requestid: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetConnectionState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, connectionstate: *mut MBN_ACTIVATION_STATE, profilename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetConnectionState: usize, + pub GetConnectionState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, connectionstate: *mut MBN_ACTIVATION_STATE, profilename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetVoiceCallState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, voicecallstate: *mut MBN_VOICE_CALL_STATE) -> ::windows::core::HRESULT, pub GetActivationNetworkError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, networkerror: *mut u32) -> ::windows::core::HRESULT, } @@ -178,8 +163,6 @@ impl IMbnConnectionContext { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetProvisionedContexts)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut super::super::System::Com::SAFEARRAY>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetProvisionedContext<'a, P0, P1>(&self, provisionedcontexts: P0, providerid: P1) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, MBN_CONTEXT>>, @@ -232,10 +215,7 @@ pub struct IMbnConnectionContext_Vtbl { pub GetProvisionedContexts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, provisionedcontexts: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetProvisionedContexts: usize, - #[cfg(feature = "Win32_Foundation")] pub SetProvisionedContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, provisionedcontexts: ::core::mem::ManuallyDrop, providerid: ::windows::core::PCWSTR, requestid: *mut u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetProvisionedContext: usize, } #[doc = "*Required features: `\"Win32_NetworkManagement_MobileBroadband\"`*"] #[repr(transparent)] @@ -495,11 +475,9 @@ pub struct IMbnConnectionManagerEvents_Vtbl { #[repr(transparent)] pub struct IMbnConnectionProfile(::windows::core::IUnknown); impl IMbnConnectionProfile { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetProfileXmlData(&self) -> ::windows::core::Result { + pub unsafe fn GetProfileXmlData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetProfileXmlData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetProfileXmlData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn UpdateProfile<'a, P0>(&self, strprofile: P0) -> ::windows::core::Result<()> where @@ -550,10 +528,7 @@ unsafe impl ::windows::core::Interface for IMbnConnectionProfile { #[doc(hidden)] pub struct IMbnConnectionProfile_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetProfileXmlData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, profiledata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetProfileXmlData: usize, + pub GetProfileXmlData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, profiledata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub UpdateProfile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strprofile: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } @@ -784,17 +759,13 @@ impl IMbnDeviceService { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).WriteData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(deviceservicedata), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InterfaceID(&self) -> ::windows::core::Result { + pub unsafe fn InterfaceID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).InterfaceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).InterfaceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeviceServiceID(&self) -> ::windows::core::Result { + pub unsafe fn DeviceServiceID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DeviceServiceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DeviceServiceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -865,14 +836,8 @@ pub struct IMbnDeviceService_Vtbl { pub WriteData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceservicedata: *const super::super::System::Com::SAFEARRAY, requestid: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] WriteData: usize, - #[cfg(feature = "Win32_Foundation")] - pub InterfaceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, interfaceid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InterfaceID: usize, - #[cfg(feature = "Win32_Foundation")] - pub DeviceServiceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceserviceid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeviceServiceID: usize, + pub InterfaceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, interfaceid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DeviceServiceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceserviceid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub IsCommandSessionOpen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -886,13 +851,8 @@ pub struct IMbnDeviceService_Vtbl { #[repr(transparent)] pub struct IMbnDeviceServiceStateEvents(::windows::core::IUnknown); impl IMbnDeviceServiceStateEvents { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OnSessionsStateChange<'a, P0>(&self, interfaceid: P0, statechange: MBN_DEVICE_SERVICE_SESSIONS_STATE) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).OnSessionsStateChange)(::windows::core::Interface::as_raw(self), interfaceid.into().abi(), statechange).ok() + pub unsafe fn OnSessionsStateChange(&self, interfaceid: &::windows::core::BSTR, statechange: MBN_DEVICE_SERVICE_SESSIONS_STATE) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).OnSessionsStateChange)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(interfaceid), statechange).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -934,10 +894,7 @@ unsafe impl ::windows::core::Interface for IMbnDeviceServiceStateEvents { #[doc(hidden)] pub struct IMbnDeviceServiceStateEvents_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub OnSessionsStateChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, interfaceid: ::core::mem::ManuallyDrop, statechange: MBN_DEVICE_SERVICE_SESSIONS_STATE) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OnSessionsStateChange: usize, + pub OnSessionsStateChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, interfaceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, statechange: MBN_DEVICE_SERVICE_SESSIONS_STATE) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_NetworkManagement_MobileBroadband\"`*"] #[repr(transparent)] @@ -949,14 +906,9 @@ impl IMbnDeviceServicesContext { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).EnumerateDeviceServices)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut super::super::System::Com::SAFEARRAY>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDeviceService<'a, P0>(&self, deviceserviceid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetDeviceService(&self, deviceserviceid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDeviceService)(::windows::core::Interface::as_raw(self), deviceserviceid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDeviceService)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(deviceserviceid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn MaxCommandSize(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1010,10 +962,7 @@ pub struct IMbnDeviceServicesContext_Vtbl { pub EnumerateDeviceServices: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceservices: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] EnumerateDeviceServices: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetDeviceService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceserviceid: ::core::mem::ManuallyDrop, mbndeviceservice: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDeviceService: usize, + pub GetDeviceService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceserviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, mbndeviceservice: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub MaxCommandSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, maxcommandsize: *mut u32) -> ::windows::core::HRESULT, pub MaxDataSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, maxdatasize: *mut u32) -> ::windows::core::HRESULT, } @@ -1091,13 +1040,8 @@ impl IMbnDeviceServicesEvents { { (::windows::core::Interface::vtable(self).OnReadData)(::windows::core::Interface::as_raw(self), deviceservice.into().abi(), ::core::mem::transmute(deviceservicedata)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OnInterfaceStateChange<'a, P0>(&self, interfaceid: P0, statechange: MBN_DEVICE_SERVICES_INTERFACE_STATE) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).OnInterfaceStateChange)(::windows::core::Interface::as_raw(self), interfaceid.into().abi(), statechange).ok() + pub unsafe fn OnInterfaceStateChange(&self, interfaceid: &::windows::core::BSTR, statechange: MBN_DEVICE_SERVICES_INTERFACE_STATE) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).OnInterfaceStateChange)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(interfaceid), statechange).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -1164,23 +1108,15 @@ pub struct IMbnDeviceServicesEvents_Vtbl { pub OnReadData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, deviceservice: *mut ::core::ffi::c_void, deviceservicedata: *const super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] OnReadData: usize, - #[cfg(feature = "Win32_Foundation")] - pub OnInterfaceStateChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, interfaceid: ::core::mem::ManuallyDrop, statechange: MBN_DEVICE_SERVICES_INTERFACE_STATE) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OnInterfaceStateChange: usize, + pub OnInterfaceStateChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, interfaceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, statechange: MBN_DEVICE_SERVICES_INTERFACE_STATE) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_NetworkManagement_MobileBroadband\"`*"] #[repr(transparent)] pub struct IMbnDeviceServicesManager(::windows::core::IUnknown); impl IMbnDeviceServicesManager { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDeviceServicesContext<'a, P0>(&self, networkinterfaceid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetDeviceServicesContext(&self, networkinterfaceid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDeviceServicesContext)(::windows::core::Interface::as_raw(self), networkinterfaceid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDeviceServicesContext)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(networkinterfaceid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -1222,23 +1158,16 @@ unsafe impl ::windows::core::Interface for IMbnDeviceServicesManager { #[doc(hidden)] pub struct IMbnDeviceServicesManager_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetDeviceServicesContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, networkinterfaceid: ::core::mem::ManuallyDrop, mbndevicescontext: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDeviceServicesContext: usize, + pub GetDeviceServicesContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, networkinterfaceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, mbndevicescontext: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_NetworkManagement_MobileBroadband\"`*"] #[repr(transparent)] pub struct IMbnInterface(::windows::core::IUnknown); impl IMbnInterface { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InterfaceID(&self) -> ::windows::core::Result { + pub unsafe fn InterfaceID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).InterfaceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).InterfaceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetInterfaceCapability(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetInterfaceCapability)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) @@ -1255,8 +1184,6 @@ impl IMbnInterface { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).InEmergencyMode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetHomeProvider(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetHomeProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) @@ -1326,21 +1253,12 @@ unsafe impl ::windows::core::Interface for IMbnInterface { #[doc(hidden)] pub struct IMbnInterface_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub InterfaceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, interfaceid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InterfaceID: usize, - #[cfg(feature = "Win32_Foundation")] + pub InterfaceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, interfaceid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetInterfaceCapability: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, interfacecaps: *mut MBN_INTERFACE_CAPS) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetInterfaceCapability: usize, pub GetSubscriberInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, subscriberinformation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetReadyState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, readystate: *mut MBN_READY_STATE) -> ::windows::core::HRESULT, pub InEmergencyMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, emergencymode: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] pub GetHomeProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, homeprovider: *mut MBN_PROVIDER) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetHomeProvider: usize, #[cfg(feature = "Win32_System_Com")] pub GetPreferredProviders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, preferredproviders: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -1583,8 +1501,6 @@ pub struct IMbnInterfaceManagerEvents_Vtbl { #[repr(transparent)] pub struct IMbnMultiCarrier(::windows::core::IUnknown); impl IMbnMultiCarrier { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn SetHomeProvider(&self, homeprovider: &MBN_PROVIDER2) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).SetHomeProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(homeprovider), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) @@ -1654,10 +1570,7 @@ unsafe impl ::windows::core::Interface for IMbnMultiCarrier { #[doc(hidden)] pub struct IMbnMultiCarrier_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] pub SetHomeProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, homeprovider: *const MBN_PROVIDER2, requestid: *mut u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetHomeProvider: usize, #[cfg(feature = "Win32_System_Com")] pub GetPreferredProviders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, preferredmulticarrierproviders: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -2205,23 +2118,17 @@ impl IMbnRegistration { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetRegisterMode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetProviderID(&self) -> ::windows::core::Result { + pub unsafe fn GetProviderID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetProviderID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetProviderID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetProviderName(&self) -> ::windows::core::Result { + pub unsafe fn GetProviderName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetRoamingText(&self) -> ::windows::core::Result { + pub unsafe fn GetRoamingText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetRoamingText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetRoamingText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetAvailableDataClasses(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2288,18 +2195,9 @@ pub struct IMbnRegistration_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub GetRegisterState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, registerstate: *mut MBN_REGISTER_STATE) -> ::windows::core::HRESULT, pub GetRegisterMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, registermode: *mut MBN_REGISTER_MODE) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetProviderID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, providerid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetProviderID: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, providername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetProviderName: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetRoamingText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, roamingtext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetRoamingText: usize, + pub GetProviderID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, providerid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, providername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetRoamingText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, roamingtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetAvailableDataClasses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, availabledataclasses: *mut u32) -> ::windows::core::HRESULT, pub GetCurrentDataClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, currentdataclass: *mut u32) -> ::windows::core::HRESULT, pub GetRegistrationNetworkError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, registrationnetworkerror: *mut u32) -> ::windows::core::HRESULT, @@ -2706,11 +2604,9 @@ pub struct IMbnSms_Vtbl { #[repr(transparent)] pub struct IMbnSmsConfiguration(::windows::core::IUnknown); impl IMbnSmsConfiguration { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ServiceCenterAddress(&self) -> ::windows::core::Result { + pub unsafe fn ServiceCenterAddress(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ServiceCenterAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ServiceCenterAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetServiceCenterAddress<'a, P0>(&self, scaddress: P0) -> ::windows::core::Result<()> where @@ -2773,10 +2669,7 @@ unsafe impl ::windows::core::Interface for IMbnSmsConfiguration { #[doc(hidden)] pub struct IMbnSmsConfiguration_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub ServiceCenterAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ServiceCenterAddress: usize, + pub ServiceCenterAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetServiceCenterAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scaddress: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, pub MaxMessageIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: *mut u32) -> ::windows::core::HRESULT, pub CdmaShortMsgSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, shortmsgsize: *mut u32) -> ::windows::core::HRESULT, @@ -2899,11 +2792,9 @@ impl IMbnSmsReadMsgPdu { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Status)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PduData(&self) -> ::windows::core::Result { + pub unsafe fn PduData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PduData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PduData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2953,10 +2844,7 @@ pub struct IMbnSmsReadMsgPdu_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub Index: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: *mut u32) -> ::windows::core::HRESULT, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, status: *mut MBN_MSG_STATUS) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub PduData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdudata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PduData: usize, + pub PduData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdudata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Message: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, message: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -2974,17 +2862,13 @@ impl IMbnSmsReadMsgTextCdma { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Status)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Address(&self) -> ::windows::core::Result { + pub unsafe fn Address(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Address)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Address)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Timestamp(&self) -> ::windows::core::Result { + pub unsafe fn Timestamp(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Timestamp)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Timestamp)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn EncodingID(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3046,14 +2930,8 @@ pub struct IMbnSmsReadMsgTextCdma_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub Index: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: *mut u32) -> ::windows::core::HRESULT, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, status: *mut MBN_MSG_STATUS) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Address: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, address: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Address: usize, - #[cfg(feature = "Win32_Foundation")] - pub Timestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, timestamp: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Timestamp: usize, + pub Address: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, address: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Timestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, timestamp: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub EncodingID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encodingid: *mut MBN_SMS_CDMA_ENCODING) -> ::windows::core::HRESULT, pub LanguageID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, languageid: *mut MBN_SMS_CDMA_LANG) -> ::windows::core::HRESULT, pub SizeInCharacters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sizeincharacters: *mut u32) -> ::windows::core::HRESULT, @@ -3066,17 +2944,13 @@ pub struct IMbnSmsReadMsgTextCdma_Vtbl { #[repr(transparent)] pub struct IMbnSubscriberInformation(::windows::core::IUnknown); impl IMbnSubscriberInformation { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SubscriberID(&self) -> ::windows::core::Result { + pub unsafe fn SubscriberID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SubscriberID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SubscriberID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SimIccID(&self) -> ::windows::core::Result { + pub unsafe fn SimIccID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SimIccID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SimIccID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3124,14 +2998,8 @@ unsafe impl ::windows::core::Interface for IMbnSubscriberInformation { #[doc(hidden)] pub struct IMbnSubscriberInformation_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub SubscriberID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, subscriberid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SubscriberID: usize, - #[cfg(feature = "Win32_Foundation")] - pub SimIccID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, simiccid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SimIccID: usize, + pub SubscriberID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, subscriberid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SimIccID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, simiccid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub TelephoneNumbers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, telephonenumbers: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -4466,18 +4334,16 @@ impl ::core::fmt::Debug for WWAEXT_SMS_CONSTANTS { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_MobileBroadband\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_NetworkManagement_MobileBroadband\"`*"] pub struct MBN_CONTEXT { pub contextID: u32, pub contextType: MBN_CONTEXT_TYPE, - pub accessString: super::super::Foundation::BSTR, - pub userName: super::super::Foundation::BSTR, - pub password: super::super::Foundation::BSTR, + pub accessString: ::windows::core::BSTR, + pub userName: ::windows::core::BSTR, + pub password: ::windows::core::BSTR, pub compression: MBN_COMPRESSION, pub authType: MBN_AUTH_PROTOCOL, } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for MBN_CONTEXT { fn clone(&self) -> Self { Self { @@ -4491,87 +4357,73 @@ impl ::core::clone::Clone for MBN_CONTEXT { } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for MBN_CONTEXT { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("MBN_CONTEXT").field("contextID", &self.contextID).field("contextType", &self.contextType).field("accessString", &self.accessString).field("userName", &self.userName).field("password", &self.password).field("compression", &self.compression).field("authType", &self.authType).finish() } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for MBN_CONTEXT { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for MBN_CONTEXT { fn eq(&self, other: &Self) -> bool { self.contextID == other.contextID && self.contextType == other.contextType && self.accessString == other.accessString && self.userName == other.userName && self.password == other.password && self.compression == other.compression && self.authType == other.authType } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for MBN_CONTEXT {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for MBN_CONTEXT { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_MobileBroadband\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_NetworkManagement_MobileBroadband\"`*"] pub struct MBN_DEVICE_SERVICE { - pub deviceServiceID: super::super::Foundation::BSTR, + pub deviceServiceID: ::windows::core::BSTR, pub dataWriteSupported: i16, pub dataReadSupported: i16, } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for MBN_DEVICE_SERVICE { fn clone(&self) -> Self { Self { deviceServiceID: self.deviceServiceID.clone(), dataWriteSupported: self.dataWriteSupported, dataReadSupported: self.dataReadSupported } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for MBN_DEVICE_SERVICE { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("MBN_DEVICE_SERVICE").field("deviceServiceID", &self.deviceServiceID).field("dataWriteSupported", &self.dataWriteSupported).field("dataReadSupported", &self.dataReadSupported).finish() } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for MBN_DEVICE_SERVICE { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for MBN_DEVICE_SERVICE { fn eq(&self, other: &Self) -> bool { self.deviceServiceID == other.deviceServiceID && self.dataWriteSupported == other.dataWriteSupported && self.dataReadSupported == other.dataReadSupported } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for MBN_DEVICE_SERVICE {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for MBN_DEVICE_SERVICE { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_MobileBroadband\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_NetworkManagement_MobileBroadband\"`*"] pub struct MBN_INTERFACE_CAPS { pub cellularClass: MBN_CELLULAR_CLASS, pub voiceClass: MBN_VOICE_CLASS, pub dataClass: u32, - pub customDataClass: super::super::Foundation::BSTR, + pub customDataClass: ::windows::core::BSTR, pub gsmBandClass: u32, pub cdmaBandClass: u32, - pub customBandClass: super::super::Foundation::BSTR, + pub customBandClass: ::windows::core::BSTR, pub smsCaps: u32, pub controlCaps: u32, - pub deviceID: super::super::Foundation::BSTR, - pub manufacturer: super::super::Foundation::BSTR, - pub model: super::super::Foundation::BSTR, - pub firmwareInfo: super::super::Foundation::BSTR, + pub deviceID: ::windows::core::BSTR, + pub manufacturer: ::windows::core::BSTR, + pub model: ::windows::core::BSTR, + pub firmwareInfo: ::windows::core::BSTR, } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for MBN_INTERFACE_CAPS { fn clone(&self) -> Self { Self { @@ -4591,7 +4443,6 @@ impl ::core::clone::Clone for MBN_INTERFACE_CAPS { } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for MBN_INTERFACE_CAPS { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("MBN_INTERFACE_CAPS") @@ -4611,19 +4462,15 @@ impl ::core::fmt::Debug for MBN_INTERFACE_CAPS { .finish() } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for MBN_INTERFACE_CAPS { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for MBN_INTERFACE_CAPS { fn eq(&self, other: &Self) -> bool { self.cellularClass == other.cellularClass && self.voiceClass == other.voiceClass && self.dataClass == other.dataClass && self.customDataClass == other.customDataClass && self.gsmBandClass == other.gsmBandClass && self.cdmaBandClass == other.cdmaBandClass && self.customBandClass == other.customBandClass && self.smsCaps == other.smsCaps && self.controlCaps == other.controlCaps && self.deviceID == other.deviceID && self.manufacturer == other.manufacturer && self.model == other.model && self.firmwareInfo == other.firmwareInfo } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for MBN_INTERFACE_CAPS {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for MBN_INTERFACE_CAPS { fn default() -> Self { unsafe { ::core::mem::zeroed() } @@ -4662,78 +4509,64 @@ impl ::core::default::Default for MBN_PIN_INFO { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_MobileBroadband\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_NetworkManagement_MobileBroadband\"`*"] pub struct MBN_PROVIDER { - pub providerID: super::super::Foundation::BSTR, + pub providerID: ::windows::core::BSTR, pub providerState: u32, - pub providerName: super::super::Foundation::BSTR, + pub providerName: ::windows::core::BSTR, pub dataClass: u32, } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for MBN_PROVIDER { fn clone(&self) -> Self { Self { providerID: self.providerID.clone(), providerState: self.providerState, providerName: self.providerName.clone(), dataClass: self.dataClass } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for MBN_PROVIDER { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("MBN_PROVIDER").field("providerID", &self.providerID).field("providerState", &self.providerState).field("providerName", &self.providerName).field("dataClass", &self.dataClass).finish() } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for MBN_PROVIDER { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for MBN_PROVIDER { fn eq(&self, other: &Self) -> bool { self.providerID == other.providerID && self.providerState == other.providerState && self.providerName == other.providerName && self.dataClass == other.dataClass } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for MBN_PROVIDER {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for MBN_PROVIDER { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] -#[doc = "*Required features: `\"Win32_NetworkManagement_MobileBroadband\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_NetworkManagement_MobileBroadband\"`*"] pub struct MBN_PROVIDER2 { pub provider: MBN_PROVIDER, pub cellularClass: MBN_CELLULAR_CLASS, pub signalStrength: u32, pub signalError: u32, } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for MBN_PROVIDER2 { fn clone(&self) -> Self { Self { provider: self.provider.clone(), cellularClass: self.cellularClass, signalStrength: self.signalStrength, signalError: self.signalError } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for MBN_PROVIDER2 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("MBN_PROVIDER2").field("provider", &self.provider).field("cellularClass", &self.cellularClass).field("signalStrength", &self.signalStrength).field("signalError", &self.signalError).finish() } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for MBN_PROVIDER2 { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for MBN_PROVIDER2 { fn eq(&self, other: &Self) -> bool { self.provider == other.provider && self.cellularClass == other.cellularClass && self.signalStrength == other.signalStrength && self.signalError == other.signalError } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for MBN_PROVIDER2 {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for MBN_PROVIDER2 { fn default() -> Self { unsafe { ::core::mem::zeroed() } diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetManagement/impl.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetManagement/impl.rs index b0585b6ab0..cbe40fec0f 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetManagement/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetManagement/impl.rs @@ -1173,16 +1173,13 @@ impl IProvisioningDomain_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IProvisioningProfileWireless_Impl: Sized { - fn CreateProfile(&self, bstrxmlwirelessconfigprofile: &super::super::Foundation::BSTR, bstrxmlconnectionconfigprofile: &super::super::Foundation::BSTR, padapterinstanceguid: *const ::windows::core::GUID) -> ::windows::core::Result; + fn CreateProfile(&self, bstrxmlwirelessconfigprofile: &::windows::core::BSTR, bstrxmlconnectionconfigprofile: &::windows::core::BSTR, padapterinstanceguid: *const ::windows::core::GUID) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IProvisioningProfileWireless {} -#[cfg(feature = "Win32_Foundation")] impl IProvisioningProfileWireless_Vtbl { pub const fn new, Impl: IProvisioningProfileWireless_Impl, const OFFSET: isize>() -> IProvisioningProfileWireless_Vtbl { - unsafe extern "system" fn CreateProfile, Impl: IProvisioningProfileWireless_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrxmlwirelessconfigprofile: ::core::mem::ManuallyDrop, bstrxmlconnectionconfigprofile: ::core::mem::ManuallyDrop, padapterinstanceguid: *const ::windows::core::GUID, pulstatus: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateProfile, Impl: IProvisioningProfileWireless_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrxmlwirelessconfigprofile: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrxmlconnectionconfigprofile: ::core::mem::ManuallyDrop<::windows::core::BSTR>, padapterinstanceguid: *const ::windows::core::GUID, pulstatus: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateProfile(::core::mem::transmute(&bstrxmlwirelessconfigprofile), ::core::mem::transmute(&bstrxmlconnectionconfigprofile), ::core::mem::transmute_copy(&padapterinstanceguid)) { diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetManagement/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetManagement/mod.rs index 4a6cc8db5b..64b90f2fb9 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetManagement/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetManagement/mod.rs @@ -3910,15 +3910,9 @@ pub struct IProvisioningDomain_Vtbl { #[repr(transparent)] pub struct IProvisioningProfileWireless(::windows::core::IUnknown); impl IProvisioningProfileWireless { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateProfile<'a, P0, P1>(&self, bstrxmlwirelessconfigprofile: P0, bstrxmlconnectionconfigprofile: P1, padapterinstanceguid: &::windows::core::GUID) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn CreateProfile(&self, bstrxmlwirelessconfigprofile: &::windows::core::BSTR, bstrxmlconnectionconfigprofile: &::windows::core::BSTR, padapterinstanceguid: &::windows::core::GUID) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateProfile)(::windows::core::Interface::as_raw(self), bstrxmlwirelessconfigprofile.into().abi(), bstrxmlconnectionconfigprofile.into().abi(), ::core::mem::transmute(padapterinstanceguid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateProfile)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrxmlwirelessconfigprofile), ::core::mem::transmute_copy(bstrxmlconnectionconfigprofile), ::core::mem::transmute(padapterinstanceguid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -3960,10 +3954,7 @@ unsafe impl ::windows::core::Interface for IProvisioningProfileWireless { #[doc(hidden)] pub struct IProvisioningProfileWireless_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub CreateProfile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrxmlwirelessconfigprofile: ::core::mem::ManuallyDrop, bstrxmlconnectionconfigprofile: ::core::mem::ManuallyDrop, padapterinstanceguid: *const ::windows::core::GUID, pulstatus: *mut u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CreateProfile: usize, + pub CreateProfile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrxmlwirelessconfigprofile: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrxmlconnectionconfigprofile: ::core::mem::ManuallyDrop<::windows::core::BSTR>, padapterinstanceguid: *const ::windows::core::GUID, pulstatus: *mut u32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_NetworkManagement_NetManagement\"`*"] pub const AA_AUDIT_ALL: u32 = 1u32; diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkPolicyServer/impl.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkPolicyServer/impl.rs index 7b3beb0fa4..9efc6ec7c7 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkPolicyServer/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkPolicyServer/impl.rs @@ -84,11 +84,11 @@ impl ISdo_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISdoCollection_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn Count(&self) -> ::windows::core::Result; - fn Add(&self, bstrname: &super::super::Foundation::BSTR, ppitem: *mut ::core::option::Option) -> ::windows::core::Result<()>; + fn Add(&self, bstrname: &::windows::core::BSTR, ppitem: *mut ::core::option::Option) -> ::windows::core::Result<()>; fn Remove(&self, pitem: &::core::option::Option) -> ::windows::core::Result<()>; fn RemoveAll(&self) -> ::windows::core::Result<()>; fn Reload(&self) -> ::windows::core::Result<()>; - fn IsNameUnique(&self, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn IsNameUnique(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result; fn Item(&self, name: *const super::super::System::Com::VARIANT) -> ::windows::core::Result; fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; } @@ -108,7 +108,7 @@ impl ISdoCollection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Add, Impl: ISdoCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, ppitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Add, Impl: ISdoCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Add(::core::mem::transmute(&bstrname), ::core::mem::transmute_copy(&ppitem)).into() @@ -128,7 +128,7 @@ impl ISdoCollection_Vtbl { let this = (*this).get_impl(); this.Reload().into() } - unsafe extern "system" fn IsNameUnique, Impl: ISdoCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, pbool: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn IsNameUnique, Impl: ISdoCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbool: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.IsNameUnique(::core::mem::transmute(&bstrname)) { @@ -183,7 +183,7 @@ pub trait ISdoDictionaryOld_Impl: Sized + super::super::System::Com::IDispatch_I fn GetAttributeInfo(&self, id: ATTRIBUTEID, pinfoids: *const super::super::System::Com::VARIANT) -> ::windows::core::Result; fn EnumAttributeValues(&self, id: ATTRIBUTEID, pvalueids: *mut super::super::System::Com::VARIANT, pvaluesdesc: *mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn CreateAttribute(&self, id: ATTRIBUTEID) -> ::windows::core::Result; - fn GetAttributeID(&self, bstrattributename: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetAttributeID(&self, bstrattributename: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ISdoDictionaryOld {} @@ -222,7 +222,7 @@ impl ISdoDictionaryOld_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetAttributeID, Impl: ISdoDictionaryOld_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrattributename: ::core::mem::ManuallyDrop, pid: *mut ATTRIBUTEID) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetAttributeID, Impl: ISdoDictionaryOld_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrattributename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pid: *mut ATTRIBUTEID) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetAttributeID(::core::mem::transmute(&bstrattributename)) { @@ -248,14 +248,14 @@ impl ISdoDictionaryOld_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISdoMachine_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Attach(&self, bstrcomputername: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Attach(&self, bstrcomputername: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetDictionarySDO(&self) -> ::windows::core::Result<::windows::core::IUnknown>; - fn GetServiceSDO(&self, edatastore: IASDATASTORE, bstrservicename: &super::super::Foundation::BSTR) -> ::windows::core::Result<::windows::core::IUnknown>; - fn GetUserSDO(&self, edatastore: IASDATASTORE, bstrusername: &super::super::Foundation::BSTR) -> ::windows::core::Result<::windows::core::IUnknown>; + fn GetServiceSDO(&self, edatastore: IASDATASTORE, bstrservicename: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::IUnknown>; + fn GetUserSDO(&self, edatastore: IASDATASTORE, bstrusername: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::IUnknown>; fn GetOSType(&self) -> ::windows::core::Result; fn GetDomainType(&self) -> ::windows::core::Result; fn IsDirectoryAvailable(&self) -> ::windows::core::Result; - fn GetAttachedComputer(&self) -> ::windows::core::Result; + fn GetAttachedComputer(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetSDOSchema(&self) -> ::windows::core::Result<::windows::core::IUnknown>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -263,7 +263,7 @@ impl ::windows::core::RuntimeName for ISdoMachine {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ISdoMachine_Vtbl { pub const fn new, Impl: ISdoMachine_Impl, const OFFSET: isize>() -> ISdoMachine_Vtbl { - unsafe extern "system" fn Attach, Impl: ISdoMachine_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcomputername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Attach, Impl: ISdoMachine_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcomputername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Attach(::core::mem::transmute(&bstrcomputername)).into() @@ -279,7 +279,7 @@ impl ISdoMachine_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetServiceSDO, Impl: ISdoMachine_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, edatastore: IASDATASTORE, bstrservicename: ::core::mem::ManuallyDrop, ppservicesdo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetServiceSDO, Impl: ISdoMachine_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, edatastore: IASDATASTORE, bstrservicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppservicesdo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetServiceSDO(::core::mem::transmute_copy(&edatastore), ::core::mem::transmute(&bstrservicename)) { @@ -290,7 +290,7 @@ impl ISdoMachine_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetUserSDO, Impl: ISdoMachine_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, edatastore: IASDATASTORE, bstrusername: ::core::mem::ManuallyDrop, ppusersdo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetUserSDO, Impl: ISdoMachine_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, edatastore: IASDATASTORE, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppusersdo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetUserSDO(::core::mem::transmute_copy(&edatastore), ::core::mem::transmute(&bstrusername)) { @@ -334,7 +334,7 @@ impl ISdoMachine_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetAttachedComputer, Impl: ISdoMachine_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcomputername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetAttachedComputer, Impl: ISdoMachine_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcomputername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetAttachedComputer() { @@ -375,10 +375,10 @@ impl ISdoMachine_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISdoMachine2_Impl: Sized + super::super::System::Com::IDispatch_Impl + ISdoMachine_Impl { - fn GetTemplatesSDO(&self, bstrservicename: &super::super::Foundation::BSTR) -> ::windows::core::Result<::windows::core::IUnknown>; + fn GetTemplatesSDO(&self, bstrservicename: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::IUnknown>; fn EnableTemplates(&self) -> ::windows::core::Result<()>; - fn SyncConfigAgainstTemplates(&self, bstrservicename: &super::super::Foundation::BSTR, ppconfigroot: *mut ::core::option::Option<::windows::core::IUnknown>, pptemplatesroot: *mut ::core::option::Option<::windows::core::IUnknown>, bforcedsync: i16) -> ::windows::core::Result<()>; - fn ImportRemoteTemplates(&self, plocaltemplatesroot: &::core::option::Option<::windows::core::IUnknown>, bstrremotemachinename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SyncConfigAgainstTemplates(&self, bstrservicename: &::windows::core::BSTR, ppconfigroot: *mut ::core::option::Option<::windows::core::IUnknown>, pptemplatesroot: *mut ::core::option::Option<::windows::core::IUnknown>, bforcedsync: i16) -> ::windows::core::Result<()>; + fn ImportRemoteTemplates(&self, plocaltemplatesroot: &::core::option::Option<::windows::core::IUnknown>, bstrremotemachinename: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Reload(&self) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -386,7 +386,7 @@ impl ::windows::core::RuntimeName for ISdoMachine2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ISdoMachine2_Vtbl { pub const fn new, Impl: ISdoMachine2_Impl, const OFFSET: isize>() -> ISdoMachine2_Vtbl { - unsafe extern "system" fn GetTemplatesSDO, Impl: ISdoMachine2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrservicename: ::core::mem::ManuallyDrop, pptemplatessdo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetTemplatesSDO, Impl: ISdoMachine2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrservicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pptemplatessdo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetTemplatesSDO(::core::mem::transmute(&bstrservicename)) { @@ -402,12 +402,12 @@ impl ISdoMachine2_Vtbl { let this = (*this).get_impl(); this.EnableTemplates().into() } - unsafe extern "system" fn SyncConfigAgainstTemplates, Impl: ISdoMachine2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrservicename: ::core::mem::ManuallyDrop, ppconfigroot: *mut *mut ::core::ffi::c_void, pptemplatesroot: *mut *mut ::core::ffi::c_void, bforcedsync: i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn SyncConfigAgainstTemplates, Impl: ISdoMachine2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrservicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppconfigroot: *mut *mut ::core::ffi::c_void, pptemplatesroot: *mut *mut ::core::ffi::c_void, bforcedsync: i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SyncConfigAgainstTemplates(::core::mem::transmute(&bstrservicename), ::core::mem::transmute_copy(&ppconfigroot), ::core::mem::transmute_copy(&pptemplatesroot), ::core::mem::transmute_copy(&bforcedsync)).into() } - unsafe extern "system" fn ImportRemoteTemplates, Impl: ISdoMachine2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, plocaltemplatesroot: *mut ::core::ffi::c_void, bstrremotemachinename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ImportRemoteTemplates, Impl: ISdoMachine2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, plocaltemplatesroot: *mut ::core::ffi::c_void, bstrremotemachinename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ImportRemoteTemplates(::core::mem::transmute(&plocaltemplatesroot), ::core::mem::transmute(&bstrremotemachinename)).into() @@ -482,8 +482,8 @@ impl ISdoServiceControl_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ITemplateSdo_Impl: Sized + super::super::System::Com::IDispatch_Impl + ISdo_Impl { - fn AddToCollection(&self, bstrname: &super::super::Foundation::BSTR, pcollection: &::core::option::Option, ppitem: *mut ::core::option::Option) -> ::windows::core::Result<()>; - fn AddToSdo(&self, bstrname: &super::super::Foundation::BSTR, psdotarget: &::core::option::Option, ppitem: *mut ::core::option::Option) -> ::windows::core::Result<()>; + fn AddToCollection(&self, bstrname: &::windows::core::BSTR, pcollection: &::core::option::Option, ppitem: *mut ::core::option::Option) -> ::windows::core::Result<()>; + fn AddToSdo(&self, bstrname: &::windows::core::BSTR, psdotarget: &::core::option::Option, ppitem: *mut ::core::option::Option) -> ::windows::core::Result<()>; fn AddToSdoAsProperty(&self, psdotarget: &::core::option::Option, id: i32) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -491,12 +491,12 @@ impl ::windows::core::RuntimeName for ITemplateSdo {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ITemplateSdo_Vtbl { pub const fn new, Impl: ITemplateSdo_Impl, const OFFSET: isize>() -> ITemplateSdo_Vtbl { - unsafe extern "system" fn AddToCollection, Impl: ITemplateSdo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, pcollection: *mut ::core::ffi::c_void, ppitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddToCollection, Impl: ITemplateSdo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcollection: *mut ::core::ffi::c_void, ppitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddToCollection(::core::mem::transmute(&bstrname), ::core::mem::transmute(&pcollection), ::core::mem::transmute_copy(&ppitem)).into() } - unsafe extern "system" fn AddToSdo, Impl: ITemplateSdo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, psdotarget: *mut ::core::ffi::c_void, ppitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddToSdo, Impl: ITemplateSdo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, psdotarget: *mut ::core::ffi::c_void, ppitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddToSdo(::core::mem::transmute(&bstrname), ::core::mem::transmute(&psdotarget), ::core::mem::transmute_copy(&ppitem)).into() diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkPolicyServer/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkPolicyServer/mod.rs index 54824bd1a1..fa3c979153 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkPolicyServer/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkPolicyServer/mod.rs @@ -123,13 +123,10 @@ impl ISdoCollection { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Count)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Add<'a, P0>(&self, bstrname: P0, ppitem: &mut ::core::option::Option) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(ppitem)).ok() + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Add(&self, bstrname: &::windows::core::BSTR, ppitem: &mut ::core::option::Option) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(ppitem)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -145,14 +142,9 @@ impl ISdoCollection { pub unsafe fn Reload(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Reload)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsNameUnique<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsNameUnique(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).IsNameUnique)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).IsNameUnique)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -232,9 +224,9 @@ unsafe impl ::windows::core::Interface for ISdoCollection { pub struct ISdoCollection_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcount: *mut i32) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, ppitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Add: usize, #[cfg(feature = "Win32_System_Com")] pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pitem: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -242,10 +234,7 @@ pub struct ISdoCollection_Vtbl { Remove: usize, pub RemoveAll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Reload: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub IsNameUnique: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, pbool: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - IsNameUnique: usize, + pub IsNameUnique: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbool: *mut i16) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *const super::super::System::Com::VARIANT, pitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -280,14 +269,9 @@ impl ISdoDictionaryOld { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CreateAttribute)(::windows::core::Interface::as_raw(self), id, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetAttributeID<'a, P0>(&self, bstrattributename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetAttributeID(&self, bstrattributename: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetAttributeID)(::windows::core::Interface::as_raw(self), bstrattributename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetAttributeID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrattributename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -372,10 +356,7 @@ pub struct ISdoDictionaryOld_Vtbl { pub CreateAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ATTRIBUTEID, ppattributeobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] CreateAttribute: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetAttributeID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrattributename: ::core::mem::ManuallyDrop, pid: *mut ATTRIBUTEID) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetAttributeID: usize, + pub GetAttributeID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrattributename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pid: *mut ATTRIBUTEID) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_NetworkManagement_NetworkPolicyServer\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -383,35 +364,20 @@ pub struct ISdoDictionaryOld_Vtbl { pub struct ISdoMachine(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ISdoMachine { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Attach<'a, P0>(&self, bstrcomputername: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Attach)(::windows::core::Interface::as_raw(self), bstrcomputername.into().abi()).ok() + pub unsafe fn Attach(&self, bstrcomputername: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Attach)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcomputername)).ok() } pub unsafe fn GetDictionarySDO(&self) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetDictionarySDO)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetServiceSDO<'a, P0>(&self, edatastore: IASDATASTORE, bstrservicename: P0) -> ::windows::core::Result<::windows::core::IUnknown> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetServiceSDO(&self, edatastore: IASDATASTORE, bstrservicename: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetServiceSDO)(::windows::core::Interface::as_raw(self), edatastore, bstrservicename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) + (::windows::core::Interface::vtable(self).GetServiceSDO)(::windows::core::Interface::as_raw(self), edatastore, ::core::mem::transmute_copy(bstrservicename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetUserSDO<'a, P0>(&self, edatastore: IASDATASTORE, bstrusername: P0) -> ::windows::core::Result<::windows::core::IUnknown> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetUserSDO(&self, edatastore: IASDATASTORE, bstrusername: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetUserSDO)(::windows::core::Interface::as_raw(self), edatastore, bstrusername.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) + (::windows::core::Interface::vtable(self).GetUserSDO)(::windows::core::Interface::as_raw(self), edatastore, ::core::mem::transmute_copy(bstrusername), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } pub unsafe fn GetOSType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -425,11 +391,9 @@ impl ISdoMachine { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).IsDirectoryAvailable)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetAttachedComputer(&self) -> ::windows::core::Result { + pub unsafe fn GetAttachedComputer(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetAttachedComputer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetAttachedComputer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetSDOSchema(&self) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -502,26 +466,14 @@ unsafe impl ::windows::core::Interface for ISdoMachine { #[doc(hidden)] pub struct ISdoMachine_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Attach: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcomputername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Attach: usize, + pub Attach: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcomputername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetDictionarySDO: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdictionarysdo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetServiceSDO: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, edatastore: IASDATASTORE, bstrservicename: ::core::mem::ManuallyDrop, ppservicesdo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetServiceSDO: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetUserSDO: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, edatastore: IASDATASTORE, bstrusername: ::core::mem::ManuallyDrop, ppusersdo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetUserSDO: usize, + pub GetServiceSDO: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, edatastore: IASDATASTORE, bstrservicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppservicesdo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub GetUserSDO: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, edatastore: IASDATASTORE, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppusersdo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetOSType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eostype: *mut IASOSTYPE) -> ::windows::core::HRESULT, pub GetDomainType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, edomaintype: *mut IASDOMAINTYPE) -> ::windows::core::HRESULT, pub IsDirectoryAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, booldirectoryavailable: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetAttachedComputer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcomputername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetAttachedComputer: usize, + pub GetAttachedComputer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcomputername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetSDOSchema: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsdoschema: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_NetworkManagement_NetworkPolicyServer\"`, `\"Win32_System_Com\"`*"] @@ -530,35 +482,20 @@ pub struct ISdoMachine_Vtbl { pub struct ISdoMachine2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ISdoMachine2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Attach<'a, P0>(&self, bstrcomputername: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.Attach)(::windows::core::Interface::as_raw(self), bstrcomputername.into().abi()).ok() + pub unsafe fn Attach(&self, bstrcomputername: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.Attach)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcomputername)).ok() } pub unsafe fn GetDictionarySDO(&self) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetDictionarySDO)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetServiceSDO<'a, P0>(&self, edatastore: IASDATASTORE, bstrservicename: P0) -> ::windows::core::Result<::windows::core::IUnknown> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetServiceSDO(&self, edatastore: IASDATASTORE, bstrservicename: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetServiceSDO)(::windows::core::Interface::as_raw(self), edatastore, bstrservicename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) + (::windows::core::Interface::vtable(self).base__.GetServiceSDO)(::windows::core::Interface::as_raw(self), edatastore, ::core::mem::transmute_copy(bstrservicename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetUserSDO<'a, P0>(&self, edatastore: IASDATASTORE, bstrusername: P0) -> ::windows::core::Result<::windows::core::IUnknown> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetUserSDO(&self, edatastore: IASDATASTORE, bstrusername: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetUserSDO)(::windows::core::Interface::as_raw(self), edatastore, bstrusername.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) + (::windows::core::Interface::vtable(self).base__.GetUserSDO)(::windows::core::Interface::as_raw(self), edatastore, ::core::mem::transmute_copy(bstrusername), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } pub unsafe fn GetOSType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -572,44 +509,29 @@ impl ISdoMachine2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.IsDirectoryAvailable)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetAttachedComputer(&self) -> ::windows::core::Result { + pub unsafe fn GetAttachedComputer(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetAttachedComputer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetAttachedComputer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetSDOSchema(&self) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetSDOSchema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetTemplatesSDO<'a, P0>(&self, bstrservicename: P0) -> ::windows::core::Result<::windows::core::IUnknown> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetTemplatesSDO(&self, bstrservicename: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetTemplatesSDO)(::windows::core::Interface::as_raw(self), bstrservicename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) + (::windows::core::Interface::vtable(self).GetTemplatesSDO)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrservicename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } pub unsafe fn EnableTemplates(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).EnableTemplates)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SyncConfigAgainstTemplates<'a, P0>(&self, bstrservicename: P0, ppconfigroot: &mut ::core::option::Option<::windows::core::IUnknown>, pptemplatesroot: &mut ::core::option::Option<::windows::core::IUnknown>, bforcedsync: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SyncConfigAgainstTemplates)(::windows::core::Interface::as_raw(self), bstrservicename.into().abi(), ::core::mem::transmute(ppconfigroot), ::core::mem::transmute(pptemplatesroot), bforcedsync).ok() + pub unsafe fn SyncConfigAgainstTemplates(&self, bstrservicename: &::windows::core::BSTR, ppconfigroot: &mut ::core::option::Option<::windows::core::IUnknown>, pptemplatesroot: &mut ::core::option::Option<::windows::core::IUnknown>, bforcedsync: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SyncConfigAgainstTemplates)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrservicename), ::core::mem::transmute(ppconfigroot), ::core::mem::transmute(pptemplatesroot), bforcedsync).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ImportRemoteTemplates<'a, P0, P1>(&self, plocaltemplatesroot: P0, bstrremotemachinename: P1) -> ::windows::core::Result<()> + pub unsafe fn ImportRemoteTemplates<'a, P0>(&self, plocaltemplatesroot: P0, bstrremotemachinename: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).ImportRemoteTemplates)(::windows::core::Interface::as_raw(self), plocaltemplatesroot.into().abi(), bstrremotemachinename.into().abi()).ok() + (::windows::core::Interface::vtable(self).ImportRemoteTemplates)(::windows::core::Interface::as_raw(self), plocaltemplatesroot.into().abi(), ::core::mem::transmute_copy(bstrremotemachinename)).ok() } pub unsafe fn Reload(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Reload)(::windows::core::Interface::as_raw(self)).ok() @@ -699,19 +621,10 @@ unsafe impl ::windows::core::Interface for ISdoMachine2 { #[doc(hidden)] pub struct ISdoMachine2_Vtbl { pub base__: ISdoMachine_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetTemplatesSDO: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrservicename: ::core::mem::ManuallyDrop, pptemplatessdo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetTemplatesSDO: usize, + pub GetTemplatesSDO: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrservicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pptemplatessdo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub EnableTemplates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SyncConfigAgainstTemplates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrservicename: ::core::mem::ManuallyDrop, ppconfigroot: *mut *mut ::core::ffi::c_void, pptemplatesroot: *mut *mut ::core::ffi::c_void, bforcedsync: i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SyncConfigAgainstTemplates: usize, - #[cfg(feature = "Win32_Foundation")] - pub ImportRemoteTemplates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plocaltemplatesroot: *mut ::core::ffi::c_void, bstrremotemachinename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ImportRemoteTemplates: usize, + pub SyncConfigAgainstTemplates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrservicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppconfigroot: *mut *mut ::core::ffi::c_void, pptemplatesroot: *mut *mut ::core::ffi::c_void, bforcedsync: i16) -> ::windows::core::HRESULT, + pub ImportRemoteTemplates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plocaltemplatesroot: *mut ::core::ffi::c_void, bstrremotemachinename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Reload: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_NetworkManagement_NetworkPolicyServer\"`, `\"Win32_System_Com\"`*"] @@ -839,23 +752,21 @@ impl ITemplateSdo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__._NewEnum)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn AddToCollection<'a, P0, P1>(&self, bstrname: P0, pcollection: P1, ppitem: &mut ::core::option::Option) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn AddToCollection<'a, P0>(&self, bstrname: &::windows::core::BSTR, pcollection: P0, ppitem: &mut ::core::option::Option) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IDispatch>>, { - (::windows::core::Interface::vtable(self).AddToCollection)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), pcollection.into().abi(), ::core::mem::transmute(ppitem)).ok() + (::windows::core::Interface::vtable(self).AddToCollection)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), pcollection.into().abi(), ::core::mem::transmute(ppitem)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn AddToSdo<'a, P0, P1>(&self, bstrname: P0, psdotarget: P1, ppitem: &mut ::core::option::Option) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn AddToSdo<'a, P0>(&self, bstrname: &::windows::core::BSTR, psdotarget: P0, ppitem: &mut ::core::option::Option) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IDispatch>>, { - (::windows::core::Interface::vtable(self).AddToSdo)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), psdotarget.into().abi(), ::core::mem::transmute(ppitem)).ok() + (::windows::core::Interface::vtable(self).AddToSdo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), psdotarget.into().abi(), ::core::mem::transmute(ppitem)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -950,13 +861,13 @@ unsafe impl ::windows::core::Interface for ITemplateSdo { #[doc(hidden)] pub struct ITemplateSdo_Vtbl { pub base__: ISdo_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub AddToCollection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, pcollection: *mut ::core::ffi::c_void, ppitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub AddToCollection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcollection: *mut ::core::ffi::c_void, ppitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] AddToCollection: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub AddToSdo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, psdotarget: *mut ::core::ffi::c_void, ppitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub AddToSdo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, psdotarget: *mut ::core::ffi::c_void, ppitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] AddToSdo: usize, #[cfg(feature = "Win32_System_Com")] pub AddToSdoAsProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psdotarget: *mut ::core::ffi::c_void, id: i32) -> ::windows::core::HRESULT, diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFirewall/impl.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFirewall/impl.rs index 884afe24b9..74be2ace30 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFirewall/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFirewall/impl.rs @@ -1,18 +1,18 @@ #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IDynamicPortMapping_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn ExternalIPAddress(&self) -> ::windows::core::Result; - fn RemoteHost(&self) -> ::windows::core::Result; + fn ExternalIPAddress(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn RemoteHost(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn ExternalPort(&self) -> ::windows::core::Result; - fn Protocol(&self) -> ::windows::core::Result; + fn Protocol(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn InternalPort(&self) -> ::windows::core::Result; - fn InternalClient(&self) -> ::windows::core::Result; + fn InternalClient(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Enabled(&self) -> ::windows::core::Result; - fn Description(&self) -> ::windows::core::Result; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn LeaseDuration(&self) -> ::windows::core::Result; fn RenewLease(&self, lleasedurationdesired: i32) -> ::windows::core::Result; - fn EditInternalClient(&self, bstrinternalclient: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn EditInternalClient(&self, bstrinternalclient: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Enable(&self, vb: i16) -> ::windows::core::Result<()>; - fn EditDescription(&self, bstrdescription: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn EditDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn EditInternalPort(&self, linternalport: i32) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -20,7 +20,7 @@ impl ::windows::core::RuntimeName for IDynamicPortMapping {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IDynamicPortMapping_Vtbl { pub const fn new, Impl: IDynamicPortMapping_Impl, const OFFSET: isize>() -> IDynamicPortMapping_Vtbl { - unsafe extern "system" fn ExternalIPAddress, Impl: IDynamicPortMapping_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExternalIPAddress, Impl: IDynamicPortMapping_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ExternalIPAddress() { @@ -31,7 +31,7 @@ impl IDynamicPortMapping_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RemoteHost, Impl: IDynamicPortMapping_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RemoteHost, Impl: IDynamicPortMapping_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RemoteHost() { @@ -53,7 +53,7 @@ impl IDynamicPortMapping_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Protocol, Impl: IDynamicPortMapping_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Protocol, Impl: IDynamicPortMapping_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Protocol() { @@ -75,7 +75,7 @@ impl IDynamicPortMapping_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn InternalClient, Impl: IDynamicPortMapping_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn InternalClient, Impl: IDynamicPortMapping_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.InternalClient() { @@ -97,7 +97,7 @@ impl IDynamicPortMapping_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Description, Impl: IDynamicPortMapping_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IDynamicPortMapping_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -130,7 +130,7 @@ impl IDynamicPortMapping_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn EditInternalClient, Impl: IDynamicPortMapping_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrinternalclient: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn EditInternalClient, Impl: IDynamicPortMapping_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrinternalclient: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.EditInternalClient(::core::mem::transmute(&bstrinternalclient)).into() @@ -140,7 +140,7 @@ impl IDynamicPortMapping_Vtbl { let this = (*this).get_impl(); this.Enable(::core::mem::transmute_copy(&vb)).into() } - unsafe extern "system" fn EditDescription, Impl: IDynamicPortMapping_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn EditDescription, Impl: IDynamicPortMapping_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.EditDescription(::core::mem::transmute(&bstrdescription)).into() @@ -175,10 +175,10 @@ impl IDynamicPortMapping_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IDynamicPortMappingCollection_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; - fn get_Item(&self, bstrremotehost: &super::super::Foundation::BSTR, lexternalport: i32, bstrprotocol: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn get_Item(&self, bstrremotehost: &::windows::core::BSTR, lexternalport: i32, bstrprotocol: &::windows::core::BSTR) -> ::windows::core::Result; fn Count(&self) -> ::windows::core::Result; - fn Remove(&self, bstrremotehost: &super::super::Foundation::BSTR, lexternalport: i32, bstrprotocol: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Add(&self, bstrremotehost: &super::super::Foundation::BSTR, lexternalport: i32, bstrprotocol: &super::super::Foundation::BSTR, linternalport: i32, bstrinternalclient: &super::super::Foundation::BSTR, benabled: i16, bstrdescription: &super::super::Foundation::BSTR, lleaseduration: i32) -> ::windows::core::Result; + fn Remove(&self, bstrremotehost: &::windows::core::BSTR, lexternalport: i32, bstrprotocol: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Add(&self, bstrremotehost: &::windows::core::BSTR, lexternalport: i32, bstrprotocol: &::windows::core::BSTR, linternalport: i32, bstrinternalclient: &::windows::core::BSTR, benabled: i16, bstrdescription: &::windows::core::BSTR, lleaseduration: i32) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IDynamicPortMappingCollection {} @@ -196,7 +196,7 @@ impl IDynamicPortMappingCollection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_Item, Impl: IDynamicPortMappingCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrremotehost: ::core::mem::ManuallyDrop, lexternalport: i32, bstrprotocol: ::core::mem::ManuallyDrop, ppdpm: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Item, Impl: IDynamicPortMappingCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrremotehost: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lexternalport: i32, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppdpm: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_Item(::core::mem::transmute(&bstrremotehost), ::core::mem::transmute_copy(&lexternalport), ::core::mem::transmute(&bstrprotocol)) { @@ -218,12 +218,12 @@ impl IDynamicPortMappingCollection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Remove, Impl: IDynamicPortMappingCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrremotehost: ::core::mem::ManuallyDrop, lexternalport: i32, bstrprotocol: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Remove, Impl: IDynamicPortMappingCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrremotehost: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lexternalport: i32, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Remove(::core::mem::transmute(&bstrremotehost), ::core::mem::transmute_copy(&lexternalport), ::core::mem::transmute(&bstrprotocol)).into() } - unsafe extern "system" fn Add, Impl: IDynamicPortMappingCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrremotehost: ::core::mem::ManuallyDrop, lexternalport: i32, bstrprotocol: ::core::mem::ManuallyDrop, linternalport: i32, bstrinternalclient: ::core::mem::ManuallyDrop, benabled: i16, bstrdescription: ::core::mem::ManuallyDrop, lleaseduration: i32, ppdpm: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Add, Impl: IDynamicPortMappingCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrremotehost: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lexternalport: i32, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>, linternalport: i32, bstrinternalclient: ::core::mem::ManuallyDrop<::windows::core::BSTR>, benabled: i16, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lleaseduration: i32, ppdpm: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Add(::core::mem::transmute(&bstrremotehost), ::core::mem::transmute_copy(&lexternalport), ::core::mem::transmute(&bstrprotocol), ::core::mem::transmute_copy(&linternalport), ::core::mem::transmute(&bstrinternalclient), ::core::mem::transmute_copy(&benabled), ::core::mem::transmute(&bstrdescription), ::core::mem::transmute_copy(&lleaseduration)) { @@ -524,16 +524,13 @@ impl INATEventManager_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait INATExternalIPAddressCallback_Impl: Sized { - fn NewExternalIPAddress(&self, bstrnewexternalipaddress: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn NewExternalIPAddress(&self, bstrnewexternalipaddress: &::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for INATExternalIPAddressCallback {} -#[cfg(feature = "Win32_Foundation")] impl INATExternalIPAddressCallback_Vtbl { pub const fn new, Impl: INATExternalIPAddressCallback_Impl, const OFFSET: isize>() -> INATExternalIPAddressCallback_Vtbl { - unsafe extern "system" fn NewExternalIPAddress, Impl: INATExternalIPAddressCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrnewexternalipaddress: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn NewExternalIPAddress, Impl: INATExternalIPAddressCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrnewexternalipaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.NewExternalIPAddress(::core::mem::transmute(&bstrnewexternalipaddress)).into() @@ -703,9 +700,9 @@ impl INetConnectionManager_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait INetConnectionProps_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Guid(&self) -> ::windows::core::Result; - fn Name(&self) -> ::windows::core::Result; - fn DeviceName(&self) -> ::windows::core::Result; + fn Guid(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn DeviceName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Status(&self) -> ::windows::core::Result; fn MediaType(&self) -> ::windows::core::Result; fn Characteristics(&self) -> ::windows::core::Result; @@ -715,7 +712,7 @@ impl ::windows::core::RuntimeName for INetConnectionProps {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl INetConnectionProps_Vtbl { pub const fn new, Impl: INetConnectionProps_Impl, const OFFSET: isize>() -> INetConnectionProps_Vtbl { - unsafe extern "system" fn Guid, Impl: INetConnectionProps_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrguid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Guid, Impl: INetConnectionProps_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrguid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Guid() { @@ -726,7 +723,7 @@ impl INetConnectionProps_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Name, Impl: INetConnectionProps_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: INetConnectionProps_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -737,7 +734,7 @@ impl INetConnectionProps_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DeviceName, Impl: INetConnectionProps_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdevicename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeviceName, Impl: INetConnectionProps_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdevicename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DeviceName() { @@ -797,16 +794,16 @@ impl INetConnectionProps_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait INetFwAuthorizedApplication_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; - fn SetName(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ProcessImageFileName(&self) -> ::windows::core::Result; - fn SetProcessImageFileName(&self, imagefilename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ProcessImageFileName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetProcessImageFileName(&self, imagefilename: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn IpVersion(&self) -> ::windows::core::Result; fn SetIpVersion(&self, ipversion: NET_FW_IP_VERSION) -> ::windows::core::Result<()>; fn Scope(&self) -> ::windows::core::Result; fn SetScope(&self, scope: NET_FW_SCOPE) -> ::windows::core::Result<()>; - fn RemoteAddresses(&self) -> ::windows::core::Result; - fn SetRemoteAddresses(&self, remoteaddrs: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn RemoteAddresses(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetRemoteAddresses(&self, remoteaddrs: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Enabled(&self) -> ::windows::core::Result; fn SetEnabled(&self, enabled: i16) -> ::windows::core::Result<()>; } @@ -815,7 +812,7 @@ impl ::windows::core::RuntimeName for INetFwAuthorizedApplication {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl INetFwAuthorizedApplication_Vtbl { pub const fn new, Impl: INetFwAuthorizedApplication_Impl, const OFFSET: isize>() -> INetFwAuthorizedApplication_Vtbl { - unsafe extern "system" fn Name, Impl: INetFwAuthorizedApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: INetFwAuthorizedApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -826,12 +823,12 @@ impl INetFwAuthorizedApplication_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetName, Impl: INetFwAuthorizedApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: INetFwAuthorizedApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&name)).into() } - unsafe extern "system" fn ProcessImageFileName, Impl: INetFwAuthorizedApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, imagefilename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ProcessImageFileName, Impl: INetFwAuthorizedApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, imagefilename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ProcessImageFileName() { @@ -842,7 +839,7 @@ impl INetFwAuthorizedApplication_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetProcessImageFileName, Impl: INetFwAuthorizedApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, imagefilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetProcessImageFileName, Impl: INetFwAuthorizedApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, imagefilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetProcessImageFileName(::core::mem::transmute(&imagefilename)).into() @@ -879,7 +876,7 @@ impl INetFwAuthorizedApplication_Vtbl { let this = (*this).get_impl(); this.SetScope(::core::mem::transmute_copy(&scope)).into() } - unsafe extern "system" fn RemoteAddresses, Impl: INetFwAuthorizedApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, remoteaddrs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RemoteAddresses, Impl: INetFwAuthorizedApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, remoteaddrs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RemoteAddresses() { @@ -890,7 +887,7 @@ impl INetFwAuthorizedApplication_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetRemoteAddresses, Impl: INetFwAuthorizedApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, remoteaddrs: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetRemoteAddresses, Impl: INetFwAuthorizedApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, remoteaddrs: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetRemoteAddresses(::core::mem::transmute(&remoteaddrs)).into() @@ -935,8 +932,8 @@ impl INetFwAuthorizedApplication_Vtbl { pub trait INetFwAuthorizedApplications_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn Count(&self) -> ::windows::core::Result; fn Add(&self, app: &::core::option::Option) -> ::windows::core::Result<()>; - fn Remove(&self, imagefilename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Item(&self, imagefilename: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn Remove(&self, imagefilename: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Item(&self, imagefilename: &::windows::core::BSTR) -> ::windows::core::Result; fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -960,12 +957,12 @@ impl INetFwAuthorizedApplications_Vtbl { let this = (*this).get_impl(); this.Add(::core::mem::transmute(&app)).into() } - unsafe extern "system" fn Remove, Impl: INetFwAuthorizedApplications_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, imagefilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Remove, Impl: INetFwAuthorizedApplications_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, imagefilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Remove(::core::mem::transmute(&imagefilename)).into() } - unsafe extern "system" fn Item, Impl: INetFwAuthorizedApplications_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, imagefilename: ::core::mem::ManuallyDrop, app: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Item, Impl: INetFwAuthorizedApplications_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, imagefilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, app: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Item(::core::mem::transmute(&imagefilename)) { @@ -1221,8 +1218,8 @@ pub trait INetFwMgr_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn LocalPolicy(&self) -> ::windows::core::Result; fn CurrentProfileType(&self) -> ::windows::core::Result; fn RestoreDefaults(&self) -> ::windows::core::Result<()>; - fn IsPortAllowed(&self, imagefilename: &super::super::Foundation::BSTR, ipversion: NET_FW_IP_VERSION, portnumber: i32, localaddress: &super::super::Foundation::BSTR, ipprotocol: NET_FW_IP_PROTOCOL, allowed: *mut super::super::System::Com::VARIANT, restricted: *mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn IsIcmpTypeAllowed(&self, ipversion: NET_FW_IP_VERSION, localaddress: &super::super::Foundation::BSTR, r#type: u8, allowed: *mut super::super::System::Com::VARIANT, restricted: *mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn IsPortAllowed(&self, imagefilename: &::windows::core::BSTR, ipversion: NET_FW_IP_VERSION, portnumber: i32, localaddress: &::windows::core::BSTR, ipprotocol: NET_FW_IP_PROTOCOL, allowed: *mut super::super::System::Com::VARIANT, restricted: *mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn IsIcmpTypeAllowed(&self, ipversion: NET_FW_IP_VERSION, localaddress: &::windows::core::BSTR, r#type: u8, allowed: *mut super::super::System::Com::VARIANT, restricted: *mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for INetFwMgr {} @@ -1256,12 +1253,12 @@ impl INetFwMgr_Vtbl { let this = (*this).get_impl(); this.RestoreDefaults().into() } - unsafe extern "system" fn IsPortAllowed, Impl: INetFwMgr_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, imagefilename: ::core::mem::ManuallyDrop, ipversion: NET_FW_IP_VERSION, portnumber: i32, localaddress: ::core::mem::ManuallyDrop, ipprotocol: NET_FW_IP_PROTOCOL, allowed: *mut super::super::System::Com::VARIANT, restricted: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn IsPortAllowed, Impl: INetFwMgr_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, imagefilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ipversion: NET_FW_IP_VERSION, portnumber: i32, localaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ipprotocol: NET_FW_IP_PROTOCOL, allowed: *mut super::super::System::Com::VARIANT, restricted: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.IsPortAllowed(::core::mem::transmute(&imagefilename), ::core::mem::transmute_copy(&ipversion), ::core::mem::transmute_copy(&portnumber), ::core::mem::transmute(&localaddress), ::core::mem::transmute_copy(&ipprotocol), ::core::mem::transmute_copy(&allowed), ::core::mem::transmute_copy(&restricted)).into() } - unsafe extern "system" fn IsIcmpTypeAllowed, Impl: INetFwMgr_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ipversion: NET_FW_IP_VERSION, localaddress: ::core::mem::ManuallyDrop, r#type: u8, allowed: *mut super::super::System::Com::VARIANT, restricted: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn IsIcmpTypeAllowed, Impl: INetFwMgr_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ipversion: NET_FW_IP_VERSION, localaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, r#type: u8, allowed: *mut super::super::System::Com::VARIANT, restricted: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.IsIcmpTypeAllowed(::core::mem::transmute_copy(&ipversion), ::core::mem::transmute(&localaddress), ::core::mem::transmute_copy(&r#type), ::core::mem::transmute_copy(&allowed), ::core::mem::transmute_copy(&restricted)).into() @@ -1281,8 +1278,8 @@ impl INetFwMgr_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait INetFwOpenPort_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; - fn SetName(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn IpVersion(&self) -> ::windows::core::Result; fn SetIpVersion(&self, ipversion: NET_FW_IP_VERSION) -> ::windows::core::Result<()>; fn Protocol(&self) -> ::windows::core::Result; @@ -1291,8 +1288,8 @@ pub trait INetFwOpenPort_Impl: Sized + super::super::System::Com::IDispatch_Impl fn SetPort(&self, portnumber: i32) -> ::windows::core::Result<()>; fn Scope(&self) -> ::windows::core::Result; fn SetScope(&self, scope: NET_FW_SCOPE) -> ::windows::core::Result<()>; - fn RemoteAddresses(&self) -> ::windows::core::Result; - fn SetRemoteAddresses(&self, remoteaddrs: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn RemoteAddresses(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetRemoteAddresses(&self, remoteaddrs: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Enabled(&self) -> ::windows::core::Result; fn SetEnabled(&self, enabled: i16) -> ::windows::core::Result<()>; fn BuiltIn(&self) -> ::windows::core::Result; @@ -1302,7 +1299,7 @@ impl ::windows::core::RuntimeName for INetFwOpenPort {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl INetFwOpenPort_Vtbl { pub const fn new, Impl: INetFwOpenPort_Impl, const OFFSET: isize>() -> INetFwOpenPort_Vtbl { - unsafe extern "system" fn Name, Impl: INetFwOpenPort_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: INetFwOpenPort_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -1313,7 +1310,7 @@ impl INetFwOpenPort_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetName, Impl: INetFwOpenPort_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: INetFwOpenPort_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&name)).into() @@ -1382,7 +1379,7 @@ impl INetFwOpenPort_Vtbl { let this = (*this).get_impl(); this.SetScope(::core::mem::transmute_copy(&scope)).into() } - unsafe extern "system" fn RemoteAddresses, Impl: INetFwOpenPort_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, remoteaddrs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RemoteAddresses, Impl: INetFwOpenPort_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, remoteaddrs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RemoteAddresses() { @@ -1393,7 +1390,7 @@ impl INetFwOpenPort_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetRemoteAddresses, Impl: INetFwOpenPort_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, remoteaddrs: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetRemoteAddresses, Impl: INetFwOpenPort_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, remoteaddrs: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetRemoteAddresses(::core::mem::transmute(&remoteaddrs)).into() @@ -1574,14 +1571,14 @@ pub trait INetFwPolicy2_Impl: Sized + super::super::System::Com::IDispatch_Impl fn put_UnicastResponsesToMulticastBroadcastDisabled(&self, profiletype: NET_FW_PROFILE_TYPE2, disabled: i16) -> ::windows::core::Result<()>; fn Rules(&self) -> ::windows::core::Result; fn ServiceRestriction(&self) -> ::windows::core::Result; - fn EnableRuleGroup(&self, profiletypesbitmask: i32, group: &super::super::Foundation::BSTR, enable: i16) -> ::windows::core::Result<()>; - fn IsRuleGroupEnabled(&self, profiletypesbitmask: i32, group: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn EnableRuleGroup(&self, profiletypesbitmask: i32, group: &::windows::core::BSTR, enable: i16) -> ::windows::core::Result<()>; + fn IsRuleGroupEnabled(&self, profiletypesbitmask: i32, group: &::windows::core::BSTR) -> ::windows::core::Result; fn RestoreLocalFirewallDefaults(&self) -> ::windows::core::Result<()>; fn get_DefaultInboundAction(&self, profiletype: NET_FW_PROFILE_TYPE2) -> ::windows::core::Result; fn put_DefaultInboundAction(&self, profiletype: NET_FW_PROFILE_TYPE2, action: NET_FW_ACTION) -> ::windows::core::Result<()>; fn get_DefaultOutboundAction(&self, profiletype: NET_FW_PROFILE_TYPE2) -> ::windows::core::Result; fn put_DefaultOutboundAction(&self, profiletype: NET_FW_PROFILE_TYPE2, action: NET_FW_ACTION) -> ::windows::core::Result<()>; - fn get_IsRuleGroupCurrentlyEnabled(&self, group: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn get_IsRuleGroupCurrentlyEnabled(&self, group: &::windows::core::BSTR) -> ::windows::core::Result; fn LocalPolicyModifyState(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -1702,12 +1699,12 @@ impl INetFwPolicy2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn EnableRuleGroup, Impl: INetFwPolicy2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, profiletypesbitmask: i32, group: ::core::mem::ManuallyDrop, enable: i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn EnableRuleGroup, Impl: INetFwPolicy2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, profiletypesbitmask: i32, group: ::core::mem::ManuallyDrop<::windows::core::BSTR>, enable: i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.EnableRuleGroup(::core::mem::transmute_copy(&profiletypesbitmask), ::core::mem::transmute(&group), ::core::mem::transmute_copy(&enable)).into() } - unsafe extern "system" fn IsRuleGroupEnabled, Impl: INetFwPolicy2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, profiletypesbitmask: i32, group: ::core::mem::ManuallyDrop, enabled: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn IsRuleGroupEnabled, Impl: INetFwPolicy2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, profiletypesbitmask: i32, group: ::core::mem::ManuallyDrop<::windows::core::BSTR>, enabled: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.IsRuleGroupEnabled(::core::mem::transmute_copy(&profiletypesbitmask), ::core::mem::transmute(&group)) { @@ -1755,7 +1752,7 @@ impl INetFwPolicy2_Vtbl { let this = (*this).get_impl(); this.put_DefaultOutboundAction(::core::mem::transmute_copy(&profiletype), ::core::mem::transmute_copy(&action)).into() } - unsafe extern "system" fn get_IsRuleGroupCurrentlyEnabled, Impl: INetFwPolicy2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, group: ::core::mem::ManuallyDrop, enabled: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_IsRuleGroupCurrentlyEnabled, Impl: INetFwPolicy2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, group: ::core::mem::ManuallyDrop<::windows::core::BSTR>, enabled: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_IsRuleGroupCurrentlyEnabled(::core::mem::transmute(&group)) { @@ -1811,9 +1808,9 @@ impl INetFwPolicy2_Vtbl { pub trait INetFwProduct_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn RuleCategories(&self) -> ::windows::core::Result; fn SetRuleCategories(&self, rulecategories: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn DisplayName(&self) -> ::windows::core::Result; - fn SetDisplayName(&self, displayname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn PathToSignedProductExe(&self) -> ::windows::core::Result; + fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDisplayName(&self, displayname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn PathToSignedProductExe(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for INetFwProduct {} @@ -1836,7 +1833,7 @@ impl INetFwProduct_Vtbl { let this = (*this).get_impl(); this.SetRuleCategories(::core::mem::transmute(&rulecategories)).into() } - unsafe extern "system" fn DisplayName, Impl: INetFwProduct_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, displayname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DisplayName, Impl: INetFwProduct_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, displayname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DisplayName() { @@ -1847,12 +1844,12 @@ impl INetFwProduct_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDisplayName, Impl: INetFwProduct_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, displayname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDisplayName, Impl: INetFwProduct_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, displayname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDisplayName(::core::mem::transmute(&displayname)).into() } - unsafe extern "system" fn PathToSignedProductExe, Impl: INetFwProduct_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PathToSignedProductExe, Impl: INetFwProduct_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PathToSignedProductExe() { @@ -2124,8 +2121,8 @@ pub trait INetFwRemoteAdminSettings_Impl: Sized + super::super::System::Com::IDi fn SetIpVersion(&self, ipversion: NET_FW_IP_VERSION) -> ::windows::core::Result<()>; fn Scope(&self) -> ::windows::core::Result; fn SetScope(&self, scope: NET_FW_SCOPE) -> ::windows::core::Result<()>; - fn RemoteAddresses(&self) -> ::windows::core::Result; - fn SetRemoteAddresses(&self, remoteaddrs: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn RemoteAddresses(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetRemoteAddresses(&self, remoteaddrs: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Enabled(&self) -> ::windows::core::Result; fn SetEnabled(&self, enabled: i16) -> ::windows::core::Result<()>; } @@ -2166,7 +2163,7 @@ impl INetFwRemoteAdminSettings_Vtbl { let this = (*this).get_impl(); this.SetScope(::core::mem::transmute_copy(&scope)).into() } - unsafe extern "system" fn RemoteAddresses, Impl: INetFwRemoteAdminSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, remoteaddrs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RemoteAddresses, Impl: INetFwRemoteAdminSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, remoteaddrs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RemoteAddresses() { @@ -2177,7 +2174,7 @@ impl INetFwRemoteAdminSettings_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetRemoteAddresses, Impl: INetFwRemoteAdminSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, remoteaddrs: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetRemoteAddresses, Impl: INetFwRemoteAdminSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, remoteaddrs: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetRemoteAddresses(::core::mem::transmute(&remoteaddrs)).into() @@ -2216,36 +2213,36 @@ impl INetFwRemoteAdminSettings_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait INetFwRule_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; - fn SetName(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Description(&self) -> ::windows::core::Result; - fn SetDescription(&self, desc: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ApplicationName(&self) -> ::windows::core::Result; - fn SetApplicationName(&self, imagefilename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ServiceName(&self) -> ::windows::core::Result; - fn SetServiceName(&self, servicename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDescription(&self, desc: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ApplicationName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetApplicationName(&self, imagefilename: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ServiceName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetServiceName(&self, servicename: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Protocol(&self) -> ::windows::core::Result; fn SetProtocol(&self, protocol: i32) -> ::windows::core::Result<()>; - fn LocalPorts(&self) -> ::windows::core::Result; - fn SetLocalPorts(&self, portnumbers: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn RemotePorts(&self) -> ::windows::core::Result; - fn SetRemotePorts(&self, portnumbers: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn LocalAddresses(&self) -> ::windows::core::Result; - fn SetLocalAddresses(&self, localaddrs: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn RemoteAddresses(&self) -> ::windows::core::Result; - fn SetRemoteAddresses(&self, remoteaddrs: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn IcmpTypesAndCodes(&self) -> ::windows::core::Result; - fn SetIcmpTypesAndCodes(&self, icmptypesandcodes: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn LocalPorts(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetLocalPorts(&self, portnumbers: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn RemotePorts(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetRemotePorts(&self, portnumbers: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn LocalAddresses(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetLocalAddresses(&self, localaddrs: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn RemoteAddresses(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetRemoteAddresses(&self, remoteaddrs: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn IcmpTypesAndCodes(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetIcmpTypesAndCodes(&self, icmptypesandcodes: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Direction(&self) -> ::windows::core::Result; fn SetDirection(&self, dir: NET_FW_RULE_DIRECTION) -> ::windows::core::Result<()>; fn Interfaces(&self) -> ::windows::core::Result; fn SetInterfaces(&self, interfaces: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn InterfaceTypes(&self) -> ::windows::core::Result; - fn SetInterfaceTypes(&self, interfacetypes: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn InterfaceTypes(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetInterfaceTypes(&self, interfacetypes: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Enabled(&self) -> ::windows::core::Result; fn SetEnabled(&self, enabled: i16) -> ::windows::core::Result<()>; - fn Grouping(&self) -> ::windows::core::Result; - fn SetGrouping(&self, context: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Grouping(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetGrouping(&self, context: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Profiles(&self) -> ::windows::core::Result; fn SetProfiles(&self, profiletypesbitmask: i32) -> ::windows::core::Result<()>; fn EdgeTraversal(&self) -> ::windows::core::Result; @@ -2258,7 +2255,7 @@ impl ::windows::core::RuntimeName for INetFwRule {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl INetFwRule_Vtbl { pub const fn new, Impl: INetFwRule_Impl, const OFFSET: isize>() -> INetFwRule_Vtbl { - unsafe extern "system" fn Name, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -2269,12 +2266,12 @@ impl INetFwRule_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetName, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&name)).into() } - unsafe extern "system" fn Description, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, desc: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, desc: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -2285,12 +2282,12 @@ impl INetFwRule_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, desc: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDescription, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, desc: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDescription(::core::mem::transmute(&desc)).into() } - unsafe extern "system" fn ApplicationName, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, imagefilename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ApplicationName, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, imagefilename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ApplicationName() { @@ -2301,12 +2298,12 @@ impl INetFwRule_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetApplicationName, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, imagefilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetApplicationName, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, imagefilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetApplicationName(::core::mem::transmute(&imagefilename)).into() } - unsafe extern "system" fn ServiceName, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, servicename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ServiceName, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, servicename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ServiceName() { @@ -2317,7 +2314,7 @@ impl INetFwRule_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetServiceName, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, servicename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetServiceName, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, servicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetServiceName(::core::mem::transmute(&servicename)).into() @@ -2338,7 +2335,7 @@ impl INetFwRule_Vtbl { let this = (*this).get_impl(); this.SetProtocol(::core::mem::transmute_copy(&protocol)).into() } - unsafe extern "system" fn LocalPorts, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, portnumbers: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LocalPorts, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, portnumbers: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LocalPorts() { @@ -2349,12 +2346,12 @@ impl INetFwRule_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetLocalPorts, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, portnumbers: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetLocalPorts, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, portnumbers: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetLocalPorts(::core::mem::transmute(&portnumbers)).into() } - unsafe extern "system" fn RemotePorts, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, portnumbers: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RemotePorts, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, portnumbers: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RemotePorts() { @@ -2365,12 +2362,12 @@ impl INetFwRule_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetRemotePorts, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, portnumbers: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetRemotePorts, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, portnumbers: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetRemotePorts(::core::mem::transmute(&portnumbers)).into() } - unsafe extern "system" fn LocalAddresses, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, localaddrs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LocalAddresses, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, localaddrs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LocalAddresses() { @@ -2381,12 +2378,12 @@ impl INetFwRule_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetLocalAddresses, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, localaddrs: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetLocalAddresses, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, localaddrs: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetLocalAddresses(::core::mem::transmute(&localaddrs)).into() } - unsafe extern "system" fn RemoteAddresses, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, remoteaddrs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RemoteAddresses, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, remoteaddrs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RemoteAddresses() { @@ -2397,12 +2394,12 @@ impl INetFwRule_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetRemoteAddresses, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, remoteaddrs: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetRemoteAddresses, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, remoteaddrs: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetRemoteAddresses(::core::mem::transmute(&remoteaddrs)).into() } - unsafe extern "system" fn IcmpTypesAndCodes, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, icmptypesandcodes: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn IcmpTypesAndCodes, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, icmptypesandcodes: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.IcmpTypesAndCodes() { @@ -2413,7 +2410,7 @@ impl INetFwRule_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetIcmpTypesAndCodes, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, icmptypesandcodes: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetIcmpTypesAndCodes, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, icmptypesandcodes: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetIcmpTypesAndCodes(::core::mem::transmute(&icmptypesandcodes)).into() @@ -2450,7 +2447,7 @@ impl INetFwRule_Vtbl { let this = (*this).get_impl(); this.SetInterfaces(::core::mem::transmute(&interfaces)).into() } - unsafe extern "system" fn InterfaceTypes, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, interfacetypes: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn InterfaceTypes, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, interfacetypes: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.InterfaceTypes() { @@ -2461,7 +2458,7 @@ impl INetFwRule_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetInterfaceTypes, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, interfacetypes: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetInterfaceTypes, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, interfacetypes: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetInterfaceTypes(::core::mem::transmute(&interfacetypes)).into() @@ -2482,7 +2479,7 @@ impl INetFwRule_Vtbl { let this = (*this).get_impl(); this.SetEnabled(::core::mem::transmute_copy(&enabled)).into() } - unsafe extern "system" fn Grouping, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, context: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Grouping, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, context: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Grouping() { @@ -2493,7 +2490,7 @@ impl INetFwRule_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetGrouping, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, context: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetGrouping, Impl: INetFwRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, context: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetGrouping(::core::mem::transmute(&context)).into() @@ -2628,16 +2625,16 @@ impl INetFwRule2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait INetFwRule3_Impl: Sized + super::super::System::Com::IDispatch_Impl + INetFwRule_Impl + INetFwRule2_Impl { - fn LocalAppPackageId(&self) -> ::windows::core::Result; - fn SetLocalAppPackageId(&self, wszpackageid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn LocalUserOwner(&self) -> ::windows::core::Result; - fn SetLocalUserOwner(&self, wszuserowner: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn LocalUserAuthorizedList(&self) -> ::windows::core::Result; - fn SetLocalUserAuthorizedList(&self, wszuserauthlist: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn RemoteUserAuthorizedList(&self) -> ::windows::core::Result; - fn SetRemoteUserAuthorizedList(&self, wszuserauthlist: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn RemoteMachineAuthorizedList(&self) -> ::windows::core::Result; - fn SetRemoteMachineAuthorizedList(&self, wszuserauthlist: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn LocalAppPackageId(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetLocalAppPackageId(&self, wszpackageid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn LocalUserOwner(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetLocalUserOwner(&self, wszuserowner: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn LocalUserAuthorizedList(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetLocalUserAuthorizedList(&self, wszuserauthlist: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn RemoteUserAuthorizedList(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetRemoteUserAuthorizedList(&self, wszuserauthlist: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn RemoteMachineAuthorizedList(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetRemoteMachineAuthorizedList(&self, wszuserauthlist: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SecureFlags(&self) -> ::windows::core::Result; fn SetSecureFlags(&self, loptions: i32) -> ::windows::core::Result<()>; } @@ -2646,7 +2643,7 @@ impl ::windows::core::RuntimeName for INetFwRule3 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl INetFwRule3_Vtbl { pub const fn new, Impl: INetFwRule3_Impl, const OFFSET: isize>() -> INetFwRule3_Vtbl { - unsafe extern "system" fn LocalAppPackageId, Impl: INetFwRule3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wszpackageid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LocalAppPackageId, Impl: INetFwRule3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wszpackageid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LocalAppPackageId() { @@ -2657,12 +2654,12 @@ impl INetFwRule3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetLocalAppPackageId, Impl: INetFwRule3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wszpackageid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetLocalAppPackageId, Impl: INetFwRule3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wszpackageid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetLocalAppPackageId(::core::mem::transmute(&wszpackageid)).into() } - unsafe extern "system" fn LocalUserOwner, Impl: INetFwRule3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wszuserowner: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LocalUserOwner, Impl: INetFwRule3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wszuserowner: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LocalUserOwner() { @@ -2673,12 +2670,12 @@ impl INetFwRule3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetLocalUserOwner, Impl: INetFwRule3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wszuserowner: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetLocalUserOwner, Impl: INetFwRule3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wszuserowner: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetLocalUserOwner(::core::mem::transmute(&wszuserowner)).into() } - unsafe extern "system" fn LocalUserAuthorizedList, Impl: INetFwRule3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wszuserauthlist: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LocalUserAuthorizedList, Impl: INetFwRule3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wszuserauthlist: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LocalUserAuthorizedList() { @@ -2689,12 +2686,12 @@ impl INetFwRule3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetLocalUserAuthorizedList, Impl: INetFwRule3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wszuserauthlist: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetLocalUserAuthorizedList, Impl: INetFwRule3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wszuserauthlist: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetLocalUserAuthorizedList(::core::mem::transmute(&wszuserauthlist)).into() } - unsafe extern "system" fn RemoteUserAuthorizedList, Impl: INetFwRule3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wszuserauthlist: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RemoteUserAuthorizedList, Impl: INetFwRule3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wszuserauthlist: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RemoteUserAuthorizedList() { @@ -2705,12 +2702,12 @@ impl INetFwRule3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetRemoteUserAuthorizedList, Impl: INetFwRule3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wszuserauthlist: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetRemoteUserAuthorizedList, Impl: INetFwRule3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wszuserauthlist: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetRemoteUserAuthorizedList(::core::mem::transmute(&wszuserauthlist)).into() } - unsafe extern "system" fn RemoteMachineAuthorizedList, Impl: INetFwRule3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wszuserauthlist: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RemoteMachineAuthorizedList, Impl: INetFwRule3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wszuserauthlist: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RemoteMachineAuthorizedList() { @@ -2721,7 +2718,7 @@ impl INetFwRule3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetRemoteMachineAuthorizedList, Impl: INetFwRule3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wszuserauthlist: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetRemoteMachineAuthorizedList, Impl: INetFwRule3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wszuserauthlist: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetRemoteMachineAuthorizedList(::core::mem::transmute(&wszuserauthlist)).into() @@ -2766,8 +2763,8 @@ impl INetFwRule3_Vtbl { pub trait INetFwRules_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn Count(&self) -> ::windows::core::Result; fn Add(&self, rule: &::core::option::Option) -> ::windows::core::Result<()>; - fn Remove(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Item(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn Remove(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Item(&self, name: &::windows::core::BSTR) -> ::windows::core::Result; fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2791,12 +2788,12 @@ impl INetFwRules_Vtbl { let this = (*this).get_impl(); this.Add(::core::mem::transmute(&rule)).into() } - unsafe extern "system" fn Remove, Impl: INetFwRules_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Remove, Impl: INetFwRules_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Remove(::core::mem::transmute(&name)).into() } - unsafe extern "system" fn Item, Impl: INetFwRules_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, rule: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Item, Impl: INetFwRules_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, rule: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Item(::core::mem::transmute(&name)) { @@ -2833,15 +2830,15 @@ impl INetFwRules_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait INetFwService_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Type(&self) -> ::windows::core::Result; fn Customized(&self) -> ::windows::core::Result; fn IpVersion(&self) -> ::windows::core::Result; fn SetIpVersion(&self, ipversion: NET_FW_IP_VERSION) -> ::windows::core::Result<()>; fn Scope(&self) -> ::windows::core::Result; fn SetScope(&self, scope: NET_FW_SCOPE) -> ::windows::core::Result<()>; - fn RemoteAddresses(&self) -> ::windows::core::Result; - fn SetRemoteAddresses(&self, remoteaddrs: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn RemoteAddresses(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetRemoteAddresses(&self, remoteaddrs: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Enabled(&self) -> ::windows::core::Result; fn SetEnabled(&self, enabled: i16) -> ::windows::core::Result<()>; fn GloballyOpenPorts(&self) -> ::windows::core::Result; @@ -2851,7 +2848,7 @@ impl ::windows::core::RuntimeName for INetFwService {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl INetFwService_Vtbl { pub const fn new, Impl: INetFwService_Impl, const OFFSET: isize>() -> INetFwService_Vtbl { - unsafe extern "system" fn Name, Impl: INetFwService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: INetFwService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -2916,7 +2913,7 @@ impl INetFwService_Vtbl { let this = (*this).get_impl(); this.SetScope(::core::mem::transmute_copy(&scope)).into() } - unsafe extern "system" fn RemoteAddresses, Impl: INetFwService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, remoteaddrs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RemoteAddresses, Impl: INetFwService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, remoteaddrs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RemoteAddresses() { @@ -2927,7 +2924,7 @@ impl INetFwService_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetRemoteAddresses, Impl: INetFwService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, remoteaddrs: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetRemoteAddresses, Impl: INetFwService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, remoteaddrs: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetRemoteAddresses(::core::mem::transmute(&remoteaddrs)).into() @@ -2981,8 +2978,8 @@ impl INetFwService_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait INetFwServiceRestriction_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn RestrictService(&self, servicename: &super::super::Foundation::BSTR, appname: &super::super::Foundation::BSTR, restrictservice: i16, servicesidrestricted: i16) -> ::windows::core::Result<()>; - fn ServiceRestricted(&self, servicename: &super::super::Foundation::BSTR, appname: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn RestrictService(&self, servicename: &::windows::core::BSTR, appname: &::windows::core::BSTR, restrictservice: i16, servicesidrestricted: i16) -> ::windows::core::Result<()>; + fn ServiceRestricted(&self, servicename: &::windows::core::BSTR, appname: &::windows::core::BSTR) -> ::windows::core::Result; fn Rules(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2990,12 +2987,12 @@ impl ::windows::core::RuntimeName for INetFwServiceRestriction {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl INetFwServiceRestriction_Vtbl { pub const fn new, Impl: INetFwServiceRestriction_Impl, const OFFSET: isize>() -> INetFwServiceRestriction_Vtbl { - unsafe extern "system" fn RestrictService, Impl: INetFwServiceRestriction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, servicename: ::core::mem::ManuallyDrop, appname: ::core::mem::ManuallyDrop, restrictservice: i16, servicesidrestricted: i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn RestrictService, Impl: INetFwServiceRestriction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, servicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, appname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, restrictservice: i16, servicesidrestricted: i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RestrictService(::core::mem::transmute(&servicename), ::core::mem::transmute(&appname), ::core::mem::transmute_copy(&restrictservice), ::core::mem::transmute_copy(&servicesidrestricted)).into() } - unsafe extern "system" fn ServiceRestricted, Impl: INetFwServiceRestriction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, servicename: ::core::mem::ManuallyDrop, appname: ::core::mem::ManuallyDrop, servicerestricted: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn ServiceRestricted, Impl: INetFwServiceRestriction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, servicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, appname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, servicerestricted: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ServiceRestricted(::core::mem::transmute(&servicename), ::core::mem::transmute(&appname)) { @@ -3093,7 +3090,7 @@ pub trait INetSharingConfiguration_Impl: Sized + super::super::System::Com::IDis fn DisableInternetFirewall(&self) -> ::windows::core::Result<()>; fn EnableInternetFirewall(&self) -> ::windows::core::Result<()>; fn get_EnumPortMappings(&self, flags: SHARINGCONNECTION_ENUM_FLAGS) -> ::windows::core::Result; - fn AddPortMapping(&self, bstrname: &super::super::Foundation::BSTR, ucipprotocol: u8, usexternalport: u16, usinternalport: u16, dwoptions: u32, bstrtargetnameoripaddress: &super::super::Foundation::BSTR, etargettype: ICS_TARGETTYPE) -> ::windows::core::Result; + fn AddPortMapping(&self, bstrname: &::windows::core::BSTR, ucipprotocol: u8, usexternalport: u16, usinternalport: u16, dwoptions: u32, bstrtargetnameoripaddress: &::windows::core::BSTR, etargettype: ICS_TARGETTYPE) -> ::windows::core::Result; fn RemovePortMapping(&self, pmapping: &::core::option::Option) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3165,7 +3162,7 @@ impl INetSharingConfiguration_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AddPortMapping, Impl: INetSharingConfiguration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, ucipprotocol: u8, usexternalport: u16, usinternalport: u16, dwoptions: u32, bstrtargetnameoripaddress: ::core::mem::ManuallyDrop, etargettype: ICS_TARGETTYPE, ppmapping: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddPortMapping, Impl: INetSharingConfiguration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ucipprotocol: u8, usexternalport: u16, usinternalport: u16, dwoptions: u32, bstrtargetnameoripaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, etargettype: ICS_TARGETTYPE, ppmapping: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AddPortMapping(::core::mem::transmute(&bstrname), ::core::mem::transmute_copy(&ucipprotocol), ::core::mem::transmute_copy(&usexternalport), ::core::mem::transmute_copy(&usinternalport), ::core::mem::transmute_copy(&dwoptions), ::core::mem::transmute(&bstrtargetnameoripaddress), ::core::mem::transmute_copy(&etargettype)) { @@ -3429,13 +3426,13 @@ impl INetSharingPortMappingCollection_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait INetSharingPortMappingProps_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn IPProtocol(&self) -> ::windows::core::Result; fn ExternalPort(&self) -> ::windows::core::Result; fn InternalPort(&self) -> ::windows::core::Result; fn Options(&self) -> ::windows::core::Result; - fn TargetName(&self) -> ::windows::core::Result; - fn TargetIPAddress(&self) -> ::windows::core::Result; + fn TargetName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn TargetIPAddress(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Enabled(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3443,7 +3440,7 @@ impl ::windows::core::RuntimeName for INetSharingPortMappingProps {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl INetSharingPortMappingProps_Vtbl { pub const fn new, Impl: INetSharingPortMappingProps_Impl, const OFFSET: isize>() -> INetSharingPortMappingProps_Vtbl { - unsafe extern "system" fn Name, Impl: INetSharingPortMappingProps_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: INetSharingPortMappingProps_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -3498,7 +3495,7 @@ impl INetSharingPortMappingProps_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn TargetName, Impl: INetSharingPortMappingProps_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtargetname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TargetName, Impl: INetSharingPortMappingProps_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtargetname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TargetName() { @@ -3509,7 +3506,7 @@ impl INetSharingPortMappingProps_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn TargetIPAddress, Impl: INetSharingPortMappingProps_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtargetipaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TargetIPAddress, Impl: INetSharingPortMappingProps_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtargetipaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TargetIPAddress() { @@ -3633,16 +3630,16 @@ impl INetSharingPublicConnectionCollection_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IStaticPortMapping_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn ExternalIPAddress(&self) -> ::windows::core::Result; + fn ExternalIPAddress(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn ExternalPort(&self) -> ::windows::core::Result; fn InternalPort(&self) -> ::windows::core::Result; - fn Protocol(&self) -> ::windows::core::Result; - fn InternalClient(&self) -> ::windows::core::Result; + fn Protocol(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn InternalClient(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Enabled(&self) -> ::windows::core::Result; - fn Description(&self) -> ::windows::core::Result; - fn EditInternalClient(&self, bstrinternalclient: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn EditInternalClient(&self, bstrinternalclient: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Enable(&self, vb: i16) -> ::windows::core::Result<()>; - fn EditDescription(&self, bstrdescription: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn EditDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn EditInternalPort(&self, linternalport: i32) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3650,7 +3647,7 @@ impl ::windows::core::RuntimeName for IStaticPortMapping {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IStaticPortMapping_Vtbl { pub const fn new, Impl: IStaticPortMapping_Impl, const OFFSET: isize>() -> IStaticPortMapping_Vtbl { - unsafe extern "system" fn ExternalIPAddress, Impl: IStaticPortMapping_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExternalIPAddress, Impl: IStaticPortMapping_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ExternalIPAddress() { @@ -3683,7 +3680,7 @@ impl IStaticPortMapping_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Protocol, Impl: IStaticPortMapping_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Protocol, Impl: IStaticPortMapping_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Protocol() { @@ -3694,7 +3691,7 @@ impl IStaticPortMapping_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn InternalClient, Impl: IStaticPortMapping_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn InternalClient, Impl: IStaticPortMapping_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.InternalClient() { @@ -3716,7 +3713,7 @@ impl IStaticPortMapping_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Description, Impl: IStaticPortMapping_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IStaticPortMapping_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -3727,7 +3724,7 @@ impl IStaticPortMapping_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn EditInternalClient, Impl: IStaticPortMapping_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrinternalclient: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn EditInternalClient, Impl: IStaticPortMapping_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrinternalclient: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.EditInternalClient(::core::mem::transmute(&bstrinternalclient)).into() @@ -3737,7 +3734,7 @@ impl IStaticPortMapping_Vtbl { let this = (*this).get_impl(); this.Enable(::core::mem::transmute_copy(&vb)).into() } - unsafe extern "system" fn EditDescription, Impl: IStaticPortMapping_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn EditDescription, Impl: IStaticPortMapping_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.EditDescription(::core::mem::transmute(&bstrdescription)).into() @@ -3769,10 +3766,10 @@ impl IStaticPortMapping_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IStaticPortMappingCollection_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; - fn get_Item(&self, lexternalport: i32, bstrprotocol: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn get_Item(&self, lexternalport: i32, bstrprotocol: &::windows::core::BSTR) -> ::windows::core::Result; fn Count(&self) -> ::windows::core::Result; - fn Remove(&self, lexternalport: i32, bstrprotocol: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Add(&self, lexternalport: i32, bstrprotocol: &super::super::Foundation::BSTR, linternalport: i32, bstrinternalclient: &super::super::Foundation::BSTR, benabled: i16, bstrdescription: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn Remove(&self, lexternalport: i32, bstrprotocol: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Add(&self, lexternalport: i32, bstrprotocol: &::windows::core::BSTR, linternalport: i32, bstrinternalclient: &::windows::core::BSTR, benabled: i16, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IStaticPortMappingCollection {} @@ -3790,7 +3787,7 @@ impl IStaticPortMappingCollection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_Item, Impl: IStaticPortMappingCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lexternalport: i32, bstrprotocol: ::core::mem::ManuallyDrop, ppspm: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Item, Impl: IStaticPortMappingCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lexternalport: i32, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppspm: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_Item(::core::mem::transmute_copy(&lexternalport), ::core::mem::transmute(&bstrprotocol)) { @@ -3812,12 +3809,12 @@ impl IStaticPortMappingCollection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Remove, Impl: IStaticPortMappingCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lexternalport: i32, bstrprotocol: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Remove, Impl: IStaticPortMappingCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lexternalport: i32, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Remove(::core::mem::transmute_copy(&lexternalport), ::core::mem::transmute(&bstrprotocol)).into() } - unsafe extern "system" fn Add, Impl: IStaticPortMappingCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lexternalport: i32, bstrprotocol: ::core::mem::ManuallyDrop, linternalport: i32, bstrinternalclient: ::core::mem::ManuallyDrop, benabled: i16, bstrdescription: ::core::mem::ManuallyDrop, ppspm: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Add, Impl: IStaticPortMappingCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lexternalport: i32, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>, linternalport: i32, bstrinternalclient: ::core::mem::ManuallyDrop<::windows::core::BSTR>, benabled: i16, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppspm: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Add(::core::mem::transmute_copy(&lexternalport), ::core::mem::transmute(&bstrprotocol), ::core::mem::transmute_copy(&linternalport), ::core::mem::transmute(&bstrinternalclient), ::core::mem::transmute_copy(&benabled), ::core::mem::transmute(&bstrdescription)) { diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFirewall/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFirewall/mod.rs index 4e7310e511..a50be2c40d 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFirewall/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/WindowsFirewall/mod.rs @@ -96,47 +96,37 @@ where pub struct IDynamicPortMapping(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IDynamicPortMapping { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExternalIPAddress(&self) -> ::windows::core::Result { + pub unsafe fn ExternalIPAddress(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ExternalIPAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ExternalIPAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoteHost(&self) -> ::windows::core::Result { + pub unsafe fn RemoteHost(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RemoteHost)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RemoteHost)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn ExternalPort(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ExternalPort)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Protocol(&self) -> ::windows::core::Result { + pub unsafe fn Protocol(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Protocol)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Protocol)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn InternalPort(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).InternalPort)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InternalClient(&self) -> ::windows::core::Result { + pub unsafe fn InternalClient(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).InternalClient)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).InternalClient)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Enabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Enabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn LeaseDuration(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -146,24 +136,14 @@ impl IDynamicPortMapping { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).RenewLease)(::windows::core::Interface::as_raw(self), lleasedurationdesired, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EditInternalClient<'a, P0>(&self, bstrinternalclient: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).EditInternalClient)(::windows::core::Interface::as_raw(self), bstrinternalclient.into().abi()).ok() + pub unsafe fn EditInternalClient(&self, bstrinternalclient: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).EditInternalClient)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrinternalclient)).ok() } pub unsafe fn Enable(&self, vb: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Enable)(::windows::core::Interface::as_raw(self), vb).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EditDescription<'a, P0>(&self, bstrdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).EditDescription)(::windows::core::Interface::as_raw(self), bstrdescription.into().abi()).ok() + pub unsafe fn EditDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).EditDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdescription)).ok() } pub unsafe fn EditInternalPort(&self, linternalport: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).EditInternalPort)(::windows::core::Interface::as_raw(self), linternalport).ok() @@ -235,40 +215,19 @@ unsafe impl ::windows::core::Interface for IDynamicPortMapping { #[doc(hidden)] pub struct IDynamicPortMapping_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub ExternalIPAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ExternalIPAddress: usize, - #[cfg(feature = "Win32_Foundation")] - pub RemoteHost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RemoteHost: usize, + pub ExternalIPAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub RemoteHost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ExternalPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Protocol: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Protocol: usize, + pub Protocol: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub InternalPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub InternalClient: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InternalClient: usize, + pub InternalClient: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Enabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub LeaseDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows::core::HRESULT, pub RenewLease: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lleasedurationdesired: i32, pleasedurationreturned: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub EditInternalClient: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinternalclient: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EditInternalClient: usize, + pub EditInternalClient: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinternalclient: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Enable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vb: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub EditDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EditDescription: usize, + pub EditDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub EditInternalPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, linternalport: i32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`, `\"Win32_System_Com\"`*"] @@ -281,40 +240,24 @@ impl IDynamicPortMappingCollection { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self)._NewEnum)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn get_Item<'a, P0, P1>(&self, bstrremotehost: P0, lexternalport: i32, bstrprotocol: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn get_Item(&self, bstrremotehost: &::windows::core::BSTR, lexternalport: i32, bstrprotocol: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), bstrremotehost.into().abi(), lexternalport, bstrprotocol.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrremotehost), lexternalport, ::core::mem::transmute_copy(bstrprotocol), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn Count(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Count)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Remove<'a, P0, P1>(&self, bstrremotehost: P0, lexternalport: i32, bstrprotocol: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), bstrremotehost.into().abi(), lexternalport, bstrprotocol.into().abi()).ok() + pub unsafe fn Remove(&self, bstrremotehost: &::windows::core::BSTR, lexternalport: i32, bstrprotocol: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrremotehost), lexternalport, ::core::mem::transmute_copy(bstrprotocol)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Add<'a, P0, P1, P2, P3>(&self, bstrremotehost: P0, lexternalport: i32, bstrprotocol: P1, linternalport: i32, bstrinternalclient: P2, benabled: i16, bstrdescription: P3, lleaseduration: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Add(&self, bstrremotehost: &::windows::core::BSTR, lexternalport: i32, bstrprotocol: &::windows::core::BSTR, linternalport: i32, bstrinternalclient: &::windows::core::BSTR, benabled: i16, bstrdescription: &::windows::core::BSTR, lleaseduration: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), bstrremotehost.into().abi(), lexternalport, bstrprotocol.into().abi(), linternalport, bstrinternalclient.into().abi(), benabled, bstrdescription.into().abi(), lleaseduration, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrremotehost), lexternalport, ::core::mem::transmute_copy(bstrprotocol), linternalport, ::core::mem::transmute_copy(bstrinternalclient), benabled, ::core::mem::transmute_copy(bstrdescription), lleaseduration, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -384,18 +327,15 @@ unsafe impl ::windows::core::Interface for IDynamicPortMappingCollection { pub struct IDynamicPortMappingCollection_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrremotehost: ::core::mem::ManuallyDrop, lexternalport: i32, bstrprotocol: ::core::mem::ManuallyDrop, ppdpm: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrremotehost: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lexternalport: i32, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppdpm: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] get_Item: usize, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrremotehost: ::core::mem::ManuallyDrop, lexternalport: i32, bstrprotocol: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Remove: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrremotehost: ::core::mem::ManuallyDrop, lexternalport: i32, bstrprotocol: ::core::mem::ManuallyDrop, linternalport: i32, bstrinternalclient: ::core::mem::ManuallyDrop, benabled: i16, bstrdescription: ::core::mem::ManuallyDrop, lleaseduration: i32, ppdpm: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrremotehost: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lexternalport: i32, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrremotehost: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lexternalport: i32, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>, linternalport: i32, bstrinternalclient: ::core::mem::ManuallyDrop<::windows::core::BSTR>, benabled: i16, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lleaseduration: i32, ppdpm: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Add: usize, } #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] @@ -820,13 +760,8 @@ pub struct INATEventManager_Vtbl { #[repr(transparent)] pub struct INATExternalIPAddressCallback(::windows::core::IUnknown); impl INATExternalIPAddressCallback { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NewExternalIPAddress<'a, P0>(&self, bstrnewexternalipaddress: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).NewExternalIPAddress)(::windows::core::Interface::as_raw(self), bstrnewexternalipaddress.into().abi()).ok() + pub unsafe fn NewExternalIPAddress(&self, bstrnewexternalipaddress: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).NewExternalIPAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrnewexternalipaddress)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -868,10 +803,7 @@ unsafe impl ::windows::core::Interface for INATExternalIPAddressCallback { #[doc(hidden)] pub struct INATExternalIPAddressCallback_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub NewExternalIPAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrnewexternalipaddress: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - NewExternalIPAddress: usize, + pub NewExternalIPAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrnewexternalipaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`*"] #[repr(transparent)] @@ -1136,23 +1068,17 @@ pub struct INetConnectionManager_Vtbl { pub struct INetConnectionProps(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl INetConnectionProps { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Guid(&self) -> ::windows::core::Result { + pub unsafe fn Guid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Guid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Guid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeviceName(&self) -> ::windows::core::Result { + pub unsafe fn DeviceName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DeviceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DeviceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Status(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1233,18 +1159,9 @@ unsafe impl ::windows::core::Interface for INetConnectionProps { #[doc(hidden)] pub struct INetConnectionProps_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Guid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrguid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Guid: usize, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub DeviceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdevicename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeviceName: usize, + pub Guid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrguid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DeviceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdevicename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstatus: *mut NETCON_STATUS) -> ::windows::core::HRESULT, pub MediaType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmediatype: *mut NETCON_MEDIATYPE) -> ::windows::core::HRESULT, pub Characteristics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwflags: *mut u32) -> ::windows::core::HRESULT, @@ -1255,33 +1172,19 @@ pub struct INetConnectionProps_Vtbl { pub struct INetFwAuthorizedApplication(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl INetFwAuthorizedApplication { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ProcessImageFileName(&self) -> ::windows::core::Result { + pub unsafe fn ProcessImageFileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ProcessImageFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ProcessImageFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetProcessImageFileName<'a, P0>(&self, imagefilename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetProcessImageFileName)(::windows::core::Interface::as_raw(self), imagefilename.into().abi()).ok() + pub unsafe fn SetProcessImageFileName(&self, imagefilename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetProcessImageFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(imagefilename)).ok() } pub unsafe fn IpVersion(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1297,19 +1200,12 @@ impl INetFwAuthorizedApplication { pub unsafe fn SetScope(&self, scope: NET_FW_SCOPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetScope)(::windows::core::Interface::as_raw(self), scope).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoteAddresses(&self) -> ::windows::core::Result { + pub unsafe fn RemoteAddresses(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RemoteAddresses)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RemoteAddresses)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRemoteAddresses<'a, P0>(&self, remoteaddrs: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetRemoteAddresses)(::windows::core::Interface::as_raw(self), remoteaddrs.into().abi()).ok() + pub unsafe fn SetRemoteAddresses(&self, remoteaddrs: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetRemoteAddresses)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(remoteaddrs)).ok() } pub unsafe fn Enabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1385,34 +1281,16 @@ unsafe impl ::windows::core::Interface for INetFwAuthorizedApplication { #[doc(hidden)] pub struct INetFwAuthorizedApplication_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, - #[cfg(feature = "Win32_Foundation")] - pub ProcessImageFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, imagefilename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ProcessImageFileName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetProcessImageFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, imagefilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetProcessImageFileName: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ProcessImageFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, imagefilename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetProcessImageFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, imagefilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub IpVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ipversion: *mut NET_FW_IP_VERSION) -> ::windows::core::HRESULT, pub SetIpVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ipversion: NET_FW_IP_VERSION) -> ::windows::core::HRESULT, pub Scope: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scope: *mut NET_FW_SCOPE) -> ::windows::core::HRESULT, pub SetScope: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scope: NET_FW_SCOPE) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub RemoteAddresses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, remoteaddrs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RemoteAddresses: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetRemoteAddresses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, remoteaddrs: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetRemoteAddresses: usize, + pub RemoteAddresses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, remoteaddrs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetRemoteAddresses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, remoteaddrs: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Enabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enabled: *mut i16) -> ::windows::core::HRESULT, pub SetEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enabled: i16) -> ::windows::core::HRESULT, } @@ -1434,22 +1312,14 @@ impl INetFwAuthorizedApplications { { (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), app.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Remove<'a, P0>(&self, imagefilename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), imagefilename.into().abi()).ok() + pub unsafe fn Remove(&self, imagefilename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(imagefilename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Item<'a, P0>(&self, imagefilename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Item(&self, imagefilename: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Item)(::windows::core::Interface::as_raw(self), imagefilename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Item)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(imagefilename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1527,13 +1397,10 @@ pub struct INetFwAuthorizedApplications_Vtbl { pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, app: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Add: usize, - #[cfg(feature = "Win32_Foundation")] - pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, imagefilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Remove: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, imagefilename: ::core::mem::ManuallyDrop, app: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, imagefilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, imagefilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, app: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Item: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } @@ -1722,20 +1589,13 @@ impl INetFwMgr { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn IsPortAllowed<'a, P0, P1>(&self, imagefilename: P0, ipversion: NET_FW_IP_VERSION, portnumber: i32, localaddress: P1, ipprotocol: NET_FW_IP_PROTOCOL, allowed: &mut super::super::System::Com::VARIANT, restricted: &mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).IsPortAllowed)(::windows::core::Interface::as_raw(self), imagefilename.into().abi(), ipversion, portnumber, localaddress.into().abi(), ipprotocol, ::core::mem::transmute(allowed), ::core::mem::transmute(restricted)).ok() + pub unsafe fn IsPortAllowed(&self, imagefilename: &::windows::core::BSTR, ipversion: NET_FW_IP_VERSION, portnumber: i32, localaddress: &::windows::core::BSTR, ipprotocol: NET_FW_IP_PROTOCOL, allowed: &mut super::super::System::Com::VARIANT, restricted: &mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).IsPortAllowed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(imagefilename), ipversion, portnumber, ::core::mem::transmute_copy(localaddress), ipprotocol, ::core::mem::transmute(allowed), ::core::mem::transmute(restricted)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn IsIcmpTypeAllowed<'a, P0>(&self, ipversion: NET_FW_IP_VERSION, localaddress: P0, r#type: u8, allowed: &mut super::super::System::Com::VARIANT, restricted: &mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).IsIcmpTypeAllowed)(::windows::core::Interface::as_raw(self), ipversion, localaddress.into().abi(), r#type, ::core::mem::transmute(allowed), ::core::mem::transmute(restricted)).ok() + pub unsafe fn IsIcmpTypeAllowed(&self, ipversion: NET_FW_IP_VERSION, localaddress: &::windows::core::BSTR, r#type: u8, allowed: &mut super::super::System::Com::VARIANT, restricted: &mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).IsIcmpTypeAllowed)(::windows::core::Interface::as_raw(self), ipversion, ::core::mem::transmute_copy(localaddress), r#type, ::core::mem::transmute(allowed), ::core::mem::transmute(restricted)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1811,11 +1671,11 @@ pub struct INetFwMgr_Vtbl { pub CurrentProfileType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, profiletype: *mut NET_FW_PROFILE_TYPE) -> ::windows::core::HRESULT, pub RestoreDefaults: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub IsPortAllowed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, imagefilename: ::core::mem::ManuallyDrop, ipversion: NET_FW_IP_VERSION, portnumber: i32, localaddress: ::core::mem::ManuallyDrop, ipprotocol: NET_FW_IP_PROTOCOL, allowed: *mut super::super::System::Com::VARIANT, restricted: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub IsPortAllowed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, imagefilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ipversion: NET_FW_IP_VERSION, portnumber: i32, localaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ipprotocol: NET_FW_IP_PROTOCOL, allowed: *mut super::super::System::Com::VARIANT, restricted: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] IsPortAllowed: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub IsIcmpTypeAllowed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ipversion: NET_FW_IP_VERSION, localaddress: ::core::mem::ManuallyDrop, r#type: u8, allowed: *mut super::super::System::Com::VARIANT, restricted: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub IsIcmpTypeAllowed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ipversion: NET_FW_IP_VERSION, localaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, r#type: u8, allowed: *mut super::super::System::Com::VARIANT, restricted: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] IsIcmpTypeAllowed: usize, } @@ -1825,19 +1685,12 @@ pub struct INetFwMgr_Vtbl { pub struct INetFwOpenPort(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl INetFwOpenPort { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } pub unsafe fn IpVersion(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1867,19 +1720,12 @@ impl INetFwOpenPort { pub unsafe fn SetScope(&self, scope: NET_FW_SCOPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetScope)(::windows::core::Interface::as_raw(self), scope).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoteAddresses(&self) -> ::windows::core::Result { + pub unsafe fn RemoteAddresses(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RemoteAddresses)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RemoteAddresses)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRemoteAddresses<'a, P0>(&self, remoteaddrs: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetRemoteAddresses)(::windows::core::Interface::as_raw(self), remoteaddrs.into().abi()).ok() + pub unsafe fn SetRemoteAddresses(&self, remoteaddrs: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetRemoteAddresses)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(remoteaddrs)).ok() } pub unsafe fn Enabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1959,14 +1805,8 @@ unsafe impl ::windows::core::Interface for INetFwOpenPort { #[doc(hidden)] pub struct INetFwOpenPort_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub IpVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ipversion: *mut NET_FW_IP_VERSION) -> ::windows::core::HRESULT, pub SetIpVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ipversion: NET_FW_IP_VERSION) -> ::windows::core::HRESULT, pub Protocol: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ipprotocol: *mut NET_FW_IP_PROTOCOL) -> ::windows::core::HRESULT, @@ -1975,14 +1815,8 @@ pub struct INetFwOpenPort_Vtbl { pub SetPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, portnumber: i32) -> ::windows::core::HRESULT, pub Scope: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scope: *mut NET_FW_SCOPE) -> ::windows::core::HRESULT, pub SetScope: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scope: NET_FW_SCOPE) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub RemoteAddresses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, remoteaddrs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RemoteAddresses: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetRemoteAddresses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, remoteaddrs: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetRemoteAddresses: usize, + pub RemoteAddresses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, remoteaddrs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetRemoteAddresses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, remoteaddrs: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Enabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enabled: *mut i16) -> ::windows::core::HRESULT, pub SetEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enabled: i16) -> ::windows::core::HRESULT, pub BuiltIn: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, builtin: *mut i16) -> ::windows::core::HRESULT, @@ -2255,22 +2089,12 @@ impl INetFwPolicy2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ServiceRestriction)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EnableRuleGroup<'a, P0>(&self, profiletypesbitmask: i32, group: P0, enable: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).EnableRuleGroup)(::windows::core::Interface::as_raw(self), profiletypesbitmask, group.into().abi(), enable).ok() + pub unsafe fn EnableRuleGroup(&self, profiletypesbitmask: i32, group: &::windows::core::BSTR, enable: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).EnableRuleGroup)(::windows::core::Interface::as_raw(self), profiletypesbitmask, ::core::mem::transmute_copy(group), enable).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsRuleGroupEnabled<'a, P0>(&self, profiletypesbitmask: i32, group: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsRuleGroupEnabled(&self, profiletypesbitmask: i32, group: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).IsRuleGroupEnabled)(::windows::core::Interface::as_raw(self), profiletypesbitmask, group.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).IsRuleGroupEnabled)(::windows::core::Interface::as_raw(self), profiletypesbitmask, ::core::mem::transmute_copy(group), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn RestoreLocalFirewallDefaults(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RestoreLocalFirewallDefaults)(::windows::core::Interface::as_raw(self)).ok() @@ -2289,14 +2113,9 @@ impl INetFwPolicy2 { pub unsafe fn put_DefaultOutboundAction(&self, profiletype: NET_FW_PROFILE_TYPE2, action: NET_FW_ACTION) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).put_DefaultOutboundAction)(::windows::core::Interface::as_raw(self), profiletype, action).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_IsRuleGroupCurrentlyEnabled<'a, P0>(&self, group: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn get_IsRuleGroupCurrentlyEnabled(&self, group: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_IsRuleGroupCurrentlyEnabled)(::windows::core::Interface::as_raw(self), group.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_IsRuleGroupCurrentlyEnabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(group), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn LocalPolicyModifyState(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2394,23 +2213,14 @@ pub struct INetFwPolicy2_Vtbl { pub ServiceRestriction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, servicerestriction: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] ServiceRestriction: usize, - #[cfg(feature = "Win32_Foundation")] - pub EnableRuleGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, profiletypesbitmask: i32, group: ::core::mem::ManuallyDrop, enable: i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EnableRuleGroup: usize, - #[cfg(feature = "Win32_Foundation")] - pub IsRuleGroupEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, profiletypesbitmask: i32, group: ::core::mem::ManuallyDrop, enabled: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - IsRuleGroupEnabled: usize, + pub EnableRuleGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, profiletypesbitmask: i32, group: ::core::mem::ManuallyDrop<::windows::core::BSTR>, enable: i16) -> ::windows::core::HRESULT, + pub IsRuleGroupEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, profiletypesbitmask: i32, group: ::core::mem::ManuallyDrop<::windows::core::BSTR>, enabled: *mut i16) -> ::windows::core::HRESULT, pub RestoreLocalFirewallDefaults: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub get_DefaultInboundAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, profiletype: NET_FW_PROFILE_TYPE2, action: *mut NET_FW_ACTION) -> ::windows::core::HRESULT, pub put_DefaultInboundAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, profiletype: NET_FW_PROFILE_TYPE2, action: NET_FW_ACTION) -> ::windows::core::HRESULT, pub get_DefaultOutboundAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, profiletype: NET_FW_PROFILE_TYPE2, action: *mut NET_FW_ACTION) -> ::windows::core::HRESULT, pub put_DefaultOutboundAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, profiletype: NET_FW_PROFILE_TYPE2, action: NET_FW_ACTION) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub get_IsRuleGroupCurrentlyEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, group: ::core::mem::ManuallyDrop, enabled: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_IsRuleGroupCurrentlyEnabled: usize, + pub get_IsRuleGroupCurrentlyEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, group: ::core::mem::ManuallyDrop<::windows::core::BSTR>, enabled: *mut i16) -> ::windows::core::HRESULT, pub LocalPolicyModifyState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, modifystate: *mut NET_FW_MODIFY_STATE) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`, `\"Win32_System_Com\"`*"] @@ -2433,25 +2243,16 @@ impl INetFwProduct { { (::windows::core::Interface::vtable(self).SetRuleCategories)(::windows::core::Interface::as_raw(self), rulecategories.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisplayName(&self) -> ::windows::core::Result { + pub unsafe fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDisplayName<'a, P0>(&self, displayname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDisplayName)(::windows::core::Interface::as_raw(self), displayname.into().abi()).ok() + pub unsafe fn SetDisplayName(&self, displayname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(displayname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PathToSignedProductExe(&self) -> ::windows::core::Result { + pub unsafe fn PathToSignedProductExe(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PathToSignedProductExe)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PathToSignedProductExe)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -2528,18 +2329,9 @@ pub struct INetFwProduct_Vtbl { pub SetRuleCategories: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rulecategories: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SetRuleCategories: usize, - #[cfg(feature = "Win32_Foundation")] - pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, displayname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DisplayName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, displayname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDisplayName: usize, - #[cfg(feature = "Win32_Foundation")] - pub PathToSignedProductExe: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PathToSignedProductExe: usize, + pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, displayname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, displayname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub PathToSignedProductExe: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2833,19 +2625,12 @@ impl INetFwRemoteAdminSettings { pub unsafe fn SetScope(&self, scope: NET_FW_SCOPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetScope)(::windows::core::Interface::as_raw(self), scope).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoteAddresses(&self) -> ::windows::core::Result { + pub unsafe fn RemoteAddresses(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RemoteAddresses)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RemoteAddresses)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRemoteAddresses<'a, P0>(&self, remoteaddrs: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetRemoteAddresses)(::windows::core::Interface::as_raw(self), remoteaddrs.into().abi()).ok() + pub unsafe fn SetRemoteAddresses(&self, remoteaddrs: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetRemoteAddresses)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(remoteaddrs)).ok() } pub unsafe fn Enabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2925,14 +2710,8 @@ pub struct INetFwRemoteAdminSettings_Vtbl { pub SetIpVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ipversion: NET_FW_IP_VERSION) -> ::windows::core::HRESULT, pub Scope: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scope: *mut NET_FW_SCOPE) -> ::windows::core::HRESULT, pub SetScope: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scope: NET_FW_SCOPE) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub RemoteAddresses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, remoteaddrs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RemoteAddresses: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetRemoteAddresses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, remoteaddrs: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetRemoteAddresses: usize, + pub RemoteAddresses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, remoteaddrs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetRemoteAddresses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, remoteaddrs: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Enabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enabled: *mut i16) -> ::windows::core::HRESULT, pub SetEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enabled: i16) -> ::windows::core::HRESULT, } @@ -2942,61 +2721,33 @@ pub struct INetFwRemoteAdminSettings_Vtbl { pub struct INetFwRule(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl INetFwRule { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, desc: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), desc.into().abi()).ok() + pub unsafe fn SetDescription(&self, desc: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(desc)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ApplicationName(&self) -> ::windows::core::Result { + pub unsafe fn ApplicationName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ApplicationName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ApplicationName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetApplicationName<'a, P0>(&self, imagefilename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetApplicationName)(::windows::core::Interface::as_raw(self), imagefilename.into().abi()).ok() + pub unsafe fn SetApplicationName(&self, imagefilename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetApplicationName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(imagefilename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ServiceName(&self) -> ::windows::core::Result { + pub unsafe fn ServiceName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ServiceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ServiceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetServiceName<'a, P0>(&self, servicename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetServiceName)(::windows::core::Interface::as_raw(self), servicename.into().abi()).ok() + pub unsafe fn SetServiceName(&self, servicename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetServiceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(servicename)).ok() } pub unsafe fn Protocol(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3005,75 +2756,40 @@ impl INetFwRule { pub unsafe fn SetProtocol(&self, protocol: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetProtocol)(::windows::core::Interface::as_raw(self), protocol).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LocalPorts(&self) -> ::windows::core::Result { + pub unsafe fn LocalPorts(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LocalPorts)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LocalPorts)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLocalPorts<'a, P0>(&self, portnumbers: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetLocalPorts)(::windows::core::Interface::as_raw(self), portnumbers.into().abi()).ok() + pub unsafe fn SetLocalPorts(&self, portnumbers: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetLocalPorts)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(portnumbers)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemotePorts(&self) -> ::windows::core::Result { + pub unsafe fn RemotePorts(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RemotePorts)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RemotePorts)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRemotePorts<'a, P0>(&self, portnumbers: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetRemotePorts)(::windows::core::Interface::as_raw(self), portnumbers.into().abi()).ok() + pub unsafe fn SetRemotePorts(&self, portnumbers: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetRemotePorts)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(portnumbers)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LocalAddresses(&self) -> ::windows::core::Result { + pub unsafe fn LocalAddresses(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LocalAddresses)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LocalAddresses)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLocalAddresses<'a, P0>(&self, localaddrs: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetLocalAddresses)(::windows::core::Interface::as_raw(self), localaddrs.into().abi()).ok() + pub unsafe fn SetLocalAddresses(&self, localaddrs: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetLocalAddresses)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(localaddrs)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoteAddresses(&self) -> ::windows::core::Result { + pub unsafe fn RemoteAddresses(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RemoteAddresses)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RemoteAddresses)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRemoteAddresses<'a, P0>(&self, remoteaddrs: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetRemoteAddresses)(::windows::core::Interface::as_raw(self), remoteaddrs.into().abi()).ok() + pub unsafe fn SetRemoteAddresses(&self, remoteaddrs: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetRemoteAddresses)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(remoteaddrs)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IcmpTypesAndCodes(&self) -> ::windows::core::Result { + pub unsafe fn IcmpTypesAndCodes(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).IcmpTypesAndCodes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).IcmpTypesAndCodes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetIcmpTypesAndCodes<'a, P0>(&self, icmptypesandcodes: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetIcmpTypesAndCodes)(::windows::core::Interface::as_raw(self), icmptypesandcodes.into().abi()).ok() + pub unsafe fn SetIcmpTypesAndCodes(&self, icmptypesandcodes: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetIcmpTypesAndCodes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(icmptypesandcodes)).ok() } pub unsafe fn Direction(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3096,19 +2812,12 @@ impl INetFwRule { { (::windows::core::Interface::vtable(self).SetInterfaces)(::windows::core::Interface::as_raw(self), interfaces.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InterfaceTypes(&self) -> ::windows::core::Result { + pub unsafe fn InterfaceTypes(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).InterfaceTypes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).InterfaceTypes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetInterfaceTypes<'a, P0>(&self, interfacetypes: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetInterfaceTypes)(::windows::core::Interface::as_raw(self), interfacetypes.into().abi()).ok() + pub unsafe fn SetInterfaceTypes(&self, interfacetypes: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetInterfaceTypes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(interfacetypes)).ok() } pub unsafe fn Enabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3117,19 +2826,12 @@ impl INetFwRule { pub unsafe fn SetEnabled(&self, enabled: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetEnabled)(::windows::core::Interface::as_raw(self), enabled).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Grouping(&self) -> ::windows::core::Result { + pub unsafe fn Grouping(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Grouping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Grouping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetGrouping<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetGrouping)(::windows::core::Interface::as_raw(self), context.into().abi()).ok() + pub unsafe fn SetGrouping(&self, context: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetGrouping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(context)).ok() } pub unsafe fn Profiles(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3219,80 +2921,26 @@ unsafe impl ::windows::core::Interface for INetFwRule { #[doc(hidden)] pub struct INetFwRule_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, desc: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, desc: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDescription: usize, - #[cfg(feature = "Win32_Foundation")] - pub ApplicationName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, imagefilename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ApplicationName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetApplicationName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, imagefilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetApplicationName: usize, - #[cfg(feature = "Win32_Foundation")] - pub ServiceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, servicename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ServiceName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetServiceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, servicename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetServiceName: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, desc: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, desc: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ApplicationName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, imagefilename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetApplicationName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, imagefilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ServiceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, servicename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetServiceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, servicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Protocol: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, protocol: *mut i32) -> ::windows::core::HRESULT, pub SetProtocol: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, protocol: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub LocalPorts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, portnumbers: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LocalPorts: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetLocalPorts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, portnumbers: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetLocalPorts: usize, - #[cfg(feature = "Win32_Foundation")] - pub RemotePorts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, portnumbers: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RemotePorts: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetRemotePorts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, portnumbers: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetRemotePorts: usize, - #[cfg(feature = "Win32_Foundation")] - pub LocalAddresses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, localaddrs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LocalAddresses: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetLocalAddresses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, localaddrs: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetLocalAddresses: usize, - #[cfg(feature = "Win32_Foundation")] - pub RemoteAddresses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, remoteaddrs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RemoteAddresses: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetRemoteAddresses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, remoteaddrs: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetRemoteAddresses: usize, - #[cfg(feature = "Win32_Foundation")] - pub IcmpTypesAndCodes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, icmptypesandcodes: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - IcmpTypesAndCodes: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetIcmpTypesAndCodes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, icmptypesandcodes: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetIcmpTypesAndCodes: usize, + pub LocalPorts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, portnumbers: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetLocalPorts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, portnumbers: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub RemotePorts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, portnumbers: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetRemotePorts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, portnumbers: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub LocalAddresses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, localaddrs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetLocalAddresses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, localaddrs: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub RemoteAddresses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, remoteaddrs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetRemoteAddresses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, remoteaddrs: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub IcmpTypesAndCodes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, icmptypesandcodes: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetIcmpTypesAndCodes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, icmptypesandcodes: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Direction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dir: *mut NET_FW_RULE_DIRECTION) -> ::windows::core::HRESULT, pub SetDirection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dir: NET_FW_RULE_DIRECTION) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3303,24 +2951,12 @@ pub struct INetFwRule_Vtbl { pub SetInterfaces: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, interfaces: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SetInterfaces: usize, - #[cfg(feature = "Win32_Foundation")] - pub InterfaceTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, interfacetypes: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InterfaceTypes: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetInterfaceTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, interfacetypes: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetInterfaceTypes: usize, + pub InterfaceTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, interfacetypes: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetInterfaceTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, interfacetypes: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Enabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enabled: *mut i16) -> ::windows::core::HRESULT, pub SetEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enabled: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Grouping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Grouping: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetGrouping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetGrouping: usize, + pub Grouping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetGrouping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Profiles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, profiletypesbitmask: *mut i32) -> ::windows::core::HRESULT, pub SetProfiles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, profiletypesbitmask: i32) -> ::windows::core::HRESULT, pub EdgeTraversal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enabled: *mut i16) -> ::windows::core::HRESULT, @@ -3334,61 +2970,33 @@ pub struct INetFwRule_Vtbl { pub struct INetFwRule2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl INetFwRule2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, desc: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), desc.into().abi()).ok() + pub unsafe fn SetDescription(&self, desc: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(desc)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ApplicationName(&self) -> ::windows::core::Result { + pub unsafe fn ApplicationName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ApplicationName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ApplicationName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetApplicationName<'a, P0>(&self, imagefilename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetApplicationName)(::windows::core::Interface::as_raw(self), imagefilename.into().abi()).ok() + pub unsafe fn SetApplicationName(&self, imagefilename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetApplicationName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(imagefilename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ServiceName(&self) -> ::windows::core::Result { + pub unsafe fn ServiceName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ServiceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ServiceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetServiceName<'a, P0>(&self, servicename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetServiceName)(::windows::core::Interface::as_raw(self), servicename.into().abi()).ok() + pub unsafe fn SetServiceName(&self, servicename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetServiceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(servicename)).ok() } pub unsafe fn Protocol(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3397,75 +3005,40 @@ impl INetFwRule2 { pub unsafe fn SetProtocol(&self, protocol: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetProtocol)(::windows::core::Interface::as_raw(self), protocol).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LocalPorts(&self) -> ::windows::core::Result { + pub unsafe fn LocalPorts(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.LocalPorts)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.LocalPorts)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLocalPorts<'a, P0>(&self, portnumbers: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetLocalPorts)(::windows::core::Interface::as_raw(self), portnumbers.into().abi()).ok() + pub unsafe fn SetLocalPorts(&self, portnumbers: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetLocalPorts)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(portnumbers)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemotePorts(&self) -> ::windows::core::Result { + pub unsafe fn RemotePorts(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.RemotePorts)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.RemotePorts)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRemotePorts<'a, P0>(&self, portnumbers: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetRemotePorts)(::windows::core::Interface::as_raw(self), portnumbers.into().abi()).ok() + pub unsafe fn SetRemotePorts(&self, portnumbers: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetRemotePorts)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(portnumbers)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LocalAddresses(&self) -> ::windows::core::Result { + pub unsafe fn LocalAddresses(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.LocalAddresses)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.LocalAddresses)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLocalAddresses<'a, P0>(&self, localaddrs: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetLocalAddresses)(::windows::core::Interface::as_raw(self), localaddrs.into().abi()).ok() + pub unsafe fn SetLocalAddresses(&self, localaddrs: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetLocalAddresses)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(localaddrs)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoteAddresses(&self) -> ::windows::core::Result { + pub unsafe fn RemoteAddresses(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.RemoteAddresses)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.RemoteAddresses)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRemoteAddresses<'a, P0>(&self, remoteaddrs: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetRemoteAddresses)(::windows::core::Interface::as_raw(self), remoteaddrs.into().abi()).ok() + pub unsafe fn SetRemoteAddresses(&self, remoteaddrs: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetRemoteAddresses)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(remoteaddrs)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IcmpTypesAndCodes(&self) -> ::windows::core::Result { + pub unsafe fn IcmpTypesAndCodes(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.IcmpTypesAndCodes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.IcmpTypesAndCodes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetIcmpTypesAndCodes<'a, P0>(&self, icmptypesandcodes: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetIcmpTypesAndCodes)(::windows::core::Interface::as_raw(self), icmptypesandcodes.into().abi()).ok() + pub unsafe fn SetIcmpTypesAndCodes(&self, icmptypesandcodes: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetIcmpTypesAndCodes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(icmptypesandcodes)).ok() } pub unsafe fn Direction(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3488,19 +3061,12 @@ impl INetFwRule2 { { (::windows::core::Interface::vtable(self).base__.SetInterfaces)(::windows::core::Interface::as_raw(self), interfaces.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InterfaceTypes(&self) -> ::windows::core::Result { + pub unsafe fn InterfaceTypes(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.InterfaceTypes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.InterfaceTypes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetInterfaceTypes<'a, P0>(&self, interfacetypes: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetInterfaceTypes)(::windows::core::Interface::as_raw(self), interfacetypes.into().abi()).ok() + pub unsafe fn SetInterfaceTypes(&self, interfacetypes: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetInterfaceTypes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(interfacetypes)).ok() } pub unsafe fn Enabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3509,19 +3075,12 @@ impl INetFwRule2 { pub unsafe fn SetEnabled(&self, enabled: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetEnabled)(::windows::core::Interface::as_raw(self), enabled).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Grouping(&self) -> ::windows::core::Result { + pub unsafe fn Grouping(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Grouping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Grouping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetGrouping<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetGrouping)(::windows::core::Interface::as_raw(self), context.into().abi()).ok() + pub unsafe fn SetGrouping(&self, context: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetGrouping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(context)).ok() } pub unsafe fn Profiles(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3645,61 +3204,33 @@ pub struct INetFwRule2_Vtbl { pub struct INetFwRule3(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl INetFwRule3 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, desc: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetDescription)(::windows::core::Interface::as_raw(self), desc.into().abi()).ok() + pub unsafe fn SetDescription(&self, desc: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(desc)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ApplicationName(&self) -> ::windows::core::Result { + pub unsafe fn ApplicationName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.ApplicationName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.ApplicationName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetApplicationName<'a, P0>(&self, imagefilename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetApplicationName)(::windows::core::Interface::as_raw(self), imagefilename.into().abi()).ok() + pub unsafe fn SetApplicationName(&self, imagefilename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetApplicationName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(imagefilename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ServiceName(&self) -> ::windows::core::Result { + pub unsafe fn ServiceName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.ServiceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.ServiceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetServiceName<'a, P0>(&self, servicename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetServiceName)(::windows::core::Interface::as_raw(self), servicename.into().abi()).ok() + pub unsafe fn SetServiceName(&self, servicename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetServiceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(servicename)).ok() } pub unsafe fn Protocol(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3708,75 +3239,40 @@ impl INetFwRule3 { pub unsafe fn SetProtocol(&self, protocol: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.SetProtocol)(::windows::core::Interface::as_raw(self), protocol).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LocalPorts(&self) -> ::windows::core::Result { + pub unsafe fn LocalPorts(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.LocalPorts)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.LocalPorts)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLocalPorts<'a, P0>(&self, portnumbers: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetLocalPorts)(::windows::core::Interface::as_raw(self), portnumbers.into().abi()).ok() + pub unsafe fn SetLocalPorts(&self, portnumbers: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetLocalPorts)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(portnumbers)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemotePorts(&self) -> ::windows::core::Result { + pub unsafe fn RemotePorts(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.RemotePorts)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.RemotePorts)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRemotePorts<'a, P0>(&self, portnumbers: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetRemotePorts)(::windows::core::Interface::as_raw(self), portnumbers.into().abi()).ok() + pub unsafe fn SetRemotePorts(&self, portnumbers: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetRemotePorts)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(portnumbers)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LocalAddresses(&self) -> ::windows::core::Result { + pub unsafe fn LocalAddresses(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.LocalAddresses)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.LocalAddresses)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLocalAddresses<'a, P0>(&self, localaddrs: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetLocalAddresses)(::windows::core::Interface::as_raw(self), localaddrs.into().abi()).ok() + pub unsafe fn SetLocalAddresses(&self, localaddrs: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetLocalAddresses)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(localaddrs)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoteAddresses(&self) -> ::windows::core::Result { + pub unsafe fn RemoteAddresses(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.RemoteAddresses)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.RemoteAddresses)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRemoteAddresses<'a, P0>(&self, remoteaddrs: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetRemoteAddresses)(::windows::core::Interface::as_raw(self), remoteaddrs.into().abi()).ok() + pub unsafe fn SetRemoteAddresses(&self, remoteaddrs: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetRemoteAddresses)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(remoteaddrs)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IcmpTypesAndCodes(&self) -> ::windows::core::Result { + pub unsafe fn IcmpTypesAndCodes(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.IcmpTypesAndCodes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.IcmpTypesAndCodes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetIcmpTypesAndCodes<'a, P0>(&self, icmptypesandcodes: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetIcmpTypesAndCodes)(::windows::core::Interface::as_raw(self), icmptypesandcodes.into().abi()).ok() + pub unsafe fn SetIcmpTypesAndCodes(&self, icmptypesandcodes: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetIcmpTypesAndCodes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(icmptypesandcodes)).ok() } pub unsafe fn Direction(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3799,19 +3295,12 @@ impl INetFwRule3 { { (::windows::core::Interface::vtable(self).base__.base__.SetInterfaces)(::windows::core::Interface::as_raw(self), interfaces.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InterfaceTypes(&self) -> ::windows::core::Result { + pub unsafe fn InterfaceTypes(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.InterfaceTypes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.InterfaceTypes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetInterfaceTypes<'a, P0>(&self, interfacetypes: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetInterfaceTypes)(::windows::core::Interface::as_raw(self), interfacetypes.into().abi()).ok() + pub unsafe fn SetInterfaceTypes(&self, interfacetypes: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetInterfaceTypes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(interfacetypes)).ok() } pub unsafe fn Enabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3820,19 +3309,12 @@ impl INetFwRule3 { pub unsafe fn SetEnabled(&self, enabled: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.SetEnabled)(::windows::core::Interface::as_raw(self), enabled).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Grouping(&self) -> ::windows::core::Result { + pub unsafe fn Grouping(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Grouping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Grouping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetGrouping<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetGrouping)(::windows::core::Interface::as_raw(self), context.into().abi()).ok() + pub unsafe fn SetGrouping(&self, context: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetGrouping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(context)).ok() } pub unsafe fn Profiles(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3862,75 +3344,40 @@ impl INetFwRule3 { pub unsafe fn SetEdgeTraversalOptions(&self, loptions: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetEdgeTraversalOptions)(::windows::core::Interface::as_raw(self), loptions).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LocalAppPackageId(&self) -> ::windows::core::Result { + pub unsafe fn LocalAppPackageId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LocalAppPackageId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LocalAppPackageId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLocalAppPackageId<'a, P0>(&self, wszpackageid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetLocalAppPackageId)(::windows::core::Interface::as_raw(self), wszpackageid.into().abi()).ok() + pub unsafe fn SetLocalAppPackageId(&self, wszpackageid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetLocalAppPackageId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(wszpackageid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LocalUserOwner(&self) -> ::windows::core::Result { + pub unsafe fn LocalUserOwner(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LocalUserOwner)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LocalUserOwner)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLocalUserOwner<'a, P0>(&self, wszuserowner: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetLocalUserOwner)(::windows::core::Interface::as_raw(self), wszuserowner.into().abi()).ok() + pub unsafe fn SetLocalUserOwner(&self, wszuserowner: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetLocalUserOwner)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(wszuserowner)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LocalUserAuthorizedList(&self) -> ::windows::core::Result { + pub unsafe fn LocalUserAuthorizedList(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LocalUserAuthorizedList)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LocalUserAuthorizedList)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLocalUserAuthorizedList<'a, P0>(&self, wszuserauthlist: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetLocalUserAuthorizedList)(::windows::core::Interface::as_raw(self), wszuserauthlist.into().abi()).ok() + pub unsafe fn SetLocalUserAuthorizedList(&self, wszuserauthlist: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetLocalUserAuthorizedList)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(wszuserauthlist)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoteUserAuthorizedList(&self) -> ::windows::core::Result { + pub unsafe fn RemoteUserAuthorizedList(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RemoteUserAuthorizedList)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RemoteUserAuthorizedList)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRemoteUserAuthorizedList<'a, P0>(&self, wszuserauthlist: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetRemoteUserAuthorizedList)(::windows::core::Interface::as_raw(self), wszuserauthlist.into().abi()).ok() + pub unsafe fn SetRemoteUserAuthorizedList(&self, wszuserauthlist: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetRemoteUserAuthorizedList)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(wszuserauthlist)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoteMachineAuthorizedList(&self) -> ::windows::core::Result { + pub unsafe fn RemoteMachineAuthorizedList(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RemoteMachineAuthorizedList)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RemoteMachineAuthorizedList)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRemoteMachineAuthorizedList<'a, P0>(&self, wszuserauthlist: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetRemoteMachineAuthorizedList)(::windows::core::Interface::as_raw(self), wszuserauthlist.into().abi()).ok() + pub unsafe fn SetRemoteMachineAuthorizedList(&self, wszuserauthlist: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetRemoteMachineAuthorizedList)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(wszuserauthlist)).ok() } pub unsafe fn SecureFlags(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4042,46 +3489,16 @@ unsafe impl ::windows::core::Interface for INetFwRule3 { #[doc(hidden)] pub struct INetFwRule3_Vtbl { pub base__: INetFwRule2_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub LocalAppPackageId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszpackageid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LocalAppPackageId: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetLocalAppPackageId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszpackageid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetLocalAppPackageId: usize, - #[cfg(feature = "Win32_Foundation")] - pub LocalUserOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszuserowner: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LocalUserOwner: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetLocalUserOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszuserowner: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetLocalUserOwner: usize, - #[cfg(feature = "Win32_Foundation")] - pub LocalUserAuthorizedList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszuserauthlist: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LocalUserAuthorizedList: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetLocalUserAuthorizedList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszuserauthlist: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetLocalUserAuthorizedList: usize, - #[cfg(feature = "Win32_Foundation")] - pub RemoteUserAuthorizedList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszuserauthlist: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RemoteUserAuthorizedList: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetRemoteUserAuthorizedList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszuserauthlist: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetRemoteUserAuthorizedList: usize, - #[cfg(feature = "Win32_Foundation")] - pub RemoteMachineAuthorizedList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszuserauthlist: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RemoteMachineAuthorizedList: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetRemoteMachineAuthorizedList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszuserauthlist: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetRemoteMachineAuthorizedList: usize, + pub LocalAppPackageId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszpackageid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetLocalAppPackageId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszpackageid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub LocalUserOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszuserowner: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetLocalUserOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszuserowner: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub LocalUserAuthorizedList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszuserauthlist: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetLocalUserAuthorizedList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszuserauthlist: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub RemoteUserAuthorizedList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszuserauthlist: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetRemoteUserAuthorizedList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszuserauthlist: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub RemoteMachineAuthorizedList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszuserauthlist: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetRemoteMachineAuthorizedList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszuserauthlist: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SecureFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, loptions: *mut i32) -> ::windows::core::HRESULT, pub SetSecureFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, loptions: i32) -> ::windows::core::HRESULT, } @@ -4103,22 +3520,14 @@ impl INetFwRules { { (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), rule.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Remove<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn Remove(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Item<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Item(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Item)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Item)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4196,13 +3605,10 @@ pub struct INetFwRules_Vtbl { pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rule: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Add: usize, - #[cfg(feature = "Win32_Foundation")] - pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Remove: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, rule: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, rule: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Item: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } @@ -4212,11 +3618,9 @@ pub struct INetFwRules_Vtbl { pub struct INetFwService(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl INetFwService { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Type(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4240,19 +3644,12 @@ impl INetFwService { pub unsafe fn SetScope(&self, scope: NET_FW_SCOPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetScope)(::windows::core::Interface::as_raw(self), scope).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoteAddresses(&self) -> ::windows::core::Result { + pub unsafe fn RemoteAddresses(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RemoteAddresses)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RemoteAddresses)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRemoteAddresses<'a, P0>(&self, remoteaddrs: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetRemoteAddresses)(::windows::core::Interface::as_raw(self), remoteaddrs.into().abi()).ok() + pub unsafe fn SetRemoteAddresses(&self, remoteaddrs: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetRemoteAddresses)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(remoteaddrs)).ok() } pub unsafe fn Enabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4334,24 +3731,15 @@ unsafe impl ::windows::core::Interface for INetFwService { #[doc(hidden)] pub struct INetFwService_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: *mut NET_FW_SERVICE_TYPE) -> ::windows::core::HRESULT, pub Customized: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, customized: *mut i16) -> ::windows::core::HRESULT, pub IpVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ipversion: *mut NET_FW_IP_VERSION) -> ::windows::core::HRESULT, pub SetIpVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ipversion: NET_FW_IP_VERSION) -> ::windows::core::HRESULT, pub Scope: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scope: *mut NET_FW_SCOPE) -> ::windows::core::HRESULT, pub SetScope: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scope: NET_FW_SCOPE) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub RemoteAddresses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, remoteaddrs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RemoteAddresses: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetRemoteAddresses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, remoteaddrs: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetRemoteAddresses: usize, + pub RemoteAddresses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, remoteaddrs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetRemoteAddresses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, remoteaddrs: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Enabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enabled: *mut i16) -> ::windows::core::HRESULT, pub SetEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enabled: i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] @@ -4365,24 +3753,12 @@ pub struct INetFwService_Vtbl { pub struct INetFwServiceRestriction(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl INetFwServiceRestriction { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RestrictService<'a, P0, P1>(&self, servicename: P0, appname: P1, restrictservice: i16, servicesidrestricted: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).RestrictService)(::windows::core::Interface::as_raw(self), servicename.into().abi(), appname.into().abi(), restrictservice, servicesidrestricted).ok() + pub unsafe fn RestrictService(&self, servicename: &::windows::core::BSTR, appname: &::windows::core::BSTR, restrictservice: i16, servicesidrestricted: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).RestrictService)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(servicename), ::core::mem::transmute_copy(appname), restrictservice, servicesidrestricted).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ServiceRestricted<'a, P0, P1>(&self, servicename: P0, appname: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn ServiceRestricted(&self, servicename: &::windows::core::BSTR, appname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ServiceRestricted)(::windows::core::Interface::as_raw(self), servicename.into().abi(), appname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ServiceRestricted)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(servicename), ::core::mem::transmute_copy(appname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4457,14 +3833,8 @@ unsafe impl ::windows::core::Interface for INetFwServiceRestriction { #[doc(hidden)] pub struct INetFwServiceRestriction_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub RestrictService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, servicename: ::core::mem::ManuallyDrop, appname: ::core::mem::ManuallyDrop, restrictservice: i16, servicesidrestricted: i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RestrictService: usize, - #[cfg(feature = "Win32_Foundation")] - pub ServiceRestricted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, servicename: ::core::mem::ManuallyDrop, appname: ::core::mem::ManuallyDrop, servicerestricted: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ServiceRestricted: usize, + pub RestrictService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, servicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, appname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, restrictservice: i16, servicesidrestricted: i16) -> ::windows::core::HRESULT, + pub ServiceRestricted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, servicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, appname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, servicerestricted: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Rules: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rules: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -4600,15 +3970,11 @@ impl INetSharingConfiguration { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).get_EnumPortMappings)(::windows::core::Interface::as_raw(self), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn AddPortMapping<'a, P0, P1>(&self, bstrname: P0, ucipprotocol: u8, usexternalport: u16, usinternalport: u16, dwoptions: u32, bstrtargetnameoripaddress: P1, etargettype: ICS_TARGETTYPE) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn AddPortMapping(&self, bstrname: &::windows::core::BSTR, ucipprotocol: u8, usexternalport: u16, usinternalport: u16, dwoptions: u32, bstrtargetnameoripaddress: &::windows::core::BSTR, etargettype: ICS_TARGETTYPE) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AddPortMapping)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ucipprotocol, usexternalport, usinternalport, dwoptions, bstrtargetnameoripaddress.into().abi(), etargettype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AddPortMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ucipprotocol, usexternalport, usinternalport, dwoptions, ::core::mem::transmute_copy(bstrtargetnameoripaddress), etargettype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4696,9 +4062,9 @@ pub struct INetSharingConfiguration_Vtbl { pub get_EnumPortMappings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: SHARINGCONNECTION_ENUM_FLAGS, ppcoll: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] get_EnumPortMappings: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub AddPortMapping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, ucipprotocol: u8, usexternalport: u16, usinternalport: u16, dwoptions: u32, bstrtargetnameoripaddress: ::core::mem::ManuallyDrop, etargettype: ICS_TARGETTYPE, ppmapping: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub AddPortMapping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ucipprotocol: u8, usexternalport: u16, usinternalport: u16, dwoptions: u32, bstrtargetnameoripaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, etargettype: ICS_TARGETTYPE, ppmapping: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] AddPortMapping: usize, #[cfg(feature = "Win32_System_Com")] pub RemovePortMapping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmapping: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -5110,11 +4476,9 @@ pub struct INetSharingPortMappingCollection_Vtbl { pub struct INetSharingPortMappingProps(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl INetSharingPortMappingProps { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn IPProtocol(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5132,17 +4496,13 @@ impl INetSharingPortMappingProps { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Options)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TargetName(&self) -> ::windows::core::Result { + pub unsafe fn TargetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TargetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TargetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TargetIPAddress(&self) -> ::windows::core::Result { + pub unsafe fn TargetIPAddress(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TargetIPAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TargetIPAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Enabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5215,22 +4575,13 @@ unsafe impl ::windows::core::Interface for INetSharingPortMappingProps { #[doc(hidden)] pub struct INetSharingPortMappingProps_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub IPProtocol: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pucipprot: *mut u8) -> ::windows::core::HRESULT, pub ExternalPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pusport: *mut i32) -> ::windows::core::HRESULT, pub InternalPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pusport: *mut i32) -> ::windows::core::HRESULT, pub Options: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwoptions: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub TargetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtargetname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TargetName: usize, - #[cfg(feature = "Win32_Foundation")] - pub TargetIPAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtargetipaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TargetIPAddress: usize, + pub TargetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtargetname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub TargetIPAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtargetipaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Enabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbool: *mut i16) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`, `\"Win32_System_Com\"`*"] @@ -5407,11 +4758,9 @@ pub struct INetSharingPublicConnectionCollection_Vtbl { pub struct IStaticPortMapping(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IStaticPortMapping { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExternalIPAddress(&self) -> ::windows::core::Result { + pub unsafe fn ExternalIPAddress(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ExternalIPAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ExternalIPAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn ExternalPort(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5421,46 +4770,30 @@ impl IStaticPortMapping { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).InternalPort)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Protocol(&self) -> ::windows::core::Result { + pub unsafe fn Protocol(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Protocol)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Protocol)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InternalClient(&self) -> ::windows::core::Result { + pub unsafe fn InternalClient(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).InternalClient)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).InternalClient)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Enabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Enabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EditInternalClient<'a, P0>(&self, bstrinternalclient: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).EditInternalClient)(::windows::core::Interface::as_raw(self), bstrinternalclient.into().abi()).ok() + pub unsafe fn EditInternalClient(&self, bstrinternalclient: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).EditInternalClient)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrinternalclient)).ok() } pub unsafe fn Enable(&self, vb: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Enable)(::windows::core::Interface::as_raw(self), vb).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EditDescription<'a, P0>(&self, bstrdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).EditDescription)(::windows::core::Interface::as_raw(self), bstrdescription.into().abi()).ok() + pub unsafe fn EditDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).EditDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdescription)).ok() } pub unsafe fn EditInternalPort(&self, linternalport: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).EditInternalPort)(::windows::core::Interface::as_raw(self), linternalport).ok() @@ -5532,34 +4865,16 @@ unsafe impl ::windows::core::Interface for IStaticPortMapping { #[doc(hidden)] pub struct IStaticPortMapping_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub ExternalIPAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ExternalIPAddress: usize, + pub ExternalIPAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ExternalPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows::core::HRESULT, pub InternalPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Protocol: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Protocol: usize, - #[cfg(feature = "Win32_Foundation")] - pub InternalClient: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InternalClient: usize, + pub Protocol: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub InternalClient: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Enabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub EditInternalClient: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinternalclient: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EditInternalClient: usize, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub EditInternalClient: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinternalclient: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Enable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vb: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub EditDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EditDescription: usize, + pub EditDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub EditInternalPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, linternalport: i32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`, `\"Win32_System_Com\"`*"] @@ -5572,37 +4887,24 @@ impl IStaticPortMappingCollection { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self)._NewEnum)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn get_Item<'a, P0>(&self, lexternalport: i32, bstrprotocol: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn get_Item(&self, lexternalport: i32, bstrprotocol: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), lexternalport, bstrprotocol.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), lexternalport, ::core::mem::transmute_copy(bstrprotocol), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn Count(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Count)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Remove<'a, P0>(&self, lexternalport: i32, bstrprotocol: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), lexternalport, bstrprotocol.into().abi()).ok() + pub unsafe fn Remove(&self, lexternalport: i32, bstrprotocol: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), lexternalport, ::core::mem::transmute_copy(bstrprotocol)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Add<'a, P0, P1, P2>(&self, lexternalport: i32, bstrprotocol: P0, linternalport: i32, bstrinternalclient: P1, benabled: i16, bstrdescription: P2) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Add(&self, lexternalport: i32, bstrprotocol: &::windows::core::BSTR, linternalport: i32, bstrinternalclient: &::windows::core::BSTR, benabled: i16, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), lexternalport, bstrprotocol.into().abi(), linternalport, bstrinternalclient.into().abi(), benabled, bstrdescription.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), lexternalport, ::core::mem::transmute_copy(bstrprotocol), linternalport, ::core::mem::transmute_copy(bstrinternalclient), benabled, ::core::mem::transmute_copy(bstrdescription), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -5672,18 +4974,15 @@ unsafe impl ::windows::core::Interface for IStaticPortMappingCollection { pub struct IStaticPortMappingCollection_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lexternalport: i32, bstrprotocol: ::core::mem::ManuallyDrop, ppspm: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lexternalport: i32, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppspm: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] get_Item: usize, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lexternalport: i32, bstrprotocol: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Remove: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lexternalport: i32, bstrprotocol: ::core::mem::ManuallyDrop, linternalport: i32, bstrinternalclient: ::core::mem::ManuallyDrop, benabled: i16, bstrdescription: ::core::mem::ManuallyDrop, ppspm: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lexternalport: i32, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lexternalport: i32, bstrprotocol: ::core::mem::ManuallyDrop<::windows::core::BSTR>, linternalport: i32, bstrinternalclient: ::core::mem::ManuallyDrop<::windows::core::BSTR>, benabled: i16, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppspm: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Add: usize, } #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsFirewall\"`, `\"Win32_System_Com\"`*"] diff --git a/crates/libs/windows/src/Windows/Win32/Networking/ActiveDirectory/impl.rs b/crates/libs/windows/src/Windows/Win32/Networking/ActiveDirectory/impl.rs index 9fca7321b3..3093bc1a34 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/ActiveDirectory/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/ActiveDirectory/impl.rs @@ -1,17 +1,17 @@ #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IADs_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; - fn Class(&self) -> ::windows::core::Result; - fn GUID(&self) -> ::windows::core::Result; - fn ADsPath(&self) -> ::windows::core::Result; - fn Parent(&self) -> ::windows::core::Result; - fn Schema(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Class(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GUID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ADsPath(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Parent(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Schema(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetInfo(&self) -> ::windows::core::Result<()>; fn SetInfo(&self) -> ::windows::core::Result<()>; - fn Get(&self, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn Put(&self, bstrname: &super::super::Foundation::BSTR, vprop: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn GetEx(&self, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn PutEx(&self, lncontrolcode: i32, bstrname: &super::super::Foundation::BSTR, vprop: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn Get(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result; + fn Put(&self, bstrname: &::windows::core::BSTR, vprop: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn GetEx(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result; + fn PutEx(&self, lncontrolcode: i32, bstrname: &::windows::core::BSTR, vprop: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn GetInfoEx(&self, vproperties: &super::super::System::Com::VARIANT, lnreserved: i32) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -19,7 +19,7 @@ impl ::windows::core::RuntimeName for IADs {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IADs_Vtbl { pub const fn new, Impl: IADs_Impl, const OFFSET: isize>() -> IADs_Vtbl { - unsafe extern "system" fn Name, Impl: IADs_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IADs_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -30,7 +30,7 @@ impl IADs_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Class, Impl: IADs_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Class, Impl: IADs_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Class() { @@ -41,7 +41,7 @@ impl IADs_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GUID, Impl: IADs_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GUID, Impl: IADs_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GUID() { @@ -52,7 +52,7 @@ impl IADs_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ADsPath, Impl: IADs_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ADsPath, Impl: IADs_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ADsPath() { @@ -63,7 +63,7 @@ impl IADs_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Parent, Impl: IADs_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Parent, Impl: IADs_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Parent() { @@ -74,7 +74,7 @@ impl IADs_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Schema, Impl: IADs_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Schema, Impl: IADs_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Schema() { @@ -95,7 +95,7 @@ impl IADs_Vtbl { let this = (*this).get_impl(); this.SetInfo().into() } - unsafe extern "system" fn Get, Impl: IADs_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, pvprop: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn Get, Impl: IADs_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvprop: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Get(::core::mem::transmute(&bstrname)) { @@ -106,12 +106,12 @@ impl IADs_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Put, Impl: IADs_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, vprop: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Put, Impl: IADs_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, vprop: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Put(::core::mem::transmute(&bstrname), ::core::mem::transmute(&vprop)).into() } - unsafe extern "system" fn GetEx, Impl: IADs_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, pvprop: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetEx, Impl: IADs_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvprop: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetEx(::core::mem::transmute(&bstrname)) { @@ -122,7 +122,7 @@ impl IADs_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn PutEx, Impl: IADs_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lncontrolcode: i32, bstrname: ::core::mem::ManuallyDrop, vprop: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn PutEx, Impl: IADs_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lncontrolcode: i32, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, vprop: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.PutEx(::core::mem::transmute_copy(&lncontrolcode), ::core::mem::transmute(&bstrname), ::core::mem::transmute(&vprop)).into() @@ -155,17 +155,17 @@ impl IADs_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IADsADSystemInfo_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn UserName(&self) -> ::windows::core::Result; - fn ComputerName(&self) -> ::windows::core::Result; - fn SiteName(&self) -> ::windows::core::Result; - fn DomainShortName(&self) -> ::windows::core::Result; - fn DomainDNSName(&self) -> ::windows::core::Result; - fn ForestDNSName(&self) -> ::windows::core::Result; - fn PDCRoleOwner(&self) -> ::windows::core::Result; - fn SchemaRoleOwner(&self) -> ::windows::core::Result; + fn UserName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ComputerName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SiteName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn DomainShortName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn DomainDNSName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ForestDNSName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn PDCRoleOwner(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SchemaRoleOwner(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn IsNativeMode(&self) -> ::windows::core::Result; - fn GetAnyDCName(&self) -> ::windows::core::Result; - fn GetDCSiteName(&self, szserver: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetAnyDCName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetDCSiteName(&self, szserver: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; fn RefreshSchemaCache(&self) -> ::windows::core::Result<()>; fn GetTrees(&self) -> ::windows::core::Result; } @@ -174,7 +174,7 @@ impl ::windows::core::RuntimeName for IADsADSystemInfo {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IADsADSystemInfo_Vtbl { pub const fn new, Impl: IADsADSystemInfo_Impl, const OFFSET: isize>() -> IADsADSystemInfo_Vtbl { - unsafe extern "system" fn UserName, Impl: IADsADSystemInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UserName, Impl: IADsADSystemInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UserName() { @@ -185,7 +185,7 @@ impl IADsADSystemInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ComputerName, Impl: IADsADSystemInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ComputerName, Impl: IADsADSystemInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ComputerName() { @@ -196,7 +196,7 @@ impl IADsADSystemInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SiteName, Impl: IADsADSystemInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SiteName, Impl: IADsADSystemInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SiteName() { @@ -207,7 +207,7 @@ impl IADsADSystemInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DomainShortName, Impl: IADsADSystemInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DomainShortName, Impl: IADsADSystemInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DomainShortName() { @@ -218,7 +218,7 @@ impl IADsADSystemInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DomainDNSName, Impl: IADsADSystemInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DomainDNSName, Impl: IADsADSystemInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DomainDNSName() { @@ -229,7 +229,7 @@ impl IADsADSystemInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ForestDNSName, Impl: IADsADSystemInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ForestDNSName, Impl: IADsADSystemInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ForestDNSName() { @@ -240,7 +240,7 @@ impl IADsADSystemInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn PDCRoleOwner, Impl: IADsADSystemInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PDCRoleOwner, Impl: IADsADSystemInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PDCRoleOwner() { @@ -251,7 +251,7 @@ impl IADsADSystemInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SchemaRoleOwner, Impl: IADsADSystemInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SchemaRoleOwner, Impl: IADsADSystemInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SchemaRoleOwner() { @@ -273,7 +273,7 @@ impl IADsADSystemInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetAnyDCName, Impl: IADsADSystemInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszdcname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetAnyDCName, Impl: IADsADSystemInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszdcname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetAnyDCName() { @@ -284,7 +284,7 @@ impl IADsADSystemInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetDCSiteName, Impl: IADsADSystemInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, szserver: ::core::mem::ManuallyDrop, pszsitename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDCSiteName, Impl: IADsADSystemInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, szserver: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pszsitename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDCSiteName(::core::mem::transmute(&szserver)) { @@ -342,12 +342,12 @@ pub trait IADsAccessControlEntry_Impl: Sized + super::super::System::Com::IDispa fn SetAceFlags(&self, lnaceflags: i32) -> ::windows::core::Result<()>; fn Flags(&self) -> ::windows::core::Result; fn SetFlags(&self, lnflags: i32) -> ::windows::core::Result<()>; - fn ObjectType(&self) -> ::windows::core::Result; - fn SetObjectType(&self, bstrobjecttype: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn InheritedObjectType(&self) -> ::windows::core::Result; - fn SetInheritedObjectType(&self, bstrinheritedobjecttype: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Trustee(&self) -> ::windows::core::Result; - fn SetTrustee(&self, bstrtrustee: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ObjectType(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetObjectType(&self, bstrobjecttype: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn InheritedObjectType(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetInheritedObjectType(&self, bstrinheritedobjecttype: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Trustee(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetTrustee(&self, bstrtrustee: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IADsAccessControlEntry {} @@ -418,7 +418,7 @@ impl IADsAccessControlEntry_Vtbl { let this = (*this).get_impl(); this.SetFlags(::core::mem::transmute_copy(&lnflags)).into() } - unsafe extern "system" fn ObjectType, Impl: IADsAccessControlEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ObjectType, Impl: IADsAccessControlEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ObjectType() { @@ -429,12 +429,12 @@ impl IADsAccessControlEntry_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetObjectType, Impl: IADsAccessControlEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrobjecttype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetObjectType, Impl: IADsAccessControlEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrobjecttype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetObjectType(::core::mem::transmute(&bstrobjecttype)).into() } - unsafe extern "system" fn InheritedObjectType, Impl: IADsAccessControlEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn InheritedObjectType, Impl: IADsAccessControlEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.InheritedObjectType() { @@ -445,12 +445,12 @@ impl IADsAccessControlEntry_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetInheritedObjectType, Impl: IADsAccessControlEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrinheritedobjecttype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetInheritedObjectType, Impl: IADsAccessControlEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrinheritedobjecttype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetInheritedObjectType(::core::mem::transmute(&bstrinheritedobjecttype)).into() } - unsafe extern "system" fn Trustee, Impl: IADsAccessControlEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Trustee, Impl: IADsAccessControlEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Trustee() { @@ -461,7 +461,7 @@ impl IADsAccessControlEntry_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetTrustee, Impl: IADsAccessControlEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtrustee: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetTrustee, Impl: IADsAccessControlEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtrustee: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetTrustee(::core::mem::transmute(&bstrtrustee)).into() @@ -586,10 +586,10 @@ impl IADsAccessControlList_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IADsAcl_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn ProtectedAttrName(&self) -> ::windows::core::Result; - fn SetProtectedAttrName(&self, bstrprotectedattrname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SubjectName(&self) -> ::windows::core::Result; - fn SetSubjectName(&self, bstrsubjectname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ProtectedAttrName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetProtectedAttrName(&self, bstrprotectedattrname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SubjectName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetSubjectName(&self, bstrsubjectname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Privileges(&self) -> ::windows::core::Result; fn SetPrivileges(&self, lnprivileges: i32) -> ::windows::core::Result<()>; fn CopyAcl(&self) -> ::windows::core::Result; @@ -599,7 +599,7 @@ impl ::windows::core::RuntimeName for IADsAcl {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IADsAcl_Vtbl { pub const fn new, Impl: IADsAcl_Impl, const OFFSET: isize>() -> IADsAcl_Vtbl { - unsafe extern "system" fn ProtectedAttrName, Impl: IADsAcl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ProtectedAttrName, Impl: IADsAcl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ProtectedAttrName() { @@ -610,12 +610,12 @@ impl IADsAcl_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetProtectedAttrName, Impl: IADsAcl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprotectedattrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetProtectedAttrName, Impl: IADsAcl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprotectedattrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetProtectedAttrName(::core::mem::transmute(&bstrprotectedattrname)).into() } - unsafe extern "system" fn SubjectName, Impl: IADsAcl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SubjectName, Impl: IADsAcl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SubjectName() { @@ -626,7 +626,7 @@ impl IADsAcl_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSubjectName, Impl: IADsAcl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsubjectname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSubjectName, Impl: IADsAcl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsubjectname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSubjectName(::core::mem::transmute(&bstrsubjectname)).into() @@ -745,8 +745,8 @@ impl IADsAggregator_Vtbl { pub trait IADsBackLink_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn RemoteID(&self) -> ::windows::core::Result; fn SetRemoteID(&self, lnremoteid: i32) -> ::windows::core::Result<()>; - fn ObjectName(&self) -> ::windows::core::Result; - fn SetObjectName(&self, bstrobjectname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ObjectName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetObjectName(&self, bstrobjectname: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IADsBackLink {} @@ -769,7 +769,7 @@ impl IADsBackLink_Vtbl { let this = (*this).get_impl(); this.SetRemoteID(::core::mem::transmute_copy(&lnremoteid)).into() } - unsafe extern "system" fn ObjectName, Impl: IADsBackLink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ObjectName, Impl: IADsBackLink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ObjectName() { @@ -780,7 +780,7 @@ impl IADsBackLink_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetObjectName, Impl: IADsBackLink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrobjectname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetObjectName, Impl: IADsBackLink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrobjectname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetObjectName(::core::mem::transmute(&bstrobjectname)).into() @@ -835,11 +835,11 @@ impl IADsCaseIgnoreList_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IADsClass_Impl: Sized + super::super::System::Com::IDispatch_Impl + IADs_Impl { - fn PrimaryInterface(&self) -> ::windows::core::Result; - fn CLSID(&self) -> ::windows::core::Result; - fn SetCLSID(&self, bstrclsid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn OID(&self) -> ::windows::core::Result; - fn SetOID(&self, bstroid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn PrimaryInterface(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CLSID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetCLSID(&self, bstrclsid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn OID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetOID(&self, bstroid: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Abstract(&self) -> ::windows::core::Result; fn SetAbstract(&self, fabstract: i16) -> ::windows::core::Result<()>; fn Auxiliary(&self) -> ::windows::core::Result; @@ -860,8 +860,8 @@ pub trait IADsClass_Impl: Sized + super::super::System::Com::IDispatch_Impl + IA fn SetContainment(&self, vcontainment: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn Container(&self) -> ::windows::core::Result; fn SetContainer(&self, fcontainer: i16) -> ::windows::core::Result<()>; - fn HelpFileName(&self) -> ::windows::core::Result; - fn SetHelpFileName(&self, bstrhelpfilename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn HelpFileName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetHelpFileName(&self, bstrhelpfilename: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn HelpFileContext(&self) -> ::windows::core::Result; fn SetHelpFileContext(&self, lnhelpfilecontext: i32) -> ::windows::core::Result<()>; fn Qualifiers(&self) -> ::windows::core::Result; @@ -871,7 +871,7 @@ impl ::windows::core::RuntimeName for IADsClass {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IADsClass_Vtbl { pub const fn new, Impl: IADsClass_Impl, const OFFSET: isize>() -> IADsClass_Vtbl { - unsafe extern "system" fn PrimaryInterface, Impl: IADsClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PrimaryInterface, Impl: IADsClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PrimaryInterface() { @@ -882,7 +882,7 @@ impl IADsClass_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CLSID, Impl: IADsClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CLSID, Impl: IADsClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CLSID() { @@ -893,12 +893,12 @@ impl IADsClass_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetCLSID, Impl: IADsClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrclsid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCLSID, Impl: IADsClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrclsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCLSID(::core::mem::transmute(&bstrclsid)).into() } - unsafe extern "system" fn OID, Impl: IADsClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn OID, Impl: IADsClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OID() { @@ -909,7 +909,7 @@ impl IADsClass_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetOID, Impl: IADsClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstroid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetOID, Impl: IADsClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstroid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetOID(::core::mem::transmute(&bstroid)).into() @@ -1074,7 +1074,7 @@ impl IADsClass_Vtbl { let this = (*this).get_impl(); this.SetContainer(::core::mem::transmute_copy(&fcontainer)).into() } - unsafe extern "system" fn HelpFileName, Impl: IADsClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn HelpFileName, Impl: IADsClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.HelpFileName() { @@ -1085,7 +1085,7 @@ impl IADsClass_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetHelpFileName, Impl: IADsClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrhelpfilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetHelpFileName, Impl: IADsClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrhelpfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetHelpFileName(::core::mem::transmute(&bstrhelpfilename)).into() @@ -1158,9 +1158,9 @@ impl IADsClass_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IADsCollection_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; - fn Add(&self, bstrname: &super::super::Foundation::BSTR, vitem: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn Remove(&self, bstritemtoberemoved: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetObject(&self, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn Add(&self, bstrname: &::windows::core::BSTR, vitem: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn Remove(&self, bstritemtoberemoved: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetObject(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IADsCollection {} @@ -1178,17 +1178,17 @@ impl IADsCollection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Add, Impl: IADsCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, vitem: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Add, Impl: IADsCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, vitem: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Add(::core::mem::transmute(&bstrname), ::core::mem::transmute(&vitem)).into() } - unsafe extern "system" fn Remove, Impl: IADsCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstritemtoberemoved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Remove, Impl: IADsCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstritemtoberemoved: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Remove(::core::mem::transmute(&bstritemtoberemoved)).into() } - unsafe extern "system" fn GetObject, Impl: IADsCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, pvitem: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetObject, Impl: IADsCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvitem: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetObject(::core::mem::transmute(&bstrname)) { @@ -1213,36 +1213,36 @@ impl IADsCollection_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IADsComputer_Impl: Sized + super::super::System::Com::IDispatch_Impl + IADs_Impl { - fn ComputerID(&self) -> ::windows::core::Result; - fn Site(&self) -> ::windows::core::Result; - fn Description(&self) -> ::windows::core::Result; - fn SetDescription(&self, bstrdescription: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Location(&self) -> ::windows::core::Result; - fn SetLocation(&self, bstrlocation: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn PrimaryUser(&self) -> ::windows::core::Result; - fn SetPrimaryUser(&self, bstrprimaryuser: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Owner(&self) -> ::windows::core::Result; - fn SetOwner(&self, bstrowner: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Division(&self) -> ::windows::core::Result; - fn SetDivision(&self, bstrdivision: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Department(&self) -> ::windows::core::Result; - fn SetDepartment(&self, bstrdepartment: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Role(&self) -> ::windows::core::Result; - fn SetRole(&self, bstrrole: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn OperatingSystem(&self) -> ::windows::core::Result; - fn SetOperatingSystem(&self, bstroperatingsystem: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn OperatingSystemVersion(&self) -> ::windows::core::Result; - fn SetOperatingSystemVersion(&self, bstroperatingsystemversion: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Model(&self) -> ::windows::core::Result; - fn SetModel(&self, bstrmodel: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Processor(&self) -> ::windows::core::Result; - fn SetProcessor(&self, bstrprocessor: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ProcessorCount(&self) -> ::windows::core::Result; - fn SetProcessorCount(&self, bstrprocessorcount: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn MemorySize(&self) -> ::windows::core::Result; - fn SetMemorySize(&self, bstrmemorysize: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn StorageCapacity(&self) -> ::windows::core::Result; - fn SetStorageCapacity(&self, bstrstoragecapacity: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ComputerID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Site(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Location(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetLocation(&self, bstrlocation: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn PrimaryUser(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetPrimaryUser(&self, bstrprimaryuser: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Owner(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetOwner(&self, bstrowner: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Division(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDivision(&self, bstrdivision: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Department(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDepartment(&self, bstrdepartment: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Role(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetRole(&self, bstrrole: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn OperatingSystem(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetOperatingSystem(&self, bstroperatingsystem: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn OperatingSystemVersion(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetOperatingSystemVersion(&self, bstroperatingsystemversion: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Model(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetModel(&self, bstrmodel: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Processor(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetProcessor(&self, bstrprocessor: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ProcessorCount(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetProcessorCount(&self, bstrprocessorcount: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn MemorySize(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetMemorySize(&self, bstrmemorysize: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn StorageCapacity(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetStorageCapacity(&self, bstrstoragecapacity: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn NetAddresses(&self) -> ::windows::core::Result; fn SetNetAddresses(&self, vnetaddresses: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; } @@ -1251,7 +1251,7 @@ impl ::windows::core::RuntimeName for IADsComputer {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IADsComputer_Vtbl { pub const fn new, Impl: IADsComputer_Impl, const OFFSET: isize>() -> IADsComputer_Vtbl { - unsafe extern "system" fn ComputerID, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ComputerID, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ComputerID() { @@ -1262,7 +1262,7 @@ impl IADsComputer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Site, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Site, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Site() { @@ -1273,7 +1273,7 @@ impl IADsComputer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Description, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -1284,12 +1284,12 @@ impl IADsComputer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDescription, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDescription(::core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn Location, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Location, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Location() { @@ -1300,12 +1300,12 @@ impl IADsComputer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetLocation, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrlocation: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetLocation, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrlocation: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetLocation(::core::mem::transmute(&bstrlocation)).into() } - unsafe extern "system" fn PrimaryUser, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PrimaryUser, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PrimaryUser() { @@ -1316,12 +1316,12 @@ impl IADsComputer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPrimaryUser, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprimaryuser: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPrimaryUser, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprimaryuser: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPrimaryUser(::core::mem::transmute(&bstrprimaryuser)).into() } - unsafe extern "system" fn Owner, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Owner, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Owner() { @@ -1332,12 +1332,12 @@ impl IADsComputer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetOwner, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrowner: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetOwner, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrowner: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetOwner(::core::mem::transmute(&bstrowner)).into() } - unsafe extern "system" fn Division, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Division, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Division() { @@ -1348,12 +1348,12 @@ impl IADsComputer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDivision, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdivision: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDivision, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdivision: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDivision(::core::mem::transmute(&bstrdivision)).into() } - unsafe extern "system" fn Department, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Department, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Department() { @@ -1364,12 +1364,12 @@ impl IADsComputer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDepartment, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdepartment: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDepartment, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdepartment: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDepartment(::core::mem::transmute(&bstrdepartment)).into() } - unsafe extern "system" fn Role, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Role, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Role() { @@ -1380,12 +1380,12 @@ impl IADsComputer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetRole, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrole: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetRole, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrole: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetRole(::core::mem::transmute(&bstrrole)).into() } - unsafe extern "system" fn OperatingSystem, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn OperatingSystem, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OperatingSystem() { @@ -1396,12 +1396,12 @@ impl IADsComputer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetOperatingSystem, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstroperatingsystem: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetOperatingSystem, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstroperatingsystem: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetOperatingSystem(::core::mem::transmute(&bstroperatingsystem)).into() } - unsafe extern "system" fn OperatingSystemVersion, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn OperatingSystemVersion, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OperatingSystemVersion() { @@ -1412,12 +1412,12 @@ impl IADsComputer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetOperatingSystemVersion, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstroperatingsystemversion: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetOperatingSystemVersion, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstroperatingsystemversion: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetOperatingSystemVersion(::core::mem::transmute(&bstroperatingsystemversion)).into() } - unsafe extern "system" fn Model, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Model, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Model() { @@ -1428,12 +1428,12 @@ impl IADsComputer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetModel, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmodel: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetModel, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmodel: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetModel(::core::mem::transmute(&bstrmodel)).into() } - unsafe extern "system" fn Processor, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Processor, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Processor() { @@ -1444,12 +1444,12 @@ impl IADsComputer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetProcessor, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprocessor: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetProcessor, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprocessor: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetProcessor(::core::mem::transmute(&bstrprocessor)).into() } - unsafe extern "system" fn ProcessorCount, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ProcessorCount, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ProcessorCount() { @@ -1460,12 +1460,12 @@ impl IADsComputer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetProcessorCount, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprocessorcount: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetProcessorCount, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprocessorcount: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetProcessorCount(::core::mem::transmute(&bstrprocessorcount)).into() } - unsafe extern "system" fn MemorySize, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn MemorySize, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.MemorySize() { @@ -1476,12 +1476,12 @@ impl IADsComputer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetMemorySize, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmemorysize: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetMemorySize, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmemorysize: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetMemorySize(::core::mem::transmute(&bstrmemorysize)).into() } - unsafe extern "system" fn StorageCapacity, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn StorageCapacity, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.StorageCapacity() { @@ -1492,7 +1492,7 @@ impl IADsComputer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetStorageCapacity, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrstoragecapacity: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetStorageCapacity, Impl: IADsComputer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrstoragecapacity: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetStorageCapacity(::core::mem::transmute(&bstrstoragecapacity)).into() @@ -1593,11 +1593,11 @@ pub trait IADsContainer_Impl: Sized + super::super::System::Com::IDispatch_Impl fn SetFilter(&self, var: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn Hints(&self) -> ::windows::core::Result; fn SetHints(&self, vhints: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn GetObject(&self, classname: &super::super::Foundation::BSTR, relativename: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn Create(&self, classname: &super::super::Foundation::BSTR, relativename: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn Delete(&self, bstrclassname: &super::super::Foundation::BSTR, bstrrelativename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn CopyHere(&self, sourcename: &super::super::Foundation::BSTR, newname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn MoveHere(&self, sourcename: &super::super::Foundation::BSTR, newname: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetObject(&self, classname: &::windows::core::BSTR, relativename: &::windows::core::BSTR) -> ::windows::core::Result; + fn Create(&self, classname: &::windows::core::BSTR, relativename: &::windows::core::BSTR) -> ::windows::core::Result; + fn Delete(&self, bstrclassname: &::windows::core::BSTR, bstrrelativename: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn CopyHere(&self, sourcename: &::windows::core::BSTR, newname: &::windows::core::BSTR) -> ::windows::core::Result; + fn MoveHere(&self, sourcename: &::windows::core::BSTR, newname: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IADsContainer {} @@ -1658,7 +1658,7 @@ impl IADsContainer_Vtbl { let this = (*this).get_impl(); this.SetHints(::core::mem::transmute(&vhints)).into() } - unsafe extern "system" fn GetObject, Impl: IADsContainer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, classname: ::core::mem::ManuallyDrop, relativename: ::core::mem::ManuallyDrop, ppobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetObject, Impl: IADsContainer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, classname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, relativename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetObject(::core::mem::transmute(&classname), ::core::mem::transmute(&relativename)) { @@ -1669,7 +1669,7 @@ impl IADsContainer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Create, Impl: IADsContainer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, classname: ::core::mem::ManuallyDrop, relativename: ::core::mem::ManuallyDrop, ppobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Create, Impl: IADsContainer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, classname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, relativename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Create(::core::mem::transmute(&classname), ::core::mem::transmute(&relativename)) { @@ -1680,12 +1680,12 @@ impl IADsContainer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Delete, Impl: IADsContainer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrclassname: ::core::mem::ManuallyDrop, bstrrelativename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Delete, Impl: IADsContainer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrclassname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrrelativename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Delete(::core::mem::transmute(&bstrclassname), ::core::mem::transmute(&bstrrelativename)).into() } - unsafe extern "system" fn CopyHere, Impl: IADsContainer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sourcename: ::core::mem::ManuallyDrop, newname: ::core::mem::ManuallyDrop, ppobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CopyHere, Impl: IADsContainer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sourcename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, newname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CopyHere(::core::mem::transmute(&sourcename), ::core::mem::transmute(&newname)) { @@ -1696,7 +1696,7 @@ impl IADsContainer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn MoveHere, Impl: IADsContainer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sourcename: ::core::mem::ManuallyDrop, newname: ::core::mem::ManuallyDrop, ppobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn MoveHere, Impl: IADsContainer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sourcename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, newname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.MoveHere(::core::mem::transmute(&sourcename), ::core::mem::transmute(&newname)) { @@ -1730,8 +1730,8 @@ impl IADsContainer_Vtbl { pub trait IADsDNWithBinary_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn BinaryValue(&self) -> ::windows::core::Result; fn SetBinaryValue(&self, vbinaryvalue: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn DNString(&self) -> ::windows::core::Result; - fn SetDNString(&self, bstrdnstring: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn DNString(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDNString(&self, bstrdnstring: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IADsDNWithBinary {} @@ -1754,7 +1754,7 @@ impl IADsDNWithBinary_Vtbl { let this = (*this).get_impl(); this.SetBinaryValue(::core::mem::transmute(&vbinaryvalue)).into() } - unsafe extern "system" fn DNString, Impl: IADsDNWithBinary_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DNString, Impl: IADsDNWithBinary_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DNString() { @@ -1765,7 +1765,7 @@ impl IADsDNWithBinary_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDNString, Impl: IADsDNWithBinary_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdnstring: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDNString, Impl: IADsDNWithBinary_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdnstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDNString(::core::mem::transmute(&bstrdnstring)).into() @@ -1784,17 +1784,17 @@ impl IADsDNWithBinary_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IADsDNWithString_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn StringValue(&self) -> ::windows::core::Result; - fn SetStringValue(&self, bstrstringvalue: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn DNString(&self) -> ::windows::core::Result; - fn SetDNString(&self, bstrdnstring: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn StringValue(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetStringValue(&self, bstrstringvalue: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn DNString(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDNString(&self, bstrdnstring: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IADsDNWithString {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IADsDNWithString_Vtbl { pub const fn new, Impl: IADsDNWithString_Impl, const OFFSET: isize>() -> IADsDNWithString_Vtbl { - unsafe extern "system" fn StringValue, Impl: IADsDNWithString_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn StringValue, Impl: IADsDNWithString_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.StringValue() { @@ -1805,12 +1805,12 @@ impl IADsDNWithString_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetStringValue, Impl: IADsDNWithString_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrstringvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetStringValue, Impl: IADsDNWithString_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrstringvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetStringValue(::core::mem::transmute(&bstrstringvalue)).into() } - unsafe extern "system" fn DNString, Impl: IADsDNWithString_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DNString, Impl: IADsDNWithString_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DNString() { @@ -1821,7 +1821,7 @@ impl IADsDNWithString_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDNString, Impl: IADsDNWithString_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdnstring: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDNString, Impl: IADsDNWithString_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdnstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDNString(::core::mem::transmute(&bstrdnstring)).into() @@ -2051,8 +2051,8 @@ impl IADsDomain_Vtbl { pub trait IADsEmail_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn Type(&self) -> ::windows::core::Result; fn SetType(&self, lntype: i32) -> ::windows::core::Result<()>; - fn Address(&self) -> ::windows::core::Result; - fn SetAddress(&self, bstraddress: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Address(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetAddress(&self, bstraddress: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IADsEmail {} @@ -2075,7 +2075,7 @@ impl IADsEmail_Vtbl { let this = (*this).get_impl(); this.SetType(::core::mem::transmute_copy(&lntype)).into() } - unsafe extern "system" fn Address, Impl: IADsEmail_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Address, Impl: IADsEmail_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Address() { @@ -2086,7 +2086,7 @@ impl IADsEmail_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetAddress, Impl: IADsEmail_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstraddress: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetAddress, Impl: IADsEmail_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstraddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetAddress(::core::mem::transmute(&bstraddress)).into() @@ -2148,8 +2148,8 @@ impl IADsExtension_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IADsFaxNumber_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn TelephoneNumber(&self) -> ::windows::core::Result; - fn SetTelephoneNumber(&self, bstrtelephonenumber: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn TelephoneNumber(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetTelephoneNumber(&self, bstrtelephonenumber: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Parameters(&self) -> ::windows::core::Result; fn SetParameters(&self, vparameters: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; } @@ -2158,7 +2158,7 @@ impl ::windows::core::RuntimeName for IADsFaxNumber {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IADsFaxNumber_Vtbl { pub const fn new, Impl: IADsFaxNumber_Impl, const OFFSET: isize>() -> IADsFaxNumber_Vtbl { - unsafe extern "system" fn TelephoneNumber, Impl: IADsFaxNumber_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TelephoneNumber, Impl: IADsFaxNumber_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TelephoneNumber() { @@ -2169,7 +2169,7 @@ impl IADsFaxNumber_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetTelephoneNumber, Impl: IADsFaxNumber_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtelephonenumber: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetTelephoneNumber, Impl: IADsFaxNumber_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtelephonenumber: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetTelephoneNumber(::core::mem::transmute(&bstrtelephonenumber)).into() @@ -2204,8 +2204,8 @@ impl IADsFaxNumber_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IADsFileService_Impl: Sized + super::super::System::Com::IDispatch_Impl + IADs_Impl + IADsService_Impl { - fn Description(&self) -> ::windows::core::Result; - fn SetDescription(&self, bstrdescription: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn MaxUserCount(&self) -> ::windows::core::Result; fn SetMaxUserCount(&self, lnmaxusercount: i32) -> ::windows::core::Result<()>; } @@ -2214,7 +2214,7 @@ impl ::windows::core::RuntimeName for IADsFileService {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IADsFileService_Vtbl { pub const fn new, Impl: IADsFileService_Impl, const OFFSET: isize>() -> IADsFileService_Vtbl { - unsafe extern "system" fn Description, Impl: IADsFileService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IADsFileService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -2225,7 +2225,7 @@ impl IADsFileService_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription, Impl: IADsFileService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDescription, Impl: IADsFileService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDescription(::core::mem::transmute(&bstrdescription)).into() @@ -2303,12 +2303,12 @@ impl IADsFileServiceOperations_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IADsFileShare_Impl: Sized + super::super::System::Com::IDispatch_Impl + IADs_Impl { fn CurrentUserCount(&self) -> ::windows::core::Result; - fn Description(&self) -> ::windows::core::Result; - fn SetDescription(&self, bstrdescription: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn HostComputer(&self) -> ::windows::core::Result; - fn SetHostComputer(&self, bstrhostcomputer: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Path(&self) -> ::windows::core::Result; - fn SetPath(&self, bstrpath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn HostComputer(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetHostComputer(&self, bstrhostcomputer: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetPath(&self, bstrpath: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn MaxUserCount(&self) -> ::windows::core::Result; fn SetMaxUserCount(&self, lnmaxusercount: i32) -> ::windows::core::Result<()>; } @@ -2328,7 +2328,7 @@ impl IADsFileShare_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Description, Impl: IADsFileShare_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IADsFileShare_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -2339,12 +2339,12 @@ impl IADsFileShare_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription, Impl: IADsFileShare_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDescription, Impl: IADsFileShare_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDescription(::core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn HostComputer, Impl: IADsFileShare_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn HostComputer, Impl: IADsFileShare_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.HostComputer() { @@ -2355,12 +2355,12 @@ impl IADsFileShare_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetHostComputer, Impl: IADsFileShare_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrhostcomputer: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetHostComputer, Impl: IADsFileShare_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrhostcomputer: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetHostComputer(::core::mem::transmute(&bstrhostcomputer)).into() } - unsafe extern "system" fn Path, Impl: IADsFileShare_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Path, Impl: IADsFileShare_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Path() { @@ -2371,7 +2371,7 @@ impl IADsFileShare_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPath, Impl: IADsFileShare_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPath, Impl: IADsFileShare_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPath(::core::mem::transmute(&bstrpath)).into() @@ -2411,19 +2411,19 @@ impl IADsFileShare_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IADsGroup_Impl: Sized + super::super::System::Com::IDispatch_Impl + IADs_Impl { - fn Description(&self) -> ::windows::core::Result; - fn SetDescription(&self, bstrdescription: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Members(&self) -> ::windows::core::Result; - fn IsMember(&self, bstrmember: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn Add(&self, bstrnewitem: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Remove(&self, bstritemtoberemoved: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn IsMember(&self, bstrmember: &::windows::core::BSTR) -> ::windows::core::Result; + fn Add(&self, bstrnewitem: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Remove(&self, bstritemtoberemoved: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IADsGroup {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IADsGroup_Vtbl { pub const fn new, Impl: IADsGroup_Impl, const OFFSET: isize>() -> IADsGroup_Vtbl { - unsafe extern "system" fn Description, Impl: IADsGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IADsGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -2434,7 +2434,7 @@ impl IADsGroup_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription, Impl: IADsGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDescription, Impl: IADsGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDescription(::core::mem::transmute(&bstrdescription)).into() @@ -2450,7 +2450,7 @@ impl IADsGroup_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn IsMember, Impl: IADsGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmember: ::core::mem::ManuallyDrop, bmember: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn IsMember, Impl: IADsGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmember: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bmember: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.IsMember(::core::mem::transmute(&bstrmember)) { @@ -2461,12 +2461,12 @@ impl IADsGroup_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Add, Impl: IADsGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrnewitem: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Add, Impl: IADsGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrnewitem: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Add(::core::mem::transmute(&bstrnewitem)).into() } - unsafe extern "system" fn Remove, Impl: IADsGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstritemtoberemoved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Remove, Impl: IADsGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstritemtoberemoved: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Remove(::core::mem::transmute(&bstritemtoberemoved)).into() @@ -2487,8 +2487,8 @@ impl IADsGroup_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IADsHold_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn ObjectName(&self) -> ::windows::core::Result; - fn SetObjectName(&self, bstrobjectname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ObjectName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetObjectName(&self, bstrobjectname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Amount(&self) -> ::windows::core::Result; fn SetAmount(&self, lnamount: i32) -> ::windows::core::Result<()>; } @@ -2497,7 +2497,7 @@ impl ::windows::core::RuntimeName for IADsHold {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IADsHold_Vtbl { pub const fn new, Impl: IADsHold_Impl, const OFFSET: isize>() -> IADsHold_Vtbl { - unsafe extern "system" fn ObjectName, Impl: IADsHold_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ObjectName, Impl: IADsHold_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ObjectName() { @@ -2508,7 +2508,7 @@ impl IADsHold_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetObjectName, Impl: IADsHold_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrobjectname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetObjectName, Impl: IADsHold_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrobjectname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetObjectName(::core::mem::transmute(&bstrobjectname)).into() @@ -2599,12 +2599,12 @@ impl IADsLargeInteger_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IADsLocality_Impl: Sized + super::super::System::Com::IDispatch_Impl + IADs_Impl { - fn Description(&self) -> ::windows::core::Result; - fn SetDescription(&self, bstrdescription: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn LocalityName(&self) -> ::windows::core::Result; - fn SetLocalityName(&self, bstrlocalityname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn PostalAddress(&self) -> ::windows::core::Result; - fn SetPostalAddress(&self, bstrpostaladdress: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn LocalityName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetLocalityName(&self, bstrlocalityname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn PostalAddress(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetPostalAddress(&self, bstrpostaladdress: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SeeAlso(&self) -> ::windows::core::Result; fn SetSeeAlso(&self, vseealso: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; } @@ -2613,7 +2613,7 @@ impl ::windows::core::RuntimeName for IADsLocality {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IADsLocality_Vtbl { pub const fn new, Impl: IADsLocality_Impl, const OFFSET: isize>() -> IADsLocality_Vtbl { - unsafe extern "system" fn Description, Impl: IADsLocality_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IADsLocality_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -2624,12 +2624,12 @@ impl IADsLocality_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription, Impl: IADsLocality_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDescription, Impl: IADsLocality_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDescription(::core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn LocalityName, Impl: IADsLocality_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LocalityName, Impl: IADsLocality_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LocalityName() { @@ -2640,12 +2640,12 @@ impl IADsLocality_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetLocalityName, Impl: IADsLocality_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrlocalityname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetLocalityName, Impl: IADsLocality_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrlocalityname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetLocalityName(::core::mem::transmute(&bstrlocalityname)).into() } - unsafe extern "system" fn PostalAddress, Impl: IADsLocality_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PostalAddress, Impl: IADsLocality_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PostalAddress() { @@ -2656,7 +2656,7 @@ impl IADsLocality_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPostalAddress, Impl: IADsLocality_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpostaladdress: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPostalAddress, Impl: IADsLocality_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpostaladdress: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPostalAddress(::core::mem::transmute(&bstrpostaladdress)).into() @@ -2758,10 +2758,10 @@ impl IADsMembers_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IADsNameTranslate_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn SetChaseReferral(&self, lnchasereferral: i32) -> ::windows::core::Result<()>; - fn Init(&self, lnsettype: i32, bstradspath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn InitEx(&self, lnsettype: i32, bstradspath: &super::super::Foundation::BSTR, bstruserid: &super::super::Foundation::BSTR, bstrdomain: &super::super::Foundation::BSTR, bstrpassword: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Set(&self, lnsettype: i32, bstradspath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Get(&self, lnformattype: i32) -> ::windows::core::Result; + fn Init(&self, lnsettype: i32, bstradspath: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn InitEx(&self, lnsettype: i32, bstradspath: &::windows::core::BSTR, bstruserid: &::windows::core::BSTR, bstrdomain: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Set(&self, lnsettype: i32, bstradspath: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Get(&self, lnformattype: i32) -> ::windows::core::Result<::windows::core::BSTR>; fn SetEx(&self, lnformattype: i32, pvar: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn GetEx(&self, lnformattype: i32) -> ::windows::core::Result; } @@ -2775,22 +2775,22 @@ impl IADsNameTranslate_Vtbl { let this = (*this).get_impl(); this.SetChaseReferral(::core::mem::transmute_copy(&lnchasereferral)).into() } - unsafe extern "system" fn Init, Impl: IADsNameTranslate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lnsettype: i32, bstradspath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Init, Impl: IADsNameTranslate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lnsettype: i32, bstradspath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Init(::core::mem::transmute_copy(&lnsettype), ::core::mem::transmute(&bstradspath)).into() } - unsafe extern "system" fn InitEx, Impl: IADsNameTranslate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lnsettype: i32, bstradspath: ::core::mem::ManuallyDrop, bstruserid: ::core::mem::ManuallyDrop, bstrdomain: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitEx, Impl: IADsNameTranslate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lnsettype: i32, bstradspath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstruserid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdomain: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitEx(::core::mem::transmute_copy(&lnsettype), ::core::mem::transmute(&bstradspath), ::core::mem::transmute(&bstruserid), ::core::mem::transmute(&bstrdomain), ::core::mem::transmute(&bstrpassword)).into() } - unsafe extern "system" fn Set, Impl: IADsNameTranslate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lnsettype: i32, bstradspath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Set, Impl: IADsNameTranslate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lnsettype: i32, bstradspath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Set(::core::mem::transmute_copy(&lnsettype), ::core::mem::transmute(&bstradspath)).into() } - unsafe extern "system" fn Get, Impl: IADsNameTranslate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lnformattype: i32, pbstradspath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Get, Impl: IADsNameTranslate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lnformattype: i32, pbstradspath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Get(::core::mem::transmute_copy(&lnformattype)) { @@ -2834,15 +2834,15 @@ impl IADsNameTranslate_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IADsNamespaces_Impl: Sized + super::super::System::Com::IDispatch_Impl + IADs_Impl { - fn DefaultContainer(&self) -> ::windows::core::Result; - fn SetDefaultContainer(&self, bstrdefaultcontainer: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn DefaultContainer(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDefaultContainer(&self, bstrdefaultcontainer: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IADsNamespaces {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IADsNamespaces_Vtbl { pub const fn new, Impl: IADsNamespaces_Impl, const OFFSET: isize>() -> IADsNamespaces_Vtbl { - unsafe extern "system" fn DefaultContainer, Impl: IADsNamespaces_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DefaultContainer, Impl: IADsNamespaces_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DefaultContainer() { @@ -2853,7 +2853,7 @@ impl IADsNamespaces_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDefaultContainer, Impl: IADsNamespaces_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdefaultcontainer: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDefaultContainer, Impl: IADsNamespaces_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdefaultcontainer: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDefaultContainer(::core::mem::transmute(&bstrdefaultcontainer)).into() @@ -2926,16 +2926,16 @@ impl IADsNetAddress_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IADsO_Impl: Sized + super::super::System::Com::IDispatch_Impl + IADs_Impl { - fn Description(&self) -> ::windows::core::Result; - fn SetDescription(&self, bstrdescription: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn LocalityName(&self) -> ::windows::core::Result; - fn SetLocalityName(&self, bstrlocalityname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn PostalAddress(&self) -> ::windows::core::Result; - fn SetPostalAddress(&self, bstrpostaladdress: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn TelephoneNumber(&self) -> ::windows::core::Result; - fn SetTelephoneNumber(&self, bstrtelephonenumber: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn FaxNumber(&self) -> ::windows::core::Result; - fn SetFaxNumber(&self, bstrfaxnumber: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn LocalityName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetLocalityName(&self, bstrlocalityname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn PostalAddress(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetPostalAddress(&self, bstrpostaladdress: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn TelephoneNumber(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetTelephoneNumber(&self, bstrtelephonenumber: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn FaxNumber(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetFaxNumber(&self, bstrfaxnumber: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SeeAlso(&self) -> ::windows::core::Result; fn SetSeeAlso(&self, vseealso: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; } @@ -2944,7 +2944,7 @@ impl ::windows::core::RuntimeName for IADsO {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IADsO_Vtbl { pub const fn new, Impl: IADsO_Impl, const OFFSET: isize>() -> IADsO_Vtbl { - unsafe extern "system" fn Description, Impl: IADsO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IADsO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -2955,12 +2955,12 @@ impl IADsO_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription, Impl: IADsO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDescription, Impl: IADsO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDescription(::core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn LocalityName, Impl: IADsO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LocalityName, Impl: IADsO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LocalityName() { @@ -2971,12 +2971,12 @@ impl IADsO_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetLocalityName, Impl: IADsO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrlocalityname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetLocalityName, Impl: IADsO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrlocalityname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetLocalityName(::core::mem::transmute(&bstrlocalityname)).into() } - unsafe extern "system" fn PostalAddress, Impl: IADsO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PostalAddress, Impl: IADsO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PostalAddress() { @@ -2987,12 +2987,12 @@ impl IADsO_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPostalAddress, Impl: IADsO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpostaladdress: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPostalAddress, Impl: IADsO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpostaladdress: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPostalAddress(::core::mem::transmute(&bstrpostaladdress)).into() } - unsafe extern "system" fn TelephoneNumber, Impl: IADsO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TelephoneNumber, Impl: IADsO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TelephoneNumber() { @@ -3003,12 +3003,12 @@ impl IADsO_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetTelephoneNumber, Impl: IADsO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtelephonenumber: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetTelephoneNumber, Impl: IADsO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtelephonenumber: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetTelephoneNumber(::core::mem::transmute(&bstrtelephonenumber)).into() } - unsafe extern "system" fn FaxNumber, Impl: IADsO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FaxNumber, Impl: IADsO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FaxNumber() { @@ -3019,7 +3019,7 @@ impl IADsO_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetFaxNumber, Impl: IADsO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfaxnumber: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetFaxNumber, Impl: IADsO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfaxnumber: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetFaxNumber(::core::mem::transmute(&bstrfaxnumber)).into() @@ -3062,27 +3062,27 @@ impl IADsO_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IADsOU_Impl: Sized + super::super::System::Com::IDispatch_Impl + IADs_Impl { - fn Description(&self) -> ::windows::core::Result; - fn SetDescription(&self, bstrdescription: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn LocalityName(&self) -> ::windows::core::Result; - fn SetLocalityName(&self, bstrlocalityname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn PostalAddress(&self) -> ::windows::core::Result; - fn SetPostalAddress(&self, bstrpostaladdress: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn TelephoneNumber(&self) -> ::windows::core::Result; - fn SetTelephoneNumber(&self, bstrtelephonenumber: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn FaxNumber(&self) -> ::windows::core::Result; - fn SetFaxNumber(&self, bstrfaxnumber: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn LocalityName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetLocalityName(&self, bstrlocalityname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn PostalAddress(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetPostalAddress(&self, bstrpostaladdress: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn TelephoneNumber(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetTelephoneNumber(&self, bstrtelephonenumber: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn FaxNumber(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetFaxNumber(&self, bstrfaxnumber: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SeeAlso(&self) -> ::windows::core::Result; fn SetSeeAlso(&self, vseealso: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn BusinessCategory(&self) -> ::windows::core::Result; - fn SetBusinessCategory(&self, bstrbusinesscategory: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn BusinessCategory(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetBusinessCategory(&self, bstrbusinesscategory: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IADsOU {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IADsOU_Vtbl { pub const fn new, Impl: IADsOU_Impl, const OFFSET: isize>() -> IADsOU_Vtbl { - unsafe extern "system" fn Description, Impl: IADsOU_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IADsOU_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -3093,12 +3093,12 @@ impl IADsOU_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription, Impl: IADsOU_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDescription, Impl: IADsOU_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDescription(::core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn LocalityName, Impl: IADsOU_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LocalityName, Impl: IADsOU_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LocalityName() { @@ -3109,12 +3109,12 @@ impl IADsOU_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetLocalityName, Impl: IADsOU_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrlocalityname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetLocalityName, Impl: IADsOU_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrlocalityname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetLocalityName(::core::mem::transmute(&bstrlocalityname)).into() } - unsafe extern "system" fn PostalAddress, Impl: IADsOU_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PostalAddress, Impl: IADsOU_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PostalAddress() { @@ -3125,12 +3125,12 @@ impl IADsOU_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPostalAddress, Impl: IADsOU_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpostaladdress: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPostalAddress, Impl: IADsOU_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpostaladdress: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPostalAddress(::core::mem::transmute(&bstrpostaladdress)).into() } - unsafe extern "system" fn TelephoneNumber, Impl: IADsOU_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TelephoneNumber, Impl: IADsOU_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TelephoneNumber() { @@ -3141,12 +3141,12 @@ impl IADsOU_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetTelephoneNumber, Impl: IADsOU_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtelephonenumber: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetTelephoneNumber, Impl: IADsOU_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtelephonenumber: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetTelephoneNumber(::core::mem::transmute(&bstrtelephonenumber)).into() } - unsafe extern "system" fn FaxNumber, Impl: IADsOU_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FaxNumber, Impl: IADsOU_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FaxNumber() { @@ -3157,7 +3157,7 @@ impl IADsOU_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetFaxNumber, Impl: IADsOU_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfaxnumber: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetFaxNumber, Impl: IADsOU_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfaxnumber: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetFaxNumber(::core::mem::transmute(&bstrfaxnumber)).into() @@ -3178,7 +3178,7 @@ impl IADsOU_Vtbl { let this = (*this).get_impl(); this.SetSeeAlso(::core::mem::transmute(&vseealso)).into() } - unsafe extern "system" fn BusinessCategory, Impl: IADsOU_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn BusinessCategory, Impl: IADsOU_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BusinessCategory() { @@ -3189,7 +3189,7 @@ impl IADsOU_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetBusinessCategory, Impl: IADsOU_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrbusinesscategory: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetBusinessCategory, Impl: IADsOU_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrbusinesscategory: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetBusinessCategory(::core::mem::transmute(&bstrbusinesscategory)).into() @@ -3290,14 +3290,14 @@ impl IADsOctetList_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IADsOpenDSObject_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn OpenDSObject(&self, lpszdnname: &super::super::Foundation::BSTR, lpszusername: &super::super::Foundation::BSTR, lpszpassword: &super::super::Foundation::BSTR, lnreserved: i32) -> ::windows::core::Result; + fn OpenDSObject(&self, lpszdnname: &::windows::core::BSTR, lpszusername: &::windows::core::BSTR, lpszpassword: &::windows::core::BSTR, lnreserved: i32) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IADsOpenDSObject {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IADsOpenDSObject_Vtbl { pub const fn new, Impl: IADsOpenDSObject_Impl, const OFFSET: isize>() -> IADsOpenDSObject_Vtbl { - unsafe extern "system" fn OpenDSObject, Impl: IADsOpenDSObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lpszdnname: ::core::mem::ManuallyDrop, lpszusername: ::core::mem::ManuallyDrop, lpszpassword: ::core::mem::ManuallyDrop, lnreserved: i32, ppoledsobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn OpenDSObject, Impl: IADsOpenDSObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lpszdnname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lpszusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lpszpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lnreserved: i32, ppoledsobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OpenDSObject(::core::mem::transmute(&lpszdnname), ::core::mem::transmute(&lpszusername), ::core::mem::transmute(&lpszpassword), ::core::mem::transmute_copy(&lnreserved)) { @@ -3318,10 +3318,10 @@ impl IADsOpenDSObject_Vtbl { pub trait IADsPath_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn Type(&self) -> ::windows::core::Result; fn SetType(&self, lntype: i32) -> ::windows::core::Result<()>; - fn VolumeName(&self) -> ::windows::core::Result; - fn SetVolumeName(&self, bstrvolumename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Path(&self) -> ::windows::core::Result; - fn SetPath(&self, bstrpath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn VolumeName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetVolumeName(&self, bstrvolumename: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetPath(&self, bstrpath: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IADsPath {} @@ -3344,7 +3344,7 @@ impl IADsPath_Vtbl { let this = (*this).get_impl(); this.SetType(::core::mem::transmute_copy(&lntype)).into() } - unsafe extern "system" fn VolumeName, Impl: IADsPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn VolumeName, Impl: IADsPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.VolumeName() { @@ -3355,12 +3355,12 @@ impl IADsPath_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetVolumeName, Impl: IADsPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrvolumename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetVolumeName, Impl: IADsPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrvolumename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetVolumeName(::core::mem::transmute(&bstrvolumename)).into() } - unsafe extern "system" fn Path, Impl: IADsPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Path, Impl: IADsPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Path() { @@ -3371,7 +3371,7 @@ impl IADsPath_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPath, Impl: IADsPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPath, Impl: IADsPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPath(::core::mem::transmute(&bstrpath)).into() @@ -3392,15 +3392,15 @@ impl IADsPath_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IADsPathname_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Set(&self, bstradspath: &super::super::Foundation::BSTR, lnsettype: i32) -> ::windows::core::Result<()>; + fn Set(&self, bstradspath: &::windows::core::BSTR, lnsettype: i32) -> ::windows::core::Result<()>; fn SetDisplayType(&self, lndisplaytype: i32) -> ::windows::core::Result<()>; - fn Retrieve(&self, lnformattype: i32) -> ::windows::core::Result; + fn Retrieve(&self, lnformattype: i32) -> ::windows::core::Result<::windows::core::BSTR>; fn GetNumElements(&self) -> ::windows::core::Result; - fn GetElement(&self, lnelementindex: i32) -> ::windows::core::Result; - fn AddLeafElement(&self, bstrleafelement: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetElement(&self, lnelementindex: i32) -> ::windows::core::Result<::windows::core::BSTR>; + fn AddLeafElement(&self, bstrleafelement: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn RemoveLeafElement(&self) -> ::windows::core::Result<()>; fn CopyPath(&self) -> ::windows::core::Result; - fn GetEscapedElement(&self, lnreserved: i32, bstrinstr: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetEscapedElement(&self, lnreserved: i32, bstrinstr: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; fn EscapedMode(&self) -> ::windows::core::Result; fn SetEscapedMode(&self, lnescapedmode: i32) -> ::windows::core::Result<()>; } @@ -3409,7 +3409,7 @@ impl ::windows::core::RuntimeName for IADsPathname {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IADsPathname_Vtbl { pub const fn new, Impl: IADsPathname_Impl, const OFFSET: isize>() -> IADsPathname_Vtbl { - unsafe extern "system" fn Set, Impl: IADsPathname_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstradspath: ::core::mem::ManuallyDrop, lnsettype: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn Set, Impl: IADsPathname_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstradspath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lnsettype: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Set(::core::mem::transmute(&bstradspath), ::core::mem::transmute_copy(&lnsettype)).into() @@ -3419,7 +3419,7 @@ impl IADsPathname_Vtbl { let this = (*this).get_impl(); this.SetDisplayType(::core::mem::transmute_copy(&lndisplaytype)).into() } - unsafe extern "system" fn Retrieve, Impl: IADsPathname_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lnformattype: i32, pbstradspath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Retrieve, Impl: IADsPathname_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lnformattype: i32, pbstradspath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Retrieve(::core::mem::transmute_copy(&lnformattype)) { @@ -3441,7 +3441,7 @@ impl IADsPathname_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetElement, Impl: IADsPathname_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lnelementindex: i32, pbstrelement: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetElement, Impl: IADsPathname_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lnelementindex: i32, pbstrelement: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetElement(::core::mem::transmute_copy(&lnelementindex)) { @@ -3452,7 +3452,7 @@ impl IADsPathname_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AddLeafElement, Impl: IADsPathname_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrleafelement: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddLeafElement, Impl: IADsPathname_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrleafelement: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddLeafElement(::core::mem::transmute(&bstrleafelement)).into() @@ -3473,7 +3473,7 @@ impl IADsPathname_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetEscapedElement, Impl: IADsPathname_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lnreserved: i32, bstrinstr: ::core::mem::ManuallyDrop, pbstroutstr: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetEscapedElement, Impl: IADsPathname_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lnreserved: i32, bstrinstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstroutstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetEscapedElement(::core::mem::transmute_copy(&lnreserved), ::core::mem::transmute(&bstrinstr)) { @@ -3557,31 +3557,31 @@ impl IADsPostalAddress_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IADsPrintJob_Impl: Sized + super::super::System::Com::IDispatch_Impl + IADs_Impl { - fn HostPrintQueue(&self) -> ::windows::core::Result; - fn User(&self) -> ::windows::core::Result; - fn UserPath(&self) -> ::windows::core::Result; + fn HostPrintQueue(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn User(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn UserPath(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn TimeSubmitted(&self) -> ::windows::core::Result; fn TotalPages(&self) -> ::windows::core::Result; fn Size(&self) -> ::windows::core::Result; - fn Description(&self) -> ::windows::core::Result; - fn SetDescription(&self, bstrdescription: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Priority(&self) -> ::windows::core::Result; fn SetPriority(&self, lnpriority: i32) -> ::windows::core::Result<()>; fn StartTime(&self) -> ::windows::core::Result; fn SetStartTime(&self, dastarttime: f64) -> ::windows::core::Result<()>; fn UntilTime(&self) -> ::windows::core::Result; fn SetUntilTime(&self, dauntiltime: f64) -> ::windows::core::Result<()>; - fn Notify(&self) -> ::windows::core::Result; - fn SetNotify(&self, bstrnotify: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn NotifyPath(&self) -> ::windows::core::Result; - fn SetNotifyPath(&self, bstrnotifypath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Notify(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetNotify(&self, bstrnotify: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn NotifyPath(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetNotifyPath(&self, bstrnotifypath: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IADsPrintJob {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IADsPrintJob_Vtbl { pub const fn new, Impl: IADsPrintJob_Impl, const OFFSET: isize>() -> IADsPrintJob_Vtbl { - unsafe extern "system" fn HostPrintQueue, Impl: IADsPrintJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn HostPrintQueue, Impl: IADsPrintJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.HostPrintQueue() { @@ -3592,7 +3592,7 @@ impl IADsPrintJob_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn User, Impl: IADsPrintJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn User, Impl: IADsPrintJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.User() { @@ -3603,7 +3603,7 @@ impl IADsPrintJob_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn UserPath, Impl: IADsPrintJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UserPath, Impl: IADsPrintJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UserPath() { @@ -3647,7 +3647,7 @@ impl IADsPrintJob_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Description, Impl: IADsPrintJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IADsPrintJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -3658,7 +3658,7 @@ impl IADsPrintJob_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription, Impl: IADsPrintJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDescription, Impl: IADsPrintJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDescription(::core::mem::transmute(&bstrdescription)).into() @@ -3711,7 +3711,7 @@ impl IADsPrintJob_Vtbl { let this = (*this).get_impl(); this.SetUntilTime(::core::mem::transmute_copy(&dauntiltime)).into() } - unsafe extern "system" fn Notify, Impl: IADsPrintJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Notify, Impl: IADsPrintJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Notify() { @@ -3722,12 +3722,12 @@ impl IADsPrintJob_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetNotify, Impl: IADsPrintJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrnotify: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetNotify, Impl: IADsPrintJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrnotify: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetNotify(::core::mem::transmute(&bstrnotify)).into() } - unsafe extern "system" fn NotifyPath, Impl: IADsPrintJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn NotifyPath, Impl: IADsPrintJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.NotifyPath() { @@ -3738,7 +3738,7 @@ impl IADsPrintJob_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetNotifyPath, Impl: IADsPrintJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrnotifypath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetNotifyPath, Impl: IADsPrintJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrnotifypath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetNotifyPath(::core::mem::transmute(&bstrnotifypath)).into() @@ -3860,18 +3860,18 @@ impl IADsPrintJobOperations_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IADsPrintQueue_Impl: Sized + super::super::System::Com::IDispatch_Impl + IADs_Impl { - fn PrinterPath(&self) -> ::windows::core::Result; - fn SetPrinterPath(&self, bstrprinterpath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Model(&self) -> ::windows::core::Result; - fn SetModel(&self, bstrmodel: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Datatype(&self) -> ::windows::core::Result; - fn SetDatatype(&self, bstrdatatype: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn PrintProcessor(&self) -> ::windows::core::Result; - fn SetPrintProcessor(&self, bstrprintprocessor: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Description(&self) -> ::windows::core::Result; - fn SetDescription(&self, bstrdescription: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Location(&self) -> ::windows::core::Result; - fn SetLocation(&self, bstrlocation: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn PrinterPath(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetPrinterPath(&self, bstrprinterpath: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Model(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetModel(&self, bstrmodel: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Datatype(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDatatype(&self, bstrdatatype: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn PrintProcessor(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetPrintProcessor(&self, bstrprintprocessor: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Location(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetLocation(&self, bstrlocation: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn StartTime(&self) -> ::windows::core::Result; fn SetStartTime(&self, dastarttime: f64) -> ::windows::core::Result<()>; fn UntilTime(&self) -> ::windows::core::Result; @@ -3880,8 +3880,8 @@ pub trait IADsPrintQueue_Impl: Sized + super::super::System::Com::IDispatch_Impl fn SetDefaultJobPriority(&self, lndefaultjobpriority: i32) -> ::windows::core::Result<()>; fn Priority(&self) -> ::windows::core::Result; fn SetPriority(&self, lnpriority: i32) -> ::windows::core::Result<()>; - fn BannerPage(&self) -> ::windows::core::Result; - fn SetBannerPage(&self, bstrbannerpage: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn BannerPage(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetBannerPage(&self, bstrbannerpage: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn PrintDevices(&self) -> ::windows::core::Result; fn SetPrintDevices(&self, vprintdevices: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn NetAddresses(&self) -> ::windows::core::Result; @@ -3892,7 +3892,7 @@ impl ::windows::core::RuntimeName for IADsPrintQueue {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IADsPrintQueue_Vtbl { pub const fn new, Impl: IADsPrintQueue_Impl, const OFFSET: isize>() -> IADsPrintQueue_Vtbl { - unsafe extern "system" fn PrinterPath, Impl: IADsPrintQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PrinterPath, Impl: IADsPrintQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PrinterPath() { @@ -3903,12 +3903,12 @@ impl IADsPrintQueue_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPrinterPath, Impl: IADsPrintQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprinterpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPrinterPath, Impl: IADsPrintQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprinterpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPrinterPath(::core::mem::transmute(&bstrprinterpath)).into() } - unsafe extern "system" fn Model, Impl: IADsPrintQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Model, Impl: IADsPrintQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Model() { @@ -3919,12 +3919,12 @@ impl IADsPrintQueue_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetModel, Impl: IADsPrintQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmodel: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetModel, Impl: IADsPrintQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmodel: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetModel(::core::mem::transmute(&bstrmodel)).into() } - unsafe extern "system" fn Datatype, Impl: IADsPrintQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Datatype, Impl: IADsPrintQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Datatype() { @@ -3935,12 +3935,12 @@ impl IADsPrintQueue_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDatatype, Impl: IADsPrintQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdatatype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDatatype, Impl: IADsPrintQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdatatype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDatatype(::core::mem::transmute(&bstrdatatype)).into() } - unsafe extern "system" fn PrintProcessor, Impl: IADsPrintQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PrintProcessor, Impl: IADsPrintQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PrintProcessor() { @@ -3951,12 +3951,12 @@ impl IADsPrintQueue_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPrintProcessor, Impl: IADsPrintQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprintprocessor: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPrintProcessor, Impl: IADsPrintQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprintprocessor: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPrintProcessor(::core::mem::transmute(&bstrprintprocessor)).into() } - unsafe extern "system" fn Description, Impl: IADsPrintQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IADsPrintQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -3967,12 +3967,12 @@ impl IADsPrintQueue_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription, Impl: IADsPrintQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDescription, Impl: IADsPrintQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDescription(::core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn Location, Impl: IADsPrintQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Location, Impl: IADsPrintQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Location() { @@ -3983,7 +3983,7 @@ impl IADsPrintQueue_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetLocation, Impl: IADsPrintQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrlocation: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetLocation, Impl: IADsPrintQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrlocation: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetLocation(::core::mem::transmute(&bstrlocation)).into() @@ -4052,7 +4052,7 @@ impl IADsPrintQueue_Vtbl { let this = (*this).get_impl(); this.SetPriority(::core::mem::transmute_copy(&lnpriority)).into() } - unsafe extern "system" fn BannerPage, Impl: IADsPrintQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn BannerPage, Impl: IADsPrintQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BannerPage() { @@ -4063,7 +4063,7 @@ impl IADsPrintQueue_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetBannerPage, Impl: IADsPrintQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrbannerpage: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetBannerPage, Impl: IADsPrintQueue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrbannerpage: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetBannerPage(::core::mem::transmute(&bstrbannerpage)).into() @@ -4199,10 +4199,10 @@ impl IADsPrintQueueOperations_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IADsProperty_Impl: Sized + super::super::System::Com::IDispatch_Impl + IADs_Impl { - fn OID(&self) -> ::windows::core::Result; - fn SetOID(&self, bstroid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Syntax(&self) -> ::windows::core::Result; - fn SetSyntax(&self, bstrsyntax: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn OID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetOID(&self, bstroid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Syntax(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetSyntax(&self, bstrsyntax: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn MaxRange(&self) -> ::windows::core::Result; fn SetMaxRange(&self, lnmaxrange: i32) -> ::windows::core::Result<()>; fn MinRange(&self) -> ::windows::core::Result; @@ -4216,7 +4216,7 @@ impl ::windows::core::RuntimeName for IADsProperty {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IADsProperty_Vtbl { pub const fn new, Impl: IADsProperty_Impl, const OFFSET: isize>() -> IADsProperty_Vtbl { - unsafe extern "system" fn OID, Impl: IADsProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn OID, Impl: IADsProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OID() { @@ -4227,12 +4227,12 @@ impl IADsProperty_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetOID, Impl: IADsProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstroid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetOID, Impl: IADsProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstroid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetOID(::core::mem::transmute(&bstroid)).into() } - unsafe extern "system" fn Syntax, Impl: IADsProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Syntax, Impl: IADsProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Syntax() { @@ -4243,7 +4243,7 @@ impl IADsProperty_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSyntax, Impl: IADsProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsyntax: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSyntax, Impl: IADsProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsyntax: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSyntax(::core::mem::transmute(&bstrsyntax)).into() @@ -4329,8 +4329,8 @@ impl IADsProperty_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IADsPropertyEntry_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn Clear(&self) -> ::windows::core::Result<()>; - fn Name(&self) -> ::windows::core::Result; - fn SetName(&self, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn ADsType(&self) -> ::windows::core::Result; fn SetADsType(&self, lnadstype: i32) -> ::windows::core::Result<()>; fn ControlCode(&self) -> ::windows::core::Result; @@ -4348,7 +4348,7 @@ impl IADsPropertyEntry_Vtbl { let this = (*this).get_impl(); this.Clear().into() } - unsafe extern "system" fn Name, Impl: IADsPropertyEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IADsPropertyEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -4359,7 +4359,7 @@ impl IADsPropertyEntry_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetName, Impl: IADsPropertyEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: IADsPropertyEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&bstrname)).into() @@ -4436,7 +4436,7 @@ pub trait IADsPropertyList_Impl: Sized + super::super::System::Com::IDispatch_Im fn Skip(&self, celements: i32) -> ::windows::core::HRESULT; fn Reset(&self) -> ::windows::core::Result<()>; fn Item(&self, varindex: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn GetPropertyItem(&self, bstrname: &super::super::Foundation::BSTR, lnadstype: i32) -> ::windows::core::Result; + fn GetPropertyItem(&self, bstrname: &::windows::core::BSTR, lnadstype: i32) -> ::windows::core::Result; fn PutPropertyItem(&self, vardata: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn ResetPropertyItem(&self, varentry: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn PurgePropertyList(&self) -> ::windows::core::Result<()>; @@ -4483,7 +4483,7 @@ impl IADsPropertyList_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetPropertyItem, Impl: IADsPropertyList_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, lnadstype: i32, pvariant: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPropertyItem, Impl: IADsPropertyList_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lnadstype: i32, pvariant: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetPropertyItem(::core::mem::transmute(&bstrname), ::core::mem::transmute_copy(&lnadstype)) { @@ -4531,16 +4531,16 @@ pub trait IADsPropertyValue_Impl: Sized + super::super::System::Com::IDispatch_I fn Clear(&self) -> ::windows::core::Result<()>; fn ADsType(&self) -> ::windows::core::Result; fn SetADsType(&self, lnadstype: i32) -> ::windows::core::Result<()>; - fn DNString(&self) -> ::windows::core::Result; - fn SetDNString(&self, bstrdnstring: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn CaseExactString(&self) -> ::windows::core::Result; - fn SetCaseExactString(&self, bstrcaseexactstring: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn CaseIgnoreString(&self) -> ::windows::core::Result; - fn SetCaseIgnoreString(&self, bstrcaseignorestring: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn PrintableString(&self) -> ::windows::core::Result; - fn SetPrintableString(&self, bstrprintablestring: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn NumericString(&self) -> ::windows::core::Result; - fn SetNumericString(&self, bstrnumericstring: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn DNString(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDNString(&self, bstrdnstring: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn CaseExactString(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetCaseExactString(&self, bstrcaseexactstring: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn CaseIgnoreString(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetCaseIgnoreString(&self, bstrcaseignorestring: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn PrintableString(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetPrintableString(&self, bstrprintablestring: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn NumericString(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetNumericString(&self, bstrnumericstring: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Boolean(&self) -> ::windows::core::Result; fn SetBoolean(&self, lnboolean: i32) -> ::windows::core::Result<()>; fn Integer(&self) -> ::windows::core::Result; @@ -4580,7 +4580,7 @@ impl IADsPropertyValue_Vtbl { let this = (*this).get_impl(); this.SetADsType(::core::mem::transmute_copy(&lnadstype)).into() } - unsafe extern "system" fn DNString, Impl: IADsPropertyValue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DNString, Impl: IADsPropertyValue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DNString() { @@ -4591,12 +4591,12 @@ impl IADsPropertyValue_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDNString, Impl: IADsPropertyValue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdnstring: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDNString, Impl: IADsPropertyValue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdnstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDNString(::core::mem::transmute(&bstrdnstring)).into() } - unsafe extern "system" fn CaseExactString, Impl: IADsPropertyValue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CaseExactString, Impl: IADsPropertyValue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CaseExactString() { @@ -4607,12 +4607,12 @@ impl IADsPropertyValue_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetCaseExactString, Impl: IADsPropertyValue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcaseexactstring: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCaseExactString, Impl: IADsPropertyValue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcaseexactstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCaseExactString(::core::mem::transmute(&bstrcaseexactstring)).into() } - unsafe extern "system" fn CaseIgnoreString, Impl: IADsPropertyValue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CaseIgnoreString, Impl: IADsPropertyValue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CaseIgnoreString() { @@ -4623,12 +4623,12 @@ impl IADsPropertyValue_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetCaseIgnoreString, Impl: IADsPropertyValue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcaseignorestring: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCaseIgnoreString, Impl: IADsPropertyValue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcaseignorestring: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCaseIgnoreString(::core::mem::transmute(&bstrcaseignorestring)).into() } - unsafe extern "system" fn PrintableString, Impl: IADsPropertyValue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PrintableString, Impl: IADsPropertyValue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PrintableString() { @@ -4639,12 +4639,12 @@ impl IADsPropertyValue_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPrintableString, Impl: IADsPropertyValue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprintablestring: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPrintableString, Impl: IADsPropertyValue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprintablestring: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPrintableString(::core::mem::transmute(&bstrprintablestring)).into() } - unsafe extern "system" fn NumericString, Impl: IADsPropertyValue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn NumericString, Impl: IADsPropertyValue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.NumericString() { @@ -4655,7 +4655,7 @@ impl IADsPropertyValue_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetNumericString, Impl: IADsPropertyValue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrnumericstring: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetNumericString, Impl: IADsPropertyValue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrnumericstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetNumericString(::core::mem::transmute(&bstrnumericstring)).into() @@ -4821,8 +4821,8 @@ impl IADsPropertyValue2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IADsReplicaPointer_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn ServerName(&self) -> ::windows::core::Result; - fn SetServerName(&self, bstrservername: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ServerName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetServerName(&self, bstrservername: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn ReplicaType(&self) -> ::windows::core::Result; fn SetReplicaType(&self, lnreplicatype: i32) -> ::windows::core::Result<()>; fn ReplicaNumber(&self) -> ::windows::core::Result; @@ -4837,7 +4837,7 @@ impl ::windows::core::RuntimeName for IADsReplicaPointer {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IADsReplicaPointer_Vtbl { pub const fn new, Impl: IADsReplicaPointer_Impl, const OFFSET: isize>() -> IADsReplicaPointer_Vtbl { - unsafe extern "system" fn ServerName, Impl: IADsReplicaPointer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ServerName, Impl: IADsReplicaPointer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ServerName() { @@ -4848,7 +4848,7 @@ impl IADsReplicaPointer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetServerName, Impl: IADsReplicaPointer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetServerName, Impl: IADsReplicaPointer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetServerName(::core::mem::transmute(&bstrservername)).into() @@ -4937,9 +4937,9 @@ impl IADsReplicaPointer_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IADsResource_Impl: Sized + super::super::System::Com::IDispatch_Impl + IADs_Impl { - fn User(&self) -> ::windows::core::Result; - fn UserPath(&self) -> ::windows::core::Result; - fn Path(&self) -> ::windows::core::Result; + fn User(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn UserPath(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn LockCount(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -4947,7 +4947,7 @@ impl ::windows::core::RuntimeName for IADsResource {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IADsResource_Vtbl { pub const fn new, Impl: IADsResource_Impl, const OFFSET: isize>() -> IADsResource_Vtbl { - unsafe extern "system" fn User, Impl: IADsResource_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn User, Impl: IADsResource_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.User() { @@ -4958,7 +4958,7 @@ impl IADsResource_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn UserPath, Impl: IADsResource_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UserPath, Impl: IADsResource_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UserPath() { @@ -4969,7 +4969,7 @@ impl IADsResource_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Path, Impl: IADsResource_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Path, Impl: IADsResource_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Path() { @@ -5009,12 +5009,12 @@ pub trait IADsSecurityDescriptor_Impl: Sized + super::super::System::Com::IDispa fn SetRevision(&self, lnrevision: i32) -> ::windows::core::Result<()>; fn Control(&self) -> ::windows::core::Result; fn SetControl(&self, lncontrol: i32) -> ::windows::core::Result<()>; - fn Owner(&self) -> ::windows::core::Result; - fn SetOwner(&self, bstrowner: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Owner(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetOwner(&self, bstrowner: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn OwnerDefaulted(&self) -> ::windows::core::Result; fn SetOwnerDefaulted(&self, fownerdefaulted: i16) -> ::windows::core::Result<()>; - fn Group(&self) -> ::windows::core::Result; - fn SetGroup(&self, bstrgroup: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Group(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetGroup(&self, bstrgroup: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn GroupDefaulted(&self) -> ::windows::core::Result; fn SetGroupDefaulted(&self, fgroupdefaulted: i16) -> ::windows::core::Result<()>; fn DiscretionaryAcl(&self) -> ::windows::core::Result; @@ -5064,7 +5064,7 @@ impl IADsSecurityDescriptor_Vtbl { let this = (*this).get_impl(); this.SetControl(::core::mem::transmute_copy(&lncontrol)).into() } - unsafe extern "system" fn Owner, Impl: IADsSecurityDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Owner, Impl: IADsSecurityDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Owner() { @@ -5075,7 +5075,7 @@ impl IADsSecurityDescriptor_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetOwner, Impl: IADsSecurityDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrowner: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetOwner, Impl: IADsSecurityDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrowner: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetOwner(::core::mem::transmute(&bstrowner)).into() @@ -5096,7 +5096,7 @@ impl IADsSecurityDescriptor_Vtbl { let this = (*this).get_impl(); this.SetOwnerDefaulted(::core::mem::transmute_copy(&fownerdefaulted)).into() } - unsafe extern "system" fn Group, Impl: IADsSecurityDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Group, Impl: IADsSecurityDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Group() { @@ -5107,7 +5107,7 @@ impl IADsSecurityDescriptor_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetGroup, Impl: IADsSecurityDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgroup: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetGroup, Impl: IADsSecurityDescriptor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgroup: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetGroup(::core::mem::transmute(&bstrgroup)).into() @@ -5303,28 +5303,28 @@ impl IADsSecurityUtility_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IADsService_Impl: Sized + super::super::System::Com::IDispatch_Impl + IADs_Impl { - fn HostComputer(&self) -> ::windows::core::Result; - fn SetHostComputer(&self, bstrhostcomputer: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn DisplayName(&self) -> ::windows::core::Result; - fn SetDisplayName(&self, bstrdisplayname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Version(&self) -> ::windows::core::Result; - fn SetVersion(&self, bstrversion: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn HostComputer(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetHostComputer(&self, bstrhostcomputer: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDisplayName(&self, bstrdisplayname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Version(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetVersion(&self, bstrversion: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn ServiceType(&self) -> ::windows::core::Result; fn SetServiceType(&self, lnservicetype: i32) -> ::windows::core::Result<()>; fn StartType(&self) -> ::windows::core::Result; fn SetStartType(&self, lnstarttype: i32) -> ::windows::core::Result<()>; - fn Path(&self) -> ::windows::core::Result; - fn SetPath(&self, bstrpath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn StartupParameters(&self) -> ::windows::core::Result; - fn SetStartupParameters(&self, bstrstartupparameters: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetPath(&self, bstrpath: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn StartupParameters(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetStartupParameters(&self, bstrstartupparameters: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn ErrorControl(&self) -> ::windows::core::Result; fn SetErrorControl(&self, lnerrorcontrol: i32) -> ::windows::core::Result<()>; - fn LoadOrderGroup(&self) -> ::windows::core::Result; - fn SetLoadOrderGroup(&self, bstrloadordergroup: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ServiceAccountName(&self) -> ::windows::core::Result; - fn SetServiceAccountName(&self, bstrserviceaccountname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ServiceAccountPath(&self) -> ::windows::core::Result; - fn SetServiceAccountPath(&self, bstrserviceaccountpath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn LoadOrderGroup(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetLoadOrderGroup(&self, bstrloadordergroup: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ServiceAccountName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetServiceAccountName(&self, bstrserviceaccountname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ServiceAccountPath(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetServiceAccountPath(&self, bstrserviceaccountpath: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Dependencies(&self) -> ::windows::core::Result; fn SetDependencies(&self, vdependencies: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; } @@ -5333,7 +5333,7 @@ impl ::windows::core::RuntimeName for IADsService {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IADsService_Vtbl { pub const fn new, Impl: IADsService_Impl, const OFFSET: isize>() -> IADsService_Vtbl { - unsafe extern "system" fn HostComputer, Impl: IADsService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn HostComputer, Impl: IADsService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.HostComputer() { @@ -5344,12 +5344,12 @@ impl IADsService_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetHostComputer, Impl: IADsService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrhostcomputer: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetHostComputer, Impl: IADsService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrhostcomputer: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetHostComputer(::core::mem::transmute(&bstrhostcomputer)).into() } - unsafe extern "system" fn DisplayName, Impl: IADsService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DisplayName, Impl: IADsService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DisplayName() { @@ -5360,12 +5360,12 @@ impl IADsService_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDisplayName, Impl: IADsService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdisplayname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDisplayName, Impl: IADsService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdisplayname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDisplayName(::core::mem::transmute(&bstrdisplayname)).into() } - unsafe extern "system" fn Version, Impl: IADsService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Version, Impl: IADsService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Version() { @@ -5376,7 +5376,7 @@ impl IADsService_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetVersion, Impl: IADsService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrversion: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetVersion, Impl: IADsService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrversion: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetVersion(::core::mem::transmute(&bstrversion)).into() @@ -5413,7 +5413,7 @@ impl IADsService_Vtbl { let this = (*this).get_impl(); this.SetStartType(::core::mem::transmute_copy(&lnstarttype)).into() } - unsafe extern "system" fn Path, Impl: IADsService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Path, Impl: IADsService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Path() { @@ -5424,12 +5424,12 @@ impl IADsService_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPath, Impl: IADsService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPath, Impl: IADsService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPath(::core::mem::transmute(&bstrpath)).into() } - unsafe extern "system" fn StartupParameters, Impl: IADsService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn StartupParameters, Impl: IADsService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.StartupParameters() { @@ -5440,7 +5440,7 @@ impl IADsService_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetStartupParameters, Impl: IADsService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrstartupparameters: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetStartupParameters, Impl: IADsService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrstartupparameters: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetStartupParameters(::core::mem::transmute(&bstrstartupparameters)).into() @@ -5461,7 +5461,7 @@ impl IADsService_Vtbl { let this = (*this).get_impl(); this.SetErrorControl(::core::mem::transmute_copy(&lnerrorcontrol)).into() } - unsafe extern "system" fn LoadOrderGroup, Impl: IADsService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LoadOrderGroup, Impl: IADsService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LoadOrderGroup() { @@ -5472,12 +5472,12 @@ impl IADsService_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetLoadOrderGroup, Impl: IADsService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrloadordergroup: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetLoadOrderGroup, Impl: IADsService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrloadordergroup: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetLoadOrderGroup(::core::mem::transmute(&bstrloadordergroup)).into() } - unsafe extern "system" fn ServiceAccountName, Impl: IADsService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ServiceAccountName, Impl: IADsService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ServiceAccountName() { @@ -5488,12 +5488,12 @@ impl IADsService_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetServiceAccountName, Impl: IADsService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrserviceaccountname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetServiceAccountName, Impl: IADsService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrserviceaccountname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetServiceAccountName(::core::mem::transmute(&bstrserviceaccountname)).into() } - unsafe extern "system" fn ServiceAccountPath, Impl: IADsService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ServiceAccountPath, Impl: IADsService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ServiceAccountPath() { @@ -5504,7 +5504,7 @@ impl IADsService_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetServiceAccountPath, Impl: IADsService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrserviceaccountpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetServiceAccountPath, Impl: IADsService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrserviceaccountpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetServiceAccountPath(::core::mem::transmute(&bstrserviceaccountpath)).into() @@ -5564,7 +5564,7 @@ pub trait IADsServiceOperations_Impl: Sized + super::super::System::Com::IDispat fn Stop(&self) -> ::windows::core::Result<()>; fn Pause(&self) -> ::windows::core::Result<()>; fn Continue(&self) -> ::windows::core::Result<()>; - fn SetPassword(&self, bstrnewpassword: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetPassword(&self, bstrnewpassword: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IADsServiceOperations {} @@ -5602,7 +5602,7 @@ impl IADsServiceOperations_Vtbl { let this = (*this).get_impl(); this.Continue().into() } - unsafe extern "system" fn SetPassword, Impl: IADsServiceOperations_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrnewpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPassword, Impl: IADsServiceOperations_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrnewpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPassword(::core::mem::transmute(&bstrnewpassword)).into() @@ -5623,10 +5623,10 @@ impl IADsServiceOperations_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IADsSession_Impl: Sized + super::super::System::Com::IDispatch_Impl + IADs_Impl { - fn User(&self) -> ::windows::core::Result; - fn UserPath(&self) -> ::windows::core::Result; - fn Computer(&self) -> ::windows::core::Result; - fn ComputerPath(&self) -> ::windows::core::Result; + fn User(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn UserPath(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Computer(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ComputerPath(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn ConnectTime(&self) -> ::windows::core::Result; fn IdleTime(&self) -> ::windows::core::Result; } @@ -5635,7 +5635,7 @@ impl ::windows::core::RuntimeName for IADsSession {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IADsSession_Vtbl { pub const fn new, Impl: IADsSession_Impl, const OFFSET: isize>() -> IADsSession_Vtbl { - unsafe extern "system" fn User, Impl: IADsSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn User, Impl: IADsSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.User() { @@ -5646,7 +5646,7 @@ impl IADsSession_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn UserPath, Impl: IADsSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UserPath, Impl: IADsSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UserPath() { @@ -5657,7 +5657,7 @@ impl IADsSession_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Computer, Impl: IADsSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Computer, Impl: IADsSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Computer() { @@ -5668,7 +5668,7 @@ impl IADsSession_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ComputerPath, Impl: IADsSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ComputerPath, Impl: IADsSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ComputerPath() { @@ -5809,8 +5809,8 @@ impl IADsTimestamp_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IADsTypedName_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn ObjectName(&self) -> ::windows::core::Result; - fn SetObjectName(&self, bstrobjectname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ObjectName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetObjectName(&self, bstrobjectname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Level(&self) -> ::windows::core::Result; fn SetLevel(&self, lnlevel: i32) -> ::windows::core::Result<()>; fn Interval(&self) -> ::windows::core::Result; @@ -5821,7 +5821,7 @@ impl ::windows::core::RuntimeName for IADsTypedName {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IADsTypedName_Vtbl { pub const fn new, Impl: IADsTypedName_Impl, const OFFSET: isize>() -> IADsTypedName_Vtbl { - unsafe extern "system" fn ObjectName, Impl: IADsTypedName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ObjectName, Impl: IADsTypedName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ObjectName() { @@ -5832,7 +5832,7 @@ impl IADsTypedName_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetObjectName, Impl: IADsTypedName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrobjectname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetObjectName, Impl: IADsTypedName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrobjectname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetObjectName(::core::mem::transmute(&bstrobjectname)).into() @@ -5885,36 +5885,36 @@ impl IADsTypedName_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IADsUser_Impl: Sized + super::super::System::Com::IDispatch_Impl + IADs_Impl { - fn BadLoginAddress(&self) -> ::windows::core::Result; + fn BadLoginAddress(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn BadLoginCount(&self) -> ::windows::core::Result; fn LastLogin(&self) -> ::windows::core::Result; fn LastLogoff(&self) -> ::windows::core::Result; fn LastFailedLogin(&self) -> ::windows::core::Result; fn PasswordLastChanged(&self) -> ::windows::core::Result; - fn Description(&self) -> ::windows::core::Result; - fn SetDescription(&self, bstrdescription: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Division(&self) -> ::windows::core::Result; - fn SetDivision(&self, bstrdivision: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Department(&self) -> ::windows::core::Result; - fn SetDepartment(&self, bstrdepartment: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn EmployeeID(&self) -> ::windows::core::Result; - fn SetEmployeeID(&self, bstremployeeid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn FullName(&self) -> ::windows::core::Result; - fn SetFullName(&self, bstrfullname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn FirstName(&self) -> ::windows::core::Result; - fn SetFirstName(&self, bstrfirstname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn LastName(&self) -> ::windows::core::Result; - fn SetLastName(&self, bstrlastname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn OtherName(&self) -> ::windows::core::Result; - fn SetOtherName(&self, bstrothername: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn NamePrefix(&self) -> ::windows::core::Result; - fn SetNamePrefix(&self, bstrnameprefix: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn NameSuffix(&self) -> ::windows::core::Result; - fn SetNameSuffix(&self, bstrnamesuffix: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Title(&self) -> ::windows::core::Result; - fn SetTitle(&self, bstrtitle: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Manager(&self) -> ::windows::core::Result; - fn SetManager(&self, bstrmanager: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Division(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDivision(&self, bstrdivision: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Department(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDepartment(&self, bstrdepartment: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn EmployeeID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetEmployeeID(&self, bstremployeeid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn FullName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetFullName(&self, bstrfullname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn FirstName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetFirstName(&self, bstrfirstname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn LastName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetLastName(&self, bstrlastname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn OtherName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetOtherName(&self, bstrothername: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn NamePrefix(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetNamePrefix(&self, bstrnameprefix: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn NameSuffix(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetNameSuffix(&self, bstrnamesuffix: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Title(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetTitle(&self, bstrtitle: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Manager(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetManager(&self, bstrmanager: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn TelephoneHome(&self) -> ::windows::core::Result; fn SetTelephoneHome(&self, vtelephonehome: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn TelephoneMobile(&self) -> ::windows::core::Result; @@ -5959,30 +5959,30 @@ pub trait IADsUser_Impl: Sized + super::super::System::Com::IDispatch_Impl + IAD fn SetPasswordRequired(&self, fpasswordrequired: i16) -> ::windows::core::Result<()>; fn RequireUniquePassword(&self) -> ::windows::core::Result; fn SetRequireUniquePassword(&self, frequireuniquepassword: i16) -> ::windows::core::Result<()>; - fn EmailAddress(&self) -> ::windows::core::Result; - fn SetEmailAddress(&self, bstremailaddress: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn HomeDirectory(&self) -> ::windows::core::Result; - fn SetHomeDirectory(&self, bstrhomedirectory: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn EmailAddress(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetEmailAddress(&self, bstremailaddress: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn HomeDirectory(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetHomeDirectory(&self, bstrhomedirectory: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Languages(&self) -> ::windows::core::Result; fn SetLanguages(&self, vlanguages: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn Profile(&self) -> ::windows::core::Result; - fn SetProfile(&self, bstrprofile: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn LoginScript(&self) -> ::windows::core::Result; - fn SetLoginScript(&self, bstrloginscript: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Profile(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetProfile(&self, bstrprofile: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn LoginScript(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetLoginScript(&self, bstrloginscript: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Picture(&self) -> ::windows::core::Result; fn SetPicture(&self, vpicture: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn HomePage(&self) -> ::windows::core::Result; - fn SetHomePage(&self, bstrhomepage: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn HomePage(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetHomePage(&self, bstrhomepage: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Groups(&self) -> ::windows::core::Result; - fn SetPassword(&self, newpassword: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ChangePassword(&self, bstroldpassword: &super::super::Foundation::BSTR, bstrnewpassword: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetPassword(&self, newpassword: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ChangePassword(&self, bstroldpassword: &::windows::core::BSTR, bstrnewpassword: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IADsUser {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IADsUser_Vtbl { pub const fn new, Impl: IADsUser_Impl, const OFFSET: isize>() -> IADsUser_Vtbl { - unsafe extern "system" fn BadLoginAddress, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn BadLoginAddress, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BadLoginAddress() { @@ -6048,7 +6048,7 @@ impl IADsUser_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Description, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -6059,12 +6059,12 @@ impl IADsUser_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDescription, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDescription(::core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn Division, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Division, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Division() { @@ -6075,12 +6075,12 @@ impl IADsUser_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDivision, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdivision: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDivision, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdivision: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDivision(::core::mem::transmute(&bstrdivision)).into() } - unsafe extern "system" fn Department, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Department, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Department() { @@ -6091,12 +6091,12 @@ impl IADsUser_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDepartment, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdepartment: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDepartment, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdepartment: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDepartment(::core::mem::transmute(&bstrdepartment)).into() } - unsafe extern "system" fn EmployeeID, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn EmployeeID, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EmployeeID() { @@ -6107,12 +6107,12 @@ impl IADsUser_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetEmployeeID, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstremployeeid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetEmployeeID, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstremployeeid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetEmployeeID(::core::mem::transmute(&bstremployeeid)).into() } - unsafe extern "system" fn FullName, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FullName, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FullName() { @@ -6123,12 +6123,12 @@ impl IADsUser_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetFullName, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfullname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetFullName, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfullname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetFullName(::core::mem::transmute(&bstrfullname)).into() } - unsafe extern "system" fn FirstName, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FirstName, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FirstName() { @@ -6139,12 +6139,12 @@ impl IADsUser_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetFirstName, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfirstname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetFirstName, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfirstname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetFirstName(::core::mem::transmute(&bstrfirstname)).into() } - unsafe extern "system" fn LastName, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LastName, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LastName() { @@ -6155,12 +6155,12 @@ impl IADsUser_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetLastName, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrlastname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetLastName, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrlastname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetLastName(::core::mem::transmute(&bstrlastname)).into() } - unsafe extern "system" fn OtherName, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn OtherName, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OtherName() { @@ -6171,12 +6171,12 @@ impl IADsUser_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetOtherName, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrothername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetOtherName, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrothername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetOtherName(::core::mem::transmute(&bstrothername)).into() } - unsafe extern "system" fn NamePrefix, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn NamePrefix, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.NamePrefix() { @@ -6187,12 +6187,12 @@ impl IADsUser_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetNamePrefix, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrnameprefix: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetNamePrefix, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrnameprefix: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetNamePrefix(::core::mem::transmute(&bstrnameprefix)).into() } - unsafe extern "system" fn NameSuffix, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn NameSuffix, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.NameSuffix() { @@ -6203,12 +6203,12 @@ impl IADsUser_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetNameSuffix, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrnamesuffix: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetNameSuffix, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrnamesuffix: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetNameSuffix(::core::mem::transmute(&bstrnamesuffix)).into() } - unsafe extern "system" fn Title, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Title, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Title() { @@ -6219,12 +6219,12 @@ impl IADsUser_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetTitle, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtitle: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetTitle, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtitle: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetTitle(::core::mem::transmute(&bstrtitle)).into() } - unsafe extern "system" fn Manager, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Manager, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Manager() { @@ -6235,7 +6235,7 @@ impl IADsUser_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetManager, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmanager: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetManager, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmanager: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetManager(::core::mem::transmute(&bstrmanager)).into() @@ -6592,7 +6592,7 @@ impl IADsUser_Vtbl { let this = (*this).get_impl(); this.SetRequireUniquePassword(::core::mem::transmute_copy(&frequireuniquepassword)).into() } - unsafe extern "system" fn EmailAddress, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn EmailAddress, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EmailAddress() { @@ -6603,12 +6603,12 @@ impl IADsUser_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetEmailAddress, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstremailaddress: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetEmailAddress, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstremailaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetEmailAddress(::core::mem::transmute(&bstremailaddress)).into() } - unsafe extern "system" fn HomeDirectory, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn HomeDirectory, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.HomeDirectory() { @@ -6619,7 +6619,7 @@ impl IADsUser_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetHomeDirectory, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrhomedirectory: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetHomeDirectory, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrhomedirectory: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetHomeDirectory(::core::mem::transmute(&bstrhomedirectory)).into() @@ -6640,7 +6640,7 @@ impl IADsUser_Vtbl { let this = (*this).get_impl(); this.SetLanguages(::core::mem::transmute(&vlanguages)).into() } - unsafe extern "system" fn Profile, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Profile, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Profile() { @@ -6651,12 +6651,12 @@ impl IADsUser_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetProfile, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprofile: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetProfile, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprofile: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetProfile(::core::mem::transmute(&bstrprofile)).into() } - unsafe extern "system" fn LoginScript, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LoginScript, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LoginScript() { @@ -6667,7 +6667,7 @@ impl IADsUser_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetLoginScript, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrloginscript: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetLoginScript, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrloginscript: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetLoginScript(::core::mem::transmute(&bstrloginscript)).into() @@ -6688,7 +6688,7 @@ impl IADsUser_Vtbl { let this = (*this).get_impl(); this.SetPicture(::core::mem::transmute(&vpicture)).into() } - unsafe extern "system" fn HomePage, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn HomePage, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.HomePage() { @@ -6699,7 +6699,7 @@ impl IADsUser_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetHomePage, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrhomepage: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetHomePage, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrhomepage: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetHomePage(::core::mem::transmute(&bstrhomepage)).into() @@ -6715,12 +6715,12 @@ impl IADsUser_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPassword, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPassword, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPassword(::core::mem::transmute(&newpassword)).into() } - unsafe extern "system" fn ChangePassword, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstroldpassword: ::core::mem::ManuallyDrop, bstrnewpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ChangePassword, Impl: IADsUser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstroldpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrnewpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ChangePassword(::core::mem::transmute(&bstroldpassword), ::core::mem::transmute(&bstrnewpassword)).into() @@ -6826,17 +6826,17 @@ impl IADsUser_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IADsWinNTSystemInfo_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn UserName(&self) -> ::windows::core::Result; - fn ComputerName(&self) -> ::windows::core::Result; - fn DomainName(&self) -> ::windows::core::Result; - fn PDC(&self) -> ::windows::core::Result; + fn UserName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ComputerName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn DomainName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn PDC(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IADsWinNTSystemInfo {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IADsWinNTSystemInfo_Vtbl { pub const fn new, Impl: IADsWinNTSystemInfo_Impl, const OFFSET: isize>() -> IADsWinNTSystemInfo_Vtbl { - unsafe extern "system" fn UserName, Impl: IADsWinNTSystemInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UserName, Impl: IADsWinNTSystemInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UserName() { @@ -6847,7 +6847,7 @@ impl IADsWinNTSystemInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ComputerName, Impl: IADsWinNTSystemInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ComputerName, Impl: IADsWinNTSystemInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ComputerName() { @@ -6858,7 +6858,7 @@ impl IADsWinNTSystemInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DomainName, Impl: IADsWinNTSystemInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DomainName, Impl: IADsWinNTSystemInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DomainName() { @@ -6869,7 +6869,7 @@ impl IADsWinNTSystemInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn PDC, Impl: IADsWinNTSystemInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PDC, Impl: IADsWinNTSystemInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PDC() { @@ -7224,7 +7224,7 @@ pub trait IDsAdminNewObjExt_Impl: Sized { fn SetObject(&self, padsobj: &::core::option::Option) -> ::windows::core::Result<()>; fn WriteData(&self, hwnd: super::super::Foundation::HWND, ucontext: u32) -> ::windows::core::Result<()>; fn OnError(&self, hwnd: super::super::Foundation::HWND, hr: ::windows::core::HRESULT, ucontext: u32) -> ::windows::core::Result<()>; - fn GetSummaryInfo(&self, pbstrtext: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetSummaryInfo(&self, pbstrtext: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_UI_Controls", feature = "Win32_UI_WindowsAndMessaging"))] impl ::windows::core::RuntimeName for IDsAdminNewObjExt {} @@ -7256,7 +7256,7 @@ impl IDsAdminNewObjExt_Vtbl { let this = (*this).get_impl(); this.OnError(::core::mem::transmute_copy(&hwnd), ::core::mem::transmute_copy(&hr), ::core::mem::transmute_copy(&ucontext)).into() } - unsafe extern "system" fn GetSummaryInfo, Impl: IDsAdminNewObjExt_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSummaryInfo, Impl: IDsAdminNewObjExt_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetSummaryInfo(::core::mem::transmute_copy(&pbstrtext)).into() @@ -7302,16 +7302,16 @@ impl IDsAdminNewObjPrimarySite_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IDsAdminNotifyHandler_Impl: Sized { fn Initialize(&self, pextrainfo: &::core::option::Option, pueventflags: *mut u32) -> ::windows::core::Result<()>; - fn Begin(&self, uevent: u32, parg1: &::core::option::Option, parg2: &::core::option::Option, puflags: *mut u32, pbstr: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Begin(&self, uevent: u32, parg1: &::core::option::Option, parg2: &::core::option::Option, puflags: *mut u32, pbstr: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn Notify(&self, nitem: u32, uflags: u32) -> ::windows::core::Result<()>; fn End(&self) -> ::windows::core::Result<()>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IDsAdminNotifyHandler {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IDsAdminNotifyHandler_Vtbl { pub const fn new, Impl: IDsAdminNotifyHandler_Impl, const OFFSET: isize>() -> IDsAdminNotifyHandler_Vtbl { unsafe extern "system" fn Initialize, Impl: IDsAdminNotifyHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pextrainfo: *mut ::core::ffi::c_void, pueventflags: *mut u32) -> ::windows::core::HRESULT { @@ -7319,7 +7319,7 @@ impl IDsAdminNotifyHandler_Vtbl { let this = (*this).get_impl(); this.Initialize(::core::mem::transmute(&pextrainfo), ::core::mem::transmute_copy(&pueventflags)).into() } - unsafe extern "system" fn Begin, Impl: IDsAdminNotifyHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uevent: u32, parg1: *mut ::core::ffi::c_void, parg2: *mut ::core::ffi::c_void, puflags: *mut u32, pbstr: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Begin, Impl: IDsAdminNotifyHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uevent: u32, parg1: *mut ::core::ffi::c_void, parg2: *mut ::core::ffi::c_void, puflags: *mut u32, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Begin(::core::mem::transmute_copy(&uevent), ::core::mem::transmute(&parg1), ::core::mem::transmute(&parg2), ::core::mem::transmute_copy(&puflags), ::core::mem::transmute_copy(&pbstr)).into() @@ -7680,17 +7680,14 @@ impl IPrivateDispatch_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IPrivateUnknown_Impl: Sized { - fn ADSIInitializeObject(&self, lpszusername: &super::super::Foundation::BSTR, lpszpassword: &super::super::Foundation::BSTR, lnreserved: i32) -> ::windows::core::Result<()>; + fn ADSIInitializeObject(&self, lpszusername: &::windows::core::BSTR, lpszpassword: &::windows::core::BSTR, lnreserved: i32) -> ::windows::core::Result<()>; fn ADSIReleaseObject(&self) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IPrivateUnknown {} -#[cfg(feature = "Win32_Foundation")] impl IPrivateUnknown_Vtbl { pub const fn new, Impl: IPrivateUnknown_Impl, const OFFSET: isize>() -> IPrivateUnknown_Vtbl { - unsafe extern "system" fn ADSIInitializeObject, Impl: IPrivateUnknown_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lpszusername: ::core::mem::ManuallyDrop, lpszpassword: ::core::mem::ManuallyDrop, lnreserved: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn ADSIInitializeObject, Impl: IPrivateUnknown_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lpszusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lpszpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lnreserved: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ADSIInitializeObject(::core::mem::transmute(&lpszusername), ::core::mem::transmute(&lpszpassword), ::core::mem::transmute_copy(&lnreserved)).into() diff --git a/crates/libs/windows/src/Windows/Win32/Networking/ActiveDirectory/mod.rs b/crates/libs/windows/src/Windows/Win32/Networking/ActiveDirectory/mod.rs index 88f1715655..31095a47c0 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/ActiveDirectory/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/ActiveDirectory/mod.rs @@ -2021,41 +2021,29 @@ where pub struct IADs(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IADs { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Class(&self) -> ::windows::core::Result { + pub unsafe fn Class(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GUID(&self) -> ::windows::core::Result { + pub unsafe fn GUID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ADsPath(&self) -> ::windows::core::Result { + pub unsafe fn ADsPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Parent(&self) -> ::windows::core::Result { + pub unsafe fn Parent(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Schema(&self) -> ::windows::core::Result { + pub unsafe fn Schema(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetInfo(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetInfo)(::windows::core::Interface::as_raw(self)).ok() @@ -2065,39 +2053,31 @@ impl IADs { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Get<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn Get(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Get)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Get)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Put<'a, P0, P1>(&self, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn Put<'a, P0>(&self, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).Put)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).Put)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetEx<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetEx(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetEx)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn PutEx<'a, P0, P1>(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn PutEx<'a, P0>(&self, lncontrolcode: i32, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2174,46 +2154,28 @@ unsafe impl ::windows::core::Interface for IADs { #[doc(hidden)] pub struct IADs_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub Class: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Class: usize, - #[cfg(feature = "Win32_Foundation")] - pub GUID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GUID: usize, - #[cfg(feature = "Win32_Foundation")] - pub ADsPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ADsPath: usize, - #[cfg(feature = "Win32_Foundation")] - pub Parent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Parent: usize, - #[cfg(feature = "Win32_Foundation")] - pub Schema: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Schema: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Class: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GUID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ADsPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Parent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Schema: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub SetInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub Get: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, pvprop: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub Get: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvprop: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Get: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub Put: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, vprop: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub Put: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, vprop: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Put: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, pvprop: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvprop: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetEx: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub PutEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lncontrolcode: i32, bstrname: ::core::mem::ManuallyDrop, vprop: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub PutEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lncontrolcode: i32, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, vprop: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] PutEx: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2227,72 +2189,49 @@ pub struct IADs_Vtbl { pub struct IADsADSystemInfo(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IADsADSystemInfo { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserName(&self) -> ::windows::core::Result { + pub unsafe fn UserName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ComputerName(&self) -> ::windows::core::Result { + pub unsafe fn ComputerName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ComputerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ComputerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SiteName(&self) -> ::windows::core::Result { + pub unsafe fn SiteName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SiteName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SiteName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DomainShortName(&self) -> ::windows::core::Result { + pub unsafe fn DomainShortName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DomainShortName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DomainShortName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DomainDNSName(&self) -> ::windows::core::Result { + pub unsafe fn DomainDNSName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DomainDNSName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DomainDNSName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ForestDNSName(&self) -> ::windows::core::Result { + pub unsafe fn ForestDNSName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ForestDNSName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ForestDNSName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PDCRoleOwner(&self) -> ::windows::core::Result { + pub unsafe fn PDCRoleOwner(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PDCRoleOwner)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PDCRoleOwner)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SchemaRoleOwner(&self) -> ::windows::core::Result { + pub unsafe fn SchemaRoleOwner(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SchemaRoleOwner)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SchemaRoleOwner)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn IsNativeMode(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).IsNativeMode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetAnyDCName(&self) -> ::windows::core::Result { + pub unsafe fn GetAnyDCName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetAnyDCName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetAnyDCName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDCSiteName<'a, P0>(&self, szserver: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetDCSiteName(&self, szserver: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDCSiteName)(::windows::core::Interface::as_raw(self), szserver.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDCSiteName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(szserver), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn RefreshSchemaCache(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RefreshSchemaCache)(::windows::core::Interface::as_raw(self)).ok() @@ -2370,47 +2309,17 @@ unsafe impl ::windows::core::Interface for IADsADSystemInfo { #[doc(hidden)] pub struct IADsADSystemInfo_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub UserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UserName: usize, - #[cfg(feature = "Win32_Foundation")] - pub ComputerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ComputerName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SiteName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SiteName: usize, - #[cfg(feature = "Win32_Foundation")] - pub DomainShortName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DomainShortName: usize, - #[cfg(feature = "Win32_Foundation")] - pub DomainDNSName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DomainDNSName: usize, - #[cfg(feature = "Win32_Foundation")] - pub ForestDNSName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ForestDNSName: usize, - #[cfg(feature = "Win32_Foundation")] - pub PDCRoleOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PDCRoleOwner: usize, - #[cfg(feature = "Win32_Foundation")] - pub SchemaRoleOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SchemaRoleOwner: usize, + pub UserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ComputerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SiteName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DomainShortName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DomainDNSName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ForestDNSName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub PDCRoleOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SchemaRoleOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub IsNativeMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetAnyDCName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszdcname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetAnyDCName: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetDCSiteName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szserver: ::core::mem::ManuallyDrop, pszsitename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDCSiteName: usize, + pub GetAnyDCName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszdcname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetDCSiteName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szserver: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pszsitename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub RefreshSchemaCache: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub GetTrees: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvtrees: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, @@ -2451,47 +2360,26 @@ impl IADsAccessControlEntry { pub unsafe fn SetFlags(&self, lnflags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetFlags)(::windows::core::Interface::as_raw(self), lnflags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ObjectType(&self) -> ::windows::core::Result { + pub unsafe fn ObjectType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ObjectType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ObjectType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetObjectType<'a, P0>(&self, bstrobjecttype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetObjectType)(::windows::core::Interface::as_raw(self), bstrobjecttype.into().abi()).ok() + pub unsafe fn SetObjectType(&self, bstrobjecttype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetObjectType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrobjecttype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InheritedObjectType(&self) -> ::windows::core::Result { + pub unsafe fn InheritedObjectType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).InheritedObjectType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).InheritedObjectType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetInheritedObjectType<'a, P0>(&self, bstrinheritedobjecttype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetInheritedObjectType)(::windows::core::Interface::as_raw(self), bstrinheritedobjecttype.into().abi()).ok() + pub unsafe fn SetInheritedObjectType(&self, bstrinheritedobjecttype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetInheritedObjectType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrinheritedobjecttype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Trustee(&self) -> ::windows::core::Result { + pub unsafe fn Trustee(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Trustee)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Trustee)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetTrustee<'a, P0>(&self, bstrtrustee: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetTrustee)(::windows::core::Interface::as_raw(self), bstrtrustee.into().abi()).ok() + pub unsafe fn SetTrustee(&self, bstrtrustee: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetTrustee)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtrustee)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2568,30 +2456,12 @@ pub struct IADsAccessControlEntry_Vtbl { pub SetAceFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnaceflags: i32) -> ::windows::core::HRESULT, pub Flags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, pub SetFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnflags: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ObjectType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ObjectType: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetObjectType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrobjecttype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetObjectType: usize, - #[cfg(feature = "Win32_Foundation")] - pub InheritedObjectType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InheritedObjectType: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetInheritedObjectType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinheritedobjecttype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetInheritedObjectType: usize, - #[cfg(feature = "Win32_Foundation")] - pub Trustee: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Trustee: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetTrustee: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtrustee: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetTrustee: usize, + pub ObjectType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetObjectType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrobjecttype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub InheritedObjectType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetInheritedObjectType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinheritedobjecttype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Trustee: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetTrustee: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtrustee: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2730,33 +2600,19 @@ pub struct IADsAccessControlList_Vtbl { pub struct IADsAcl(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IADsAcl { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ProtectedAttrName(&self) -> ::windows::core::Result { + pub unsafe fn ProtectedAttrName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ProtectedAttrName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ProtectedAttrName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetProtectedAttrName<'a, P0>(&self, bstrprotectedattrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetProtectedAttrName)(::windows::core::Interface::as_raw(self), bstrprotectedattrname.into().abi()).ok() + pub unsafe fn SetProtectedAttrName(&self, bstrprotectedattrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetProtectedAttrName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprotectedattrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SubjectName(&self) -> ::windows::core::Result { + pub unsafe fn SubjectName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SubjectName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SubjectName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSubjectName<'a, P0>(&self, bstrsubjectname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSubjectName)(::windows::core::Interface::as_raw(self), bstrsubjectname.into().abi()).ok() + pub unsafe fn SetSubjectName(&self, bstrsubjectname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSubjectName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsubjectname)).ok() } pub unsafe fn Privileges(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2838,22 +2694,10 @@ unsafe impl ::windows::core::Interface for IADsAcl { #[doc(hidden)] pub struct IADsAcl_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub ProtectedAttrName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ProtectedAttrName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetProtectedAttrName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprotectedattrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetProtectedAttrName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SubjectName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SubjectName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSubjectName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsubjectname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSubjectName: usize, + pub ProtectedAttrName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetProtectedAttrName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprotectedattrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SubjectName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSubjectName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsubjectname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Privileges: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, pub SetPrivileges: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnprivileges: i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] @@ -2994,19 +2838,12 @@ impl IADsBackLink { pub unsafe fn SetRemoteID(&self, lnremoteid: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetRemoteID)(::windows::core::Interface::as_raw(self), lnremoteid).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ObjectName(&self) -> ::windows::core::Result { + pub unsafe fn ObjectName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ObjectName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ObjectName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetObjectName<'a, P0>(&self, bstrobjectname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetObjectName)(::windows::core::Interface::as_raw(self), bstrobjectname.into().abi()).ok() + pub unsafe fn SetObjectName(&self, bstrobjectname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetObjectName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrobjectname)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3077,14 +2914,8 @@ pub struct IADsBackLink_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub RemoteID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, pub SetRemoteID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnremoteid: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ObjectName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ObjectName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetObjectName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrobjectname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetObjectName: usize, + pub ObjectName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetObjectName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrobjectname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3188,41 +3019,29 @@ pub struct IADsCaseIgnoreList_Vtbl { pub struct IADsClass(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IADsClass { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Class(&self) -> ::windows::core::Result { + pub unsafe fn Class(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GUID(&self) -> ::windows::core::Result { + pub unsafe fn GUID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ADsPath(&self) -> ::windows::core::Result { + pub unsafe fn ADsPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Parent(&self) -> ::windows::core::Result { + pub unsafe fn Parent(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Schema(&self) -> ::windows::core::Result { + pub unsafe fn Schema(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetInfo(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetInfo)(::windows::core::Interface::as_raw(self)).ok() @@ -3232,39 +3051,31 @@ impl IADsClass { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Get<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn Get(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Put<'a, P0, P1>(&self, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn Put<'a, P0>(&self, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetEx<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetEx(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn PutEx<'a, P0, P1>(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn PutEx<'a, P0>(&self, lncontrolcode: i32, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3274,39 +3085,23 @@ impl IADsClass { { (::windows::core::Interface::vtable(self).base__.GetInfoEx)(::windows::core::Interface::as_raw(self), vproperties.into().abi(), lnreserved).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PrimaryInterface(&self) -> ::windows::core::Result { + pub unsafe fn PrimaryInterface(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PrimaryInterface)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PrimaryInterface)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CLSID(&self) -> ::windows::core::Result { + pub unsafe fn CLSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCLSID<'a, P0>(&self, bstrclsid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetCLSID)(::windows::core::Interface::as_raw(self), bstrclsid.into().abi()).ok() + pub unsafe fn SetCLSID(&self, bstrclsid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetCLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrclsid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OID(&self) -> ::windows::core::Result { + pub unsafe fn OID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).OID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).OID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetOID<'a, P0>(&self, bstroid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetOID)(::windows::core::Interface::as_raw(self), bstroid.into().abi()).ok() + pub unsafe fn SetOID(&self, bstroid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetOID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstroid)).ok() } pub unsafe fn Abstract(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3427,19 +3222,12 @@ impl IADsClass { pub unsafe fn SetContainer(&self, fcontainer: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetContainer)(::windows::core::Interface::as_raw(self), fcontainer).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn HelpFileName(&self) -> ::windows::core::Result { + pub unsafe fn HelpFileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).HelpFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).HelpFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetHelpFileName<'a, P0>(&self, bstrhelpfilename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetHelpFileName)(::windows::core::Interface::as_raw(self), bstrhelpfilename.into().abi()).ok() + pub unsafe fn SetHelpFileName(&self, bstrhelpfilename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetHelpFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrhelpfilename)).ok() } pub unsafe fn HelpFileContext(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3539,26 +3327,11 @@ unsafe impl ::windows::core::Interface for IADsClass { #[doc(hidden)] pub struct IADsClass_Vtbl { pub base__: IADs_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub PrimaryInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PrimaryInterface: usize, - #[cfg(feature = "Win32_Foundation")] - pub CLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CLSID: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetCLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrclsid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetCLSID: usize, - #[cfg(feature = "Win32_Foundation")] - pub OID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OID: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetOID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstroid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetOID: usize, + pub PrimaryInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetCLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrclsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub OID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetOID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstroid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Abstract: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i16) -> ::windows::core::HRESULT, pub SetAbstract: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fabstract: i16) -> ::windows::core::HRESULT, pub Auxiliary: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i16) -> ::windows::core::HRESULT, @@ -3621,14 +3394,8 @@ pub struct IADsClass_Vtbl { SetContainment: usize, pub Container: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i16) -> ::windows::core::HRESULT, pub SetContainer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fcontainer: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub HelpFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - HelpFileName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetHelpFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrhelpfilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetHelpFileName: usize, + pub HelpFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetHelpFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrhelpfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub HelpFileContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, pub SetHelpFileContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnhelpfilecontext: i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] @@ -3648,29 +3415,20 @@ impl IADsCollection { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Add<'a, P0, P1>(&self, bstrname: P0, vitem: P1) -> ::windows::core::Result<()> + pub unsafe fn Add<'a, P0>(&self, bstrname: &::windows::core::BSTR, vitem: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), vitem.into().abi()).ok() + (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), vitem.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Remove<'a, P0>(&self, bstritemtoberemoved: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), bstritemtoberemoved.into().abi()).ok() + pub unsafe fn Remove(&self, bstritemtoberemoved: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstritemtoberemoved)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetObject<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetObject(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetObject)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetObject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -3741,15 +3499,12 @@ pub struct IADsCollection_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumerator: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, vitem: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, vitem: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Add: usize, - #[cfg(feature = "Win32_Foundation")] - pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritemtoberemoved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Remove: usize, + pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritemtoberemoved: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, pvitem: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvitem: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetObject: usize, } @@ -3759,41 +3514,29 @@ pub struct IADsCollection_Vtbl { pub struct IADsComputer(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IADsComputer { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Class(&self) -> ::windows::core::Result { + pub unsafe fn Class(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GUID(&self) -> ::windows::core::Result { + pub unsafe fn GUID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ADsPath(&self) -> ::windows::core::Result { + pub unsafe fn ADsPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Parent(&self) -> ::windows::core::Result { + pub unsafe fn Parent(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Schema(&self) -> ::windows::core::Result { + pub unsafe fn Schema(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetInfo(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetInfo)(::windows::core::Interface::as_raw(self)).ok() @@ -3803,39 +3546,31 @@ impl IADsComputer { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Get<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn Get(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Put<'a, P0, P1>(&self, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn Put<'a, P0>(&self, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetEx<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetEx(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn PutEx<'a, P0, P1>(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn PutEx<'a, P0>(&self, lncontrolcode: i32, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3845,213 +3580,111 @@ impl IADsComputer { { (::windows::core::Interface::vtable(self).base__.GetInfoEx)(::windows::core::Interface::as_raw(self), vproperties.into().abi(), lnreserved).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ComputerID(&self) -> ::windows::core::Result { + pub unsafe fn ComputerID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ComputerID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ComputerID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Site(&self) -> ::windows::core::Result { + pub unsafe fn Site(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Site)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Site)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bstrdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), bstrdescription.into().abi()).ok() + pub unsafe fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdescription)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Location(&self) -> ::windows::core::Result { + pub unsafe fn Location(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Location)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Location)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLocation<'a, P0>(&self, bstrlocation: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetLocation)(::windows::core::Interface::as_raw(self), bstrlocation.into().abi()).ok() + pub unsafe fn SetLocation(&self, bstrlocation: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrlocation)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PrimaryUser(&self) -> ::windows::core::Result { + pub unsafe fn PrimaryUser(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PrimaryUser)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PrimaryUser)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPrimaryUser<'a, P0>(&self, bstrprimaryuser: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPrimaryUser)(::windows::core::Interface::as_raw(self), bstrprimaryuser.into().abi()).ok() + pub unsafe fn SetPrimaryUser(&self, bstrprimaryuser: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPrimaryUser)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprimaryuser)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Owner(&self) -> ::windows::core::Result { + pub unsafe fn Owner(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Owner)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Owner)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetOwner<'a, P0>(&self, bstrowner: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetOwner)(::windows::core::Interface::as_raw(self), bstrowner.into().abi()).ok() + pub unsafe fn SetOwner(&self, bstrowner: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetOwner)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrowner)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Division(&self) -> ::windows::core::Result { + pub unsafe fn Division(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Division)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Division)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDivision<'a, P0>(&self, bstrdivision: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDivision)(::windows::core::Interface::as_raw(self), bstrdivision.into().abi()).ok() + pub unsafe fn SetDivision(&self, bstrdivision: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDivision)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdivision)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Department(&self) -> ::windows::core::Result { + pub unsafe fn Department(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Department)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Department)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDepartment<'a, P0>(&self, bstrdepartment: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDepartment)(::windows::core::Interface::as_raw(self), bstrdepartment.into().abi()).ok() + pub unsafe fn SetDepartment(&self, bstrdepartment: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDepartment)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdepartment)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Role(&self) -> ::windows::core::Result { + pub unsafe fn Role(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Role)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Role)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRole<'a, P0>(&self, bstrrole: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetRole)(::windows::core::Interface::as_raw(self), bstrrole.into().abi()).ok() + pub unsafe fn SetRole(&self, bstrrole: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrole)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OperatingSystem(&self) -> ::windows::core::Result { + pub unsafe fn OperatingSystem(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).OperatingSystem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).OperatingSystem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetOperatingSystem<'a, P0>(&self, bstroperatingsystem: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetOperatingSystem)(::windows::core::Interface::as_raw(self), bstroperatingsystem.into().abi()).ok() + pub unsafe fn SetOperatingSystem(&self, bstroperatingsystem: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetOperatingSystem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstroperatingsystem)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OperatingSystemVersion(&self) -> ::windows::core::Result { + pub unsafe fn OperatingSystemVersion(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).OperatingSystemVersion)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).OperatingSystemVersion)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetOperatingSystemVersion<'a, P0>(&self, bstroperatingsystemversion: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetOperatingSystemVersion)(::windows::core::Interface::as_raw(self), bstroperatingsystemversion.into().abi()).ok() + pub unsafe fn SetOperatingSystemVersion(&self, bstroperatingsystemversion: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetOperatingSystemVersion)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstroperatingsystemversion)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Model(&self) -> ::windows::core::Result { + pub unsafe fn Model(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Model)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Model)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetModel<'a, P0>(&self, bstrmodel: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetModel)(::windows::core::Interface::as_raw(self), bstrmodel.into().abi()).ok() + pub unsafe fn SetModel(&self, bstrmodel: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetModel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrmodel)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Processor(&self) -> ::windows::core::Result { + pub unsafe fn Processor(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Processor)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Processor)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetProcessor<'a, P0>(&self, bstrprocessor: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetProcessor)(::windows::core::Interface::as_raw(self), bstrprocessor.into().abi()).ok() + pub unsafe fn SetProcessor(&self, bstrprocessor: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetProcessor)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprocessor)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ProcessorCount(&self) -> ::windows::core::Result { + pub unsafe fn ProcessorCount(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ProcessorCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ProcessorCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetProcessorCount<'a, P0>(&self, bstrprocessorcount: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetProcessorCount)(::windows::core::Interface::as_raw(self), bstrprocessorcount.into().abi()).ok() + pub unsafe fn SetProcessorCount(&self, bstrprocessorcount: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetProcessorCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprocessorcount)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MemorySize(&self) -> ::windows::core::Result { + pub unsafe fn MemorySize(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).MemorySize)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).MemorySize)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMemorySize<'a, P0>(&self, bstrmemorysize: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetMemorySize)(::windows::core::Interface::as_raw(self), bstrmemorysize.into().abi()).ok() + pub unsafe fn SetMemorySize(&self, bstrmemorysize: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetMemorySize)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrmemorysize)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StorageCapacity(&self) -> ::windows::core::Result { + pub unsafe fn StorageCapacity(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).StorageCapacity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).StorageCapacity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetStorageCapacity<'a, P0>(&self, bstrstoragecapacity: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetStorageCapacity)(::windows::core::Interface::as_raw(self), bstrstoragecapacity.into().abi()).ok() + pub unsafe fn SetStorageCapacity(&self, bstrstoragecapacity: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetStorageCapacity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrstoragecapacity)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -4152,126 +3785,36 @@ unsafe impl ::windows::core::Interface for IADsComputer { #[doc(hidden)] pub struct IADsComputer_Vtbl { pub base__: IADs_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub ComputerID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ComputerID: usize, - #[cfg(feature = "Win32_Foundation")] - pub Site: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Site: usize, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDescription: usize, - #[cfg(feature = "Win32_Foundation")] - pub Location: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Location: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrlocation: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetLocation: usize, - #[cfg(feature = "Win32_Foundation")] - pub PrimaryUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PrimaryUser: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPrimaryUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprimaryuser: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPrimaryUser: usize, - #[cfg(feature = "Win32_Foundation")] - pub Owner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Owner: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrowner: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetOwner: usize, - #[cfg(feature = "Win32_Foundation")] - pub Division: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Division: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDivision: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdivision: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDivision: usize, - #[cfg(feature = "Win32_Foundation")] - pub Department: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Department: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDepartment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdepartment: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDepartment: usize, - #[cfg(feature = "Win32_Foundation")] - pub Role: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Role: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetRole: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrole: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetRole: usize, - #[cfg(feature = "Win32_Foundation")] - pub OperatingSystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OperatingSystem: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetOperatingSystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstroperatingsystem: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetOperatingSystem: usize, - #[cfg(feature = "Win32_Foundation")] - pub OperatingSystemVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OperatingSystemVersion: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetOperatingSystemVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstroperatingsystemversion: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetOperatingSystemVersion: usize, - #[cfg(feature = "Win32_Foundation")] - pub Model: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Model: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetModel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmodel: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetModel: usize, - #[cfg(feature = "Win32_Foundation")] - pub Processor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Processor: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetProcessor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprocessor: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetProcessor: usize, - #[cfg(feature = "Win32_Foundation")] - pub ProcessorCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ProcessorCount: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetProcessorCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprocessorcount: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetProcessorCount: usize, - #[cfg(feature = "Win32_Foundation")] - pub MemorySize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MemorySize: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetMemorySize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmemorysize: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetMemorySize: usize, - #[cfg(feature = "Win32_Foundation")] - pub StorageCapacity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - StorageCapacity: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetStorageCapacity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrstoragecapacity: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetStorageCapacity: usize, + pub ComputerID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Site: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Location: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrlocation: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub PrimaryUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetPrimaryUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprimaryuser: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Owner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrowner: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Division: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDivision: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdivision: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Department: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDepartment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdepartment: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Role: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetRole: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrole: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub OperatingSystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetOperatingSystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstroperatingsystem: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub OperatingSystemVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetOperatingSystemVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstroperatingsystemversion: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Model: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetModel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmodel: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Processor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetProcessor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprocessor: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ProcessorCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetProcessorCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprocessorcount: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub MemorySize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetMemorySize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmemorysize: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub StorageCapacity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetStorageCapacity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrstoragecapacity: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub NetAddresses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -4287,41 +3830,29 @@ pub struct IADsComputer_Vtbl { pub struct IADsComputerOperations(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IADsComputerOperations { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Class(&self) -> ::windows::core::Result { + pub unsafe fn Class(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GUID(&self) -> ::windows::core::Result { + pub unsafe fn GUID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ADsPath(&self) -> ::windows::core::Result { + pub unsafe fn ADsPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Parent(&self) -> ::windows::core::Result { + pub unsafe fn Parent(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Schema(&self) -> ::windows::core::Result { + pub unsafe fn Schema(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetInfo(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetInfo)(::windows::core::Interface::as_raw(self)).ok() @@ -4331,39 +3862,31 @@ impl IADsComputerOperations { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Get<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn Get(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Put<'a, P0, P1>(&self, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn Put<'a, P0>(&self, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetEx<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetEx(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn PutEx<'a, P0, P1>(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn PutEx<'a, P0>(&self, lncontrolcode: i32, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -4515,54 +4038,32 @@ impl IADsContainer { { (::windows::core::Interface::vtable(self).SetHints)(::windows::core::Interface::as_raw(self), vhints.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetObject<'a, P0, P1>(&self, classname: P0, relativename: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetObject(&self, classname: &::windows::core::BSTR, relativename: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetObject)(::windows::core::Interface::as_raw(self), classname.into().abi(), relativename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetObject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(classname), ::core::mem::transmute_copy(relativename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Create<'a, P0, P1>(&self, classname: P0, relativename: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Create(&self, classname: &::windows::core::BSTR, relativename: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Create)(::windows::core::Interface::as_raw(self), classname.into().abi(), relativename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Create)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(classname), ::core::mem::transmute_copy(relativename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Delete<'a, P0, P1>(&self, bstrclassname: P0, bstrrelativename: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Delete)(::windows::core::Interface::as_raw(self), bstrclassname.into().abi(), bstrrelativename.into().abi()).ok() + pub unsafe fn Delete(&self, bstrclassname: &::windows::core::BSTR, bstrrelativename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Delete)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrclassname), ::core::mem::transmute_copy(bstrrelativename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CopyHere<'a, P0, P1>(&self, sourcename: P0, newname: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CopyHere(&self, sourcename: &::windows::core::BSTR, newname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CopyHere)(::windows::core::Interface::as_raw(self), sourcename.into().abi(), newname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CopyHere)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(sourcename), ::core::mem::transmute_copy(newname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn MoveHere<'a, P0, P1>(&self, sourcename: P0, newname: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn MoveHere(&self, sourcename: &::windows::core::BSTR, newname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).MoveHere)(::windows::core::Interface::as_raw(self), sourcename.into().abi(), newname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).MoveHere)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(sourcename), ::core::mem::transmute_copy(newname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -4649,25 +4150,22 @@ pub struct IADsContainer_Vtbl { pub SetHints: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vhints: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SetHints: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, classname: ::core::mem::ManuallyDrop, relativename: ::core::mem::ManuallyDrop, ppobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, classname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, relativename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetObject: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, classname: ::core::mem::ManuallyDrop, relativename: ::core::mem::ManuallyDrop, ppobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, classname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, relativename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Create: usize, - #[cfg(feature = "Win32_Foundation")] - pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrclassname: ::core::mem::ManuallyDrop, bstrrelativename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Delete: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CopyHere: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sourcename: ::core::mem::ManuallyDrop, newname: ::core::mem::ManuallyDrop, ppobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrclassname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrrelativename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub CopyHere: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sourcename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, newname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CopyHere: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub MoveHere: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sourcename: ::core::mem::ManuallyDrop, newname: ::core::mem::ManuallyDrop, ppobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub MoveHere: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sourcename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, newname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] MoveHere: usize, } #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`, `\"Win32_System_Com\"`*"] @@ -4690,19 +4188,12 @@ impl IADsDNWithBinary { { (::windows::core::Interface::vtable(self).SetBinaryValue)(::windows::core::Interface::as_raw(self), vbinaryvalue.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DNString(&self) -> ::windows::core::Result { + pub unsafe fn DNString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DNString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DNString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDNString<'a, P0>(&self, bstrdnstring: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDNString)(::windows::core::Interface::as_raw(self), bstrdnstring.into().abi()).ok() + pub unsafe fn SetDNString(&self, bstrdnstring: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDNString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdnstring)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4779,14 +4270,8 @@ pub struct IADsDNWithBinary_Vtbl { pub SetBinaryValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vbinaryvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SetBinaryValue: usize, - #[cfg(feature = "Win32_Foundation")] - pub DNString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DNString: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDNString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdnstring: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDNString: usize, + pub DNString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDNString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdnstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4794,33 +4279,19 @@ pub struct IADsDNWithBinary_Vtbl { pub struct IADsDNWithString(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IADsDNWithString { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StringValue(&self) -> ::windows::core::Result { + pub unsafe fn StringValue(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).StringValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).StringValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetStringValue<'a, P0>(&self, bstrstringvalue: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetStringValue)(::windows::core::Interface::as_raw(self), bstrstringvalue.into().abi()).ok() + pub unsafe fn SetStringValue(&self, bstrstringvalue: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetStringValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrstringvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DNString(&self) -> ::windows::core::Result { + pub unsafe fn DNString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DNString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DNString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDNString<'a, P0>(&self, bstrdnstring: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDNString)(::windows::core::Interface::as_raw(self), bstrdnstring.into().abi()).ok() + pub unsafe fn SetDNString(&self, bstrdnstring: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDNString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdnstring)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4889,22 +4360,10 @@ unsafe impl ::windows::core::Interface for IADsDNWithString { #[doc(hidden)] pub struct IADsDNWithString_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub StringValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - StringValue: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetStringValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrstringvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetStringValue: usize, - #[cfg(feature = "Win32_Foundation")] - pub DNString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DNString: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDNString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdnstring: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDNString: usize, + pub StringValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetStringValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrstringvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DNString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDNString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdnstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4990,41 +4449,29 @@ pub struct IADsDeleteOps_Vtbl { pub struct IADsDomain(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IADsDomain { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Class(&self) -> ::windows::core::Result { + pub unsafe fn Class(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GUID(&self) -> ::windows::core::Result { + pub unsafe fn GUID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ADsPath(&self) -> ::windows::core::Result { + pub unsafe fn ADsPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Parent(&self) -> ::windows::core::Result { + pub unsafe fn Parent(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Schema(&self) -> ::windows::core::Result { + pub unsafe fn Schema(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetInfo(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetInfo)(::windows::core::Interface::as_raw(self)).ok() @@ -5034,39 +4481,31 @@ impl IADsDomain { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Get<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn Get(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Put<'a, P0, P1>(&self, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn Put<'a, P0>(&self, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetEx<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetEx(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn PutEx<'a, P0, P1>(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn PutEx<'a, P0>(&self, lncontrolcode: i32, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -5252,19 +4691,12 @@ impl IADsEmail { pub unsafe fn SetType(&self, lntype: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetType)(::windows::core::Interface::as_raw(self), lntype).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Address(&self) -> ::windows::core::Result { + pub unsafe fn Address(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Address)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Address)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetAddress<'a, P0>(&self, bstraddress: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetAddress)(::windows::core::Interface::as_raw(self), bstraddress.into().abi()).ok() + pub unsafe fn SetAddress(&self, bstraddress: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstraddress)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5335,14 +4767,8 @@ pub struct IADsEmail_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, pub SetType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lntype: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Address: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Address: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstraddress: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetAddress: usize, + pub Address: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstraddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] #[repr(transparent)] @@ -5423,19 +4849,12 @@ pub struct IADsExtension_Vtbl { pub struct IADsFaxNumber(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IADsFaxNumber { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TelephoneNumber(&self) -> ::windows::core::Result { + pub unsafe fn TelephoneNumber(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TelephoneNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TelephoneNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetTelephoneNumber<'a, P0>(&self, bstrtelephonenumber: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetTelephoneNumber)(::windows::core::Interface::as_raw(self), bstrtelephonenumber.into().abi()).ok() + pub unsafe fn SetTelephoneNumber(&self, bstrtelephonenumber: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetTelephoneNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtelephonenumber)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -5518,14 +4937,8 @@ unsafe impl ::windows::core::Interface for IADsFaxNumber { #[doc(hidden)] pub struct IADsFaxNumber_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub TelephoneNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TelephoneNumber: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetTelephoneNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtelephonenumber: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetTelephoneNumber: usize, + pub TelephoneNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetTelephoneNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtelephonenumber: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub Parameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -5541,41 +4954,29 @@ pub struct IADsFaxNumber_Vtbl { pub struct IADsFileService(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IADsFileService { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Class(&self) -> ::windows::core::Result { + pub unsafe fn Class(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GUID(&self) -> ::windows::core::Result { + pub unsafe fn GUID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ADsPath(&self) -> ::windows::core::Result { + pub unsafe fn ADsPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Parent(&self) -> ::windows::core::Result { + pub unsafe fn Parent(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Schema(&self) -> ::windows::core::Result { + pub unsafe fn Schema(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetInfo(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.GetInfo)(::windows::core::Interface::as_raw(self)).ok() @@ -5585,39 +4986,31 @@ impl IADsFileService { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Get<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn Get(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Get)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Get)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Put<'a, P0, P1>(&self, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn Put<'a, P0>(&self, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.Put)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.Put)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetEx<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetEx(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetEx)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn PutEx<'a, P0, P1>(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn PutEx<'a, P0>(&self, lncontrolcode: i32, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -5627,47 +5020,26 @@ impl IADsFileService { { (::windows::core::Interface::vtable(self).base__.base__.GetInfoEx)(::windows::core::Interface::as_raw(self), vproperties.into().abi(), lnreserved).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn HostComputer(&self) -> ::windows::core::Result { + pub unsafe fn HostComputer(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.HostComputer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.HostComputer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetHostComputer<'a, P0>(&self, bstrhostcomputer: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetHostComputer)(::windows::core::Interface::as_raw(self), bstrhostcomputer.into().abi()).ok() + pub unsafe fn SetHostComputer(&self, bstrhostcomputer: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetHostComputer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrhostcomputer)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisplayName(&self) -> ::windows::core::Result { + pub unsafe fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDisplayName<'a, P0>(&self, bstrdisplayname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetDisplayName)(::windows::core::Interface::as_raw(self), bstrdisplayname.into().abi()).ok() + pub unsafe fn SetDisplayName(&self, bstrdisplayname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdisplayname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Version(&self) -> ::windows::core::Result { + pub unsafe fn Version(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Version)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Version)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetVersion<'a, P0>(&self, bstrversion: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetVersion)(::windows::core::Interface::as_raw(self), bstrversion.into().abi()).ok() + pub unsafe fn SetVersion(&self, bstrversion: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetVersion)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrversion)).ok() } pub unsafe fn ServiceType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5683,33 +5055,19 @@ impl IADsFileService { pub unsafe fn SetStartType(&self, lnstarttype: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetStartType)(::windows::core::Interface::as_raw(self), lnstarttype).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Path(&self) -> ::windows::core::Result { + pub unsafe fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPath<'a, P0>(&self, bstrpath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetPath)(::windows::core::Interface::as_raw(self), bstrpath.into().abi()).ok() + pub unsafe fn SetPath(&self, bstrpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpath)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StartupParameters(&self) -> ::windows::core::Result { + pub unsafe fn StartupParameters(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.StartupParameters)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.StartupParameters)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetStartupParameters<'a, P0>(&self, bstrstartupparameters: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetStartupParameters)(::windows::core::Interface::as_raw(self), bstrstartupparameters.into().abi()).ok() + pub unsafe fn SetStartupParameters(&self, bstrstartupparameters: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetStartupParameters)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrstartupparameters)).ok() } pub unsafe fn ErrorControl(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5718,47 +5076,26 @@ impl IADsFileService { pub unsafe fn SetErrorControl(&self, lnerrorcontrol: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetErrorControl)(::windows::core::Interface::as_raw(self), lnerrorcontrol).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LoadOrderGroup(&self) -> ::windows::core::Result { + pub unsafe fn LoadOrderGroup(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.LoadOrderGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.LoadOrderGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLoadOrderGroup<'a, P0>(&self, bstrloadordergroup: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetLoadOrderGroup)(::windows::core::Interface::as_raw(self), bstrloadordergroup.into().abi()).ok() + pub unsafe fn SetLoadOrderGroup(&self, bstrloadordergroup: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetLoadOrderGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrloadordergroup)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ServiceAccountName(&self) -> ::windows::core::Result { + pub unsafe fn ServiceAccountName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ServiceAccountName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ServiceAccountName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetServiceAccountName<'a, P0>(&self, bstrserviceaccountname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetServiceAccountName)(::windows::core::Interface::as_raw(self), bstrserviceaccountname.into().abi()).ok() + pub unsafe fn SetServiceAccountName(&self, bstrserviceaccountname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetServiceAccountName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrserviceaccountname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ServiceAccountPath(&self) -> ::windows::core::Result { + pub unsafe fn ServiceAccountPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ServiceAccountPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ServiceAccountPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetServiceAccountPath<'a, P0>(&self, bstrserviceaccountpath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetServiceAccountPath)(::windows::core::Interface::as_raw(self), bstrserviceaccountpath.into().abi()).ok() + pub unsafe fn SetServiceAccountPath(&self, bstrserviceaccountpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetServiceAccountPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrserviceaccountpath)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -5774,19 +5111,12 @@ impl IADsFileService { { (::windows::core::Interface::vtable(self).base__.SetDependencies)(::windows::core::Interface::as_raw(self), vdependencies.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bstrdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), bstrdescription.into().abi()).ok() + pub unsafe fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdescription)).ok() } pub unsafe fn MaxUserCount(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5898,14 +5228,8 @@ unsafe impl ::windows::core::Interface for IADsFileService { #[doc(hidden)] pub struct IADsFileService_Vtbl { pub base__: IADsService_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDescription: usize, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub MaxUserCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, pub SetMaxUserCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnmaxusercount: i32) -> ::windows::core::HRESULT, } @@ -5915,41 +5239,29 @@ pub struct IADsFileService_Vtbl { pub struct IADsFileServiceOperations(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IADsFileServiceOperations { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Class(&self) -> ::windows::core::Result { + pub unsafe fn Class(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GUID(&self) -> ::windows::core::Result { + pub unsafe fn GUID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ADsPath(&self) -> ::windows::core::Result { + pub unsafe fn ADsPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Parent(&self) -> ::windows::core::Result { + pub unsafe fn Parent(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Schema(&self) -> ::windows::core::Result { + pub unsafe fn Schema(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetInfo(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.GetInfo)(::windows::core::Interface::as_raw(self)).ok() @@ -5959,39 +5271,31 @@ impl IADsFileServiceOperations { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Get<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn Get(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Get)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Get)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Put<'a, P0, P1>(&self, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn Put<'a, P0>(&self, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.Put)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.Put)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetEx<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetEx(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetEx)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn PutEx<'a, P0, P1>(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn PutEx<'a, P0>(&self, lncontrolcode: i32, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -6017,13 +5321,8 @@ impl IADsFileServiceOperations { pub unsafe fn Continue(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Continue)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPassword<'a, P0>(&self, bstrnewpassword: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetPassword)(::windows::core::Interface::as_raw(self), bstrnewpassword.into().abi()).ok() + pub unsafe fn SetPassword(&self, bstrnewpassword: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetPassword)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrnewpassword)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6155,41 +5454,29 @@ pub struct IADsFileServiceOperations_Vtbl { pub struct IADsFileShare(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IADsFileShare { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Class(&self) -> ::windows::core::Result { + pub unsafe fn Class(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GUID(&self) -> ::windows::core::Result { + pub unsafe fn GUID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ADsPath(&self) -> ::windows::core::Result { + pub unsafe fn ADsPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Parent(&self) -> ::windows::core::Result { + pub unsafe fn Parent(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Schema(&self) -> ::windows::core::Result { + pub unsafe fn Schema(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetInfo(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetInfo)(::windows::core::Interface::as_raw(self)).ok() @@ -6199,39 +5486,31 @@ impl IADsFileShare { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Get<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn Get(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Put<'a, P0, P1>(&self, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn Put<'a, P0>(&self, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetEx<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetEx(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn PutEx<'a, P0, P1>(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn PutEx<'a, P0>(&self, lncontrolcode: i32, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -6245,47 +5524,26 @@ impl IADsFileShare { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CurrentUserCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bstrdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), bstrdescription.into().abi()).ok() + pub unsafe fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdescription)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn HostComputer(&self) -> ::windows::core::Result { + pub unsafe fn HostComputer(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).HostComputer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).HostComputer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetHostComputer<'a, P0>(&self, bstrhostcomputer: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetHostComputer)(::windows::core::Interface::as_raw(self), bstrhostcomputer.into().abi()).ok() + pub unsafe fn SetHostComputer(&self, bstrhostcomputer: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetHostComputer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrhostcomputer)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Path(&self) -> ::windows::core::Result { + pub unsafe fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPath<'a, P0>(&self, bstrpath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPath)(::windows::core::Interface::as_raw(self), bstrpath.into().abi()).ok() + pub unsafe fn SetPath(&self, bstrpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpath)).ok() } pub unsafe fn MaxUserCount(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6380,30 +5638,12 @@ unsafe impl ::windows::core::Interface for IADsFileShare { pub struct IADsFileShare_Vtbl { pub base__: IADs_Vtbl, pub CurrentUserCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDescription: usize, - #[cfg(feature = "Win32_Foundation")] - pub HostComputer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - HostComputer: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetHostComputer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrhostcomputer: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetHostComputer: usize, - #[cfg(feature = "Win32_Foundation")] - pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Path: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPath: usize, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub HostComputer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetHostComputer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrhostcomputer: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub MaxUserCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, pub SetMaxUserCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnmaxusercount: i32) -> ::windows::core::HRESULT, } @@ -6413,41 +5653,29 @@ pub struct IADsFileShare_Vtbl { pub struct IADsGroup(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IADsGroup { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Class(&self) -> ::windows::core::Result { + pub unsafe fn Class(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GUID(&self) -> ::windows::core::Result { + pub unsafe fn GUID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ADsPath(&self) -> ::windows::core::Result { + pub unsafe fn ADsPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Parent(&self) -> ::windows::core::Result { + pub unsafe fn Parent(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Schema(&self) -> ::windows::core::Result { + pub unsafe fn Schema(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetInfo(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetInfo)(::windows::core::Interface::as_raw(self)).ok() @@ -6457,39 +5685,31 @@ impl IADsGroup { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Get<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn Get(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Put<'a, P0, P1>(&self, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn Put<'a, P0>(&self, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetEx<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetEx(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn PutEx<'a, P0, P1>(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn PutEx<'a, P0>(&self, lncontrolcode: i32, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -6499,19 +5719,12 @@ impl IADsGroup { { (::windows::core::Interface::vtable(self).base__.GetInfoEx)(::windows::core::Interface::as_raw(self), vproperties.into().abi(), lnreserved).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bstrdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), bstrdescription.into().abi()).ok() + pub unsafe fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdescription)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6519,30 +5732,15 @@ impl IADsGroup { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Members)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsMember<'a, P0>(&self, bstrmember: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsMember(&self, bstrmember: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).IsMember)(::windows::core::Interface::as_raw(self), bstrmember.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).IsMember)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrmember), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Add<'a, P0>(&self, bstrnewitem: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), bstrnewitem.into().abi()).ok() + pub unsafe fn Add(&self, bstrnewitem: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrnewitem)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Remove<'a, P0>(&self, bstritemtoberemoved: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), bstritemtoberemoved.into().abi()).ok() + pub unsafe fn Remove(&self, bstritemtoberemoved: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstritemtoberemoved)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6629,30 +5827,15 @@ unsafe impl ::windows::core::Interface for IADsGroup { #[doc(hidden)] pub struct IADsGroup_Vtbl { pub base__: IADs_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDescription: usize, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Members: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppmembers: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Members: usize, - #[cfg(feature = "Win32_Foundation")] - pub IsMember: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmember: ::core::mem::ManuallyDrop, bmember: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - IsMember: usize, - #[cfg(feature = "Win32_Foundation")] - pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrnewitem: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Add: usize, - #[cfg(feature = "Win32_Foundation")] - pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritemtoberemoved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Remove: usize, + pub IsMember: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmember: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bmember: *mut i16) -> ::windows::core::HRESULT, + pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrnewitem: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstritemtoberemoved: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6660,19 +5843,12 @@ pub struct IADsGroup_Vtbl { pub struct IADsHold(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IADsHold { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ObjectName(&self) -> ::windows::core::Result { + pub unsafe fn ObjectName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ObjectName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ObjectName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetObjectName<'a, P0>(&self, bstrobjectname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetObjectName)(::windows::core::Interface::as_raw(self), bstrobjectname.into().abi()).ok() + pub unsafe fn SetObjectName(&self, bstrobjectname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetObjectName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrobjectname)).ok() } pub unsafe fn Amount(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6748,14 +5924,8 @@ unsafe impl ::windows::core::Interface for IADsHold { #[doc(hidden)] pub struct IADsHold_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub ObjectName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ObjectName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetObjectName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrobjectname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetObjectName: usize, + pub ObjectName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetObjectName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrobjectname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Amount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, pub SetAmount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnamount: i32) -> ::windows::core::HRESULT, } @@ -6857,41 +6027,29 @@ pub struct IADsLargeInteger_Vtbl { pub struct IADsLocality(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IADsLocality { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Class(&self) -> ::windows::core::Result { + pub unsafe fn Class(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GUID(&self) -> ::windows::core::Result { + pub unsafe fn GUID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ADsPath(&self) -> ::windows::core::Result { + pub unsafe fn ADsPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Parent(&self) -> ::windows::core::Result { + pub unsafe fn Parent(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Schema(&self) -> ::windows::core::Result { + pub unsafe fn Schema(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetInfo(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetInfo)(::windows::core::Interface::as_raw(self)).ok() @@ -6901,39 +6059,31 @@ impl IADsLocality { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Get<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn Get(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Put<'a, P0, P1>(&self, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn Put<'a, P0>(&self, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetEx<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetEx(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn PutEx<'a, P0, P1>(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn PutEx<'a, P0>(&self, lncontrolcode: i32, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -6943,47 +6093,26 @@ impl IADsLocality { { (::windows::core::Interface::vtable(self).base__.GetInfoEx)(::windows::core::Interface::as_raw(self), vproperties.into().abi(), lnreserved).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bstrdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), bstrdescription.into().abi()).ok() + pub unsafe fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdescription)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LocalityName(&self) -> ::windows::core::Result { + pub unsafe fn LocalityName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LocalityName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LocalityName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLocalityName<'a, P0>(&self, bstrlocalityname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetLocalityName)(::windows::core::Interface::as_raw(self), bstrlocalityname.into().abi()).ok() + pub unsafe fn SetLocalityName(&self, bstrlocalityname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetLocalityName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrlocalityname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PostalAddress(&self) -> ::windows::core::Result { + pub unsafe fn PostalAddress(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PostalAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PostalAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPostalAddress<'a, P0>(&self, bstrpostaladdress: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPostalAddress)(::windows::core::Interface::as_raw(self), bstrpostaladdress.into().abi()).ok() + pub unsafe fn SetPostalAddress(&self, bstrpostaladdress: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPostalAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpostaladdress)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -7084,30 +6213,12 @@ unsafe impl ::windows::core::Interface for IADsLocality { #[doc(hidden)] pub struct IADsLocality_Vtbl { pub base__: IADs_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDescription: usize, - #[cfg(feature = "Win32_Foundation")] - pub LocalityName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LocalityName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetLocalityName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrlocalityname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetLocalityName: usize, - #[cfg(feature = "Win32_Foundation")] - pub PostalAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PostalAddress: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPostalAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpostaladdress: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPostalAddress: usize, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub LocalityName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetLocalityName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrlocalityname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub PostalAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetPostalAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpostaladdress: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub SeeAlso: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -7232,38 +6343,18 @@ impl IADsNameTranslate { pub unsafe fn SetChaseReferral(&self, lnchasereferral: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetChaseReferral)(::windows::core::Interface::as_raw(self), lnchasereferral).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Init<'a, P0>(&self, lnsettype: i32, bstradspath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Init)(::windows::core::Interface::as_raw(self), lnsettype, bstradspath.into().abi()).ok() + pub unsafe fn Init(&self, lnsettype: i32, bstradspath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Init)(::windows::core::Interface::as_raw(self), lnsettype, ::core::mem::transmute_copy(bstradspath)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitEx<'a, P0, P1, P2, P3>(&self, lnsettype: i32, bstradspath: P0, bstruserid: P1, bstrdomain: P2, bstrpassword: P3) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitEx)(::windows::core::Interface::as_raw(self), lnsettype, bstradspath.into().abi(), bstruserid.into().abi(), bstrdomain.into().abi(), bstrpassword.into().abi()).ok() + pub unsafe fn InitEx(&self, lnsettype: i32, bstradspath: &::windows::core::BSTR, bstruserid: &::windows::core::BSTR, bstrdomain: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitEx)(::windows::core::Interface::as_raw(self), lnsettype, ::core::mem::transmute_copy(bstradspath), ::core::mem::transmute_copy(bstruserid), ::core::mem::transmute_copy(bstrdomain), ::core::mem::transmute_copy(bstrpassword)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Set<'a, P0>(&self, lnsettype: i32, bstradspath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Set)(::windows::core::Interface::as_raw(self), lnsettype, bstradspath.into().abi()).ok() + pub unsafe fn Set(&self, lnsettype: i32, bstradspath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Set)(::windows::core::Interface::as_raw(self), lnsettype, ::core::mem::transmute_copy(bstradspath)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Get(&self, lnformattype: i32) -> ::windows::core::Result { + pub unsafe fn Get(&self, lnformattype: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Get)(::windows::core::Interface::as_raw(self), lnformattype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Get)(::windows::core::Interface::as_raw(self), lnformattype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -7347,22 +6438,10 @@ unsafe impl ::windows::core::Interface for IADsNameTranslate { pub struct IADsNameTranslate_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub SetChaseReferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnchasereferral: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Init: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnsettype: i32, bstradspath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Init: usize, - #[cfg(feature = "Win32_Foundation")] - pub InitEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnsettype: i32, bstradspath: ::core::mem::ManuallyDrop, bstruserid: ::core::mem::ManuallyDrop, bstrdomain: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitEx: usize, - #[cfg(feature = "Win32_Foundation")] - pub Set: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnsettype: i32, bstradspath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Set: usize, - #[cfg(feature = "Win32_Foundation")] - pub Get: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnformattype: i32, pbstradspath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Get: usize, + pub Init: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnsettype: i32, bstradspath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub InitEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnsettype: i32, bstradspath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstruserid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdomain: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Set: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnsettype: i32, bstradspath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Get: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnformattype: i32, pbstradspath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub SetEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnformattype: i32, pvar: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -7378,41 +6457,29 @@ pub struct IADsNameTranslate_Vtbl { pub struct IADsNamespaces(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IADsNamespaces { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Class(&self) -> ::windows::core::Result { + pub unsafe fn Class(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GUID(&self) -> ::windows::core::Result { + pub unsafe fn GUID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ADsPath(&self) -> ::windows::core::Result { + pub unsafe fn ADsPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Parent(&self) -> ::windows::core::Result { + pub unsafe fn Parent(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Schema(&self) -> ::windows::core::Result { + pub unsafe fn Schema(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetInfo(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetInfo)(::windows::core::Interface::as_raw(self)).ok() @@ -7422,39 +6489,31 @@ impl IADsNamespaces { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Get<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn Get(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Put<'a, P0, P1>(&self, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn Put<'a, P0>(&self, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetEx<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetEx(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn PutEx<'a, P0, P1>(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn PutEx<'a, P0>(&self, lncontrolcode: i32, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -7464,19 +6523,12 @@ impl IADsNamespaces { { (::windows::core::Interface::vtable(self).base__.GetInfoEx)(::windows::core::Interface::as_raw(self), vproperties.into().abi(), lnreserved).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DefaultContainer(&self) -> ::windows::core::Result { + pub unsafe fn DefaultContainer(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DefaultContainer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DefaultContainer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDefaultContainer<'a, P0>(&self, bstrdefaultcontainer: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDefaultContainer)(::windows::core::Interface::as_raw(self), bstrdefaultcontainer.into().abi()).ok() + pub unsafe fn SetDefaultContainer(&self, bstrdefaultcontainer: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDefaultContainer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdefaultcontainer)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -7563,14 +6615,8 @@ unsafe impl ::windows::core::Interface for IADsNamespaces { #[doc(hidden)] pub struct IADsNamespaces_Vtbl { pub base__: IADs_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub DefaultContainer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DefaultContainer: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDefaultContainer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdefaultcontainer: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDefaultContainer: usize, + pub DefaultContainer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDefaultContainer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdefaultcontainer: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7683,41 +6729,29 @@ pub struct IADsNetAddress_Vtbl { pub struct IADsO(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IADsO { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Class(&self) -> ::windows::core::Result { + pub unsafe fn Class(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GUID(&self) -> ::windows::core::Result { + pub unsafe fn GUID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ADsPath(&self) -> ::windows::core::Result { + pub unsafe fn ADsPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Parent(&self) -> ::windows::core::Result { + pub unsafe fn Parent(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Schema(&self) -> ::windows::core::Result { + pub unsafe fn Schema(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetInfo(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetInfo)(::windows::core::Interface::as_raw(self)).ok() @@ -7727,39 +6761,31 @@ impl IADsO { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Get<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn Get(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Put<'a, P0, P1>(&self, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn Put<'a, P0>(&self, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetEx<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetEx(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn PutEx<'a, P0, P1>(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn PutEx<'a, P0>(&self, lncontrolcode: i32, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -7769,75 +6795,40 @@ impl IADsO { { (::windows::core::Interface::vtable(self).base__.GetInfoEx)(::windows::core::Interface::as_raw(self), vproperties.into().abi(), lnreserved).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bstrdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), bstrdescription.into().abi()).ok() + pub unsafe fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdescription)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LocalityName(&self) -> ::windows::core::Result { + pub unsafe fn LocalityName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LocalityName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LocalityName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLocalityName<'a, P0>(&self, bstrlocalityname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetLocalityName)(::windows::core::Interface::as_raw(self), bstrlocalityname.into().abi()).ok() + pub unsafe fn SetLocalityName(&self, bstrlocalityname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetLocalityName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrlocalityname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PostalAddress(&self) -> ::windows::core::Result { + pub unsafe fn PostalAddress(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PostalAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PostalAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPostalAddress<'a, P0>(&self, bstrpostaladdress: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPostalAddress)(::windows::core::Interface::as_raw(self), bstrpostaladdress.into().abi()).ok() + pub unsafe fn SetPostalAddress(&self, bstrpostaladdress: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPostalAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpostaladdress)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TelephoneNumber(&self) -> ::windows::core::Result { + pub unsafe fn TelephoneNumber(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TelephoneNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TelephoneNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetTelephoneNumber<'a, P0>(&self, bstrtelephonenumber: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetTelephoneNumber)(::windows::core::Interface::as_raw(self), bstrtelephonenumber.into().abi()).ok() + pub unsafe fn SetTelephoneNumber(&self, bstrtelephonenumber: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetTelephoneNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtelephonenumber)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FaxNumber(&self) -> ::windows::core::Result { + pub unsafe fn FaxNumber(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FaxNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FaxNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFaxNumber<'a, P0>(&self, bstrfaxnumber: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetFaxNumber)(::windows::core::Interface::as_raw(self), bstrfaxnumber.into().abi()).ok() + pub unsafe fn SetFaxNumber(&self, bstrfaxnumber: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetFaxNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrfaxnumber)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -7938,46 +6929,16 @@ unsafe impl ::windows::core::Interface for IADsO { #[doc(hidden)] pub struct IADsO_Vtbl { pub base__: IADs_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDescription: usize, - #[cfg(feature = "Win32_Foundation")] - pub LocalityName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LocalityName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetLocalityName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrlocalityname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetLocalityName: usize, - #[cfg(feature = "Win32_Foundation")] - pub PostalAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PostalAddress: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPostalAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpostaladdress: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPostalAddress: usize, - #[cfg(feature = "Win32_Foundation")] - pub TelephoneNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TelephoneNumber: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetTelephoneNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtelephonenumber: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetTelephoneNumber: usize, - #[cfg(feature = "Win32_Foundation")] - pub FaxNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FaxNumber: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetFaxNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfaxnumber: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetFaxNumber: usize, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub LocalityName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetLocalityName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrlocalityname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub PostalAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetPostalAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpostaladdress: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub TelephoneNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetTelephoneNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtelephonenumber: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FaxNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetFaxNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfaxnumber: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub SeeAlso: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -7993,41 +6954,29 @@ pub struct IADsO_Vtbl { pub struct IADsOU(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IADsOU { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Class(&self) -> ::windows::core::Result { + pub unsafe fn Class(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GUID(&self) -> ::windows::core::Result { + pub unsafe fn GUID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ADsPath(&self) -> ::windows::core::Result { + pub unsafe fn ADsPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Parent(&self) -> ::windows::core::Result { + pub unsafe fn Parent(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Schema(&self) -> ::windows::core::Result { + pub unsafe fn Schema(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetInfo(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetInfo)(::windows::core::Interface::as_raw(self)).ok() @@ -8037,39 +6986,31 @@ impl IADsOU { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Get<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn Get(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Put<'a, P0, P1>(&self, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn Put<'a, P0>(&self, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetEx<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetEx(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn PutEx<'a, P0, P1>(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn PutEx<'a, P0>(&self, lncontrolcode: i32, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -8079,75 +7020,40 @@ impl IADsOU { { (::windows::core::Interface::vtable(self).base__.GetInfoEx)(::windows::core::Interface::as_raw(self), vproperties.into().abi(), lnreserved).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bstrdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), bstrdescription.into().abi()).ok() + pub unsafe fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdescription)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LocalityName(&self) -> ::windows::core::Result { + pub unsafe fn LocalityName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LocalityName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LocalityName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLocalityName<'a, P0>(&self, bstrlocalityname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetLocalityName)(::windows::core::Interface::as_raw(self), bstrlocalityname.into().abi()).ok() + pub unsafe fn SetLocalityName(&self, bstrlocalityname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetLocalityName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrlocalityname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PostalAddress(&self) -> ::windows::core::Result { + pub unsafe fn PostalAddress(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PostalAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PostalAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPostalAddress<'a, P0>(&self, bstrpostaladdress: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPostalAddress)(::windows::core::Interface::as_raw(self), bstrpostaladdress.into().abi()).ok() + pub unsafe fn SetPostalAddress(&self, bstrpostaladdress: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPostalAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpostaladdress)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TelephoneNumber(&self) -> ::windows::core::Result { + pub unsafe fn TelephoneNumber(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TelephoneNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TelephoneNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetTelephoneNumber<'a, P0>(&self, bstrtelephonenumber: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetTelephoneNumber)(::windows::core::Interface::as_raw(self), bstrtelephonenumber.into().abi()).ok() + pub unsafe fn SetTelephoneNumber(&self, bstrtelephonenumber: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetTelephoneNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtelephonenumber)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FaxNumber(&self) -> ::windows::core::Result { + pub unsafe fn FaxNumber(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FaxNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FaxNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFaxNumber<'a, P0>(&self, bstrfaxnumber: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetFaxNumber)(::windows::core::Interface::as_raw(self), bstrfaxnumber.into().abi()).ok() + pub unsafe fn SetFaxNumber(&self, bstrfaxnumber: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetFaxNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrfaxnumber)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -8163,19 +7069,12 @@ impl IADsOU { { (::windows::core::Interface::vtable(self).SetSeeAlso)(::windows::core::Interface::as_raw(self), vseealso.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BusinessCategory(&self) -> ::windows::core::Result { + pub unsafe fn BusinessCategory(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).BusinessCategory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).BusinessCategory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetBusinessCategory<'a, P0>(&self, bstrbusinesscategory: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetBusinessCategory)(::windows::core::Interface::as_raw(self), bstrbusinesscategory.into().abi()).ok() + pub unsafe fn SetBusinessCategory(&self, bstrbusinesscategory: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetBusinessCategory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrbusinesscategory)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -8262,46 +7161,16 @@ unsafe impl ::windows::core::Interface for IADsOU { #[doc(hidden)] pub struct IADsOU_Vtbl { pub base__: IADs_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDescription: usize, - #[cfg(feature = "Win32_Foundation")] - pub LocalityName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LocalityName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetLocalityName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrlocalityname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetLocalityName: usize, - #[cfg(feature = "Win32_Foundation")] - pub PostalAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PostalAddress: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPostalAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpostaladdress: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPostalAddress: usize, - #[cfg(feature = "Win32_Foundation")] - pub TelephoneNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TelephoneNumber: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetTelephoneNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtelephonenumber: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetTelephoneNumber: usize, - #[cfg(feature = "Win32_Foundation")] - pub FaxNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FaxNumber: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetFaxNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfaxnumber: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetFaxNumber: usize, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub LocalityName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetLocalityName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrlocalityname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub PostalAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetPostalAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpostaladdress: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub TelephoneNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetTelephoneNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtelephonenumber: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FaxNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetFaxNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfaxnumber: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub SeeAlso: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -8310,14 +7179,8 @@ pub struct IADsOU_Vtbl { pub SetSeeAlso: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vseealso: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SetSeeAlso: usize, - #[cfg(feature = "Win32_Foundation")] - pub BusinessCategory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BusinessCategory: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetBusinessCategory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrbusinesscategory: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetBusinessCategory: usize, + pub BusinessCategory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetBusinessCategory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrbusinesscategory: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -8517,16 +7380,11 @@ pub struct IADsOctetList_Vtbl { pub struct IADsOpenDSObject(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IADsOpenDSObject { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn OpenDSObject<'a, P0, P1, P2>(&self, lpszdnname: P0, lpszusername: P1, lpszpassword: P2, lnreserved: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn OpenDSObject(&self, lpszdnname: &::windows::core::BSTR, lpszusername: &::windows::core::BSTR, lpszpassword: &::windows::core::BSTR, lnreserved: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).OpenDSObject)(::windows::core::Interface::as_raw(self), lpszdnname.into().abi(), lpszusername.into().abi(), lpszpassword.into().abi(), lnreserved, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).OpenDSObject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(lpszdnname), ::core::mem::transmute_copy(lpszusername), ::core::mem::transmute_copy(lpszpassword), lnreserved, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -8595,9 +7453,9 @@ unsafe impl ::windows::core::Interface for IADsOpenDSObject { #[doc(hidden)] pub struct IADsOpenDSObject_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub OpenDSObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpszdnname: ::core::mem::ManuallyDrop, lpszusername: ::core::mem::ManuallyDrop, lpszpassword: ::core::mem::ManuallyDrop, lnreserved: i32, ppoledsobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub OpenDSObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpszdnname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lpszusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lpszpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lnreserved: i32, ppoledsobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] OpenDSObject: usize, } #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`, `\"Win32_System_Com\"`*"] @@ -8613,33 +7471,19 @@ impl IADsPath { pub unsafe fn SetType(&self, lntype: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetType)(::windows::core::Interface::as_raw(self), lntype).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn VolumeName(&self) -> ::windows::core::Result { + pub unsafe fn VolumeName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).VolumeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).VolumeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetVolumeName<'a, P0>(&self, bstrvolumename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetVolumeName)(::windows::core::Interface::as_raw(self), bstrvolumename.into().abi()).ok() + pub unsafe fn SetVolumeName(&self, bstrvolumename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetVolumeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrvolumename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Path(&self) -> ::windows::core::Result { + pub unsafe fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPath<'a, P0>(&self, bstrpath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPath)(::windows::core::Interface::as_raw(self), bstrpath.into().abi()).ok() + pub unsafe fn SetPath(&self, bstrpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpath)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -8710,22 +7554,10 @@ pub struct IADsPath_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, pub SetType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lntype: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub VolumeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - VolumeName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetVolumeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrvolumename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetVolumeName: usize, - #[cfg(feature = "Win32_Foundation")] - pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Path: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPath: usize, + pub VolumeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetVolumeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrvolumename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -8733,40 +7565,26 @@ pub struct IADsPath_Vtbl { pub struct IADsPathname(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IADsPathname { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Set<'a, P0>(&self, bstradspath: P0, lnsettype: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Set)(::windows::core::Interface::as_raw(self), bstradspath.into().abi(), lnsettype).ok() + pub unsafe fn Set(&self, bstradspath: &::windows::core::BSTR, lnsettype: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Set)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstradspath), lnsettype).ok() } pub unsafe fn SetDisplayType(&self, lndisplaytype: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetDisplayType)(::windows::core::Interface::as_raw(self), lndisplaytype).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Retrieve(&self, lnformattype: i32) -> ::windows::core::Result { + pub unsafe fn Retrieve(&self, lnformattype: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Retrieve)(::windows::core::Interface::as_raw(self), lnformattype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Retrieve)(::windows::core::Interface::as_raw(self), lnformattype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetNumElements(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetNumElements)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetElement(&self, lnelementindex: i32) -> ::windows::core::Result { + pub unsafe fn GetElement(&self, lnelementindex: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetElement)(::windows::core::Interface::as_raw(self), lnelementindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetElement)(::windows::core::Interface::as_raw(self), lnelementindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddLeafElement<'a, P0>(&self, bstrleafelement: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AddLeafElement)(::windows::core::Interface::as_raw(self), bstrleafelement.into().abi()).ok() + pub unsafe fn AddLeafElement(&self, bstrleafelement: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AddLeafElement)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrleafelement)).ok() } pub unsafe fn RemoveLeafElement(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RemoveLeafElement)(::windows::core::Interface::as_raw(self)).ok() @@ -8777,14 +7595,9 @@ impl IADsPathname { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CopyPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetEscapedElement<'a, P0>(&self, lnreserved: i32, bstrinstr: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetEscapedElement(&self, lnreserved: i32, bstrinstr: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetEscapedElement)(::windows::core::Interface::as_raw(self), lnreserved, bstrinstr.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetEscapedElement)(::windows::core::Interface::as_raw(self), lnreserved, ::core::mem::transmute_copy(bstrinstr), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn EscapedMode(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -8860,33 +7673,18 @@ unsafe impl ::windows::core::Interface for IADsPathname { #[doc(hidden)] pub struct IADsPathname_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Set: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstradspath: ::core::mem::ManuallyDrop, lnsettype: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Set: usize, + pub Set: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstradspath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lnsettype: i32) -> ::windows::core::HRESULT, pub SetDisplayType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lndisplaytype: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Retrieve: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnformattype: i32, pbstradspath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Retrieve: usize, + pub Retrieve: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnformattype: i32, pbstradspath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetNumElements: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plnnumpathelements: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnelementindex: i32, pbstrelement: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetElement: usize, - #[cfg(feature = "Win32_Foundation")] - pub AddLeafElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrleafelement: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddLeafElement: usize, + pub GetElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnelementindex: i32, pbstrelement: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub AddLeafElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrleafelement: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub RemoveLeafElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub CopyPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppadspath: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] CopyPath: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetEscapedElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnreserved: i32, bstrinstr: ::core::mem::ManuallyDrop, pbstroutstr: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetEscapedElement: usize, + pub GetEscapedElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnreserved: i32, bstrinstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstroutstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub EscapedMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, pub SetEscapedMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnescapedmode: i32) -> ::windows::core::HRESULT, } @@ -8992,41 +7790,29 @@ pub struct IADsPostalAddress_Vtbl { pub struct IADsPrintJob(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IADsPrintJob { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Class(&self) -> ::windows::core::Result { + pub unsafe fn Class(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GUID(&self) -> ::windows::core::Result { + pub unsafe fn GUID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ADsPath(&self) -> ::windows::core::Result { + pub unsafe fn ADsPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Parent(&self) -> ::windows::core::Result { + pub unsafe fn Parent(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Schema(&self) -> ::windows::core::Result { + pub unsafe fn Schema(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetInfo(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetInfo)(::windows::core::Interface::as_raw(self)).ok() @@ -9036,39 +7822,31 @@ impl IADsPrintJob { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Get<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn Get(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Put<'a, P0, P1>(&self, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn Put<'a, P0>(&self, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetEx<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetEx(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn PutEx<'a, P0, P1>(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn PutEx<'a, P0>(&self, lncontrolcode: i32, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -9078,23 +7856,17 @@ impl IADsPrintJob { { (::windows::core::Interface::vtable(self).base__.GetInfoEx)(::windows::core::Interface::as_raw(self), vproperties.into().abi(), lnreserved).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn HostPrintQueue(&self) -> ::windows::core::Result { + pub unsafe fn HostPrintQueue(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).HostPrintQueue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).HostPrintQueue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn User(&self) -> ::windows::core::Result { + pub unsafe fn User(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).User)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).User)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserPath(&self) -> ::windows::core::Result { + pub unsafe fn UserPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UserPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UserPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn TimeSubmitted(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -9108,19 +7880,12 @@ impl IADsPrintJob { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Size)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bstrdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), bstrdescription.into().abi()).ok() + pub unsafe fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdescription)).ok() } pub unsafe fn Priority(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -9143,33 +7908,19 @@ impl IADsPrintJob { pub unsafe fn SetUntilTime(&self, dauntiltime: f64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetUntilTime)(::windows::core::Interface::as_raw(self), dauntiltime).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Notify(&self) -> ::windows::core::Result { + pub unsafe fn Notify(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Notify)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Notify)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetNotify<'a, P0>(&self, bstrnotify: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetNotify)(::windows::core::Interface::as_raw(self), bstrnotify.into().abi()).ok() + pub unsafe fn SetNotify(&self, bstrnotify: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetNotify)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrnotify)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NotifyPath(&self) -> ::windows::core::Result { + pub unsafe fn NotifyPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).NotifyPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).NotifyPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetNotifyPath<'a, P0>(&self, bstrnotifypath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetNotifyPath)(::windows::core::Interface::as_raw(self), bstrnotifypath.into().abi()).ok() + pub unsafe fn SetNotifyPath(&self, bstrnotifypath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetNotifyPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrnotifypath)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -9256,51 +8007,24 @@ unsafe impl ::windows::core::Interface for IADsPrintJob { #[doc(hidden)] pub struct IADsPrintJob_Vtbl { pub base__: IADs_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub HostPrintQueue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - HostPrintQueue: usize, - #[cfg(feature = "Win32_Foundation")] - pub User: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - User: usize, - #[cfg(feature = "Win32_Foundation")] - pub UserPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UserPath: usize, + pub HostPrintQueue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub User: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub UserPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub TimeSubmitted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut f64) -> ::windows::core::HRESULT, pub TotalPages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, pub Size: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDescription: usize, - pub Priority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, - pub SetPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnpriority: i32) -> ::windows::core::HRESULT, - pub StartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut f64) -> ::windows::core::HRESULT, - pub SetStartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dastarttime: f64) -> ::windows::core::HRESULT, - pub UntilTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut f64) -> ::windows::core::HRESULT, - pub SetUntilTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dauntiltime: f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Notify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Notify: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetNotify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrnotify: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetNotify: usize, - #[cfg(feature = "Win32_Foundation")] - pub NotifyPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - NotifyPath: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetNotifyPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrnotifypath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetNotifyPath: usize, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Priority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, + pub SetPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnpriority: i32) -> ::windows::core::HRESULT, + pub StartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut f64) -> ::windows::core::HRESULT, + pub SetStartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dastarttime: f64) -> ::windows::core::HRESULT, + pub UntilTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut f64) -> ::windows::core::HRESULT, + pub SetUntilTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dauntiltime: f64) -> ::windows::core::HRESULT, + pub Notify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetNotify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrnotify: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub NotifyPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetNotifyPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrnotifypath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9308,41 +8032,29 @@ pub struct IADsPrintJob_Vtbl { pub struct IADsPrintJobOperations(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IADsPrintJobOperations { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Class(&self) -> ::windows::core::Result { + pub unsafe fn Class(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GUID(&self) -> ::windows::core::Result { + pub unsafe fn GUID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ADsPath(&self) -> ::windows::core::Result { + pub unsafe fn ADsPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Parent(&self) -> ::windows::core::Result { + pub unsafe fn Parent(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Schema(&self) -> ::windows::core::Result { + pub unsafe fn Schema(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetInfo(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetInfo)(::windows::core::Interface::as_raw(self)).ok() @@ -9352,39 +8064,31 @@ impl IADsPrintJobOperations { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Get<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn Get(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Put<'a, P0, P1>(&self, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn Put<'a, P0>(&self, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetEx<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetEx(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn PutEx<'a, P0, P1>(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn PutEx<'a, P0>(&self, lncontrolcode: i32, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -9518,41 +8222,29 @@ pub struct IADsPrintJobOperations_Vtbl { pub struct IADsPrintQueue(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IADsPrintQueue { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Class(&self) -> ::windows::core::Result { + pub unsafe fn Class(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GUID(&self) -> ::windows::core::Result { + pub unsafe fn GUID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ADsPath(&self) -> ::windows::core::Result { + pub unsafe fn ADsPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Parent(&self) -> ::windows::core::Result { + pub unsafe fn Parent(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Schema(&self) -> ::windows::core::Result { + pub unsafe fn Schema(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetInfo(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetInfo)(::windows::core::Interface::as_raw(self)).ok() @@ -9562,39 +8254,31 @@ impl IADsPrintQueue { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Get<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn Get(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Put<'a, P0, P1>(&self, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn Put<'a, P0>(&self, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetEx<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetEx(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn PutEx<'a, P0, P1>(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn PutEx<'a, P0>(&self, lncontrolcode: i32, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -9604,89 +8288,47 @@ impl IADsPrintQueue { { (::windows::core::Interface::vtable(self).base__.GetInfoEx)(::windows::core::Interface::as_raw(self), vproperties.into().abi(), lnreserved).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PrinterPath(&self) -> ::windows::core::Result { + pub unsafe fn PrinterPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PrinterPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PrinterPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPrinterPath<'a, P0>(&self, bstrprinterpath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPrinterPath)(::windows::core::Interface::as_raw(self), bstrprinterpath.into().abi()).ok() + pub unsafe fn SetPrinterPath(&self, bstrprinterpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPrinterPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprinterpath)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Model(&self) -> ::windows::core::Result { + pub unsafe fn Model(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Model)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Model)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetModel<'a, P0>(&self, bstrmodel: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetModel)(::windows::core::Interface::as_raw(self), bstrmodel.into().abi()).ok() + pub unsafe fn SetModel(&self, bstrmodel: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetModel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrmodel)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Datatype(&self) -> ::windows::core::Result { + pub unsafe fn Datatype(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Datatype)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Datatype)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDatatype<'a, P0>(&self, bstrdatatype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDatatype)(::windows::core::Interface::as_raw(self), bstrdatatype.into().abi()).ok() + pub unsafe fn SetDatatype(&self, bstrdatatype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDatatype)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdatatype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PrintProcessor(&self) -> ::windows::core::Result { + pub unsafe fn PrintProcessor(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PrintProcessor)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PrintProcessor)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPrintProcessor<'a, P0>(&self, bstrprintprocessor: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPrintProcessor)(::windows::core::Interface::as_raw(self), bstrprintprocessor.into().abi()).ok() + pub unsafe fn SetPrintProcessor(&self, bstrprintprocessor: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPrintProcessor)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprintprocessor)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bstrdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), bstrdescription.into().abi()).ok() + pub unsafe fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdescription)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Location(&self) -> ::windows::core::Result { + pub unsafe fn Location(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Location)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Location)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLocation<'a, P0>(&self, bstrlocation: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetLocation)(::windows::core::Interface::as_raw(self), bstrlocation.into().abi()).ok() + pub unsafe fn SetLocation(&self, bstrlocation: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrlocation)).ok() } pub unsafe fn StartTime(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -9716,19 +8358,12 @@ impl IADsPrintQueue { pub unsafe fn SetPriority(&self, lnpriority: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetPriority)(::windows::core::Interface::as_raw(self), lnpriority).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BannerPage(&self) -> ::windows::core::Result { + pub unsafe fn BannerPage(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).BannerPage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).BannerPage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetBannerPage<'a, P0>(&self, bstrbannerpage: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetBannerPage)(::windows::core::Interface::as_raw(self), bstrbannerpage.into().abi()).ok() + pub unsafe fn SetBannerPage(&self, bstrbannerpage: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetBannerPage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrbannerpage)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -9843,54 +8478,18 @@ unsafe impl ::windows::core::Interface for IADsPrintQueue { #[doc(hidden)] pub struct IADsPrintQueue_Vtbl { pub base__: IADs_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub PrinterPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PrinterPath: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPrinterPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprinterpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPrinterPath: usize, - #[cfg(feature = "Win32_Foundation")] - pub Model: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Model: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetModel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmodel: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetModel: usize, - #[cfg(feature = "Win32_Foundation")] - pub Datatype: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Datatype: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDatatype: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdatatype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDatatype: usize, - #[cfg(feature = "Win32_Foundation")] - pub PrintProcessor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PrintProcessor: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPrintProcessor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprintprocessor: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPrintProcessor: usize, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDescription: usize, - #[cfg(feature = "Win32_Foundation")] - pub Location: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Location: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrlocation: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetLocation: usize, + pub PrinterPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetPrinterPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprinterpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Model: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetModel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmodel: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Datatype: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDatatype: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdatatype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub PrintProcessor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetPrintProcessor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprintprocessor: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Location: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrlocation: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub StartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut f64) -> ::windows::core::HRESULT, pub SetStartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dastarttime: f64) -> ::windows::core::HRESULT, pub UntilTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut f64) -> ::windows::core::HRESULT, @@ -9899,14 +8498,8 @@ pub struct IADsPrintQueue_Vtbl { pub SetDefaultJobPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lndefaultjobpriority: i32) -> ::windows::core::HRESULT, pub Priority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, pub SetPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnpriority: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub BannerPage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BannerPage: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetBannerPage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrbannerpage: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetBannerPage: usize, + pub BannerPage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetBannerPage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrbannerpage: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub PrintDevices: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -9930,41 +8523,29 @@ pub struct IADsPrintQueue_Vtbl { pub struct IADsPrintQueueOperations(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IADsPrintQueueOperations { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Class(&self) -> ::windows::core::Result { + pub unsafe fn Class(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GUID(&self) -> ::windows::core::Result { + pub unsafe fn GUID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ADsPath(&self) -> ::windows::core::Result { + pub unsafe fn ADsPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Parent(&self) -> ::windows::core::Result { + pub unsafe fn Parent(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Schema(&self) -> ::windows::core::Result { + pub unsafe fn Schema(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetInfo(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetInfo)(::windows::core::Interface::as_raw(self)).ok() @@ -9974,39 +8555,31 @@ impl IADsPrintQueueOperations { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Get<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn Get(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Put<'a, P0, P1>(&self, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn Put<'a, P0>(&self, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetEx<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetEx(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn PutEx<'a, P0, P1>(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn PutEx<'a, P0>(&self, lncontrolcode: i32, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -10135,41 +8708,29 @@ pub struct IADsPrintQueueOperations_Vtbl { pub struct IADsProperty(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IADsProperty { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Class(&self) -> ::windows::core::Result { + pub unsafe fn Class(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GUID(&self) -> ::windows::core::Result { + pub unsafe fn GUID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ADsPath(&self) -> ::windows::core::Result { + pub unsafe fn ADsPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Parent(&self) -> ::windows::core::Result { + pub unsafe fn Parent(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Schema(&self) -> ::windows::core::Result { + pub unsafe fn Schema(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetInfo(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetInfo)(::windows::core::Interface::as_raw(self)).ok() @@ -10179,39 +8740,31 @@ impl IADsProperty { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Get<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn Get(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Put<'a, P0, P1>(&self, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn Put<'a, P0>(&self, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetEx<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetEx(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn PutEx<'a, P0, P1>(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn PutEx<'a, P0>(&self, lncontrolcode: i32, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -10221,33 +8774,19 @@ impl IADsProperty { { (::windows::core::Interface::vtable(self).base__.GetInfoEx)(::windows::core::Interface::as_raw(self), vproperties.into().abi(), lnreserved).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OID(&self) -> ::windows::core::Result { + pub unsafe fn OID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).OID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).OID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetOID<'a, P0>(&self, bstroid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetOID)(::windows::core::Interface::as_raw(self), bstroid.into().abi()).ok() + pub unsafe fn SetOID(&self, bstroid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetOID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstroid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Syntax(&self) -> ::windows::core::Result { + pub unsafe fn Syntax(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Syntax)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Syntax)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSyntax<'a, P0>(&self, bstrsyntax: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSyntax)(::windows::core::Interface::as_raw(self), bstrsyntax.into().abi()).ok() + pub unsafe fn SetSyntax(&self, bstrsyntax: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSyntax)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsyntax)).ok() } pub unsafe fn MaxRange(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -10361,22 +8900,10 @@ unsafe impl ::windows::core::Interface for IADsProperty { #[doc(hidden)] pub struct IADsProperty_Vtbl { pub base__: IADs_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub OID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OID: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetOID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstroid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetOID: usize, - #[cfg(feature = "Win32_Foundation")] - pub Syntax: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Syntax: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSyntax: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsyntax: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSyntax: usize, + pub OID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetOID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstroid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Syntax: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSyntax: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsyntax: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub MaxRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, pub SetMaxRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnmaxrange: i32) -> ::windows::core::HRESULT, pub MinRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, @@ -10397,19 +8924,12 @@ impl IADsPropertyEntry { pub unsafe fn Clear(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Clear)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } pub unsafe fn ADsType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -10507,14 +9027,8 @@ unsafe impl ::windows::core::Interface for IADsPropertyEntry { pub struct IADsPropertyEntry_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ADsType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, pub SetADsType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnadstype: i32) -> ::windows::core::HRESULT, pub ControlCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, @@ -10560,12 +9074,9 @@ impl IADsPropertyList { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetPropertyItem<'a, P0>(&self, bstrname: P0, lnadstype: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetPropertyItem(&self, bstrname: &::windows::core::BSTR, lnadstype: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetPropertyItem)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), lnadstype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetPropertyItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), lnadstype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -10665,7 +9176,7 @@ pub struct IADsPropertyList_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Item: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetPropertyItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, lnadstype: i32, pvariant: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetPropertyItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lnadstype: i32, pvariant: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetPropertyItem: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -10694,75 +9205,40 @@ impl IADsPropertyValue { pub unsafe fn SetADsType(&self, lnadstype: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetADsType)(::windows::core::Interface::as_raw(self), lnadstype).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DNString(&self) -> ::windows::core::Result { + pub unsafe fn DNString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DNString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DNString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDNString<'a, P0>(&self, bstrdnstring: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDNString)(::windows::core::Interface::as_raw(self), bstrdnstring.into().abi()).ok() + pub unsafe fn SetDNString(&self, bstrdnstring: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDNString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdnstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CaseExactString(&self) -> ::windows::core::Result { + pub unsafe fn CaseExactString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CaseExactString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CaseExactString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCaseExactString<'a, P0>(&self, bstrcaseexactstring: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetCaseExactString)(::windows::core::Interface::as_raw(self), bstrcaseexactstring.into().abi()).ok() + pub unsafe fn SetCaseExactString(&self, bstrcaseexactstring: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetCaseExactString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcaseexactstring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CaseIgnoreString(&self) -> ::windows::core::Result { + pub unsafe fn CaseIgnoreString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CaseIgnoreString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CaseIgnoreString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCaseIgnoreString<'a, P0>(&self, bstrcaseignorestring: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetCaseIgnoreString)(::windows::core::Interface::as_raw(self), bstrcaseignorestring.into().abi()).ok() + pub unsafe fn SetCaseIgnoreString(&self, bstrcaseignorestring: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetCaseIgnoreString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcaseignorestring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PrintableString(&self) -> ::windows::core::Result { + pub unsafe fn PrintableString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PrintableString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PrintableString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPrintableString<'a, P0>(&self, bstrprintablestring: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPrintableString)(::windows::core::Interface::as_raw(self), bstrprintablestring.into().abi()).ok() + pub unsafe fn SetPrintableString(&self, bstrprintablestring: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPrintableString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprintablestring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NumericString(&self) -> ::windows::core::Result { + pub unsafe fn NumericString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).NumericString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).NumericString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetNumericString<'a, P0>(&self, bstrnumericstring: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetNumericString)(::windows::core::Interface::as_raw(self), bstrnumericstring.into().abi()).ok() + pub unsafe fn SetNumericString(&self, bstrnumericstring: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetNumericString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrnumericstring)).ok() } pub unsafe fn Boolean(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -10879,64 +9355,34 @@ impl ::core::cmp::PartialEq for IADsPropertyValue { #[cfg(feature = "Win32_System_Com")] impl ::core::cmp::Eq for IADsPropertyValue {} #[cfg(feature = "Win32_System_Com")] -impl ::core::fmt::Debug for IADsPropertyValue { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IADsPropertyValue").field(&self.0).finish() - } -} -#[cfg(feature = "Win32_System_Com")] -unsafe impl ::windows::core::Interface for IADsPropertyValue { - type Vtable = IADsPropertyValue_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x79fa9ad0_a97c_11d0_8534_00c04fd8d503); -} -#[cfg(feature = "Win32_System_Com")] -#[repr(C)] -#[doc(hidden)] -pub struct IADsPropertyValue_Vtbl { - pub base__: super::super::System::Com::IDispatch_Vtbl, - pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ADsType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, - pub SetADsType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnadstype: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub DNString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DNString: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDNString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdnstring: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDNString: usize, - #[cfg(feature = "Win32_Foundation")] - pub CaseExactString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CaseExactString: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetCaseExactString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcaseexactstring: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetCaseExactString: usize, - #[cfg(feature = "Win32_Foundation")] - pub CaseIgnoreString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CaseIgnoreString: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetCaseIgnoreString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcaseignorestring: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetCaseIgnoreString: usize, - #[cfg(feature = "Win32_Foundation")] - pub PrintableString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PrintableString: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPrintableString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprintablestring: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPrintableString: usize, - #[cfg(feature = "Win32_Foundation")] - pub NumericString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - NumericString: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetNumericString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrnumericstring: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetNumericString: usize, +impl ::core::fmt::Debug for IADsPropertyValue { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IADsPropertyValue").field(&self.0).finish() + } +} +#[cfg(feature = "Win32_System_Com")] +unsafe impl ::windows::core::Interface for IADsPropertyValue { + type Vtable = IADsPropertyValue_Vtbl; + const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x79fa9ad0_a97c_11d0_8534_00c04fd8d503); +} +#[cfg(feature = "Win32_System_Com")] +#[repr(C)] +#[doc(hidden)] +pub struct IADsPropertyValue_Vtbl { + pub base__: super::super::System::Com::IDispatch_Vtbl, + pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub ADsType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, + pub SetADsType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnadstype: i32) -> ::windows::core::HRESULT, + pub DNString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDNString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdnstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CaseExactString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetCaseExactString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcaseexactstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CaseIgnoreString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetCaseIgnoreString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcaseignorestring: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub PrintableString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetPrintableString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprintablestring: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub NumericString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetNumericString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrnumericstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Boolean: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, pub SetBoolean: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnboolean: i32) -> ::windows::core::HRESULT, pub Integer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, @@ -11069,19 +9515,12 @@ pub struct IADsPropertyValue2_Vtbl { pub struct IADsReplicaPointer(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IADsReplicaPointer { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ServerName(&self) -> ::windows::core::Result { + pub unsafe fn ServerName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ServerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ServerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetServerName<'a, P0>(&self, bstrservername: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetServerName)(::windows::core::Interface::as_raw(self), bstrservername.into().abi()).ok() + pub unsafe fn SetServerName(&self, bstrservername: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetServerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrservername)).ok() } pub unsafe fn ReplicaType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -11185,14 +9624,8 @@ unsafe impl ::windows::core::Interface for IADsReplicaPointer { #[doc(hidden)] pub struct IADsReplicaPointer_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub ServerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ServerName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetServerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetServerName: usize, + pub ServerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetServerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ReplicaType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, pub SetReplicaType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnreplicatype: i32) -> ::windows::core::HRESULT, pub ReplicaNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, @@ -11214,41 +9647,29 @@ pub struct IADsReplicaPointer_Vtbl { pub struct IADsResource(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IADsResource { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Class(&self) -> ::windows::core::Result { + pub unsafe fn Class(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GUID(&self) -> ::windows::core::Result { + pub unsafe fn GUID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ADsPath(&self) -> ::windows::core::Result { + pub unsafe fn ADsPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Parent(&self) -> ::windows::core::Result { + pub unsafe fn Parent(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Schema(&self) -> ::windows::core::Result { + pub unsafe fn Schema(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetInfo(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetInfo)(::windows::core::Interface::as_raw(self)).ok() @@ -11258,39 +9679,31 @@ impl IADsResource { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Get<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn Get(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Put<'a, P0, P1>(&self, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn Put<'a, P0>(&self, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetEx<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetEx(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn PutEx<'a, P0, P1>(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn PutEx<'a, P0>(&self, lncontrolcode: i32, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -11300,23 +9713,17 @@ impl IADsResource { { (::windows::core::Interface::vtable(self).base__.GetInfoEx)(::windows::core::Interface::as_raw(self), vproperties.into().abi(), lnreserved).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn User(&self) -> ::windows::core::Result { + pub unsafe fn User(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).User)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).User)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserPath(&self) -> ::windows::core::Result { + pub unsafe fn UserPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UserPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UserPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Path(&self) -> ::windows::core::Result { + pub unsafe fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn LockCount(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -11407,18 +9814,9 @@ unsafe impl ::windows::core::Interface for IADsResource { #[doc(hidden)] pub struct IADsResource_Vtbl { pub base__: IADs_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub User: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - User: usize, - #[cfg(feature = "Win32_Foundation")] - pub UserPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UserPath: usize, - #[cfg(feature = "Win32_Foundation")] - pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Path: usize, + pub User: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub UserPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub LockCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`, `\"Win32_System_Com\"`*"] @@ -11441,19 +9839,12 @@ impl IADsSecurityDescriptor { pub unsafe fn SetControl(&self, lncontrol: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetControl)(::windows::core::Interface::as_raw(self), lncontrol).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Owner(&self) -> ::windows::core::Result { + pub unsafe fn Owner(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Owner)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Owner)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetOwner<'a, P0>(&self, bstrowner: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetOwner)(::windows::core::Interface::as_raw(self), bstrowner.into().abi()).ok() + pub unsafe fn SetOwner(&self, bstrowner: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetOwner)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrowner)).ok() } pub unsafe fn OwnerDefaulted(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -11462,19 +9853,12 @@ impl IADsSecurityDescriptor { pub unsafe fn SetOwnerDefaulted(&self, fownerdefaulted: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetOwnerDefaulted)(::windows::core::Interface::as_raw(self), fownerdefaulted).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Group(&self) -> ::windows::core::Result { + pub unsafe fn Group(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Group)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Group)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetGroup<'a, P0>(&self, bstrgroup: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetGroup)(::windows::core::Interface::as_raw(self), bstrgroup.into().abi()).ok() + pub unsafe fn SetGroup(&self, bstrgroup: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrgroup)).ok() } pub unsafe fn GroupDefaulted(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -11602,24 +9986,12 @@ pub struct IADsSecurityDescriptor_Vtbl { pub SetRevision: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnrevision: i32) -> ::windows::core::HRESULT, pub Control: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, pub SetControl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lncontrol: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Owner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Owner: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrowner: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetOwner: usize, + pub Owner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrowner: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub OwnerDefaulted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i16) -> ::windows::core::HRESULT, pub SetOwnerDefaulted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fownerdefaulted: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Group: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Group: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgroup: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetGroup: usize, + pub Group: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgroup: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GroupDefaulted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i16) -> ::windows::core::HRESULT, pub SetGroupDefaulted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fgroupdefaulted: i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] @@ -11775,41 +10147,29 @@ pub struct IADsSecurityUtility_Vtbl { pub struct IADsService(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IADsService { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Class(&self) -> ::windows::core::Result { + pub unsafe fn Class(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GUID(&self) -> ::windows::core::Result { + pub unsafe fn GUID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ADsPath(&self) -> ::windows::core::Result { + pub unsafe fn ADsPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Parent(&self) -> ::windows::core::Result { + pub unsafe fn Parent(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Schema(&self) -> ::windows::core::Result { + pub unsafe fn Schema(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetInfo(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetInfo)(::windows::core::Interface::as_raw(self)).ok() @@ -11819,39 +10179,31 @@ impl IADsService { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Get<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn Get(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Put<'a, P0, P1>(&self, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn Put<'a, P0>(&self, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetEx<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetEx(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn PutEx<'a, P0, P1>(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn PutEx<'a, P0>(&self, lncontrolcode: i32, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -11861,47 +10213,26 @@ impl IADsService { { (::windows::core::Interface::vtable(self).base__.GetInfoEx)(::windows::core::Interface::as_raw(self), vproperties.into().abi(), lnreserved).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn HostComputer(&self) -> ::windows::core::Result { + pub unsafe fn HostComputer(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).HostComputer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).HostComputer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetHostComputer<'a, P0>(&self, bstrhostcomputer: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetHostComputer)(::windows::core::Interface::as_raw(self), bstrhostcomputer.into().abi()).ok() + pub unsafe fn SetHostComputer(&self, bstrhostcomputer: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetHostComputer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrhostcomputer)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisplayName(&self) -> ::windows::core::Result { + pub unsafe fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDisplayName<'a, P0>(&self, bstrdisplayname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDisplayName)(::windows::core::Interface::as_raw(self), bstrdisplayname.into().abi()).ok() + pub unsafe fn SetDisplayName(&self, bstrdisplayname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdisplayname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Version(&self) -> ::windows::core::Result { + pub unsafe fn Version(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Version)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Version)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetVersion<'a, P0>(&self, bstrversion: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetVersion)(::windows::core::Interface::as_raw(self), bstrversion.into().abi()).ok() + pub unsafe fn SetVersion(&self, bstrversion: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetVersion)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrversion)).ok() } pub unsafe fn ServiceType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -11917,33 +10248,19 @@ impl IADsService { pub unsafe fn SetStartType(&self, lnstarttype: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetStartType)(::windows::core::Interface::as_raw(self), lnstarttype).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Path(&self) -> ::windows::core::Result { + pub unsafe fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPath<'a, P0>(&self, bstrpath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPath)(::windows::core::Interface::as_raw(self), bstrpath.into().abi()).ok() + pub unsafe fn SetPath(&self, bstrpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpath)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StartupParameters(&self) -> ::windows::core::Result { + pub unsafe fn StartupParameters(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).StartupParameters)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).StartupParameters)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetStartupParameters<'a, P0>(&self, bstrstartupparameters: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetStartupParameters)(::windows::core::Interface::as_raw(self), bstrstartupparameters.into().abi()).ok() + pub unsafe fn SetStartupParameters(&self, bstrstartupparameters: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetStartupParameters)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrstartupparameters)).ok() } pub unsafe fn ErrorControl(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -11952,47 +10269,26 @@ impl IADsService { pub unsafe fn SetErrorControl(&self, lnerrorcontrol: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetErrorControl)(::windows::core::Interface::as_raw(self), lnerrorcontrol).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LoadOrderGroup(&self) -> ::windows::core::Result { + pub unsafe fn LoadOrderGroup(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LoadOrderGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LoadOrderGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLoadOrderGroup<'a, P0>(&self, bstrloadordergroup: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetLoadOrderGroup)(::windows::core::Interface::as_raw(self), bstrloadordergroup.into().abi()).ok() + pub unsafe fn SetLoadOrderGroup(&self, bstrloadordergroup: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetLoadOrderGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrloadordergroup)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ServiceAccountName(&self) -> ::windows::core::Result { + pub unsafe fn ServiceAccountName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ServiceAccountName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ServiceAccountName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetServiceAccountName<'a, P0>(&self, bstrserviceaccountname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetServiceAccountName)(::windows::core::Interface::as_raw(self), bstrserviceaccountname.into().abi()).ok() + pub unsafe fn SetServiceAccountName(&self, bstrserviceaccountname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetServiceAccountName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrserviceaccountname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ServiceAccountPath(&self) -> ::windows::core::Result { + pub unsafe fn ServiceAccountPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ServiceAccountPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ServiceAccountPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetServiceAccountPath<'a, P0>(&self, bstrserviceaccountpath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetServiceAccountPath)(::windows::core::Interface::as_raw(self), bstrserviceaccountpath.into().abi()).ok() + pub unsafe fn SetServiceAccountPath(&self, bstrserviceaccountpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetServiceAccountPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrserviceaccountpath)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -12093,76 +10389,28 @@ unsafe impl ::windows::core::Interface for IADsService { #[doc(hidden)] pub struct IADsService_Vtbl { pub base__: IADs_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub HostComputer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - HostComputer: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetHostComputer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrhostcomputer: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetHostComputer: usize, - #[cfg(feature = "Win32_Foundation")] - pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DisplayName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdisplayname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDisplayName: usize, - #[cfg(feature = "Win32_Foundation")] - pub Version: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Version: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrversion: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetVersion: usize, + pub HostComputer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetHostComputer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrhostcomputer: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdisplayname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Version: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrversion: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ServiceType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, pub SetServiceType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnservicetype: i32) -> ::windows::core::HRESULT, pub StartType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, pub SetStartType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnstarttype: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Path: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPath: usize, - #[cfg(feature = "Win32_Foundation")] - pub StartupParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - StartupParameters: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetStartupParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrstartupparameters: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetStartupParameters: usize, + pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub StartupParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetStartupParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrstartupparameters: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ErrorControl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, pub SetErrorControl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnerrorcontrol: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub LoadOrderGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LoadOrderGroup: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetLoadOrderGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrloadordergroup: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetLoadOrderGroup: usize, - #[cfg(feature = "Win32_Foundation")] - pub ServiceAccountName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ServiceAccountName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetServiceAccountName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrserviceaccountname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetServiceAccountName: usize, - #[cfg(feature = "Win32_Foundation")] - pub ServiceAccountPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ServiceAccountPath: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetServiceAccountPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrserviceaccountpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetServiceAccountPath: usize, + pub LoadOrderGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetLoadOrderGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrloadordergroup: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ServiceAccountName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetServiceAccountName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrserviceaccountname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ServiceAccountPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetServiceAccountPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrserviceaccountpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub Dependencies: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -12178,41 +10426,29 @@ pub struct IADsService_Vtbl { pub struct IADsServiceOperations(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IADsServiceOperations { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Class(&self) -> ::windows::core::Result { + pub unsafe fn Class(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GUID(&self) -> ::windows::core::Result { + pub unsafe fn GUID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ADsPath(&self) -> ::windows::core::Result { + pub unsafe fn ADsPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Parent(&self) -> ::windows::core::Result { + pub unsafe fn Parent(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Schema(&self) -> ::windows::core::Result { + pub unsafe fn Schema(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetInfo(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetInfo)(::windows::core::Interface::as_raw(self)).ok() @@ -12222,39 +10458,31 @@ impl IADsServiceOperations { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Get<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn Get(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Put<'a, P0, P1>(&self, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn Put<'a, P0>(&self, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetEx<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetEx(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn PutEx<'a, P0, P1>(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn PutEx<'a, P0>(&self, lncontrolcode: i32, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -12280,13 +10508,8 @@ impl IADsServiceOperations { pub unsafe fn Continue(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Continue)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPassword<'a, P0>(&self, bstrnewpassword: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPassword)(::windows::core::Interface::as_raw(self), bstrnewpassword.into().abi()).ok() + pub unsafe fn SetPassword(&self, bstrnewpassword: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPassword)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrnewpassword)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -12378,10 +10601,7 @@ pub struct IADsServiceOperations_Vtbl { pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Pause: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Continue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetPassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrnewpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPassword: usize, + pub SetPassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrnewpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -12389,41 +10609,29 @@ pub struct IADsServiceOperations_Vtbl { pub struct IADsSession(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IADsSession { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Class(&self) -> ::windows::core::Result { + pub unsafe fn Class(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GUID(&self) -> ::windows::core::Result { + pub unsafe fn GUID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ADsPath(&self) -> ::windows::core::Result { + pub unsafe fn ADsPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Parent(&self) -> ::windows::core::Result { + pub unsafe fn Parent(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Schema(&self) -> ::windows::core::Result { + pub unsafe fn Schema(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetInfo(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetInfo)(::windows::core::Interface::as_raw(self)).ok() @@ -12433,39 +10641,31 @@ impl IADsSession { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Get<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn Get(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Put<'a, P0, P1>(&self, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn Put<'a, P0>(&self, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetEx<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetEx(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn PutEx<'a, P0, P1>(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn PutEx<'a, P0>(&self, lncontrolcode: i32, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -12475,29 +10675,21 @@ impl IADsSession { { (::windows::core::Interface::vtable(self).base__.GetInfoEx)(::windows::core::Interface::as_raw(self), vproperties.into().abi(), lnreserved).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn User(&self) -> ::windows::core::Result { + pub unsafe fn User(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).User)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).User)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserPath(&self) -> ::windows::core::Result { + pub unsafe fn UserPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UserPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UserPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Computer(&self) -> ::windows::core::Result { + pub unsafe fn Computer(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Computer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Computer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ComputerPath(&self) -> ::windows::core::Result { + pub unsafe fn ComputerPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ComputerPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ComputerPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn ConnectTime(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -12592,22 +10784,10 @@ unsafe impl ::windows::core::Interface for IADsSession { #[doc(hidden)] pub struct IADsSession_Vtbl { pub base__: IADs_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub User: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - User: usize, - #[cfg(feature = "Win32_Foundation")] - pub UserPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UserPath: usize, - #[cfg(feature = "Win32_Foundation")] - pub Computer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Computer: usize, - #[cfg(feature = "Win32_Foundation")] - pub ComputerPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ComputerPath: usize, + pub User: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub UserPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Computer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ComputerPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ConnectTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, pub IdleTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, } @@ -12617,41 +10797,29 @@ pub struct IADsSession_Vtbl { pub struct IADsSyntax(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IADsSyntax { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Class(&self) -> ::windows::core::Result { + pub unsafe fn Class(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GUID(&self) -> ::windows::core::Result { + pub unsafe fn GUID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ADsPath(&self) -> ::windows::core::Result { + pub unsafe fn ADsPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Parent(&self) -> ::windows::core::Result { + pub unsafe fn Parent(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Schema(&self) -> ::windows::core::Result { + pub unsafe fn Schema(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetInfo(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetInfo)(::windows::core::Interface::as_raw(self)).ok() @@ -12661,39 +10829,31 @@ impl IADsSyntax { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Get<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn Get(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Put<'a, P0, P1>(&self, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn Put<'a, P0>(&self, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetEx<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetEx(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn PutEx<'a, P0, P1>(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn PutEx<'a, P0>(&self, lncontrolcode: i32, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -12896,19 +11056,12 @@ pub struct IADsTimestamp_Vtbl { pub struct IADsTypedName(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IADsTypedName { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ObjectName(&self) -> ::windows::core::Result { + pub unsafe fn ObjectName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ObjectName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ObjectName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetObjectName<'a, P0>(&self, bstrobjectname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetObjectName)(::windows::core::Interface::as_raw(self), bstrobjectname.into().abi()).ok() + pub unsafe fn SetObjectName(&self, bstrobjectname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetObjectName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrobjectname)).ok() } pub unsafe fn Level(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -12991,14 +11144,8 @@ unsafe impl ::windows::core::Interface for IADsTypedName { #[doc(hidden)] pub struct IADsTypedName_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub ObjectName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ObjectName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetObjectName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrobjectname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetObjectName: usize, + pub ObjectName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetObjectName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrobjectname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Level: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, pub SetLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lnlevel: i32) -> ::windows::core::HRESULT, pub Interval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, @@ -13010,41 +11157,29 @@ pub struct IADsTypedName_Vtbl { pub struct IADsUser(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IADsUser { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Class(&self) -> ::windows::core::Result { + pub unsafe fn Class(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GUID(&self) -> ::windows::core::Result { + pub unsafe fn GUID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ADsPath(&self) -> ::windows::core::Result { + pub unsafe fn ADsPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Parent(&self) -> ::windows::core::Result { + pub unsafe fn Parent(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Schema(&self) -> ::windows::core::Result { + pub unsafe fn Schema(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Schema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetInfo(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetInfo)(::windows::core::Interface::as_raw(self)).ok() @@ -13054,39 +11189,31 @@ impl IADsUser { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Get<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn Get(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Put<'a, P0, P1>(&self, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn Put<'a, P0>(&self, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Put)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetEx<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetEx(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn PutEx<'a, P0, P1>(&self, lncontrolcode: i32, bstrname: P0, vprop: P1) -> ::windows::core::Result<()> + pub unsafe fn PutEx<'a, P0>(&self, lncontrolcode: i32, bstrname: &::windows::core::BSTR, vprop: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, bstrname.into().abi(), vprop.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.PutEx)(::windows::core::Interface::as_raw(self), lncontrolcode, ::core::mem::transmute_copy(bstrname), vprop.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -13096,11 +11223,9 @@ impl IADsUser { { (::windows::core::Interface::vtable(self).base__.GetInfoEx)(::windows::core::Interface::as_raw(self), vproperties.into().abi(), lnreserved).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BadLoginAddress(&self) -> ::windows::core::Result { + pub unsafe fn BadLoginAddress(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).BadLoginAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).BadLoginAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn BadLoginCount(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -13122,173 +11247,89 @@ impl IADsUser { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).PasswordLastChanged)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bstrdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), bstrdescription.into().abi()).ok() + pub unsafe fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdescription)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Division(&self) -> ::windows::core::Result { + pub unsafe fn Division(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Division)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Division)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDivision<'a, P0>(&self, bstrdivision: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDivision)(::windows::core::Interface::as_raw(self), bstrdivision.into().abi()).ok() + pub unsafe fn SetDivision(&self, bstrdivision: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDivision)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdivision)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Department(&self) -> ::windows::core::Result { + pub unsafe fn Department(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Department)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Department)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDepartment<'a, P0>(&self, bstrdepartment: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDepartment)(::windows::core::Interface::as_raw(self), bstrdepartment.into().abi()).ok() + pub unsafe fn SetDepartment(&self, bstrdepartment: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDepartment)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdepartment)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EmployeeID(&self) -> ::windows::core::Result { + pub unsafe fn EmployeeID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).EmployeeID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).EmployeeID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetEmployeeID<'a, P0>(&self, bstremployeeid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetEmployeeID)(::windows::core::Interface::as_raw(self), bstremployeeid.into().abi()).ok() + pub unsafe fn SetEmployeeID(&self, bstremployeeid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetEmployeeID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstremployeeid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FullName(&self) -> ::windows::core::Result { + pub unsafe fn FullName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FullName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FullName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFullName<'a, P0>(&self, bstrfullname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetFullName)(::windows::core::Interface::as_raw(self), bstrfullname.into().abi()).ok() + pub unsafe fn SetFullName(&self, bstrfullname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetFullName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrfullname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FirstName(&self) -> ::windows::core::Result { + pub unsafe fn FirstName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FirstName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FirstName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFirstName<'a, P0>(&self, bstrfirstname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetFirstName)(::windows::core::Interface::as_raw(self), bstrfirstname.into().abi()).ok() + pub unsafe fn SetFirstName(&self, bstrfirstname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetFirstName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrfirstname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LastName(&self) -> ::windows::core::Result { + pub unsafe fn LastName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LastName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LastName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLastName<'a, P0>(&self, bstrlastname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetLastName)(::windows::core::Interface::as_raw(self), bstrlastname.into().abi()).ok() + pub unsafe fn SetLastName(&self, bstrlastname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetLastName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrlastname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OtherName(&self) -> ::windows::core::Result { + pub unsafe fn OtherName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).OtherName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).OtherName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetOtherName<'a, P0>(&self, bstrothername: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetOtherName)(::windows::core::Interface::as_raw(self), bstrothername.into().abi()).ok() + pub unsafe fn SetOtherName(&self, bstrothername: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetOtherName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrothername)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NamePrefix(&self) -> ::windows::core::Result { + pub unsafe fn NamePrefix(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).NamePrefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).NamePrefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetNamePrefix<'a, P0>(&self, bstrnameprefix: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetNamePrefix)(::windows::core::Interface::as_raw(self), bstrnameprefix.into().abi()).ok() + pub unsafe fn SetNamePrefix(&self, bstrnameprefix: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetNamePrefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrnameprefix)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NameSuffix(&self) -> ::windows::core::Result { + pub unsafe fn NameSuffix(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).NameSuffix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).NameSuffix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetNameSuffix<'a, P0>(&self, bstrnamesuffix: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetNameSuffix)(::windows::core::Interface::as_raw(self), bstrnamesuffix.into().abi()).ok() + pub unsafe fn SetNameSuffix(&self, bstrnamesuffix: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetNameSuffix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrnamesuffix)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Title(&self) -> ::windows::core::Result { + pub unsafe fn Title(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetTitle<'a, P0>(&self, bstrtitle: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetTitle)(::windows::core::Interface::as_raw(self), bstrtitle.into().abi()).ok() + pub unsafe fn SetTitle(&self, bstrtitle: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetTitle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtitle)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Manager(&self) -> ::windows::core::Result { + pub unsafe fn Manager(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Manager)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Manager)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetManager<'a, P0>(&self, bstrmanager: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetManager)(::windows::core::Interface::as_raw(self), bstrmanager.into().abi()).ok() + pub unsafe fn SetManager(&self, bstrmanager: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetManager)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrmanager)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -13521,33 +11562,19 @@ impl IADsUser { pub unsafe fn SetRequireUniquePassword(&self, frequireuniquepassword: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetRequireUniquePassword)(::windows::core::Interface::as_raw(self), frequireuniquepassword).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EmailAddress(&self) -> ::windows::core::Result { + pub unsafe fn EmailAddress(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).EmailAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).EmailAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetEmailAddress<'a, P0>(&self, bstremailaddress: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetEmailAddress)(::windows::core::Interface::as_raw(self), bstremailaddress.into().abi()).ok() + pub unsafe fn SetEmailAddress(&self, bstremailaddress: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetEmailAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstremailaddress)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn HomeDirectory(&self) -> ::windows::core::Result { + pub unsafe fn HomeDirectory(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).HomeDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).HomeDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetHomeDirectory<'a, P0>(&self, bstrhomedirectory: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetHomeDirectory)(::windows::core::Interface::as_raw(self), bstrhomedirectory.into().abi()).ok() + pub unsafe fn SetHomeDirectory(&self, bstrhomedirectory: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetHomeDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrhomedirectory)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -13563,33 +11590,19 @@ impl IADsUser { { (::windows::core::Interface::vtable(self).SetLanguages)(::windows::core::Interface::as_raw(self), vlanguages.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Profile(&self) -> ::windows::core::Result { + pub unsafe fn Profile(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Profile)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Profile)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetProfile<'a, P0>(&self, bstrprofile: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetProfile)(::windows::core::Interface::as_raw(self), bstrprofile.into().abi()).ok() + pub unsafe fn SetProfile(&self, bstrprofile: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetProfile)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprofile)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LoginScript(&self) -> ::windows::core::Result { + pub unsafe fn LoginScript(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LoginScript)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LoginScript)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLoginScript<'a, P0>(&self, bstrloginscript: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetLoginScript)(::windows::core::Interface::as_raw(self), bstrloginscript.into().abi()).ok() + pub unsafe fn SetLoginScript(&self, bstrloginscript: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetLoginScript)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrloginscript)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -13605,19 +11618,12 @@ impl IADsUser { { (::windows::core::Interface::vtable(self).SetPicture)(::windows::core::Interface::as_raw(self), vpicture.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn HomePage(&self) -> ::windows::core::Result { + pub unsafe fn HomePage(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).HomePage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).HomePage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetHomePage<'a, P0>(&self, bstrhomepage: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetHomePage)(::windows::core::Interface::as_raw(self), bstrhomepage.into().abi()).ok() + pub unsafe fn SetHomePage(&self, bstrhomepage: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetHomePage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrhomepage)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -13625,22 +11631,11 @@ impl IADsUser { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Groups)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPassword<'a, P0>(&self, newpassword: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPassword)(::windows::core::Interface::as_raw(self), newpassword.into().abi()).ok() + pub unsafe fn SetPassword(&self, newpassword: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPassword)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(newpassword)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ChangePassword<'a, P0, P1>(&self, bstroldpassword: P0, bstrnewpassword: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ChangePassword)(::windows::core::Interface::as_raw(self), bstroldpassword.into().abi(), bstrnewpassword.into().abi()).ok() + pub unsafe fn ChangePassword(&self, bstroldpassword: &::windows::core::BSTR, bstrnewpassword: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ChangePassword)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstroldpassword), ::core::mem::transmute_copy(bstrnewpassword)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -13727,111 +11722,36 @@ unsafe impl ::windows::core::Interface for IADsUser { #[doc(hidden)] pub struct IADsUser_Vtbl { pub base__: IADs_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub BadLoginAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BadLoginAddress: usize, + pub BadLoginAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub BadLoginCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, pub LastLogin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut f64) -> ::windows::core::HRESULT, pub LastLogoff: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut f64) -> ::windows::core::HRESULT, pub LastFailedLogin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut f64) -> ::windows::core::HRESULT, pub PasswordLastChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDescription: usize, - #[cfg(feature = "Win32_Foundation")] - pub Division: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Division: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDivision: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdivision: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDivision: usize, - #[cfg(feature = "Win32_Foundation")] - pub Department: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Department: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDepartment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdepartment: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDepartment: usize, - #[cfg(feature = "Win32_Foundation")] - pub EmployeeID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EmployeeID: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetEmployeeID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstremployeeid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetEmployeeID: usize, - #[cfg(feature = "Win32_Foundation")] - pub FullName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FullName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetFullName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfullname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetFullName: usize, - #[cfg(feature = "Win32_Foundation")] - pub FirstName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FirstName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetFirstName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfirstname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetFirstName: usize, - #[cfg(feature = "Win32_Foundation")] - pub LastName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LastName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetLastName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrlastname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetLastName: usize, - #[cfg(feature = "Win32_Foundation")] - pub OtherName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OtherName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetOtherName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrothername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetOtherName: usize, - #[cfg(feature = "Win32_Foundation")] - pub NamePrefix: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - NamePrefix: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetNamePrefix: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrnameprefix: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetNamePrefix: usize, - #[cfg(feature = "Win32_Foundation")] - pub NameSuffix: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - NameSuffix: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetNameSuffix: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrnamesuffix: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetNameSuffix: usize, - #[cfg(feature = "Win32_Foundation")] - pub Title: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Title: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtitle: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetTitle: usize, - #[cfg(feature = "Win32_Foundation")] - pub Manager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Manager: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetManager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmanager: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetManager: usize, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Division: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDivision: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdivision: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Department: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDepartment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdepartment: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub EmployeeID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetEmployeeID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstremployeeid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FullName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetFullName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfullname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FirstName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetFirstName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfirstname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub LastName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetLastName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrlastname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub OtherName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetOtherName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrothername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub NamePrefix: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetNamePrefix: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrnameprefix: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub NameSuffix: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetNameSuffix: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrnamesuffix: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Title: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtitle: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Manager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetManager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmanager: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub TelephoneHome: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -13942,22 +11862,10 @@ pub struct IADsUser_Vtbl { pub SetPasswordRequired: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fpasswordrequired: i16) -> ::windows::core::HRESULT, pub RequireUniquePassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i16) -> ::windows::core::HRESULT, pub SetRequireUniquePassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, frequireuniquepassword: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub EmailAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EmailAddress: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetEmailAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstremailaddress: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetEmailAddress: usize, - #[cfg(feature = "Win32_Foundation")] - pub HomeDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - HomeDirectory: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetHomeDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrhomedirectory: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetHomeDirectory: usize, + pub EmailAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetEmailAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstremailaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub HomeDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetHomeDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrhomedirectory: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub Languages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -13966,22 +11874,10 @@ pub struct IADsUser_Vtbl { pub SetLanguages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vlanguages: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SetLanguages: usize, - #[cfg(feature = "Win32_Foundation")] - pub Profile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Profile: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetProfile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprofile: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetProfile: usize, - #[cfg(feature = "Win32_Foundation")] - pub LoginScript: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LoginScript: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetLoginScript: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrloginscript: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetLoginScript: usize, + pub Profile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetProfile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprofile: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub LoginScript: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetLoginScript: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrloginscript: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub Picture: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -13990,26 +11886,14 @@ pub struct IADsUser_Vtbl { pub SetPicture: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vpicture: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SetPicture: usize, - #[cfg(feature = "Win32_Foundation")] - pub HomePage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - HomePage: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetHomePage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrhomepage: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetHomePage: usize, + pub HomePage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetHomePage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrhomepage: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Groups: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppgroups: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Groups: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPassword: usize, - #[cfg(feature = "Win32_Foundation")] - pub ChangePassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstroldpassword: ::core::mem::ManuallyDrop, bstrnewpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ChangePassword: usize, + pub SetPassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ChangePassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstroldpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrnewpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -14017,29 +11901,21 @@ pub struct IADsUser_Vtbl { pub struct IADsWinNTSystemInfo(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IADsWinNTSystemInfo { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserName(&self) -> ::windows::core::Result { + pub unsafe fn UserName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ComputerName(&self) -> ::windows::core::Result { + pub unsafe fn ComputerName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ComputerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ComputerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DomainName(&self) -> ::windows::core::Result { + pub unsafe fn DomainName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DomainName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DomainName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PDC(&self) -> ::windows::core::Result { + pub unsafe fn PDC(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PDC)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PDC)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -14108,22 +11984,10 @@ unsafe impl ::windows::core::Interface for IADsWinNTSystemInfo { #[doc(hidden)] pub struct IADsWinNTSystemInfo_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub UserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UserName: usize, - #[cfg(feature = "Win32_Foundation")] - pub ComputerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ComputerName: usize, - #[cfg(feature = "Win32_Foundation")] - pub DomainName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DomainName: usize, - #[cfg(feature = "Win32_Foundation")] - pub PDC: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PDC: usize, + pub UserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ComputerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DomainName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub PDC: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] #[repr(transparent)] @@ -14703,9 +12567,7 @@ impl IDsAdminNewObjExt { { (::windows::core::Interface::vtable(self).OnError)(::windows::core::Interface::as_raw(self), hwnd.into(), hr, ucontext).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetSummaryInfo(&self, pbstrtext: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetSummaryInfo(&self, pbstrtext: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetSummaryInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrtext)).ok() } } @@ -14768,10 +12630,7 @@ pub struct IDsAdminNewObjExt_Vtbl { pub OnError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND, hr: ::windows::core::HRESULT, ucontext: u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] OnError: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetSummaryInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetSummaryInfo: usize, + pub GetSummaryInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] #[repr(transparent)] @@ -14841,9 +12700,9 @@ impl IDsAdminNotifyHandler { { (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), pextrainfo.into().abi(), ::core::mem::transmute(pueventflags)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Begin<'a, P0, P1>(&self, uevent: u32, parg1: P0, parg2: P1, puflags: &mut u32, pbstr: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Begin<'a, P0, P1>(&self, uevent: u32, parg1: P0, parg2: P1, puflags: &mut u32, pbstr: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IDataObject>>, P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IDataObject>>, @@ -14900,9 +12759,9 @@ pub struct IDsAdminNotifyHandler_Vtbl { pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pextrainfo: *mut ::core::ffi::c_void, pueventflags: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Initialize: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Begin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uevent: u32, parg1: *mut ::core::ffi::c_void, parg2: *mut ::core::ffi::c_void, puflags: *mut u32, pbstr: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub Begin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uevent: u32, parg1: *mut ::core::ffi::c_void, parg2: *mut ::core::ffi::c_void, puflags: *mut u32, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Begin: usize, pub Notify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nitem: u32, uflags: u32) -> ::windows::core::HRESULT, pub End: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -15491,14 +13350,8 @@ pub struct IPrivateDispatch_Vtbl { #[repr(transparent)] pub struct IPrivateUnknown(::windows::core::IUnknown); impl IPrivateUnknown { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ADSIInitializeObject<'a, P0, P1>(&self, lpszusername: P0, lpszpassword: P1, lnreserved: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ADSIInitializeObject)(::windows::core::Interface::as_raw(self), lpszusername.into().abi(), lpszpassword.into().abi(), lnreserved).ok() + pub unsafe fn ADSIInitializeObject(&self, lpszusername: &::windows::core::BSTR, lpszpassword: &::windows::core::BSTR, lnreserved: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ADSIInitializeObject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(lpszusername), ::core::mem::transmute_copy(lpszpassword), lnreserved).ok() } pub unsafe fn ADSIReleaseObject(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ADSIReleaseObject)(::windows::core::Interface::as_raw(self)).ok() @@ -15543,10 +13396,7 @@ unsafe impl ::windows::core::Interface for IPrivateUnknown { #[doc(hidden)] pub struct IPrivateUnknown_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub ADSIInitializeObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpszusername: ::core::mem::ManuallyDrop, lpszpassword: ::core::mem::ManuallyDrop, lnreserved: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ADSIInitializeObject: usize, + pub ADSIInitializeObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpszusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lpszpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lnreserved: i32) -> ::windows::core::HRESULT, pub ADSIReleaseObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Networking_ActiveDirectory\"`*"] diff --git a/crates/libs/windows/src/Windows/Win32/Networking/BackgroundIntelligentTransferService/impl.rs b/crates/libs/windows/src/Windows/Win32/Networking/BackgroundIntelligentTransferService/impl.rs index 7a3dca2121..faae9718cd 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/BackgroundIntelligentTransferService/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/BackgroundIntelligentTransferService/impl.rs @@ -57,7 +57,7 @@ impl AsyncIBackgroundCopyCallback_Vtbl { pub trait IBITSExtensionSetup_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn EnableBITSUploads(&self) -> ::windows::core::Result<()>; fn DisableBITSUploads(&self) -> ::windows::core::Result<()>; - fn GetCleanupTaskName(&self) -> ::windows::core::Result; + fn GetCleanupTaskName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetCleanupTask(&self, riid: *const ::windows::core::GUID) -> ::windows::core::Result<::windows::core::IUnknown>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -75,7 +75,7 @@ impl IBITSExtensionSetup_Vtbl { let this = (*this).get_impl(); this.DisableBITSUploads().into() } - unsafe extern "system" fn GetCleanupTaskName, Impl: IBITSExtensionSetup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ptaskname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCleanupTaskName, Impl: IBITSExtensionSetup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ptaskname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCleanupTaskName() { @@ -111,14 +111,14 @@ impl IBITSExtensionSetup_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IBITSExtensionSetupFactory_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn GetObject(&self, path: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetObject(&self, path: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IBITSExtensionSetupFactory {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IBITSExtensionSetupFactory_Vtbl { pub const fn new, Impl: IBITSExtensionSetupFactory_Impl, const OFFSET: isize>() -> IBITSExtensionSetupFactory_Vtbl { - unsafe extern "system" fn GetObject, Impl: IBITSExtensionSetupFactory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, ppextensionsetup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetObject, Impl: IBITSExtensionSetupFactory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppextensionsetup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetObject(::core::mem::transmute(&path)) { @@ -1054,7 +1054,6 @@ impl IBackgroundCopyJob_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IBackgroundCopyJob1_Impl: Sized { fn CancelJob(&self) -> ::windows::core::Result<()>; fn GetProgress(&self, dwflags: u32) -> ::windows::core::Result; @@ -1065,9 +1064,7 @@ pub trait IBackgroundCopyJob1_Impl: Sized { fn SwitchToForeground(&self) -> ::windows::core::Result<()>; fn JobID(&self) -> ::windows::core::Result<::windows::core::GUID>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IBackgroundCopyJob1 {} -#[cfg(feature = "Win32_Foundation")] impl IBackgroundCopyJob1_Vtbl { pub const fn new, Impl: IBackgroundCopyJob1_Impl, const OFFSET: isize>() -> IBackgroundCopyJob1_Vtbl { unsafe extern "system" fn CancelJob, Impl: IBackgroundCopyJob1_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { diff --git a/crates/libs/windows/src/Windows/Win32/Networking/BackgroundIntelligentTransferService/mod.rs b/crates/libs/windows/src/Windows/Win32/Networking/BackgroundIntelligentTransferService/mod.rs index e3c0906825..7d9b70741f 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/BackgroundIntelligentTransferService/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/BackgroundIntelligentTransferService/mod.rs @@ -89,11 +89,9 @@ impl IBITSExtensionSetup { pub unsafe fn DisableBITSUploads(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).DisableBITSUploads)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCleanupTaskName(&self) -> ::windows::core::Result { + pub unsafe fn GetCleanupTaskName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetCleanupTaskName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetCleanupTaskName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetCleanupTask(&self, riid: &::windows::core::GUID) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -168,10 +166,7 @@ pub struct IBITSExtensionSetup_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub EnableBITSUploads: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub DisableBITSUploads: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetCleanupTaskName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptaskname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetCleanupTaskName: usize, + pub GetCleanupTaskName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptaskname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetCleanupTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, riid: *const ::windows::core::GUID, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Networking_BackgroundIntelligentTransferService\"`, `\"Win32_System_Com\"`*"] @@ -180,14 +175,11 @@ pub struct IBITSExtensionSetup_Vtbl { pub struct IBITSExtensionSetupFactory(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IBITSExtensionSetupFactory { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetObject<'a, P0>(&self, path: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetObject(&self, path: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetObject)(::windows::core::Interface::as_raw(self), path.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetObject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -256,9 +248,9 @@ unsafe impl ::windows::core::Interface for IBITSExtensionSetupFactory { #[doc(hidden)] pub struct IBITSExtensionSetupFactory_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, ppextensionsetup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppextensionsetup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetObject: usize, } #[doc = "*Required features: `\"Win32_Networking_BackgroundIntelligentTransferService\"`*"] @@ -1792,13 +1784,9 @@ impl IBackgroundCopyJob1 { pub unsafe fn GetStatus(&self, pdwstatus: &mut u32, pdwwin32result: &mut u32, pdwtransportresult: &mut u32, pdwnumofretries: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdwstatus), ::core::mem::transmute(pdwwin32result), ::core::mem::transmute(pdwtransportresult), ::core::mem::transmute(pdwnumofretries)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddFiles(&self, ppfileset: &[*const FILESETINFO]) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).AddFiles)(::windows::core::Interface::as_raw(self), ppfileset.len() as _, ::core::mem::transmute(ppfileset.as_ptr())).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetFile(&self, cfileindex: u32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetFile)(::windows::core::Interface::as_raw(self), cfileindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) @@ -1857,14 +1845,8 @@ pub struct IBackgroundCopyJob1_Vtbl { pub CancelJob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetProgress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32, pdwprogress: *mut u32) -> ::windows::core::HRESULT, pub GetStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwstatus: *mut u32, pdwwin32result: *mut u32, pdwtransportresult: *mut u32, pdwnumofretries: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] pub AddFiles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cfilecount: u32, ppfileset: *const *const FILESETINFO) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddFiles: usize, - #[cfg(feature = "Win32_Foundation")] pub GetFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cfileindex: u32, pfileinfo: *mut FILESETINFO) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetFile: usize, pub GetFileCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwfilecount: *mut u32) -> ::windows::core::HRESULT, pub SwitchToForeground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub JobID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguidjobid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, @@ -5474,38 +5456,31 @@ impl ::core::default::Default for BITS_JOB_PROPERTY_VALUE { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Networking_BackgroundIntelligentTransferService\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_Networking_BackgroundIntelligentTransferService\"`*"] pub struct FILESETINFO { - pub bstrRemoteFile: super::super::Foundation::BSTR, - pub bstrLocalFile: super::super::Foundation::BSTR, + pub bstrRemoteFile: ::windows::core::BSTR, + pub bstrLocalFile: ::windows::core::BSTR, pub dwSizeHint: u32, } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FILESETINFO { fn clone(&self) -> Self { Self { bstrRemoteFile: self.bstrRemoteFile.clone(), bstrLocalFile: self.bstrLocalFile.clone(), dwSizeHint: self.dwSizeHint } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FILESETINFO { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FILESETINFO").field("bstrRemoteFile", &self.bstrRemoteFile).field("bstrLocalFile", &self.bstrLocalFile).field("dwSizeHint", &self.dwSizeHint).finish() } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for FILESETINFO { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FILESETINFO { fn eq(&self, other: &Self) -> bool { self.bstrRemoteFile == other.bstrRemoteFile && self.bstrLocalFile == other.bstrLocalFile && self.dwSizeHint == other.dwSizeHint } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FILESETINFO {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FILESETINFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } diff --git a/crates/libs/windows/src/Windows/Win32/Networking/Clustering/impl.rs b/crates/libs/windows/src/Windows/Win32/Networking/Clustering/impl.rs index 18a947cceb..83a0205287 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/Clustering/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/Clustering/impl.rs @@ -1,15 +1,12 @@ -#[cfg(feature = "Win32_Foundation")] pub trait IGetClusterDataInfo_Impl: Sized { - fn GetClusterName(&self, lpszname: super::super::Foundation::BSTR, pcchname: *mut i32) -> ::windows::core::Result<()>; + fn GetClusterName(&self, lpszname: ::windows::core::BSTR, pcchname: *mut i32) -> ::windows::core::Result<()>; fn GetClusterHandle(&self) -> *mut _HCLUSTER; fn GetObjectCount(&self) -> i32; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IGetClusterDataInfo {} -#[cfg(feature = "Win32_Foundation")] impl IGetClusterDataInfo_Vtbl { pub const fn new, Impl: IGetClusterDataInfo_Impl, const OFFSET: isize>() -> IGetClusterDataInfo_Vtbl { - unsafe extern "system" fn GetClusterName, Impl: IGetClusterDataInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lpszname: ::core::mem::ManuallyDrop, pcchname: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetClusterName, Impl: IGetClusterDataInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lpszname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcchname: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetClusterName(::core::mem::transmute_copy(&lpszname), ::core::mem::transmute_copy(&pcchname)).into() @@ -103,17 +100,14 @@ impl IGetClusterNodeInfo_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IGetClusterObjectInfo_Impl: Sized { - fn GetObjectName(&self, lobjindex: i32, lpszname: super::super::Foundation::BSTR, pcchname: *mut i32) -> ::windows::core::Result<()>; + fn GetObjectName(&self, lobjindex: i32, lpszname: ::windows::core::BSTR, pcchname: *mut i32) -> ::windows::core::Result<()>; fn GetObjectType(&self, lobjindex: i32) -> CLUADMEX_OBJECT_TYPE; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IGetClusterObjectInfo {} -#[cfg(feature = "Win32_Foundation")] impl IGetClusterObjectInfo_Vtbl { pub const fn new, Impl: IGetClusterObjectInfo_Impl, const OFFSET: isize>() -> IGetClusterObjectInfo_Vtbl { - unsafe extern "system" fn GetObjectName, Impl: IGetClusterObjectInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lobjindex: i32, lpszname: ::core::mem::ManuallyDrop, pcchname: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetObjectName, Impl: IGetClusterObjectInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lobjindex: i32, lpszname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcchname: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetObjectName(::core::mem::transmute_copy(&lobjindex), ::core::mem::transmute_copy(&lpszname), ::core::mem::transmute_copy(&pcchname)).into() @@ -136,8 +130,8 @@ impl IGetClusterObjectInfo_Vtbl { #[cfg(feature = "Win32_Foundation")] pub trait IGetClusterResourceInfo_Impl: Sized { fn GetResourceHandle(&self, lobjindex: i32) -> *mut _HRESOURCE; - fn GetResourceTypeName(&self, lobjindex: i32, lpszrestypename: super::super::Foundation::BSTR, pcchrestypename: *mut i32) -> ::windows::core::Result<()>; - fn GetResourceNetworkName(&self, lobjindex: i32, lpsznetname: super::super::Foundation::BSTR, pcchnetname: *mut u32) -> super::super::Foundation::BOOL; + fn GetResourceTypeName(&self, lobjindex: i32, lpszrestypename: ::windows::core::BSTR, pcchrestypename: *mut i32) -> ::windows::core::Result<()>; + fn GetResourceNetworkName(&self, lobjindex: i32, lpsznetname: ::windows::core::BSTR, pcchnetname: *mut u32) -> super::super::Foundation::BOOL; } #[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IGetClusterResourceInfo {} @@ -149,12 +143,12 @@ impl IGetClusterResourceInfo_Vtbl { let this = (*this).get_impl(); this.GetResourceHandle(::core::mem::transmute_copy(&lobjindex)) } - unsafe extern "system" fn GetResourceTypeName, Impl: IGetClusterResourceInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lobjindex: i32, lpszrestypename: ::core::mem::ManuallyDrop, pcchrestypename: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetResourceTypeName, Impl: IGetClusterResourceInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lobjindex: i32, lpszrestypename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcchrestypename: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetResourceTypeName(::core::mem::transmute_copy(&lobjindex), ::core::mem::transmute_copy(&lpszrestypename), ::core::mem::transmute_copy(&pcchrestypename)).into() } - unsafe extern "system" fn GetResourceNetworkName, Impl: IGetClusterResourceInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lobjindex: i32, lpsznetname: ::core::mem::ManuallyDrop, pcchnetname: *mut u32) -> super::super::Foundation::BOOL { + unsafe extern "system" fn GetResourceNetworkName, Impl: IGetClusterResourceInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lobjindex: i32, lpsznetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcchnetname: *mut u32) -> super::super::Foundation::BOOL { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetResourceNetworkName(::core::mem::transmute_copy(&lobjindex), ::core::mem::transmute_copy(&lpsznetname), ::core::mem::transmute_copy(&pcchnetname)) @@ -170,19 +164,19 @@ impl IGetClusterResourceInfo_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] +#[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] pub trait IGetClusterUIInfo_Impl: Sized { - fn GetClusterName(&self, lpszname: super::super::Foundation::BSTR, pcchname: *mut i32) -> ::windows::core::Result<()>; + fn GetClusterName(&self, lpszname: ::windows::core::BSTR, pcchname: *mut i32) -> ::windows::core::Result<()>; fn GetLocale(&self) -> u32; fn GetFont(&self) -> super::super::Graphics::Gdi::HFONT; fn GetIcon(&self) -> super::super::UI::WindowsAndMessaging::HICON; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] +#[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] impl ::windows::core::RuntimeName for IGetClusterUIInfo {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] +#[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_UI_WindowsAndMessaging"))] impl IGetClusterUIInfo_Vtbl { pub const fn new, Impl: IGetClusterUIInfo_Impl, const OFFSET: isize>() -> IGetClusterUIInfo_Vtbl { - unsafe extern "system" fn GetClusterName, Impl: IGetClusterUIInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lpszname: ::core::mem::ManuallyDrop, pcchname: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetClusterName, Impl: IGetClusterUIInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lpszname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcchname: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetClusterName(::core::mem::transmute_copy(&lpszname), ::core::mem::transmute_copy(&pcchname)).into() @@ -217,8 +211,8 @@ impl IGetClusterUIInfo_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISClusApplication_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn DomainNames(&self) -> ::windows::core::Result; - fn get_ClusterNames(&self, bstrdomainname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn OpenCluster(&self, bstrclustername: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn get_ClusterNames(&self, bstrdomainname: &::windows::core::BSTR) -> ::windows::core::Result; + fn OpenCluster(&self, bstrclustername: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ISClusApplication {} @@ -236,7 +230,7 @@ impl ISClusApplication_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_ClusterNames, Impl: ISClusApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdomainname: ::core::mem::ManuallyDrop, ppclusters: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_ClusterNames, Impl: ISClusApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdomainname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppclusters: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_ClusterNames(::core::mem::transmute(&bstrdomainname)) { @@ -247,7 +241,7 @@ impl ISClusApplication_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn OpenCluster, Impl: ISClusApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrclustername: ::core::mem::ManuallyDrop, pcluster: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn OpenCluster, Impl: ISClusApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrclustername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcluster: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OpenCluster(::core::mem::transmute(&bstrclustername)) { @@ -274,8 +268,8 @@ pub trait ISClusCryptoKeys_Impl: Sized + super::super::System::Com::IDispatch_Im fn Count(&self) -> ::windows::core::Result; fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; fn Refresh(&self) -> ::windows::core::Result<()>; - fn get_Item(&self, varindex: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn AddItem(&self, bstrcryptokey: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn get_Item(&self, varindex: &super::super::System::Com::VARIANT) -> ::windows::core::Result<::windows::core::BSTR>; + fn AddItem(&self, bstrcryptokey: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn RemoveItem(&self, varindex: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -310,7 +304,7 @@ impl ISClusCryptoKeys_Vtbl { let this = (*this).get_impl(); this.Refresh().into() } - unsafe extern "system" fn get_Item, Impl: ISClusCryptoKeys_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, varindex: ::core::mem::ManuallyDrop, pbstrcyrptokey: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Item, Impl: ISClusCryptoKeys_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, varindex: ::core::mem::ManuallyDrop, pbstrcyrptokey: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_Item(::core::mem::transmute(&varindex)) { @@ -321,7 +315,7 @@ impl ISClusCryptoKeys_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AddItem, Impl: ISClusCryptoKeys_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcryptokey: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddItem, Impl: ISClusCryptoKeys_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcryptokey: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddItem(::core::mem::transmute(&bstrcryptokey)).into() @@ -474,7 +468,7 @@ pub trait ISClusNetInterface_Impl: Sized + super::super::System::Com::IDispatch_ fn PrivateProperties(&self) -> ::windows::core::Result; fn CommonROProperties(&self) -> ::windows::core::Result; fn PrivateROProperties(&self) -> ::windows::core::Result; - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Handle(&self) -> ::windows::core::Result; fn State(&self) -> ::windows::core::Result; fn Cluster(&self) -> ::windows::core::Result; @@ -528,7 +522,7 @@ impl ISClusNetInterface_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Name, Impl: ISClusNetInterface_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: ISClusNetInterface_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -657,9 +651,9 @@ pub trait ISClusNetwork_Impl: Sized + super::super::System::Com::IDispatch_Impl fn CommonROProperties(&self) -> ::windows::core::Result; fn PrivateROProperties(&self) -> ::windows::core::Result; fn Handle(&self) -> ::windows::core::Result; - fn Name(&self) -> ::windows::core::Result; - fn SetName(&self, bstrnetworkname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn NetworkID(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetName(&self, bstrnetworkname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn NetworkID(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn State(&self) -> ::windows::core::Result; fn NetInterfaces(&self) -> ::windows::core::Result; fn Cluster(&self) -> ::windows::core::Result; @@ -724,7 +718,7 @@ impl ISClusNetwork_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Name, Impl: ISClusNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: ISClusNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -735,12 +729,12 @@ impl ISClusNetwork_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetName, Impl: ISClusNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrnetworkname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: ISClusNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrnetworkname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&bstrnetworkname)).into() } - unsafe extern "system" fn NetworkID, Impl: ISClusNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrnetworkid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn NetworkID, Impl: ISClusNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrnetworkid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.NetworkID() { @@ -933,9 +927,9 @@ pub trait ISClusNode_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn PrivateProperties(&self) -> ::windows::core::Result; fn CommonROProperties(&self) -> ::windows::core::Result; fn PrivateROProperties(&self) -> ::windows::core::Result; - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Handle(&self) -> ::windows::core::Result; - fn NodeID(&self) -> ::windows::core::Result; + fn NodeID(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn State(&self) -> ::windows::core::Result; fn Pause(&self) -> ::windows::core::Result<()>; fn Resume(&self) -> ::windows::core::Result<()>; @@ -993,7 +987,7 @@ impl ISClusNode_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Name, Impl: ISClusNode_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: ISClusNode_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -1015,7 +1009,7 @@ impl ISClusNode_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn NodeID, Impl: ISClusNode_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrnodeid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn NodeID, Impl: ISClusNode_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrnodeid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.NodeID() { @@ -1234,12 +1228,12 @@ impl ISClusNodes_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISClusPartition_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn Flags(&self) -> ::windows::core::Result; - fn DeviceName(&self) -> ::windows::core::Result; - fn VolumeLabel(&self) -> ::windows::core::Result; + fn DeviceName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn VolumeLabel(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn SerialNumber(&self) -> ::windows::core::Result; fn MaximumComponentLength(&self) -> ::windows::core::Result; fn FileSystemFlags(&self) -> ::windows::core::Result; - fn FileSystem(&self) -> ::windows::core::Result; + fn FileSystem(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ISClusPartition {} @@ -1257,7 +1251,7 @@ impl ISClusPartition_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DeviceName, Impl: ISClusPartition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdevicename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeviceName, Impl: ISClusPartition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdevicename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DeviceName() { @@ -1268,7 +1262,7 @@ impl ISClusPartition_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn VolumeLabel, Impl: ISClusPartition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrvolumelabel: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn VolumeLabel, Impl: ISClusPartition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrvolumelabel: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.VolumeLabel() { @@ -1312,7 +1306,7 @@ impl ISClusPartition_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn FileSystem, Impl: ISClusPartition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfilesystem: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FileSystem, Impl: ISClusPartition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfilesystem: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FileSystem() { @@ -1344,7 +1338,7 @@ pub trait ISClusPartitionEx_Impl: Sized + super::super::System::Com::IDispatch_I fn FreeSpace(&self) -> ::windows::core::Result; fn DeviceNumber(&self) -> ::windows::core::Result; fn PartitionNumber(&self) -> ::windows::core::Result; - fn VolumeGuid(&self) -> ::windows::core::Result; + fn VolumeGuid(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ISClusPartitionEx {} @@ -1395,7 +1389,7 @@ impl ISClusPartitionEx_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn VolumeGuid, Impl: ISClusPartitionEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrvolumeguid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn VolumeGuid, Impl: ISClusPartitionEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrvolumeguid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.VolumeGuid() { @@ -1480,7 +1474,7 @@ pub trait ISClusProperties_Impl: Sized + super::super::System::Com::IDispatch_Im fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; fn Refresh(&self) -> ::windows::core::Result<()>; fn get_Item(&self, varindex: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn CreateItem(&self, bstrname: &super::super::Foundation::BSTR, varvalue: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn CreateItem(&self, bstrname: &::windows::core::BSTR, varvalue: &super::super::System::Com::VARIANT) -> ::windows::core::Result; fn UseDefaultValue(&self, varindex: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn SaveChanges(&self) -> ::windows::core::Result; fn ReadOnly(&self) -> ::windows::core::Result; @@ -1531,7 +1525,7 @@ impl ISClusProperties_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateItem, Impl: ISClusProperties_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, varvalue: ::core::mem::ManuallyDrop, pproperty: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateItem, Impl: ISClusProperties_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varvalue: ::core::mem::ManuallyDrop, pproperty: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateItem(::core::mem::transmute(&bstrname), ::core::mem::transmute(&varvalue)) { @@ -1623,7 +1617,7 @@ impl ISClusProperties_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISClusProperty_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Length(&self) -> ::windows::core::Result; fn ValueCount(&self) -> ::windows::core::Result; fn Values(&self) -> ::windows::core::Result; @@ -1644,7 +1638,7 @@ impl ::windows::core::RuntimeName for ISClusProperty {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ISClusProperty_Vtbl { pub const fn new, Impl: ISClusProperty_Impl, const OFFSET: isize>() -> ISClusProperty_Vtbl { - unsafe extern "system" fn Name, Impl: ISClusProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: ISClusProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -2003,7 +1997,7 @@ pub trait ISClusPropertyValues_Impl: Sized + super::super::System::Com::IDispatc fn Count(&self) -> ::windows::core::Result; fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; fn get_Item(&self, varindex: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn CreateItem(&self, bstrname: &super::super::Foundation::BSTR, varvalue: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn CreateItem(&self, bstrname: &::windows::core::BSTR, varvalue: &super::super::System::Com::VARIANT) -> ::windows::core::Result; fn RemoveItem(&self, varindex: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2044,7 +2038,7 @@ impl ISClusPropertyValues_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateItem, Impl: ISClusPropertyValues_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, varvalue: ::core::mem::ManuallyDrop, pppropertyvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateItem, Impl: ISClusPropertyValues_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varvalue: ::core::mem::ManuallyDrop, pppropertyvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateItem(::core::mem::transmute(&bstrname), ::core::mem::transmute(&varvalue)) { @@ -2104,8 +2098,8 @@ pub trait ISClusRegistryKeys_Impl: Sized + super::super::System::Com::IDispatch_ fn Count(&self) -> ::windows::core::Result; fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; fn Refresh(&self) -> ::windows::core::Result<()>; - fn get_Item(&self, varindex: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn AddItem(&self, bstrregistrykey: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn get_Item(&self, varindex: &super::super::System::Com::VARIANT) -> ::windows::core::Result<::windows::core::BSTR>; + fn AddItem(&self, bstrregistrykey: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn RemoveItem(&self, varindex: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2140,7 +2134,7 @@ impl ISClusRegistryKeys_Vtbl { let this = (*this).get_impl(); this.Refresh().into() } - unsafe extern "system" fn get_Item, Impl: ISClusRegistryKeys_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, varindex: ::core::mem::ManuallyDrop, pbstrregistrykey: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Item, Impl: ISClusRegistryKeys_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, varindex: ::core::mem::ManuallyDrop, pbstrregistrykey: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_Item(::core::mem::transmute(&varindex)) { @@ -2151,7 +2145,7 @@ impl ISClusRegistryKeys_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AddItem, Impl: ISClusRegistryKeys_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrregistrykey: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddItem, Impl: ISClusRegistryKeys_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrregistrykey: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddItem(::core::mem::transmute(&bstrregistrykey)).into() @@ -2181,7 +2175,7 @@ pub trait ISClusResDependencies_Impl: Sized + super::super::System::Com::IDispat fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; fn Refresh(&self) -> ::windows::core::Result<()>; fn get_Item(&self, varindex: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn CreateItem(&self, bstrresourcename: &super::super::Foundation::BSTR, bstrresourcetype: &super::super::Foundation::BSTR, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS) -> ::windows::core::Result; + fn CreateItem(&self, bstrresourcename: &::windows::core::BSTR, bstrresourcetype: &::windows::core::BSTR, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS) -> ::windows::core::Result; fn DeleteItem(&self, varindex: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn AddItem(&self, presource: &::core::option::Option) -> ::windows::core::Result<()>; fn RemoveItem(&self, varindex: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; @@ -2229,7 +2223,7 @@ impl ISClusResDependencies_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateItem, Impl: ISClusResDependencies_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrresourcename: ::core::mem::ManuallyDrop, bstrresourcetype: ::core::mem::ManuallyDrop, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS, ppclusterresource: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateItem, Impl: ISClusResDependencies_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrresourcename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrresourcetype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS, ppclusterresource: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateItem(::core::mem::transmute(&bstrresourcename), ::core::mem::transmute(&bstrresourcetype), ::core::mem::transmute_copy(&dwflags)) { @@ -2277,7 +2271,7 @@ pub trait ISClusResDependents_Impl: Sized + super::super::System::Com::IDispatch fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; fn Refresh(&self) -> ::windows::core::Result<()>; fn get_Item(&self, varindex: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn CreateItem(&self, bstrresourcename: &super::super::Foundation::BSTR, bstrresourcetype: &super::super::Foundation::BSTR, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS) -> ::windows::core::Result; + fn CreateItem(&self, bstrresourcename: &::windows::core::BSTR, bstrresourcetype: &::windows::core::BSTR, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS) -> ::windows::core::Result; fn DeleteItem(&self, varindex: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn AddItem(&self, presource: &::core::option::Option) -> ::windows::core::Result<()>; fn RemoveItem(&self, varindex: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; @@ -2325,7 +2319,7 @@ impl ISClusResDependents_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateItem, Impl: ISClusResDependents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrresourcename: ::core::mem::ManuallyDrop, bstrresourcetype: ::core::mem::ManuallyDrop, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS, ppclusterresource: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateItem, Impl: ISClusResDependents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrresourcename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrresourcetype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS, ppclusterresource: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateItem(::core::mem::transmute(&bstrresourcename), ::core::mem::transmute(&bstrresourcetype), ::core::mem::transmute_copy(&dwflags)) { @@ -2374,8 +2368,8 @@ pub trait ISClusResGroup_Impl: Sized + super::super::System::Com::IDispatch_Impl fn CommonROProperties(&self) -> ::windows::core::Result; fn PrivateROProperties(&self) -> ::windows::core::Result; fn Handle(&self) -> ::windows::core::Result; - fn Name(&self) -> ::windows::core::Result; - fn SetName(&self, bstrgroupname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetName(&self, bstrgroupname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn State(&self) -> ::windows::core::Result; fn OwnerNode(&self) -> ::windows::core::Result; fn Resources(&self) -> ::windows::core::Result; @@ -2446,7 +2440,7 @@ impl ISClusResGroup_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Name, Impl: ISClusResGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: ISClusResGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -2457,7 +2451,7 @@ impl ISClusResGroup_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetName, Impl: ISClusResGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: ISClusResGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&bstrgroupname)).into() @@ -2688,7 +2682,7 @@ pub trait ISClusResGroupResources_Impl: Sized + super::super::System::Com::IDisp fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; fn Refresh(&self) -> ::windows::core::Result<()>; fn get_Item(&self, varindex: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn CreateItem(&self, bstrresourcename: &super::super::Foundation::BSTR, bstrresourcetype: &super::super::Foundation::BSTR, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS) -> ::windows::core::Result; + fn CreateItem(&self, bstrresourcename: &::windows::core::BSTR, bstrresourcetype: &::windows::core::BSTR, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS) -> ::windows::core::Result; fn DeleteItem(&self, varindex: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2734,7 +2728,7 @@ impl ISClusResGroupResources_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateItem, Impl: ISClusResGroupResources_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrresourcename: ::core::mem::ManuallyDrop, bstrresourcetype: ::core::mem::ManuallyDrop, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS, ppclusterresource: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateItem, Impl: ISClusResGroupResources_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrresourcename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrresourcetype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS, ppclusterresource: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateItem(::core::mem::transmute(&bstrresourcename), ::core::mem::transmute(&bstrresourcetype), ::core::mem::transmute_copy(&dwflags)) { @@ -2770,7 +2764,7 @@ pub trait ISClusResGroups_Impl: Sized + super::super::System::Com::IDispatch_Imp fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; fn Refresh(&self) -> ::windows::core::Result<()>; fn get_Item(&self, varindex: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn CreateItem(&self, bstrresourcegroupname: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn CreateItem(&self, bstrresourcegroupname: &::windows::core::BSTR) -> ::windows::core::Result; fn DeleteItem(&self, varindex: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2816,7 +2810,7 @@ impl ISClusResGroups_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateItem, Impl: ISClusResGroups_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrresourcegroupname: ::core::mem::ManuallyDrop, ppresourcegroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateItem, Impl: ISClusResGroups_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrresourcegroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppresourcegroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateItem(::core::mem::transmute(&bstrresourcegroupname)) { @@ -2941,7 +2935,7 @@ pub trait ISClusResType_Impl: Sized + super::super::System::Com::IDispatch_Impl fn PrivateProperties(&self) -> ::windows::core::Result; fn CommonROProperties(&self) -> ::windows::core::Result; fn PrivateROProperties(&self) -> ::windows::core::Result; - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Delete(&self) -> ::windows::core::Result<()>; fn Cluster(&self) -> ::windows::core::Result; fn Resources(&self) -> ::windows::core::Result; @@ -2997,7 +2991,7 @@ impl ISClusResType_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Name, Impl: ISClusResType_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: ISClusResType_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -3143,7 +3137,7 @@ pub trait ISClusResTypeResources_Impl: Sized + super::super::System::Com::IDispa fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; fn Refresh(&self) -> ::windows::core::Result<()>; fn get_Item(&self, varindex: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn CreateItem(&self, bstrresourcename: &super::super::Foundation::BSTR, bstrgroupname: &super::super::Foundation::BSTR, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS) -> ::windows::core::Result; + fn CreateItem(&self, bstrresourcename: &::windows::core::BSTR, bstrgroupname: &::windows::core::BSTR, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS) -> ::windows::core::Result; fn DeleteItem(&self, varindex: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3189,7 +3183,7 @@ impl ISClusResTypeResources_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateItem, Impl: ISClusResTypeResources_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrresourcename: ::core::mem::ManuallyDrop, bstrgroupname: ::core::mem::ManuallyDrop, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS, ppclusterresource: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateItem, Impl: ISClusResTypeResources_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrresourcename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrgroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS, ppclusterresource: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateItem(::core::mem::transmute(&bstrresourcename), ::core::mem::transmute(&bstrgroupname), ::core::mem::transmute_copy(&dwflags)) { @@ -3225,7 +3219,7 @@ pub trait ISClusResTypes_Impl: Sized + super::super::System::Com::IDispatch_Impl fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; fn Refresh(&self) -> ::windows::core::Result<()>; fn get_Item(&self, varindex: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn CreateItem(&self, bstrresourcetypename: &super::super::Foundation::BSTR, bstrdisplayname: &super::super::Foundation::BSTR, bstrresourcetypedll: &super::super::Foundation::BSTR, dwlooksalivepollinterval: i32, dwisalivepollinterval: i32) -> ::windows::core::Result; + fn CreateItem(&self, bstrresourcetypename: &::windows::core::BSTR, bstrdisplayname: &::windows::core::BSTR, bstrresourcetypedll: &::windows::core::BSTR, dwlooksalivepollinterval: i32, dwisalivepollinterval: i32) -> ::windows::core::Result; fn DeleteItem(&self, varindex: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3271,7 +3265,7 @@ impl ISClusResTypes_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateItem, Impl: ISClusResTypes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrresourcetypename: ::core::mem::ManuallyDrop, bstrdisplayname: ::core::mem::ManuallyDrop, bstrresourcetypedll: ::core::mem::ManuallyDrop, dwlooksalivepollinterval: i32, dwisalivepollinterval: i32, ppresourcetype: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateItem, Impl: ISClusResTypes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrresourcetypename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdisplayname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrresourcetypedll: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwlooksalivepollinterval: i32, dwisalivepollinterval: i32, ppresourcetype: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateItem(::core::mem::transmute(&bstrresourcetypename), ::core::mem::transmute(&bstrdisplayname), ::core::mem::transmute(&bstrresourcetypedll), ::core::mem::transmute_copy(&dwlooksalivepollinterval), ::core::mem::transmute_copy(&dwisalivepollinterval)) { @@ -3308,11 +3302,11 @@ pub trait ISClusResource_Impl: Sized + super::super::System::Com::IDispatch_Impl fn CommonROProperties(&self) -> ::windows::core::Result; fn PrivateROProperties(&self) -> ::windows::core::Result; fn Handle(&self) -> ::windows::core::Result; - fn Name(&self) -> ::windows::core::Result; - fn SetName(&self, bstrresourcename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetName(&self, bstrresourcename: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn State(&self) -> ::windows::core::Result; fn CoreFlag(&self) -> ::windows::core::Result; - fn BecomeQuorumResource(&self, bstrdevicepath: &super::super::Foundation::BSTR, lmaxlogsize: i32) -> ::windows::core::Result<()>; + fn BecomeQuorumResource(&self, bstrdevicepath: &::windows::core::BSTR, lmaxlogsize: i32) -> ::windows::core::Result<()>; fn Delete(&self) -> ::windows::core::Result<()>; fn Fail(&self) -> ::windows::core::Result<()>; fn Online(&self, ntimeout: i32) -> ::windows::core::Result; @@ -3331,7 +3325,7 @@ pub trait ISClusResource_Impl: Sized + super::super::System::Com::IDispatch_Impl fn Disk(&self) -> ::windows::core::Result; fn RegistryKeys(&self) -> ::windows::core::Result; fn CryptoKeys(&self) -> ::windows::core::Result; - fn TypeName(&self) -> ::windows::core::Result; + fn TypeName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Type(&self) -> ::windows::core::Result; fn MaintenanceMode(&self) -> ::windows::core::Result; fn SetMaintenanceMode(&self, bmaintenancemode: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; @@ -3396,7 +3390,7 @@ impl ISClusResource_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Name, Impl: ISClusResource_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: ISClusResource_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -3407,7 +3401,7 @@ impl ISClusResource_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetName, Impl: ISClusResource_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrresourcename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: ISClusResource_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrresourcename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&bstrresourcename)).into() @@ -3434,7 +3428,7 @@ impl ISClusResource_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn BecomeQuorumResource, Impl: ISClusResource_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdevicepath: ::core::mem::ManuallyDrop, lmaxlogsize: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn BecomeQuorumResource, Impl: ISClusResource_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdevicepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lmaxlogsize: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.BecomeQuorumResource(::core::mem::transmute(&bstrdevicepath), ::core::mem::transmute_copy(&lmaxlogsize)).into() @@ -3607,7 +3601,7 @@ impl ISClusResource_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn TypeName, Impl: ISClusResource_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtypename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TypeName, Impl: ISClusResource_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtypename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TypeName() { @@ -3691,7 +3685,7 @@ pub trait ISClusResources_Impl: Sized + super::super::System::Com::IDispatch_Imp fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; fn Refresh(&self) -> ::windows::core::Result<()>; fn get_Item(&self, varindex: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn CreateItem(&self, bstrresourcename: &super::super::Foundation::BSTR, bstrresourcetype: &super::super::Foundation::BSTR, bstrgroupname: &super::super::Foundation::BSTR, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS) -> ::windows::core::Result; + fn CreateItem(&self, bstrresourcename: &::windows::core::BSTR, bstrresourcetype: &::windows::core::BSTR, bstrgroupname: &::windows::core::BSTR, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS) -> ::windows::core::Result; fn DeleteItem(&self, varindex: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3737,7 +3731,7 @@ impl ISClusResources_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateItem, Impl: ISClusResources_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrresourcename: ::core::mem::ManuallyDrop, bstrresourcetype: ::core::mem::ManuallyDrop, bstrgroupname: ::core::mem::ManuallyDrop, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS, ppclusterresource: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateItem, Impl: ISClusResources_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrresourcename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrresourcetype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrgroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS, ppclusterresource: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateItem(::core::mem::transmute(&bstrresourcename), ::core::mem::transmute(&bstrresourcetype), ::core::mem::transmute(&bstrgroupname), ::core::mem::transmute_copy(&dwflags)) { @@ -3837,12 +3831,12 @@ impl ISClusScsiAddress_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISClusVersion_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn MajorVersion(&self) -> ::windows::core::Result; fn MinorVersion(&self) -> ::windows::core::Result; fn BuildNumber(&self) -> ::windows::core::Result; - fn VendorId(&self) -> ::windows::core::Result; - fn CSDVersion(&self) -> ::windows::core::Result; + fn VendorId(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CSDVersion(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn ClusterHighestVersion(&self) -> ::windows::core::Result; fn ClusterLowestVersion(&self) -> ::windows::core::Result; fn Flags(&self) -> ::windows::core::Result; @@ -3853,7 +3847,7 @@ impl ::windows::core::RuntimeName for ISClusVersion {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ISClusVersion_Vtbl { pub const fn new, Impl: ISClusVersion_Impl, const OFFSET: isize>() -> ISClusVersion_Vtbl { - unsafe extern "system" fn Name, Impl: ISClusVersion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrclustername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: ISClusVersion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrclustername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -3897,7 +3891,7 @@ impl ISClusVersion_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn VendorId, Impl: ISClusVersion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrvendorid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn VendorId, Impl: ISClusVersion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrvendorid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.VendorId() { @@ -3908,7 +3902,7 @@ impl ISClusVersion_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CSDVersion, Impl: ISClusVersion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcsdversion: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CSDVersion, Impl: ISClusVersion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcsdversion: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CSDVersion() { @@ -3988,16 +3982,16 @@ pub trait ISCluster_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn CommonROProperties(&self) -> ::windows::core::Result; fn PrivateROProperties(&self) -> ::windows::core::Result; fn Handle(&self) -> ::windows::core::Result; - fn Open(&self, bstrclustername: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Name(&self) -> ::windows::core::Result; - fn SetName(&self, bstrclustername: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Open(&self, bstrclustername: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetName(&self, bstrclustername: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Version(&self) -> ::windows::core::Result; fn SetQuorumResource(&self, pclusterresource: &::core::option::Option) -> ::windows::core::Result<()>; fn QuorumResource(&self) -> ::windows::core::Result; fn QuorumLogSize(&self) -> ::windows::core::Result; fn SetQuorumLogSize(&self, nlogsize: i32) -> ::windows::core::Result<()>; - fn QuorumPath(&self) -> ::windows::core::Result; - fn SetQuorumPath(&self, ppath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn QuorumPath(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetQuorumPath(&self, ppath: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Nodes(&self) -> ::windows::core::Result; fn ResourceGroups(&self) -> ::windows::core::Result; fn Resources(&self) -> ::windows::core::Result; @@ -4065,12 +4059,12 @@ impl ISCluster_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Open, Impl: ISCluster_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrclustername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Open, Impl: ISCluster_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrclustername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Open(::core::mem::transmute(&bstrclustername)).into() } - unsafe extern "system" fn Name, Impl: ISCluster_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: ISCluster_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -4081,7 +4075,7 @@ impl ISCluster_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetName, Impl: ISCluster_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrclustername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: ISCluster_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrclustername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&bstrclustername)).into() @@ -4129,7 +4123,7 @@ impl ISCluster_Vtbl { let this = (*this).get_impl(); this.SetQuorumLogSize(::core::mem::transmute_copy(&nlogsize)).into() } - unsafe extern "system" fn QuorumPath, Impl: ISCluster_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pppath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn QuorumPath, Impl: ISCluster_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pppath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.QuorumPath() { @@ -4140,7 +4134,7 @@ impl ISCluster_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetQuorumPath, Impl: ISCluster_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetQuorumPath, Impl: ISCluster_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetQuorumPath(::core::mem::transmute(&ppath)).into() @@ -4245,8 +4239,8 @@ pub trait ISClusterNames_Impl: Sized + super::super::System::Com::IDispatch_Impl fn Count(&self) -> ::windows::core::Result; fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; fn Refresh(&self) -> ::windows::core::Result<()>; - fn get_Item(&self, varindex: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn DomainName(&self) -> ::windows::core::Result; + fn get_Item(&self, varindex: &super::super::System::Com::VARIANT) -> ::windows::core::Result<::windows::core::BSTR>; + fn DomainName(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ISClusterNames {} @@ -4280,7 +4274,7 @@ impl ISClusterNames_Vtbl { let this = (*this).get_impl(); this.Refresh().into() } - unsafe extern "system" fn get_Item, Impl: ISClusterNames_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, varindex: ::core::mem::ManuallyDrop, pbstrclustername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Item, Impl: ISClusterNames_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, varindex: ::core::mem::ManuallyDrop, pbstrclustername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_Item(::core::mem::transmute(&varindex)) { @@ -4291,7 +4285,7 @@ impl ISClusterNames_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DomainName, Impl: ISClusterNames_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdomainname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DomainName, Impl: ISClusterNames_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdomainname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DomainName() { @@ -4320,7 +4314,7 @@ pub trait ISDomainNames_Impl: Sized + super::super::System::Com::IDispatch_Impl fn Count(&self) -> ::windows::core::Result; fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; fn Refresh(&self) -> ::windows::core::Result<()>; - fn get_Item(&self, varindex: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn get_Item(&self, varindex: &super::super::System::Com::VARIANT) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ISDomainNames {} @@ -4354,7 +4348,7 @@ impl ISDomainNames_Vtbl { let this = (*this).get_impl(); this.Refresh().into() } - unsafe extern "system" fn get_Item, Impl: ISDomainNames_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, varindex: ::core::mem::ManuallyDrop, pbstrdomainname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Item, Impl: ISDomainNames_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, varindex: ::core::mem::ManuallyDrop, pbstrdomainname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_Item(::core::mem::transmute(&varindex)) { @@ -4377,16 +4371,13 @@ impl ISDomainNames_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IWCContextMenuCallback_Impl: Sized { - fn AddExtensionMenuItem(&self, lpszname: &super::super::Foundation::BSTR, lpszstatusbartext: &super::super::Foundation::BSTR, ncommandid: u32, nsubmenucommandid: u32, uflags: u32) -> ::windows::core::Result<()>; + fn AddExtensionMenuItem(&self, lpszname: &::windows::core::BSTR, lpszstatusbartext: &::windows::core::BSTR, ncommandid: u32, nsubmenucommandid: u32, uflags: u32) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IWCContextMenuCallback {} -#[cfg(feature = "Win32_Foundation")] impl IWCContextMenuCallback_Vtbl { pub const fn new, Impl: IWCContextMenuCallback_Impl, const OFFSET: isize>() -> IWCContextMenuCallback_Vtbl { - unsafe extern "system" fn AddExtensionMenuItem, Impl: IWCContextMenuCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lpszname: ::core::mem::ManuallyDrop, lpszstatusbartext: ::core::mem::ManuallyDrop, ncommandid: u32, nsubmenucommandid: u32, uflags: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddExtensionMenuItem, Impl: IWCContextMenuCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lpszname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lpszstatusbartext: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ncommandid: u32, nsubmenucommandid: u32, uflags: u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddExtensionMenuItem(::core::mem::transmute(&lpszname), ::core::mem::transmute(&lpszstatusbartext), ::core::mem::transmute_copy(&ncommandid), ::core::mem::transmute_copy(&nsubmenucommandid), ::core::mem::transmute_copy(&uflags)).into() diff --git a/crates/libs/windows/src/Windows/Win32/Networking/Clustering/mod.rs b/crates/libs/windows/src/Windows/Win32/Networking/Clustering/mod.rs index 1a4ff6a0e3..b44e69b8bb 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/Clustering/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/Clustering/mod.rs @@ -3812,9 +3812,7 @@ where #[repr(transparent)] pub struct IGetClusterDataInfo(::windows::core::IUnknown); impl IGetClusterDataInfo { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetClusterName(&self, lpszname: &super::super::Foundation::BSTR, pcchname: &mut i32) -> ::windows::core::Result<()> { + pub unsafe fn GetClusterName(&self, lpszname: &::windows::core::BSTR, pcchname: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetClusterName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(lpszname), ::core::mem::transmute(pcchname)).ok() } pub unsafe fn GetClusterHandle(&self) -> *mut _HCLUSTER { @@ -3863,10 +3861,7 @@ unsafe impl ::windows::core::Interface for IGetClusterDataInfo { #[doc(hidden)] pub struct IGetClusterDataInfo_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetClusterName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpszname: ::core::mem::ManuallyDrop, pcchname: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetClusterName: usize, + pub GetClusterName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpszname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcchname: *mut i32) -> ::windows::core::HRESULT, pub GetClusterHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> *mut _HCLUSTER, pub GetObjectCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> i32, } @@ -4070,9 +4065,7 @@ pub struct IGetClusterNodeInfo_Vtbl { #[repr(transparent)] pub struct IGetClusterObjectInfo(::windows::core::IUnknown); impl IGetClusterObjectInfo { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetObjectName(&self, lobjindex: i32, lpszname: &super::super::Foundation::BSTR, pcchname: &mut i32) -> ::windows::core::Result<()> { + pub unsafe fn GetObjectName(&self, lobjindex: i32, lpszname: &::windows::core::BSTR, pcchname: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetObjectName)(::windows::core::Interface::as_raw(self), lobjindex, ::core::mem::transmute(lpszname), ::core::mem::transmute(pcchname)).ok() } pub unsafe fn GetObjectType(&self, lobjindex: i32) -> CLUADMEX_OBJECT_TYPE { @@ -4118,10 +4111,7 @@ unsafe impl ::windows::core::Interface for IGetClusterObjectInfo { #[doc(hidden)] pub struct IGetClusterObjectInfo_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetObjectName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lobjindex: i32, lpszname: ::core::mem::ManuallyDrop, pcchname: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetObjectName: usize, + pub GetObjectName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lobjindex: i32, lpszname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcchname: *mut i32) -> ::windows::core::HRESULT, pub GetObjectType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lobjindex: i32) -> CLUADMEX_OBJECT_TYPE, } #[doc = "*Required features: `\"Win32_Networking_Clustering\"`*"] @@ -4131,14 +4121,12 @@ impl IGetClusterResourceInfo { pub unsafe fn GetResourceHandle(&self, lobjindex: i32) -> *mut _HRESOURCE { (::windows::core::Interface::vtable(self).GetResourceHandle)(::windows::core::Interface::as_raw(self), lobjindex) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetResourceTypeName(&self, lobjindex: i32, lpszrestypename: &super::super::Foundation::BSTR, pcchrestypename: &mut i32) -> ::windows::core::Result<()> { + pub unsafe fn GetResourceTypeName(&self, lobjindex: i32, lpszrestypename: &::windows::core::BSTR, pcchrestypename: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetResourceTypeName)(::windows::core::Interface::as_raw(self), lobjindex, ::core::mem::transmute(lpszrestypename), ::core::mem::transmute(pcchrestypename)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetResourceNetworkName(&self, lobjindex: i32, lpsznetname: &super::super::Foundation::BSTR, pcchnetname: &mut u32) -> super::super::Foundation::BOOL { + pub unsafe fn GetResourceNetworkName(&self, lobjindex: i32, lpsznetname: &::windows::core::BSTR, pcchnetname: &mut u32) -> super::super::Foundation::BOOL { (::windows::core::Interface::vtable(self).GetResourceNetworkName)(::windows::core::Interface::as_raw(self), lobjindex, ::core::mem::transmute(lpsznetname), ::core::mem::transmute(pcchnetname)) } } @@ -4182,12 +4170,9 @@ unsafe impl ::windows::core::Interface for IGetClusterResourceInfo { pub struct IGetClusterResourceInfo_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub GetResourceHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lobjindex: i32) -> *mut _HRESOURCE, + pub GetResourceTypeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lobjindex: i32, lpszrestypename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcchrestypename: *mut i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub GetResourceTypeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lobjindex: i32, lpszrestypename: ::core::mem::ManuallyDrop, pcchrestypename: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetResourceTypeName: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetResourceNetworkName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lobjindex: i32, lpsznetname: ::core::mem::ManuallyDrop, pcchnetname: *mut u32) -> super::super::Foundation::BOOL, + pub GetResourceNetworkName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lobjindex: i32, lpsznetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcchnetname: *mut u32) -> super::super::Foundation::BOOL, #[cfg(not(feature = "Win32_Foundation"))] GetResourceNetworkName: usize, } @@ -4195,9 +4180,7 @@ pub struct IGetClusterResourceInfo_Vtbl { #[repr(transparent)] pub struct IGetClusterUIInfo(::windows::core::IUnknown); impl IGetClusterUIInfo { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetClusterName(&self, lpszname: &super::super::Foundation::BSTR, pcchname: &mut i32) -> ::windows::core::Result<()> { + pub unsafe fn GetClusterName(&self, lpszname: &::windows::core::BSTR, pcchname: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetClusterName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(lpszname), ::core::mem::transmute(pcchname)).ok() } pub unsafe fn GetLocale(&self) -> u32 { @@ -4253,10 +4236,7 @@ unsafe impl ::windows::core::Interface for IGetClusterUIInfo { #[doc(hidden)] pub struct IGetClusterUIInfo_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetClusterName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpszname: ::core::mem::ManuallyDrop, pcchname: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetClusterName: usize, + pub GetClusterName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpszname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcchname: *mut i32) -> ::windows::core::HRESULT, pub GetLocale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, #[cfg(feature = "Win32_Graphics_Gdi")] pub GetFont: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> super::super::Graphics::Gdi::HFONT, @@ -4279,23 +4259,17 @@ impl ISClusApplication { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).DomainNames)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn get_ClusterNames<'a, P0>(&self, bstrdomainname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn get_ClusterNames(&self, bstrdomainname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_ClusterNames)(::windows::core::Interface::as_raw(self), bstrdomainname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_ClusterNames)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdomainname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn OpenCluster<'a, P0>(&self, bstrclustername: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn OpenCluster(&self, bstrclustername: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).OpenCluster)(::windows::core::Interface::as_raw(self), bstrclustername.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).OpenCluster)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrclustername), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -4368,13 +4342,13 @@ pub struct ISClusApplication_Vtbl { pub DomainNames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdomains: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] DomainNames: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub get_ClusterNames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdomainname: ::core::mem::ManuallyDrop, ppclusters: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub get_ClusterNames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdomainname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppclusters: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] get_ClusterNames: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub OpenCluster: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrclustername: ::core::mem::ManuallyDrop, pcluster: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub OpenCluster: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrclustername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcluster: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] OpenCluster: usize, } #[doc = "*Required features: `\"Win32_Networking_Clustering\"`, `\"Win32_System_Com\"`*"] @@ -4396,20 +4370,15 @@ impl ISClusCryptoKeys { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn get_Item<'a, P0>(&self, varindex: P0) -> ::windows::core::Result + pub unsafe fn get_Item<'a, P0>(&self, varindex: P0) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), varindex.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), varindex.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddItem<'a, P0>(&self, bstrcryptokey: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AddItem)(::windows::core::Interface::as_raw(self), bstrcryptokey.into().abi()).ok() + pub unsafe fn AddItem(&self, bstrcryptokey: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AddItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcryptokey)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -4490,13 +4459,10 @@ pub struct ISClusCryptoKeys_Vtbl { pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varindex: ::core::mem::ManuallyDrop, pbstrcyrptokey: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varindex: ::core::mem::ManuallyDrop, pbstrcyrptokey: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_Item: usize, - #[cfg(feature = "Win32_Foundation")] - pub AddItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcryptokey: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddItem: usize, + pub AddItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcryptokey: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub RemoveItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varindex: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -4733,11 +4699,9 @@ impl ISClusNetInterface { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).PrivateROProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Handle(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4836,10 +4800,7 @@ pub struct ISClusNetInterface_Vtbl { pub PrivateROProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppproperties: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] PrivateROProperties: usize, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Handle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phandle: *mut usize) -> ::windows::core::HRESULT, pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstate: *mut CLUSTER_NETINTERFACE_STATE) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] @@ -4982,25 +4943,16 @@ impl ISClusNetwork { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Handle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, bstrnetworkname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), bstrnetworkname.into().abi()).ok() + pub unsafe fn SetName(&self, bstrnetworkname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrnetworkname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NetworkID(&self) -> ::windows::core::Result { + pub unsafe fn NetworkID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).NetworkID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).NetworkID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn State(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5102,18 +5054,9 @@ pub struct ISClusNetwork_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] PrivateROProperties: usize, pub Handle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phandle: *mut usize) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrnetworkname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, - #[cfg(feature = "Win32_Foundation")] - pub NetworkID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrnetworkid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - NetworkID: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrnetworkname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub NetworkID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrnetworkid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstate: *mut CLUSTER_NETWORK_STATE) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub NetInterfaces: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppclusnetinterfaces: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -5356,21 +5299,17 @@ impl ISClusNode { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).PrivateROProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Handle(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Handle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NodeID(&self) -> ::windows::core::Result { + pub unsafe fn NodeID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).NodeID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).NodeID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn State(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5486,15 +5425,9 @@ pub struct ISClusNode_Vtbl { pub PrivateROProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppproperties: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] PrivateROProperties: usize, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Handle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phandle: *mut usize) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub NodeID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrnodeid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - NodeID: usize, + pub NodeID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrnodeid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstate: *mut CLUSTER_NODE_STATE) -> ::windows::core::HRESULT, pub Pause: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Resume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -5724,17 +5657,13 @@ impl ISClusPartition { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Flags)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeviceName(&self) -> ::windows::core::Result { + pub unsafe fn DeviceName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DeviceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DeviceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn VolumeLabel(&self) -> ::windows::core::Result { + pub unsafe fn VolumeLabel(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).VolumeLabel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).VolumeLabel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SerialNumber(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5748,11 +5677,9 @@ impl ISClusPartition { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).FileSystemFlags)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FileSystem(&self) -> ::windows::core::Result { + pub unsafe fn FileSystem(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FileSystem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FileSystem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -5822,21 +5749,12 @@ unsafe impl ::windows::core::Interface for ISClusPartition { pub struct ISClusPartition_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub Flags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plflags: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub DeviceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdevicename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeviceName: usize, - #[cfg(feature = "Win32_Foundation")] - pub VolumeLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrvolumelabel: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - VolumeLabel: usize, + pub DeviceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdevicename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub VolumeLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrvolumelabel: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SerialNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plserialnumber: *mut i32) -> ::windows::core::HRESULT, pub MaximumComponentLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plmaximumcomponentlength: *mut i32) -> ::windows::core::HRESULT, pub FileSystemFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plfilesystemflags: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub FileSystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfilesystem: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FileSystem: usize, + pub FileSystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfilesystem: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Networking_Clustering\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5848,17 +5766,13 @@ impl ISClusPartitionEx { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Flags)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeviceName(&self) -> ::windows::core::Result { + pub unsafe fn DeviceName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.DeviceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.DeviceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn VolumeLabel(&self) -> ::windows::core::Result { + pub unsafe fn VolumeLabel(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.VolumeLabel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.VolumeLabel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SerialNumber(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5872,11 +5786,9 @@ impl ISClusPartitionEx { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.FileSystemFlags)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FileSystem(&self) -> ::windows::core::Result { + pub unsafe fn FileSystem(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FileSystem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.FileSystem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn TotalSize(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5894,11 +5806,9 @@ impl ISClusPartitionEx { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).PartitionNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn VolumeGuid(&self) -> ::windows::core::Result { + pub unsafe fn VolumeGuid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).VolumeGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).VolumeGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -5989,10 +5899,7 @@ pub struct ISClusPartitionEx_Vtbl { pub FreeSpace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plfreespace: *mut i32) -> ::windows::core::HRESULT, pub DeviceNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pldevicenumber: *mut i32) -> ::windows::core::HRESULT, pub PartitionNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plpartitionnumber: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub VolumeGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrvolumeguid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - VolumeGuid: usize, + pub VolumeGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrvolumeguid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Networking_Clustering\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6119,13 +6026,12 @@ impl ISClusProperties { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateItem<'a, P0, P1>(&self, bstrname: P0, varvalue: P1) -> ::windows::core::Result + pub unsafe fn CreateItem<'a, P0>(&self, bstrname: &::windows::core::BSTR, varvalue: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateItem)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), varvalue.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), varvalue.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -6240,7 +6146,7 @@ pub struct ISClusProperties_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_Item: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub CreateItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, varvalue: ::core::mem::ManuallyDrop, pproperty: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub CreateItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varvalue: ::core::mem::ManuallyDrop, pproperty: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] CreateItem: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -6274,11 +6180,9 @@ pub struct ISClusProperties_Vtbl { pub struct ISClusProperty(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ISClusProperty { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Length(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6416,10 +6320,7 @@ unsafe impl ::windows::core::Interface for ISClusProperty { #[doc(hidden)] pub struct ISClusProperty_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Length: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plength: *mut i32) -> ::windows::core::HRESULT, pub ValueCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcount: *mut i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] @@ -6737,13 +6638,12 @@ impl ISClusPropertyValues { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateItem<'a, P0, P1>(&self, bstrname: P0, varvalue: P1) -> ::windows::core::Result + pub unsafe fn CreateItem<'a, P0>(&self, bstrname: &::windows::core::BSTR, varvalue: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateItem)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), varvalue.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), varvalue.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -6827,7 +6727,7 @@ pub struct ISClusPropertyValues_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_Item: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub CreateItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, varvalue: ::core::mem::ManuallyDrop, pppropertyvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub CreateItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varvalue: ::core::mem::ManuallyDrop, pppropertyvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] CreateItem: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -6933,20 +6833,15 @@ impl ISClusRegistryKeys { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn get_Item<'a, P0>(&self, varindex: P0) -> ::windows::core::Result + pub unsafe fn get_Item<'a, P0>(&self, varindex: P0) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), varindex.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), varindex.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddItem<'a, P0>(&self, bstrregistrykey: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AddItem)(::windows::core::Interface::as_raw(self), bstrregistrykey.into().abi()).ok() + pub unsafe fn AddItem(&self, bstrregistrykey: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AddItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrregistrykey)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -7027,13 +6922,10 @@ pub struct ISClusRegistryKeys_Vtbl { pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varindex: ::core::mem::ManuallyDrop, pbstrregistrykey: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varindex: ::core::mem::ManuallyDrop, pbstrregistrykey: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_Item: usize, - #[cfg(feature = "Win32_Foundation")] - pub AddItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrregistrykey: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddItem: usize, + pub AddItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrregistrykey: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub RemoveItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varindex: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -7065,15 +6957,11 @@ impl ISClusResDependencies { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), varindex.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateItem<'a, P0, P1>(&self, bstrresourcename: P0, bstrresourcetype: P1, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateItem(&self, bstrresourcename: &::windows::core::BSTR, bstrresourcetype: &::windows::core::BSTR, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateItem)(::windows::core::Interface::as_raw(self), bstrresourcename.into().abi(), bstrresourcetype.into().abi(), dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrresourcename), ::core::mem::transmute_copy(bstrresourcetype), dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -7173,9 +7061,9 @@ pub struct ISClusResDependencies_Vtbl { pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varindex: ::core::mem::ManuallyDrop, ppclusresource: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_Item: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreateItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrresourcename: ::core::mem::ManuallyDrop, bstrresourcetype: ::core::mem::ManuallyDrop, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS, ppclusterresource: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreateItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrresourcename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrresourcetype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS, ppclusterresource: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreateItem: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub DeleteItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varindex: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, @@ -7216,15 +7104,11 @@ impl ISClusResDependents { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), varindex.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateItem<'a, P0, P1>(&self, bstrresourcename: P0, bstrresourcetype: P1, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateItem(&self, bstrresourcename: &::windows::core::BSTR, bstrresourcetype: &::windows::core::BSTR, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateItem)(::windows::core::Interface::as_raw(self), bstrresourcename.into().abi(), bstrresourcetype.into().abi(), dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrresourcename), ::core::mem::transmute_copy(bstrresourcetype), dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -7324,9 +7208,9 @@ pub struct ISClusResDependents_Vtbl { pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varindex: ::core::mem::ManuallyDrop, ppclusresource: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_Item: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreateItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrresourcename: ::core::mem::ManuallyDrop, bstrresourcetype: ::core::mem::ManuallyDrop, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS, ppclusterresource: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreateItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrresourcename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrresourcetype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS, ppclusterresource: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreateItem: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub DeleteItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varindex: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, @@ -7375,19 +7259,12 @@ impl ISClusResGroup { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Handle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, bstrgroupname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), bstrgroupname.into().abi()).ok() + pub unsafe fn SetName(&self, bstrgroupname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrgroupname)).ok() } pub unsafe fn State(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7533,14 +7410,8 @@ pub struct ISClusResGroup_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] PrivateROProperties: usize, pub Handle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phandle: *mut usize) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstate: *mut CLUSTER_GROUP_STATE) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub OwnerNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppownernode: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -7749,15 +7620,11 @@ impl ISClusResGroupResources { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), varindex.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateItem<'a, P0, P1>(&self, bstrresourcename: P0, bstrresourcetype: P1, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateItem(&self, bstrresourcename: &::windows::core::BSTR, bstrresourcetype: &::windows::core::BSTR, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateItem)(::windows::core::Interface::as_raw(self), bstrresourcename.into().abi(), bstrresourcetype.into().abi(), dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrresourcename), ::core::mem::transmute_copy(bstrresourcetype), dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -7841,9 +7708,9 @@ pub struct ISClusResGroupResources_Vtbl { pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varindex: ::core::mem::ManuallyDrop, ppclusresource: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_Item: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreateItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrresourcename: ::core::mem::ManuallyDrop, bstrresourcetype: ::core::mem::ManuallyDrop, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS, ppclusterresource: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreateItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrresourcename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrresourcetype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS, ppclusterresource: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreateItem: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub DeleteItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varindex: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, @@ -7876,14 +7743,11 @@ impl ISClusResGroups { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), varindex.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateItem<'a, P0>(&self, bstrresourcegroupname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateItem(&self, bstrresourcegroupname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateItem)(::windows::core::Interface::as_raw(self), bstrresourcegroupname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrresourcegroupname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -7967,9 +7831,9 @@ pub struct ISClusResGroups_Vtbl { pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varindex: ::core::mem::ManuallyDrop, ppclusresgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_Item: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreateItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrresourcegroupname: ::core::mem::ManuallyDrop, ppresourcegroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreateItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrresourcegroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppresourcegroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreateItem: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub DeleteItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varindex: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, @@ -8141,11 +8005,9 @@ impl ISClusResType { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).PrivateROProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Delete)(::windows::core::Interface::as_raw(self)).ok() @@ -8257,10 +8119,7 @@ pub struct ISClusResType_Vtbl { pub PrivateROProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppproperties: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] PrivateROProperties: usize, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Cluster: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcluster: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -8406,15 +8265,11 @@ impl ISClusResTypeResources { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), varindex.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateItem<'a, P0, P1>(&self, bstrresourcename: P0, bstrgroupname: P1, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateItem(&self, bstrresourcename: &::windows::core::BSTR, bstrgroupname: &::windows::core::BSTR, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateItem)(::windows::core::Interface::as_raw(self), bstrresourcename.into().abi(), bstrgroupname.into().abi(), dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrresourcename), ::core::mem::transmute_copy(bstrgroupname), dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -8498,9 +8353,9 @@ pub struct ISClusResTypeResources_Vtbl { pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varindex: ::core::mem::ManuallyDrop, ppclusresource: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_Item: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreateItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrresourcename: ::core::mem::ManuallyDrop, bstrgroupname: ::core::mem::ManuallyDrop, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS, ppclusterresource: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreateItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrresourcename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrgroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS, ppclusterresource: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreateItem: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub DeleteItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varindex: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, @@ -8533,16 +8388,11 @@ impl ISClusResTypes { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), varindex.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateItem<'a, P0, P1, P2>(&self, bstrresourcetypename: P0, bstrdisplayname: P1, bstrresourcetypedll: P2, dwlooksalivepollinterval: i32, dwisalivepollinterval: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateItem(&self, bstrresourcetypename: &::windows::core::BSTR, bstrdisplayname: &::windows::core::BSTR, bstrresourcetypedll: &::windows::core::BSTR, dwlooksalivepollinterval: i32, dwisalivepollinterval: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateItem)(::windows::core::Interface::as_raw(self), bstrresourcetypename.into().abi(), bstrdisplayname.into().abi(), bstrresourcetypedll.into().abi(), dwlooksalivepollinterval, dwisalivepollinterval, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrresourcetypename), ::core::mem::transmute_copy(bstrdisplayname), ::core::mem::transmute_copy(bstrresourcetypedll), dwlooksalivepollinterval, dwisalivepollinterval, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -8626,9 +8476,9 @@ pub struct ISClusResTypes_Vtbl { pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varindex: ::core::mem::ManuallyDrop, ppclusrestype: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_Item: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreateItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrresourcetypename: ::core::mem::ManuallyDrop, bstrdisplayname: ::core::mem::ManuallyDrop, bstrresourcetypedll: ::core::mem::ManuallyDrop, dwlooksalivepollinterval: i32, dwisalivepollinterval: i32, ppresourcetype: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreateItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrresourcetypename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdisplayname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrresourcetypedll: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwlooksalivepollinterval: i32, dwisalivepollinterval: i32, ppresourcetype: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreateItem: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub DeleteItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varindex: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, @@ -8669,19 +8519,12 @@ impl ISClusResource { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Handle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, bstrresourcename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), bstrresourcename.into().abi()).ok() + pub unsafe fn SetName(&self, bstrresourcename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrresourcename)).ok() } pub unsafe fn State(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -8691,13 +8534,8 @@ impl ISClusResource { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CoreFlag)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BecomeQuorumResource<'a, P0>(&self, bstrdevicepath: P0, lmaxlogsize: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).BecomeQuorumResource)(::windows::core::Interface::as_raw(self), bstrdevicepath.into().abi(), lmaxlogsize).ok() + pub unsafe fn BecomeQuorumResource(&self, bstrdevicepath: &::windows::core::BSTR, lmaxlogsize: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).BecomeQuorumResource)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdevicepath), lmaxlogsize).ok() } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Delete)(::windows::core::Interface::as_raw(self)).ok() @@ -8808,11 +8646,9 @@ impl ISClusResource { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CryptoKeys)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TypeName(&self) -> ::windows::core::Result { + pub unsafe fn TypeName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TypeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TypeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -8918,20 +8754,11 @@ pub struct ISClusResource_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] PrivateROProperties: usize, pub Handle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phandle: *mut usize) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrresourcename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrresourcename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwstate: *mut CLUSTER_RESOURCE_STATE) -> ::windows::core::HRESULT, pub CoreFlag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcoreflag: *mut CLUS_FLAGS) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub BecomeQuorumResource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdevicepath: ::core::mem::ManuallyDrop, lmaxlogsize: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BecomeQuorumResource: usize, + pub BecomeQuorumResource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdevicepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lmaxlogsize: i32) -> ::windows::core::HRESULT, pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Fail: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -8995,10 +8822,7 @@ pub struct ISClusResource_Vtbl { pub CryptoKeys: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcryptokeys: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] CryptoKeys: usize, - #[cfg(feature = "Win32_Foundation")] - pub TypeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtypename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TypeName: usize, + pub TypeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtypename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppresourcetype: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -9038,16 +8862,11 @@ impl ISClusResources { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), varindex.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateItem<'a, P0, P1, P2>(&self, bstrresourcename: P0, bstrresourcetype: P1, bstrgroupname: P2, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateItem(&self, bstrresourcename: &::windows::core::BSTR, bstrresourcetype: &::windows::core::BSTR, bstrgroupname: &::windows::core::BSTR, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateItem)(::windows::core::Interface::as_raw(self), bstrresourcename.into().abi(), bstrresourcetype.into().abi(), bstrgroupname.into().abi(), dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrresourcename), ::core::mem::transmute_copy(bstrresourcetype), ::core::mem::transmute_copy(bstrgroupname), dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -9131,9 +8950,9 @@ pub struct ISClusResources_Vtbl { pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varindex: ::core::mem::ManuallyDrop, ppclusresource: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_Item: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreateItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrresourcename: ::core::mem::ManuallyDrop, bstrresourcetype: ::core::mem::ManuallyDrop, bstrgroupname: ::core::mem::ManuallyDrop, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS, ppclusterresource: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreateItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrresourcename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrresourcetype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrgroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwflags: CLUSTER_RESOURCE_CREATE_FLAGS, ppclusterresource: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreateItem: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub DeleteItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varindex: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, @@ -9260,11 +9079,9 @@ pub struct ISClusScsiAddress_Vtbl { pub struct ISClusVersion(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ISClusVersion { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn MajorVersion(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -9278,17 +9095,13 @@ impl ISClusVersion { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).BuildNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn VendorId(&self) -> ::windows::core::Result { + pub unsafe fn VendorId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).VendorId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).VendorId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CSDVersion(&self) -> ::windows::core::Result { + pub unsafe fn CSDVersion(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CSDVersion)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CSDVersion)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn ClusterHighestVersion(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -9375,21 +9188,12 @@ unsafe impl ::windows::core::Interface for ISClusVersion { #[doc(hidden)] pub struct ISClusVersion_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrclustername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrclustername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub MajorVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnmajorversion: *mut i32) -> ::windows::core::HRESULT, pub MinorVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnminorversion: *mut i32) -> ::windows::core::HRESULT, pub BuildNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnbuildnumber: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub VendorId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrvendorid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - VendorId: usize, - #[cfg(feature = "Win32_Foundation")] - pub CSDVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcsdversion: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CSDVersion: usize, + pub VendorId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrvendorid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CSDVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcsdversion: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ClusterHighestVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnclusterhighestversion: *mut i32) -> ::windows::core::HRESULT, pub ClusterLowestVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnclusterlowestversion: *mut i32) -> ::windows::core::HRESULT, pub Flags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnflags: *mut i32) -> ::windows::core::HRESULT, @@ -9432,27 +9236,15 @@ impl ISCluster { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Handle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Open<'a, P0>(&self, bstrclustername: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Open)(::windows::core::Interface::as_raw(self), bstrclustername.into().abi()).ok() + pub unsafe fn Open(&self, bstrclustername: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Open)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrclustername)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, bstrclustername: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), bstrclustername.into().abi()).ok() + pub unsafe fn SetName(&self, bstrclustername: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrclustername)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9481,19 +9273,12 @@ impl ISCluster { pub unsafe fn SetQuorumLogSize(&self, nlogsize: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetQuorumLogSize)(::windows::core::Interface::as_raw(self), nlogsize).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn QuorumPath(&self) -> ::windows::core::Result { + pub unsafe fn QuorumPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).QuorumPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).QuorumPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetQuorumPath<'a, P0>(&self, ppath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetQuorumPath)(::windows::core::Interface::as_raw(self), ppath.into().abi()).ok() + pub unsafe fn SetQuorumPath(&self, ppath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetQuorumPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(ppath)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9615,18 +9400,9 @@ pub struct ISCluster_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] PrivateROProperties: usize, pub Handle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phandle: *mut usize) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Open: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrclustername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Open: usize, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrclustername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, + pub Open: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrclustername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrclustername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Version: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppclusversion: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -9641,14 +9417,8 @@ pub struct ISCluster_Vtbl { QuorumResource: usize, pub QuorumLogSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnlogsize: *mut i32) -> ::windows::core::HRESULT, pub SetQuorumLogSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nlogsize: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub QuorumPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pppath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - QuorumPath: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetQuorumPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetQuorumPath: usize, + pub QuorumPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pppath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetQuorumPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Nodes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppnodes: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -9693,18 +9463,16 @@ impl ISClusterNames { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn get_Item<'a, P0>(&self, varindex: P0) -> ::windows::core::Result + pub unsafe fn get_Item<'a, P0>(&self, varindex: P0) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), varindex.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), varindex.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DomainName(&self) -> ::windows::core::Result { + pub unsafe fn DomainName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DomainName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DomainName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -9777,13 +9545,10 @@ pub struct ISClusterNames_Vtbl { pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varindex: ::core::mem::ManuallyDrop, pbstrclustername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varindex: ::core::mem::ManuallyDrop, pbstrclustername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_Item: usize, - #[cfg(feature = "Win32_Foundation")] - pub DomainName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdomainname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DomainName: usize, + pub DomainName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdomainname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Networking_Clustering\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9804,12 +9569,12 @@ impl ISDomainNames { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn get_Item<'a, P0>(&self, varindex: P0) -> ::windows::core::Result + pub unsafe fn get_Item<'a, P0>(&self, varindex: P0) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), varindex.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), varindex.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -9882,7 +9647,7 @@ pub struct ISDomainNames_Vtbl { pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varindex: ::core::mem::ManuallyDrop, pbstrdomainname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varindex: ::core::mem::ManuallyDrop, pbstrdomainname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_Item: usize, } @@ -9890,14 +9655,8 @@ pub struct ISDomainNames_Vtbl { #[repr(transparent)] pub struct IWCContextMenuCallback(::windows::core::IUnknown); impl IWCContextMenuCallback { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddExtensionMenuItem<'a, P0, P1>(&self, lpszname: P0, lpszstatusbartext: P1, ncommandid: u32, nsubmenucommandid: u32, uflags: u32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AddExtensionMenuItem)(::windows::core::Interface::as_raw(self), lpszname.into().abi(), lpszstatusbartext.into().abi(), ncommandid, nsubmenucommandid, uflags).ok() + pub unsafe fn AddExtensionMenuItem(&self, lpszname: &::windows::core::BSTR, lpszstatusbartext: &::windows::core::BSTR, ncommandid: u32, nsubmenucommandid: u32, uflags: u32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AddExtensionMenuItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(lpszname), ::core::mem::transmute_copy(lpszstatusbartext), ncommandid, nsubmenucommandid, uflags).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -9939,10 +9698,7 @@ unsafe impl ::windows::core::Interface for IWCContextMenuCallback { #[doc(hidden)] pub struct IWCContextMenuCallback_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub AddExtensionMenuItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpszname: ::core::mem::ManuallyDrop, lpszstatusbartext: ::core::mem::ManuallyDrop, ncommandid: u32, nsubmenucommandid: u32, uflags: u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddExtensionMenuItem: usize, + pub AddExtensionMenuItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpszname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lpszstatusbartext: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ncommandid: u32, nsubmenucommandid: u32, uflags: u32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Networking_Clustering\"`*"] #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Win32/Networking/NetworkListManager/impl.rs b/crates/libs/windows/src/Windows/Win32/Networking/NetworkListManager/impl.rs index e8a06fb1e9..c77f91afda 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/NetworkListManager/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/NetworkListManager/impl.rs @@ -126,10 +126,10 @@ impl IEnumNetworks_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait INetwork_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn GetName(&self) -> ::windows::core::Result; - fn SetName(&self, sznetworknewname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetDescription(&self) -> ::windows::core::Result; - fn SetDescription(&self, szdescription: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetName(&self, sznetworknewname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetDescription(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDescription(&self, szdescription: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetNetworkId(&self) -> ::windows::core::Result<::windows::core::GUID>; fn GetDomainType(&self) -> ::windows::core::Result; fn GetNetworkConnections(&self) -> ::windows::core::Result; @@ -145,7 +145,7 @@ impl ::windows::core::RuntimeName for INetwork {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl INetwork_Vtbl { pub const fn new, Impl: INetwork_Impl, const OFFSET: isize>() -> INetwork_Vtbl { - unsafe extern "system" fn GetName, Impl: INetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, psznetworkname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetName, Impl: INetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, psznetworkname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetName() { @@ -156,12 +156,12 @@ impl INetwork_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetName, Impl: INetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sznetworknewname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: INetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sznetworknewname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&sznetworknewname)).into() } - unsafe extern "system" fn GetDescription, Impl: INetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDescription, Impl: INetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDescription() { @@ -172,7 +172,7 @@ impl INetwork_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription, Impl: INetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, szdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDescription, Impl: INetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, szdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDescription(::core::mem::transmute(&szdescription)).into() diff --git a/crates/libs/windows/src/Windows/Win32/Networking/NetworkListManager/mod.rs b/crates/libs/windows/src/Windows/Win32/Networking/NetworkListManager/mod.rs index 6351908d37..fffe2b2a0c 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/NetworkListManager/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/NetworkListManager/mod.rs @@ -226,33 +226,19 @@ pub struct IEnumNetworks_Vtbl { pub struct INetwork(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl INetwork { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self) -> ::windows::core::Result { + pub unsafe fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, sznetworknewname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), sznetworknewname.into().abi()).ok() + pub unsafe fn SetName(&self, sznetworknewname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(sznetworknewname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDescription(&self) -> ::windows::core::Result { + pub unsafe fn GetDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, szdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), szdescription.into().abi()).ok() + pub unsafe fn SetDescription(&self, szdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(szdescription)).ok() } pub unsafe fn GetNetworkId(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -357,22 +343,10 @@ unsafe impl ::windows::core::Interface for INetwork { #[doc(hidden)] pub struct INetwork_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psznetworkname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sznetworknewname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDescription: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDescription: usize, + pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psznetworkname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sznetworknewname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetNetworkId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pgdguidnetworkid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, pub GetDomainType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnetworktype: *mut NLM_DOMAIN_TYPE) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] diff --git a/crates/libs/windows/src/Windows/Win32/Networking/WinInet/mod.rs b/crates/libs/windows/src/Windows/Win32/Networking/WinInet/mod.rs index 54267c4a46..5031019132 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/WinInet/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/WinInet/mod.rs @@ -3011,10 +3011,10 @@ where #[doc = "*Required features: `\"Win32_Networking_WinInet\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn ReadGuidsForConnectedNetworks(pcnetworks: ::core::option::Option<&mut u32>, pppwsznetworkguids: ::core::option::Option<&mut *mut ::windows::core::PWSTR>, pppbstrnetworknames: ::core::option::Option<&mut *mut super::super::Foundation::BSTR>, pppwszgwmacs: ::core::option::Option<&mut *mut ::windows::core::PWSTR>, pcgatewaymacs: ::core::option::Option<&mut u32>, pdwflags: ::core::option::Option<&mut u32>) -> super::super::Foundation::BOOL { +pub unsafe fn ReadGuidsForConnectedNetworks(pcnetworks: ::core::option::Option<&mut u32>, pppwsznetworkguids: ::core::option::Option<&mut *mut ::windows::core::PWSTR>, pppbstrnetworknames: ::core::option::Option<&mut *mut ::windows::core::BSTR>, pppwszgwmacs: ::core::option::Option<&mut *mut ::windows::core::PWSTR>, pcgatewaymacs: ::core::option::Option<&mut u32>, pdwflags: ::core::option::Option<&mut u32>) -> super::super::Foundation::BOOL { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn ReadGuidsForConnectedNetworks(pcnetworks: *mut u32, pppwsznetworkguids: *mut *mut ::windows::core::PWSTR, pppbstrnetworknames: *mut *mut super::super::Foundation::BSTR, pppwszgwmacs: *mut *mut ::windows::core::PWSTR, pcgatewaymacs: *mut u32, pdwflags: *mut u32) -> super::super::Foundation::BOOL; + fn ReadGuidsForConnectedNetworks(pcnetworks: *mut u32, pppwsznetworkguids: *mut *mut ::windows::core::PWSTR, pppbstrnetworknames: *mut *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pppwszgwmacs: *mut *mut ::windows::core::PWSTR, pcgatewaymacs: *mut u32, pdwflags: *mut u32) -> super::super::Foundation::BOOL; } ReadGuidsForConnectedNetworks(::core::mem::transmute(pcnetworks), ::core::mem::transmute(pppwsznetworkguids), ::core::mem::transmute(pppbstrnetworknames), ::core::mem::transmute(pppwszgwmacs), ::core::mem::transmute(pcgatewaymacs), ::core::mem::transmute(pdwflags)) } diff --git a/crates/libs/windows/src/Windows/Win32/Security/Authorization/impl.rs b/crates/libs/windows/src/Windows/Win32/Security/Authorization/impl.rs index 5b47b37c62..5bdd680e47 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Authorization/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Authorization/impl.rs @@ -1,15 +1,15 @@ #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IAzApplication_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; - fn SetName(&self, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Description(&self) -> ::windows::core::Result; - fn SetDescription(&self, bstrdescription: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ApplicationData(&self) -> ::windows::core::Result; - fn SetApplicationData(&self, bstrapplicationdata: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn AuthzInterfaceClsid(&self) -> ::windows::core::Result; - fn SetAuthzInterfaceClsid(&self, bstrprop: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Version(&self) -> ::windows::core::Result; - fn SetVersion(&self, bstrprop: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ApplicationData(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetApplicationData(&self, bstrapplicationdata: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn AuthzInterfaceClsid(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetAuthzInterfaceClsid(&self, bstrprop: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Version(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetVersion(&self, bstrprop: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn GenerateAudits(&self) -> ::windows::core::Result; fn SetGenerateAudits(&self, bprop: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn ApplyStoreSacl(&self) -> ::windows::core::Result; @@ -19,55 +19,55 @@ pub trait IAzApplication_Impl: Sized + super::super::System::Com::IDispatch_Impl fn SetProperty(&self, lpropid: i32, varprop: &super::super::System::Com::VARIANT, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn PolicyAdministrators(&self) -> ::windows::core::Result; fn PolicyReaders(&self) -> ::windows::core::Result; - fn AddPolicyAdministrator(&self, bstradmin: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn DeletePolicyAdministrator(&self, bstradmin: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn AddPolicyReader(&self, bstrreader: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn DeletePolicyReader(&self, bstrreader: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn AddPolicyAdministrator(&self, bstradmin: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn DeletePolicyAdministrator(&self, bstradmin: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn AddPolicyReader(&self, bstrreader: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn DeletePolicyReader(&self, bstrreader: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn Scopes(&self) -> ::windows::core::Result; - fn OpenScope(&self, bstrscopename: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn CreateScope(&self, bstrscopename: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn DeleteScope(&self, bstrscopename: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn OpenScope(&self, bstrscopename: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn CreateScope(&self, bstrscopename: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn DeleteScope(&self, bstrscopename: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn Operations(&self) -> ::windows::core::Result; - fn OpenOperation(&self, bstroperationname: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn CreateOperation(&self, bstroperationname: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn DeleteOperation(&self, bstroperationname: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn OpenOperation(&self, bstroperationname: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn CreateOperation(&self, bstroperationname: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn DeleteOperation(&self, bstroperationname: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn Tasks(&self) -> ::windows::core::Result; - fn OpenTask(&self, bstrtaskname: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn CreateTask(&self, bstrtaskname: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn DeleteTask(&self, bstrtaskname: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn OpenTask(&self, bstrtaskname: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn CreateTask(&self, bstrtaskname: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn DeleteTask(&self, bstrtaskname: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn ApplicationGroups(&self) -> ::windows::core::Result; - fn OpenApplicationGroup(&self, bstrgroupname: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn CreateApplicationGroup(&self, bstrgroupname: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn DeleteApplicationGroup(&self, bstrgroupname: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn OpenApplicationGroup(&self, bstrgroupname: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn CreateApplicationGroup(&self, bstrgroupname: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn DeleteApplicationGroup(&self, bstrgroupname: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn Roles(&self) -> ::windows::core::Result; - fn OpenRole(&self, bstrrolename: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn CreateRole(&self, bstrrolename: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn DeleteRole(&self, bstrrolename: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn OpenRole(&self, bstrrolename: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn CreateRole(&self, bstrrolename: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn DeleteRole(&self, bstrrolename: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn InitializeClientContextFromToken(&self, ulltokenhandle: u64, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; fn AddPropertyItem(&self, lpropid: i32, varprop: &super::super::System::Com::VARIANT, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn DeletePropertyItem(&self, lpropid: i32, varprop: &super::super::System::Com::VARIANT, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn Submit(&self, lflags: i32, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn InitializeClientContextFromName(&self, clientname: &super::super::Foundation::BSTR, domainname: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn InitializeClientContextFromName(&self, clientname: &::windows::core::BSTR, domainname: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; fn DelegatedPolicyUsers(&self) -> ::windows::core::Result; - fn AddDelegatedPolicyUser(&self, bstrdelegatedpolicyuser: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn DeleteDelegatedPolicyUser(&self, bstrdelegatedpolicyuser: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn InitializeClientContextFromStringSid(&self, sidstring: &super::super::Foundation::BSTR, loptions: i32, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn AddDelegatedPolicyUser(&self, bstrdelegatedpolicyuser: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn DeleteDelegatedPolicyUser(&self, bstrdelegatedpolicyuser: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn InitializeClientContextFromStringSid(&self, sidstring: &::windows::core::BSTR, loptions: i32, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; fn PolicyAdministratorsName(&self) -> ::windows::core::Result; fn PolicyReadersName(&self) -> ::windows::core::Result; - fn AddPolicyAdministratorName(&self, bstradmin: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn DeletePolicyAdministratorName(&self, bstradmin: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn AddPolicyReaderName(&self, bstrreader: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn DeletePolicyReaderName(&self, bstrreader: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn AddPolicyAdministratorName(&self, bstradmin: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn DeletePolicyAdministratorName(&self, bstradmin: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn AddPolicyReaderName(&self, bstrreader: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn DeletePolicyReaderName(&self, bstrreader: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn DelegatedPolicyUsersName(&self) -> ::windows::core::Result; - fn AddDelegatedPolicyUserName(&self, bstrdelegatedpolicyuser: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn DeleteDelegatedPolicyUserName(&self, bstrdelegatedpolicyuser: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn AddDelegatedPolicyUserName(&self, bstrdelegatedpolicyuser: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn DeleteDelegatedPolicyUserName(&self, bstrdelegatedpolicyuser: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IAzApplication {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IAzApplication_Vtbl { pub const fn new, Impl: IAzApplication_Impl, const OFFSET: isize>() -> IAzApplication_Vtbl { - unsafe extern "system" fn Name, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -78,12 +78,12 @@ impl IAzApplication_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetName, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&bstrname)).into() } - unsafe extern "system" fn Description, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -94,12 +94,12 @@ impl IAzApplication_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDescription, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDescription(::core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn ApplicationData, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrapplicationdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ApplicationData, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrapplicationdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ApplicationData() { @@ -110,12 +110,12 @@ impl IAzApplication_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetApplicationData, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationdata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetApplicationData, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetApplicationData(::core::mem::transmute(&bstrapplicationdata)).into() } - unsafe extern "system" fn AuthzInterfaceClsid, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprop: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn AuthzInterfaceClsid, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprop: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AuthzInterfaceClsid() { @@ -126,12 +126,12 @@ impl IAzApplication_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetAuthzInterfaceClsid, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetAuthzInterfaceClsid, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetAuthzInterfaceClsid(::core::mem::transmute(&bstrprop)).into() } - unsafe extern "system" fn Version, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprop: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Version, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprop: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Version() { @@ -142,7 +142,7 @@ impl IAzApplication_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetVersion, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetVersion, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetVersion(::core::mem::transmute(&bstrprop)).into() @@ -228,22 +228,22 @@ impl IAzApplication_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AddPolicyAdministrator, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddPolicyAdministrator, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddPolicyAdministrator(::core::mem::transmute(&bstradmin), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeletePolicyAdministrator, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeletePolicyAdministrator, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeletePolicyAdministrator(::core::mem::transmute(&bstradmin), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn AddPolicyReader, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddPolicyReader, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddPolicyReader(::core::mem::transmute(&bstrreader), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeletePolicyReader, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeletePolicyReader, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeletePolicyReader(::core::mem::transmute(&bstrreader), ::core::mem::transmute(&varreserved)).into() @@ -259,7 +259,7 @@ impl IAzApplication_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn OpenScope, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, ppscope: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn OpenScope, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, ppscope: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OpenScope(::core::mem::transmute(&bstrscopename), ::core::mem::transmute(&varreserved)) { @@ -270,7 +270,7 @@ impl IAzApplication_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateScope, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, ppscope: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateScope, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, ppscope: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateScope(::core::mem::transmute(&bstrscopename), ::core::mem::transmute(&varreserved)) { @@ -281,7 +281,7 @@ impl IAzApplication_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DeleteScope, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteScope, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteScope(::core::mem::transmute(&bstrscopename), ::core::mem::transmute(&varreserved)).into() @@ -297,7 +297,7 @@ impl IAzApplication_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn OpenOperation, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstroperationname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, ppoperation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn OpenOperation, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstroperationname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, ppoperation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OpenOperation(::core::mem::transmute(&bstroperationname), ::core::mem::transmute(&varreserved)) { @@ -308,7 +308,7 @@ impl IAzApplication_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateOperation, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstroperationname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, ppoperation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateOperation, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstroperationname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, ppoperation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateOperation(::core::mem::transmute(&bstroperationname), ::core::mem::transmute(&varreserved)) { @@ -319,7 +319,7 @@ impl IAzApplication_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DeleteOperation, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstroperationname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteOperation, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstroperationname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteOperation(::core::mem::transmute(&bstroperationname), ::core::mem::transmute(&varreserved)).into() @@ -335,7 +335,7 @@ impl IAzApplication_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn OpenTask, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtaskname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, pptask: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn OpenTask, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtaskname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, pptask: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OpenTask(::core::mem::transmute(&bstrtaskname), ::core::mem::transmute(&varreserved)) { @@ -346,7 +346,7 @@ impl IAzApplication_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateTask, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtaskname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, pptask: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateTask, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtaskname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, pptask: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateTask(::core::mem::transmute(&bstrtaskname), ::core::mem::transmute(&varreserved)) { @@ -357,7 +357,7 @@ impl IAzApplication_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DeleteTask, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtaskname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteTask, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtaskname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteTask(::core::mem::transmute(&bstrtaskname), ::core::mem::transmute(&varreserved)).into() @@ -373,7 +373,7 @@ impl IAzApplication_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn OpenApplicationGroup, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn OpenApplicationGroup, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OpenApplicationGroup(::core::mem::transmute(&bstrgroupname), ::core::mem::transmute(&varreserved)) { @@ -384,7 +384,7 @@ impl IAzApplication_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateApplicationGroup, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateApplicationGroup, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateApplicationGroup(::core::mem::transmute(&bstrgroupname), ::core::mem::transmute(&varreserved)) { @@ -395,7 +395,7 @@ impl IAzApplication_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DeleteApplicationGroup, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteApplicationGroup, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteApplicationGroup(::core::mem::transmute(&bstrgroupname), ::core::mem::transmute(&varreserved)).into() @@ -411,7 +411,7 @@ impl IAzApplication_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn OpenRole, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrolename: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, pprole: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn OpenRole, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrolename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, pprole: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OpenRole(::core::mem::transmute(&bstrrolename), ::core::mem::transmute(&varreserved)) { @@ -422,7 +422,7 @@ impl IAzApplication_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateRole, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrolename: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, pprole: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateRole, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrolename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, pprole: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateRole(::core::mem::transmute(&bstrrolename), ::core::mem::transmute(&varreserved)) { @@ -433,7 +433,7 @@ impl IAzApplication_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DeleteRole, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrolename: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteRole, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrolename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteRole(::core::mem::transmute(&bstrrolename), ::core::mem::transmute(&varreserved)).into() @@ -464,7 +464,7 @@ impl IAzApplication_Vtbl { let this = (*this).get_impl(); this.Submit(::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn InitializeClientContextFromName, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, clientname: ::core::mem::ManuallyDrop, domainname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, ppclientcontext: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeClientContextFromName, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, clientname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, domainname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, ppclientcontext: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.InitializeClientContextFromName(::core::mem::transmute(&clientname), ::core::mem::transmute(&domainname), ::core::mem::transmute(&varreserved)) { @@ -486,17 +486,17 @@ impl IAzApplication_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AddDelegatedPolicyUser, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdelegatedpolicyuser: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddDelegatedPolicyUser, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdelegatedpolicyuser: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddDelegatedPolicyUser(::core::mem::transmute(&bstrdelegatedpolicyuser), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeleteDelegatedPolicyUser, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdelegatedpolicyuser: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteDelegatedPolicyUser, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdelegatedpolicyuser: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteDelegatedPolicyUser(::core::mem::transmute(&bstrdelegatedpolicyuser), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn InitializeClientContextFromStringSid, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sidstring: ::core::mem::ManuallyDrop, loptions: i32, varreserved: ::core::mem::ManuallyDrop, ppclientcontext: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeClientContextFromStringSid, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sidstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, loptions: i32, varreserved: ::core::mem::ManuallyDrop, ppclientcontext: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.InitializeClientContextFromStringSid(::core::mem::transmute(&sidstring), ::core::mem::transmute_copy(&loptions), ::core::mem::transmute(&varreserved)) { @@ -529,22 +529,22 @@ impl IAzApplication_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AddPolicyAdministratorName, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddPolicyAdministratorName, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddPolicyAdministratorName(::core::mem::transmute(&bstradmin), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeletePolicyAdministratorName, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeletePolicyAdministratorName, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeletePolicyAdministratorName(::core::mem::transmute(&bstradmin), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn AddPolicyReaderName, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddPolicyReaderName, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddPolicyReaderName(::core::mem::transmute(&bstrreader), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeletePolicyReaderName, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeletePolicyReaderName, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeletePolicyReaderName(::core::mem::transmute(&bstrreader), ::core::mem::transmute(&varreserved)).into() @@ -560,12 +560,12 @@ impl IAzApplication_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AddDelegatedPolicyUserName, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdelegatedpolicyuser: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddDelegatedPolicyUserName, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdelegatedpolicyuser: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddDelegatedPolicyUserName(::core::mem::transmute(&bstrdelegatedpolicyuser), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeleteDelegatedPolicyUserName, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdelegatedpolicyuser: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteDelegatedPolicyUserName, Impl: IAzApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdelegatedpolicyuser: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteDelegatedPolicyUserName(::core::mem::transmute(&bstrdelegatedpolicyuser), ::core::mem::transmute(&varreserved)).into() @@ -642,7 +642,7 @@ impl IAzApplication_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IAzApplication2_Impl: Sized + super::super::System::Com::IDispatch_Impl + IAzApplication_Impl { fn InitializeClientContextFromToken2(&self, ultokenhandlelowpart: u32, ultokenhandlehighpart: u32, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn InitializeClientContext2(&self, identifyingstring: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn InitializeClientContext2(&self, identifyingstring: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IAzApplication2 {} @@ -660,7 +660,7 @@ impl IAzApplication2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn InitializeClientContext2, Impl: IAzApplication2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, identifyingstring: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, ppclientcontext: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeClientContext2, Impl: IAzApplication2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, identifyingstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, ppclientcontext: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.InitializeClientContext2(::core::mem::transmute(&identifyingstring), ::core::mem::transmute(&varreserved)) { @@ -683,18 +683,18 @@ impl IAzApplication2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IAzApplication3_Impl: Sized + super::super::System::Com::IDispatch_Impl + IAzApplication_Impl + IAzApplication2_Impl { - fn ScopeExists(&self, bstrscopename: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn OpenScope2(&self, bstrscopename: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn CreateScope2(&self, bstrscopename: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn DeleteScope2(&self, bstrscopename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ScopeExists(&self, bstrscopename: &::windows::core::BSTR) -> ::windows::core::Result; + fn OpenScope2(&self, bstrscopename: &::windows::core::BSTR) -> ::windows::core::Result; + fn CreateScope2(&self, bstrscopename: &::windows::core::BSTR) -> ::windows::core::Result; + fn DeleteScope2(&self, bstrscopename: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn RoleDefinitions(&self) -> ::windows::core::Result; - fn CreateRoleDefinition(&self, bstrroledefinitionname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn OpenRoleDefinition(&self, bstrroledefinitionname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn DeleteRoleDefinition(&self, bstrroledefinitionname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn CreateRoleDefinition(&self, bstrroledefinitionname: &::windows::core::BSTR) -> ::windows::core::Result; + fn OpenRoleDefinition(&self, bstrroledefinitionname: &::windows::core::BSTR) -> ::windows::core::Result; + fn DeleteRoleDefinition(&self, bstrroledefinitionname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn RoleAssignments(&self) -> ::windows::core::Result; - fn CreateRoleAssignment(&self, bstrroleassignmentname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn OpenRoleAssignment(&self, bstrroleassignmentname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn DeleteRoleAssignment(&self, bstrroleassignmentname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn CreateRoleAssignment(&self, bstrroleassignmentname: &::windows::core::BSTR) -> ::windows::core::Result; + fn OpenRoleAssignment(&self, bstrroleassignmentname: &::windows::core::BSTR) -> ::windows::core::Result; + fn DeleteRoleAssignment(&self, bstrroleassignmentname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn BizRulesEnabled(&self) -> ::windows::core::Result; fn SetBizRulesEnabled(&self, benabled: i16) -> ::windows::core::Result<()>; } @@ -703,7 +703,7 @@ impl ::windows::core::RuntimeName for IAzApplication3 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IAzApplication3_Vtbl { pub const fn new, Impl: IAzApplication3_Impl, const OFFSET: isize>() -> IAzApplication3_Vtbl { - unsafe extern "system" fn ScopeExists, Impl: IAzApplication3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop, pbexist: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn ScopeExists, Impl: IAzApplication3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbexist: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ScopeExists(::core::mem::transmute(&bstrscopename)) { @@ -714,7 +714,7 @@ impl IAzApplication3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn OpenScope2, Impl: IAzApplication3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop, ppscope2: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn OpenScope2, Impl: IAzApplication3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppscope2: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OpenScope2(::core::mem::transmute(&bstrscopename)) { @@ -725,7 +725,7 @@ impl IAzApplication3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateScope2, Impl: IAzApplication3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop, ppscope2: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateScope2, Impl: IAzApplication3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppscope2: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateScope2(::core::mem::transmute(&bstrscopename)) { @@ -736,7 +736,7 @@ impl IAzApplication3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DeleteScope2, Impl: IAzApplication3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteScope2, Impl: IAzApplication3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteScope2(::core::mem::transmute(&bstrscopename)).into() @@ -752,7 +752,7 @@ impl IAzApplication3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateRoleDefinition, Impl: IAzApplication3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrroledefinitionname: ::core::mem::ManuallyDrop, pproledefinitions: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateRoleDefinition, Impl: IAzApplication3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrroledefinitionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pproledefinitions: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateRoleDefinition(::core::mem::transmute(&bstrroledefinitionname)) { @@ -763,7 +763,7 @@ impl IAzApplication3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn OpenRoleDefinition, Impl: IAzApplication3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrroledefinitionname: ::core::mem::ManuallyDrop, pproledefinitions: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn OpenRoleDefinition, Impl: IAzApplication3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrroledefinitionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pproledefinitions: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OpenRoleDefinition(::core::mem::transmute(&bstrroledefinitionname)) { @@ -774,7 +774,7 @@ impl IAzApplication3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DeleteRoleDefinition, Impl: IAzApplication3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrroledefinitionname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteRoleDefinition, Impl: IAzApplication3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrroledefinitionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteRoleDefinition(::core::mem::transmute(&bstrroledefinitionname)).into() @@ -790,7 +790,7 @@ impl IAzApplication3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateRoleAssignment, Impl: IAzApplication3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrroleassignmentname: ::core::mem::ManuallyDrop, pproleassignment: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateRoleAssignment, Impl: IAzApplication3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrroleassignmentname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pproleassignment: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateRoleAssignment(::core::mem::transmute(&bstrroleassignmentname)) { @@ -801,7 +801,7 @@ impl IAzApplication3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn OpenRoleAssignment, Impl: IAzApplication3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrroleassignmentname: ::core::mem::ManuallyDrop, pproleassignment: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn OpenRoleAssignment, Impl: IAzApplication3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrroleassignmentname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pproleassignment: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OpenRoleAssignment(::core::mem::transmute(&bstrroleassignmentname)) { @@ -812,7 +812,7 @@ impl IAzApplication3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DeleteRoleAssignment, Impl: IAzApplication3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrroleassignmentname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteRoleAssignment, Impl: IAzApplication3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrroleassignmentname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteRoleAssignment(::core::mem::transmute(&bstrroleassignmentname)).into() @@ -857,36 +857,36 @@ impl IAzApplication3_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IAzApplicationGroup_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; - fn SetName(&self, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Type(&self) -> ::windows::core::Result; fn SetType(&self, lprop: i32) -> ::windows::core::Result<()>; - fn LdapQuery(&self) -> ::windows::core::Result; - fn SetLdapQuery(&self, bstrprop: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn LdapQuery(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetLdapQuery(&self, bstrprop: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn AppMembers(&self) -> ::windows::core::Result; fn AppNonMembers(&self) -> ::windows::core::Result; fn Members(&self) -> ::windows::core::Result; fn NonMembers(&self) -> ::windows::core::Result; - fn Description(&self) -> ::windows::core::Result; - fn SetDescription(&self, bstrdescription: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn AddAppMember(&self, bstrprop: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn DeleteAppMember(&self, bstrprop: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn AddAppNonMember(&self, bstrprop: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn DeleteAppNonMember(&self, bstrprop: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn AddMember(&self, bstrprop: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn DeleteMember(&self, bstrprop: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn AddNonMember(&self, bstrprop: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn DeleteNonMember(&self, bstrprop: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn AddAppMember(&self, bstrprop: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn DeleteAppMember(&self, bstrprop: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn AddAppNonMember(&self, bstrprop: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn DeleteAppNonMember(&self, bstrprop: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn AddMember(&self, bstrprop: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn DeleteMember(&self, bstrprop: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn AddNonMember(&self, bstrprop: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn DeleteNonMember(&self, bstrprop: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn Writable(&self) -> ::windows::core::Result; fn GetProperty(&self, lpropid: i32, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; fn SetProperty(&self, lpropid: i32, varprop: &super::super::System::Com::VARIANT, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn AddPropertyItem(&self, lpropid: i32, varprop: &super::super::System::Com::VARIANT, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn DeletePropertyItem(&self, lpropid: i32, varprop: &super::super::System::Com::VARIANT, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn Submit(&self, lflags: i32, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn AddMemberName(&self, bstrprop: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn DeleteMemberName(&self, bstrprop: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn AddNonMemberName(&self, bstrprop: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn DeleteNonMemberName(&self, bstrprop: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn AddMemberName(&self, bstrprop: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn DeleteMemberName(&self, bstrprop: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn AddNonMemberName(&self, bstrprop: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn DeleteNonMemberName(&self, bstrprop: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn MembersName(&self) -> ::windows::core::Result; fn NonMembersName(&self) -> ::windows::core::Result; } @@ -895,7 +895,7 @@ impl ::windows::core::RuntimeName for IAzApplicationGroup {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IAzApplicationGroup_Vtbl { pub const fn new, Impl: IAzApplicationGroup_Impl, const OFFSET: isize>() -> IAzApplicationGroup_Vtbl { - unsafe extern "system" fn Name, Impl: IAzApplicationGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IAzApplicationGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -906,7 +906,7 @@ impl IAzApplicationGroup_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetName, Impl: IAzApplicationGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: IAzApplicationGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&bstrname)).into() @@ -927,7 +927,7 @@ impl IAzApplicationGroup_Vtbl { let this = (*this).get_impl(); this.SetType(::core::mem::transmute_copy(&lprop)).into() } - unsafe extern "system" fn LdapQuery, Impl: IAzApplicationGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprop: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LdapQuery, Impl: IAzApplicationGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprop: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LdapQuery() { @@ -938,7 +938,7 @@ impl IAzApplicationGroup_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetLdapQuery, Impl: IAzApplicationGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetLdapQuery, Impl: IAzApplicationGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetLdapQuery(::core::mem::transmute(&bstrprop)).into() @@ -987,7 +987,7 @@ impl IAzApplicationGroup_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Description, Impl: IAzApplicationGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IAzApplicationGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -998,47 +998,47 @@ impl IAzApplicationGroup_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription, Impl: IAzApplicationGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDescription, Impl: IAzApplicationGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDescription(::core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn AddAppMember, Impl: IAzApplicationGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddAppMember, Impl: IAzApplicationGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddAppMember(::core::mem::transmute(&bstrprop), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeleteAppMember, Impl: IAzApplicationGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteAppMember, Impl: IAzApplicationGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteAppMember(::core::mem::transmute(&bstrprop), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn AddAppNonMember, Impl: IAzApplicationGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddAppNonMember, Impl: IAzApplicationGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddAppNonMember(::core::mem::transmute(&bstrprop), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeleteAppNonMember, Impl: IAzApplicationGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteAppNonMember, Impl: IAzApplicationGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteAppNonMember(::core::mem::transmute(&bstrprop), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn AddMember, Impl: IAzApplicationGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddMember, Impl: IAzApplicationGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddMember(::core::mem::transmute(&bstrprop), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeleteMember, Impl: IAzApplicationGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteMember, Impl: IAzApplicationGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteMember(::core::mem::transmute(&bstrprop), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn AddNonMember, Impl: IAzApplicationGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddNonMember, Impl: IAzApplicationGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddNonMember(::core::mem::transmute(&bstrprop), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeleteNonMember, Impl: IAzApplicationGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteNonMember, Impl: IAzApplicationGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteNonMember(::core::mem::transmute(&bstrprop), ::core::mem::transmute(&varreserved)).into() @@ -1085,22 +1085,22 @@ impl IAzApplicationGroup_Vtbl { let this = (*this).get_impl(); this.Submit(::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn AddMemberName, Impl: IAzApplicationGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddMemberName, Impl: IAzApplicationGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddMemberName(::core::mem::transmute(&bstrprop), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeleteMemberName, Impl: IAzApplicationGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteMemberName, Impl: IAzApplicationGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteMemberName(::core::mem::transmute(&bstrprop), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn AddNonMemberName, Impl: IAzApplicationGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddNonMemberName, Impl: IAzApplicationGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddNonMemberName(::core::mem::transmute(&bstrprop), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeleteNonMemberName, Impl: IAzApplicationGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteNonMemberName, Impl: IAzApplicationGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteNonMemberName(::core::mem::transmute(&bstrprop), ::core::mem::transmute(&varreserved)).into() @@ -1169,20 +1169,20 @@ impl IAzApplicationGroup_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IAzApplicationGroup2_Impl: Sized + super::super::System::Com::IDispatch_Impl + IAzApplicationGroup_Impl { - fn BizRule(&self) -> ::windows::core::Result; - fn SetBizRule(&self, bstrprop: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn BizRuleLanguage(&self) -> ::windows::core::Result; - fn SetBizRuleLanguage(&self, bstrprop: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn BizRuleImportedPath(&self) -> ::windows::core::Result; - fn SetBizRuleImportedPath(&self, bstrprop: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn RoleAssignments(&self, bstrscopename: &super::super::Foundation::BSTR, brecursive: i16) -> ::windows::core::Result; + fn BizRule(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetBizRule(&self, bstrprop: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn BizRuleLanguage(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetBizRuleLanguage(&self, bstrprop: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn BizRuleImportedPath(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetBizRuleImportedPath(&self, bstrprop: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn RoleAssignments(&self, bstrscopename: &::windows::core::BSTR, brecursive: i16) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IAzApplicationGroup2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IAzApplicationGroup2_Vtbl { pub const fn new, Impl: IAzApplicationGroup2_Impl, const OFFSET: isize>() -> IAzApplicationGroup2_Vtbl { - unsafe extern "system" fn BizRule, Impl: IAzApplicationGroup2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprop: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn BizRule, Impl: IAzApplicationGroup2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprop: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BizRule() { @@ -1193,12 +1193,12 @@ impl IAzApplicationGroup2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetBizRule, Impl: IAzApplicationGroup2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetBizRule, Impl: IAzApplicationGroup2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetBizRule(::core::mem::transmute(&bstrprop)).into() } - unsafe extern "system" fn BizRuleLanguage, Impl: IAzApplicationGroup2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprop: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn BizRuleLanguage, Impl: IAzApplicationGroup2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprop: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BizRuleLanguage() { @@ -1209,12 +1209,12 @@ impl IAzApplicationGroup2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetBizRuleLanguage, Impl: IAzApplicationGroup2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetBizRuleLanguage, Impl: IAzApplicationGroup2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetBizRuleLanguage(::core::mem::transmute(&bstrprop)).into() } - unsafe extern "system" fn BizRuleImportedPath, Impl: IAzApplicationGroup2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprop: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn BizRuleImportedPath, Impl: IAzApplicationGroup2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprop: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BizRuleImportedPath() { @@ -1225,12 +1225,12 @@ impl IAzApplicationGroup2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetBizRuleImportedPath, Impl: IAzApplicationGroup2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetBizRuleImportedPath, Impl: IAzApplicationGroup2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetBizRuleImportedPath(::core::mem::transmute(&bstrprop)).into() } - unsafe extern "system" fn RoleAssignments, Impl: IAzApplicationGroup2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop, brecursive: i16, pproleassignments: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn RoleAssignments, Impl: IAzApplicationGroup2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, brecursive: i16, pproleassignments: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RoleAssignments(::core::mem::transmute(&bstrscopename), ::core::mem::transmute_copy(&brecursive)) { @@ -1368,10 +1368,10 @@ impl IAzApplications_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IAzAuthorizationStore_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Description(&self) -> ::windows::core::Result; - fn SetDescription(&self, bstrdescription: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ApplicationData(&self) -> ::windows::core::Result; - fn SetApplicationData(&self, bstrapplicationdata: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ApplicationData(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetApplicationData(&self, bstrapplicationdata: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn DomainTimeout(&self) -> ::windows::core::Result; fn SetDomainTimeout(&self, lprop: i32) -> ::windows::core::Result<()>; fn ScriptEngineTimeout(&self) -> ::windows::core::Result; @@ -1387,45 +1387,45 @@ pub trait IAzAuthorizationStore_Impl: Sized + super::super::System::Com::IDispat fn DeletePropertyItem(&self, lpropid: i32, varprop: &super::super::System::Com::VARIANT, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn PolicyAdministrators(&self) -> ::windows::core::Result; fn PolicyReaders(&self) -> ::windows::core::Result; - fn AddPolicyAdministrator(&self, bstradmin: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn DeletePolicyAdministrator(&self, bstradmin: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn AddPolicyReader(&self, bstrreader: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn DeletePolicyReader(&self, bstrreader: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn Initialize(&self, lflags: AZ_PROP_CONSTANTS, bstrpolicyurl: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn AddPolicyAdministrator(&self, bstradmin: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn DeletePolicyAdministrator(&self, bstradmin: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn AddPolicyReader(&self, bstrreader: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn DeletePolicyReader(&self, bstrreader: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn Initialize(&self, lflags: AZ_PROP_CONSTANTS, bstrpolicyurl: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn UpdateCache(&self, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn Delete(&self, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn Applications(&self) -> ::windows::core::Result; - fn OpenApplication(&self, bstrapplicationname: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn CreateApplication(&self, bstrapplicationname: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn DeleteApplication(&self, bstrapplicationname: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn OpenApplication(&self, bstrapplicationname: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn CreateApplication(&self, bstrapplicationname: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn DeleteApplication(&self, bstrapplicationname: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn ApplicationGroups(&self) -> ::windows::core::Result; - fn CreateApplicationGroup(&self, bstrgroupname: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn OpenApplicationGroup(&self, bstrgroupname: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn DeleteApplicationGroup(&self, bstrgroupname: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn CreateApplicationGroup(&self, bstrgroupname: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn OpenApplicationGroup(&self, bstrgroupname: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn DeleteApplicationGroup(&self, bstrgroupname: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn Submit(&self, lflags: i32, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn DelegatedPolicyUsers(&self) -> ::windows::core::Result; - fn AddDelegatedPolicyUser(&self, bstrdelegatedpolicyuser: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn DeleteDelegatedPolicyUser(&self, bstrdelegatedpolicyuser: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn TargetMachine(&self) -> ::windows::core::Result; + fn AddDelegatedPolicyUser(&self, bstrdelegatedpolicyuser: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn DeleteDelegatedPolicyUser(&self, bstrdelegatedpolicyuser: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn TargetMachine(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn ApplyStoreSacl(&self) -> ::windows::core::Result; fn SetApplyStoreSacl(&self, bapplystoresacl: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn PolicyAdministratorsName(&self) -> ::windows::core::Result; fn PolicyReadersName(&self) -> ::windows::core::Result; - fn AddPolicyAdministratorName(&self, bstradmin: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn DeletePolicyAdministratorName(&self, bstradmin: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn AddPolicyReaderName(&self, bstrreader: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn DeletePolicyReaderName(&self, bstrreader: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn AddPolicyAdministratorName(&self, bstradmin: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn DeletePolicyAdministratorName(&self, bstradmin: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn AddPolicyReaderName(&self, bstrreader: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn DeletePolicyReaderName(&self, bstrreader: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn DelegatedPolicyUsersName(&self) -> ::windows::core::Result; - fn AddDelegatedPolicyUserName(&self, bstrdelegatedpolicyuser: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn DeleteDelegatedPolicyUserName(&self, bstrdelegatedpolicyuser: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn CloseApplication(&self, bstrapplicationname: &super::super::Foundation::BSTR, lflag: i32) -> ::windows::core::Result<()>; + fn AddDelegatedPolicyUserName(&self, bstrdelegatedpolicyuser: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn DeleteDelegatedPolicyUserName(&self, bstrdelegatedpolicyuser: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn CloseApplication(&self, bstrapplicationname: &::windows::core::BSTR, lflag: i32) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IAzAuthorizationStore {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IAzAuthorizationStore_Vtbl { pub const fn new, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>() -> IAzAuthorizationStore_Vtbl { - unsafe extern "system" fn Description, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -1436,12 +1436,12 @@ impl IAzAuthorizationStore_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDescription, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDescription(::core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn ApplicationData, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrapplicationdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ApplicationData, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrapplicationdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ApplicationData() { @@ -1452,7 +1452,7 @@ impl IAzAuthorizationStore_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetApplicationData, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationdata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetApplicationData, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetApplicationData(::core::mem::transmute(&bstrapplicationdata)).into() @@ -1580,27 +1580,27 @@ impl IAzAuthorizationStore_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AddPolicyAdministrator, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddPolicyAdministrator, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddPolicyAdministrator(::core::mem::transmute(&bstradmin), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeletePolicyAdministrator, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeletePolicyAdministrator, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeletePolicyAdministrator(::core::mem::transmute(&bstradmin), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn AddPolicyReader, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddPolicyReader, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddPolicyReader(::core::mem::transmute(&bstrreader), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeletePolicyReader, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeletePolicyReader, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeletePolicyReader(::core::mem::transmute(&bstrreader), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn Initialize, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: AZ_PROP_CONSTANTS, bstrpolicyurl: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Initialize, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: AZ_PROP_CONSTANTS, bstrpolicyurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Initialize(::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&bstrpolicyurl), ::core::mem::transmute(&varreserved)).into() @@ -1626,7 +1626,7 @@ impl IAzAuthorizationStore_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn OpenApplication, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, ppapplication: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn OpenApplication, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, ppapplication: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OpenApplication(::core::mem::transmute(&bstrapplicationname), ::core::mem::transmute(&varreserved)) { @@ -1637,7 +1637,7 @@ impl IAzAuthorizationStore_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateApplication, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, ppapplication: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateApplication, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, ppapplication: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateApplication(::core::mem::transmute(&bstrapplicationname), ::core::mem::transmute(&varreserved)) { @@ -1648,7 +1648,7 @@ impl IAzAuthorizationStore_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DeleteApplication, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteApplication, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteApplication(::core::mem::transmute(&bstrapplicationname), ::core::mem::transmute(&varreserved)).into() @@ -1664,7 +1664,7 @@ impl IAzAuthorizationStore_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateApplicationGroup, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateApplicationGroup, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateApplicationGroup(::core::mem::transmute(&bstrgroupname), ::core::mem::transmute(&varreserved)) { @@ -1675,7 +1675,7 @@ impl IAzAuthorizationStore_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn OpenApplicationGroup, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn OpenApplicationGroup, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OpenApplicationGroup(::core::mem::transmute(&bstrgroupname), ::core::mem::transmute(&varreserved)) { @@ -1686,7 +1686,7 @@ impl IAzAuthorizationStore_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DeleteApplicationGroup, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteApplicationGroup, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteApplicationGroup(::core::mem::transmute(&bstrgroupname), ::core::mem::transmute(&varreserved)).into() @@ -1707,17 +1707,17 @@ impl IAzAuthorizationStore_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AddDelegatedPolicyUser, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdelegatedpolicyuser: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddDelegatedPolicyUser, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdelegatedpolicyuser: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddDelegatedPolicyUser(::core::mem::transmute(&bstrdelegatedpolicyuser), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeleteDelegatedPolicyUser, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdelegatedpolicyuser: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteDelegatedPolicyUser, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdelegatedpolicyuser: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteDelegatedPolicyUser(::core::mem::transmute(&bstrdelegatedpolicyuser), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn TargetMachine, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtargetmachine: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TargetMachine, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtargetmachine: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TargetMachine() { @@ -1766,22 +1766,22 @@ impl IAzAuthorizationStore_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AddPolicyAdministratorName, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddPolicyAdministratorName, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddPolicyAdministratorName(::core::mem::transmute(&bstradmin), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeletePolicyAdministratorName, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeletePolicyAdministratorName, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeletePolicyAdministratorName(::core::mem::transmute(&bstradmin), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn AddPolicyReaderName, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddPolicyReaderName, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddPolicyReaderName(::core::mem::transmute(&bstrreader), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeletePolicyReaderName, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeletePolicyReaderName, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeletePolicyReaderName(::core::mem::transmute(&bstrreader), ::core::mem::transmute(&varreserved)).into() @@ -1797,17 +1797,17 @@ impl IAzAuthorizationStore_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AddDelegatedPolicyUserName, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdelegatedpolicyuser: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddDelegatedPolicyUserName, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdelegatedpolicyuser: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddDelegatedPolicyUserName(::core::mem::transmute(&bstrdelegatedpolicyuser), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeleteDelegatedPolicyUserName, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdelegatedpolicyuser: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteDelegatedPolicyUserName, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdelegatedpolicyuser: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteDelegatedPolicyUserName(::core::mem::transmute(&bstrdelegatedpolicyuser), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn CloseApplication, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationname: ::core::mem::ManuallyDrop, lflag: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn CloseApplication, Impl: IAzAuthorizationStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflag: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CloseApplication(::core::mem::transmute(&bstrapplicationname), ::core::mem::transmute_copy(&lflag)).into() @@ -1873,15 +1873,15 @@ impl IAzAuthorizationStore_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IAzAuthorizationStore2_Impl: Sized + super::super::System::Com::IDispatch_Impl + IAzAuthorizationStore_Impl { - fn OpenApplication2(&self, bstrapplicationname: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn CreateApplication2(&self, bstrapplicationname: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn OpenApplication2(&self, bstrapplicationname: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn CreateApplication2(&self, bstrapplicationname: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IAzAuthorizationStore2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IAzAuthorizationStore2_Vtbl { pub const fn new, Impl: IAzAuthorizationStore2_Impl, const OFFSET: isize>() -> IAzAuthorizationStore2_Vtbl { - unsafe extern "system" fn OpenApplication2, Impl: IAzAuthorizationStore2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, ppapplication: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn OpenApplication2, Impl: IAzAuthorizationStore2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, ppapplication: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OpenApplication2(::core::mem::transmute(&bstrapplicationname), ::core::mem::transmute(&varreserved)) { @@ -1892,7 +1892,7 @@ impl IAzAuthorizationStore2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateApplication2, Impl: IAzAuthorizationStore2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, ppapplication: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateApplication2, Impl: IAzAuthorizationStore2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, ppapplication: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateApplication2(::core::mem::transmute(&bstrapplicationname), ::core::mem::transmute(&varreserved)) { @@ -1985,9 +1985,9 @@ impl IAzAuthorizationStore3_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IAzBizRuleContext_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn SetBusinessRuleResult(&self, bresult: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; - fn SetBusinessRuleString(&self, bstrbusinessrulestring: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn BusinessRuleString(&self) -> ::windows::core::Result; - fn GetParameter(&self, bstrparametername: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn SetBusinessRuleString(&self, bstrbusinessrulestring: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn BusinessRuleString(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetParameter(&self, bstrparametername: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IAzBizRuleContext {} @@ -1999,12 +1999,12 @@ impl IAzBizRuleContext_Vtbl { let this = (*this).get_impl(); this.SetBusinessRuleResult(::core::mem::transmute_copy(&bresult)).into() } - unsafe extern "system" fn SetBusinessRuleString, Impl: IAzBizRuleContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrbusinessrulestring: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetBusinessRuleString, Impl: IAzBizRuleContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrbusinessrulestring: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetBusinessRuleString(::core::mem::transmute(&bstrbusinessrulestring)).into() } - unsafe extern "system" fn BusinessRuleString, Impl: IAzBizRuleContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrbusinessrulestring: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn BusinessRuleString, Impl: IAzBizRuleContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrbusinessrulestring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BusinessRuleString() { @@ -2015,7 +2015,7 @@ impl IAzBizRuleContext_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetParameter, Impl: IAzBizRuleContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrparametername: ::core::mem::ManuallyDrop, pvarparametervalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetParameter, Impl: IAzBizRuleContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrparametername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarparametervalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetParameter(::core::mem::transmute(&bstrparametername)) { @@ -2040,10 +2040,10 @@ impl IAzBizRuleContext_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IAzBizRuleInterfaces_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn AddInterface(&self, bstrinterfacename: &super::super::Foundation::BSTR, linterfaceflag: i32, varinterface: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn AddInterface(&self, bstrinterfacename: &::windows::core::BSTR, linterfaceflag: i32, varinterface: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn AddInterfaces(&self, varinterfacenames: &super::super::System::Com::VARIANT, varinterfaceflags: &super::super::System::Com::VARIANT, varinterfaces: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn GetInterfaceValue(&self, bstrinterfacename: &super::super::Foundation::BSTR, linterfaceflag: *mut i32, varinterface: *mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn Remove(&self, bstrinterfacename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetInterfaceValue(&self, bstrinterfacename: &::windows::core::BSTR, linterfaceflag: *mut i32, varinterface: *mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn Remove(&self, bstrinterfacename: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn RemoveAll(&self) -> ::windows::core::Result<()>; fn Count(&self) -> ::windows::core::Result; } @@ -2052,7 +2052,7 @@ impl ::windows::core::RuntimeName for IAzBizRuleInterfaces {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IAzBizRuleInterfaces_Vtbl { pub const fn new, Impl: IAzBizRuleInterfaces_Impl, const OFFSET: isize>() -> IAzBizRuleInterfaces_Vtbl { - unsafe extern "system" fn AddInterface, Impl: IAzBizRuleInterfaces_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrinterfacename: ::core::mem::ManuallyDrop, linterfaceflag: i32, varinterface: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddInterface, Impl: IAzBizRuleInterfaces_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrinterfacename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, linterfaceflag: i32, varinterface: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddInterface(::core::mem::transmute(&bstrinterfacename), ::core::mem::transmute_copy(&linterfaceflag), ::core::mem::transmute(&varinterface)).into() @@ -2062,12 +2062,12 @@ impl IAzBizRuleInterfaces_Vtbl { let this = (*this).get_impl(); this.AddInterfaces(::core::mem::transmute(&varinterfacenames), ::core::mem::transmute(&varinterfaceflags), ::core::mem::transmute(&varinterfaces)).into() } - unsafe extern "system" fn GetInterfaceValue, Impl: IAzBizRuleInterfaces_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrinterfacename: ::core::mem::ManuallyDrop, linterfaceflag: *mut i32, varinterface: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetInterfaceValue, Impl: IAzBizRuleInterfaces_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrinterfacename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, linterfaceflag: *mut i32, varinterface: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetInterfaceValue(::core::mem::transmute(&bstrinterfacename), ::core::mem::transmute_copy(&linterfaceflag), ::core::mem::transmute_copy(&varinterface)).into() } - unsafe extern "system" fn Remove, Impl: IAzBizRuleInterfaces_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrinterfacename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Remove, Impl: IAzBizRuleInterfaces_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrinterfacename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Remove(::core::mem::transmute(&bstrinterfacename)).into() @@ -2104,10 +2104,10 @@ impl IAzBizRuleInterfaces_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IAzBizRuleParameters_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn AddParameter(&self, bstrparametername: &super::super::Foundation::BSTR, varparametervalue: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn AddParameter(&self, bstrparametername: &::windows::core::BSTR, varparametervalue: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn AddParameters(&self, varparameternames: &super::super::System::Com::VARIANT, varparametervalues: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn GetParameterValue(&self, bstrparametername: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn Remove(&self, varparametername: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetParameterValue(&self, bstrparametername: &::windows::core::BSTR) -> ::windows::core::Result; + fn Remove(&self, varparametername: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn RemoveAll(&self) -> ::windows::core::Result<()>; fn Count(&self) -> ::windows::core::Result; } @@ -2116,7 +2116,7 @@ impl ::windows::core::RuntimeName for IAzBizRuleParameters {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IAzBizRuleParameters_Vtbl { pub const fn new, Impl: IAzBizRuleParameters_Impl, const OFFSET: isize>() -> IAzBizRuleParameters_Vtbl { - unsafe extern "system" fn AddParameter, Impl: IAzBizRuleParameters_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrparametername: ::core::mem::ManuallyDrop, varparametervalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddParameter, Impl: IAzBizRuleParameters_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrparametername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varparametervalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddParameter(::core::mem::transmute(&bstrparametername), ::core::mem::transmute(&varparametervalue)).into() @@ -2126,7 +2126,7 @@ impl IAzBizRuleParameters_Vtbl { let this = (*this).get_impl(); this.AddParameters(::core::mem::transmute(&varparameternames), ::core::mem::transmute(&varparametervalues)).into() } - unsafe extern "system" fn GetParameterValue, Impl: IAzBizRuleParameters_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrparametername: ::core::mem::ManuallyDrop, pvarparametervalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetParameterValue, Impl: IAzBizRuleParameters_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrparametername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarparametervalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetParameterValue(::core::mem::transmute(&bstrparametername)) { @@ -2137,7 +2137,7 @@ impl IAzBizRuleParameters_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Remove, Impl: IAzBizRuleParameters_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, varparametername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Remove, Impl: IAzBizRuleParameters_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, varparametername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Remove(::core::mem::transmute(&varparametername)).into() @@ -2174,19 +2174,19 @@ impl IAzBizRuleParameters_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IAzClientContext_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn AccessCheck(&self, bstrobjectname: &super::super::Foundation::BSTR, varscopenames: &super::super::System::Com::VARIANT, varoperations: &super::super::System::Com::VARIANT, varparameternames: &super::super::System::Com::VARIANT, varparametervalues: &super::super::System::Com::VARIANT, varinterfacenames: &super::super::System::Com::VARIANT, varinterfaceflags: &super::super::System::Com::VARIANT, varinterfaces: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn GetBusinessRuleString(&self) -> ::windows::core::Result; - fn UserDn(&self) -> ::windows::core::Result; - fn UserSamCompat(&self) -> ::windows::core::Result; - fn UserDisplay(&self) -> ::windows::core::Result; - fn UserGuid(&self) -> ::windows::core::Result; - fn UserCanonical(&self) -> ::windows::core::Result; - fn UserUpn(&self) -> ::windows::core::Result; - fn UserDnsSamCompat(&self) -> ::windows::core::Result; + fn AccessCheck(&self, bstrobjectname: &::windows::core::BSTR, varscopenames: &super::super::System::Com::VARIANT, varoperations: &super::super::System::Com::VARIANT, varparameternames: &super::super::System::Com::VARIANT, varparametervalues: &super::super::System::Com::VARIANT, varinterfacenames: &super::super::System::Com::VARIANT, varinterfaceflags: &super::super::System::Com::VARIANT, varinterfaces: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn GetBusinessRuleString(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn UserDn(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn UserSamCompat(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn UserDisplay(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn UserGuid(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn UserCanonical(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn UserUpn(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn UserDnsSamCompat(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetProperty(&self, lpropid: i32, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn GetRoles(&self, bstrscopename: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn RoleForAccessCheck(&self) -> ::windows::core::Result; - fn SetRoleForAccessCheck(&self, bstrprop: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetRoles(&self, bstrscopename: &::windows::core::BSTR) -> ::windows::core::Result; + fn RoleForAccessCheck(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetRoleForAccessCheck(&self, bstrprop: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IAzClientContext {} @@ -2195,7 +2195,7 @@ impl IAzClientContext_Vtbl { pub const fn new, Impl: IAzClientContext_Impl, const OFFSET: isize>() -> IAzClientContext_Vtbl { unsafe extern "system" fn AccessCheck, Impl: IAzClientContext_Impl, const OFFSET: isize>( this: *mut ::core::ffi::c_void, - bstrobjectname: ::core::mem::ManuallyDrop, + bstrobjectname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varscopenames: ::core::mem::ManuallyDrop, varoperations: ::core::mem::ManuallyDrop, varparameternames: ::core::mem::ManuallyDrop, @@ -2215,7 +2215,7 @@ impl IAzClientContext_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetBusinessRuleString, Impl: IAzClientContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrbusinessrulestring: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetBusinessRuleString, Impl: IAzClientContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrbusinessrulestring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetBusinessRuleString() { @@ -2226,7 +2226,7 @@ impl IAzClientContext_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn UserDn, Impl: IAzClientContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprop: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UserDn, Impl: IAzClientContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprop: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UserDn() { @@ -2237,7 +2237,7 @@ impl IAzClientContext_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn UserSamCompat, Impl: IAzClientContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprop: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UserSamCompat, Impl: IAzClientContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprop: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UserSamCompat() { @@ -2248,7 +2248,7 @@ impl IAzClientContext_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn UserDisplay, Impl: IAzClientContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprop: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UserDisplay, Impl: IAzClientContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprop: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UserDisplay() { @@ -2259,7 +2259,7 @@ impl IAzClientContext_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn UserGuid, Impl: IAzClientContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprop: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UserGuid, Impl: IAzClientContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprop: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UserGuid() { @@ -2270,7 +2270,7 @@ impl IAzClientContext_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn UserCanonical, Impl: IAzClientContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprop: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UserCanonical, Impl: IAzClientContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprop: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UserCanonical() { @@ -2281,7 +2281,7 @@ impl IAzClientContext_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn UserUpn, Impl: IAzClientContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprop: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UserUpn, Impl: IAzClientContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprop: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UserUpn() { @@ -2292,7 +2292,7 @@ impl IAzClientContext_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn UserDnsSamCompat, Impl: IAzClientContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprop: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UserDnsSamCompat, Impl: IAzClientContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprop: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UserDnsSamCompat() { @@ -2314,7 +2314,7 @@ impl IAzClientContext_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetRoles, Impl: IAzClientContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop, pvarrolenames: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetRoles, Impl: IAzClientContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarrolenames: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetRoles(::core::mem::transmute(&bstrscopename)) { @@ -2325,7 +2325,7 @@ impl IAzClientContext_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RoleForAccessCheck, Impl: IAzClientContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprop: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RoleForAccessCheck, Impl: IAzClientContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprop: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RoleForAccessCheck() { @@ -2336,7 +2336,7 @@ impl IAzClientContext_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetRoleForAccessCheck, Impl: IAzClientContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetRoleForAccessCheck, Impl: IAzClientContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetRoleForAccessCheck(::core::mem::transmute(&bstrprop)).into() @@ -2365,11 +2365,11 @@ impl IAzClientContext_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IAzClientContext2_Impl: Sized + super::super::System::Com::IDispatch_Impl + IAzClientContext_Impl { fn GetAssignedScopesPage(&self, loptions: i32, pagesize: i32, pvarcursor: *mut super::super::System::Com::VARIANT, pvarscopenames: *mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn AddRoles(&self, varroles: &super::super::System::Com::VARIANT, bstrscopename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn AddRoles(&self, varroles: &super::super::System::Com::VARIANT, bstrscopename: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn AddApplicationGroups(&self, varapplicationgroups: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn AddStringSids(&self, varstringsids: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn SetLDAPQueryDN(&self, bstrldapquerydn: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn LDAPQueryDN(&self) -> ::windows::core::Result; + fn SetLDAPQueryDN(&self, bstrldapquerydn: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn LDAPQueryDN(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IAzClientContext2 {} @@ -2381,7 +2381,7 @@ impl IAzClientContext2_Vtbl { let this = (*this).get_impl(); this.GetAssignedScopesPage(::core::mem::transmute_copy(&loptions), ::core::mem::transmute_copy(&pagesize), ::core::mem::transmute_copy(&pvarcursor), ::core::mem::transmute_copy(&pvarscopenames)).into() } - unsafe extern "system" fn AddRoles, Impl: IAzClientContext2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, varroles: ::core::mem::ManuallyDrop, bstrscopename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddRoles, Impl: IAzClientContext2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, varroles: ::core::mem::ManuallyDrop, bstrscopename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddRoles(::core::mem::transmute(&varroles), ::core::mem::transmute(&bstrscopename)).into() @@ -2396,12 +2396,12 @@ impl IAzClientContext2_Vtbl { let this = (*this).get_impl(); this.AddStringSids(::core::mem::transmute(&varstringsids)).into() } - unsafe extern "system" fn SetLDAPQueryDN, Impl: IAzClientContext2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrldapquerydn: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetLDAPQueryDN, Impl: IAzClientContext2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrldapquerydn: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetLDAPQueryDN(::core::mem::transmute(&bstrldapquerydn)).into() } - unsafe extern "system" fn LDAPQueryDN, Impl: IAzClientContext2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrldapquerydn: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LDAPQueryDN, Impl: IAzClientContext2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrldapquerydn: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LDAPQueryDN() { @@ -2428,13 +2428,13 @@ impl IAzClientContext2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IAzClientContext3_Impl: Sized + super::super::System::Com::IDispatch_Impl + IAzClientContext_Impl + IAzClientContext2_Impl { - fn AccessCheck2(&self, bstrobjectname: &super::super::Foundation::BSTR, bstrscopename: &super::super::Foundation::BSTR, loperation: i32) -> ::windows::core::Result; - fn IsInRoleAssignment(&self, bstrscopename: &super::super::Foundation::BSTR, bstrrolename: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetOperations(&self, bstrscopename: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetTasks(&self, bstrscopename: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn AccessCheck2(&self, bstrobjectname: &::windows::core::BSTR, bstrscopename: &::windows::core::BSTR, loperation: i32) -> ::windows::core::Result; + fn IsInRoleAssignment(&self, bstrscopename: &::windows::core::BSTR, bstrrolename: &::windows::core::BSTR) -> ::windows::core::Result; + fn GetOperations(&self, bstrscopename: &::windows::core::BSTR) -> ::windows::core::Result; + fn GetTasks(&self, bstrscopename: &::windows::core::BSTR) -> ::windows::core::Result; fn BizRuleParameters(&self) -> ::windows::core::Result; fn BizRuleInterfaces(&self) -> ::windows::core::Result; - fn GetGroups(&self, bstrscopename: &super::super::Foundation::BSTR, uloptions: AZ_PROP_CONSTANTS) -> ::windows::core::Result; + fn GetGroups(&self, bstrscopename: &::windows::core::BSTR, uloptions: AZ_PROP_CONSTANTS) -> ::windows::core::Result; fn Sids(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2442,7 +2442,7 @@ impl ::windows::core::RuntimeName for IAzClientContext3 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IAzClientContext3_Vtbl { pub const fn new, Impl: IAzClientContext3_Impl, const OFFSET: isize>() -> IAzClientContext3_Vtbl { - unsafe extern "system" fn AccessCheck2, Impl: IAzClientContext3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrobjectname: ::core::mem::ManuallyDrop, bstrscopename: ::core::mem::ManuallyDrop, loperation: i32, plresult: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn AccessCheck2, Impl: IAzClientContext3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrobjectname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrscopename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, loperation: i32, plresult: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AccessCheck2(::core::mem::transmute(&bstrobjectname), ::core::mem::transmute(&bstrscopename), ::core::mem::transmute_copy(&loperation)) { @@ -2453,7 +2453,7 @@ impl IAzClientContext3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn IsInRoleAssignment, Impl: IAzClientContext3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop, bstrrolename: ::core::mem::ManuallyDrop, pbisinrole: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn IsInRoleAssignment, Impl: IAzClientContext3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrrolename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbisinrole: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.IsInRoleAssignment(::core::mem::transmute(&bstrscopename), ::core::mem::transmute(&bstrrolename)) { @@ -2464,7 +2464,7 @@ impl IAzClientContext3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetOperations, Impl: IAzClientContext3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop, ppoperationcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetOperations, Impl: IAzClientContext3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppoperationcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetOperations(::core::mem::transmute(&bstrscopename)) { @@ -2475,7 +2475,7 @@ impl IAzClientContext3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetTasks, Impl: IAzClientContext3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop, pptaskcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetTasks, Impl: IAzClientContext3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pptaskcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetTasks(::core::mem::transmute(&bstrscopename)) { @@ -2508,7 +2508,7 @@ impl IAzClientContext3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetGroups, Impl: IAzClientContext3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop, uloptions: AZ_PROP_CONSTANTS, pgrouparray: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetGroups, Impl: IAzClientContext3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, uloptions: AZ_PROP_CONSTANTS, pgrouparray: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetGroups(::core::mem::transmute(&bstrscopename), ::core::mem::transmute_copy(&uloptions)) { @@ -2548,7 +2548,7 @@ impl IAzClientContext3_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IAzNameResolver_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn NameFromSid(&self, bstrsid: &super::super::Foundation::BSTR, psidtype: *mut i32, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn NameFromSid(&self, bstrsid: &::windows::core::BSTR, psidtype: *mut i32, pbstrname: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn NamesFromSids(&self, vsids: &super::super::System::Com::VARIANT, pvsidtypes: *mut super::super::System::Com::VARIANT, pvnames: *mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2556,7 +2556,7 @@ impl ::windows::core::RuntimeName for IAzNameResolver {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IAzNameResolver_Vtbl { pub const fn new, Impl: IAzNameResolver_Impl, const OFFSET: isize>() -> IAzNameResolver_Vtbl { - unsafe extern "system" fn NameFromSid, Impl: IAzNameResolver_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsid: ::core::mem::ManuallyDrop, psidtype: *mut i32, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn NameFromSid, Impl: IAzNameResolver_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, psidtype: *mut i32, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.NameFromSid(::core::mem::transmute(&bstrsid), ::core::mem::transmute_copy(&psidtype), ::core::mem::transmute_copy(&pbstrname)).into() @@ -2578,20 +2578,20 @@ impl IAzNameResolver_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IAzObjectPicker_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn GetPrincipals(&self, hparentwnd: super::super::Foundation::HWND, bstrtitle: &super::super::Foundation::BSTR, pvsidtypes: *mut super::super::System::Com::VARIANT, pvnames: *mut super::super::System::Com::VARIANT, pvsids: *mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn Name(&self) -> ::windows::core::Result; + fn GetPrincipals(&self, hparentwnd: super::super::Foundation::HWND, bstrtitle: &::windows::core::BSTR, pvsidtypes: *mut super::super::System::Com::VARIANT, pvnames: *mut super::super::System::Com::VARIANT, pvsids: *mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IAzObjectPicker {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IAzObjectPicker_Vtbl { pub const fn new, Impl: IAzObjectPicker_Impl, const OFFSET: isize>() -> IAzObjectPicker_Vtbl { - unsafe extern "system" fn GetPrincipals, Impl: IAzObjectPicker_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hparentwnd: super::super::Foundation::HWND, bstrtitle: ::core::mem::ManuallyDrop, pvsidtypes: *mut super::super::System::Com::VARIANT, pvnames: *mut super::super::System::Com::VARIANT, pvsids: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPrincipals, Impl: IAzObjectPicker_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hparentwnd: super::super::Foundation::HWND, bstrtitle: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvsidtypes: *mut super::super::System::Com::VARIANT, pvnames: *mut super::super::System::Com::VARIANT, pvsids: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetPrincipals(::core::mem::transmute_copy(&hparentwnd), ::core::mem::transmute(&bstrtitle), ::core::mem::transmute_copy(&pvsidtypes), ::core::mem::transmute_copy(&pvnames), ::core::mem::transmute_copy(&pvsids)).into() } - unsafe extern "system" fn Name, Impl: IAzObjectPicker_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IAzObjectPicker_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -2614,12 +2614,12 @@ impl IAzObjectPicker_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IAzOperation_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; - fn SetName(&self, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Description(&self) -> ::windows::core::Result; - fn SetDescription(&self, bstrdescription: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ApplicationData(&self) -> ::windows::core::Result; - fn SetApplicationData(&self, bstrapplicationdata: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ApplicationData(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetApplicationData(&self, bstrapplicationdata: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn OperationID(&self) -> ::windows::core::Result; fn SetOperationID(&self, lprop: i32) -> ::windows::core::Result<()>; fn Writable(&self) -> ::windows::core::Result; @@ -2632,7 +2632,7 @@ impl ::windows::core::RuntimeName for IAzOperation {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IAzOperation_Vtbl { pub const fn new, Impl: IAzOperation_Impl, const OFFSET: isize>() -> IAzOperation_Vtbl { - unsafe extern "system" fn Name, Impl: IAzOperation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IAzOperation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -2643,12 +2643,12 @@ impl IAzOperation_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetName, Impl: IAzOperation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: IAzOperation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&bstrname)).into() } - unsafe extern "system" fn Description, Impl: IAzOperation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IAzOperation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -2659,12 +2659,12 @@ impl IAzOperation_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription, Impl: IAzOperation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDescription, Impl: IAzOperation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDescription(::core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn ApplicationData, Impl: IAzOperation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrapplicationdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ApplicationData, Impl: IAzOperation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrapplicationdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ApplicationData() { @@ -2675,7 +2675,7 @@ impl IAzOperation_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetApplicationData, Impl: IAzOperation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationdata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetApplicationData, Impl: IAzOperation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetApplicationData(::core::mem::transmute(&bstrapplicationdata)).into() @@ -2750,14 +2750,14 @@ impl IAzOperation_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IAzOperation2_Impl: Sized + super::super::System::Com::IDispatch_Impl + IAzOperation_Impl { - fn RoleAssignments(&self, bstrscopename: &super::super::Foundation::BSTR, brecursive: i16) -> ::windows::core::Result; + fn RoleAssignments(&self, bstrscopename: &::windows::core::BSTR, brecursive: i16) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IAzOperation2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IAzOperation2_Vtbl { pub const fn new, Impl: IAzOperation2_Impl, const OFFSET: isize>() -> IAzOperation2_Vtbl { - unsafe extern "system" fn RoleAssignments, Impl: IAzOperation2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop, brecursive: i16, pproleassignments: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn RoleAssignments, Impl: IAzOperation2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, brecursive: i16, pproleassignments: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RoleAssignments(::core::mem::transmute(&bstrscopename), ::core::mem::transmute_copy(&brecursive)) { @@ -2873,20 +2873,20 @@ impl IAzPrincipalLocator_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IAzRole_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; - fn SetName(&self, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Description(&self) -> ::windows::core::Result; - fn SetDescription(&self, bstrdescription: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ApplicationData(&self) -> ::windows::core::Result; - fn SetApplicationData(&self, bstrapplicationdata: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn AddAppMember(&self, bstrprop: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn DeleteAppMember(&self, bstrprop: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn AddTask(&self, bstrprop: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn DeleteTask(&self, bstrprop: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn AddOperation(&self, bstrprop: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn DeleteOperation(&self, bstrprop: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn AddMember(&self, bstrprop: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn DeleteMember(&self, bstrprop: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ApplicationData(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetApplicationData(&self, bstrapplicationdata: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn AddAppMember(&self, bstrprop: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn DeleteAppMember(&self, bstrprop: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn AddTask(&self, bstrprop: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn DeleteTask(&self, bstrprop: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn AddOperation(&self, bstrprop: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn DeleteOperation(&self, bstrprop: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn AddMember(&self, bstrprop: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn DeleteMember(&self, bstrprop: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn Writable(&self) -> ::windows::core::Result; fn GetProperty(&self, lpropid: i32, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; fn SetProperty(&self, lpropid: i32, varprop: &super::super::System::Com::VARIANT, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; @@ -2897,8 +2897,8 @@ pub trait IAzRole_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn AddPropertyItem(&self, lpropid: i32, varprop: &super::super::System::Com::VARIANT, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn DeletePropertyItem(&self, lpropid: i32, varprop: &super::super::System::Com::VARIANT, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn Submit(&self, lflags: i32, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn AddMemberName(&self, bstrprop: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn DeleteMemberName(&self, bstrprop: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn AddMemberName(&self, bstrprop: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn DeleteMemberName(&self, bstrprop: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn MembersName(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2906,7 +2906,7 @@ impl ::windows::core::RuntimeName for IAzRole {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IAzRole_Vtbl { pub const fn new, Impl: IAzRole_Impl, const OFFSET: isize>() -> IAzRole_Vtbl { - unsafe extern "system" fn Name, Impl: IAzRole_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IAzRole_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -2917,12 +2917,12 @@ impl IAzRole_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetName, Impl: IAzRole_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: IAzRole_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&bstrname)).into() } - unsafe extern "system" fn Description, Impl: IAzRole_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IAzRole_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -2933,12 +2933,12 @@ impl IAzRole_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription, Impl: IAzRole_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDescription, Impl: IAzRole_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDescription(::core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn ApplicationData, Impl: IAzRole_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrapplicationdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ApplicationData, Impl: IAzRole_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrapplicationdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ApplicationData() { @@ -2949,47 +2949,47 @@ impl IAzRole_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetApplicationData, Impl: IAzRole_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationdata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetApplicationData, Impl: IAzRole_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetApplicationData(::core::mem::transmute(&bstrapplicationdata)).into() } - unsafe extern "system" fn AddAppMember, Impl: IAzRole_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddAppMember, Impl: IAzRole_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddAppMember(::core::mem::transmute(&bstrprop), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeleteAppMember, Impl: IAzRole_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteAppMember, Impl: IAzRole_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteAppMember(::core::mem::transmute(&bstrprop), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn AddTask, Impl: IAzRole_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddTask, Impl: IAzRole_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddTask(::core::mem::transmute(&bstrprop), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeleteTask, Impl: IAzRole_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteTask, Impl: IAzRole_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteTask(::core::mem::transmute(&bstrprop), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn AddOperation, Impl: IAzRole_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddOperation, Impl: IAzRole_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddOperation(::core::mem::transmute(&bstrprop), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeleteOperation, Impl: IAzRole_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteOperation, Impl: IAzRole_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteOperation(::core::mem::transmute(&bstrprop), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn AddMember, Impl: IAzRole_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddMember, Impl: IAzRole_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddMember(::core::mem::transmute(&bstrprop), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeleteMember, Impl: IAzRole_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteMember, Impl: IAzRole_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteMember(::core::mem::transmute(&bstrprop), ::core::mem::transmute(&varreserved)).into() @@ -3080,12 +3080,12 @@ impl IAzRole_Vtbl { let this = (*this).get_impl(); this.Submit(::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn AddMemberName, Impl: IAzRole_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddMemberName, Impl: IAzRole_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddMemberName(::core::mem::transmute(&bstrprop), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeleteMemberName, Impl: IAzRole_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteMemberName, Impl: IAzRole_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteMemberName(::core::mem::transmute(&bstrprop), ::core::mem::transmute(&varreserved)).into() @@ -3138,8 +3138,8 @@ impl IAzRole_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IAzRoleAssignment_Impl: Sized + super::super::System::Com::IDispatch_Impl + IAzRole_Impl { - fn AddRoleDefinition(&self, bstrroledefinition: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn DeleteRoleDefinition(&self, bstrroledefinition: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn AddRoleDefinition(&self, bstrroledefinition: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn DeleteRoleDefinition(&self, bstrroledefinition: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn RoleDefinitions(&self) -> ::windows::core::Result; fn Scope(&self) -> ::windows::core::Result; } @@ -3148,12 +3148,12 @@ impl ::windows::core::RuntimeName for IAzRoleAssignment {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IAzRoleAssignment_Vtbl { pub const fn new, Impl: IAzRoleAssignment_Impl, const OFFSET: isize>() -> IAzRoleAssignment_Vtbl { - unsafe extern "system" fn AddRoleDefinition, Impl: IAzRoleAssignment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrroledefinition: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddRoleDefinition, Impl: IAzRoleAssignment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrroledefinition: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddRoleDefinition(::core::mem::transmute(&bstrroledefinition)).into() } - unsafe extern "system" fn DeleteRoleDefinition, Impl: IAzRoleAssignment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrroledefinition: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteRoleDefinition, Impl: IAzRoleAssignment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrroledefinition: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteRoleDefinition(::core::mem::transmute(&bstrroledefinition)).into() @@ -3249,9 +3249,9 @@ impl IAzRoleAssignments_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IAzRoleDefinition_Impl: Sized + super::super::System::Com::IDispatch_Impl + IAzTask_Impl { - fn RoleAssignments(&self, bstrscopename: &super::super::Foundation::BSTR, brecursive: i16) -> ::windows::core::Result; - fn AddRoleDefinition(&self, bstrroledefinition: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn DeleteRoleDefinition(&self, bstrroledefinition: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn RoleAssignments(&self, bstrscopename: &::windows::core::BSTR, brecursive: i16) -> ::windows::core::Result; + fn AddRoleDefinition(&self, bstrroledefinition: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn DeleteRoleDefinition(&self, bstrroledefinition: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn RoleDefinitions(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3259,7 +3259,7 @@ impl ::windows::core::RuntimeName for IAzRoleDefinition {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IAzRoleDefinition_Vtbl { pub const fn new, Impl: IAzRoleDefinition_Impl, const OFFSET: isize>() -> IAzRoleDefinition_Vtbl { - unsafe extern "system" fn RoleAssignments, Impl: IAzRoleDefinition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop, brecursive: i16, pproleassignments: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn RoleAssignments, Impl: IAzRoleDefinition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, brecursive: i16, pproleassignments: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RoleAssignments(::core::mem::transmute(&bstrscopename), ::core::mem::transmute_copy(&brecursive)) { @@ -3270,12 +3270,12 @@ impl IAzRoleDefinition_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AddRoleDefinition, Impl: IAzRoleDefinition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrroledefinition: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddRoleDefinition, Impl: IAzRoleDefinition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrroledefinition: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddRoleDefinition(::core::mem::transmute(&bstrroledefinition)).into() } - unsafe extern "system" fn DeleteRoleDefinition, Impl: IAzRoleDefinition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrroledefinition: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteRoleDefinition, Impl: IAzRoleDefinition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrroledefinition: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteRoleDefinition(::core::mem::transmute(&bstrroledefinition)).into() @@ -3415,12 +3415,12 @@ impl IAzRoles_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IAzScope_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; - fn SetName(&self, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Description(&self) -> ::windows::core::Result; - fn SetDescription(&self, bstrdescription: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ApplicationData(&self) -> ::windows::core::Result; - fn SetApplicationData(&self, bstrapplicationdata: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ApplicationData(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetApplicationData(&self, bstrapplicationdata: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Writable(&self) -> ::windows::core::Result; fn GetProperty(&self, lpropid: i32, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; fn SetProperty(&self, lpropid: i32, varprop: &super::super::System::Com::VARIANT, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; @@ -3428,38 +3428,38 @@ pub trait IAzScope_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn DeletePropertyItem(&self, lpropid: i32, varprop: &super::super::System::Com::VARIANT, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn PolicyAdministrators(&self) -> ::windows::core::Result; fn PolicyReaders(&self) -> ::windows::core::Result; - fn AddPolicyAdministrator(&self, bstradmin: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn DeletePolicyAdministrator(&self, bstradmin: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn AddPolicyReader(&self, bstrreader: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn DeletePolicyReader(&self, bstrreader: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn AddPolicyAdministrator(&self, bstradmin: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn DeletePolicyAdministrator(&self, bstradmin: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn AddPolicyReader(&self, bstrreader: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn DeletePolicyReader(&self, bstrreader: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn ApplicationGroups(&self) -> ::windows::core::Result; - fn OpenApplicationGroup(&self, bstrgroupname: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn CreateApplicationGroup(&self, bstrgroupname: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn DeleteApplicationGroup(&self, bstrgroupname: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn OpenApplicationGroup(&self, bstrgroupname: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn CreateApplicationGroup(&self, bstrgroupname: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn DeleteApplicationGroup(&self, bstrgroupname: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn Roles(&self) -> ::windows::core::Result; - fn OpenRole(&self, bstrrolename: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn CreateRole(&self, bstrrolename: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn DeleteRole(&self, bstrrolename: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn OpenRole(&self, bstrrolename: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn CreateRole(&self, bstrrolename: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn DeleteRole(&self, bstrrolename: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn Tasks(&self) -> ::windows::core::Result; - fn OpenTask(&self, bstrtaskname: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn CreateTask(&self, bstrtaskname: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn DeleteTask(&self, bstrtaskname: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn OpenTask(&self, bstrtaskname: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn CreateTask(&self, bstrtaskname: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn DeleteTask(&self, bstrtaskname: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn Submit(&self, lflags: i32, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn CanBeDelegated(&self) -> ::windows::core::Result; fn BizrulesWritable(&self) -> ::windows::core::Result; fn PolicyAdministratorsName(&self) -> ::windows::core::Result; fn PolicyReadersName(&self) -> ::windows::core::Result; - fn AddPolicyAdministratorName(&self, bstradmin: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn DeletePolicyAdministratorName(&self, bstradmin: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn AddPolicyReaderName(&self, bstrreader: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn DeletePolicyReaderName(&self, bstrreader: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn AddPolicyAdministratorName(&self, bstradmin: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn DeletePolicyAdministratorName(&self, bstradmin: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn AddPolicyReaderName(&self, bstrreader: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn DeletePolicyReaderName(&self, bstrreader: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IAzScope {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IAzScope_Vtbl { pub const fn new, Impl: IAzScope_Impl, const OFFSET: isize>() -> IAzScope_Vtbl { - unsafe extern "system" fn Name, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -3470,12 +3470,12 @@ impl IAzScope_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetName, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&bstrname)).into() } - unsafe extern "system" fn Description, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -3486,12 +3486,12 @@ impl IAzScope_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDescription, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDescription(::core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn ApplicationData, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrapplicationdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ApplicationData, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrapplicationdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ApplicationData() { @@ -3502,7 +3502,7 @@ impl IAzScope_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetApplicationData, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationdata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetApplicationData, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetApplicationData(::core::mem::transmute(&bstrapplicationdata)).into() @@ -3566,22 +3566,22 @@ impl IAzScope_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AddPolicyAdministrator, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddPolicyAdministrator, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddPolicyAdministrator(::core::mem::transmute(&bstradmin), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeletePolicyAdministrator, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeletePolicyAdministrator, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeletePolicyAdministrator(::core::mem::transmute(&bstradmin), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn AddPolicyReader, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddPolicyReader, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddPolicyReader(::core::mem::transmute(&bstrreader), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeletePolicyReader, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeletePolicyReader, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeletePolicyReader(::core::mem::transmute(&bstrreader), ::core::mem::transmute(&varreserved)).into() @@ -3597,7 +3597,7 @@ impl IAzScope_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn OpenApplicationGroup, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn OpenApplicationGroup, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OpenApplicationGroup(::core::mem::transmute(&bstrgroupname), ::core::mem::transmute(&varreserved)) { @@ -3608,7 +3608,7 @@ impl IAzScope_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateApplicationGroup, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateApplicationGroup, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateApplicationGroup(::core::mem::transmute(&bstrgroupname), ::core::mem::transmute(&varreserved)) { @@ -3619,7 +3619,7 @@ impl IAzScope_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DeleteApplicationGroup, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteApplicationGroup, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteApplicationGroup(::core::mem::transmute(&bstrgroupname), ::core::mem::transmute(&varreserved)).into() @@ -3635,7 +3635,7 @@ impl IAzScope_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn OpenRole, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrolename: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, pprole: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn OpenRole, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrolename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, pprole: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OpenRole(::core::mem::transmute(&bstrrolename), ::core::mem::transmute(&varreserved)) { @@ -3646,7 +3646,7 @@ impl IAzScope_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateRole, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrolename: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, pprole: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateRole, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrolename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, pprole: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateRole(::core::mem::transmute(&bstrrolename), ::core::mem::transmute(&varreserved)) { @@ -3657,7 +3657,7 @@ impl IAzScope_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DeleteRole, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrolename: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteRole, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrolename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteRole(::core::mem::transmute(&bstrrolename), ::core::mem::transmute(&varreserved)).into() @@ -3673,7 +3673,7 @@ impl IAzScope_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn OpenTask, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtaskname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, pptask: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn OpenTask, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtaskname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, pptask: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OpenTask(::core::mem::transmute(&bstrtaskname), ::core::mem::transmute(&varreserved)) { @@ -3684,7 +3684,7 @@ impl IAzScope_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateTask, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtaskname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, pptask: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateTask, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtaskname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, pptask: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateTask(::core::mem::transmute(&bstrtaskname), ::core::mem::transmute(&varreserved)) { @@ -3695,7 +3695,7 @@ impl IAzScope_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DeleteTask, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtaskname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteTask, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtaskname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteTask(::core::mem::transmute(&bstrtaskname), ::core::mem::transmute(&varreserved)).into() @@ -3749,22 +3749,22 @@ impl IAzScope_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AddPolicyAdministratorName, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddPolicyAdministratorName, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddPolicyAdministratorName(::core::mem::transmute(&bstradmin), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeletePolicyAdministratorName, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeletePolicyAdministratorName, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeletePolicyAdministratorName(::core::mem::transmute(&bstradmin), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn AddPolicyReaderName, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddPolicyReaderName, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddPolicyReaderName(::core::mem::transmute(&bstrreader), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeletePolicyReaderName, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeletePolicyReaderName, Impl: IAzScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeletePolicyReaderName(::core::mem::transmute(&bstrreader), ::core::mem::transmute(&varreserved)).into() @@ -3818,13 +3818,13 @@ impl IAzScope_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IAzScope2_Impl: Sized + super::super::System::Com::IDispatch_Impl + IAzScope_Impl { fn RoleDefinitions(&self) -> ::windows::core::Result; - fn CreateRoleDefinition(&self, bstrroledefinitionname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn OpenRoleDefinition(&self, bstrroledefinitionname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn DeleteRoleDefinition(&self, bstrroledefinitionname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn CreateRoleDefinition(&self, bstrroledefinitionname: &::windows::core::BSTR) -> ::windows::core::Result; + fn OpenRoleDefinition(&self, bstrroledefinitionname: &::windows::core::BSTR) -> ::windows::core::Result; + fn DeleteRoleDefinition(&self, bstrroledefinitionname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn RoleAssignments(&self) -> ::windows::core::Result; - fn CreateRoleAssignment(&self, bstrroleassignmentname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn OpenRoleAssignment(&self, bstrroleassignmentname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn DeleteRoleAssignment(&self, bstrroleassignmentname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn CreateRoleAssignment(&self, bstrroleassignmentname: &::windows::core::BSTR) -> ::windows::core::Result; + fn OpenRoleAssignment(&self, bstrroleassignmentname: &::windows::core::BSTR) -> ::windows::core::Result; + fn DeleteRoleAssignment(&self, bstrroleassignmentname: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IAzScope2 {} @@ -3842,7 +3842,7 @@ impl IAzScope2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateRoleDefinition, Impl: IAzScope2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrroledefinitionname: ::core::mem::ManuallyDrop, pproledefinitions: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateRoleDefinition, Impl: IAzScope2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrroledefinitionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pproledefinitions: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateRoleDefinition(::core::mem::transmute(&bstrroledefinitionname)) { @@ -3853,7 +3853,7 @@ impl IAzScope2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn OpenRoleDefinition, Impl: IAzScope2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrroledefinitionname: ::core::mem::ManuallyDrop, pproledefinitions: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn OpenRoleDefinition, Impl: IAzScope2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrroledefinitionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pproledefinitions: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OpenRoleDefinition(::core::mem::transmute(&bstrroledefinitionname)) { @@ -3864,7 +3864,7 @@ impl IAzScope2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DeleteRoleDefinition, Impl: IAzScope2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrroledefinitionname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteRoleDefinition, Impl: IAzScope2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrroledefinitionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteRoleDefinition(::core::mem::transmute(&bstrroledefinitionname)).into() @@ -3880,7 +3880,7 @@ impl IAzScope2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateRoleAssignment, Impl: IAzScope2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrroleassignmentname: ::core::mem::ManuallyDrop, pproleassignment: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateRoleAssignment, Impl: IAzScope2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrroleassignmentname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pproleassignment: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateRoleAssignment(::core::mem::transmute(&bstrroleassignmentname)) { @@ -3891,7 +3891,7 @@ impl IAzScope2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn OpenRoleAssignment, Impl: IAzScope2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrroleassignmentname: ::core::mem::ManuallyDrop, pproleassignment: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn OpenRoleAssignment, Impl: IAzScope2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrroleassignmentname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pproleassignment: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OpenRoleAssignment(::core::mem::transmute(&bstrroleassignmentname)) { @@ -3902,7 +3902,7 @@ impl IAzScope2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DeleteRoleAssignment, Impl: IAzScope2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrroleassignmentname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteRoleAssignment, Impl: IAzScope2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrroleassignmentname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteRoleAssignment(::core::mem::transmute(&bstrroleassignmentname)).into() @@ -3980,26 +3980,26 @@ impl IAzScopes_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IAzTask_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; - fn SetName(&self, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Description(&self) -> ::windows::core::Result; - fn SetDescription(&self, bstrdescription: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ApplicationData(&self) -> ::windows::core::Result; - fn SetApplicationData(&self, bstrapplicationdata: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn BizRule(&self) -> ::windows::core::Result; - fn SetBizRule(&self, bstrprop: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn BizRuleLanguage(&self) -> ::windows::core::Result; - fn SetBizRuleLanguage(&self, bstrprop: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn BizRuleImportedPath(&self) -> ::windows::core::Result; - fn SetBizRuleImportedPath(&self, bstrprop: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ApplicationData(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetApplicationData(&self, bstrapplicationdata: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn BizRule(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetBizRule(&self, bstrprop: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn BizRuleLanguage(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetBizRuleLanguage(&self, bstrprop: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn BizRuleImportedPath(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetBizRuleImportedPath(&self, bstrprop: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn IsRoleDefinition(&self) -> ::windows::core::Result; fn SetIsRoleDefinition(&self, fprop: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn Operations(&self) -> ::windows::core::Result; fn Tasks(&self) -> ::windows::core::Result; - fn AddOperation(&self, bstrop: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn DeleteOperation(&self, bstrop: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn AddTask(&self, bstrtask: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn DeleteTask(&self, bstrtask: &super::super::Foundation::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn AddOperation(&self, bstrop: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn DeleteOperation(&self, bstrop: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn AddTask(&self, bstrtask: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn DeleteTask(&self, bstrtask: &::windows::core::BSTR, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn Writable(&self) -> ::windows::core::Result; fn GetProperty(&self, lpropid: i32, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result; fn SetProperty(&self, lpropid: i32, varprop: &super::super::System::Com::VARIANT, varreserved: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; @@ -4012,7 +4012,7 @@ impl ::windows::core::RuntimeName for IAzTask {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IAzTask_Vtbl { pub const fn new, Impl: IAzTask_Impl, const OFFSET: isize>() -> IAzTask_Vtbl { - unsafe extern "system" fn Name, Impl: IAzTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IAzTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -4023,12 +4023,12 @@ impl IAzTask_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetName, Impl: IAzTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: IAzTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&bstrname)).into() } - unsafe extern "system" fn Description, Impl: IAzTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IAzTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -4039,12 +4039,12 @@ impl IAzTask_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription, Impl: IAzTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDescription, Impl: IAzTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDescription(::core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn ApplicationData, Impl: IAzTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrapplicationdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ApplicationData, Impl: IAzTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrapplicationdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ApplicationData() { @@ -4055,12 +4055,12 @@ impl IAzTask_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetApplicationData, Impl: IAzTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationdata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetApplicationData, Impl: IAzTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetApplicationData(::core::mem::transmute(&bstrapplicationdata)).into() } - unsafe extern "system" fn BizRule, Impl: IAzTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprop: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn BizRule, Impl: IAzTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprop: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BizRule() { @@ -4071,12 +4071,12 @@ impl IAzTask_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetBizRule, Impl: IAzTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetBizRule, Impl: IAzTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetBizRule(::core::mem::transmute(&bstrprop)).into() } - unsafe extern "system" fn BizRuleLanguage, Impl: IAzTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprop: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn BizRuleLanguage, Impl: IAzTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprop: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BizRuleLanguage() { @@ -4087,12 +4087,12 @@ impl IAzTask_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetBizRuleLanguage, Impl: IAzTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetBizRuleLanguage, Impl: IAzTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetBizRuleLanguage(::core::mem::transmute(&bstrprop)).into() } - unsafe extern "system" fn BizRuleImportedPath, Impl: IAzTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprop: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn BizRuleImportedPath, Impl: IAzTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprop: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BizRuleImportedPath() { @@ -4103,7 +4103,7 @@ impl IAzTask_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetBizRuleImportedPath, Impl: IAzTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetBizRuleImportedPath, Impl: IAzTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetBizRuleImportedPath(::core::mem::transmute(&bstrprop)).into() @@ -4146,22 +4146,22 @@ impl IAzTask_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AddOperation, Impl: IAzTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddOperation, Impl: IAzTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddOperation(::core::mem::transmute(&bstrop), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeleteOperation, Impl: IAzTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteOperation, Impl: IAzTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteOperation(::core::mem::transmute(&bstrop), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn AddTask, Impl: IAzTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtask: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddTask, Impl: IAzTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtask: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddTask(::core::mem::transmute(&bstrtask), ::core::mem::transmute(&varreserved)).into() } - unsafe extern "system" fn DeleteTask, Impl: IAzTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtask: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteTask, Impl: IAzTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtask: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteTask(::core::mem::transmute(&bstrtask), ::core::mem::transmute(&varreserved)).into() @@ -4244,14 +4244,14 @@ impl IAzTask_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IAzTask2_Impl: Sized + super::super::System::Com::IDispatch_Impl + IAzTask_Impl { - fn RoleAssignments(&self, bstrscopename: &super::super::Foundation::BSTR, brecursive: i16) -> ::windows::core::Result; + fn RoleAssignments(&self, bstrscopename: &::windows::core::BSTR, brecursive: i16) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IAzTask2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IAzTask2_Vtbl { pub const fn new, Impl: IAzTask2_Impl, const OFFSET: isize>() -> IAzTask2_Vtbl { - unsafe extern "system" fn RoleAssignments, Impl: IAzTask2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop, brecursive: i16, pproleassignments: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn RoleAssignments, Impl: IAzTask2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, brecursive: i16, pproleassignments: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RoleAssignments(::core::mem::transmute(&bstrscopename), ::core::mem::transmute_copy(&brecursive)) { diff --git a/crates/libs/windows/src/Windows/Win32/Security/Authorization/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/Authorization/mod.rs index 4c1a0ca65d..eb5567e7c9 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Authorization/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Authorization/mod.rs @@ -1119,75 +1119,40 @@ where pub struct IAzApplication(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IAzApplication { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bstrdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), bstrdescription.into().abi()).ok() + pub unsafe fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdescription)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ApplicationData(&self) -> ::windows::core::Result { + pub unsafe fn ApplicationData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetApplicationData<'a, P0>(&self, bstrapplicationdata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetApplicationData)(::windows::core::Interface::as_raw(self), bstrapplicationdata.into().abi()).ok() + pub unsafe fn SetApplicationData(&self, bstrapplicationdata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationdata)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AuthzInterfaceClsid(&self) -> ::windows::core::Result { + pub unsafe fn AuthzInterfaceClsid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AuthzInterfaceClsid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AuthzInterfaceClsid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetAuthzInterfaceClsid<'a, P0>(&self, bstrprop: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetAuthzInterfaceClsid)(::windows::core::Interface::as_raw(self), bstrprop.into().abi()).ok() + pub unsafe fn SetAuthzInterfaceClsid(&self, bstrprop: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetAuthzInterfaceClsid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Version(&self) -> ::windows::core::Result { + pub unsafe fn Version(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Version)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Version)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetVersion<'a, P0>(&self, bstrprop: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetVersion)(::windows::core::Interface::as_raw(self), bstrprop.into().abi()).ok() + pub unsafe fn SetVersion(&self, bstrprop: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetVersion)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -1255,39 +1220,35 @@ impl IAzApplication { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddPolicyAdministrator<'a, P0, P1>(&self, bstradmin: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddPolicyAdministrator<'a, P0>(&self, bstradmin: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).AddPolicyAdministrator)(::windows::core::Interface::as_raw(self), bstradmin.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddPolicyAdministrator)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstradmin), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeletePolicyAdministrator<'a, P0, P1>(&self, bstradmin: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeletePolicyAdministrator<'a, P0>(&self, bstradmin: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeletePolicyAdministrator)(::windows::core::Interface::as_raw(self), bstradmin.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeletePolicyAdministrator)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstradmin), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddPolicyReader<'a, P0, P1>(&self, bstrreader: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddPolicyReader<'a, P0>(&self, bstrreader: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).AddPolicyReader)(::windows::core::Interface::as_raw(self), bstrreader.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddPolicyReader)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrreader), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeletePolicyReader<'a, P0, P1>(&self, bstrreader: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeletePolicyReader<'a, P0>(&self, bstrreader: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeletePolicyReader)(::windows::core::Interface::as_raw(self), bstrreader.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeletePolicyReader)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrreader), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1297,32 +1258,29 @@ impl IAzApplication { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn OpenScope<'a, P0, P1>(&self, bstrscopename: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn OpenScope<'a, P0>(&self, bstrscopename: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).OpenScope)(::windows::core::Interface::as_raw(self), bstrscopename.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).OpenScope)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrscopename), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateScope<'a, P0, P1>(&self, bstrscopename: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn CreateScope<'a, P0>(&self, bstrscopename: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateScope)(::windows::core::Interface::as_raw(self), bstrscopename.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateScope)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrscopename), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteScope<'a, P0, P1>(&self, bstrscopename: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteScope<'a, P0>(&self, bstrscopename: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeleteScope)(::windows::core::Interface::as_raw(self), bstrscopename.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeleteScope)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrscopename), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1332,32 +1290,29 @@ impl IAzApplication { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn OpenOperation<'a, P0, P1>(&self, bstroperationname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn OpenOperation<'a, P0>(&self, bstroperationname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).OpenOperation)(::windows::core::Interface::as_raw(self), bstroperationname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).OpenOperation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstroperationname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateOperation<'a, P0, P1>(&self, bstroperationname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn CreateOperation<'a, P0>(&self, bstroperationname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateOperation)(::windows::core::Interface::as_raw(self), bstroperationname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateOperation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstroperationname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteOperation<'a, P0, P1>(&self, bstroperationname: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteOperation<'a, P0>(&self, bstroperationname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeleteOperation)(::windows::core::Interface::as_raw(self), bstroperationname.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeleteOperation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstroperationname), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1367,32 +1322,29 @@ impl IAzApplication { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn OpenTask<'a, P0, P1>(&self, bstrtaskname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn OpenTask<'a, P0>(&self, bstrtaskname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).OpenTask)(::windows::core::Interface::as_raw(self), bstrtaskname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).OpenTask)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtaskname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateTask<'a, P0, P1>(&self, bstrtaskname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn CreateTask<'a, P0>(&self, bstrtaskname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateTask)(::windows::core::Interface::as_raw(self), bstrtaskname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateTask)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtaskname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteTask<'a, P0, P1>(&self, bstrtaskname: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteTask<'a, P0>(&self, bstrtaskname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeleteTask)(::windows::core::Interface::as_raw(self), bstrtaskname.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeleteTask)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtaskname), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1402,32 +1354,29 @@ impl IAzApplication { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn OpenApplicationGroup<'a, P0, P1>(&self, bstrgroupname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn OpenApplicationGroup<'a, P0>(&self, bstrgroupname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).OpenApplicationGroup)(::windows::core::Interface::as_raw(self), bstrgroupname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).OpenApplicationGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrgroupname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateApplicationGroup<'a, P0, P1>(&self, bstrgroupname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn CreateApplicationGroup<'a, P0>(&self, bstrgroupname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateApplicationGroup)(::windows::core::Interface::as_raw(self), bstrgroupname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateApplicationGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrgroupname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteApplicationGroup<'a, P0, P1>(&self, bstrgroupname: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteApplicationGroup<'a, P0>(&self, bstrgroupname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeleteApplicationGroup)(::windows::core::Interface::as_raw(self), bstrgroupname.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeleteApplicationGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrgroupname), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1437,32 +1386,29 @@ impl IAzApplication { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn OpenRole<'a, P0, P1>(&self, bstrrolename: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn OpenRole<'a, P0>(&self, bstrrolename: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).OpenRole)(::windows::core::Interface::as_raw(self), bstrrolename.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).OpenRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrolename), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateRole<'a, P0, P1>(&self, bstrrolename: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn CreateRole<'a, P0>(&self, bstrrolename: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateRole)(::windows::core::Interface::as_raw(self), bstrrolename.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrolename), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteRole<'a, P0, P1>(&self, bstrrolename: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteRole<'a, P0>(&self, bstrrolename: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeleteRole)(::windows::core::Interface::as_raw(self), bstrrolename.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeleteRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrolename), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -1501,14 +1447,12 @@ impl IAzApplication { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn InitializeClientContextFromName<'a, P0, P1, P2>(&self, clientname: P0, domainname: P1, varreserved: P2) -> ::windows::core::Result + pub unsafe fn InitializeClientContextFromName<'a, P0>(&self, clientname: &::windows::core::BSTR, domainname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).InitializeClientContextFromName)(::windows::core::Interface::as_raw(self), clientname.into().abi(), domainname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).InitializeClientContextFromName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(clientname), ::core::mem::transmute_copy(domainname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -1518,31 +1462,28 @@ impl IAzApplication { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddDelegatedPolicyUser<'a, P0, P1>(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddDelegatedPolicyUser<'a, P0>(&self, bstrdelegatedpolicyuser: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).AddDelegatedPolicyUser)(::windows::core::Interface::as_raw(self), bstrdelegatedpolicyuser.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddDelegatedPolicyUser)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdelegatedpolicyuser), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteDelegatedPolicyUser<'a, P0, P1>(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteDelegatedPolicyUser<'a, P0>(&self, bstrdelegatedpolicyuser: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeleteDelegatedPolicyUser)(::windows::core::Interface::as_raw(self), bstrdelegatedpolicyuser.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeleteDelegatedPolicyUser)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdelegatedpolicyuser), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn InitializeClientContextFromStringSid<'a, P0, P1>(&self, sidstring: P0, loptions: i32, varreserved: P1) -> ::windows::core::Result + pub unsafe fn InitializeClientContextFromStringSid<'a, P0>(&self, sidstring: &::windows::core::BSTR, loptions: i32, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).InitializeClientContextFromStringSid)(::windows::core::Interface::as_raw(self), sidstring.into().abi(), loptions, varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).InitializeClientContextFromStringSid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(sidstring), loptions, varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -1558,39 +1499,35 @@ impl IAzApplication { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddPolicyAdministratorName<'a, P0, P1>(&self, bstradmin: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddPolicyAdministratorName<'a, P0>(&self, bstradmin: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).AddPolicyAdministratorName)(::windows::core::Interface::as_raw(self), bstradmin.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddPolicyAdministratorName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstradmin), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeletePolicyAdministratorName<'a, P0, P1>(&self, bstradmin: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeletePolicyAdministratorName<'a, P0>(&self, bstradmin: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeletePolicyAdministratorName)(::windows::core::Interface::as_raw(self), bstradmin.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeletePolicyAdministratorName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstradmin), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddPolicyReaderName<'a, P0, P1>(&self, bstrreader: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddPolicyReaderName<'a, P0>(&self, bstrreader: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).AddPolicyReaderName)(::windows::core::Interface::as_raw(self), bstrreader.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddPolicyReaderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrreader), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeletePolicyReaderName<'a, P0, P1>(&self, bstrreader: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeletePolicyReaderName<'a, P0>(&self, bstrreader: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeletePolicyReaderName)(::windows::core::Interface::as_raw(self), bstrreader.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeletePolicyReaderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrreader), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -1600,21 +1537,19 @@ impl IAzApplication { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddDelegatedPolicyUserName<'a, P0, P1>(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddDelegatedPolicyUserName<'a, P0>(&self, bstrdelegatedpolicyuser: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).AddDelegatedPolicyUserName)(::windows::core::Interface::as_raw(self), bstrdelegatedpolicyuser.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddDelegatedPolicyUserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdelegatedpolicyuser), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteDelegatedPolicyUserName<'a, P0, P1>(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteDelegatedPolicyUserName<'a, P0>(&self, bstrdelegatedpolicyuser: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeleteDelegatedPolicyUserName)(::windows::core::Interface::as_raw(self), bstrdelegatedpolicyuser.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeleteDelegatedPolicyUserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdelegatedpolicyuser), varreserved.into().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1683,46 +1618,16 @@ unsafe impl ::windows::core::Interface for IAzApplication { #[doc(hidden)] pub struct IAzApplication_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDescription: usize, - #[cfg(feature = "Win32_Foundation")] - pub ApplicationData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrapplicationdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ApplicationData: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetApplicationData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationdata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetApplicationData: usize, - #[cfg(feature = "Win32_Foundation")] - pub AuthzInterfaceClsid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprop: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AuthzInterfaceClsid: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetAuthzInterfaceClsid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetAuthzInterfaceClsid: usize, - #[cfg(feature = "Win32_Foundation")] - pub Version: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprop: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Version: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetVersion: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ApplicationData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrapplicationdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetApplicationData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub AuthzInterfaceClsid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprop: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetAuthzInterfaceClsid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Version: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprop: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub GenerateAudits: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbprop: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -1760,19 +1665,19 @@ pub struct IAzApplication_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] PolicyReaders: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddPolicyAdministrator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub AddPolicyAdministrator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddPolicyAdministrator: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeletePolicyAdministrator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeletePolicyAdministrator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeletePolicyAdministrator: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddPolicyReader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub AddPolicyReader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddPolicyReader: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeletePolicyReader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeletePolicyReader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeletePolicyReader: usize, #[cfg(feature = "Win32_System_Com")] @@ -1780,15 +1685,15 @@ pub struct IAzApplication_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Scopes: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub OpenScope: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, ppscope: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub OpenScope: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, ppscope: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] OpenScope: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub CreateScope: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, ppscope: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub CreateScope: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, ppscope: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] CreateScope: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeleteScope: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeleteScope: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeleteScope: usize, #[cfg(feature = "Win32_System_Com")] @@ -1796,15 +1701,15 @@ pub struct IAzApplication_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Operations: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub OpenOperation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstroperationname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, ppoperation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub OpenOperation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstroperationname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, ppoperation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] OpenOperation: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub CreateOperation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstroperationname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, ppoperation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub CreateOperation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstroperationname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, ppoperation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] CreateOperation: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeleteOperation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstroperationname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeleteOperation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstroperationname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeleteOperation: usize, #[cfg(feature = "Win32_System_Com")] @@ -1812,15 +1717,15 @@ pub struct IAzApplication_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Tasks: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub OpenTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtaskname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, pptask: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub OpenTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtaskname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, pptask: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] OpenTask: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub CreateTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtaskname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, pptask: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub CreateTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtaskname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, pptask: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] CreateTask: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeleteTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtaskname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeleteTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtaskname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeleteTask: usize, #[cfg(feature = "Win32_System_Com")] @@ -1828,15 +1733,15 @@ pub struct IAzApplication_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ApplicationGroups: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub OpenApplicationGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub OpenApplicationGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] OpenApplicationGroup: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub CreateApplicationGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub CreateApplicationGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] CreateApplicationGroup: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeleteApplicationGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeleteApplicationGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeleteApplicationGroup: usize, #[cfg(feature = "Win32_System_Com")] @@ -1844,15 +1749,15 @@ pub struct IAzApplication_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Roles: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub OpenRole: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrolename: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, pprole: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub OpenRole: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrolename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, pprole: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] OpenRole: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub CreateRole: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrolename: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, pprole: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub CreateRole: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrolename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, pprole: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] CreateRole: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeleteRole: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrolename: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeleteRole: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrolename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeleteRole: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -1872,7 +1777,7 @@ pub struct IAzApplication_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Submit: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub InitializeClientContextFromName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clientname: ::core::mem::ManuallyDrop, domainname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, ppclientcontext: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub InitializeClientContextFromName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clientname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, domainname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, ppclientcontext: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] InitializeClientContextFromName: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -1880,15 +1785,15 @@ pub struct IAzApplication_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DelegatedPolicyUsers: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddDelegatedPolicyUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdelegatedpolicyuser: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub AddDelegatedPolicyUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdelegatedpolicyuser: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddDelegatedPolicyUser: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeleteDelegatedPolicyUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdelegatedpolicyuser: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeleteDelegatedPolicyUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdelegatedpolicyuser: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeleteDelegatedPolicyUser: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub InitializeClientContextFromStringSid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sidstring: ::core::mem::ManuallyDrop, loptions: i32, varreserved: ::core::mem::ManuallyDrop, ppclientcontext: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub InitializeClientContextFromStringSid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sidstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, loptions: i32, varreserved: ::core::mem::ManuallyDrop, ppclientcontext: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] InitializeClientContextFromStringSid: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -1900,19 +1805,19 @@ pub struct IAzApplication_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] PolicyReadersName: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddPolicyAdministratorName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub AddPolicyAdministratorName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddPolicyAdministratorName: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeletePolicyAdministratorName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeletePolicyAdministratorName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeletePolicyAdministratorName: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddPolicyReaderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub AddPolicyReaderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddPolicyReaderName: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeletePolicyReaderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeletePolicyReaderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeletePolicyReaderName: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -1920,11 +1825,11 @@ pub struct IAzApplication_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DelegatedPolicyUsersName: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddDelegatedPolicyUserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdelegatedpolicyuser: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub AddDelegatedPolicyUserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdelegatedpolicyuser: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddDelegatedPolicyUserName: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeleteDelegatedPolicyUserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdelegatedpolicyuser: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeleteDelegatedPolicyUserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdelegatedpolicyuser: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeleteDelegatedPolicyUserName: usize, } @@ -1934,75 +1839,40 @@ pub struct IAzApplication_Vtbl { pub struct IAzApplication2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IAzApplication2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bstrdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), bstrdescription.into().abi()).ok() + pub unsafe fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdescription)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ApplicationData(&self) -> ::windows::core::Result { + pub unsafe fn ApplicationData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetApplicationData<'a, P0>(&self, bstrapplicationdata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetApplicationData)(::windows::core::Interface::as_raw(self), bstrapplicationdata.into().abi()).ok() + pub unsafe fn SetApplicationData(&self, bstrapplicationdata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationdata)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AuthzInterfaceClsid(&self) -> ::windows::core::Result { + pub unsafe fn AuthzInterfaceClsid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.AuthzInterfaceClsid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.AuthzInterfaceClsid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetAuthzInterfaceClsid<'a, P0>(&self, bstrprop: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetAuthzInterfaceClsid)(::windows::core::Interface::as_raw(self), bstrprop.into().abi()).ok() + pub unsafe fn SetAuthzInterfaceClsid(&self, bstrprop: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetAuthzInterfaceClsid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Version(&self) -> ::windows::core::Result { + pub unsafe fn Version(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Version)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Version)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetVersion<'a, P0>(&self, bstrprop: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetVersion)(::windows::core::Interface::as_raw(self), bstrprop.into().abi()).ok() + pub unsafe fn SetVersion(&self, bstrprop: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetVersion)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -2070,39 +1940,35 @@ impl IAzApplication2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddPolicyAdministrator<'a, P0, P1>(&self, bstradmin: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddPolicyAdministrator<'a, P0>(&self, bstradmin: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.AddPolicyAdministrator)(::windows::core::Interface::as_raw(self), bstradmin.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AddPolicyAdministrator)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstradmin), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeletePolicyAdministrator<'a, P0, P1>(&self, bstradmin: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeletePolicyAdministrator<'a, P0>(&self, bstradmin: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeletePolicyAdministrator)(::windows::core::Interface::as_raw(self), bstradmin.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeletePolicyAdministrator)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstradmin), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddPolicyReader<'a, P0, P1>(&self, bstrreader: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddPolicyReader<'a, P0>(&self, bstrreader: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.AddPolicyReader)(::windows::core::Interface::as_raw(self), bstrreader.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AddPolicyReader)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrreader), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeletePolicyReader<'a, P0, P1>(&self, bstrreader: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeletePolicyReader<'a, P0>(&self, bstrreader: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeletePolicyReader)(::windows::core::Interface::as_raw(self), bstrreader.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeletePolicyReader)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrreader), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2112,32 +1978,29 @@ impl IAzApplication2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn OpenScope<'a, P0, P1>(&self, bstrscopename: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn OpenScope<'a, P0>(&self, bstrscopename: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.OpenScope)(::windows::core::Interface::as_raw(self), bstrscopename.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.OpenScope)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrscopename), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateScope<'a, P0, P1>(&self, bstrscopename: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn CreateScope<'a, P0>(&self, bstrscopename: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CreateScope)(::windows::core::Interface::as_raw(self), bstrscopename.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CreateScope)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrscopename), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteScope<'a, P0, P1>(&self, bstrscopename: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteScope<'a, P0>(&self, bstrscopename: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeleteScope)(::windows::core::Interface::as_raw(self), bstrscopename.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeleteScope)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrscopename), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2147,32 +2010,29 @@ impl IAzApplication2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn OpenOperation<'a, P0, P1>(&self, bstroperationname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn OpenOperation<'a, P0>(&self, bstroperationname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.OpenOperation)(::windows::core::Interface::as_raw(self), bstroperationname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.OpenOperation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstroperationname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateOperation<'a, P0, P1>(&self, bstroperationname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn CreateOperation<'a, P0>(&self, bstroperationname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CreateOperation)(::windows::core::Interface::as_raw(self), bstroperationname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CreateOperation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstroperationname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteOperation<'a, P0, P1>(&self, bstroperationname: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteOperation<'a, P0>(&self, bstroperationname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeleteOperation)(::windows::core::Interface::as_raw(self), bstroperationname.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeleteOperation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstroperationname), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2182,32 +2042,29 @@ impl IAzApplication2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn OpenTask<'a, P0, P1>(&self, bstrtaskname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn OpenTask<'a, P0>(&self, bstrtaskname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.OpenTask)(::windows::core::Interface::as_raw(self), bstrtaskname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.OpenTask)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtaskname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateTask<'a, P0, P1>(&self, bstrtaskname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn CreateTask<'a, P0>(&self, bstrtaskname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CreateTask)(::windows::core::Interface::as_raw(self), bstrtaskname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CreateTask)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtaskname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteTask<'a, P0, P1>(&self, bstrtaskname: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteTask<'a, P0>(&self, bstrtaskname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeleteTask)(::windows::core::Interface::as_raw(self), bstrtaskname.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeleteTask)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtaskname), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2217,32 +2074,29 @@ impl IAzApplication2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn OpenApplicationGroup<'a, P0, P1>(&self, bstrgroupname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn OpenApplicationGroup<'a, P0>(&self, bstrgroupname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.OpenApplicationGroup)(::windows::core::Interface::as_raw(self), bstrgroupname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.OpenApplicationGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrgroupname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateApplicationGroup<'a, P0, P1>(&self, bstrgroupname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn CreateApplicationGroup<'a, P0>(&self, bstrgroupname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CreateApplicationGroup)(::windows::core::Interface::as_raw(self), bstrgroupname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CreateApplicationGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrgroupname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteApplicationGroup<'a, P0, P1>(&self, bstrgroupname: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteApplicationGroup<'a, P0>(&self, bstrgroupname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeleteApplicationGroup)(::windows::core::Interface::as_raw(self), bstrgroupname.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeleteApplicationGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrgroupname), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2252,32 +2106,29 @@ impl IAzApplication2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn OpenRole<'a, P0, P1>(&self, bstrrolename: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn OpenRole<'a, P0>(&self, bstrrolename: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.OpenRole)(::windows::core::Interface::as_raw(self), bstrrolename.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.OpenRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrolename), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateRole<'a, P0, P1>(&self, bstrrolename: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn CreateRole<'a, P0>(&self, bstrrolename: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CreateRole)(::windows::core::Interface::as_raw(self), bstrrolename.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CreateRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrolename), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteRole<'a, P0, P1>(&self, bstrrolename: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteRole<'a, P0>(&self, bstrrolename: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeleteRole)(::windows::core::Interface::as_raw(self), bstrrolename.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeleteRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrolename), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2316,14 +2167,12 @@ impl IAzApplication2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn InitializeClientContextFromName<'a, P0, P1, P2>(&self, clientname: P0, domainname: P1, varreserved: P2) -> ::windows::core::Result + pub unsafe fn InitializeClientContextFromName<'a, P0>(&self, clientname: &::windows::core::BSTR, domainname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.InitializeClientContextFromName)(::windows::core::Interface::as_raw(self), clientname.into().abi(), domainname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.InitializeClientContextFromName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(clientname), ::core::mem::transmute_copy(domainname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2333,31 +2182,28 @@ impl IAzApplication2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddDelegatedPolicyUser<'a, P0, P1>(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddDelegatedPolicyUser<'a, P0>(&self, bstrdelegatedpolicyuser: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.AddDelegatedPolicyUser)(::windows::core::Interface::as_raw(self), bstrdelegatedpolicyuser.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AddDelegatedPolicyUser)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdelegatedpolicyuser), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteDelegatedPolicyUser<'a, P0, P1>(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteDelegatedPolicyUser<'a, P0>(&self, bstrdelegatedpolicyuser: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeleteDelegatedPolicyUser)(::windows::core::Interface::as_raw(self), bstrdelegatedpolicyuser.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeleteDelegatedPolicyUser)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdelegatedpolicyuser), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn InitializeClientContextFromStringSid<'a, P0, P1>(&self, sidstring: P0, loptions: i32, varreserved: P1) -> ::windows::core::Result + pub unsafe fn InitializeClientContextFromStringSid<'a, P0>(&self, sidstring: &::windows::core::BSTR, loptions: i32, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.InitializeClientContextFromStringSid)(::windows::core::Interface::as_raw(self), sidstring.into().abi(), loptions, varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.InitializeClientContextFromStringSid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(sidstring), loptions, varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2373,39 +2219,35 @@ impl IAzApplication2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddPolicyAdministratorName<'a, P0, P1>(&self, bstradmin: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddPolicyAdministratorName<'a, P0>(&self, bstradmin: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.AddPolicyAdministratorName)(::windows::core::Interface::as_raw(self), bstradmin.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AddPolicyAdministratorName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstradmin), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeletePolicyAdministratorName<'a, P0, P1>(&self, bstradmin: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeletePolicyAdministratorName<'a, P0>(&self, bstradmin: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeletePolicyAdministratorName)(::windows::core::Interface::as_raw(self), bstradmin.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeletePolicyAdministratorName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstradmin), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddPolicyReaderName<'a, P0, P1>(&self, bstrreader: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddPolicyReaderName<'a, P0>(&self, bstrreader: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.AddPolicyReaderName)(::windows::core::Interface::as_raw(self), bstrreader.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AddPolicyReaderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrreader), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeletePolicyReaderName<'a, P0, P1>(&self, bstrreader: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeletePolicyReaderName<'a, P0>(&self, bstrreader: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeletePolicyReaderName)(::windows::core::Interface::as_raw(self), bstrreader.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeletePolicyReaderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrreader), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2415,21 +2257,19 @@ impl IAzApplication2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddDelegatedPolicyUserName<'a, P0, P1>(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddDelegatedPolicyUserName<'a, P0>(&self, bstrdelegatedpolicyuser: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.AddDelegatedPolicyUserName)(::windows::core::Interface::as_raw(self), bstrdelegatedpolicyuser.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AddDelegatedPolicyUserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdelegatedpolicyuser), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteDelegatedPolicyUserName<'a, P0, P1>(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteDelegatedPolicyUserName<'a, P0>(&self, bstrdelegatedpolicyuser: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeleteDelegatedPolicyUserName)(::windows::core::Interface::as_raw(self), bstrdelegatedpolicyuser.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeleteDelegatedPolicyUserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdelegatedpolicyuser), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2442,13 +2282,12 @@ impl IAzApplication2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn InitializeClientContext2<'a, P0, P1>(&self, identifyingstring: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn InitializeClientContext2<'a, P0>(&self, identifyingstring: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).InitializeClientContext2)(::windows::core::Interface::as_raw(self), identifyingstring.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).InitializeClientContext2)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(identifyingstring), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -2540,7 +2379,7 @@ pub struct IAzApplication2_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] InitializeClientContextFromToken2: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub InitializeClientContext2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, identifyingstring: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, ppclientcontext: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub InitializeClientContext2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, identifyingstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, ppclientcontext: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] InitializeClientContext2: usize, } @@ -2550,75 +2389,40 @@ pub struct IAzApplication2_Vtbl { pub struct IAzApplication3(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IAzApplication3 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bstrdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetDescription)(::windows::core::Interface::as_raw(self), bstrdescription.into().abi()).ok() + pub unsafe fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdescription)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ApplicationData(&self) -> ::windows::core::Result { + pub unsafe fn ApplicationData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.ApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.ApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetApplicationData<'a, P0>(&self, bstrapplicationdata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetApplicationData)(::windows::core::Interface::as_raw(self), bstrapplicationdata.into().abi()).ok() + pub unsafe fn SetApplicationData(&self, bstrapplicationdata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationdata)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AuthzInterfaceClsid(&self) -> ::windows::core::Result { + pub unsafe fn AuthzInterfaceClsid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.AuthzInterfaceClsid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.AuthzInterfaceClsid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetAuthzInterfaceClsid<'a, P0>(&self, bstrprop: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetAuthzInterfaceClsid)(::windows::core::Interface::as_raw(self), bstrprop.into().abi()).ok() + pub unsafe fn SetAuthzInterfaceClsid(&self, bstrprop: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetAuthzInterfaceClsid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Version(&self) -> ::windows::core::Result { + pub unsafe fn Version(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Version)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Version)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetVersion<'a, P0>(&self, bstrprop: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetVersion)(::windows::core::Interface::as_raw(self), bstrprop.into().abi()).ok() + pub unsafe fn SetVersion(&self, bstrprop: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetVersion)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -2686,39 +2490,35 @@ impl IAzApplication3 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddPolicyAdministrator<'a, P0, P1>(&self, bstradmin: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddPolicyAdministrator<'a, P0>(&self, bstradmin: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.AddPolicyAdministrator)(::windows::core::Interface::as_raw(self), bstradmin.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.AddPolicyAdministrator)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstradmin), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeletePolicyAdministrator<'a, P0, P1>(&self, bstradmin: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeletePolicyAdministrator<'a, P0>(&self, bstradmin: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.DeletePolicyAdministrator)(::windows::core::Interface::as_raw(self), bstradmin.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.DeletePolicyAdministrator)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstradmin), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddPolicyReader<'a, P0, P1>(&self, bstrreader: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddPolicyReader<'a, P0>(&self, bstrreader: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.AddPolicyReader)(::windows::core::Interface::as_raw(self), bstrreader.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.AddPolicyReader)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrreader), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeletePolicyReader<'a, P0, P1>(&self, bstrreader: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeletePolicyReader<'a, P0>(&self, bstrreader: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.DeletePolicyReader)(::windows::core::Interface::as_raw(self), bstrreader.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.DeletePolicyReader)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrreader), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2728,32 +2528,29 @@ impl IAzApplication3 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn OpenScope<'a, P0, P1>(&self, bstrscopename: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn OpenScope<'a, P0>(&self, bstrscopename: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.OpenScope)(::windows::core::Interface::as_raw(self), bstrscopename.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.OpenScope)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrscopename), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateScope<'a, P0, P1>(&self, bstrscopename: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn CreateScope<'a, P0>(&self, bstrscopename: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CreateScope)(::windows::core::Interface::as_raw(self), bstrscopename.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CreateScope)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrscopename), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteScope<'a, P0, P1>(&self, bstrscopename: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteScope<'a, P0>(&self, bstrscopename: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.DeleteScope)(::windows::core::Interface::as_raw(self), bstrscopename.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.DeleteScope)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrscopename), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2763,32 +2560,29 @@ impl IAzApplication3 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn OpenOperation<'a, P0, P1>(&self, bstroperationname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn OpenOperation<'a, P0>(&self, bstroperationname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.OpenOperation)(::windows::core::Interface::as_raw(self), bstroperationname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.OpenOperation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstroperationname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateOperation<'a, P0, P1>(&self, bstroperationname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn CreateOperation<'a, P0>(&self, bstroperationname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CreateOperation)(::windows::core::Interface::as_raw(self), bstroperationname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CreateOperation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstroperationname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteOperation<'a, P0, P1>(&self, bstroperationname: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteOperation<'a, P0>(&self, bstroperationname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.DeleteOperation)(::windows::core::Interface::as_raw(self), bstroperationname.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.DeleteOperation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstroperationname), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2798,32 +2592,29 @@ impl IAzApplication3 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn OpenTask<'a, P0, P1>(&self, bstrtaskname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn OpenTask<'a, P0>(&self, bstrtaskname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.OpenTask)(::windows::core::Interface::as_raw(self), bstrtaskname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.OpenTask)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtaskname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateTask<'a, P0, P1>(&self, bstrtaskname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn CreateTask<'a, P0>(&self, bstrtaskname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CreateTask)(::windows::core::Interface::as_raw(self), bstrtaskname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CreateTask)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtaskname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteTask<'a, P0, P1>(&self, bstrtaskname: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteTask<'a, P0>(&self, bstrtaskname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.DeleteTask)(::windows::core::Interface::as_raw(self), bstrtaskname.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.DeleteTask)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtaskname), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2833,32 +2624,29 @@ impl IAzApplication3 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn OpenApplicationGroup<'a, P0, P1>(&self, bstrgroupname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn OpenApplicationGroup<'a, P0>(&self, bstrgroupname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.OpenApplicationGroup)(::windows::core::Interface::as_raw(self), bstrgroupname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.OpenApplicationGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrgroupname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateApplicationGroup<'a, P0, P1>(&self, bstrgroupname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn CreateApplicationGroup<'a, P0>(&self, bstrgroupname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CreateApplicationGroup)(::windows::core::Interface::as_raw(self), bstrgroupname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CreateApplicationGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrgroupname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteApplicationGroup<'a, P0, P1>(&self, bstrgroupname: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteApplicationGroup<'a, P0>(&self, bstrgroupname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.DeleteApplicationGroup)(::windows::core::Interface::as_raw(self), bstrgroupname.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.DeleteApplicationGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrgroupname), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2868,32 +2656,29 @@ impl IAzApplication3 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn OpenRole<'a, P0, P1>(&self, bstrrolename: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn OpenRole<'a, P0>(&self, bstrrolename: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.OpenRole)(::windows::core::Interface::as_raw(self), bstrrolename.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.OpenRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrolename), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateRole<'a, P0, P1>(&self, bstrrolename: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn CreateRole<'a, P0>(&self, bstrrolename: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CreateRole)(::windows::core::Interface::as_raw(self), bstrrolename.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CreateRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrolename), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteRole<'a, P0, P1>(&self, bstrrolename: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteRole<'a, P0>(&self, bstrrolename: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.DeleteRole)(::windows::core::Interface::as_raw(self), bstrrolename.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.DeleteRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrolename), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2932,14 +2717,12 @@ impl IAzApplication3 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn InitializeClientContextFromName<'a, P0, P1, P2>(&self, clientname: P0, domainname: P1, varreserved: P2) -> ::windows::core::Result + pub unsafe fn InitializeClientContextFromName<'a, P0>(&self, clientname: &::windows::core::BSTR, domainname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.InitializeClientContextFromName)(::windows::core::Interface::as_raw(self), clientname.into().abi(), domainname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.InitializeClientContextFromName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(clientname), ::core::mem::transmute_copy(domainname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2949,31 +2732,28 @@ impl IAzApplication3 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddDelegatedPolicyUser<'a, P0, P1>(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddDelegatedPolicyUser<'a, P0>(&self, bstrdelegatedpolicyuser: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.AddDelegatedPolicyUser)(::windows::core::Interface::as_raw(self), bstrdelegatedpolicyuser.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.AddDelegatedPolicyUser)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdelegatedpolicyuser), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteDelegatedPolicyUser<'a, P0, P1>(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteDelegatedPolicyUser<'a, P0>(&self, bstrdelegatedpolicyuser: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.DeleteDelegatedPolicyUser)(::windows::core::Interface::as_raw(self), bstrdelegatedpolicyuser.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.DeleteDelegatedPolicyUser)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdelegatedpolicyuser), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn InitializeClientContextFromStringSid<'a, P0, P1>(&self, sidstring: P0, loptions: i32, varreserved: P1) -> ::windows::core::Result + pub unsafe fn InitializeClientContextFromStringSid<'a, P0>(&self, sidstring: &::windows::core::BSTR, loptions: i32, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.InitializeClientContextFromStringSid)(::windows::core::Interface::as_raw(self), sidstring.into().abi(), loptions, varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.InitializeClientContextFromStringSid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(sidstring), loptions, varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2989,39 +2769,35 @@ impl IAzApplication3 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddPolicyAdministratorName<'a, P0, P1>(&self, bstradmin: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddPolicyAdministratorName<'a, P0>(&self, bstradmin: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.AddPolicyAdministratorName)(::windows::core::Interface::as_raw(self), bstradmin.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.AddPolicyAdministratorName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstradmin), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeletePolicyAdministratorName<'a, P0, P1>(&self, bstradmin: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeletePolicyAdministratorName<'a, P0>(&self, bstradmin: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.DeletePolicyAdministratorName)(::windows::core::Interface::as_raw(self), bstradmin.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.DeletePolicyAdministratorName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstradmin), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddPolicyReaderName<'a, P0, P1>(&self, bstrreader: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddPolicyReaderName<'a, P0>(&self, bstrreader: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.AddPolicyReaderName)(::windows::core::Interface::as_raw(self), bstrreader.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.AddPolicyReaderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrreader), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeletePolicyReaderName<'a, P0, P1>(&self, bstrreader: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeletePolicyReaderName<'a, P0>(&self, bstrreader: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.DeletePolicyReaderName)(::windows::core::Interface::as_raw(self), bstrreader.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.DeletePolicyReaderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrreader), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3031,21 +2807,19 @@ impl IAzApplication3 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddDelegatedPolicyUserName<'a, P0, P1>(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddDelegatedPolicyUserName<'a, P0>(&self, bstrdelegatedpolicyuser: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.AddDelegatedPolicyUserName)(::windows::core::Interface::as_raw(self), bstrdelegatedpolicyuser.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.AddDelegatedPolicyUserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdelegatedpolicyuser), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteDelegatedPolicyUserName<'a, P0, P1>(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteDelegatedPolicyUserName<'a, P0>(&self, bstrdelegatedpolicyuser: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.DeleteDelegatedPolicyUserName)(::windows::core::Interface::as_raw(self), bstrdelegatedpolicyuser.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.DeleteDelegatedPolicyUserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdelegatedpolicyuser), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3058,48 +2832,31 @@ impl IAzApplication3 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn InitializeClientContext2<'a, P0, P1>(&self, identifyingstring: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn InitializeClientContext2<'a, P0>(&self, identifyingstring: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.InitializeClientContext2)(::windows::core::Interface::as_raw(self), identifyingstring.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.InitializeClientContext2)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(identifyingstring), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ScopeExists<'a, P0>(&self, bstrscopename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn ScopeExists(&self, bstrscopename: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ScopeExists)(::windows::core::Interface::as_raw(self), bstrscopename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ScopeExists)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrscopename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn OpenScope2<'a, P0>(&self, bstrscopename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn OpenScope2(&self, bstrscopename: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).OpenScope2)(::windows::core::Interface::as_raw(self), bstrscopename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).OpenScope2)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrscopename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateScope2<'a, P0>(&self, bstrscopename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateScope2(&self, bstrscopename: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateScope2)(::windows::core::Interface::as_raw(self), bstrscopename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateScope2)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrscopename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeleteScope2<'a, P0>(&self, bstrscopename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DeleteScope2)(::windows::core::Interface::as_raw(self), bstrscopename.into().abi()).ok() + pub unsafe fn DeleteScope2(&self, bstrscopename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DeleteScope2)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrscopename)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3107,31 +2864,20 @@ impl IAzApplication3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).RoleDefinitions)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateRoleDefinition<'a, P0>(&self, bstrroledefinitionname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateRoleDefinition(&self, bstrroledefinitionname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateRoleDefinition)(::windows::core::Interface::as_raw(self), bstrroledefinitionname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) - } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn OpenRoleDefinition<'a, P0>(&self, bstrroledefinitionname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + (::windows::core::Interface::vtable(self).CreateRoleDefinition)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrroledefinitionname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + } + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn OpenRoleDefinition(&self, bstrroledefinitionname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).OpenRoleDefinition)(::windows::core::Interface::as_raw(self), bstrroledefinitionname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).OpenRoleDefinition)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrroledefinitionname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeleteRoleDefinition<'a, P0>(&self, bstrroledefinitionname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DeleteRoleDefinition)(::windows::core::Interface::as_raw(self), bstrroledefinitionname.into().abi()).ok() + pub unsafe fn DeleteRoleDefinition(&self, bstrroledefinitionname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DeleteRoleDefinition)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrroledefinitionname)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3139,31 +2885,20 @@ impl IAzApplication3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).RoleAssignments)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateRoleAssignment<'a, P0>(&self, bstrroleassignmentname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateRoleAssignment(&self, bstrroleassignmentname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateRoleAssignment)(::windows::core::Interface::as_raw(self), bstrroleassignmentname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateRoleAssignment)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrroleassignmentname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn OpenRoleAssignment<'a, P0>(&self, bstrroleassignmentname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn OpenRoleAssignment(&self, bstrroleassignmentname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).OpenRoleAssignment)(::windows::core::Interface::as_raw(self), bstrroleassignmentname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).OpenRoleAssignment)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrroleassignmentname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeleteRoleAssignment<'a, P0>(&self, bstrroleassignmentname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DeleteRoleAssignment)(::windows::core::Interface::as_raw(self), bstrroleassignmentname.into().abi()).ok() + pub unsafe fn DeleteRoleAssignment(&self, bstrroleassignmentname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DeleteRoleAssignment)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrroleassignmentname)).ok() } pub unsafe fn BizRulesEnabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3275,54 +3010,42 @@ unsafe impl ::windows::core::Interface for IAzApplication3 { #[doc(hidden)] pub struct IAzApplication3_Vtbl { pub base__: IAzApplication2_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub ScopeExists: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop, pbexist: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ScopeExists: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub OpenScope2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop, ppscope2: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub ScopeExists: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbexist: *mut i16) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub OpenScope2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppscope2: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] OpenScope2: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreateScope2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop, ppscope2: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreateScope2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppscope2: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreateScope2: usize, - #[cfg(feature = "Win32_Foundation")] - pub DeleteScope2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeleteScope2: usize, + pub DeleteScope2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub RoleDefinitions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pproledefinitions: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] RoleDefinitions: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreateRoleDefinition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrroledefinitionname: ::core::mem::ManuallyDrop, pproledefinitions: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreateRoleDefinition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrroledefinitionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pproledefinitions: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreateRoleDefinition: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub OpenRoleDefinition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrroledefinitionname: ::core::mem::ManuallyDrop, pproledefinitions: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub OpenRoleDefinition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrroledefinitionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pproledefinitions: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] OpenRoleDefinition: usize, - #[cfg(feature = "Win32_Foundation")] - pub DeleteRoleDefinition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrroledefinitionname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeleteRoleDefinition: usize, + pub DeleteRoleDefinition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrroledefinitionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub RoleAssignments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pproleassignments: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] RoleAssignments: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreateRoleAssignment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrroleassignmentname: ::core::mem::ManuallyDrop, pproleassignment: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreateRoleAssignment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrroleassignmentname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pproleassignment: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreateRoleAssignment: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub OpenRoleAssignment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrroleassignmentname: ::core::mem::ManuallyDrop, pproleassignment: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub OpenRoleAssignment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrroleassignmentname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pproleassignment: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] OpenRoleAssignment: usize, - #[cfg(feature = "Win32_Foundation")] - pub DeleteRoleAssignment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrroleassignmentname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeleteRoleAssignment: usize, + pub DeleteRoleAssignment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrroleassignmentname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub BizRulesEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbenabled: *mut i16) -> ::windows::core::HRESULT, pub SetBizRulesEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, benabled: i16) -> ::windows::core::HRESULT, } @@ -3332,19 +3055,12 @@ pub struct IAzApplication3_Vtbl { pub struct IAzApplicationGroup(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IAzApplicationGroup { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } pub unsafe fn Type(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3353,19 +3069,12 @@ impl IAzApplicationGroup { pub unsafe fn SetType(&self, lprop: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetType)(::windows::core::Interface::as_raw(self), lprop).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LdapQuery(&self) -> ::windows::core::Result { + pub unsafe fn LdapQuery(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LdapQuery)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LdapQuery)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLdapQuery<'a, P0>(&self, bstrprop: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetLdapQuery)(::windows::core::Interface::as_raw(self), bstrprop.into().abi()).ok() + pub unsafe fn SetLdapQuery(&self, bstrprop: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetLdapQuery)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3391,91 +3100,76 @@ impl IAzApplicationGroup { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).NonMembers)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bstrdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), bstrdescription.into().abi()).ok() + pub unsafe fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdescription)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddAppMember<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddAppMember<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).AddAppMember)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddAppMember)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteAppMember<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteAppMember<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeleteAppMember)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeleteAppMember)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddAppNonMember<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddAppNonMember<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).AddAppNonMember)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddAppNonMember)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteAppNonMember<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteAppNonMember<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeleteAppNonMember)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeleteAppNonMember)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddMember<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddMember<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).AddMember)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddMember)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteMember<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteMember<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeleteMember)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeleteMember)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddNonMember<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddNonMember<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).AddNonMember)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddNonMember)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteNonMember<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteNonMember<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeleteNonMember)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeleteNonMember)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -3529,39 +3223,35 @@ impl IAzApplicationGroup { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddMemberName<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddMemberName<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).AddMemberName)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddMemberName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteMemberName<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteMemberName<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeleteMemberName)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeleteMemberName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddNonMemberName<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddNonMemberName<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).AddNonMemberName)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddNonMemberName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteNonMemberName<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteNonMemberName<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeleteNonMemberName)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeleteNonMemberName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3642,24 +3332,12 @@ unsafe impl ::windows::core::Interface for IAzApplicationGroup { #[doc(hidden)] pub struct IAzApplicationGroup_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plprop: *mut i32) -> ::windows::core::HRESULT, pub SetType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lprop: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub LdapQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprop: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LdapQuery: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetLdapQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetLdapQuery: usize, + pub LdapQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprop: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetLdapQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub AppMembers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvarprop: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -3676,44 +3354,38 @@ pub struct IAzApplicationGroup_Vtbl { pub NonMembers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvarprop: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] NonMembers: usize, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDescription: usize, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddAppMember: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub AddAppMember: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddAppMember: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeleteAppMember: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeleteAppMember: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeleteAppMember: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddAppNonMember: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub AddAppNonMember: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddAppNonMember: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeleteAppNonMember: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeleteAppNonMember: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeleteAppNonMember: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddMember: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub AddMember: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddMember: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeleteMember: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeleteMember: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeleteMember: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddNonMember: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub AddNonMember: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddNonMember: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeleteNonMember: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeleteNonMember: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeleteNonMember: usize, #[cfg(feature = "Win32_Foundation")] @@ -3741,19 +3413,19 @@ pub struct IAzApplicationGroup_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Submit: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddMemberName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub AddMemberName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddMemberName: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeleteMemberName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeleteMemberName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeleteMemberName: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddNonMemberName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub AddNonMemberName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddNonMemberName: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeleteNonMemberName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeleteNonMemberName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeleteNonMemberName: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3771,19 +3443,12 @@ pub struct IAzApplicationGroup_Vtbl { pub struct IAzApplicationGroup2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IAzApplicationGroup2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } pub unsafe fn Type(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3792,19 +3457,12 @@ impl IAzApplicationGroup2 { pub unsafe fn SetType(&self, lprop: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetType)(::windows::core::Interface::as_raw(self), lprop).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LdapQuery(&self) -> ::windows::core::Result { + pub unsafe fn LdapQuery(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.LdapQuery)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.LdapQuery)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLdapQuery<'a, P0>(&self, bstrprop: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetLdapQuery)(::windows::core::Interface::as_raw(self), bstrprop.into().abi()).ok() + pub unsafe fn SetLdapQuery(&self, bstrprop: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetLdapQuery)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3830,91 +3488,76 @@ impl IAzApplicationGroup2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.NonMembers)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bstrdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), bstrdescription.into().abi()).ok() + pub unsafe fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdescription)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddAppMember<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddAppMember<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.AddAppMember)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AddAppMember)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteAppMember<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteAppMember<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeleteAppMember)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeleteAppMember)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddAppNonMember<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddAppNonMember<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.AddAppNonMember)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AddAppNonMember)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteAppNonMember<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteAppNonMember<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeleteAppNonMember)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeleteAppNonMember)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddMember<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddMember<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.AddMember)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AddMember)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteMember<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteMember<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeleteMember)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeleteMember)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddNonMember<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddNonMember<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.AddNonMember)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AddNonMember)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteNonMember<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteNonMember<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeleteNonMember)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeleteNonMember)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -3968,39 +3611,35 @@ impl IAzApplicationGroup2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddMemberName<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddMemberName<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.AddMemberName)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AddMemberName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteMemberName<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteMemberName<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeleteMemberName)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeleteMemberName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddNonMemberName<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddNonMemberName<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.AddNonMemberName)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AddNonMemberName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteNonMemberName<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteNonMemberName<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeleteNonMemberName)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeleteNonMemberName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -4014,56 +3653,32 @@ impl IAzApplicationGroup2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.NonMembersName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BizRule(&self) -> ::windows::core::Result { + pub unsafe fn BizRule(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).BizRule)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).BizRule)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetBizRule<'a, P0>(&self, bstrprop: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetBizRule)(::windows::core::Interface::as_raw(self), bstrprop.into().abi()).ok() + pub unsafe fn SetBizRule(&self, bstrprop: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetBizRule)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BizRuleLanguage(&self) -> ::windows::core::Result { + pub unsafe fn BizRuleLanguage(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).BizRuleLanguage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).BizRuleLanguage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetBizRuleLanguage<'a, P0>(&self, bstrprop: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetBizRuleLanguage)(::windows::core::Interface::as_raw(self), bstrprop.into().abi()).ok() + pub unsafe fn SetBizRuleLanguage(&self, bstrprop: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetBizRuleLanguage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BizRuleImportedPath(&self) -> ::windows::core::Result { + pub unsafe fn BizRuleImportedPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).BizRuleImportedPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).BizRuleImportedPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetBizRuleImportedPath<'a, P0>(&self, bstrprop: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetBizRuleImportedPath)(::windows::core::Interface::as_raw(self), bstrprop.into().abi()).ok() + pub unsafe fn SetBizRuleImportedPath(&self, bstrprop: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetBizRuleImportedPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn RoleAssignments<'a, P0>(&self, bstrscopename: P0, brecursive: i16) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn RoleAssignments(&self, bstrscopename: &::windows::core::BSTR, brecursive: i16) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RoleAssignments)(::windows::core::Interface::as_raw(self), bstrscopename.into().abi(), brecursive, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RoleAssignments)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrscopename), brecursive, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -4150,33 +3765,15 @@ unsafe impl ::windows::core::Interface for IAzApplicationGroup2 { #[doc(hidden)] pub struct IAzApplicationGroup2_Vtbl { pub base__: IAzApplicationGroup_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub BizRule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprop: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BizRule: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetBizRule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetBizRule: usize, - #[cfg(feature = "Win32_Foundation")] - pub BizRuleLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprop: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BizRuleLanguage: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetBizRuleLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetBizRuleLanguage: usize, - #[cfg(feature = "Win32_Foundation")] - pub BizRuleImportedPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprop: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BizRuleImportedPath: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetBizRuleImportedPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetBizRuleImportedPath: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub RoleAssignments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop, brecursive: i16, pproleassignments: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub BizRule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprop: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetBizRule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub BizRuleLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprop: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetBizRuleLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub BizRuleImportedPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprop: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetBizRuleImportedPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub RoleAssignments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, brecursive: i16, pproleassignments: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] RoleAssignments: usize, } #[doc = "*Required features: `\"Win32_Security_Authorization\"`, `\"Win32_System_Com\"`*"] @@ -4373,33 +3970,19 @@ pub struct IAzApplications_Vtbl { pub struct IAzAuthorizationStore(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IAzAuthorizationStore { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bstrdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), bstrdescription.into().abi()).ok() + pub unsafe fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdescription)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ApplicationData(&self) -> ::windows::core::Result { + pub unsafe fn ApplicationData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetApplicationData<'a, P0>(&self, bstrapplicationdata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetApplicationData)(::windows::core::Interface::as_raw(self), bstrapplicationdata.into().abi()).ok() + pub unsafe fn SetApplicationData(&self, bstrapplicationdata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationdata)).ok() } pub unsafe fn DomainTimeout(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4492,48 +4075,43 @@ impl IAzAuthorizationStore { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddPolicyAdministrator<'a, P0, P1>(&self, bstradmin: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddPolicyAdministrator<'a, P0>(&self, bstradmin: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).AddPolicyAdministrator)(::windows::core::Interface::as_raw(self), bstradmin.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddPolicyAdministrator)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstradmin), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeletePolicyAdministrator<'a, P0, P1>(&self, bstradmin: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeletePolicyAdministrator<'a, P0>(&self, bstradmin: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeletePolicyAdministrator)(::windows::core::Interface::as_raw(self), bstradmin.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeletePolicyAdministrator)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstradmin), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddPolicyReader<'a, P0, P1>(&self, bstrreader: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddPolicyReader<'a, P0>(&self, bstrreader: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).AddPolicyReader)(::windows::core::Interface::as_raw(self), bstrreader.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddPolicyReader)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrreader), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeletePolicyReader<'a, P0, P1>(&self, bstrreader: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeletePolicyReader<'a, P0>(&self, bstrreader: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeletePolicyReader)(::windows::core::Interface::as_raw(self), bstrreader.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeletePolicyReader)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrreader), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Initialize<'a, P0, P1>(&self, lflags: AZ_PROP_CONSTANTS, bstrpolicyurl: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn Initialize<'a, P0>(&self, lflags: AZ_PROP_CONSTANTS, bstrpolicyurl: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), lflags, bstrpolicyurl.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute_copy(bstrpolicyurl), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -4559,32 +4137,29 @@ impl IAzAuthorizationStore { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn OpenApplication<'a, P0, P1>(&self, bstrapplicationname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn OpenApplication<'a, P0>(&self, bstrapplicationname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).OpenApplication)(::windows::core::Interface::as_raw(self), bstrapplicationname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).OpenApplication)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateApplication<'a, P0, P1>(&self, bstrapplicationname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn CreateApplication<'a, P0>(&self, bstrapplicationname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateApplication)(::windows::core::Interface::as_raw(self), bstrapplicationname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateApplication)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteApplication<'a, P0, P1>(&self, bstrapplicationname: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteApplication<'a, P0>(&self, bstrapplicationname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeleteApplication)(::windows::core::Interface::as_raw(self), bstrapplicationname.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeleteApplication)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationname), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4594,32 +4169,29 @@ impl IAzAuthorizationStore { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateApplicationGroup<'a, P0, P1>(&self, bstrgroupname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn CreateApplicationGroup<'a, P0>(&self, bstrgroupname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateApplicationGroup)(::windows::core::Interface::as_raw(self), bstrgroupname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateApplicationGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrgroupname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn OpenApplicationGroup<'a, P0, P1>(&self, bstrgroupname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn OpenApplicationGroup<'a, P0>(&self, bstrgroupname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).OpenApplicationGroup)(::windows::core::Interface::as_raw(self), bstrgroupname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).OpenApplicationGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrgroupname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteApplicationGroup<'a, P0, P1>(&self, bstrgroupname: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteApplicationGroup<'a, P0>(&self, bstrgroupname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeleteApplicationGroup)(::windows::core::Interface::as_raw(self), bstrgroupname.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeleteApplicationGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrgroupname), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -4637,27 +4209,23 @@ impl IAzAuthorizationStore { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddDelegatedPolicyUser<'a, P0, P1>(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddDelegatedPolicyUser<'a, P0>(&self, bstrdelegatedpolicyuser: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).AddDelegatedPolicyUser)(::windows::core::Interface::as_raw(self), bstrdelegatedpolicyuser.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddDelegatedPolicyUser)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdelegatedpolicyuser), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteDelegatedPolicyUser<'a, P0, P1>(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteDelegatedPolicyUser<'a, P0>(&self, bstrdelegatedpolicyuser: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeleteDelegatedPolicyUser)(::windows::core::Interface::as_raw(self), bstrdelegatedpolicyuser.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeleteDelegatedPolicyUser)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdelegatedpolicyuser), varreserved.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TargetMachine(&self) -> ::windows::core::Result { + pub unsafe fn TargetMachine(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TargetMachine)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TargetMachine)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -4687,39 +4255,35 @@ impl IAzAuthorizationStore { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddPolicyAdministratorName<'a, P0, P1>(&self, bstradmin: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddPolicyAdministratorName<'a, P0>(&self, bstradmin: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).AddPolicyAdministratorName)(::windows::core::Interface::as_raw(self), bstradmin.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddPolicyAdministratorName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstradmin), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeletePolicyAdministratorName<'a, P0, P1>(&self, bstradmin: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeletePolicyAdministratorName<'a, P0>(&self, bstradmin: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeletePolicyAdministratorName)(::windows::core::Interface::as_raw(self), bstradmin.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeletePolicyAdministratorName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstradmin), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddPolicyReaderName<'a, P0, P1>(&self, bstrreader: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddPolicyReaderName<'a, P0>(&self, bstrreader: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).AddPolicyReaderName)(::windows::core::Interface::as_raw(self), bstrreader.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddPolicyReaderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrreader), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeletePolicyReaderName<'a, P0, P1>(&self, bstrreader: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeletePolicyReaderName<'a, P0>(&self, bstrreader: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeletePolicyReaderName)(::windows::core::Interface::as_raw(self), bstrreader.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeletePolicyReaderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrreader), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -4729,29 +4293,22 @@ impl IAzAuthorizationStore { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddDelegatedPolicyUserName<'a, P0, P1>(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddDelegatedPolicyUserName<'a, P0>(&self, bstrdelegatedpolicyuser: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).AddDelegatedPolicyUserName)(::windows::core::Interface::as_raw(self), bstrdelegatedpolicyuser.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddDelegatedPolicyUserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdelegatedpolicyuser), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteDelegatedPolicyUserName<'a, P0, P1>(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteDelegatedPolicyUserName<'a, P0>(&self, bstrdelegatedpolicyuser: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeleteDelegatedPolicyUserName)(::windows::core::Interface::as_raw(self), bstrdelegatedpolicyuser.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeleteDelegatedPolicyUserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdelegatedpolicyuser), varreserved.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CloseApplication<'a, P0>(&self, bstrapplicationname: P0, lflag: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).CloseApplication)(::windows::core::Interface::as_raw(self), bstrapplicationname.into().abi(), lflag).ok() + pub unsafe fn CloseApplication(&self, bstrapplicationname: &::windows::core::BSTR, lflag: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).CloseApplication)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationname), lflag).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4820,22 +4377,10 @@ unsafe impl ::windows::core::Interface for IAzAuthorizationStore { #[doc(hidden)] pub struct IAzAuthorizationStore_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDescription: usize, - #[cfg(feature = "Win32_Foundation")] - pub ApplicationData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrapplicationdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ApplicationData: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetApplicationData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationdata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetApplicationData: usize, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ApplicationData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrapplicationdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetApplicationData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub DomainTimeout: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plprop: *mut i32) -> ::windows::core::HRESULT, pub SetDomainTimeout: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lprop: i32) -> ::windows::core::HRESULT, pub ScriptEngineTimeout: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plprop: *mut i32) -> ::windows::core::HRESULT, @@ -4879,23 +4424,23 @@ pub struct IAzAuthorizationStore_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] PolicyReaders: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddPolicyAdministrator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub AddPolicyAdministrator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddPolicyAdministrator: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeletePolicyAdministrator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeletePolicyAdministrator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeletePolicyAdministrator: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddPolicyReader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub AddPolicyReader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddPolicyReader: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeletePolicyReader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeletePolicyReader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeletePolicyReader: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: AZ_PROP_CONSTANTS, bstrpolicyurl: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: AZ_PROP_CONSTANTS, bstrpolicyurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Initialize: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -4911,15 +4456,15 @@ pub struct IAzAuthorizationStore_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Applications: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub OpenApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, ppapplication: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub OpenApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, ppapplication: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] OpenApplication: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub CreateApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, ppapplication: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub CreateApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, ppapplication: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] CreateApplication: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeleteApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeleteApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeleteApplication: usize, #[cfg(feature = "Win32_System_Com")] @@ -4927,15 +4472,15 @@ pub struct IAzAuthorizationStore_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ApplicationGroups: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub CreateApplicationGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub CreateApplicationGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] CreateApplicationGroup: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub OpenApplicationGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub OpenApplicationGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] OpenApplicationGroup: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeleteApplicationGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeleteApplicationGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeleteApplicationGroup: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -4947,17 +4492,14 @@ pub struct IAzAuthorizationStore_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DelegatedPolicyUsers: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddDelegatedPolicyUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdelegatedpolicyuser: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub AddDelegatedPolicyUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdelegatedpolicyuser: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddDelegatedPolicyUser: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeleteDelegatedPolicyUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdelegatedpolicyuser: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeleteDelegatedPolicyUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdelegatedpolicyuser: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeleteDelegatedPolicyUser: usize, - #[cfg(feature = "Win32_Foundation")] - pub TargetMachine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtargetmachine: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TargetMachine: usize, + pub TargetMachine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtargetmachine: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub ApplyStoreSacl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbapplystoresacl: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -4975,19 +4517,19 @@ pub struct IAzAuthorizationStore_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] PolicyReadersName: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddPolicyAdministratorName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub AddPolicyAdministratorName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddPolicyAdministratorName: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeletePolicyAdministratorName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeletePolicyAdministratorName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeletePolicyAdministratorName: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddPolicyReaderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub AddPolicyReaderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddPolicyReaderName: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeletePolicyReaderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeletePolicyReaderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeletePolicyReaderName: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -4995,17 +4537,14 @@ pub struct IAzAuthorizationStore_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DelegatedPolicyUsersName: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddDelegatedPolicyUserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdelegatedpolicyuser: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub AddDelegatedPolicyUserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdelegatedpolicyuser: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddDelegatedPolicyUserName: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeleteDelegatedPolicyUserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdelegatedpolicyuser: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeleteDelegatedPolicyUserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdelegatedpolicyuser: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeleteDelegatedPolicyUserName: usize, - #[cfg(feature = "Win32_Foundation")] - pub CloseApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationname: ::core::mem::ManuallyDrop, lflag: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CloseApplication: usize, + pub CloseApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflag: i32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Authorization\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5013,33 +4552,19 @@ pub struct IAzAuthorizationStore_Vtbl { pub struct IAzAuthorizationStore2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IAzAuthorizationStore2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bstrdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), bstrdescription.into().abi()).ok() + pub unsafe fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdescription)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ApplicationData(&self) -> ::windows::core::Result { + pub unsafe fn ApplicationData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetApplicationData<'a, P0>(&self, bstrapplicationdata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetApplicationData)(::windows::core::Interface::as_raw(self), bstrapplicationdata.into().abi()).ok() + pub unsafe fn SetApplicationData(&self, bstrapplicationdata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationdata)).ok() } pub unsafe fn DomainTimeout(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5132,48 +4657,43 @@ impl IAzAuthorizationStore2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddPolicyAdministrator<'a, P0, P1>(&self, bstradmin: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddPolicyAdministrator<'a, P0>(&self, bstradmin: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.AddPolicyAdministrator)(::windows::core::Interface::as_raw(self), bstradmin.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AddPolicyAdministrator)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstradmin), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeletePolicyAdministrator<'a, P0, P1>(&self, bstradmin: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeletePolicyAdministrator<'a, P0>(&self, bstradmin: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeletePolicyAdministrator)(::windows::core::Interface::as_raw(self), bstradmin.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeletePolicyAdministrator)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstradmin), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddPolicyReader<'a, P0, P1>(&self, bstrreader: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddPolicyReader<'a, P0>(&self, bstrreader: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.AddPolicyReader)(::windows::core::Interface::as_raw(self), bstrreader.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AddPolicyReader)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrreader), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeletePolicyReader<'a, P0, P1>(&self, bstrreader: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeletePolicyReader<'a, P0>(&self, bstrreader: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeletePolicyReader)(::windows::core::Interface::as_raw(self), bstrreader.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeletePolicyReader)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrreader), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Initialize<'a, P0, P1>(&self, lflags: AZ_PROP_CONSTANTS, bstrpolicyurl: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn Initialize<'a, P0>(&self, lflags: AZ_PROP_CONSTANTS, bstrpolicyurl: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), lflags, bstrpolicyurl.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute_copy(bstrpolicyurl), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -5199,32 +4719,29 @@ impl IAzAuthorizationStore2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn OpenApplication<'a, P0, P1>(&self, bstrapplicationname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn OpenApplication<'a, P0>(&self, bstrapplicationname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.OpenApplication)(::windows::core::Interface::as_raw(self), bstrapplicationname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.OpenApplication)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateApplication<'a, P0, P1>(&self, bstrapplicationname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn CreateApplication<'a, P0>(&self, bstrapplicationname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CreateApplication)(::windows::core::Interface::as_raw(self), bstrapplicationname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CreateApplication)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteApplication<'a, P0, P1>(&self, bstrapplicationname: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteApplication<'a, P0>(&self, bstrapplicationname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeleteApplication)(::windows::core::Interface::as_raw(self), bstrapplicationname.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeleteApplication)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationname), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5234,32 +4751,29 @@ impl IAzAuthorizationStore2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateApplicationGroup<'a, P0, P1>(&self, bstrgroupname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn CreateApplicationGroup<'a, P0>(&self, bstrgroupname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CreateApplicationGroup)(::windows::core::Interface::as_raw(self), bstrgroupname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CreateApplicationGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrgroupname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn OpenApplicationGroup<'a, P0, P1>(&self, bstrgroupname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn OpenApplicationGroup<'a, P0>(&self, bstrgroupname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.OpenApplicationGroup)(::windows::core::Interface::as_raw(self), bstrgroupname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.OpenApplicationGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrgroupname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteApplicationGroup<'a, P0, P1>(&self, bstrgroupname: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteApplicationGroup<'a, P0>(&self, bstrgroupname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeleteApplicationGroup)(::windows::core::Interface::as_raw(self), bstrgroupname.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeleteApplicationGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrgroupname), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -5277,27 +4791,23 @@ impl IAzAuthorizationStore2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddDelegatedPolicyUser<'a, P0, P1>(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddDelegatedPolicyUser<'a, P0>(&self, bstrdelegatedpolicyuser: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.AddDelegatedPolicyUser)(::windows::core::Interface::as_raw(self), bstrdelegatedpolicyuser.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AddDelegatedPolicyUser)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdelegatedpolicyuser), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteDelegatedPolicyUser<'a, P0, P1>(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteDelegatedPolicyUser<'a, P0>(&self, bstrdelegatedpolicyuser: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeleteDelegatedPolicyUser)(::windows::core::Interface::as_raw(self), bstrdelegatedpolicyuser.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeleteDelegatedPolicyUser)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdelegatedpolicyuser), varreserved.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TargetMachine(&self) -> ::windows::core::Result { + pub unsafe fn TargetMachine(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.TargetMachine)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.TargetMachine)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -5327,39 +4837,35 @@ impl IAzAuthorizationStore2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddPolicyAdministratorName<'a, P0, P1>(&self, bstradmin: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddPolicyAdministratorName<'a, P0>(&self, bstradmin: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.AddPolicyAdministratorName)(::windows::core::Interface::as_raw(self), bstradmin.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AddPolicyAdministratorName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstradmin), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeletePolicyAdministratorName<'a, P0, P1>(&self, bstradmin: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeletePolicyAdministratorName<'a, P0>(&self, bstradmin: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeletePolicyAdministratorName)(::windows::core::Interface::as_raw(self), bstradmin.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeletePolicyAdministratorName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstradmin), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddPolicyReaderName<'a, P0, P1>(&self, bstrreader: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddPolicyReaderName<'a, P0>(&self, bstrreader: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.AddPolicyReaderName)(::windows::core::Interface::as_raw(self), bstrreader.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AddPolicyReaderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrreader), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeletePolicyReaderName<'a, P0, P1>(&self, bstrreader: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeletePolicyReaderName<'a, P0>(&self, bstrreader: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeletePolicyReaderName)(::windows::core::Interface::as_raw(self), bstrreader.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeletePolicyReaderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrreader), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -5369,49 +4875,40 @@ impl IAzAuthorizationStore2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddDelegatedPolicyUserName<'a, P0, P1>(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddDelegatedPolicyUserName<'a, P0>(&self, bstrdelegatedpolicyuser: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.AddDelegatedPolicyUserName)(::windows::core::Interface::as_raw(self), bstrdelegatedpolicyuser.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AddDelegatedPolicyUserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdelegatedpolicyuser), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteDelegatedPolicyUserName<'a, P0, P1>(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteDelegatedPolicyUserName<'a, P0>(&self, bstrdelegatedpolicyuser: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeleteDelegatedPolicyUserName)(::windows::core::Interface::as_raw(self), bstrdelegatedpolicyuser.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeleteDelegatedPolicyUserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdelegatedpolicyuser), varreserved.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CloseApplication<'a, P0>(&self, bstrapplicationname: P0, lflag: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.CloseApplication)(::windows::core::Interface::as_raw(self), bstrapplicationname.into().abi(), lflag).ok() + pub unsafe fn CloseApplication(&self, bstrapplicationname: &::windows::core::BSTR, lflag: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.CloseApplication)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationname), lflag).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn OpenApplication2<'a, P0, P1>(&self, bstrapplicationname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn OpenApplication2<'a, P0>(&self, bstrapplicationname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).OpenApplication2)(::windows::core::Interface::as_raw(self), bstrapplicationname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).OpenApplication2)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateApplication2<'a, P0, P1>(&self, bstrapplicationname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn CreateApplication2<'a, P0>(&self, bstrapplicationname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateApplication2)(::windows::core::Interface::as_raw(self), bstrapplicationname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateApplication2)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -5499,11 +4996,11 @@ unsafe impl ::windows::core::Interface for IAzAuthorizationStore2 { pub struct IAzAuthorizationStore2_Vtbl { pub base__: IAzAuthorizationStore_Vtbl, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub OpenApplication2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, ppapplication: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub OpenApplication2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, ppapplication: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] OpenApplication2: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub CreateApplication2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, ppapplication: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub CreateApplication2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, ppapplication: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] CreateApplication2: usize, } @@ -5513,33 +5010,19 @@ pub struct IAzAuthorizationStore2_Vtbl { pub struct IAzAuthorizationStore3(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IAzAuthorizationStore3 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bstrdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetDescription)(::windows::core::Interface::as_raw(self), bstrdescription.into().abi()).ok() + pub unsafe fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdescription)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ApplicationData(&self) -> ::windows::core::Result { + pub unsafe fn ApplicationData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.ApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.ApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetApplicationData<'a, P0>(&self, bstrapplicationdata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetApplicationData)(::windows::core::Interface::as_raw(self), bstrapplicationdata.into().abi()).ok() + pub unsafe fn SetApplicationData(&self, bstrapplicationdata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationdata)).ok() } pub unsafe fn DomainTimeout(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5632,48 +5115,43 @@ impl IAzAuthorizationStore3 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddPolicyAdministrator<'a, P0, P1>(&self, bstradmin: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddPolicyAdministrator<'a, P0>(&self, bstradmin: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.AddPolicyAdministrator)(::windows::core::Interface::as_raw(self), bstradmin.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.AddPolicyAdministrator)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstradmin), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeletePolicyAdministrator<'a, P0, P1>(&self, bstradmin: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeletePolicyAdministrator<'a, P0>(&self, bstradmin: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.DeletePolicyAdministrator)(::windows::core::Interface::as_raw(self), bstradmin.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.DeletePolicyAdministrator)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstradmin), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddPolicyReader<'a, P0, P1>(&self, bstrreader: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddPolicyReader<'a, P0>(&self, bstrreader: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.AddPolicyReader)(::windows::core::Interface::as_raw(self), bstrreader.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.AddPolicyReader)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrreader), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeletePolicyReader<'a, P0, P1>(&self, bstrreader: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeletePolicyReader<'a, P0>(&self, bstrreader: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.DeletePolicyReader)(::windows::core::Interface::as_raw(self), bstrreader.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.DeletePolicyReader)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrreader), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Initialize<'a, P0, P1>(&self, lflags: AZ_PROP_CONSTANTS, bstrpolicyurl: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn Initialize<'a, P0>(&self, lflags: AZ_PROP_CONSTANTS, bstrpolicyurl: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.Initialize)(::windows::core::Interface::as_raw(self), lflags, bstrpolicyurl.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.Initialize)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute_copy(bstrpolicyurl), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -5699,32 +5177,29 @@ impl IAzAuthorizationStore3 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn OpenApplication<'a, P0, P1>(&self, bstrapplicationname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn OpenApplication<'a, P0>(&self, bstrapplicationname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.OpenApplication)(::windows::core::Interface::as_raw(self), bstrapplicationname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.OpenApplication)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateApplication<'a, P0, P1>(&self, bstrapplicationname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn CreateApplication<'a, P0>(&self, bstrapplicationname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CreateApplication)(::windows::core::Interface::as_raw(self), bstrapplicationname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CreateApplication)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteApplication<'a, P0, P1>(&self, bstrapplicationname: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteApplication<'a, P0>(&self, bstrapplicationname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.DeleteApplication)(::windows::core::Interface::as_raw(self), bstrapplicationname.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.DeleteApplication)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationname), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5734,32 +5209,29 @@ impl IAzAuthorizationStore3 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateApplicationGroup<'a, P0, P1>(&self, bstrgroupname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn CreateApplicationGroup<'a, P0>(&self, bstrgroupname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CreateApplicationGroup)(::windows::core::Interface::as_raw(self), bstrgroupname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CreateApplicationGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrgroupname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn OpenApplicationGroup<'a, P0, P1>(&self, bstrgroupname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn OpenApplicationGroup<'a, P0>(&self, bstrgroupname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.OpenApplicationGroup)(::windows::core::Interface::as_raw(self), bstrgroupname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.OpenApplicationGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrgroupname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteApplicationGroup<'a, P0, P1>(&self, bstrgroupname: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteApplicationGroup<'a, P0>(&self, bstrgroupname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.DeleteApplicationGroup)(::windows::core::Interface::as_raw(self), bstrgroupname.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.DeleteApplicationGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrgroupname), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -5777,27 +5249,23 @@ impl IAzAuthorizationStore3 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddDelegatedPolicyUser<'a, P0, P1>(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddDelegatedPolicyUser<'a, P0>(&self, bstrdelegatedpolicyuser: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.AddDelegatedPolicyUser)(::windows::core::Interface::as_raw(self), bstrdelegatedpolicyuser.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.AddDelegatedPolicyUser)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdelegatedpolicyuser), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteDelegatedPolicyUser<'a, P0, P1>(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteDelegatedPolicyUser<'a, P0>(&self, bstrdelegatedpolicyuser: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.DeleteDelegatedPolicyUser)(::windows::core::Interface::as_raw(self), bstrdelegatedpolicyuser.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.DeleteDelegatedPolicyUser)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdelegatedpolicyuser), varreserved.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TargetMachine(&self) -> ::windows::core::Result { + pub unsafe fn TargetMachine(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.TargetMachine)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.TargetMachine)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -5827,39 +5295,35 @@ impl IAzAuthorizationStore3 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddPolicyAdministratorName<'a, P0, P1>(&self, bstradmin: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddPolicyAdministratorName<'a, P0>(&self, bstradmin: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.AddPolicyAdministratorName)(::windows::core::Interface::as_raw(self), bstradmin.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.AddPolicyAdministratorName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstradmin), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeletePolicyAdministratorName<'a, P0, P1>(&self, bstradmin: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeletePolicyAdministratorName<'a, P0>(&self, bstradmin: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.DeletePolicyAdministratorName)(::windows::core::Interface::as_raw(self), bstradmin.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.DeletePolicyAdministratorName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstradmin), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddPolicyReaderName<'a, P0, P1>(&self, bstrreader: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddPolicyReaderName<'a, P0>(&self, bstrreader: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.AddPolicyReaderName)(::windows::core::Interface::as_raw(self), bstrreader.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.AddPolicyReaderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrreader), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeletePolicyReaderName<'a, P0, P1>(&self, bstrreader: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeletePolicyReaderName<'a, P0>(&self, bstrreader: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.DeletePolicyReaderName)(::windows::core::Interface::as_raw(self), bstrreader.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.DeletePolicyReaderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrreader), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -5869,49 +5333,40 @@ impl IAzAuthorizationStore3 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddDelegatedPolicyUserName<'a, P0, P1>(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddDelegatedPolicyUserName<'a, P0>(&self, bstrdelegatedpolicyuser: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.AddDelegatedPolicyUserName)(::windows::core::Interface::as_raw(self), bstrdelegatedpolicyuser.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.AddDelegatedPolicyUserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdelegatedpolicyuser), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteDelegatedPolicyUserName<'a, P0, P1>(&self, bstrdelegatedpolicyuser: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteDelegatedPolicyUserName<'a, P0>(&self, bstrdelegatedpolicyuser: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.DeleteDelegatedPolicyUserName)(::windows::core::Interface::as_raw(self), bstrdelegatedpolicyuser.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.DeleteDelegatedPolicyUserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdelegatedpolicyuser), varreserved.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CloseApplication<'a, P0>(&self, bstrapplicationname: P0, lflag: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.CloseApplication)(::windows::core::Interface::as_raw(self), bstrapplicationname.into().abi(), lflag).ok() + pub unsafe fn CloseApplication(&self, bstrapplicationname: &::windows::core::BSTR, lflag: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.CloseApplication)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationname), lflag).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn OpenApplication2<'a, P0, P1>(&self, bstrapplicationname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn OpenApplication2<'a, P0>(&self, bstrapplicationname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.OpenApplication2)(::windows::core::Interface::as_raw(self), bstrapplicationname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.OpenApplication2)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateApplication2<'a, P0, P1>(&self, bstrapplicationname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn CreateApplication2<'a, P0>(&self, bstrapplicationname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CreateApplication2)(::windows::core::Interface::as_raw(self), bstrapplicationname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CreateApplication2)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn IsUpdateNeeded(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6054,28 +5509,18 @@ impl IAzBizRuleContext { { (::windows::core::Interface::vtable(self).SetBusinessRuleResult)(::windows::core::Interface::as_raw(self), bresult.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetBusinessRuleString<'a, P0>(&self, bstrbusinessrulestring: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetBusinessRuleString)(::windows::core::Interface::as_raw(self), bstrbusinessrulestring.into().abi()).ok() + pub unsafe fn SetBusinessRuleString(&self, bstrbusinessrulestring: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetBusinessRuleString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrbusinessrulestring)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BusinessRuleString(&self) -> ::windows::core::Result { + pub unsafe fn BusinessRuleString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).BusinessRuleString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).BusinessRuleString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetParameter<'a, P0>(&self, bstrparametername: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetParameter(&self, bstrparametername: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetParameter)(::windows::core::Interface::as_raw(self), bstrparametername.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetParameter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrparametername), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -6148,16 +5593,10 @@ pub struct IAzBizRuleContext_Vtbl { pub SetBusinessRuleResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bresult: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] SetBusinessRuleResult: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetBusinessRuleString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrbusinessrulestring: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetBusinessRuleString: usize, - #[cfg(feature = "Win32_Foundation")] - pub BusinessRuleString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbusinessrulestring: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BusinessRuleString: usize, + pub SetBusinessRuleString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrbusinessrulestring: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub BusinessRuleString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbusinessrulestring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetParameter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrparametername: ::core::mem::ManuallyDrop, pvarparametervalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetParameter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrparametername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarparametervalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetParameter: usize, } @@ -6169,12 +5608,11 @@ pub struct IAzBizRuleInterfaces(::windows::core::IUnknown); impl IAzBizRuleInterfaces { #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddInterface<'a, P0, P1>(&self, bstrinterfacename: P0, linterfaceflag: i32, varinterface: P1) -> ::windows::core::Result<()> + pub unsafe fn AddInterface<'a, P0>(&self, bstrinterfacename: &::windows::core::BSTR, linterfaceflag: i32, varinterface: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).AddInterface)(::windows::core::Interface::as_raw(self), bstrinterfacename.into().abi(), linterfaceflag, varinterface.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddInterface)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrinterfacename), linterfaceflag, varinterface.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -6188,19 +5626,11 @@ impl IAzBizRuleInterfaces { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetInterfaceValue<'a, P0>(&self, bstrinterfacename: P0, linterfaceflag: &mut i32, varinterface: &mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetInterfaceValue)(::windows::core::Interface::as_raw(self), bstrinterfacename.into().abi(), ::core::mem::transmute(linterfaceflag), ::core::mem::transmute(varinterface)).ok() + pub unsafe fn GetInterfaceValue(&self, bstrinterfacename: &::windows::core::BSTR, linterfaceflag: &mut i32, varinterface: &mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetInterfaceValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrinterfacename), ::core::mem::transmute(linterfaceflag), ::core::mem::transmute(varinterface)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Remove<'a, P0>(&self, bstrinterfacename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), bstrinterfacename.into().abi()).ok() + pub unsafe fn Remove(&self, bstrinterfacename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrinterfacename)).ok() } pub unsafe fn RemoveAll(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RemoveAll)(::windows::core::Interface::as_raw(self)).ok() @@ -6277,7 +5707,7 @@ unsafe impl ::windows::core::Interface for IAzBizRuleInterfaces { pub struct IAzBizRuleInterfaces_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinterfacename: ::core::mem::ManuallyDrop, linterfaceflag: i32, varinterface: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub AddInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinterfacename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, linterfaceflag: i32, varinterface: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddInterface: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -6285,13 +5715,10 @@ pub struct IAzBizRuleInterfaces_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddInterfaces: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetInterfaceValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinterfacename: ::core::mem::ManuallyDrop, linterfaceflag: *mut i32, varinterface: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetInterfaceValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinterfacename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, linterfaceflag: *mut i32, varinterface: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetInterfaceValue: usize, - #[cfg(feature = "Win32_Foundation")] - pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinterfacename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Remove: usize, + pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinterfacename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub RemoveAll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut u32) -> ::windows::core::HRESULT, } @@ -6303,12 +5730,11 @@ pub struct IAzBizRuleParameters(::windows::core::IUnknown); impl IAzBizRuleParameters { #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddParameter<'a, P0, P1>(&self, bstrparametername: P0, varparametervalue: P1) -> ::windows::core::Result<()> + pub unsafe fn AddParameter<'a, P0>(&self, bstrparametername: &::windows::core::BSTR, varparametervalue: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).AddParameter)(::windows::core::Interface::as_raw(self), bstrparametername.into().abi(), varparametervalue.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddParameter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrparametername), varparametervalue.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -6321,20 +5747,12 @@ impl IAzBizRuleParameters { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetParameterValue<'a, P0>(&self, bstrparametername: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetParameterValue(&self, bstrparametername: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetParameterValue)(::windows::core::Interface::as_raw(self), bstrparametername.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetParameterValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrparametername), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Remove<'a, P0>(&self, varparametername: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), varparametername.into().abi()).ok() + pub unsafe fn Remove(&self, varparametername: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(varparametername)).ok() } pub unsafe fn RemoveAll(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RemoveAll)(::windows::core::Interface::as_raw(self)).ok() @@ -6411,7 +5829,7 @@ unsafe impl ::windows::core::Interface for IAzBizRuleParameters { pub struct IAzBizRuleParameters_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddParameter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrparametername: ::core::mem::ManuallyDrop, varparametervalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub AddParameter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrparametername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varparametervalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddParameter: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -6419,13 +5837,10 @@ pub struct IAzBizRuleParameters_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddParameters: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetParameterValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrparametername: ::core::mem::ManuallyDrop, pvarparametervalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetParameterValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrparametername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarparametervalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetParameterValue: usize, - #[cfg(feature = "Win32_Foundation")] - pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varparametername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Remove: usize, + pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varparametername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub RemoveAll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut u32) -> ::windows::core::HRESULT, } @@ -6437,67 +5852,50 @@ pub struct IAzClientContext(::windows::core::IUnknown); impl IAzClientContext { #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AccessCheck<'a, P0, P1, P2, P3, P4, P5, P6, P7>(&self, bstrobjectname: P0, varscopenames: P1, varoperations: P2, varparameternames: P3, varparametervalues: P4, varinterfacenames: P5, varinterfaceflags: P6, varinterfaces: P7) -> ::windows::core::Result + pub unsafe fn AccessCheck<'a, P0, P1, P2, P3, P4, P5, P6>(&self, bstrobjectname: &::windows::core::BSTR, varscopenames: P0, varoperations: P1, varparameternames: P2, varparametervalues: P3, varinterfacenames: P4, varinterfaceflags: P5, varinterfaces: P6) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P5: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P6: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, - P7: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AccessCheck)(::windows::core::Interface::as_raw(self), bstrobjectname.into().abi(), varscopenames.into().abi(), varoperations.into().abi(), varparameternames.into().abi(), varparametervalues.into().abi(), varinterfacenames.into().abi(), varinterfaceflags.into().abi(), varinterfaces.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AccessCheck)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrobjectname), varscopenames.into().abi(), varoperations.into().abi(), varparameternames.into().abi(), varparametervalues.into().abi(), varinterfacenames.into().abi(), varinterfaceflags.into().abi(), varinterfaces.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetBusinessRuleString(&self) -> ::windows::core::Result { + pub unsafe fn GetBusinessRuleString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetBusinessRuleString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetBusinessRuleString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserDn(&self) -> ::windows::core::Result { + pub unsafe fn UserDn(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UserDn)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UserDn)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserSamCompat(&self) -> ::windows::core::Result { + pub unsafe fn UserSamCompat(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UserSamCompat)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UserSamCompat)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserDisplay(&self) -> ::windows::core::Result { + pub unsafe fn UserDisplay(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UserDisplay)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UserDisplay)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserGuid(&self) -> ::windows::core::Result { + pub unsafe fn UserGuid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UserGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UserGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserCanonical(&self) -> ::windows::core::Result { + pub unsafe fn UserCanonical(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UserCanonical)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UserCanonical)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserUpn(&self) -> ::windows::core::Result { + pub unsafe fn UserUpn(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UserUpn)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UserUpn)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserDnsSamCompat(&self) -> ::windows::core::Result { + pub unsafe fn UserDnsSamCompat(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UserDnsSamCompat)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UserDnsSamCompat)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -6510,26 +5908,16 @@ impl IAzClientContext { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetRoles<'a, P0>(&self, bstrscopename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetRoles(&self, bstrscopename: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetRoles)(::windows::core::Interface::as_raw(self), bstrscopename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetRoles)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrscopename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RoleForAccessCheck(&self) -> ::windows::core::Result { + pub unsafe fn RoleForAccessCheck(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RoleForAccessCheck)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RoleForAccessCheck)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRoleForAccessCheck<'a, P0>(&self, bstrprop: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetRoleForAccessCheck)(::windows::core::Interface::as_raw(self), bstrprop.into().abi()).ok() + pub unsafe fn SetRoleForAccessCheck(&self, bstrprop: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetRoleForAccessCheck)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6599,57 +5987,27 @@ unsafe impl ::windows::core::Interface for IAzClientContext { pub struct IAzClientContext_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AccessCheck: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrobjectname: ::core::mem::ManuallyDrop, varscopenames: ::core::mem::ManuallyDrop, varoperations: ::core::mem::ManuallyDrop, varparameternames: ::core::mem::ManuallyDrop, varparametervalues: ::core::mem::ManuallyDrop, varinterfacenames: ::core::mem::ManuallyDrop, varinterfaceflags: ::core::mem::ManuallyDrop, varinterfaces: ::core::mem::ManuallyDrop, pvarresults: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub AccessCheck: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrobjectname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varscopenames: ::core::mem::ManuallyDrop, varoperations: ::core::mem::ManuallyDrop, varparameternames: ::core::mem::ManuallyDrop, varparametervalues: ::core::mem::ManuallyDrop, varinterfacenames: ::core::mem::ManuallyDrop, varinterfaceflags: ::core::mem::ManuallyDrop, varinterfaces: ::core::mem::ManuallyDrop, pvarresults: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AccessCheck: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetBusinessRuleString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbusinessrulestring: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetBusinessRuleString: usize, - #[cfg(feature = "Win32_Foundation")] - pub UserDn: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprop: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UserDn: usize, - #[cfg(feature = "Win32_Foundation")] - pub UserSamCompat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprop: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UserSamCompat: usize, - #[cfg(feature = "Win32_Foundation")] - pub UserDisplay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprop: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UserDisplay: usize, - #[cfg(feature = "Win32_Foundation")] - pub UserGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprop: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UserGuid: usize, - #[cfg(feature = "Win32_Foundation")] - pub UserCanonical: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprop: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UserCanonical: usize, - #[cfg(feature = "Win32_Foundation")] - pub UserUpn: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprop: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UserUpn: usize, - #[cfg(feature = "Win32_Foundation")] - pub UserDnsSamCompat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprop: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UserDnsSamCompat: usize, + pub GetBusinessRuleString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbusinessrulestring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub UserDn: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprop: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub UserSamCompat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprop: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub UserDisplay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprop: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub UserGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprop: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub UserCanonical: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprop: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub UserUpn: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprop: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub UserDnsSamCompat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprop: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub GetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpropid: i32, varreserved: ::core::mem::ManuallyDrop, pvarprop: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetProperty: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetRoles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop, pvarrolenames: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetRoles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarrolenames: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetRoles: usize, - #[cfg(feature = "Win32_Foundation")] - pub RoleForAccessCheck: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprop: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RoleForAccessCheck: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetRoleForAccessCheck: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetRoleForAccessCheck: usize, + pub RoleForAccessCheck: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprop: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetRoleForAccessCheck: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Authorization\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6659,67 +6017,50 @@ pub struct IAzClientContext2(::windows::core::IUnknown); impl IAzClientContext2 { #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AccessCheck<'a, P0, P1, P2, P3, P4, P5, P6, P7>(&self, bstrobjectname: P0, varscopenames: P1, varoperations: P2, varparameternames: P3, varparametervalues: P4, varinterfacenames: P5, varinterfaceflags: P6, varinterfaces: P7) -> ::windows::core::Result + pub unsafe fn AccessCheck<'a, P0, P1, P2, P3, P4, P5, P6>(&self, bstrobjectname: &::windows::core::BSTR, varscopenames: P0, varoperations: P1, varparameternames: P2, varparametervalues: P3, varinterfacenames: P4, varinterfaceflags: P5, varinterfaces: P6) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P5: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P6: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, - P7: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.AccessCheck)(::windows::core::Interface::as_raw(self), bstrobjectname.into().abi(), varscopenames.into().abi(), varoperations.into().abi(), varparameternames.into().abi(), varparametervalues.into().abi(), varinterfacenames.into().abi(), varinterfaceflags.into().abi(), varinterfaces.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.AccessCheck)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrobjectname), varscopenames.into().abi(), varoperations.into().abi(), varparameternames.into().abi(), varparametervalues.into().abi(), varinterfacenames.into().abi(), varinterfaceflags.into().abi(), varinterfaces.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetBusinessRuleString(&self) -> ::windows::core::Result { + pub unsafe fn GetBusinessRuleString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetBusinessRuleString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetBusinessRuleString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserDn(&self) -> ::windows::core::Result { + pub unsafe fn UserDn(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.UserDn)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.UserDn)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserSamCompat(&self) -> ::windows::core::Result { + pub unsafe fn UserSamCompat(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.UserSamCompat)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.UserSamCompat)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserDisplay(&self) -> ::windows::core::Result { + pub unsafe fn UserDisplay(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.UserDisplay)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.UserDisplay)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserGuid(&self) -> ::windows::core::Result { + pub unsafe fn UserGuid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.UserGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.UserGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserCanonical(&self) -> ::windows::core::Result { + pub unsafe fn UserCanonical(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.UserCanonical)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.UserCanonical)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserUpn(&self) -> ::windows::core::Result { + pub unsafe fn UserUpn(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.UserUpn)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.UserUpn)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserDnsSamCompat(&self) -> ::windows::core::Result { + pub unsafe fn UserDnsSamCompat(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.UserDnsSamCompat)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.UserDnsSamCompat)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -6732,26 +6073,16 @@ impl IAzClientContext2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetRoles<'a, P0>(&self, bstrscopename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetRoles(&self, bstrscopename: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetRoles)(::windows::core::Interface::as_raw(self), bstrscopename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetRoles)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrscopename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RoleForAccessCheck(&self) -> ::windows::core::Result { + pub unsafe fn RoleForAccessCheck(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.RoleForAccessCheck)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.RoleForAccessCheck)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRoleForAccessCheck<'a, P0>(&self, bstrprop: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetRoleForAccessCheck)(::windows::core::Interface::as_raw(self), bstrprop.into().abi()).ok() + pub unsafe fn SetRoleForAccessCheck(&self, bstrprop: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetRoleForAccessCheck)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -6760,12 +6091,11 @@ impl IAzClientContext2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddRoles<'a, P0, P1>(&self, varroles: P0, bstrscopename: P1) -> ::windows::core::Result<()> + pub unsafe fn AddRoles<'a, P0>(&self, varroles: P0, bstrscopename: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).AddRoles)(::windows::core::Interface::as_raw(self), varroles.into().abi(), bstrscopename.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddRoles)(::windows::core::Interface::as_raw(self), varroles.into().abi(), ::core::mem::transmute_copy(bstrscopename)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -6783,19 +6113,12 @@ impl IAzClientContext2 { { (::windows::core::Interface::vtable(self).AddStringSids)(::windows::core::Interface::as_raw(self), varstringsids.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLDAPQueryDN<'a, P0>(&self, bstrldapquerydn: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetLDAPQueryDN)(::windows::core::Interface::as_raw(self), bstrldapquerydn.into().abi()).ok() + pub unsafe fn SetLDAPQueryDN(&self, bstrldapquerydn: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetLDAPQueryDN)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrldapquerydn)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LDAPQueryDN(&self) -> ::windows::core::Result { + pub unsafe fn LDAPQueryDN(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LDAPQueryDN)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LDAPQueryDN)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -6887,7 +6210,7 @@ pub struct IAzClientContext2_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetAssignedScopesPage: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddRoles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varroles: ::core::mem::ManuallyDrop, bstrscopename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub AddRoles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varroles: ::core::mem::ManuallyDrop, bstrscopename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddRoles: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -6898,14 +6221,8 @@ pub struct IAzClientContext2_Vtbl { pub AddStringSids: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varstringsids: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddStringSids: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetLDAPQueryDN: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrldapquerydn: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetLDAPQueryDN: usize, - #[cfg(feature = "Win32_Foundation")] - pub LDAPQueryDN: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrldapquerydn: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LDAPQueryDN: usize, + pub SetLDAPQueryDN: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrldapquerydn: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub LDAPQueryDN: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrldapquerydn: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Authorization\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6915,67 +6232,50 @@ pub struct IAzClientContext3(::windows::core::IUnknown); impl IAzClientContext3 { #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AccessCheck<'a, P0, P1, P2, P3, P4, P5, P6, P7>(&self, bstrobjectname: P0, varscopenames: P1, varoperations: P2, varparameternames: P3, varparametervalues: P4, varinterfacenames: P5, varinterfaceflags: P6, varinterfaces: P7) -> ::windows::core::Result + pub unsafe fn AccessCheck<'a, P0, P1, P2, P3, P4, P5, P6>(&self, bstrobjectname: &::windows::core::BSTR, varscopenames: P0, varoperations: P1, varparameternames: P2, varparametervalues: P3, varinterfacenames: P4, varinterfaceflags: P5, varinterfaces: P6) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P5: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P6: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, - P7: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.AccessCheck)(::windows::core::Interface::as_raw(self), bstrobjectname.into().abi(), varscopenames.into().abi(), varoperations.into().abi(), varparameternames.into().abi(), varparametervalues.into().abi(), varinterfacenames.into().abi(), varinterfaceflags.into().abi(), varinterfaces.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.AccessCheck)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrobjectname), varscopenames.into().abi(), varoperations.into().abi(), varparameternames.into().abi(), varparametervalues.into().abi(), varinterfacenames.into().abi(), varinterfaceflags.into().abi(), varinterfaces.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetBusinessRuleString(&self) -> ::windows::core::Result { + pub unsafe fn GetBusinessRuleString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetBusinessRuleString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetBusinessRuleString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserDn(&self) -> ::windows::core::Result { + pub unsafe fn UserDn(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.UserDn)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.UserDn)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserSamCompat(&self) -> ::windows::core::Result { + pub unsafe fn UserSamCompat(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.UserSamCompat)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.UserSamCompat)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserDisplay(&self) -> ::windows::core::Result { + pub unsafe fn UserDisplay(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.UserDisplay)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.UserDisplay)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserGuid(&self) -> ::windows::core::Result { + pub unsafe fn UserGuid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.UserGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.UserGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserCanonical(&self) -> ::windows::core::Result { + pub unsafe fn UserCanonical(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.UserCanonical)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.UserCanonical)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserUpn(&self) -> ::windows::core::Result { + pub unsafe fn UserUpn(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.UserUpn)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.UserUpn)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserDnsSamCompat(&self) -> ::windows::core::Result { + pub unsafe fn UserDnsSamCompat(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.UserDnsSamCompat)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.UserDnsSamCompat)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -6988,26 +6288,16 @@ impl IAzClientContext3 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetRoles<'a, P0>(&self, bstrscopename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetRoles(&self, bstrscopename: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetRoles)(::windows::core::Interface::as_raw(self), bstrscopename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetRoles)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrscopename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RoleForAccessCheck(&self) -> ::windows::core::Result { + pub unsafe fn RoleForAccessCheck(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.RoleForAccessCheck)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.RoleForAccessCheck)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRoleForAccessCheck<'a, P0>(&self, bstrprop: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetRoleForAccessCheck)(::windows::core::Interface::as_raw(self), bstrprop.into().abi()).ok() + pub unsafe fn SetRoleForAccessCheck(&self, bstrprop: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetRoleForAccessCheck)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -7016,12 +6306,11 @@ impl IAzClientContext3 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddRoles<'a, P0, P1>(&self, varroles: P0, bstrscopename: P1) -> ::windows::core::Result<()> + pub unsafe fn AddRoles<'a, P0>(&self, varroles: P0, bstrscopename: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.AddRoles)(::windows::core::Interface::as_raw(self), varroles.into().abi(), bstrscopename.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AddRoles)(::windows::core::Interface::as_raw(self), varroles.into().abi(), ::core::mem::transmute_copy(bstrscopename)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -7039,57 +6328,32 @@ impl IAzClientContext3 { { (::windows::core::Interface::vtable(self).base__.AddStringSids)(::windows::core::Interface::as_raw(self), varstringsids.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLDAPQueryDN<'a, P0>(&self, bstrldapquerydn: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetLDAPQueryDN)(::windows::core::Interface::as_raw(self), bstrldapquerydn.into().abi()).ok() + pub unsafe fn SetLDAPQueryDN(&self, bstrldapquerydn: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetLDAPQueryDN)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrldapquerydn)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LDAPQueryDN(&self) -> ::windows::core::Result { + pub unsafe fn LDAPQueryDN(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.LDAPQueryDN)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.LDAPQueryDN)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AccessCheck2<'a, P0, P1>(&self, bstrobjectname: P0, bstrscopename: P1, loperation: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn AccessCheck2(&self, bstrobjectname: &::windows::core::BSTR, bstrscopename: &::windows::core::BSTR, loperation: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AccessCheck2)(::windows::core::Interface::as_raw(self), bstrobjectname.into().abi(), bstrscopename.into().abi(), loperation, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AccessCheck2)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrobjectname), ::core::mem::transmute_copy(bstrscopename), loperation, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsInRoleAssignment<'a, P0, P1>(&self, bstrscopename: P0, bstrrolename: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsInRoleAssignment(&self, bstrscopename: &::windows::core::BSTR, bstrrolename: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).IsInRoleAssignment)(::windows::core::Interface::as_raw(self), bstrscopename.into().abi(), bstrrolename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).IsInRoleAssignment)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrscopename), ::core::mem::transmute_copy(bstrrolename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetOperations<'a, P0>(&self, bstrscopename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetOperations(&self, bstrscopename: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetOperations)(::windows::core::Interface::as_raw(self), bstrscopename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetOperations)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrscopename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetTasks<'a, P0>(&self, bstrscopename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetTasks(&self, bstrscopename: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetTasks)(::windows::core::Interface::as_raw(self), bstrscopename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetTasks)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrscopename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7105,12 +6369,9 @@ impl IAzClientContext3 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetGroups<'a, P0>(&self, bstrscopename: P0, uloptions: AZ_PROP_CONSTANTS) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetGroups(&self, bstrscopename: &::windows::core::BSTR, uloptions: AZ_PROP_CONSTANTS) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetGroups)(::windows::core::Interface::as_raw(self), bstrscopename.into().abi(), uloptions, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetGroups)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrscopename), uloptions, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -7221,21 +6482,15 @@ unsafe impl ::windows::core::Interface for IAzClientContext3 { #[doc(hidden)] pub struct IAzClientContext3_Vtbl { pub base__: IAzClientContext2_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub AccessCheck2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrobjectname: ::core::mem::ManuallyDrop, bstrscopename: ::core::mem::ManuallyDrop, loperation: i32, plresult: *mut u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AccessCheck2: usize, - #[cfg(feature = "Win32_Foundation")] - pub IsInRoleAssignment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop, bstrrolename: ::core::mem::ManuallyDrop, pbisinrole: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - IsInRoleAssignment: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetOperations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop, ppoperationcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub AccessCheck2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrobjectname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrscopename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, loperation: i32, plresult: *mut u32) -> ::windows::core::HRESULT, + pub IsInRoleAssignment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrrolename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbisinrole: *mut i16) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub GetOperations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppoperationcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetOperations: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetTasks: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop, pptaskcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetTasks: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pptaskcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetTasks: usize, #[cfg(feature = "Win32_System_Com")] pub BizRuleParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppbizruleparam: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -7246,7 +6501,7 @@ pub struct IAzClientContext3_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] BizRuleInterfaces: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetGroups: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop, uloptions: AZ_PROP_CONSTANTS, pgrouparray: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetGroups: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, uloptions: AZ_PROP_CONSTANTS, pgrouparray: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetGroups: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -7260,13 +6515,8 @@ pub struct IAzClientContext3_Vtbl { pub struct IAzNameResolver(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IAzNameResolver { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NameFromSid<'a, P0>(&self, bstrsid: P0, psidtype: &mut i32, pbstrname: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).NameFromSid)(::windows::core::Interface::as_raw(self), bstrsid.into().abi(), ::core::mem::transmute(psidtype), ::core::mem::transmute(pbstrname)).ok() + pub unsafe fn NameFromSid(&self, bstrsid: &::windows::core::BSTR, psidtype: &mut i32, pbstrname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).NameFromSid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsid), ::core::mem::transmute(psidtype), ::core::mem::transmute(pbstrname)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -7343,10 +6593,7 @@ unsafe impl ::windows::core::Interface for IAzNameResolver { #[doc(hidden)] pub struct IAzNameResolver_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub NameFromSid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsid: ::core::mem::ManuallyDrop, psidtype: *mut i32, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - NameFromSid: usize, + pub NameFromSid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, psidtype: *mut i32, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub NamesFromSids: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vsids: ::core::mem::ManuallyDrop, pvsidtypes: *mut super::super::System::Com::VARIANT, pvnames: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -7360,18 +6607,15 @@ pub struct IAzObjectPicker(::windows::core::IUnknown); impl IAzObjectPicker { #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetPrincipals<'a, P0, P1>(&self, hparentwnd: P0, bstrtitle: P1, pvsidtypes: &mut super::super::System::Com::VARIANT, pvnames: &mut super::super::System::Com::VARIANT, pvsids: &mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()> + pub unsafe fn GetPrincipals<'a, P0>(&self, hparentwnd: P0, bstrtitle: &::windows::core::BSTR, pvsidtypes: &mut super::super::System::Com::VARIANT, pvnames: &mut super::super::System::Com::VARIANT, pvsids: &mut super::super::System::Com::VARIANT) -> ::windows::core::Result<()> where P0: ::std::convert::Into, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).GetPrincipals)(::windows::core::Interface::as_raw(self), hparentwnd.into(), bstrtitle.into().abi(), ::core::mem::transmute(pvsidtypes), ::core::mem::transmute(pvnames), ::core::mem::transmute(pvsids)).ok() + (::windows::core::Interface::vtable(self).GetPrincipals)(::windows::core::Interface::as_raw(self), hparentwnd.into(), ::core::mem::transmute_copy(bstrtitle), ::core::mem::transmute(pvsidtypes), ::core::mem::transmute(pvnames), ::core::mem::transmute(pvsids)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -7441,13 +6685,10 @@ unsafe impl ::windows::core::Interface for IAzObjectPicker { pub struct IAzObjectPicker_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetPrincipals: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hparentwnd: super::super::Foundation::HWND, bstrtitle: ::core::mem::ManuallyDrop, pvsidtypes: *mut super::super::System::Com::VARIANT, pvnames: *mut super::super::System::Com::VARIANT, pvsids: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetPrincipals: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hparentwnd: super::super::Foundation::HWND, bstrtitle: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvsidtypes: *mut super::super::System::Com::VARIANT, pvnames: *mut super::super::System::Com::VARIANT, pvsids: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetPrincipals: usize, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Authorization\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7455,47 +6696,26 @@ pub struct IAzObjectPicker_Vtbl { pub struct IAzOperation(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IAzOperation { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bstrdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), bstrdescription.into().abi()).ok() + pub unsafe fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdescription)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ApplicationData(&self) -> ::windows::core::Result { + pub unsafe fn ApplicationData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetApplicationData<'a, P0>(&self, bstrapplicationdata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetApplicationData)(::windows::core::Interface::as_raw(self), bstrapplicationdata.into().abi()).ok() + pub unsafe fn SetApplicationData(&self, bstrapplicationdata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationdata)).ok() } pub unsafe fn OperationID(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7603,30 +6823,12 @@ unsafe impl ::windows::core::Interface for IAzOperation { #[doc(hidden)] pub struct IAzOperation_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDescription: usize, - #[cfg(feature = "Win32_Foundation")] - pub ApplicationData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrapplicationdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ApplicationData: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetApplicationData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationdata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetApplicationData: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ApplicationData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrapplicationdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetApplicationData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub OperationID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plprop: *mut i32) -> ::windows::core::HRESULT, pub SetOperationID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lprop: i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] @@ -7652,47 +6854,26 @@ pub struct IAzOperation_Vtbl { pub struct IAzOperation2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IAzOperation2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bstrdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), bstrdescription.into().abi()).ok() + pub unsafe fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdescription)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ApplicationData(&self) -> ::windows::core::Result { + pub unsafe fn ApplicationData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetApplicationData<'a, P0>(&self, bstrapplicationdata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetApplicationData)(::windows::core::Interface::as_raw(self), bstrapplicationdata.into().abi()).ok() + pub unsafe fn SetApplicationData(&self, bstrapplicationdata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationdata)).ok() } pub unsafe fn OperationID(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7733,14 +6914,11 @@ impl IAzOperation2 { { (::windows::core::Interface::vtable(self).base__.Submit)(::windows::core::Interface::as_raw(self), lflags, varreserved.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn RoleAssignments<'a, P0>(&self, bstrscopename: P0, brecursive: i16) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn RoleAssignments(&self, bstrscopename: &::windows::core::BSTR, brecursive: i16) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RoleAssignments)(::windows::core::Interface::as_raw(self), bstrscopename.into().abi(), brecursive, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RoleAssignments)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrscopename), brecursive, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -7827,9 +7005,9 @@ unsafe impl ::windows::core::Interface for IAzOperation2 { #[doc(hidden)] pub struct IAzOperation2_Vtbl { pub base__: IAzOperation_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub RoleAssignments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop, brecursive: i16, pproleassignments: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub RoleAssignments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, brecursive: i16, pproleassignments: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] RoleAssignments: usize, } #[doc = "*Required features: `\"Win32_Security_Authorization\"`, `\"Win32_System_Com\"`*"] @@ -8026,119 +7204,90 @@ pub struct IAzPrincipalLocator_Vtbl { pub struct IAzRole(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IAzRole { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bstrdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), bstrdescription.into().abi()).ok() + pub unsafe fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdescription)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ApplicationData(&self) -> ::windows::core::Result { + pub unsafe fn ApplicationData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetApplicationData<'a, P0>(&self, bstrapplicationdata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetApplicationData)(::windows::core::Interface::as_raw(self), bstrapplicationdata.into().abi()).ok() + pub unsafe fn SetApplicationData(&self, bstrapplicationdata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationdata)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddAppMember<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddAppMember<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).AddAppMember)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddAppMember)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteAppMember<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteAppMember<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeleteAppMember)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeleteAppMember)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddTask<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddTask<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).AddTask)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddTask)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteTask<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteTask<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeleteTask)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeleteTask)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddOperation<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddOperation<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).AddOperation)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddOperation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteOperation<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteOperation<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeleteOperation)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeleteOperation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddMember<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddMember<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).AddMember)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddMember)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteMember<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteMember<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeleteMember)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeleteMember)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -8216,21 +7365,19 @@ impl IAzRole { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddMemberName<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddMemberName<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).AddMemberName)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddMemberName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteMemberName<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteMemberName<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeleteMemberName)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeleteMemberName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -8305,60 +7452,42 @@ unsafe impl ::windows::core::Interface for IAzRole { #[doc(hidden)] pub struct IAzRole_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDescription: usize, - #[cfg(feature = "Win32_Foundation")] - pub ApplicationData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrapplicationdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ApplicationData: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetApplicationData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationdata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetApplicationData: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ApplicationData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrapplicationdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetApplicationData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddAppMember: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub AddAppMember: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddAppMember: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeleteAppMember: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeleteAppMember: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeleteAppMember: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub AddTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddTask: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeleteTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeleteTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeleteTask: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddOperation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub AddOperation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddOperation: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeleteOperation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeleteOperation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeleteOperation: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddMember: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub AddMember: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddMember: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeleteMember: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeleteMember: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeleteMember: usize, #[cfg(feature = "Win32_Foundation")] @@ -8402,11 +7531,11 @@ pub struct IAzRole_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Submit: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddMemberName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub AddMemberName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddMemberName: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeleteMemberName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeleteMemberName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeleteMemberName: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -8420,119 +7549,90 @@ pub struct IAzRole_Vtbl { pub struct IAzRoleAssignment(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IAzRoleAssignment { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bstrdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), bstrdescription.into().abi()).ok() + pub unsafe fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdescription)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ApplicationData(&self) -> ::windows::core::Result { + pub unsafe fn ApplicationData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetApplicationData<'a, P0>(&self, bstrapplicationdata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetApplicationData)(::windows::core::Interface::as_raw(self), bstrapplicationdata.into().abi()).ok() + pub unsafe fn SetApplicationData(&self, bstrapplicationdata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationdata)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddAppMember<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddAppMember<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.AddAppMember)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AddAppMember)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteAppMember<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteAppMember<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeleteAppMember)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeleteAppMember)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddTask<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddTask<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.AddTask)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AddTask)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteTask<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteTask<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeleteTask)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeleteTask)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddOperation<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddOperation<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.AddOperation)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AddOperation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteOperation<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteOperation<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeleteOperation)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeleteOperation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddMember<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddMember<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.AddMember)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AddMember)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteMember<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteMember<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeleteMember)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeleteMember)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -8610,21 +7710,19 @@ impl IAzRoleAssignment { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddMemberName<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddMemberName<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.AddMemberName)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AddMemberName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteMemberName<'a, P0, P1>(&self, bstrprop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteMemberName<'a, P0>(&self, bstrprop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeleteMemberName)(::windows::core::Interface::as_raw(self), bstrprop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeleteMemberName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -8632,21 +7730,11 @@ impl IAzRoleAssignment { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.MembersName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddRoleDefinition<'a, P0>(&self, bstrroledefinition: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AddRoleDefinition)(::windows::core::Interface::as_raw(self), bstrroledefinition.into().abi()).ok() + pub unsafe fn AddRoleDefinition(&self, bstrroledefinition: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AddRoleDefinition)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrroledefinition)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeleteRoleDefinition<'a, P0>(&self, bstrroledefinition: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DeleteRoleDefinition)(::windows::core::Interface::as_raw(self), bstrroledefinition.into().abi()).ok() + pub unsafe fn DeleteRoleDefinition(&self, bstrroledefinition: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DeleteRoleDefinition)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrroledefinition)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -8745,14 +7833,8 @@ unsafe impl ::windows::core::Interface for IAzRoleAssignment { #[doc(hidden)] pub struct IAzRoleAssignment_Vtbl { pub base__: IAzRole_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub AddRoleDefinition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrroledefinition: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddRoleDefinition: usize, - #[cfg(feature = "Win32_Foundation")] - pub DeleteRoleDefinition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrroledefinition: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeleteRoleDefinition: usize, + pub AddRoleDefinition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrroledefinition: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DeleteRoleDefinition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrroledefinition: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub RoleDefinitions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pproledefinitions: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -8862,89 +7944,47 @@ pub struct IAzRoleAssignments_Vtbl { pub struct IAzRoleDefinition(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IAzRoleDefinition { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bstrdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), bstrdescription.into().abi()).ok() + pub unsafe fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdescription)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ApplicationData(&self) -> ::windows::core::Result { + pub unsafe fn ApplicationData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetApplicationData<'a, P0>(&self, bstrapplicationdata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetApplicationData)(::windows::core::Interface::as_raw(self), bstrapplicationdata.into().abi()).ok() + pub unsafe fn SetApplicationData(&self, bstrapplicationdata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationdata)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BizRule(&self) -> ::windows::core::Result { + pub unsafe fn BizRule(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.BizRule)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.BizRule)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetBizRule<'a, P0>(&self, bstrprop: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetBizRule)(::windows::core::Interface::as_raw(self), bstrprop.into().abi()).ok() + pub unsafe fn SetBizRule(&self, bstrprop: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetBizRule)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BizRuleLanguage(&self) -> ::windows::core::Result { + pub unsafe fn BizRuleLanguage(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.BizRuleLanguage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.BizRuleLanguage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetBizRuleLanguage<'a, P0>(&self, bstrprop: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetBizRuleLanguage)(::windows::core::Interface::as_raw(self), bstrprop.into().abi()).ok() + pub unsafe fn SetBizRuleLanguage(&self, bstrprop: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetBizRuleLanguage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BizRuleImportedPath(&self) -> ::windows::core::Result { + pub unsafe fn BizRuleImportedPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.BizRuleImportedPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.BizRuleImportedPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetBizRuleImportedPath<'a, P0>(&self, bstrprop: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetBizRuleImportedPath)(::windows::core::Interface::as_raw(self), bstrprop.into().abi()).ok() + pub unsafe fn SetBizRuleImportedPath(&self, bstrprop: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetBizRuleImportedPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -8974,39 +8014,35 @@ impl IAzRoleDefinition { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddOperation<'a, P0, P1>(&self, bstrop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddOperation<'a, P0>(&self, bstrop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.AddOperation)(::windows::core::Interface::as_raw(self), bstrop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AddOperation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteOperation<'a, P0, P1>(&self, bstrop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteOperation<'a, P0>(&self, bstrop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeleteOperation)(::windows::core::Interface::as_raw(self), bstrop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeleteOperation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddTask<'a, P0, P1>(&self, bstrtask: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddTask<'a, P0>(&self, bstrtask: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.AddTask)(::windows::core::Interface::as_raw(self), bstrtask.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AddTask)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtask), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteTask<'a, P0, P1>(&self, bstrtask: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteTask<'a, P0>(&self, bstrtask: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeleteTask)(::windows::core::Interface::as_raw(self), bstrtask.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeleteTask)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtask), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -9058,30 +8094,17 @@ impl IAzRoleDefinition { { (::windows::core::Interface::vtable(self).base__.Submit)(::windows::core::Interface::as_raw(self), lflags, varreserved.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn RoleAssignments<'a, P0>(&self, bstrscopename: P0, brecursive: i16) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn RoleAssignments(&self, bstrscopename: &::windows::core::BSTR, brecursive: i16) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RoleAssignments)(::windows::core::Interface::as_raw(self), bstrscopename.into().abi(), brecursive, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RoleAssignments)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrscopename), brecursive, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddRoleDefinition<'a, P0>(&self, bstrroledefinition: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AddRoleDefinition)(::windows::core::Interface::as_raw(self), bstrroledefinition.into().abi()).ok() + pub unsafe fn AddRoleDefinition(&self, bstrroledefinition: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AddRoleDefinition)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrroledefinition)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeleteRoleDefinition<'a, P0>(&self, bstrroledefinition: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DeleteRoleDefinition)(::windows::core::Interface::as_raw(self), bstrroledefinition.into().abi()).ok() + pub unsafe fn DeleteRoleDefinition(&self, bstrroledefinition: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DeleteRoleDefinition)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrroledefinition)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9174,18 +8197,12 @@ unsafe impl ::windows::core::Interface for IAzRoleDefinition { #[doc(hidden)] pub struct IAzRoleDefinition_Vtbl { pub base__: IAzTask_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub RoleAssignments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop, brecursive: i16, pproleassignments: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub RoleAssignments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, brecursive: i16, pproleassignments: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] RoleAssignments: usize, - #[cfg(feature = "Win32_Foundation")] - pub AddRoleDefinition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrroledefinition: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddRoleDefinition: usize, - #[cfg(feature = "Win32_Foundation")] - pub DeleteRoleDefinition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrroledefinition: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeleteRoleDefinition: usize, + pub AddRoleDefinition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrroledefinition: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DeleteRoleDefinition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrroledefinition: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub RoleDefinitions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pproledefinitions: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -9385,47 +8402,26 @@ pub struct IAzRoles_Vtbl { pub struct IAzScope(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IAzScope { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bstrdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), bstrdescription.into().abi()).ok() + pub unsafe fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdescription)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ApplicationData(&self) -> ::windows::core::Result { + pub unsafe fn ApplicationData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetApplicationData<'a, P0>(&self, bstrapplicationdata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetApplicationData)(::windows::core::Interface::as_raw(self), bstrapplicationdata.into().abi()).ok() + pub unsafe fn SetApplicationData(&self, bstrapplicationdata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationdata)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -9483,39 +8479,35 @@ impl IAzScope { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddPolicyAdministrator<'a, P0, P1>(&self, bstradmin: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddPolicyAdministrator<'a, P0>(&self, bstradmin: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).AddPolicyAdministrator)(::windows::core::Interface::as_raw(self), bstradmin.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddPolicyAdministrator)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstradmin), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeletePolicyAdministrator<'a, P0, P1>(&self, bstradmin: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeletePolicyAdministrator<'a, P0>(&self, bstradmin: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeletePolicyAdministrator)(::windows::core::Interface::as_raw(self), bstradmin.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeletePolicyAdministrator)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstradmin), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddPolicyReader<'a, P0, P1>(&self, bstrreader: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddPolicyReader<'a, P0>(&self, bstrreader: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).AddPolicyReader)(::windows::core::Interface::as_raw(self), bstrreader.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddPolicyReader)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrreader), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeletePolicyReader<'a, P0, P1>(&self, bstrreader: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeletePolicyReader<'a, P0>(&self, bstrreader: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeletePolicyReader)(::windows::core::Interface::as_raw(self), bstrreader.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeletePolicyReader)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrreader), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9525,32 +8517,29 @@ impl IAzScope { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn OpenApplicationGroup<'a, P0, P1>(&self, bstrgroupname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn OpenApplicationGroup<'a, P0>(&self, bstrgroupname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).OpenApplicationGroup)(::windows::core::Interface::as_raw(self), bstrgroupname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).OpenApplicationGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrgroupname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateApplicationGroup<'a, P0, P1>(&self, bstrgroupname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn CreateApplicationGroup<'a, P0>(&self, bstrgroupname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateApplicationGroup)(::windows::core::Interface::as_raw(self), bstrgroupname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateApplicationGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrgroupname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteApplicationGroup<'a, P0, P1>(&self, bstrgroupname: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteApplicationGroup<'a, P0>(&self, bstrgroupname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeleteApplicationGroup)(::windows::core::Interface::as_raw(self), bstrgroupname.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeleteApplicationGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrgroupname), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9560,32 +8549,29 @@ impl IAzScope { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn OpenRole<'a, P0, P1>(&self, bstrrolename: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn OpenRole<'a, P0>(&self, bstrrolename: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).OpenRole)(::windows::core::Interface::as_raw(self), bstrrolename.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).OpenRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrolename), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateRole<'a, P0, P1>(&self, bstrrolename: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn CreateRole<'a, P0>(&self, bstrrolename: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateRole)(::windows::core::Interface::as_raw(self), bstrrolename.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrolename), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteRole<'a, P0, P1>(&self, bstrrolename: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteRole<'a, P0>(&self, bstrrolename: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeleteRole)(::windows::core::Interface::as_raw(self), bstrrolename.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeleteRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrolename), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9595,32 +8581,29 @@ impl IAzScope { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn OpenTask<'a, P0, P1>(&self, bstrtaskname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn OpenTask<'a, P0>(&self, bstrtaskname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).OpenTask)(::windows::core::Interface::as_raw(self), bstrtaskname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).OpenTask)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtaskname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateTask<'a, P0, P1>(&self, bstrtaskname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn CreateTask<'a, P0>(&self, bstrtaskname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateTask)(::windows::core::Interface::as_raw(self), bstrtaskname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateTask)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtaskname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteTask<'a, P0, P1>(&self, bstrtaskname: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteTask<'a, P0>(&self, bstrtaskname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeleteTask)(::windows::core::Interface::as_raw(self), bstrtaskname.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeleteTask)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtaskname), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -9656,39 +8639,35 @@ impl IAzScope { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddPolicyAdministratorName<'a, P0, P1>(&self, bstradmin: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddPolicyAdministratorName<'a, P0>(&self, bstradmin: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).AddPolicyAdministratorName)(::windows::core::Interface::as_raw(self), bstradmin.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddPolicyAdministratorName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstradmin), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeletePolicyAdministratorName<'a, P0, P1>(&self, bstradmin: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeletePolicyAdministratorName<'a, P0>(&self, bstradmin: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeletePolicyAdministratorName)(::windows::core::Interface::as_raw(self), bstradmin.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeletePolicyAdministratorName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstradmin), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddPolicyReaderName<'a, P0, P1>(&self, bstrreader: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddPolicyReaderName<'a, P0>(&self, bstrreader: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).AddPolicyReaderName)(::windows::core::Interface::as_raw(self), bstrreader.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddPolicyReaderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrreader), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeletePolicyReaderName<'a, P0, P1>(&self, bstrreader: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeletePolicyReaderName<'a, P0>(&self, bstrreader: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeletePolicyReaderName)(::windows::core::Interface::as_raw(self), bstrreader.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeletePolicyReaderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrreader), varreserved.into().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -9757,30 +8736,12 @@ unsafe impl ::windows::core::Interface for IAzScope { #[doc(hidden)] pub struct IAzScope_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDescription: usize, - #[cfg(feature = "Win32_Foundation")] - pub ApplicationData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrapplicationdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ApplicationData: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetApplicationData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationdata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetApplicationData: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ApplicationData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrapplicationdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetApplicationData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub Writable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfprop: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -9810,19 +8771,19 @@ pub struct IAzScope_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] PolicyReaders: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddPolicyAdministrator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub AddPolicyAdministrator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddPolicyAdministrator: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeletePolicyAdministrator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeletePolicyAdministrator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeletePolicyAdministrator: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddPolicyReader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub AddPolicyReader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddPolicyReader: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeletePolicyReader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeletePolicyReader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeletePolicyReader: usize, #[cfg(feature = "Win32_System_Com")] @@ -9830,15 +8791,15 @@ pub struct IAzScope_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ApplicationGroups: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub OpenApplicationGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub OpenApplicationGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] OpenApplicationGroup: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub CreateApplicationGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub CreateApplicationGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] CreateApplicationGroup: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeleteApplicationGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeleteApplicationGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeleteApplicationGroup: usize, #[cfg(feature = "Win32_System_Com")] @@ -9846,15 +8807,15 @@ pub struct IAzScope_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Roles: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub OpenRole: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrolename: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, pprole: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub OpenRole: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrolename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, pprole: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] OpenRole: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub CreateRole: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrolename: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, pprole: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub CreateRole: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrolename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, pprole: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] CreateRole: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeleteRole: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrolename: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeleteRole: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrolename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeleteRole: usize, #[cfg(feature = "Win32_System_Com")] @@ -9862,15 +8823,15 @@ pub struct IAzScope_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Tasks: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub OpenTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtaskname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, pptask: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub OpenTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtaskname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, pptask: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] OpenTask: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub CreateTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtaskname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop, pptask: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub CreateTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtaskname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop, pptask: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] CreateTask: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeleteTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtaskname: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeleteTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtaskname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeleteTask: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -9894,19 +8855,19 @@ pub struct IAzScope_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] PolicyReadersName: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddPolicyAdministratorName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub AddPolicyAdministratorName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddPolicyAdministratorName: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeletePolicyAdministratorName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeletePolicyAdministratorName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstradmin: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeletePolicyAdministratorName: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddPolicyReaderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub AddPolicyReaderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddPolicyReaderName: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeletePolicyReaderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeletePolicyReaderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrreader: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeletePolicyReaderName: usize, } @@ -9916,47 +8877,26 @@ pub struct IAzScope_Vtbl { pub struct IAzScope2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IAzScope2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bstrdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), bstrdescription.into().abi()).ok() + pub unsafe fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdescription)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ApplicationData(&self) -> ::windows::core::Result { + pub unsafe fn ApplicationData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetApplicationData<'a, P0>(&self, bstrapplicationdata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetApplicationData)(::windows::core::Interface::as_raw(self), bstrapplicationdata.into().abi()).ok() + pub unsafe fn SetApplicationData(&self, bstrapplicationdata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationdata)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -10014,39 +8954,35 @@ impl IAzScope2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddPolicyAdministrator<'a, P0, P1>(&self, bstradmin: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddPolicyAdministrator<'a, P0>(&self, bstradmin: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.AddPolicyAdministrator)(::windows::core::Interface::as_raw(self), bstradmin.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AddPolicyAdministrator)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstradmin), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeletePolicyAdministrator<'a, P0, P1>(&self, bstradmin: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeletePolicyAdministrator<'a, P0>(&self, bstradmin: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeletePolicyAdministrator)(::windows::core::Interface::as_raw(self), bstradmin.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeletePolicyAdministrator)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstradmin), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddPolicyReader<'a, P0, P1>(&self, bstrreader: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddPolicyReader<'a, P0>(&self, bstrreader: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.AddPolicyReader)(::windows::core::Interface::as_raw(self), bstrreader.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AddPolicyReader)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrreader), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeletePolicyReader<'a, P0, P1>(&self, bstrreader: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeletePolicyReader<'a, P0>(&self, bstrreader: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeletePolicyReader)(::windows::core::Interface::as_raw(self), bstrreader.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeletePolicyReader)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrreader), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -10056,32 +8992,29 @@ impl IAzScope2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn OpenApplicationGroup<'a, P0, P1>(&self, bstrgroupname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn OpenApplicationGroup<'a, P0>(&self, bstrgroupname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.OpenApplicationGroup)(::windows::core::Interface::as_raw(self), bstrgroupname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.OpenApplicationGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrgroupname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateApplicationGroup<'a, P0, P1>(&self, bstrgroupname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn CreateApplicationGroup<'a, P0>(&self, bstrgroupname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CreateApplicationGroup)(::windows::core::Interface::as_raw(self), bstrgroupname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CreateApplicationGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrgroupname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteApplicationGroup<'a, P0, P1>(&self, bstrgroupname: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteApplicationGroup<'a, P0>(&self, bstrgroupname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeleteApplicationGroup)(::windows::core::Interface::as_raw(self), bstrgroupname.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeleteApplicationGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrgroupname), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -10091,32 +9024,29 @@ impl IAzScope2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn OpenRole<'a, P0, P1>(&self, bstrrolename: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn OpenRole<'a, P0>(&self, bstrrolename: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.OpenRole)(::windows::core::Interface::as_raw(self), bstrrolename.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.OpenRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrolename), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateRole<'a, P0, P1>(&self, bstrrolename: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn CreateRole<'a, P0>(&self, bstrrolename: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CreateRole)(::windows::core::Interface::as_raw(self), bstrrolename.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CreateRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrolename), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteRole<'a, P0, P1>(&self, bstrrolename: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteRole<'a, P0>(&self, bstrrolename: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeleteRole)(::windows::core::Interface::as_raw(self), bstrrolename.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeleteRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrolename), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -10126,32 +9056,29 @@ impl IAzScope2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn OpenTask<'a, P0, P1>(&self, bstrtaskname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn OpenTask<'a, P0>(&self, bstrtaskname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.OpenTask)(::windows::core::Interface::as_raw(self), bstrtaskname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.OpenTask)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtaskname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateTask<'a, P0, P1>(&self, bstrtaskname: P0, varreserved: P1) -> ::windows::core::Result + pub unsafe fn CreateTask<'a, P0>(&self, bstrtaskname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CreateTask)(::windows::core::Interface::as_raw(self), bstrtaskname.into().abi(), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CreateTask)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtaskname), varreserved.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteTask<'a, P0, P1>(&self, bstrtaskname: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteTask<'a, P0>(&self, bstrtaskname: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeleteTask)(::windows::core::Interface::as_raw(self), bstrtaskname.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeleteTask)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtaskname), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -10187,39 +9114,35 @@ impl IAzScope2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddPolicyAdministratorName<'a, P0, P1>(&self, bstradmin: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddPolicyAdministratorName<'a, P0>(&self, bstradmin: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.AddPolicyAdministratorName)(::windows::core::Interface::as_raw(self), bstradmin.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AddPolicyAdministratorName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstradmin), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeletePolicyAdministratorName<'a, P0, P1>(&self, bstradmin: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeletePolicyAdministratorName<'a, P0>(&self, bstradmin: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeletePolicyAdministratorName)(::windows::core::Interface::as_raw(self), bstradmin.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeletePolicyAdministratorName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstradmin), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddPolicyReaderName<'a, P0, P1>(&self, bstrreader: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddPolicyReaderName<'a, P0>(&self, bstrreader: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.AddPolicyReaderName)(::windows::core::Interface::as_raw(self), bstrreader.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AddPolicyReaderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrreader), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeletePolicyReaderName<'a, P0, P1>(&self, bstrreader: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeletePolicyReaderName<'a, P0>(&self, bstrreader: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeletePolicyReaderName)(::windows::core::Interface::as_raw(self), bstrreader.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeletePolicyReaderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrreader), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -10227,31 +9150,20 @@ impl IAzScope2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).RoleDefinitions)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateRoleDefinition<'a, P0>(&self, bstrroledefinitionname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateRoleDefinition(&self, bstrroledefinitionname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateRoleDefinition)(::windows::core::Interface::as_raw(self), bstrroledefinitionname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateRoleDefinition)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrroledefinitionname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn OpenRoleDefinition<'a, P0>(&self, bstrroledefinitionname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn OpenRoleDefinition(&self, bstrroledefinitionname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).OpenRoleDefinition)(::windows::core::Interface::as_raw(self), bstrroledefinitionname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).OpenRoleDefinition)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrroledefinitionname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeleteRoleDefinition<'a, P0>(&self, bstrroledefinitionname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DeleteRoleDefinition)(::windows::core::Interface::as_raw(self), bstrroledefinitionname.into().abi()).ok() + pub unsafe fn DeleteRoleDefinition(&self, bstrroledefinitionname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DeleteRoleDefinition)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrroledefinitionname)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -10259,31 +9171,20 @@ impl IAzScope2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).RoleAssignments)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateRoleAssignment<'a, P0>(&self, bstrroleassignmentname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateRoleAssignment(&self, bstrroleassignmentname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateRoleAssignment)(::windows::core::Interface::as_raw(self), bstrroleassignmentname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateRoleAssignment)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrroleassignmentname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn OpenRoleAssignment<'a, P0>(&self, bstrroleassignmentname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn OpenRoleAssignment(&self, bstrroleassignmentname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).OpenRoleAssignment)(::windows::core::Interface::as_raw(self), bstrroleassignmentname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).OpenRoleAssignment)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrroleassignmentname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeleteRoleAssignment<'a, P0>(&self, bstrroleassignmentname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DeleteRoleAssignment)(::windows::core::Interface::as_raw(self), bstrroleassignmentname.into().abi()).ok() + pub unsafe fn DeleteRoleAssignment(&self, bstrroleassignmentname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DeleteRoleAssignment)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrroleassignmentname)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -10374,34 +9275,28 @@ pub struct IAzScope2_Vtbl { pub RoleDefinitions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pproledefinitions: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] RoleDefinitions: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreateRoleDefinition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrroledefinitionname: ::core::mem::ManuallyDrop, pproledefinitions: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreateRoleDefinition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrroledefinitionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pproledefinitions: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreateRoleDefinition: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub OpenRoleDefinition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrroledefinitionname: ::core::mem::ManuallyDrop, pproledefinitions: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub OpenRoleDefinition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrroledefinitionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pproledefinitions: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] OpenRoleDefinition: usize, - #[cfg(feature = "Win32_Foundation")] - pub DeleteRoleDefinition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrroledefinitionname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeleteRoleDefinition: usize, + pub DeleteRoleDefinition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrroledefinitionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub RoleAssignments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pproleassignments: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] RoleAssignments: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreateRoleAssignment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrroleassignmentname: ::core::mem::ManuallyDrop, pproleassignment: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreateRoleAssignment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrroleassignmentname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pproleassignment: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreateRoleAssignment: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub OpenRoleAssignment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrroleassignmentname: ::core::mem::ManuallyDrop, pproleassignment: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub OpenRoleAssignment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrroleassignmentname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pproleassignment: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] OpenRoleAssignment: usize, - #[cfg(feature = "Win32_Foundation")] - pub DeleteRoleAssignment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrroleassignmentname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeleteRoleAssignment: usize, + pub DeleteRoleAssignment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrroleassignmentname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Authorization\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -10503,89 +9398,47 @@ pub struct IAzScopes_Vtbl { pub struct IAzTask(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IAzTask { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bstrdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), bstrdescription.into().abi()).ok() + pub unsafe fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdescription)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ApplicationData(&self) -> ::windows::core::Result { + pub unsafe fn ApplicationData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetApplicationData<'a, P0>(&self, bstrapplicationdata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetApplicationData)(::windows::core::Interface::as_raw(self), bstrapplicationdata.into().abi()).ok() + pub unsafe fn SetApplicationData(&self, bstrapplicationdata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationdata)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BizRule(&self) -> ::windows::core::Result { + pub unsafe fn BizRule(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).BizRule)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).BizRule)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetBizRule<'a, P0>(&self, bstrprop: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetBizRule)(::windows::core::Interface::as_raw(self), bstrprop.into().abi()).ok() + pub unsafe fn SetBizRule(&self, bstrprop: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetBizRule)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BizRuleLanguage(&self) -> ::windows::core::Result { + pub unsafe fn BizRuleLanguage(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).BizRuleLanguage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).BizRuleLanguage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetBizRuleLanguage<'a, P0>(&self, bstrprop: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetBizRuleLanguage)(::windows::core::Interface::as_raw(self), bstrprop.into().abi()).ok() + pub unsafe fn SetBizRuleLanguage(&self, bstrprop: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetBizRuleLanguage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BizRuleImportedPath(&self) -> ::windows::core::Result { + pub unsafe fn BizRuleImportedPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).BizRuleImportedPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).BizRuleImportedPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetBizRuleImportedPath<'a, P0>(&self, bstrprop: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetBizRuleImportedPath)(::windows::core::Interface::as_raw(self), bstrprop.into().abi()).ok() + pub unsafe fn SetBizRuleImportedPath(&self, bstrprop: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetBizRuleImportedPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -10615,39 +9468,35 @@ impl IAzTask { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddOperation<'a, P0, P1>(&self, bstrop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddOperation<'a, P0>(&self, bstrop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).AddOperation)(::windows::core::Interface::as_raw(self), bstrop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddOperation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteOperation<'a, P0, P1>(&self, bstrop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteOperation<'a, P0>(&self, bstrop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeleteOperation)(::windows::core::Interface::as_raw(self), bstrop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeleteOperation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddTask<'a, P0, P1>(&self, bstrtask: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddTask<'a, P0>(&self, bstrtask: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).AddTask)(::windows::core::Interface::as_raw(self), bstrtask.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddTask)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtask), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteTask<'a, P0, P1>(&self, bstrtask: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteTask<'a, P0>(&self, bstrtask: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).DeleteTask)(::windows::core::Interface::as_raw(self), bstrtask.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeleteTask)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtask), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -10766,54 +9615,18 @@ unsafe impl ::windows::core::Interface for IAzTask { #[doc(hidden)] pub struct IAzTask_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDescription: usize, - #[cfg(feature = "Win32_Foundation")] - pub ApplicationData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrapplicationdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ApplicationData: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetApplicationData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationdata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetApplicationData: usize, - #[cfg(feature = "Win32_Foundation")] - pub BizRule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprop: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BizRule: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetBizRule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetBizRule: usize, - #[cfg(feature = "Win32_Foundation")] - pub BizRuleLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprop: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BizRuleLanguage: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetBizRuleLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetBizRuleLanguage: usize, - #[cfg(feature = "Win32_Foundation")] - pub BizRuleImportedPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprop: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BizRuleImportedPath: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetBizRuleImportedPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetBizRuleImportedPath: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ApplicationData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrapplicationdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetApplicationData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub BizRule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprop: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetBizRule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub BizRuleLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprop: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetBizRuleLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub BizRuleImportedPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprop: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetBizRuleImportedPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprop: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub IsRoleDefinition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfprop: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -10831,19 +9644,19 @@ pub struct IAzTask_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Tasks: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddOperation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub AddOperation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddOperation: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeleteOperation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrop: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeleteOperation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrop: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeleteOperation: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtask: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub AddTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtask: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddTask: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub DeleteTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtask: ::core::mem::ManuallyDrop, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub DeleteTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtask: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varreserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] DeleteTask: usize, #[cfg(feature = "Win32_Foundation")] @@ -10877,89 +9690,47 @@ pub struct IAzTask_Vtbl { pub struct IAzTask2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IAzTask2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bstrdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), bstrdescription.into().abi()).ok() + pub unsafe fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdescription)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ApplicationData(&self) -> ::windows::core::Result { + pub unsafe fn ApplicationData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetApplicationData<'a, P0>(&self, bstrapplicationdata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetApplicationData)(::windows::core::Interface::as_raw(self), bstrapplicationdata.into().abi()).ok() + pub unsafe fn SetApplicationData(&self, bstrapplicationdata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetApplicationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationdata)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BizRule(&self) -> ::windows::core::Result { + pub unsafe fn BizRule(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.BizRule)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.BizRule)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetBizRule<'a, P0>(&self, bstrprop: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetBizRule)(::windows::core::Interface::as_raw(self), bstrprop.into().abi()).ok() + pub unsafe fn SetBizRule(&self, bstrprop: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetBizRule)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BizRuleLanguage(&self) -> ::windows::core::Result { + pub unsafe fn BizRuleLanguage(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.BizRuleLanguage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.BizRuleLanguage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetBizRuleLanguage<'a, P0>(&self, bstrprop: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetBizRuleLanguage)(::windows::core::Interface::as_raw(self), bstrprop.into().abi()).ok() + pub unsafe fn SetBizRuleLanguage(&self, bstrprop: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetBizRuleLanguage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BizRuleImportedPath(&self) -> ::windows::core::Result { + pub unsafe fn BizRuleImportedPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.BizRuleImportedPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.BizRuleImportedPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetBizRuleImportedPath<'a, P0>(&self, bstrprop: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetBizRuleImportedPath)(::windows::core::Interface::as_raw(self), bstrprop.into().abi()).ok() + pub unsafe fn SetBizRuleImportedPath(&self, bstrprop: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetBizRuleImportedPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprop)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -10989,39 +9760,35 @@ impl IAzTask2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddOperation<'a, P0, P1>(&self, bstrop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddOperation<'a, P0>(&self, bstrop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.AddOperation)(::windows::core::Interface::as_raw(self), bstrop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AddOperation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteOperation<'a, P0, P1>(&self, bstrop: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteOperation<'a, P0>(&self, bstrop: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeleteOperation)(::windows::core::Interface::as_raw(self), bstrop.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeleteOperation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrop), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddTask<'a, P0, P1>(&self, bstrtask: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn AddTask<'a, P0>(&self, bstrtask: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.AddTask)(::windows::core::Interface::as_raw(self), bstrtask.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AddTask)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtask), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn DeleteTask<'a, P0, P1>(&self, bstrtask: P0, varreserved: P1) -> ::windows::core::Result<()> + pub unsafe fn DeleteTask<'a, P0>(&self, bstrtask: &::windows::core::BSTR, varreserved: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.DeleteTask)(::windows::core::Interface::as_raw(self), bstrtask.into().abi(), varreserved.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeleteTask)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtask), varreserved.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -11073,14 +9840,11 @@ impl IAzTask2 { { (::windows::core::Interface::vtable(self).base__.Submit)(::windows::core::Interface::as_raw(self), lflags, varreserved.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn RoleAssignments<'a, P0>(&self, bstrscopename: P0, brecursive: i16) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn RoleAssignments(&self, bstrscopename: &::windows::core::BSTR, brecursive: i16) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RoleAssignments)(::windows::core::Interface::as_raw(self), bstrscopename.into().abi(), brecursive, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RoleAssignments)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrscopename), brecursive, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -11167,9 +9931,9 @@ unsafe impl ::windows::core::Interface for IAzTask2 { #[doc(hidden)] pub struct IAzTask2_Vtbl { pub base__: IAzTask_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub RoleAssignments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop, brecursive: i16, pproleassignments: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub RoleAssignments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrscopename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, brecursive: i16, pproleassignments: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] RoleAssignments: usize, } #[doc = "*Required features: `\"Win32_Security_Authorization\"`, `\"Win32_System_Com\"`*"] diff --git a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/Certificates/impl.rs b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/Certificates/impl.rs index fc4c90fd83..7c0c91ab4f 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/Certificates/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/Certificates/impl.rs @@ -1,29 +1,29 @@ #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IAlternativeName_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn InitializeFromString(&self, r#type: AlternativeNameType, strvalue: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn InitializeFromRawData(&self, r#type: AlternativeNameType, encoding: EncodingType, strrawdata: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn InitializeFromOtherName(&self, pobjectid: &::core::option::Option, encoding: EncodingType, strrawdata: &super::super::super::Foundation::BSTR, tobewrapped: i16) -> ::windows::core::Result<()>; + fn InitializeFromString(&self, r#type: AlternativeNameType, strvalue: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn InitializeFromRawData(&self, r#type: AlternativeNameType, encoding: EncodingType, strrawdata: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn InitializeFromOtherName(&self, pobjectid: &::core::option::Option, encoding: EncodingType, strrawdata: &::windows::core::BSTR, tobewrapped: i16) -> ::windows::core::Result<()>; fn Type(&self) -> ::windows::core::Result; - fn StrValue(&self) -> ::windows::core::Result; + fn StrValue(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn ObjectId(&self) -> ::windows::core::Result; - fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result; + fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IAlternativeName {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IAlternativeName_Vtbl { pub const fn new, Impl: IAlternativeName_Impl, const OFFSET: isize>() -> IAlternativeName_Vtbl { - unsafe extern "system" fn InitializeFromString, Impl: IAlternativeName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, r#type: AlternativeNameType, strvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeFromString, Impl: IAlternativeName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, r#type: AlternativeNameType, strvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeFromString(::core::mem::transmute_copy(&r#type), ::core::mem::transmute(&strvalue)).into() } - unsafe extern "system" fn InitializeFromRawData, Impl: IAlternativeName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, r#type: AlternativeNameType, encoding: EncodingType, strrawdata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeFromRawData, Impl: IAlternativeName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, r#type: AlternativeNameType, encoding: EncodingType, strrawdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeFromRawData(::core::mem::transmute_copy(&r#type), ::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strrawdata)).into() } - unsafe extern "system" fn InitializeFromOtherName, Impl: IAlternativeName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pobjectid: *mut ::core::ffi::c_void, encoding: EncodingType, strrawdata: ::core::mem::ManuallyDrop, tobewrapped: i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeFromOtherName, Impl: IAlternativeName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pobjectid: *mut ::core::ffi::c_void, encoding: EncodingType, strrawdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>, tobewrapped: i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeFromOtherName(::core::mem::transmute(&pobjectid), ::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strrawdata), ::core::mem::transmute_copy(&tobewrapped)).into() @@ -39,7 +39,7 @@ impl IAlternativeName_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn StrValue, Impl: IAlternativeName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn StrValue, Impl: IAlternativeName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.StrValue() { @@ -61,7 +61,7 @@ impl IAlternativeName_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_RawData, Impl: IAlternativeName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_RawData, Impl: IAlternativeName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_RawData(::core::mem::transmute_copy(&encoding)) { @@ -165,16 +165,16 @@ impl IAlternativeNames_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IBinaryConverter_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn StringToString(&self, strencodedin: &super::super::super::Foundation::BSTR, encodingin: EncodingType, encoding: EncodingType) -> ::windows::core::Result; - fn VariantByteArrayToString(&self, pvarbytearray: *const super::super::super::System::Com::VARIANT, encoding: EncodingType) -> ::windows::core::Result; - fn StringToVariantByteArray(&self, strencoded: &super::super::super::Foundation::BSTR, encoding: EncodingType) -> ::windows::core::Result; + fn StringToString(&self, strencodedin: &::windows::core::BSTR, encodingin: EncodingType, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; + fn VariantByteArrayToString(&self, pvarbytearray: *const super::super::super::System::Com::VARIANT, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; + fn StringToVariantByteArray(&self, strencoded: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IBinaryConverter {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IBinaryConverter_Vtbl { pub const fn new, Impl: IBinaryConverter_Impl, const OFFSET: isize>() -> IBinaryConverter_Vtbl { - unsafe extern "system" fn StringToString, Impl: IBinaryConverter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strencodedin: ::core::mem::ManuallyDrop, encodingin: EncodingType, encoding: EncodingType, pstrencoded: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn StringToString, Impl: IBinaryConverter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strencodedin: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encodingin: EncodingType, encoding: EncodingType, pstrencoded: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.StringToString(::core::mem::transmute(&strencodedin), ::core::mem::transmute_copy(&encodingin), ::core::mem::transmute_copy(&encoding)) { @@ -185,7 +185,7 @@ impl IBinaryConverter_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn VariantByteArrayToString, Impl: IBinaryConverter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvarbytearray: *const super::super::super::System::Com::VARIANT, encoding: EncodingType, pstrencoded: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn VariantByteArrayToString, Impl: IBinaryConverter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvarbytearray: *const super::super::super::System::Com::VARIANT, encoding: EncodingType, pstrencoded: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.VariantByteArrayToString(::core::mem::transmute_copy(&pvarbytearray), ::core::mem::transmute_copy(&encoding)) { @@ -196,7 +196,7 @@ impl IBinaryConverter_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn StringToVariantByteArray, Impl: IBinaryConverter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strencoded: ::core::mem::ManuallyDrop, encoding: EncodingType, pvarbytearray: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn StringToVariantByteArray, Impl: IBinaryConverter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strencoded: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType, pvarbytearray: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.StringToVariantByteArray(::core::mem::transmute(&strencoded), ::core::mem::transmute_copy(&encoding)) { @@ -262,42 +262,42 @@ impl IBinaryConverter2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICEnroll_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn createFilePKCS10(&self, dnname: &super::super::super::Foundation::BSTR, usage: &super::super::super::Foundation::BSTR, wszpkcs10filename: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn acceptFilePKCS7(&self, wszpkcs7filename: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn createPKCS10(&self, dnname: &super::super::super::Foundation::BSTR, usage: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn acceptPKCS7(&self, pkcs7: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn getCertFromPKCS7(&self, wszpkcs7: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn enumProviders(&self, dwindex: i32, dwflags: i32) -> ::windows::core::Result; - fn enumContainers(&self, dwindex: i32) -> ::windows::core::Result; - fn freeRequestInfo(&self, pkcs7orpkcs10: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn MyStoreName(&self) -> ::windows::core::Result; - fn SetMyStoreName(&self, bstrname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn MyStoreType(&self) -> ::windows::core::Result; - fn SetMyStoreType(&self, bstrtype: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn createFilePKCS10(&self, dnname: &::windows::core::BSTR, usage: &::windows::core::BSTR, wszpkcs10filename: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn acceptFilePKCS7(&self, wszpkcs7filename: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn createPKCS10(&self, dnname: &::windows::core::BSTR, usage: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; + fn acceptPKCS7(&self, pkcs7: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn getCertFromPKCS7(&self, wszpkcs7: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; + fn enumProviders(&self, dwindex: i32, dwflags: i32) -> ::windows::core::Result<::windows::core::BSTR>; + fn enumContainers(&self, dwindex: i32) -> ::windows::core::Result<::windows::core::BSTR>; + fn freeRequestInfo(&self, pkcs7orpkcs10: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn MyStoreName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetMyStoreName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn MyStoreType(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetMyStoreType(&self, bstrtype: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn MyStoreFlags(&self) -> ::windows::core::Result; fn SetMyStoreFlags(&self, dwflags: i32) -> ::windows::core::Result<()>; - fn CAStoreName(&self) -> ::windows::core::Result; - fn SetCAStoreName(&self, bstrname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn CAStoreType(&self) -> ::windows::core::Result; - fn SetCAStoreType(&self, bstrtype: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn CAStoreName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetCAStoreName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn CAStoreType(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetCAStoreType(&self, bstrtype: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn CAStoreFlags(&self) -> ::windows::core::Result; fn SetCAStoreFlags(&self, dwflags: i32) -> ::windows::core::Result<()>; - fn RootStoreName(&self) -> ::windows::core::Result; - fn SetRootStoreName(&self, bstrname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn RootStoreType(&self) -> ::windows::core::Result; - fn SetRootStoreType(&self, bstrtype: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn RootStoreName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetRootStoreName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn RootStoreType(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetRootStoreType(&self, bstrtype: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn RootStoreFlags(&self) -> ::windows::core::Result; fn SetRootStoreFlags(&self, dwflags: i32) -> ::windows::core::Result<()>; - fn RequestStoreName(&self) -> ::windows::core::Result; - fn SetRequestStoreName(&self, bstrname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn RequestStoreType(&self) -> ::windows::core::Result; - fn SetRequestStoreType(&self, bstrtype: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn RequestStoreName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetRequestStoreName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn RequestStoreType(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetRequestStoreType(&self, bstrtype: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn RequestStoreFlags(&self) -> ::windows::core::Result; fn SetRequestStoreFlags(&self, dwflags: i32) -> ::windows::core::Result<()>; - fn ContainerName(&self) -> ::windows::core::Result; - fn SetContainerName(&self, bstrcontainer: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ProviderName(&self) -> ::windows::core::Result; - fn SetProviderName(&self, bstrprovider: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ContainerName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetContainerName(&self, bstrcontainer: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ProviderName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetProviderName(&self, bstrprovider: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn ProviderType(&self) -> ::windows::core::Result; fn SetProviderType(&self, dwtype: i32) -> ::windows::core::Result<()>; fn KeySpec(&self) -> ::windows::core::Result; @@ -312,29 +312,29 @@ pub trait ICEnroll_Impl: Sized + super::super::super::System::Com::IDispatch_Imp fn SetDeleteRequestCert(&self, fdelete: super::super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn WriteCertToCSP(&self) -> ::windows::core::Result; fn SetWriteCertToCSP(&self, fbool: super::super::super::Foundation::BOOL) -> ::windows::core::Result<()>; - fn SPCFileName(&self) -> ::windows::core::Result; - fn SetSPCFileName(&self, bstr: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn PVKFileName(&self) -> ::windows::core::Result; - fn SetPVKFileName(&self, bstr: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn HashAlgorithm(&self) -> ::windows::core::Result; - fn SetHashAlgorithm(&self, bstr: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SPCFileName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetSPCFileName(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn PVKFileName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetPVKFileName(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn HashAlgorithm(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetHashAlgorithm(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICEnroll {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICEnroll_Vtbl { pub const fn new, Impl: ICEnroll_Impl, const OFFSET: isize>() -> ICEnroll_Vtbl { - unsafe extern "system" fn createFilePKCS10, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dnname: ::core::mem::ManuallyDrop, usage: ::core::mem::ManuallyDrop, wszpkcs10filename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn createFilePKCS10, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dnname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, usage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, wszpkcs10filename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.createFilePKCS10(::core::mem::transmute(&dnname), ::core::mem::transmute(&usage), ::core::mem::transmute(&wszpkcs10filename)).into() } - unsafe extern "system" fn acceptFilePKCS7, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wszpkcs7filename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn acceptFilePKCS7, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wszpkcs7filename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.acceptFilePKCS7(::core::mem::transmute(&wszpkcs7filename)).into() } - unsafe extern "system" fn createPKCS10, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dnname: ::core::mem::ManuallyDrop, usage: ::core::mem::ManuallyDrop, ppkcs10: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn createPKCS10, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dnname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, usage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppkcs10: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.createPKCS10(::core::mem::transmute(&dnname), ::core::mem::transmute(&usage)) { @@ -345,12 +345,12 @@ impl ICEnroll_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn acceptPKCS7, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pkcs7: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn acceptPKCS7, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pkcs7: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.acceptPKCS7(::core::mem::transmute(&pkcs7)).into() } - unsafe extern "system" fn getCertFromPKCS7, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wszpkcs7: ::core::mem::ManuallyDrop, pbstrcert: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn getCertFromPKCS7, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wszpkcs7: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrcert: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getCertFromPKCS7(::core::mem::transmute(&wszpkcs7)) { @@ -361,7 +361,7 @@ impl ICEnroll_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn enumProviders, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwindex: i32, dwflags: i32, pbstrprovname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn enumProviders, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwindex: i32, dwflags: i32, pbstrprovname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.enumProviders(::core::mem::transmute_copy(&dwindex), ::core::mem::transmute_copy(&dwflags)) { @@ -372,7 +372,7 @@ impl ICEnroll_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn enumContainers, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwindex: i32, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn enumContainers, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwindex: i32, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.enumContainers(::core::mem::transmute_copy(&dwindex)) { @@ -383,12 +383,12 @@ impl ICEnroll_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn freeRequestInfo, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pkcs7orpkcs10: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn freeRequestInfo, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pkcs7orpkcs10: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.freeRequestInfo(::core::mem::transmute(&pkcs7orpkcs10)).into() } - unsafe extern "system" fn MyStoreName, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn MyStoreName, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.MyStoreName() { @@ -399,12 +399,12 @@ impl ICEnroll_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetMyStoreName, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetMyStoreName, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetMyStoreName(::core::mem::transmute(&bstrname)).into() } - unsafe extern "system" fn MyStoreType, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtype: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn MyStoreType, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.MyStoreType() { @@ -415,7 +415,7 @@ impl ICEnroll_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetMyStoreType, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetMyStoreType, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetMyStoreType(::core::mem::transmute(&bstrtype)).into() @@ -436,7 +436,7 @@ impl ICEnroll_Vtbl { let this = (*this).get_impl(); this.SetMyStoreFlags(::core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn CAStoreName, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CAStoreName, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CAStoreName() { @@ -447,12 +447,12 @@ impl ICEnroll_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetCAStoreName, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCAStoreName, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCAStoreName(::core::mem::transmute(&bstrname)).into() } - unsafe extern "system" fn CAStoreType, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtype: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CAStoreType, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CAStoreType() { @@ -463,7 +463,7 @@ impl ICEnroll_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetCAStoreType, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCAStoreType, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCAStoreType(::core::mem::transmute(&bstrtype)).into() @@ -484,7 +484,7 @@ impl ICEnroll_Vtbl { let this = (*this).get_impl(); this.SetCAStoreFlags(::core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn RootStoreName, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RootStoreName, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RootStoreName() { @@ -495,12 +495,12 @@ impl ICEnroll_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetRootStoreName, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetRootStoreName, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetRootStoreName(::core::mem::transmute(&bstrname)).into() } - unsafe extern "system" fn RootStoreType, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtype: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RootStoreType, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RootStoreType() { @@ -511,7 +511,7 @@ impl ICEnroll_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetRootStoreType, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetRootStoreType, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetRootStoreType(::core::mem::transmute(&bstrtype)).into() @@ -532,7 +532,7 @@ impl ICEnroll_Vtbl { let this = (*this).get_impl(); this.SetRootStoreFlags(::core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn RequestStoreName, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RequestStoreName, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RequestStoreName() { @@ -543,12 +543,12 @@ impl ICEnroll_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetRequestStoreName, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetRequestStoreName, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetRequestStoreName(::core::mem::transmute(&bstrname)).into() } - unsafe extern "system" fn RequestStoreType, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtype: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RequestStoreType, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RequestStoreType() { @@ -559,7 +559,7 @@ impl ICEnroll_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetRequestStoreType, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetRequestStoreType, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetRequestStoreType(::core::mem::transmute(&bstrtype)).into() @@ -580,7 +580,7 @@ impl ICEnroll_Vtbl { let this = (*this).get_impl(); this.SetRequestStoreFlags(::core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn ContainerName, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcontainer: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ContainerName, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcontainer: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ContainerName() { @@ -591,12 +591,12 @@ impl ICEnroll_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetContainerName, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcontainer: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetContainerName, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcontainer: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetContainerName(::core::mem::transmute(&bstrcontainer)).into() } - unsafe extern "system" fn ProviderName, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprovider: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ProviderName, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprovider: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ProviderName() { @@ -607,7 +607,7 @@ impl ICEnroll_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetProviderName, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprovider: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetProviderName, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprovider: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetProviderName(::core::mem::transmute(&bstrprovider)).into() @@ -724,7 +724,7 @@ impl ICEnroll_Vtbl { let this = (*this).get_impl(); this.SetWriteCertToCSP(::core::mem::transmute_copy(&fbool)).into() } - unsafe extern "system" fn SPCFileName, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SPCFileName, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SPCFileName() { @@ -735,12 +735,12 @@ impl ICEnroll_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSPCFileName, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSPCFileName, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSPCFileName(::core::mem::transmute(&bstr)).into() } - unsafe extern "system" fn PVKFileName, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PVKFileName, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PVKFileName() { @@ -751,12 +751,12 @@ impl ICEnroll_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPVKFileName, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPVKFileName, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPVKFileName(::core::mem::transmute(&bstr)).into() } - unsafe extern "system" fn HashAlgorithm, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn HashAlgorithm, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.HashAlgorithm() { @@ -767,7 +767,7 @@ impl ICEnroll_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetHashAlgorithm, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetHashAlgorithm, Impl: ICEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetHashAlgorithm(::core::mem::transmute(&bstr)).into() @@ -838,8 +838,8 @@ impl ICEnroll_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICEnroll2_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + ICEnroll_Impl { - fn addCertTypeToRequest(&self, certtype: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn addNameValuePairToSignature(&self, name: &super::super::super::Foundation::BSTR, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn addCertTypeToRequest(&self, certtype: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn addNameValuePairToSignature(&self, name: &::windows::core::BSTR, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn WriteCertToUserDS(&self) -> ::windows::core::Result; fn SetWriteCertToUserDS(&self, fbool: super::super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn EnableT61DNEncoding(&self) -> ::windows::core::Result; @@ -850,12 +850,12 @@ impl ::windows::core::RuntimeName for ICEnroll2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICEnroll2_Vtbl { pub const fn new, Impl: ICEnroll2_Impl, const OFFSET: isize>() -> ICEnroll2_Vtbl { - unsafe extern "system" fn addCertTypeToRequest, Impl: ICEnroll2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, certtype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn addCertTypeToRequest, Impl: ICEnroll2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, certtype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.addCertTypeToRequest(::core::mem::transmute(&certtype)).into() } - unsafe extern "system" fn addNameValuePairToSignature, Impl: ICEnroll2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn addNameValuePairToSignature, Impl: ICEnroll2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.addNameValuePairToSignature(::core::mem::transmute(&name), ::core::mem::transmute(&value)).into() @@ -908,12 +908,12 @@ impl ICEnroll2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICEnroll3_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + ICEnroll_Impl + ICEnroll2_Impl { - fn InstallPKCS7(&self, pkcs7: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn InstallPKCS7(&self, pkcs7: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Reset(&self) -> ::windows::core::Result<()>; fn GetSupportedKeySpec(&self) -> ::windows::core::Result; fn GetKeyLen(&self, fmin: super::super::super::Foundation::BOOL, fexchange: super::super::super::Foundation::BOOL) -> ::windows::core::Result; fn EnumAlgs(&self, dwindex: i32, algclass: i32) -> ::windows::core::Result; - fn GetAlgName(&self, algid: i32) -> ::windows::core::Result; + fn GetAlgName(&self, algid: i32) -> ::windows::core::Result<::windows::core::BSTR>; fn SetReuseHardwareKeyIfUnableToGenNew(&self, freusehardwarekeyifunabletogennew: super::super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn ReuseHardwareKeyIfUnableToGenNew(&self) -> ::windows::core::Result; fn SetHashAlgID(&self, hashalgid: i32) -> ::windows::core::Result<()>; @@ -928,7 +928,7 @@ impl ::windows::core::RuntimeName for ICEnroll3 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICEnroll3_Vtbl { pub const fn new, Impl: ICEnroll3_Impl, const OFFSET: isize>() -> ICEnroll3_Vtbl { - unsafe extern "system" fn InstallPKCS7, Impl: ICEnroll3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pkcs7: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InstallPKCS7, Impl: ICEnroll3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pkcs7: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InstallPKCS7(::core::mem::transmute(&pkcs7)).into() @@ -971,7 +971,7 @@ impl ICEnroll3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetAlgName, Impl: ICEnroll3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, algid: i32, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetAlgName, Impl: ICEnroll3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, algid: i32, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetAlgName(::core::mem::transmute_copy(&algid)) { @@ -1070,36 +1070,36 @@ impl ICEnroll3_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICEnroll4_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + ICEnroll_Impl + ICEnroll2_Impl + ICEnroll3_Impl { - fn SetPrivateKeyArchiveCertificate(&self, bstrcert: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn PrivateKeyArchiveCertificate(&self) -> ::windows::core::Result; - fn SetThumbPrint(&self, bstrthumbprint: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ThumbPrint(&self) -> ::windows::core::Result; - fn binaryToString(&self, flags: i32, strbinary: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn stringToBinary(&self, flags: i32, strencoded: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn addExtensionToRequest(&self, flags: i32, strname: &super::super::super::Foundation::BSTR, strvalue: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn addAttributeToRequest(&self, flags: i32, strname: &super::super::super::Foundation::BSTR, strvalue: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn addNameValuePairToRequest(&self, flags: i32, strname: &super::super::super::Foundation::BSTR, strvalue: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetPrivateKeyArchiveCertificate(&self, bstrcert: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn PrivateKeyArchiveCertificate(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetThumbPrint(&self, bstrthumbprint: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ThumbPrint(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn binaryToString(&self, flags: i32, strbinary: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; + fn stringToBinary(&self, flags: i32, strencoded: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; + fn addExtensionToRequest(&self, flags: i32, strname: &::windows::core::BSTR, strvalue: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn addAttributeToRequest(&self, flags: i32, strname: &::windows::core::BSTR, strvalue: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn addNameValuePairToRequest(&self, flags: i32, strname: &::windows::core::BSTR, strvalue: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn resetExtensions(&self) -> ::windows::core::Result<()>; fn resetAttributes(&self) -> ::windows::core::Result<()>; - fn createRequest(&self, flags: CERT_CREATE_REQUEST_FLAGS, strdnname: &super::super::super::Foundation::BSTR, usage: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn createFileRequest(&self, flags: CERT_CREATE_REQUEST_FLAGS, strdnname: &super::super::super::Foundation::BSTR, strusage: &super::super::super::Foundation::BSTR, strrequestfilename: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn acceptResponse(&self, strresponse: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn acceptFileResponse(&self, strresponsefilename: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn getCertFromResponse(&self, strresponse: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn getCertFromFileResponse(&self, strresponsefilename: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn createPFX(&self, strpassword: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn createFilePFX(&self, strpassword: &super::super::super::Foundation::BSTR, strpfxfilename: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn setPendingRequestInfo(&self, lrequestid: i32, strcadns: &super::super::super::Foundation::BSTR, strcaname: &super::super::super::Foundation::BSTR, strfriendlyname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn createRequest(&self, flags: CERT_CREATE_REQUEST_FLAGS, strdnname: &::windows::core::BSTR, usage: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; + fn createFileRequest(&self, flags: CERT_CREATE_REQUEST_FLAGS, strdnname: &::windows::core::BSTR, strusage: &::windows::core::BSTR, strrequestfilename: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn acceptResponse(&self, strresponse: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn acceptFileResponse(&self, strresponsefilename: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn getCertFromResponse(&self, strresponse: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; + fn getCertFromFileResponse(&self, strresponsefilename: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; + fn createPFX(&self, strpassword: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; + fn createFilePFX(&self, strpassword: &::windows::core::BSTR, strpfxfilename: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn setPendingRequestInfo(&self, lrequestid: i32, strcadns: &::windows::core::BSTR, strcaname: &::windows::core::BSTR, strfriendlyname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn enumPendingRequest(&self, lindex: i32, ldesiredproperty: PENDING_REQUEST_DESIRED_PROPERTY) -> ::windows::core::Result; - fn removePendingRequest(&self, strthumbprint: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn removePendingRequest(&self, strthumbprint: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetKeyLenEx(&self, lsizespec: XEKL_KEYSIZE, lkeyspec: XEKL_KEYSPEC) -> ::windows::core::Result; - fn InstallPKCS7Ex(&self, pkcs7: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn addCertTypeToRequestEx(&self, ltype: ADDED_CERT_TYPE, bstroidorname: &super::super::super::Foundation::BSTR, lmajorversion: i32, fminorversion: super::super::super::Foundation::BOOL, lminorversion: i32) -> ::windows::core::Result<()>; - fn getProviderType(&self, strprovname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn SetSignerCertificate(&self, bstrcert: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn InstallPKCS7Ex(&self, pkcs7: &::windows::core::BSTR) -> ::windows::core::Result; + fn addCertTypeToRequestEx(&self, ltype: ADDED_CERT_TYPE, bstroidorname: &::windows::core::BSTR, lmajorversion: i32, fminorversion: super::super::super::Foundation::BOOL, lminorversion: i32) -> ::windows::core::Result<()>; + fn getProviderType(&self, strprovname: &::windows::core::BSTR) -> ::windows::core::Result; + fn SetSignerCertificate(&self, bstrcert: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SetClientId(&self, lclientid: i32) -> ::windows::core::Result<()>; fn ClientId(&self) -> ::windows::core::Result; - fn addBlobPropertyToCertificate(&self, lpropertyid: i32, lreserved: i32, bstrproperty: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn addBlobPropertyToCertificate(&self, lpropertyid: i32, lreserved: i32, bstrproperty: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn resetBlobProperties(&self) -> ::windows::core::Result<()>; fn SetIncludeSubjectKeyID(&self, finclude: super::super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn IncludeSubjectKeyID(&self) -> ::windows::core::Result; @@ -1109,12 +1109,12 @@ impl ::windows::core::RuntimeName for ICEnroll4 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICEnroll4_Vtbl { pub const fn new, Impl: ICEnroll4_Impl, const OFFSET: isize>() -> ICEnroll4_Vtbl { - unsafe extern "system" fn SetPrivateKeyArchiveCertificate, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcert: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPrivateKeyArchiveCertificate, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcert: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPrivateKeyArchiveCertificate(::core::mem::transmute(&bstrcert)).into() } - unsafe extern "system" fn PrivateKeyArchiveCertificate, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcert: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PrivateKeyArchiveCertificate, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcert: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PrivateKeyArchiveCertificate() { @@ -1125,12 +1125,12 @@ impl ICEnroll4_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetThumbPrint, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrthumbprint: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetThumbPrint, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrthumbprint: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetThumbPrint(::core::mem::transmute(&bstrthumbprint)).into() } - unsafe extern "system" fn ThumbPrint, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrthumbprint: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ThumbPrint, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrthumbprint: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ThumbPrint() { @@ -1141,7 +1141,7 @@ impl ICEnroll4_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn binaryToString, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flags: i32, strbinary: ::core::mem::ManuallyDrop, pstrencoded: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn binaryToString, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flags: i32, strbinary: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pstrencoded: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.binaryToString(::core::mem::transmute_copy(&flags), ::core::mem::transmute(&strbinary)) { @@ -1152,7 +1152,7 @@ impl ICEnroll4_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn stringToBinary, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flags: i32, strencoded: ::core::mem::ManuallyDrop, pstrbinary: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn stringToBinary, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flags: i32, strencoded: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pstrbinary: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.stringToBinary(::core::mem::transmute_copy(&flags), ::core::mem::transmute(&strencoded)) { @@ -1163,17 +1163,17 @@ impl ICEnroll4_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn addExtensionToRequest, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flags: i32, strname: ::core::mem::ManuallyDrop, strvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn addExtensionToRequest, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flags: i32, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.addExtensionToRequest(::core::mem::transmute_copy(&flags), ::core::mem::transmute(&strname), ::core::mem::transmute(&strvalue)).into() } - unsafe extern "system" fn addAttributeToRequest, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flags: i32, strname: ::core::mem::ManuallyDrop, strvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn addAttributeToRequest, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flags: i32, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.addAttributeToRequest(::core::mem::transmute_copy(&flags), ::core::mem::transmute(&strname), ::core::mem::transmute(&strvalue)).into() } - unsafe extern "system" fn addNameValuePairToRequest, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flags: i32, strname: ::core::mem::ManuallyDrop, strvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn addNameValuePairToRequest, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flags: i32, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.addNameValuePairToRequest(::core::mem::transmute_copy(&flags), ::core::mem::transmute(&strname), ::core::mem::transmute(&strvalue)).into() @@ -1188,7 +1188,7 @@ impl ICEnroll4_Vtbl { let this = (*this).get_impl(); this.resetAttributes().into() } - unsafe extern "system" fn createRequest, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flags: CERT_CREATE_REQUEST_FLAGS, strdnname: ::core::mem::ManuallyDrop, usage: ::core::mem::ManuallyDrop, pstrrequest: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn createRequest, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flags: CERT_CREATE_REQUEST_FLAGS, strdnname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, usage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pstrrequest: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.createRequest(::core::mem::transmute_copy(&flags), ::core::mem::transmute(&strdnname), ::core::mem::transmute(&usage)) { @@ -1199,22 +1199,22 @@ impl ICEnroll4_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn createFileRequest, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flags: CERT_CREATE_REQUEST_FLAGS, strdnname: ::core::mem::ManuallyDrop, strusage: ::core::mem::ManuallyDrop, strrequestfilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn createFileRequest, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flags: CERT_CREATE_REQUEST_FLAGS, strdnname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strusage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strrequestfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.createFileRequest(::core::mem::transmute_copy(&flags), ::core::mem::transmute(&strdnname), ::core::mem::transmute(&strusage), ::core::mem::transmute(&strrequestfilename)).into() } - unsafe extern "system" fn acceptResponse, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strresponse: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn acceptResponse, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strresponse: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.acceptResponse(::core::mem::transmute(&strresponse)).into() } - unsafe extern "system" fn acceptFileResponse, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strresponsefilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn acceptFileResponse, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strresponsefilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.acceptFileResponse(::core::mem::transmute(&strresponsefilename)).into() } - unsafe extern "system" fn getCertFromResponse, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strresponse: ::core::mem::ManuallyDrop, pstrcert: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn getCertFromResponse, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strresponse: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pstrcert: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getCertFromResponse(::core::mem::transmute(&strresponse)) { @@ -1225,7 +1225,7 @@ impl ICEnroll4_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn getCertFromFileResponse, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strresponsefilename: ::core::mem::ManuallyDrop, pstrcert: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn getCertFromFileResponse, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strresponsefilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pstrcert: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getCertFromFileResponse(::core::mem::transmute(&strresponsefilename)) { @@ -1236,7 +1236,7 @@ impl ICEnroll4_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn createPFX, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpassword: ::core::mem::ManuallyDrop, pstrpfx: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn createPFX, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pstrpfx: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.createPFX(::core::mem::transmute(&strpassword)) { @@ -1247,12 +1247,12 @@ impl ICEnroll4_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn createFilePFX, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpassword: ::core::mem::ManuallyDrop, strpfxfilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn createFilePFX, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpfxfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.createFilePFX(::core::mem::transmute(&strpassword), ::core::mem::transmute(&strpfxfilename)).into() } - unsafe extern "system" fn setPendingRequestInfo, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lrequestid: i32, strcadns: ::core::mem::ManuallyDrop, strcaname: ::core::mem::ManuallyDrop, strfriendlyname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn setPendingRequestInfo, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lrequestid: i32, strcadns: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strcaname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strfriendlyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.setPendingRequestInfo(::core::mem::transmute_copy(&lrequestid), ::core::mem::transmute(&strcadns), ::core::mem::transmute(&strcaname), ::core::mem::transmute(&strfriendlyname)).into() @@ -1268,7 +1268,7 @@ impl ICEnroll4_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn removePendingRequest, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strthumbprint: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn removePendingRequest, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strthumbprint: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.removePendingRequest(::core::mem::transmute(&strthumbprint)).into() @@ -1284,7 +1284,7 @@ impl ICEnroll4_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn InstallPKCS7Ex, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pkcs7: ::core::mem::ManuallyDrop, plcertinstalled: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn InstallPKCS7Ex, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pkcs7: ::core::mem::ManuallyDrop<::windows::core::BSTR>, plcertinstalled: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.InstallPKCS7Ex(::core::mem::transmute(&pkcs7)) { @@ -1295,12 +1295,12 @@ impl ICEnroll4_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn addCertTypeToRequestEx, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ltype: ADDED_CERT_TYPE, bstroidorname: ::core::mem::ManuallyDrop, lmajorversion: i32, fminorversion: super::super::super::Foundation::BOOL, lminorversion: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn addCertTypeToRequestEx, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ltype: ADDED_CERT_TYPE, bstroidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lmajorversion: i32, fminorversion: super::super::super::Foundation::BOOL, lminorversion: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.addCertTypeToRequestEx(::core::mem::transmute_copy(<ype), ::core::mem::transmute(&bstroidorname), ::core::mem::transmute_copy(&lmajorversion), ::core::mem::transmute_copy(&fminorversion), ::core::mem::transmute_copy(&lminorversion)).into() } - unsafe extern "system" fn getProviderType, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strprovname: ::core::mem::ManuallyDrop, plprovtype: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn getProviderType, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strprovname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, plprovtype: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getProviderType(::core::mem::transmute(&strprovname)) { @@ -1311,7 +1311,7 @@ impl ICEnroll4_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSignerCertificate, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcert: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSignerCertificate, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcert: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSignerCertificate(::core::mem::transmute(&bstrcert)).into() @@ -1332,7 +1332,7 @@ impl ICEnroll4_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn addBlobPropertyToCertificate, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lpropertyid: i32, lreserved: i32, bstrproperty: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn addBlobPropertyToCertificate, Impl: ICEnroll4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lpropertyid: i32, lreserved: i32, bstrproperty: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.addBlobPropertyToCertificate(::core::mem::transmute_copy(&lpropertyid), ::core::mem::transmute_copy(&lreserved), ::core::mem::transmute(&bstrproperty)).into() @@ -1401,23 +1401,23 @@ impl ICEnroll4_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertAdmin_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn IsValidCertificate(&self, strconfig: &super::super::super::Foundation::BSTR, strserialnumber: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; + fn IsValidCertificate(&self, strconfig: &::windows::core::BSTR, strserialnumber: &::windows::core::BSTR) -> ::windows::core::Result; fn GetRevocationReason(&self) -> ::windows::core::Result; - fn RevokeCertificate(&self, strconfig: &super::super::super::Foundation::BSTR, strserialnumber: &super::super::super::Foundation::BSTR, reason: i32, date: f64) -> ::windows::core::Result<()>; - fn SetRequestAttributes(&self, strconfig: &super::super::super::Foundation::BSTR, requestid: i32, strattributes: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetCertificateExtension(&self, strconfig: &super::super::super::Foundation::BSTR, requestid: i32, strextensionname: &super::super::super::Foundation::BSTR, r#type: CERT_PROPERTY_TYPE, flags: i32, pvarvalue: *const super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn DenyRequest(&self, strconfig: &super::super::super::Foundation::BSTR, requestid: i32) -> ::windows::core::Result<()>; - fn ResubmitRequest(&self, strconfig: &super::super::super::Foundation::BSTR, requestid: i32) -> ::windows::core::Result; - fn PublishCRL(&self, strconfig: &super::super::super::Foundation::BSTR, date: f64) -> ::windows::core::Result<()>; - fn GetCRL(&self, strconfig: &super::super::super::Foundation::BSTR, flags: i32) -> ::windows::core::Result; - fn ImportCertificate(&self, strconfig: &super::super::super::Foundation::BSTR, strcertificate: &super::super::super::Foundation::BSTR, flags: CERT_IMPORT_FLAGS) -> ::windows::core::Result; + fn RevokeCertificate(&self, strconfig: &::windows::core::BSTR, strserialnumber: &::windows::core::BSTR, reason: i32, date: f64) -> ::windows::core::Result<()>; + fn SetRequestAttributes(&self, strconfig: &::windows::core::BSTR, requestid: i32, strattributes: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetCertificateExtension(&self, strconfig: &::windows::core::BSTR, requestid: i32, strextensionname: &::windows::core::BSTR, r#type: CERT_PROPERTY_TYPE, flags: i32, pvarvalue: *const super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn DenyRequest(&self, strconfig: &::windows::core::BSTR, requestid: i32) -> ::windows::core::Result<()>; + fn ResubmitRequest(&self, strconfig: &::windows::core::BSTR, requestid: i32) -> ::windows::core::Result; + fn PublishCRL(&self, strconfig: &::windows::core::BSTR, date: f64) -> ::windows::core::Result<()>; + fn GetCRL(&self, strconfig: &::windows::core::BSTR, flags: i32) -> ::windows::core::Result<::windows::core::BSTR>; + fn ImportCertificate(&self, strconfig: &::windows::core::BSTR, strcertificate: &::windows::core::BSTR, flags: CERT_IMPORT_FLAGS) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICertAdmin {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertAdmin_Vtbl { pub const fn new, Impl: ICertAdmin_Impl, const OFFSET: isize>() -> ICertAdmin_Vtbl { - unsafe extern "system" fn IsValidCertificate, Impl: ICertAdmin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, strserialnumber: ::core::mem::ManuallyDrop, pdisposition: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn IsValidCertificate, Impl: ICertAdmin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strserialnumber: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdisposition: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.IsValidCertificate(::core::mem::transmute(&strconfig), ::core::mem::transmute(&strserialnumber)) { @@ -1439,27 +1439,27 @@ impl ICertAdmin_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RevokeCertificate, Impl: ICertAdmin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, strserialnumber: ::core::mem::ManuallyDrop, reason: i32, date: f64) -> ::windows::core::HRESULT { + unsafe extern "system" fn RevokeCertificate, Impl: ICertAdmin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strserialnumber: ::core::mem::ManuallyDrop<::windows::core::BSTR>, reason: i32, date: f64) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RevokeCertificate(::core::mem::transmute(&strconfig), ::core::mem::transmute(&strserialnumber), ::core::mem::transmute_copy(&reason), ::core::mem::transmute_copy(&date)).into() } - unsafe extern "system" fn SetRequestAttributes, Impl: ICertAdmin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, requestid: i32, strattributes: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetRequestAttributes, Impl: ICertAdmin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, requestid: i32, strattributes: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetRequestAttributes(::core::mem::transmute(&strconfig), ::core::mem::transmute_copy(&requestid), ::core::mem::transmute(&strattributes)).into() } - unsafe extern "system" fn SetCertificateExtension, Impl: ICertAdmin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, requestid: i32, strextensionname: ::core::mem::ManuallyDrop, r#type: CERT_PROPERTY_TYPE, flags: i32, pvarvalue: *const super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCertificateExtension, Impl: ICertAdmin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, requestid: i32, strextensionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, r#type: CERT_PROPERTY_TYPE, flags: i32, pvarvalue: *const super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCertificateExtension(::core::mem::transmute(&strconfig), ::core::mem::transmute_copy(&requestid), ::core::mem::transmute(&strextensionname), ::core::mem::transmute_copy(&r#type), ::core::mem::transmute_copy(&flags), ::core::mem::transmute_copy(&pvarvalue)).into() } - unsafe extern "system" fn DenyRequest, Impl: ICertAdmin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, requestid: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn DenyRequest, Impl: ICertAdmin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, requestid: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DenyRequest(::core::mem::transmute(&strconfig), ::core::mem::transmute_copy(&requestid)).into() } - unsafe extern "system" fn ResubmitRequest, Impl: ICertAdmin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, requestid: i32, pdisposition: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn ResubmitRequest, Impl: ICertAdmin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, requestid: i32, pdisposition: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ResubmitRequest(::core::mem::transmute(&strconfig), ::core::mem::transmute_copy(&requestid)) { @@ -1470,12 +1470,12 @@ impl ICertAdmin_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn PublishCRL, Impl: ICertAdmin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, date: f64) -> ::windows::core::HRESULT { + unsafe extern "system" fn PublishCRL, Impl: ICertAdmin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, date: f64) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.PublishCRL(::core::mem::transmute(&strconfig), ::core::mem::transmute_copy(&date)).into() } - unsafe extern "system" fn GetCRL, Impl: ICertAdmin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, flags: i32, pstrcrl: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCRL, Impl: ICertAdmin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: i32, pstrcrl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCRL(::core::mem::transmute(&strconfig), ::core::mem::transmute_copy(&flags)) { @@ -1486,7 +1486,7 @@ impl ICertAdmin_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ImportCertificate, Impl: ICertAdmin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, strcertificate: ::core::mem::ManuallyDrop, flags: CERT_IMPORT_FLAGS, prequestid: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn ImportCertificate, Impl: ICertAdmin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strcertificate: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: CERT_IMPORT_FLAGS, prequestid: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ImportCertificate(::core::mem::transmute(&strconfig), ::core::mem::transmute(&strcertificate), ::core::mem::transmute_copy(&flags)) { @@ -1517,29 +1517,29 @@ impl ICertAdmin_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertAdmin2_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + ICertAdmin_Impl { - fn PublishCRLs(&self, strconfig: &super::super::super::Foundation::BSTR, date: f64, crlflags: i32) -> ::windows::core::Result<()>; - fn GetCAProperty(&self, strconfig: &super::super::super::Foundation::BSTR, propid: i32, propindex: i32, proptype: i32, flags: i32) -> ::windows::core::Result; - fn SetCAProperty(&self, strconfig: &super::super::super::Foundation::BSTR, propid: i32, propindex: i32, proptype: CERT_PROPERTY_TYPE, pvarpropertyvalue: *const super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn GetCAPropertyFlags(&self, strconfig: &super::super::super::Foundation::BSTR, propid: i32) -> ::windows::core::Result; - fn GetCAPropertyDisplayName(&self, strconfig: &super::super::super::Foundation::BSTR, propid: i32) -> ::windows::core::Result; - fn GetArchivedKey(&self, strconfig: &super::super::super::Foundation::BSTR, requestid: i32, flags: i32) -> ::windows::core::Result; - fn GetConfigEntry(&self, strconfig: &super::super::super::Foundation::BSTR, strnodepath: &super::super::super::Foundation::BSTR, strentryname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn SetConfigEntry(&self, strconfig: &super::super::super::Foundation::BSTR, strnodepath: &super::super::super::Foundation::BSTR, strentryname: &super::super::super::Foundation::BSTR, pvarentry: *const super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn ImportKey(&self, strconfig: &super::super::super::Foundation::BSTR, requestid: i32, strcerthash: &super::super::super::Foundation::BSTR, flags: CERT_IMPORT_FLAGS, strkey: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetMyRoles(&self, strconfig: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn DeleteRow(&self, strconfig: &super::super::super::Foundation::BSTR, flags: CERT_DELETE_ROW_FLAGS, date: f64, table: CVRC_TABLE, rowid: i32) -> ::windows::core::Result; + fn PublishCRLs(&self, strconfig: &::windows::core::BSTR, date: f64, crlflags: i32) -> ::windows::core::Result<()>; + fn GetCAProperty(&self, strconfig: &::windows::core::BSTR, propid: i32, propindex: i32, proptype: i32, flags: i32) -> ::windows::core::Result; + fn SetCAProperty(&self, strconfig: &::windows::core::BSTR, propid: i32, propindex: i32, proptype: CERT_PROPERTY_TYPE, pvarpropertyvalue: *const super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn GetCAPropertyFlags(&self, strconfig: &::windows::core::BSTR, propid: i32) -> ::windows::core::Result; + fn GetCAPropertyDisplayName(&self, strconfig: &::windows::core::BSTR, propid: i32) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetArchivedKey(&self, strconfig: &::windows::core::BSTR, requestid: i32, flags: i32) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetConfigEntry(&self, strconfig: &::windows::core::BSTR, strnodepath: &::windows::core::BSTR, strentryname: &::windows::core::BSTR) -> ::windows::core::Result; + fn SetConfigEntry(&self, strconfig: &::windows::core::BSTR, strnodepath: &::windows::core::BSTR, strentryname: &::windows::core::BSTR, pvarentry: *const super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn ImportKey(&self, strconfig: &::windows::core::BSTR, requestid: i32, strcerthash: &::windows::core::BSTR, flags: CERT_IMPORT_FLAGS, strkey: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetMyRoles(&self, strconfig: &::windows::core::BSTR) -> ::windows::core::Result; + fn DeleteRow(&self, strconfig: &::windows::core::BSTR, flags: CERT_DELETE_ROW_FLAGS, date: f64, table: CVRC_TABLE, rowid: i32) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICertAdmin2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertAdmin2_Vtbl { pub const fn new, Impl: ICertAdmin2_Impl, const OFFSET: isize>() -> ICertAdmin2_Vtbl { - unsafe extern "system" fn PublishCRLs, Impl: ICertAdmin2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, date: f64, crlflags: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn PublishCRLs, Impl: ICertAdmin2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, date: f64, crlflags: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.PublishCRLs(::core::mem::transmute(&strconfig), ::core::mem::transmute_copy(&date), ::core::mem::transmute_copy(&crlflags)).into() } - unsafe extern "system" fn GetCAProperty, Impl: ICertAdmin2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, propid: i32, propindex: i32, proptype: i32, flags: i32, pvarpropertyvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCAProperty, Impl: ICertAdmin2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propid: i32, propindex: i32, proptype: i32, flags: i32, pvarpropertyvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCAProperty(::core::mem::transmute(&strconfig), ::core::mem::transmute_copy(&propid), ::core::mem::transmute_copy(&propindex), ::core::mem::transmute_copy(&proptype), ::core::mem::transmute_copy(&flags)) { @@ -1550,12 +1550,12 @@ impl ICertAdmin2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetCAProperty, Impl: ICertAdmin2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, propid: i32, propindex: i32, proptype: CERT_PROPERTY_TYPE, pvarpropertyvalue: *const super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCAProperty, Impl: ICertAdmin2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propid: i32, propindex: i32, proptype: CERT_PROPERTY_TYPE, pvarpropertyvalue: *const super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCAProperty(::core::mem::transmute(&strconfig), ::core::mem::transmute_copy(&propid), ::core::mem::transmute_copy(&propindex), ::core::mem::transmute_copy(&proptype), ::core::mem::transmute_copy(&pvarpropertyvalue)).into() } - unsafe extern "system" fn GetCAPropertyFlags, Impl: ICertAdmin2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, propid: i32, ppropflags: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCAPropertyFlags, Impl: ICertAdmin2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propid: i32, ppropflags: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCAPropertyFlags(::core::mem::transmute(&strconfig), ::core::mem::transmute_copy(&propid)) { @@ -1566,7 +1566,7 @@ impl ICertAdmin2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetCAPropertyDisplayName, Impl: ICertAdmin2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, propid: i32, pstrdisplayname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCAPropertyDisplayName, Impl: ICertAdmin2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propid: i32, pstrdisplayname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCAPropertyDisplayName(::core::mem::transmute(&strconfig), ::core::mem::transmute_copy(&propid)) { @@ -1577,7 +1577,7 @@ impl ICertAdmin2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetArchivedKey, Impl: ICertAdmin2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, requestid: i32, flags: i32, pstrarchivedkey: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetArchivedKey, Impl: ICertAdmin2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, requestid: i32, flags: i32, pstrarchivedkey: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetArchivedKey(::core::mem::transmute(&strconfig), ::core::mem::transmute_copy(&requestid), ::core::mem::transmute_copy(&flags)) { @@ -1588,7 +1588,7 @@ impl ICertAdmin2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetConfigEntry, Impl: ICertAdmin2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, strnodepath: ::core::mem::ManuallyDrop, strentryname: ::core::mem::ManuallyDrop, pvarentry: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetConfigEntry, Impl: ICertAdmin2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strnodepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strentryname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarentry: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetConfigEntry(::core::mem::transmute(&strconfig), ::core::mem::transmute(&strnodepath), ::core::mem::transmute(&strentryname)) { @@ -1599,17 +1599,17 @@ impl ICertAdmin2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetConfigEntry, Impl: ICertAdmin2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, strnodepath: ::core::mem::ManuallyDrop, strentryname: ::core::mem::ManuallyDrop, pvarentry: *const super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetConfigEntry, Impl: ICertAdmin2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strnodepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strentryname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarentry: *const super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetConfigEntry(::core::mem::transmute(&strconfig), ::core::mem::transmute(&strnodepath), ::core::mem::transmute(&strentryname), ::core::mem::transmute_copy(&pvarentry)).into() } - unsafe extern "system" fn ImportKey, Impl: ICertAdmin2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, requestid: i32, strcerthash: ::core::mem::ManuallyDrop, flags: CERT_IMPORT_FLAGS, strkey: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ImportKey, Impl: ICertAdmin2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, requestid: i32, strcerthash: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: CERT_IMPORT_FLAGS, strkey: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ImportKey(::core::mem::transmute(&strconfig), ::core::mem::transmute_copy(&requestid), ::core::mem::transmute(&strcerthash), ::core::mem::transmute_copy(&flags), ::core::mem::transmute(&strkey)).into() } - unsafe extern "system" fn GetMyRoles, Impl: ICertAdmin2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, proles: *mut CERTADMIN_GET_ROLES_FLAGS) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetMyRoles, Impl: ICertAdmin2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, proles: *mut CERTADMIN_GET_ROLES_FLAGS) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetMyRoles(::core::mem::transmute(&strconfig)) { @@ -1620,7 +1620,7 @@ impl ICertAdmin2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DeleteRow, Impl: ICertAdmin2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, flags: CERT_DELETE_ROW_FLAGS, date: f64, table: CVRC_TABLE, rowid: i32, pcdeleted: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteRow, Impl: ICertAdmin2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: CERT_DELETE_ROW_FLAGS, date: f64, table: CVRC_TABLE, rowid: i32, pcdeleted: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DeleteRow(::core::mem::transmute(&strconfig), ::core::mem::transmute_copy(&flags), ::core::mem::transmute_copy(&date), ::core::mem::transmute_copy(&table), ::core::mem::transmute_copy(&rowid)) { @@ -1654,8 +1654,8 @@ impl ICertAdmin2_Vtbl { pub trait ICertConfig_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { fn Reset(&self, index: i32) -> ::windows::core::Result; fn Next(&self) -> ::windows::core::Result; - fn GetField(&self, strfieldname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetConfig(&self, flags: i32) -> ::windows::core::Result; + fn GetField(&self, strfieldname: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetConfig(&self, flags: i32) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICertConfig {} @@ -1684,7 +1684,7 @@ impl ICertConfig_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetField, Impl: ICertConfig_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strfieldname: ::core::mem::ManuallyDrop, pstrout: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetField, Impl: ICertConfig_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strfieldname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetField(::core::mem::transmute(&strfieldname)) { @@ -1695,7 +1695,7 @@ impl ICertConfig_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetConfig, Impl: ICertConfig_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flags: i32, pstrout: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetConfig, Impl: ICertConfig_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flags: i32, pstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetConfig(::core::mem::transmute_copy(&flags)) { @@ -1720,14 +1720,14 @@ impl ICertConfig_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertConfig2_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + ICertConfig_Impl { - fn SetSharedFolder(&self, strsharedfolder: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetSharedFolder(&self, strsharedfolder: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICertConfig2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertConfig2_Vtbl { pub const fn new, Impl: ICertConfig2_Impl, const OFFSET: isize>() -> ICertConfig2_Vtbl { - unsafe extern "system" fn SetSharedFolder, Impl: ICertConfig2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strsharedfolder: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSharedFolder, Impl: ICertConfig2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strsharedfolder: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSharedFolder(::core::mem::transmute(&strsharedfolder)).into() @@ -1740,20 +1740,20 @@ impl ICertConfig2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertEncodeAltName_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn Decode(&self, strbinary: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Decode(&self, strbinary: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetNameCount(&self) -> ::windows::core::Result; fn GetNameChoice(&self, nameindex: i32) -> ::windows::core::Result; - fn GetName(&self, nameindex: i32) -> ::windows::core::Result; + fn GetName(&self, nameindex: i32) -> ::windows::core::Result<::windows::core::BSTR>; fn Reset(&self, namecount: i32) -> ::windows::core::Result<()>; - fn SetNameEntry(&self, nameindex: i32, namechoice: CERT_ALT_NAME, strname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Encode(&self) -> ::windows::core::Result; + fn SetNameEntry(&self, nameindex: i32, namechoice: CERT_ALT_NAME, strname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Encode(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICertEncodeAltName {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertEncodeAltName_Vtbl { pub const fn new, Impl: ICertEncodeAltName_Impl, const OFFSET: isize>() -> ICertEncodeAltName_Vtbl { - unsafe extern "system" fn Decode, Impl: ICertEncodeAltName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strbinary: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Decode, Impl: ICertEncodeAltName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strbinary: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Decode(::core::mem::transmute(&strbinary)).into() @@ -1780,7 +1780,7 @@ impl ICertEncodeAltName_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetName, Impl: ICertEncodeAltName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nameindex: i32, pstrname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetName, Impl: ICertEncodeAltName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nameindex: i32, pstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetName(::core::mem::transmute_copy(&nameindex)) { @@ -1796,12 +1796,12 @@ impl ICertEncodeAltName_Vtbl { let this = (*this).get_impl(); this.Reset(::core::mem::transmute_copy(&namecount)).into() } - unsafe extern "system" fn SetNameEntry, Impl: ICertEncodeAltName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nameindex: i32, namechoice: CERT_ALT_NAME, strname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetNameEntry, Impl: ICertEncodeAltName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nameindex: i32, namechoice: CERT_ALT_NAME, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetNameEntry(::core::mem::transmute_copy(&nameindex), ::core::mem::transmute_copy(&namechoice), ::core::mem::transmute(&strname)).into() } - unsafe extern "system" fn Encode, Impl: ICertEncodeAltName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrbinary: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Encode, Impl: ICertEncodeAltName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrbinary: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Encode() { @@ -1829,22 +1829,22 @@ impl ICertEncodeAltName_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertEncodeAltName2_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + ICertEncodeAltName_Impl { - fn DecodeBlob(&self, strencodeddata: &super::super::super::Foundation::BSTR, encoding: EncodingType) -> ::windows::core::Result<()>; - fn EncodeBlob(&self, encoding: EncodingType) -> ::windows::core::Result; - fn GetNameBlob(&self, nameindex: i32, encoding: EncodingType) -> ::windows::core::Result; - fn SetNameEntryBlob(&self, nameindex: i32, namechoice: i32, strname: &super::super::super::Foundation::BSTR, encoding: EncodingType) -> ::windows::core::Result<()>; + fn DecodeBlob(&self, strencodeddata: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()>; + fn EncodeBlob(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetNameBlob(&self, nameindex: i32, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetNameEntryBlob(&self, nameindex: i32, namechoice: i32, strname: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICertEncodeAltName2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertEncodeAltName2_Vtbl { pub const fn new, Impl: ICertEncodeAltName2_Impl, const OFFSET: isize>() -> ICertEncodeAltName2_Vtbl { - unsafe extern "system" fn DecodeBlob, Impl: ICertEncodeAltName2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strencodeddata: ::core::mem::ManuallyDrop, encoding: EncodingType) -> ::windows::core::HRESULT { + unsafe extern "system" fn DecodeBlob, Impl: ICertEncodeAltName2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DecodeBlob(::core::mem::transmute(&strencodeddata), ::core::mem::transmute_copy(&encoding)).into() } - unsafe extern "system" fn EncodeBlob, Impl: ICertEncodeAltName2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pstrencodeddata: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn EncodeBlob, Impl: ICertEncodeAltName2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pstrencodeddata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EncodeBlob(::core::mem::transmute_copy(&encoding)) { @@ -1855,7 +1855,7 @@ impl ICertEncodeAltName2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetNameBlob, Impl: ICertEncodeAltName2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nameindex: i32, encoding: EncodingType, pstrname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetNameBlob, Impl: ICertEncodeAltName2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nameindex: i32, encoding: EncodingType, pstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetNameBlob(::core::mem::transmute_copy(&nameindex), ::core::mem::transmute_copy(&encoding)) { @@ -1866,7 +1866,7 @@ impl ICertEncodeAltName2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetNameEntryBlob, Impl: ICertEncodeAltName2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nameindex: i32, namechoice: i32, strname: ::core::mem::ManuallyDrop, encoding: EncodingType) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetNameEntryBlob, Impl: ICertEncodeAltName2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nameindex: i32, namechoice: i32, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetNameEntryBlob(::core::mem::transmute_copy(&nameindex), ::core::mem::transmute_copy(&namechoice), ::core::mem::transmute(&strname), ::core::mem::transmute_copy(&encoding)).into() @@ -1885,17 +1885,17 @@ impl ICertEncodeAltName2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertEncodeBitString_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn Decode(&self, strbinary: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Decode(&self, strbinary: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetBitCount(&self) -> ::windows::core::Result; - fn GetBitString(&self) -> ::windows::core::Result; - fn Encode(&self, bitcount: i32, strbitstring: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetBitString(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Encode(&self, bitcount: i32, strbitstring: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICertEncodeBitString {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertEncodeBitString_Vtbl { pub const fn new, Impl: ICertEncodeBitString_Impl, const OFFSET: isize>() -> ICertEncodeBitString_Vtbl { - unsafe extern "system" fn Decode, Impl: ICertEncodeBitString_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strbinary: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Decode, Impl: ICertEncodeBitString_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strbinary: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Decode(::core::mem::transmute(&strbinary)).into() @@ -1911,7 +1911,7 @@ impl ICertEncodeBitString_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetBitString, Impl: ICertEncodeBitString_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrbitstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetBitString, Impl: ICertEncodeBitString_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrbitstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetBitString() { @@ -1922,7 +1922,7 @@ impl ICertEncodeBitString_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Encode, Impl: ICertEncodeBitString_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bitcount: i32, strbitstring: ::core::mem::ManuallyDrop, pstrbinary: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Encode, Impl: ICertEncodeBitString_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bitcount: i32, strbitstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pstrbinary: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Encode(::core::mem::transmute_copy(&bitcount), ::core::mem::transmute(&strbitstring)) { @@ -1947,21 +1947,21 @@ impl ICertEncodeBitString_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertEncodeBitString2_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + ICertEncodeBitString_Impl { - fn DecodeBlob(&self, strencodeddata: &super::super::super::Foundation::BSTR, encoding: EncodingType) -> ::windows::core::Result<()>; - fn EncodeBlob(&self, bitcount: i32, strbitstring: &super::super::super::Foundation::BSTR, encodingin: EncodingType, encoding: EncodingType) -> ::windows::core::Result; - fn GetBitStringBlob(&self, encoding: EncodingType) -> ::windows::core::Result; + fn DecodeBlob(&self, strencodeddata: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()>; + fn EncodeBlob(&self, bitcount: i32, strbitstring: &::windows::core::BSTR, encodingin: EncodingType, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetBitStringBlob(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICertEncodeBitString2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertEncodeBitString2_Vtbl { pub const fn new, Impl: ICertEncodeBitString2_Impl, const OFFSET: isize>() -> ICertEncodeBitString2_Vtbl { - unsafe extern "system" fn DecodeBlob, Impl: ICertEncodeBitString2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strencodeddata: ::core::mem::ManuallyDrop, encoding: EncodingType) -> ::windows::core::HRESULT { + unsafe extern "system" fn DecodeBlob, Impl: ICertEncodeBitString2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DecodeBlob(::core::mem::transmute(&strencodeddata), ::core::mem::transmute_copy(&encoding)).into() } - unsafe extern "system" fn EncodeBlob, Impl: ICertEncodeBitString2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bitcount: i32, strbitstring: ::core::mem::ManuallyDrop, encodingin: EncodingType, encoding: EncodingType, pstrencodeddata: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn EncodeBlob, Impl: ICertEncodeBitString2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bitcount: i32, strbitstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encodingin: EncodingType, encoding: EncodingType, pstrencodeddata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EncodeBlob(::core::mem::transmute_copy(&bitcount), ::core::mem::transmute(&strbitstring), ::core::mem::transmute_copy(&encodingin), ::core::mem::transmute_copy(&encoding)) { @@ -1972,7 +1972,7 @@ impl ICertEncodeBitString2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetBitStringBlob, Impl: ICertEncodeBitString2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pstrbitstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetBitStringBlob, Impl: ICertEncodeBitString2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pstrbitstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetBitStringBlob(::core::mem::transmute_copy(&encoding)) { @@ -1996,22 +1996,22 @@ impl ICertEncodeBitString2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertEncodeCRLDistInfo_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn Decode(&self, strbinary: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Decode(&self, strbinary: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetDistPointCount(&self) -> ::windows::core::Result; fn GetNameCount(&self, distpointindex: i32) -> ::windows::core::Result; fn GetNameChoice(&self, distpointindex: i32, nameindex: i32) -> ::windows::core::Result; - fn GetName(&self, distpointindex: i32, nameindex: i32) -> ::windows::core::Result; + fn GetName(&self, distpointindex: i32, nameindex: i32) -> ::windows::core::Result<::windows::core::BSTR>; fn Reset(&self, distpointcount: i32) -> ::windows::core::Result<()>; fn SetNameCount(&self, distpointindex: i32, namecount: i32) -> ::windows::core::Result<()>; - fn SetNameEntry(&self, distpointindex: i32, nameindex: i32, namechoice: CERT_ALT_NAME, strname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Encode(&self) -> ::windows::core::Result; + fn SetNameEntry(&self, distpointindex: i32, nameindex: i32, namechoice: CERT_ALT_NAME, strname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Encode(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICertEncodeCRLDistInfo {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertEncodeCRLDistInfo_Vtbl { pub const fn new, Impl: ICertEncodeCRLDistInfo_Impl, const OFFSET: isize>() -> ICertEncodeCRLDistInfo_Vtbl { - unsafe extern "system" fn Decode, Impl: ICertEncodeCRLDistInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strbinary: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Decode, Impl: ICertEncodeCRLDistInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strbinary: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Decode(::core::mem::transmute(&strbinary)).into() @@ -2049,7 +2049,7 @@ impl ICertEncodeCRLDistInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetName, Impl: ICertEncodeCRLDistInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, distpointindex: i32, nameindex: i32, pstrname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetName, Impl: ICertEncodeCRLDistInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, distpointindex: i32, nameindex: i32, pstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetName(::core::mem::transmute_copy(&distpointindex), ::core::mem::transmute_copy(&nameindex)) { @@ -2070,12 +2070,12 @@ impl ICertEncodeCRLDistInfo_Vtbl { let this = (*this).get_impl(); this.SetNameCount(::core::mem::transmute_copy(&distpointindex), ::core::mem::transmute_copy(&namecount)).into() } - unsafe extern "system" fn SetNameEntry, Impl: ICertEncodeCRLDistInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, distpointindex: i32, nameindex: i32, namechoice: CERT_ALT_NAME, strname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetNameEntry, Impl: ICertEncodeCRLDistInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, distpointindex: i32, nameindex: i32, namechoice: CERT_ALT_NAME, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetNameEntry(::core::mem::transmute_copy(&distpointindex), ::core::mem::transmute_copy(&nameindex), ::core::mem::transmute_copy(&namechoice), ::core::mem::transmute(&strname)).into() } - unsafe extern "system" fn Encode, Impl: ICertEncodeCRLDistInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrbinary: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Encode, Impl: ICertEncodeCRLDistInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrbinary: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Encode() { @@ -2105,20 +2105,20 @@ impl ICertEncodeCRLDistInfo_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertEncodeCRLDistInfo2_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + ICertEncodeCRLDistInfo_Impl { - fn DecodeBlob(&self, strencodeddata: &super::super::super::Foundation::BSTR, encoding: EncodingType) -> ::windows::core::Result<()>; - fn EncodeBlob(&self, encoding: EncodingType) -> ::windows::core::Result; + fn DecodeBlob(&self, strencodeddata: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()>; + fn EncodeBlob(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICertEncodeCRLDistInfo2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertEncodeCRLDistInfo2_Vtbl { pub const fn new, Impl: ICertEncodeCRLDistInfo2_Impl, const OFFSET: isize>() -> ICertEncodeCRLDistInfo2_Vtbl { - unsafe extern "system" fn DecodeBlob, Impl: ICertEncodeCRLDistInfo2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strencodeddata: ::core::mem::ManuallyDrop, encoding: EncodingType) -> ::windows::core::HRESULT { + unsafe extern "system" fn DecodeBlob, Impl: ICertEncodeCRLDistInfo2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DecodeBlob(::core::mem::transmute(&strencodeddata), ::core::mem::transmute_copy(&encoding)).into() } - unsafe extern "system" fn EncodeBlob, Impl: ICertEncodeCRLDistInfo2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pstrencodeddata: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn EncodeBlob, Impl: ICertEncodeCRLDistInfo2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pstrencodeddata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EncodeBlob(::core::mem::transmute_copy(&encoding)) { @@ -2141,19 +2141,19 @@ impl ICertEncodeCRLDistInfo2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertEncodeDateArray_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn Decode(&self, strbinary: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Decode(&self, strbinary: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetCount(&self) -> ::windows::core::Result; fn GetValue(&self, index: i32) -> ::windows::core::Result; fn Reset(&self, count: i32) -> ::windows::core::Result<()>; fn SetValue(&self, index: i32, value: f64) -> ::windows::core::Result<()>; - fn Encode(&self) -> ::windows::core::Result; + fn Encode(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICertEncodeDateArray {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertEncodeDateArray_Vtbl { pub const fn new, Impl: ICertEncodeDateArray_Impl, const OFFSET: isize>() -> ICertEncodeDateArray_Vtbl { - unsafe extern "system" fn Decode, Impl: ICertEncodeDateArray_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strbinary: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Decode, Impl: ICertEncodeDateArray_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strbinary: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Decode(::core::mem::transmute(&strbinary)).into() @@ -2190,7 +2190,7 @@ impl ICertEncodeDateArray_Vtbl { let this = (*this).get_impl(); this.SetValue(::core::mem::transmute_copy(&index), ::core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn Encode, Impl: ICertEncodeDateArray_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrbinary: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Encode, Impl: ICertEncodeDateArray_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrbinary: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Encode() { @@ -2217,20 +2217,20 @@ impl ICertEncodeDateArray_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertEncodeDateArray2_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + ICertEncodeDateArray_Impl { - fn DecodeBlob(&self, strencodeddata: &super::super::super::Foundation::BSTR, encoding: EncodingType) -> ::windows::core::Result<()>; - fn EncodeBlob(&self, encoding: EncodingType) -> ::windows::core::Result; + fn DecodeBlob(&self, strencodeddata: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()>; + fn EncodeBlob(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICertEncodeDateArray2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertEncodeDateArray2_Vtbl { pub const fn new, Impl: ICertEncodeDateArray2_Impl, const OFFSET: isize>() -> ICertEncodeDateArray2_Vtbl { - unsafe extern "system" fn DecodeBlob, Impl: ICertEncodeDateArray2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strencodeddata: ::core::mem::ManuallyDrop, encoding: EncodingType) -> ::windows::core::HRESULT { + unsafe extern "system" fn DecodeBlob, Impl: ICertEncodeDateArray2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DecodeBlob(::core::mem::transmute(&strencodeddata), ::core::mem::transmute_copy(&encoding)).into() } - unsafe extern "system" fn EncodeBlob, Impl: ICertEncodeDateArray2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pstrencodeddata: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn EncodeBlob, Impl: ICertEncodeDateArray2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pstrencodeddata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EncodeBlob(::core::mem::transmute_copy(&encoding)) { @@ -2253,19 +2253,19 @@ impl ICertEncodeDateArray2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertEncodeLongArray_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn Decode(&self, strbinary: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Decode(&self, strbinary: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetCount(&self) -> ::windows::core::Result; fn GetValue(&self, index: i32) -> ::windows::core::Result; fn Reset(&self, count: i32) -> ::windows::core::Result<()>; fn SetValue(&self, index: i32, value: i32) -> ::windows::core::Result<()>; - fn Encode(&self) -> ::windows::core::Result; + fn Encode(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICertEncodeLongArray {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertEncodeLongArray_Vtbl { pub const fn new, Impl: ICertEncodeLongArray_Impl, const OFFSET: isize>() -> ICertEncodeLongArray_Vtbl { - unsafe extern "system" fn Decode, Impl: ICertEncodeLongArray_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strbinary: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Decode, Impl: ICertEncodeLongArray_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strbinary: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Decode(::core::mem::transmute(&strbinary)).into() @@ -2302,7 +2302,7 @@ impl ICertEncodeLongArray_Vtbl { let this = (*this).get_impl(); this.SetValue(::core::mem::transmute_copy(&index), ::core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn Encode, Impl: ICertEncodeLongArray_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrbinary: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Encode, Impl: ICertEncodeLongArray_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrbinary: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Encode() { @@ -2329,20 +2329,20 @@ impl ICertEncodeLongArray_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertEncodeLongArray2_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + ICertEncodeLongArray_Impl { - fn DecodeBlob(&self, strencodeddata: &super::super::super::Foundation::BSTR, encoding: EncodingType) -> ::windows::core::Result<()>; - fn EncodeBlob(&self, encoding: EncodingType) -> ::windows::core::Result; + fn DecodeBlob(&self, strencodeddata: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()>; + fn EncodeBlob(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICertEncodeLongArray2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertEncodeLongArray2_Vtbl { pub const fn new, Impl: ICertEncodeLongArray2_Impl, const OFFSET: isize>() -> ICertEncodeLongArray2_Vtbl { - unsafe extern "system" fn DecodeBlob, Impl: ICertEncodeLongArray2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strencodeddata: ::core::mem::ManuallyDrop, encoding: EncodingType) -> ::windows::core::HRESULT { + unsafe extern "system" fn DecodeBlob, Impl: ICertEncodeLongArray2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DecodeBlob(::core::mem::transmute(&strencodeddata), ::core::mem::transmute_copy(&encoding)).into() } - unsafe extern "system" fn EncodeBlob, Impl: ICertEncodeLongArray2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pstrencodeddata: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn EncodeBlob, Impl: ICertEncodeLongArray2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pstrencodeddata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EncodeBlob(::core::mem::transmute_copy(&encoding)) { @@ -2365,20 +2365,20 @@ impl ICertEncodeLongArray2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertEncodeStringArray_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn Decode(&self, strbinary: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Decode(&self, strbinary: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetStringType(&self) -> ::windows::core::Result; fn GetCount(&self) -> ::windows::core::Result; - fn GetValue(&self, index: i32) -> ::windows::core::Result; + fn GetValue(&self, index: i32) -> ::windows::core::Result<::windows::core::BSTR>; fn Reset(&self, count: i32, stringtype: super::CERT_RDN_ATTR_VALUE_TYPE) -> ::windows::core::Result<()>; - fn SetValue(&self, index: i32, str: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Encode(&self) -> ::windows::core::Result; + fn SetValue(&self, index: i32, str: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Encode(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICertEncodeStringArray {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertEncodeStringArray_Vtbl { pub const fn new, Impl: ICertEncodeStringArray_Impl, const OFFSET: isize>() -> ICertEncodeStringArray_Vtbl { - unsafe extern "system" fn Decode, Impl: ICertEncodeStringArray_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strbinary: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Decode, Impl: ICertEncodeStringArray_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strbinary: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Decode(::core::mem::transmute(&strbinary)).into() @@ -2405,7 +2405,7 @@ impl ICertEncodeStringArray_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetValue, Impl: ICertEncodeStringArray_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: i32, pstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetValue, Impl: ICertEncodeStringArray_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: i32, pstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetValue(::core::mem::transmute_copy(&index)) { @@ -2421,12 +2421,12 @@ impl ICertEncodeStringArray_Vtbl { let this = (*this).get_impl(); this.Reset(::core::mem::transmute_copy(&count), ::core::mem::transmute_copy(&stringtype)).into() } - unsafe extern "system" fn SetValue, Impl: ICertEncodeStringArray_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: i32, str: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetValue, Impl: ICertEncodeStringArray_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: i32, str: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetValue(::core::mem::transmute_copy(&index), ::core::mem::transmute(&str)).into() } - unsafe extern "system" fn Encode, Impl: ICertEncodeStringArray_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrbinary: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Encode, Impl: ICertEncodeStringArray_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrbinary: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Encode() { @@ -2454,20 +2454,20 @@ impl ICertEncodeStringArray_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertEncodeStringArray2_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + ICertEncodeStringArray_Impl { - fn DecodeBlob(&self, strencodeddata: &super::super::super::Foundation::BSTR, encoding: EncodingType) -> ::windows::core::Result<()>; - fn EncodeBlob(&self, encoding: EncodingType) -> ::windows::core::Result; + fn DecodeBlob(&self, strencodeddata: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()>; + fn EncodeBlob(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICertEncodeStringArray2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertEncodeStringArray2_Vtbl { pub const fn new, Impl: ICertEncodeStringArray2_Impl, const OFFSET: isize>() -> ICertEncodeStringArray2_Vtbl { - unsafe extern "system" fn DecodeBlob, Impl: ICertEncodeStringArray2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strencodeddata: ::core::mem::ManuallyDrop, encoding: EncodingType) -> ::windows::core::HRESULT { + unsafe extern "system" fn DecodeBlob, Impl: ICertEncodeStringArray2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DecodeBlob(::core::mem::transmute(&strencodeddata), ::core::mem::transmute_copy(&encoding)).into() } - unsafe extern "system" fn EncodeBlob, Impl: ICertEncodeStringArray2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pstrencodeddata: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn EncodeBlob, Impl: ICertEncodeStringArray2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pstrencodeddata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EncodeBlob(::core::mem::transmute_copy(&encoding)) { @@ -2490,16 +2490,16 @@ impl ICertEncodeStringArray2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertExit_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn Initialize(&self, strconfig: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; + fn Initialize(&self, strconfig: &::windows::core::BSTR) -> ::windows::core::Result; fn Notify(&self, exitevent: i32, context: i32) -> ::windows::core::Result<()>; - fn GetDescription(&self) -> ::windows::core::Result; + fn GetDescription(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICertExit {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertExit_Vtbl { pub const fn new, Impl: ICertExit_Impl, const OFFSET: isize>() -> ICertExit_Vtbl { - unsafe extern "system" fn Initialize, Impl: ICertExit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, peventmask: *mut CERT_EXIT_EVENT_MASK) -> ::windows::core::HRESULT { + unsafe extern "system" fn Initialize, Impl: ICertExit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, peventmask: *mut CERT_EXIT_EVENT_MASK) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Initialize(::core::mem::transmute(&strconfig)) { @@ -2515,7 +2515,7 @@ impl ICertExit_Vtbl { let this = (*this).get_impl(); this.Notify(::core::mem::transmute_copy(&exitevent), ::core::mem::transmute_copy(&context)).into() } - unsafe extern "system" fn GetDescription, Impl: ICertExit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrdescription: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDescription, Impl: ICertExit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDescription() { @@ -2565,14 +2565,14 @@ impl ICertExit2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertGetConfig_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn GetConfig(&self, flags: CERT_GET_CONFIG_FLAGS) -> ::windows::core::Result; + fn GetConfig(&self, flags: CERT_GET_CONFIG_FLAGS) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICertGetConfig {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertGetConfig_Vtbl { pub const fn new, Impl: ICertGetConfig_Impl, const OFFSET: isize>() -> ICertGetConfig_Vtbl { - unsafe extern "system" fn GetConfig, Impl: ICertGetConfig_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flags: CERT_GET_CONFIG_FLAGS, pstrout: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetConfig, Impl: ICertGetConfig_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flags: CERT_GET_CONFIG_FLAGS, pstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetConfig(::core::mem::transmute_copy(&flags)) { @@ -2591,16 +2591,16 @@ impl ICertGetConfig_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertManageModule_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn GetProperty(&self, strconfig: &super::super::super::Foundation::BSTR, strstoragelocation: &super::super::super::Foundation::BSTR, strpropertyname: &super::super::super::Foundation::BSTR, flags: i32) -> ::windows::core::Result; - fn SetProperty(&self, strconfig: &super::super::super::Foundation::BSTR, strstoragelocation: &super::super::super::Foundation::BSTR, strpropertyname: &super::super::super::Foundation::BSTR, flags: i32, pvarproperty: *const super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn Configure(&self, strconfig: &super::super::super::Foundation::BSTR, strstoragelocation: &super::super::super::Foundation::BSTR, flags: i32) -> ::windows::core::Result<()>; + fn GetProperty(&self, strconfig: &::windows::core::BSTR, strstoragelocation: &::windows::core::BSTR, strpropertyname: &::windows::core::BSTR, flags: i32) -> ::windows::core::Result; + fn SetProperty(&self, strconfig: &::windows::core::BSTR, strstoragelocation: &::windows::core::BSTR, strpropertyname: &::windows::core::BSTR, flags: i32, pvarproperty: *const super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn Configure(&self, strconfig: &::windows::core::BSTR, strstoragelocation: &::windows::core::BSTR, flags: i32) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICertManageModule {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertManageModule_Vtbl { pub const fn new, Impl: ICertManageModule_Impl, const OFFSET: isize>() -> ICertManageModule_Vtbl { - unsafe extern "system" fn GetProperty, Impl: ICertManageModule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, strstoragelocation: ::core::mem::ManuallyDrop, strpropertyname: ::core::mem::ManuallyDrop, flags: i32, pvarproperty: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetProperty, Impl: ICertManageModule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strstoragelocation: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: i32, pvarproperty: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetProperty(::core::mem::transmute(&strconfig), ::core::mem::transmute(&strstoragelocation), ::core::mem::transmute(&strpropertyname), ::core::mem::transmute_copy(&flags)) { @@ -2611,12 +2611,12 @@ impl ICertManageModule_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetProperty, Impl: ICertManageModule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, strstoragelocation: ::core::mem::ManuallyDrop, strpropertyname: ::core::mem::ManuallyDrop, flags: i32, pvarproperty: *const super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetProperty, Impl: ICertManageModule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strstoragelocation: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: i32, pvarproperty: *const super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetProperty(::core::mem::transmute(&strconfig), ::core::mem::transmute(&strstoragelocation), ::core::mem::transmute(&strpropertyname), ::core::mem::transmute_copy(&flags), ::core::mem::transmute_copy(&pvarproperty)).into() } - unsafe extern "system" fn Configure, Impl: ICertManageModule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, strstoragelocation: ::core::mem::ManuallyDrop, flags: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn Configure, Impl: ICertManageModule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strstoragelocation: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Configure(::core::mem::transmute(&strconfig), ::core::mem::transmute(&strstoragelocation), ::core::mem::transmute_copy(&flags)).into() @@ -2634,9 +2634,9 @@ impl ICertManageModule_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertPolicy_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn Initialize(&self, strconfig: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn VerifyRequest(&self, strconfig: &super::super::super::Foundation::BSTR, context: i32, bnewrequest: i32, flags: i32) -> ::windows::core::Result; - fn GetDescription(&self) -> ::windows::core::Result; + fn Initialize(&self, strconfig: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn VerifyRequest(&self, strconfig: &::windows::core::BSTR, context: i32, bnewrequest: i32, flags: i32) -> ::windows::core::Result; + fn GetDescription(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn ShutDown(&self) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2644,12 +2644,12 @@ impl ::windows::core::RuntimeName for ICertPolicy {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertPolicy_Vtbl { pub const fn new, Impl: ICertPolicy_Impl, const OFFSET: isize>() -> ICertPolicy_Vtbl { - unsafe extern "system" fn Initialize, Impl: ICertPolicy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Initialize, Impl: ICertPolicy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Initialize(::core::mem::transmute(&strconfig)).into() } - unsafe extern "system" fn VerifyRequest, Impl: ICertPolicy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, context: i32, bnewrequest: i32, flags: i32, pdisposition: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn VerifyRequest, Impl: ICertPolicy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, context: i32, bnewrequest: i32, flags: i32, pdisposition: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.VerifyRequest(::core::mem::transmute(&strconfig), ::core::mem::transmute_copy(&context), ::core::mem::transmute_copy(&bnewrequest), ::core::mem::transmute_copy(&flags)) { @@ -2660,7 +2660,7 @@ impl ICertPolicy_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetDescription, Impl: ICertPolicy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrdescription: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDescription, Impl: ICertPolicy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDescription() { @@ -2722,7 +2722,7 @@ pub trait ICertProperties_Impl: Sized + super::super::super::System::Com::IDispa fn Add(&self, pval: &::core::option::Option) -> ::windows::core::Result<()>; fn Remove(&self, index: i32) -> ::windows::core::Result<()>; fn Clear(&self) -> ::windows::core::Result<()>; - fn InitializeFromCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn InitializeFromCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICertProperties {} @@ -2777,7 +2777,7 @@ impl ICertProperties_Vtbl { let this = (*this).get_impl(); this.Clear().into() } - unsafe extern "system" fn InitializeFromCertificate, Impl: ICertProperties_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, machinecontext: i16, encoding: EncodingType, strcertificate: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeFromCertificate, Impl: ICertProperties_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, machinecontext: i16, encoding: EncodingType, strcertificate: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeFromCertificate(::core::mem::transmute_copy(&machinecontext), ::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strcertificate)).into() @@ -2799,25 +2799,25 @@ impl ICertProperties_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertProperty_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn InitializeFromCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn InitializeFromCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn PropertyId(&self) -> ::windows::core::Result; fn SetPropertyId(&self, value: CERTENROLL_PROPERTYID) -> ::windows::core::Result<()>; - fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result; - fn RemoveFromCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetValueOnCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; + fn RemoveFromCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetValueOnCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICertProperty {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertProperty_Vtbl { pub const fn new, Impl: ICertProperty_Impl, const OFFSET: isize>() -> ICertProperty_Vtbl { - unsafe extern "system" fn InitializeFromCertificate, Impl: ICertProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, machinecontext: i16, encoding: EncodingType, strcertificate: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeFromCertificate, Impl: ICertProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, machinecontext: i16, encoding: EncodingType, strcertificate: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeFromCertificate(::core::mem::transmute_copy(&machinecontext), ::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strcertificate)).into() } - unsafe extern "system" fn InitializeDecode, Impl: ICertProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeDecode, Impl: ICertProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeDecode(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strencodeddata)).into() @@ -2838,7 +2838,7 @@ impl ICertProperty_Vtbl { let this = (*this).get_impl(); this.SetPropertyId(::core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn get_RawData, Impl: ICertProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_RawData, Impl: ICertProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_RawData(::core::mem::transmute_copy(&encoding)) { @@ -2849,12 +2849,12 @@ impl ICertProperty_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RemoveFromCertificate, Impl: ICertProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, machinecontext: i16, encoding: EncodingType, strcertificate: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn RemoveFromCertificate, Impl: ICertProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, machinecontext: i16, encoding: EncodingType, strcertificate: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RemoveFromCertificate(::core::mem::transmute_copy(&machinecontext), ::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strcertificate)).into() } - unsafe extern "system" fn SetValueOnCertificate, Impl: ICertProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, machinecontext: i16, encoding: EncodingType, strcertificate: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetValueOnCertificate, Impl: ICertProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, machinecontext: i16, encoding: EncodingType, strcertificate: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetValueOnCertificate(::core::mem::transmute_copy(&machinecontext), ::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strcertificate)).into() @@ -2912,20 +2912,20 @@ impl ICertPropertyArchived_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertPropertyArchivedKeyHash_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + ICertProperty_Impl { - fn Initialize(&self, encoding: EncodingType, strarchivedkeyhashvalue: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn get_ArchivedKeyHash(&self, encoding: EncodingType) -> ::windows::core::Result; + fn Initialize(&self, encoding: EncodingType, strarchivedkeyhashvalue: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn get_ArchivedKeyHash(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICertPropertyArchivedKeyHash {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertPropertyArchivedKeyHash_Vtbl { pub const fn new, Impl: ICertPropertyArchivedKeyHash_Impl, const OFFSET: isize>() -> ICertPropertyArchivedKeyHash_Vtbl { - unsafe extern "system" fn Initialize, Impl: ICertPropertyArchivedKeyHash_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strarchivedkeyhashvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Initialize, Impl: ICertPropertyArchivedKeyHash_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strarchivedkeyhashvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Initialize(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strarchivedkeyhashvalue)).into() } - unsafe extern "system" fn get_ArchivedKeyHash, Impl: ICertPropertyArchivedKeyHash_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_ArchivedKeyHash, Impl: ICertPropertyArchivedKeyHash_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_ArchivedKeyHash(::core::mem::transmute_copy(&encoding)) { @@ -2948,20 +2948,20 @@ impl ICertPropertyArchivedKeyHash_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertPropertyAutoEnroll_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + ICertProperty_Impl { - fn Initialize(&self, strtemplatename: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn TemplateName(&self) -> ::windows::core::Result; + fn Initialize(&self, strtemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn TemplateName(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICertPropertyAutoEnroll {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertPropertyAutoEnroll_Vtbl { pub const fn new, Impl: ICertPropertyAutoEnroll_Impl, const OFFSET: isize>() -> ICertPropertyAutoEnroll_Vtbl { - unsafe extern "system" fn Initialize, Impl: ICertPropertyAutoEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strtemplatename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Initialize, Impl: ICertPropertyAutoEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strtemplatename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Initialize(::core::mem::transmute(&strtemplatename)).into() } - unsafe extern "system" fn TemplateName, Impl: ICertPropertyAutoEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TemplateName, Impl: ICertPropertyAutoEnroll_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TemplateName() { @@ -3040,20 +3040,20 @@ impl ICertPropertyBackedUp_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertPropertyDescription_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + ICertProperty_Impl { - fn Initialize(&self, strdescription: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Description(&self) -> ::windows::core::Result; + fn Initialize(&self, strdescription: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICertPropertyDescription {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertPropertyDescription_Vtbl { pub const fn new, Impl: ICertPropertyDescription_Impl, const OFFSET: isize>() -> ICertPropertyDescription_Vtbl { - unsafe extern "system" fn Initialize, Impl: ICertPropertyDescription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Initialize, Impl: ICertPropertyDescription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Initialize(::core::mem::transmute(&strdescription)).into() } - unsafe extern "system" fn Description, Impl: ICertPropertyDescription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: ICertPropertyDescription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -3076,18 +3076,18 @@ impl ICertPropertyDescription_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertPropertyEnrollment_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + ICertProperty_Impl { - fn Initialize(&self, requestid: i32, strcadnsname: &super::super::super::Foundation::BSTR, strcaname: &super::super::super::Foundation::BSTR, strfriendlyname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Initialize(&self, requestid: i32, strcadnsname: &::windows::core::BSTR, strcaname: &::windows::core::BSTR, strfriendlyname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn RequestId(&self) -> ::windows::core::Result; - fn CADnsName(&self) -> ::windows::core::Result; - fn CAName(&self) -> ::windows::core::Result; - fn FriendlyName(&self) -> ::windows::core::Result; + fn CADnsName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CAName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn FriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICertPropertyEnrollment {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertPropertyEnrollment_Vtbl { pub const fn new, Impl: ICertPropertyEnrollment_Impl, const OFFSET: isize>() -> ICertPropertyEnrollment_Vtbl { - unsafe extern "system" fn Initialize, Impl: ICertPropertyEnrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, requestid: i32, strcadnsname: ::core::mem::ManuallyDrop, strcaname: ::core::mem::ManuallyDrop, strfriendlyname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Initialize, Impl: ICertPropertyEnrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, requestid: i32, strcadnsname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strcaname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strfriendlyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Initialize(::core::mem::transmute_copy(&requestid), ::core::mem::transmute(&strcadnsname), ::core::mem::transmute(&strcaname), ::core::mem::transmute(&strfriendlyname)).into() @@ -3103,7 +3103,7 @@ impl ICertPropertyEnrollment_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CADnsName, Impl: ICertPropertyEnrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CADnsName, Impl: ICertPropertyEnrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CADnsName() { @@ -3114,7 +3114,7 @@ impl ICertPropertyEnrollment_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CAName, Impl: ICertPropertyEnrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CAName, Impl: ICertPropertyEnrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CAName() { @@ -3125,7 +3125,7 @@ impl ICertPropertyEnrollment_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn FriendlyName, Impl: ICertPropertyEnrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FriendlyName, Impl: ICertPropertyEnrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FriendlyName() { @@ -3151,11 +3151,11 @@ impl ICertPropertyEnrollment_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertPropertyEnrollmentPolicyServer_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + ICertProperty_Impl { - fn Initialize(&self, propertyflags: EnrollmentPolicyServerPropertyFlags, authflags: X509EnrollmentAuthFlags, enrollmentserverauthflags: X509EnrollmentAuthFlags, urlflags: PolicyServerUrlFlags, strrequestid: &super::super::super::Foundation::BSTR, strurl: &super::super::super::Foundation::BSTR, strid: &super::super::super::Foundation::BSTR, strenrollmentserverurl: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetPolicyServerUrl(&self) -> ::windows::core::Result; - fn GetPolicyServerId(&self) -> ::windows::core::Result; - fn GetEnrollmentServerUrl(&self) -> ::windows::core::Result; - fn GetRequestIdString(&self) -> ::windows::core::Result; + fn Initialize(&self, propertyflags: EnrollmentPolicyServerPropertyFlags, authflags: X509EnrollmentAuthFlags, enrollmentserverauthflags: X509EnrollmentAuthFlags, urlflags: PolicyServerUrlFlags, strrequestid: &::windows::core::BSTR, strurl: &::windows::core::BSTR, strid: &::windows::core::BSTR, strenrollmentserverurl: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetPolicyServerUrl(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetPolicyServerId(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetEnrollmentServerUrl(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetRequestIdString(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetPropertyFlags(&self) -> ::windows::core::Result; fn GetUrlFlags(&self) -> ::windows::core::Result; fn GetAuthentication(&self) -> ::windows::core::Result; @@ -3166,12 +3166,12 @@ impl ::windows::core::RuntimeName for ICertPropertyEnrollmentPolicyServer {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertPropertyEnrollmentPolicyServer_Vtbl { pub const fn new, Impl: ICertPropertyEnrollmentPolicyServer_Impl, const OFFSET: isize>() -> ICertPropertyEnrollmentPolicyServer_Vtbl { - unsafe extern "system" fn Initialize, Impl: ICertPropertyEnrollmentPolicyServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertyflags: EnrollmentPolicyServerPropertyFlags, authflags: X509EnrollmentAuthFlags, enrollmentserverauthflags: X509EnrollmentAuthFlags, urlflags: PolicyServerUrlFlags, strrequestid: ::core::mem::ManuallyDrop, strurl: ::core::mem::ManuallyDrop, strid: ::core::mem::ManuallyDrop, strenrollmentserverurl: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Initialize, Impl: ICertPropertyEnrollmentPolicyServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertyflags: EnrollmentPolicyServerPropertyFlags, authflags: X509EnrollmentAuthFlags, enrollmentserverauthflags: X509EnrollmentAuthFlags, urlflags: PolicyServerUrlFlags, strrequestid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strenrollmentserverurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Initialize(::core::mem::transmute_copy(&propertyflags), ::core::mem::transmute_copy(&authflags), ::core::mem::transmute_copy(&enrollmentserverauthflags), ::core::mem::transmute_copy(&urlflags), ::core::mem::transmute(&strrequestid), ::core::mem::transmute(&strurl), ::core::mem::transmute(&strid), ::core::mem::transmute(&strenrollmentserverurl)).into() } - unsafe extern "system" fn GetPolicyServerUrl, Impl: ICertPropertyEnrollmentPolicyServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPolicyServerUrl, Impl: ICertPropertyEnrollmentPolicyServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetPolicyServerUrl() { @@ -3182,7 +3182,7 @@ impl ICertPropertyEnrollmentPolicyServer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetPolicyServerId, Impl: ICertPropertyEnrollmentPolicyServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPolicyServerId, Impl: ICertPropertyEnrollmentPolicyServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetPolicyServerId() { @@ -3193,7 +3193,7 @@ impl ICertPropertyEnrollmentPolicyServer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetEnrollmentServerUrl, Impl: ICertPropertyEnrollmentPolicyServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetEnrollmentServerUrl, Impl: ICertPropertyEnrollmentPolicyServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetEnrollmentServerUrl() { @@ -3204,7 +3204,7 @@ impl ICertPropertyEnrollmentPolicyServer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetRequestIdString, Impl: ICertPropertyEnrollmentPolicyServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetRequestIdString, Impl: ICertPropertyEnrollmentPolicyServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetRequestIdString() { @@ -3278,20 +3278,20 @@ impl ICertPropertyEnrollmentPolicyServer_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertPropertyFriendlyName_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + ICertProperty_Impl { - fn Initialize(&self, strfriendlyname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn FriendlyName(&self) -> ::windows::core::Result; + fn Initialize(&self, strfriendlyname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn FriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICertPropertyFriendlyName {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertPropertyFriendlyName_Vtbl { pub const fn new, Impl: ICertPropertyFriendlyName_Impl, const OFFSET: isize>() -> ICertPropertyFriendlyName_Vtbl { - unsafe extern "system" fn Initialize, Impl: ICertPropertyFriendlyName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strfriendlyname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Initialize, Impl: ICertPropertyFriendlyName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strfriendlyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Initialize(::core::mem::transmute(&strfriendlyname)).into() } - unsafe extern "system" fn FriendlyName, Impl: ICertPropertyFriendlyName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FriendlyName, Impl: ICertPropertyFriendlyName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FriendlyName() { @@ -3350,26 +3350,26 @@ impl ICertPropertyKeyProvInfo_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertPropertyRenewal_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + ICertProperty_Impl { - fn Initialize(&self, encoding: EncodingType, strrenewalvalue: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn InitializeFromCertificateHash(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn get_Renewal(&self, encoding: EncodingType) -> ::windows::core::Result; + fn Initialize(&self, encoding: EncodingType, strrenewalvalue: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn InitializeFromCertificateHash(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn get_Renewal(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICertPropertyRenewal {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertPropertyRenewal_Vtbl { pub const fn new, Impl: ICertPropertyRenewal_Impl, const OFFSET: isize>() -> ICertPropertyRenewal_Vtbl { - unsafe extern "system" fn Initialize, Impl: ICertPropertyRenewal_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strrenewalvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Initialize, Impl: ICertPropertyRenewal_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strrenewalvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Initialize(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strrenewalvalue)).into() } - unsafe extern "system" fn InitializeFromCertificateHash, Impl: ICertPropertyRenewal_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, machinecontext: i16, encoding: EncodingType, strcertificate: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeFromCertificateHash, Impl: ICertPropertyRenewal_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, machinecontext: i16, encoding: EncodingType, strcertificate: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeFromCertificateHash(::core::mem::transmute_copy(&machinecontext), ::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strcertificate)).into() } - unsafe extern "system" fn get_Renewal, Impl: ICertPropertyRenewal_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Renewal, Impl: ICertPropertyRenewal_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_Renewal(::core::mem::transmute_copy(&encoding)) { @@ -3393,16 +3393,16 @@ impl ICertPropertyRenewal_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertPropertyRequestOriginator_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + ICertProperty_Impl { - fn Initialize(&self, strrequestoriginator: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Initialize(&self, strrequestoriginator: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn InitializeFromLocalRequestOriginator(&self) -> ::windows::core::Result<()>; - fn RequestOriginator(&self) -> ::windows::core::Result; + fn RequestOriginator(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICertPropertyRequestOriginator {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertPropertyRequestOriginator_Vtbl { pub const fn new, Impl: ICertPropertyRequestOriginator_Impl, const OFFSET: isize>() -> ICertPropertyRequestOriginator_Vtbl { - unsafe extern "system" fn Initialize, Impl: ICertPropertyRequestOriginator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strrequestoriginator: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Initialize, Impl: ICertPropertyRequestOriginator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strrequestoriginator: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Initialize(::core::mem::transmute(&strrequestoriginator)).into() @@ -3412,7 +3412,7 @@ impl ICertPropertyRequestOriginator_Vtbl { let this = (*this).get_impl(); this.InitializeFromLocalRequestOriginator().into() } - unsafe extern "system" fn RequestOriginator, Impl: ICertPropertyRequestOriginator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RequestOriginator, Impl: ICertPropertyRequestOriginator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RequestOriginator() { @@ -3436,20 +3436,20 @@ impl ICertPropertyRequestOriginator_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertPropertySHA1Hash_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + ICertProperty_Impl { - fn Initialize(&self, encoding: EncodingType, strrenewalvalue: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn get_SHA1Hash(&self, encoding: EncodingType) -> ::windows::core::Result; + fn Initialize(&self, encoding: EncodingType, strrenewalvalue: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn get_SHA1Hash(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICertPropertySHA1Hash {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertPropertySHA1Hash_Vtbl { pub const fn new, Impl: ICertPropertySHA1Hash_Impl, const OFFSET: isize>() -> ICertPropertySHA1Hash_Vtbl { - unsafe extern "system" fn Initialize, Impl: ICertPropertySHA1Hash_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strrenewalvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Initialize, Impl: ICertPropertySHA1Hash_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strrenewalvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Initialize(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strrenewalvalue)).into() } - unsafe extern "system" fn get_SHA1Hash, Impl: ICertPropertySHA1Hash_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_SHA1Hash, Impl: ICertPropertySHA1Hash_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_SHA1Hash(::core::mem::transmute_copy(&encoding)) { @@ -3472,20 +3472,20 @@ impl ICertPropertySHA1Hash_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertRequest_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn Submit(&self, flags: i32, strrequest: &super::super::super::Foundation::BSTR, strattributes: &super::super::super::Foundation::BSTR, strconfig: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn RetrievePending(&self, requestid: i32, strconfig: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; + fn Submit(&self, flags: i32, strrequest: &::windows::core::BSTR, strattributes: &::windows::core::BSTR, strconfig: &::windows::core::BSTR) -> ::windows::core::Result; + fn RetrievePending(&self, requestid: i32, strconfig: &::windows::core::BSTR) -> ::windows::core::Result; fn GetLastStatus(&self) -> ::windows::core::Result; fn GetRequestId(&self) -> ::windows::core::Result; - fn GetDispositionMessage(&self) -> ::windows::core::Result; - fn GetCACertificate(&self, fexchangecertificate: i32, strconfig: &super::super::super::Foundation::BSTR, flags: i32) -> ::windows::core::Result; - fn GetCertificate(&self, flags: i32) -> ::windows::core::Result; + fn GetDispositionMessage(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetCACertificate(&self, fexchangecertificate: i32, strconfig: &::windows::core::BSTR, flags: i32) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetCertificate(&self, flags: i32) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICertRequest {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertRequest_Vtbl { pub const fn new, Impl: ICertRequest_Impl, const OFFSET: isize>() -> ICertRequest_Vtbl { - unsafe extern "system" fn Submit, Impl: ICertRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flags: i32, strrequest: ::core::mem::ManuallyDrop, strattributes: ::core::mem::ManuallyDrop, strconfig: ::core::mem::ManuallyDrop, pdisposition: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn Submit, Impl: ICertRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flags: i32, strrequest: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strattributes: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdisposition: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Submit(::core::mem::transmute_copy(&flags), ::core::mem::transmute(&strrequest), ::core::mem::transmute(&strattributes), ::core::mem::transmute(&strconfig)) { @@ -3496,7 +3496,7 @@ impl ICertRequest_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RetrievePending, Impl: ICertRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, requestid: i32, strconfig: ::core::mem::ManuallyDrop, pdisposition: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn RetrievePending, Impl: ICertRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, requestid: i32, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdisposition: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RetrievePending(::core::mem::transmute_copy(&requestid), ::core::mem::transmute(&strconfig)) { @@ -3529,7 +3529,7 @@ impl ICertRequest_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetDispositionMessage, Impl: ICertRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrdispositionmessage: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDispositionMessage, Impl: ICertRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrdispositionmessage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDispositionMessage() { @@ -3540,7 +3540,7 @@ impl ICertRequest_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetCACertificate, Impl: ICertRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, fexchangecertificate: i32, strconfig: ::core::mem::ManuallyDrop, flags: i32, pstrcertificate: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCACertificate, Impl: ICertRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, fexchangecertificate: i32, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: i32, pstrcertificate: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCACertificate(::core::mem::transmute_copy(&fexchangecertificate), ::core::mem::transmute(&strconfig), ::core::mem::transmute_copy(&flags)) { @@ -3551,7 +3551,7 @@ impl ICertRequest_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetCertificate, Impl: ICertRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flags: i32, pstrcertificate: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCertificate, Impl: ICertRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flags: i32, pstrcertificate: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCertificate(::core::mem::transmute_copy(&flags)) { @@ -3579,11 +3579,11 @@ impl ICertRequest_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertRequest2_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + ICertRequest_Impl { - fn GetIssuedCertificate(&self, strconfig: &super::super::super::Foundation::BSTR, requestid: i32, strserialnumber: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetErrorMessageText(&self, hrmessage: i32, flags: i32) -> ::windows::core::Result; - fn GetCAProperty(&self, strconfig: &super::super::super::Foundation::BSTR, propid: i32, propindex: i32, proptype: i32, flags: i32) -> ::windows::core::Result; - fn GetCAPropertyFlags(&self, strconfig: &super::super::super::Foundation::BSTR, propid: i32) -> ::windows::core::Result; - fn GetCAPropertyDisplayName(&self, strconfig: &super::super::super::Foundation::BSTR, propid: i32) -> ::windows::core::Result; + fn GetIssuedCertificate(&self, strconfig: &::windows::core::BSTR, requestid: i32, strserialnumber: &::windows::core::BSTR) -> ::windows::core::Result; + fn GetErrorMessageText(&self, hrmessage: i32, flags: i32) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetCAProperty(&self, strconfig: &::windows::core::BSTR, propid: i32, propindex: i32, proptype: i32, flags: i32) -> ::windows::core::Result; + fn GetCAPropertyFlags(&self, strconfig: &::windows::core::BSTR, propid: i32) -> ::windows::core::Result; + fn GetCAPropertyDisplayName(&self, strconfig: &::windows::core::BSTR, propid: i32) -> ::windows::core::Result<::windows::core::BSTR>; fn GetFullResponseProperty(&self, propid: FULL_RESPONSE_PROPERTY_ID, propindex: i32, proptype: CERT_PROPERTY_TYPE, flags: CERT_REQUEST_OUT_TYPE) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3591,7 +3591,7 @@ impl ::windows::core::RuntimeName for ICertRequest2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertRequest2_Vtbl { pub const fn new, Impl: ICertRequest2_Impl, const OFFSET: isize>() -> ICertRequest2_Vtbl { - unsafe extern "system" fn GetIssuedCertificate, Impl: ICertRequest2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, requestid: i32, strserialnumber: ::core::mem::ManuallyDrop, pdisposition: *mut CR_DISP) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetIssuedCertificate, Impl: ICertRequest2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, requestid: i32, strserialnumber: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdisposition: *mut CR_DISP) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetIssuedCertificate(::core::mem::transmute(&strconfig), ::core::mem::transmute_copy(&requestid), ::core::mem::transmute(&strserialnumber)) { @@ -3602,7 +3602,7 @@ impl ICertRequest2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetErrorMessageText, Impl: ICertRequest2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hrmessage: i32, flags: i32, pstrerrormessagetext: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetErrorMessageText, Impl: ICertRequest2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hrmessage: i32, flags: i32, pstrerrormessagetext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetErrorMessageText(::core::mem::transmute_copy(&hrmessage), ::core::mem::transmute_copy(&flags)) { @@ -3613,7 +3613,7 @@ impl ICertRequest2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetCAProperty, Impl: ICertRequest2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, propid: i32, propindex: i32, proptype: i32, flags: i32, pvarpropertyvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCAProperty, Impl: ICertRequest2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propid: i32, propindex: i32, proptype: i32, flags: i32, pvarpropertyvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCAProperty(::core::mem::transmute(&strconfig), ::core::mem::transmute_copy(&propid), ::core::mem::transmute_copy(&propindex), ::core::mem::transmute_copy(&proptype), ::core::mem::transmute_copy(&flags)) { @@ -3624,7 +3624,7 @@ impl ICertRequest2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetCAPropertyFlags, Impl: ICertRequest2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, propid: i32, ppropflags: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCAPropertyFlags, Impl: ICertRequest2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propid: i32, ppropflags: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCAPropertyFlags(::core::mem::transmute(&strconfig), ::core::mem::transmute_copy(&propid)) { @@ -3635,7 +3635,7 @@ impl ICertRequest2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetCAPropertyDisplayName, Impl: ICertRequest2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, propid: i32, pstrdisplayname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCAPropertyDisplayName, Impl: ICertRequest2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propid: i32, pstrdisplayname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCAPropertyDisplayName(::core::mem::transmute(&strconfig), ::core::mem::transmute_copy(&propid)) { @@ -3673,9 +3673,9 @@ impl ICertRequest2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertRequest3_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + ICertRequest_Impl + ICertRequest2_Impl { - fn SetCredential(&self, hwnd: i32, authtype: X509EnrollmentAuthFlags, strcredential: &super::super::super::Foundation::BSTR, strpassword: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetRequestIdString(&self) -> ::windows::core::Result; - fn GetIssuedCertificate2(&self, strconfig: &super::super::super::Foundation::BSTR, strrequestid: &super::super::super::Foundation::BSTR, strserialnumber: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; + fn SetCredential(&self, hwnd: i32, authtype: X509EnrollmentAuthFlags, strcredential: &::windows::core::BSTR, strpassword: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetRequestIdString(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetIssuedCertificate2(&self, strconfig: &::windows::core::BSTR, strrequestid: &::windows::core::BSTR, strserialnumber: &::windows::core::BSTR) -> ::windows::core::Result; fn GetRefreshPolicy(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3683,12 +3683,12 @@ impl ::windows::core::RuntimeName for ICertRequest3 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertRequest3_Vtbl { pub const fn new, Impl: ICertRequest3_Impl, const OFFSET: isize>() -> ICertRequest3_Vtbl { - unsafe extern "system" fn SetCredential, Impl: ICertRequest3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwnd: i32, authtype: X509EnrollmentAuthFlags, strcredential: ::core::mem::ManuallyDrop, strpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCredential, Impl: ICertRequest3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwnd: i32, authtype: X509EnrollmentAuthFlags, strcredential: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCredential(::core::mem::transmute_copy(&hwnd), ::core::mem::transmute_copy(&authtype), ::core::mem::transmute(&strcredential), ::core::mem::transmute(&strpassword)).into() } - unsafe extern "system" fn GetRequestIdString, Impl: ICertRequest3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrrequestid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetRequestIdString, Impl: ICertRequest3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrrequestid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetRequestIdString() { @@ -3699,7 +3699,7 @@ impl ICertRequest3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetIssuedCertificate2, Impl: ICertRequest3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, strrequestid: ::core::mem::ManuallyDrop, strserialnumber: ::core::mem::ManuallyDrop, pdisposition: *mut CR_DISP) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetIssuedCertificate2, Impl: ICertRequest3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strrequestid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strserialnumber: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdisposition: *mut CR_DISP) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetIssuedCertificate2(::core::mem::transmute(&strconfig), ::core::mem::transmute(&strrequestid), ::core::mem::transmute(&strserialnumber)) { @@ -3823,16 +3823,16 @@ impl ICertRequestD2_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertServerExit_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { fn SetContext(&self, context: i32) -> ::windows::core::Result<()>; - fn GetRequestProperty(&self, strpropertyname: &super::super::super::Foundation::BSTR, propertytype: i32) -> ::windows::core::Result; - fn GetRequestAttribute(&self, strattributename: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetCertificateProperty(&self, strpropertyname: &super::super::super::Foundation::BSTR, propertytype: i32) -> ::windows::core::Result; - fn GetCertificateExtension(&self, strextensionname: &super::super::super::Foundation::BSTR, r#type: i32) -> ::windows::core::Result; + fn GetRequestProperty(&self, strpropertyname: &::windows::core::BSTR, propertytype: i32) -> ::windows::core::Result; + fn GetRequestAttribute(&self, strattributename: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetCertificateProperty(&self, strpropertyname: &::windows::core::BSTR, propertytype: i32) -> ::windows::core::Result; + fn GetCertificateExtension(&self, strextensionname: &::windows::core::BSTR, r#type: i32) -> ::windows::core::Result; fn GetCertificateExtensionFlags(&self) -> ::windows::core::Result; fn EnumerateExtensionsSetup(&self, flags: i32) -> ::windows::core::Result<()>; - fn EnumerateExtensions(&self) -> ::windows::core::Result; + fn EnumerateExtensions(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn EnumerateExtensionsClose(&self) -> ::windows::core::Result<()>; fn EnumerateAttributesSetup(&self, flags: i32) -> ::windows::core::Result<()>; - fn EnumerateAttributes(&self) -> ::windows::core::Result; + fn EnumerateAttributes(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn EnumerateAttributesClose(&self) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3845,7 +3845,7 @@ impl ICertServerExit_Vtbl { let this = (*this).get_impl(); this.SetContext(::core::mem::transmute_copy(&context)).into() } - unsafe extern "system" fn GetRequestProperty, Impl: ICertServerExit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop, propertytype: i32, pvarpropertyvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetRequestProperty, Impl: ICertServerExit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertytype: i32, pvarpropertyvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetRequestProperty(::core::mem::transmute(&strpropertyname), ::core::mem::transmute_copy(&propertytype)) { @@ -3856,7 +3856,7 @@ impl ICertServerExit_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetRequestAttribute, Impl: ICertServerExit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strattributename: ::core::mem::ManuallyDrop, pstrattributevalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetRequestAttribute, Impl: ICertServerExit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strattributename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pstrattributevalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetRequestAttribute(::core::mem::transmute(&strattributename)) { @@ -3867,7 +3867,7 @@ impl ICertServerExit_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetCertificateProperty, Impl: ICertServerExit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop, propertytype: i32, pvarpropertyvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCertificateProperty, Impl: ICertServerExit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertytype: i32, pvarpropertyvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCertificateProperty(::core::mem::transmute(&strpropertyname), ::core::mem::transmute_copy(&propertytype)) { @@ -3878,7 +3878,7 @@ impl ICertServerExit_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetCertificateExtension, Impl: ICertServerExit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strextensionname: ::core::mem::ManuallyDrop, r#type: i32, pvarvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCertificateExtension, Impl: ICertServerExit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strextensionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, r#type: i32, pvarvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCertificateExtension(::core::mem::transmute(&strextensionname), ::core::mem::transmute_copy(&r#type)) { @@ -3905,7 +3905,7 @@ impl ICertServerExit_Vtbl { let this = (*this).get_impl(); this.EnumerateExtensionsSetup(::core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn EnumerateExtensions, Impl: ICertServerExit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrextensionname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn EnumerateExtensions, Impl: ICertServerExit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrextensionname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EnumerateExtensions() { @@ -3926,7 +3926,7 @@ impl ICertServerExit_Vtbl { let this = (*this).get_impl(); this.EnumerateAttributesSetup(::core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn EnumerateAttributes, Impl: ICertServerExit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrattributename: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn EnumerateAttributes, Impl: ICertServerExit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrattributename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EnumerateAttributes() { @@ -3965,18 +3965,18 @@ impl ICertServerExit_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertServerPolicy_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { fn SetContext(&self, context: i32) -> ::windows::core::Result<()>; - fn GetRequestProperty(&self, strpropertyname: &super::super::super::Foundation::BSTR, propertytype: i32) -> ::windows::core::Result; - fn GetRequestAttribute(&self, strattributename: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetCertificateProperty(&self, strpropertyname: &super::super::super::Foundation::BSTR, propertytype: CERT_PROPERTY_TYPE) -> ::windows::core::Result; - fn SetCertificateProperty(&self, strpropertyname: &super::super::super::Foundation::BSTR, propertytype: i32, pvarpropertyvalue: *const super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn GetCertificateExtension(&self, strextensionname: &super::super::super::Foundation::BSTR, r#type: CERT_PROPERTY_TYPE) -> ::windows::core::Result; + fn GetRequestProperty(&self, strpropertyname: &::windows::core::BSTR, propertytype: i32) -> ::windows::core::Result; + fn GetRequestAttribute(&self, strattributename: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetCertificateProperty(&self, strpropertyname: &::windows::core::BSTR, propertytype: CERT_PROPERTY_TYPE) -> ::windows::core::Result; + fn SetCertificateProperty(&self, strpropertyname: &::windows::core::BSTR, propertytype: i32, pvarpropertyvalue: *const super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn GetCertificateExtension(&self, strextensionname: &::windows::core::BSTR, r#type: CERT_PROPERTY_TYPE) -> ::windows::core::Result; fn GetCertificateExtensionFlags(&self) -> ::windows::core::Result; - fn SetCertificateExtension(&self, strextensionname: &super::super::super::Foundation::BSTR, r#type: i32, extflags: i32, pvarvalue: *const super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn SetCertificateExtension(&self, strextensionname: &::windows::core::BSTR, r#type: i32, extflags: i32, pvarvalue: *const super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn EnumerateExtensionsSetup(&self, flags: i32) -> ::windows::core::Result<()>; - fn EnumerateExtensions(&self) -> ::windows::core::Result; + fn EnumerateExtensions(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn EnumerateExtensionsClose(&self) -> ::windows::core::Result<()>; fn EnumerateAttributesSetup(&self, flags: i32) -> ::windows::core::Result<()>; - fn EnumerateAttributes(&self) -> ::windows::core::Result; + fn EnumerateAttributes(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn EnumerateAttributesClose(&self) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3989,7 +3989,7 @@ impl ICertServerPolicy_Vtbl { let this = (*this).get_impl(); this.SetContext(::core::mem::transmute_copy(&context)).into() } - unsafe extern "system" fn GetRequestProperty, Impl: ICertServerPolicy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop, propertytype: i32, pvarpropertyvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetRequestProperty, Impl: ICertServerPolicy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertytype: i32, pvarpropertyvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetRequestProperty(::core::mem::transmute(&strpropertyname), ::core::mem::transmute_copy(&propertytype)) { @@ -4000,7 +4000,7 @@ impl ICertServerPolicy_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetRequestAttribute, Impl: ICertServerPolicy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strattributename: ::core::mem::ManuallyDrop, pstrattributevalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetRequestAttribute, Impl: ICertServerPolicy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strattributename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pstrattributevalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetRequestAttribute(::core::mem::transmute(&strattributename)) { @@ -4011,7 +4011,7 @@ impl ICertServerPolicy_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetCertificateProperty, Impl: ICertServerPolicy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop, propertytype: CERT_PROPERTY_TYPE, pvarpropertyvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCertificateProperty, Impl: ICertServerPolicy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertytype: CERT_PROPERTY_TYPE, pvarpropertyvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCertificateProperty(::core::mem::transmute(&strpropertyname), ::core::mem::transmute_copy(&propertytype)) { @@ -4022,12 +4022,12 @@ impl ICertServerPolicy_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetCertificateProperty, Impl: ICertServerPolicy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop, propertytype: i32, pvarpropertyvalue: *const super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCertificateProperty, Impl: ICertServerPolicy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertytype: i32, pvarpropertyvalue: *const super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCertificateProperty(::core::mem::transmute(&strpropertyname), ::core::mem::transmute_copy(&propertytype), ::core::mem::transmute_copy(&pvarpropertyvalue)).into() } - unsafe extern "system" fn GetCertificateExtension, Impl: ICertServerPolicy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strextensionname: ::core::mem::ManuallyDrop, r#type: CERT_PROPERTY_TYPE, pvarvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCertificateExtension, Impl: ICertServerPolicy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strextensionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, r#type: CERT_PROPERTY_TYPE, pvarvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCertificateExtension(::core::mem::transmute(&strextensionname), ::core::mem::transmute_copy(&r#type)) { @@ -4049,7 +4049,7 @@ impl ICertServerPolicy_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetCertificateExtension, Impl: ICertServerPolicy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strextensionname: ::core::mem::ManuallyDrop, r#type: i32, extflags: i32, pvarvalue: *const super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCertificateExtension, Impl: ICertServerPolicy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strextensionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, r#type: i32, extflags: i32, pvarvalue: *const super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCertificateExtension(::core::mem::transmute(&strextensionname), ::core::mem::transmute_copy(&r#type), ::core::mem::transmute_copy(&extflags), ::core::mem::transmute_copy(&pvarvalue)).into() @@ -4059,7 +4059,7 @@ impl ICertServerPolicy_Vtbl { let this = (*this).get_impl(); this.EnumerateExtensionsSetup(::core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn EnumerateExtensions, Impl: ICertServerPolicy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrextensionname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn EnumerateExtensions, Impl: ICertServerPolicy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrextensionname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EnumerateExtensions() { @@ -4080,7 +4080,7 @@ impl ICertServerPolicy_Vtbl { let this = (*this).get_impl(); this.EnumerateAttributesSetup(::core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn EnumerateAttributes, Impl: ICertServerPolicy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrattributename: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn EnumerateAttributes, Impl: ICertServerPolicy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrattributename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EnumerateAttributes() { @@ -4120,10 +4120,10 @@ impl ICertServerPolicy_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertView_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn OpenConnection(&self, strconfig: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn OpenConnection(&self, strconfig: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn EnumCertViewColumn(&self, fresultcolumn: CVRC_COLUMN) -> ::windows::core::Result; fn GetColumnCount(&self, fresultcolumn: CVRC_COLUMN, pccolumn: *mut i32) -> ::windows::core::Result<()>; - fn GetColumnIndex(&self, fresultcolumn: CVRC_COLUMN, strcolumnname: &super::super::super::Foundation::BSTR, pcolumnindex: *mut i32) -> ::windows::core::Result<()>; + fn GetColumnIndex(&self, fresultcolumn: CVRC_COLUMN, strcolumnname: &::windows::core::BSTR, pcolumnindex: *mut i32) -> ::windows::core::Result<()>; fn SetResultColumnCount(&self, cresultcolumn: i32) -> ::windows::core::Result<()>; fn SetResultColumn(&self, columnindex: i32) -> ::windows::core::Result<()>; fn SetRestriction(&self, columnindex: CERT_VIEW_COLUMN_INDEX, seekoperator: CERT_VIEW_SEEK_OPERATOR_FLAGS, sortorder: i32, pvarvalue: *const super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; @@ -4134,7 +4134,7 @@ impl ::windows::core::RuntimeName for ICertView {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertView_Vtbl { pub const fn new, Impl: ICertView_Impl, const OFFSET: isize>() -> ICertView_Vtbl { - unsafe extern "system" fn OpenConnection, Impl: ICertView_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn OpenConnection, Impl: ICertView_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OpenConnection(::core::mem::transmute(&strconfig)).into() @@ -4155,7 +4155,7 @@ impl ICertView_Vtbl { let this = (*this).get_impl(); this.GetColumnCount(::core::mem::transmute_copy(&fresultcolumn), ::core::mem::transmute_copy(&pccolumn)).into() } - unsafe extern "system" fn GetColumnIndex, Impl: ICertView_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, fresultcolumn: CVRC_COLUMN, strcolumnname: ::core::mem::ManuallyDrop, pcolumnindex: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetColumnIndex, Impl: ICertView_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, fresultcolumn: CVRC_COLUMN, strcolumnname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcolumnindex: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetColumnIndex(::core::mem::transmute_copy(&fresultcolumn), ::core::mem::transmute(&strcolumnname), ::core::mem::transmute_copy(&pcolumnindex)).into() @@ -4224,21 +4224,21 @@ impl ICertView2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertificateAttestationChallenge_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn Initialize(&self, encoding: EncodingType, strpendingfullcmcresponsewithchallenge: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn DecryptChallenge(&self, encoding: EncodingType) -> ::windows::core::Result; - fn RequestID(&self) -> ::windows::core::Result; + fn Initialize(&self, encoding: EncodingType, strpendingfullcmcresponsewithchallenge: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn DecryptChallenge(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; + fn RequestID(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICertificateAttestationChallenge {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertificateAttestationChallenge_Vtbl { pub const fn new, Impl: ICertificateAttestationChallenge_Impl, const OFFSET: isize>() -> ICertificateAttestationChallenge_Vtbl { - unsafe extern "system" fn Initialize, Impl: ICertificateAttestationChallenge_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strpendingfullcmcresponsewithchallenge: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Initialize, Impl: ICertificateAttestationChallenge_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strpendingfullcmcresponsewithchallenge: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Initialize(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strpendingfullcmcresponsewithchallenge)).into() } - unsafe extern "system" fn DecryptChallenge, Impl: ICertificateAttestationChallenge_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pstrenvelopedpkcs7reencryptedtoca: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DecryptChallenge, Impl: ICertificateAttestationChallenge_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pstrenvelopedpkcs7reencryptedtoca: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DecryptChallenge(::core::mem::transmute_copy(&encoding)) { @@ -4249,7 +4249,7 @@ impl ICertificateAttestationChallenge_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RequestID, Impl: ICertificateAttestationChallenge_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrrequestid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RequestID, Impl: ICertificateAttestationChallenge_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrrequestid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RequestID() { @@ -4273,20 +4273,20 @@ impl ICertificateAttestationChallenge_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertificateAttestationChallenge2_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + ICertificateAttestationChallenge_Impl { - fn SetKeyContainerName(&self, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn put_KeyBlob(&self, encoding: EncodingType, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetKeyContainerName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn put_KeyBlob(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICertificateAttestationChallenge2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertificateAttestationChallenge2_Vtbl { pub const fn new, Impl: ICertificateAttestationChallenge2_Impl, const OFFSET: isize>() -> ICertificateAttestationChallenge2_Vtbl { - unsafe extern "system" fn SetKeyContainerName, Impl: ICertificateAttestationChallenge2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetKeyContainerName, Impl: ICertificateAttestationChallenge2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetKeyContainerName(::core::mem::transmute(&value)).into() } - unsafe extern "system" fn put_KeyBlob, Impl: ICertificateAttestationChallenge2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn put_KeyBlob, Impl: ICertificateAttestationChallenge2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.put_KeyBlob(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&value)).into() @@ -4435,7 +4435,7 @@ pub trait ICertificationAuthorities_Impl: Sized + super::super::super::System::C fn Remove(&self, index: i32) -> ::windows::core::Result<()>; fn Clear(&self) -> ::windows::core::Result<()>; fn ComputeSiteCosts(&self) -> ::windows::core::Result<()>; - fn get_ItemByName(&self, strname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; + fn get_ItemByName(&self, strname: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICertificationAuthorities {} @@ -4495,7 +4495,7 @@ impl ICertificationAuthorities_Vtbl { let this = (*this).get_impl(); this.ComputeSiteCosts().into() } - unsafe extern "system" fn get_ItemByName, Impl: ICertificationAuthorities_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_ItemByName, Impl: ICertificationAuthorities_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_ItemByName(::core::mem::transmute(&strname)) { @@ -4705,11 +4705,11 @@ pub trait ICspAlgorithm_Impl: Sized + super::super::super::System::Com::IDispatc fn GetAlgorithmOid(&self, length: i32, algflags: AlgorithmFlags) -> ::windows::core::Result; fn DefaultLength(&self) -> ::windows::core::Result; fn IncrementLength(&self) -> ::windows::core::Result; - fn LongName(&self) -> ::windows::core::Result; + fn LongName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Valid(&self) -> ::windows::core::Result; fn MaxLength(&self) -> ::windows::core::Result; fn MinLength(&self) -> ::windows::core::Result; - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Type(&self) -> ::windows::core::Result; fn Operations(&self) -> ::windows::core::Result; } @@ -4751,7 +4751,7 @@ impl ICspAlgorithm_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn LongName, Impl: ICspAlgorithm_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LongName, Impl: ICspAlgorithm_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LongName() { @@ -4795,7 +4795,7 @@ impl ICspAlgorithm_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Name, Impl: ICspAlgorithm_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: ICspAlgorithm_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -4854,7 +4854,7 @@ pub trait ICspAlgorithms_Impl: Sized + super::super::super::System::Com::IDispat fn Add(&self, pval: &::core::option::Option) -> ::windows::core::Result<()>; fn Remove(&self, index: i32) -> ::windows::core::Result<()>; fn Clear(&self) -> ::windows::core::Result<()>; - fn get_ItemByName(&self, strname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; + fn get_ItemByName(&self, strname: &::windows::core::BSTR) -> ::windows::core::Result; fn get_IndexByObjectId(&self, pobjectid: &::core::option::Option) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -4910,7 +4910,7 @@ impl ICspAlgorithms_Vtbl { let this = (*this).get_impl(); this.Clear().into() } - unsafe extern "system" fn get_ItemByName, Impl: ICspAlgorithms_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_ItemByName, Impl: ICspAlgorithms_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_ItemByName(::core::mem::transmute(&strname)) { @@ -4950,7 +4950,7 @@ impl ICspAlgorithms_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICspInformation_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn InitializeFromName(&self, strname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn InitializeFromName(&self, strname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn InitializeFromType(&self, r#type: X509ProviderType, palgorithm: &::core::option::Option, machinecontext: i16) -> ::windows::core::Result<()>; fn CspAlgorithms(&self) -> ::windows::core::Result; fn HasHardwareRandomNumberGenerator(&self) -> ::windows::core::Result; @@ -4959,12 +4959,12 @@ pub trait ICspInformation_Impl: Sized + super::super::super::System::Com::IDispa fn IsSoftwareDevice(&self) -> ::windows::core::Result; fn Valid(&self) -> ::windows::core::Result; fn MaxKeyContainerNameLength(&self) -> ::windows::core::Result; - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Type(&self) -> ::windows::core::Result; fn Version(&self) -> ::windows::core::Result; fn KeySpec(&self) -> ::windows::core::Result; fn IsSmartCard(&self) -> ::windows::core::Result; - fn GetDefaultSecurityDescriptor(&self, machinecontext: i16) -> ::windows::core::Result; + fn GetDefaultSecurityDescriptor(&self, machinecontext: i16) -> ::windows::core::Result<::windows::core::BSTR>; fn LegacyCsp(&self) -> ::windows::core::Result; fn GetCspStatusFromOperations(&self, palgorithm: &::core::option::Option, operations: AlgorithmOperationFlags) -> ::windows::core::Result; } @@ -4973,7 +4973,7 @@ impl ::windows::core::RuntimeName for ICspInformation {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICspInformation_Vtbl { pub const fn new, Impl: ICspInformation_Impl, const OFFSET: isize>() -> ICspInformation_Vtbl { - unsafe extern "system" fn InitializeFromName, Impl: ICspInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeFromName, Impl: ICspInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeFromName(::core::mem::transmute(&strname)).into() @@ -5060,7 +5060,7 @@ impl ICspInformation_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Name, Impl: ICspInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: ICspInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -5115,7 +5115,7 @@ impl ICspInformation_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetDefaultSecurityDescriptor, Impl: ICspInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, machinecontext: i16, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDefaultSecurityDescriptor, Impl: ICspInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, machinecontext: i16, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDefaultSecurityDescriptor(::core::mem::transmute_copy(&machinecontext)) { @@ -5182,8 +5182,8 @@ pub trait ICspInformations_Impl: Sized + super::super::super::System::Com::IDisp fn Remove(&self, index: i32) -> ::windows::core::Result<()>; fn Clear(&self) -> ::windows::core::Result<()>; fn AddAvailableCsps(&self) -> ::windows::core::Result<()>; - fn get_ItemByName(&self, strname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetCspStatusFromProviderName(&self, strprovidername: &super::super::super::Foundation::BSTR, legacykeyspec: X509KeySpec) -> ::windows::core::Result; + fn get_ItemByName(&self, strname: &::windows::core::BSTR) -> ::windows::core::Result; + fn GetCspStatusFromProviderName(&self, strprovidername: &::windows::core::BSTR, legacykeyspec: X509KeySpec) -> ::windows::core::Result; fn GetCspStatusesFromOperations(&self, operations: AlgorithmOperationFlags, pcspinformation: &::core::option::Option) -> ::windows::core::Result; fn GetEncryptionCspAlgorithms(&self, pcspinformation: &::core::option::Option) -> ::windows::core::Result; fn GetHashAlgorithms(&self, pcspinformation: &::core::option::Option) -> ::windows::core::Result; @@ -5246,7 +5246,7 @@ impl ICspInformations_Vtbl { let this = (*this).get_impl(); this.AddAvailableCsps().into() } - unsafe extern "system" fn get_ItemByName, Impl: ICspInformations_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, ppcspinformation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_ItemByName, Impl: ICspInformations_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppcspinformation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_ItemByName(::core::mem::transmute(&strname)) { @@ -5257,7 +5257,7 @@ impl ICspInformations_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetCspStatusFromProviderName, Impl: ICspInformations_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strprovidername: ::core::mem::ManuallyDrop, legacykeyspec: X509KeySpec, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCspStatusFromProviderName, Impl: ICspInformations_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strprovidername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, legacykeyspec: X509KeySpec, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCspStatusFromProviderName(::core::mem::transmute(&strprovidername), ::core::mem::transmute_copy(&legacykeyspec)) { @@ -5329,7 +5329,7 @@ pub trait ICspStatus_Impl: Sized + super::super::super::System::Com::IDispatch_I fn CspAlgorithm(&self) -> ::windows::core::Result; fn CspInformation(&self) -> ::windows::core::Result; fn EnrollmentStatus(&self) -> ::windows::core::Result; - fn DisplayName(&self) -> ::windows::core::Result; + fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICspStatus {} @@ -5390,7 +5390,7 @@ impl ICspStatus_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DisplayName, Impl: ICspStatus_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DisplayName, Impl: ICspStatus_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DisplayName() { @@ -5424,9 +5424,9 @@ pub trait ICspStatuses_Impl: Sized + super::super::super::System::Com::IDispatch fn Add(&self, pval: &::core::option::Option) -> ::windows::core::Result<()>; fn Remove(&self, index: i32) -> ::windows::core::Result<()>; fn Clear(&self) -> ::windows::core::Result<()>; - fn get_ItemByName(&self, strcspname: &super::super::super::Foundation::BSTR, stralgorithmname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; + fn get_ItemByName(&self, strcspname: &::windows::core::BSTR, stralgorithmname: &::windows::core::BSTR) -> ::windows::core::Result; fn get_ItemByOrdinal(&self, ordinal: i32) -> ::windows::core::Result; - fn get_ItemByOperations(&self, strcspname: &super::super::super::Foundation::BSTR, stralgorithmname: &super::super::super::Foundation::BSTR, operations: AlgorithmOperationFlags) -> ::windows::core::Result; + fn get_ItemByOperations(&self, strcspname: &::windows::core::BSTR, stralgorithmname: &::windows::core::BSTR, operations: AlgorithmOperationFlags) -> ::windows::core::Result; fn get_ItemByProvider(&self, pcspstatus: &::core::option::Option) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -5482,7 +5482,7 @@ impl ICspStatuses_Vtbl { let this = (*this).get_impl(); this.Clear().into() } - unsafe extern "system" fn get_ItemByName, Impl: ICspStatuses_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strcspname: ::core::mem::ManuallyDrop, stralgorithmname: ::core::mem::ManuallyDrop, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_ItemByName, Impl: ICspStatuses_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strcspname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, stralgorithmname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_ItemByName(::core::mem::transmute(&strcspname), ::core::mem::transmute(&stralgorithmname)) { @@ -5504,7 +5504,7 @@ impl ICspStatuses_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_ItemByOperations, Impl: ICspStatuses_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strcspname: ::core::mem::ManuallyDrop, stralgorithmname: ::core::mem::ManuallyDrop, operations: AlgorithmOperationFlags, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_ItemByOperations, Impl: ICspStatuses_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strcspname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, stralgorithmname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, operations: AlgorithmOperationFlags, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_ItemByOperations(::core::mem::transmute(&strcspname), ::core::mem::transmute(&stralgorithmname), ::core::mem::transmute_copy(&operations)) { @@ -6435,8 +6435,8 @@ impl IEnroll4_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IEnumCERTVIEWATTRIBUTE_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { fn Next(&self, pindex: *mut i32) -> ::windows::core::Result<()>; - fn GetName(&self, pstrout: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetValue(&self, pstrout: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetName(&self, pstrout: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetValue(&self, pstrout: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn Skip(&self, celt: i32) -> ::windows::core::Result<()>; fn Reset(&self) -> ::windows::core::Result<()>; fn Clone(&self) -> ::windows::core::Result; @@ -6451,12 +6451,12 @@ impl IEnumCERTVIEWATTRIBUTE_Vtbl { let this = (*this).get_impl(); this.Next(::core::mem::transmute_copy(&pindex)).into() } - unsafe extern "system" fn GetName, Impl: IEnumCERTVIEWATTRIBUTE_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrout: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetName, Impl: IEnumCERTVIEWATTRIBUTE_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetName(::core::mem::transmute_copy(&pstrout)).into() } - unsafe extern "system" fn GetValue, Impl: IEnumCERTVIEWATTRIBUTE_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrout: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetValue, Impl: IEnumCERTVIEWATTRIBUTE_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetValue(::core::mem::transmute_copy(&pstrout)).into() @@ -6499,8 +6499,8 @@ impl IEnumCERTVIEWATTRIBUTE_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IEnumCERTVIEWCOLUMN_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { fn Next(&self, pindex: *mut i32) -> ::windows::core::Result<()>; - fn GetName(&self, pstrout: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetDisplayName(&self, pstrout: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetName(&self, pstrout: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetDisplayName(&self, pstrout: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetType(&self, ptype: *mut i32) -> ::windows::core::Result<()>; fn IsIndexed(&self, pindexed: *mut i32) -> ::windows::core::Result<()>; fn GetMaxLength(&self, pmaxlength: *mut i32) -> ::windows::core::Result<()>; @@ -6519,12 +6519,12 @@ impl IEnumCERTVIEWCOLUMN_Vtbl { let this = (*this).get_impl(); this.Next(::core::mem::transmute_copy(&pindex)).into() } - unsafe extern "system" fn GetName, Impl: IEnumCERTVIEWCOLUMN_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrout: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetName, Impl: IEnumCERTVIEWCOLUMN_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetName(::core::mem::transmute_copy(&pstrout)).into() } - unsafe extern "system" fn GetDisplayName, Impl: IEnumCERTVIEWCOLUMN_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrout: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDisplayName, Impl: IEnumCERTVIEWCOLUMN_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetDisplayName(::core::mem::transmute_copy(&pstrout)).into() @@ -6591,7 +6591,7 @@ impl IEnumCERTVIEWCOLUMN_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IEnumCERTVIEWEXTENSION_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { fn Next(&self, pindex: *mut i32) -> ::windows::core::Result<()>; - fn GetName(&self, pstrout: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetName(&self, pstrout: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetFlags(&self, pflags: *mut i32) -> ::windows::core::Result<()>; fn GetValue(&self, r#type: CERT_PROPERTY_TYPE, flags: ENUM_CERT_COLUMN_VALUE_FLAGS, pvarvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn Skip(&self, celt: i32) -> ::windows::core::Result<()>; @@ -6608,7 +6608,7 @@ impl IEnumCERTVIEWEXTENSION_Vtbl { let this = (*this).get_impl(); this.Next(::core::mem::transmute_copy(&pindex)).into() } - unsafe extern "system" fn GetName, Impl: IEnumCERTVIEWEXTENSION_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrout: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetName, Impl: IEnumCERTVIEWEXTENSION_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetName(::core::mem::transmute_copy(&pstrout)).into() @@ -6816,14 +6816,14 @@ impl INDESPolicy_Vtbl { pub trait IOCSPAdmin_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { fn OCSPServiceProperties(&self) -> ::windows::core::Result; fn OCSPCAConfigurationCollection(&self) -> ::windows::core::Result; - fn GetConfiguration(&self, bstrservername: &super::super::super::Foundation::BSTR, bforce: i16) -> ::windows::core::Result<()>; - fn SetConfiguration(&self, bstrservername: &super::super::super::Foundation::BSTR, bforce: i16) -> ::windows::core::Result<()>; - fn GetMyRoles(&self, bstrservername: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn Ping(&self, bstrservername: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetSecurity(&self, bstrservername: &super::super::super::Foundation::BSTR, bstrval: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetSecurity(&self, bstrservername: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetSigningCertificates(&self, bstrservername: &super::super::super::Foundation::BSTR, pcacertvar: *const super::super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn GetHashAlgorithms(&self, bstrservername: &super::super::super::Foundation::BSTR, bstrcaid: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetConfiguration(&self, bstrservername: &::windows::core::BSTR, bforce: i16) -> ::windows::core::Result<()>; + fn SetConfiguration(&self, bstrservername: &::windows::core::BSTR, bforce: i16) -> ::windows::core::Result<()>; + fn GetMyRoles(&self, bstrservername: &::windows::core::BSTR) -> ::windows::core::Result; + fn Ping(&self, bstrservername: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetSecurity(&self, bstrservername: &::windows::core::BSTR, bstrval: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetSecurity(&self, bstrservername: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetSigningCertificates(&self, bstrservername: &::windows::core::BSTR, pcacertvar: *const super::super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn GetHashAlgorithms(&self, bstrservername: &::windows::core::BSTR, bstrcaid: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IOCSPAdmin {} @@ -6852,17 +6852,17 @@ impl IOCSPAdmin_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetConfiguration, Impl: IOCSPAdmin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop, bforce: i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetConfiguration, Impl: IOCSPAdmin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bforce: i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetConfiguration(::core::mem::transmute(&bstrservername), ::core::mem::transmute_copy(&bforce)).into() } - unsafe extern "system" fn SetConfiguration, Impl: IOCSPAdmin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop, bforce: i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetConfiguration, Impl: IOCSPAdmin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bforce: i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetConfiguration(::core::mem::transmute(&bstrservername), ::core::mem::transmute_copy(&bforce)).into() } - unsafe extern "system" fn GetMyRoles, Impl: IOCSPAdmin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop, proles: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetMyRoles, Impl: IOCSPAdmin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, proles: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetMyRoles(::core::mem::transmute(&bstrservername)) { @@ -6873,17 +6873,17 @@ impl IOCSPAdmin_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Ping, Impl: IOCSPAdmin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Ping, Impl: IOCSPAdmin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Ping(::core::mem::transmute(&bstrservername)).into() } - unsafe extern "system" fn SetSecurity, Impl: IOCSPAdmin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop, bstrval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSecurity, Impl: IOCSPAdmin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSecurity(::core::mem::transmute(&bstrservername), ::core::mem::transmute(&bstrval)).into() } - unsafe extern "system" fn GetSecurity, Impl: IOCSPAdmin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop, pval: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSecurity, Impl: IOCSPAdmin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetSecurity(::core::mem::transmute(&bstrservername)) { @@ -6894,7 +6894,7 @@ impl IOCSPAdmin_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetSigningCertificates, Impl: IOCSPAdmin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop, pcacertvar: *const super::super::super::System::Com::VARIANT, pval: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSigningCertificates, Impl: IOCSPAdmin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcacertvar: *const super::super::super::System::Com::VARIANT, pval: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetSigningCertificates(::core::mem::transmute(&bstrservername), ::core::mem::transmute_copy(&pcacertvar)) { @@ -6905,7 +6905,7 @@ impl IOCSPAdmin_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetHashAlgorithms, Impl: IOCSPAdmin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop, bstrcaid: ::core::mem::ManuallyDrop, pval: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetHashAlgorithms, Impl: IOCSPAdmin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrcaid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pval: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetHashAlgorithms(::core::mem::transmute(&bstrservername), ::core::mem::transmute(&bstrcaid)) { @@ -6936,10 +6936,10 @@ impl IOCSPAdmin_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IOCSPCAConfiguration_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn Identifier(&self) -> ::windows::core::Result; + fn Identifier(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CACertificate(&self) -> ::windows::core::Result; - fn HashAlgorithm(&self) -> ::windows::core::Result; - fn SetHashAlgorithm(&self, newval: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn HashAlgorithm(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetHashAlgorithm(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SigningFlags(&self) -> ::windows::core::Result; fn SetSigningFlags(&self, newval: u32) -> ::windows::core::Result<()>; fn SigningCertificate(&self) -> ::windows::core::Result; @@ -6947,26 +6947,26 @@ pub trait IOCSPCAConfiguration_Impl: Sized + super::super::super::System::Com::I fn ReminderDuration(&self) -> ::windows::core::Result; fn SetReminderDuration(&self, newval: u32) -> ::windows::core::Result<()>; fn ErrorCode(&self) -> ::windows::core::Result; - fn CSPName(&self) -> ::windows::core::Result; + fn CSPName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn KeySpec(&self) -> ::windows::core::Result; - fn ProviderCLSID(&self) -> ::windows::core::Result; - fn SetProviderCLSID(&self, newval: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ProviderCLSID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetProviderCLSID(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn ProviderProperties(&self) -> ::windows::core::Result; fn SetProviderProperties(&self, newval: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn Modified(&self) -> ::windows::core::Result; fn LocalRevocationInformation(&self) -> ::windows::core::Result; fn SetLocalRevocationInformation(&self, newval: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn SigningCertificateTemplate(&self) -> ::windows::core::Result; - fn SetSigningCertificateTemplate(&self, newval: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn CAConfig(&self) -> ::windows::core::Result; - fn SetCAConfig(&self, newval: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SigningCertificateTemplate(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetSigningCertificateTemplate(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn CAConfig(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetCAConfig(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IOCSPCAConfiguration {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IOCSPCAConfiguration_Vtbl { pub const fn new, Impl: IOCSPCAConfiguration_Impl, const OFFSET: isize>() -> IOCSPCAConfiguration_Vtbl { - unsafe extern "system" fn Identifier, Impl: IOCSPCAConfiguration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Identifier, Impl: IOCSPCAConfiguration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Identifier() { @@ -6988,7 +6988,7 @@ impl IOCSPCAConfiguration_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn HashAlgorithm, Impl: IOCSPCAConfiguration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn HashAlgorithm, Impl: IOCSPCAConfiguration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.HashAlgorithm() { @@ -6999,7 +6999,7 @@ impl IOCSPCAConfiguration_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetHashAlgorithm, Impl: IOCSPCAConfiguration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetHashAlgorithm, Impl: IOCSPCAConfiguration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetHashAlgorithm(::core::mem::transmute(&newval)).into() @@ -7063,7 +7063,7 @@ impl IOCSPCAConfiguration_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CSPName, Impl: IOCSPCAConfiguration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CSPName, Impl: IOCSPCAConfiguration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CSPName() { @@ -7085,7 +7085,7 @@ impl IOCSPCAConfiguration_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ProviderCLSID, Impl: IOCSPCAConfiguration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ProviderCLSID, Impl: IOCSPCAConfiguration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ProviderCLSID() { @@ -7096,7 +7096,7 @@ impl IOCSPCAConfiguration_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetProviderCLSID, Impl: IOCSPCAConfiguration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetProviderCLSID, Impl: IOCSPCAConfiguration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetProviderCLSID(::core::mem::transmute(&newval)).into() @@ -7144,7 +7144,7 @@ impl IOCSPCAConfiguration_Vtbl { let this = (*this).get_impl(); this.SetLocalRevocationInformation(::core::mem::transmute(&newval)).into() } - unsafe extern "system" fn SigningCertificateTemplate, Impl: IOCSPCAConfiguration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SigningCertificateTemplate, Impl: IOCSPCAConfiguration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SigningCertificateTemplate() { @@ -7155,12 +7155,12 @@ impl IOCSPCAConfiguration_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSigningCertificateTemplate, Impl: IOCSPCAConfiguration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSigningCertificateTemplate, Impl: IOCSPCAConfiguration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSigningCertificateTemplate(::core::mem::transmute(&newval)).into() } - unsafe extern "system" fn CAConfig, Impl: IOCSPCAConfiguration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CAConfig, Impl: IOCSPCAConfiguration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CAConfig() { @@ -7171,7 +7171,7 @@ impl IOCSPCAConfiguration_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetCAConfig, Impl: IOCSPCAConfiguration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCAConfig, Impl: IOCSPCAConfiguration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCAConfig(::core::mem::transmute(&newval)).into() @@ -7213,9 +7213,9 @@ pub trait IOCSPCAConfigurationCollection_Impl: Sized + super::super::super::Syst fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; fn get_Item(&self, index: i32) -> ::windows::core::Result; fn Count(&self) -> ::windows::core::Result; - fn get_ItemByName(&self, bstridentifier: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn CreateCAConfiguration(&self, bstridentifier: &super::super::super::Foundation::BSTR, varcacert: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn DeleteCAConfiguration(&self, bstridentifier: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn get_ItemByName(&self, bstridentifier: &::windows::core::BSTR) -> ::windows::core::Result; + fn CreateCAConfiguration(&self, bstridentifier: &::windows::core::BSTR, varcacert: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn DeleteCAConfiguration(&self, bstridentifier: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IOCSPCAConfigurationCollection {} @@ -7255,7 +7255,7 @@ impl IOCSPCAConfigurationCollection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_ItemByName, Impl: IOCSPCAConfigurationCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstridentifier: ::core::mem::ManuallyDrop, pval: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_ItemByName, Impl: IOCSPCAConfigurationCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstridentifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pval: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_ItemByName(::core::mem::transmute(&bstridentifier)) { @@ -7266,7 +7266,7 @@ impl IOCSPCAConfigurationCollection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateCAConfiguration, Impl: IOCSPCAConfigurationCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstridentifier: ::core::mem::ManuallyDrop, varcacert: ::core::mem::ManuallyDrop, ppval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateCAConfiguration, Impl: IOCSPCAConfigurationCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstridentifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varcacert: ::core::mem::ManuallyDrop, ppval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateCAConfiguration(::core::mem::transmute(&bstridentifier), ::core::mem::transmute(&varcacert)) { @@ -7277,7 +7277,7 @@ impl IOCSPCAConfigurationCollection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DeleteCAConfiguration, Impl: IOCSPCAConfigurationCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstridentifier: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteCAConfiguration, Impl: IOCSPCAConfigurationCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstridentifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteCAConfiguration(::core::mem::transmute(&bstridentifier)).into() @@ -7298,7 +7298,7 @@ impl IOCSPCAConfigurationCollection_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IOCSPProperty_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Value(&self) -> ::windows::core::Result; fn SetValue(&self, newval: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn Modified(&self) -> ::windows::core::Result; @@ -7308,7 +7308,7 @@ impl ::windows::core::RuntimeName for IOCSPProperty {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IOCSPProperty_Vtbl { pub const fn new, Impl: IOCSPProperty_Impl, const OFFSET: isize>() -> IOCSPProperty_Vtbl { - unsafe extern "system" fn Name, Impl: IOCSPProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IOCSPProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -7363,9 +7363,9 @@ pub trait IOCSPPropertyCollection_Impl: Sized + super::super::super::System::Com fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; fn get_Item(&self, index: i32) -> ::windows::core::Result; fn Count(&self) -> ::windows::core::Result; - fn get_ItemByName(&self, bstrpropname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn CreateProperty(&self, bstrpropname: &super::super::super::Foundation::BSTR, pvarpropvalue: *const super::super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn DeleteProperty(&self, bstrpropname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn get_ItemByName(&self, bstrpropname: &::windows::core::BSTR) -> ::windows::core::Result; + fn CreateProperty(&self, bstrpropname: &::windows::core::BSTR, pvarpropvalue: *const super::super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn DeleteProperty(&self, bstrpropname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn InitializeFromProperties(&self, pvarproperties: *const super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn GetAllProperties(&self) -> ::windows::core::Result; } @@ -7407,7 +7407,7 @@ impl IOCSPPropertyCollection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_ItemByName, Impl: IOCSPPropertyCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropname: ::core::mem::ManuallyDrop, pval: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_ItemByName, Impl: IOCSPPropertyCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pval: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_ItemByName(::core::mem::transmute(&bstrpropname)) { @@ -7418,7 +7418,7 @@ impl IOCSPPropertyCollection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateProperty, Impl: IOCSPPropertyCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropname: ::core::mem::ManuallyDrop, pvarpropvalue: *const super::super::super::System::Com::VARIANT, ppval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateProperty, Impl: IOCSPPropertyCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarpropvalue: *const super::super::super::System::Com::VARIANT, ppval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateProperty(::core::mem::transmute(&bstrpropname), ::core::mem::transmute_copy(&pvarpropvalue)) { @@ -7429,7 +7429,7 @@ impl IOCSPPropertyCollection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DeleteProperty, Impl: IOCSPPropertyCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteProperty, Impl: IOCSPPropertyCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteProperty(::core::mem::transmute(&bstrpropname)).into() @@ -7469,13 +7469,13 @@ impl IOCSPPropertyCollection_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IObjectId_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { fn InitializeFromName(&self, name: CERTENROLL_OBJECTID) -> ::windows::core::Result<()>; - fn InitializeFromValue(&self, strvalue: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn InitializeFromAlgorithmName(&self, groupid: ObjectIdGroupId, keyflags: ObjectIdPublicKeyFlags, algflags: AlgorithmFlags, stralgorithmname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn InitializeFromValue(&self, strvalue: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn InitializeFromAlgorithmName(&self, groupid: ObjectIdGroupId, keyflags: ObjectIdPublicKeyFlags, algflags: AlgorithmFlags, stralgorithmname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Name(&self) -> ::windows::core::Result; - fn FriendlyName(&self) -> ::windows::core::Result; - fn SetFriendlyName(&self, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Value(&self) -> ::windows::core::Result; - fn GetAlgorithmName(&self, groupid: ObjectIdGroupId, keyflags: ObjectIdPublicKeyFlags) -> ::windows::core::Result; + fn FriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetFriendlyName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Value(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetAlgorithmName(&self, groupid: ObjectIdGroupId, keyflags: ObjectIdPublicKeyFlags) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IObjectId {} @@ -7487,12 +7487,12 @@ impl IObjectId_Vtbl { let this = (*this).get_impl(); this.InitializeFromName(::core::mem::transmute_copy(&name)).into() } - unsafe extern "system" fn InitializeFromValue, Impl: IObjectId_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeFromValue, Impl: IObjectId_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeFromValue(::core::mem::transmute(&strvalue)).into() } - unsafe extern "system" fn InitializeFromAlgorithmName, Impl: IObjectId_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, groupid: ObjectIdGroupId, keyflags: ObjectIdPublicKeyFlags, algflags: AlgorithmFlags, stralgorithmname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeFromAlgorithmName, Impl: IObjectId_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, groupid: ObjectIdGroupId, keyflags: ObjectIdPublicKeyFlags, algflags: AlgorithmFlags, stralgorithmname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeFromAlgorithmName(::core::mem::transmute_copy(&groupid), ::core::mem::transmute_copy(&keyflags), ::core::mem::transmute_copy(&algflags), ::core::mem::transmute(&stralgorithmname)).into() @@ -7508,7 +7508,7 @@ impl IObjectId_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn FriendlyName, Impl: IObjectId_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FriendlyName, Impl: IObjectId_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FriendlyName() { @@ -7519,12 +7519,12 @@ impl IObjectId_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetFriendlyName, Impl: IObjectId_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetFriendlyName, Impl: IObjectId_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetFriendlyName(::core::mem::transmute(&value)).into() } - unsafe extern "system" fn Value, Impl: IObjectId_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Value, Impl: IObjectId_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Value() { @@ -7535,7 +7535,7 @@ impl IObjectId_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetAlgorithmName, Impl: IObjectId_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, groupid: ObjectIdGroupId, keyflags: ObjectIdPublicKeyFlags, pstralgorithmname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetAlgorithmName, Impl: IObjectId_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, groupid: ObjectIdGroupId, keyflags: ObjectIdPublicKeyFlags, pstralgorithmname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetAlgorithmName(::core::mem::transmute_copy(&groupid), ::core::mem::transmute_copy(&keyflags)) { @@ -7647,18 +7647,18 @@ impl IObjectIds_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IPolicyQualifier_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn InitializeEncode(&self, strqualifier: &super::super::super::Foundation::BSTR, r#type: PolicyQualifierType) -> ::windows::core::Result<()>; + fn InitializeEncode(&self, strqualifier: &::windows::core::BSTR, r#type: PolicyQualifierType) -> ::windows::core::Result<()>; fn ObjectId(&self) -> ::windows::core::Result; - fn Qualifier(&self) -> ::windows::core::Result; + fn Qualifier(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Type(&self) -> ::windows::core::Result; - fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result; + fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IPolicyQualifier {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IPolicyQualifier_Vtbl { pub const fn new, Impl: IPolicyQualifier_Impl, const OFFSET: isize>() -> IPolicyQualifier_Vtbl { - unsafe extern "system" fn InitializeEncode, Impl: IPolicyQualifier_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strqualifier: ::core::mem::ManuallyDrop, r#type: PolicyQualifierType) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeEncode, Impl: IPolicyQualifier_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strqualifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, r#type: PolicyQualifierType) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeEncode(::core::mem::transmute(&strqualifier), ::core::mem::transmute_copy(&r#type)).into() @@ -7674,7 +7674,7 @@ impl IPolicyQualifier_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Qualifier, Impl: IPolicyQualifier_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Qualifier, Impl: IPolicyQualifier_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Qualifier() { @@ -7696,7 +7696,7 @@ impl IPolicyQualifier_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_RawData, Impl: IPolicyQualifier_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_RawData, Impl: IPolicyQualifier_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_RawData(::core::mem::transmute_copy(&encoding)) { @@ -7798,16 +7798,16 @@ impl IPolicyQualifiers_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISignerCertificate_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn Initialize(&self, machinecontext: i16, verifytype: X509PrivateKeyVerify, encoding: EncodingType, strcertificate: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn get_Certificate(&self, encoding: EncodingType) -> ::windows::core::Result; + fn Initialize(&self, machinecontext: i16, verifytype: X509PrivateKeyVerify, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn get_Certificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; fn PrivateKey(&self) -> ::windows::core::Result; fn Silent(&self) -> ::windows::core::Result; fn SetSilent(&self, value: i16) -> ::windows::core::Result<()>; fn ParentWindow(&self) -> ::windows::core::Result; fn SetParentWindow(&self, value: i32) -> ::windows::core::Result<()>; - fn UIContextMessage(&self) -> ::windows::core::Result; - fn SetUIContextMessage(&self, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetPin(&self, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn UIContextMessage(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetUIContextMessage(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetPin(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SignatureInformation(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -7815,12 +7815,12 @@ impl ::windows::core::RuntimeName for ISignerCertificate {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ISignerCertificate_Vtbl { pub const fn new, Impl: ISignerCertificate_Impl, const OFFSET: isize>() -> ISignerCertificate_Vtbl { - unsafe extern "system" fn Initialize, Impl: ISignerCertificate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, machinecontext: i16, verifytype: X509PrivateKeyVerify, encoding: EncodingType, strcertificate: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Initialize, Impl: ISignerCertificate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, machinecontext: i16, verifytype: X509PrivateKeyVerify, encoding: EncodingType, strcertificate: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Initialize(::core::mem::transmute_copy(&machinecontext), ::core::mem::transmute_copy(&verifytype), ::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strcertificate)).into() } - unsafe extern "system" fn get_Certificate, Impl: ISignerCertificate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Certificate, Impl: ISignerCertificate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_Certificate(::core::mem::transmute_copy(&encoding)) { @@ -7874,7 +7874,7 @@ impl ISignerCertificate_Vtbl { let this = (*this).get_impl(); this.SetParentWindow(::core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn UIContextMessage, Impl: ISignerCertificate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UIContextMessage, Impl: ISignerCertificate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UIContextMessage() { @@ -7885,12 +7885,12 @@ impl ISignerCertificate_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetUIContextMessage, Impl: ISignerCertificate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetUIContextMessage, Impl: ISignerCertificate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetUIContextMessage(::core::mem::transmute(&value)).into() } - unsafe extern "system" fn SetPin, Impl: ISignerCertificate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPin, Impl: ISignerCertificate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPin(::core::mem::transmute(&value)).into() @@ -8155,27 +8155,27 @@ impl ISmimeCapability_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX500DistinguishedName_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn Decode(&self, strencodedname: &super::super::super::Foundation::BSTR, encoding: EncodingType, nameflags: X500NameFlags) -> ::windows::core::Result<()>; - fn Encode(&self, strname: &super::super::super::Foundation::BSTR, nameflags: X500NameFlags) -> ::windows::core::Result<()>; - fn Name(&self) -> ::windows::core::Result; - fn get_EncodedName(&self, encoding: EncodingType) -> ::windows::core::Result; + fn Decode(&self, strencodedname: &::windows::core::BSTR, encoding: EncodingType, nameflags: X500NameFlags) -> ::windows::core::Result<()>; + fn Encode(&self, strname: &::windows::core::BSTR, nameflags: X500NameFlags) -> ::windows::core::Result<()>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn get_EncodedName(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IX500DistinguishedName {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IX500DistinguishedName_Vtbl { pub const fn new, Impl: IX500DistinguishedName_Impl, const OFFSET: isize>() -> IX500DistinguishedName_Vtbl { - unsafe extern "system" fn Decode, Impl: IX500DistinguishedName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strencodedname: ::core::mem::ManuallyDrop, encoding: EncodingType, nameflags: X500NameFlags) -> ::windows::core::HRESULT { + unsafe extern "system" fn Decode, Impl: IX500DistinguishedName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strencodedname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType, nameflags: X500NameFlags) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Decode(::core::mem::transmute(&strencodedname), ::core::mem::transmute_copy(&encoding), ::core::mem::transmute_copy(&nameflags)).into() } - unsafe extern "system" fn Encode, Impl: IX500DistinguishedName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, nameflags: X500NameFlags) -> ::windows::core::HRESULT { + unsafe extern "system" fn Encode, Impl: IX500DistinguishedName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, nameflags: X500NameFlags) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Encode(::core::mem::transmute(&strname), ::core::mem::transmute_copy(&nameflags)).into() } - unsafe extern "system" fn Name, Impl: IX500DistinguishedName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IX500DistinguishedName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -8186,7 +8186,7 @@ impl IX500DistinguishedName_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_EncodedName, Impl: IX500DistinguishedName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_EncodedName, Impl: IX500DistinguishedName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_EncodedName(::core::mem::transmute_copy(&encoding)) { @@ -8211,16 +8211,16 @@ impl IX500DistinguishedName_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509Attribute_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn Initialize(&self, pobjectid: &::core::option::Option, encoding: EncodingType, strencodeddata: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Initialize(&self, pobjectid: &::core::option::Option, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn ObjectId(&self) -> ::windows::core::Result; - fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result; + fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IX509Attribute {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IX509Attribute_Vtbl { pub const fn new, Impl: IX509Attribute_Impl, const OFFSET: isize>() -> IX509Attribute_Vtbl { - unsafe extern "system" fn Initialize, Impl: IX509Attribute_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pobjectid: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Initialize, Impl: IX509Attribute_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pobjectid: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Initialize(::core::mem::transmute(&pobjectid), ::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strencodeddata)).into() @@ -8236,7 +8236,7 @@ impl IX509Attribute_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_RawData, Impl: IX509Attribute_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_RawData, Impl: IX509Attribute_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_RawData(::core::mem::transmute_copy(&encoding)) { @@ -8260,9 +8260,9 @@ impl IX509Attribute_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509AttributeArchiveKey_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + IX509Attribute_Impl { - fn InitializeEncode(&self, pkey: &::core::option::Option, encoding: EncodingType, strcaxcert: &super::super::super::Foundation::BSTR, palgorithm: &::core::option::Option, encryptionstrength: i32) -> ::windows::core::Result<()>; - fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn get_EncryptedKeyBlob(&self, encoding: EncodingType) -> ::windows::core::Result; + fn InitializeEncode(&self, pkey: &::core::option::Option, encoding: EncodingType, strcaxcert: &::windows::core::BSTR, palgorithm: &::core::option::Option, encryptionstrength: i32) -> ::windows::core::Result<()>; + fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn get_EncryptedKeyBlob(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; fn EncryptionAlgorithm(&self) -> ::windows::core::Result; fn EncryptionStrength(&self) -> ::windows::core::Result; } @@ -8271,17 +8271,17 @@ impl ::windows::core::RuntimeName for IX509AttributeArchiveKey {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IX509AttributeArchiveKey_Vtbl { pub const fn new, Impl: IX509AttributeArchiveKey_Impl, const OFFSET: isize>() -> IX509AttributeArchiveKey_Vtbl { - unsafe extern "system" fn InitializeEncode, Impl: IX509AttributeArchiveKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pkey: *mut ::core::ffi::c_void, encoding: EncodingType, strcaxcert: ::core::mem::ManuallyDrop, palgorithm: *mut ::core::ffi::c_void, encryptionstrength: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeEncode, Impl: IX509AttributeArchiveKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pkey: *mut ::core::ffi::c_void, encoding: EncodingType, strcaxcert: ::core::mem::ManuallyDrop<::windows::core::BSTR>, palgorithm: *mut ::core::ffi::c_void, encryptionstrength: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeEncode(::core::mem::transmute(&pkey), ::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strcaxcert), ::core::mem::transmute(&palgorithm), ::core::mem::transmute_copy(&encryptionstrength)).into() } - unsafe extern "system" fn InitializeDecode, Impl: IX509AttributeArchiveKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeDecode, Impl: IX509AttributeArchiveKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeDecode(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strencodeddata)).into() } - unsafe extern "system" fn get_EncryptedKeyBlob, Impl: IX509AttributeArchiveKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_EncryptedKeyBlob, Impl: IX509AttributeArchiveKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_EncryptedKeyBlob(::core::mem::transmute_copy(&encoding)) { @@ -8329,26 +8329,26 @@ impl IX509AttributeArchiveKey_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509AttributeArchiveKeyHash_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + IX509Attribute_Impl { - fn InitializeEncodeFromEncryptedKeyBlob(&self, encoding: EncodingType, strencryptedkeyblob: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn get_EncryptedKeyHashBlob(&self, encoding: EncodingType) -> ::windows::core::Result; + fn InitializeEncodeFromEncryptedKeyBlob(&self, encoding: EncodingType, strencryptedkeyblob: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn get_EncryptedKeyHashBlob(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IX509AttributeArchiveKeyHash {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IX509AttributeArchiveKeyHash_Vtbl { pub const fn new, Impl: IX509AttributeArchiveKeyHash_Impl, const OFFSET: isize>() -> IX509AttributeArchiveKeyHash_Vtbl { - unsafe extern "system" fn InitializeEncodeFromEncryptedKeyBlob, Impl: IX509AttributeArchiveKeyHash_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencryptedkeyblob: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeEncodeFromEncryptedKeyBlob, Impl: IX509AttributeArchiveKeyHash_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencryptedkeyblob: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeEncodeFromEncryptedKeyBlob(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strencryptedkeyblob)).into() } - unsafe extern "system" fn InitializeDecode, Impl: IX509AttributeArchiveKeyHash_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeDecode, Impl: IX509AttributeArchiveKeyHash_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeDecode(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strencodeddata)).into() } - unsafe extern "system" fn get_EncryptedKeyHashBlob, Impl: IX509AttributeArchiveKeyHash_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_EncryptedKeyHashBlob, Impl: IX509AttributeArchiveKeyHash_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_EncryptedKeyHashBlob(::core::mem::transmute_copy(&encoding)) { @@ -8372,24 +8372,24 @@ impl IX509AttributeArchiveKeyHash_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509AttributeClientId_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + IX509Attribute_Impl { - fn InitializeEncode(&self, clientid: RequestClientInfoClientId, strmachinednsname: &super::super::super::Foundation::BSTR, strusersamname: &super::super::super::Foundation::BSTR, strprocessname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn InitializeEncode(&self, clientid: RequestClientInfoClientId, strmachinednsname: &::windows::core::BSTR, strusersamname: &::windows::core::BSTR, strprocessname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn ClientId(&self) -> ::windows::core::Result; - fn MachineDnsName(&self) -> ::windows::core::Result; - fn UserSamName(&self) -> ::windows::core::Result; - fn ProcessName(&self) -> ::windows::core::Result; + fn MachineDnsName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn UserSamName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ProcessName(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IX509AttributeClientId {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IX509AttributeClientId_Vtbl { pub const fn new, Impl: IX509AttributeClientId_Impl, const OFFSET: isize>() -> IX509AttributeClientId_Vtbl { - unsafe extern "system" fn InitializeEncode, Impl: IX509AttributeClientId_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, clientid: RequestClientInfoClientId, strmachinednsname: ::core::mem::ManuallyDrop, strusersamname: ::core::mem::ManuallyDrop, strprocessname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeEncode, Impl: IX509AttributeClientId_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, clientid: RequestClientInfoClientId, strmachinednsname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strusersamname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strprocessname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeEncode(::core::mem::transmute_copy(&clientid), ::core::mem::transmute(&strmachinednsname), ::core::mem::transmute(&strusersamname), ::core::mem::transmute(&strprocessname)).into() } - unsafe extern "system" fn InitializeDecode, Impl: IX509AttributeClientId_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeDecode, Impl: IX509AttributeClientId_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeDecode(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strencodeddata)).into() @@ -8405,7 +8405,7 @@ impl IX509AttributeClientId_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn MachineDnsName, Impl: IX509AttributeClientId_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn MachineDnsName, Impl: IX509AttributeClientId_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.MachineDnsName() { @@ -8416,7 +8416,7 @@ impl IX509AttributeClientId_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn UserSamName, Impl: IX509AttributeClientId_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UserSamName, Impl: IX509AttributeClientId_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UserSamName() { @@ -8427,7 +8427,7 @@ impl IX509AttributeClientId_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ProcessName, Impl: IX509AttributeClientId_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ProcessName, Impl: IX509AttributeClientId_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ProcessName() { @@ -8454,23 +8454,23 @@ impl IX509AttributeClientId_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509AttributeCspProvider_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + IX509Attribute_Impl { - fn InitializeEncode(&self, keyspec: X509KeySpec, strprovidername: &super::super::super::Foundation::BSTR, encoding: EncodingType, strsignature: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn InitializeEncode(&self, keyspec: X509KeySpec, strprovidername: &::windows::core::BSTR, encoding: EncodingType, strsignature: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn KeySpec(&self) -> ::windows::core::Result; - fn ProviderName(&self) -> ::windows::core::Result; - fn get_Signature(&self, encoding: EncodingType) -> ::windows::core::Result; + fn ProviderName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn get_Signature(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IX509AttributeCspProvider {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IX509AttributeCspProvider_Vtbl { pub const fn new, Impl: IX509AttributeCspProvider_Impl, const OFFSET: isize>() -> IX509AttributeCspProvider_Vtbl { - unsafe extern "system" fn InitializeEncode, Impl: IX509AttributeCspProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, keyspec: X509KeySpec, strprovidername: ::core::mem::ManuallyDrop, encoding: EncodingType, strsignature: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeEncode, Impl: IX509AttributeCspProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, keyspec: X509KeySpec, strprovidername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType, strsignature: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeEncode(::core::mem::transmute_copy(&keyspec), ::core::mem::transmute(&strprovidername), ::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strsignature)).into() } - unsafe extern "system" fn InitializeDecode, Impl: IX509AttributeCspProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeDecode, Impl: IX509AttributeCspProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeDecode(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strencodeddata)).into() @@ -8486,7 +8486,7 @@ impl IX509AttributeCspProvider_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ProviderName, Impl: IX509AttributeCspProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ProviderName, Impl: IX509AttributeCspProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ProviderName() { @@ -8497,7 +8497,7 @@ impl IX509AttributeCspProvider_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_Signature, Impl: IX509AttributeCspProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Signature, Impl: IX509AttributeCspProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_Signature(::core::mem::transmute_copy(&encoding)) { @@ -8524,7 +8524,7 @@ impl IX509AttributeCspProvider_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509AttributeExtensions_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + IX509Attribute_Impl { fn InitializeEncode(&self, pextensions: &::core::option::Option) -> ::windows::core::Result<()>; - fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn X509Extensions(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -8537,7 +8537,7 @@ impl IX509AttributeExtensions_Vtbl { let this = (*this).get_impl(); this.InitializeEncode(::core::mem::transmute(&pextensions)).into() } - unsafe extern "system" fn InitializeDecode, Impl: IX509AttributeExtensions_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeDecode, Impl: IX509AttributeExtensions_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeDecode(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strencodeddata)).into() @@ -8566,26 +8566,26 @@ impl IX509AttributeExtensions_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509AttributeOSVersion_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + IX509Attribute_Impl { - fn InitializeEncode(&self, strosversion: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn OSVersion(&self) -> ::windows::core::Result; + fn InitializeEncode(&self, strosversion: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn OSVersion(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IX509AttributeOSVersion {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IX509AttributeOSVersion_Vtbl { pub const fn new, Impl: IX509AttributeOSVersion_Impl, const OFFSET: isize>() -> IX509AttributeOSVersion_Vtbl { - unsafe extern "system" fn InitializeEncode, Impl: IX509AttributeOSVersion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strosversion: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeEncode, Impl: IX509AttributeOSVersion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strosversion: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeEncode(::core::mem::transmute(&strosversion)).into() } - unsafe extern "system" fn InitializeDecode, Impl: IX509AttributeOSVersion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeDecode, Impl: IX509AttributeOSVersion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeDecode(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strencodeddata)).into() } - unsafe extern "system" fn OSVersion, Impl: IX509AttributeOSVersion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn OSVersion, Impl: IX509AttributeOSVersion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OSVersion() { @@ -8609,26 +8609,26 @@ impl IX509AttributeOSVersion_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509AttributeRenewalCertificate_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + IX509Attribute_Impl { - fn InitializeEncode(&self, encoding: EncodingType, strcert: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn get_RenewalCertificate(&self, encoding: EncodingType) -> ::windows::core::Result; + fn InitializeEncode(&self, encoding: EncodingType, strcert: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn get_RenewalCertificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IX509AttributeRenewalCertificate {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IX509AttributeRenewalCertificate_Vtbl { pub const fn new, Impl: IX509AttributeRenewalCertificate_Impl, const OFFSET: isize>() -> IX509AttributeRenewalCertificate_Vtbl { - unsafe extern "system" fn InitializeEncode, Impl: IX509AttributeRenewalCertificate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strcert: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeEncode, Impl: IX509AttributeRenewalCertificate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strcert: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeEncode(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strcert)).into() } - unsafe extern "system" fn InitializeDecode, Impl: IX509AttributeRenewalCertificate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeDecode, Impl: IX509AttributeRenewalCertificate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeDecode(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strencodeddata)).into() } - unsafe extern "system" fn get_RenewalCertificate, Impl: IX509AttributeRenewalCertificate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_RenewalCertificate, Impl: IX509AttributeRenewalCertificate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_RenewalCertificate(::core::mem::transmute_copy(&encoding)) { @@ -8738,12 +8738,12 @@ pub trait IX509CertificateRequest_Impl: Sized + super::super::super::System::Com fn SetSilent(&self, value: i16) -> ::windows::core::Result<()>; fn ParentWindow(&self) -> ::windows::core::Result; fn SetParentWindow(&self, value: i32) -> ::windows::core::Result<()>; - fn UIContextMessage(&self) -> ::windows::core::Result; - fn SetUIContextMessage(&self, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn UIContextMessage(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetUIContextMessage(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SuppressDefaults(&self) -> ::windows::core::Result; fn SetSuppressDefaults(&self, value: i16) -> ::windows::core::Result<()>; - fn get_RenewalCertificate(&self, encoding: EncodingType) -> ::windows::core::Result; - fn put_RenewalCertificate(&self, encoding: EncodingType, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn get_RenewalCertificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; + fn put_RenewalCertificate(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn ClientId(&self) -> ::windows::core::Result; fn SetClientId(&self, value: RequestClientInfoClientId) -> ::windows::core::Result<()>; fn CspInformations(&self) -> ::windows::core::Result; @@ -8752,7 +8752,7 @@ pub trait IX509CertificateRequest_Impl: Sized + super::super::super::System::Com fn SetHashAlgorithm(&self, pvalue: &::core::option::Option) -> ::windows::core::Result<()>; fn AlternateSignatureAlgorithm(&self) -> ::windows::core::Result; fn SetAlternateSignatureAlgorithm(&self, value: i16) -> ::windows::core::Result<()>; - fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result; + fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IX509CertificateRequest {} @@ -8839,7 +8839,7 @@ impl IX509CertificateRequest_Vtbl { let this = (*this).get_impl(); this.SetParentWindow(::core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn UIContextMessage, Impl: IX509CertificateRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UIContextMessage, Impl: IX509CertificateRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UIContextMessage() { @@ -8850,7 +8850,7 @@ impl IX509CertificateRequest_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetUIContextMessage, Impl: IX509CertificateRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetUIContextMessage, Impl: IX509CertificateRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetUIContextMessage(::core::mem::transmute(&value)).into() @@ -8871,7 +8871,7 @@ impl IX509CertificateRequest_Vtbl { let this = (*this).get_impl(); this.SetSuppressDefaults(::core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn get_RenewalCertificate, Impl: IX509CertificateRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_RenewalCertificate, Impl: IX509CertificateRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_RenewalCertificate(::core::mem::transmute_copy(&encoding)) { @@ -8882,7 +8882,7 @@ impl IX509CertificateRequest_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn put_RenewalCertificate, Impl: IX509CertificateRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn put_RenewalCertificate, Impl: IX509CertificateRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.put_RenewalCertificate(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&value)).into() @@ -8951,7 +8951,7 @@ impl IX509CertificateRequest_Vtbl { let this = (*this).get_impl(); this.SetAlternateSignatureAlgorithm(::core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn get_RawData, Impl: IX509CertificateRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_RawData, Impl: IX509CertificateRequest_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_RawData(::core::mem::transmute_copy(&encoding)) { @@ -9004,8 +9004,8 @@ pub trait IX509CertificateRequestCertificate_Impl: Sized + super::super::super:: fn SetNotBefore(&self, value: f64) -> ::windows::core::Result<()>; fn NotAfter(&self) -> ::windows::core::Result; fn SetNotAfter(&self, value: f64) -> ::windows::core::Result<()>; - fn get_SerialNumber(&self, encoding: EncodingType) -> ::windows::core::Result; - fn put_SerialNumber(&self, encoding: EncodingType, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn get_SerialNumber(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; + fn put_SerialNumber(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SignerCertificate(&self) -> ::windows::core::Result; fn SetSignerCertificate(&self, pvalue: &::core::option::Option) -> ::windows::core::Result<()>; } @@ -9067,7 +9067,7 @@ impl IX509CertificateRequestCertificate_Vtbl { let this = (*this).get_impl(); this.SetNotAfter(::core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn get_SerialNumber, Impl: IX509CertificateRequestCertificate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_SerialNumber, Impl: IX509CertificateRequestCertificate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_SerialNumber(::core::mem::transmute_copy(&encoding)) { @@ -9078,7 +9078,7 @@ impl IX509CertificateRequestCertificate_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn put_SerialNumber, Impl: IX509CertificateRequestCertificate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn put_SerialNumber, Impl: IX509CertificateRequestCertificate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.put_SerialNumber(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&value)).into() @@ -9176,7 +9176,7 @@ impl IX509CertificateRequestCertificate2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509CertificateRequestCmc_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + IX509CertificateRequest_Impl + IX509CertificateRequestPkcs7_Impl { - fn InitializeFromInnerRequestTemplateName(&self, pinnerrequest: &::core::option::Option, strtemplatename: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn InitializeFromInnerRequestTemplateName(&self, pinnerrequest: &::core::option::Option, strtemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn TemplateObjectId(&self) -> ::windows::core::Result; fn NullSigned(&self) -> ::windows::core::Result; fn CryptAttributes(&self) -> ::windows::core::Result; @@ -9186,18 +9186,18 @@ pub trait IX509CertificateRequestCmc_Impl: Sized + super::super::super::System:: fn SuppressOids(&self) -> ::windows::core::Result; fn TransactionId(&self) -> ::windows::core::Result; fn SetTransactionId(&self, value: i32) -> ::windows::core::Result<()>; - fn get_SenderNonce(&self, encoding: EncodingType) -> ::windows::core::Result; - fn put_SenderNonce(&self, encoding: EncodingType, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn get_SenderNonce(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; + fn put_SenderNonce(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SignatureInformation(&self) -> ::windows::core::Result; fn ArchivePrivateKey(&self) -> ::windows::core::Result; fn SetArchivePrivateKey(&self, value: i16) -> ::windows::core::Result<()>; - fn get_KeyArchivalCertificate(&self, encoding: EncodingType) -> ::windows::core::Result; - fn put_KeyArchivalCertificate(&self, encoding: EncodingType, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn get_KeyArchivalCertificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; + fn put_KeyArchivalCertificate(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn EncryptionAlgorithm(&self) -> ::windows::core::Result; fn SetEncryptionAlgorithm(&self, pvalue: &::core::option::Option) -> ::windows::core::Result<()>; fn EncryptionStrength(&self) -> ::windows::core::Result; fn SetEncryptionStrength(&self, value: i32) -> ::windows::core::Result<()>; - fn get_EncryptedKeyHash(&self, encoding: EncodingType) -> ::windows::core::Result; + fn get_EncryptedKeyHash(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; fn SignerCertificates(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -9205,7 +9205,7 @@ impl ::windows::core::RuntimeName for IX509CertificateRequestCmc {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IX509CertificateRequestCmc_Vtbl { pub const fn new, Impl: IX509CertificateRequestCmc_Impl, const OFFSET: isize>() -> IX509CertificateRequestCmc_Vtbl { - unsafe extern "system" fn InitializeFromInnerRequestTemplateName, Impl: IX509CertificateRequestCmc_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pinnerrequest: *mut ::core::ffi::c_void, strtemplatename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeFromInnerRequestTemplateName, Impl: IX509CertificateRequestCmc_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pinnerrequest: *mut ::core::ffi::c_void, strtemplatename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeFromInnerRequestTemplateName(::core::mem::transmute(&pinnerrequest), ::core::mem::transmute(&strtemplatename)).into() @@ -9303,7 +9303,7 @@ impl IX509CertificateRequestCmc_Vtbl { let this = (*this).get_impl(); this.SetTransactionId(::core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn get_SenderNonce, Impl: IX509CertificateRequestCmc_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_SenderNonce, Impl: IX509CertificateRequestCmc_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_SenderNonce(::core::mem::transmute_copy(&encoding)) { @@ -9314,7 +9314,7 @@ impl IX509CertificateRequestCmc_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn put_SenderNonce, Impl: IX509CertificateRequestCmc_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn put_SenderNonce, Impl: IX509CertificateRequestCmc_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.put_SenderNonce(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&value)).into() @@ -9346,7 +9346,7 @@ impl IX509CertificateRequestCmc_Vtbl { let this = (*this).get_impl(); this.SetArchivePrivateKey(::core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn get_KeyArchivalCertificate, Impl: IX509CertificateRequestCmc_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_KeyArchivalCertificate, Impl: IX509CertificateRequestCmc_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_KeyArchivalCertificate(::core::mem::transmute_copy(&encoding)) { @@ -9357,7 +9357,7 @@ impl IX509CertificateRequestCmc_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn put_KeyArchivalCertificate, Impl: IX509CertificateRequestCmc_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn put_KeyArchivalCertificate, Impl: IX509CertificateRequestCmc_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.put_KeyArchivalCertificate(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&value)).into() @@ -9394,7 +9394,7 @@ impl IX509CertificateRequestCmc_Vtbl { let this = (*this).get_impl(); this.SetEncryptionStrength(::core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn get_EncryptedKeyHash, Impl: IX509CertificateRequestCmc_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_EncryptedKeyHash, Impl: IX509CertificateRequestCmc_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_EncryptedKeyHash(::core::mem::transmute_copy(&encoding)) { @@ -9519,11 +9519,11 @@ impl IX509CertificateRequestCmc2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509CertificateRequestPkcs10_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + IX509CertificateRequest_Impl { - fn InitializeFromTemplateName(&self, context: X509CertificateEnrollmentContext, strtemplatename: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn InitializeFromPrivateKey(&self, context: X509CertificateEnrollmentContext, pprivatekey: &::core::option::Option, strtemplatename: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn InitializeFromPublicKey(&self, context: X509CertificateEnrollmentContext, ppublickey: &::core::option::Option, strtemplatename: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn InitializeFromCertificate(&self, context: X509CertificateEnrollmentContext, strcertificate: &super::super::super::Foundation::BSTR, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> ::windows::core::Result<()>; - fn InitializeDecode(&self, strencodeddata: &super::super::super::Foundation::BSTR, encoding: EncodingType) -> ::windows::core::Result<()>; + fn InitializeFromTemplateName(&self, context: X509CertificateEnrollmentContext, strtemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn InitializeFromPrivateKey(&self, context: X509CertificateEnrollmentContext, pprivatekey: &::core::option::Option, strtemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn InitializeFromPublicKey(&self, context: X509CertificateEnrollmentContext, ppublickey: &::core::option::Option, strtemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn InitializeFromCertificate(&self, context: X509CertificateEnrollmentContext, strcertificate: &::windows::core::BSTR, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> ::windows::core::Result<()>; + fn InitializeDecode(&self, strencodeddata: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()>; fn CheckSignature(&self, allowedsignaturetypes: Pkcs10AllowedSignatureTypes) -> ::windows::core::Result<()>; fn IsSmartCard(&self) -> ::windows::core::Result; fn TemplateObjectId(&self) -> ::windows::core::Result; @@ -9531,21 +9531,21 @@ pub trait IX509CertificateRequestPkcs10_Impl: Sized + super::super::super::Syste fn PrivateKey(&self) -> ::windows::core::Result; fn NullSigned(&self) -> ::windows::core::Result; fn ReuseKey(&self) -> ::windows::core::Result; - fn get_OldCertificate(&self, encoding: EncodingType) -> ::windows::core::Result; + fn get_OldCertificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; fn Subject(&self) -> ::windows::core::Result; fn SetSubject(&self, pvalue: &::core::option::Option) -> ::windows::core::Result<()>; fn CspStatuses(&self) -> ::windows::core::Result; fn SmimeCapabilities(&self) -> ::windows::core::Result; fn SetSmimeCapabilities(&self, value: i16) -> ::windows::core::Result<()>; fn SignatureInformation(&self) -> ::windows::core::Result; - fn KeyContainerNamePrefix(&self) -> ::windows::core::Result; - fn SetKeyContainerNamePrefix(&self, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn KeyContainerNamePrefix(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetKeyContainerNamePrefix(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn CryptAttributes(&self) -> ::windows::core::Result; fn X509Extensions(&self) -> ::windows::core::Result; fn CriticalExtensions(&self) -> ::windows::core::Result; fn SuppressOids(&self) -> ::windows::core::Result; - fn get_RawDataToBeSigned(&self, encoding: EncodingType) -> ::windows::core::Result; - fn get_Signature(&self, encoding: EncodingType) -> ::windows::core::Result; + fn get_RawDataToBeSigned(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; + fn get_Signature(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; fn GetCspStatuses(&self, keyspec: X509KeySpec) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -9553,27 +9553,27 @@ impl ::windows::core::RuntimeName for IX509CertificateRequestPkcs10 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IX509CertificateRequestPkcs10_Vtbl { pub const fn new, Impl: IX509CertificateRequestPkcs10_Impl, const OFFSET: isize>() -> IX509CertificateRequestPkcs10_Vtbl { - unsafe extern "system" fn InitializeFromTemplateName, Impl: IX509CertificateRequestPkcs10_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext, strtemplatename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeFromTemplateName, Impl: IX509CertificateRequestPkcs10_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext, strtemplatename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeFromTemplateName(::core::mem::transmute_copy(&context), ::core::mem::transmute(&strtemplatename)).into() } - unsafe extern "system" fn InitializeFromPrivateKey, Impl: IX509CertificateRequestPkcs10_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext, pprivatekey: *mut ::core::ffi::c_void, strtemplatename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeFromPrivateKey, Impl: IX509CertificateRequestPkcs10_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext, pprivatekey: *mut ::core::ffi::c_void, strtemplatename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeFromPrivateKey(::core::mem::transmute_copy(&context), ::core::mem::transmute(&pprivatekey), ::core::mem::transmute(&strtemplatename)).into() } - unsafe extern "system" fn InitializeFromPublicKey, Impl: IX509CertificateRequestPkcs10_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext, ppublickey: *mut ::core::ffi::c_void, strtemplatename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeFromPublicKey, Impl: IX509CertificateRequestPkcs10_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext, ppublickey: *mut ::core::ffi::c_void, strtemplatename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeFromPublicKey(::core::mem::transmute_copy(&context), ::core::mem::transmute(&ppublickey), ::core::mem::transmute(&strtemplatename)).into() } - unsafe extern "system" fn InitializeFromCertificate, Impl: IX509CertificateRequestPkcs10_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext, strcertificate: ::core::mem::ManuallyDrop, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeFromCertificate, Impl: IX509CertificateRequestPkcs10_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext, strcertificate: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeFromCertificate(::core::mem::transmute_copy(&context), ::core::mem::transmute(&strcertificate), ::core::mem::transmute_copy(&encoding), ::core::mem::transmute_copy(&inheritoptions)).into() } - unsafe extern "system" fn InitializeDecode, Impl: IX509CertificateRequestPkcs10_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strencodeddata: ::core::mem::ManuallyDrop, encoding: EncodingType) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeDecode, Impl: IX509CertificateRequestPkcs10_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeDecode(::core::mem::transmute(&strencodeddata), ::core::mem::transmute_copy(&encoding)).into() @@ -9649,7 +9649,7 @@ impl IX509CertificateRequestPkcs10_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_OldCertificate, Impl: IX509CertificateRequestPkcs10_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_OldCertificate, Impl: IX509CertificateRequestPkcs10_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_OldCertificate(::core::mem::transmute_copy(&encoding)) { @@ -9714,7 +9714,7 @@ impl IX509CertificateRequestPkcs10_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn KeyContainerNamePrefix, Impl: IX509CertificateRequestPkcs10_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn KeyContainerNamePrefix, Impl: IX509CertificateRequestPkcs10_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.KeyContainerNamePrefix() { @@ -9725,7 +9725,7 @@ impl IX509CertificateRequestPkcs10_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetKeyContainerNamePrefix, Impl: IX509CertificateRequestPkcs10_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetKeyContainerNamePrefix, Impl: IX509CertificateRequestPkcs10_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetKeyContainerNamePrefix(::core::mem::transmute(&value)).into() @@ -9774,7 +9774,7 @@ impl IX509CertificateRequestPkcs10_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_RawDataToBeSigned, Impl: IX509CertificateRequestPkcs10_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_RawDataToBeSigned, Impl: IX509CertificateRequestPkcs10_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_RawDataToBeSigned(::core::mem::transmute_copy(&encoding)) { @@ -9785,7 +9785,7 @@ impl IX509CertificateRequestPkcs10_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_Signature, Impl: IX509CertificateRequestPkcs10_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Signature, Impl: IX509CertificateRequestPkcs10_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_Signature(::core::mem::transmute_copy(&encoding)) { @@ -9910,14 +9910,14 @@ impl IX509CertificateRequestPkcs10V2_Vtbl { pub trait IX509CertificateRequestPkcs10V3_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + IX509CertificateRequest_Impl + IX509CertificateRequestPkcs10_Impl + IX509CertificateRequestPkcs10V2_Impl { fn AttestPrivateKey(&self) -> ::windows::core::Result; fn SetAttestPrivateKey(&self, value: i16) -> ::windows::core::Result<()>; - fn get_AttestationEncryptionCertificate(&self, encoding: EncodingType) -> ::windows::core::Result; - fn put_AttestationEncryptionCertificate(&self, encoding: EncodingType, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn get_AttestationEncryptionCertificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; + fn put_AttestationEncryptionCertificate(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn EncryptionAlgorithm(&self) -> ::windows::core::Result; fn SetEncryptionAlgorithm(&self, pvalue: &::core::option::Option) -> ::windows::core::Result<()>; fn EncryptionStrength(&self) -> ::windows::core::Result; fn SetEncryptionStrength(&self, value: i32) -> ::windows::core::Result<()>; - fn ChallengePassword(&self) -> ::windows::core::Result; - fn SetChallengePassword(&self, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ChallengePassword(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetChallengePassword(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn NameValuePairs(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -9941,7 +9941,7 @@ impl IX509CertificateRequestPkcs10V3_Vtbl { let this = (*this).get_impl(); this.SetAttestPrivateKey(::core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn get_AttestationEncryptionCertificate, Impl: IX509CertificateRequestPkcs10V3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_AttestationEncryptionCertificate, Impl: IX509CertificateRequestPkcs10V3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_AttestationEncryptionCertificate(::core::mem::transmute_copy(&encoding)) { @@ -9952,7 +9952,7 @@ impl IX509CertificateRequestPkcs10V3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn put_AttestationEncryptionCertificate, Impl: IX509CertificateRequestPkcs10V3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn put_AttestationEncryptionCertificate, Impl: IX509CertificateRequestPkcs10V3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.put_AttestationEncryptionCertificate(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&value)).into() @@ -9989,7 +9989,7 @@ impl IX509CertificateRequestPkcs10V3_Vtbl { let this = (*this).get_impl(); this.SetEncryptionStrength(::core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn ChallengePassword, Impl: IX509CertificateRequestPkcs10V3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ChallengePassword, Impl: IX509CertificateRequestPkcs10V3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ChallengePassword() { @@ -10000,7 +10000,7 @@ impl IX509CertificateRequestPkcs10V3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetChallengePassword, Impl: IX509CertificateRequestPkcs10V3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetChallengePassword, Impl: IX509CertificateRequestPkcs10V3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetChallengePassword(::core::mem::transmute(&value)).into() @@ -10093,12 +10093,12 @@ impl IX509CertificateRequestPkcs10V4_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509CertificateRequestPkcs7_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + IX509CertificateRequest_Impl { - fn InitializeFromTemplateName(&self, context: X509CertificateEnrollmentContext, strtemplatename: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn InitializeFromCertificate(&self, context: X509CertificateEnrollmentContext, renewalrequest: i16, strcertificate: &super::super::super::Foundation::BSTR, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> ::windows::core::Result<()>; + fn InitializeFromTemplateName(&self, context: X509CertificateEnrollmentContext, strtemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn InitializeFromCertificate(&self, context: X509CertificateEnrollmentContext, renewalrequest: i16, strcertificate: &::windows::core::BSTR, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> ::windows::core::Result<()>; fn InitializeFromInnerRequest(&self, pinnerrequest: &::core::option::Option) -> ::windows::core::Result<()>; - fn InitializeDecode(&self, strencodeddata: &super::super::super::Foundation::BSTR, encoding: EncodingType) -> ::windows::core::Result<()>; - fn RequesterName(&self) -> ::windows::core::Result; - fn SetRequesterName(&self, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn InitializeDecode(&self, strencodeddata: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()>; + fn RequesterName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetRequesterName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SignerCertificate(&self) -> ::windows::core::Result; fn SetSignerCertificate(&self, pvalue: &::core::option::Option) -> ::windows::core::Result<()>; } @@ -10107,12 +10107,12 @@ impl ::windows::core::RuntimeName for IX509CertificateRequestPkcs7 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IX509CertificateRequestPkcs7_Vtbl { pub const fn new, Impl: IX509CertificateRequestPkcs7_Impl, const OFFSET: isize>() -> IX509CertificateRequestPkcs7_Vtbl { - unsafe extern "system" fn InitializeFromTemplateName, Impl: IX509CertificateRequestPkcs7_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext, strtemplatename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeFromTemplateName, Impl: IX509CertificateRequestPkcs7_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext, strtemplatename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeFromTemplateName(::core::mem::transmute_copy(&context), ::core::mem::transmute(&strtemplatename)).into() } - unsafe extern "system" fn InitializeFromCertificate, Impl: IX509CertificateRequestPkcs7_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext, renewalrequest: i16, strcertificate: ::core::mem::ManuallyDrop, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeFromCertificate, Impl: IX509CertificateRequestPkcs7_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext, renewalrequest: i16, strcertificate: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeFromCertificate(::core::mem::transmute_copy(&context), ::core::mem::transmute_copy(&renewalrequest), ::core::mem::transmute(&strcertificate), ::core::mem::transmute_copy(&encoding), ::core::mem::transmute_copy(&inheritoptions)).into() @@ -10122,12 +10122,12 @@ impl IX509CertificateRequestPkcs7_Vtbl { let this = (*this).get_impl(); this.InitializeFromInnerRequest(::core::mem::transmute(&pinnerrequest)).into() } - unsafe extern "system" fn InitializeDecode, Impl: IX509CertificateRequestPkcs7_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strencodeddata: ::core::mem::ManuallyDrop, encoding: EncodingType) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeDecode, Impl: IX509CertificateRequestPkcs7_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeDecode(::core::mem::transmute(&strencodeddata), ::core::mem::transmute_copy(&encoding)).into() } - unsafe extern "system" fn RequesterName, Impl: IX509CertificateRequestPkcs7_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RequesterName, Impl: IX509CertificateRequestPkcs7_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RequesterName() { @@ -10138,7 +10138,7 @@ impl IX509CertificateRequestPkcs7_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetRequesterName, Impl: IX509CertificateRequestPkcs7_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetRequesterName, Impl: IX509CertificateRequestPkcs7_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetRequesterName(::core::mem::transmute(&value)).into() @@ -10234,7 +10234,7 @@ impl IX509CertificateRequestPkcs7V2_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509CertificateRevocationList_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { fn Initialize(&self) -> ::windows::core::Result<()>; - fn InitializeDecode(&self, strencodeddata: &super::super::super::Foundation::BSTR, encoding: EncodingType) -> ::windows::core::Result<()>; + fn InitializeDecode(&self, strencodeddata: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()>; fn Encode(&self) -> ::windows::core::Result<()>; fn ResetForEncode(&self) -> ::windows::core::Result<()>; fn CheckPublicKeySignature(&self, ppublickey: &::core::option::Option) -> ::windows::core::Result<()>; @@ -10250,8 +10250,8 @@ pub trait IX509CertificateRevocationList_Impl: Sized + super::super::super::Syst fn CriticalExtensions(&self) -> ::windows::core::Result; fn SignerCertificate(&self) -> ::windows::core::Result; fn SetSignerCertificate(&self, pvalue: &::core::option::Option) -> ::windows::core::Result<()>; - fn get_CRLNumber(&self, encoding: EncodingType) -> ::windows::core::Result; - fn put_CRLNumber(&self, encoding: EncodingType, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn get_CRLNumber(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; + fn put_CRLNumber(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn CAVersion(&self) -> ::windows::core::Result; fn SetCAVersion(&self, pvalue: i32) -> ::windows::core::Result<()>; fn BaseCRL(&self) -> ::windows::core::Result; @@ -10261,9 +10261,9 @@ pub trait IX509CertificateRevocationList_Impl: Sized + super::super::super::Syst fn AlternateSignatureAlgorithm(&self) -> ::windows::core::Result; fn SetAlternateSignatureAlgorithm(&self, value: i16) -> ::windows::core::Result<()>; fn SignatureInformation(&self) -> ::windows::core::Result; - fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result; - fn get_RawDataToBeSigned(&self, encoding: EncodingType) -> ::windows::core::Result; - fn get_Signature(&self, encoding: EncodingType) -> ::windows::core::Result; + fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; + fn get_RawDataToBeSigned(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; + fn get_Signature(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IX509CertificateRevocationList {} @@ -10275,7 +10275,7 @@ impl IX509CertificateRevocationList_Vtbl { let this = (*this).get_impl(); this.Initialize().into() } - unsafe extern "system" fn InitializeDecode, Impl: IX509CertificateRevocationList_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strencodeddata: ::core::mem::ManuallyDrop, encoding: EncodingType) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeDecode, Impl: IX509CertificateRevocationList_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeDecode(::core::mem::transmute(&strencodeddata), ::core::mem::transmute_copy(&encoding)).into() @@ -10397,7 +10397,7 @@ impl IX509CertificateRevocationList_Vtbl { let this = (*this).get_impl(); this.SetSignerCertificate(::core::mem::transmute(&pvalue)).into() } - unsafe extern "system" fn get_CRLNumber, Impl: IX509CertificateRevocationList_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_CRLNumber, Impl: IX509CertificateRevocationList_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_CRLNumber(::core::mem::transmute_copy(&encoding)) { @@ -10408,7 +10408,7 @@ impl IX509CertificateRevocationList_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn put_CRLNumber, Impl: IX509CertificateRevocationList_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn put_CRLNumber, Impl: IX509CertificateRevocationList_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.put_CRLNumber(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&value)).into() @@ -10494,7 +10494,7 @@ impl IX509CertificateRevocationList_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_RawData, Impl: IX509CertificateRevocationList_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_RawData, Impl: IX509CertificateRevocationList_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_RawData(::core::mem::transmute_copy(&encoding)) { @@ -10505,7 +10505,7 @@ impl IX509CertificateRevocationList_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_RawDataToBeSigned, Impl: IX509CertificateRevocationList_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_RawDataToBeSigned, Impl: IX509CertificateRevocationList_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_RawDataToBeSigned(::core::mem::transmute_copy(&encoding)) { @@ -10516,7 +10516,7 @@ impl IX509CertificateRevocationList_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_Signature, Impl: IX509CertificateRevocationList_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Signature, Impl: IX509CertificateRevocationList_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_Signature(::core::mem::transmute_copy(&encoding)) { @@ -10574,7 +10574,7 @@ pub trait IX509CertificateRevocationListEntries_Impl: Sized + super::super::supe fn Add(&self, pval: &::core::option::Option) -> ::windows::core::Result<()>; fn Remove(&self, index: i32) -> ::windows::core::Result<()>; fn Clear(&self) -> ::windows::core::Result<()>; - fn get_IndexBySerialNumber(&self, encoding: EncodingType, serialnumber: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; + fn get_IndexBySerialNumber(&self, encoding: EncodingType, serialnumber: &::windows::core::BSTR) -> ::windows::core::Result; fn AddRange(&self, pvalue: &::core::option::Option) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -10630,7 +10630,7 @@ impl IX509CertificateRevocationListEntries_Vtbl { let this = (*this).get_impl(); this.Clear().into() } - unsafe extern "system" fn get_IndexBySerialNumber, Impl: IX509CertificateRevocationListEntries_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, serialnumber: ::core::mem::ManuallyDrop, pindex: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_IndexBySerialNumber, Impl: IX509CertificateRevocationListEntries_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, serialnumber: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pindex: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_IndexBySerialNumber(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&serialnumber)) { @@ -10664,8 +10664,8 @@ impl IX509CertificateRevocationListEntries_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509CertificateRevocationListEntry_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn Initialize(&self, encoding: EncodingType, serialnumber: &super::super::super::Foundation::BSTR, revocationdate: f64) -> ::windows::core::Result<()>; - fn get_SerialNumber(&self, encoding: EncodingType) -> ::windows::core::Result; + fn Initialize(&self, encoding: EncodingType, serialnumber: &::windows::core::BSTR, revocationdate: f64) -> ::windows::core::Result<()>; + fn get_SerialNumber(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; fn RevocationDate(&self) -> ::windows::core::Result; fn RevocationReason(&self) -> ::windows::core::Result; fn SetRevocationReason(&self, value: CRLRevocationReason) -> ::windows::core::Result<()>; @@ -10677,12 +10677,12 @@ impl ::windows::core::RuntimeName for IX509CertificateRevocationListEntry {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IX509CertificateRevocationListEntry_Vtbl { pub const fn new, Impl: IX509CertificateRevocationListEntry_Impl, const OFFSET: isize>() -> IX509CertificateRevocationListEntry_Vtbl { - unsafe extern "system" fn Initialize, Impl: IX509CertificateRevocationListEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, serialnumber: ::core::mem::ManuallyDrop, revocationdate: f64) -> ::windows::core::HRESULT { + unsafe extern "system" fn Initialize, Impl: IX509CertificateRevocationListEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, serialnumber: ::core::mem::ManuallyDrop<::windows::core::BSTR>, revocationdate: f64) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Initialize(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&serialnumber), ::core::mem::transmute_copy(&revocationdate)).into() } - unsafe extern "system" fn get_SerialNumber, Impl: IX509CertificateRevocationListEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_SerialNumber, Impl: IX509CertificateRevocationListEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_SerialNumber(::core::mem::transmute_copy(&encoding)) { @@ -10786,7 +10786,7 @@ impl IX509CertificateTemplate_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509CertificateTemplateWritable_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { fn Initialize(&self, pvalue: &::core::option::Option) -> ::windows::core::Result<()>; - fn Commit(&self, commitflags: CommitTemplateFlags, strservercontext: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Commit(&self, commitflags: CommitTemplateFlags, strservercontext: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn get_Property(&self, property: EnrollmentTemplateProperty) -> ::windows::core::Result; fn put_Property(&self, property: EnrollmentTemplateProperty, value: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn Template(&self) -> ::windows::core::Result; @@ -10801,7 +10801,7 @@ impl IX509CertificateTemplateWritable_Vtbl { let this = (*this).get_impl(); this.Initialize(::core::mem::transmute(&pvalue)).into() } - unsafe extern "system" fn Commit, Impl: IX509CertificateTemplateWritable_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, commitflags: CommitTemplateFlags, strservercontext: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Commit, Impl: IX509CertificateTemplateWritable_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, commitflags: CommitTemplateFlags, strservercontext: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Commit(::core::mem::transmute_copy(&commitflags), ::core::mem::transmute(&strservercontext)).into() @@ -10854,7 +10854,7 @@ pub trait IX509CertificateTemplates_Impl: Sized + super::super::super::System::C fn Add(&self, pval: &::core::option::Option) -> ::windows::core::Result<()>; fn Remove(&self, index: i32) -> ::windows::core::Result<()>; fn Clear(&self) -> ::windows::core::Result<()>; - fn get_ItemByName(&self, bstrname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; + fn get_ItemByName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result; fn get_ItemByOid(&self, poid: &::core::option::Option) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -10910,7 +10910,7 @@ impl IX509CertificateTemplates_Vtbl { let this = (*this).get_impl(); this.Clear().into() } - unsafe extern "system" fn get_ItemByName, Impl: IX509CertificateTemplates_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_ItemByName, Impl: IX509CertificateTemplates_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_ItemByName(::core::mem::transmute(&bstrname)) { @@ -10950,13 +10950,13 @@ impl IX509CertificateTemplates_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509EndorsementKey_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn ProviderName(&self) -> ::windows::core::Result; - fn SetProviderName(&self, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ProviderName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetProviderName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Length(&self) -> ::windows::core::Result; fn Opened(&self) -> ::windows::core::Result; - fn AddCertificate(&self, encoding: EncodingType, strcertificate: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn RemoveCertificate(&self, encoding: EncodingType, strcertificate: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetCertificateByIndex(&self, manufactureronly: i16, dwindex: i32, encoding: EncodingType) -> ::windows::core::Result; + fn AddCertificate(&self, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn RemoveCertificate(&self, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetCertificateByIndex(&self, manufactureronly: i16, dwindex: i32, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; fn GetCertificateCount(&self, manufactureronly: i16) -> ::windows::core::Result; fn ExportPublicKey(&self) -> ::windows::core::Result; fn Open(&self) -> ::windows::core::Result<()>; @@ -10967,7 +10967,7 @@ impl ::windows::core::RuntimeName for IX509EndorsementKey {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IX509EndorsementKey_Vtbl { pub const fn new, Impl: IX509EndorsementKey_Impl, const OFFSET: isize>() -> IX509EndorsementKey_Vtbl { - unsafe extern "system" fn ProviderName, Impl: IX509EndorsementKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ProviderName, Impl: IX509EndorsementKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ProviderName() { @@ -10978,7 +10978,7 @@ impl IX509EndorsementKey_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetProviderName, Impl: IX509EndorsementKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetProviderName, Impl: IX509EndorsementKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetProviderName(::core::mem::transmute(&value)).into() @@ -11005,17 +11005,17 @@ impl IX509EndorsementKey_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AddCertificate, Impl: IX509EndorsementKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strcertificate: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddCertificate, Impl: IX509EndorsementKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strcertificate: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddCertificate(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strcertificate)).into() } - unsafe extern "system" fn RemoveCertificate, Impl: IX509EndorsementKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strcertificate: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn RemoveCertificate, Impl: IX509EndorsementKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strcertificate: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RemoveCertificate(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strcertificate)).into() } - unsafe extern "system" fn GetCertificateByIndex, Impl: IX509EndorsementKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, manufactureronly: i16, dwindex: i32, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCertificateByIndex, Impl: IX509EndorsementKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, manufactureronly: i16, dwindex: i32, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCertificateByIndex(::core::mem::transmute_copy(&manufactureronly), ::core::mem::transmute_copy(&dwindex), ::core::mem::transmute_copy(&encoding)) { @@ -11080,12 +11080,12 @@ impl IX509EndorsementKey_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509Enrollment_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { fn Initialize(&self, context: X509CertificateEnrollmentContext) -> ::windows::core::Result<()>; - fn InitializeFromTemplateName(&self, context: X509CertificateEnrollmentContext, strtemplatename: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn InitializeFromTemplateName(&self, context: X509CertificateEnrollmentContext, strtemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn InitializeFromRequest(&self, prequest: &::core::option::Option) -> ::windows::core::Result<()>; - fn CreateRequest(&self, encoding: EncodingType) -> ::windows::core::Result; + fn CreateRequest(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; fn Enroll(&self) -> ::windows::core::Result<()>; - fn InstallResponse(&self, restrictions: InstallResponseRestrictionFlags, strresponse: &super::super::super::Foundation::BSTR, encoding: EncodingType, strpassword: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn CreatePFX(&self, strpassword: &super::super::super::Foundation::BSTR, exportoptions: PFXExportOptions, encoding: EncodingType) -> ::windows::core::Result; + fn InstallResponse(&self, restrictions: InstallResponseRestrictionFlags, strresponse: &::windows::core::BSTR, encoding: EncodingType, strpassword: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn CreatePFX(&self, strpassword: &::windows::core::BSTR, exportoptions: PFXExportOptions, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; fn Request(&self) -> ::windows::core::Result; fn Silent(&self) -> ::windows::core::Result; fn SetSilent(&self, value: i16) -> ::windows::core::Result<()>; @@ -11094,14 +11094,14 @@ pub trait IX509Enrollment_Impl: Sized + super::super::super::System::Com::IDispa fn NameValuePairs(&self) -> ::windows::core::Result; fn EnrollmentContext(&self) -> ::windows::core::Result; fn Status(&self) -> ::windows::core::Result; - fn get_Certificate(&self, encoding: EncodingType) -> ::windows::core::Result; - fn get_Response(&self, encoding: EncodingType) -> ::windows::core::Result; - fn CertificateFriendlyName(&self) -> ::windows::core::Result; - fn SetCertificateFriendlyName(&self, strvalue: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn CertificateDescription(&self) -> ::windows::core::Result; - fn SetCertificateDescription(&self, strvalue: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn get_Certificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; + fn get_Response(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; + fn CertificateFriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetCertificateFriendlyName(&self, strvalue: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn CertificateDescription(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetCertificateDescription(&self, strvalue: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn RequestId(&self) -> ::windows::core::Result; - fn CAConfigString(&self) -> ::windows::core::Result; + fn CAConfigString(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IX509Enrollment {} @@ -11113,7 +11113,7 @@ impl IX509Enrollment_Vtbl { let this = (*this).get_impl(); this.Initialize(::core::mem::transmute_copy(&context)).into() } - unsafe extern "system" fn InitializeFromTemplateName, Impl: IX509Enrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext, strtemplatename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeFromTemplateName, Impl: IX509Enrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext, strtemplatename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeFromTemplateName(::core::mem::transmute_copy(&context), ::core::mem::transmute(&strtemplatename)).into() @@ -11123,7 +11123,7 @@ impl IX509Enrollment_Vtbl { let this = (*this).get_impl(); this.InitializeFromRequest(::core::mem::transmute(&prequest)).into() } - unsafe extern "system" fn CreateRequest, Impl: IX509Enrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateRequest, Impl: IX509Enrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateRequest(::core::mem::transmute_copy(&encoding)) { @@ -11139,12 +11139,12 @@ impl IX509Enrollment_Vtbl { let this = (*this).get_impl(); this.Enroll().into() } - unsafe extern "system" fn InstallResponse, Impl: IX509Enrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, restrictions: InstallResponseRestrictionFlags, strresponse: ::core::mem::ManuallyDrop, encoding: EncodingType, strpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InstallResponse, Impl: IX509Enrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, restrictions: InstallResponseRestrictionFlags, strresponse: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InstallResponse(::core::mem::transmute_copy(&restrictions), ::core::mem::transmute(&strresponse), ::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strpassword)).into() } - unsafe extern "system" fn CreatePFX, Impl: IX509Enrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpassword: ::core::mem::ManuallyDrop, exportoptions: PFXExportOptions, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreatePFX, Impl: IX509Enrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, exportoptions: PFXExportOptions, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreatePFX(::core::mem::transmute(&strpassword), ::core::mem::transmute_copy(&exportoptions), ::core::mem::transmute_copy(&encoding)) { @@ -11231,7 +11231,7 @@ impl IX509Enrollment_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_Certificate, Impl: IX509Enrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Certificate, Impl: IX509Enrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_Certificate(::core::mem::transmute_copy(&encoding)) { @@ -11242,7 +11242,7 @@ impl IX509Enrollment_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_Response, Impl: IX509Enrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Response, Impl: IX509Enrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_Response(::core::mem::transmute_copy(&encoding)) { @@ -11253,7 +11253,7 @@ impl IX509Enrollment_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CertificateFriendlyName, Impl: IX509Enrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CertificateFriendlyName, Impl: IX509Enrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CertificateFriendlyName() { @@ -11264,12 +11264,12 @@ impl IX509Enrollment_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetCertificateFriendlyName, Impl: IX509Enrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCertificateFriendlyName, Impl: IX509Enrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCertificateFriendlyName(::core::mem::transmute(&strvalue)).into() } - unsafe extern "system" fn CertificateDescription, Impl: IX509Enrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CertificateDescription, Impl: IX509Enrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CertificateDescription() { @@ -11280,7 +11280,7 @@ impl IX509Enrollment_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetCertificateDescription, Impl: IX509Enrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCertificateDescription, Impl: IX509Enrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCertificateDescription(::core::mem::transmute(&strvalue)).into() @@ -11296,7 +11296,7 @@ impl IX509Enrollment_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CAConfigString, Impl: IX509Enrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CAConfigString, Impl: IX509Enrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CAConfigString() { @@ -11341,10 +11341,10 @@ impl IX509Enrollment_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509Enrollment2_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + IX509Enrollment_Impl { fn InitializeFromTemplate(&self, context: X509CertificateEnrollmentContext, ppolicyserver: &::core::option::Option, ptemplate: &::core::option::Option) -> ::windows::core::Result<()>; - fn InstallResponse2(&self, restrictions: InstallResponseRestrictionFlags, strresponse: &super::super::super::Foundation::BSTR, encoding: EncodingType, strpassword: &super::super::super::Foundation::BSTR, strenrollmentpolicyserverurl: &super::super::super::Foundation::BSTR, strenrollmentpolicyserverid: &super::super::super::Foundation::BSTR, enrollmentpolicyserverflags: PolicyServerUrlFlags, authflags: X509EnrollmentAuthFlags) -> ::windows::core::Result<()>; + fn InstallResponse2(&self, restrictions: InstallResponseRestrictionFlags, strresponse: &::windows::core::BSTR, encoding: EncodingType, strpassword: &::windows::core::BSTR, strenrollmentpolicyserverurl: &::windows::core::BSTR, strenrollmentpolicyserverid: &::windows::core::BSTR, enrollmentpolicyserverflags: PolicyServerUrlFlags, authflags: X509EnrollmentAuthFlags) -> ::windows::core::Result<()>; fn PolicyServer(&self) -> ::windows::core::Result; fn Template(&self) -> ::windows::core::Result; - fn RequestIdString(&self) -> ::windows::core::Result; + fn RequestIdString(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IX509Enrollment2 {} @@ -11356,7 +11356,7 @@ impl IX509Enrollment2_Vtbl { let this = (*this).get_impl(); this.InitializeFromTemplate(::core::mem::transmute_copy(&context), ::core::mem::transmute(&ppolicyserver), ::core::mem::transmute(&ptemplate)).into() } - unsafe extern "system" fn InstallResponse2, Impl: IX509Enrollment2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, restrictions: InstallResponseRestrictionFlags, strresponse: ::core::mem::ManuallyDrop, encoding: EncodingType, strpassword: ::core::mem::ManuallyDrop, strenrollmentpolicyserverurl: ::core::mem::ManuallyDrop, strenrollmentpolicyserverid: ::core::mem::ManuallyDrop, enrollmentpolicyserverflags: PolicyServerUrlFlags, authflags: X509EnrollmentAuthFlags) -> ::windows::core::HRESULT { + unsafe extern "system" fn InstallResponse2, Impl: IX509Enrollment2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, restrictions: InstallResponseRestrictionFlags, strresponse: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strenrollmentpolicyserverurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strenrollmentpolicyserverid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, enrollmentpolicyserverflags: PolicyServerUrlFlags, authflags: X509EnrollmentAuthFlags) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InstallResponse2(::core::mem::transmute_copy(&restrictions), ::core::mem::transmute(&strresponse), ::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strpassword), ::core::mem::transmute(&strenrollmentpolicyserverurl), ::core::mem::transmute(&strenrollmentpolicyserverid), ::core::mem::transmute_copy(&enrollmentpolicyserverflags), ::core::mem::transmute_copy(&authflags)).into() @@ -11383,7 +11383,7 @@ impl IX509Enrollment2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RequestIdString, Impl: IX509Enrollment2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RequestIdString, Impl: IX509Enrollment2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RequestIdString() { @@ -11409,9 +11409,9 @@ impl IX509Enrollment2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509EnrollmentHelper_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn AddPolicyServer(&self, strenrollmentpolicyserveruri: &super::super::super::Foundation::BSTR, strenrollmentpolicyid: &super::super::super::Foundation::BSTR, enrollmentpolicyserverflags: PolicyServerUrlFlags, authflags: X509EnrollmentAuthFlags, strcredential: &super::super::super::Foundation::BSTR, strpassword: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn AddEnrollmentServer(&self, strenrollmentserveruri: &super::super::super::Foundation::BSTR, authflags: X509EnrollmentAuthFlags, strcredential: &super::super::super::Foundation::BSTR, strpassword: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Enroll(&self, strenrollmentpolicyserveruri: &super::super::super::Foundation::BSTR, strtemplatename: &super::super::super::Foundation::BSTR, encoding: EncodingType, enrollflags: WebEnrollmentFlags) -> ::windows::core::Result; + fn AddPolicyServer(&self, strenrollmentpolicyserveruri: &::windows::core::BSTR, strenrollmentpolicyid: &::windows::core::BSTR, enrollmentpolicyserverflags: PolicyServerUrlFlags, authflags: X509EnrollmentAuthFlags, strcredential: &::windows::core::BSTR, strpassword: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn AddEnrollmentServer(&self, strenrollmentserveruri: &::windows::core::BSTR, authflags: X509EnrollmentAuthFlags, strcredential: &::windows::core::BSTR, strpassword: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Enroll(&self, strenrollmentpolicyserveruri: &::windows::core::BSTR, strtemplatename: &::windows::core::BSTR, encoding: EncodingType, enrollflags: WebEnrollmentFlags) -> ::windows::core::Result<::windows::core::BSTR>; fn Initialize(&self, context: X509CertificateEnrollmentContext) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -11419,17 +11419,17 @@ impl ::windows::core::RuntimeName for IX509EnrollmentHelper {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IX509EnrollmentHelper_Vtbl { pub const fn new, Impl: IX509EnrollmentHelper_Impl, const OFFSET: isize>() -> IX509EnrollmentHelper_Vtbl { - unsafe extern "system" fn AddPolicyServer, Impl: IX509EnrollmentHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strenrollmentpolicyserveruri: ::core::mem::ManuallyDrop, strenrollmentpolicyid: ::core::mem::ManuallyDrop, enrollmentpolicyserverflags: PolicyServerUrlFlags, authflags: X509EnrollmentAuthFlags, strcredential: ::core::mem::ManuallyDrop, strpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddPolicyServer, Impl: IX509EnrollmentHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strenrollmentpolicyserveruri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strenrollmentpolicyid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, enrollmentpolicyserverflags: PolicyServerUrlFlags, authflags: X509EnrollmentAuthFlags, strcredential: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddPolicyServer(::core::mem::transmute(&strenrollmentpolicyserveruri), ::core::mem::transmute(&strenrollmentpolicyid), ::core::mem::transmute_copy(&enrollmentpolicyserverflags), ::core::mem::transmute_copy(&authflags), ::core::mem::transmute(&strcredential), ::core::mem::transmute(&strpassword)).into() } - unsafe extern "system" fn AddEnrollmentServer, Impl: IX509EnrollmentHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strenrollmentserveruri: ::core::mem::ManuallyDrop, authflags: X509EnrollmentAuthFlags, strcredential: ::core::mem::ManuallyDrop, strpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddEnrollmentServer, Impl: IX509EnrollmentHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strenrollmentserveruri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, authflags: X509EnrollmentAuthFlags, strcredential: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddEnrollmentServer(::core::mem::transmute(&strenrollmentserveruri), ::core::mem::transmute_copy(&authflags), ::core::mem::transmute(&strcredential), ::core::mem::transmute(&strpassword)).into() } - unsafe extern "system" fn Enroll, Impl: IX509EnrollmentHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strenrollmentpolicyserveruri: ::core::mem::ManuallyDrop, strtemplatename: ::core::mem::ManuallyDrop, encoding: EncodingType, enrollflags: WebEnrollmentFlags, pstrcertificate: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Enroll, Impl: IX509EnrollmentHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strenrollmentpolicyserveruri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strtemplatename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType, enrollflags: WebEnrollmentFlags, pstrcertificate: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Enroll(::core::mem::transmute(&strenrollmentpolicyserveruri), ::core::mem::transmute(&strtemplatename), ::core::mem::transmute_copy(&encoding), ::core::mem::transmute_copy(&enrollflags)) { @@ -11459,7 +11459,7 @@ impl IX509EnrollmentHelper_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509EnrollmentPolicyServer_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn Initialize(&self, bstrpolicyserverurl: &super::super::super::Foundation::BSTR, bstrpolicyserverid: &super::super::super::Foundation::BSTR, authflags: X509EnrollmentAuthFlags, fisuntrusted: i16, context: X509CertificateEnrollmentContext) -> ::windows::core::Result<()>; + fn Initialize(&self, bstrpolicyserverurl: &::windows::core::BSTR, bstrpolicyserverid: &::windows::core::BSTR, authflags: X509EnrollmentAuthFlags, fisuntrusted: i16, context: X509CertificateEnrollmentContext) -> ::windows::core::Result<()>; fn LoadPolicy(&self, option: X509EnrollmentPolicyLoadOption) -> ::windows::core::Result<()>; fn GetTemplates(&self) -> ::windows::core::Result; fn GetCAsForTemplate(&self, ptemplate: &::core::option::Option) -> ::windows::core::Result; @@ -11468,16 +11468,16 @@ pub trait IX509EnrollmentPolicyServer_Impl: Sized + super::super::super::System: fn GetCustomOids(&self) -> ::windows::core::Result; fn GetNextUpdateTime(&self) -> ::windows::core::Result; fn GetLastUpdateTime(&self) -> ::windows::core::Result; - fn GetPolicyServerUrl(&self) -> ::windows::core::Result; - fn GetPolicyServerId(&self) -> ::windows::core::Result; - fn GetFriendlyName(&self) -> ::windows::core::Result; + fn GetPolicyServerUrl(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetPolicyServerId(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetFriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetIsDefaultCEP(&self) -> ::windows::core::Result; fn GetUseClientId(&self) -> ::windows::core::Result; fn GetAllowUnTrustedCA(&self) -> ::windows::core::Result; - fn GetCachePath(&self) -> ::windows::core::Result; - fn GetCacheDir(&self) -> ::windows::core::Result; + fn GetCachePath(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetCacheDir(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetAuthFlags(&self) -> ::windows::core::Result; - fn SetCredential(&self, hwndparent: i32, flag: X509EnrollmentAuthFlags, strcredential: &super::super::super::Foundation::BSTR, strpassword: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetCredential(&self, hwndparent: i32, flag: X509EnrollmentAuthFlags, strcredential: &::windows::core::BSTR, strpassword: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn QueryChanges(&self) -> ::windows::core::Result; fn InitializeImport(&self, val: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn Export(&self, exportflags: X509EnrollmentPolicyExportFlags) -> ::windows::core::Result; @@ -11489,7 +11489,7 @@ impl ::windows::core::RuntimeName for IX509EnrollmentPolicyServer {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IX509EnrollmentPolicyServer_Vtbl { pub const fn new, Impl: IX509EnrollmentPolicyServer_Impl, const OFFSET: isize>() -> IX509EnrollmentPolicyServer_Vtbl { - unsafe extern "system" fn Initialize, Impl: IX509EnrollmentPolicyServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpolicyserverurl: ::core::mem::ManuallyDrop, bstrpolicyserverid: ::core::mem::ManuallyDrop, authflags: X509EnrollmentAuthFlags, fisuntrusted: i16, context: X509CertificateEnrollmentContext) -> ::windows::core::HRESULT { + unsafe extern "system" fn Initialize, Impl: IX509EnrollmentPolicyServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpolicyserverurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpolicyserverid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, authflags: X509EnrollmentAuthFlags, fisuntrusted: i16, context: X509CertificateEnrollmentContext) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Initialize(::core::mem::transmute(&bstrpolicyserverurl), ::core::mem::transmute(&bstrpolicyserverid), ::core::mem::transmute_copy(&authflags), ::core::mem::transmute_copy(&fisuntrusted), ::core::mem::transmute_copy(&context)).into() @@ -11570,7 +11570,7 @@ impl IX509EnrollmentPolicyServer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetPolicyServerUrl, Impl: IX509EnrollmentPolicyServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPolicyServerUrl, Impl: IX509EnrollmentPolicyServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetPolicyServerUrl() { @@ -11581,7 +11581,7 @@ impl IX509EnrollmentPolicyServer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetPolicyServerId, Impl: IX509EnrollmentPolicyServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPolicyServerId, Impl: IX509EnrollmentPolicyServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetPolicyServerId() { @@ -11592,7 +11592,7 @@ impl IX509EnrollmentPolicyServer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetFriendlyName, Impl: IX509EnrollmentPolicyServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFriendlyName, Impl: IX509EnrollmentPolicyServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetFriendlyName() { @@ -11636,7 +11636,7 @@ impl IX509EnrollmentPolicyServer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetCachePath, Impl: IX509EnrollmentPolicyServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCachePath, Impl: IX509EnrollmentPolicyServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCachePath() { @@ -11647,7 +11647,7 @@ impl IX509EnrollmentPolicyServer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetCacheDir, Impl: IX509EnrollmentPolicyServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCacheDir, Impl: IX509EnrollmentPolicyServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCacheDir() { @@ -11669,7 +11669,7 @@ impl IX509EnrollmentPolicyServer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetCredential, Impl: IX509EnrollmentPolicyServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwndparent: i32, flag: X509EnrollmentAuthFlags, strcredential: ::core::mem::ManuallyDrop, strpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCredential, Impl: IX509EnrollmentPolicyServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwndparent: i32, flag: X509EnrollmentAuthFlags, strcredential: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCredential(::core::mem::transmute_copy(&hwndparent), ::core::mem::transmute_copy(&flag), ::core::mem::transmute(&strcredential), ::core::mem::transmute(&strpassword)).into() @@ -11751,9 +11751,9 @@ impl IX509EnrollmentPolicyServer_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509EnrollmentStatus_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn AppendText(&self, strtext: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Text(&self) -> ::windows::core::Result; - fn SetText(&self, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn AppendText(&self, strtext: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Text(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetText(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Selected(&self) -> ::windows::core::Result; fn SetSelected(&self, value: EnrollmentSelectionStatus) -> ::windows::core::Result<()>; fn Display(&self) -> ::windows::core::Result; @@ -11762,19 +11762,19 @@ pub trait IX509EnrollmentStatus_Impl: Sized + super::super::super::System::Com:: fn SetStatus(&self, value: EnrollmentEnrollStatus) -> ::windows::core::Result<()>; fn Error(&self) -> ::windows::core::Result<::windows::core::HRESULT>; fn SetError(&self, value: ::windows::core::HRESULT) -> ::windows::core::Result<()>; - fn ErrorText(&self) -> ::windows::core::Result; + fn ErrorText(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IX509EnrollmentStatus {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IX509EnrollmentStatus_Vtbl { pub const fn new, Impl: IX509EnrollmentStatus_Impl, const OFFSET: isize>() -> IX509EnrollmentStatus_Vtbl { - unsafe extern "system" fn AppendText, Impl: IX509EnrollmentStatus_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strtext: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AppendText, Impl: IX509EnrollmentStatus_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strtext: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AppendText(::core::mem::transmute(&strtext)).into() } - unsafe extern "system" fn Text, Impl: IX509EnrollmentStatus_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Text, Impl: IX509EnrollmentStatus_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Text() { @@ -11785,7 +11785,7 @@ impl IX509EnrollmentStatus_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetText, Impl: IX509EnrollmentStatus_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetText, Impl: IX509EnrollmentStatus_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetText(::core::mem::transmute(&value)).into() @@ -11854,7 +11854,7 @@ impl IX509EnrollmentStatus_Vtbl { let this = (*this).get_impl(); this.SetError(::core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn ErrorText, Impl: IX509EnrollmentStatus_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ErrorText, Impl: IX509EnrollmentStatus_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ErrorText() { @@ -11887,14 +11887,14 @@ impl IX509EnrollmentStatus_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509EnrollmentWebClassFactory_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn CreateObject(&self, strprogid: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<::windows::core::IUnknown>; + fn CreateObject(&self, strprogid: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::IUnknown>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IX509EnrollmentWebClassFactory {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IX509EnrollmentWebClassFactory_Vtbl { pub const fn new, Impl: IX509EnrollmentWebClassFactory_Impl, const OFFSET: isize>() -> IX509EnrollmentWebClassFactory_Vtbl { - unsafe extern "system" fn CreateObject, Impl: IX509EnrollmentWebClassFactory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strprogid: ::core::mem::ManuallyDrop, ppiunknown: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateObject, Impl: IX509EnrollmentWebClassFactory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strprogid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppiunknown: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateObject(::core::mem::transmute(&strprogid)) { @@ -11913,9 +11913,9 @@ impl IX509EnrollmentWebClassFactory_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509Extension_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn Initialize(&self, pobjectid: &::core::option::Option, encoding: EncodingType, strencodeddata: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Initialize(&self, pobjectid: &::core::option::Option, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn ObjectId(&self) -> ::windows::core::Result; - fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result; + fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; fn Critical(&self) -> ::windows::core::Result; fn SetCritical(&self, value: i16) -> ::windows::core::Result<()>; } @@ -11924,7 +11924,7 @@ impl ::windows::core::RuntimeName for IX509Extension {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IX509Extension_Vtbl { pub const fn new, Impl: IX509Extension_Impl, const OFFSET: isize>() -> IX509Extension_Vtbl { - unsafe extern "system" fn Initialize, Impl: IX509Extension_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pobjectid: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Initialize, Impl: IX509Extension_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pobjectid: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Initialize(::core::mem::transmute(&pobjectid), ::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strencodeddata)).into() @@ -11940,7 +11940,7 @@ impl IX509Extension_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_RawData, Impl: IX509Extension_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_RawData, Impl: IX509Extension_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_RawData(::core::mem::transmute_copy(&encoding)) { @@ -11983,7 +11983,7 @@ impl IX509Extension_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509ExtensionAlternativeNames_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + IX509Extension_Impl { fn InitializeEncode(&self, pvalue: &::core::option::Option) -> ::windows::core::Result<()>; - fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn AlternativeNames(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -11996,7 +11996,7 @@ impl IX509ExtensionAlternativeNames_Vtbl { let this = (*this).get_impl(); this.InitializeEncode(::core::mem::transmute(&pvalue)).into() } - unsafe extern "system" fn InitializeDecode, Impl: IX509ExtensionAlternativeNames_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeDecode, Impl: IX509ExtensionAlternativeNames_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeDecode(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strencodeddata)).into() @@ -12025,26 +12025,26 @@ impl IX509ExtensionAlternativeNames_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509ExtensionAuthorityKeyIdentifier_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + IX509Extension_Impl { - fn InitializeEncode(&self, encoding: EncodingType, strkeyidentifier: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn get_AuthorityKeyIdentifier(&self, encoding: EncodingType) -> ::windows::core::Result; + fn InitializeEncode(&self, encoding: EncodingType, strkeyidentifier: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn get_AuthorityKeyIdentifier(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IX509ExtensionAuthorityKeyIdentifier {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IX509ExtensionAuthorityKeyIdentifier_Vtbl { pub const fn new, Impl: IX509ExtensionAuthorityKeyIdentifier_Impl, const OFFSET: isize>() -> IX509ExtensionAuthorityKeyIdentifier_Vtbl { - unsafe extern "system" fn InitializeEncode, Impl: IX509ExtensionAuthorityKeyIdentifier_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strkeyidentifier: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeEncode, Impl: IX509ExtensionAuthorityKeyIdentifier_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strkeyidentifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeEncode(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strkeyidentifier)).into() } - unsafe extern "system" fn InitializeDecode, Impl: IX509ExtensionAuthorityKeyIdentifier_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeDecode, Impl: IX509ExtensionAuthorityKeyIdentifier_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeDecode(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strencodeddata)).into() } - unsafe extern "system" fn get_AuthorityKeyIdentifier, Impl: IX509ExtensionAuthorityKeyIdentifier_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_AuthorityKeyIdentifier, Impl: IX509ExtensionAuthorityKeyIdentifier_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_AuthorityKeyIdentifier(::core::mem::transmute_copy(&encoding)) { @@ -12069,7 +12069,7 @@ impl IX509ExtensionAuthorityKeyIdentifier_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509ExtensionBasicConstraints_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + IX509Extension_Impl { fn InitializeEncode(&self, isca: i16, pathlenconstraint: i32) -> ::windows::core::Result<()>; - fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn IsCA(&self) -> ::windows::core::Result; fn PathLenConstraint(&self) -> ::windows::core::Result; } @@ -12083,7 +12083,7 @@ impl IX509ExtensionBasicConstraints_Vtbl { let this = (*this).get_impl(); this.InitializeEncode(::core::mem::transmute_copy(&isca), ::core::mem::transmute_copy(&pathlenconstraint)).into() } - unsafe extern "system" fn InitializeDecode, Impl: IX509ExtensionBasicConstraints_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeDecode, Impl: IX509ExtensionBasicConstraints_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeDecode(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strencodeddata)).into() @@ -12125,7 +12125,7 @@ impl IX509ExtensionBasicConstraints_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509ExtensionCertificatePolicies_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + IX509Extension_Impl { fn InitializeEncode(&self, pvalue: &::core::option::Option) -> ::windows::core::Result<()>; - fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Policies(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -12138,7 +12138,7 @@ impl IX509ExtensionCertificatePolicies_Vtbl { let this = (*this).get_impl(); this.InitializeEncode(::core::mem::transmute(&pvalue)).into() } - unsafe extern "system" fn InitializeDecode, Impl: IX509ExtensionCertificatePolicies_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeDecode, Impl: IX509ExtensionCertificatePolicies_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeDecode(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strencodeddata)).into() @@ -12168,7 +12168,7 @@ impl IX509ExtensionCertificatePolicies_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509ExtensionEnhancedKeyUsage_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + IX509Extension_Impl { fn InitializeEncode(&self, pvalue: &::core::option::Option) -> ::windows::core::Result<()>; - fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn EnhancedKeyUsage(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -12181,7 +12181,7 @@ impl IX509ExtensionEnhancedKeyUsage_Vtbl { let this = (*this).get_impl(); this.InitializeEncode(::core::mem::transmute(&pvalue)).into() } - unsafe extern "system" fn InitializeDecode, Impl: IX509ExtensionEnhancedKeyUsage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeDecode, Impl: IX509ExtensionEnhancedKeyUsage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeDecode(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strencodeddata)).into() @@ -12211,7 +12211,7 @@ impl IX509ExtensionEnhancedKeyUsage_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509ExtensionKeyUsage_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + IX509Extension_Impl { fn InitializeEncode(&self, usageflags: X509KeyUsageFlags) -> ::windows::core::Result<()>; - fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn KeyUsage(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -12224,7 +12224,7 @@ impl IX509ExtensionKeyUsage_Vtbl { let this = (*this).get_impl(); this.InitializeEncode(::core::mem::transmute_copy(&usageflags)).into() } - unsafe extern "system" fn InitializeDecode, Impl: IX509ExtensionKeyUsage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeDecode, Impl: IX509ExtensionKeyUsage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeDecode(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strencodeddata)).into() @@ -12254,7 +12254,7 @@ impl IX509ExtensionKeyUsage_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509ExtensionMSApplicationPolicies_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + IX509Extension_Impl { fn InitializeEncode(&self, pvalue: &::core::option::Option) -> ::windows::core::Result<()>; - fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Policies(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -12267,7 +12267,7 @@ impl IX509ExtensionMSApplicationPolicies_Vtbl { let this = (*this).get_impl(); this.InitializeEncode(::core::mem::transmute(&pvalue)).into() } - unsafe extern "system" fn InitializeDecode, Impl: IX509ExtensionMSApplicationPolicies_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeDecode, Impl: IX509ExtensionMSApplicationPolicies_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeDecode(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strencodeddata)).into() @@ -12297,7 +12297,7 @@ impl IX509ExtensionMSApplicationPolicies_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509ExtensionSmimeCapabilities_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + IX509Extension_Impl { fn InitializeEncode(&self, pvalue: &::core::option::Option) -> ::windows::core::Result<()>; - fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SmimeCapabilities(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -12310,7 +12310,7 @@ impl IX509ExtensionSmimeCapabilities_Vtbl { let this = (*this).get_impl(); this.InitializeEncode(::core::mem::transmute(&pvalue)).into() } - unsafe extern "system" fn InitializeDecode, Impl: IX509ExtensionSmimeCapabilities_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeDecode, Impl: IX509ExtensionSmimeCapabilities_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeDecode(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strencodeddata)).into() @@ -12339,26 +12339,26 @@ impl IX509ExtensionSmimeCapabilities_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509ExtensionSubjectKeyIdentifier_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + IX509Extension_Impl { - fn InitializeEncode(&self, encoding: EncodingType, strkeyidentifier: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn get_SubjectKeyIdentifier(&self, encoding: EncodingType) -> ::windows::core::Result; + fn InitializeEncode(&self, encoding: EncodingType, strkeyidentifier: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn get_SubjectKeyIdentifier(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IX509ExtensionSubjectKeyIdentifier {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IX509ExtensionSubjectKeyIdentifier_Vtbl { pub const fn new, Impl: IX509ExtensionSubjectKeyIdentifier_Impl, const OFFSET: isize>() -> IX509ExtensionSubjectKeyIdentifier_Vtbl { - unsafe extern "system" fn InitializeEncode, Impl: IX509ExtensionSubjectKeyIdentifier_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strkeyidentifier: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeEncode, Impl: IX509ExtensionSubjectKeyIdentifier_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strkeyidentifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeEncode(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strkeyidentifier)).into() } - unsafe extern "system" fn InitializeDecode, Impl: IX509ExtensionSubjectKeyIdentifier_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeDecode, Impl: IX509ExtensionSubjectKeyIdentifier_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeDecode(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strencodeddata)).into() } - unsafe extern "system" fn get_SubjectKeyIdentifier, Impl: IX509ExtensionSubjectKeyIdentifier_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_SubjectKeyIdentifier, Impl: IX509ExtensionSubjectKeyIdentifier_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_SubjectKeyIdentifier(::core::mem::transmute_copy(&encoding)) { @@ -12383,7 +12383,7 @@ impl IX509ExtensionSubjectKeyIdentifier_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509ExtensionTemplate_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + IX509Extension_Impl { fn InitializeEncode(&self, ptemplateoid: &::core::option::Option, majorversion: i32, minorversion: i32) -> ::windows::core::Result<()>; - fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn TemplateOid(&self) -> ::windows::core::Result; fn MajorVersion(&self) -> ::windows::core::Result; fn MinorVersion(&self) -> ::windows::core::Result; @@ -12398,7 +12398,7 @@ impl IX509ExtensionTemplate_Vtbl { let this = (*this).get_impl(); this.InitializeEncode(::core::mem::transmute(&ptemplateoid), ::core::mem::transmute_copy(&majorversion), ::core::mem::transmute_copy(&minorversion)).into() } - unsafe extern "system" fn InitializeDecode, Impl: IX509ExtensionTemplate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeDecode, Impl: IX509ExtensionTemplate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeDecode(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strencodeddata)).into() @@ -12451,26 +12451,26 @@ impl IX509ExtensionTemplate_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509ExtensionTemplateName_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + IX509Extension_Impl { - fn InitializeEncode(&self, strtemplatename: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn TemplateName(&self) -> ::windows::core::Result; + fn InitializeEncode(&self, strtemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn TemplateName(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IX509ExtensionTemplateName {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IX509ExtensionTemplateName_Vtbl { pub const fn new, Impl: IX509ExtensionTemplateName_Impl, const OFFSET: isize>() -> IX509ExtensionTemplateName_Vtbl { - unsafe extern "system" fn InitializeEncode, Impl: IX509ExtensionTemplateName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strtemplatename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeEncode, Impl: IX509ExtensionTemplateName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strtemplatename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeEncode(::core::mem::transmute(&strtemplatename)).into() } - unsafe extern "system" fn InitializeDecode, Impl: IX509ExtensionTemplateName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeDecode, Impl: IX509ExtensionTemplateName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeDecode(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&strencodeddata)).into() } - unsafe extern "system" fn TemplateName, Impl: IX509ExtensionTemplateName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TemplateName, Impl: IX509ExtensionTemplateName_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TemplateName() { @@ -12590,14 +12590,14 @@ impl IX509Extensions_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509MachineEnrollmentFactory_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn CreateObject(&self, strprogid: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; + fn CreateObject(&self, strprogid: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IX509MachineEnrollmentFactory {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IX509MachineEnrollmentFactory_Vtbl { pub const fn new, Impl: IX509MachineEnrollmentFactory_Impl, const OFFSET: isize>() -> IX509MachineEnrollmentFactory_Vtbl { - unsafe extern "system" fn CreateObject, Impl: IX509MachineEnrollmentFactory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strprogid: ::core::mem::ManuallyDrop, ppihelper: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateObject, Impl: IX509MachineEnrollmentFactory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strprogid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppihelper: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateObject(::core::mem::transmute(&strprogid)) { @@ -12616,21 +12616,21 @@ impl IX509MachineEnrollmentFactory_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509NameValuePair_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn Initialize(&self, strname: &super::super::super::Foundation::BSTR, strvalue: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Value(&self) -> ::windows::core::Result; - fn Name(&self) -> ::windows::core::Result; + fn Initialize(&self, strname: &::windows::core::BSTR, strvalue: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Value(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IX509NameValuePair {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IX509NameValuePair_Vtbl { pub const fn new, Impl: IX509NameValuePair_Impl, const OFFSET: isize>() -> IX509NameValuePair_Vtbl { - unsafe extern "system" fn Initialize, Impl: IX509NameValuePair_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, strvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Initialize, Impl: IX509NameValuePair_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Initialize(::core::mem::transmute(&strname), ::core::mem::transmute(&strvalue)).into() } - unsafe extern "system" fn Value, Impl: IX509NameValuePair_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Value, Impl: IX509NameValuePair_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Value() { @@ -12641,7 +12641,7 @@ impl IX509NameValuePair_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Name, Impl: IX509NameValuePair_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IX509NameValuePair_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -12825,8 +12825,8 @@ impl IX509PolicyServerListManager_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509PolicyServerUrl_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { fn Initialize(&self, context: X509CertificateEnrollmentContext) -> ::windows::core::Result<()>; - fn Url(&self) -> ::windows::core::Result; - fn SetUrl(&self, pvalue: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Url(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetUrl(&self, pvalue: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Default(&self) -> ::windows::core::Result; fn SetDefault(&self, value: i16) -> ::windows::core::Result<()>; fn Flags(&self) -> ::windows::core::Result; @@ -12835,8 +12835,8 @@ pub trait IX509PolicyServerUrl_Impl: Sized + super::super::super::System::Com::I fn SetAuthFlags(&self, flags: X509EnrollmentAuthFlags) -> ::windows::core::Result<()>; fn Cost(&self) -> ::windows::core::Result; fn SetCost(&self, value: u32) -> ::windows::core::Result<()>; - fn GetStringProperty(&self, propertyid: PolicyServerUrlPropertyID) -> ::windows::core::Result; - fn SetStringProperty(&self, propertyid: PolicyServerUrlPropertyID, pvalue: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetStringProperty(&self, propertyid: PolicyServerUrlPropertyID) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetStringProperty(&self, propertyid: PolicyServerUrlPropertyID, pvalue: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn UpdateRegistry(&self, context: X509CertificateEnrollmentContext) -> ::windows::core::Result<()>; fn RemoveFromRegistry(&self, context: X509CertificateEnrollmentContext) -> ::windows::core::Result<()>; } @@ -12850,7 +12850,7 @@ impl IX509PolicyServerUrl_Vtbl { let this = (*this).get_impl(); this.Initialize(::core::mem::transmute_copy(&context)).into() } - unsafe extern "system" fn Url, Impl: IX509PolicyServerUrl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Url, Impl: IX509PolicyServerUrl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Url() { @@ -12861,7 +12861,7 @@ impl IX509PolicyServerUrl_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetUrl, Impl: IX509PolicyServerUrl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetUrl, Impl: IX509PolicyServerUrl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetUrl(::core::mem::transmute(&pvalue)).into() @@ -12930,7 +12930,7 @@ impl IX509PolicyServerUrl_Vtbl { let this = (*this).get_impl(); this.SetCost(::core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetStringProperty, Impl: IX509PolicyServerUrl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertyid: PolicyServerUrlPropertyID, ppvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetStringProperty, Impl: IX509PolicyServerUrl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertyid: PolicyServerUrlPropertyID, ppvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetStringProperty(::core::mem::transmute_copy(&propertyid)) { @@ -12941,7 +12941,7 @@ impl IX509PolicyServerUrl_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetStringProperty, Impl: IX509PolicyServerUrl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertyid: PolicyServerUrlPropertyID, pvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetStringProperty, Impl: IX509PolicyServerUrl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertyid: PolicyServerUrlPropertyID, pvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetStringProperty(::core::mem::transmute_copy(&propertyid), ::core::mem::transmute(&pvalue)).into() @@ -12986,21 +12986,21 @@ pub trait IX509PrivateKey_Impl: Sized + super::super::super::System::Com::IDispa fn Close(&self) -> ::windows::core::Result<()>; fn Delete(&self) -> ::windows::core::Result<()>; fn Verify(&self, verifytype: X509PrivateKeyVerify) -> ::windows::core::Result<()>; - fn Import(&self, strexporttype: &super::super::super::Foundation::BSTR, strencodedkey: &super::super::super::Foundation::BSTR, encoding: EncodingType) -> ::windows::core::Result<()>; - fn Export(&self, strexporttype: &super::super::super::Foundation::BSTR, encoding: EncodingType) -> ::windows::core::Result; + fn Import(&self, strexporttype: &::windows::core::BSTR, strencodedkey: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()>; + fn Export(&self, strexporttype: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; fn ExportPublicKey(&self) -> ::windows::core::Result; - fn ContainerName(&self) -> ::windows::core::Result; - fn SetContainerName(&self, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ContainerNamePrefix(&self) -> ::windows::core::Result; - fn SetContainerNamePrefix(&self, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ReaderName(&self) -> ::windows::core::Result; - fn SetReaderName(&self, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ContainerName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetContainerName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ContainerNamePrefix(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetContainerNamePrefix(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ReaderName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetReaderName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn CspInformations(&self) -> ::windows::core::Result; fn SetCspInformations(&self, pvalue: &::core::option::Option) -> ::windows::core::Result<()>; fn CspStatus(&self) -> ::windows::core::Result; fn SetCspStatus(&self, pvalue: &::core::option::Option) -> ::windows::core::Result<()>; - fn ProviderName(&self) -> ::windows::core::Result; - fn SetProviderName(&self, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ProviderName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetProviderName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn ProviderType(&self) -> ::windows::core::Result; fn SetProviderType(&self, value: X509ProviderType) -> ::windows::core::Result<()>; fn LegacyCsp(&self) -> ::windows::core::Result; @@ -13019,11 +13019,11 @@ pub trait IX509PrivateKey_Impl: Sized + super::super::super::System::Com::IDispa fn SetKeyProtection(&self, value: X509PrivateKeyProtection) -> ::windows::core::Result<()>; fn MachineContext(&self) -> ::windows::core::Result; fn SetMachineContext(&self, value: i16) -> ::windows::core::Result<()>; - fn SecurityDescriptor(&self) -> ::windows::core::Result; - fn SetSecurityDescriptor(&self, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn get_Certificate(&self, encoding: EncodingType) -> ::windows::core::Result; - fn put_Certificate(&self, encoding: EncodingType, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn UniqueContainerName(&self) -> ::windows::core::Result; + fn SecurityDescriptor(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetSecurityDescriptor(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn get_Certificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; + fn put_Certificate(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn UniqueContainerName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Opened(&self) -> ::windows::core::Result; fn DefaultContainer(&self) -> ::windows::core::Result; fn Existing(&self) -> ::windows::core::Result; @@ -13032,13 +13032,13 @@ pub trait IX509PrivateKey_Impl: Sized + super::super::super::System::Com::IDispa fn SetSilent(&self, value: i16) -> ::windows::core::Result<()>; fn ParentWindow(&self) -> ::windows::core::Result; fn SetParentWindow(&self, value: i32) -> ::windows::core::Result<()>; - fn UIContextMessage(&self) -> ::windows::core::Result; - fn SetUIContextMessage(&self, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetPin(&self, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn FriendlyName(&self) -> ::windows::core::Result; - fn SetFriendlyName(&self, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Description(&self) -> ::windows::core::Result; - fn SetDescription(&self, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn UIContextMessage(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetUIContextMessage(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetPin(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn FriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetFriendlyName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDescription(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IX509PrivateKey {} @@ -13070,12 +13070,12 @@ impl IX509PrivateKey_Vtbl { let this = (*this).get_impl(); this.Verify(::core::mem::transmute_copy(&verifytype)).into() } - unsafe extern "system" fn Import, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strexporttype: ::core::mem::ManuallyDrop, strencodedkey: ::core::mem::ManuallyDrop, encoding: EncodingType) -> ::windows::core::HRESULT { + unsafe extern "system" fn Import, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strexporttype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strencodedkey: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Import(::core::mem::transmute(&strexporttype), ::core::mem::transmute(&strencodedkey), ::core::mem::transmute_copy(&encoding)).into() } - unsafe extern "system" fn Export, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strexporttype: ::core::mem::ManuallyDrop, encoding: EncodingType, pstrencodedkey: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Export, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strexporttype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType, pstrencodedkey: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Export(::core::mem::transmute(&strexporttype), ::core::mem::transmute_copy(&encoding)) { @@ -13097,7 +13097,7 @@ impl IX509PrivateKey_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ContainerName, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ContainerName, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ContainerName() { @@ -13108,12 +13108,12 @@ impl IX509PrivateKey_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetContainerName, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetContainerName, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetContainerName(::core::mem::transmute(&value)).into() } - unsafe extern "system" fn ContainerNamePrefix, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ContainerNamePrefix, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ContainerNamePrefix() { @@ -13124,12 +13124,12 @@ impl IX509PrivateKey_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetContainerNamePrefix, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetContainerNamePrefix, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetContainerNamePrefix(::core::mem::transmute(&value)).into() } - unsafe extern "system" fn ReaderName, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ReaderName, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ReaderName() { @@ -13140,7 +13140,7 @@ impl IX509PrivateKey_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetReaderName, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetReaderName, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetReaderName(::core::mem::transmute(&value)).into() @@ -13177,7 +13177,7 @@ impl IX509PrivateKey_Vtbl { let this = (*this).get_impl(); this.SetCspStatus(::core::mem::transmute(&pvalue)).into() } - unsafe extern "system" fn ProviderName, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ProviderName, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ProviderName() { @@ -13188,7 +13188,7 @@ impl IX509PrivateKey_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetProviderName, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetProviderName, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetProviderName(::core::mem::transmute(&value)).into() @@ -13337,7 +13337,7 @@ impl IX509PrivateKey_Vtbl { let this = (*this).get_impl(); this.SetMachineContext(::core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn SecurityDescriptor, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SecurityDescriptor, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SecurityDescriptor() { @@ -13348,12 +13348,12 @@ impl IX509PrivateKey_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSecurityDescriptor, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSecurityDescriptor, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSecurityDescriptor(::core::mem::transmute(&value)).into() } - unsafe extern "system" fn get_Certificate, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Certificate, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_Certificate(::core::mem::transmute_copy(&encoding)) { @@ -13364,12 +13364,12 @@ impl IX509PrivateKey_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn put_Certificate, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn put_Certificate, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.put_Certificate(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&value)).into() } - unsafe extern "system" fn UniqueContainerName, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UniqueContainerName, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UniqueContainerName() { @@ -13450,7 +13450,7 @@ impl IX509PrivateKey_Vtbl { let this = (*this).get_impl(); this.SetParentWindow(::core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn UIContextMessage, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UIContextMessage, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UIContextMessage() { @@ -13461,17 +13461,17 @@ impl IX509PrivateKey_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetUIContextMessage, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetUIContextMessage, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetUIContextMessage(::core::mem::transmute(&value)).into() } - unsafe extern "system" fn SetPin, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPin, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPin(::core::mem::transmute(&value)).into() } - unsafe extern "system" fn FriendlyName, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FriendlyName, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FriendlyName() { @@ -13482,12 +13482,12 @@ impl IX509PrivateKey_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetFriendlyName, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetFriendlyName, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetFriendlyName(::core::mem::transmute(&value)).into() } - unsafe extern "system" fn Description, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -13498,7 +13498,7 @@ impl IX509PrivateKey_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDescription, Impl: IX509PrivateKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDescription(::core::mem::transmute(&value)).into() @@ -13573,12 +13573,12 @@ impl IX509PrivateKey_Vtbl { pub trait IX509PrivateKey2_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + IX509PrivateKey_Impl { fn HardwareKeyUsage(&self) -> ::windows::core::Result; fn SetHardwareKeyUsage(&self, value: X509HardwareKeyUsageFlags) -> ::windows::core::Result<()>; - fn AlternateStorageLocation(&self) -> ::windows::core::Result; - fn SetAlternateStorageLocation(&self, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn AlgorithmName(&self) -> ::windows::core::Result; - fn SetAlgorithmName(&self, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn get_AlgorithmParameters(&self, encoding: EncodingType) -> ::windows::core::Result; - fn put_AlgorithmParameters(&self, encoding: EncodingType, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn AlternateStorageLocation(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetAlternateStorageLocation(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn AlgorithmName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetAlgorithmName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn get_AlgorithmParameters(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; + fn put_AlgorithmParameters(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn ParametersExportType(&self) -> ::windows::core::Result; fn SetParametersExportType(&self, value: X509KeyParametersExportType) -> ::windows::core::Result<()>; } @@ -13603,7 +13603,7 @@ impl IX509PrivateKey2_Vtbl { let this = (*this).get_impl(); this.SetHardwareKeyUsage(::core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn AlternateStorageLocation, Impl: IX509PrivateKey2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn AlternateStorageLocation, Impl: IX509PrivateKey2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AlternateStorageLocation() { @@ -13614,12 +13614,12 @@ impl IX509PrivateKey2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetAlternateStorageLocation, Impl: IX509PrivateKey2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetAlternateStorageLocation, Impl: IX509PrivateKey2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetAlternateStorageLocation(::core::mem::transmute(&value)).into() } - unsafe extern "system" fn AlgorithmName, Impl: IX509PrivateKey2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn AlgorithmName, Impl: IX509PrivateKey2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AlgorithmName() { @@ -13630,12 +13630,12 @@ impl IX509PrivateKey2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetAlgorithmName, Impl: IX509PrivateKey2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetAlgorithmName, Impl: IX509PrivateKey2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetAlgorithmName(::core::mem::transmute(&value)).into() } - unsafe extern "system" fn get_AlgorithmParameters, Impl: IX509PrivateKey2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_AlgorithmParameters, Impl: IX509PrivateKey2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_AlgorithmParameters(::core::mem::transmute_copy(&encoding)) { @@ -13646,7 +13646,7 @@ impl IX509PrivateKey2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn put_AlgorithmParameters, Impl: IX509PrivateKey2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn put_AlgorithmParameters, Impl: IX509PrivateKey2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.put_AlgorithmParameters(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&value)).into() @@ -13687,25 +13687,25 @@ impl IX509PrivateKey2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509PublicKey_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn Initialize(&self, pobjectid: &::core::option::Option, strencodedkey: &super::super::super::Foundation::BSTR, strencodedparameters: &super::super::super::Foundation::BSTR, encoding: EncodingType) -> ::windows::core::Result<()>; - fn InitializeFromEncodedPublicKeyInfo(&self, strencodedpublickeyinfo: &super::super::super::Foundation::BSTR, encoding: EncodingType) -> ::windows::core::Result<()>; + fn Initialize(&self, pobjectid: &::core::option::Option, strencodedkey: &::windows::core::BSTR, strencodedparameters: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()>; + fn InitializeFromEncodedPublicKeyInfo(&self, strencodedpublickeyinfo: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()>; fn Algorithm(&self) -> ::windows::core::Result; fn Length(&self) -> ::windows::core::Result; - fn get_EncodedKey(&self, encoding: EncodingType) -> ::windows::core::Result; - fn get_EncodedParameters(&self, encoding: EncodingType) -> ::windows::core::Result; - fn ComputeKeyIdentifier(&self, algorithm: KeyIdentifierHashAlgorithm, encoding: EncodingType) -> ::windows::core::Result; + fn get_EncodedKey(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; + fn get_EncodedParameters(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; + fn ComputeKeyIdentifier(&self, algorithm: KeyIdentifierHashAlgorithm, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IX509PublicKey {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IX509PublicKey_Vtbl { pub const fn new, Impl: IX509PublicKey_Impl, const OFFSET: isize>() -> IX509PublicKey_Vtbl { - unsafe extern "system" fn Initialize, Impl: IX509PublicKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pobjectid: *mut ::core::ffi::c_void, strencodedkey: ::core::mem::ManuallyDrop, strencodedparameters: ::core::mem::ManuallyDrop, encoding: EncodingType) -> ::windows::core::HRESULT { + unsafe extern "system" fn Initialize, Impl: IX509PublicKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pobjectid: *mut ::core::ffi::c_void, strencodedkey: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strencodedparameters: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Initialize(::core::mem::transmute(&pobjectid), ::core::mem::transmute(&strencodedkey), ::core::mem::transmute(&strencodedparameters), ::core::mem::transmute_copy(&encoding)).into() } - unsafe extern "system" fn InitializeFromEncodedPublicKeyInfo, Impl: IX509PublicKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strencodedpublickeyinfo: ::core::mem::ManuallyDrop, encoding: EncodingType) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeFromEncodedPublicKeyInfo, Impl: IX509PublicKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strencodedpublickeyinfo: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeFromEncodedPublicKeyInfo(::core::mem::transmute(&strencodedpublickeyinfo), ::core::mem::transmute_copy(&encoding)).into() @@ -13732,7 +13732,7 @@ impl IX509PublicKey_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_EncodedKey, Impl: IX509PublicKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_EncodedKey, Impl: IX509PublicKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_EncodedKey(::core::mem::transmute_copy(&encoding)) { @@ -13743,7 +13743,7 @@ impl IX509PublicKey_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_EncodedParameters, Impl: IX509PublicKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_EncodedParameters, Impl: IX509PublicKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_EncodedParameters(::core::mem::transmute_copy(&encoding)) { @@ -13754,7 +13754,7 @@ impl IX509PublicKey_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ComputeKeyIdentifier, Impl: IX509PublicKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, algorithm: KeyIdentifierHashAlgorithm, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ComputeKeyIdentifier, Impl: IX509PublicKey_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, algorithm: KeyIdentifierHashAlgorithm, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ComputeKeyIdentifier(::core::mem::transmute_copy(&algorithm), ::core::mem::transmute_copy(&encoding)) { @@ -13782,25 +13782,25 @@ impl IX509PublicKey_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509SCEPEnrollment_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn Initialize(&self, prequest: &::core::option::Option, strthumbprint: &super::super::super::Foundation::BSTR, thumprintencoding: EncodingType, strservercertificates: &super::super::super::Foundation::BSTR, encoding: EncodingType) -> ::windows::core::Result<()>; + fn Initialize(&self, prequest: &::core::option::Option, strthumbprint: &::windows::core::BSTR, thumprintencoding: EncodingType, strservercertificates: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()>; fn InitializeForPending(&self, context: X509CertificateEnrollmentContext) -> ::windows::core::Result<()>; - fn CreateRequestMessage(&self, encoding: EncodingType) -> ::windows::core::Result; - fn CreateRetrievePendingMessage(&self, encoding: EncodingType) -> ::windows::core::Result; - fn CreateRetrieveCertificateMessage(&self, context: X509CertificateEnrollmentContext, strissuer: &super::super::super::Foundation::BSTR, issuerencoding: EncodingType, strserialnumber: &super::super::super::Foundation::BSTR, serialnumberencoding: EncodingType, encoding: EncodingType) -> ::windows::core::Result; - fn ProcessResponseMessage(&self, strresponse: &super::super::super::Foundation::BSTR, encoding: EncodingType) -> ::windows::core::Result; - fn SetServerCapabilities(&self, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn CreateRequestMessage(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; + fn CreateRetrievePendingMessage(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; + fn CreateRetrieveCertificateMessage(&self, context: X509CertificateEnrollmentContext, strissuer: &::windows::core::BSTR, issuerencoding: EncodingType, strserialnumber: &::windows::core::BSTR, serialnumberencoding: EncodingType, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; + fn ProcessResponseMessage(&self, strresponse: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result; + fn SetServerCapabilities(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn FailInfo(&self) -> ::windows::core::Result; fn SignerCertificate(&self) -> ::windows::core::Result; fn SetSignerCertificate(&self, pvalue: &::core::option::Option) -> ::windows::core::Result<()>; fn OldCertificate(&self) -> ::windows::core::Result; fn SetOldCertificate(&self, pvalue: &::core::option::Option) -> ::windows::core::Result<()>; - fn get_TransactionId(&self, encoding: EncodingType) -> ::windows::core::Result; - fn put_TransactionId(&self, encoding: EncodingType, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn get_TransactionId(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; + fn put_TransactionId(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Request(&self) -> ::windows::core::Result; - fn CertificateFriendlyName(&self) -> ::windows::core::Result; - fn SetCertificateFriendlyName(&self, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn CertificateFriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetCertificateFriendlyName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Status(&self) -> ::windows::core::Result; - fn get_Certificate(&self, encoding: EncodingType) -> ::windows::core::Result; + fn get_Certificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; fn Silent(&self) -> ::windows::core::Result; fn SetSilent(&self, value: i16) -> ::windows::core::Result<()>; fn DeleteRequest(&self) -> ::windows::core::Result<()>; @@ -13810,7 +13810,7 @@ impl ::windows::core::RuntimeName for IX509SCEPEnrollment {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IX509SCEPEnrollment_Vtbl { pub const fn new, Impl: IX509SCEPEnrollment_Impl, const OFFSET: isize>() -> IX509SCEPEnrollment_Vtbl { - unsafe extern "system" fn Initialize, Impl: IX509SCEPEnrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, prequest: *mut ::core::ffi::c_void, strthumbprint: ::core::mem::ManuallyDrop, thumprintencoding: EncodingType, strservercertificates: ::core::mem::ManuallyDrop, encoding: EncodingType) -> ::windows::core::HRESULT { + unsafe extern "system" fn Initialize, Impl: IX509SCEPEnrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, prequest: *mut ::core::ffi::c_void, strthumbprint: ::core::mem::ManuallyDrop<::windows::core::BSTR>, thumprintencoding: EncodingType, strservercertificates: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Initialize(::core::mem::transmute(&prequest), ::core::mem::transmute(&strthumbprint), ::core::mem::transmute_copy(&thumprintencoding), ::core::mem::transmute(&strservercertificates), ::core::mem::transmute_copy(&encoding)).into() @@ -13820,7 +13820,7 @@ impl IX509SCEPEnrollment_Vtbl { let this = (*this).get_impl(); this.InitializeForPending(::core::mem::transmute_copy(&context)).into() } - unsafe extern "system" fn CreateRequestMessage, Impl: IX509SCEPEnrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateRequestMessage, Impl: IX509SCEPEnrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateRequestMessage(::core::mem::transmute_copy(&encoding)) { @@ -13831,7 +13831,7 @@ impl IX509SCEPEnrollment_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateRetrievePendingMessage, Impl: IX509SCEPEnrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateRetrievePendingMessage, Impl: IX509SCEPEnrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateRetrievePendingMessage(::core::mem::transmute_copy(&encoding)) { @@ -13842,7 +13842,7 @@ impl IX509SCEPEnrollment_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateRetrieveCertificateMessage, Impl: IX509SCEPEnrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext, strissuer: ::core::mem::ManuallyDrop, issuerencoding: EncodingType, strserialnumber: ::core::mem::ManuallyDrop, serialnumberencoding: EncodingType, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateRetrieveCertificateMessage, Impl: IX509SCEPEnrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext, strissuer: ::core::mem::ManuallyDrop<::windows::core::BSTR>, issuerencoding: EncodingType, strserialnumber: ::core::mem::ManuallyDrop<::windows::core::BSTR>, serialnumberencoding: EncodingType, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateRetrieveCertificateMessage(::core::mem::transmute_copy(&context), ::core::mem::transmute(&strissuer), ::core::mem::transmute_copy(&issuerencoding), ::core::mem::transmute(&strserialnumber), ::core::mem::transmute_copy(&serialnumberencoding), ::core::mem::transmute_copy(&encoding)) { @@ -13853,7 +13853,7 @@ impl IX509SCEPEnrollment_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ProcessResponseMessage, Impl: IX509SCEPEnrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strresponse: ::core::mem::ManuallyDrop, encoding: EncodingType, pdisposition: *mut X509SCEPDisposition) -> ::windows::core::HRESULT { + unsafe extern "system" fn ProcessResponseMessage, Impl: IX509SCEPEnrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strresponse: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType, pdisposition: *mut X509SCEPDisposition) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ProcessResponseMessage(::core::mem::transmute(&strresponse), ::core::mem::transmute_copy(&encoding)) { @@ -13864,7 +13864,7 @@ impl IX509SCEPEnrollment_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetServerCapabilities, Impl: IX509SCEPEnrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetServerCapabilities, Impl: IX509SCEPEnrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetServerCapabilities(::core::mem::transmute(&value)).into() @@ -13912,7 +13912,7 @@ impl IX509SCEPEnrollment_Vtbl { let this = (*this).get_impl(); this.SetOldCertificate(::core::mem::transmute(&pvalue)).into() } - unsafe extern "system" fn get_TransactionId, Impl: IX509SCEPEnrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_TransactionId, Impl: IX509SCEPEnrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_TransactionId(::core::mem::transmute_copy(&encoding)) { @@ -13923,7 +13923,7 @@ impl IX509SCEPEnrollment_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn put_TransactionId, Impl: IX509SCEPEnrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn put_TransactionId, Impl: IX509SCEPEnrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.put_TransactionId(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&value)).into() @@ -13939,7 +13939,7 @@ impl IX509SCEPEnrollment_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CertificateFriendlyName, Impl: IX509SCEPEnrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CertificateFriendlyName, Impl: IX509SCEPEnrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CertificateFriendlyName() { @@ -13950,7 +13950,7 @@ impl IX509SCEPEnrollment_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetCertificateFriendlyName, Impl: IX509SCEPEnrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCertificateFriendlyName, Impl: IX509SCEPEnrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCertificateFriendlyName(::core::mem::transmute(&value)).into() @@ -13966,7 +13966,7 @@ impl IX509SCEPEnrollment_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_Certificate, Impl: IX509SCEPEnrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Certificate, Impl: IX509SCEPEnrollment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_Certificate(::core::mem::transmute_copy(&encoding)) { @@ -14030,19 +14030,19 @@ impl IX509SCEPEnrollment_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509SCEPEnrollment2_Impl: Sized + super::super::super::System::Com::IDispatch_Impl + IX509SCEPEnrollment_Impl { - fn CreateChallengeAnswerMessage(&self, encoding: EncodingType) -> ::windows::core::Result; - fn ProcessResponseMessage2(&self, flags: X509SCEPProcessMessageFlags, strresponse: &super::super::super::Foundation::BSTR, encoding: EncodingType) -> ::windows::core::Result; - fn ResultMessageText(&self) -> ::windows::core::Result; + fn CreateChallengeAnswerMessage(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; + fn ProcessResponseMessage2(&self, flags: X509SCEPProcessMessageFlags, strresponse: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result; + fn ResultMessageText(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn DelayRetry(&self) -> ::windows::core::Result; - fn ActivityId(&self) -> ::windows::core::Result; - fn SetActivityId(&self, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ActivityId(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetActivityId(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IX509SCEPEnrollment2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IX509SCEPEnrollment2_Vtbl { pub const fn new, Impl: IX509SCEPEnrollment2_Impl, const OFFSET: isize>() -> IX509SCEPEnrollment2_Vtbl { - unsafe extern "system" fn CreateChallengeAnswerMessage, Impl: IX509SCEPEnrollment2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateChallengeAnswerMessage, Impl: IX509SCEPEnrollment2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateChallengeAnswerMessage(::core::mem::transmute_copy(&encoding)) { @@ -14053,7 +14053,7 @@ impl IX509SCEPEnrollment2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ProcessResponseMessage2, Impl: IX509SCEPEnrollment2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flags: X509SCEPProcessMessageFlags, strresponse: ::core::mem::ManuallyDrop, encoding: EncodingType, pdisposition: *mut X509SCEPDisposition) -> ::windows::core::HRESULT { + unsafe extern "system" fn ProcessResponseMessage2, Impl: IX509SCEPEnrollment2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flags: X509SCEPProcessMessageFlags, strresponse: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType, pdisposition: *mut X509SCEPDisposition) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ProcessResponseMessage2(::core::mem::transmute_copy(&flags), ::core::mem::transmute(&strresponse), ::core::mem::transmute_copy(&encoding)) { @@ -14064,7 +14064,7 @@ impl IX509SCEPEnrollment2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ResultMessageText, Impl: IX509SCEPEnrollment2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ResultMessageText, Impl: IX509SCEPEnrollment2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ResultMessageText() { @@ -14086,7 +14086,7 @@ impl IX509SCEPEnrollment2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ActivityId, Impl: IX509SCEPEnrollment2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ActivityId, Impl: IX509SCEPEnrollment2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ActivityId() { @@ -14097,7 +14097,7 @@ impl IX509SCEPEnrollment2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetActivityId, Impl: IX509SCEPEnrollment2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetActivityId, Impl: IX509SCEPEnrollment2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetActivityId(::core::mem::transmute(&value)).into() @@ -14118,24 +14118,24 @@ impl IX509SCEPEnrollment2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IX509SCEPEnrollmentHelper_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn Initialize(&self, strserverurl: &super::super::super::Foundation::BSTR, strrequestheaders: &super::super::super::Foundation::BSTR, prequest: &::core::option::Option, strcacertificatethumbprint: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn InitializeForPending(&self, strserverurl: &super::super::super::Foundation::BSTR, strrequestheaders: &super::super::super::Foundation::BSTR, context: X509CertificateEnrollmentContext, strtransactionid: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Initialize(&self, strserverurl: &::windows::core::BSTR, strrequestheaders: &::windows::core::BSTR, prequest: &::core::option::Option, strcacertificatethumbprint: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn InitializeForPending(&self, strserverurl: &::windows::core::BSTR, strrequestheaders: &::windows::core::BSTR, context: X509CertificateEnrollmentContext, strtransactionid: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Enroll(&self, processflags: X509SCEPProcessMessageFlags) -> ::windows::core::Result; fn FetchPending(&self, processflags: X509SCEPProcessMessageFlags) -> ::windows::core::Result; fn X509SCEPEnrollment(&self) -> ::windows::core::Result; - fn ResultMessageText(&self) -> ::windows::core::Result; + fn ResultMessageText(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IX509SCEPEnrollmentHelper {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IX509SCEPEnrollmentHelper_Vtbl { pub const fn new, Impl: IX509SCEPEnrollmentHelper_Impl, const OFFSET: isize>() -> IX509SCEPEnrollmentHelper_Vtbl { - unsafe extern "system" fn Initialize, Impl: IX509SCEPEnrollmentHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strserverurl: ::core::mem::ManuallyDrop, strrequestheaders: ::core::mem::ManuallyDrop, prequest: *mut ::core::ffi::c_void, strcacertificatethumbprint: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Initialize, Impl: IX509SCEPEnrollmentHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strserverurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strrequestheaders: ::core::mem::ManuallyDrop<::windows::core::BSTR>, prequest: *mut ::core::ffi::c_void, strcacertificatethumbprint: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Initialize(::core::mem::transmute(&strserverurl), ::core::mem::transmute(&strrequestheaders), ::core::mem::transmute(&prequest), ::core::mem::transmute(&strcacertificatethumbprint)).into() } - unsafe extern "system" fn InitializeForPending, Impl: IX509SCEPEnrollmentHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strserverurl: ::core::mem::ManuallyDrop, strrequestheaders: ::core::mem::ManuallyDrop, context: X509CertificateEnrollmentContext, strtransactionid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeForPending, Impl: IX509SCEPEnrollmentHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strserverurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strrequestheaders: ::core::mem::ManuallyDrop<::windows::core::BSTR>, context: X509CertificateEnrollmentContext, strtransactionid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeForPending(::core::mem::transmute(&strserverurl), ::core::mem::transmute(&strrequestheaders), ::core::mem::transmute_copy(&context), ::core::mem::transmute(&strtransactionid)).into() @@ -14173,7 +14173,7 @@ impl IX509SCEPEnrollmentHelper_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ResultMessageText, Impl: IX509SCEPEnrollmentHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ResultMessageText, Impl: IX509SCEPEnrollmentHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ResultMessageText() { @@ -14204,8 +14204,8 @@ pub trait IX509SignatureInformation_Impl: Sized + super::super::super::System::C fn SetHashAlgorithm(&self, pvalue: &::core::option::Option) -> ::windows::core::Result<()>; fn PublicKeyAlgorithm(&self) -> ::windows::core::Result; fn SetPublicKeyAlgorithm(&self, pvalue: &::core::option::Option) -> ::windows::core::Result<()>; - fn get_Parameters(&self, encoding: EncodingType) -> ::windows::core::Result; - fn put_Parameters(&self, encoding: EncodingType, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn get_Parameters(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR>; + fn put_Parameters(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn AlternateSignatureAlgorithm(&self) -> ::windows::core::Result; fn SetAlternateSignatureAlgorithm(&self, value: i16) -> ::windows::core::Result<()>; fn AlternateSignatureAlgorithmSet(&self) -> ::windows::core::Result; @@ -14251,7 +14251,7 @@ impl IX509SignatureInformation_Vtbl { let this = (*this).get_impl(); this.SetPublicKeyAlgorithm(::core::mem::transmute(&pvalue)).into() } - unsafe extern "system" fn get_Parameters, Impl: IX509SignatureInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Parameters, Impl: IX509SignatureInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_Parameters(::core::mem::transmute_copy(&encoding)) { @@ -14262,7 +14262,7 @@ impl IX509SignatureInformation_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn put_Parameters, Impl: IX509SignatureInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn put_Parameters, Impl: IX509SignatureInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.put_Parameters(::core::mem::transmute_copy(&encoding), ::core::mem::transmute(&value)).into() diff --git a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/Certificates/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/Certificates/mod.rs index 40c9680c28..c2ca281693 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/Certificates/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/Certificates/mod.rs @@ -278,40 +278,27 @@ where pub struct IAlternativeName(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IAlternativeName { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromString<'a, P0>(&self, r#type: AlternativeNameType, strvalue: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeFromString)(::windows::core::Interface::as_raw(self), r#type, strvalue.into().abi()).ok() + pub unsafe fn InitializeFromString(&self, r#type: AlternativeNameType, strvalue: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeFromString)(::windows::core::Interface::as_raw(self), r#type, ::core::mem::transmute_copy(strvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromRawData<'a, P0>(&self, r#type: AlternativeNameType, encoding: EncodingType, strrawdata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeFromRawData)(::windows::core::Interface::as_raw(self), r#type, encoding, strrawdata.into().abi()).ok() + pub unsafe fn InitializeFromRawData(&self, r#type: AlternativeNameType, encoding: EncodingType, strrawdata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeFromRawData)(::windows::core::Interface::as_raw(self), r#type, encoding, ::core::mem::transmute_copy(strrawdata)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn InitializeFromOtherName<'a, P0, P1>(&self, pobjectid: P0, encoding: EncodingType, strrawdata: P1, tobewrapped: i16) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn InitializeFromOtherName<'a, P0>(&self, pobjectid: P0, encoding: EncodingType, strrawdata: &::windows::core::BSTR, tobewrapped: i16) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IObjectId>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).InitializeFromOtherName)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, strrawdata.into().abi(), tobewrapped).ok() + (::windows::core::Interface::vtable(self).InitializeFromOtherName)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, ::core::mem::transmute_copy(strrawdata), tobewrapped).ok() } pub unsafe fn Type(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StrValue(&self) -> ::windows::core::Result { + pub unsafe fn StrValue(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).StrValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).StrValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -319,11 +306,9 @@ impl IAlternativeName { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ObjectId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -392,31 +377,19 @@ unsafe impl ::windows::core::Interface for IAlternativeName { #[doc(hidden)] pub struct IAlternativeName_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub InitializeFromString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: AlternativeNameType, strvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeFromString: usize, - #[cfg(feature = "Win32_Foundation")] - pub InitializeFromRawData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: AlternativeNameType, encoding: EncodingType, strrawdata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeFromRawData: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub InitializeFromOtherName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pobjectid: *mut ::core::ffi::c_void, encoding: EncodingType, strrawdata: ::core::mem::ManuallyDrop, tobewrapped: i16) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub InitializeFromString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: AlternativeNameType, strvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub InitializeFromRawData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: AlternativeNameType, encoding: EncodingType, strrawdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub InitializeFromOtherName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pobjectid: *mut ::core::ffi::c_void, encoding: EncodingType, strrawdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>, tobewrapped: i16) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] InitializeFromOtherName: usize, pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut AlternativeNameType) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub StrValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - StrValue: usize, + pub StrValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub ObjectId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] ObjectId: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_RawData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_RawData: usize, + pub get_RawData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -538,29 +511,21 @@ pub struct IAlternativeNames_Vtbl { pub struct IBinaryConverter(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IBinaryConverter { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StringToString<'a, P0>(&self, strencodedin: P0, encodingin: EncodingType, encoding: EncodingType) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn StringToString(&self, strencodedin: &::windows::core::BSTR, encodingin: EncodingType, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).StringToString)(::windows::core::Interface::as_raw(self), strencodedin.into().abi(), encodingin, encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).StringToString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strencodedin), encodingin, encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn VariantByteArrayToString(&self, pvarbytearray: &super::super::super::System::Com::VARIANT, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn VariantByteArrayToString(&self, pvarbytearray: &super::super::super::System::Com::VARIANT, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).VariantByteArrayToString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pvarbytearray), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).VariantByteArrayToString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pvarbytearray), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn StringToVariantByteArray<'a, P0>(&self, strencoded: P0, encoding: EncodingType) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn StringToVariantByteArray(&self, strencoded: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).StringToVariantByteArray)(::windows::core::Interface::as_raw(self), strencoded.into().abi(), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).StringToVariantByteArray)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strencoded), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -629,16 +594,13 @@ unsafe impl ::windows::core::Interface for IBinaryConverter { #[doc(hidden)] pub struct IBinaryConverter_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub StringToString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strencodedin: ::core::mem::ManuallyDrop, encodingin: EncodingType, encoding: EncodingType, pstrencoded: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - StringToString: usize, + pub StringToString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strencodedin: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encodingin: EncodingType, encoding: EncodingType, pstrencoded: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub VariantByteArrayToString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvarbytearray: *const super::super::super::System::Com::VARIANT, encoding: EncodingType, pstrencoded: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub VariantByteArrayToString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvarbytearray: *const super::super::super::System::Com::VARIANT, encoding: EncodingType, pstrencoded: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] VariantByteArrayToString: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub StringToVariantByteArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strencoded: ::core::mem::ManuallyDrop, encoding: EncodingType, pvarbytearray: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub StringToVariantByteArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strencoded: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType, pvarbytearray: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] StringToVariantByteArray: usize, } @@ -648,29 +610,21 @@ pub struct IBinaryConverter_Vtbl { pub struct IBinaryConverter2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IBinaryConverter2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StringToString<'a, P0>(&self, strencodedin: P0, encodingin: EncodingType, encoding: EncodingType) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn StringToString(&self, strencodedin: &::windows::core::BSTR, encodingin: EncodingType, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.StringToString)(::windows::core::Interface::as_raw(self), strencodedin.into().abi(), encodingin, encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.StringToString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strencodedin), encodingin, encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn VariantByteArrayToString(&self, pvarbytearray: &super::super::super::System::Com::VARIANT, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn VariantByteArrayToString(&self, pvarbytearray: &super::super::super::System::Com::VARIANT, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.VariantByteArrayToString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pvarbytearray), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.VariantByteArrayToString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pvarbytearray), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn StringToVariantByteArray<'a, P0>(&self, strencoded: P0, encoding: EncodingType) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn StringToVariantByteArray(&self, strencoded: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.StringToVariantByteArray)(::windows::core::Interface::as_raw(self), strencoded.into().abi(), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.StringToVariantByteArray)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strencoded), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -784,98 +738,47 @@ pub struct IBinaryConverter2_Vtbl { pub struct ICEnroll(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICEnroll { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn createFilePKCS10<'a, P0, P1, P2>(&self, dnname: P0, usage: P1, wszpkcs10filename: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).createFilePKCS10)(::windows::core::Interface::as_raw(self), dnname.into().abi(), usage.into().abi(), wszpkcs10filename.into().abi()).ok() + pub unsafe fn createFilePKCS10(&self, dnname: &::windows::core::BSTR, usage: &::windows::core::BSTR, wszpkcs10filename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).createFilePKCS10)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(dnname), ::core::mem::transmute_copy(usage), ::core::mem::transmute_copy(wszpkcs10filename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn acceptFilePKCS7<'a, P0>(&self, wszpkcs7filename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).acceptFilePKCS7)(::windows::core::Interface::as_raw(self), wszpkcs7filename.into().abi()).ok() + pub unsafe fn acceptFilePKCS7(&self, wszpkcs7filename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).acceptFilePKCS7)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(wszpkcs7filename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn createPKCS10<'a, P0, P1>(&self, dnname: P0, usage: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn createPKCS10(&self, dnname: &::windows::core::BSTR, usage: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).createPKCS10)(::windows::core::Interface::as_raw(self), dnname.into().abi(), usage.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).createPKCS10)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(dnname), ::core::mem::transmute_copy(usage), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn acceptPKCS7<'a, P0>(&self, pkcs7: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).acceptPKCS7)(::windows::core::Interface::as_raw(self), pkcs7.into().abi()).ok() + pub unsafe fn acceptPKCS7(&self, pkcs7: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).acceptPKCS7)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pkcs7)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getCertFromPKCS7<'a, P0>(&self, wszpkcs7: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn getCertFromPKCS7(&self, wszpkcs7: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getCertFromPKCS7)(::windows::core::Interface::as_raw(self), wszpkcs7.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getCertFromPKCS7)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(wszpkcs7), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn enumProviders(&self, dwindex: i32, dwflags: i32) -> ::windows::core::Result { + pub unsafe fn enumProviders(&self, dwindex: i32, dwflags: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).enumProviders)(::windows::core::Interface::as_raw(self), dwindex, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).enumProviders)(::windows::core::Interface::as_raw(self), dwindex, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn enumContainers(&self, dwindex: i32) -> ::windows::core::Result { + pub unsafe fn enumContainers(&self, dwindex: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).enumContainers)(::windows::core::Interface::as_raw(self), dwindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).enumContainers)(::windows::core::Interface::as_raw(self), dwindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn freeRequestInfo<'a, P0>(&self, pkcs7orpkcs10: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).freeRequestInfo)(::windows::core::Interface::as_raw(self), pkcs7orpkcs10.into().abi()).ok() + pub unsafe fn freeRequestInfo(&self, pkcs7orpkcs10: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).freeRequestInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pkcs7orpkcs10)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MyStoreName(&self) -> ::windows::core::Result { + pub unsafe fn MyStoreName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).MyStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).MyStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMyStoreName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetMyStoreName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetMyStoreName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetMyStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MyStoreType(&self) -> ::windows::core::Result { + pub unsafe fn MyStoreType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).MyStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).MyStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMyStoreType<'a, P0>(&self, bstrtype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetMyStoreType)(::windows::core::Interface::as_raw(self), bstrtype.into().abi()).ok() + pub unsafe fn SetMyStoreType(&self, bstrtype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetMyStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtype)).ok() } pub unsafe fn MyStoreFlags(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -884,33 +787,19 @@ impl ICEnroll { pub unsafe fn SetMyStoreFlags(&self, dwflags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetMyStoreFlags)(::windows::core::Interface::as_raw(self), dwflags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CAStoreName(&self) -> ::windows::core::Result { + pub unsafe fn CAStoreName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CAStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CAStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCAStoreName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetCAStoreName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetCAStoreName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetCAStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CAStoreType(&self) -> ::windows::core::Result { + pub unsafe fn CAStoreType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CAStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CAStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCAStoreType<'a, P0>(&self, bstrtype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetCAStoreType)(::windows::core::Interface::as_raw(self), bstrtype.into().abi()).ok() + pub unsafe fn SetCAStoreType(&self, bstrtype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetCAStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtype)).ok() } pub unsafe fn CAStoreFlags(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -919,33 +808,19 @@ impl ICEnroll { pub unsafe fn SetCAStoreFlags(&self, dwflags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetCAStoreFlags)(::windows::core::Interface::as_raw(self), dwflags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RootStoreName(&self) -> ::windows::core::Result { + pub unsafe fn RootStoreName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RootStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RootStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRootStoreName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetRootStoreName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetRootStoreName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetRootStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RootStoreType(&self) -> ::windows::core::Result { + pub unsafe fn RootStoreType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RootStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RootStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRootStoreType<'a, P0>(&self, bstrtype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetRootStoreType)(::windows::core::Interface::as_raw(self), bstrtype.into().abi()).ok() + pub unsafe fn SetRootStoreType(&self, bstrtype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetRootStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtype)).ok() } pub unsafe fn RootStoreFlags(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -954,33 +829,19 @@ impl ICEnroll { pub unsafe fn SetRootStoreFlags(&self, dwflags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetRootStoreFlags)(::windows::core::Interface::as_raw(self), dwflags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RequestStoreName(&self) -> ::windows::core::Result { + pub unsafe fn RequestStoreName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RequestStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RequestStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRequestStoreName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetRequestStoreName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetRequestStoreName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetRequestStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RequestStoreType(&self) -> ::windows::core::Result { + pub unsafe fn RequestStoreType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RequestStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RequestStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRequestStoreType<'a, P0>(&self, bstrtype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetRequestStoreType)(::windows::core::Interface::as_raw(self), bstrtype.into().abi()).ok() + pub unsafe fn SetRequestStoreType(&self, bstrtype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetRequestStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtype)).ok() } pub unsafe fn RequestStoreFlags(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -989,33 +850,19 @@ impl ICEnroll { pub unsafe fn SetRequestStoreFlags(&self, dwflags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetRequestStoreFlags)(::windows::core::Interface::as_raw(self), dwflags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ContainerName(&self) -> ::windows::core::Result { + pub unsafe fn ContainerName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ContainerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ContainerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetContainerName<'a, P0>(&self, bstrcontainer: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetContainerName)(::windows::core::Interface::as_raw(self), bstrcontainer.into().abi()).ok() + pub unsafe fn SetContainerName(&self, bstrcontainer: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetContainerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcontainer)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ProviderName(&self) -> ::windows::core::Result { + pub unsafe fn ProviderName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetProviderName<'a, P0>(&self, bstrprovider: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetProviderName)(::windows::core::Interface::as_raw(self), bstrprovider.into().abi()).ok() + pub unsafe fn SetProviderName(&self, bstrprovider: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprovider)).ok() } pub unsafe fn ProviderType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1087,47 +934,26 @@ impl ICEnroll { { (::windows::core::Interface::vtable(self).SetWriteCertToCSP)(::windows::core::Interface::as_raw(self), fbool.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SPCFileName(&self) -> ::windows::core::Result { + pub unsafe fn SPCFileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SPCFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SPCFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSPCFileName<'a, P0>(&self, bstr: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSPCFileName)(::windows::core::Interface::as_raw(self), bstr.into().abi()).ok() + pub unsafe fn SetSPCFileName(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSPCFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PVKFileName(&self) -> ::windows::core::Result { + pub unsafe fn PVKFileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PVKFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PVKFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPVKFileName<'a, P0>(&self, bstr: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPVKFileName)(::windows::core::Interface::as_raw(self), bstr.into().abi()).ok() + pub unsafe fn SetPVKFileName(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPVKFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn HashAlgorithm(&self) -> ::windows::core::Result { + pub unsafe fn HashAlgorithm(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).HashAlgorithm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).HashAlgorithm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetHashAlgorithm<'a, P0>(&self, bstr: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetHashAlgorithm)(::windows::core::Interface::as_raw(self), bstr.into().abi()).ok() + pub unsafe fn SetHashAlgorithm(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetHashAlgorithm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1196,126 +1022,42 @@ unsafe impl ::windows::core::Interface for ICEnroll { #[doc(hidden)] pub struct ICEnroll_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub createFilePKCS10: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dnname: ::core::mem::ManuallyDrop, usage: ::core::mem::ManuallyDrop, wszpkcs10filename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - createFilePKCS10: usize, - #[cfg(feature = "Win32_Foundation")] - pub acceptFilePKCS7: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszpkcs7filename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - acceptFilePKCS7: usize, - #[cfg(feature = "Win32_Foundation")] - pub createPKCS10: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dnname: ::core::mem::ManuallyDrop, usage: ::core::mem::ManuallyDrop, ppkcs10: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - createPKCS10: usize, - #[cfg(feature = "Win32_Foundation")] - pub acceptPKCS7: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pkcs7: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - acceptPKCS7: usize, - #[cfg(feature = "Win32_Foundation")] - pub getCertFromPKCS7: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszpkcs7: ::core::mem::ManuallyDrop, pbstrcert: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getCertFromPKCS7: usize, - #[cfg(feature = "Win32_Foundation")] - pub enumProviders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwindex: i32, dwflags: i32, pbstrprovname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - enumProviders: usize, - #[cfg(feature = "Win32_Foundation")] - pub enumContainers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwindex: i32, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - enumContainers: usize, - #[cfg(feature = "Win32_Foundation")] - pub freeRequestInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pkcs7orpkcs10: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - freeRequestInfo: usize, - #[cfg(feature = "Win32_Foundation")] - pub MyStoreName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MyStoreName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetMyStoreName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetMyStoreName: usize, - #[cfg(feature = "Win32_Foundation")] - pub MyStoreType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtype: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MyStoreType: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetMyStoreType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetMyStoreType: usize, + pub createFilePKCS10: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dnname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, usage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, wszpkcs10filename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub acceptFilePKCS7: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszpkcs7filename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub createPKCS10: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dnname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, usage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppkcs10: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub acceptPKCS7: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pkcs7: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub getCertFromPKCS7: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszpkcs7: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrcert: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub enumProviders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwindex: i32, dwflags: i32, pbstrprovname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub enumContainers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwindex: i32, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub freeRequestInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pkcs7orpkcs10: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub MyStoreName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetMyStoreName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub MyStoreType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetMyStoreType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub MyStoreFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwflags: *mut i32) -> ::windows::core::HRESULT, pub SetMyStoreFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CAStoreName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CAStoreName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetCAStoreName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetCAStoreName: usize, - #[cfg(feature = "Win32_Foundation")] - pub CAStoreType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtype: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CAStoreType: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetCAStoreType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetCAStoreType: usize, + pub CAStoreName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetCAStoreName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CAStoreType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetCAStoreType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub CAStoreFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwflags: *mut i32) -> ::windows::core::HRESULT, pub SetCAStoreFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub RootStoreName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RootStoreName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetRootStoreName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetRootStoreName: usize, - #[cfg(feature = "Win32_Foundation")] - pub RootStoreType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtype: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RootStoreType: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetRootStoreType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetRootStoreType: usize, + pub RootStoreName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetRootStoreName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub RootStoreType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetRootStoreType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub RootStoreFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwflags: *mut i32) -> ::windows::core::HRESULT, pub SetRootStoreFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub RequestStoreName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RequestStoreName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetRequestStoreName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetRequestStoreName: usize, - #[cfg(feature = "Win32_Foundation")] - pub RequestStoreType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtype: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RequestStoreType: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetRequestStoreType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetRequestStoreType: usize, + pub RequestStoreName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetRequestStoreName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub RequestStoreType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetRequestStoreType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub RequestStoreFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwflags: *mut i32) -> ::windows::core::HRESULT, pub SetRequestStoreFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ContainerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcontainer: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ContainerName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetContainerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcontainer: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetContainerName: usize, - #[cfg(feature = "Win32_Foundation")] - pub ProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprovider: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ProviderName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprovider: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetProviderName: usize, + pub ContainerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcontainer: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetContainerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcontainer: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprovider: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprovider: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ProviderType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwtype: *mut i32) -> ::windows::core::HRESULT, pub SetProviderType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwtype: i32) -> ::windows::core::HRESULT, pub KeySpec: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdw: *mut i32) -> ::windows::core::HRESULT, @@ -1348,30 +1090,12 @@ pub struct ICEnroll_Vtbl { pub SetWriteCertToCSP: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fbool: super::super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] SetWriteCertToCSP: usize, - #[cfg(feature = "Win32_Foundation")] - pub SPCFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SPCFileName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSPCFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSPCFileName: usize, - #[cfg(feature = "Win32_Foundation")] - pub PVKFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PVKFileName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPVKFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPVKFileName: usize, - #[cfg(feature = "Win32_Foundation")] - pub HashAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - HashAlgorithm: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetHashAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetHashAlgorithm: usize, + pub SPCFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSPCFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub PVKFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetPVKFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub HashAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetHashAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1379,98 +1103,47 @@ pub struct ICEnroll_Vtbl { pub struct ICEnroll2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICEnroll2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn createFilePKCS10<'a, P0, P1, P2>(&self, dnname: P0, usage: P1, wszpkcs10filename: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.createFilePKCS10)(::windows::core::Interface::as_raw(self), dnname.into().abi(), usage.into().abi(), wszpkcs10filename.into().abi()).ok() + pub unsafe fn createFilePKCS10(&self, dnname: &::windows::core::BSTR, usage: &::windows::core::BSTR, wszpkcs10filename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.createFilePKCS10)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(dnname), ::core::mem::transmute_copy(usage), ::core::mem::transmute_copy(wszpkcs10filename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn acceptFilePKCS7<'a, P0>(&self, wszpkcs7filename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.acceptFilePKCS7)(::windows::core::Interface::as_raw(self), wszpkcs7filename.into().abi()).ok() + pub unsafe fn acceptFilePKCS7(&self, wszpkcs7filename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.acceptFilePKCS7)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(wszpkcs7filename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn createPKCS10<'a, P0, P1>(&self, dnname: P0, usage: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn createPKCS10(&self, dnname: &::windows::core::BSTR, usage: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.createPKCS10)(::windows::core::Interface::as_raw(self), dnname.into().abi(), usage.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.createPKCS10)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(dnname), ::core::mem::transmute_copy(usage), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn acceptPKCS7<'a, P0>(&self, pkcs7: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.acceptPKCS7)(::windows::core::Interface::as_raw(self), pkcs7.into().abi()).ok() + pub unsafe fn acceptPKCS7(&self, pkcs7: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.acceptPKCS7)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pkcs7)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getCertFromPKCS7<'a, P0>(&self, wszpkcs7: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn getCertFromPKCS7(&self, wszpkcs7: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.getCertFromPKCS7)(::windows::core::Interface::as_raw(self), wszpkcs7.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.getCertFromPKCS7)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(wszpkcs7), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn enumProviders(&self, dwindex: i32, dwflags: i32) -> ::windows::core::Result { + pub unsafe fn enumProviders(&self, dwindex: i32, dwflags: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.enumProviders)(::windows::core::Interface::as_raw(self), dwindex, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.enumProviders)(::windows::core::Interface::as_raw(self), dwindex, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn enumContainers(&self, dwindex: i32) -> ::windows::core::Result { + pub unsafe fn enumContainers(&self, dwindex: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.enumContainers)(::windows::core::Interface::as_raw(self), dwindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.enumContainers)(::windows::core::Interface::as_raw(self), dwindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn freeRequestInfo<'a, P0>(&self, pkcs7orpkcs10: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.freeRequestInfo)(::windows::core::Interface::as_raw(self), pkcs7orpkcs10.into().abi()).ok() + pub unsafe fn freeRequestInfo(&self, pkcs7orpkcs10: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.freeRequestInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pkcs7orpkcs10)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MyStoreName(&self) -> ::windows::core::Result { + pub unsafe fn MyStoreName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.MyStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.MyStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMyStoreName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetMyStoreName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetMyStoreName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetMyStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MyStoreType(&self) -> ::windows::core::Result { + pub unsafe fn MyStoreType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.MyStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.MyStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMyStoreType<'a, P0>(&self, bstrtype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetMyStoreType)(::windows::core::Interface::as_raw(self), bstrtype.into().abi()).ok() + pub unsafe fn SetMyStoreType(&self, bstrtype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetMyStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtype)).ok() } pub unsafe fn MyStoreFlags(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1479,33 +1152,19 @@ impl ICEnroll2 { pub unsafe fn SetMyStoreFlags(&self, dwflags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetMyStoreFlags)(::windows::core::Interface::as_raw(self), dwflags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CAStoreName(&self) -> ::windows::core::Result { + pub unsafe fn CAStoreName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CAStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CAStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCAStoreName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetCAStoreName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetCAStoreName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetCAStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CAStoreType(&self) -> ::windows::core::Result { + pub unsafe fn CAStoreType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CAStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CAStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCAStoreType<'a, P0>(&self, bstrtype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetCAStoreType)(::windows::core::Interface::as_raw(self), bstrtype.into().abi()).ok() + pub unsafe fn SetCAStoreType(&self, bstrtype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetCAStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtype)).ok() } pub unsafe fn CAStoreFlags(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1514,33 +1173,19 @@ impl ICEnroll2 { pub unsafe fn SetCAStoreFlags(&self, dwflags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetCAStoreFlags)(::windows::core::Interface::as_raw(self), dwflags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RootStoreName(&self) -> ::windows::core::Result { + pub unsafe fn RootStoreName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.RootStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.RootStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRootStoreName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetRootStoreName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetRootStoreName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetRootStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RootStoreType(&self) -> ::windows::core::Result { + pub unsafe fn RootStoreType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.RootStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.RootStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRootStoreType<'a, P0>(&self, bstrtype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetRootStoreType)(::windows::core::Interface::as_raw(self), bstrtype.into().abi()).ok() + pub unsafe fn SetRootStoreType(&self, bstrtype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetRootStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtype)).ok() } pub unsafe fn RootStoreFlags(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1549,33 +1194,19 @@ impl ICEnroll2 { pub unsafe fn SetRootStoreFlags(&self, dwflags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetRootStoreFlags)(::windows::core::Interface::as_raw(self), dwflags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RequestStoreName(&self) -> ::windows::core::Result { + pub unsafe fn RequestStoreName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.RequestStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.RequestStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRequestStoreName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetRequestStoreName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetRequestStoreName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetRequestStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RequestStoreType(&self) -> ::windows::core::Result { + pub unsafe fn RequestStoreType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.RequestStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.RequestStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRequestStoreType<'a, P0>(&self, bstrtype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetRequestStoreType)(::windows::core::Interface::as_raw(self), bstrtype.into().abi()).ok() + pub unsafe fn SetRequestStoreType(&self, bstrtype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetRequestStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtype)).ok() } pub unsafe fn RequestStoreFlags(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1584,33 +1215,19 @@ impl ICEnroll2 { pub unsafe fn SetRequestStoreFlags(&self, dwflags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetRequestStoreFlags)(::windows::core::Interface::as_raw(self), dwflags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ContainerName(&self) -> ::windows::core::Result { + pub unsafe fn ContainerName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ContainerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ContainerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetContainerName<'a, P0>(&self, bstrcontainer: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetContainerName)(::windows::core::Interface::as_raw(self), bstrcontainer.into().abi()).ok() + pub unsafe fn SetContainerName(&self, bstrcontainer: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetContainerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcontainer)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ProviderName(&self) -> ::windows::core::Result { + pub unsafe fn ProviderName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetProviderName<'a, P0>(&self, bstrprovider: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetProviderName)(::windows::core::Interface::as_raw(self), bstrprovider.into().abi()).ok() + pub unsafe fn SetProviderName(&self, bstrprovider: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprovider)).ok() } pub unsafe fn ProviderType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1682,64 +1299,32 @@ impl ICEnroll2 { { (::windows::core::Interface::vtable(self).base__.SetWriteCertToCSP)(::windows::core::Interface::as_raw(self), fbool.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SPCFileName(&self) -> ::windows::core::Result { + pub unsafe fn SPCFileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.SPCFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.SPCFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSPCFileName<'a, P0>(&self, bstr: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetSPCFileName)(::windows::core::Interface::as_raw(self), bstr.into().abi()).ok() + pub unsafe fn SetSPCFileName(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetSPCFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PVKFileName(&self) -> ::windows::core::Result { + pub unsafe fn PVKFileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.PVKFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.PVKFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPVKFileName<'a, P0>(&self, bstr: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetPVKFileName)(::windows::core::Interface::as_raw(self), bstr.into().abi()).ok() + pub unsafe fn SetPVKFileName(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetPVKFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn HashAlgorithm(&self) -> ::windows::core::Result { + pub unsafe fn HashAlgorithm(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.HashAlgorithm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.HashAlgorithm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetHashAlgorithm<'a, P0>(&self, bstr: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetHashAlgorithm)(::windows::core::Interface::as_raw(self), bstr.into().abi()).ok() + pub unsafe fn SetHashAlgorithm(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetHashAlgorithm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn addCertTypeToRequest<'a, P0>(&self, certtype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).addCertTypeToRequest)(::windows::core::Interface::as_raw(self), certtype.into().abi()).ok() + pub unsafe fn addCertTypeToRequest(&self, certtype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).addCertTypeToRequest)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(certtype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn addNameValuePairToSignature<'a, P0, P1>(&self, name: P0, value: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).addNameValuePairToSignature)(::windows::core::Interface::as_raw(self), name.into().abi(), value.into().abi()).ok() + pub unsafe fn addNameValuePairToSignature(&self, name: &::windows::core::BSTR, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).addNameValuePairToSignature)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute_copy(value)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -1854,14 +1439,8 @@ unsafe impl ::windows::core::Interface for ICEnroll2 { #[doc(hidden)] pub struct ICEnroll2_Vtbl { pub base__: ICEnroll_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub addCertTypeToRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, certtype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - addCertTypeToRequest: usize, - #[cfg(feature = "Win32_Foundation")] - pub addNameValuePairToSignature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - addNameValuePairToSignature: usize, + pub addCertTypeToRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, certtype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub addNameValuePairToSignature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub WriteCertToUserDS: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fbool: *mut super::super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -1885,98 +1464,47 @@ pub struct ICEnroll2_Vtbl { pub struct ICEnroll3(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICEnroll3 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn createFilePKCS10<'a, P0, P1, P2>(&self, dnname: P0, usage: P1, wszpkcs10filename: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.createFilePKCS10)(::windows::core::Interface::as_raw(self), dnname.into().abi(), usage.into().abi(), wszpkcs10filename.into().abi()).ok() + pub unsafe fn createFilePKCS10(&self, dnname: &::windows::core::BSTR, usage: &::windows::core::BSTR, wszpkcs10filename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.createFilePKCS10)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(dnname), ::core::mem::transmute_copy(usage), ::core::mem::transmute_copy(wszpkcs10filename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn acceptFilePKCS7<'a, P0>(&self, wszpkcs7filename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.acceptFilePKCS7)(::windows::core::Interface::as_raw(self), wszpkcs7filename.into().abi()).ok() + pub unsafe fn acceptFilePKCS7(&self, wszpkcs7filename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.acceptFilePKCS7)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(wszpkcs7filename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn createPKCS10<'a, P0, P1>(&self, dnname: P0, usage: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn createPKCS10(&self, dnname: &::windows::core::BSTR, usage: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.createPKCS10)(::windows::core::Interface::as_raw(self), dnname.into().abi(), usage.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.createPKCS10)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(dnname), ::core::mem::transmute_copy(usage), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn acceptPKCS7<'a, P0>(&self, pkcs7: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.acceptPKCS7)(::windows::core::Interface::as_raw(self), pkcs7.into().abi()).ok() + pub unsafe fn acceptPKCS7(&self, pkcs7: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.acceptPKCS7)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pkcs7)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getCertFromPKCS7<'a, P0>(&self, wszpkcs7: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn getCertFromPKCS7(&self, wszpkcs7: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.getCertFromPKCS7)(::windows::core::Interface::as_raw(self), wszpkcs7.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.getCertFromPKCS7)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(wszpkcs7), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn enumProviders(&self, dwindex: i32, dwflags: i32) -> ::windows::core::Result { + pub unsafe fn enumProviders(&self, dwindex: i32, dwflags: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.enumProviders)(::windows::core::Interface::as_raw(self), dwindex, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.enumProviders)(::windows::core::Interface::as_raw(self), dwindex, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn enumContainers(&self, dwindex: i32) -> ::windows::core::Result { + pub unsafe fn enumContainers(&self, dwindex: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.enumContainers)(::windows::core::Interface::as_raw(self), dwindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.enumContainers)(::windows::core::Interface::as_raw(self), dwindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn freeRequestInfo<'a, P0>(&self, pkcs7orpkcs10: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.freeRequestInfo)(::windows::core::Interface::as_raw(self), pkcs7orpkcs10.into().abi()).ok() + pub unsafe fn freeRequestInfo(&self, pkcs7orpkcs10: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.freeRequestInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pkcs7orpkcs10)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MyStoreName(&self) -> ::windows::core::Result { + pub unsafe fn MyStoreName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.MyStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.MyStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMyStoreName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetMyStoreName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetMyStoreName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetMyStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MyStoreType(&self) -> ::windows::core::Result { + pub unsafe fn MyStoreType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.MyStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.MyStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMyStoreType<'a, P0>(&self, bstrtype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetMyStoreType)(::windows::core::Interface::as_raw(self), bstrtype.into().abi()).ok() + pub unsafe fn SetMyStoreType(&self, bstrtype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetMyStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtype)).ok() } pub unsafe fn MyStoreFlags(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1985,33 +1513,19 @@ impl ICEnroll3 { pub unsafe fn SetMyStoreFlags(&self, dwflags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.SetMyStoreFlags)(::windows::core::Interface::as_raw(self), dwflags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CAStoreName(&self) -> ::windows::core::Result { + pub unsafe fn CAStoreName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CAStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CAStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCAStoreName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetCAStoreName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetCAStoreName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetCAStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CAStoreType(&self) -> ::windows::core::Result { + pub unsafe fn CAStoreType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CAStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CAStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCAStoreType<'a, P0>(&self, bstrtype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetCAStoreType)(::windows::core::Interface::as_raw(self), bstrtype.into().abi()).ok() + pub unsafe fn SetCAStoreType(&self, bstrtype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetCAStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtype)).ok() } pub unsafe fn CAStoreFlags(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2020,33 +1534,19 @@ impl ICEnroll3 { pub unsafe fn SetCAStoreFlags(&self, dwflags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.SetCAStoreFlags)(::windows::core::Interface::as_raw(self), dwflags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RootStoreName(&self) -> ::windows::core::Result { + pub unsafe fn RootStoreName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.RootStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.RootStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRootStoreName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetRootStoreName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetRootStoreName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetRootStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RootStoreType(&self) -> ::windows::core::Result { + pub unsafe fn RootStoreType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.RootStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.RootStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRootStoreType<'a, P0>(&self, bstrtype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetRootStoreType)(::windows::core::Interface::as_raw(self), bstrtype.into().abi()).ok() + pub unsafe fn SetRootStoreType(&self, bstrtype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetRootStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtype)).ok() } pub unsafe fn RootStoreFlags(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2055,33 +1555,19 @@ impl ICEnroll3 { pub unsafe fn SetRootStoreFlags(&self, dwflags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.SetRootStoreFlags)(::windows::core::Interface::as_raw(self), dwflags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RequestStoreName(&self) -> ::windows::core::Result { + pub unsafe fn RequestStoreName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.RequestStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.RequestStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRequestStoreName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetRequestStoreName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetRequestStoreName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetRequestStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RequestStoreType(&self) -> ::windows::core::Result { + pub unsafe fn RequestStoreType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.RequestStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.RequestStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRequestStoreType<'a, P0>(&self, bstrtype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetRequestStoreType)(::windows::core::Interface::as_raw(self), bstrtype.into().abi()).ok() + pub unsafe fn SetRequestStoreType(&self, bstrtype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetRequestStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtype)).ok() } pub unsafe fn RequestStoreFlags(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2090,33 +1576,19 @@ impl ICEnroll3 { pub unsafe fn SetRequestStoreFlags(&self, dwflags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.SetRequestStoreFlags)(::windows::core::Interface::as_raw(self), dwflags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ContainerName(&self) -> ::windows::core::Result { + pub unsafe fn ContainerName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.ContainerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.ContainerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetContainerName<'a, P0>(&self, bstrcontainer: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetContainerName)(::windows::core::Interface::as_raw(self), bstrcontainer.into().abi()).ok() + pub unsafe fn SetContainerName(&self, bstrcontainer: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetContainerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcontainer)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ProviderName(&self) -> ::windows::core::Result { + pub unsafe fn ProviderName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.ProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.ProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetProviderName<'a, P0>(&self, bstrprovider: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetProviderName)(::windows::core::Interface::as_raw(self), bstrprovider.into().abi()).ok() + pub unsafe fn SetProviderName(&self, bstrprovider: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprovider)).ok() } pub unsafe fn ProviderType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2188,64 +1660,32 @@ impl ICEnroll3 { { (::windows::core::Interface::vtable(self).base__.base__.SetWriteCertToCSP)(::windows::core::Interface::as_raw(self), fbool.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SPCFileName(&self) -> ::windows::core::Result { + pub unsafe fn SPCFileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.SPCFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.SPCFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSPCFileName<'a, P0>(&self, bstr: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetSPCFileName)(::windows::core::Interface::as_raw(self), bstr.into().abi()).ok() + pub unsafe fn SetSPCFileName(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetSPCFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PVKFileName(&self) -> ::windows::core::Result { + pub unsafe fn PVKFileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.PVKFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.PVKFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPVKFileName<'a, P0>(&self, bstr: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetPVKFileName)(::windows::core::Interface::as_raw(self), bstr.into().abi()).ok() + pub unsafe fn SetPVKFileName(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetPVKFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn HashAlgorithm(&self) -> ::windows::core::Result { + pub unsafe fn HashAlgorithm(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.HashAlgorithm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.HashAlgorithm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetHashAlgorithm<'a, P0>(&self, bstr: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetHashAlgorithm)(::windows::core::Interface::as_raw(self), bstr.into().abi()).ok() + pub unsafe fn SetHashAlgorithm(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetHashAlgorithm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn addCertTypeToRequest<'a, P0>(&self, certtype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.addCertTypeToRequest)(::windows::core::Interface::as_raw(self), certtype.into().abi()).ok() + pub unsafe fn addCertTypeToRequest(&self, certtype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.addCertTypeToRequest)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(certtype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn addNameValuePairToSignature<'a, P0, P1>(&self, name: P0, value: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.addNameValuePairToSignature)(::windows::core::Interface::as_raw(self), name.into().abi(), value.into().abi()).ok() + pub unsafe fn addNameValuePairToSignature(&self, name: &::windows::core::BSTR, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.addNameValuePairToSignature)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute_copy(value)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -2275,13 +1715,8 @@ impl ICEnroll3 { { (::windows::core::Interface::vtable(self).base__.SetEnableT61DNEncoding)(::windows::core::Interface::as_raw(self), fbool.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InstallPKCS7<'a, P0>(&self, pkcs7: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InstallPKCS7)(::windows::core::Interface::as_raw(self), pkcs7.into().abi()).ok() + pub unsafe fn InstallPKCS7(&self, pkcs7: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InstallPKCS7)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pkcs7)).ok() } pub unsafe fn Reset(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Reset)(::windows::core::Interface::as_raw(self)).ok() @@ -2304,11 +1739,9 @@ impl ICEnroll3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).EnumAlgs)(::windows::core::Interface::as_raw(self), dwindex, algclass, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetAlgName(&self, algid: i32) -> ::windows::core::Result { + pub unsafe fn GetAlgName(&self, algid: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetAlgName)(::windows::core::Interface::as_raw(self), algid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetAlgName)(::windows::core::Interface::as_raw(self), algid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -2462,10 +1895,7 @@ unsafe impl ::windows::core::Interface for ICEnroll3 { #[doc(hidden)] pub struct ICEnroll3_Vtbl { pub base__: ICEnroll2_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub InstallPKCS7: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pkcs7: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InstallPKCS7: usize, + pub InstallPKCS7: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pkcs7: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetSupportedKeySpec: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwkeyspec: *mut i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] @@ -2473,10 +1903,7 @@ pub struct ICEnroll3_Vtbl { #[cfg(not(feature = "Win32_Foundation"))] GetKeyLen: usize, pub EnumAlgs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwindex: i32, algclass: i32, pdwalgid: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetAlgName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, algid: i32, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetAlgName: usize, + pub GetAlgName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, algid: i32, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub SetReuseHardwareKeyIfUnableToGenNew: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, freusehardwarekeyifunabletogennew: super::super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -2510,98 +1937,47 @@ pub struct ICEnroll3_Vtbl { pub struct ICEnroll4(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICEnroll4 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn createFilePKCS10<'a, P0, P1, P2>(&self, dnname: P0, usage: P1, wszpkcs10filename: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.createFilePKCS10)(::windows::core::Interface::as_raw(self), dnname.into().abi(), usage.into().abi(), wszpkcs10filename.into().abi()).ok() + pub unsafe fn createFilePKCS10(&self, dnname: &::windows::core::BSTR, usage: &::windows::core::BSTR, wszpkcs10filename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.createFilePKCS10)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(dnname), ::core::mem::transmute_copy(usage), ::core::mem::transmute_copy(wszpkcs10filename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn acceptFilePKCS7<'a, P0>(&self, wszpkcs7filename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.acceptFilePKCS7)(::windows::core::Interface::as_raw(self), wszpkcs7filename.into().abi()).ok() + pub unsafe fn acceptFilePKCS7(&self, wszpkcs7filename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.acceptFilePKCS7)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(wszpkcs7filename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn createPKCS10<'a, P0, P1>(&self, dnname: P0, usage: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn createPKCS10(&self, dnname: &::windows::core::BSTR, usage: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.createPKCS10)(::windows::core::Interface::as_raw(self), dnname.into().abi(), usage.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.createPKCS10)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(dnname), ::core::mem::transmute_copy(usage), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn acceptPKCS7<'a, P0>(&self, pkcs7: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.acceptPKCS7)(::windows::core::Interface::as_raw(self), pkcs7.into().abi()).ok() + pub unsafe fn acceptPKCS7(&self, pkcs7: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.acceptPKCS7)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pkcs7)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getCertFromPKCS7<'a, P0>(&self, wszpkcs7: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn getCertFromPKCS7(&self, wszpkcs7: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.getCertFromPKCS7)(::windows::core::Interface::as_raw(self), wszpkcs7.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.getCertFromPKCS7)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(wszpkcs7), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn enumProviders(&self, dwindex: i32, dwflags: i32) -> ::windows::core::Result { + pub unsafe fn enumProviders(&self, dwindex: i32, dwflags: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.enumProviders)(::windows::core::Interface::as_raw(self), dwindex, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.enumProviders)(::windows::core::Interface::as_raw(self), dwindex, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn enumContainers(&self, dwindex: i32) -> ::windows::core::Result { + pub unsafe fn enumContainers(&self, dwindex: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.enumContainers)(::windows::core::Interface::as_raw(self), dwindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.enumContainers)(::windows::core::Interface::as_raw(self), dwindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn freeRequestInfo<'a, P0>(&self, pkcs7orpkcs10: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.freeRequestInfo)(::windows::core::Interface::as_raw(self), pkcs7orpkcs10.into().abi()).ok() + pub unsafe fn freeRequestInfo(&self, pkcs7orpkcs10: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.freeRequestInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pkcs7orpkcs10)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MyStoreName(&self) -> ::windows::core::Result { + pub unsafe fn MyStoreName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.MyStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.MyStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMyStoreName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.SetMyStoreName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetMyStoreName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.SetMyStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MyStoreType(&self) -> ::windows::core::Result { + pub unsafe fn MyStoreType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.MyStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.MyStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMyStoreType<'a, P0>(&self, bstrtype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.SetMyStoreType)(::windows::core::Interface::as_raw(self), bstrtype.into().abi()).ok() + pub unsafe fn SetMyStoreType(&self, bstrtype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.SetMyStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtype)).ok() } pub unsafe fn MyStoreFlags(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2610,33 +1986,19 @@ impl ICEnroll4 { pub unsafe fn SetMyStoreFlags(&self, dwflags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.SetMyStoreFlags)(::windows::core::Interface::as_raw(self), dwflags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CAStoreName(&self) -> ::windows::core::Result { + pub unsafe fn CAStoreName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.CAStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.CAStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCAStoreName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.SetCAStoreName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetCAStoreName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.SetCAStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CAStoreType(&self) -> ::windows::core::Result { + pub unsafe fn CAStoreType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.CAStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.CAStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCAStoreType<'a, P0>(&self, bstrtype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.SetCAStoreType)(::windows::core::Interface::as_raw(self), bstrtype.into().abi()).ok() + pub unsafe fn SetCAStoreType(&self, bstrtype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.SetCAStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtype)).ok() } pub unsafe fn CAStoreFlags(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2645,33 +2007,19 @@ impl ICEnroll4 { pub unsafe fn SetCAStoreFlags(&self, dwflags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.SetCAStoreFlags)(::windows::core::Interface::as_raw(self), dwflags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RootStoreName(&self) -> ::windows::core::Result { + pub unsafe fn RootStoreName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.RootStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.RootStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRootStoreName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.SetRootStoreName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetRootStoreName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.SetRootStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RootStoreType(&self) -> ::windows::core::Result { + pub unsafe fn RootStoreType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.RootStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.RootStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRootStoreType<'a, P0>(&self, bstrtype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.SetRootStoreType)(::windows::core::Interface::as_raw(self), bstrtype.into().abi()).ok() + pub unsafe fn SetRootStoreType(&self, bstrtype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.SetRootStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtype)).ok() } pub unsafe fn RootStoreFlags(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2680,33 +2028,19 @@ impl ICEnroll4 { pub unsafe fn SetRootStoreFlags(&self, dwflags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.SetRootStoreFlags)(::windows::core::Interface::as_raw(self), dwflags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RequestStoreName(&self) -> ::windows::core::Result { + pub unsafe fn RequestStoreName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.RequestStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.RequestStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRequestStoreName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.SetRequestStoreName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetRequestStoreName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.SetRequestStoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RequestStoreType(&self) -> ::windows::core::Result { + pub unsafe fn RequestStoreType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.RequestStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.RequestStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRequestStoreType<'a, P0>(&self, bstrtype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.SetRequestStoreType)(::windows::core::Interface::as_raw(self), bstrtype.into().abi()).ok() + pub unsafe fn SetRequestStoreType(&self, bstrtype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.SetRequestStoreType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtype)).ok() } pub unsafe fn RequestStoreFlags(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2715,33 +2049,19 @@ impl ICEnroll4 { pub unsafe fn SetRequestStoreFlags(&self, dwflags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.SetRequestStoreFlags)(::windows::core::Interface::as_raw(self), dwflags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ContainerName(&self) -> ::windows::core::Result { + pub unsafe fn ContainerName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.ContainerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.ContainerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetContainerName<'a, P0>(&self, bstrcontainer: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.SetContainerName)(::windows::core::Interface::as_raw(self), bstrcontainer.into().abi()).ok() + pub unsafe fn SetContainerName(&self, bstrcontainer: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.SetContainerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcontainer)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ProviderName(&self) -> ::windows::core::Result { + pub unsafe fn ProviderName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.ProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.ProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetProviderName<'a, P0>(&self, bstrprovider: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.SetProviderName)(::windows::core::Interface::as_raw(self), bstrprovider.into().abi()).ok() + pub unsafe fn SetProviderName(&self, bstrprovider: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.SetProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprovider)).ok() } pub unsafe fn ProviderType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2813,64 +2133,32 @@ impl ICEnroll4 { { (::windows::core::Interface::vtable(self).base__.base__.base__.SetWriteCertToCSP)(::windows::core::Interface::as_raw(self), fbool.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SPCFileName(&self) -> ::windows::core::Result { + pub unsafe fn SPCFileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.SPCFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.SPCFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSPCFileName<'a, P0>(&self, bstr: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.SetSPCFileName)(::windows::core::Interface::as_raw(self), bstr.into().abi()).ok() + pub unsafe fn SetSPCFileName(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.SetSPCFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PVKFileName(&self) -> ::windows::core::Result { + pub unsafe fn PVKFileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.PVKFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.PVKFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPVKFileName<'a, P0>(&self, bstr: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.SetPVKFileName)(::windows::core::Interface::as_raw(self), bstr.into().abi()).ok() + pub unsafe fn SetPVKFileName(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.SetPVKFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn HashAlgorithm(&self) -> ::windows::core::Result { + pub unsafe fn HashAlgorithm(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.HashAlgorithm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.HashAlgorithm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetHashAlgorithm<'a, P0>(&self, bstr: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.SetHashAlgorithm)(::windows::core::Interface::as_raw(self), bstr.into().abi()).ok() + pub unsafe fn SetHashAlgorithm(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.SetHashAlgorithm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn addCertTypeToRequest<'a, P0>(&self, certtype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.addCertTypeToRequest)(::windows::core::Interface::as_raw(self), certtype.into().abi()).ok() + pub unsafe fn addCertTypeToRequest(&self, certtype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.addCertTypeToRequest)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(certtype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn addNameValuePairToSignature<'a, P0, P1>(&self, name: P0, value: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.addNameValuePairToSignature)(::windows::core::Interface::as_raw(self), name.into().abi(), value.into().abi()).ok() + pub unsafe fn addNameValuePairToSignature(&self, name: &::windows::core::BSTR, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.addNameValuePairToSignature)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute_copy(value)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -2900,13 +2188,8 @@ impl ICEnroll4 { { (::windows::core::Interface::vtable(self).base__.base__.SetEnableT61DNEncoding)(::windows::core::Interface::as_raw(self), fbool.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InstallPKCS7<'a, P0>(&self, pkcs7: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InstallPKCS7)(::windows::core::Interface::as_raw(self), pkcs7.into().abi()).ok() + pub unsafe fn InstallPKCS7(&self, pkcs7: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InstallPKCS7)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pkcs7)).ok() } pub unsafe fn Reset(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Reset)(::windows::core::Interface::as_raw(self)).ok() @@ -2929,11 +2212,9 @@ impl ICEnroll4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.EnumAlgs)(::windows::core::Interface::as_raw(self), dwindex, algclass, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetAlgName(&self, algid: i32) -> ::windows::core::Result { + pub unsafe fn GetAlgName(&self, algid: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetAlgName)(::windows::core::Interface::as_raw(self), algid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetAlgName)(::windows::core::Interface::as_raw(self), algid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -2984,78 +2265,36 @@ impl ICEnroll4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.EnableSMIMECapabilities)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPrivateKeyArchiveCertificate<'a, P0>(&self, bstrcert: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPrivateKeyArchiveCertificate)(::windows::core::Interface::as_raw(self), bstrcert.into().abi()).ok() + pub unsafe fn SetPrivateKeyArchiveCertificate(&self, bstrcert: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPrivateKeyArchiveCertificate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcert)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PrivateKeyArchiveCertificate(&self) -> ::windows::core::Result { + pub unsafe fn PrivateKeyArchiveCertificate(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PrivateKeyArchiveCertificate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PrivateKeyArchiveCertificate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetThumbPrint<'a, P0>(&self, bstrthumbprint: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetThumbPrint)(::windows::core::Interface::as_raw(self), bstrthumbprint.into().abi()).ok() + pub unsafe fn SetThumbPrint(&self, bstrthumbprint: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetThumbPrint)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrthumbprint)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ThumbPrint(&self) -> ::windows::core::Result { + pub unsafe fn ThumbPrint(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ThumbPrint)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ThumbPrint)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn binaryToString<'a, P0>(&self, flags: i32, strbinary: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn binaryToString(&self, flags: i32, strbinary: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).binaryToString)(::windows::core::Interface::as_raw(self), flags, strbinary.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).binaryToString)(::windows::core::Interface::as_raw(self), flags, ::core::mem::transmute_copy(strbinary), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn stringToBinary<'a, P0>(&self, flags: i32, strencoded: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn stringToBinary(&self, flags: i32, strencoded: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).stringToBinary)(::windows::core::Interface::as_raw(self), flags, strencoded.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).stringToBinary)(::windows::core::Interface::as_raw(self), flags, ::core::mem::transmute_copy(strencoded), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn addExtensionToRequest<'a, P0, P1>(&self, flags: i32, strname: P0, strvalue: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).addExtensionToRequest)(::windows::core::Interface::as_raw(self), flags, strname.into().abi(), strvalue.into().abi()).ok() + pub unsafe fn addExtensionToRequest(&self, flags: i32, strname: &::windows::core::BSTR, strvalue: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).addExtensionToRequest)(::windows::core::Interface::as_raw(self), flags, ::core::mem::transmute_copy(strname), ::core::mem::transmute_copy(strvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn addAttributeToRequest<'a, P0, P1>(&self, flags: i32, strname: P0, strvalue: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).addAttributeToRequest)(::windows::core::Interface::as_raw(self), flags, strname.into().abi(), strvalue.into().abi()).ok() + pub unsafe fn addAttributeToRequest(&self, flags: i32, strname: &::windows::core::BSTR, strvalue: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).addAttributeToRequest)(::windows::core::Interface::as_raw(self), flags, ::core::mem::transmute_copy(strname), ::core::mem::transmute_copy(strvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn addNameValuePairToRequest<'a, P0, P1>(&self, flags: i32, strname: P0, strvalue: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).addNameValuePairToRequest)(::windows::core::Interface::as_raw(self), flags, strname.into().abi(), strvalue.into().abi()).ok() + pub unsafe fn addNameValuePairToRequest(&self, flags: i32, strname: &::windows::core::BSTR, strvalue: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).addNameValuePairToRequest)(::windows::core::Interface::as_raw(self), flags, ::core::mem::transmute_copy(strname), ::core::mem::transmute_copy(strvalue)).ok() } pub unsafe fn resetExtensions(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).resetExtensions)(::windows::core::Interface::as_raw(self)).ok() @@ -3063,87 +2302,36 @@ impl ICEnroll4 { pub unsafe fn resetAttributes(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).resetAttributes)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn createRequest<'a, P0, P1>(&self, flags: CERT_CREATE_REQUEST_FLAGS, strdnname: P0, usage: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn createRequest(&self, flags: CERT_CREATE_REQUEST_FLAGS, strdnname: &::windows::core::BSTR, usage: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).createRequest)(::windows::core::Interface::as_raw(self), flags, strdnname.into().abi(), usage.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).createRequest)(::windows::core::Interface::as_raw(self), flags, ::core::mem::transmute_copy(strdnname), ::core::mem::transmute_copy(usage), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn createFileRequest<'a, P0, P1, P2>(&self, flags: CERT_CREATE_REQUEST_FLAGS, strdnname: P0, strusage: P1, strrequestfilename: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).createFileRequest)(::windows::core::Interface::as_raw(self), flags, strdnname.into().abi(), strusage.into().abi(), strrequestfilename.into().abi()).ok() + pub unsafe fn createFileRequest(&self, flags: CERT_CREATE_REQUEST_FLAGS, strdnname: &::windows::core::BSTR, strusage: &::windows::core::BSTR, strrequestfilename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).createFileRequest)(::windows::core::Interface::as_raw(self), flags, ::core::mem::transmute_copy(strdnname), ::core::mem::transmute_copy(strusage), ::core::mem::transmute_copy(strrequestfilename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn acceptResponse<'a, P0>(&self, strresponse: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).acceptResponse)(::windows::core::Interface::as_raw(self), strresponse.into().abi()).ok() + pub unsafe fn acceptResponse(&self, strresponse: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).acceptResponse)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strresponse)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn acceptFileResponse<'a, P0>(&self, strresponsefilename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).acceptFileResponse)(::windows::core::Interface::as_raw(self), strresponsefilename.into().abi()).ok() + pub unsafe fn acceptFileResponse(&self, strresponsefilename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).acceptFileResponse)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strresponsefilename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getCertFromResponse<'a, P0>(&self, strresponse: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn getCertFromResponse(&self, strresponse: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getCertFromResponse)(::windows::core::Interface::as_raw(self), strresponse.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getCertFromResponse)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strresponse), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getCertFromFileResponse<'a, P0>(&self, strresponsefilename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn getCertFromFileResponse(&self, strresponsefilename: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getCertFromFileResponse)(::windows::core::Interface::as_raw(self), strresponsefilename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getCertFromFileResponse)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strresponsefilename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn createPFX<'a, P0>(&self, strpassword: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn createPFX(&self, strpassword: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).createPFX)(::windows::core::Interface::as_raw(self), strpassword.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).createPFX)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strpassword), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn createFilePFX<'a, P0, P1>(&self, strpassword: P0, strpfxfilename: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).createFilePFX)(::windows::core::Interface::as_raw(self), strpassword.into().abi(), strpfxfilename.into().abi()).ok() + pub unsafe fn createFilePFX(&self, strpassword: &::windows::core::BSTR, strpfxfilename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).createFilePFX)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strpassword), ::core::mem::transmute_copy(strpfxfilename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn setPendingRequestInfo<'a, P0, P1, P2>(&self, lrequestid: i32, strcadns: P0, strcaname: P1, strfriendlyname: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).setPendingRequestInfo)(::windows::core::Interface::as_raw(self), lrequestid, strcadns.into().abi(), strcaname.into().abi(), strfriendlyname.into().abi()).ok() + pub unsafe fn setPendingRequestInfo(&self, lrequestid: i32, strcadns: &::windows::core::BSTR, strcaname: &::windows::core::BSTR, strfriendlyname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).setPendingRequestInfo)(::windows::core::Interface::as_raw(self), lrequestid, ::core::mem::transmute_copy(strcadns), ::core::mem::transmute_copy(strcaname), ::core::mem::transmute_copy(strfriendlyname)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3151,52 +2339,31 @@ impl ICEnroll4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).enumPendingRequest)(::windows::core::Interface::as_raw(self), lindex, ldesiredproperty, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn removePendingRequest<'a, P0>(&self, strthumbprint: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).removePendingRequest)(::windows::core::Interface::as_raw(self), strthumbprint.into().abi()).ok() + pub unsafe fn removePendingRequest(&self, strthumbprint: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).removePendingRequest)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strthumbprint)).ok() } pub unsafe fn GetKeyLenEx(&self, lsizespec: XEKL_KEYSIZE, lkeyspec: XEKL_KEYSPEC) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetKeyLenEx)(::windows::core::Interface::as_raw(self), lsizespec, lkeyspec, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InstallPKCS7Ex<'a, P0>(&self, pkcs7: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn InstallPKCS7Ex(&self, pkcs7: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).InstallPKCS7Ex)(::windows::core::Interface::as_raw(self), pkcs7.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).InstallPKCS7Ex)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pkcs7), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn addCertTypeToRequestEx<'a, P0, P1>(&self, ltype: ADDED_CERT_TYPE, bstroidorname: P0, lmajorversion: i32, fminorversion: P1, lminorversion: i32) -> ::windows::core::Result<()> + pub unsafe fn addCertTypeToRequestEx<'a, P0>(&self, ltype: ADDED_CERT_TYPE, bstroidorname: &::windows::core::BSTR, lmajorversion: i32, fminorversion: P0, lminorversion: i32) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into, + P0: ::std::convert::Into, { - (::windows::core::Interface::vtable(self).addCertTypeToRequestEx)(::windows::core::Interface::as_raw(self), ltype, bstroidorname.into().abi(), lmajorversion, fminorversion.into(), lminorversion).ok() + (::windows::core::Interface::vtable(self).addCertTypeToRequestEx)(::windows::core::Interface::as_raw(self), ltype, ::core::mem::transmute_copy(bstroidorname), lmajorversion, fminorversion.into(), lminorversion).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getProviderType<'a, P0>(&self, strprovname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn getProviderType(&self, strprovname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getProviderType)(::windows::core::Interface::as_raw(self), strprovname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getProviderType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strprovname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSignerCertificate<'a, P0>(&self, bstrcert: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSignerCertificate)(::windows::core::Interface::as_raw(self), bstrcert.into().abi()).ok() + pub unsafe fn SetSignerCertificate(&self, bstrcert: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSignerCertificate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcert)).ok() } pub unsafe fn SetClientId(&self, lclientid: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetClientId)(::windows::core::Interface::as_raw(self), lclientid).ok() @@ -3205,13 +2372,8 @@ impl ICEnroll4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ClientId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn addBlobPropertyToCertificate<'a, P0>(&self, lpropertyid: i32, lreserved: i32, bstrproperty: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).addBlobPropertyToCertificate)(::windows::core::Interface::as_raw(self), lpropertyid, lreserved, bstrproperty.into().abi()).ok() + pub unsafe fn addBlobPropertyToCertificate(&self, lpropertyid: i32, lreserved: i32, bstrproperty: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).addBlobPropertyToCertificate)(::windows::core::Interface::as_raw(self), lpropertyid, lreserved, ::core::mem::transmute_copy(bstrproperty)).ok() } pub unsafe fn resetBlobProperties(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).resetBlobProperties)(::windows::core::Interface::as_raw(self)).ok() @@ -3351,111 +2513,42 @@ unsafe impl ::windows::core::Interface for ICEnroll4 { #[doc(hidden)] pub struct ICEnroll4_Vtbl { pub base__: ICEnroll3_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub SetPrivateKeyArchiveCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcert: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPrivateKeyArchiveCertificate: usize, - #[cfg(feature = "Win32_Foundation")] - pub PrivateKeyArchiveCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcert: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PrivateKeyArchiveCertificate: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetThumbPrint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrthumbprint: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetThumbPrint: usize, - #[cfg(feature = "Win32_Foundation")] - pub ThumbPrint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrthumbprint: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ThumbPrint: usize, - #[cfg(feature = "Win32_Foundation")] - pub binaryToString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32, strbinary: ::core::mem::ManuallyDrop, pstrencoded: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - binaryToString: usize, - #[cfg(feature = "Win32_Foundation")] - pub stringToBinary: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32, strencoded: ::core::mem::ManuallyDrop, pstrbinary: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - stringToBinary: usize, - #[cfg(feature = "Win32_Foundation")] - pub addExtensionToRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32, strname: ::core::mem::ManuallyDrop, strvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - addExtensionToRequest: usize, - #[cfg(feature = "Win32_Foundation")] - pub addAttributeToRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32, strname: ::core::mem::ManuallyDrop, strvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - addAttributeToRequest: usize, - #[cfg(feature = "Win32_Foundation")] - pub addNameValuePairToRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32, strname: ::core::mem::ManuallyDrop, strvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - addNameValuePairToRequest: usize, + pub SetPrivateKeyArchiveCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcert: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub PrivateKeyArchiveCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcert: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetThumbPrint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrthumbprint: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ThumbPrint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrthumbprint: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub binaryToString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32, strbinary: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pstrencoded: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub stringToBinary: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32, strencoded: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pstrbinary: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub addExtensionToRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub addAttributeToRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub addNameValuePairToRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub resetExtensions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub resetAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub createRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: CERT_CREATE_REQUEST_FLAGS, strdnname: ::core::mem::ManuallyDrop, usage: ::core::mem::ManuallyDrop, pstrrequest: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - createRequest: usize, - #[cfg(feature = "Win32_Foundation")] - pub createFileRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: CERT_CREATE_REQUEST_FLAGS, strdnname: ::core::mem::ManuallyDrop, strusage: ::core::mem::ManuallyDrop, strrequestfilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - createFileRequest: usize, - #[cfg(feature = "Win32_Foundation")] - pub acceptResponse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strresponse: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - acceptResponse: usize, - #[cfg(feature = "Win32_Foundation")] - pub acceptFileResponse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strresponsefilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - acceptFileResponse: usize, - #[cfg(feature = "Win32_Foundation")] - pub getCertFromResponse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strresponse: ::core::mem::ManuallyDrop, pstrcert: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getCertFromResponse: usize, - #[cfg(feature = "Win32_Foundation")] - pub getCertFromFileResponse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strresponsefilename: ::core::mem::ManuallyDrop, pstrcert: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getCertFromFileResponse: usize, - #[cfg(feature = "Win32_Foundation")] - pub createPFX: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpassword: ::core::mem::ManuallyDrop, pstrpfx: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - createPFX: usize, - #[cfg(feature = "Win32_Foundation")] - pub createFilePFX: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpassword: ::core::mem::ManuallyDrop, strpfxfilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - createFilePFX: usize, - #[cfg(feature = "Win32_Foundation")] - pub setPendingRequestInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lrequestid: i32, strcadns: ::core::mem::ManuallyDrop, strcaname: ::core::mem::ManuallyDrop, strfriendlyname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - setPendingRequestInfo: usize, + pub createRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: CERT_CREATE_REQUEST_FLAGS, strdnname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, usage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pstrrequest: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub createFileRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: CERT_CREATE_REQUEST_FLAGS, strdnname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strusage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strrequestfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub acceptResponse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strresponse: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub acceptFileResponse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strresponsefilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub getCertFromResponse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strresponse: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pstrcert: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub getCertFromFileResponse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strresponsefilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pstrcert: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub createPFX: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pstrpfx: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub createFilePFX: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpfxfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub setPendingRequestInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lrequestid: i32, strcadns: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strcaname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strfriendlyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub enumPendingRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lindex: i32, ldesiredproperty: PENDING_REQUEST_DESIRED_PROPERTY, pvarproperty: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] enumPendingRequest: usize, - #[cfg(feature = "Win32_Foundation")] - pub removePendingRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strthumbprint: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - removePendingRequest: usize, + pub removePendingRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strthumbprint: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetKeyLenEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lsizespec: XEKL_KEYSIZE, lkeyspec: XEKL_KEYSPEC, pdwkeysize: *mut i32) -> ::windows::core::HRESULT, + pub InstallPKCS7Ex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pkcs7: ::core::mem::ManuallyDrop<::windows::core::BSTR>, plcertinstalled: *mut i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub InstallPKCS7Ex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pkcs7: ::core::mem::ManuallyDrop, plcertinstalled: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InstallPKCS7Ex: usize, - #[cfg(feature = "Win32_Foundation")] - pub addCertTypeToRequestEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ltype: ADDED_CERT_TYPE, bstroidorname: ::core::mem::ManuallyDrop, lmajorversion: i32, fminorversion: super::super::super::Foundation::BOOL, lminorversion: i32) -> ::windows::core::HRESULT, + pub addCertTypeToRequestEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ltype: ADDED_CERT_TYPE, bstroidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lmajorversion: i32, fminorversion: super::super::super::Foundation::BOOL, lminorversion: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] addCertTypeToRequestEx: usize, - #[cfg(feature = "Win32_Foundation")] - pub getProviderType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strprovname: ::core::mem::ManuallyDrop, plprovtype: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getProviderType: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSignerCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcert: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSignerCertificate: usize, + pub getProviderType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strprovname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, plprovtype: *mut i32) -> ::windows::core::HRESULT, + pub SetSignerCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcert: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetClientId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lclientid: i32) -> ::windows::core::HRESULT, pub ClientId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plclientid: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub addBlobPropertyToCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpropertyid: i32, lreserved: i32, bstrproperty: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - addBlobPropertyToCertificate: usize, + pub addBlobPropertyToCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpropertyid: i32, lreserved: i32, bstrproperty: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub resetBlobProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub SetIncludeSubjectKeyID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, finclude: super::super::super::Foundation::BOOL) -> ::windows::core::HRESULT, @@ -3472,90 +2565,42 @@ pub struct ICEnroll4_Vtbl { pub struct ICertAdmin(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertAdmin { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsValidCertificate<'a, P0, P1>(&self, strconfig: P0, strserialnumber: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn IsValidCertificate(&self, strconfig: &::windows::core::BSTR, strserialnumber: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).IsValidCertificate)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), strserialnumber.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).IsValidCertificate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), ::core::mem::transmute_copy(strserialnumber), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn GetRevocationReason(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetRevocationReason)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RevokeCertificate<'a, P0, P1>(&self, strconfig: P0, strserialnumber: P1, reason: i32, date: f64) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).RevokeCertificate)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), strserialnumber.into().abi(), reason, date).ok() + pub unsafe fn RevokeCertificate(&self, strconfig: &::windows::core::BSTR, strserialnumber: &::windows::core::BSTR, reason: i32, date: f64) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).RevokeCertificate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), ::core::mem::transmute_copy(strserialnumber), reason, date).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRequestAttributes<'a, P0, P1>(&self, strconfig: P0, requestid: i32, strattributes: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetRequestAttributes)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), requestid, strattributes.into().abi()).ok() + pub unsafe fn SetRequestAttributes(&self, strconfig: &::windows::core::BSTR, requestid: i32, strattributes: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetRequestAttributes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), requestid, ::core::mem::transmute_copy(strattributes)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn SetCertificateExtension<'a, P0, P1>(&self, strconfig: P0, requestid: i32, strextensionname: P1, r#type: CERT_PROPERTY_TYPE, flags: i32, pvarvalue: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetCertificateExtension)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), requestid, strextensionname.into().abi(), r#type, flags, ::core::mem::transmute(pvarvalue)).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DenyRequest<'a, P0>(&self, strconfig: P0, requestid: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DenyRequest)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), requestid).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ResubmitRequest<'a, P0>(&self, strconfig: P0, requestid: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn SetCertificateExtension(&self, strconfig: &::windows::core::BSTR, requestid: i32, strextensionname: &::windows::core::BSTR, r#type: CERT_PROPERTY_TYPE, flags: i32, pvarvalue: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetCertificateExtension)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), requestid, ::core::mem::transmute_copy(strextensionname), r#type, flags, ::core::mem::transmute(pvarvalue)).ok() + } + pub unsafe fn DenyRequest(&self, strconfig: &::windows::core::BSTR, requestid: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DenyRequest)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), requestid).ok() + } + pub unsafe fn ResubmitRequest(&self, strconfig: &::windows::core::BSTR, requestid: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ResubmitRequest)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), requestid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ResubmitRequest)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), requestid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PublishCRL<'a, P0>(&self, strconfig: P0, date: f64) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).PublishCRL)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), date).ok() + pub unsafe fn PublishCRL(&self, strconfig: &::windows::core::BSTR, date: f64) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).PublishCRL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), date).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCRL<'a, P0>(&self, strconfig: P0, flags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetCRL(&self, strconfig: &::windows::core::BSTR, flags: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetCRL)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetCRL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ImportCertificate<'a, P0, P1>(&self, strconfig: P0, strcertificate: P1, flags: CERT_IMPORT_FLAGS) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn ImportCertificate(&self, strconfig: &::windows::core::BSTR, strcertificate: &::windows::core::BSTR, flags: CERT_IMPORT_FLAGS) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ImportCertificate)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), strcertificate.into().abi(), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ImportCertificate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), ::core::mem::transmute_copy(strcertificate), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -3624,43 +2669,19 @@ unsafe impl ::windows::core::Interface for ICertAdmin { #[doc(hidden)] pub struct ICertAdmin_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub IsValidCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, strserialnumber: ::core::mem::ManuallyDrop, pdisposition: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - IsValidCertificate: usize, + pub IsValidCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strserialnumber: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdisposition: *mut i32) -> ::windows::core::HRESULT, pub GetRevocationReason: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, preason: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub RevokeCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, strserialnumber: ::core::mem::ManuallyDrop, reason: i32, date: f64) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RevokeCertificate: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetRequestAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, requestid: i32, strattributes: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetRequestAttributes: usize, + pub RevokeCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strserialnumber: ::core::mem::ManuallyDrop<::windows::core::BSTR>, reason: i32, date: f64) -> ::windows::core::HRESULT, + pub SetRequestAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, requestid: i32, strattributes: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub SetCertificateExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, requestid: i32, strextensionname: ::core::mem::ManuallyDrop, r#type: CERT_PROPERTY_TYPE, flags: i32, pvarvalue: *const super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub SetCertificateExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, requestid: i32, strextensionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, r#type: CERT_PROPERTY_TYPE, flags: i32, pvarvalue: *const super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SetCertificateExtension: usize, - #[cfg(feature = "Win32_Foundation")] - pub DenyRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, requestid: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DenyRequest: usize, - #[cfg(feature = "Win32_Foundation")] - pub ResubmitRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, requestid: i32, pdisposition: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ResubmitRequest: usize, - #[cfg(feature = "Win32_Foundation")] - pub PublishCRL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, date: f64) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PublishCRL: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetCRL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, flags: i32, pstrcrl: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetCRL: usize, - #[cfg(feature = "Win32_Foundation")] - pub ImportCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, strcertificate: ::core::mem::ManuallyDrop, flags: CERT_IMPORT_FLAGS, prequestid: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ImportCertificate: usize, + pub DenyRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, requestid: i32) -> ::windows::core::HRESULT, + pub ResubmitRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, requestid: i32, pdisposition: *mut i32) -> ::windows::core::HRESULT, + pub PublishCRL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, date: f64) -> ::windows::core::HRESULT, + pub GetCRL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: i32, pstrcrl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ImportCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strcertificate: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: CERT_IMPORT_FLAGS, prequestid: *mut i32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3668,191 +2689,90 @@ pub struct ICertAdmin_Vtbl { pub struct ICertAdmin2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertAdmin2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsValidCertificate<'a, P0, P1>(&self, strconfig: P0, strserialnumber: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn IsValidCertificate(&self, strconfig: &::windows::core::BSTR, strserialnumber: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.IsValidCertificate)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), strserialnumber.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.IsValidCertificate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), ::core::mem::transmute_copy(strserialnumber), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn GetRevocationReason(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetRevocationReason)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RevokeCertificate<'a, P0, P1>(&self, strconfig: P0, strserialnumber: P1, reason: i32, date: f64) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.RevokeCertificate)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), strserialnumber.into().abi(), reason, date).ok() + pub unsafe fn RevokeCertificate(&self, strconfig: &::windows::core::BSTR, strserialnumber: &::windows::core::BSTR, reason: i32, date: f64) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.RevokeCertificate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), ::core::mem::transmute_copy(strserialnumber), reason, date).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRequestAttributes<'a, P0, P1>(&self, strconfig: P0, requestid: i32, strattributes: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetRequestAttributes)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), requestid, strattributes.into().abi()).ok() + pub unsafe fn SetRequestAttributes(&self, strconfig: &::windows::core::BSTR, requestid: i32, strattributes: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetRequestAttributes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), requestid, ::core::mem::transmute_copy(strattributes)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn SetCertificateExtension<'a, P0, P1>(&self, strconfig: P0, requestid: i32, strextensionname: P1, r#type: CERT_PROPERTY_TYPE, flags: i32, pvarvalue: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetCertificateExtension)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), requestid, strextensionname.into().abi(), r#type, flags, ::core::mem::transmute(pvarvalue)).ok() + pub unsafe fn SetCertificateExtension(&self, strconfig: &::windows::core::BSTR, requestid: i32, strextensionname: &::windows::core::BSTR, r#type: CERT_PROPERTY_TYPE, flags: i32, pvarvalue: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetCertificateExtension)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), requestid, ::core::mem::transmute_copy(strextensionname), r#type, flags, ::core::mem::transmute(pvarvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DenyRequest<'a, P0>(&self, strconfig: P0, requestid: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.DenyRequest)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), requestid).ok() + pub unsafe fn DenyRequest(&self, strconfig: &::windows::core::BSTR, requestid: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.DenyRequest)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), requestid).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ResubmitRequest<'a, P0>(&self, strconfig: P0, requestid: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn ResubmitRequest(&self, strconfig: &::windows::core::BSTR, requestid: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ResubmitRequest)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), requestid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ResubmitRequest)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), requestid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PublishCRL<'a, P0>(&self, strconfig: P0, date: f64) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.PublishCRL)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), date).ok() + pub unsafe fn PublishCRL(&self, strconfig: &::windows::core::BSTR, date: f64) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.PublishCRL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), date).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCRL<'a, P0>(&self, strconfig: P0, flags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetCRL(&self, strconfig: &::windows::core::BSTR, flags: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetCRL)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetCRL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ImportCertificate<'a, P0, P1>(&self, strconfig: P0, strcertificate: P1, flags: CERT_IMPORT_FLAGS) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn ImportCertificate(&self, strconfig: &::windows::core::BSTR, strcertificate: &::windows::core::BSTR, flags: CERT_IMPORT_FLAGS) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ImportCertificate)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), strcertificate.into().abi(), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ImportCertificate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), ::core::mem::transmute_copy(strcertificate), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PublishCRLs<'a, P0>(&self, strconfig: P0, date: f64, crlflags: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).PublishCRLs)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), date, crlflags).ok() + pub unsafe fn PublishCRLs(&self, strconfig: &::windows::core::BSTR, date: f64, crlflags: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).PublishCRLs)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), date, crlflags).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetCAProperty<'a, P0>(&self, strconfig: P0, propid: i32, propindex: i32, proptype: i32, flags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetCAProperty(&self, strconfig: &::windows::core::BSTR, propid: i32, propindex: i32, proptype: i32, flags: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetCAProperty)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), propid, propindex, proptype, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetCAProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), propid, propindex, proptype, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn SetCAProperty<'a, P0>(&self, strconfig: P0, propid: i32, propindex: i32, proptype: CERT_PROPERTY_TYPE, pvarpropertyvalue: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetCAProperty)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), propid, propindex, proptype, ::core::mem::transmute(pvarpropertyvalue)).ok() + pub unsafe fn SetCAProperty(&self, strconfig: &::windows::core::BSTR, propid: i32, propindex: i32, proptype: CERT_PROPERTY_TYPE, pvarpropertyvalue: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetCAProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), propid, propindex, proptype, ::core::mem::transmute(pvarpropertyvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCAPropertyFlags<'a, P0>(&self, strconfig: P0, propid: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetCAPropertyFlags(&self, strconfig: &::windows::core::BSTR, propid: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetCAPropertyFlags)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), propid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetCAPropertyFlags)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), propid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCAPropertyDisplayName<'a, P0>(&self, strconfig: P0, propid: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetCAPropertyDisplayName(&self, strconfig: &::windows::core::BSTR, propid: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetCAPropertyDisplayName)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), propid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetCAPropertyDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), propid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetArchivedKey<'a, P0>(&self, strconfig: P0, requestid: i32, flags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetArchivedKey(&self, strconfig: &::windows::core::BSTR, requestid: i32, flags: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetArchivedKey)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), requestid, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetArchivedKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), requestid, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetConfigEntry<'a, P0, P1, P2>(&self, strconfig: P0, strnodepath: P1, strentryname: P2) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetConfigEntry(&self, strconfig: &::windows::core::BSTR, strnodepath: &::windows::core::BSTR, strentryname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetConfigEntry)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), strnodepath.into().abi(), strentryname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetConfigEntry)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), ::core::mem::transmute_copy(strnodepath), ::core::mem::transmute_copy(strentryname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn SetConfigEntry<'a, P0, P1, P2>(&self, strconfig: P0, strnodepath: P1, strentryname: P2, pvarentry: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetConfigEntry)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), strnodepath.into().abi(), strentryname.into().abi(), ::core::mem::transmute(pvarentry)).ok() + pub unsafe fn SetConfigEntry(&self, strconfig: &::windows::core::BSTR, strnodepath: &::windows::core::BSTR, strentryname: &::windows::core::BSTR, pvarentry: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetConfigEntry)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), ::core::mem::transmute_copy(strnodepath), ::core::mem::transmute_copy(strentryname), ::core::mem::transmute(pvarentry)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ImportKey<'a, P0, P1, P2>(&self, strconfig: P0, requestid: i32, strcerthash: P1, flags: CERT_IMPORT_FLAGS, strkey: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ImportKey)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), requestid, strcerthash.into().abi(), flags, strkey.into().abi()).ok() + pub unsafe fn ImportKey(&self, strconfig: &::windows::core::BSTR, requestid: i32, strcerthash: &::windows::core::BSTR, flags: CERT_IMPORT_FLAGS, strkey: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ImportKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), requestid, ::core::mem::transmute_copy(strcerthash), flags, ::core::mem::transmute_copy(strkey)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetMyRoles<'a, P0>(&self, strconfig: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetMyRoles(&self, strconfig: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetMyRoles)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetMyRoles)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeleteRow<'a, P0>(&self, strconfig: P0, flags: CERT_DELETE_ROW_FLAGS, date: f64, table: CVRC_TABLE, rowid: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn DeleteRow(&self, strconfig: &::windows::core::BSTR, flags: CERT_DELETE_ROW_FLAGS, date: f64, table: CVRC_TABLE, rowid: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DeleteRow)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), flags, date, table, rowid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DeleteRow)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), flags, date, table, rowid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -3939,50 +2859,29 @@ unsafe impl ::windows::core::Interface for ICertAdmin2 { #[doc(hidden)] pub struct ICertAdmin2_Vtbl { pub base__: ICertAdmin_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub PublishCRLs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, date: f64, crlflags: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PublishCRLs: usize, + pub PublishCRLs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, date: f64, crlflags: i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetCAProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, propid: i32, propindex: i32, proptype: i32, flags: i32, pvarpropertyvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetCAProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propid: i32, propindex: i32, proptype: i32, flags: i32, pvarpropertyvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetCAProperty: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub SetCAProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, propid: i32, propindex: i32, proptype: CERT_PROPERTY_TYPE, pvarpropertyvalue: *const super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub SetCAProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propid: i32, propindex: i32, proptype: CERT_PROPERTY_TYPE, pvarpropertyvalue: *const super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SetCAProperty: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetCAPropertyFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, propid: i32, ppropflags: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetCAPropertyFlags: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetCAPropertyDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, propid: i32, pstrdisplayname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetCAPropertyDisplayName: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetArchivedKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, requestid: i32, flags: i32, pstrarchivedkey: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetArchivedKey: usize, + pub GetCAPropertyFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propid: i32, ppropflags: *mut i32) -> ::windows::core::HRESULT, + pub GetCAPropertyDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propid: i32, pstrdisplayname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetArchivedKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, requestid: i32, flags: i32, pstrarchivedkey: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetConfigEntry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, strnodepath: ::core::mem::ManuallyDrop, strentryname: ::core::mem::ManuallyDrop, pvarentry: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetConfigEntry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strnodepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strentryname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarentry: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetConfigEntry: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub SetConfigEntry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, strnodepath: ::core::mem::ManuallyDrop, strentryname: ::core::mem::ManuallyDrop, pvarentry: *const super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub SetConfigEntry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strnodepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strentryname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarentry: *const super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SetConfigEntry: usize, - #[cfg(feature = "Win32_Foundation")] - pub ImportKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, requestid: i32, strcerthash: ::core::mem::ManuallyDrop, flags: CERT_IMPORT_FLAGS, strkey: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ImportKey: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetMyRoles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, proles: *mut CERTADMIN_GET_ROLES_FLAGS) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetMyRoles: usize, - #[cfg(feature = "Win32_Foundation")] - pub DeleteRow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, flags: CERT_DELETE_ROW_FLAGS, date: f64, table: CVRC_TABLE, rowid: i32, pcdeleted: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeleteRow: usize, + pub ImportKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, requestid: i32, strcerthash: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: CERT_IMPORT_FLAGS, strkey: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetMyRoles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, proles: *mut CERTADMIN_GET_ROLES_FLAGS) -> ::windows::core::HRESULT, + pub DeleteRow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: CERT_DELETE_ROW_FLAGS, date: f64, table: CVRC_TABLE, rowid: i32, pcdeleted: *mut i32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3998,20 +2897,13 @@ impl ICertConfig { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Next)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetField<'a, P0>(&self, strfieldname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetField(&self, strfieldname: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetField)(::windows::core::Interface::as_raw(self), strfieldname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetField)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strfieldname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetConfig(&self, flags: i32) -> ::windows::core::Result { + pub unsafe fn GetConfig(&self, flags: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetConfig)(::windows::core::Interface::as_raw(self), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetConfig)(::windows::core::Interface::as_raw(self), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -4082,14 +2974,8 @@ pub struct ICertConfig_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, pcount: *mut i32) -> ::windows::core::HRESULT, pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pindex: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetField: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strfieldname: ::core::mem::ManuallyDrop, pstrout: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetField: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetConfig: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32, pstrout: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetConfig: usize, + pub GetField: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strfieldname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetConfig: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32, pstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4105,28 +2991,16 @@ impl ICertConfig2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Next)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetField<'a, P0>(&self, strfieldname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetField(&self, strfieldname: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetField)(::windows::core::Interface::as_raw(self), strfieldname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetField)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strfieldname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetConfig(&self, flags: i32) -> ::windows::core::Result { + pub unsafe fn GetConfig(&self, flags: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetConfig)(::windows::core::Interface::as_raw(self), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetConfig)(::windows::core::Interface::as_raw(self), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSharedFolder<'a, P0>(&self, strsharedfolder: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSharedFolder)(::windows::core::Interface::as_raw(self), strsharedfolder.into().abi()).ok() + pub unsafe fn SetSharedFolder(&self, strsharedfolder: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSharedFolder)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strsharedfolder)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4213,10 +3087,7 @@ unsafe impl ::windows::core::Interface for ICertConfig2 { #[doc(hidden)] pub struct ICertConfig2_Vtbl { pub base__: ICertConfig_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub SetSharedFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strsharedfolder: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSharedFolder: usize, + pub SetSharedFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strsharedfolder: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4224,13 +3095,8 @@ pub struct ICertConfig2_Vtbl { pub struct ICertEncodeAltName(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertEncodeAltName { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Decode<'a, P0>(&self, strbinary: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Decode)(::windows::core::Interface::as_raw(self), strbinary.into().abi()).ok() + pub unsafe fn Decode(&self, strbinary: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Decode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strbinary)).ok() } pub unsafe fn GetNameCount(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4240,28 +3106,19 @@ impl ICertEncodeAltName { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetNameChoice)(::windows::core::Interface::as_raw(self), nameindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self, nameindex: i32) -> ::windows::core::Result { + pub unsafe fn GetName(&self, nameindex: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), nameindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), nameindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Reset(&self, namecount: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Reset)(::windows::core::Interface::as_raw(self), namecount).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetNameEntry<'a, P0>(&self, nameindex: i32, namechoice: CERT_ALT_NAME, strname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetNameEntry)(::windows::core::Interface::as_raw(self), nameindex, namechoice, strname.into().abi()).ok() + pub unsafe fn SetNameEntry(&self, nameindex: i32, namechoice: CERT_ALT_NAME, strname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetNameEntry)(::windows::core::Interface::as_raw(self), nameindex, namechoice, ::core::mem::transmute_copy(strname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Encode(&self) -> ::windows::core::Result { + pub unsafe fn Encode(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Encode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Encode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -4330,25 +3187,13 @@ unsafe impl ::windows::core::Interface for ICertEncodeAltName { #[doc(hidden)] pub struct ICertEncodeAltName_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Decode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strbinary: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Decode: usize, + pub Decode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strbinary: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetNameCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnamecount: *mut i32) -> ::windows::core::HRESULT, pub GetNameChoice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nameindex: i32, pnamechoice: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nameindex: i32, pstrname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetName: usize, + pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nameindex: i32, pstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, namecount: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetNameEntry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nameindex: i32, namechoice: CERT_ALT_NAME, strname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetNameEntry: usize, - #[cfg(feature = "Win32_Foundation")] - pub Encode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrbinary: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Encode: usize, + pub SetNameEntry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nameindex: i32, namechoice: CERT_ALT_NAME, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Encode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrbinary: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4356,13 +3201,8 @@ pub struct ICertEncodeAltName_Vtbl { pub struct ICertEncodeAltName2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertEncodeAltName2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Decode<'a, P0>(&self, strbinary: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.Decode)(::windows::core::Interface::as_raw(self), strbinary.into().abi()).ok() + pub unsafe fn Decode(&self, strbinary: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.Decode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strbinary)).ok() } pub unsafe fn GetNameCount(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4372,56 +3212,33 @@ impl ICertEncodeAltName2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetNameChoice)(::windows::core::Interface::as_raw(self), nameindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self, nameindex: i32) -> ::windows::core::Result { + pub unsafe fn GetName(&self, nameindex: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), nameindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), nameindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Reset(&self, namecount: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Reset)(::windows::core::Interface::as_raw(self), namecount).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetNameEntry<'a, P0>(&self, nameindex: i32, namechoice: CERT_ALT_NAME, strname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetNameEntry)(::windows::core::Interface::as_raw(self), nameindex, namechoice, strname.into().abi()).ok() + pub unsafe fn SetNameEntry(&self, nameindex: i32, namechoice: CERT_ALT_NAME, strname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetNameEntry)(::windows::core::Interface::as_raw(self), nameindex, namechoice, ::core::mem::transmute_copy(strname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Encode(&self) -> ::windows::core::Result { + pub unsafe fn Encode(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Encode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Encode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DecodeBlob<'a, P0>(&self, strencodeddata: P0, encoding: EncodingType) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DecodeBlob)(::windows::core::Interface::as_raw(self), strencodeddata.into().abi(), encoding).ok() + pub unsafe fn DecodeBlob(&self, strencodeddata: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DecodeBlob)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strencodeddata), encoding).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EncodeBlob(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn EncodeBlob(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).EncodeBlob)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).EncodeBlob)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetNameBlob(&self, nameindex: i32, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn GetNameBlob(&self, nameindex: i32, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetNameBlob)(::windows::core::Interface::as_raw(self), nameindex, encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetNameBlob)(::windows::core::Interface::as_raw(self), nameindex, encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetNameEntryBlob<'a, P0>(&self, nameindex: i32, namechoice: i32, strname: P0, encoding: EncodingType) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetNameEntryBlob)(::windows::core::Interface::as_raw(self), nameindex, namechoice, strname.into().abi(), encoding).ok() + pub unsafe fn SetNameEntryBlob(&self, nameindex: i32, namechoice: i32, strname: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetNameEntryBlob)(::windows::core::Interface::as_raw(self), nameindex, namechoice, ::core::mem::transmute_copy(strname), encoding).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4508,22 +3325,10 @@ unsafe impl ::windows::core::Interface for ICertEncodeAltName2 { #[doc(hidden)] pub struct ICertEncodeAltName2_Vtbl { pub base__: ICertEncodeAltName_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub DecodeBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strencodeddata: ::core::mem::ManuallyDrop, encoding: EncodingType) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DecodeBlob: usize, - #[cfg(feature = "Win32_Foundation")] - pub EncodeBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pstrencodeddata: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EncodeBlob: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetNameBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nameindex: i32, encoding: EncodingType, pstrname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetNameBlob: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetNameEntryBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nameindex: i32, namechoice: i32, strname: ::core::mem::ManuallyDrop, encoding: EncodingType) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetNameEntryBlob: usize, + pub DecodeBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType) -> ::windows::core::HRESULT, + pub EncodeBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pstrencodeddata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetNameBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nameindex: i32, encoding: EncodingType, pstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetNameEntryBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nameindex: i32, namechoice: i32, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4531,32 +3336,20 @@ pub struct ICertEncodeAltName2_Vtbl { pub struct ICertEncodeBitString(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertEncodeBitString { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Decode<'a, P0>(&self, strbinary: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Decode)(::windows::core::Interface::as_raw(self), strbinary.into().abi()).ok() + pub unsafe fn Decode(&self, strbinary: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Decode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strbinary)).ok() } pub unsafe fn GetBitCount(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetBitCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetBitString(&self) -> ::windows::core::Result { + pub unsafe fn GetBitString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetBitString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetBitString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Encode<'a, P0>(&self, bitcount: i32, strbitstring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn Encode(&self, bitcount: i32, strbitstring: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Encode)(::windows::core::Interface::as_raw(self), bitcount, strbitstring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Encode)(::windows::core::Interface::as_raw(self), bitcount, ::core::mem::transmute_copy(strbitstring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -4625,19 +3418,10 @@ unsafe impl ::windows::core::Interface for ICertEncodeBitString { #[doc(hidden)] pub struct ICertEncodeBitString_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Decode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strbinary: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Decode: usize, + pub Decode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strbinary: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetBitCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbitcount: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetBitString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrbitstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetBitString: usize, - #[cfg(feature = "Win32_Foundation")] - pub Encode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bitcount: i32, strbitstring: ::core::mem::ManuallyDrop, pstrbinary: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Encode: usize, + pub GetBitString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrbitstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Encode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bitcount: i32, strbitstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pstrbinary: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4645,55 +3429,31 @@ pub struct ICertEncodeBitString_Vtbl { pub struct ICertEncodeBitString2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertEncodeBitString2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Decode<'a, P0>(&self, strbinary: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.Decode)(::windows::core::Interface::as_raw(self), strbinary.into().abi()).ok() + pub unsafe fn Decode(&self, strbinary: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.Decode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strbinary)).ok() } pub unsafe fn GetBitCount(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetBitCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetBitString(&self) -> ::windows::core::Result { + pub unsafe fn GetBitString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetBitString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetBitString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Encode<'a, P0>(&self, bitcount: i32, strbitstring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn Encode(&self, bitcount: i32, strbitstring: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Encode)(::windows::core::Interface::as_raw(self), bitcount, strbitstring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Encode)(::windows::core::Interface::as_raw(self), bitcount, ::core::mem::transmute_copy(strbitstring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DecodeBlob<'a, P0>(&self, strencodeddata: P0, encoding: EncodingType) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DecodeBlob)(::windows::core::Interface::as_raw(self), strencodeddata.into().abi(), encoding).ok() + pub unsafe fn DecodeBlob(&self, strencodeddata: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DecodeBlob)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strencodeddata), encoding).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EncodeBlob<'a, P0>(&self, bitcount: i32, strbitstring: P0, encodingin: EncodingType, encoding: EncodingType) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn EncodeBlob(&self, bitcount: i32, strbitstring: &::windows::core::BSTR, encodingin: EncodingType, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).EncodeBlob)(::windows::core::Interface::as_raw(self), bitcount, strbitstring.into().abi(), encodingin, encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).EncodeBlob)(::windows::core::Interface::as_raw(self), bitcount, ::core::mem::transmute_copy(strbitstring), encodingin, encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetBitStringBlob(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn GetBitStringBlob(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetBitStringBlob)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetBitStringBlob)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -4780,18 +3540,9 @@ unsafe impl ::windows::core::Interface for ICertEncodeBitString2 { #[doc(hidden)] pub struct ICertEncodeBitString2_Vtbl { pub base__: ICertEncodeBitString_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub DecodeBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strencodeddata: ::core::mem::ManuallyDrop, encoding: EncodingType) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DecodeBlob: usize, - #[cfg(feature = "Win32_Foundation")] - pub EncodeBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bitcount: i32, strbitstring: ::core::mem::ManuallyDrop, encodingin: EncodingType, encoding: EncodingType, pstrencodeddata: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EncodeBlob: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetBitStringBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pstrbitstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetBitStringBlob: usize, + pub DecodeBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType) -> ::windows::core::HRESULT, + pub EncodeBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bitcount: i32, strbitstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encodingin: EncodingType, encoding: EncodingType, pstrencodeddata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetBitStringBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pstrbitstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4799,13 +3550,8 @@ pub struct ICertEncodeBitString2_Vtbl { pub struct ICertEncodeCRLDistInfo(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertEncodeCRLDistInfo { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Decode<'a, P0>(&self, strbinary: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Decode)(::windows::core::Interface::as_raw(self), strbinary.into().abi()).ok() + pub unsafe fn Decode(&self, strbinary: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Decode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strbinary)).ok() } pub unsafe fn GetDistPointCount(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4819,11 +3565,9 @@ impl ICertEncodeCRLDistInfo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetNameChoice)(::windows::core::Interface::as_raw(self), distpointindex, nameindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self, distpointindex: i32, nameindex: i32) -> ::windows::core::Result { + pub unsafe fn GetName(&self, distpointindex: i32, nameindex: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), distpointindex, nameindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), distpointindex, nameindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Reset(&self, distpointcount: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Reset)(::windows::core::Interface::as_raw(self), distpointcount).ok() @@ -4831,19 +3575,12 @@ impl ICertEncodeCRLDistInfo { pub unsafe fn SetNameCount(&self, distpointindex: i32, namecount: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetNameCount)(::windows::core::Interface::as_raw(self), distpointindex, namecount).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetNameEntry<'a, P0>(&self, distpointindex: i32, nameindex: i32, namechoice: CERT_ALT_NAME, strname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetNameEntry)(::windows::core::Interface::as_raw(self), distpointindex, nameindex, namechoice, strname.into().abi()).ok() + pub unsafe fn SetNameEntry(&self, distpointindex: i32, nameindex: i32, namechoice: CERT_ALT_NAME, strname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetNameEntry)(::windows::core::Interface::as_raw(self), distpointindex, nameindex, namechoice, ::core::mem::transmute_copy(strname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Encode(&self) -> ::windows::core::Result { + pub unsafe fn Encode(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Encode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Encode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -4912,41 +3649,24 @@ unsafe impl ::windows::core::Interface for ICertEncodeCRLDistInfo { #[doc(hidden)] pub struct ICertEncodeCRLDistInfo_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Decode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strbinary: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Decode: usize, + pub Decode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strbinary: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetDistPointCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdistpointcount: *mut i32) -> ::windows::core::HRESULT, pub GetNameCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, distpointindex: i32, pnamecount: *mut i32) -> ::windows::core::HRESULT, pub GetNameChoice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, distpointindex: i32, nameindex: i32, pnamechoice: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, distpointindex: i32, nameindex: i32, pstrname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetName: usize, + pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, distpointindex: i32, nameindex: i32, pstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, distpointcount: i32) -> ::windows::core::HRESULT, pub SetNameCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, distpointindex: i32, namecount: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetNameEntry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, distpointindex: i32, nameindex: i32, namechoice: CERT_ALT_NAME, strname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetNameEntry: usize, - #[cfg(feature = "Win32_Foundation")] - pub Encode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrbinary: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Encode: usize, + pub SetNameEntry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, distpointindex: i32, nameindex: i32, namechoice: CERT_ALT_NAME, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Encode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrbinary: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] #[repr(transparent)] pub struct ICertEncodeCRLDistInfo2(::windows::core::IUnknown); -#[cfg(feature = "Win32_System_Com")] -impl ICertEncodeCRLDistInfo2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Decode<'a, P0>(&self, strbinary: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.Decode)(::windows::core::Interface::as_raw(self), strbinary.into().abi()).ok() +#[cfg(feature = "Win32_System_Com")] +impl ICertEncodeCRLDistInfo2 { + pub unsafe fn Decode(&self, strbinary: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.Decode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strbinary)).ok() } pub unsafe fn GetDistPointCount(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4960,11 +3680,9 @@ impl ICertEncodeCRLDistInfo2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetNameChoice)(::windows::core::Interface::as_raw(self), distpointindex, nameindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self, distpointindex: i32, nameindex: i32) -> ::windows::core::Result { + pub unsafe fn GetName(&self, distpointindex: i32, nameindex: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), distpointindex, nameindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), distpointindex, nameindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Reset(&self, distpointcount: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Reset)(::windows::core::Interface::as_raw(self), distpointcount).ok() @@ -4972,33 +3690,19 @@ impl ICertEncodeCRLDistInfo2 { pub unsafe fn SetNameCount(&self, distpointindex: i32, namecount: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetNameCount)(::windows::core::Interface::as_raw(self), distpointindex, namecount).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetNameEntry<'a, P0>(&self, distpointindex: i32, nameindex: i32, namechoice: CERT_ALT_NAME, strname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetNameEntry)(::windows::core::Interface::as_raw(self), distpointindex, nameindex, namechoice, strname.into().abi()).ok() + pub unsafe fn SetNameEntry(&self, distpointindex: i32, nameindex: i32, namechoice: CERT_ALT_NAME, strname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetNameEntry)(::windows::core::Interface::as_raw(self), distpointindex, nameindex, namechoice, ::core::mem::transmute_copy(strname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Encode(&self) -> ::windows::core::Result { + pub unsafe fn Encode(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Encode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Encode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DecodeBlob<'a, P0>(&self, strencodeddata: P0, encoding: EncodingType) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DecodeBlob)(::windows::core::Interface::as_raw(self), strencodeddata.into().abi(), encoding).ok() + pub unsafe fn DecodeBlob(&self, strencodeddata: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DecodeBlob)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strencodeddata), encoding).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EncodeBlob(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn EncodeBlob(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).EncodeBlob)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).EncodeBlob)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -5085,14 +3789,8 @@ unsafe impl ::windows::core::Interface for ICertEncodeCRLDistInfo2 { #[doc(hidden)] pub struct ICertEncodeCRLDistInfo2_Vtbl { pub base__: ICertEncodeCRLDistInfo_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub DecodeBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strencodeddata: ::core::mem::ManuallyDrop, encoding: EncodingType) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DecodeBlob: usize, - #[cfg(feature = "Win32_Foundation")] - pub EncodeBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pstrencodeddata: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EncodeBlob: usize, + pub DecodeBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType) -> ::windows::core::HRESULT, + pub EncodeBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pstrencodeddata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5100,13 +3798,8 @@ pub struct ICertEncodeCRLDistInfo2_Vtbl { pub struct ICertEncodeDateArray(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertEncodeDateArray { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Decode<'a, P0>(&self, strbinary: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Decode)(::windows::core::Interface::as_raw(self), strbinary.into().abi()).ok() + pub unsafe fn Decode(&self, strbinary: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Decode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strbinary)).ok() } pub unsafe fn GetCount(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5122,11 +3815,9 @@ impl ICertEncodeDateArray { pub unsafe fn SetValue(&self, index: i32, value: f64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetValue)(::windows::core::Interface::as_raw(self), index, value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Encode(&self) -> ::windows::core::Result { + pub unsafe fn Encode(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Encode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Encode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -5195,18 +3886,12 @@ unsafe impl ::windows::core::Interface for ICertEncodeDateArray { #[doc(hidden)] pub struct ICertEncodeDateArray_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Decode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strbinary: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Decode: usize, + pub Decode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strbinary: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcount: *mut i32) -> ::windows::core::HRESULT, pub GetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, pvalue: *mut f64) -> ::windows::core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: i32) -> ::windows::core::HRESULT, pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, value: f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Encode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrbinary: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Encode: usize, + pub Encode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrbinary: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5214,13 +3899,8 @@ pub struct ICertEncodeDateArray_Vtbl { pub struct ICertEncodeDateArray2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertEncodeDateArray2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Decode<'a, P0>(&self, strbinary: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.Decode)(::windows::core::Interface::as_raw(self), strbinary.into().abi()).ok() + pub unsafe fn Decode(&self, strbinary: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.Decode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strbinary)).ok() } pub unsafe fn GetCount(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5236,25 +3916,16 @@ impl ICertEncodeDateArray2 { pub unsafe fn SetValue(&self, index: i32, value: f64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetValue)(::windows::core::Interface::as_raw(self), index, value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Encode(&self) -> ::windows::core::Result { + pub unsafe fn Encode(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Encode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Encode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DecodeBlob<'a, P0>(&self, strencodeddata: P0, encoding: EncodingType) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DecodeBlob)(::windows::core::Interface::as_raw(self), strencodeddata.into().abi(), encoding).ok() + pub unsafe fn DecodeBlob(&self, strencodeddata: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DecodeBlob)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strencodeddata), encoding).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EncodeBlob(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn EncodeBlob(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).EncodeBlob)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).EncodeBlob)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -5341,14 +4012,8 @@ unsafe impl ::windows::core::Interface for ICertEncodeDateArray2 { #[doc(hidden)] pub struct ICertEncodeDateArray2_Vtbl { pub base__: ICertEncodeDateArray_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub DecodeBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strencodeddata: ::core::mem::ManuallyDrop, encoding: EncodingType) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DecodeBlob: usize, - #[cfg(feature = "Win32_Foundation")] - pub EncodeBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pstrencodeddata: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EncodeBlob: usize, + pub DecodeBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType) -> ::windows::core::HRESULT, + pub EncodeBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pstrencodeddata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5356,13 +4021,8 @@ pub struct ICertEncodeDateArray2_Vtbl { pub struct ICertEncodeLongArray(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertEncodeLongArray { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Decode<'a, P0>(&self, strbinary: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Decode)(::windows::core::Interface::as_raw(self), strbinary.into().abi()).ok() + pub unsafe fn Decode(&self, strbinary: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Decode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strbinary)).ok() } pub unsafe fn GetCount(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5378,11 +4038,9 @@ impl ICertEncodeLongArray { pub unsafe fn SetValue(&self, index: i32, value: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetValue)(::windows::core::Interface::as_raw(self), index, value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Encode(&self) -> ::windows::core::Result { + pub unsafe fn Encode(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Encode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Encode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -5451,18 +4109,12 @@ unsafe impl ::windows::core::Interface for ICertEncodeLongArray { #[doc(hidden)] pub struct ICertEncodeLongArray_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Decode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strbinary: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Decode: usize, + pub Decode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strbinary: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcount: *mut i32) -> ::windows::core::HRESULT, pub GetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, pvalue: *mut i32) -> ::windows::core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: i32) -> ::windows::core::HRESULT, pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, value: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Encode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrbinary: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Encode: usize, + pub Encode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrbinary: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5470,13 +4122,8 @@ pub struct ICertEncodeLongArray_Vtbl { pub struct ICertEncodeLongArray2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertEncodeLongArray2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Decode<'a, P0>(&self, strbinary: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.Decode)(::windows::core::Interface::as_raw(self), strbinary.into().abi()).ok() + pub unsafe fn Decode(&self, strbinary: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.Decode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strbinary)).ok() } pub unsafe fn GetCount(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5492,25 +4139,16 @@ impl ICertEncodeLongArray2 { pub unsafe fn SetValue(&self, index: i32, value: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetValue)(::windows::core::Interface::as_raw(self), index, value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Encode(&self) -> ::windows::core::Result { + pub unsafe fn Encode(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Encode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Encode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DecodeBlob<'a, P0>(&self, strencodeddata: P0, encoding: EncodingType) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DecodeBlob)(::windows::core::Interface::as_raw(self), strencodeddata.into().abi(), encoding).ok() + pub unsafe fn DecodeBlob(&self, strencodeddata: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DecodeBlob)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strencodeddata), encoding).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EncodeBlob(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn EncodeBlob(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).EncodeBlob)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).EncodeBlob)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -5597,14 +4235,8 @@ unsafe impl ::windows::core::Interface for ICertEncodeLongArray2 { #[doc(hidden)] pub struct ICertEncodeLongArray2_Vtbl { pub base__: ICertEncodeLongArray_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub DecodeBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strencodeddata: ::core::mem::ManuallyDrop, encoding: EncodingType) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DecodeBlob: usize, - #[cfg(feature = "Win32_Foundation")] - pub EncodeBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pstrencodeddata: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EncodeBlob: usize, + pub DecodeBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType) -> ::windows::core::HRESULT, + pub EncodeBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pstrencodeddata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5612,13 +4244,8 @@ pub struct ICertEncodeLongArray2_Vtbl { pub struct ICertEncodeStringArray(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertEncodeStringArray { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Decode<'a, P0>(&self, strbinary: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Decode)(::windows::core::Interface::as_raw(self), strbinary.into().abi()).ok() + pub unsafe fn Decode(&self, strbinary: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Decode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strbinary)).ok() } pub unsafe fn GetStringType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5628,28 +4255,19 @@ impl ICertEncodeStringArray { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetValue(&self, index: i32) -> ::windows::core::Result { + pub unsafe fn GetValue(&self, index: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetValue)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetValue)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Reset(&self, count: i32, stringtype: super::CERT_RDN_ATTR_VALUE_TYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Reset)(::windows::core::Interface::as_raw(self), count, stringtype).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetValue<'a, P0>(&self, index: i32, str: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetValue)(::windows::core::Interface::as_raw(self), index, str.into().abi()).ok() + pub unsafe fn SetValue(&self, index: i32, str: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetValue)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute_copy(str)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Encode(&self) -> ::windows::core::Result { + pub unsafe fn Encode(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Encode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Encode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -5718,25 +4336,13 @@ unsafe impl ::windows::core::Interface for ICertEncodeStringArray { #[doc(hidden)] pub struct ICertEncodeStringArray_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Decode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strbinary: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Decode: usize, + pub Decode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strbinary: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetStringType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstringtype: *mut i32) -> ::windows::core::HRESULT, pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcount: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, pstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetValue: usize, + pub GetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, pstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: i32, stringtype: super::CERT_RDN_ATTR_VALUE_TYPE) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, str: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetValue: usize, - #[cfg(feature = "Win32_Foundation")] - pub Encode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrbinary: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Encode: usize, + pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, str: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Encode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrbinary: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5744,13 +4350,8 @@ pub struct ICertEncodeStringArray_Vtbl { pub struct ICertEncodeStringArray2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertEncodeStringArray2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Decode<'a, P0>(&self, strbinary: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.Decode)(::windows::core::Interface::as_raw(self), strbinary.into().abi()).ok() + pub unsafe fn Decode(&self, strbinary: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.Decode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strbinary)).ok() } pub unsafe fn GetStringType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5760,42 +4361,26 @@ impl ICertEncodeStringArray2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetValue(&self, index: i32) -> ::windows::core::Result { + pub unsafe fn GetValue(&self, index: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetValue)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetValue)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Reset(&self, count: i32, stringtype: super::CERT_RDN_ATTR_VALUE_TYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Reset)(::windows::core::Interface::as_raw(self), count, stringtype).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetValue<'a, P0>(&self, index: i32, str: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetValue)(::windows::core::Interface::as_raw(self), index, str.into().abi()).ok() + pub unsafe fn SetValue(&self, index: i32, str: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetValue)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute_copy(str)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Encode(&self) -> ::windows::core::Result { + pub unsafe fn Encode(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Encode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Encode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DecodeBlob<'a, P0>(&self, strencodeddata: P0, encoding: EncodingType) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DecodeBlob)(::windows::core::Interface::as_raw(self), strencodeddata.into().abi(), encoding).ok() + pub unsafe fn DecodeBlob(&self, strencodeddata: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DecodeBlob)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strencodeddata), encoding).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EncodeBlob(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn EncodeBlob(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).EncodeBlob)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).EncodeBlob)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -5882,14 +4467,8 @@ unsafe impl ::windows::core::Interface for ICertEncodeStringArray2 { #[doc(hidden)] pub struct ICertEncodeStringArray2_Vtbl { pub base__: ICertEncodeStringArray_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub DecodeBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strencodeddata: ::core::mem::ManuallyDrop, encoding: EncodingType) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DecodeBlob: usize, - #[cfg(feature = "Win32_Foundation")] - pub EncodeBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pstrencodeddata: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EncodeBlob: usize, + pub DecodeBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType) -> ::windows::core::HRESULT, + pub EncodeBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pstrencodeddata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5897,23 +4476,16 @@ pub struct ICertEncodeStringArray2_Vtbl { pub struct ICertExit(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertExit { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Initialize<'a, P0>(&self, strconfig: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn Initialize(&self, strconfig: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn Notify(&self, exitevent: i32, context: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Notify)(::windows::core::Interface::as_raw(self), exitevent, context).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDescription(&self) -> ::windows::core::Result { + pub unsafe fn GetDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -5982,15 +4554,9 @@ unsafe impl ::windows::core::Interface for ICertExit { #[doc(hidden)] pub struct ICertExit_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, peventmask: *mut CERT_EXIT_EVENT_MASK) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Initialize: usize, + pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, peventmask: *mut CERT_EXIT_EVENT_MASK) -> ::windows::core::HRESULT, pub Notify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, exitevent: i32, context: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrdescription: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDescription: usize, + pub GetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5998,23 +4564,16 @@ pub struct ICertExit_Vtbl { pub struct ICertExit2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertExit2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Initialize<'a, P0>(&self, strconfig: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn Initialize(&self, strconfig: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn Notify(&self, exitevent: i32, context: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Notify)(::windows::core::Interface::as_raw(self), exitevent, context).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDescription(&self) -> ::windows::core::Result { + pub unsafe fn GetDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6118,11 +4677,9 @@ pub struct ICertExit2_Vtbl { pub struct ICertGetConfig(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertGetConfig { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetConfig(&self, flags: CERT_GET_CONFIG_FLAGS) -> ::windows::core::Result { + pub unsafe fn GetConfig(&self, flags: CERT_GET_CONFIG_FLAGS) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetConfig)(::windows::core::Interface::as_raw(self), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetConfig)(::windows::core::Interface::as_raw(self), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -6191,10 +4748,7 @@ unsafe impl ::windows::core::Interface for ICertGetConfig { #[doc(hidden)] pub struct ICertGetConfig_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetConfig: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: CERT_GET_CONFIG_FLAGS, pstrout: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetConfig: usize, + pub GetConfig: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: CERT_GET_CONFIG_FLAGS, pstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6204,33 +4758,17 @@ pub struct ICertManageModule(::windows::core::IUnknown); impl ICertManageModule { #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetProperty<'a, P0, P1, P2>(&self, strconfig: P0, strstoragelocation: P1, strpropertyname: P2, flags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetProperty(&self, strconfig: &::windows::core::BSTR, strstoragelocation: &::windows::core::BSTR, strpropertyname: &::windows::core::BSTR, flags: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetProperty)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), strstoragelocation.into().abi(), strpropertyname.into().abi(), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), ::core::mem::transmute_copy(strstoragelocation), ::core::mem::transmute_copy(strpropertyname), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn SetProperty<'a, P0, P1, P2>(&self, strconfig: P0, strstoragelocation: P1, strpropertyname: P2, flags: i32, pvarproperty: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetProperty)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), strstoragelocation.into().abi(), strpropertyname.into().abi(), flags, ::core::mem::transmute(pvarproperty)).ok() + pub unsafe fn SetProperty(&self, strconfig: &::windows::core::BSTR, strstoragelocation: &::windows::core::BSTR, strpropertyname: &::windows::core::BSTR, flags: i32, pvarproperty: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), ::core::mem::transmute_copy(strstoragelocation), ::core::mem::transmute_copy(strpropertyname), flags, ::core::mem::transmute(pvarproperty)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Configure<'a, P0, P1>(&self, strconfig: P0, strstoragelocation: P1, flags: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Configure)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), strstoragelocation.into().abi(), flags).ok() + pub unsafe fn Configure(&self, strconfig: &::windows::core::BSTR, strstoragelocation: &::windows::core::BSTR, flags: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Configure)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), ::core::mem::transmute_copy(strstoragelocation), flags).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6300,17 +4838,14 @@ unsafe impl ::windows::core::Interface for ICertManageModule { pub struct ICertManageModule_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, strstoragelocation: ::core::mem::ManuallyDrop, strpropertyname: ::core::mem::ManuallyDrop, flags: i32, pvarproperty: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strstoragelocation: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: i32, pvarproperty: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetProperty: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub SetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, strstoragelocation: ::core::mem::ManuallyDrop, strpropertyname: ::core::mem::ManuallyDrop, flags: i32, pvarproperty: *const super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub SetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strstoragelocation: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: i32, pvarproperty: *const super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SetProperty: usize, - #[cfg(feature = "Win32_Foundation")] - pub Configure: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, strstoragelocation: ::core::mem::ManuallyDrop, flags: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Configure: usize, + pub Configure: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strstoragelocation: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: i32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6318,28 +4853,16 @@ pub struct ICertManageModule_Vtbl { pub struct ICertPolicy(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertPolicy { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Initialize<'a, P0>(&self, strconfig: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), strconfig.into().abi()).ok() + pub unsafe fn Initialize(&self, strconfig: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn VerifyRequest<'a, P0>(&self, strconfig: P0, context: i32, bnewrequest: i32, flags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn VerifyRequest(&self, strconfig: &::windows::core::BSTR, context: i32, bnewrequest: i32, flags: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).VerifyRequest)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), context, bnewrequest, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).VerifyRequest)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), context, bnewrequest, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDescription(&self) -> ::windows::core::Result { + pub unsafe fn GetDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn ShutDown(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ShutDown)(::windows::core::Interface::as_raw(self)).ok() @@ -6411,18 +4934,9 @@ unsafe impl ::windows::core::Interface for ICertPolicy { #[doc(hidden)] pub struct ICertPolicy_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Initialize: usize, - #[cfg(feature = "Win32_Foundation")] - pub VerifyRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, context: i32, bnewrequest: i32, flags: i32, pdisposition: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - VerifyRequest: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrdescription: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDescription: usize, + pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub VerifyRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, context: i32, bnewrequest: i32, flags: i32, pdisposition: *mut i32) -> ::windows::core::HRESULT, + pub GetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ShutDown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] @@ -6431,28 +4945,16 @@ pub struct ICertPolicy_Vtbl { pub struct ICertPolicy2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertPolicy2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Initialize<'a, P0>(&self, strconfig: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), strconfig.into().abi()).ok() + pub unsafe fn Initialize(&self, strconfig: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn VerifyRequest<'a, P0>(&self, strconfig: P0, context: i32, bnewrequest: i32, flags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn VerifyRequest(&self, strconfig: &::windows::core::BSTR, context: i32, bnewrequest: i32, flags: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.VerifyRequest)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), context, bnewrequest, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.VerifyRequest)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), context, bnewrequest, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDescription(&self) -> ::windows::core::Result { + pub unsafe fn GetDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn ShutDown(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.ShutDown)(::windows::core::Interface::as_raw(self)).ok() @@ -6587,13 +5089,8 @@ impl ICertProperties { pub unsafe fn Clear(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Clear)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn InitializeFromCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6674,10 +5171,7 @@ pub struct ICertProperties_Vtbl { Add: usize, pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32) -> ::windows::core::HRESULT, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub InitializeFromCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, machinecontext: i16, encoding: EncodingType, strcertificate: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeFromCertificate: usize, + pub InitializeFromCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, machinecontext: i16, encoding: EncodingType, strcertificate: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6685,21 +5179,11 @@ pub struct ICertProperties_Vtbl { pub struct ICertProperty(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertProperty { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn InitializeFromCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, encoding: EncodingType, strencodeddata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, strencodeddata.into().abi()).ok() + pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn PropertyId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6708,27 +5192,15 @@ impl ICertProperty { pub unsafe fn SetPropertyId(&self, value: CERTENROLL_PROPERTYID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetPropertyId)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoveFromCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).RemoveFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn RemoveFromCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).RemoveFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetValueOnCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetValueOnCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn SetValueOnCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetValueOnCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6797,28 +5269,13 @@ unsafe impl ::windows::core::Interface for ICertProperty { #[doc(hidden)] pub struct ICertProperty_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub InitializeFromCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, machinecontext: i16, encoding: EncodingType, strcertificate: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeFromCertificate: usize, - #[cfg(feature = "Win32_Foundation")] - pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeDecode: usize, + pub InitializeFromCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, machinecontext: i16, encoding: EncodingType, strcertificate: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub PropertyId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut CERTENROLL_PROPERTYID) -> ::windows::core::HRESULT, pub SetPropertyId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: CERTENROLL_PROPERTYID) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub get_RawData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_RawData: usize, - #[cfg(feature = "Win32_Foundation")] - pub RemoveFromCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, machinecontext: i16, encoding: EncodingType, strcertificate: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RemoveFromCertificate: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetValueOnCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, machinecontext: i16, encoding: EncodingType, strcertificate: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetValueOnCertificate: usize, + pub get_RawData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub RemoveFromCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, machinecontext: i16, encoding: EncodingType, strcertificate: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetValueOnCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, machinecontext: i16, encoding: EncodingType, strcertificate: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6826,21 +5283,11 @@ pub struct ICertProperty_Vtbl { pub struct ICertPropertyArchived(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertPropertyArchived { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn InitializeFromCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, encoding: EncodingType, strencodeddata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, strencodeddata.into().abi()).ok() + pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn PropertyId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6849,27 +5296,15 @@ impl ICertPropertyArchived { pub unsafe fn SetPropertyId(&self, value: CERTENROLL_PROPERTYID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetPropertyId)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoveFromCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.RemoveFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn RemoveFromCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.RemoveFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetValueOnCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetValueOnCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn SetValueOnCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetValueOnCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } pub unsafe fn Initialize(&self, archivedvalue: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), archivedvalue).ok() @@ -6972,21 +5407,11 @@ pub struct ICertPropertyArchived_Vtbl { pub struct ICertPropertyArchivedKeyHash(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertPropertyArchivedKeyHash { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn InitializeFromCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, encoding: EncodingType, strencodeddata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, strencodeddata.into().abi()).ok() + pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn PropertyId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6995,41 +5420,22 @@ impl ICertPropertyArchivedKeyHash { pub unsafe fn SetPropertyId(&self, value: CERTENROLL_PROPERTYID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetPropertyId)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoveFromCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.RemoveFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn RemoveFromCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.RemoveFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetValueOnCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetValueOnCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn SetValueOnCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetValueOnCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Initialize<'a, P0>(&self, encoding: EncodingType, strarchivedkeyhashvalue: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), encoding, strarchivedkeyhashvalue.into().abi()).ok() + pub unsafe fn Initialize(&self, encoding: EncodingType, strarchivedkeyhashvalue: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strarchivedkeyhashvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_ArchivedKeyHash(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_ArchivedKeyHash(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_ArchivedKeyHash)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_ArchivedKeyHash)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -7116,14 +5522,8 @@ unsafe impl ::windows::core::Interface for ICertPropertyArchivedKeyHash { #[doc(hidden)] pub struct ICertPropertyArchivedKeyHash_Vtbl { pub base__: ICertProperty_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strarchivedkeyhashvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Initialize: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_ArchivedKeyHash: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_ArchivedKeyHash: usize, + pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strarchivedkeyhashvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub get_ArchivedKeyHash: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7131,21 +5531,11 @@ pub struct ICertPropertyArchivedKeyHash_Vtbl { pub struct ICertPropertyAutoEnroll(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertPropertyAutoEnroll { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn InitializeFromCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, encoding: EncodingType, strencodeddata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, strencodeddata.into().abi()).ok() + pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn PropertyId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7154,41 +5544,22 @@ impl ICertPropertyAutoEnroll { pub unsafe fn SetPropertyId(&self, value: CERTENROLL_PROPERTYID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetPropertyId)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoveFromCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.RemoveFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn RemoveFromCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.RemoveFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetValueOnCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetValueOnCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn SetValueOnCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetValueOnCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Initialize<'a, P0>(&self, strtemplatename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), strtemplatename.into().abi()).ok() + pub unsafe fn Initialize(&self, strtemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strtemplatename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TemplateName(&self) -> ::windows::core::Result { + pub unsafe fn TemplateName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TemplateName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TemplateName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -7275,14 +5646,8 @@ unsafe impl ::windows::core::Interface for ICertPropertyAutoEnroll { #[doc(hidden)] pub struct ICertPropertyAutoEnroll_Vtbl { pub base__: ICertProperty_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strtemplatename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Initialize: usize, - #[cfg(feature = "Win32_Foundation")] - pub TemplateName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TemplateName: usize, + pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strtemplatename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub TemplateName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7290,21 +5655,11 @@ pub struct ICertPropertyAutoEnroll_Vtbl { pub struct ICertPropertyBackedUp(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertPropertyBackedUp { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn InitializeFromCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, encoding: EncodingType, strencodeddata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, strencodeddata.into().abi()).ok() + pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn PropertyId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7313,27 +5668,15 @@ impl ICertPropertyBackedUp { pub unsafe fn SetPropertyId(&self, value: CERTENROLL_PROPERTYID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetPropertyId)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoveFromCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.RemoveFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn RemoveFromCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.RemoveFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetValueOnCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetValueOnCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn SetValueOnCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetValueOnCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } pub unsafe fn InitializeFromCurrentTime(&self, backedupvalue: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).InitializeFromCurrentTime)(::windows::core::Interface::as_raw(self), backedupvalue).ok() @@ -7445,21 +5788,11 @@ pub struct ICertPropertyBackedUp_Vtbl { pub struct ICertPropertyDescription(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertPropertyDescription { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn InitializeFromCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, encoding: EncodingType, strencodeddata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, strencodeddata.into().abi()).ok() + pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn PropertyId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7468,41 +5801,22 @@ impl ICertPropertyDescription { pub unsafe fn SetPropertyId(&self, value: CERTENROLL_PROPERTYID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetPropertyId)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoveFromCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.RemoveFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn RemoveFromCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.RemoveFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetValueOnCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetValueOnCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn SetValueOnCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetValueOnCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Initialize<'a, P0>(&self, strdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), strdescription.into().abi()).ok() + pub unsafe fn Initialize(&self, strdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strdescription)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -7589,14 +5903,8 @@ unsafe impl ::windows::core::Interface for ICertPropertyDescription { #[doc(hidden)] pub struct ICertPropertyDescription_Vtbl { pub base__: ICertProperty_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Initialize: usize, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, + pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7604,21 +5912,11 @@ pub struct ICertPropertyDescription_Vtbl { pub struct ICertPropertyEnrollment(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertPropertyEnrollment { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn InitializeFromCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, encoding: EncodingType, strencodeddata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, strencodeddata.into().abi()).ok() + pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn PropertyId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7627,59 +5925,34 @@ impl ICertPropertyEnrollment { pub unsafe fn SetPropertyId(&self, value: CERTENROLL_PROPERTYID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetPropertyId)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoveFromCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.RemoveFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn RemoveFromCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.RemoveFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetValueOnCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetValueOnCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn SetValueOnCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetValueOnCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Initialize<'a, P0, P1, P2>(&self, requestid: i32, strcadnsname: P0, strcaname: P1, strfriendlyname: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), requestid, strcadnsname.into().abi(), strcaname.into().abi(), strfriendlyname.into().abi()).ok() + pub unsafe fn Initialize(&self, requestid: i32, strcadnsname: &::windows::core::BSTR, strcaname: &::windows::core::BSTR, strfriendlyname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), requestid, ::core::mem::transmute_copy(strcadnsname), ::core::mem::transmute_copy(strcaname), ::core::mem::transmute_copy(strfriendlyname)).ok() } pub unsafe fn RequestId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).RequestId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CADnsName(&self) -> ::windows::core::Result { + pub unsafe fn CADnsName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CADnsName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CADnsName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CAName(&self) -> ::windows::core::Result { + pub unsafe fn CAName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CAName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CAName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FriendlyName(&self) -> ::windows::core::Result { + pub unsafe fn FriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -7766,23 +6039,11 @@ unsafe impl ::windows::core::Interface for ICertPropertyEnrollment { #[doc(hidden)] pub struct ICertPropertyEnrollment_Vtbl { pub base__: ICertProperty_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requestid: i32, strcadnsname: ::core::mem::ManuallyDrop, strcaname: ::core::mem::ManuallyDrop, strfriendlyname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Initialize: usize, + pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requestid: i32, strcadnsname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strcaname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strfriendlyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub RequestId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CADnsName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CADnsName: usize, - #[cfg(feature = "Win32_Foundation")] - pub CAName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CAName: usize, - #[cfg(feature = "Win32_Foundation")] - pub FriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FriendlyName: usize, + pub CADnsName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CAName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7790,21 +6051,11 @@ pub struct ICertPropertyEnrollment_Vtbl { pub struct ICertPropertyEnrollmentPolicyServer(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertPropertyEnrollmentPolicyServer { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn InitializeFromCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, encoding: EncodingType, strencodeddata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, strencodeddata.into().abi()).ok() + pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn PropertyId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7813,62 +6064,34 @@ impl ICertPropertyEnrollmentPolicyServer { pub unsafe fn SetPropertyId(&self, value: CERTENROLL_PROPERTYID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetPropertyId)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoveFromCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.RemoveFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn RemoveFromCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.RemoveFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetValueOnCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetValueOnCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn SetValueOnCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetValueOnCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Initialize<'a, P0, P1, P2, P3>(&self, propertyflags: EnrollmentPolicyServerPropertyFlags, authflags: X509EnrollmentAuthFlags, enrollmentserverauthflags: X509EnrollmentAuthFlags, urlflags: PolicyServerUrlFlags, strrequestid: P0, strurl: P1, strid: P2, strenrollmentserverurl: P3) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), propertyflags, authflags, enrollmentserverauthflags, urlflags, strrequestid.into().abi(), strurl.into().abi(), strid.into().abi(), strenrollmentserverurl.into().abi()).ok() + pub unsafe fn Initialize(&self, propertyflags: EnrollmentPolicyServerPropertyFlags, authflags: X509EnrollmentAuthFlags, enrollmentserverauthflags: X509EnrollmentAuthFlags, urlflags: PolicyServerUrlFlags, strrequestid: &::windows::core::BSTR, strurl: &::windows::core::BSTR, strid: &::windows::core::BSTR, strenrollmentserverurl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), propertyflags, authflags, enrollmentserverauthflags, urlflags, ::core::mem::transmute_copy(strrequestid), ::core::mem::transmute_copy(strurl), ::core::mem::transmute_copy(strid), ::core::mem::transmute_copy(strenrollmentserverurl)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPolicyServerUrl(&self) -> ::windows::core::Result { + pub unsafe fn GetPolicyServerUrl(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetPolicyServerUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetPolicyServerUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPolicyServerId(&self) -> ::windows::core::Result { + pub unsafe fn GetPolicyServerId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetPolicyServerId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetPolicyServerId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetEnrollmentServerUrl(&self) -> ::windows::core::Result { + pub unsafe fn GetEnrollmentServerUrl(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetEnrollmentServerUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetEnrollmentServerUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetRequestIdString(&self) -> ::windows::core::Result { + pub unsafe fn GetRequestIdString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetRequestIdString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetRequestIdString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetPropertyFlags(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7971,26 +6194,11 @@ unsafe impl ::windows::core::Interface for ICertPropertyEnrollmentPolicyServer { #[doc(hidden)] pub struct ICertPropertyEnrollmentPolicyServer_Vtbl { pub base__: ICertProperty_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyflags: EnrollmentPolicyServerPropertyFlags, authflags: X509EnrollmentAuthFlags, enrollmentserverauthflags: X509EnrollmentAuthFlags, urlflags: PolicyServerUrlFlags, strrequestid: ::core::mem::ManuallyDrop, strurl: ::core::mem::ManuallyDrop, strid: ::core::mem::ManuallyDrop, strenrollmentserverurl: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Initialize: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetPolicyServerUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPolicyServerUrl: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetPolicyServerId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPolicyServerId: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetEnrollmentServerUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetEnrollmentServerUrl: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetRequestIdString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetRequestIdString: usize, + pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyflags: EnrollmentPolicyServerPropertyFlags, authflags: X509EnrollmentAuthFlags, enrollmentserverauthflags: X509EnrollmentAuthFlags, urlflags: PolicyServerUrlFlags, strrequestid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strenrollmentserverurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetPolicyServerUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetPolicyServerId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetEnrollmentServerUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetRequestIdString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetPropertyFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut EnrollmentPolicyServerPropertyFlags) -> ::windows::core::HRESULT, pub GetUrlFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut PolicyServerUrlFlags) -> ::windows::core::HRESULT, pub GetAuthentication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut X509EnrollmentAuthFlags) -> ::windows::core::HRESULT, @@ -8002,21 +6210,11 @@ pub struct ICertPropertyEnrollmentPolicyServer_Vtbl { pub struct ICertPropertyFriendlyName(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertPropertyFriendlyName { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn InitializeFromCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, encoding: EncodingType, strencodeddata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, strencodeddata.into().abi()).ok() + pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn PropertyId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -8025,41 +6223,22 @@ impl ICertPropertyFriendlyName { pub unsafe fn SetPropertyId(&self, value: CERTENROLL_PROPERTYID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetPropertyId)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoveFromCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.RemoveFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn RemoveFromCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.RemoveFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetValueOnCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetValueOnCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn SetValueOnCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetValueOnCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Initialize<'a, P0>(&self, strfriendlyname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), strfriendlyname.into().abi()).ok() + pub unsafe fn Initialize(&self, strfriendlyname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strfriendlyname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FriendlyName(&self) -> ::windows::core::Result { + pub unsafe fn FriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -8146,14 +6325,8 @@ unsafe impl ::windows::core::Interface for ICertPropertyFriendlyName { #[doc(hidden)] pub struct ICertPropertyFriendlyName_Vtbl { pub base__: ICertProperty_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strfriendlyname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Initialize: usize, - #[cfg(feature = "Win32_Foundation")] - pub FriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FriendlyName: usize, + pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strfriendlyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -8161,21 +6334,11 @@ pub struct ICertPropertyFriendlyName_Vtbl { pub struct ICertPropertyKeyProvInfo(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertPropertyKeyProvInfo { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn InitializeFromCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, encoding: EncodingType, strencodeddata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, strencodeddata.into().abi()).ok() + pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn PropertyId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -8184,27 +6347,15 @@ impl ICertPropertyKeyProvInfo { pub unsafe fn SetPropertyId(&self, value: CERTENROLL_PROPERTYID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetPropertyId)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoveFromCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.RemoveFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn RemoveFromCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.RemoveFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetValueOnCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetValueOnCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn SetValueOnCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetValueOnCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -8320,21 +6471,11 @@ pub struct ICertPropertyKeyProvInfo_Vtbl { pub struct ICertPropertyRenewal(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertPropertyRenewal { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn InitializeFromCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, encoding: EncodingType, strencodeddata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, strencodeddata.into().abi()).ok() + pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn PropertyId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -8343,49 +6484,25 @@ impl ICertPropertyRenewal { pub unsafe fn SetPropertyId(&self, value: CERTENROLL_PROPERTYID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetPropertyId)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoveFromCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.RemoveFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn RemoveFromCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.RemoveFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetValueOnCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetValueOnCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn SetValueOnCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetValueOnCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Initialize<'a, P0>(&self, encoding: EncodingType, strrenewalvalue: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), encoding, strrenewalvalue.into().abi()).ok() + pub unsafe fn Initialize(&self, encoding: EncodingType, strrenewalvalue: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strrenewalvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromCertificateHash<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeFromCertificateHash)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn InitializeFromCertificateHash(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeFromCertificateHash)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_Renewal(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_Renewal(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_Renewal)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_Renewal)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -8472,18 +6589,9 @@ unsafe impl ::windows::core::Interface for ICertPropertyRenewal { #[doc(hidden)] pub struct ICertPropertyRenewal_Vtbl { pub base__: ICertProperty_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strrenewalvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Initialize: usize, - #[cfg(feature = "Win32_Foundation")] - pub InitializeFromCertificateHash: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, machinecontext: i16, encoding: EncodingType, strcertificate: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeFromCertificateHash: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_Renewal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_Renewal: usize, + pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strrenewalvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub InitializeFromCertificateHash: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, machinecontext: i16, encoding: EncodingType, strcertificate: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub get_Renewal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -8491,21 +6599,11 @@ pub struct ICertPropertyRenewal_Vtbl { pub struct ICertPropertyRequestOriginator(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertPropertyRequestOriginator { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn InitializeFromCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, encoding: EncodingType, strencodeddata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, strencodeddata.into().abi()).ok() + pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn PropertyId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -8514,44 +6612,25 @@ impl ICertPropertyRequestOriginator { pub unsafe fn SetPropertyId(&self, value: CERTENROLL_PROPERTYID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetPropertyId)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoveFromCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.RemoveFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetValueOnCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetValueOnCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Initialize<'a, P0>(&self, strrequestoriginator: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), strrequestoriginator.into().abi()).ok() + pub unsafe fn RemoveFromCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.RemoveFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() + } + pub unsafe fn SetValueOnCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetValueOnCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() + } + pub unsafe fn Initialize(&self, strrequestoriginator: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strrequestoriginator)).ok() } pub unsafe fn InitializeFromLocalRequestOriginator(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).InitializeFromLocalRequestOriginator)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RequestOriginator(&self) -> ::windows::core::Result { + pub unsafe fn RequestOriginator(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RequestOriginator)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RequestOriginator)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -8638,15 +6717,9 @@ unsafe impl ::windows::core::Interface for ICertPropertyRequestOriginator { #[doc(hidden)] pub struct ICertPropertyRequestOriginator_Vtbl { pub base__: ICertProperty_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strrequestoriginator: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Initialize: usize, + pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strrequestoriginator: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub InitializeFromLocalRequestOriginator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub RequestOriginator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RequestOriginator: usize, + pub RequestOriginator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -8654,21 +6727,11 @@ pub struct ICertPropertyRequestOriginator_Vtbl { pub struct ICertPropertySHA1Hash(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertPropertySHA1Hash { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn InitializeFromCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, encoding: EncodingType, strencodeddata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, strencodeddata.into().abi()).ok() + pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn PropertyId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -8677,41 +6740,22 @@ impl ICertPropertySHA1Hash { pub unsafe fn SetPropertyId(&self, value: CERTENROLL_PROPERTYID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetPropertyId)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoveFromCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.RemoveFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn RemoveFromCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.RemoveFromCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetValueOnCertificate<'a, P0>(&self, machinecontext: i16, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetValueOnCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, strcertificate.into().abi()).ok() + pub unsafe fn SetValueOnCertificate(&self, machinecontext: i16, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetValueOnCertificate)(::windows::core::Interface::as_raw(self), machinecontext, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Initialize<'a, P0>(&self, encoding: EncodingType, strrenewalvalue: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), encoding, strrenewalvalue.into().abi()).ok() + pub unsafe fn Initialize(&self, encoding: EncodingType, strrenewalvalue: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strrenewalvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_SHA1Hash(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_SHA1Hash(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_SHA1Hash)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_SHA1Hash)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -8798,14 +6842,8 @@ unsafe impl ::windows::core::Interface for ICertPropertySHA1Hash { #[doc(hidden)] pub struct ICertPropertySHA1Hash_Vtbl { pub base__: ICertProperty_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strrenewalvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Initialize: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_SHA1Hash: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_SHA1Hash: usize, + pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strrenewalvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub get_SHA1Hash: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -8813,25 +6851,13 @@ pub struct ICertPropertySHA1Hash_Vtbl { pub struct ICertRequest(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertRequest { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Submit<'a, P0, P1, P2>(&self, flags: i32, strrequest: P0, strattributes: P1, strconfig: P2) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn Submit(&self, flags: i32, strrequest: &::windows::core::BSTR, strattributes: &::windows::core::BSTR, strconfig: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Submit)(::windows::core::Interface::as_raw(self), flags, strrequest.into().abi(), strattributes.into().abi(), strconfig.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Submit)(::windows::core::Interface::as_raw(self), flags, ::core::mem::transmute_copy(strrequest), ::core::mem::transmute_copy(strattributes), ::core::mem::transmute_copy(strconfig), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RetrievePending<'a, P0>(&self, requestid: i32, strconfig: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn RetrievePending(&self, requestid: i32, strconfig: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RetrievePending)(::windows::core::Interface::as_raw(self), requestid, strconfig.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RetrievePending)(::windows::core::Interface::as_raw(self), requestid, ::core::mem::transmute_copy(strconfig), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn GetLastStatus(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -8841,26 +6867,17 @@ impl ICertRequest { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetRequestId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDispositionMessage(&self) -> ::windows::core::Result { + pub unsafe fn GetDispositionMessage(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDispositionMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDispositionMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCACertificate<'a, P0>(&self, fexchangecertificate: i32, strconfig: P0, flags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetCACertificate(&self, fexchangecertificate: i32, strconfig: &::windows::core::BSTR, flags: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetCACertificate)(::windows::core::Interface::as_raw(self), fexchangecertificate, strconfig.into().abi(), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetCACertificate)(::windows::core::Interface::as_raw(self), fexchangecertificate, ::core::mem::transmute_copy(strconfig), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCertificate(&self, flags: i32) -> ::windows::core::Result { + pub unsafe fn GetCertificate(&self, flags: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetCertificate)(::windows::core::Interface::as_raw(self), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetCertificate)(::windows::core::Interface::as_raw(self), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -8929,28 +6946,13 @@ unsafe impl ::windows::core::Interface for ICertRequest { #[doc(hidden)] pub struct ICertRequest_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Submit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32, strrequest: ::core::mem::ManuallyDrop, strattributes: ::core::mem::ManuallyDrop, strconfig: ::core::mem::ManuallyDrop, pdisposition: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Submit: usize, - #[cfg(feature = "Win32_Foundation")] - pub RetrievePending: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requestid: i32, strconfig: ::core::mem::ManuallyDrop, pdisposition: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RetrievePending: usize, + pub Submit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32, strrequest: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strattributes: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdisposition: *mut i32) -> ::windows::core::HRESULT, + pub RetrievePending: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requestid: i32, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdisposition: *mut i32) -> ::windows::core::HRESULT, pub GetLastStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstatus: *mut i32) -> ::windows::core::HRESULT, pub GetRequestId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prequestid: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetDispositionMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrdispositionmessage: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDispositionMessage: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetCACertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fexchangecertificate: i32, strconfig: ::core::mem::ManuallyDrop, flags: i32, pstrcertificate: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetCACertificate: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32, pstrcertificate: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetCertificate: usize, + pub GetDispositionMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrdispositionmessage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetCACertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fexchangecertificate: i32, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: i32, pstrcertificate: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32, pstrcertificate: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -8958,25 +6960,13 @@ pub struct ICertRequest_Vtbl { pub struct ICertRequest2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertRequest2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Submit<'a, P0, P1, P2>(&self, flags: i32, strrequest: P0, strattributes: P1, strconfig: P2) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn Submit(&self, flags: i32, strrequest: &::windows::core::BSTR, strattributes: &::windows::core::BSTR, strconfig: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Submit)(::windows::core::Interface::as_raw(self), flags, strrequest.into().abi(), strattributes.into().abi(), strconfig.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Submit)(::windows::core::Interface::as_raw(self), flags, ::core::mem::transmute_copy(strrequest), ::core::mem::transmute_copy(strattributes), ::core::mem::transmute_copy(strconfig), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RetrievePending<'a, P0>(&self, requestid: i32, strconfig: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn RetrievePending(&self, requestid: i32, strconfig: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.RetrievePending)(::windows::core::Interface::as_raw(self), requestid, strconfig.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.RetrievePending)(::windows::core::Interface::as_raw(self), requestid, ::core::mem::transmute_copy(strconfig), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn GetLastStatus(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -8986,69 +6976,39 @@ impl ICertRequest2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetRequestId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDispositionMessage(&self) -> ::windows::core::Result { + pub unsafe fn GetDispositionMessage(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetDispositionMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetDispositionMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCACertificate<'a, P0>(&self, fexchangecertificate: i32, strconfig: P0, flags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetCACertificate(&self, fexchangecertificate: i32, strconfig: &::windows::core::BSTR, flags: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetCACertificate)(::windows::core::Interface::as_raw(self), fexchangecertificate, strconfig.into().abi(), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetCACertificate)(::windows::core::Interface::as_raw(self), fexchangecertificate, ::core::mem::transmute_copy(strconfig), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCertificate(&self, flags: i32) -> ::windows::core::Result { + pub unsafe fn GetCertificate(&self, flags: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetCertificate)(::windows::core::Interface::as_raw(self), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetCertificate)(::windows::core::Interface::as_raw(self), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetIssuedCertificate<'a, P0, P1>(&self, strconfig: P0, requestid: i32, strserialnumber: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetIssuedCertificate(&self, strconfig: &::windows::core::BSTR, requestid: i32, strserialnumber: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetIssuedCertificate)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), requestid, strserialnumber.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetIssuedCertificate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), requestid, ::core::mem::transmute_copy(strserialnumber), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetErrorMessageText(&self, hrmessage: i32, flags: i32) -> ::windows::core::Result { + pub unsafe fn GetErrorMessageText(&self, hrmessage: i32, flags: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetErrorMessageText)(::windows::core::Interface::as_raw(self), hrmessage, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetErrorMessageText)(::windows::core::Interface::as_raw(self), hrmessage, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetCAProperty<'a, P0>(&self, strconfig: P0, propid: i32, propindex: i32, proptype: i32, flags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetCAProperty(&self, strconfig: &::windows::core::BSTR, propid: i32, propindex: i32, proptype: i32, flags: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetCAProperty)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), propid, propindex, proptype, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetCAProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), propid, propindex, proptype, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCAPropertyFlags<'a, P0>(&self, strconfig: P0, propid: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetCAPropertyFlags(&self, strconfig: &::windows::core::BSTR, propid: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetCAPropertyFlags)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), propid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetCAPropertyFlags)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), propid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCAPropertyDisplayName<'a, P0>(&self, strconfig: P0, propid: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetCAPropertyDisplayName(&self, strconfig: &::windows::core::BSTR, propid: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetCAPropertyDisplayName)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), propid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetCAPropertyDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), propid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -9141,26 +7101,14 @@ unsafe impl ::windows::core::Interface for ICertRequest2 { #[doc(hidden)] pub struct ICertRequest2_Vtbl { pub base__: ICertRequest_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetIssuedCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, requestid: i32, strserialnumber: ::core::mem::ManuallyDrop, pdisposition: *mut CR_DISP) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetIssuedCertificate: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetErrorMessageText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrmessage: i32, flags: i32, pstrerrormessagetext: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetErrorMessageText: usize, + pub GetIssuedCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, requestid: i32, strserialnumber: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdisposition: *mut CR_DISP) -> ::windows::core::HRESULT, + pub GetErrorMessageText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrmessage: i32, flags: i32, pstrerrormessagetext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetCAProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, propid: i32, propindex: i32, proptype: i32, flags: i32, pvarpropertyvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetCAProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propid: i32, propindex: i32, proptype: i32, flags: i32, pvarpropertyvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetCAProperty: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetCAPropertyFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, propid: i32, ppropflags: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetCAPropertyFlags: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetCAPropertyDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, propid: i32, pstrdisplayname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetCAPropertyDisplayName: usize, + pub GetCAPropertyFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propid: i32, ppropflags: *mut i32) -> ::windows::core::HRESULT, + pub GetCAPropertyDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propid: i32, pstrdisplayname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub GetFullResponseProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propid: FULL_RESPONSE_PROPERTY_ID, propindex: i32, proptype: CERT_PROPERTY_TYPE, flags: CERT_REQUEST_OUT_TYPE, pvarpropertyvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -9172,25 +7120,13 @@ pub struct ICertRequest2_Vtbl { pub struct ICertRequest3(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertRequest3 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Submit<'a, P0, P1, P2>(&self, flags: i32, strrequest: P0, strattributes: P1, strconfig: P2) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn Submit(&self, flags: i32, strrequest: &::windows::core::BSTR, strattributes: &::windows::core::BSTR, strconfig: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Submit)(::windows::core::Interface::as_raw(self), flags, strrequest.into().abi(), strattributes.into().abi(), strconfig.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Submit)(::windows::core::Interface::as_raw(self), flags, ::core::mem::transmute_copy(strrequest), ::core::mem::transmute_copy(strattributes), ::core::mem::transmute_copy(strconfig), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RetrievePending<'a, P0>(&self, requestid: i32, strconfig: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn RetrievePending(&self, requestid: i32, strconfig: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.RetrievePending)(::windows::core::Interface::as_raw(self), requestid, strconfig.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.RetrievePending)(::windows::core::Interface::as_raw(self), requestid, ::core::mem::transmute_copy(strconfig), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn GetLastStatus(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -9200,69 +7136,39 @@ impl ICertRequest3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.GetRequestId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDispositionMessage(&self) -> ::windows::core::Result { + pub unsafe fn GetDispositionMessage(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetDispositionMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetDispositionMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCACertificate<'a, P0>(&self, fexchangecertificate: i32, strconfig: P0, flags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetCACertificate(&self, fexchangecertificate: i32, strconfig: &::windows::core::BSTR, flags: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetCACertificate)(::windows::core::Interface::as_raw(self), fexchangecertificate, strconfig.into().abi(), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetCACertificate)(::windows::core::Interface::as_raw(self), fexchangecertificate, ::core::mem::transmute_copy(strconfig), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCertificate(&self, flags: i32) -> ::windows::core::Result { + pub unsafe fn GetCertificate(&self, flags: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetCertificate)(::windows::core::Interface::as_raw(self), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetCertificate)(::windows::core::Interface::as_raw(self), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetIssuedCertificate<'a, P0, P1>(&self, strconfig: P0, requestid: i32, strserialnumber: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetIssuedCertificate(&self, strconfig: &::windows::core::BSTR, requestid: i32, strserialnumber: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetIssuedCertificate)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), requestid, strserialnumber.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetIssuedCertificate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), requestid, ::core::mem::transmute_copy(strserialnumber), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetErrorMessageText(&self, hrmessage: i32, flags: i32) -> ::windows::core::Result { + pub unsafe fn GetErrorMessageText(&self, hrmessage: i32, flags: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetErrorMessageText)(::windows::core::Interface::as_raw(self), hrmessage, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetErrorMessageText)(::windows::core::Interface::as_raw(self), hrmessage, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetCAProperty<'a, P0>(&self, strconfig: P0, propid: i32, propindex: i32, proptype: i32, flags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetCAProperty(&self, strconfig: &::windows::core::BSTR, propid: i32, propindex: i32, proptype: i32, flags: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetCAProperty)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), propid, propindex, proptype, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetCAProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), propid, propindex, proptype, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCAPropertyFlags<'a, P0>(&self, strconfig: P0, propid: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetCAPropertyFlags(&self, strconfig: &::windows::core::BSTR, propid: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetCAPropertyFlags)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), propid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetCAPropertyFlags)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), propid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCAPropertyDisplayName<'a, P0>(&self, strconfig: P0, propid: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetCAPropertyDisplayName(&self, strconfig: &::windows::core::BSTR, propid: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetCAPropertyDisplayName)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), propid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetCAPropertyDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), propid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -9270,31 +7176,16 @@ impl ICertRequest3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetFullResponseProperty)(::windows::core::Interface::as_raw(self), propid, propindex, proptype, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCredential<'a, P0, P1>(&self, hwnd: i32, authtype: X509EnrollmentAuthFlags, strcredential: P0, strpassword: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetCredential)(::windows::core::Interface::as_raw(self), hwnd, authtype, strcredential.into().abi(), strpassword.into().abi()).ok() + pub unsafe fn SetCredential(&self, hwnd: i32, authtype: X509EnrollmentAuthFlags, strcredential: &::windows::core::BSTR, strpassword: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetCredential)(::windows::core::Interface::as_raw(self), hwnd, authtype, ::core::mem::transmute_copy(strcredential), ::core::mem::transmute_copy(strpassword)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetRequestIdString(&self) -> ::windows::core::Result { + pub unsafe fn GetRequestIdString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetRequestIdString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetRequestIdString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetIssuedCertificate2<'a, P0, P1, P2>(&self, strconfig: P0, strrequestid: P1, strserialnumber: P2) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetIssuedCertificate2(&self, strconfig: &::windows::core::BSTR, strrequestid: &::windows::core::BSTR, strserialnumber: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetIssuedCertificate2)(::windows::core::Interface::as_raw(self), strconfig.into().abi(), strrequestid.into().abi(), strserialnumber.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetIssuedCertificate2)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig), ::core::mem::transmute_copy(strrequestid), ::core::mem::transmute_copy(strserialnumber), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn GetRefreshPolicy(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -9403,18 +7294,9 @@ unsafe impl ::windows::core::Interface for ICertRequest3 { #[doc(hidden)] pub struct ICertRequest3_Vtbl { pub base__: ICertRequest2_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub SetCredential: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: i32, authtype: X509EnrollmentAuthFlags, strcredential: ::core::mem::ManuallyDrop, strpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetCredential: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetRequestIdString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrrequestid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetRequestIdString: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetIssuedCertificate2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop, strrequestid: ::core::mem::ManuallyDrop, strserialnumber: ::core::mem::ManuallyDrop, pdisposition: *mut CR_DISP) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetIssuedCertificate2: usize, + pub SetCredential: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: i32, authtype: X509EnrollmentAuthFlags, strcredential: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetRequestIdString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrrequestid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetIssuedCertificate2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strrequestid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strserialnumber: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdisposition: *mut CR_DISP) -> ::windows::core::HRESULT, pub GetRefreshPolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i16) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`*"] @@ -9607,39 +7489,25 @@ impl ICertServerExit { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetRequestProperty<'a, P0>(&self, strpropertyname: P0, propertytype: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetRequestProperty(&self, strpropertyname: &::windows::core::BSTR, propertytype: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetRequestProperty)(::windows::core::Interface::as_raw(self), strpropertyname.into().abi(), propertytype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetRequestProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strpropertyname), propertytype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetRequestAttribute<'a, P0>(&self, strattributename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetRequestAttribute(&self, strattributename: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetRequestAttribute)(::windows::core::Interface::as_raw(self), strattributename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetRequestAttribute)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strattributename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetCertificateProperty<'a, P0>(&self, strpropertyname: P0, propertytype: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetCertificateProperty(&self, strpropertyname: &::windows::core::BSTR, propertytype: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetCertificateProperty)(::windows::core::Interface::as_raw(self), strpropertyname.into().abi(), propertytype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetCertificateProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strpropertyname), propertytype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetCertificateExtension<'a, P0>(&self, strextensionname: P0, r#type: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetCertificateExtension(&self, strextensionname: &::windows::core::BSTR, r#type: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetCertificateExtension)(::windows::core::Interface::as_raw(self), strextensionname.into().abi(), r#type, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetCertificateExtension)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strextensionname), r#type, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn GetCertificateExtensionFlags(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -9648,11 +7516,9 @@ impl ICertServerExit { pub unsafe fn EnumerateExtensionsSetup(&self, flags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).EnumerateExtensionsSetup)(::windows::core::Interface::as_raw(self), flags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EnumerateExtensions(&self) -> ::windows::core::Result { + pub unsafe fn EnumerateExtensions(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).EnumerateExtensions)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).EnumerateExtensions)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn EnumerateExtensionsClose(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).EnumerateExtensionsClose)(::windows::core::Interface::as_raw(self)).ok() @@ -9660,11 +7526,9 @@ impl ICertServerExit { pub unsafe fn EnumerateAttributesSetup(&self, flags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).EnumerateAttributesSetup)(::windows::core::Interface::as_raw(self), flags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EnumerateAttributes(&self) -> ::windows::core::Result { + pub unsafe fn EnumerateAttributes(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).EnumerateAttributes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).EnumerateAttributes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn EnumerateAttributesClose(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).EnumerateAttributesClose)(::windows::core::Interface::as_raw(self)).ok() @@ -9738,33 +7602,24 @@ pub struct ICertServerExit_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, pub SetContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetRequestProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop, propertytype: i32, pvarpropertyvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetRequestProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertytype: i32, pvarpropertyvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetRequestProperty: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetRequestAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strattributename: ::core::mem::ManuallyDrop, pstrattributevalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetRequestAttribute: usize, + pub GetRequestAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strattributename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pstrattributevalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetCertificateProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop, propertytype: i32, pvarpropertyvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetCertificateProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertytype: i32, pvarpropertyvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetCertificateProperty: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetCertificateExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strextensionname: ::core::mem::ManuallyDrop, r#type: i32, pvarvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetCertificateExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strextensionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, r#type: i32, pvarvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetCertificateExtension: usize, pub GetCertificateExtensionFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pextflags: *mut i32) -> ::windows::core::HRESULT, pub EnumerateExtensionsSetup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub EnumerateExtensions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrextensionname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EnumerateExtensions: usize, + pub EnumerateExtensions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrextensionname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub EnumerateExtensionsClose: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub EnumerateAttributesSetup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub EnumerateAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrattributename: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EnumerateAttributes: usize, + pub EnumerateAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrattributename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub EnumerateAttributesClose: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] @@ -9778,47 +7633,30 @@ impl ICertServerPolicy { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetRequestProperty<'a, P0>(&self, strpropertyname: P0, propertytype: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetRequestProperty(&self, strpropertyname: &::windows::core::BSTR, propertytype: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetRequestProperty)(::windows::core::Interface::as_raw(self), strpropertyname.into().abi(), propertytype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetRequestProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strpropertyname), propertytype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetRequestAttribute<'a, P0>(&self, strattributename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetRequestAttribute(&self, strattributename: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetRequestAttribute)(::windows::core::Interface::as_raw(self), strattributename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetRequestAttribute)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strattributename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetCertificateProperty<'a, P0>(&self, strpropertyname: P0, propertytype: CERT_PROPERTY_TYPE) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetCertificateProperty(&self, strpropertyname: &::windows::core::BSTR, propertytype: CERT_PROPERTY_TYPE) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetCertificateProperty)(::windows::core::Interface::as_raw(self), strpropertyname.into().abi(), propertytype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetCertificateProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strpropertyname), propertytype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn SetCertificateProperty<'a, P0>(&self, strpropertyname: P0, propertytype: i32, pvarpropertyvalue: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetCertificateProperty)(::windows::core::Interface::as_raw(self), strpropertyname.into().abi(), propertytype, ::core::mem::transmute(pvarpropertyvalue)).ok() + pub unsafe fn SetCertificateProperty(&self, strpropertyname: &::windows::core::BSTR, propertytype: i32, pvarpropertyvalue: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetCertificateProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strpropertyname), propertytype, ::core::mem::transmute(pvarpropertyvalue)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetCertificateExtension<'a, P0>(&self, strextensionname: P0, r#type: CERT_PROPERTY_TYPE) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetCertificateExtension(&self, strextensionname: &::windows::core::BSTR, r#type: CERT_PROPERTY_TYPE) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetCertificateExtension)(::windows::core::Interface::as_raw(self), strextensionname.into().abi(), r#type, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetCertificateExtension)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strextensionname), r#type, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn GetCertificateExtensionFlags(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -9826,20 +7664,15 @@ impl ICertServerPolicy { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn SetCertificateExtension<'a, P0>(&self, strextensionname: P0, r#type: i32, extflags: i32, pvarvalue: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetCertificateExtension)(::windows::core::Interface::as_raw(self), strextensionname.into().abi(), r#type, extflags, ::core::mem::transmute(pvarvalue)).ok() + pub unsafe fn SetCertificateExtension(&self, strextensionname: &::windows::core::BSTR, r#type: i32, extflags: i32, pvarvalue: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetCertificateExtension)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strextensionname), r#type, extflags, ::core::mem::transmute(pvarvalue)).ok() } pub unsafe fn EnumerateExtensionsSetup(&self, flags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).EnumerateExtensionsSetup)(::windows::core::Interface::as_raw(self), flags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EnumerateExtensions(&self) -> ::windows::core::Result { + pub unsafe fn EnumerateExtensions(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).EnumerateExtensions)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).EnumerateExtensions)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn EnumerateExtensionsClose(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).EnumerateExtensionsClose)(::windows::core::Interface::as_raw(self)).ok() @@ -9847,11 +7680,9 @@ impl ICertServerPolicy { pub unsafe fn EnumerateAttributesSetup(&self, flags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).EnumerateAttributesSetup)(::windows::core::Interface::as_raw(self), flags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EnumerateAttributes(&self) -> ::windows::core::Result { + pub unsafe fn EnumerateAttributes(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).EnumerateAttributes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).EnumerateAttributes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn EnumerateAttributesClose(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).EnumerateAttributesClose)(::windows::core::Interface::as_raw(self)).ok() @@ -9925,41 +7756,32 @@ pub struct ICertServerPolicy_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, pub SetContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetRequestProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop, propertytype: i32, pvarpropertyvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetRequestProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertytype: i32, pvarpropertyvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetRequestProperty: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetRequestAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strattributename: ::core::mem::ManuallyDrop, pstrattributevalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetRequestAttribute: usize, + pub GetRequestAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strattributename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pstrattributevalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetCertificateProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop, propertytype: CERT_PROPERTY_TYPE, pvarpropertyvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetCertificateProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertytype: CERT_PROPERTY_TYPE, pvarpropertyvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetCertificateProperty: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub SetCertificateProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop, propertytype: i32, pvarpropertyvalue: *const super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub SetCertificateProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertytype: i32, pvarpropertyvalue: *const super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SetCertificateProperty: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetCertificateExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strextensionname: ::core::mem::ManuallyDrop, r#type: CERT_PROPERTY_TYPE, pvarvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetCertificateExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strextensionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, r#type: CERT_PROPERTY_TYPE, pvarvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetCertificateExtension: usize, pub GetCertificateExtensionFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pextflags: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub SetCertificateExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strextensionname: ::core::mem::ManuallyDrop, r#type: i32, extflags: i32, pvarvalue: *const super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub SetCertificateExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strextensionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, r#type: i32, extflags: i32, pvarvalue: *const super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SetCertificateExtension: usize, pub EnumerateExtensionsSetup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub EnumerateExtensions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrextensionname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EnumerateExtensions: usize, + pub EnumerateExtensions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrextensionname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub EnumerateExtensionsClose: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub EnumerateAttributesSetup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub EnumerateAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrattributename: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EnumerateAttributes: usize, + pub EnumerateAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrattributename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub EnumerateAttributesClose: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] @@ -9968,13 +7790,8 @@ pub struct ICertServerPolicy_Vtbl { pub struct ICertView(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertView { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OpenConnection<'a, P0>(&self, strconfig: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).OpenConnection)(::windows::core::Interface::as_raw(self), strconfig.into().abi()).ok() + pub unsafe fn OpenConnection(&self, strconfig: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).OpenConnection)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9985,13 +7802,8 @@ impl ICertView { pub unsafe fn GetColumnCount(&self, fresultcolumn: CVRC_COLUMN, pccolumn: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetColumnCount)(::windows::core::Interface::as_raw(self), fresultcolumn, ::core::mem::transmute(pccolumn)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetColumnIndex<'a, P0>(&self, fresultcolumn: CVRC_COLUMN, strcolumnname: P0, pcolumnindex: &mut i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetColumnIndex)(::windows::core::Interface::as_raw(self), fresultcolumn, strcolumnname.into().abi(), ::core::mem::transmute(pcolumnindex)).ok() + pub unsafe fn GetColumnIndex(&self, fresultcolumn: CVRC_COLUMN, strcolumnname: &::windows::core::BSTR, pcolumnindex: &mut i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetColumnIndex)(::windows::core::Interface::as_raw(self), fresultcolumn, ::core::mem::transmute_copy(strcolumnname), ::core::mem::transmute(pcolumnindex)).ok() } pub unsafe fn SetResultColumnCount(&self, cresultcolumn: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetResultColumnCount)(::windows::core::Interface::as_raw(self), cresultcolumn).ok() @@ -10077,19 +7889,13 @@ unsafe impl ::windows::core::Interface for ICertView { #[doc(hidden)] pub struct ICertView_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub OpenConnection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OpenConnection: usize, + pub OpenConnection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strconfig: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub EnumCertViewColumn: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fresultcolumn: CVRC_COLUMN, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] EnumCertViewColumn: usize, pub GetColumnCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fresultcolumn: CVRC_COLUMN, pccolumn: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetColumnIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fresultcolumn: CVRC_COLUMN, strcolumnname: ::core::mem::ManuallyDrop, pcolumnindex: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetColumnIndex: usize, + pub GetColumnIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fresultcolumn: CVRC_COLUMN, strcolumnname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcolumnindex: *mut i32) -> ::windows::core::HRESULT, pub SetResultColumnCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cresultcolumn: i32) -> ::windows::core::HRESULT, pub SetResultColumn: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, columnindex: i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -10107,13 +7913,8 @@ pub struct ICertView_Vtbl { pub struct ICertView2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertView2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OpenConnection<'a, P0>(&self, strconfig: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.OpenConnection)(::windows::core::Interface::as_raw(self), strconfig.into().abi()).ok() + pub unsafe fn OpenConnection(&self, strconfig: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.OpenConnection)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strconfig)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -10124,13 +7925,8 @@ impl ICertView2 { pub unsafe fn GetColumnCount(&self, fresultcolumn: CVRC_COLUMN, pccolumn: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetColumnCount)(::windows::core::Interface::as_raw(self), fresultcolumn, ::core::mem::transmute(pccolumn)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetColumnIndex<'a, P0>(&self, fresultcolumn: CVRC_COLUMN, strcolumnname: P0, pcolumnindex: &mut i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.GetColumnIndex)(::windows::core::Interface::as_raw(self), fresultcolumn, strcolumnname.into().abi(), ::core::mem::transmute(pcolumnindex)).ok() + pub unsafe fn GetColumnIndex(&self, fresultcolumn: CVRC_COLUMN, strcolumnname: &::windows::core::BSTR, pcolumnindex: &mut i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.GetColumnIndex)(::windows::core::Interface::as_raw(self), fresultcolumn, ::core::mem::transmute_copy(strcolumnname), ::core::mem::transmute(pcolumnindex)).ok() } pub unsafe fn SetResultColumnCount(&self, cresultcolumn: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetResultColumnCount)(::windows::core::Interface::as_raw(self), cresultcolumn).ok() @@ -10245,25 +8041,16 @@ pub struct ICertView2_Vtbl { pub struct ICertificateAttestationChallenge(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertificateAttestationChallenge { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Initialize<'a, P0>(&self, encoding: EncodingType, strpendingfullcmcresponsewithchallenge: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), encoding, strpendingfullcmcresponsewithchallenge.into().abi()).ok() + pub unsafe fn Initialize(&self, encoding: EncodingType, strpendingfullcmcresponsewithchallenge: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strpendingfullcmcresponsewithchallenge)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DecryptChallenge(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn DecryptChallenge(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DecryptChallenge)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DecryptChallenge)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RequestID(&self) -> ::windows::core::Result { + pub unsafe fn RequestID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RequestID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RequestID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -10332,18 +8119,9 @@ unsafe impl ::windows::core::Interface for ICertificateAttestationChallenge { #[doc(hidden)] pub struct ICertificateAttestationChallenge_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strpendingfullcmcresponsewithchallenge: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Initialize: usize, - #[cfg(feature = "Win32_Foundation")] - pub DecryptChallenge: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pstrenvelopedpkcs7reencryptedtoca: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DecryptChallenge: usize, - #[cfg(feature = "Win32_Foundation")] - pub RequestID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrrequestid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RequestID: usize, + pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strpendingfullcmcresponsewithchallenge: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DecryptChallenge: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pstrenvelopedpkcs7reencryptedtoca: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub RequestID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrrequestid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -10351,41 +8129,22 @@ pub struct ICertificateAttestationChallenge_Vtbl { pub struct ICertificateAttestationChallenge2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertificateAttestationChallenge2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Initialize<'a, P0>(&self, encoding: EncodingType, strpendingfullcmcresponsewithchallenge: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), encoding, strpendingfullcmcresponsewithchallenge.into().abi()).ok() + pub unsafe fn Initialize(&self, encoding: EncodingType, strpendingfullcmcresponsewithchallenge: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strpendingfullcmcresponsewithchallenge)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DecryptChallenge(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn DecryptChallenge(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.DecryptChallenge)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.DecryptChallenge)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RequestID(&self) -> ::windows::core::Result { + pub unsafe fn RequestID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.RequestID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.RequestID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetKeyContainerName<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetKeyContainerName)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetKeyContainerName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetKeyContainerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_KeyBlob<'a, P0>(&self, encoding: EncodingType, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).put_KeyBlob)(::windows::core::Interface::as_raw(self), encoding, value.into().abi()).ok() + pub unsafe fn put_KeyBlob(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).put_KeyBlob)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(value)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -10471,15 +8230,9 @@ unsafe impl ::windows::core::Interface for ICertificateAttestationChallenge2 { #[repr(C)] #[doc(hidden)] pub struct ICertificateAttestationChallenge2_Vtbl { - pub base__: ICertificateAttestationChallenge_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub SetKeyContainerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetKeyContainerName: usize, - #[cfg(feature = "Win32_Foundation")] - pub put_KeyBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - put_KeyBlob: usize, + pub base__: ICertificateAttestationChallenge_Vtbl, + pub SetKeyContainerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub put_KeyBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -10738,14 +8491,11 @@ impl ICertificationAuthorities { pub unsafe fn ComputeSiteCosts(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ComputeSiteCosts)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn get_ItemByName<'a, P0>(&self, strname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn get_ItemByName(&self, strname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_ItemByName)(::windows::core::Interface::as_raw(self), strname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_ItemByName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -10827,9 +8577,9 @@ pub struct ICertificationAuthorities_Vtbl { pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32) -> ::windows::core::HRESULT, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub ComputeSiteCosts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub get_ItemByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub get_ItemByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] get_ItemByName: usize, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] @@ -11193,11 +8943,9 @@ impl ICspAlgorithm { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).IncrementLength)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LongName(&self) -> ::windows::core::Result { + pub unsafe fn LongName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LongName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LongName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Valid(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -11211,11 +8959,9 @@ impl ICspAlgorithm { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).MinLength)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Type(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -11298,17 +9044,11 @@ pub struct ICspAlgorithm_Vtbl { GetAlgorithmOid: usize, pub DefaultLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i32) -> ::windows::core::HRESULT, pub IncrementLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub LongName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LongName: usize, + pub LongName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Valid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i16) -> ::windows::core::HRESULT, pub MaxLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i32) -> ::windows::core::HRESULT, pub MinLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut AlgorithmType) -> ::windows::core::HRESULT, pub Operations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut AlgorithmOperationFlags) -> ::windows::core::HRESULT, } @@ -11346,14 +9086,11 @@ impl ICspAlgorithms { pub unsafe fn Clear(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Clear)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn get_ItemByName<'a, P0>(&self, strname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn get_ItemByName(&self, strname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_ItemByName)(::windows::core::Interface::as_raw(self), strname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_ItemByName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -11443,9 +9180,9 @@ pub struct ICspAlgorithms_Vtbl { Add: usize, pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32) -> ::windows::core::HRESULT, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub get_ItemByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub get_ItemByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] get_ItemByName: usize, #[cfg(feature = "Win32_System_Com")] pub get_IndexByObjectId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pobjectid: *mut ::core::ffi::c_void, pindex: *mut i32) -> ::windows::core::HRESULT, @@ -11458,13 +9195,8 @@ pub struct ICspAlgorithms_Vtbl { pub struct ICspInformation(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICspInformation { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromName<'a, P0>(&self, strname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeFromName)(::windows::core::Interface::as_raw(self), strname.into().abi()).ok() + pub unsafe fn InitializeFromName(&self, strname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeFromName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strname)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -11504,11 +9236,9 @@ impl ICspInformation { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).MaxKeyContainerNameLength)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Type(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -11526,11 +9256,9 @@ impl ICspInformation { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).IsSmartCard)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDefaultSecurityDescriptor(&self, machinecontext: i16) -> ::windows::core::Result { + pub unsafe fn GetDefaultSecurityDescriptor(&self, machinecontext: i16) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDefaultSecurityDescriptor)(::windows::core::Interface::as_raw(self), machinecontext, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDefaultSecurityDescriptor)(::windows::core::Interface::as_raw(self), machinecontext, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn LegacyCsp(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -11612,10 +9340,7 @@ unsafe impl ::windows::core::Interface for ICspInformation { #[doc(hidden)] pub struct ICspInformation_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub InitializeFromName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeFromName: usize, + pub InitializeFromName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub InitializeFromType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: X509ProviderType, palgorithm: *mut ::core::ffi::c_void, machinecontext: i16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -11630,18 +9355,12 @@ pub struct ICspInformation_Vtbl { pub IsSoftwareDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i16) -> ::windows::core::HRESULT, pub Valid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i16) -> ::windows::core::HRESULT, pub MaxKeyContainerNameLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut X509ProviderType) -> ::windows::core::HRESULT, pub Version: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i32) -> ::windows::core::HRESULT, pub KeySpec: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut X509KeySpec) -> ::windows::core::HRESULT, pub IsSmartCard: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetDefaultSecurityDescriptor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, machinecontext: i16, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDefaultSecurityDescriptor: usize, + pub GetDefaultSecurityDescriptor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, machinecontext: i16, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub LegacyCsp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub GetCspStatusFromOperations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, palgorithm: *mut ::core::ffi::c_void, operations: AlgorithmOperationFlags, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -11685,23 +9404,17 @@ impl ICspInformations { pub unsafe fn AddAvailableCsps(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).AddAvailableCsps)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn get_ItemByName<'a, P0>(&self, strname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn get_ItemByName(&self, strname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_ItemByName)(::windows::core::Interface::as_raw(self), strname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_ItemByName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetCspStatusFromProviderName<'a, P0>(&self, strprovidername: P0, legacykeyspec: X509KeySpec) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetCspStatusFromProviderName(&self, strprovidername: &::windows::core::BSTR, legacykeyspec: X509KeySpec) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetCspStatusFromProviderName)(::windows::core::Interface::as_raw(self), strprovidername.into().abi(), legacykeyspec, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetCspStatusFromProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strprovidername), legacykeyspec, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -11810,13 +9523,13 @@ pub struct ICspInformations_Vtbl { pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32) -> ::windows::core::HRESULT, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub AddAvailableCsps: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub get_ItemByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, ppcspinformation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub get_ItemByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppcspinformation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] get_ItemByName: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetCspStatusFromProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strprovidername: ::core::mem::ManuallyDrop, legacykeyspec: X509KeySpec, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetCspStatusFromProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strprovidername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, legacykeyspec: X509KeySpec, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetCspStatusFromProviderName: usize, #[cfg(feature = "Win32_System_Com")] pub GetCspStatusesFromOperations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, operations: AlgorithmOperationFlags, pcspinformation: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -11871,11 +9584,9 @@ impl ICspStatus { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).EnrollmentStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisplayName(&self) -> ::windows::core::Result { + pub unsafe fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -11962,10 +9673,7 @@ pub struct ICspStatus_Vtbl { pub EnrollmentStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] EnrollmentStatus: usize, - #[cfg(feature = "Win32_Foundation")] - pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DisplayName: usize, + pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -12001,15 +9709,11 @@ impl ICspStatuses { pub unsafe fn Clear(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Clear)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn get_ItemByName<'a, P0, P1>(&self, strcspname: P0, stralgorithmname: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn get_ItemByName(&self, strcspname: &::windows::core::BSTR, stralgorithmname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_ItemByName)(::windows::core::Interface::as_raw(self), strcspname.into().abi(), stralgorithmname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_ItemByName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strcspname), ::core::mem::transmute_copy(stralgorithmname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -12017,15 +9721,11 @@ impl ICspStatuses { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).get_ItemByOrdinal)(::windows::core::Interface::as_raw(self), ordinal, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn get_ItemByOperations<'a, P0, P1>(&self, strcspname: P0, stralgorithmname: P1, operations: AlgorithmOperationFlags) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn get_ItemByOperations(&self, strcspname: &::windows::core::BSTR, stralgorithmname: &::windows::core::BSTR, operations: AlgorithmOperationFlags) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_ItemByOperations)(::windows::core::Interface::as_raw(self), strcspname.into().abi(), stralgorithmname.into().abi(), operations, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_ItemByOperations)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strcspname), ::core::mem::transmute_copy(stralgorithmname), operations, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -12115,17 +9815,17 @@ pub struct ICspStatuses_Vtbl { Add: usize, pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32) -> ::windows::core::HRESULT, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub get_ItemByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strcspname: ::core::mem::ManuallyDrop, stralgorithmname: ::core::mem::ManuallyDrop, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub get_ItemByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strcspname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, stralgorithmname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] get_ItemByName: usize, #[cfg(feature = "Win32_System_Com")] pub get_ItemByOrdinal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ordinal: i32, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] get_ItemByOrdinal: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub get_ItemByOperations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strcspname: ::core::mem::ManuallyDrop, stralgorithmname: ::core::mem::ManuallyDrop, operations: AlgorithmOperationFlags, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub get_ItemByOperations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strcspname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, stralgorithmname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, operations: AlgorithmOperationFlags, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] get_ItemByOperations: usize, #[cfg(feature = "Win32_System_Com")] pub get_ItemByProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcspstatus: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -13818,14 +11518,10 @@ impl IEnumCERTVIEWATTRIBUTE { pub unsafe fn Next(&self, pindex: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Next)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pindex)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self, pstrout: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetName(&self, pstrout: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pstrout)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetValue(&self, pstrout: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetValue(&self, pstrout: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pstrout)).ok() } pub unsafe fn Skip(&self, celt: i32) -> ::windows::core::Result<()> { @@ -13908,14 +11604,8 @@ unsafe impl ::windows::core::Interface for IEnumCERTVIEWATTRIBUTE { pub struct IEnumCERTVIEWATTRIBUTE_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pindex: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrout: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetName: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrout: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetValue: usize, + pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: i32) -> ::windows::core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] @@ -13932,14 +11622,10 @@ impl IEnumCERTVIEWCOLUMN { pub unsafe fn Next(&self, pindex: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Next)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pindex)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self, pstrout: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetName(&self, pstrout: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pstrout)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDisplayName(&self, pstrout: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetDisplayName(&self, pstrout: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pstrout)).ok() } pub unsafe fn GetType(&self, ptype: &mut i32) -> ::windows::core::Result<()> { @@ -14036,14 +11722,8 @@ unsafe impl ::windows::core::Interface for IEnumCERTVIEWCOLUMN { pub struct IEnumCERTVIEWCOLUMN_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pindex: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrout: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetName: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrout: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDisplayName: usize, + pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptype: *mut i32) -> ::windows::core::HRESULT, pub IsIndexed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pindexed: *mut i32) -> ::windows::core::HRESULT, pub GetMaxLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmaxlength: *mut i32) -> ::windows::core::HRESULT, @@ -14067,9 +11747,7 @@ impl IEnumCERTVIEWEXTENSION { pub unsafe fn Next(&self, pindex: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Next)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pindex)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self, pstrout: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetName(&self, pstrout: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pstrout)).ok() } pub unsafe fn GetFlags(&self, pflags: &mut i32) -> ::windows::core::Result<()> { @@ -14160,10 +11838,7 @@ unsafe impl ::windows::core::Interface for IEnumCERTVIEWEXTENSION { pub struct IEnumCERTVIEWEXTENSION_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pindex: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrout: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetName: usize, + pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pflags: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub GetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: CERT_PROPERTY_TYPE, flags: ENUM_CERT_COLUMN_VALUE_FLAGS, pvarvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, @@ -14407,75 +12082,37 @@ impl IOCSPAdmin { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).OCSPCAConfigurationCollection)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetConfiguration<'a, P0>(&self, bstrservername: P0, bforce: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetConfiguration)(::windows::core::Interface::as_raw(self), bstrservername.into().abi(), bforce).ok() + pub unsafe fn GetConfiguration(&self, bstrservername: &::windows::core::BSTR, bforce: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetConfiguration)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrservername), bforce).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetConfiguration<'a, P0>(&self, bstrservername: P0, bforce: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetConfiguration)(::windows::core::Interface::as_raw(self), bstrservername.into().abi(), bforce).ok() + pub unsafe fn SetConfiguration(&self, bstrservername: &::windows::core::BSTR, bforce: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetConfiguration)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrservername), bforce).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetMyRoles<'a, P0>(&self, bstrservername: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetMyRoles(&self, bstrservername: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetMyRoles)(::windows::core::Interface::as_raw(self), bstrservername.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetMyRoles)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrservername), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Ping<'a, P0>(&self, bstrservername: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Ping)(::windows::core::Interface::as_raw(self), bstrservername.into().abi()).ok() + pub unsafe fn Ping(&self, bstrservername: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Ping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrservername)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSecurity<'a, P0, P1>(&self, bstrservername: P0, bstrval: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSecurity)(::windows::core::Interface::as_raw(self), bstrservername.into().abi(), bstrval.into().abi()).ok() + pub unsafe fn SetSecurity(&self, bstrservername: &::windows::core::BSTR, bstrval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSecurity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrservername), ::core::mem::transmute_copy(bstrval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetSecurity<'a, P0>(&self, bstrservername: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetSecurity(&self, bstrservername: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetSecurity)(::windows::core::Interface::as_raw(self), bstrservername.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetSecurity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrservername), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetSigningCertificates<'a, P0>(&self, bstrservername: P0, pcacertvar: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetSigningCertificates(&self, bstrservername: &::windows::core::BSTR, pcacertvar: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetSigningCertificates)(::windows::core::Interface::as_raw(self), bstrservername.into().abi(), ::core::mem::transmute(pcacertvar), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetSigningCertificates)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrservername), ::core::mem::transmute(pcacertvar), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetHashAlgorithms<'a, P0, P1>(&self, bstrservername: P0, bstrcaid: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetHashAlgorithms(&self, bstrservername: &::windows::core::BSTR, bstrcaid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetHashAlgorithms)(::windows::core::Interface::as_raw(self), bstrservername.into().abi(), bstrcaid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetHashAlgorithms)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrservername), ::core::mem::transmute_copy(bstrcaid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -14552,36 +12189,18 @@ pub struct IOCSPAdmin_Vtbl { pub OCSPCAConfigurationCollection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] OCSPCAConfigurationCollection: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetConfiguration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop, bforce: i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetConfiguration: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetConfiguration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop, bforce: i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetConfiguration: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetMyRoles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop, proles: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetMyRoles: usize, - #[cfg(feature = "Win32_Foundation")] - pub Ping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Ping: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSecurity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop, bstrval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSecurity: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetSecurity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop, pval: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetSecurity: usize, + pub GetConfiguration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bforce: i16) -> ::windows::core::HRESULT, + pub SetConfiguration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bforce: i16) -> ::windows::core::HRESULT, + pub GetMyRoles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, proles: *mut i32) -> ::windows::core::HRESULT, + pub Ping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSecurity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetSecurity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetSigningCertificates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop, pcacertvar: *const super::super::super::System::Com::VARIANT, pval: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetSigningCertificates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcacertvar: *const super::super::super::System::Com::VARIANT, pval: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetSigningCertificates: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetHashAlgorithms: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop, bstrcaid: ::core::mem::ManuallyDrop, pval: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetHashAlgorithms: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrcaid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pval: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetHashAlgorithms: usize, } @@ -14591,11 +12210,9 @@ pub struct IOCSPAdmin_Vtbl { pub struct IOCSPCAConfiguration(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IOCSPCAConfiguration { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Identifier(&self) -> ::windows::core::Result { + pub unsafe fn Identifier(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Identifier)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Identifier)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -14603,19 +12220,12 @@ impl IOCSPCAConfiguration { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CACertificate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn HashAlgorithm(&self) -> ::windows::core::Result { + pub unsafe fn HashAlgorithm(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).HashAlgorithm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).HashAlgorithm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetHashAlgorithm<'a, P0>(&self, newval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetHashAlgorithm)(::windows::core::Interface::as_raw(self), newval.into().abi()).ok() + pub unsafe fn SetHashAlgorithm(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetHashAlgorithm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(newval)).ok() } pub unsafe fn SigningFlags(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -14649,29 +12259,20 @@ impl IOCSPCAConfiguration { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ErrorCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CSPName(&self) -> ::windows::core::Result { + pub unsafe fn CSPName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CSPName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CSPName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn KeySpec(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).KeySpec)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ProviderCLSID(&self) -> ::windows::core::Result { + pub unsafe fn ProviderCLSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ProviderCLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ProviderCLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetProviderCLSID<'a, P0>(&self, newval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetProviderCLSID)(::windows::core::Interface::as_raw(self), newval.into().abi()).ok() + pub unsafe fn SetProviderCLSID(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetProviderCLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(newval)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -14705,33 +12306,19 @@ impl IOCSPCAConfiguration { { (::windows::core::Interface::vtable(self).SetLocalRevocationInformation)(::windows::core::Interface::as_raw(self), newval.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SigningCertificateTemplate(&self) -> ::windows::core::Result { + pub unsafe fn SigningCertificateTemplate(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SigningCertificateTemplate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SigningCertificateTemplate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSigningCertificateTemplate<'a, P0>(&self, newval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSigningCertificateTemplate)(::windows::core::Interface::as_raw(self), newval.into().abi()).ok() + pub unsafe fn SetSigningCertificateTemplate(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSigningCertificateTemplate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(newval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CAConfig(&self) -> ::windows::core::Result { + pub unsafe fn CAConfig(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CAConfig)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CAConfig)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCAConfig<'a, P0>(&self, newval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetCAConfig)(::windows::core::Interface::as_raw(self), newval.into().abi()).ok() + pub unsafe fn SetCAConfig(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetCAConfig)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(newval)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -14800,22 +12387,13 @@ unsafe impl ::windows::core::Interface for IOCSPCAConfiguration { #[doc(hidden)] pub struct IOCSPCAConfiguration_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Identifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Identifier: usize, + pub Identifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub CACertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] CACertificate: usize, - #[cfg(feature = "Win32_Foundation")] - pub HashAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - HashAlgorithm: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetHashAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetHashAlgorithm: usize, + pub HashAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetHashAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SigningFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut u32) -> ::windows::core::HRESULT, pub SetSigningFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: u32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -14829,19 +12407,10 @@ pub struct IOCSPCAConfiguration_Vtbl { pub ReminderDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut u32) -> ::windows::core::HRESULT, pub SetReminderDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: u32) -> ::windows::core::HRESULT, pub ErrorCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CSPName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CSPName: usize, + pub CSPName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub KeySpec: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ProviderCLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ProviderCLSID: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetProviderCLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetProviderCLSID: usize, + pub ProviderCLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetProviderCLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub ProviderProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -14859,22 +12428,10 @@ pub struct IOCSPCAConfiguration_Vtbl { pub SetLocalRevocationInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SetLocalRevocationInformation: usize, - #[cfg(feature = "Win32_Foundation")] - pub SigningCertificateTemplate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SigningCertificateTemplate: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSigningCertificateTemplate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSigningCertificateTemplate: usize, - #[cfg(feature = "Win32_Foundation")] - pub CAConfig: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CAConfig: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetCAConfig: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetCAConfig: usize, + pub SigningCertificateTemplate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSigningCertificateTemplate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CAConfig: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetCAConfig: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -14898,30 +12455,21 @@ impl IOCSPCAConfigurationCollection { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn get_ItemByName<'a, P0>(&self, bstridentifier: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn get_ItemByName(&self, bstridentifier: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_ItemByName)(::windows::core::Interface::as_raw(self), bstridentifier.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_ItemByName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstridentifier), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateCAConfiguration<'a, P0, P1>(&self, bstridentifier: P0, varcacert: P1) -> ::windows::core::Result + pub unsafe fn CreateCAConfiguration<'a, P0>(&self, bstridentifier: &::windows::core::BSTR, varcacert: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateCAConfiguration)(::windows::core::Interface::as_raw(self), bstridentifier.into().abi(), varcacert.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateCAConfiguration)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstridentifier), varcacert.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeleteCAConfiguration<'a, P0>(&self, bstridentifier: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DeleteCAConfiguration)(::windows::core::Interface::as_raw(self), bstridentifier.into().abi()).ok() + pub unsafe fn DeleteCAConfiguration(&self, bstridentifier: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DeleteCAConfiguration)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstridentifier)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -14997,17 +12545,14 @@ pub struct IOCSPCAConfigurationCollection_Vtbl { get_Item: usize, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub get_ItemByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstridentifier: ::core::mem::ManuallyDrop, pval: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub get_ItemByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstridentifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pval: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_ItemByName: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub CreateCAConfiguration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstridentifier: ::core::mem::ManuallyDrop, varcacert: ::core::mem::ManuallyDrop, ppval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub CreateCAConfiguration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstridentifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varcacert: ::core::mem::ManuallyDrop, ppval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] CreateCAConfiguration: usize, - #[cfg(feature = "Win32_Foundation")] - pub DeleteCAConfiguration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstridentifier: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeleteCAConfiguration: usize, + pub DeleteCAConfiguration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstridentifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -15015,11 +12560,9 @@ pub struct IOCSPCAConfigurationCollection_Vtbl { pub struct IOCSPProperty(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IOCSPProperty { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -15106,10 +12649,7 @@ unsafe impl ::windows::core::Interface for IOCSPProperty { #[doc(hidden)] pub struct IOCSPProperty_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -15142,29 +12682,18 @@ impl IOCSPPropertyCollection { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn get_ItemByName<'a, P0>(&self, bstrpropname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn get_ItemByName(&self, bstrpropname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_ItemByName)(::windows::core::Interface::as_raw(self), bstrpropname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_ItemByName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpropname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateProperty<'a, P0>(&self, bstrpropname: P0, pvarpropvalue: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn CreateProperty(&self, bstrpropname: &::windows::core::BSTR, pvarpropvalue: &super::super::super::System::Com::VARIANT) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateProperty)(::windows::core::Interface::as_raw(self), bstrpropname.into().abi(), ::core::mem::transmute(pvarpropvalue), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpropname), ::core::mem::transmute(pvarpropvalue), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeleteProperty<'a, P0>(&self, bstrpropname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DeleteProperty)(::windows::core::Interface::as_raw(self), bstrpropname.into().abi()).ok() + pub unsafe fn DeleteProperty(&self, bstrpropname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DeleteProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpropname)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -15251,17 +12780,14 @@ pub struct IOCSPPropertyCollection_Vtbl { get_Item: usize, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub get_ItemByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropname: ::core::mem::ManuallyDrop, pval: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub get_ItemByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pval: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_ItemByName: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub CreateProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropname: ::core::mem::ManuallyDrop, pvarpropvalue: *const super::super::super::System::Com::VARIANT, ppval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub CreateProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarpropvalue: *const super::super::super::System::Com::VARIANT, ppval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] CreateProperty: usize, - #[cfg(feature = "Win32_Foundation")] - pub DeleteProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeleteProperty: usize, + pub DeleteProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub InitializeFromProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvarproperties: *const super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -15280,51 +12806,30 @@ impl IObjectId { pub unsafe fn InitializeFromName(&self, name: CERTENROLL_OBJECTID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).InitializeFromName)(::windows::core::Interface::as_raw(self), name).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromValue<'a, P0>(&self, strvalue: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeFromValue)(::windows::core::Interface::as_raw(self), strvalue.into().abi()).ok() + pub unsafe fn InitializeFromValue(&self, strvalue: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeFromValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromAlgorithmName<'a, P0>(&self, groupid: ObjectIdGroupId, keyflags: ObjectIdPublicKeyFlags, algflags: AlgorithmFlags, stralgorithmname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeFromAlgorithmName)(::windows::core::Interface::as_raw(self), groupid, keyflags, algflags, stralgorithmname.into().abi()).ok() + pub unsafe fn InitializeFromAlgorithmName(&self, groupid: ObjectIdGroupId, keyflags: ObjectIdPublicKeyFlags, algflags: AlgorithmFlags, stralgorithmname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeFromAlgorithmName)(::windows::core::Interface::as_raw(self), groupid, keyflags, algflags, ::core::mem::transmute_copy(stralgorithmname)).ok() } pub unsafe fn Name(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FriendlyName(&self) -> ::windows::core::Result { + pub unsafe fn FriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFriendlyName<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetFriendlyName)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetFriendlyName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Value(&self) -> ::windows::core::Result { + pub unsafe fn Value(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Value)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Value)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetAlgorithmName(&self, groupid: ObjectIdGroupId, keyflags: ObjectIdPublicKeyFlags) -> ::windows::core::Result { + pub unsafe fn GetAlgorithmName(&self, groupid: ObjectIdGroupId, keyflags: ObjectIdPublicKeyFlags) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetAlgorithmName)(::windows::core::Interface::as_raw(self), groupid, keyflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetAlgorithmName)(::windows::core::Interface::as_raw(self), groupid, keyflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -15394,31 +12899,13 @@ unsafe impl ::windows::core::Interface for IObjectId { pub struct IObjectId_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, pub InitializeFromName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: CERTENROLL_OBJECTID) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub InitializeFromValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeFromValue: usize, - #[cfg(feature = "Win32_Foundation")] - pub InitializeFromAlgorithmName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, groupid: ObjectIdGroupId, keyflags: ObjectIdPublicKeyFlags, algflags: AlgorithmFlags, stralgorithmname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeFromAlgorithmName: usize, + pub InitializeFromValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub InitializeFromAlgorithmName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, groupid: ObjectIdGroupId, keyflags: ObjectIdPublicKeyFlags, algflags: AlgorithmFlags, stralgorithmname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut CERTENROLL_OBJECTID) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub FriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FriendlyName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetFriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetFriendlyName: usize, - #[cfg(feature = "Win32_Foundation")] - pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Value: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetAlgorithmName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, groupid: ObjectIdGroupId, keyflags: ObjectIdPublicKeyFlags, pstralgorithmname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetAlgorithmName: usize, + pub FriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetFriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetAlgorithmName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, groupid: ObjectIdGroupId, keyflags: ObjectIdPublicKeyFlags, pstralgorithmname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -15552,13 +13039,8 @@ pub struct IObjectIds_Vtbl { pub struct IPolicyQualifier(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IPolicyQualifier { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeEncode<'a, P0>(&self, strqualifier: P0, r#type: PolicyQualifierType) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeEncode)(::windows::core::Interface::as_raw(self), strqualifier.into().abi(), r#type).ok() + pub unsafe fn InitializeEncode(&self, strqualifier: &::windows::core::BSTR, r#type: PolicyQualifierType) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeEncode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strqualifier), r#type).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -15566,21 +13048,17 @@ impl IPolicyQualifier { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ObjectId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Qualifier(&self) -> ::windows::core::Result { + pub unsafe fn Qualifier(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Qualifier)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Qualifier)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Type(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -15649,23 +13127,14 @@ unsafe impl ::windows::core::Interface for IPolicyQualifier { #[doc(hidden)] pub struct IPolicyQualifier_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub InitializeEncode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strqualifier: ::core::mem::ManuallyDrop, r#type: PolicyQualifierType) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeEncode: usize, + pub InitializeEncode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strqualifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, r#type: PolicyQualifierType) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub ObjectId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] ObjectId: usize, - #[cfg(feature = "Win32_Foundation")] - pub Qualifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Qualifier: usize, + pub Qualifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut PolicyQualifierType) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub get_RawData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_RawData: usize, + pub get_RawData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -15787,19 +13256,12 @@ pub struct IPolicyQualifiers_Vtbl { pub struct ISignerCertificate(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ISignerCertificate { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Initialize<'a, P0>(&self, machinecontext: i16, verifytype: X509PrivateKeyVerify, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), machinecontext, verifytype, encoding, strcertificate.into().abi()).ok() + pub unsafe fn Initialize(&self, machinecontext: i16, verifytype: X509PrivateKeyVerify, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), machinecontext, verifytype, encoding, ::core::mem::transmute_copy(strcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_Certificate(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_Certificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_Certificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_Certificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -15821,27 +13283,15 @@ impl ISignerCertificate { pub unsafe fn SetParentWindow(&self, value: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetParentWindow)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UIContextMessage(&self) -> ::windows::core::Result { + pub unsafe fn UIContextMessage(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetUIContextMessage<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetUIContextMessage)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + (::windows::core::Interface::vtable(self).UIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPin<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPin)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetUIContextMessage(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetUIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() + } + pub unsafe fn SetPin(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPin)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -15916,14 +13366,8 @@ unsafe impl ::windows::core::Interface for ISignerCertificate { #[doc(hidden)] pub struct ISignerCertificate_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, machinecontext: i16, verifytype: X509PrivateKeyVerify, encoding: EncodingType, strcertificate: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Initialize: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_Certificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_Certificate: usize, + pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, machinecontext: i16, verifytype: X509PrivateKeyVerify, encoding: EncodingType, strcertificate: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub get_Certificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub PrivateKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -15932,18 +13376,9 @@ pub struct ISignerCertificate_Vtbl { pub SetSilent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i16) -> ::windows::core::HRESULT, pub ParentWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i32) -> ::windows::core::HRESULT, pub SetParentWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub UIContextMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UIContextMessage: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetUIContextMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetUIContextMessage: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPin: usize, + pub UIContextMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetUIContextMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetPin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub SignatureInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -16313,33 +13748,19 @@ pub struct ISmimeCapability_Vtbl { pub struct IX500DistinguishedName(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IX500DistinguishedName { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Decode<'a, P0>(&self, strencodedname: P0, encoding: EncodingType, nameflags: X500NameFlags) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Decode)(::windows::core::Interface::as_raw(self), strencodedname.into().abi(), encoding, nameflags).ok() + pub unsafe fn Decode(&self, strencodedname: &::windows::core::BSTR, encoding: EncodingType, nameflags: X500NameFlags) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Decode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strencodedname), encoding, nameflags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Encode<'a, P0>(&self, strname: P0, nameflags: X500NameFlags) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Encode)(::windows::core::Interface::as_raw(self), strname.into().abi(), nameflags).ok() + pub unsafe fn Encode(&self, strname: &::windows::core::BSTR, nameflags: X500NameFlags) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Encode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strname), nameflags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_EncodedName(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_EncodedName(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_EncodedName)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_EncodedName)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -16408,22 +13829,10 @@ unsafe impl ::windows::core::Interface for IX500DistinguishedName { #[doc(hidden)] pub struct IX500DistinguishedName_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Decode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strencodedname: ::core::mem::ManuallyDrop, encoding: EncodingType, nameflags: X500NameFlags) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Decode: usize, - #[cfg(feature = "Win32_Foundation")] - pub Encode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, nameflags: X500NameFlags) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Encode: usize, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_EncodedName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_EncodedName: usize, + pub Decode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strencodedname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType, nameflags: X500NameFlags) -> ::windows::core::HRESULT, + pub Encode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, nameflags: X500NameFlags) -> ::windows::core::HRESULT, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub get_EncodedName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -16431,14 +13840,13 @@ pub struct IX500DistinguishedName_Vtbl { pub struct IX509Attribute(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IX509Attribute { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Initialize<'a, P0, P1>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Initialize<'a, P0>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IObjectId>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, strencodeddata.into().abi()).ok() + (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -16446,11 +13854,9 @@ impl IX509Attribute { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ObjectId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -16519,18 +13925,15 @@ unsafe impl ::windows::core::Interface for IX509Attribute { #[doc(hidden)] pub struct IX509Attribute_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pobjectid: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pobjectid: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Initialize: usize, #[cfg(feature = "Win32_System_Com")] pub ObjectId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] ObjectId: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_RawData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_RawData: usize, + pub get_RawData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -16538,14 +13941,13 @@ pub struct IX509Attribute_Vtbl { pub struct IX509AttributeArchiveKey(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IX509AttributeArchiveKey { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Initialize<'a, P0, P1>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Initialize<'a, P0>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IObjectId>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, strencodeddata.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -16553,35 +13955,25 @@ impl IX509AttributeArchiveKey { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.ObjectId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn InitializeEncode<'a, P0, P1, P2>(&self, pkey: P0, encoding: EncodingType, strcaxcert: P1, palgorithm: P2, encryptionstrength: i32) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn InitializeEncode<'a, P0, P1>(&self, pkey: P0, encoding: EncodingType, strcaxcert: &::windows::core::BSTR, palgorithm: P1, encryptionstrength: i32) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IX509PrivateKey>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IObjectId>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, IObjectId>>, { - (::windows::core::Interface::vtable(self).InitializeEncode)(::windows::core::Interface::as_raw(self), pkey.into().abi(), encoding, strcaxcert.into().abi(), palgorithm.into().abi(), encryptionstrength).ok() + (::windows::core::Interface::vtable(self).InitializeEncode)(::windows::core::Interface::as_raw(self), pkey.into().abi(), encoding, ::core::mem::transmute_copy(strcaxcert), palgorithm.into().abi(), encryptionstrength).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, encoding: EncodingType, strencodeddata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, strencodeddata.into().abi()).ok() + pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_EncryptedKeyBlob(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_EncryptedKeyBlob(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_EncryptedKeyBlob)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_EncryptedKeyBlob)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -16678,18 +14070,12 @@ unsafe impl ::windows::core::Interface for IX509AttributeArchiveKey { #[doc(hidden)] pub struct IX509AttributeArchiveKey_Vtbl { pub base__: IX509Attribute_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub InitializeEncode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pkey: *mut ::core::ffi::c_void, encoding: EncodingType, strcaxcert: ::core::mem::ManuallyDrop, palgorithm: *mut ::core::ffi::c_void, encryptionstrength: i32) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub InitializeEncode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pkey: *mut ::core::ffi::c_void, encoding: EncodingType, strcaxcert: ::core::mem::ManuallyDrop<::windows::core::BSTR>, palgorithm: *mut ::core::ffi::c_void, encryptionstrength: i32) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] InitializeEncode: usize, - #[cfg(feature = "Win32_Foundation")] - pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeDecode: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_EncryptedKeyBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_EncryptedKeyBlob: usize, + pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub get_EncryptedKeyBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub EncryptionAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -16702,14 +14088,13 @@ pub struct IX509AttributeArchiveKey_Vtbl { pub struct IX509AttributeArchiveKeyHash(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IX509AttributeArchiveKeyHash { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Initialize<'a, P0, P1>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Initialize<'a, P0>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IObjectId>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, strencodeddata.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -16717,33 +14102,19 @@ impl IX509AttributeArchiveKeyHash { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.ObjectId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeEncodeFromEncryptedKeyBlob<'a, P0>(&self, encoding: EncodingType, strencryptedkeyblob: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeEncodeFromEncryptedKeyBlob)(::windows::core::Interface::as_raw(self), encoding, strencryptedkeyblob.into().abi()).ok() + pub unsafe fn InitializeEncodeFromEncryptedKeyBlob(&self, encoding: EncodingType, strencryptedkeyblob: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeEncodeFromEncryptedKeyBlob)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strencryptedkeyblob)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, encoding: EncodingType, strencodeddata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, strencodeddata.into().abi()).ok() + pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_EncryptedKeyHashBlob(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_EncryptedKeyHashBlob(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_EncryptedKeyHashBlob)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_EncryptedKeyHashBlob)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -16830,18 +14201,9 @@ unsafe impl ::windows::core::Interface for IX509AttributeArchiveKeyHash { #[doc(hidden)] pub struct IX509AttributeArchiveKeyHash_Vtbl { pub base__: IX509Attribute_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub InitializeEncodeFromEncryptedKeyBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencryptedkeyblob: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeEncodeFromEncryptedKeyBlob: usize, - #[cfg(feature = "Win32_Foundation")] - pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeDecode: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_EncryptedKeyHashBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_EncryptedKeyHashBlob: usize, + pub InitializeEncodeFromEncryptedKeyBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencryptedkeyblob: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub get_EncryptedKeyHashBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -16849,14 +14211,13 @@ pub struct IX509AttributeArchiveKeyHash_Vtbl { pub struct IX509AttributeClientId(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IX509AttributeClientId { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Initialize<'a, P0, P1>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Initialize<'a, P0>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IObjectId>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, strencodeddata.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -16864,51 +14225,31 @@ impl IX509AttributeClientId { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.ObjectId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeEncode<'a, P0, P1, P2>(&self, clientid: RequestClientInfoClientId, strmachinednsname: P0, strusersamname: P1, strprocessname: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeEncode)(::windows::core::Interface::as_raw(self), clientid, strmachinednsname.into().abi(), strusersamname.into().abi(), strprocessname.into().abi()).ok() + pub unsafe fn InitializeEncode(&self, clientid: RequestClientInfoClientId, strmachinednsname: &::windows::core::BSTR, strusersamname: &::windows::core::BSTR, strprocessname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeEncode)(::windows::core::Interface::as_raw(self), clientid, ::core::mem::transmute_copy(strmachinednsname), ::core::mem::transmute_copy(strusersamname), ::core::mem::transmute_copy(strprocessname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, encoding: EncodingType, strencodeddata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, strencodeddata.into().abi()).ok() + pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn ClientId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ClientId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MachineDnsName(&self) -> ::windows::core::Result { + pub unsafe fn MachineDnsName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).MachineDnsName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).MachineDnsName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserSamName(&self) -> ::windows::core::Result { + pub unsafe fn UserSamName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UserSamName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UserSamName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ProcessName(&self) -> ::windows::core::Result { + pub unsafe fn ProcessName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ProcessName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ProcessName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -16995,27 +14336,12 @@ unsafe impl ::windows::core::Interface for IX509AttributeClientId { #[doc(hidden)] pub struct IX509AttributeClientId_Vtbl { pub base__: IX509Attribute_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub InitializeEncode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clientid: RequestClientInfoClientId, strmachinednsname: ::core::mem::ManuallyDrop, strusersamname: ::core::mem::ManuallyDrop, strprocessname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeEncode: usize, - #[cfg(feature = "Win32_Foundation")] - pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeDecode: usize, + pub InitializeEncode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clientid: RequestClientInfoClientId, strmachinednsname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strusersamname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strprocessname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ClientId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut RequestClientInfoClientId) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub MachineDnsName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MachineDnsName: usize, - #[cfg(feature = "Win32_Foundation")] - pub UserSamName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UserSamName: usize, - #[cfg(feature = "Win32_Foundation")] - pub ProcessName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ProcessName: usize, + pub MachineDnsName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub UserSamName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ProcessName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -17023,14 +14349,13 @@ pub struct IX509AttributeClientId_Vtbl { pub struct IX509AttributeCspProvider(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IX509AttributeCspProvider { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Initialize<'a, P0, P1>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Initialize<'a, P0>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IObjectId>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, strencodeddata.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -17038,44 +14363,27 @@ impl IX509AttributeCspProvider { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.ObjectId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeEncode<'a, P0, P1>(&self, keyspec: X509KeySpec, strprovidername: P0, encoding: EncodingType, strsignature: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeEncode)(::windows::core::Interface::as_raw(self), keyspec, strprovidername.into().abi(), encoding, strsignature.into().abi()).ok() + pub unsafe fn InitializeEncode(&self, keyspec: X509KeySpec, strprovidername: &::windows::core::BSTR, encoding: EncodingType, strsignature: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeEncode)(::windows::core::Interface::as_raw(self), keyspec, ::core::mem::transmute_copy(strprovidername), encoding, ::core::mem::transmute_copy(strsignature)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, encoding: EncodingType, strencodeddata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, strencodeddata.into().abi()).ok() + pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn KeySpec(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).KeySpec)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ProviderName(&self) -> ::windows::core::Result { + pub unsafe fn ProviderName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_Signature(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_Signature(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_Signature)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_Signature)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -17162,23 +14470,11 @@ unsafe impl ::windows::core::Interface for IX509AttributeCspProvider { #[doc(hidden)] pub struct IX509AttributeCspProvider_Vtbl { pub base__: IX509Attribute_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub InitializeEncode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, keyspec: X509KeySpec, strprovidername: ::core::mem::ManuallyDrop, encoding: EncodingType, strsignature: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeEncode: usize, - #[cfg(feature = "Win32_Foundation")] - pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeDecode: usize, + pub InitializeEncode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, keyspec: X509KeySpec, strprovidername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType, strsignature: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub KeySpec: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut X509KeySpec) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ProviderName: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_Signature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_Signature: usize, + pub ProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub get_Signature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -17186,14 +14482,13 @@ pub struct IX509AttributeCspProvider_Vtbl { pub struct IX509AttributeExtensions(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IX509AttributeExtensions { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Initialize<'a, P0, P1>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Initialize<'a, P0>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IObjectId>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, strencodeddata.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -17201,11 +14496,9 @@ impl IX509AttributeExtensions { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.ObjectId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -17215,13 +14508,8 @@ impl IX509AttributeExtensions { { (::windows::core::Interface::vtable(self).InitializeEncode)(::windows::core::Interface::as_raw(self), pextensions.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, encoding: EncodingType, strencodeddata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, strencodeddata.into().abi()).ok() + pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -17318,10 +14606,7 @@ pub struct IX509AttributeExtensions_Vtbl { pub InitializeEncode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pextensions: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] InitializeEncode: usize, - #[cfg(feature = "Win32_Foundation")] - pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeDecode: usize, + pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub X509Extensions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -17333,14 +14618,13 @@ pub struct IX509AttributeExtensions_Vtbl { pub struct IX509AttributeOSVersion(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IX509AttributeOSVersion { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Initialize<'a, P0, P1>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Initialize<'a, P0>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IObjectId>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, strencodeddata.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -17348,33 +14632,19 @@ impl IX509AttributeOSVersion { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.ObjectId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeEncode<'a, P0>(&self, strosversion: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeEncode)(::windows::core::Interface::as_raw(self), strosversion.into().abi()).ok() + pub unsafe fn InitializeEncode(&self, strosversion: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeEncode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strosversion)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, encoding: EncodingType, strencodeddata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, strencodeddata.into().abi()).ok() + pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OSVersion(&self) -> ::windows::core::Result { + pub unsafe fn OSVersion(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).OSVersion)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).OSVersion)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -17461,18 +14731,9 @@ unsafe impl ::windows::core::Interface for IX509AttributeOSVersion { #[doc(hidden)] pub struct IX509AttributeOSVersion_Vtbl { pub base__: IX509Attribute_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub InitializeEncode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strosversion: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeEncode: usize, - #[cfg(feature = "Win32_Foundation")] - pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeDecode: usize, - #[cfg(feature = "Win32_Foundation")] - pub OSVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OSVersion: usize, + pub InitializeEncode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strosversion: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub OSVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -17480,14 +14741,13 @@ pub struct IX509AttributeOSVersion_Vtbl { pub struct IX509AttributeRenewalCertificate(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IX509AttributeRenewalCertificate { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Initialize<'a, P0, P1>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Initialize<'a, P0>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IObjectId>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, strencodeddata.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -17495,33 +14755,19 @@ impl IX509AttributeRenewalCertificate { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.ObjectId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeEncode<'a, P0>(&self, encoding: EncodingType, strcert: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeEncode)(::windows::core::Interface::as_raw(self), encoding, strcert.into().abi()).ok() + pub unsafe fn InitializeEncode(&self, encoding: EncodingType, strcert: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeEncode)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strcert)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, encoding: EncodingType, strencodeddata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, strencodeddata.into().abi()).ok() + pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -17608,18 +14854,9 @@ unsafe impl ::windows::core::Interface for IX509AttributeRenewalCertificate { #[doc(hidden)] pub struct IX509AttributeRenewalCertificate_Vtbl { pub base__: IX509Attribute_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub InitializeEncode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strcert: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeEncode: usize, - #[cfg(feature = "Win32_Foundation")] - pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeDecode: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_RenewalCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_RenewalCertificate: usize, + pub InitializeEncode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strcert: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub get_RenewalCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -17778,19 +15015,12 @@ impl IX509CertificateRequest { pub unsafe fn SetParentWindow(&self, value: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetParentWindow)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UIContextMessage(&self) -> ::windows::core::Result { + pub unsafe fn UIContextMessage(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetUIContextMessage<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetUIContextMessage)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetUIContextMessage(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetUIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } pub unsafe fn SuppressDefaults(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -17799,19 +15029,12 @@ impl IX509CertificateRequest { pub unsafe fn SetSuppressDefaults(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetSuppressDefaults)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_RenewalCertificate<'a, P0>(&self, encoding: EncodingType, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).put_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, value.into().abi()).ok() + pub unsafe fn put_RenewalCertificate(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).put_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(value)).ok() } pub unsafe fn ClientId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -17855,11 +15078,9 @@ impl IX509CertificateRequest { pub unsafe fn SetAlternateSignatureAlgorithm(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetAlternateSignatureAlgorithm)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -17941,24 +15162,12 @@ pub struct IX509CertificateRequest_Vtbl { pub SetSilent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i16) -> ::windows::core::HRESULT, pub ParentWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i32) -> ::windows::core::HRESULT, pub SetParentWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub UIContextMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UIContextMessage: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetUIContextMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetUIContextMessage: usize, + pub UIContextMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetUIContextMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SuppressDefaults: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i16) -> ::windows::core::HRESULT, pub SetSuppressDefaults: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub get_RenewalCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_RenewalCertificate: usize, - #[cfg(feature = "Win32_Foundation")] - pub put_RenewalCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - put_RenewalCertificate: usize, + pub get_RenewalCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub put_RenewalCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ClientId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut RequestClientInfoClientId) -> ::windows::core::HRESULT, pub SetClientId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: RequestClientInfoClientId) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] @@ -17979,10 +15188,7 @@ pub struct IX509CertificateRequest_Vtbl { SetHashAlgorithm: usize, pub AlternateSignatureAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i16) -> ::windows::core::HRESULT, pub SetAlternateSignatureAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub get_RawData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_RawData: usize, + pub get_RawData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -18027,19 +15233,12 @@ impl IX509CertificateRequestCertificate { pub unsafe fn SetParentWindow(&self, value: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.SetParentWindow)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UIContextMessage(&self) -> ::windows::core::Result { + pub unsafe fn UIContextMessage(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.UIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.UIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetUIContextMessage<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetUIContextMessage)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetUIContextMessage(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetUIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } pub unsafe fn SuppressDefaults(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -18048,19 +15247,12 @@ impl IX509CertificateRequestCertificate { pub unsafe fn SetSuppressDefaults(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.SetSuppressDefaults)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.get_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.get_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_RenewalCertificate<'a, P0>(&self, encoding: EncodingType, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.put_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, value.into().abi()).ok() + pub unsafe fn put_RenewalCertificate(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.put_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(value)).ok() } pub unsafe fn ClientId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -18104,53 +15296,34 @@ impl IX509CertificateRequestCertificate { pub unsafe fn SetAlternateSignatureAlgorithm(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.SetAlternateSignatureAlgorithm)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromTemplateName<'a, P0>(&self, context: X509CertificateEnrollmentContext, strtemplatename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeFromTemplateName)(::windows::core::Interface::as_raw(self), context, strtemplatename.into().abi()).ok() + pub unsafe fn InitializeFromTemplateName(&self, context: X509CertificateEnrollmentContext, strtemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeFromTemplateName)(::windows::core::Interface::as_raw(self), context, ::core::mem::transmute_copy(strtemplatename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn InitializeFromPrivateKey<'a, P0, P1>(&self, context: X509CertificateEnrollmentContext, pprivatekey: P0, strtemplatename: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn InitializeFromPrivateKey<'a, P0>(&self, context: X509CertificateEnrollmentContext, pprivatekey: P0, strtemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IX509PrivateKey>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.InitializeFromPrivateKey)(::windows::core::Interface::as_raw(self), context, pprivatekey.into().abi(), strtemplatename.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.InitializeFromPrivateKey)(::windows::core::Interface::as_raw(self), context, pprivatekey.into().abi(), ::core::mem::transmute_copy(strtemplatename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn InitializeFromPublicKey<'a, P0, P1>(&self, context: X509CertificateEnrollmentContext, ppublickey: P0, strtemplatename: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn InitializeFromPublicKey<'a, P0>(&self, context: X509CertificateEnrollmentContext, ppublickey: P0, strtemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IX509PublicKey>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.InitializeFromPublicKey)(::windows::core::Interface::as_raw(self), context, ppublickey.into().abi(), strtemplatename.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.InitializeFromPublicKey)(::windows::core::Interface::as_raw(self), context, ppublickey.into().abi(), ::core::mem::transmute_copy(strtemplatename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromCertificate<'a, P0>(&self, context: X509CertificateEnrollmentContext, strcertificate: P0, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), context, strcertificate.into().abi(), encoding, inheritoptions).ok() + pub unsafe fn InitializeFromCertificate(&self, context: X509CertificateEnrollmentContext, strcertificate: &::windows::core::BSTR, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), context, ::core::mem::transmute_copy(strcertificate), encoding, inheritoptions).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, strencodeddata: P0, encoding: EncodingType) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeDecode)(::windows::core::Interface::as_raw(self), strencodeddata.into().abi(), encoding).ok() + pub unsafe fn InitializeDecode(&self, strencodeddata: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeDecode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strencodeddata), encoding).ok() } pub unsafe fn CheckSignature(&self, allowedsignaturetypes: Pkcs10AllowedSignatureTypes) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.CheckSignature)(::windows::core::Interface::as_raw(self), allowedsignaturetypes).ok() @@ -18185,11 +15358,9 @@ impl IX509CertificateRequestCertificate { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.ReuseKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_OldCertificate(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_OldCertificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_OldCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_OldCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -18224,19 +15395,12 @@ impl IX509CertificateRequestCertificate { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.SignatureInformation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn KeyContainerNamePrefix(&self) -> ::windows::core::Result { + pub unsafe fn KeyContainerNamePrefix(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.KeyContainerNamePrefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.KeyContainerNamePrefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetKeyContainerNamePrefix<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetKeyContainerNamePrefix)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetKeyContainerNamePrefix(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetKeyContainerNamePrefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -18262,17 +15426,13 @@ impl IX509CertificateRequestCertificate { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.SuppressOids)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawDataToBeSigned(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawDataToBeSigned(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_RawDataToBeSigned)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_RawDataToBeSigned)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_Signature(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_Signature(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_Signature)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_Signature)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -18316,19 +15476,12 @@ impl IX509CertificateRequestCertificate { pub unsafe fn SetNotAfter(&self, value: f64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetNotAfter)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_SerialNumber(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_SerialNumber(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_SerialNumber)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_SerialNumber)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_SerialNumber<'a, P0>(&self, encoding: EncodingType, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).put_SerialNumber)(::windows::core::Interface::as_raw(self), encoding, value.into().abi()).ok() + pub unsafe fn put_SerialNumber(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).put_SerialNumber)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(value)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -18463,14 +15616,8 @@ pub struct IX509CertificateRequestCertificate_Vtbl { pub SetNotBefore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows::core::HRESULT, pub NotAfter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut f64) -> ::windows::core::HRESULT, pub SetNotAfter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub get_SerialNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_SerialNumber: usize, - #[cfg(feature = "Win32_Foundation")] - pub put_SerialNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - put_SerialNumber: usize, + pub get_SerialNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub put_SerialNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub SignerCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -18523,19 +15670,12 @@ impl IX509CertificateRequestCertificate2 { pub unsafe fn SetParentWindow(&self, value: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.SetParentWindow)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UIContextMessage(&self) -> ::windows::core::Result { + pub unsafe fn UIContextMessage(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.UIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.UIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetUIContextMessage<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.SetUIContextMessage)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetUIContextMessage(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.SetUIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } pub unsafe fn SuppressDefaults(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -18544,19 +15684,12 @@ impl IX509CertificateRequestCertificate2 { pub unsafe fn SetSuppressDefaults(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.SetSuppressDefaults)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.get_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.get_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_RenewalCertificate<'a, P0>(&self, encoding: EncodingType, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.put_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, value.into().abi()).ok() + pub unsafe fn put_RenewalCertificate(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.put_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(value)).ok() } pub unsafe fn ClientId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -18600,53 +15733,34 @@ impl IX509CertificateRequestCertificate2 { pub unsafe fn SetAlternateSignatureAlgorithm(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.SetAlternateSignatureAlgorithm)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromTemplateName<'a, P0>(&self, context: X509CertificateEnrollmentContext, strtemplatename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.InitializeFromTemplateName)(::windows::core::Interface::as_raw(self), context, strtemplatename.into().abi()).ok() + pub unsafe fn InitializeFromTemplateName(&self, context: X509CertificateEnrollmentContext, strtemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.InitializeFromTemplateName)(::windows::core::Interface::as_raw(self), context, ::core::mem::transmute_copy(strtemplatename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn InitializeFromPrivateKey<'a, P0, P1>(&self, context: X509CertificateEnrollmentContext, pprivatekey: P0, strtemplatename: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn InitializeFromPrivateKey<'a, P0>(&self, context: X509CertificateEnrollmentContext, pprivatekey: P0, strtemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IX509PrivateKey>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.base__.InitializeFromPrivateKey)(::windows::core::Interface::as_raw(self), context, pprivatekey.into().abi(), strtemplatename.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.InitializeFromPrivateKey)(::windows::core::Interface::as_raw(self), context, pprivatekey.into().abi(), ::core::mem::transmute_copy(strtemplatename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn InitializeFromPublicKey<'a, P0, P1>(&self, context: X509CertificateEnrollmentContext, ppublickey: P0, strtemplatename: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn InitializeFromPublicKey<'a, P0>(&self, context: X509CertificateEnrollmentContext, ppublickey: P0, strtemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IX509PublicKey>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.base__.InitializeFromPublicKey)(::windows::core::Interface::as_raw(self), context, ppublickey.into().abi(), strtemplatename.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.InitializeFromPublicKey)(::windows::core::Interface::as_raw(self), context, ppublickey.into().abi(), ::core::mem::transmute_copy(strtemplatename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromCertificate<'a, P0>(&self, context: X509CertificateEnrollmentContext, strcertificate: P0, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), context, strcertificate.into().abi(), encoding, inheritoptions).ok() + pub unsafe fn InitializeFromCertificate(&self, context: X509CertificateEnrollmentContext, strcertificate: &::windows::core::BSTR, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), context, ::core::mem::transmute_copy(strcertificate), encoding, inheritoptions).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, strencodeddata: P0, encoding: EncodingType) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.InitializeDecode)(::windows::core::Interface::as_raw(self), strencodeddata.into().abi(), encoding).ok() + pub unsafe fn InitializeDecode(&self, strencodeddata: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.InitializeDecode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strencodeddata), encoding).ok() } pub unsafe fn CheckSignature(&self, allowedsignaturetypes: Pkcs10AllowedSignatureTypes) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.CheckSignature)(::windows::core::Interface::as_raw(self), allowedsignaturetypes).ok() @@ -18681,11 +15795,9 @@ impl IX509CertificateRequestCertificate2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.ReuseKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_OldCertificate(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_OldCertificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.get_OldCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.get_OldCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -18720,19 +15832,12 @@ impl IX509CertificateRequestCertificate2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.SignatureInformation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn KeyContainerNamePrefix(&self) -> ::windows::core::Result { + pub unsafe fn KeyContainerNamePrefix(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.KeyContainerNamePrefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.KeyContainerNamePrefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetKeyContainerNamePrefix<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetKeyContainerNamePrefix)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetKeyContainerNamePrefix(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetKeyContainerNamePrefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -18758,17 +15863,13 @@ impl IX509CertificateRequestCertificate2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.SuppressOids)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawDataToBeSigned(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawDataToBeSigned(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.get_RawDataToBeSigned)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.get_RawDataToBeSigned)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_Signature(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_Signature(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.get_Signature)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.get_Signature)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -18812,19 +15913,12 @@ impl IX509CertificateRequestCertificate2 { pub unsafe fn SetNotAfter(&self, value: f64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetNotAfter)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_SerialNumber(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_SerialNumber(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_SerialNumber)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_SerialNumber)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_SerialNumber<'a, P0>(&self, encoding: EncodingType, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.put_SerialNumber)(::windows::core::Interface::as_raw(self), encoding, value.into().abi()).ok() + pub unsafe fn put_SerialNumber(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.put_SerialNumber)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(value)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -19052,19 +16146,12 @@ impl IX509CertificateRequestCmc { pub unsafe fn SetParentWindow(&self, value: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.SetParentWindow)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UIContextMessage(&self) -> ::windows::core::Result { + pub unsafe fn UIContextMessage(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.UIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.UIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetUIContextMessage<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetUIContextMessage)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetUIContextMessage(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetUIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } pub unsafe fn SuppressDefaults(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -19073,19 +16160,12 @@ impl IX509CertificateRequestCmc { pub unsafe fn SetSuppressDefaults(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.SetSuppressDefaults)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.get_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.get_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_RenewalCertificate<'a, P0>(&self, encoding: EncodingType, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.put_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, value.into().abi()).ok() + pub unsafe fn put_RenewalCertificate(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.put_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(value)).ok() } pub unsafe fn ClientId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -19129,27 +16209,15 @@ impl IX509CertificateRequestCmc { pub unsafe fn SetAlternateSignatureAlgorithm(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.SetAlternateSignatureAlgorithm)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromTemplateName<'a, P0>(&self, context: X509CertificateEnrollmentContext, strtemplatename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeFromTemplateName)(::windows::core::Interface::as_raw(self), context, strtemplatename.into().abi()).ok() + pub unsafe fn InitializeFromTemplateName(&self, context: X509CertificateEnrollmentContext, strtemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeFromTemplateName)(::windows::core::Interface::as_raw(self), context, ::core::mem::transmute_copy(strtemplatename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromCertificate<'a, P0>(&self, context: X509CertificateEnrollmentContext, renewalrequest: i16, strcertificate: P0, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), context, renewalrequest, strcertificate.into().abi(), encoding, inheritoptions).ok() + pub unsafe fn InitializeFromCertificate(&self, context: X509CertificateEnrollmentContext, renewalrequest: i16, strcertificate: &::windows::core::BSTR, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), context, renewalrequest, ::core::mem::transmute_copy(strcertificate), encoding, inheritoptions).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -19159,27 +16227,15 @@ impl IX509CertificateRequestCmc { { (::windows::core::Interface::vtable(self).base__.InitializeFromInnerRequest)(::windows::core::Interface::as_raw(self), pinnerrequest.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, strencodeddata: P0, encoding: EncodingType) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeDecode)(::windows::core::Interface::as_raw(self), strencodeddata.into().abi(), encoding).ok() + pub unsafe fn InitializeDecode(&self, strencodeddata: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeDecode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strencodeddata), encoding).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RequesterName(&self) -> ::windows::core::Result { + pub unsafe fn RequesterName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.RequesterName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.RequesterName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRequesterName<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetRequesterName)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetRequesterName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetRequesterName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -19195,14 +16251,13 @@ impl IX509CertificateRequestCmc { { (::windows::core::Interface::vtable(self).base__.SetSignerCertificate)(::windows::core::Interface::as_raw(self), pvalue.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn InitializeFromInnerRequestTemplateName<'a, P0, P1>(&self, pinnerrequest: P0, strtemplatename: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn InitializeFromInnerRequestTemplateName<'a, P0>(&self, pinnerrequest: P0, strtemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IX509CertificateRequest>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).InitializeFromInnerRequestTemplateName)(::windows::core::Interface::as_raw(self), pinnerrequest.into().abi(), strtemplatename.into().abi()).ok() + (::windows::core::Interface::vtable(self).InitializeFromInnerRequestTemplateName)(::windows::core::Interface::as_raw(self), pinnerrequest.into().abi(), ::core::mem::transmute_copy(strtemplatename)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -19251,19 +16306,12 @@ impl IX509CertificateRequestCmc { pub unsafe fn SetTransactionId(&self, value: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetTransactionId)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_SenderNonce(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_SenderNonce(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_SenderNonce)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_SenderNonce)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_SenderNonce<'a, P0>(&self, encoding: EncodingType, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).put_SenderNonce)(::windows::core::Interface::as_raw(self), encoding, value.into().abi()).ok() + pub unsafe fn put_SenderNonce(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).put_SenderNonce)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(value)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -19278,19 +16326,12 @@ impl IX509CertificateRequestCmc { pub unsafe fn SetArchivePrivateKey(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetArchivePrivateKey)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_KeyArchivalCertificate(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_KeyArchivalCertificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_KeyArchivalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_KeyArchivalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_KeyArchivalCertificate<'a, P0>(&self, encoding: EncodingType, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).put_KeyArchivalCertificate)(::windows::core::Interface::as_raw(self), encoding, value.into().abi()).ok() + pub unsafe fn put_KeyArchivalCertificate(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).put_KeyArchivalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(value)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -19313,11 +16354,9 @@ impl IX509CertificateRequestCmc { pub unsafe fn SetEncryptionStrength(&self, value: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetEncryptionStrength)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_EncryptedKeyHash(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_EncryptedKeyHash(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_EncryptedKeyHash)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_EncryptedKeyHash)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -19428,9 +16467,9 @@ unsafe impl ::windows::core::Interface for IX509CertificateRequestCmc { #[doc(hidden)] pub struct IX509CertificateRequestCmc_Vtbl { pub base__: IX509CertificateRequestPkcs7_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub InitializeFromInnerRequestTemplateName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinnerrequest: *mut ::core::ffi::c_void, strtemplatename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub InitializeFromInnerRequestTemplateName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinnerrequest: *mut ::core::ffi::c_void, strtemplatename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] InitializeFromInnerRequestTemplateName: usize, #[cfg(feature = "Win32_System_Com")] pub TemplateObjectId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -19459,28 +16498,16 @@ pub struct IX509CertificateRequestCmc_Vtbl { SuppressOids: usize, pub TransactionId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i32) -> ::windows::core::HRESULT, pub SetTransactionId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub get_SenderNonce: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_SenderNonce: usize, - #[cfg(feature = "Win32_Foundation")] - pub put_SenderNonce: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - put_SenderNonce: usize, + pub get_SenderNonce: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub put_SenderNonce: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub SignatureInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] SignatureInformation: usize, pub ArchivePrivateKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i16) -> ::windows::core::HRESULT, pub SetArchivePrivateKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub get_KeyArchivalCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_KeyArchivalCertificate: usize, - #[cfg(feature = "Win32_Foundation")] - pub put_KeyArchivalCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - put_KeyArchivalCertificate: usize, + pub get_KeyArchivalCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub put_KeyArchivalCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub EncryptionAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -19491,10 +16518,7 @@ pub struct IX509CertificateRequestCmc_Vtbl { SetEncryptionAlgorithm: usize, pub EncryptionStrength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i32) -> ::windows::core::HRESULT, pub SetEncryptionStrength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub get_EncryptedKeyHash: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_EncryptedKeyHash: usize, + pub get_EncryptedKeyHash: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub SignerCertificates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -19543,19 +16567,12 @@ impl IX509CertificateRequestCmc2 { pub unsafe fn SetParentWindow(&self, value: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.SetParentWindow)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UIContextMessage(&self) -> ::windows::core::Result { + pub unsafe fn UIContextMessage(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.UIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.UIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetUIContextMessage<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.SetUIContextMessage)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetUIContextMessage(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.SetUIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } pub unsafe fn SuppressDefaults(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -19564,19 +16581,12 @@ impl IX509CertificateRequestCmc2 { pub unsafe fn SetSuppressDefaults(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.SetSuppressDefaults)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.get_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.get_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_RenewalCertificate<'a, P0>(&self, encoding: EncodingType, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.put_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, value.into().abi()).ok() + pub unsafe fn put_RenewalCertificate(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.put_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(value)).ok() } pub unsafe fn ClientId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -19620,27 +16630,15 @@ impl IX509CertificateRequestCmc2 { pub unsafe fn SetAlternateSignatureAlgorithm(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.SetAlternateSignatureAlgorithm)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromTemplateName<'a, P0>(&self, context: X509CertificateEnrollmentContext, strtemplatename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.InitializeFromTemplateName)(::windows::core::Interface::as_raw(self), context, strtemplatename.into().abi()).ok() + pub unsafe fn InitializeFromTemplateName(&self, context: X509CertificateEnrollmentContext, strtemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.InitializeFromTemplateName)(::windows::core::Interface::as_raw(self), context, ::core::mem::transmute_copy(strtemplatename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromCertificate<'a, P0>(&self, context: X509CertificateEnrollmentContext, renewalrequest: i16, strcertificate: P0, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), context, renewalrequest, strcertificate.into().abi(), encoding, inheritoptions).ok() + pub unsafe fn InitializeFromCertificate(&self, context: X509CertificateEnrollmentContext, renewalrequest: i16, strcertificate: &::windows::core::BSTR, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), context, renewalrequest, ::core::mem::transmute_copy(strcertificate), encoding, inheritoptions).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -19650,27 +16648,15 @@ impl IX509CertificateRequestCmc2 { { (::windows::core::Interface::vtable(self).base__.base__.InitializeFromInnerRequest)(::windows::core::Interface::as_raw(self), pinnerrequest.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, strencodeddata: P0, encoding: EncodingType) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.InitializeDecode)(::windows::core::Interface::as_raw(self), strencodeddata.into().abi(), encoding).ok() + pub unsafe fn InitializeDecode(&self, strencodeddata: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.InitializeDecode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strencodeddata), encoding).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RequesterName(&self) -> ::windows::core::Result { + pub unsafe fn RequesterName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.RequesterName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.RequesterName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRequesterName<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetRequesterName)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetRequesterName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetRequesterName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -19686,14 +16672,13 @@ impl IX509CertificateRequestCmc2 { { (::windows::core::Interface::vtable(self).base__.base__.SetSignerCertificate)(::windows::core::Interface::as_raw(self), pvalue.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn InitializeFromInnerRequestTemplateName<'a, P0, P1>(&self, pinnerrequest: P0, strtemplatename: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn InitializeFromInnerRequestTemplateName<'a, P0>(&self, pinnerrequest: P0, strtemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IX509CertificateRequest>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.InitializeFromInnerRequestTemplateName)(::windows::core::Interface::as_raw(self), pinnerrequest.into().abi(), strtemplatename.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.InitializeFromInnerRequestTemplateName)(::windows::core::Interface::as_raw(self), pinnerrequest.into().abi(), ::core::mem::transmute_copy(strtemplatename)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -19742,19 +16727,12 @@ impl IX509CertificateRequestCmc2 { pub unsafe fn SetTransactionId(&self, value: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetTransactionId)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_SenderNonce(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_SenderNonce(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_SenderNonce)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_SenderNonce)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_SenderNonce<'a, P0>(&self, encoding: EncodingType, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.put_SenderNonce)(::windows::core::Interface::as_raw(self), encoding, value.into().abi()).ok() + pub unsafe fn put_SenderNonce(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.put_SenderNonce)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(value)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -19769,19 +16747,12 @@ impl IX509CertificateRequestCmc2 { pub unsafe fn SetArchivePrivateKey(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetArchivePrivateKey)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_KeyArchivalCertificate(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_KeyArchivalCertificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_KeyArchivalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_KeyArchivalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_KeyArchivalCertificate<'a, P0>(&self, encoding: EncodingType, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.put_KeyArchivalCertificate)(::windows::core::Interface::as_raw(self), encoding, value.into().abi()).ok() + pub unsafe fn put_KeyArchivalCertificate(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.put_KeyArchivalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(value)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -19804,11 +16775,9 @@ impl IX509CertificateRequestCmc2 { pub unsafe fn SetEncryptionStrength(&self, value: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetEncryptionStrength)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_EncryptedKeyHash(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_EncryptedKeyHash(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_EncryptedKeyHash)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_EncryptedKeyHash)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -20044,19 +17013,12 @@ impl IX509CertificateRequestPkcs10 { pub unsafe fn SetParentWindow(&self, value: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetParentWindow)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UIContextMessage(&self) -> ::windows::core::Result { + pub unsafe fn UIContextMessage(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.UIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.UIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetUIContextMessage<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetUIContextMessage)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetUIContextMessage(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetUIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } pub unsafe fn SuppressDefaults(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -20065,19 +17027,12 @@ impl IX509CertificateRequestPkcs10 { pub unsafe fn SetSuppressDefaults(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetSuppressDefaults)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_RenewalCertificate<'a, P0>(&self, encoding: EncodingType, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.put_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, value.into().abi()).ok() + pub unsafe fn put_RenewalCertificate(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.put_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(value)).ok() } pub unsafe fn ClientId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -20121,53 +17076,34 @@ impl IX509CertificateRequestPkcs10 { pub unsafe fn SetAlternateSignatureAlgorithm(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetAlternateSignatureAlgorithm)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromTemplateName<'a, P0>(&self, context: X509CertificateEnrollmentContext, strtemplatename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeFromTemplateName)(::windows::core::Interface::as_raw(self), context, strtemplatename.into().abi()).ok() + pub unsafe fn InitializeFromTemplateName(&self, context: X509CertificateEnrollmentContext, strtemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeFromTemplateName)(::windows::core::Interface::as_raw(self), context, ::core::mem::transmute_copy(strtemplatename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn InitializeFromPrivateKey<'a, P0, P1>(&self, context: X509CertificateEnrollmentContext, pprivatekey: P0, strtemplatename: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn InitializeFromPrivateKey<'a, P0>(&self, context: X509CertificateEnrollmentContext, pprivatekey: P0, strtemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IX509PrivateKey>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).InitializeFromPrivateKey)(::windows::core::Interface::as_raw(self), context, pprivatekey.into().abi(), strtemplatename.into().abi()).ok() + (::windows::core::Interface::vtable(self).InitializeFromPrivateKey)(::windows::core::Interface::as_raw(self), context, pprivatekey.into().abi(), ::core::mem::transmute_copy(strtemplatename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn InitializeFromPublicKey<'a, P0, P1>(&self, context: X509CertificateEnrollmentContext, ppublickey: P0, strtemplatename: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn InitializeFromPublicKey<'a, P0>(&self, context: X509CertificateEnrollmentContext, ppublickey: P0, strtemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IX509PublicKey>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).InitializeFromPublicKey)(::windows::core::Interface::as_raw(self), context, ppublickey.into().abi(), strtemplatename.into().abi()).ok() + (::windows::core::Interface::vtable(self).InitializeFromPublicKey)(::windows::core::Interface::as_raw(self), context, ppublickey.into().abi(), ::core::mem::transmute_copy(strtemplatename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromCertificate<'a, P0>(&self, context: X509CertificateEnrollmentContext, strcertificate: P0, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeFromCertificate)(::windows::core::Interface::as_raw(self), context, strcertificate.into().abi(), encoding, inheritoptions).ok() + pub unsafe fn InitializeFromCertificate(&self, context: X509CertificateEnrollmentContext, strcertificate: &::windows::core::BSTR, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeFromCertificate)(::windows::core::Interface::as_raw(self), context, ::core::mem::transmute_copy(strcertificate), encoding, inheritoptions).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, strencodeddata: P0, encoding: EncodingType) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), strencodeddata.into().abi(), encoding).ok() + pub unsafe fn InitializeDecode(&self, strencodeddata: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strencodeddata), encoding).ok() } pub unsafe fn CheckSignature(&self, allowedsignaturetypes: Pkcs10AllowedSignatureTypes) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).CheckSignature)(::windows::core::Interface::as_raw(self), allowedsignaturetypes).ok() @@ -20202,11 +17138,9 @@ impl IX509CertificateRequestPkcs10 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ReuseKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_OldCertificate(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_OldCertificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_OldCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_OldCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -20241,19 +17175,12 @@ impl IX509CertificateRequestPkcs10 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).SignatureInformation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn KeyContainerNamePrefix(&self) -> ::windows::core::Result { + pub unsafe fn KeyContainerNamePrefix(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).KeyContainerNamePrefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).KeyContainerNamePrefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetKeyContainerNamePrefix<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetKeyContainerNamePrefix)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetKeyContainerNamePrefix(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetKeyContainerNamePrefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -20279,17 +17206,13 @@ impl IX509CertificateRequestPkcs10 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).SuppressOids)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawDataToBeSigned(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawDataToBeSigned(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_RawDataToBeSigned)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_RawDataToBeSigned)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_Signature(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_Signature(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_Signature)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_Signature)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -20382,26 +17305,17 @@ unsafe impl ::windows::core::Interface for IX509CertificateRequestPkcs10 { #[doc(hidden)] pub struct IX509CertificateRequestPkcs10_Vtbl { pub base__: IX509CertificateRequest_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub InitializeFromTemplateName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext, strtemplatename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeFromTemplateName: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub InitializeFromPrivateKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext, pprivatekey: *mut ::core::ffi::c_void, strtemplatename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub InitializeFromTemplateName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext, strtemplatename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub InitializeFromPrivateKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext, pprivatekey: *mut ::core::ffi::c_void, strtemplatename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] InitializeFromPrivateKey: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub InitializeFromPublicKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext, ppublickey: *mut ::core::ffi::c_void, strtemplatename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub InitializeFromPublicKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext, ppublickey: *mut ::core::ffi::c_void, strtemplatename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] InitializeFromPublicKey: usize, - #[cfg(feature = "Win32_Foundation")] - pub InitializeFromCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext, strcertificate: ::core::mem::ManuallyDrop, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeFromCertificate: usize, - #[cfg(feature = "Win32_Foundation")] - pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strencodeddata: ::core::mem::ManuallyDrop, encoding: EncodingType) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeDecode: usize, + pub InitializeFromCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext, strcertificate: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> ::windows::core::HRESULT, + pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType) -> ::windows::core::HRESULT, pub CheckSignature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, allowedsignaturetypes: Pkcs10AllowedSignatureTypes) -> ::windows::core::HRESULT, pub IsSmartCard: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] @@ -20418,10 +17332,7 @@ pub struct IX509CertificateRequestPkcs10_Vtbl { PrivateKey: usize, pub NullSigned: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i16) -> ::windows::core::HRESULT, pub ReuseKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub get_OldCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_OldCertificate: usize, + pub get_OldCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Subject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -20440,14 +17351,8 @@ pub struct IX509CertificateRequestPkcs10_Vtbl { pub SignatureInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] SignatureInformation: usize, - #[cfg(feature = "Win32_Foundation")] - pub KeyContainerNamePrefix: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - KeyContainerNamePrefix: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetKeyContainerNamePrefix: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetKeyContainerNamePrefix: usize, + pub KeyContainerNamePrefix: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetKeyContainerNamePrefix: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub CryptAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -20464,14 +17369,8 @@ pub struct IX509CertificateRequestPkcs10_Vtbl { pub SuppressOids: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] SuppressOids: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_RawDataToBeSigned: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_RawDataToBeSigned: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_Signature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_Signature: usize, + pub get_RawDataToBeSigned: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub get_Signature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub GetCspStatuses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, keyspec: X509KeySpec, ppcspstatuses: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -20520,19 +17419,12 @@ impl IX509CertificateRequestPkcs10V2 { pub unsafe fn SetParentWindow(&self, value: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.SetParentWindow)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UIContextMessage(&self) -> ::windows::core::Result { + pub unsafe fn UIContextMessage(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.UIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.UIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetUIContextMessage<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetUIContextMessage)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetUIContextMessage(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetUIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } pub unsafe fn SuppressDefaults(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -20541,19 +17433,12 @@ impl IX509CertificateRequestPkcs10V2 { pub unsafe fn SetSuppressDefaults(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.SetSuppressDefaults)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.get_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.get_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_RenewalCertificate<'a, P0>(&self, encoding: EncodingType, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.put_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, value.into().abi()).ok() + pub unsafe fn put_RenewalCertificate(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.put_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(value)).ok() } pub unsafe fn ClientId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -20597,53 +17482,34 @@ impl IX509CertificateRequestPkcs10V2 { pub unsafe fn SetAlternateSignatureAlgorithm(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.SetAlternateSignatureAlgorithm)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromTemplateName<'a, P0>(&self, context: X509CertificateEnrollmentContext, strtemplatename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeFromTemplateName)(::windows::core::Interface::as_raw(self), context, strtemplatename.into().abi()).ok() + pub unsafe fn InitializeFromTemplateName(&self, context: X509CertificateEnrollmentContext, strtemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeFromTemplateName)(::windows::core::Interface::as_raw(self), context, ::core::mem::transmute_copy(strtemplatename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn InitializeFromPrivateKey<'a, P0, P1>(&self, context: X509CertificateEnrollmentContext, pprivatekey: P0, strtemplatename: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn InitializeFromPrivateKey<'a, P0>(&self, context: X509CertificateEnrollmentContext, pprivatekey: P0, strtemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IX509PrivateKey>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.InitializeFromPrivateKey)(::windows::core::Interface::as_raw(self), context, pprivatekey.into().abi(), strtemplatename.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.InitializeFromPrivateKey)(::windows::core::Interface::as_raw(self), context, pprivatekey.into().abi(), ::core::mem::transmute_copy(strtemplatename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn InitializeFromPublicKey<'a, P0, P1>(&self, context: X509CertificateEnrollmentContext, ppublickey: P0, strtemplatename: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn InitializeFromPublicKey<'a, P0>(&self, context: X509CertificateEnrollmentContext, ppublickey: P0, strtemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IX509PublicKey>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.InitializeFromPublicKey)(::windows::core::Interface::as_raw(self), context, ppublickey.into().abi(), strtemplatename.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.InitializeFromPublicKey)(::windows::core::Interface::as_raw(self), context, ppublickey.into().abi(), ::core::mem::transmute_copy(strtemplatename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromCertificate<'a, P0>(&self, context: X509CertificateEnrollmentContext, strcertificate: P0, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), context, strcertificate.into().abi(), encoding, inheritoptions).ok() + pub unsafe fn InitializeFromCertificate(&self, context: X509CertificateEnrollmentContext, strcertificate: &::windows::core::BSTR, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), context, ::core::mem::transmute_copy(strcertificate), encoding, inheritoptions).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, strencodeddata: P0, encoding: EncodingType) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeDecode)(::windows::core::Interface::as_raw(self), strencodeddata.into().abi(), encoding).ok() + pub unsafe fn InitializeDecode(&self, strencodeddata: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeDecode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strencodeddata), encoding).ok() } pub unsafe fn CheckSignature(&self, allowedsignaturetypes: Pkcs10AllowedSignatureTypes) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.CheckSignature)(::windows::core::Interface::as_raw(self), allowedsignaturetypes).ok() @@ -20678,11 +17544,9 @@ impl IX509CertificateRequestPkcs10V2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.ReuseKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_OldCertificate(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_OldCertificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_OldCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_OldCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -20717,19 +17581,12 @@ impl IX509CertificateRequestPkcs10V2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.SignatureInformation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn KeyContainerNamePrefix(&self) -> ::windows::core::Result { + pub unsafe fn KeyContainerNamePrefix(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.KeyContainerNamePrefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.KeyContainerNamePrefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetKeyContainerNamePrefix<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetKeyContainerNamePrefix)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetKeyContainerNamePrefix(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetKeyContainerNamePrefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -20755,17 +17612,13 @@ impl IX509CertificateRequestPkcs10V2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.SuppressOids)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawDataToBeSigned(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawDataToBeSigned(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_RawDataToBeSigned)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_RawDataToBeSigned)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_Signature(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_Signature(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_Signature)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_Signature)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -20981,19 +17834,12 @@ impl IX509CertificateRequestPkcs10V3 { pub unsafe fn SetParentWindow(&self, value: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.SetParentWindow)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UIContextMessage(&self) -> ::windows::core::Result { + pub unsafe fn UIContextMessage(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.UIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.UIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetUIContextMessage<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.SetUIContextMessage)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetUIContextMessage(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.SetUIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } pub unsafe fn SuppressDefaults(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -21002,19 +17848,12 @@ impl IX509CertificateRequestPkcs10V3 { pub unsafe fn SetSuppressDefaults(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.SetSuppressDefaults)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.get_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.get_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_RenewalCertificate<'a, P0>(&self, encoding: EncodingType, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.put_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, value.into().abi()).ok() + pub unsafe fn put_RenewalCertificate(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.put_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(value)).ok() } pub unsafe fn ClientId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -21058,53 +17897,34 @@ impl IX509CertificateRequestPkcs10V3 { pub unsafe fn SetAlternateSignatureAlgorithm(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.SetAlternateSignatureAlgorithm)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromTemplateName<'a, P0>(&self, context: X509CertificateEnrollmentContext, strtemplatename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.InitializeFromTemplateName)(::windows::core::Interface::as_raw(self), context, strtemplatename.into().abi()).ok() + pub unsafe fn InitializeFromTemplateName(&self, context: X509CertificateEnrollmentContext, strtemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.InitializeFromTemplateName)(::windows::core::Interface::as_raw(self), context, ::core::mem::transmute_copy(strtemplatename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn InitializeFromPrivateKey<'a, P0, P1>(&self, context: X509CertificateEnrollmentContext, pprivatekey: P0, strtemplatename: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn InitializeFromPrivateKey<'a, P0>(&self, context: X509CertificateEnrollmentContext, pprivatekey: P0, strtemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IX509PrivateKey>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.base__.InitializeFromPrivateKey)(::windows::core::Interface::as_raw(self), context, pprivatekey.into().abi(), strtemplatename.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.InitializeFromPrivateKey)(::windows::core::Interface::as_raw(self), context, pprivatekey.into().abi(), ::core::mem::transmute_copy(strtemplatename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn InitializeFromPublicKey<'a, P0, P1>(&self, context: X509CertificateEnrollmentContext, ppublickey: P0, strtemplatename: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn InitializeFromPublicKey<'a, P0>(&self, context: X509CertificateEnrollmentContext, ppublickey: P0, strtemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IX509PublicKey>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.base__.InitializeFromPublicKey)(::windows::core::Interface::as_raw(self), context, ppublickey.into().abi(), strtemplatename.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.InitializeFromPublicKey)(::windows::core::Interface::as_raw(self), context, ppublickey.into().abi(), ::core::mem::transmute_copy(strtemplatename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromCertificate<'a, P0>(&self, context: X509CertificateEnrollmentContext, strcertificate: P0, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), context, strcertificate.into().abi(), encoding, inheritoptions).ok() + pub unsafe fn InitializeFromCertificate(&self, context: X509CertificateEnrollmentContext, strcertificate: &::windows::core::BSTR, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), context, ::core::mem::transmute_copy(strcertificate), encoding, inheritoptions).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, strencodeddata: P0, encoding: EncodingType) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.InitializeDecode)(::windows::core::Interface::as_raw(self), strencodeddata.into().abi(), encoding).ok() + pub unsafe fn InitializeDecode(&self, strencodeddata: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.InitializeDecode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strencodeddata), encoding).ok() } pub unsafe fn CheckSignature(&self, allowedsignaturetypes: Pkcs10AllowedSignatureTypes) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.CheckSignature)(::windows::core::Interface::as_raw(self), allowedsignaturetypes).ok() @@ -21139,11 +17959,9 @@ impl IX509CertificateRequestPkcs10V3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.ReuseKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_OldCertificate(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_OldCertificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.get_OldCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.get_OldCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -21178,19 +17996,12 @@ impl IX509CertificateRequestPkcs10V3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.SignatureInformation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn KeyContainerNamePrefix(&self) -> ::windows::core::Result { + pub unsafe fn KeyContainerNamePrefix(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.KeyContainerNamePrefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.KeyContainerNamePrefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetKeyContainerNamePrefix<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetKeyContainerNamePrefix)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetKeyContainerNamePrefix(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetKeyContainerNamePrefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -21216,17 +18027,13 @@ impl IX509CertificateRequestPkcs10V3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.SuppressOids)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawDataToBeSigned(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawDataToBeSigned(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.get_RawDataToBeSigned)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.get_RawDataToBeSigned)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_Signature(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_Signature(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.get_Signature)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.get_Signature)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -21282,19 +18089,12 @@ impl IX509CertificateRequestPkcs10V3 { pub unsafe fn SetAttestPrivateKey(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetAttestPrivateKey)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_AttestationEncryptionCertificate(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_AttestationEncryptionCertificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_AttestationEncryptionCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_AttestationEncryptionCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_AttestationEncryptionCertificate<'a, P0>(&self, encoding: EncodingType, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).put_AttestationEncryptionCertificate)(::windows::core::Interface::as_raw(self), encoding, value.into().abi()).ok() + pub unsafe fn put_AttestationEncryptionCertificate(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).put_AttestationEncryptionCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(value)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -21317,19 +18117,12 @@ impl IX509CertificateRequestPkcs10V3 { pub unsafe fn SetEncryptionStrength(&self, value: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetEncryptionStrength)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ChallengePassword(&self) -> ::windows::core::Result { + pub unsafe fn ChallengePassword(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ChallengePassword)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ChallengePassword)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetChallengePassword<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetChallengePassword)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetChallengePassword(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetChallengePassword)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -21460,14 +18253,8 @@ pub struct IX509CertificateRequestPkcs10V3_Vtbl { pub base__: IX509CertificateRequestPkcs10V2_Vtbl, pub AttestPrivateKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i16) -> ::windows::core::HRESULT, pub SetAttestPrivateKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub get_AttestationEncryptionCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_AttestationEncryptionCertificate: usize, - #[cfg(feature = "Win32_Foundation")] - pub put_AttestationEncryptionCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - put_AttestationEncryptionCertificate: usize, + pub get_AttestationEncryptionCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub put_AttestationEncryptionCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub EncryptionAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -21478,14 +18265,8 @@ pub struct IX509CertificateRequestPkcs10V3_Vtbl { SetEncryptionAlgorithm: usize, pub EncryptionStrength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i32) -> ::windows::core::HRESULT, pub SetEncryptionStrength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ChallengePassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ChallengePassword: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetChallengePassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetChallengePassword: usize, + pub ChallengePassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetChallengePassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub NameValuePairs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -21534,19 +18315,12 @@ impl IX509CertificateRequestPkcs10V4 { pub unsafe fn SetParentWindow(&self, value: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.SetParentWindow)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UIContextMessage(&self) -> ::windows::core::Result { + pub unsafe fn UIContextMessage(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.UIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.UIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetUIContextMessage<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.SetUIContextMessage)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetUIContextMessage(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.SetUIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } pub unsafe fn SuppressDefaults(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -21555,19 +18329,12 @@ impl IX509CertificateRequestPkcs10V4 { pub unsafe fn SetSuppressDefaults(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.SetSuppressDefaults)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.get_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.get_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_RenewalCertificate<'a, P0>(&self, encoding: EncodingType, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.put_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, value.into().abi()).ok() + pub unsafe fn put_RenewalCertificate(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.put_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(value)).ok() } pub unsafe fn ClientId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -21611,53 +18378,34 @@ impl IX509CertificateRequestPkcs10V4 { pub unsafe fn SetAlternateSignatureAlgorithm(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.SetAlternateSignatureAlgorithm)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromTemplateName<'a, P0>(&self, context: X509CertificateEnrollmentContext, strtemplatename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.InitializeFromTemplateName)(::windows::core::Interface::as_raw(self), context, strtemplatename.into().abi()).ok() + pub unsafe fn InitializeFromTemplateName(&self, context: X509CertificateEnrollmentContext, strtemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.InitializeFromTemplateName)(::windows::core::Interface::as_raw(self), context, ::core::mem::transmute_copy(strtemplatename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn InitializeFromPrivateKey<'a, P0, P1>(&self, context: X509CertificateEnrollmentContext, pprivatekey: P0, strtemplatename: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn InitializeFromPrivateKey<'a, P0>(&self, context: X509CertificateEnrollmentContext, pprivatekey: P0, strtemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IX509PrivateKey>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.base__.base__.InitializeFromPrivateKey)(::windows::core::Interface::as_raw(self), context, pprivatekey.into().abi(), strtemplatename.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.base__.InitializeFromPrivateKey)(::windows::core::Interface::as_raw(self), context, pprivatekey.into().abi(), ::core::mem::transmute_copy(strtemplatename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn InitializeFromPublicKey<'a, P0, P1>(&self, context: X509CertificateEnrollmentContext, ppublickey: P0, strtemplatename: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn InitializeFromPublicKey<'a, P0>(&self, context: X509CertificateEnrollmentContext, ppublickey: P0, strtemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IX509PublicKey>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.base__.base__.InitializeFromPublicKey)(::windows::core::Interface::as_raw(self), context, ppublickey.into().abi(), strtemplatename.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.base__.InitializeFromPublicKey)(::windows::core::Interface::as_raw(self), context, ppublickey.into().abi(), ::core::mem::transmute_copy(strtemplatename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromCertificate<'a, P0>(&self, context: X509CertificateEnrollmentContext, strcertificate: P0, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), context, strcertificate.into().abi(), encoding, inheritoptions).ok() + pub unsafe fn InitializeFromCertificate(&self, context: X509CertificateEnrollmentContext, strcertificate: &::windows::core::BSTR, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), context, ::core::mem::transmute_copy(strcertificate), encoding, inheritoptions).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, strencodeddata: P0, encoding: EncodingType) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.InitializeDecode)(::windows::core::Interface::as_raw(self), strencodeddata.into().abi(), encoding).ok() + pub unsafe fn InitializeDecode(&self, strencodeddata: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.InitializeDecode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strencodeddata), encoding).ok() } pub unsafe fn CheckSignature(&self, allowedsignaturetypes: Pkcs10AllowedSignatureTypes) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.CheckSignature)(::windows::core::Interface::as_raw(self), allowedsignaturetypes).ok() @@ -21692,11 +18440,9 @@ impl IX509CertificateRequestPkcs10V4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.ReuseKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_OldCertificate(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_OldCertificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.get_OldCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.get_OldCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -21731,19 +18477,12 @@ impl IX509CertificateRequestPkcs10V4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.SignatureInformation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn KeyContainerNamePrefix(&self) -> ::windows::core::Result { + pub unsafe fn KeyContainerNamePrefix(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.KeyContainerNamePrefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.KeyContainerNamePrefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetKeyContainerNamePrefix<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.SetKeyContainerNamePrefix)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetKeyContainerNamePrefix(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.SetKeyContainerNamePrefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -21769,17 +18508,13 @@ impl IX509CertificateRequestPkcs10V4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.SuppressOids)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawDataToBeSigned(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawDataToBeSigned(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.get_RawDataToBeSigned)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.get_RawDataToBeSigned)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_Signature(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_Signature(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.get_Signature)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.get_Signature)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -21835,19 +18570,12 @@ impl IX509CertificateRequestPkcs10V4 { pub unsafe fn SetAttestPrivateKey(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetAttestPrivateKey)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_AttestationEncryptionCertificate(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_AttestationEncryptionCertificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_AttestationEncryptionCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_AttestationEncryptionCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_AttestationEncryptionCertificate<'a, P0>(&self, encoding: EncodingType, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.put_AttestationEncryptionCertificate)(::windows::core::Interface::as_raw(self), encoding, value.into().abi()).ok() + pub unsafe fn put_AttestationEncryptionCertificate(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.put_AttestationEncryptionCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(value)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -21870,19 +18598,12 @@ impl IX509CertificateRequestPkcs10V4 { pub unsafe fn SetEncryptionStrength(&self, value: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetEncryptionStrength)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ChallengePassword(&self) -> ::windows::core::Result { + pub unsafe fn ChallengePassword(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ChallengePassword)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ChallengePassword)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetChallengePassword<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetChallengePassword)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetChallengePassword(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetChallengePassword)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -22091,19 +18812,12 @@ impl IX509CertificateRequestPkcs7 { pub unsafe fn SetParentWindow(&self, value: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetParentWindow)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UIContextMessage(&self) -> ::windows::core::Result { + pub unsafe fn UIContextMessage(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.UIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.UIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetUIContextMessage<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetUIContextMessage)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetUIContextMessage(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetUIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } pub unsafe fn SuppressDefaults(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -22112,19 +18826,12 @@ impl IX509CertificateRequestPkcs7 { pub unsafe fn SetSuppressDefaults(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetSuppressDefaults)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_RenewalCertificate<'a, P0>(&self, encoding: EncodingType, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.put_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, value.into().abi()).ok() + pub unsafe fn put_RenewalCertificate(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.put_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(value)).ok() } pub unsafe fn ClientId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -22168,27 +18875,15 @@ impl IX509CertificateRequestPkcs7 { pub unsafe fn SetAlternateSignatureAlgorithm(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetAlternateSignatureAlgorithm)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromTemplateName<'a, P0>(&self, context: X509CertificateEnrollmentContext, strtemplatename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeFromTemplateName)(::windows::core::Interface::as_raw(self), context, strtemplatename.into().abi()).ok() + pub unsafe fn InitializeFromTemplateName(&self, context: X509CertificateEnrollmentContext, strtemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeFromTemplateName)(::windows::core::Interface::as_raw(self), context, ::core::mem::transmute_copy(strtemplatename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromCertificate<'a, P0>(&self, context: X509CertificateEnrollmentContext, renewalrequest: i16, strcertificate: P0, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeFromCertificate)(::windows::core::Interface::as_raw(self), context, renewalrequest, strcertificate.into().abi(), encoding, inheritoptions).ok() + pub unsafe fn InitializeFromCertificate(&self, context: X509CertificateEnrollmentContext, renewalrequest: i16, strcertificate: &::windows::core::BSTR, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeFromCertificate)(::windows::core::Interface::as_raw(self), context, renewalrequest, ::core::mem::transmute_copy(strcertificate), encoding, inheritoptions).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -22198,27 +18893,15 @@ impl IX509CertificateRequestPkcs7 { { (::windows::core::Interface::vtable(self).InitializeFromInnerRequest)(::windows::core::Interface::as_raw(self), pinnerrequest.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, strencodeddata: P0, encoding: EncodingType) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), strencodeddata.into().abi(), encoding).ok() + pub unsafe fn InitializeDecode(&self, strencodeddata: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strencodeddata), encoding).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RequesterName(&self) -> ::windows::core::Result { + pub unsafe fn RequesterName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RequesterName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RequesterName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRequesterName<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetRequesterName)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetRequesterName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetRequesterName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -22319,30 +19002,15 @@ unsafe impl ::windows::core::Interface for IX509CertificateRequestPkcs7 { #[doc(hidden)] pub struct IX509CertificateRequestPkcs7_Vtbl { pub base__: IX509CertificateRequest_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub InitializeFromTemplateName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext, strtemplatename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeFromTemplateName: usize, - #[cfg(feature = "Win32_Foundation")] - pub InitializeFromCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext, renewalrequest: i16, strcertificate: ::core::mem::ManuallyDrop, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeFromCertificate: usize, + pub InitializeFromTemplateName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext, strtemplatename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub InitializeFromCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext, renewalrequest: i16, strcertificate: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub InitializeFromInnerRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinnerrequest: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] InitializeFromInnerRequest: usize, - #[cfg(feature = "Win32_Foundation")] - pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strencodeddata: ::core::mem::ManuallyDrop, encoding: EncodingType) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeDecode: usize, - #[cfg(feature = "Win32_Foundation")] - pub RequesterName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RequesterName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetRequesterName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetRequesterName: usize, + pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType) -> ::windows::core::HRESULT, + pub RequesterName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetRequesterName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub SignerCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -22395,19 +19063,12 @@ impl IX509CertificateRequestPkcs7V2 { pub unsafe fn SetParentWindow(&self, value: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.SetParentWindow)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UIContextMessage(&self) -> ::windows::core::Result { + pub unsafe fn UIContextMessage(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.UIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.UIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetUIContextMessage<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetUIContextMessage)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetUIContextMessage(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetUIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } pub unsafe fn SuppressDefaults(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -22416,19 +19077,12 @@ impl IX509CertificateRequestPkcs7V2 { pub unsafe fn SetSuppressDefaults(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.SetSuppressDefaults)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RenewalCertificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.get_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.get_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_RenewalCertificate<'a, P0>(&self, encoding: EncodingType, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.put_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, value.into().abi()).ok() + pub unsafe fn put_RenewalCertificate(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.put_RenewalCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(value)).ok() } pub unsafe fn ClientId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -22472,27 +19126,15 @@ impl IX509CertificateRequestPkcs7V2 { pub unsafe fn SetAlternateSignatureAlgorithm(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.SetAlternateSignatureAlgorithm)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromTemplateName<'a, P0>(&self, context: X509CertificateEnrollmentContext, strtemplatename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeFromTemplateName)(::windows::core::Interface::as_raw(self), context, strtemplatename.into().abi()).ok() + pub unsafe fn InitializeFromTemplateName(&self, context: X509CertificateEnrollmentContext, strtemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeFromTemplateName)(::windows::core::Interface::as_raw(self), context, ::core::mem::transmute_copy(strtemplatename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromCertificate<'a, P0>(&self, context: X509CertificateEnrollmentContext, renewalrequest: i16, strcertificate: P0, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), context, renewalrequest, strcertificate.into().abi(), encoding, inheritoptions).ok() + pub unsafe fn InitializeFromCertificate(&self, context: X509CertificateEnrollmentContext, renewalrequest: i16, strcertificate: &::windows::core::BSTR, encoding: EncodingType, inheritoptions: X509RequestInheritOptions) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeFromCertificate)(::windows::core::Interface::as_raw(self), context, renewalrequest, ::core::mem::transmute_copy(strcertificate), encoding, inheritoptions).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -22502,27 +19144,15 @@ impl IX509CertificateRequestPkcs7V2 { { (::windows::core::Interface::vtable(self).base__.InitializeFromInnerRequest)(::windows::core::Interface::as_raw(self), pinnerrequest.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, strencodeddata: P0, encoding: EncodingType) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeDecode)(::windows::core::Interface::as_raw(self), strencodeddata.into().abi(), encoding).ok() + pub unsafe fn InitializeDecode(&self, strencodeddata: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeDecode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strencodeddata), encoding).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RequesterName(&self) -> ::windows::core::Result { + pub unsafe fn RequesterName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.RequesterName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.RequesterName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRequesterName<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetRequesterName)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetRequesterName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetRequesterName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -22688,13 +19318,8 @@ impl IX509CertificateRevocationList { pub unsafe fn Initialize(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, strencodeddata: P0, encoding: EncodingType) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), strencodeddata.into().abi(), encoding).ok() + pub unsafe fn InitializeDecode(&self, strencodeddata: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strencodeddata), encoding).ok() } pub unsafe fn Encode(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Encode)(::windows::core::Interface::as_raw(self)).ok() @@ -22773,19 +19398,12 @@ impl IX509CertificateRevocationList { { (::windows::core::Interface::vtable(self).SetSignerCertificate)(::windows::core::Interface::as_raw(self), pvalue.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_CRLNumber(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_CRLNumber(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_CRLNumber)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_CRLNumber)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_CRLNumber<'a, P0>(&self, encoding: EncodingType, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).put_CRLNumber)(::windows::core::Interface::as_raw(self), encoding, value.into().abi()).ok() + pub unsafe fn put_CRLNumber(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).put_CRLNumber)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(value)).ok() } pub unsafe fn CAVersion(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -22829,23 +19447,17 @@ impl IX509CertificateRevocationList { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).SignatureInformation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawDataToBeSigned(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawDataToBeSigned(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_RawDataToBeSigned)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_RawDataToBeSigned)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_Signature(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_Signature(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_Signature)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_Signature)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -22915,10 +19527,7 @@ unsafe impl ::windows::core::Interface for IX509CertificateRevocationList { pub struct IX509CertificateRevocationList_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strencodeddata: ::core::mem::ManuallyDrop, encoding: EncodingType) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeDecode: usize, + pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType) -> ::windows::core::HRESULT, pub Encode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub ResetForEncode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] @@ -22958,14 +19567,8 @@ pub struct IX509CertificateRevocationList_Vtbl { pub SetSignerCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] SetSignerCertificate: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_CRLNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_CRLNumber: usize, - #[cfg(feature = "Win32_Foundation")] - pub put_CRLNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - put_CRLNumber: usize, + pub get_CRLNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub put_CRLNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub CAVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i32) -> ::windows::core::HRESULT, pub SetCAVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: i32) -> ::windows::core::HRESULT, pub BaseCRL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i16) -> ::windows::core::HRESULT, @@ -22984,18 +19587,9 @@ pub struct IX509CertificateRevocationList_Vtbl { pub SignatureInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] SignatureInformation: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_RawData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_RawData: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_RawDataToBeSigned: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_RawDataToBeSigned: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_Signature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_Signature: usize, + pub get_RawData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub get_RawDataToBeSigned: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub get_Signature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -23031,14 +19625,9 @@ impl IX509CertificateRevocationListEntries { pub unsafe fn Clear(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Clear)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_IndexBySerialNumber<'a, P0>(&self, encoding: EncodingType, serialnumber: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn get_IndexBySerialNumber(&self, encoding: EncodingType, serialnumber: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_IndexBySerialNumber)(::windows::core::Interface::as_raw(self), encoding, serialnumber.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_IndexBySerialNumber)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(serialnumber), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -23127,10 +19716,7 @@ pub struct IX509CertificateRevocationListEntries_Vtbl { Add: usize, pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32) -> ::windows::core::HRESULT, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub get_IndexBySerialNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, serialnumber: ::core::mem::ManuallyDrop, pindex: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_IndexBySerialNumber: usize, + pub get_IndexBySerialNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, serialnumber: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pindex: *mut i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub AddRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -23142,19 +19728,12 @@ pub struct IX509CertificateRevocationListEntries_Vtbl { pub struct IX509CertificateRevocationListEntry(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IX509CertificateRevocationListEntry { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Initialize<'a, P0>(&self, encoding: EncodingType, serialnumber: P0, revocationdate: f64) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), encoding, serialnumber.into().abi(), revocationdate).ok() + pub unsafe fn Initialize(&self, encoding: EncodingType, serialnumber: &::windows::core::BSTR, revocationdate: f64) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(serialnumber), revocationdate).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_SerialNumber(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_SerialNumber(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_SerialNumber)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_SerialNumber)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn RevocationDate(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -23246,14 +19825,8 @@ unsafe impl ::windows::core::Interface for IX509CertificateRevocationListEntry { #[doc(hidden)] pub struct IX509CertificateRevocationListEntry_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, serialnumber: ::core::mem::ManuallyDrop, revocationdate: f64) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Initialize: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_SerialNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_SerialNumber: usize, + pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, serialnumber: ::core::mem::ManuallyDrop<::windows::core::BSTR>, revocationdate: f64) -> ::windows::core::HRESULT, + pub get_SerialNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub RevocationDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut f64) -> ::windows::core::HRESULT, pub RevocationReason: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut CRLRevocationReason) -> ::windows::core::HRESULT, pub SetRevocationReason: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: CRLRevocationReason) -> ::windows::core::HRESULT, @@ -23364,13 +19937,8 @@ impl IX509CertificateTemplateWritable { { (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), pvalue.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Commit<'a, P0>(&self, commitflags: CommitTemplateFlags, strservercontext: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Commit)(::windows::core::Interface::as_raw(self), commitflags, strservercontext.into().abi()).ok() + pub unsafe fn Commit(&self, commitflags: CommitTemplateFlags, strservercontext: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Commit)(::windows::core::Interface::as_raw(self), commitflags, ::core::mem::transmute_copy(strservercontext)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -23463,10 +20031,7 @@ pub struct IX509CertificateTemplateWritable_Vtbl { pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Initialize: usize, - #[cfg(feature = "Win32_Foundation")] - pub Commit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, commitflags: CommitTemplateFlags, strservercontext: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Commit: usize, + pub Commit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, commitflags: CommitTemplateFlags, strservercontext: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub get_Property: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, property: EnrollmentTemplateProperty, pvalue: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -23513,15 +20078,12 @@ impl IX509CertificateTemplates { } pub unsafe fn Clear(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Clear)(::windows::core::Interface::as_raw(self)).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn get_ItemByName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + } + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn get_ItemByName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_ItemByName)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_ItemByName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -23611,9 +20173,9 @@ pub struct IX509CertificateTemplates_Vtbl { Add: usize, pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32) -> ::windows::core::HRESULT, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub get_ItemByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub get_ItemByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] get_ItemByName: usize, #[cfg(feature = "Win32_System_Com")] pub get_ItemByOid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, poid: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -23626,19 +20188,12 @@ pub struct IX509CertificateTemplates_Vtbl { pub struct IX509EndorsementKey(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IX509EndorsementKey { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ProviderName(&self) -> ::windows::core::Result { + pub unsafe fn ProviderName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetProviderName<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetProviderName)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetProviderName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } pub unsafe fn Length(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -23648,27 +20203,15 @@ impl IX509EndorsementKey { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Opened)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddCertificate<'a, P0>(&self, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AddCertificate)(::windows::core::Interface::as_raw(self), encoding, strcertificate.into().abi()).ok() + pub unsafe fn AddCertificate(&self, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AddCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoveCertificate<'a, P0>(&self, encoding: EncodingType, strcertificate: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).RemoveCertificate)(::windows::core::Interface::as_raw(self), encoding, strcertificate.into().abi()).ok() + pub unsafe fn RemoveCertificate(&self, encoding: EncodingType, strcertificate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).RemoveCertificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCertificateByIndex(&self, manufactureronly: i16, dwindex: i32, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn GetCertificateByIndex(&self, manufactureronly: i16, dwindex: i32, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetCertificateByIndex)(::windows::core::Interface::as_raw(self), manufactureronly, dwindex, encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetCertificateByIndex)(::windows::core::Interface::as_raw(self), manufactureronly, dwindex, encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetCertificateCount(&self, manufactureronly: i16) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -23753,28 +20296,13 @@ unsafe impl ::windows::core::Interface for IX509EndorsementKey { #[doc(hidden)] pub struct IX509EndorsementKey_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub ProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ProviderName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetProviderName: usize, + pub ProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Length: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i32) -> ::windows::core::HRESULT, pub Opened: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub AddCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strcertificate: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddCertificate: usize, - #[cfg(feature = "Win32_Foundation")] - pub RemoveCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strcertificate: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RemoveCertificate: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetCertificateByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, manufactureronly: i16, dwindex: i32, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetCertificateByIndex: usize, + pub AddCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strcertificate: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub RemoveCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strcertificate: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetCertificateByIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, manufactureronly: i16, dwindex: i32, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetCertificateCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, manufactureronly: i16, pcount: *mut i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub ExportPublicKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pppublickey: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -23792,13 +20320,8 @@ impl IX509Enrollment { pub unsafe fn Initialize(&self, context: X509CertificateEnrollmentContext) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), context).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromTemplateName<'a, P0>(&self, context: X509CertificateEnrollmentContext, strtemplatename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeFromTemplateName)(::windows::core::Interface::as_raw(self), context, strtemplatename.into().abi()).ok() + pub unsafe fn InitializeFromTemplateName(&self, context: X509CertificateEnrollmentContext, strtemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeFromTemplateName)(::windows::core::Interface::as_raw(self), context, ::core::mem::transmute_copy(strtemplatename)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -23808,32 +20331,19 @@ impl IX509Enrollment { { (::windows::core::Interface::vtable(self).InitializeFromRequest)(::windows::core::Interface::as_raw(self), prequest.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateRequest(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn CreateRequest(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateRequest)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateRequest)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Enroll(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Enroll)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InstallResponse<'a, P0, P1>(&self, restrictions: InstallResponseRestrictionFlags, strresponse: P0, encoding: EncodingType, strpassword: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InstallResponse)(::windows::core::Interface::as_raw(self), restrictions, strresponse.into().abi(), encoding, strpassword.into().abi()).ok() + pub unsafe fn InstallResponse(&self, restrictions: InstallResponseRestrictionFlags, strresponse: &::windows::core::BSTR, encoding: EncodingType, strpassword: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InstallResponse)(::windows::core::Interface::as_raw(self), restrictions, ::core::mem::transmute_copy(strresponse), encoding, ::core::mem::transmute_copy(strpassword)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreatePFX<'a, P0>(&self, strpassword: P0, exportoptions: PFXExportOptions, encoding: EncodingType) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn CreatePFX(&self, strpassword: &::windows::core::BSTR, exportoptions: PFXExportOptions, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreatePFX)(::windows::core::Interface::as_raw(self), strpassword.into().abi(), exportoptions, encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreatePFX)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strpassword), exportoptions, encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -23871,55 +20381,35 @@ impl IX509Enrollment { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Status)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_Certificate(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_Certificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_Certificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_Certificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_Response(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_Response(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_Response)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_Response)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CertificateFriendlyName(&self) -> ::windows::core::Result { + pub unsafe fn CertificateFriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CertificateFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CertificateFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCertificateFriendlyName<'a, P0>(&self, strvalue: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetCertificateFriendlyName)(::windows::core::Interface::as_raw(self), strvalue.into().abi()).ok() + pub unsafe fn SetCertificateFriendlyName(&self, strvalue: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetCertificateFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CertificateDescription(&self) -> ::windows::core::Result { + pub unsafe fn CertificateDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CertificateDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CertificateDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCertificateDescription<'a, P0>(&self, strvalue: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetCertificateDescription)(::windows::core::Interface::as_raw(self), strvalue.into().abi()).ok() + pub unsafe fn SetCertificateDescription(&self, strvalue: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetCertificateDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strvalue)).ok() } pub unsafe fn RequestId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).RequestId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CAConfigString(&self) -> ::windows::core::Result { + pub unsafe fn CAConfigString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CAConfigString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CAConfigString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -23989,27 +20479,15 @@ unsafe impl ::windows::core::Interface for IX509Enrollment { pub struct IX509Enrollment_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub InitializeFromTemplateName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext, strtemplatename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeFromTemplateName: usize, + pub InitializeFromTemplateName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext, strtemplatename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub InitializeFromRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prequest: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] InitializeFromRequest: usize, - #[cfg(feature = "Win32_Foundation")] - pub CreateRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CreateRequest: usize, + pub CreateRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Enroll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub InstallResponse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, restrictions: InstallResponseRestrictionFlags, strresponse: ::core::mem::ManuallyDrop, encoding: EncodingType, strpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InstallResponse: usize, - #[cfg(feature = "Win32_Foundation")] - pub CreatePFX: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpassword: ::core::mem::ManuallyDrop, exportoptions: PFXExportOptions, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CreatePFX: usize, + pub InstallResponse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, restrictions: InstallResponseRestrictionFlags, strresponse: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CreatePFX: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, exportoptions: PFXExportOptions, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -24027,35 +20505,14 @@ pub struct IX509Enrollment_Vtbl { pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Status: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_Certificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_Certificate: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_Response: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_Response: usize, - #[cfg(feature = "Win32_Foundation")] - pub CertificateFriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CertificateFriendlyName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetCertificateFriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetCertificateFriendlyName: usize, - #[cfg(feature = "Win32_Foundation")] - pub CertificateDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CertificateDescription: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetCertificateDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetCertificateDescription: usize, + pub get_Certificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub get_Response: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CertificateFriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetCertificateFriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CertificateDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetCertificateDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub RequestId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CAConfigString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CAConfigString: usize, + pub CAConfigString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -24066,13 +20523,8 @@ impl IX509Enrollment2 { pub unsafe fn Initialize(&self, context: X509CertificateEnrollmentContext) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), context).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromTemplateName<'a, P0>(&self, context: X509CertificateEnrollmentContext, strtemplatename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeFromTemplateName)(::windows::core::Interface::as_raw(self), context, strtemplatename.into().abi()).ok() + pub unsafe fn InitializeFromTemplateName(&self, context: X509CertificateEnrollmentContext, strtemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeFromTemplateName)(::windows::core::Interface::as_raw(self), context, ::core::mem::transmute_copy(strtemplatename)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -24082,32 +20534,19 @@ impl IX509Enrollment2 { { (::windows::core::Interface::vtable(self).base__.InitializeFromRequest)(::windows::core::Interface::as_raw(self), prequest.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateRequest(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn CreateRequest(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CreateRequest)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CreateRequest)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Enroll(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Enroll)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InstallResponse<'a, P0, P1>(&self, restrictions: InstallResponseRestrictionFlags, strresponse: P0, encoding: EncodingType, strpassword: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InstallResponse)(::windows::core::Interface::as_raw(self), restrictions, strresponse.into().abi(), encoding, strpassword.into().abi()).ok() + pub unsafe fn InstallResponse(&self, restrictions: InstallResponseRestrictionFlags, strresponse: &::windows::core::BSTR, encoding: EncodingType, strpassword: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InstallResponse)(::windows::core::Interface::as_raw(self), restrictions, ::core::mem::transmute_copy(strresponse), encoding, ::core::mem::transmute_copy(strpassword)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreatePFX<'a, P0>(&self, strpassword: P0, exportoptions: PFXExportOptions, encoding: EncodingType) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn CreatePFX(&self, strpassword: &::windows::core::BSTR, exportoptions: PFXExportOptions, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CreatePFX)(::windows::core::Interface::as_raw(self), strpassword.into().abi(), exportoptions, encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CreatePFX)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strpassword), exportoptions, encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -24145,55 +20584,35 @@ impl IX509Enrollment2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Status)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_Certificate(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_Certificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_Certificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_Certificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_Response(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_Response(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_Response)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_Response)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CertificateFriendlyName(&self) -> ::windows::core::Result { + pub unsafe fn CertificateFriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CertificateFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CertificateFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCertificateFriendlyName<'a, P0>(&self, strvalue: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetCertificateFriendlyName)(::windows::core::Interface::as_raw(self), strvalue.into().abi()).ok() + pub unsafe fn SetCertificateFriendlyName(&self, strvalue: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetCertificateFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CertificateDescription(&self) -> ::windows::core::Result { + pub unsafe fn CertificateDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CertificateDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CertificateDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCertificateDescription<'a, P0>(&self, strvalue: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetCertificateDescription)(::windows::core::Interface::as_raw(self), strvalue.into().abi()).ok() + pub unsafe fn SetCertificateDescription(&self, strvalue: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetCertificateDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strvalue)).ok() } pub unsafe fn RequestId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.RequestId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CAConfigString(&self) -> ::windows::core::Result { + pub unsafe fn CAConfigString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CAConfigString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CAConfigString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -24204,16 +20623,8 @@ impl IX509Enrollment2 { { (::windows::core::Interface::vtable(self).InitializeFromTemplate)(::windows::core::Interface::as_raw(self), context, ppolicyserver.into().abi(), ptemplate.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InstallResponse2<'a, P0, P1, P2, P3>(&self, restrictions: InstallResponseRestrictionFlags, strresponse: P0, encoding: EncodingType, strpassword: P1, strenrollmentpolicyserverurl: P2, strenrollmentpolicyserverid: P3, enrollmentpolicyserverflags: PolicyServerUrlFlags, authflags: X509EnrollmentAuthFlags) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InstallResponse2)(::windows::core::Interface::as_raw(self), restrictions, strresponse.into().abi(), encoding, strpassword.into().abi(), strenrollmentpolicyserverurl.into().abi(), strenrollmentpolicyserverid.into().abi(), enrollmentpolicyserverflags, authflags).ok() + pub unsafe fn InstallResponse2(&self, restrictions: InstallResponseRestrictionFlags, strresponse: &::windows::core::BSTR, encoding: EncodingType, strpassword: &::windows::core::BSTR, strenrollmentpolicyserverurl: &::windows::core::BSTR, strenrollmentpolicyserverid: &::windows::core::BSTR, enrollmentpolicyserverflags: PolicyServerUrlFlags, authflags: X509EnrollmentAuthFlags) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InstallResponse2)(::windows::core::Interface::as_raw(self), restrictions, ::core::mem::transmute_copy(strresponse), encoding, ::core::mem::transmute_copy(strpassword), ::core::mem::transmute_copy(strenrollmentpolicyserverurl), ::core::mem::transmute_copy(strenrollmentpolicyserverid), enrollmentpolicyserverflags, authflags).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -24227,11 +20638,9 @@ impl IX509Enrollment2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Template)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RequestIdString(&self) -> ::windows::core::Result { + pub unsafe fn RequestIdString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RequestIdString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RequestIdString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -24322,10 +20731,7 @@ pub struct IX509Enrollment2_Vtbl { pub InitializeFromTemplate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext, ppolicyserver: *mut ::core::ffi::c_void, ptemplate: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] InitializeFromTemplate: usize, - #[cfg(feature = "Win32_Foundation")] - pub InstallResponse2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, restrictions: InstallResponseRestrictionFlags, strresponse: ::core::mem::ManuallyDrop, encoding: EncodingType, strpassword: ::core::mem::ManuallyDrop, strenrollmentpolicyserverurl: ::core::mem::ManuallyDrop, strenrollmentpolicyserverid: ::core::mem::ManuallyDrop, enrollmentpolicyserverflags: PolicyServerUrlFlags, authflags: X509EnrollmentAuthFlags) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InstallResponse2: usize, + pub InstallResponse2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, restrictions: InstallResponseRestrictionFlags, strresponse: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strenrollmentpolicyserverurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strenrollmentpolicyserverid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, enrollmentpolicyserverflags: PolicyServerUrlFlags, authflags: X509EnrollmentAuthFlags) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub PolicyServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pppolicyserver: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -24334,10 +20740,7 @@ pub struct IX509Enrollment2_Vtbl { pub Template: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pptemplate: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Template: usize, - #[cfg(feature = "Win32_Foundation")] - pub RequestIdString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RequestIdString: usize, + pub RequestIdString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -24345,36 +20748,15 @@ pub struct IX509Enrollment2_Vtbl { pub struct IX509EnrollmentHelper(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IX509EnrollmentHelper { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddPolicyServer<'a, P0, P1, P2, P3>(&self, strenrollmentpolicyserveruri: P0, strenrollmentpolicyid: P1, enrollmentpolicyserverflags: PolicyServerUrlFlags, authflags: X509EnrollmentAuthFlags, strcredential: P2, strpassword: P3) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AddPolicyServer)(::windows::core::Interface::as_raw(self), strenrollmentpolicyserveruri.into().abi(), strenrollmentpolicyid.into().abi(), enrollmentpolicyserverflags, authflags, strcredential.into().abi(), strpassword.into().abi()).ok() + pub unsafe fn AddPolicyServer(&self, strenrollmentpolicyserveruri: &::windows::core::BSTR, strenrollmentpolicyid: &::windows::core::BSTR, enrollmentpolicyserverflags: PolicyServerUrlFlags, authflags: X509EnrollmentAuthFlags, strcredential: &::windows::core::BSTR, strpassword: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AddPolicyServer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strenrollmentpolicyserveruri), ::core::mem::transmute_copy(strenrollmentpolicyid), enrollmentpolicyserverflags, authflags, ::core::mem::transmute_copy(strcredential), ::core::mem::transmute_copy(strpassword)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddEnrollmentServer<'a, P0, P1, P2>(&self, strenrollmentserveruri: P0, authflags: X509EnrollmentAuthFlags, strcredential: P1, strpassword: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AddEnrollmentServer)(::windows::core::Interface::as_raw(self), strenrollmentserveruri.into().abi(), authflags, strcredential.into().abi(), strpassword.into().abi()).ok() + pub unsafe fn AddEnrollmentServer(&self, strenrollmentserveruri: &::windows::core::BSTR, authflags: X509EnrollmentAuthFlags, strcredential: &::windows::core::BSTR, strpassword: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AddEnrollmentServer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strenrollmentserveruri), authflags, ::core::mem::transmute_copy(strcredential), ::core::mem::transmute_copy(strpassword)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Enroll<'a, P0, P1>(&self, strenrollmentpolicyserveruri: P0, strtemplatename: P1, encoding: EncodingType, enrollflags: WebEnrollmentFlags) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn Enroll(&self, strenrollmentpolicyserveruri: &::windows::core::BSTR, strtemplatename: &::windows::core::BSTR, encoding: EncodingType, enrollflags: WebEnrollmentFlags) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Enroll)(::windows::core::Interface::as_raw(self), strenrollmentpolicyserveruri.into().abi(), strtemplatename.into().abi(), encoding, enrollflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Enroll)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strenrollmentpolicyserveruri), ::core::mem::transmute_copy(strtemplatename), encoding, enrollflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Initialize(&self, context: X509CertificateEnrollmentContext) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), context).ok() @@ -24446,18 +20828,9 @@ unsafe impl ::windows::core::Interface for IX509EnrollmentHelper { #[doc(hidden)] pub struct IX509EnrollmentHelper_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub AddPolicyServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strenrollmentpolicyserveruri: ::core::mem::ManuallyDrop, strenrollmentpolicyid: ::core::mem::ManuallyDrop, enrollmentpolicyserverflags: PolicyServerUrlFlags, authflags: X509EnrollmentAuthFlags, strcredential: ::core::mem::ManuallyDrop, strpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddPolicyServer: usize, - #[cfg(feature = "Win32_Foundation")] - pub AddEnrollmentServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strenrollmentserveruri: ::core::mem::ManuallyDrop, authflags: X509EnrollmentAuthFlags, strcredential: ::core::mem::ManuallyDrop, strpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddEnrollmentServer: usize, - #[cfg(feature = "Win32_Foundation")] - pub Enroll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strenrollmentpolicyserveruri: ::core::mem::ManuallyDrop, strtemplatename: ::core::mem::ManuallyDrop, encoding: EncodingType, enrollflags: WebEnrollmentFlags, pstrcertificate: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Enroll: usize, + pub AddPolicyServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strenrollmentpolicyserveruri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strenrollmentpolicyid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, enrollmentpolicyserverflags: PolicyServerUrlFlags, authflags: X509EnrollmentAuthFlags, strcredential: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub AddEnrollmentServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strenrollmentserveruri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, authflags: X509EnrollmentAuthFlags, strcredential: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Enroll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strenrollmentpolicyserveruri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strtemplatename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType, enrollflags: WebEnrollmentFlags, pstrcertificate: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] @@ -24466,14 +20839,8 @@ pub struct IX509EnrollmentHelper_Vtbl { pub struct IX509EnrollmentPolicyServer(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IX509EnrollmentPolicyServer { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Initialize<'a, P0, P1>(&self, bstrpolicyserverurl: P0, bstrpolicyserverid: P1, authflags: X509EnrollmentAuthFlags, fisuntrusted: i16, context: X509CertificateEnrollmentContext) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), bstrpolicyserverurl.into().abi(), bstrpolicyserverid.into().abi(), authflags, fisuntrusted, context).ok() + pub unsafe fn Initialize(&self, bstrpolicyserverurl: &::windows::core::BSTR, bstrpolicyserverid: &::windows::core::BSTR, authflags: X509EnrollmentAuthFlags, fisuntrusted: i16, context: X509CertificateEnrollmentContext) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpolicyserverurl), ::core::mem::transmute_copy(bstrpolicyserverid), authflags, fisuntrusted, context).ok() } pub unsafe fn LoadPolicy(&self, option: X509EnrollmentPolicyLoadOption) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).LoadPolicy)(::windows::core::Interface::as_raw(self), option).ok() @@ -24516,23 +20883,17 @@ impl IX509EnrollmentPolicyServer { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetLastUpdateTime)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPolicyServerUrl(&self) -> ::windows::core::Result { + pub unsafe fn GetPolicyServerUrl(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetPolicyServerUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetPolicyServerUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPolicyServerId(&self) -> ::windows::core::Result { + pub unsafe fn GetPolicyServerId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetPolicyServerId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetPolicyServerId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetFriendlyName(&self) -> ::windows::core::Result { + pub unsafe fn GetFriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetIsDefaultCEP(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -24546,30 +20907,20 @@ impl IX509EnrollmentPolicyServer { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetAllowUnTrustedCA)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCachePath(&self) -> ::windows::core::Result { + pub unsafe fn GetCachePath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetCachePath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetCachePath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCacheDir(&self) -> ::windows::core::Result { + pub unsafe fn GetCacheDir(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetCacheDir)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetCacheDir)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetAuthFlags(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetAuthFlags)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCredential<'a, P0, P1>(&self, hwndparent: i32, flag: X509EnrollmentAuthFlags, strcredential: P0, strpassword: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetCredential)(::windows::core::Interface::as_raw(self), hwndparent, flag, strcredential.into().abi(), strpassword.into().abi()).ok() + pub unsafe fn SetCredential(&self, hwndparent: i32, flag: X509EnrollmentAuthFlags, strcredential: &::windows::core::BSTR, strpassword: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetCredential)(::windows::core::Interface::as_raw(self), hwndparent, flag, ::core::mem::transmute_copy(strcredential), ::core::mem::transmute_copy(strpassword)).ok() } pub unsafe fn QueryChanges(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -24663,10 +21014,7 @@ unsafe impl ::windows::core::Interface for IX509EnrollmentPolicyServer { #[doc(hidden)] pub struct IX509EnrollmentPolicyServer_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpolicyserverurl: ::core::mem::ManuallyDrop, bstrpolicyserverid: ::core::mem::ManuallyDrop, authflags: X509EnrollmentAuthFlags, fisuntrusted: i16, context: X509CertificateEnrollmentContext) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Initialize: usize, + pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpolicyserverurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpolicyserverid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, authflags: X509EnrollmentAuthFlags, fisuntrusted: i16, context: X509CertificateEnrollmentContext) -> ::windows::core::HRESULT, pub LoadPolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, option: X509EnrollmentPolicyLoadOption) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub GetTemplates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptemplates: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -24687,34 +21035,16 @@ pub struct IX509EnrollmentPolicyServer_Vtbl { GetCustomOids: usize, pub GetNextUpdateTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdate: *mut f64) -> ::windows::core::HRESULT, pub GetLastUpdateTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdate: *mut f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetPolicyServerUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPolicyServerUrl: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetPolicyServerId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPolicyServerId: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetFriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetFriendlyName: usize, + pub GetPolicyServerUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetPolicyServerId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetFriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetIsDefaultCEP: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i16) -> ::windows::core::HRESULT, pub GetUseClientId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i16) -> ::windows::core::HRESULT, pub GetAllowUnTrustedCA: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetCachePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetCachePath: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetCacheDir: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetCacheDir: usize, + pub GetCachePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetCacheDir: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetAuthFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut X509EnrollmentAuthFlags) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetCredential: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: i32, flag: X509EnrollmentAuthFlags, strcredential: ::core::mem::ManuallyDrop, strpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetCredential: usize, + pub SetCredential: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: i32, flag: X509EnrollmentAuthFlags, strcredential: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub QueryChanges: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i16) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub InitializeImport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, val: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, @@ -24733,27 +21063,15 @@ pub struct IX509EnrollmentPolicyServer_Vtbl { pub struct IX509EnrollmentStatus(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IX509EnrollmentStatus { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AppendText<'a, P0>(&self, strtext: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AppendText)(::windows::core::Interface::as_raw(self), strtext.into().abi()).ok() + pub unsafe fn AppendText(&self, strtext: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AppendText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strtext)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Text(&self) -> ::windows::core::Result { + pub unsafe fn Text(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Text)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Text)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetText<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetText)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetText(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } pub unsafe fn Selected(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -24783,11 +21101,9 @@ impl IX509EnrollmentStatus { pub unsafe fn SetError(&self, value: ::windows::core::HRESULT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetError)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ErrorText(&self) -> ::windows::core::Result { + pub unsafe fn ErrorText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ErrorText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ErrorText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -24856,18 +21172,9 @@ unsafe impl ::windows::core::Interface for IX509EnrollmentStatus { #[doc(hidden)] pub struct IX509EnrollmentStatus_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub AppendText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strtext: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AppendText: usize, - #[cfg(feature = "Win32_Foundation")] - pub Text: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Text: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetText: usize, + pub AppendText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strtext: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Text: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Selected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut EnrollmentSelectionStatus) -> ::windows::core::HRESULT, pub SetSelected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: EnrollmentSelectionStatus) -> ::windows::core::HRESULT, pub Display: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut EnrollmentDisplayStatus) -> ::windows::core::HRESULT, @@ -24876,10 +21183,7 @@ pub struct IX509EnrollmentStatus_Vtbl { pub SetStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: EnrollmentEnrollStatus) -> ::windows::core::HRESULT, pub Error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::windows::core::HRESULT) -> ::windows::core::HRESULT, pub SetError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::windows::core::HRESULT) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ErrorText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ErrorText: usize, + pub ErrorText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -24887,14 +21191,9 @@ pub struct IX509EnrollmentStatus_Vtbl { pub struct IX509EnrollmentWebClassFactory(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IX509EnrollmentWebClassFactory { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateObject<'a, P0>(&self, strprogid: P0) -> ::windows::core::Result<::windows::core::IUnknown> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn CreateObject(&self, strprogid: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateObject)(::windows::core::Interface::as_raw(self), strprogid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) + (::windows::core::Interface::vtable(self).CreateObject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strprogid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -24963,10 +21262,7 @@ unsafe impl ::windows::core::Interface for IX509EnrollmentWebClassFactory { #[doc(hidden)] pub struct IX509EnrollmentWebClassFactory_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub CreateObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strprogid: ::core::mem::ManuallyDrop, ppiunknown: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CreateObject: usize, + pub CreateObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strprogid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppiunknown: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -24974,14 +21270,13 @@ pub struct IX509EnrollmentWebClassFactory_Vtbl { pub struct IX509Extension(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IX509Extension { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Initialize<'a, P0, P1>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Initialize<'a, P0>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IObjectId>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, strencodeddata.into().abi()).ok() + (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -24989,11 +21284,9 @@ impl IX509Extension { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ObjectId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Critical(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -25069,18 +21362,15 @@ unsafe impl ::windows::core::Interface for IX509Extension { #[doc(hidden)] pub struct IX509Extension_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pobjectid: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pobjectid: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Initialize: usize, #[cfg(feature = "Win32_System_Com")] pub ObjectId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] ObjectId: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_RawData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_RawData: usize, + pub get_RawData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Critical: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i16) -> ::windows::core::HRESULT, pub SetCritical: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i16) -> ::windows::core::HRESULT, } @@ -25090,14 +21380,13 @@ pub struct IX509Extension_Vtbl { pub struct IX509ExtensionAlternativeNames(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IX509ExtensionAlternativeNames { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Initialize<'a, P0, P1>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Initialize<'a, P0>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IObjectId>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, strencodeddata.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -25105,11 +21394,9 @@ impl IX509ExtensionAlternativeNames { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.ObjectId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Critical(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -25126,13 +21413,8 @@ impl IX509ExtensionAlternativeNames { { (::windows::core::Interface::vtable(self).InitializeEncode)(::windows::core::Interface::as_raw(self), pvalue.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, encoding: EncodingType, strencodeddata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, strencodeddata.into().abi()).ok() + pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -25229,10 +21511,7 @@ pub struct IX509ExtensionAlternativeNames_Vtbl { pub InitializeEncode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] InitializeEncode: usize, - #[cfg(feature = "Win32_Foundation")] - pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeDecode: usize, + pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub AlternativeNames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -25244,14 +21523,13 @@ pub struct IX509ExtensionAlternativeNames_Vtbl { pub struct IX509ExtensionAuthorityKeyIdentifier(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IX509ExtensionAuthorityKeyIdentifier { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Initialize<'a, P0, P1>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Initialize<'a, P0>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IObjectId>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, strencodeddata.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -25259,11 +21537,9 @@ impl IX509ExtensionAuthorityKeyIdentifier { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.ObjectId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Critical(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -25272,27 +21548,15 @@ impl IX509ExtensionAuthorityKeyIdentifier { pub unsafe fn SetCritical(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetCritical)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeEncode<'a, P0>(&self, encoding: EncodingType, strkeyidentifier: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeEncode)(::windows::core::Interface::as_raw(self), encoding, strkeyidentifier.into().abi()).ok() + pub unsafe fn InitializeEncode(&self, encoding: EncodingType, strkeyidentifier: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeEncode)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strkeyidentifier)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, encoding: EncodingType, strencodeddata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, strencodeddata.into().abi()).ok() + pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_AuthorityKeyIdentifier(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_AuthorityKeyIdentifier(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_AuthorityKeyIdentifier)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_AuthorityKeyIdentifier)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -25379,18 +21643,9 @@ unsafe impl ::windows::core::Interface for IX509ExtensionAuthorityKeyIdentifier #[doc(hidden)] pub struct IX509ExtensionAuthorityKeyIdentifier_Vtbl { pub base__: IX509Extension_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub InitializeEncode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strkeyidentifier: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeEncode: usize, - #[cfg(feature = "Win32_Foundation")] - pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeDecode: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_AuthorityKeyIdentifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_AuthorityKeyIdentifier: usize, + pub InitializeEncode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strkeyidentifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub get_AuthorityKeyIdentifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -25398,14 +21653,13 @@ pub struct IX509ExtensionAuthorityKeyIdentifier_Vtbl { pub struct IX509ExtensionBasicConstraints(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IX509ExtensionBasicConstraints { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Initialize<'a, P0, P1>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Initialize<'a, P0>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IObjectId>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, strencodeddata.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -25413,11 +21667,9 @@ impl IX509ExtensionBasicConstraints { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.ObjectId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Critical(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -25429,13 +21681,8 @@ impl IX509ExtensionBasicConstraints { pub unsafe fn InitializeEncode(&self, isca: i16, pathlenconstraint: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).InitializeEncode)(::windows::core::Interface::as_raw(self), isca, pathlenconstraint).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, encoding: EncodingType, strencodeddata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, strencodeddata.into().abi()).ok() + pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn IsCA(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -25531,10 +21778,7 @@ unsafe impl ::windows::core::Interface for IX509ExtensionBasicConstraints { pub struct IX509ExtensionBasicConstraints_Vtbl { pub base__: IX509Extension_Vtbl, pub InitializeEncode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, isca: i16, pathlenconstraint: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeDecode: usize, + pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub IsCA: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i16) -> ::windows::core::HRESULT, pub PathLenConstraint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i32) -> ::windows::core::HRESULT, } @@ -25544,14 +21788,13 @@ pub struct IX509ExtensionBasicConstraints_Vtbl { pub struct IX509ExtensionCertificatePolicies(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IX509ExtensionCertificatePolicies { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Initialize<'a, P0, P1>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Initialize<'a, P0>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IObjectId>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, strencodeddata.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -25559,11 +21802,9 @@ impl IX509ExtensionCertificatePolicies { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.ObjectId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Critical(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -25580,13 +21821,8 @@ impl IX509ExtensionCertificatePolicies { { (::windows::core::Interface::vtable(self).InitializeEncode)(::windows::core::Interface::as_raw(self), pvalue.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, encoding: EncodingType, strencodeddata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, strencodeddata.into().abi()).ok() + pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -25683,10 +21919,7 @@ pub struct IX509ExtensionCertificatePolicies_Vtbl { pub InitializeEncode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] InitializeEncode: usize, - #[cfg(feature = "Win32_Foundation")] - pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeDecode: usize, + pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Policies: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -25698,14 +21931,13 @@ pub struct IX509ExtensionCertificatePolicies_Vtbl { pub struct IX509ExtensionEnhancedKeyUsage(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IX509ExtensionEnhancedKeyUsage { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Initialize<'a, P0, P1>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Initialize<'a, P0>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IObjectId>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, strencodeddata.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -25713,11 +21945,9 @@ impl IX509ExtensionEnhancedKeyUsage { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.ObjectId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Critical(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -25734,13 +21964,8 @@ impl IX509ExtensionEnhancedKeyUsage { { (::windows::core::Interface::vtable(self).InitializeEncode)(::windows::core::Interface::as_raw(self), pvalue.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, encoding: EncodingType, strencodeddata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, strencodeddata.into().abi()).ok() + pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -25837,10 +22062,7 @@ pub struct IX509ExtensionEnhancedKeyUsage_Vtbl { pub InitializeEncode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] InitializeEncode: usize, - #[cfg(feature = "Win32_Foundation")] - pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeDecode: usize, + pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub EnhancedKeyUsage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -25852,14 +22074,13 @@ pub struct IX509ExtensionEnhancedKeyUsage_Vtbl { pub struct IX509ExtensionKeyUsage(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IX509ExtensionKeyUsage { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Initialize<'a, P0, P1>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Initialize<'a, P0>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IObjectId>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, strencodeddata.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -25867,11 +22088,9 @@ impl IX509ExtensionKeyUsage { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.ObjectId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Critical(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -25883,13 +22102,8 @@ impl IX509ExtensionKeyUsage { pub unsafe fn InitializeEncode(&self, usageflags: X509KeyUsageFlags) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).InitializeEncode)(::windows::core::Interface::as_raw(self), usageflags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, encoding: EncodingType, strencodeddata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, strencodeddata.into().abi()).ok() + pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } pub unsafe fn KeyUsage(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -25981,10 +22195,7 @@ unsafe impl ::windows::core::Interface for IX509ExtensionKeyUsage { pub struct IX509ExtensionKeyUsage_Vtbl { pub base__: IX509Extension_Vtbl, pub InitializeEncode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, usageflags: X509KeyUsageFlags) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeDecode: usize, + pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub KeyUsage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut X509KeyUsageFlags) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] @@ -25993,14 +22204,13 @@ pub struct IX509ExtensionKeyUsage_Vtbl { pub struct IX509ExtensionMSApplicationPolicies(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IX509ExtensionMSApplicationPolicies { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Initialize<'a, P0, P1>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Initialize<'a, P0>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IObjectId>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, strencodeddata.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -26008,11 +22218,9 @@ impl IX509ExtensionMSApplicationPolicies { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.ObjectId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Critical(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -26029,13 +22237,8 @@ impl IX509ExtensionMSApplicationPolicies { { (::windows::core::Interface::vtable(self).InitializeEncode)(::windows::core::Interface::as_raw(self), pvalue.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, encoding: EncodingType, strencodeddata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, strencodeddata.into().abi()).ok() + pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -26132,10 +22335,7 @@ pub struct IX509ExtensionMSApplicationPolicies_Vtbl { pub InitializeEncode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] InitializeEncode: usize, - #[cfg(feature = "Win32_Foundation")] - pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeDecode: usize, + pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Policies: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -26147,14 +22347,13 @@ pub struct IX509ExtensionMSApplicationPolicies_Vtbl { pub struct IX509ExtensionSmimeCapabilities(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IX509ExtensionSmimeCapabilities { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Initialize<'a, P0, P1>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Initialize<'a, P0>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IObjectId>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, strencodeddata.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -26162,11 +22361,9 @@ impl IX509ExtensionSmimeCapabilities { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.ObjectId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Critical(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -26183,13 +22380,8 @@ impl IX509ExtensionSmimeCapabilities { { (::windows::core::Interface::vtable(self).InitializeEncode)(::windows::core::Interface::as_raw(self), pvalue.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, encoding: EncodingType, strencodeddata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, strencodeddata.into().abi()).ok() + pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -26286,10 +22478,7 @@ pub struct IX509ExtensionSmimeCapabilities_Vtbl { pub InitializeEncode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] InitializeEncode: usize, - #[cfg(feature = "Win32_Foundation")] - pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeDecode: usize, + pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub SmimeCapabilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -26301,14 +22490,13 @@ pub struct IX509ExtensionSmimeCapabilities_Vtbl { pub struct IX509ExtensionSubjectKeyIdentifier(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IX509ExtensionSubjectKeyIdentifier { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Initialize<'a, P0, P1>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Initialize<'a, P0>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IObjectId>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, strencodeddata.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -26316,11 +22504,9 @@ impl IX509ExtensionSubjectKeyIdentifier { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.ObjectId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Critical(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -26329,27 +22515,15 @@ impl IX509ExtensionSubjectKeyIdentifier { pub unsafe fn SetCritical(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetCritical)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeEncode<'a, P0>(&self, encoding: EncodingType, strkeyidentifier: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeEncode)(::windows::core::Interface::as_raw(self), encoding, strkeyidentifier.into().abi()).ok() + pub unsafe fn InitializeEncode(&self, encoding: EncodingType, strkeyidentifier: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeEncode)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strkeyidentifier)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, encoding: EncodingType, strencodeddata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, strencodeddata.into().abi()).ok() + pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_SubjectKeyIdentifier(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_SubjectKeyIdentifier(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_SubjectKeyIdentifier)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_SubjectKeyIdentifier)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -26436,18 +22610,9 @@ unsafe impl ::windows::core::Interface for IX509ExtensionSubjectKeyIdentifier { #[doc(hidden)] pub struct IX509ExtensionSubjectKeyIdentifier_Vtbl { pub base__: IX509Extension_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub InitializeEncode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strkeyidentifier: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeEncode: usize, - #[cfg(feature = "Win32_Foundation")] - pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeDecode: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_SubjectKeyIdentifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_SubjectKeyIdentifier: usize, + pub InitializeEncode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strkeyidentifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub get_SubjectKeyIdentifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -26455,14 +22620,13 @@ pub struct IX509ExtensionSubjectKeyIdentifier_Vtbl { pub struct IX509ExtensionTemplate(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IX509ExtensionTemplate { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Initialize<'a, P0, P1>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Initialize<'a, P0>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IObjectId>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, strencodeddata.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -26470,11 +22634,9 @@ impl IX509ExtensionTemplate { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.ObjectId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Critical(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -26491,13 +22653,8 @@ impl IX509ExtensionTemplate { { (::windows::core::Interface::vtable(self).InitializeEncode)(::windows::core::Interface::as_raw(self), ptemplateoid.into().abi(), majorversion, minorversion).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, encoding: EncodingType, strencodeddata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, strencodeddata.into().abi()).ok() + pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -26602,10 +22759,7 @@ pub struct IX509ExtensionTemplate_Vtbl { pub InitializeEncode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptemplateoid: *mut ::core::ffi::c_void, majorversion: i32, minorversion: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] InitializeEncode: usize, - #[cfg(feature = "Win32_Foundation")] - pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeDecode: usize, + pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub TemplateOid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -26619,14 +22773,13 @@ pub struct IX509ExtensionTemplate_Vtbl { pub struct IX509ExtensionTemplateName(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IX509ExtensionTemplateName { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Initialize<'a, P0, P1>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Initialize<'a, P0>(&self, pobjectid: P0, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IObjectId>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, strencodeddata.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -26634,11 +22787,9 @@ impl IX509ExtensionTemplateName { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.ObjectId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_RawData(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_RawData)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Critical(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -26647,27 +22798,15 @@ impl IX509ExtensionTemplateName { pub unsafe fn SetCritical(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetCritical)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeEncode<'a, P0>(&self, strtemplatename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeEncode)(::windows::core::Interface::as_raw(self), strtemplatename.into().abi()).ok() + pub unsafe fn InitializeEncode(&self, strtemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeEncode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strtemplatename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDecode<'a, P0>(&self, encoding: EncodingType, strencodeddata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, strencodeddata.into().abi()).ok() + pub unsafe fn InitializeDecode(&self, encoding: EncodingType, strencodeddata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeDecode)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(strencodeddata)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TemplateName(&self) -> ::windows::core::Result { + pub unsafe fn TemplateName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TemplateName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TemplateName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -26754,18 +22893,9 @@ unsafe impl ::windows::core::Interface for IX509ExtensionTemplateName { #[doc(hidden)] pub struct IX509ExtensionTemplateName_Vtbl { pub base__: IX509Extension_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub InitializeEncode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strtemplatename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeEncode: usize, - #[cfg(feature = "Win32_Foundation")] - pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeDecode: usize, - #[cfg(feature = "Win32_Foundation")] - pub TemplateName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TemplateName: usize, + pub InitializeEncode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strtemplatename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub InitializeDecode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, strencodeddata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub TemplateName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -26912,14 +23042,11 @@ pub struct IX509Extensions_Vtbl { pub struct IX509MachineEnrollmentFactory(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IX509MachineEnrollmentFactory { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateObject<'a, P0>(&self, strprogid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateObject(&self, strprogid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateObject)(::windows::core::Interface::as_raw(self), strprogid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateObject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strprogid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -26988,9 +23115,9 @@ unsafe impl ::windows::core::Interface for IX509MachineEnrollmentFactory { #[doc(hidden)] pub struct IX509MachineEnrollmentFactory_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreateObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strprogid: ::core::mem::ManuallyDrop, ppihelper: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreateObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strprogid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppihelper: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreateObject: usize, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] @@ -26999,26 +23126,16 @@ pub struct IX509MachineEnrollmentFactory_Vtbl { pub struct IX509NameValuePair(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IX509NameValuePair { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Initialize<'a, P0, P1>(&self, strname: P0, strvalue: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), strname.into().abi(), strvalue.into().abi()).ok() + pub unsafe fn Initialize(&self, strname: &::windows::core::BSTR, strvalue: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strname), ::core::mem::transmute_copy(strvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Value(&self) -> ::windows::core::Result { + pub unsafe fn Value(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Value)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Value)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -27087,18 +23204,9 @@ unsafe impl ::windows::core::Interface for IX509NameValuePair { #[doc(hidden)] pub struct IX509NameValuePair_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, strvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Initialize: usize, - #[cfg(feature = "Win32_Foundation")] - pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Value: usize, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -27341,19 +23449,12 @@ impl IX509PolicyServerUrl { pub unsafe fn Initialize(&self, context: X509CertificateEnrollmentContext) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), context).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Url(&self) -> ::windows::core::Result { + pub unsafe fn Url(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Url)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Url)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetUrl<'a, P0>(&self, pvalue: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetUrl)(::windows::core::Interface::as_raw(self), pvalue.into().abi()).ok() + pub unsafe fn SetUrl(&self, pvalue: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pvalue)).ok() } pub unsafe fn Default(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -27383,19 +23484,12 @@ impl IX509PolicyServerUrl { pub unsafe fn SetCost(&self, value: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetCost)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetStringProperty(&self, propertyid: PolicyServerUrlPropertyID) -> ::windows::core::Result { + pub unsafe fn GetStringProperty(&self, propertyid: PolicyServerUrlPropertyID) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetStringProperty)(::windows::core::Interface::as_raw(self), propertyid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetStringProperty)(::windows::core::Interface::as_raw(self), propertyid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetStringProperty<'a, P0>(&self, propertyid: PolicyServerUrlPropertyID, pvalue: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetStringProperty)(::windows::core::Interface::as_raw(self), propertyid, pvalue.into().abi()).ok() + pub unsafe fn SetStringProperty(&self, propertyid: PolicyServerUrlPropertyID, pvalue: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetStringProperty)(::windows::core::Interface::as_raw(self), propertyid, ::core::mem::transmute_copy(pvalue)).ok() } pub unsafe fn UpdateRegistry(&self, context: X509CertificateEnrollmentContext) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).UpdateRegistry)(::windows::core::Interface::as_raw(self), context).ok() @@ -27471,14 +23565,8 @@ unsafe impl ::windows::core::Interface for IX509PolicyServerUrl { pub struct IX509PolicyServerUrl_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Url: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Url: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetUrl: usize, + pub Url: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Default: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i16) -> ::windows::core::HRESULT, pub SetDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i16) -> ::windows::core::HRESULT, pub Flags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut PolicyServerUrlFlags) -> ::windows::core::HRESULT, @@ -27487,14 +23575,8 @@ pub struct IX509PolicyServerUrl_Vtbl { pub SetAuthFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: X509EnrollmentAuthFlags) -> ::windows::core::HRESULT, pub Cost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut u32) -> ::windows::core::HRESULT, pub SetCost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetStringProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyid: PolicyServerUrlPropertyID, ppvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetStringProperty: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetStringProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyid: PolicyServerUrlPropertyID, pvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetStringProperty: usize, + pub GetStringProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyid: PolicyServerUrlPropertyID, ppvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetStringProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyid: PolicyServerUrlPropertyID, pvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub UpdateRegistry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext) -> ::windows::core::HRESULT, pub RemoveFromRegistry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext) -> ::windows::core::HRESULT, } @@ -27519,23 +23601,12 @@ impl IX509PrivateKey { pub unsafe fn Verify(&self, verifytype: X509PrivateKeyVerify) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Verify)(::windows::core::Interface::as_raw(self), verifytype).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Import<'a, P0, P1>(&self, strexporttype: P0, strencodedkey: P1, encoding: EncodingType) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Import)(::windows::core::Interface::as_raw(self), strexporttype.into().abi(), strencodedkey.into().abi(), encoding).ok() + pub unsafe fn Import(&self, strexporttype: &::windows::core::BSTR, strencodedkey: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Import)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strexporttype), ::core::mem::transmute_copy(strencodedkey), encoding).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Export<'a, P0>(&self, strexporttype: P0, encoding: EncodingType) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn Export(&self, strexporttype: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Export)(::windows::core::Interface::as_raw(self), strexporttype.into().abi(), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Export)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strexporttype), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -27543,47 +23614,26 @@ impl IX509PrivateKey { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ExportPublicKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ContainerName(&self) -> ::windows::core::Result { + pub unsafe fn ContainerName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ContainerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ContainerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetContainerName<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetContainerName)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetContainerName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetContainerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ContainerNamePrefix(&self) -> ::windows::core::Result { + pub unsafe fn ContainerNamePrefix(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ContainerNamePrefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ContainerNamePrefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetContainerNamePrefix<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetContainerNamePrefix)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetContainerNamePrefix(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetContainerNamePrefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ReaderName(&self) -> ::windows::core::Result { + pub unsafe fn ReaderName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ReaderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ReaderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetReaderName<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetReaderName)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetReaderName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetReaderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -27613,19 +23663,12 @@ impl IX509PrivateKey { { (::windows::core::Interface::vtable(self).SetCspStatus)(::windows::core::Interface::as_raw(self), pvalue.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ProviderName(&self) -> ::windows::core::Result { + pub unsafe fn ProviderName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetProviderName<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetProviderName)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetProviderName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } pub unsafe fn ProviderType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -27697,39 +23740,23 @@ impl IX509PrivateKey { pub unsafe fn SetMachineContext(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetMachineContext)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SecurityDescriptor(&self) -> ::windows::core::Result { + pub unsafe fn SecurityDescriptor(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SecurityDescriptor)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SecurityDescriptor)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSecurityDescriptor<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSecurityDescriptor)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetSecurityDescriptor(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSecurityDescriptor)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_Certificate(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_Certificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_Certificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_Certificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_Certificate<'a, P0>(&self, encoding: EncodingType, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).put_Certificate)(::windows::core::Interface::as_raw(self), encoding, value.into().abi()).ok() + pub unsafe fn put_Certificate(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).put_Certificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(value)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UniqueContainerName(&self) -> ::windows::core::Result { + pub unsafe fn UniqueContainerName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UniqueContainerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UniqueContainerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Opened(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -27760,55 +23787,29 @@ impl IX509PrivateKey { pub unsafe fn SetParentWindow(&self, value: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetParentWindow)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UIContextMessage(&self) -> ::windows::core::Result { + pub unsafe fn UIContextMessage(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetUIContextMessage<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetUIContextMessage)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetUIContextMessage(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetUIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPin<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPin)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetPin(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPin)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FriendlyName(&self) -> ::windows::core::Result { + pub unsafe fn FriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFriendlyName<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetFriendlyName)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetFriendlyName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetDescription(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -27882,42 +23883,18 @@ pub struct IX509PrivateKey_Vtbl { pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Verify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, verifytype: X509PrivateKeyVerify) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Import: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strexporttype: ::core::mem::ManuallyDrop, strencodedkey: ::core::mem::ManuallyDrop, encoding: EncodingType) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Import: usize, - #[cfg(feature = "Win32_Foundation")] - pub Export: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strexporttype: ::core::mem::ManuallyDrop, encoding: EncodingType, pstrencodedkey: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Export: usize, + pub Import: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strexporttype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strencodedkey: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType) -> ::windows::core::HRESULT, + pub Export: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strexporttype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType, pstrencodedkey: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub ExportPublicKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pppublickey: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] ExportPublicKey: usize, - #[cfg(feature = "Win32_Foundation")] - pub ContainerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ContainerName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetContainerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetContainerName: usize, - #[cfg(feature = "Win32_Foundation")] - pub ContainerNamePrefix: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ContainerNamePrefix: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetContainerNamePrefix: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetContainerNamePrefix: usize, - #[cfg(feature = "Win32_Foundation")] - pub ReaderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ReaderName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetReaderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetReaderName: usize, + pub ContainerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetContainerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ContainerNamePrefix: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetContainerNamePrefix: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ReaderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetReaderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub CspInformations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -27934,14 +23911,8 @@ pub struct IX509PrivateKey_Vtbl { pub SetCspStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] SetCspStatus: usize, - #[cfg(feature = "Win32_Foundation")] - pub ProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ProviderName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetProviderName: usize, + pub ProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ProviderType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut X509ProviderType) -> ::windows::core::HRESULT, pub SetProviderType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: X509ProviderType) -> ::windows::core::HRESULT, pub LegacyCsp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i16) -> ::windows::core::HRESULT, @@ -27966,26 +23937,11 @@ pub struct IX509PrivateKey_Vtbl { pub SetKeyProtection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: X509PrivateKeyProtection) -> ::windows::core::HRESULT, pub MachineContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i16) -> ::windows::core::HRESULT, pub SetMachineContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SecurityDescriptor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SecurityDescriptor: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSecurityDescriptor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSecurityDescriptor: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_Certificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_Certificate: usize, - #[cfg(feature = "Win32_Foundation")] - pub put_Certificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - put_Certificate: usize, - #[cfg(feature = "Win32_Foundation")] - pub UniqueContainerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UniqueContainerName: usize, + pub SecurityDescriptor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSecurityDescriptor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub get_Certificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub put_Certificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub UniqueContainerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Opened: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i16) -> ::windows::core::HRESULT, pub DefaultContainer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i16) -> ::windows::core::HRESULT, pub Existing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i16) -> ::windows::core::HRESULT, @@ -27993,35 +23949,14 @@ pub struct IX509PrivateKey_Vtbl { pub Silent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i16) -> ::windows::core::HRESULT, pub SetSilent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i16) -> ::windows::core::HRESULT, pub ParentWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i32) -> ::windows::core::HRESULT, - pub SetParentWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub UIContextMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UIContextMessage: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetUIContextMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetUIContextMessage: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPin: usize, - #[cfg(feature = "Win32_Foundation")] - pub FriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FriendlyName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetFriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetFriendlyName: usize, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDescription: usize, + pub SetParentWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, + pub UIContextMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetUIContextMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetPin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetFriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -28044,23 +23979,12 @@ impl IX509PrivateKey2 { pub unsafe fn Verify(&self, verifytype: X509PrivateKeyVerify) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Verify)(::windows::core::Interface::as_raw(self), verifytype).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Import<'a, P0, P1>(&self, strexporttype: P0, strencodedkey: P1, encoding: EncodingType) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.Import)(::windows::core::Interface::as_raw(self), strexporttype.into().abi(), strencodedkey.into().abi(), encoding).ok() + pub unsafe fn Import(&self, strexporttype: &::windows::core::BSTR, strencodedkey: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.Import)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strexporttype), ::core::mem::transmute_copy(strencodedkey), encoding).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Export<'a, P0>(&self, strexporttype: P0, encoding: EncodingType) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn Export(&self, strexporttype: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Export)(::windows::core::Interface::as_raw(self), strexporttype.into().abi(), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Export)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strexporttype), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -28068,47 +23992,26 @@ impl IX509PrivateKey2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.ExportPublicKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ContainerName(&self) -> ::windows::core::Result { + pub unsafe fn ContainerName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ContainerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ContainerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetContainerName<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetContainerName)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetContainerName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetContainerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ContainerNamePrefix(&self) -> ::windows::core::Result { + pub unsafe fn ContainerNamePrefix(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ContainerNamePrefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ContainerNamePrefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetContainerNamePrefix<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetContainerNamePrefix)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetContainerNamePrefix(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetContainerNamePrefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ReaderName(&self) -> ::windows::core::Result { + pub unsafe fn ReaderName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ReaderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ReaderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetReaderName<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetReaderName)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetReaderName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetReaderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -28138,19 +24041,12 @@ impl IX509PrivateKey2 { { (::windows::core::Interface::vtable(self).base__.SetCspStatus)(::windows::core::Interface::as_raw(self), pvalue.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ProviderName(&self) -> ::windows::core::Result { + pub unsafe fn ProviderName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetProviderName<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetProviderName)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetProviderName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } pub unsafe fn ProviderType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -28222,39 +24118,23 @@ impl IX509PrivateKey2 { pub unsafe fn SetMachineContext(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetMachineContext)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SecurityDescriptor(&self) -> ::windows::core::Result { + pub unsafe fn SecurityDescriptor(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.SecurityDescriptor)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.SecurityDescriptor)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSecurityDescriptor<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetSecurityDescriptor)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetSecurityDescriptor(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetSecurityDescriptor)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_Certificate(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_Certificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_Certificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_Certificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_Certificate<'a, P0>(&self, encoding: EncodingType, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.put_Certificate)(::windows::core::Interface::as_raw(self), encoding, value.into().abi()).ok() + pub unsafe fn put_Certificate(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.put_Certificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(value)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UniqueContainerName(&self) -> ::windows::core::Result { + pub unsafe fn UniqueContainerName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.UniqueContainerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.UniqueContainerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Opened(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -28285,55 +24165,29 @@ impl IX509PrivateKey2 { pub unsafe fn SetParentWindow(&self, value: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetParentWindow)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UIContextMessage(&self) -> ::windows::core::Result { + pub unsafe fn UIContextMessage(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.UIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.UIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetUIContextMessage<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetUIContextMessage)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetUIContextMessage(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetUIContextMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPin<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetPin)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetPin(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetPin)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FriendlyName(&self) -> ::windows::core::Result { + pub unsafe fn FriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFriendlyName<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetFriendlyName)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetFriendlyName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetDescription(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } pub unsafe fn HardwareKeyUsage(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -28342,47 +24196,26 @@ impl IX509PrivateKey2 { pub unsafe fn SetHardwareKeyUsage(&self, value: X509HardwareKeyUsageFlags) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetHardwareKeyUsage)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AlternateStorageLocation(&self) -> ::windows::core::Result { + pub unsafe fn AlternateStorageLocation(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AlternateStorageLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AlternateStorageLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetAlternateStorageLocation<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetAlternateStorageLocation)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetAlternateStorageLocation(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetAlternateStorageLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AlgorithmName(&self) -> ::windows::core::Result { + pub unsafe fn AlgorithmName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AlgorithmName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AlgorithmName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetAlgorithmName<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetAlgorithmName)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetAlgorithmName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetAlgorithmName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_AlgorithmParameters(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_AlgorithmParameters(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_AlgorithmParameters)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_AlgorithmParameters)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_AlgorithmParameters<'a, P0>(&self, encoding: EncodingType, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).put_AlgorithmParameters)(::windows::core::Interface::as_raw(self), encoding, value.into().abi()).ok() + pub unsafe fn put_AlgorithmParameters(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).put_AlgorithmParameters)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(value)).ok() } pub unsafe fn ParametersExportType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -28478,30 +24311,12 @@ pub struct IX509PrivateKey2_Vtbl { pub base__: IX509PrivateKey_Vtbl, pub HardwareKeyUsage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut X509HardwareKeyUsageFlags) -> ::windows::core::HRESULT, pub SetHardwareKeyUsage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: X509HardwareKeyUsageFlags) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub AlternateStorageLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AlternateStorageLocation: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetAlternateStorageLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetAlternateStorageLocation: usize, - #[cfg(feature = "Win32_Foundation")] - pub AlgorithmName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AlgorithmName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetAlgorithmName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetAlgorithmName: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_AlgorithmParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_AlgorithmParameters: usize, - #[cfg(feature = "Win32_Foundation")] - pub put_AlgorithmParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - put_AlgorithmParameters: usize, + pub AlternateStorageLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetAlternateStorageLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub AlgorithmName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetAlgorithmName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub get_AlgorithmParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub put_AlgorithmParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ParametersExportType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut X509KeyParametersExportType) -> ::windows::core::HRESULT, pub SetParametersExportType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: X509KeyParametersExportType) -> ::windows::core::HRESULT, } @@ -28511,23 +24326,16 @@ pub struct IX509PrivateKey2_Vtbl { pub struct IX509PublicKey(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IX509PublicKey { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Initialize<'a, P0, P1, P2>(&self, pobjectid: P0, strencodedkey: P1, strencodedparameters: P2, encoding: EncodingType) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Initialize<'a, P0>(&self, pobjectid: P0, strencodedkey: &::windows::core::BSTR, strencodedparameters: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IObjectId>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), strencodedkey.into().abi(), strencodedparameters.into().abi(), encoding).ok() + (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), pobjectid.into().abi(), ::core::mem::transmute_copy(strencodedkey), ::core::mem::transmute_copy(strencodedparameters), encoding).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeFromEncodedPublicKeyInfo<'a, P0>(&self, strencodedpublickeyinfo: P0, encoding: EncodingType) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeFromEncodedPublicKeyInfo)(::windows::core::Interface::as_raw(self), strencodedpublickeyinfo.into().abi(), encoding).ok() + pub unsafe fn InitializeFromEncodedPublicKeyInfo(&self, strencodedpublickeyinfo: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeFromEncodedPublicKeyInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strencodedpublickeyinfo), encoding).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -28539,23 +24347,17 @@ impl IX509PublicKey { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Length)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_EncodedKey(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_EncodedKey(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_EncodedKey)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_EncodedKey)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_EncodedParameters(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_EncodedParameters(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_EncodedParameters)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_EncodedParameters)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ComputeKeyIdentifier(&self, algorithm: KeyIdentifierHashAlgorithm, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn ComputeKeyIdentifier(&self, algorithm: KeyIdentifierHashAlgorithm, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ComputeKeyIdentifier)(::windows::core::Interface::as_raw(self), algorithm, encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ComputeKeyIdentifier)(::windows::core::Interface::as_raw(self), algorithm, encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -28624,31 +24426,19 @@ unsafe impl ::windows::core::Interface for IX509PublicKey { #[doc(hidden)] pub struct IX509PublicKey_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pobjectid: *mut ::core::ffi::c_void, strencodedkey: ::core::mem::ManuallyDrop, strencodedparameters: ::core::mem::ManuallyDrop, encoding: EncodingType) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pobjectid: *mut ::core::ffi::c_void, strencodedkey: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strencodedparameters: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Initialize: usize, - #[cfg(feature = "Win32_Foundation")] - pub InitializeFromEncodedPublicKeyInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strencodedpublickeyinfo: ::core::mem::ManuallyDrop, encoding: EncodingType) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeFromEncodedPublicKeyInfo: usize, + pub InitializeFromEncodedPublicKeyInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strencodedpublickeyinfo: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Algorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Algorithm: usize, pub Length: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub get_EncodedKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_EncodedKey: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_EncodedParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_EncodedParameters: usize, - #[cfg(feature = "Win32_Foundation")] - pub ComputeKeyIdentifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, algorithm: KeyIdentifierHashAlgorithm, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ComputeKeyIdentifier: usize, + pub get_EncodedKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub get_EncodedParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ComputeKeyIdentifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, algorithm: KeyIdentifierHashAlgorithm, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -28656,57 +24446,35 @@ pub struct IX509PublicKey_Vtbl { pub struct IX509SCEPEnrollment(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IX509SCEPEnrollment { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Initialize<'a, P0, P1, P2>(&self, prequest: P0, strthumbprint: P1, thumprintencoding: EncodingType, strservercertificates: P2, encoding: EncodingType) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Initialize<'a, P0>(&self, prequest: P0, strthumbprint: &::windows::core::BSTR, thumprintencoding: EncodingType, strservercertificates: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IX509CertificateRequestPkcs10>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), prequest.into().abi(), strthumbprint.into().abi(), thumprintencoding, strservercertificates.into().abi(), encoding).ok() + (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), prequest.into().abi(), ::core::mem::transmute_copy(strthumbprint), thumprintencoding, ::core::mem::transmute_copy(strservercertificates), encoding).ok() } pub unsafe fn InitializeForPending(&self, context: X509CertificateEnrollmentContext) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).InitializeForPending)(::windows::core::Interface::as_raw(self), context).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateRequestMessage(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn CreateRequestMessage(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateRequestMessage)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateRequestMessage)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateRetrievePendingMessage(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn CreateRetrievePendingMessage(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateRetrievePendingMessage)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateRetrievePendingMessage)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateRetrieveCertificateMessage<'a, P0, P1>(&self, context: X509CertificateEnrollmentContext, strissuer: P0, issuerencoding: EncodingType, strserialnumber: P1, serialnumberencoding: EncodingType, encoding: EncodingType) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn CreateRetrieveCertificateMessage(&self, context: X509CertificateEnrollmentContext, strissuer: &::windows::core::BSTR, issuerencoding: EncodingType, strserialnumber: &::windows::core::BSTR, serialnumberencoding: EncodingType, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateRetrieveCertificateMessage)(::windows::core::Interface::as_raw(self), context, strissuer.into().abi(), issuerencoding, strserialnumber.into().abi(), serialnumberencoding, encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateRetrieveCertificateMessage)(::windows::core::Interface::as_raw(self), context, ::core::mem::transmute_copy(strissuer), issuerencoding, ::core::mem::transmute_copy(strserialnumber), serialnumberencoding, encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ProcessResponseMessage<'a, P0>(&self, strresponse: P0, encoding: EncodingType) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn ProcessResponseMessage(&self, strresponse: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ProcessResponseMessage)(::windows::core::Interface::as_raw(self), strresponse.into().abi(), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ProcessResponseMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strresponse), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetServerCapabilities<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetServerCapabilities)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetServerCapabilities(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetServerCapabilities)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } pub unsafe fn FailInfo(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -28740,19 +24508,12 @@ impl IX509SCEPEnrollment { { (::windows::core::Interface::vtable(self).SetOldCertificate)(::windows::core::Interface::as_raw(self), pvalue.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_TransactionId(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_TransactionId(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_TransactionId)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_TransactionId)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_TransactionId<'a, P0>(&self, encoding: EncodingType, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).put_TransactionId)(::windows::core::Interface::as_raw(self), encoding, value.into().abi()).ok() + pub unsafe fn put_TransactionId(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).put_TransactionId)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(value)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -28760,19 +24521,12 @@ impl IX509SCEPEnrollment { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Request)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CertificateFriendlyName(&self) -> ::windows::core::Result { + pub unsafe fn CertificateFriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CertificateFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CertificateFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCertificateFriendlyName<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetCertificateFriendlyName)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetCertificateFriendlyName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetCertificateFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -28780,11 +24534,9 @@ impl IX509SCEPEnrollment { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Status)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_Certificate(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_Certificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_Certificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_Certificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Silent(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -28863,31 +24615,16 @@ unsafe impl ::windows::core::Interface for IX509SCEPEnrollment { #[doc(hidden)] pub struct IX509SCEPEnrollment_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prequest: *mut ::core::ffi::c_void, strthumbprint: ::core::mem::ManuallyDrop, thumprintencoding: EncodingType, strservercertificates: ::core::mem::ManuallyDrop, encoding: EncodingType) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prequest: *mut ::core::ffi::c_void, strthumbprint: ::core::mem::ManuallyDrop<::windows::core::BSTR>, thumprintencoding: EncodingType, strservercertificates: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Initialize: usize, pub InitializeForPending: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CreateRequestMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CreateRequestMessage: usize, - #[cfg(feature = "Win32_Foundation")] - pub CreateRetrievePendingMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CreateRetrievePendingMessage: usize, - #[cfg(feature = "Win32_Foundation")] - pub CreateRetrieveCertificateMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext, strissuer: ::core::mem::ManuallyDrop, issuerencoding: EncodingType, strserialnumber: ::core::mem::ManuallyDrop, serialnumberencoding: EncodingType, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CreateRetrieveCertificateMessage: usize, - #[cfg(feature = "Win32_Foundation")] - pub ProcessResponseMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strresponse: ::core::mem::ManuallyDrop, encoding: EncodingType, pdisposition: *mut X509SCEPDisposition) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ProcessResponseMessage: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetServerCapabilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetServerCapabilities: usize, + pub CreateRequestMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CreateRetrievePendingMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CreateRetrieveCertificateMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: X509CertificateEnrollmentContext, strissuer: ::core::mem::ManuallyDrop<::windows::core::BSTR>, issuerencoding: EncodingType, strserialnumber: ::core::mem::ManuallyDrop<::windows::core::BSTR>, serialnumberencoding: EncodingType, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ProcessResponseMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strresponse: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType, pdisposition: *mut X509SCEPDisposition) -> ::windows::core::HRESULT, + pub SetServerCapabilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub FailInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut X509SCEPFailInfo) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub SignerCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -28905,34 +24642,19 @@ pub struct IX509SCEPEnrollment_Vtbl { pub SetOldCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] SetOldCertificate: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_TransactionId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_TransactionId: usize, - #[cfg(feature = "Win32_Foundation")] - pub put_TransactionId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - put_TransactionId: usize, + pub get_TransactionId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub put_TransactionId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Request: usize, - #[cfg(feature = "Win32_Foundation")] - pub CertificateFriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CertificateFriendlyName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetCertificateFriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetCertificateFriendlyName: usize, + pub CertificateFriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetCertificateFriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Status: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_Certificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_Certificate: usize, + pub get_Certificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Silent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i16) -> ::windows::core::HRESULT, pub SetSilent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i16) -> ::windows::core::HRESULT, pub DeleteRequest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -28943,57 +24665,35 @@ pub struct IX509SCEPEnrollment_Vtbl { pub struct IX509SCEPEnrollment2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IX509SCEPEnrollment2 { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Initialize<'a, P0, P1, P2>(&self, prequest: P0, strthumbprint: P1, thumprintencoding: EncodingType, strservercertificates: P2, encoding: EncodingType) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Initialize<'a, P0>(&self, prequest: P0, strthumbprint: &::windows::core::BSTR, thumprintencoding: EncodingType, strservercertificates: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IX509CertificateRequestPkcs10>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), prequest.into().abi(), strthumbprint.into().abi(), thumprintencoding, strservercertificates.into().abi(), encoding).ok() + (::windows::core::Interface::vtable(self).base__.Initialize)(::windows::core::Interface::as_raw(self), prequest.into().abi(), ::core::mem::transmute_copy(strthumbprint), thumprintencoding, ::core::mem::transmute_copy(strservercertificates), encoding).ok() } pub unsafe fn InitializeForPending(&self, context: X509CertificateEnrollmentContext) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.InitializeForPending)(::windows::core::Interface::as_raw(self), context).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateRequestMessage(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn CreateRequestMessage(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CreateRequestMessage)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CreateRequestMessage)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateRetrievePendingMessage(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn CreateRetrievePendingMessage(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CreateRetrievePendingMessage)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CreateRetrievePendingMessage)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateRetrieveCertificateMessage<'a, P0, P1>(&self, context: X509CertificateEnrollmentContext, strissuer: P0, issuerencoding: EncodingType, strserialnumber: P1, serialnumberencoding: EncodingType, encoding: EncodingType) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn CreateRetrieveCertificateMessage(&self, context: X509CertificateEnrollmentContext, strissuer: &::windows::core::BSTR, issuerencoding: EncodingType, strserialnumber: &::windows::core::BSTR, serialnumberencoding: EncodingType, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CreateRetrieveCertificateMessage)(::windows::core::Interface::as_raw(self), context, strissuer.into().abi(), issuerencoding, strserialnumber.into().abi(), serialnumberencoding, encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CreateRetrieveCertificateMessage)(::windows::core::Interface::as_raw(self), context, ::core::mem::transmute_copy(strissuer), issuerencoding, ::core::mem::transmute_copy(strserialnumber), serialnumberencoding, encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ProcessResponseMessage<'a, P0>(&self, strresponse: P0, encoding: EncodingType) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn ProcessResponseMessage(&self, strresponse: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ProcessResponseMessage)(::windows::core::Interface::as_raw(self), strresponse.into().abi(), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ProcessResponseMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strresponse), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetServerCapabilities<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetServerCapabilities)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetServerCapabilities(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetServerCapabilities)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } pub unsafe fn FailInfo(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -29027,19 +24727,12 @@ impl IX509SCEPEnrollment2 { { (::windows::core::Interface::vtable(self).base__.SetOldCertificate)(::windows::core::Interface::as_raw(self), pvalue.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_TransactionId(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_TransactionId(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_TransactionId)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_TransactionId)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_TransactionId<'a, P0>(&self, encoding: EncodingType, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.put_TransactionId)(::windows::core::Interface::as_raw(self), encoding, value.into().abi()).ok() + pub unsafe fn put_TransactionId(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.put_TransactionId)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(value)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -29047,19 +24740,12 @@ impl IX509SCEPEnrollment2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Request)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CertificateFriendlyName(&self) -> ::windows::core::Result { + pub unsafe fn CertificateFriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CertificateFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CertificateFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCertificateFriendlyName<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetCertificateFriendlyName)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetCertificateFriendlyName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetCertificateFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -29067,11 +24753,9 @@ impl IX509SCEPEnrollment2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Status)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_Certificate(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_Certificate(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_Certificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_Certificate)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Silent(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -29083,44 +24767,28 @@ impl IX509SCEPEnrollment2 { pub unsafe fn DeleteRequest(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.DeleteRequest)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateChallengeAnswerMessage(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn CreateChallengeAnswerMessage(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateChallengeAnswerMessage)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateChallengeAnswerMessage)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ProcessResponseMessage2<'a, P0>(&self, flags: X509SCEPProcessMessageFlags, strresponse: P0, encoding: EncodingType) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn ProcessResponseMessage2(&self, flags: X509SCEPProcessMessageFlags, strresponse: &::windows::core::BSTR, encoding: EncodingType) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ProcessResponseMessage2)(::windows::core::Interface::as_raw(self), flags, strresponse.into().abi(), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ProcessResponseMessage2)(::windows::core::Interface::as_raw(self), flags, ::core::mem::transmute_copy(strresponse), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ResultMessageText(&self) -> ::windows::core::Result { + pub unsafe fn ResultMessageText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ResultMessageText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ResultMessageText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn DelayRetry(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).DelayRetry)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ActivityId(&self) -> ::windows::core::Result { + pub unsafe fn ActivityId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ActivityId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ActivityId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetActivityId<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetActivityId)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetActivityId(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetActivityId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -29207,27 +24875,12 @@ unsafe impl ::windows::core::Interface for IX509SCEPEnrollment2 { #[doc(hidden)] pub struct IX509SCEPEnrollment2_Vtbl { pub base__: IX509SCEPEnrollment_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub CreateChallengeAnswerMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CreateChallengeAnswerMessage: usize, - #[cfg(feature = "Win32_Foundation")] - pub ProcessResponseMessage2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: X509SCEPProcessMessageFlags, strresponse: ::core::mem::ManuallyDrop, encoding: EncodingType, pdisposition: *mut X509SCEPDisposition) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ProcessResponseMessage2: usize, - #[cfg(feature = "Win32_Foundation")] - pub ResultMessageText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ResultMessageText: usize, + pub CreateChallengeAnswerMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ProcessResponseMessage2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: X509SCEPProcessMessageFlags, strresponse: ::core::mem::ManuallyDrop<::windows::core::BSTR>, encoding: EncodingType, pdisposition: *mut X509SCEPDisposition) -> ::windows::core::HRESULT, + pub ResultMessageText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub DelayRetry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut DelayRetryAction) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ActivityId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ActivityId: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetActivityId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetActivityId: usize, + pub ActivityId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetActivityId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -29235,26 +24888,16 @@ pub struct IX509SCEPEnrollment2_Vtbl { pub struct IX509SCEPEnrollmentHelper(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IX509SCEPEnrollmentHelper { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Initialize<'a, P0, P1, P2, P3>(&self, strserverurl: P0, strrequestheaders: P1, prequest: P2, strcacertificatethumbprint: P3) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Initialize<'a, P0>(&self, strserverurl: &::windows::core::BSTR, strrequestheaders: &::windows::core::BSTR, prequest: P0, strcacertificatethumbprint: &::windows::core::BSTR) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IX509CertificateRequestPkcs10>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IX509CertificateRequestPkcs10>>, { - (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), strserverurl.into().abi(), strrequestheaders.into().abi(), prequest.into().abi(), strcacertificatethumbprint.into().abi()).ok() + (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strserverurl), ::core::mem::transmute_copy(strrequestheaders), prequest.into().abi(), ::core::mem::transmute_copy(strcacertificatethumbprint)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeForPending<'a, P0, P1, P2>(&self, strserverurl: P0, strrequestheaders: P1, context: X509CertificateEnrollmentContext, strtransactionid: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeForPending)(::windows::core::Interface::as_raw(self), strserverurl.into().abi(), strrequestheaders.into().abi(), context, strtransactionid.into().abi()).ok() + pub unsafe fn InitializeForPending(&self, strserverurl: &::windows::core::BSTR, strrequestheaders: &::windows::core::BSTR, context: X509CertificateEnrollmentContext, strtransactionid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeForPending)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strserverurl), ::core::mem::transmute_copy(strrequestheaders), context, ::core::mem::transmute_copy(strtransactionid)).ok() } pub unsafe fn Enroll(&self, processflags: X509SCEPProcessMessageFlags) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -29270,11 +24913,9 @@ impl IX509SCEPEnrollmentHelper { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).X509SCEPEnrollment)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ResultMessageText(&self) -> ::windows::core::Result { + pub unsafe fn ResultMessageText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ResultMessageText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ResultMessageText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -29343,24 +24984,18 @@ unsafe impl ::windows::core::Interface for IX509SCEPEnrollmentHelper { #[doc(hidden)] pub struct IX509SCEPEnrollmentHelper_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strserverurl: ::core::mem::ManuallyDrop, strrequestheaders: ::core::mem::ManuallyDrop, prequest: *mut ::core::ffi::c_void, strcacertificatethumbprint: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strserverurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strrequestheaders: ::core::mem::ManuallyDrop<::windows::core::BSTR>, prequest: *mut ::core::ffi::c_void, strcacertificatethumbprint: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Initialize: usize, - #[cfg(feature = "Win32_Foundation")] - pub InitializeForPending: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strserverurl: ::core::mem::ManuallyDrop, strrequestheaders: ::core::mem::ManuallyDrop, context: X509CertificateEnrollmentContext, strtransactionid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeForPending: usize, + pub InitializeForPending: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strserverurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strrequestheaders: ::core::mem::ManuallyDrop<::windows::core::BSTR>, context: X509CertificateEnrollmentContext, strtransactionid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Enroll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, processflags: X509SCEPProcessMessageFlags, pdisposition: *mut X509SCEPDisposition) -> ::windows::core::HRESULT, pub FetchPending: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, processflags: X509SCEPProcessMessageFlags, pdisposition: *mut X509SCEPDisposition) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub X509SCEPEnrollment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] X509SCEPEnrollment: usize, - #[cfg(feature = "Win32_Foundation")] - pub ResultMessageText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ResultMessageText: usize, + pub ResultMessageText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Security_Cryptography_Certificates\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -29396,19 +25031,12 @@ impl IX509SignatureInformation { { (::windows::core::Interface::vtable(self).SetPublicKeyAlgorithm)(::windows::core::Interface::as_raw(self), pvalue.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_Parameters(&self, encoding: EncodingType) -> ::windows::core::Result { + pub unsafe fn get_Parameters(&self, encoding: EncodingType) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_Parameters)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_Parameters)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_Parameters<'a, P0>(&self, encoding: EncodingType, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).put_Parameters)(::windows::core::Interface::as_raw(self), encoding, value.into().abi()).ok() + pub unsafe fn put_Parameters(&self, encoding: EncodingType, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).put_Parameters)(::windows::core::Interface::as_raw(self), encoding, ::core::mem::transmute_copy(value)).ok() } pub unsafe fn AlternateSignatureAlgorithm(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -29520,14 +25148,8 @@ pub struct IX509SignatureInformation_Vtbl { pub SetPublicKeyAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] SetPublicKeyAlgorithm: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_Parameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_Parameters: usize, - #[cfg(feature = "Win32_Foundation")] - pub put_Parameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - put_Parameters: usize, + pub get_Parameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub put_Parameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encoding: EncodingType, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub AlternateSignatureAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i16) -> ::windows::core::HRESULT, pub SetAlternateSignatureAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i16) -> ::windows::core::HRESULT, pub AlternateSignatureAlgorithmSet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i16) -> ::windows::core::HRESULT, diff --git a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/impl.rs b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/impl.rs index dc8f60833b..592e6cccee 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/impl.rs @@ -1,22 +1,22 @@ #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertSrvSetup_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn CAErrorId(&self) -> ::windows::core::Result; - fn CAErrorString(&self) -> ::windows::core::Result; + fn CAErrorString(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn InitializeDefaults(&self, bserver: i16, bclient: i16) -> ::windows::core::Result<()>; fn GetCASetupProperty(&self, propertyid: CASetupProperty) -> ::windows::core::Result; fn SetCASetupProperty(&self, propertyid: CASetupProperty, ppropertyvalue: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn IsPropertyEditable(&self, propertyid: CASetupProperty) -> ::windows::core::Result; fn GetSupportedCATypes(&self) -> ::windows::core::Result; fn GetProviderNameList(&self) -> ::windows::core::Result; - fn GetKeyLengthList(&self, bstrprovidername: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetHashAlgorithmList(&self, bstrprovidername: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetPrivateKeyContainerList(&self, bstrprovidername: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetKeyLengthList(&self, bstrprovidername: &::windows::core::BSTR) -> ::windows::core::Result; + fn GetHashAlgorithmList(&self, bstrprovidername: &::windows::core::BSTR) -> ::windows::core::Result; + fn GetPrivateKeyContainerList(&self, bstrprovidername: &::windows::core::BSTR) -> ::windows::core::Result; fn GetExistingCACertificates(&self) -> ::windows::core::Result; - fn CAImportPFX(&self, bstrfilename: &super::super::Foundation::BSTR, bstrpasswd: &super::super::Foundation::BSTR, boverwriteexistingkey: i16) -> ::windows::core::Result; - fn SetCADistinguishedName(&self, bstrcadn: &super::super::Foundation::BSTR, bignoreunicode: i16, boverwriteexistingkey: i16, boverwriteexistingcainds: i16) -> ::windows::core::Result<()>; - fn SetDatabaseInformation(&self, bstrdbdirectory: &super::super::Foundation::BSTR, bstrlogdirectory: &super::super::Foundation::BSTR, bstrsharedfolder: &super::super::Foundation::BSTR, bforceoverwrite: i16) -> ::windows::core::Result<()>; - fn SetParentCAInformation(&self, bstrcaconfiguration: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetWebCAInformation(&self, bstrcaconfiguration: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn CAImportPFX(&self, bstrfilename: &::windows::core::BSTR, bstrpasswd: &::windows::core::BSTR, boverwriteexistingkey: i16) -> ::windows::core::Result; + fn SetCADistinguishedName(&self, bstrcadn: &::windows::core::BSTR, bignoreunicode: i16, boverwriteexistingkey: i16, boverwriteexistingcainds: i16) -> ::windows::core::Result<()>; + fn SetDatabaseInformation(&self, bstrdbdirectory: &::windows::core::BSTR, bstrlogdirectory: &::windows::core::BSTR, bstrsharedfolder: &::windows::core::BSTR, bforceoverwrite: i16) -> ::windows::core::Result<()>; + fn SetParentCAInformation(&self, bstrcaconfiguration: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetWebCAInformation(&self, bstrcaconfiguration: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Install(&self) -> ::windows::core::Result<()>; fn PreUnInstall(&self, bclientonly: i16) -> ::windows::core::Result<()>; fn PostUnInstall(&self) -> ::windows::core::Result<()>; @@ -37,7 +37,7 @@ impl ICertSrvSetup_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CAErrorString, Impl: ICertSrvSetup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CAErrorString, Impl: ICertSrvSetup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CAErrorString() { @@ -102,7 +102,7 @@ impl ICertSrvSetup_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetKeyLengthList, Impl: ICertSrvSetup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprovidername: ::core::mem::ManuallyDrop, pval: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetKeyLengthList, Impl: ICertSrvSetup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprovidername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pval: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetKeyLengthList(::core::mem::transmute(&bstrprovidername)) { @@ -113,7 +113,7 @@ impl ICertSrvSetup_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetHashAlgorithmList, Impl: ICertSrvSetup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprovidername: ::core::mem::ManuallyDrop, pval: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetHashAlgorithmList, Impl: ICertSrvSetup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprovidername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pval: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetHashAlgorithmList(::core::mem::transmute(&bstrprovidername)) { @@ -124,7 +124,7 @@ impl ICertSrvSetup_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetPrivateKeyContainerList, Impl: ICertSrvSetup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprovidername: ::core::mem::ManuallyDrop, pval: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPrivateKeyContainerList, Impl: ICertSrvSetup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprovidername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pval: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetPrivateKeyContainerList(::core::mem::transmute(&bstrprovidername)) { @@ -146,7 +146,7 @@ impl ICertSrvSetup_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CAImportPFX, Impl: ICertSrvSetup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop, bstrpasswd: ::core::mem::ManuallyDrop, boverwriteexistingkey: i16, ppval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CAImportPFX, Impl: ICertSrvSetup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpasswd: ::core::mem::ManuallyDrop<::windows::core::BSTR>, boverwriteexistingkey: i16, ppval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CAImportPFX(::core::mem::transmute(&bstrfilename), ::core::mem::transmute(&bstrpasswd), ::core::mem::transmute_copy(&boverwriteexistingkey)) { @@ -157,22 +157,22 @@ impl ICertSrvSetup_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetCADistinguishedName, Impl: ICertSrvSetup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcadn: ::core::mem::ManuallyDrop, bignoreunicode: i16, boverwriteexistingkey: i16, boverwriteexistingcainds: i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCADistinguishedName, Impl: ICertSrvSetup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcadn: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bignoreunicode: i16, boverwriteexistingkey: i16, boverwriteexistingcainds: i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCADistinguishedName(::core::mem::transmute(&bstrcadn), ::core::mem::transmute_copy(&bignoreunicode), ::core::mem::transmute_copy(&boverwriteexistingkey), ::core::mem::transmute_copy(&boverwriteexistingcainds)).into() } - unsafe extern "system" fn SetDatabaseInformation, Impl: ICertSrvSetup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdbdirectory: ::core::mem::ManuallyDrop, bstrlogdirectory: ::core::mem::ManuallyDrop, bstrsharedfolder: ::core::mem::ManuallyDrop, bforceoverwrite: i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDatabaseInformation, Impl: ICertSrvSetup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdbdirectory: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrlogdirectory: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrsharedfolder: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bforceoverwrite: i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDatabaseInformation(::core::mem::transmute(&bstrdbdirectory), ::core::mem::transmute(&bstrlogdirectory), ::core::mem::transmute(&bstrsharedfolder), ::core::mem::transmute_copy(&bforceoverwrite)).into() } - unsafe extern "system" fn SetParentCAInformation, Impl: ICertSrvSetup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcaconfiguration: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetParentCAInformation, Impl: ICertSrvSetup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcaconfiguration: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetParentCAInformation(::core::mem::transmute(&bstrcaconfiguration)).into() } - unsafe extern "system" fn SetWebCAInformation, Impl: ICertSrvSetup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcaconfiguration: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetWebCAInformation, Impl: ICertSrvSetup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcaconfiguration: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetWebCAInformation(::core::mem::transmute(&bstrcaconfiguration)).into() @@ -222,16 +222,16 @@ impl ICertSrvSetup_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertSrvSetupKeyInformation_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn ProviderName(&self) -> ::windows::core::Result; - fn SetProviderName(&self, bstrval: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ProviderName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetProviderName(&self, bstrval: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Length(&self) -> ::windows::core::Result; fn SetLength(&self, lval: i32) -> ::windows::core::Result<()>; fn Existing(&self) -> ::windows::core::Result; fn SetExisting(&self, bval: i16) -> ::windows::core::Result<()>; - fn ContainerName(&self) -> ::windows::core::Result; - fn SetContainerName(&self, bstrval: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn HashAlgorithm(&self) -> ::windows::core::Result; - fn SetHashAlgorithm(&self, bstrval: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ContainerName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetContainerName(&self, bstrval: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn HashAlgorithm(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetHashAlgorithm(&self, bstrval: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn ExistingCACertificate(&self) -> ::windows::core::Result; fn SetExistingCACertificate(&self, varval: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; } @@ -240,7 +240,7 @@ impl ::windows::core::RuntimeName for ICertSrvSetupKeyInformation {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertSrvSetupKeyInformation_Vtbl { pub const fn new, Impl: ICertSrvSetupKeyInformation_Impl, const OFFSET: isize>() -> ICertSrvSetupKeyInformation_Vtbl { - unsafe extern "system" fn ProviderName, Impl: ICertSrvSetupKeyInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ProviderName, Impl: ICertSrvSetupKeyInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ProviderName() { @@ -251,7 +251,7 @@ impl ICertSrvSetupKeyInformation_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetProviderName, Impl: ICertSrvSetupKeyInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetProviderName, Impl: ICertSrvSetupKeyInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetProviderName(::core::mem::transmute(&bstrval)).into() @@ -288,7 +288,7 @@ impl ICertSrvSetupKeyInformation_Vtbl { let this = (*this).get_impl(); this.SetExisting(::core::mem::transmute_copy(&bval)).into() } - unsafe extern "system" fn ContainerName, Impl: ICertSrvSetupKeyInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ContainerName, Impl: ICertSrvSetupKeyInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ContainerName() { @@ -299,12 +299,12 @@ impl ICertSrvSetupKeyInformation_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetContainerName, Impl: ICertSrvSetupKeyInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetContainerName, Impl: ICertSrvSetupKeyInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetContainerName(::core::mem::transmute(&bstrval)).into() } - unsafe extern "system" fn HashAlgorithm, Impl: ICertSrvSetupKeyInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn HashAlgorithm, Impl: ICertSrvSetupKeyInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.HashAlgorithm() { @@ -315,7 +315,7 @@ impl ICertSrvSetupKeyInformation_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetHashAlgorithm, Impl: ICertSrvSetupKeyInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetHashAlgorithm, Impl: ICertSrvSetupKeyInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetHashAlgorithm(::core::mem::transmute(&bstrval)).into() @@ -420,7 +420,7 @@ impl ICertSrvSetupKeyInformationCollection_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertificateEnrollmentPolicyServerSetup_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn ErrorString(&self) -> ::windows::core::Result; + fn ErrorString(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn InitializeInstallDefaults(&self) -> ::windows::core::Result<()>; fn GetProperty(&self, propertyid: CEPSetupProperty) -> ::windows::core::Result; fn SetProperty(&self, propertyid: CEPSetupProperty, ppropertyvalue: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; @@ -432,7 +432,7 @@ impl ::windows::core::RuntimeName for ICertificateEnrollmentPolicyServerSetup {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertificateEnrollmentPolicyServerSetup_Vtbl { pub const fn new, Impl: ICertificateEnrollmentPolicyServerSetup_Impl, const OFFSET: isize>() -> ICertificateEnrollmentPolicyServerSetup_Vtbl { - unsafe extern "system" fn ErrorString, Impl: ICertificateEnrollmentPolicyServerSetup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ErrorString, Impl: ICertificateEnrollmentPolicyServerSetup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ErrorString() { @@ -490,11 +490,11 @@ impl ICertificateEnrollmentPolicyServerSetup_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICertificateEnrollmentServerSetup_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn ErrorString(&self) -> ::windows::core::Result; + fn ErrorString(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn InitializeInstallDefaults(&self) -> ::windows::core::Result<()>; fn GetProperty(&self, propertyid: CESSetupProperty) -> ::windows::core::Result; fn SetProperty(&self, propertyid: CESSetupProperty, ppropertyvalue: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn SetApplicationPoolCredentials(&self, bstrusername: &super::super::Foundation::BSTR, bstrpassword: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetApplicationPoolCredentials(&self, bstrusername: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Install(&self) -> ::windows::core::Result<()>; fn UnInstall(&self, pcaconfig: *const super::super::System::Com::VARIANT, pauthentication: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; } @@ -503,7 +503,7 @@ impl ::windows::core::RuntimeName for ICertificateEnrollmentServerSetup {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICertificateEnrollmentServerSetup_Vtbl { pub const fn new, Impl: ICertificateEnrollmentServerSetup_Impl, const OFFSET: isize>() -> ICertificateEnrollmentServerSetup_Vtbl { - unsafe extern "system" fn ErrorString, Impl: ICertificateEnrollmentServerSetup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ErrorString, Impl: ICertificateEnrollmentServerSetup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ErrorString() { @@ -535,7 +535,7 @@ impl ICertificateEnrollmentServerSetup_Vtbl { let this = (*this).get_impl(); this.SetProperty(::core::mem::transmute_copy(&propertyid), ::core::mem::transmute_copy(&ppropertyvalue)).into() } - unsafe extern "system" fn SetApplicationPoolCredentials, Impl: ICertificateEnrollmentServerSetup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetApplicationPoolCredentials, Impl: ICertificateEnrollmentServerSetup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetApplicationPoolCredentials(::core::mem::transmute(&bstrusername), ::core::mem::transmute(&bstrpassword)).into() @@ -568,14 +568,14 @@ impl ICertificateEnrollmentServerSetup_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IMSCEPSetup_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn MSCEPErrorId(&self) -> ::windows::core::Result; - fn MSCEPErrorString(&self) -> ::windows::core::Result; + fn MSCEPErrorString(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn InitializeDefaults(&self) -> ::windows::core::Result<()>; fn GetMSCEPSetupProperty(&self, propertyid: MSCEPSetupProperty) -> ::windows::core::Result; fn SetMSCEPSetupProperty(&self, propertyid: MSCEPSetupProperty, ppropertyvalue: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn SetAccountInformation(&self, bstrusername: &super::super::Foundation::BSTR, bstrpassword: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetAccountInformation(&self, bstrusername: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn IsMSCEPStoreEmpty(&self) -> ::windows::core::Result; fn GetProviderNameList(&self, bexchange: i16) -> ::windows::core::Result; - fn GetKeyLengthList(&self, bexchange: i16, bstrprovidername: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetKeyLengthList(&self, bexchange: i16, bstrprovidername: &::windows::core::BSTR) -> ::windows::core::Result; fn Install(&self) -> ::windows::core::Result<()>; fn PreUnInstall(&self) -> ::windows::core::Result<()>; fn PostUnInstall(&self) -> ::windows::core::Result<()>; @@ -596,7 +596,7 @@ impl IMSCEPSetup_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn MSCEPErrorString, Impl: IMSCEPSetup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn MSCEPErrorString, Impl: IMSCEPSetup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.MSCEPErrorString() { @@ -628,7 +628,7 @@ impl IMSCEPSetup_Vtbl { let this = (*this).get_impl(); this.SetMSCEPSetupProperty(::core::mem::transmute_copy(&propertyid), ::core::mem::transmute_copy(&ppropertyvalue)).into() } - unsafe extern "system" fn SetAccountInformation, Impl: IMSCEPSetup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetAccountInformation, Impl: IMSCEPSetup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetAccountInformation(::core::mem::transmute(&bstrusername), ::core::mem::transmute(&bstrpassword)).into() @@ -655,7 +655,7 @@ impl IMSCEPSetup_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetKeyLengthList, Impl: IMSCEPSetup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bexchange: i16, bstrprovidername: ::core::mem::ManuallyDrop, pval: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetKeyLengthList, Impl: IMSCEPSetup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bexchange: i16, bstrprovidername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pval: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetKeyLengthList(::core::mem::transmute_copy(&bexchange), ::core::mem::transmute(&bstrprovidername)) { diff --git a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/mod.rs b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/mod.rs index ae28488647..d4f5783da9 100644 --- a/crates/libs/windows/src/Windows/Win32/Security/Cryptography/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Security/Cryptography/mod.rs @@ -4656,11 +4656,9 @@ impl ICertSrvSetup { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CAErrorId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CAErrorString(&self) -> ::windows::core::Result { + pub unsafe fn CAErrorString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CAErrorString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CAErrorString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn InitializeDefaults(&self, bserver: i16, bclient: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).InitializeDefaults)(::windows::core::Interface::as_raw(self), bserver, bclient).ok() @@ -4694,30 +4692,21 @@ impl ICertSrvSetup { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetKeyLengthList<'a, P0>(&self, bstrprovidername: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetKeyLengthList(&self, bstrprovidername: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetKeyLengthList)(::windows::core::Interface::as_raw(self), bstrprovidername.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetKeyLengthList)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprovidername), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetHashAlgorithmList<'a, P0>(&self, bstrprovidername: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetHashAlgorithmList(&self, bstrprovidername: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetHashAlgorithmList)(::windows::core::Interface::as_raw(self), bstrprovidername.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetHashAlgorithmList)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprovidername), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetPrivateKeyContainerList<'a, P0>(&self, bstrprovidername: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetPrivateKeyContainerList(&self, bstrprovidername: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetPrivateKeyContainerList)(::windows::core::Interface::as_raw(self), bstrprovidername.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetPrivateKeyContainerList)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprovidername), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4725,49 +4714,23 @@ impl ICertSrvSetup { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetExistingCACertificates)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CAImportPFX<'a, P0, P1>(&self, bstrfilename: P0, bstrpasswd: P1, boverwriteexistingkey: i16) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CAImportPFX(&self, bstrfilename: &::windows::core::BSTR, bstrpasswd: &::windows::core::BSTR, boverwriteexistingkey: i16) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CAImportPFX)(::windows::core::Interface::as_raw(self), bstrfilename.into().abi(), bstrpasswd.into().abi(), boverwriteexistingkey, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CAImportPFX)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrfilename), ::core::mem::transmute_copy(bstrpasswd), boverwriteexistingkey, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCADistinguishedName<'a, P0>(&self, bstrcadn: P0, bignoreunicode: i16, boverwriteexistingkey: i16, boverwriteexistingcainds: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetCADistinguishedName)(::windows::core::Interface::as_raw(self), bstrcadn.into().abi(), bignoreunicode, boverwriteexistingkey, boverwriteexistingcainds).ok() + pub unsafe fn SetCADistinguishedName(&self, bstrcadn: &::windows::core::BSTR, bignoreunicode: i16, boverwriteexistingkey: i16, boverwriteexistingcainds: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetCADistinguishedName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcadn), bignoreunicode, boverwriteexistingkey, boverwriteexistingcainds).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDatabaseInformation<'a, P0, P1, P2>(&self, bstrdbdirectory: P0, bstrlogdirectory: P1, bstrsharedfolder: P2, bforceoverwrite: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDatabaseInformation)(::windows::core::Interface::as_raw(self), bstrdbdirectory.into().abi(), bstrlogdirectory.into().abi(), bstrsharedfolder.into().abi(), bforceoverwrite).ok() + pub unsafe fn SetDatabaseInformation(&self, bstrdbdirectory: &::windows::core::BSTR, bstrlogdirectory: &::windows::core::BSTR, bstrsharedfolder: &::windows::core::BSTR, bforceoverwrite: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDatabaseInformation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdbdirectory), ::core::mem::transmute_copy(bstrlogdirectory), ::core::mem::transmute_copy(bstrsharedfolder), bforceoverwrite).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetParentCAInformation<'a, P0>(&self, bstrcaconfiguration: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetParentCAInformation)(::windows::core::Interface::as_raw(self), bstrcaconfiguration.into().abi()).ok() + pub unsafe fn SetParentCAInformation(&self, bstrcaconfiguration: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetParentCAInformation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcaconfiguration)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetWebCAInformation<'a, P0>(&self, bstrcaconfiguration: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetWebCAInformation)(::windows::core::Interface::as_raw(self), bstrcaconfiguration.into().abi()).ok() + pub unsafe fn SetWebCAInformation(&self, bstrcaconfiguration: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetWebCAInformation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcaconfiguration)).ok() } pub unsafe fn Install(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Install)(::windows::core::Interface::as_raw(self)).ok() @@ -4846,10 +4809,7 @@ unsafe impl ::windows::core::Interface for ICertSrvSetup { pub struct ICertSrvSetup_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub CAErrorId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CAErrorString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CAErrorString: usize, + pub CAErrorString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub InitializeDefaults: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bserver: i16, bclient: i16) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub GetCASetupProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyid: CASetupProperty, ppropertyvalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, @@ -4869,41 +4829,29 @@ pub struct ICertSrvSetup_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetProviderNameList: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetKeyLengthList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprovidername: ::core::mem::ManuallyDrop, pval: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetKeyLengthList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprovidername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pval: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetKeyLengthList: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetHashAlgorithmList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprovidername: ::core::mem::ManuallyDrop, pval: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetHashAlgorithmList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprovidername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pval: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetHashAlgorithmList: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetPrivateKeyContainerList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprovidername: ::core::mem::ManuallyDrop, pval: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetPrivateKeyContainerList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprovidername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pval: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetPrivateKeyContainerList: usize, #[cfg(feature = "Win32_System_Com")] pub GetExistingCACertificates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetExistingCACertificates: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CAImportPFX: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop, bstrpasswd: ::core::mem::ManuallyDrop, boverwriteexistingkey: i16, ppval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CAImportPFX: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpasswd: ::core::mem::ManuallyDrop<::windows::core::BSTR>, boverwriteexistingkey: i16, ppval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CAImportPFX: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetCADistinguishedName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcadn: ::core::mem::ManuallyDrop, bignoreunicode: i16, boverwriteexistingkey: i16, boverwriteexistingcainds: i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetCADistinguishedName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDatabaseInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdbdirectory: ::core::mem::ManuallyDrop, bstrlogdirectory: ::core::mem::ManuallyDrop, bstrsharedfolder: ::core::mem::ManuallyDrop, bforceoverwrite: i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDatabaseInformation: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetParentCAInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcaconfiguration: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetParentCAInformation: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetWebCAInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcaconfiguration: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetWebCAInformation: usize, + pub SetCADistinguishedName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcadn: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bignoreunicode: i16, boverwriteexistingkey: i16, boverwriteexistingcainds: i16) -> ::windows::core::HRESULT, + pub SetDatabaseInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdbdirectory: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrlogdirectory: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrsharedfolder: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bforceoverwrite: i16) -> ::windows::core::HRESULT, + pub SetParentCAInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcaconfiguration: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetWebCAInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcaconfiguration: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Install: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub PreUnInstall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bclientonly: i16) -> ::windows::core::HRESULT, pub PostUnInstall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -4914,19 +4862,12 @@ pub struct ICertSrvSetup_Vtbl { pub struct ICertSrvSetupKeyInformation(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertSrvSetupKeyInformation { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ProviderName(&self) -> ::windows::core::Result { + pub unsafe fn ProviderName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetProviderName<'a, P0>(&self, bstrval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetProviderName)(::windows::core::Interface::as_raw(self), bstrval.into().abi()).ok() + pub unsafe fn SetProviderName(&self, bstrval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrval)).ok() } pub unsafe fn Length(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4942,33 +4883,19 @@ impl ICertSrvSetupKeyInformation { pub unsafe fn SetExisting(&self, bval: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetExisting)(::windows::core::Interface::as_raw(self), bval).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ContainerName(&self) -> ::windows::core::Result { + pub unsafe fn ContainerName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ContainerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ContainerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetContainerName<'a, P0>(&self, bstrval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetContainerName)(::windows::core::Interface::as_raw(self), bstrval.into().abi()).ok() + pub unsafe fn SetContainerName(&self, bstrval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetContainerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn HashAlgorithm(&self) -> ::windows::core::Result { + pub unsafe fn HashAlgorithm(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).HashAlgorithm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).HashAlgorithm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetHashAlgorithm<'a, P0>(&self, bstrval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetHashAlgorithm)(::windows::core::Interface::as_raw(self), bstrval.into().abi()).ok() + pub unsafe fn SetHashAlgorithm(&self, bstrval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetHashAlgorithm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrval)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -5051,34 +4978,16 @@ unsafe impl ::windows::core::Interface for ICertSrvSetupKeyInformation { #[doc(hidden)] pub struct ICertSrvSetupKeyInformation_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub ProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ProviderName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetProviderName: usize, + pub ProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Length: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows::core::HRESULT, pub SetLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lval: i32) -> ::windows::core::HRESULT, pub Existing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i16) -> ::windows::core::HRESULT, pub SetExisting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bval: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ContainerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ContainerName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetContainerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetContainerName: usize, - #[cfg(feature = "Win32_Foundation")] - pub HashAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - HashAlgorithm: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetHashAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetHashAlgorithm: usize, + pub ContainerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetContainerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub HashAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetHashAlgorithm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub ExistingCACertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -5200,11 +5109,9 @@ pub struct ICertSrvSetupKeyInformationCollection_Vtbl { pub struct ICertificateEnrollmentPolicyServerSetup(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertificateEnrollmentPolicyServerSetup { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ErrorString(&self) -> ::windows::core::Result { + pub unsafe fn ErrorString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ErrorString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ErrorString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn InitializeInstallDefaults(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).InitializeInstallDefaults)(::windows::core::Interface::as_raw(self)).ok() @@ -5295,10 +5202,7 @@ unsafe impl ::windows::core::Interface for ICertificateEnrollmentPolicyServerSet #[doc(hidden)] pub struct ICertificateEnrollmentPolicyServerSetup_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub ErrorString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ErrorString: usize, + pub ErrorString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub InitializeInstallDefaults: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub GetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyid: CEPSetupProperty, ppropertyvalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, @@ -5320,11 +5224,9 @@ pub struct ICertificateEnrollmentPolicyServerSetup_Vtbl { pub struct ICertificateEnrollmentServerSetup(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICertificateEnrollmentServerSetup { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ErrorString(&self) -> ::windows::core::Result { + pub unsafe fn ErrorString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ErrorString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ErrorString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn InitializeInstallDefaults(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).InitializeInstallDefaults)(::windows::core::Interface::as_raw(self)).ok() @@ -5340,14 +5242,8 @@ impl ICertificateEnrollmentServerSetup { pub unsafe fn SetProperty(&self, propertyid: CESSetupProperty, ppropertyvalue: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetProperty)(::windows::core::Interface::as_raw(self), propertyid, ::core::mem::transmute(ppropertyvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetApplicationPoolCredentials<'a, P0, P1>(&self, bstrusername: P0, bstrpassword: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetApplicationPoolCredentials)(::windows::core::Interface::as_raw(self), bstrusername.into().abi(), bstrpassword.into().abi()).ok() + pub unsafe fn SetApplicationPoolCredentials(&self, bstrusername: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetApplicationPoolCredentials)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrusername), ::core::mem::transmute_copy(bstrpassword)).ok() } pub unsafe fn Install(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Install)(::windows::core::Interface::as_raw(self)).ok() @@ -5424,10 +5320,7 @@ unsafe impl ::windows::core::Interface for ICertificateEnrollmentServerSetup { #[doc(hidden)] pub struct ICertificateEnrollmentServerSetup_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub ErrorString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ErrorString: usize, + pub ErrorString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub InitializeInstallDefaults: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub GetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyid: CESSetupProperty, ppropertyvalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, @@ -5437,10 +5330,7 @@ pub struct ICertificateEnrollmentServerSetup_Vtbl { pub SetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyid: CESSetupProperty, ppropertyvalue: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SetProperty: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetApplicationPoolCredentials: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetApplicationPoolCredentials: usize, + pub SetApplicationPoolCredentials: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Install: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub UnInstall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcaconfig: *const super::super::System::Com::VARIANT, pauthentication: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, @@ -5457,11 +5347,9 @@ impl IMSCEPSetup { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).MSCEPErrorId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MSCEPErrorString(&self) -> ::windows::core::Result { + pub unsafe fn MSCEPErrorString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).MSCEPErrorString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).MSCEPErrorString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn InitializeDefaults(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).InitializeDefaults)(::windows::core::Interface::as_raw(self)).ok() @@ -5477,14 +5365,8 @@ impl IMSCEPSetup { pub unsafe fn SetMSCEPSetupProperty(&self, propertyid: MSCEPSetupProperty, ppropertyvalue: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetMSCEPSetupProperty)(::windows::core::Interface::as_raw(self), propertyid, ::core::mem::transmute(ppropertyvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetAccountInformation<'a, P0, P1>(&self, bstrusername: P0, bstrpassword: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetAccountInformation)(::windows::core::Interface::as_raw(self), bstrusername.into().abi(), bstrpassword.into().abi()).ok() + pub unsafe fn SetAccountInformation(&self, bstrusername: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetAccountInformation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrusername), ::core::mem::transmute_copy(bstrpassword)).ok() } pub unsafe fn IsMSCEPStoreEmpty(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5498,12 +5380,9 @@ impl IMSCEPSetup { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetKeyLengthList<'a, P0>(&self, bexchange: i16, bstrprovidername: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetKeyLengthList(&self, bexchange: i16, bstrprovidername: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetKeyLengthList)(::windows::core::Interface::as_raw(self), bexchange, bstrprovidername.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetKeyLengthList)(::windows::core::Interface::as_raw(self), bexchange, ::core::mem::transmute_copy(bstrprovidername), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn Install(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Install)(::windows::core::Interface::as_raw(self)).ok() @@ -5582,10 +5461,7 @@ unsafe impl ::windows::core::Interface for IMSCEPSetup { pub struct IMSCEPSetup_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub MSCEPErrorId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub MSCEPErrorString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MSCEPErrorString: usize, + pub MSCEPErrorString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub InitializeDefaults: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub GetMSCEPSetupProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyid: MSCEPSetupProperty, pval: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, @@ -5595,17 +5471,14 @@ pub struct IMSCEPSetup_Vtbl { pub SetMSCEPSetupProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyid: MSCEPSetupProperty, ppropertyvalue: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SetMSCEPSetupProperty: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetAccountInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetAccountInformation: usize, + pub SetAccountInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub IsMSCEPStoreEmpty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbempty: *mut i16) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub GetProviderNameList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bexchange: i16, pval: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetProviderNameList: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetKeyLengthList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bexchange: i16, bstrprovidername: ::core::mem::ManuallyDrop, pval: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetKeyLengthList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bexchange: i16, bstrprovidername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pval: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetKeyLengthList: usize, pub Install: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, diff --git a/crates/libs/windows/src/Windows/Win32/Storage/DataDeduplication/impl.rs b/crates/libs/windows/src/Windows/Win32/Storage/DataDeduplication/impl.rs index a6e7ecba3b..9fb549d97b 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/DataDeduplication/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/DataDeduplication/impl.rs @@ -1,13 +1,10 @@ -#[cfg(feature = "Win32_Foundation")] pub trait IDedupBackupSupport_Impl: Sized { - fn RestoreFiles(&self, numberoffiles: u32, filefullpaths: *const super::super::Foundation::BSTR, store: &::core::option::Option, flags: u32, fileresults: *mut ::windows::core::HRESULT) -> ::windows::core::Result<()>; + fn RestoreFiles(&self, numberoffiles: u32, filefullpaths: *const ::windows::core::BSTR, store: &::core::option::Option, flags: u32, fileresults: *mut ::windows::core::HRESULT) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDedupBackupSupport {} -#[cfg(feature = "Win32_Foundation")] impl IDedupBackupSupport_Vtbl { pub const fn new, Impl: IDedupBackupSupport_Impl, const OFFSET: isize>() -> IDedupBackupSupport_Vtbl { - unsafe extern "system" fn RestoreFiles, Impl: IDedupBackupSupport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, numberoffiles: u32, filefullpaths: *const super::super::Foundation::BSTR, store: *mut ::core::ffi::c_void, flags: u32, fileresults: *mut ::windows::core::HRESULT) -> ::windows::core::HRESULT { + unsafe extern "system" fn RestoreFiles, Impl: IDedupBackupSupport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, numberoffiles: u32, filefullpaths: *const ::core::mem::ManuallyDrop<::windows::core::BSTR>, store: *mut ::core::ffi::c_void, flags: u32, fileresults: *mut ::windows::core::HRESULT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RestoreFiles(::core::mem::transmute_copy(&numberoffiles), ::core::mem::transmute_copy(&filefullpaths), ::core::mem::transmute(&store), ::core::mem::transmute_copy(&flags), ::core::mem::transmute_copy(&fileresults)).into() @@ -68,7 +65,7 @@ impl IDedupChunkLibrary_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IDedupDataPort_Impl: Sized { fn GetStatus(&self, pstatus: *mut DedupDataPortVolumeStatus, pdataheadroommb: *mut u32) -> ::windows::core::Result<()>; fn LookupChunks(&self, count: u32, phashes: *const DedupHash) -> ::windows::core::Result<::windows::core::GUID>; @@ -76,16 +73,16 @@ pub trait IDedupDataPort_Impl: Sized { fn InsertChunksWithStream(&self, chunkcount: u32, pchunkmetadata: *const DedupChunk, databytecount: u32, pchunkdatastream: &::core::option::Option) -> ::windows::core::Result<::windows::core::GUID>; fn CommitStreams(&self, streamcount: u32, pstreams: *const DedupStream, entrycount: u32, pentries: *const DedupStreamEntry) -> ::windows::core::Result<::windows::core::GUID>; fn CommitStreamsWithStream(&self, streamcount: u32, pstreams: *const DedupStream, entrycount: u32, pentriesstream: &::core::option::Option) -> ::windows::core::Result<::windows::core::GUID>; - fn GetStreams(&self, streamcount: u32, pstreampaths: *const super::super::Foundation::BSTR) -> ::windows::core::Result<::windows::core::GUID>; + fn GetStreams(&self, streamcount: u32, pstreampaths: *const ::windows::core::BSTR) -> ::windows::core::Result<::windows::core::GUID>; fn GetStreamsResults(&self, requestid: &::windows::core::GUID, maxwaitms: u32, streamentryindex: u32, pstreamcount: *mut u32, ppstreams: *mut *mut DedupStream, pentrycount: *mut u32, ppentries: *mut *mut DedupStreamEntry, pstatus: *mut DedupDataPortRequestStatus, ppitemresults: *mut *mut ::windows::core::HRESULT) -> ::windows::core::Result<()>; fn GetChunks(&self, count: u32, phashes: *const DedupHash) -> ::windows::core::Result<::windows::core::GUID>; fn GetChunksResults(&self, requestid: &::windows::core::GUID, maxwaitms: u32, chunkindex: u32, pchunkcount: *mut u32, ppchunkmetadata: *mut *mut DedupChunk, pdatabytecount: *mut u32, ppchunkdata: *mut *mut u8, pstatus: *mut DedupDataPortRequestStatus, ppitemresults: *mut *mut ::windows::core::HRESULT) -> ::windows::core::Result<()>; fn GetRequestStatus(&self, requestid: &::windows::core::GUID) -> ::windows::core::Result; fn GetRequestResults(&self, requestid: &::windows::core::GUID, maxwaitms: u32, pbatchresult: *mut ::windows::core::HRESULT, pbatchcount: *mut u32, pstatus: *mut DedupDataPortRequestStatus, ppitemresults: *mut *mut ::windows::core::HRESULT) -> ::windows::core::Result<()>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IDedupDataPort {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IDedupDataPort_Vtbl { pub const fn new, Impl: IDedupDataPort_Impl, const OFFSET: isize>() -> IDedupDataPort_Vtbl { unsafe extern "system" fn GetStatus, Impl: IDedupDataPort_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstatus: *mut DedupDataPortVolumeStatus, pdataheadroommb: *mut u32) -> ::windows::core::HRESULT { @@ -148,7 +145,7 @@ impl IDedupDataPort_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetStreams, Impl: IDedupDataPort_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, streamcount: u32, pstreampaths: *const super::super::Foundation::BSTR, prequestid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetStreams, Impl: IDedupDataPort_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, streamcount: u32, pstreampaths: *const ::core::mem::ManuallyDrop<::windows::core::BSTR>, prequestid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetStreams(::core::mem::transmute_copy(&streamcount), ::core::mem::transmute_copy(&pstreampaths)) { @@ -216,15 +213,12 @@ impl IDedupDataPort_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDedupDataPortManager_Impl: Sized { fn GetConfiguration(&self, pminchunksize: *mut u32, pmaxchunksize: *mut u32, pchunkingalgorithm: *mut DedupChunkingAlgorithm, phashingalgorithm: *mut DedupHashingAlgorithm, pcompressionalgorithm: *mut DedupCompressionAlgorithm) -> ::windows::core::Result<()>; - fn GetVolumeStatus(&self, options: u32, path: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetVolumeDataPort(&self, options: u32, path: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetVolumeStatus(&self, options: u32, path: &::windows::core::BSTR) -> ::windows::core::Result; + fn GetVolumeDataPort(&self, options: u32, path: &::windows::core::BSTR) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDedupDataPortManager {} -#[cfg(feature = "Win32_Foundation")] impl IDedupDataPortManager_Vtbl { pub const fn new, Impl: IDedupDataPortManager_Impl, const OFFSET: isize>() -> IDedupDataPortManager_Vtbl { unsafe extern "system" fn GetConfiguration, Impl: IDedupDataPortManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pminchunksize: *mut u32, pmaxchunksize: *mut u32, pchunkingalgorithm: *mut DedupChunkingAlgorithm, phashingalgorithm: *mut DedupHashingAlgorithm, pcompressionalgorithm: *mut DedupCompressionAlgorithm) -> ::windows::core::HRESULT { @@ -232,7 +226,7 @@ impl IDedupDataPortManager_Vtbl { let this = (*this).get_impl(); this.GetConfiguration(::core::mem::transmute_copy(&pminchunksize), ::core::mem::transmute_copy(&pmaxchunksize), ::core::mem::transmute_copy(&pchunkingalgorithm), ::core::mem::transmute_copy(&phashingalgorithm), ::core::mem::transmute_copy(&pcompressionalgorithm)).into() } - unsafe extern "system" fn GetVolumeStatus, Impl: IDedupDataPortManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, options: u32, path: ::core::mem::ManuallyDrop, pstatus: *mut DedupDataPortVolumeStatus) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetVolumeStatus, Impl: IDedupDataPortManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, options: u32, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pstatus: *mut DedupDataPortVolumeStatus) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetVolumeStatus(::core::mem::transmute_copy(&options), ::core::mem::transmute(&path)) { @@ -243,7 +237,7 @@ impl IDedupDataPortManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetVolumeDataPort, Impl: IDedupDataPortManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, options: u32, path: ::core::mem::ManuallyDrop, ppdataport: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetVolumeDataPort, Impl: IDedupDataPortManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, options: u32, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppdataport: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetVolumeDataPort(::core::mem::transmute_copy(&options), ::core::mem::transmute(&path)) { @@ -306,28 +300,25 @@ impl IDedupIterateChunksHash32_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDedupReadFileCallback_Impl: Sized { - fn ReadBackupFile(&self, filefullpath: &super::super::Foundation::BSTR, fileoffset: i64, sizetoread: u32, filebuffer: *mut u8, returnedsize: *mut u32, flags: u32) -> ::windows::core::Result<()>; - fn OrderContainersRestore(&self, numberofcontainers: u32, containerpaths: *const super::super::Foundation::BSTR, readplanentries: *mut u32, readplan: *mut *mut DEDUP_CONTAINER_EXTENT) -> ::windows::core::Result<()>; - fn PreviewContainerRead(&self, filefullpath: &super::super::Foundation::BSTR, numberofreads: u32, readoffsets: *const DDP_FILE_EXTENT) -> ::windows::core::Result<()>; + fn ReadBackupFile(&self, filefullpath: &::windows::core::BSTR, fileoffset: i64, sizetoread: u32, filebuffer: *mut u8, returnedsize: *mut u32, flags: u32) -> ::windows::core::Result<()>; + fn OrderContainersRestore(&self, numberofcontainers: u32, containerpaths: *const ::windows::core::BSTR, readplanentries: *mut u32, readplan: *mut *mut DEDUP_CONTAINER_EXTENT) -> ::windows::core::Result<()>; + fn PreviewContainerRead(&self, filefullpath: &::windows::core::BSTR, numberofreads: u32, readoffsets: *const DDP_FILE_EXTENT) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDedupReadFileCallback {} -#[cfg(feature = "Win32_Foundation")] impl IDedupReadFileCallback_Vtbl { pub const fn new, Impl: IDedupReadFileCallback_Impl, const OFFSET: isize>() -> IDedupReadFileCallback_Vtbl { - unsafe extern "system" fn ReadBackupFile, Impl: IDedupReadFileCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filefullpath: ::core::mem::ManuallyDrop, fileoffset: i64, sizetoread: u32, filebuffer: *mut u8, returnedsize: *mut u32, flags: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn ReadBackupFile, Impl: IDedupReadFileCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filefullpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fileoffset: i64, sizetoread: u32, filebuffer: *mut u8, returnedsize: *mut u32, flags: u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ReadBackupFile(::core::mem::transmute(&filefullpath), ::core::mem::transmute_copy(&fileoffset), ::core::mem::transmute_copy(&sizetoread), ::core::mem::transmute_copy(&filebuffer), ::core::mem::transmute_copy(&returnedsize), ::core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn OrderContainersRestore, Impl: IDedupReadFileCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, numberofcontainers: u32, containerpaths: *const super::super::Foundation::BSTR, readplanentries: *mut u32, readplan: *mut *mut DEDUP_CONTAINER_EXTENT) -> ::windows::core::HRESULT { + unsafe extern "system" fn OrderContainersRestore, Impl: IDedupReadFileCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, numberofcontainers: u32, containerpaths: *const ::core::mem::ManuallyDrop<::windows::core::BSTR>, readplanentries: *mut u32, readplan: *mut *mut DEDUP_CONTAINER_EXTENT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OrderContainersRestore(::core::mem::transmute_copy(&numberofcontainers), ::core::mem::transmute_copy(&containerpaths), ::core::mem::transmute_copy(&readplanentries), ::core::mem::transmute_copy(&readplan)).into() } - unsafe extern "system" fn PreviewContainerRead, Impl: IDedupReadFileCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filefullpath: ::core::mem::ManuallyDrop, numberofreads: u32, readoffsets: *const DDP_FILE_EXTENT) -> ::windows::core::HRESULT { + unsafe extern "system" fn PreviewContainerRead, Impl: IDedupReadFileCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filefullpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, numberofreads: u32, readoffsets: *const DDP_FILE_EXTENT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.PreviewContainerRead(::core::mem::transmute(&filefullpath), ::core::mem::transmute_copy(&numberofreads), ::core::mem::transmute_copy(&readoffsets)).into() diff --git a/crates/libs/windows/src/Windows/Win32/Storage/DataDeduplication/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/DataDeduplication/mod.rs index 5cdbd81a57..f87e153950 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/DataDeduplication/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/DataDeduplication/mod.rs @@ -2,9 +2,7 @@ #[repr(transparent)] pub struct IDedupBackupSupport(::windows::core::IUnknown); impl IDedupBackupSupport { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RestoreFiles<'a, P0>(&self, numberoffiles: u32, filefullpaths: *const super::super::Foundation::BSTR, store: P0, flags: u32, fileresults: *mut ::windows::core::HRESULT) -> ::windows::core::Result<()> + pub unsafe fn RestoreFiles<'a, P0>(&self, numberoffiles: u32, filefullpaths: *const ::windows::core::BSTR, store: P0, flags: u32, fileresults: *mut ::windows::core::HRESULT) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IDedupReadFileCallback>>, { @@ -50,10 +48,7 @@ unsafe impl ::windows::core::Interface for IDedupBackupSupport { #[doc(hidden)] pub struct IDedupBackupSupport_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub RestoreFiles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, numberoffiles: u32, filefullpaths: *const super::super::Foundation::BSTR, store: *mut ::core::ffi::c_void, flags: u32, fileresults: *mut ::windows::core::HRESULT) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RestoreFiles: usize, + pub RestoreFiles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, numberoffiles: u32, filefullpaths: *const ::core::mem::ManuallyDrop<::windows::core::BSTR>, store: *mut ::core::ffi::c_void, flags: u32, fileresults: *mut ::windows::core::HRESULT) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Storage_DataDeduplication\"`*"] #[repr(transparent)] @@ -149,14 +144,12 @@ impl IDedupDataPort { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).InsertChunksWithStream)(::windows::core::Interface::as_raw(self), pchunkmetadata.len() as _, ::core::mem::transmute(pchunkmetadata.as_ptr()), databytecount, pchunkdatastream.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn CommitStreams(&self, pstreams: &[DedupStream], pentries: &[DedupStreamEntry]) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CommitStreams)(::windows::core::Interface::as_raw(self), pstreams.len() as _, ::core::mem::transmute(pstreams.as_ptr()), pentries.len() as _, ::core::mem::transmute(pentries.as_ptr()), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] pub unsafe fn CommitStreamsWithStream<'a, P0>(&self, pstreams: &[DedupStream], entrycount: u32, pentriesstream: P0) -> ::windows::core::Result<::windows::core::GUID> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IStream>>, @@ -164,14 +157,10 @@ impl IDedupDataPort { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CommitStreamsWithStream)(::windows::core::Interface::as_raw(self), pstreams.len() as _, ::core::mem::transmute(pstreams.as_ptr()), entrycount, pentriesstream.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetStreams(&self, pstreampaths: &[super::super::Foundation::BSTR]) -> ::windows::core::Result<::windows::core::GUID> { + pub unsafe fn GetStreams(&self, pstreampaths: &[::windows::core::BSTR]) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetStreams)(::windows::core::Interface::as_raw(self), pstreampaths.len() as _, ::core::mem::transmute(pstreampaths.as_ptr()), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetStreamsResults(&self, requestid: ::windows::core::GUID, maxwaitms: u32, streamentryindex: u32, pstreamcount: &mut u32, ppstreams: *mut *mut DedupStream, pentrycount: &mut u32, ppentries: *mut *mut DedupStreamEntry, pstatus: &mut DedupDataPortRequestStatus, ppitemresults: *mut *mut ::windows::core::HRESULT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetStreamsResults)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(requestid), maxwaitms, streamentryindex, ::core::mem::transmute(pstreamcount), ::core::mem::transmute(ppstreams), ::core::mem::transmute(pentrycount), ::core::mem::transmute(ppentries), ::core::mem::transmute(pstatus), ::core::mem::transmute(ppitemresults)).ok() } @@ -236,22 +225,13 @@ pub struct IDedupDataPort_Vtbl { pub InsertChunksWithStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, chunkcount: u32, pchunkmetadata: *const DedupChunk, databytecount: u32, pchunkdatastream: *mut ::core::ffi::c_void, prequestid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] InsertChunksWithStream: usize, - #[cfg(feature = "Win32_Foundation")] pub CommitStreams: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, streamcount: u32, pstreams: *const DedupStream, entrycount: u32, pentries: *const DedupStreamEntry, prequestid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CommitStreams: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] + #[cfg(feature = "Win32_System_Com")] pub CommitStreamsWithStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, streamcount: u32, pstreams: *const DedupStream, entrycount: u32, pentriesstream: *mut ::core::ffi::c_void, prequestid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(not(feature = "Win32_System_Com"))] CommitStreamsWithStream: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetStreams: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, streamcount: u32, pstreampaths: *const super::super::Foundation::BSTR, prequestid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetStreams: usize, - #[cfg(feature = "Win32_Foundation")] + pub GetStreams: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, streamcount: u32, pstreampaths: *const ::core::mem::ManuallyDrop<::windows::core::BSTR>, prequestid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, pub GetStreamsResults: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requestid: ::windows::core::GUID, maxwaitms: u32, streamentryindex: u32, pstreamcount: *mut u32, ppstreams: *mut *mut DedupStream, pentrycount: *mut u32, ppentries: *mut *mut DedupStreamEntry, pstatus: *mut DedupDataPortRequestStatus, ppitemresults: *mut *mut ::windows::core::HRESULT) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetStreamsResults: usize, pub GetChunks: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: u32, phashes: *const DedupHash, prequestid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, pub GetChunksResults: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requestid: ::windows::core::GUID, maxwaitms: u32, chunkindex: u32, pchunkcount: *mut u32, ppchunkmetadata: *mut *mut DedupChunk, pdatabytecount: *mut u32, ppchunkdata: *mut *mut u8, pstatus: *mut DedupDataPortRequestStatus, ppitemresults: *mut *mut ::windows::core::HRESULT) -> ::windows::core::HRESULT, pub GetRequestStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requestid: ::windows::core::GUID, pstatus: *mut DedupDataPortRequestStatus) -> ::windows::core::HRESULT, @@ -264,23 +244,13 @@ impl IDedupDataPortManager { pub unsafe fn GetConfiguration(&self, pminchunksize: &mut u32, pmaxchunksize: &mut u32, pchunkingalgorithm: &mut DedupChunkingAlgorithm, phashingalgorithm: &mut DedupHashingAlgorithm, pcompressionalgorithm: &mut DedupCompressionAlgorithm) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetConfiguration)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pminchunksize), ::core::mem::transmute(pmaxchunksize), ::core::mem::transmute(pchunkingalgorithm), ::core::mem::transmute(phashingalgorithm), ::core::mem::transmute(pcompressionalgorithm)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetVolumeStatus<'a, P0>(&self, options: u32, path: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetVolumeStatus(&self, options: u32, path: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetVolumeStatus)(::windows::core::Interface::as_raw(self), options, path.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetVolumeStatus)(::windows::core::Interface::as_raw(self), options, ::core::mem::transmute_copy(path), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetVolumeDataPort<'a, P0>(&self, options: u32, path: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetVolumeDataPort(&self, options: u32, path: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetVolumeDataPort)(::windows::core::Interface::as_raw(self), options, path.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetVolumeDataPort)(::windows::core::Interface::as_raw(self), options, ::core::mem::transmute_copy(path), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -323,14 +293,8 @@ unsafe impl ::windows::core::Interface for IDedupDataPortManager { pub struct IDedupDataPortManager_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub GetConfiguration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pminchunksize: *mut u32, pmaxchunksize: *mut u32, pchunkingalgorithm: *mut DedupChunkingAlgorithm, phashingalgorithm: *mut DedupHashingAlgorithm, pcompressionalgorithm: *mut DedupCompressionAlgorithm) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetVolumeStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: u32, path: ::core::mem::ManuallyDrop, pstatus: *mut DedupDataPortVolumeStatus) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetVolumeStatus: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetVolumeDataPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: u32, path: ::core::mem::ManuallyDrop, ppdataport: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetVolumeDataPort: usize, + pub GetVolumeStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: u32, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pstatus: *mut DedupDataPortVolumeStatus) -> ::windows::core::HRESULT, + pub GetVolumeDataPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: u32, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppdataport: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Storage_DataDeduplication\"`*"] #[repr(transparent)] @@ -397,26 +361,14 @@ pub struct IDedupIterateChunksHash32_Vtbl { #[repr(transparent)] pub struct IDedupReadFileCallback(::windows::core::IUnknown); impl IDedupReadFileCallback { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ReadBackupFile<'a, P0>(&self, filefullpath: P0, fileoffset: i64, filebuffer: &mut [u8], returnedsize: &mut u32, flags: u32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ReadBackupFile)(::windows::core::Interface::as_raw(self), filefullpath.into().abi(), fileoffset, filebuffer.len() as _, ::core::mem::transmute(filebuffer.as_ptr()), ::core::mem::transmute(returnedsize), flags).ok() + pub unsafe fn ReadBackupFile(&self, filefullpath: &::windows::core::BSTR, fileoffset: i64, filebuffer: &mut [u8], returnedsize: &mut u32, flags: u32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ReadBackupFile)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(filefullpath), fileoffset, filebuffer.len() as _, ::core::mem::transmute(filebuffer.as_ptr()), ::core::mem::transmute(returnedsize), flags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OrderContainersRestore(&self, containerpaths: &[super::super::Foundation::BSTR], readplanentries: &mut u32, readplan: *mut *mut DEDUP_CONTAINER_EXTENT) -> ::windows::core::Result<()> { + pub unsafe fn OrderContainersRestore(&self, containerpaths: &[::windows::core::BSTR], readplanentries: &mut u32, readplan: *mut *mut DEDUP_CONTAINER_EXTENT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).OrderContainersRestore)(::windows::core::Interface::as_raw(self), containerpaths.len() as _, ::core::mem::transmute(containerpaths.as_ptr()), ::core::mem::transmute(readplanentries), ::core::mem::transmute(readplan)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PreviewContainerRead<'a, P0>(&self, filefullpath: P0, readoffsets: &[DDP_FILE_EXTENT]) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).PreviewContainerRead)(::windows::core::Interface::as_raw(self), filefullpath.into().abi(), readoffsets.len() as _, ::core::mem::transmute(readoffsets.as_ptr())).ok() + pub unsafe fn PreviewContainerRead(&self, filefullpath: &::windows::core::BSTR, readoffsets: &[DDP_FILE_EXTENT]) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).PreviewContainerRead)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(filefullpath), readoffsets.len() as _, ::core::mem::transmute(readoffsets.as_ptr())).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -458,18 +410,9 @@ unsafe impl ::windows::core::Interface for IDedupReadFileCallback { #[doc(hidden)] pub struct IDedupReadFileCallback_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub ReadBackupFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filefullpath: ::core::mem::ManuallyDrop, fileoffset: i64, sizetoread: u32, filebuffer: *mut u8, returnedsize: *mut u32, flags: u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ReadBackupFile: usize, - #[cfg(feature = "Win32_Foundation")] - pub OrderContainersRestore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, numberofcontainers: u32, containerpaths: *const super::super::Foundation::BSTR, readplanentries: *mut u32, readplan: *mut *mut DEDUP_CONTAINER_EXTENT) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OrderContainersRestore: usize, - #[cfg(feature = "Win32_Foundation")] - pub PreviewContainerRead: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filefullpath: ::core::mem::ManuallyDrop, numberofreads: u32, readoffsets: *const DDP_FILE_EXTENT) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PreviewContainerRead: usize, + pub ReadBackupFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filefullpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fileoffset: i64, sizetoread: u32, filebuffer: *mut u8, returnedsize: *mut u32, flags: u32) -> ::windows::core::HRESULT, + pub OrderContainersRestore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, numberofcontainers: u32, containerpaths: *const ::core::mem::ManuallyDrop<::windows::core::BSTR>, readplanentries: *mut u32, readplan: *mut *mut DEDUP_CONTAINER_EXTENT) -> ::windows::core::HRESULT, + pub PreviewContainerRead: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filefullpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, numberofreads: u32, readoffsets: *const DDP_FILE_EXTENT) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Storage_DataDeduplication\"`*"] pub const DEDUP_CHUNKLIB_MAX_CHUNKS_ENUM: u32 = 1024u32; @@ -904,39 +847,32 @@ impl ::core::default::Default for DedupHash { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_Storage_DataDeduplication\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_Storage_DataDeduplication\"`*"] pub struct DedupStream { - pub Path: super::super::Foundation::BSTR, + pub Path: ::windows::core::BSTR, pub Offset: u64, pub Length: u64, pub ChunkCount: u32, } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for DedupStream { fn clone(&self) -> Self { Self { Path: self.Path.clone(), Offset: self.Offset, Length: self.Length, ChunkCount: self.ChunkCount } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for DedupStream { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("DedupStream").field("Path", &self.Path).field("Offset", &self.Offset).field("Length", &self.Length).field("ChunkCount", &self.ChunkCount).finish() } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for DedupStream { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for DedupStream { fn eq(&self, other: &Self) -> bool { self.Path == other.Path && self.Offset == other.Offset && self.Length == other.Length && self.ChunkCount == other.ChunkCount } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for DedupStream {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for DedupStream { fn default() -> Self { unsafe { ::core::mem::zeroed() } diff --git a/crates/libs/windows/src/Windows/Win32/Storage/FileHistory/impl.rs b/crates/libs/windows/src/Windows/Win32/Storage/FileHistory/impl.rs index 271d24fa8c..5b107313de 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/FileHistory/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/FileHistory/impl.rs @@ -3,17 +3,17 @@ pub trait IFhConfigMgr_Impl: Sized { fn LoadConfiguration(&self) -> ::windows::core::Result<()>; fn CreateDefaultConfiguration(&self, overwriteifexists: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn SaveConfiguration(&self) -> ::windows::core::Result<()>; - fn AddRemoveExcludeRule(&self, add: super::super::Foundation::BOOL, category: FH_PROTECTED_ITEM_CATEGORY, item: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn AddRemoveExcludeRule(&self, add: super::super::Foundation::BOOL, category: FH_PROTECTED_ITEM_CATEGORY, item: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetIncludeExcludeRules(&self, include: super::super::Foundation::BOOL, category: FH_PROTECTED_ITEM_CATEGORY) -> ::windows::core::Result; fn GetLocalPolicy(&self, localpolicytype: FH_LOCAL_POLICY_TYPE) -> ::windows::core::Result; fn SetLocalPolicy(&self, localpolicytype: FH_LOCAL_POLICY_TYPE, policyvalue: u64) -> ::windows::core::Result<()>; fn GetBackupStatus(&self) -> ::windows::core::Result; fn SetBackupStatus(&self, backupstatus: FH_BACKUP_STATUS) -> ::windows::core::Result<()>; fn GetDefaultTarget(&self) -> ::windows::core::Result; - fn ValidateTarget(&self, targeturl: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn ProvisionAndSetNewTarget(&self, targeturl: &super::super::Foundation::BSTR, targetname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ValidateTarget(&self, targeturl: &::windows::core::BSTR) -> ::windows::core::Result; + fn ProvisionAndSetNewTarget(&self, targeturl: &::windows::core::BSTR, targetname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn ChangeDefaultTargetRecommendation(&self, recommend: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; - fn QueryProtectionStatus(&self, protectionstate: *mut u32, protecteduntiltime: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn QueryProtectionStatus(&self, protectionstate: *mut u32, protecteduntiltime: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IFhConfigMgr {} @@ -35,7 +35,7 @@ impl IFhConfigMgr_Vtbl { let this = (*this).get_impl(); this.SaveConfiguration().into() } - unsafe extern "system" fn AddRemoveExcludeRule, Impl: IFhConfigMgr_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, add: super::super::Foundation::BOOL, category: FH_PROTECTED_ITEM_CATEGORY, item: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddRemoveExcludeRule, Impl: IFhConfigMgr_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, add: super::super::Foundation::BOOL, category: FH_PROTECTED_ITEM_CATEGORY, item: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddRemoveExcludeRule(::core::mem::transmute_copy(&add), ::core::mem::transmute_copy(&category), ::core::mem::transmute(&item)).into() @@ -94,7 +94,7 @@ impl IFhConfigMgr_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ValidateTarget, Impl: IFhConfigMgr_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targeturl: ::core::mem::ManuallyDrop, validationresult: *mut FH_DEVICE_VALIDATION_RESULT) -> ::windows::core::HRESULT { + unsafe extern "system" fn ValidateTarget, Impl: IFhConfigMgr_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targeturl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, validationresult: *mut FH_DEVICE_VALIDATION_RESULT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ValidateTarget(::core::mem::transmute(&targeturl)) { @@ -105,7 +105,7 @@ impl IFhConfigMgr_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ProvisionAndSetNewTarget, Impl: IFhConfigMgr_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targeturl: ::core::mem::ManuallyDrop, targetname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ProvisionAndSetNewTarget, Impl: IFhConfigMgr_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targeturl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, targetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ProvisionAndSetNewTarget(::core::mem::transmute(&targeturl), ::core::mem::transmute(&targetname)).into() @@ -115,7 +115,7 @@ impl IFhConfigMgr_Vtbl { let this = (*this).get_impl(); this.ChangeDefaultTargetRecommendation(::core::mem::transmute_copy(&recommend)).into() } - unsafe extern "system" fn QueryProtectionStatus, Impl: IFhConfigMgr_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, protectionstate: *mut u32, protecteduntiltime: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn QueryProtectionStatus, Impl: IFhConfigMgr_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, protectionstate: *mut u32, protecteduntiltime: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.QueryProtectionStatus(::core::mem::transmute_copy(&protectionstate), ::core::mem::transmute_copy(&protecteduntiltime)).into() @@ -144,9 +144,9 @@ impl IFhConfigMgr_Vtbl { } #[cfg(feature = "Win32_Foundation")] pub trait IFhReassociation_Impl: Sized { - fn ValidateTarget(&self, targeturl: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn ScanTargetForConfigurations(&self, targeturl: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetConfigurationDetails(&self, index: u32, username: *mut super::super::Foundation::BSTR, pcname: *mut super::super::Foundation::BSTR, backuptime: *mut super::super::Foundation::FILETIME) -> ::windows::core::Result<()>; + fn ValidateTarget(&self, targeturl: &::windows::core::BSTR) -> ::windows::core::Result; + fn ScanTargetForConfigurations(&self, targeturl: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetConfigurationDetails(&self, index: u32, username: *mut ::windows::core::BSTR, pcname: *mut ::windows::core::BSTR, backuptime: *mut super::super::Foundation::FILETIME) -> ::windows::core::Result<()>; fn SelectConfiguration(&self, index: u32) -> ::windows::core::Result<()>; fn PerformReassociation(&self, overwriteifexists: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; } @@ -155,7 +155,7 @@ impl ::windows::core::RuntimeName for IFhReassociation {} #[cfg(feature = "Win32_Foundation")] impl IFhReassociation_Vtbl { pub const fn new, Impl: IFhReassociation_Impl, const OFFSET: isize>() -> IFhReassociation_Vtbl { - unsafe extern "system" fn ValidateTarget, Impl: IFhReassociation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targeturl: ::core::mem::ManuallyDrop, validationresult: *mut FH_DEVICE_VALIDATION_RESULT) -> ::windows::core::HRESULT { + unsafe extern "system" fn ValidateTarget, Impl: IFhReassociation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targeturl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, validationresult: *mut FH_DEVICE_VALIDATION_RESULT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ValidateTarget(::core::mem::transmute(&targeturl)) { @@ -166,12 +166,12 @@ impl IFhReassociation_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ScanTargetForConfigurations, Impl: IFhReassociation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targeturl: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ScanTargetForConfigurations, Impl: IFhReassociation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targeturl: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ScanTargetForConfigurations(::core::mem::transmute(&targeturl)).into() } - unsafe extern "system" fn GetConfigurationDetails, Impl: IFhReassociation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: u32, username: *mut super::super::Foundation::BSTR, pcname: *mut super::super::Foundation::BSTR, backuptime: *mut super::super::Foundation::FILETIME) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetConfigurationDetails, Impl: IFhReassociation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: u32, username: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, backuptime: *mut super::super::Foundation::FILETIME) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetConfigurationDetails(::core::mem::transmute_copy(&index), ::core::mem::transmute_copy(&username), ::core::mem::transmute_copy(&pcname), ::core::mem::transmute_copy(&backuptime)).into() @@ -199,14 +199,11 @@ impl IFhReassociation_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IFhScopeIterator_Impl: Sized { fn MoveToNextItem(&self) -> ::windows::core::Result<()>; - fn GetItem(&self) -> ::windows::core::Result; + fn GetItem(&self) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IFhScopeIterator {} -#[cfg(feature = "Win32_Foundation")] impl IFhScopeIterator_Vtbl { pub const fn new, Impl: IFhScopeIterator_Impl, const OFFSET: isize>() -> IFhScopeIterator_Vtbl { unsafe extern "system" fn MoveToNextItem, Impl: IFhScopeIterator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -214,7 +211,7 @@ impl IFhScopeIterator_Vtbl { let this = (*this).get_impl(); this.MoveToNextItem().into() } - unsafe extern "system" fn GetItem, Impl: IFhScopeIterator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, item: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetItem, Impl: IFhScopeIterator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, item: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetItem() { @@ -235,17 +232,14 @@ impl IFhScopeIterator_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IFhTarget_Impl: Sized { - fn GetStringProperty(&self, propertytype: FH_TARGET_PROPERTY_TYPE) -> ::windows::core::Result; + fn GetStringProperty(&self, propertytype: FH_TARGET_PROPERTY_TYPE) -> ::windows::core::Result<::windows::core::BSTR>; fn GetNumericalProperty(&self, propertytype: FH_TARGET_PROPERTY_TYPE) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IFhTarget {} -#[cfg(feature = "Win32_Foundation")] impl IFhTarget_Vtbl { pub const fn new, Impl: IFhTarget_Impl, const OFFSET: isize>() -> IFhTarget_Vtbl { - unsafe extern "system" fn GetStringProperty, Impl: IFhTarget_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertytype: FH_TARGET_PROPERTY_TYPE, propertyvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetStringProperty, Impl: IFhTarget_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertytype: FH_TARGET_PROPERTY_TYPE, propertyvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetStringProperty(::core::mem::transmute_copy(&propertytype)) { diff --git a/crates/libs/windows/src/Windows/Win32/Storage/FileHistory/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/FileHistory/mod.rs index 1ccff0ca3f..713ea6ec04 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/FileHistory/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/FileHistory/mod.rs @@ -112,12 +112,11 @@ impl IFhConfigMgr { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddRemoveExcludeRule<'a, P0, P1>(&self, add: P0, category: FH_PROTECTED_ITEM_CATEGORY, item: P1) -> ::windows::core::Result<()> + pub unsafe fn AddRemoveExcludeRule<'a, P0>(&self, add: P0, category: FH_PROTECTED_ITEM_CATEGORY, item: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).AddRemoveExcludeRule)(::windows::core::Interface::as_raw(self), add.into(), category, item.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddRemoveExcludeRule)(::windows::core::Interface::as_raw(self), add.into(), category, ::core::mem::transmute_copy(item)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -146,23 +145,12 @@ impl IFhConfigMgr { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetDefaultTarget)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ValidateTarget<'a, P0>(&self, targeturl: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn ValidateTarget(&self, targeturl: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ValidateTarget)(::windows::core::Interface::as_raw(self), targeturl.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ValidateTarget)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(targeturl), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ProvisionAndSetNewTarget<'a, P0, P1>(&self, targeturl: P0, targetname: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ProvisionAndSetNewTarget)(::windows::core::Interface::as_raw(self), targeturl.into().abi(), targetname.into().abi()).ok() + pub unsafe fn ProvisionAndSetNewTarget(&self, targeturl: &::windows::core::BSTR, targetname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ProvisionAndSetNewTarget)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(targeturl), ::core::mem::transmute_copy(targetname)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -172,9 +160,7 @@ impl IFhConfigMgr { { (::windows::core::Interface::vtable(self).ChangeDefaultTargetRecommendation)(::windows::core::Interface::as_raw(self), recommend.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn QueryProtectionStatus(&self, protectionstate: &mut u32, protecteduntiltime: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn QueryProtectionStatus(&self, protectionstate: &mut u32, protecteduntiltime: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).QueryProtectionStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(protectionstate), ::core::mem::transmute(protecteduntiltime)).ok() } } @@ -224,7 +210,7 @@ pub struct IFhConfigMgr_Vtbl { CreateDefaultConfiguration: usize, pub SaveConfiguration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub AddRemoveExcludeRule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, add: super::super::Foundation::BOOL, category: FH_PROTECTED_ITEM_CATEGORY, item: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub AddRemoveExcludeRule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, add: super::super::Foundation::BOOL, category: FH_PROTECTED_ITEM_CATEGORY, item: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] AddRemoveExcludeRule: usize, #[cfg(feature = "Win32_Foundation")] @@ -236,47 +222,28 @@ pub struct IFhConfigMgr_Vtbl { pub GetBackupStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, backupstatus: *mut FH_BACKUP_STATUS) -> ::windows::core::HRESULT, pub SetBackupStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, backupstatus: FH_BACKUP_STATUS) -> ::windows::core::HRESULT, pub GetDefaultTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, defaulttarget: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ValidateTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targeturl: ::core::mem::ManuallyDrop, validationresult: *mut FH_DEVICE_VALIDATION_RESULT) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ValidateTarget: usize, - #[cfg(feature = "Win32_Foundation")] - pub ProvisionAndSetNewTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targeturl: ::core::mem::ManuallyDrop, targetname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ProvisionAndSetNewTarget: usize, + pub ValidateTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targeturl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, validationresult: *mut FH_DEVICE_VALIDATION_RESULT) -> ::windows::core::HRESULT, + pub ProvisionAndSetNewTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targeturl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, targetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub ChangeDefaultTargetRecommendation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, recommend: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] ChangeDefaultTargetRecommendation: usize, - #[cfg(feature = "Win32_Foundation")] - pub QueryProtectionStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, protectionstate: *mut u32, protecteduntiltime: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - QueryProtectionStatus: usize, + pub QueryProtectionStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, protectionstate: *mut u32, protecteduntiltime: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Storage_FileHistory\"`*"] #[repr(transparent)] pub struct IFhReassociation(::windows::core::IUnknown); impl IFhReassociation { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ValidateTarget<'a, P0>(&self, targeturl: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn ValidateTarget(&self, targeturl: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ValidateTarget)(::windows::core::Interface::as_raw(self), targeturl.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ValidateTarget)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(targeturl), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ScanTargetForConfigurations<'a, P0>(&self, targeturl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ScanTargetForConfigurations)(::windows::core::Interface::as_raw(self), targeturl.into().abi()).ok() + pub unsafe fn ScanTargetForConfigurations(&self, targeturl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ScanTargetForConfigurations)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(targeturl)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetConfigurationDetails(&self, index: u32, username: &mut super::super::Foundation::BSTR, pcname: &mut super::super::Foundation::BSTR, backuptime: &mut super::super::Foundation::FILETIME) -> ::windows::core::Result<()> { + pub unsafe fn GetConfigurationDetails(&self, index: u32, username: &mut ::windows::core::BSTR, pcname: &mut ::windows::core::BSTR, backuptime: &mut super::super::Foundation::FILETIME) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetConfigurationDetails)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(username), ::core::mem::transmute(pcname), ::core::mem::transmute(backuptime)).ok() } pub unsafe fn SelectConfiguration(&self, index: u32) -> ::windows::core::Result<()> { @@ -330,16 +297,10 @@ unsafe impl ::windows::core::Interface for IFhReassociation { #[doc(hidden)] pub struct IFhReassociation_Vtbl { pub base__: ::windows::core::IUnknownVtbl, + pub ValidateTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targeturl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, validationresult: *mut FH_DEVICE_VALIDATION_RESULT) -> ::windows::core::HRESULT, + pub ScanTargetForConfigurations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targeturl: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub ValidateTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targeturl: ::core::mem::ManuallyDrop, validationresult: *mut FH_DEVICE_VALIDATION_RESULT) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ValidateTarget: usize, - #[cfg(feature = "Win32_Foundation")] - pub ScanTargetForConfigurations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targeturl: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ScanTargetForConfigurations: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetConfigurationDetails: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, username: *mut super::super::Foundation::BSTR, pcname: *mut super::super::Foundation::BSTR, backuptime: *mut super::super::Foundation::FILETIME) -> ::windows::core::HRESULT, + pub GetConfigurationDetails: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, username: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, backuptime: *mut super::super::Foundation::FILETIME) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] GetConfigurationDetails: usize, pub SelectConfiguration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32) -> ::windows::core::HRESULT, @@ -355,11 +316,9 @@ impl IFhScopeIterator { pub unsafe fn MoveToNextItem(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).MoveToNextItem)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetItem(&self) -> ::windows::core::Result { + pub unsafe fn GetItem(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -402,20 +361,15 @@ unsafe impl ::windows::core::Interface for IFhScopeIterator { pub struct IFhScopeIterator_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub MoveToNextItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, item: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetItem: usize, + pub GetItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, item: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Storage_FileHistory\"`*"] #[repr(transparent)] pub struct IFhTarget(::windows::core::IUnknown); impl IFhTarget { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetStringProperty(&self, propertytype: FH_TARGET_PROPERTY_TYPE) -> ::windows::core::Result { + pub unsafe fn GetStringProperty(&self, propertytype: FH_TARGET_PROPERTY_TYPE) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetStringProperty)(::windows::core::Interface::as_raw(self), propertytype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetStringProperty)(::windows::core::Interface::as_raw(self), propertytype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetNumericalProperty(&self, propertytype: FH_TARGET_PROPERTY_TYPE) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -461,10 +415,7 @@ unsafe impl ::windows::core::Interface for IFhTarget { #[doc(hidden)] pub struct IFhTarget_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetStringProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertytype: FH_TARGET_PROPERTY_TYPE, propertyvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetStringProperty: usize, + pub GetStringProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertytype: FH_TARGET_PROPERTY_TYPE, propertyvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetNumericalProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertytype: FH_TARGET_PROPERTY_TYPE, propertyvalue: *mut u64) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Storage_FileHistory\"`*"] diff --git a/crates/libs/windows/src/Windows/Win32/Storage/FileServerResourceManager/impl.rs b/crates/libs/windows/src/Windows/Win32/Storage/FileServerResourceManager/impl.rs index 155ffb48e1..6103288866 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/FileServerResourceManager/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/FileServerResourceManager/impl.rs @@ -13,14 +13,14 @@ impl DIFsrmClassificationEvents_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFsrmAccessDeniedRemediationClient_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Show(&self, parentwnd: usize, accesspath: &super::super::Foundation::BSTR, errortype: AdrClientErrorType, flags: i32, windowtitle: &super::super::Foundation::BSTR, windowmessage: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn Show(&self, parentwnd: usize, accesspath: &::windows::core::BSTR, errortype: AdrClientErrorType, flags: i32, windowtitle: &::windows::core::BSTR, windowmessage: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFsrmAccessDeniedRemediationClient {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFsrmAccessDeniedRemediationClient_Vtbl { pub const fn new, Impl: IFsrmAccessDeniedRemediationClient_Impl, const OFFSET: isize>() -> IFsrmAccessDeniedRemediationClient_Vtbl { - unsafe extern "system" fn Show, Impl: IFsrmAccessDeniedRemediationClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, parentwnd: usize, accesspath: ::core::mem::ManuallyDrop, errortype: AdrClientErrorType, flags: i32, windowtitle: ::core::mem::ManuallyDrop, windowmessage: ::core::mem::ManuallyDrop, result: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn Show, Impl: IFsrmAccessDeniedRemediationClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, parentwnd: usize, accesspath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, errortype: AdrClientErrorType, flags: i32, windowtitle: ::core::mem::ManuallyDrop<::windows::core::BSTR>, windowmessage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, result: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Show(::core::mem::transmute_copy(&parentwnd), ::core::mem::transmute(&accesspath), ::core::mem::transmute_copy(&errortype), ::core::mem::transmute_copy(&flags), ::core::mem::transmute(&windowtitle), ::core::mem::transmute(&windowmessage)) { @@ -108,14 +108,14 @@ impl IFsrmAction_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFsrmActionCommand_Impl: Sized + super::super::System::Com::IDispatch_Impl + IFsrmAction_Impl { - fn ExecutablePath(&self) -> ::windows::core::Result; - fn SetExecutablePath(&self, executablepath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Arguments(&self) -> ::windows::core::Result; - fn SetArguments(&self, arguments: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ExecutablePath(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetExecutablePath(&self, executablepath: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Arguments(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetArguments(&self, arguments: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Account(&self) -> ::windows::core::Result; fn SetAccount(&self, account: FsrmAccountType) -> ::windows::core::Result<()>; - fn WorkingDirectory(&self) -> ::windows::core::Result; - fn SetWorkingDirectory(&self, workingdirectory: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn WorkingDirectory(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetWorkingDirectory(&self, workingdirectory: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn MonitorCommand(&self) -> ::windows::core::Result; fn SetMonitorCommand(&self, monitorcommand: i16) -> ::windows::core::Result<()>; fn KillTimeOut(&self) -> ::windows::core::Result; @@ -128,7 +128,7 @@ impl ::windows::core::RuntimeName for IFsrmActionCommand {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFsrmActionCommand_Vtbl { pub const fn new, Impl: IFsrmActionCommand_Impl, const OFFSET: isize>() -> IFsrmActionCommand_Vtbl { - unsafe extern "system" fn ExecutablePath, Impl: IFsrmActionCommand_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, executablepath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExecutablePath, Impl: IFsrmActionCommand_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, executablepath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ExecutablePath() { @@ -139,12 +139,12 @@ impl IFsrmActionCommand_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetExecutablePath, Impl: IFsrmActionCommand_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, executablepath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetExecutablePath, Impl: IFsrmActionCommand_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, executablepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetExecutablePath(::core::mem::transmute(&executablepath)).into() } - unsafe extern "system" fn Arguments, Impl: IFsrmActionCommand_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, arguments: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Arguments, Impl: IFsrmActionCommand_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, arguments: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Arguments() { @@ -155,7 +155,7 @@ impl IFsrmActionCommand_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetArguments, Impl: IFsrmActionCommand_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, arguments: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetArguments, Impl: IFsrmActionCommand_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, arguments: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetArguments(::core::mem::transmute(&arguments)).into() @@ -176,7 +176,7 @@ impl IFsrmActionCommand_Vtbl { let this = (*this).get_impl(); this.SetAccount(::core::mem::transmute_copy(&account)).into() } - unsafe extern "system" fn WorkingDirectory, Impl: IFsrmActionCommand_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, workingdirectory: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn WorkingDirectory, Impl: IFsrmActionCommand_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, workingdirectory: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.WorkingDirectory() { @@ -187,7 +187,7 @@ impl IFsrmActionCommand_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetWorkingDirectory, Impl: IFsrmActionCommand_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, workingdirectory: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetWorkingDirectory, Impl: IFsrmActionCommand_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, workingdirectory: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetWorkingDirectory(::core::mem::transmute(&workingdirectory)).into() @@ -264,27 +264,27 @@ impl IFsrmActionCommand_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFsrmActionEmail_Impl: Sized + super::super::System::Com::IDispatch_Impl + IFsrmAction_Impl { - fn MailFrom(&self) -> ::windows::core::Result; - fn SetMailFrom(&self, mailfrom: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn MailReplyTo(&self) -> ::windows::core::Result; - fn SetMailReplyTo(&self, mailreplyto: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn MailTo(&self) -> ::windows::core::Result; - fn SetMailTo(&self, mailto: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn MailCc(&self) -> ::windows::core::Result; - fn SetMailCc(&self, mailcc: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn MailBcc(&self) -> ::windows::core::Result; - fn SetMailBcc(&self, mailbcc: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn MailSubject(&self) -> ::windows::core::Result; - fn SetMailSubject(&self, mailsubject: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn MessageText(&self) -> ::windows::core::Result; - fn SetMessageText(&self, messagetext: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn MailFrom(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetMailFrom(&self, mailfrom: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn MailReplyTo(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetMailReplyTo(&self, mailreplyto: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn MailTo(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetMailTo(&self, mailto: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn MailCc(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetMailCc(&self, mailcc: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn MailBcc(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetMailBcc(&self, mailbcc: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn MailSubject(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetMailSubject(&self, mailsubject: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn MessageText(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetMessageText(&self, messagetext: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFsrmActionEmail {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFsrmActionEmail_Vtbl { pub const fn new, Impl: IFsrmActionEmail_Impl, const OFFSET: isize>() -> IFsrmActionEmail_Vtbl { - unsafe extern "system" fn MailFrom, Impl: IFsrmActionEmail_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailfrom: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn MailFrom, Impl: IFsrmActionEmail_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailfrom: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.MailFrom() { @@ -295,12 +295,12 @@ impl IFsrmActionEmail_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetMailFrom, Impl: IFsrmActionEmail_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailfrom: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetMailFrom, Impl: IFsrmActionEmail_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailfrom: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetMailFrom(::core::mem::transmute(&mailfrom)).into() } - unsafe extern "system" fn MailReplyTo, Impl: IFsrmActionEmail_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailreplyto: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn MailReplyTo, Impl: IFsrmActionEmail_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailreplyto: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.MailReplyTo() { @@ -311,12 +311,12 @@ impl IFsrmActionEmail_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetMailReplyTo, Impl: IFsrmActionEmail_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailreplyto: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetMailReplyTo, Impl: IFsrmActionEmail_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailreplyto: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetMailReplyTo(::core::mem::transmute(&mailreplyto)).into() } - unsafe extern "system" fn MailTo, Impl: IFsrmActionEmail_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailto: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn MailTo, Impl: IFsrmActionEmail_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailto: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.MailTo() { @@ -327,12 +327,12 @@ impl IFsrmActionEmail_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetMailTo, Impl: IFsrmActionEmail_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailto: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetMailTo, Impl: IFsrmActionEmail_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailto: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetMailTo(::core::mem::transmute(&mailto)).into() } - unsafe extern "system" fn MailCc, Impl: IFsrmActionEmail_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailcc: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn MailCc, Impl: IFsrmActionEmail_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailcc: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.MailCc() { @@ -343,12 +343,12 @@ impl IFsrmActionEmail_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetMailCc, Impl: IFsrmActionEmail_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailcc: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetMailCc, Impl: IFsrmActionEmail_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailcc: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetMailCc(::core::mem::transmute(&mailcc)).into() } - unsafe extern "system" fn MailBcc, Impl: IFsrmActionEmail_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailbcc: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn MailBcc, Impl: IFsrmActionEmail_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailbcc: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.MailBcc() { @@ -359,12 +359,12 @@ impl IFsrmActionEmail_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetMailBcc, Impl: IFsrmActionEmail_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailbcc: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetMailBcc, Impl: IFsrmActionEmail_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailbcc: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetMailBcc(::core::mem::transmute(&mailbcc)).into() } - unsafe extern "system" fn MailSubject, Impl: IFsrmActionEmail_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailsubject: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn MailSubject, Impl: IFsrmActionEmail_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailsubject: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.MailSubject() { @@ -375,12 +375,12 @@ impl IFsrmActionEmail_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetMailSubject, Impl: IFsrmActionEmail_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailsubject: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetMailSubject, Impl: IFsrmActionEmail_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailsubject: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetMailSubject(::core::mem::transmute(&mailsubject)).into() } - unsafe extern "system" fn MessageText, Impl: IFsrmActionEmail_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, messagetext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn MessageText, Impl: IFsrmActionEmail_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, messagetext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.MessageText() { @@ -391,7 +391,7 @@ impl IFsrmActionEmail_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetMessageText, Impl: IFsrmActionEmail_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, messagetext: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetMessageText, Impl: IFsrmActionEmail_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, messagetext: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetMessageText(::core::mem::transmute(&messagetext)).into() @@ -458,8 +458,8 @@ impl IFsrmActionEmail2_Vtbl { pub trait IFsrmActionEventLog_Impl: Sized + super::super::System::Com::IDispatch_Impl + IFsrmAction_Impl { fn EventType(&self) -> ::windows::core::Result; fn SetEventType(&self, eventtype: FsrmEventType) -> ::windows::core::Result<()>; - fn MessageText(&self) -> ::windows::core::Result; - fn SetMessageText(&self, messagetext: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn MessageText(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetMessageText(&self, messagetext: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFsrmActionEventLog {} @@ -482,7 +482,7 @@ impl IFsrmActionEventLog_Vtbl { let this = (*this).get_impl(); this.SetEventType(::core::mem::transmute_copy(&eventtype)).into() } - unsafe extern "system" fn MessageText, Impl: IFsrmActionEventLog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, messagetext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn MessageText, Impl: IFsrmActionEventLog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, messagetext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.MessageText() { @@ -493,7 +493,7 @@ impl IFsrmActionEventLog_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetMessageText, Impl: IFsrmActionEventLog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, messagetext: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetMessageText, Impl: IFsrmActionEventLog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, messagetext: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetMessageText(::core::mem::transmute(&messagetext)).into() @@ -514,8 +514,8 @@ impl IFsrmActionEventLog_Vtbl { pub trait IFsrmActionReport_Impl: Sized + super::super::System::Com::IDispatch_Impl + IFsrmAction_Impl { fn ReportTypes(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; fn SetReportTypes(&self, reporttypes: *const super::super::System::Com::SAFEARRAY) -> ::windows::core::Result<()>; - fn MailTo(&self) -> ::windows::core::Result; - fn SetMailTo(&self, mailto: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn MailTo(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetMailTo(&self, mailto: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFsrmActionReport {} @@ -538,7 +538,7 @@ impl IFsrmActionReport_Vtbl { let this = (*this).get_impl(); this.SetReportTypes(::core::mem::transmute_copy(&reporttypes)).into() } - unsafe extern "system" fn MailTo, Impl: IFsrmActionReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailto: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn MailTo, Impl: IFsrmActionReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailto: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.MailTo() { @@ -549,7 +549,7 @@ impl IFsrmActionReport_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetMailTo, Impl: IFsrmActionReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailto: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetMailTo, Impl: IFsrmActionReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailto: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetMailTo(::core::mem::transmute(&mailto)).into() @@ -621,29 +621,29 @@ pub trait IFsrmClassificationManager_Impl: Sized + super::super::System::Com::ID fn SetClassificationReportFormats(&self, formats: *const super::super::System::Com::SAFEARRAY) -> ::windows::core::Result<()>; fn Logging(&self) -> ::windows::core::Result; fn SetLogging(&self, logging: i32) -> ::windows::core::Result<()>; - fn ClassificationReportMailTo(&self) -> ::windows::core::Result; - fn SetClassificationReportMailTo(&self, mailto: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ClassificationReportMailTo(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetClassificationReportMailTo(&self, mailto: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn ClassificationReportEnabled(&self) -> ::windows::core::Result; fn SetClassificationReportEnabled(&self, reportenabled: i16) -> ::windows::core::Result<()>; - fn ClassificationLastReportPathWithoutExtension(&self) -> ::windows::core::Result; - fn ClassificationLastError(&self) -> ::windows::core::Result; + fn ClassificationLastReportPathWithoutExtension(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ClassificationLastError(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn ClassificationRunningStatus(&self) -> ::windows::core::Result; fn EnumPropertyDefinitions(&self, options: FsrmEnumOptions) -> ::windows::core::Result; fn CreatePropertyDefinition(&self) -> ::windows::core::Result; - fn GetPropertyDefinition(&self, propertyname: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetPropertyDefinition(&self, propertyname: &::windows::core::BSTR) -> ::windows::core::Result; fn EnumRules(&self, ruletype: FsrmRuleType, options: FsrmEnumOptions) -> ::windows::core::Result; fn CreateRule(&self, ruletype: FsrmRuleType) -> ::windows::core::Result; - fn GetRule(&self, rulename: &super::super::Foundation::BSTR, ruletype: FsrmRuleType) -> ::windows::core::Result; + fn GetRule(&self, rulename: &::windows::core::BSTR, ruletype: FsrmRuleType) -> ::windows::core::Result; fn EnumModuleDefinitions(&self, moduletype: FsrmPipelineModuleType, options: FsrmEnumOptions) -> ::windows::core::Result; fn CreateModuleDefinition(&self, moduletype: FsrmPipelineModuleType) -> ::windows::core::Result; - fn GetModuleDefinition(&self, modulename: &super::super::Foundation::BSTR, moduletype: FsrmPipelineModuleType) -> ::windows::core::Result; - fn RunClassification(&self, context: FsrmReportGenerationContext, reserved: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetModuleDefinition(&self, modulename: &::windows::core::BSTR, moduletype: FsrmPipelineModuleType) -> ::windows::core::Result; + fn RunClassification(&self, context: FsrmReportGenerationContext, reserved: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn WaitForClassificationCompletion(&self, waitseconds: i32) -> ::windows::core::Result; fn CancelClassification(&self) -> ::windows::core::Result<()>; - fn EnumFileProperties(&self, filepath: &super::super::Foundation::BSTR, options: FsrmGetFilePropertyOptions) -> ::windows::core::Result; - fn GetFileProperty(&self, filepath: &super::super::Foundation::BSTR, propertyname: &super::super::Foundation::BSTR, options: FsrmGetFilePropertyOptions) -> ::windows::core::Result; - fn SetFileProperty(&self, filepath: &super::super::Foundation::BSTR, propertyname: &super::super::Foundation::BSTR, propertyvalue: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ClearFileProperty(&self, filepath: &super::super::Foundation::BSTR, property: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn EnumFileProperties(&self, filepath: &::windows::core::BSTR, options: FsrmGetFilePropertyOptions) -> ::windows::core::Result; + fn GetFileProperty(&self, filepath: &::windows::core::BSTR, propertyname: &::windows::core::BSTR, options: FsrmGetFilePropertyOptions) -> ::windows::core::Result; + fn SetFileProperty(&self, filepath: &::windows::core::BSTR, propertyname: &::windows::core::BSTR, propertyvalue: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ClearFileProperty(&self, filepath: &::windows::core::BSTR, property: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFsrmClassificationManager {} @@ -682,7 +682,7 @@ impl IFsrmClassificationManager_Vtbl { let this = (*this).get_impl(); this.SetLogging(::core::mem::transmute_copy(&logging)).into() } - unsafe extern "system" fn ClassificationReportMailTo, Impl: IFsrmClassificationManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailto: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ClassificationReportMailTo, Impl: IFsrmClassificationManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailto: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ClassificationReportMailTo() { @@ -693,7 +693,7 @@ impl IFsrmClassificationManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetClassificationReportMailTo, Impl: IFsrmClassificationManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailto: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetClassificationReportMailTo, Impl: IFsrmClassificationManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailto: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetClassificationReportMailTo(::core::mem::transmute(&mailto)).into() @@ -714,7 +714,7 @@ impl IFsrmClassificationManager_Vtbl { let this = (*this).get_impl(); this.SetClassificationReportEnabled(::core::mem::transmute_copy(&reportenabled)).into() } - unsafe extern "system" fn ClassificationLastReportPathWithoutExtension, Impl: IFsrmClassificationManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lastreportpath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ClassificationLastReportPathWithoutExtension, Impl: IFsrmClassificationManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lastreportpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ClassificationLastReportPathWithoutExtension() { @@ -725,7 +725,7 @@ impl IFsrmClassificationManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ClassificationLastError, Impl: IFsrmClassificationManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lasterror: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ClassificationLastError, Impl: IFsrmClassificationManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lasterror: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ClassificationLastError() { @@ -769,7 +769,7 @@ impl IFsrmClassificationManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetPropertyDefinition, Impl: IFsrmClassificationManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop, propertydefinition: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPropertyDefinition, Impl: IFsrmClassificationManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertydefinition: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetPropertyDefinition(::core::mem::transmute(&propertyname)) { @@ -802,7 +802,7 @@ impl IFsrmClassificationManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetRule, Impl: IFsrmClassificationManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, rulename: ::core::mem::ManuallyDrop, ruletype: FsrmRuleType, rule: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetRule, Impl: IFsrmClassificationManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, rulename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ruletype: FsrmRuleType, rule: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetRule(::core::mem::transmute(&rulename), ::core::mem::transmute_copy(&ruletype)) { @@ -835,7 +835,7 @@ impl IFsrmClassificationManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetModuleDefinition, Impl: IFsrmClassificationManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, modulename: ::core::mem::ManuallyDrop, moduletype: FsrmPipelineModuleType, moduledefinition: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetModuleDefinition, Impl: IFsrmClassificationManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, modulename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, moduletype: FsrmPipelineModuleType, moduledefinition: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetModuleDefinition(::core::mem::transmute(&modulename), ::core::mem::transmute_copy(&moduletype)) { @@ -846,7 +846,7 @@ impl IFsrmClassificationManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RunClassification, Impl: IFsrmClassificationManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, context: FsrmReportGenerationContext, reserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn RunClassification, Impl: IFsrmClassificationManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, context: FsrmReportGenerationContext, reserved: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RunClassification(::core::mem::transmute_copy(&context), ::core::mem::transmute(&reserved)).into() @@ -867,7 +867,7 @@ impl IFsrmClassificationManager_Vtbl { let this = (*this).get_impl(); this.CancelClassification().into() } - unsafe extern "system" fn EnumFileProperties, Impl: IFsrmClassificationManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop, options: FsrmGetFilePropertyOptions, fileproperties: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn EnumFileProperties, Impl: IFsrmClassificationManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, options: FsrmGetFilePropertyOptions, fileproperties: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EnumFileProperties(::core::mem::transmute(&filepath), ::core::mem::transmute_copy(&options)) { @@ -878,7 +878,7 @@ impl IFsrmClassificationManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetFileProperty, Impl: IFsrmClassificationManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop, propertyname: ::core::mem::ManuallyDrop, options: FsrmGetFilePropertyOptions, property: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFileProperty, Impl: IFsrmClassificationManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, options: FsrmGetFilePropertyOptions, property: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetFileProperty(::core::mem::transmute(&filepath), ::core::mem::transmute(&propertyname), ::core::mem::transmute_copy(&options)) { @@ -889,12 +889,12 @@ impl IFsrmClassificationManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetFileProperty, Impl: IFsrmClassificationManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop, propertyname: ::core::mem::ManuallyDrop, propertyvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetFileProperty, Impl: IFsrmClassificationManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetFileProperty(::core::mem::transmute(&filepath), ::core::mem::transmute(&propertyname), ::core::mem::transmute(&propertyvalue)).into() } - unsafe extern "system" fn ClearFileProperty, Impl: IFsrmClassificationManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop, property: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ClearFileProperty, Impl: IFsrmClassificationManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, property: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ClearFileProperty(::core::mem::transmute(&filepath), ::core::mem::transmute(&property)).into() @@ -958,10 +958,10 @@ impl IFsrmClassificationManager2_Vtbl { pub trait IFsrmClassificationRule_Impl: Sized + super::super::System::Com::IDispatch_Impl + IFsrmObject_Impl + IFsrmRule_Impl { fn ExecutionOption(&self) -> ::windows::core::Result; fn SetExecutionOption(&self, executionoption: FsrmExecutionOption) -> ::windows::core::Result<()>; - fn PropertyAffected(&self) -> ::windows::core::Result; - fn SetPropertyAffected(&self, property: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Value(&self) -> ::windows::core::Result; - fn SetValue(&self, value: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn PropertyAffected(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetPropertyAffected(&self, property: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Value(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetValue(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFsrmClassificationRule {} @@ -984,7 +984,7 @@ impl IFsrmClassificationRule_Vtbl { let this = (*this).get_impl(); this.SetExecutionOption(::core::mem::transmute_copy(&executionoption)).into() } - unsafe extern "system" fn PropertyAffected, Impl: IFsrmClassificationRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, property: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PropertyAffected, Impl: IFsrmClassificationRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, property: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PropertyAffected() { @@ -995,12 +995,12 @@ impl IFsrmClassificationRule_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPropertyAffected, Impl: IFsrmClassificationRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, property: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPropertyAffected, Impl: IFsrmClassificationRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, property: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPropertyAffected(::core::mem::transmute(&property)).into() } - unsafe extern "system" fn Value, Impl: IFsrmClassificationRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Value, Impl: IFsrmClassificationRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Value() { @@ -1011,7 +1011,7 @@ impl IFsrmClassificationRule_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetValue, Impl: IFsrmClassificationRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetValue, Impl: IFsrmClassificationRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetValue(::core::mem::transmute(&value)).into() @@ -1111,8 +1111,8 @@ pub trait IFsrmClassifierModuleImplementation_Impl: Sized + super::super::System fn LastModified(&self) -> ::windows::core::Result; fn UseRulesAndDefinitions(&self, rules: &::core::option::Option, propertydefinitions: &::core::option::Option) -> ::windows::core::Result<()>; fn OnBeginFile(&self, propertybag: &::core::option::Option, arrayruleids: *const super::super::System::Com::SAFEARRAY) -> ::windows::core::Result<()>; - fn DoesPropertyValueApply(&self, property: &super::super::Foundation::BSTR, value: &super::super::Foundation::BSTR, applyvalue: *mut i16, idrule: &::windows::core::GUID, idpropdef: &::windows::core::GUID) -> ::windows::core::Result<()>; - fn GetPropertyValueToApply(&self, property: &super::super::Foundation::BSTR, value: *mut super::super::Foundation::BSTR, idrule: &::windows::core::GUID, idpropdef: &::windows::core::GUID) -> ::windows::core::Result<()>; + fn DoesPropertyValueApply(&self, property: &::windows::core::BSTR, value: &::windows::core::BSTR, applyvalue: *mut i16, idrule: &::windows::core::GUID, idpropdef: &::windows::core::GUID) -> ::windows::core::Result<()>; + fn GetPropertyValueToApply(&self, property: &::windows::core::BSTR, value: *mut ::windows::core::BSTR, idrule: &::windows::core::GUID, idpropdef: &::windows::core::GUID) -> ::windows::core::Result<()>; fn OnEndFile(&self) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -1141,12 +1141,12 @@ impl IFsrmClassifierModuleImplementation_Vtbl { let this = (*this).get_impl(); this.OnBeginFile(::core::mem::transmute(&propertybag), ::core::mem::transmute_copy(&arrayruleids)).into() } - unsafe extern "system" fn DoesPropertyValueApply, Impl: IFsrmClassifierModuleImplementation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, property: ::core::mem::ManuallyDrop, value: ::core::mem::ManuallyDrop, applyvalue: *mut i16, idrule: ::windows::core::GUID, idpropdef: ::windows::core::GUID) -> ::windows::core::HRESULT { + unsafe extern "system" fn DoesPropertyValueApply, Impl: IFsrmClassifierModuleImplementation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, property: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>, applyvalue: *mut i16, idrule: ::windows::core::GUID, idpropdef: ::windows::core::GUID) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DoesPropertyValueApply(::core::mem::transmute(&property), ::core::mem::transmute(&value), ::core::mem::transmute_copy(&applyvalue), ::core::mem::transmute(&idrule), ::core::mem::transmute(&idpropdef)).into() } - unsafe extern "system" fn GetPropertyValueToApply, Impl: IFsrmClassifierModuleImplementation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, property: ::core::mem::ManuallyDrop, value: *mut super::super::Foundation::BSTR, idrule: ::windows::core::GUID, idpropdef: ::windows::core::GUID) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPropertyValueToApply, Impl: IFsrmClassifierModuleImplementation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, property: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, idrule: ::windows::core::GUID, idpropdef: ::windows::core::GUID) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetPropertyValueToApply(::core::mem::transmute(&property), ::core::mem::transmute_copy(&value), ::core::mem::transmute(&idrule), ::core::mem::transmute(&idpropdef)).into() @@ -1341,24 +1341,24 @@ impl IFsrmDerivedObjectsResult_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFsrmExportImport_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn ExportFileGroups(&self, filepath: &super::super::Foundation::BSTR, filegroupnamessafearray: *const super::super::System::Com::VARIANT, remotehost: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ImportFileGroups(&self, filepath: &super::super::Foundation::BSTR, filegroupnamessafearray: *const super::super::System::Com::VARIANT, remotehost: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn ExportFileScreenTemplates(&self, filepath: &super::super::Foundation::BSTR, templatenamessafearray: *const super::super::System::Com::VARIANT, remotehost: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ImportFileScreenTemplates(&self, filepath: &super::super::Foundation::BSTR, templatenamessafearray: *const super::super::System::Com::VARIANT, remotehost: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn ExportQuotaTemplates(&self, filepath: &super::super::Foundation::BSTR, templatenamessafearray: *const super::super::System::Com::VARIANT, remotehost: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ImportQuotaTemplates(&self, filepath: &super::super::Foundation::BSTR, templatenamessafearray: *const super::super::System::Com::VARIANT, remotehost: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn ExportFileGroups(&self, filepath: &::windows::core::BSTR, filegroupnamessafearray: *const super::super::System::Com::VARIANT, remotehost: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ImportFileGroups(&self, filepath: &::windows::core::BSTR, filegroupnamessafearray: *const super::super::System::Com::VARIANT, remotehost: &::windows::core::BSTR) -> ::windows::core::Result; + fn ExportFileScreenTemplates(&self, filepath: &::windows::core::BSTR, templatenamessafearray: *const super::super::System::Com::VARIANT, remotehost: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ImportFileScreenTemplates(&self, filepath: &::windows::core::BSTR, templatenamessafearray: *const super::super::System::Com::VARIANT, remotehost: &::windows::core::BSTR) -> ::windows::core::Result; + fn ExportQuotaTemplates(&self, filepath: &::windows::core::BSTR, templatenamessafearray: *const super::super::System::Com::VARIANT, remotehost: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ImportQuotaTemplates(&self, filepath: &::windows::core::BSTR, templatenamessafearray: *const super::super::System::Com::VARIANT, remotehost: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFsrmExportImport {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFsrmExportImport_Vtbl { pub const fn new, Impl: IFsrmExportImport_Impl, const OFFSET: isize>() -> IFsrmExportImport_Vtbl { - unsafe extern "system" fn ExportFileGroups, Impl: IFsrmExportImport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop, filegroupnamessafearray: *const super::super::System::Com::VARIANT, remotehost: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExportFileGroups, Impl: IFsrmExportImport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, filegroupnamessafearray: *const super::super::System::Com::VARIANT, remotehost: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ExportFileGroups(::core::mem::transmute(&filepath), ::core::mem::transmute_copy(&filegroupnamessafearray), ::core::mem::transmute(&remotehost)).into() } - unsafe extern "system" fn ImportFileGroups, Impl: IFsrmExportImport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop, filegroupnamessafearray: *const super::super::System::Com::VARIANT, remotehost: ::core::mem::ManuallyDrop, filegroups: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn ImportFileGroups, Impl: IFsrmExportImport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, filegroupnamessafearray: *const super::super::System::Com::VARIANT, remotehost: ::core::mem::ManuallyDrop<::windows::core::BSTR>, filegroups: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ImportFileGroups(::core::mem::transmute(&filepath), ::core::mem::transmute_copy(&filegroupnamessafearray), ::core::mem::transmute(&remotehost)) { @@ -1369,12 +1369,12 @@ impl IFsrmExportImport_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ExportFileScreenTemplates, Impl: IFsrmExportImport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop, templatenamessafearray: *const super::super::System::Com::VARIANT, remotehost: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExportFileScreenTemplates, Impl: IFsrmExportImport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, templatenamessafearray: *const super::super::System::Com::VARIANT, remotehost: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ExportFileScreenTemplates(::core::mem::transmute(&filepath), ::core::mem::transmute_copy(&templatenamessafearray), ::core::mem::transmute(&remotehost)).into() } - unsafe extern "system" fn ImportFileScreenTemplates, Impl: IFsrmExportImport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop, templatenamessafearray: *const super::super::System::Com::VARIANT, remotehost: ::core::mem::ManuallyDrop, templates: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn ImportFileScreenTemplates, Impl: IFsrmExportImport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, templatenamessafearray: *const super::super::System::Com::VARIANT, remotehost: ::core::mem::ManuallyDrop<::windows::core::BSTR>, templates: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ImportFileScreenTemplates(::core::mem::transmute(&filepath), ::core::mem::transmute_copy(&templatenamessafearray), ::core::mem::transmute(&remotehost)) { @@ -1385,12 +1385,12 @@ impl IFsrmExportImport_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ExportQuotaTemplates, Impl: IFsrmExportImport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop, templatenamessafearray: *const super::super::System::Com::VARIANT, remotehost: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExportQuotaTemplates, Impl: IFsrmExportImport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, templatenamessafearray: *const super::super::System::Com::VARIANT, remotehost: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ExportQuotaTemplates(::core::mem::transmute(&filepath), ::core::mem::transmute_copy(&templatenamessafearray), ::core::mem::transmute(&remotehost)).into() } - unsafe extern "system" fn ImportQuotaTemplates, Impl: IFsrmExportImport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop, templatenamessafearray: *const super::super::System::Com::VARIANT, remotehost: ::core::mem::ManuallyDrop, templates: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn ImportQuotaTemplates, Impl: IFsrmExportImport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, templatenamessafearray: *const super::super::System::Com::VARIANT, remotehost: ::core::mem::ManuallyDrop<::windows::core::BSTR>, templates: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ImportQuotaTemplates(::core::mem::transmute(&filepath), ::core::mem::transmute_copy(&templatenamessafearray), ::core::mem::transmute(&remotehost)) { @@ -1453,8 +1453,8 @@ impl IFsrmFileCondition_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFsrmFileConditionProperty_Impl: Sized + super::super::System::Com::IDispatch_Impl + IFsrmFileCondition_Impl { - fn PropertyName(&self) -> ::windows::core::Result; - fn SetPropertyName(&self, newval: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn PropertyName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetPropertyName(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn PropertyId(&self) -> ::windows::core::Result; fn SetPropertyId(&self, newval: FsrmFileSystemPropertyId) -> ::windows::core::Result<()>; fn Operator(&self) -> ::windows::core::Result; @@ -1469,7 +1469,7 @@ impl ::windows::core::RuntimeName for IFsrmFileConditionProperty {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFsrmFileConditionProperty_Vtbl { pub const fn new, Impl: IFsrmFileConditionProperty_Impl, const OFFSET: isize>() -> IFsrmFileConditionProperty_Vtbl { - unsafe extern "system" fn PropertyName, Impl: IFsrmFileConditionProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PropertyName, Impl: IFsrmFileConditionProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PropertyName() { @@ -1480,7 +1480,7 @@ impl IFsrmFileConditionProperty_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPropertyName, Impl: IFsrmFileConditionProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPropertyName, Impl: IFsrmFileConditionProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPropertyName(::core::mem::transmute(&newval)).into() @@ -1569,8 +1569,8 @@ impl IFsrmFileConditionProperty_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFsrmFileGroup_Impl: Sized + super::super::System::Com::IDispatch_Impl + IFsrmObject_Impl { - fn Name(&self) -> ::windows::core::Result; - fn SetName(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Members(&self) -> ::windows::core::Result; fn SetMembers(&self, members: &::core::option::Option) -> ::windows::core::Result<()>; fn NonMembers(&self) -> ::windows::core::Result; @@ -1581,7 +1581,7 @@ impl ::windows::core::RuntimeName for IFsrmFileGroup {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFsrmFileGroup_Vtbl { pub const fn new, Impl: IFsrmFileGroup_Impl, const OFFSET: isize>() -> IFsrmFileGroup_Vtbl { - unsafe extern "system" fn Name, Impl: IFsrmFileGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IFsrmFileGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -1592,7 +1592,7 @@ impl IFsrmFileGroup_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetName, Impl: IFsrmFileGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: IFsrmFileGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&name)).into() @@ -1682,10 +1682,10 @@ impl IFsrmFileGroupImported_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFsrmFileGroupManager_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn CreateFileGroup(&self) -> ::windows::core::Result; - fn GetFileGroup(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetFileGroup(&self, name: &::windows::core::BSTR) -> ::windows::core::Result; fn EnumFileGroups(&self, options: FsrmEnumOptions) -> ::windows::core::Result; - fn ExportFileGroups(&self, filegroupnamesarray: *const super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn ImportFileGroups(&self, serializedfilegroups: &super::super::Foundation::BSTR, filegroupnamesarray: *const super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn ExportFileGroups(&self, filegroupnamesarray: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<::windows::core::BSTR>; + fn ImportFileGroups(&self, serializedfilegroups: &::windows::core::BSTR, filegroupnamesarray: *const super::super::System::Com::VARIANT) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFsrmFileGroupManager {} @@ -1703,7 +1703,7 @@ impl IFsrmFileGroupManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetFileGroup, Impl: IFsrmFileGroupManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, filegroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFileGroup, Impl: IFsrmFileGroupManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, filegroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetFileGroup(::core::mem::transmute(&name)) { @@ -1725,7 +1725,7 @@ impl IFsrmFileGroupManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ExportFileGroups, Impl: IFsrmFileGroupManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filegroupnamesarray: *const super::super::System::Com::VARIANT, serializedfilegroups: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExportFileGroups, Impl: IFsrmFileGroupManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filegroupnamesarray: *const super::super::System::Com::VARIANT, serializedfilegroups: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ExportFileGroups(::core::mem::transmute_copy(&filegroupnamesarray)) { @@ -1736,7 +1736,7 @@ impl IFsrmFileGroupManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ImportFileGroups, Impl: IFsrmFileGroupManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, serializedfilegroups: ::core::mem::ManuallyDrop, filegroupnamesarray: *const super::super::System::Com::VARIANT, filegroups: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn ImportFileGroups, Impl: IFsrmFileGroupManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, serializedfilegroups: ::core::mem::ManuallyDrop<::windows::core::BSTR>, filegroupnamesarray: *const super::super::System::Com::VARIANT, filegroups: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ImportFileGroups(::core::mem::transmute(&serializedfilegroups), ::core::mem::transmute_copy(&filegroupnamesarray)) { @@ -1762,16 +1762,16 @@ impl IFsrmFileGroupManager_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFsrmFileManagementJob_Impl: Sized + super::super::System::Com::IDispatch_Impl + IFsrmObject_Impl { - fn Name(&self) -> ::windows::core::Result; - fn SetName(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn NamespaceRoots(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; fn SetNamespaceRoots(&self, namespaceroots: *const super::super::System::Com::SAFEARRAY) -> ::windows::core::Result<()>; fn Enabled(&self) -> ::windows::core::Result; fn SetEnabled(&self, enabled: i16) -> ::windows::core::Result<()>; fn OperationType(&self) -> ::windows::core::Result; fn SetOperationType(&self, operationtype: FsrmFileManagementType) -> ::windows::core::Result<()>; - fn ExpirationDirectory(&self) -> ::windows::core::Result; - fn SetExpirationDirectory(&self, expirationdirectory: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ExpirationDirectory(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetExpirationDirectory(&self, expirationdirectory: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn CustomAction(&self) -> ::windows::core::Result; fn Notifications(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; fn Logging(&self) -> ::windows::core::Result; @@ -1780,8 +1780,8 @@ pub trait IFsrmFileManagementJob_Impl: Sized + super::super::System::Com::IDispa fn SetReportEnabled(&self, reportenabled: i16) -> ::windows::core::Result<()>; fn Formats(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; fn SetFormats(&self, formats: *const super::super::System::Com::SAFEARRAY) -> ::windows::core::Result<()>; - fn MailTo(&self) -> ::windows::core::Result; - fn SetMailTo(&self, mailto: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn MailTo(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetMailTo(&self, mailto: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn DaysSinceFileCreated(&self) -> ::windows::core::Result; fn SetDaysSinceFileCreated(&self, dayssincecreation: i32) -> ::windows::core::Result<()>; fn DaysSinceFileLastAccessed(&self) -> ::windows::core::Result; @@ -1791,16 +1791,16 @@ pub trait IFsrmFileManagementJob_Impl: Sized + super::super::System::Com::IDispa fn PropertyConditions(&self) -> ::windows::core::Result; fn FromDate(&self) -> ::windows::core::Result; fn SetFromDate(&self, fromdate: f64) -> ::windows::core::Result<()>; - fn Task(&self) -> ::windows::core::Result; - fn SetTask(&self, taskname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Task(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetTask(&self, taskname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Parameters(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; fn SetParameters(&self, parameters: *const super::super::System::Com::SAFEARRAY) -> ::windows::core::Result<()>; fn RunningStatus(&self) -> ::windows::core::Result; - fn LastError(&self) -> ::windows::core::Result; - fn LastReportPathWithoutExtension(&self) -> ::windows::core::Result; + fn LastError(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn LastReportPathWithoutExtension(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn LastRun(&self) -> ::windows::core::Result; - fn FileNamePattern(&self) -> ::windows::core::Result; - fn SetFileNamePattern(&self, filenamepattern: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn FileNamePattern(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetFileNamePattern(&self, filenamepattern: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Run(&self, context: FsrmReportGenerationContext) -> ::windows::core::Result<()>; fn WaitForCompletion(&self, waitseconds: i32) -> ::windows::core::Result; fn Cancel(&self) -> ::windows::core::Result<()>; @@ -1809,7 +1809,7 @@ pub trait IFsrmFileManagementJob_Impl: Sized + super::super::System::Com::IDispa fn ModifyNotification(&self, days: i32, newdays: i32) -> ::windows::core::Result<()>; fn CreateNotificationAction(&self, days: i32, actiontype: FsrmActionType) -> ::windows::core::Result; fn EnumNotificationActions(&self, days: i32) -> ::windows::core::Result; - fn CreatePropertyCondition(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn CreatePropertyCondition(&self, name: &::windows::core::BSTR) -> ::windows::core::Result; fn CreateCustomAction(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -1817,7 +1817,7 @@ impl ::windows::core::RuntimeName for IFsrmFileManagementJob {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFsrmFileManagementJob_Vtbl { pub const fn new, Impl: IFsrmFileManagementJob_Impl, const OFFSET: isize>() -> IFsrmFileManagementJob_Vtbl { - unsafe extern "system" fn Name, Impl: IFsrmFileManagementJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IFsrmFileManagementJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -1828,7 +1828,7 @@ impl IFsrmFileManagementJob_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetName, Impl: IFsrmFileManagementJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: IFsrmFileManagementJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&name)).into() @@ -1881,7 +1881,7 @@ impl IFsrmFileManagementJob_Vtbl { let this = (*this).get_impl(); this.SetOperationType(::core::mem::transmute_copy(&operationtype)).into() } - unsafe extern "system" fn ExpirationDirectory, Impl: IFsrmFileManagementJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, expirationdirectory: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExpirationDirectory, Impl: IFsrmFileManagementJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, expirationdirectory: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ExpirationDirectory() { @@ -1892,7 +1892,7 @@ impl IFsrmFileManagementJob_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetExpirationDirectory, Impl: IFsrmFileManagementJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, expirationdirectory: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetExpirationDirectory, Impl: IFsrmFileManagementJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, expirationdirectory: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetExpirationDirectory(::core::mem::transmute(&expirationdirectory)).into() @@ -1967,7 +1967,7 @@ impl IFsrmFileManagementJob_Vtbl { let this = (*this).get_impl(); this.SetFormats(::core::mem::transmute_copy(&formats)).into() } - unsafe extern "system" fn MailTo, Impl: IFsrmFileManagementJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailto: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn MailTo, Impl: IFsrmFileManagementJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailto: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.MailTo() { @@ -1978,7 +1978,7 @@ impl IFsrmFileManagementJob_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetMailTo, Impl: IFsrmFileManagementJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailto: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetMailTo, Impl: IFsrmFileManagementJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailto: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetMailTo(::core::mem::transmute(&mailto)).into() @@ -2058,7 +2058,7 @@ impl IFsrmFileManagementJob_Vtbl { let this = (*this).get_impl(); this.SetFromDate(::core::mem::transmute_copy(&fromdate)).into() } - unsafe extern "system" fn Task, Impl: IFsrmFileManagementJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, taskname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Task, Impl: IFsrmFileManagementJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, taskname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Task() { @@ -2069,7 +2069,7 @@ impl IFsrmFileManagementJob_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetTask, Impl: IFsrmFileManagementJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, taskname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetTask, Impl: IFsrmFileManagementJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, taskname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetTask(::core::mem::transmute(&taskname)).into() @@ -2101,7 +2101,7 @@ impl IFsrmFileManagementJob_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn LastError, Impl: IFsrmFileManagementJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lasterror: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LastError, Impl: IFsrmFileManagementJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lasterror: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LastError() { @@ -2112,7 +2112,7 @@ impl IFsrmFileManagementJob_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn LastReportPathWithoutExtension, Impl: IFsrmFileManagementJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LastReportPathWithoutExtension, Impl: IFsrmFileManagementJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LastReportPathWithoutExtension() { @@ -2134,7 +2134,7 @@ impl IFsrmFileManagementJob_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn FileNamePattern, Impl: IFsrmFileManagementJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filenamepattern: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FileNamePattern, Impl: IFsrmFileManagementJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filenamepattern: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FileNamePattern() { @@ -2145,7 +2145,7 @@ impl IFsrmFileManagementJob_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetFileNamePattern, Impl: IFsrmFileManagementJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filenamepattern: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetFileNamePattern, Impl: IFsrmFileManagementJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filenamepattern: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetFileNamePattern(::core::mem::transmute(&filenamepattern)).into() @@ -2208,7 +2208,7 @@ impl IFsrmFileManagementJob_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreatePropertyCondition, Impl: IFsrmFileManagementJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, propertycondition: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreatePropertyCondition, Impl: IFsrmFileManagementJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertycondition: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreatePropertyCondition(::core::mem::transmute(&name)) { @@ -2293,7 +2293,7 @@ pub trait IFsrmFileManagementJobManager_Impl: Sized + super::super::System::Com: fn ActionVariableDescriptions(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; fn EnumFileManagementJobs(&self, options: FsrmEnumOptions) -> ::windows::core::Result; fn CreateFileManagementJob(&self) -> ::windows::core::Result; - fn GetFileManagementJob(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetFileManagementJob(&self, name: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFsrmFileManagementJobManager {} @@ -2344,7 +2344,7 @@ impl IFsrmFileManagementJobManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetFileManagementJob, Impl: IFsrmFileManagementJobManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, filemanagementjob: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFileManagementJob, Impl: IFsrmFileManagementJobManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, filemanagementjob: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetFileManagementJob(::core::mem::transmute(&name)) { @@ -2370,19 +2370,19 @@ impl IFsrmFileManagementJobManager_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFsrmFileScreen_Impl: Sized + super::super::System::Com::IDispatch_Impl + IFsrmObject_Impl + IFsrmFileScreenBase_Impl { - fn Path(&self) -> ::windows::core::Result; - fn SourceTemplateName(&self) -> ::windows::core::Result; + fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SourceTemplateName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn MatchesSourceTemplate(&self) -> ::windows::core::Result; - fn UserSid(&self) -> ::windows::core::Result; - fn UserAccount(&self) -> ::windows::core::Result; - fn ApplyTemplate(&self, filescreentemplatename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn UserSid(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn UserAccount(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ApplyTemplate(&self, filescreentemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFsrmFileScreen {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFsrmFileScreen_Vtbl { pub const fn new, Impl: IFsrmFileScreen_Impl, const OFFSET: isize>() -> IFsrmFileScreen_Vtbl { - unsafe extern "system" fn Path, Impl: IFsrmFileScreen_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Path, Impl: IFsrmFileScreen_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Path() { @@ -2393,7 +2393,7 @@ impl IFsrmFileScreen_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SourceTemplateName, Impl: IFsrmFileScreen_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filescreentemplatename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SourceTemplateName, Impl: IFsrmFileScreen_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filescreentemplatename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SourceTemplateName() { @@ -2415,7 +2415,7 @@ impl IFsrmFileScreen_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn UserSid, Impl: IFsrmFileScreen_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, usersid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UserSid, Impl: IFsrmFileScreen_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, usersid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UserSid() { @@ -2426,7 +2426,7 @@ impl IFsrmFileScreen_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn UserAccount, Impl: IFsrmFileScreen_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, useraccount: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UserAccount, Impl: IFsrmFileScreen_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, useraccount: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UserAccount() { @@ -2437,7 +2437,7 @@ impl IFsrmFileScreen_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ApplyTemplate, Impl: IFsrmFileScreen_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filescreentemplatename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ApplyTemplate, Impl: IFsrmFileScreen_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filescreentemplatename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ApplyTemplate(::core::mem::transmute(&filescreentemplatename)).into() @@ -2540,7 +2540,7 @@ impl IFsrmFileScreenBase_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFsrmFileScreenException_Impl: Sized + super::super::System::Com::IDispatch_Impl + IFsrmObject_Impl { - fn Path(&self) -> ::windows::core::Result; + fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn AllowedFileGroups(&self) -> ::windows::core::Result; fn SetAllowedFileGroups(&self, allowlist: &::core::option::Option) -> ::windows::core::Result<()>; } @@ -2549,7 +2549,7 @@ impl ::windows::core::RuntimeName for IFsrmFileScreenException {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFsrmFileScreenException_Vtbl { pub const fn new, Impl: IFsrmFileScreenException_Impl, const OFFSET: isize>() -> IFsrmFileScreenException_Vtbl { - unsafe extern "system" fn Path, Impl: IFsrmFileScreenException_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Path, Impl: IFsrmFileScreenException_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Path() { @@ -2591,12 +2591,12 @@ impl IFsrmFileScreenException_Vtbl { pub trait IFsrmFileScreenManager_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn ActionVariables(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; fn ActionVariableDescriptions(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; - fn CreateFileScreen(&self, path: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetFileScreen(&self, path: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn EnumFileScreens(&self, path: &super::super::Foundation::BSTR, options: FsrmEnumOptions) -> ::windows::core::Result; - fn CreateFileScreenException(&self, path: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetFileScreenException(&self, path: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn EnumFileScreenExceptions(&self, path: &super::super::Foundation::BSTR, options: FsrmEnumOptions) -> ::windows::core::Result; + fn CreateFileScreen(&self, path: &::windows::core::BSTR) -> ::windows::core::Result; + fn GetFileScreen(&self, path: &::windows::core::BSTR) -> ::windows::core::Result; + fn EnumFileScreens(&self, path: &::windows::core::BSTR, options: FsrmEnumOptions) -> ::windows::core::Result; + fn CreateFileScreenException(&self, path: &::windows::core::BSTR) -> ::windows::core::Result; + fn GetFileScreenException(&self, path: &::windows::core::BSTR) -> ::windows::core::Result; + fn EnumFileScreenExceptions(&self, path: &::windows::core::BSTR, options: FsrmEnumOptions) -> ::windows::core::Result; fn CreateFileScreenCollection(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2626,7 +2626,7 @@ impl IFsrmFileScreenManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateFileScreen, Impl: IFsrmFileScreenManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, filescreen: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateFileScreen, Impl: IFsrmFileScreenManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, filescreen: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateFileScreen(::core::mem::transmute(&path)) { @@ -2637,7 +2637,7 @@ impl IFsrmFileScreenManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetFileScreen, Impl: IFsrmFileScreenManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, filescreen: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFileScreen, Impl: IFsrmFileScreenManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, filescreen: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetFileScreen(::core::mem::transmute(&path)) { @@ -2648,7 +2648,7 @@ impl IFsrmFileScreenManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn EnumFileScreens, Impl: IFsrmFileScreenManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, options: FsrmEnumOptions, filescreens: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn EnumFileScreens, Impl: IFsrmFileScreenManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, options: FsrmEnumOptions, filescreens: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EnumFileScreens(::core::mem::transmute(&path), ::core::mem::transmute_copy(&options)) { @@ -2659,7 +2659,7 @@ impl IFsrmFileScreenManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateFileScreenException, Impl: IFsrmFileScreenManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, filescreenexception: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateFileScreenException, Impl: IFsrmFileScreenManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, filescreenexception: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateFileScreenException(::core::mem::transmute(&path)) { @@ -2670,7 +2670,7 @@ impl IFsrmFileScreenManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetFileScreenException, Impl: IFsrmFileScreenManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, filescreenexception: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFileScreenException, Impl: IFsrmFileScreenManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, filescreenexception: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetFileScreenException(::core::mem::transmute(&path)) { @@ -2681,7 +2681,7 @@ impl IFsrmFileScreenManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn EnumFileScreenExceptions, Impl: IFsrmFileScreenManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, options: FsrmEnumOptions, filescreenexceptions: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn EnumFileScreenExceptions, Impl: IFsrmFileScreenManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, options: FsrmEnumOptions, filescreenexceptions: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EnumFileScreenExceptions(::core::mem::transmute(&path), ::core::mem::transmute_copy(&options)) { @@ -2722,9 +2722,9 @@ impl IFsrmFileScreenManager_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFsrmFileScreenTemplate_Impl: Sized + super::super::System::Com::IDispatch_Impl + IFsrmObject_Impl + IFsrmFileScreenBase_Impl { - fn Name(&self) -> ::windows::core::Result; - fn SetName(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn CopyTemplate(&self, filescreentemplatename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn CopyTemplate(&self, filescreentemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn CommitAndUpdateDerived(&self, commitoptions: FsrmCommitOptions, applyoptions: FsrmTemplateApplyOptions) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2732,7 +2732,7 @@ impl ::windows::core::RuntimeName for IFsrmFileScreenTemplate {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFsrmFileScreenTemplate_Vtbl { pub const fn new, Impl: IFsrmFileScreenTemplate_Impl, const OFFSET: isize>() -> IFsrmFileScreenTemplate_Vtbl { - unsafe extern "system" fn Name, Impl: IFsrmFileScreenTemplate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IFsrmFileScreenTemplate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -2743,12 +2743,12 @@ impl IFsrmFileScreenTemplate_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetName, Impl: IFsrmFileScreenTemplate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: IFsrmFileScreenTemplate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&name)).into() } - unsafe extern "system" fn CopyTemplate, Impl: IFsrmFileScreenTemplate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filescreentemplatename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn CopyTemplate, Impl: IFsrmFileScreenTemplate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filescreentemplatename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CopyTemplate(::core::mem::transmute(&filescreentemplatename)).into() @@ -2815,10 +2815,10 @@ impl IFsrmFileScreenTemplateImported_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFsrmFileScreenTemplateManager_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn CreateTemplate(&self) -> ::windows::core::Result; - fn GetTemplate(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetTemplate(&self, name: &::windows::core::BSTR) -> ::windows::core::Result; fn EnumTemplates(&self, options: FsrmEnumOptions) -> ::windows::core::Result; - fn ExportTemplates(&self, filescreentemplatenamesarray: *const super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn ImportTemplates(&self, serializedfilescreentemplates: &super::super::Foundation::BSTR, filescreentemplatenamesarray: *const super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn ExportTemplates(&self, filescreentemplatenamesarray: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<::windows::core::BSTR>; + fn ImportTemplates(&self, serializedfilescreentemplates: &::windows::core::BSTR, filescreentemplatenamesarray: *const super::super::System::Com::VARIANT) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFsrmFileScreenTemplateManager {} @@ -2836,7 +2836,7 @@ impl IFsrmFileScreenTemplateManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetTemplate, Impl: IFsrmFileScreenTemplateManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, filescreentemplate: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetTemplate, Impl: IFsrmFileScreenTemplateManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, filescreentemplate: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetTemplate(::core::mem::transmute(&name)) { @@ -2858,7 +2858,7 @@ impl IFsrmFileScreenTemplateManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ExportTemplates, Impl: IFsrmFileScreenTemplateManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filescreentemplatenamesarray: *const super::super::System::Com::VARIANT, serializedfilescreentemplates: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExportTemplates, Impl: IFsrmFileScreenTemplateManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filescreentemplatenamesarray: *const super::super::System::Com::VARIANT, serializedfilescreentemplates: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ExportTemplates(::core::mem::transmute_copy(&filescreentemplatenamesarray)) { @@ -2869,7 +2869,7 @@ impl IFsrmFileScreenTemplateManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ImportTemplates, Impl: IFsrmFileScreenTemplateManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, serializedfilescreentemplates: ::core::mem::ManuallyDrop, filescreentemplatenamesarray: *const super::super::System::Com::VARIANT, filescreentemplates: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn ImportTemplates, Impl: IFsrmFileScreenTemplateManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, serializedfilescreentemplates: ::core::mem::ManuallyDrop<::windows::core::BSTR>, filescreentemplatenamesarray: *const super::super::System::Com::VARIANT, filescreentemplates: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ImportTemplates(::core::mem::transmute(&serializedfilescreentemplates), ::core::mem::transmute_copy(&filescreentemplatenamesarray)) { @@ -2946,8 +2946,8 @@ impl IFsrmMutableCollection_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFsrmObject_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn Id(&self) -> ::windows::core::Result<::windows::core::GUID>; - fn Description(&self) -> ::windows::core::Result; - fn SetDescription(&self, description: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Delete(&self) -> ::windows::core::Result<()>; fn Commit(&self) -> ::windows::core::Result<()>; } @@ -2967,7 +2967,7 @@ impl IFsrmObject_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Description, Impl: IFsrmObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IFsrmObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -2978,7 +2978,7 @@ impl IFsrmObject_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription, Impl: IFsrmObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDescription, Impl: IFsrmObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDescription(::core::mem::transmute(&description)).into() @@ -3008,14 +3008,14 @@ impl IFsrmObject_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFsrmPathMapper_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn GetSharePathsForLocalPath(&self, localpath: &super::super::Foundation::BSTR) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; + fn GetSharePathsForLocalPath(&self, localpath: &::windows::core::BSTR) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFsrmPathMapper {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFsrmPathMapper_Vtbl { pub const fn new, Impl: IFsrmPathMapper_Impl, const OFFSET: isize>() -> IFsrmPathMapper_Vtbl { - unsafe extern "system" fn GetSharePathsForLocalPath, Impl: IFsrmPathMapper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, localpath: ::core::mem::ManuallyDrop, sharepaths: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSharePathsForLocalPath, Impl: IFsrmPathMapper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, localpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, sharepaths: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetSharePathsForLocalPath(::core::mem::transmute(&localpath)) { @@ -3038,8 +3038,8 @@ impl IFsrmPathMapper_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFsrmPipelineModuleConnector_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn ModuleImplementation(&self) -> ::windows::core::Result; - fn ModuleName(&self) -> ::windows::core::Result; - fn HostingUserAccount(&self) -> ::windows::core::Result; + fn ModuleName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn HostingUserAccount(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn HostingProcessPid(&self) -> ::windows::core::Result; fn Bind(&self, moduledefinition: &::core::option::Option, moduleimplementation: &::core::option::Option) -> ::windows::core::Result<()>; } @@ -3059,7 +3059,7 @@ impl IFsrmPipelineModuleConnector_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ModuleName, Impl: IFsrmPipelineModuleConnector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, username: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ModuleName, Impl: IFsrmPipelineModuleConnector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, username: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ModuleName() { @@ -3070,7 +3070,7 @@ impl IFsrmPipelineModuleConnector_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn HostingUserAccount, Impl: IFsrmPipelineModuleConnector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, useraccount: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn HostingUserAccount, Impl: IFsrmPipelineModuleConnector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, useraccount: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.HostingUserAccount() { @@ -3112,14 +3112,14 @@ impl IFsrmPipelineModuleConnector_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFsrmPipelineModuleDefinition_Impl: Sized + super::super::System::Com::IDispatch_Impl + IFsrmObject_Impl { - fn ModuleClsid(&self) -> ::windows::core::Result; - fn SetModuleClsid(&self, moduleclsid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Name(&self) -> ::windows::core::Result; - fn SetName(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Company(&self) -> ::windows::core::Result; - fn SetCompany(&self, company: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Version(&self) -> ::windows::core::Result; - fn SetVersion(&self, version: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ModuleClsid(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetModuleClsid(&self, moduleclsid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Company(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetCompany(&self, company: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Version(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetVersion(&self, version: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn ModuleType(&self) -> ::windows::core::Result; fn Enabled(&self) -> ::windows::core::Result; fn SetEnabled(&self, enabled: i16) -> ::windows::core::Result<()>; @@ -3137,7 +3137,7 @@ impl ::windows::core::RuntimeName for IFsrmPipelineModuleDefinition {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFsrmPipelineModuleDefinition_Vtbl { pub const fn new, Impl: IFsrmPipelineModuleDefinition_Impl, const OFFSET: isize>() -> IFsrmPipelineModuleDefinition_Vtbl { - unsafe extern "system" fn ModuleClsid, Impl: IFsrmPipelineModuleDefinition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, moduleclsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ModuleClsid, Impl: IFsrmPipelineModuleDefinition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, moduleclsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ModuleClsid() { @@ -3148,12 +3148,12 @@ impl IFsrmPipelineModuleDefinition_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetModuleClsid, Impl: IFsrmPipelineModuleDefinition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, moduleclsid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetModuleClsid, Impl: IFsrmPipelineModuleDefinition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, moduleclsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetModuleClsid(::core::mem::transmute(&moduleclsid)).into() } - unsafe extern "system" fn Name, Impl: IFsrmPipelineModuleDefinition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IFsrmPipelineModuleDefinition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -3164,12 +3164,12 @@ impl IFsrmPipelineModuleDefinition_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetName, Impl: IFsrmPipelineModuleDefinition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: IFsrmPipelineModuleDefinition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&name)).into() } - unsafe extern "system" fn Company, Impl: IFsrmPipelineModuleDefinition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, company: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Company, Impl: IFsrmPipelineModuleDefinition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, company: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Company() { @@ -3180,12 +3180,12 @@ impl IFsrmPipelineModuleDefinition_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetCompany, Impl: IFsrmPipelineModuleDefinition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, company: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCompany, Impl: IFsrmPipelineModuleDefinition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, company: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCompany(::core::mem::transmute(&company)).into() } - unsafe extern "system" fn Version, Impl: IFsrmPipelineModuleDefinition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, version: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Version, Impl: IFsrmPipelineModuleDefinition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, version: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Version() { @@ -3196,7 +3196,7 @@ impl IFsrmPipelineModuleDefinition_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetVersion, Impl: IFsrmPipelineModuleDefinition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, version: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetVersion, Impl: IFsrmPipelineModuleDefinition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, version: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetVersion(::core::mem::transmute(&version)).into() @@ -3357,8 +3357,8 @@ impl IFsrmPipelineModuleImplementation_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFsrmProperty_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; - fn Value(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Value(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Sources(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; fn PropertyFlags(&self) -> ::windows::core::Result; } @@ -3367,7 +3367,7 @@ impl ::windows::core::RuntimeName for IFsrmProperty {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFsrmProperty_Vtbl { pub const fn new, Impl: IFsrmProperty_Impl, const OFFSET: isize>() -> IFsrmProperty_Vtbl { - unsafe extern "system" fn Name, Impl: IFsrmProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IFsrmProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -3378,7 +3378,7 @@ impl IFsrmProperty_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Value, Impl: IFsrmProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Value, Impl: IFsrmProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Value() { @@ -3425,10 +3425,10 @@ impl IFsrmProperty_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFsrmPropertyBag_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; - fn RelativePath(&self) -> ::windows::core::Result; - fn VolumeName(&self) -> ::windows::core::Result; - fn RelativeNamespaceRoot(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn RelativePath(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn VolumeName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn RelativeNamespaceRoot(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn VolumeIndex(&self) -> ::windows::core::Result; fn FileId(&self) -> ::windows::core::Result; fn ParentDirectoryId(&self) -> ::windows::core::Result; @@ -3438,13 +3438,13 @@ pub trait IFsrmPropertyBag_Impl: Sized + super::super::System::Com::IDispatch_Im fn LastAccessTime(&self) -> ::windows::core::Result; fn LastModificationTime(&self) -> ::windows::core::Result; fn Attributes(&self) -> ::windows::core::Result; - fn OwnerSid(&self) -> ::windows::core::Result; + fn OwnerSid(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn FilePropertyNames(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; fn Messages(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; fn PropertyBagFlags(&self) -> ::windows::core::Result; - fn GetFileProperty(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn SetFileProperty(&self, name: &super::super::Foundation::BSTR, value: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn AddMessage(&self, message: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetFileProperty(&self, name: &::windows::core::BSTR) -> ::windows::core::Result; + fn SetFileProperty(&self, name: &::windows::core::BSTR, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn AddMessage(&self, message: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetFileStreamInterface(&self, accessmode: FsrmFileStreamingMode, interfacetype: FsrmFileStreamingInterfaceType) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3452,7 +3452,7 @@ impl ::windows::core::RuntimeName for IFsrmPropertyBag {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFsrmPropertyBag_Vtbl { pub const fn new, Impl: IFsrmPropertyBag_Impl, const OFFSET: isize>() -> IFsrmPropertyBag_Vtbl { - unsafe extern "system" fn Name, Impl: IFsrmPropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IFsrmPropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -3463,7 +3463,7 @@ impl IFsrmPropertyBag_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RelativePath, Impl: IFsrmPropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RelativePath, Impl: IFsrmPropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RelativePath() { @@ -3474,7 +3474,7 @@ impl IFsrmPropertyBag_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn VolumeName, Impl: IFsrmPropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, volumename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn VolumeName, Impl: IFsrmPropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, volumename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.VolumeName() { @@ -3485,7 +3485,7 @@ impl IFsrmPropertyBag_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RelativeNamespaceRoot, Impl: IFsrmPropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, relativenamespaceroot: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RelativeNamespaceRoot, Impl: IFsrmPropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, relativenamespaceroot: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RelativeNamespaceRoot() { @@ -3595,7 +3595,7 @@ impl IFsrmPropertyBag_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn OwnerSid, Impl: IFsrmPropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ownersid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn OwnerSid, Impl: IFsrmPropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ownersid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OwnerSid() { @@ -3639,7 +3639,7 @@ impl IFsrmPropertyBag_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetFileProperty, Impl: IFsrmPropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, fileproperty: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFileProperty, Impl: IFsrmPropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fileproperty: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetFileProperty(::core::mem::transmute(&name)) { @@ -3650,12 +3650,12 @@ impl IFsrmPropertyBag_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetFileProperty, Impl: IFsrmPropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetFileProperty, Impl: IFsrmPropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetFileProperty(::core::mem::transmute(&name), ::core::mem::transmute(&value)).into() } - unsafe extern "system" fn AddMessage, Impl: IFsrmPropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, message: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddMessage, Impl: IFsrmPropertyBag_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, message: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddMessage(::core::mem::transmute(&message)).into() @@ -3744,12 +3744,12 @@ impl IFsrmPropertyBag2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFsrmPropertyCondition_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; - fn SetName(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Type(&self) -> ::windows::core::Result; fn SetType(&self, r#type: FsrmPropertyConditionType) -> ::windows::core::Result<()>; - fn Value(&self) -> ::windows::core::Result; - fn SetValue(&self, value: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Value(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetValue(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Delete(&self) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3757,7 +3757,7 @@ impl ::windows::core::RuntimeName for IFsrmPropertyCondition {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFsrmPropertyCondition_Vtbl { pub const fn new, Impl: IFsrmPropertyCondition_Impl, const OFFSET: isize>() -> IFsrmPropertyCondition_Vtbl { - unsafe extern "system" fn Name, Impl: IFsrmPropertyCondition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IFsrmPropertyCondition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -3768,7 +3768,7 @@ impl IFsrmPropertyCondition_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetName, Impl: IFsrmPropertyCondition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: IFsrmPropertyCondition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&name)).into() @@ -3789,7 +3789,7 @@ impl IFsrmPropertyCondition_Vtbl { let this = (*this).get_impl(); this.SetType(::core::mem::transmute_copy(&r#type)).into() } - unsafe extern "system" fn Value, Impl: IFsrmPropertyCondition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Value, Impl: IFsrmPropertyCondition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Value() { @@ -3800,7 +3800,7 @@ impl IFsrmPropertyCondition_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetValue, Impl: IFsrmPropertyCondition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetValue, Impl: IFsrmPropertyCondition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetValue(::core::mem::transmute(&value)).into() @@ -3827,8 +3827,8 @@ impl IFsrmPropertyCondition_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFsrmPropertyDefinition_Impl: Sized + super::super::System::Com::IDispatch_Impl + IFsrmObject_Impl { - fn Name(&self) -> ::windows::core::Result; - fn SetName(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Type(&self) -> ::windows::core::Result; fn SetType(&self, r#type: FsrmPropertyDefinitionType) -> ::windows::core::Result<()>; fn PossibleValues(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; @@ -3843,7 +3843,7 @@ impl ::windows::core::RuntimeName for IFsrmPropertyDefinition {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFsrmPropertyDefinition_Vtbl { pub const fn new, Impl: IFsrmPropertyDefinition_Impl, const OFFSET: isize>() -> IFsrmPropertyDefinition_Vtbl { - unsafe extern "system" fn Name, Impl: IFsrmPropertyDefinition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IFsrmPropertyDefinition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -3854,7 +3854,7 @@ impl IFsrmPropertyDefinition_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetName, Impl: IFsrmPropertyDefinition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: IFsrmPropertyDefinition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&name)).into() @@ -3944,8 +3944,8 @@ impl IFsrmPropertyDefinition_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFsrmPropertyDefinition2_Impl: Sized + super::super::System::Com::IDispatch_Impl + IFsrmObject_Impl + IFsrmPropertyDefinition_Impl { fn PropertyDefinitionFlags(&self) -> ::windows::core::Result; - fn DisplayName(&self) -> ::windows::core::Result; - fn SetDisplayName(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDisplayName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn AppliesTo(&self) -> ::windows::core::Result; fn ValueDefinitions(&self) -> ::windows::core::Result; } @@ -3965,7 +3965,7 @@ impl IFsrmPropertyDefinition2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DisplayName, Impl: IFsrmPropertyDefinition2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DisplayName, Impl: IFsrmPropertyDefinition2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DisplayName() { @@ -3976,7 +3976,7 @@ impl IFsrmPropertyDefinition2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDisplayName, Impl: IFsrmPropertyDefinition2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDisplayName, Impl: IFsrmPropertyDefinition2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDisplayName(::core::mem::transmute(&name)).into() @@ -4018,17 +4018,17 @@ impl IFsrmPropertyDefinition2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFsrmPropertyDefinitionValue_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; - fn DisplayName(&self) -> ::windows::core::Result; - fn Description(&self) -> ::windows::core::Result; - fn UniqueID(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn UniqueID(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFsrmPropertyDefinitionValue {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFsrmPropertyDefinitionValue_Vtbl { pub const fn new, Impl: IFsrmPropertyDefinitionValue_Impl, const OFFSET: isize>() -> IFsrmPropertyDefinitionValue_Vtbl { - unsafe extern "system" fn Name, Impl: IFsrmPropertyDefinitionValue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IFsrmPropertyDefinitionValue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -4039,7 +4039,7 @@ impl IFsrmPropertyDefinitionValue_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DisplayName, Impl: IFsrmPropertyDefinitionValue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, displayname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DisplayName, Impl: IFsrmPropertyDefinitionValue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, displayname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DisplayName() { @@ -4050,7 +4050,7 @@ impl IFsrmPropertyDefinitionValue_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Description, Impl: IFsrmPropertyDefinitionValue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IFsrmPropertyDefinitionValue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -4061,7 +4061,7 @@ impl IFsrmPropertyDefinitionValue_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn UniqueID, Impl: IFsrmPropertyDefinitionValue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uniqueid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UniqueID, Impl: IFsrmPropertyDefinitionValue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uniqueid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UniqueID() { @@ -4273,15 +4273,15 @@ impl IFsrmQuotaBase_Vtbl { pub trait IFsrmQuotaManager_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn ActionVariables(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; fn ActionVariableDescriptions(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; - fn CreateQuota(&self, path: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn CreateAutoApplyQuota(&self, quotatemplatename: &super::super::Foundation::BSTR, path: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetQuota(&self, path: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetAutoApplyQuota(&self, path: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetRestrictiveQuota(&self, path: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn EnumQuotas(&self, path: &super::super::Foundation::BSTR, options: FsrmEnumOptions) -> ::windows::core::Result; - fn EnumAutoApplyQuotas(&self, path: &super::super::Foundation::BSTR, options: FsrmEnumOptions) -> ::windows::core::Result; - fn EnumEffectiveQuotas(&self, path: &super::super::Foundation::BSTR, options: FsrmEnumOptions) -> ::windows::core::Result; - fn Scan(&self, strpath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn CreateQuota(&self, path: &::windows::core::BSTR) -> ::windows::core::Result; + fn CreateAutoApplyQuota(&self, quotatemplatename: &::windows::core::BSTR, path: &::windows::core::BSTR) -> ::windows::core::Result; + fn GetQuota(&self, path: &::windows::core::BSTR) -> ::windows::core::Result; + fn GetAutoApplyQuota(&self, path: &::windows::core::BSTR) -> ::windows::core::Result; + fn GetRestrictiveQuota(&self, path: &::windows::core::BSTR) -> ::windows::core::Result; + fn EnumQuotas(&self, path: &::windows::core::BSTR, options: FsrmEnumOptions) -> ::windows::core::Result; + fn EnumAutoApplyQuotas(&self, path: &::windows::core::BSTR, options: FsrmEnumOptions) -> ::windows::core::Result; + fn EnumEffectiveQuotas(&self, path: &::windows::core::BSTR, options: FsrmEnumOptions) -> ::windows::core::Result; + fn Scan(&self, strpath: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn CreateQuotaCollection(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -4311,7 +4311,7 @@ impl IFsrmQuotaManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateQuota, Impl: IFsrmQuotaManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, quota: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateQuota, Impl: IFsrmQuotaManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, quota: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateQuota(::core::mem::transmute(&path)) { @@ -4322,7 +4322,7 @@ impl IFsrmQuotaManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateAutoApplyQuota, Impl: IFsrmQuotaManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, quotatemplatename: ::core::mem::ManuallyDrop, path: ::core::mem::ManuallyDrop, quota: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateAutoApplyQuota, Impl: IFsrmQuotaManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, quotatemplatename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, quota: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateAutoApplyQuota(::core::mem::transmute("atemplatename), ::core::mem::transmute(&path)) { @@ -4333,7 +4333,7 @@ impl IFsrmQuotaManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetQuota, Impl: IFsrmQuotaManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, quota: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetQuota, Impl: IFsrmQuotaManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, quota: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetQuota(::core::mem::transmute(&path)) { @@ -4344,7 +4344,7 @@ impl IFsrmQuotaManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetAutoApplyQuota, Impl: IFsrmQuotaManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, quota: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetAutoApplyQuota, Impl: IFsrmQuotaManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, quota: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetAutoApplyQuota(::core::mem::transmute(&path)) { @@ -4355,7 +4355,7 @@ impl IFsrmQuotaManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetRestrictiveQuota, Impl: IFsrmQuotaManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, quota: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetRestrictiveQuota, Impl: IFsrmQuotaManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, quota: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetRestrictiveQuota(::core::mem::transmute(&path)) { @@ -4366,7 +4366,7 @@ impl IFsrmQuotaManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn EnumQuotas, Impl: IFsrmQuotaManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, options: FsrmEnumOptions, quotas: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn EnumQuotas, Impl: IFsrmQuotaManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, options: FsrmEnumOptions, quotas: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EnumQuotas(::core::mem::transmute(&path), ::core::mem::transmute_copy(&options)) { @@ -4377,7 +4377,7 @@ impl IFsrmQuotaManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn EnumAutoApplyQuotas, Impl: IFsrmQuotaManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, options: FsrmEnumOptions, quotas: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn EnumAutoApplyQuotas, Impl: IFsrmQuotaManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, options: FsrmEnumOptions, quotas: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EnumAutoApplyQuotas(::core::mem::transmute(&path), ::core::mem::transmute_copy(&options)) { @@ -4388,7 +4388,7 @@ impl IFsrmQuotaManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn EnumEffectiveQuotas, Impl: IFsrmQuotaManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, options: FsrmEnumOptions, quotas: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn EnumEffectiveQuotas, Impl: IFsrmQuotaManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, options: FsrmEnumOptions, quotas: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EnumEffectiveQuotas(::core::mem::transmute(&path), ::core::mem::transmute_copy(&options)) { @@ -4399,7 +4399,7 @@ impl IFsrmQuotaManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Scan, Impl: IFsrmQuotaManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Scan, Impl: IFsrmQuotaManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Scan(::core::mem::transmute(&strpath)).into() @@ -4437,14 +4437,14 @@ impl IFsrmQuotaManager_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFsrmQuotaManagerEx_Impl: Sized + super::super::System::Com::IDispatch_Impl + IFsrmQuotaManager_Impl { - fn IsAffectedByQuota(&self, path: &super::super::Foundation::BSTR, options: FsrmEnumOptions) -> ::windows::core::Result; + fn IsAffectedByQuota(&self, path: &::windows::core::BSTR, options: FsrmEnumOptions) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFsrmQuotaManagerEx {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFsrmQuotaManagerEx_Vtbl { pub const fn new, Impl: IFsrmQuotaManagerEx_Impl, const OFFSET: isize>() -> IFsrmQuotaManagerEx_Vtbl { - unsafe extern "system" fn IsAffectedByQuota, Impl: IFsrmQuotaManagerEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, options: FsrmEnumOptions, affected: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn IsAffectedByQuota, Impl: IFsrmQuotaManagerEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, options: FsrmEnumOptions, affected: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.IsAffectedByQuota(::core::mem::transmute(&path), ::core::mem::transmute_copy(&options)) { @@ -4463,19 +4463,19 @@ impl IFsrmQuotaManagerEx_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFsrmQuotaObject_Impl: Sized + super::super::System::Com::IDispatch_Impl + IFsrmObject_Impl + IFsrmQuotaBase_Impl { - fn Path(&self) -> ::windows::core::Result; - fn UserSid(&self) -> ::windows::core::Result; - fn UserAccount(&self) -> ::windows::core::Result; - fn SourceTemplateName(&self) -> ::windows::core::Result; + fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn UserSid(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn UserAccount(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SourceTemplateName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn MatchesSourceTemplate(&self) -> ::windows::core::Result; - fn ApplyTemplate(&self, quotatemplatename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ApplyTemplate(&self, quotatemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFsrmQuotaObject {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFsrmQuotaObject_Vtbl { pub const fn new, Impl: IFsrmQuotaObject_Impl, const OFFSET: isize>() -> IFsrmQuotaObject_Vtbl { - unsafe extern "system" fn Path, Impl: IFsrmQuotaObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Path, Impl: IFsrmQuotaObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Path() { @@ -4486,7 +4486,7 @@ impl IFsrmQuotaObject_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn UserSid, Impl: IFsrmQuotaObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, usersid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UserSid, Impl: IFsrmQuotaObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, usersid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UserSid() { @@ -4497,7 +4497,7 @@ impl IFsrmQuotaObject_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn UserAccount, Impl: IFsrmQuotaObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, useraccount: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UserAccount, Impl: IFsrmQuotaObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, useraccount: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UserAccount() { @@ -4508,7 +4508,7 @@ impl IFsrmQuotaObject_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SourceTemplateName, Impl: IFsrmQuotaObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, quotatemplatename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SourceTemplateName, Impl: IFsrmQuotaObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, quotatemplatename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SourceTemplateName() { @@ -4530,7 +4530,7 @@ impl IFsrmQuotaObject_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ApplyTemplate, Impl: IFsrmQuotaObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, quotatemplatename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ApplyTemplate, Impl: IFsrmQuotaObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, quotatemplatename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ApplyTemplate(::core::mem::transmute("atemplatename)).into() @@ -4551,9 +4551,9 @@ impl IFsrmQuotaObject_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFsrmQuotaTemplate_Impl: Sized + super::super::System::Com::IDispatch_Impl + IFsrmObject_Impl + IFsrmQuotaBase_Impl { - fn Name(&self) -> ::windows::core::Result; - fn SetName(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn CopyTemplate(&self, quotatemplatename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn CopyTemplate(&self, quotatemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn CommitAndUpdateDerived(&self, commitoptions: FsrmCommitOptions, applyoptions: FsrmTemplateApplyOptions) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -4561,7 +4561,7 @@ impl ::windows::core::RuntimeName for IFsrmQuotaTemplate {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFsrmQuotaTemplate_Vtbl { pub const fn new, Impl: IFsrmQuotaTemplate_Impl, const OFFSET: isize>() -> IFsrmQuotaTemplate_Vtbl { - unsafe extern "system" fn Name, Impl: IFsrmQuotaTemplate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IFsrmQuotaTemplate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -4572,12 +4572,12 @@ impl IFsrmQuotaTemplate_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetName, Impl: IFsrmQuotaTemplate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: IFsrmQuotaTemplate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&name)).into() } - unsafe extern "system" fn CopyTemplate, Impl: IFsrmQuotaTemplate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, quotatemplatename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn CopyTemplate, Impl: IFsrmQuotaTemplate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, quotatemplatename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CopyTemplate(::core::mem::transmute("atemplatename)).into() @@ -4644,10 +4644,10 @@ impl IFsrmQuotaTemplateImported_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFsrmQuotaTemplateManager_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn CreateTemplate(&self) -> ::windows::core::Result; - fn GetTemplate(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetTemplate(&self, name: &::windows::core::BSTR) -> ::windows::core::Result; fn EnumTemplates(&self, options: FsrmEnumOptions) -> ::windows::core::Result; - fn ExportTemplates(&self, quotatemplatenamesarray: *const super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn ImportTemplates(&self, serializedquotatemplates: &super::super::Foundation::BSTR, quotatemplatenamesarray: *const super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn ExportTemplates(&self, quotatemplatenamesarray: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<::windows::core::BSTR>; + fn ImportTemplates(&self, serializedquotatemplates: &::windows::core::BSTR, quotatemplatenamesarray: *const super::super::System::Com::VARIANT) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFsrmQuotaTemplateManager {} @@ -4665,7 +4665,7 @@ impl IFsrmQuotaTemplateManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetTemplate, Impl: IFsrmQuotaTemplateManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, quotatemplate: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetTemplate, Impl: IFsrmQuotaTemplateManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, quotatemplate: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetTemplate(::core::mem::transmute(&name)) { @@ -4687,7 +4687,7 @@ impl IFsrmQuotaTemplateManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ExportTemplates, Impl: IFsrmQuotaTemplateManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, quotatemplatenamesarray: *const super::super::System::Com::VARIANT, serializedquotatemplates: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExportTemplates, Impl: IFsrmQuotaTemplateManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, quotatemplatenamesarray: *const super::super::System::Com::VARIANT, serializedquotatemplates: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ExportTemplates(::core::mem::transmute_copy("atemplatenamesarray)) { @@ -4698,7 +4698,7 @@ impl IFsrmQuotaTemplateManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ImportTemplates, Impl: IFsrmQuotaTemplateManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, serializedquotatemplates: ::core::mem::ManuallyDrop, quotatemplatenamesarray: *const super::super::System::Com::VARIANT, quotatemplates: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn ImportTemplates, Impl: IFsrmQuotaTemplateManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, serializedquotatemplates: ::core::mem::ManuallyDrop<::windows::core::BSTR>, quotatemplatenamesarray: *const super::super::System::Com::VARIANT, quotatemplates: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ImportTemplates(::core::mem::transmute(&serializedquotatemplates), ::core::mem::transmute_copy("atemplatenamesarray)) { @@ -4725,11 +4725,11 @@ impl IFsrmQuotaTemplateManager_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFsrmReport_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn Type(&self) -> ::windows::core::Result; - fn Name(&self) -> ::windows::core::Result; - fn SetName(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Description(&self) -> ::windows::core::Result; - fn SetDescription(&self, description: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn LastGeneratedFileNamePrefix(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn LastGeneratedFileNamePrefix(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetFilter(&self, filter: FsrmReportFilter) -> ::windows::core::Result; fn SetFilter(&self, filter: FsrmReportFilter, filtervalue: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn Delete(&self) -> ::windows::core::Result<()>; @@ -4750,7 +4750,7 @@ impl IFsrmReport_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Name, Impl: IFsrmReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IFsrmReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -4761,12 +4761,12 @@ impl IFsrmReport_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetName, Impl: IFsrmReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: IFsrmReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&name)).into() } - unsafe extern "system" fn Description, Impl: IFsrmReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IFsrmReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -4777,12 +4777,12 @@ impl IFsrmReport_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription, Impl: IFsrmReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDescription, Impl: IFsrmReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDescription(::core::mem::transmute(&description)).into() } - unsafe extern "system" fn LastGeneratedFileNamePrefix, Impl: IFsrmReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, prefix: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LastGeneratedFileNamePrefix, Impl: IFsrmReport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, prefix: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LastGeneratedFileNamePrefix() { @@ -4833,18 +4833,18 @@ impl IFsrmReport_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFsrmReportJob_Impl: Sized + super::super::System::Com::IDispatch_Impl + IFsrmObject_Impl { - fn Task(&self) -> ::windows::core::Result; - fn SetTask(&self, taskname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Task(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetTask(&self, taskname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn NamespaceRoots(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; fn SetNamespaceRoots(&self, namespaceroots: *const super::super::System::Com::SAFEARRAY) -> ::windows::core::Result<()>; fn Formats(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; fn SetFormats(&self, formats: *const super::super::System::Com::SAFEARRAY) -> ::windows::core::Result<()>; - fn MailTo(&self) -> ::windows::core::Result; - fn SetMailTo(&self, mailto: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn MailTo(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetMailTo(&self, mailto: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn RunningStatus(&self) -> ::windows::core::Result; fn LastRun(&self) -> ::windows::core::Result; - fn LastError(&self) -> ::windows::core::Result; - fn LastGeneratedInDirectory(&self) -> ::windows::core::Result; + fn LastError(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn LastGeneratedInDirectory(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn EnumReports(&self) -> ::windows::core::Result; fn CreateReport(&self, reporttype: FsrmReportType) -> ::windows::core::Result; fn Run(&self, context: FsrmReportGenerationContext) -> ::windows::core::Result<()>; @@ -4856,7 +4856,7 @@ impl ::windows::core::RuntimeName for IFsrmReportJob {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFsrmReportJob_Vtbl { pub const fn new, Impl: IFsrmReportJob_Impl, const OFFSET: isize>() -> IFsrmReportJob_Vtbl { - unsafe extern "system" fn Task, Impl: IFsrmReportJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, taskname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Task, Impl: IFsrmReportJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, taskname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Task() { @@ -4867,7 +4867,7 @@ impl IFsrmReportJob_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetTask, Impl: IFsrmReportJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, taskname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetTask, Impl: IFsrmReportJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, taskname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetTask(::core::mem::transmute(&taskname)).into() @@ -4904,7 +4904,7 @@ impl IFsrmReportJob_Vtbl { let this = (*this).get_impl(); this.SetFormats(::core::mem::transmute_copy(&formats)).into() } - unsafe extern "system" fn MailTo, Impl: IFsrmReportJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailto: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn MailTo, Impl: IFsrmReportJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailto: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.MailTo() { @@ -4915,7 +4915,7 @@ impl IFsrmReportJob_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetMailTo, Impl: IFsrmReportJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailto: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetMailTo, Impl: IFsrmReportJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailto: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetMailTo(::core::mem::transmute(&mailto)).into() @@ -4942,7 +4942,7 @@ impl IFsrmReportJob_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn LastError, Impl: IFsrmReportJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lasterror: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LastError, Impl: IFsrmReportJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lasterror: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LastError() { @@ -4953,7 +4953,7 @@ impl IFsrmReportJob_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn LastGeneratedInDirectory, Impl: IFsrmReportJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LastGeneratedInDirectory, Impl: IFsrmReportJob_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LastGeneratedInDirectory() { @@ -5036,9 +5036,9 @@ impl IFsrmReportJob_Vtbl { pub trait IFsrmReportManager_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn EnumReportJobs(&self, options: FsrmEnumOptions) -> ::windows::core::Result; fn CreateReportJob(&self) -> ::windows::core::Result; - fn GetReportJob(&self, taskname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetOutputDirectory(&self, context: FsrmReportGenerationContext) -> ::windows::core::Result; - fn SetOutputDirectory(&self, context: FsrmReportGenerationContext, path: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetReportJob(&self, taskname: &::windows::core::BSTR) -> ::windows::core::Result; + fn GetOutputDirectory(&self, context: FsrmReportGenerationContext) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetOutputDirectory(&self, context: FsrmReportGenerationContext, path: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn IsFilterValidForReportType(&self, reporttype: FsrmReportType, filter: FsrmReportFilter) -> ::windows::core::Result; fn GetDefaultFilter(&self, reporttype: FsrmReportType, filter: FsrmReportFilter) -> ::windows::core::Result; fn SetDefaultFilter(&self, reporttype: FsrmReportType, filter: FsrmReportFilter, filtervalue: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; @@ -5072,7 +5072,7 @@ impl IFsrmReportManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetReportJob, Impl: IFsrmReportManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, taskname: ::core::mem::ManuallyDrop, reportjob: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetReportJob, Impl: IFsrmReportManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, taskname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, reportjob: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetReportJob(::core::mem::transmute(&taskname)) { @@ -5083,7 +5083,7 @@ impl IFsrmReportManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetOutputDirectory, Impl: IFsrmReportManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, context: FsrmReportGenerationContext, path: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetOutputDirectory, Impl: IFsrmReportManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, context: FsrmReportGenerationContext, path: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetOutputDirectory(::core::mem::transmute_copy(&context)) { @@ -5094,7 +5094,7 @@ impl IFsrmReportManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetOutputDirectory, Impl: IFsrmReportManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, context: FsrmReportGenerationContext, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetOutputDirectory, Impl: IFsrmReportManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, context: FsrmReportGenerationContext, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetOutputDirectory(::core::mem::transmute_copy(&context), ::core::mem::transmute(&path)).into() @@ -5163,9 +5163,9 @@ impl IFsrmReportManager_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFsrmReportScheduler_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn VerifyNamespaces(&self, namespacessafearray: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn CreateScheduleTask(&self, taskname: &super::super::Foundation::BSTR, namespacessafearray: *const super::super::System::Com::VARIANT, serializedtask: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ModifyScheduleTask(&self, taskname: &super::super::Foundation::BSTR, namespacessafearray: *const super::super::System::Com::VARIANT, serializedtask: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn DeleteScheduleTask(&self, taskname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn CreateScheduleTask(&self, taskname: &::windows::core::BSTR, namespacessafearray: *const super::super::System::Com::VARIANT, serializedtask: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ModifyScheduleTask(&self, taskname: &::windows::core::BSTR, namespacessafearray: *const super::super::System::Com::VARIANT, serializedtask: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn DeleteScheduleTask(&self, taskname: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFsrmReportScheduler {} @@ -5177,17 +5177,17 @@ impl IFsrmReportScheduler_Vtbl { let this = (*this).get_impl(); this.VerifyNamespaces(::core::mem::transmute_copy(&namespacessafearray)).into() } - unsafe extern "system" fn CreateScheduleTask, Impl: IFsrmReportScheduler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, taskname: ::core::mem::ManuallyDrop, namespacessafearray: *const super::super::System::Com::VARIANT, serializedtask: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateScheduleTask, Impl: IFsrmReportScheduler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, taskname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, namespacessafearray: *const super::super::System::Com::VARIANT, serializedtask: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CreateScheduleTask(::core::mem::transmute(&taskname), ::core::mem::transmute_copy(&namespacessafearray), ::core::mem::transmute(&serializedtask)).into() } - unsafe extern "system" fn ModifyScheduleTask, Impl: IFsrmReportScheduler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, taskname: ::core::mem::ManuallyDrop, namespacessafearray: *const super::super::System::Com::VARIANT, serializedtask: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ModifyScheduleTask, Impl: IFsrmReportScheduler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, taskname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, namespacessafearray: *const super::super::System::Com::VARIANT, serializedtask: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ModifyScheduleTask(::core::mem::transmute(&taskname), ::core::mem::transmute_copy(&namespacessafearray), ::core::mem::transmute(&serializedtask)).into() } - unsafe extern "system" fn DeleteScheduleTask, Impl: IFsrmReportScheduler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, taskname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteScheduleTask, Impl: IFsrmReportScheduler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, taskname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteScheduleTask(::core::mem::transmute(&taskname)).into() @@ -5206,11 +5206,11 @@ impl IFsrmReportScheduler_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFsrmRule_Impl: Sized + super::super::System::Com::IDispatch_Impl + IFsrmObject_Impl { - fn Name(&self) -> ::windows::core::Result; - fn SetName(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn RuleType(&self) -> ::windows::core::Result; - fn ModuleDefinitionName(&self) -> ::windows::core::Result; - fn SetModuleDefinitionName(&self, moduledefinitionname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ModuleDefinitionName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetModuleDefinitionName(&self, moduledefinitionname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn NamespaceRoots(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; fn SetNamespaceRoots(&self, namespaceroots: *const super::super::System::Com::SAFEARRAY) -> ::windows::core::Result<()>; fn RuleFlags(&self) -> ::windows::core::Result; @@ -5224,7 +5224,7 @@ impl ::windows::core::RuntimeName for IFsrmRule {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFsrmRule_Vtbl { pub const fn new, Impl: IFsrmRule_Impl, const OFFSET: isize>() -> IFsrmRule_Vtbl { - unsafe extern "system" fn Name, Impl: IFsrmRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IFsrmRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -5235,7 +5235,7 @@ impl IFsrmRule_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetName, Impl: IFsrmRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: IFsrmRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&name)).into() @@ -5251,7 +5251,7 @@ impl IFsrmRule_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ModuleDefinitionName, Impl: IFsrmRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, moduledefinitionname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ModuleDefinitionName, Impl: IFsrmRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, moduledefinitionname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ModuleDefinitionName() { @@ -5262,7 +5262,7 @@ impl IFsrmRule_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetModuleDefinitionName, Impl: IFsrmRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, moduledefinitionname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetModuleDefinitionName, Impl: IFsrmRule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, moduledefinitionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetModuleDefinitionName(::core::mem::transmute(&moduledefinitionname)).into() @@ -5348,17 +5348,17 @@ impl IFsrmRule_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFsrmSetting_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn SmtpServer(&self) -> ::windows::core::Result; - fn SetSmtpServer(&self, smtpserver: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn MailFrom(&self) -> ::windows::core::Result; - fn SetMailFrom(&self, mailfrom: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn AdminEmail(&self) -> ::windows::core::Result; - fn SetAdminEmail(&self, adminemail: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SmtpServer(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetSmtpServer(&self, smtpserver: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn MailFrom(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetMailFrom(&self, mailfrom: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn AdminEmail(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetAdminEmail(&self, adminemail: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn DisableCommandLine(&self) -> ::windows::core::Result; fn SetDisableCommandLine(&self, disablecommandline: i16) -> ::windows::core::Result<()>; fn EnableScreeningAudit(&self) -> ::windows::core::Result; fn SetEnableScreeningAudit(&self, enablescreeningaudit: i16) -> ::windows::core::Result<()>; - fn EmailTest(&self, mailto: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn EmailTest(&self, mailto: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SetActionRunLimitInterval(&self, actiontype: FsrmActionType, delaytimeminutes: i32) -> ::windows::core::Result<()>; fn GetActionRunLimitInterval(&self, actiontype: FsrmActionType) -> ::windows::core::Result; } @@ -5367,7 +5367,7 @@ impl ::windows::core::RuntimeName for IFsrmSetting {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFsrmSetting_Vtbl { pub const fn new, Impl: IFsrmSetting_Impl, const OFFSET: isize>() -> IFsrmSetting_Vtbl { - unsafe extern "system" fn SmtpServer, Impl: IFsrmSetting_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, smtpserver: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SmtpServer, Impl: IFsrmSetting_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, smtpserver: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SmtpServer() { @@ -5378,12 +5378,12 @@ impl IFsrmSetting_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSmtpServer, Impl: IFsrmSetting_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, smtpserver: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSmtpServer, Impl: IFsrmSetting_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, smtpserver: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSmtpServer(::core::mem::transmute(&smtpserver)).into() } - unsafe extern "system" fn MailFrom, Impl: IFsrmSetting_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailfrom: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn MailFrom, Impl: IFsrmSetting_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailfrom: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.MailFrom() { @@ -5394,12 +5394,12 @@ impl IFsrmSetting_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetMailFrom, Impl: IFsrmSetting_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailfrom: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetMailFrom, Impl: IFsrmSetting_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailfrom: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetMailFrom(::core::mem::transmute(&mailfrom)).into() } - unsafe extern "system" fn AdminEmail, Impl: IFsrmSetting_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, adminemail: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn AdminEmail, Impl: IFsrmSetting_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, adminemail: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AdminEmail() { @@ -5410,7 +5410,7 @@ impl IFsrmSetting_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetAdminEmail, Impl: IFsrmSetting_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, adminemail: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetAdminEmail, Impl: IFsrmSetting_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, adminemail: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetAdminEmail(::core::mem::transmute(&adminemail)).into() @@ -5447,7 +5447,7 @@ impl IFsrmSetting_Vtbl { let this = (*this).get_impl(); this.SetEnableScreeningAudit(::core::mem::transmute_copy(&enablescreeningaudit)).into() } - unsafe extern "system" fn EmailTest, Impl: IFsrmSetting_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailto: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn EmailTest, Impl: IFsrmSetting_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mailto: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.EmailTest(::core::mem::transmute(&mailto)).into() diff --git a/crates/libs/windows/src/Windows/Win32/Storage/FileServerResourceManager/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/FileServerResourceManager/mod.rs index f76b37a53b..13228028f6 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/FileServerResourceManager/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/FileServerResourceManager/mod.rs @@ -77,16 +77,9 @@ pub struct DIFsrmClassificationEvents_Vtbl { pub struct IFsrmAccessDeniedRemediationClient(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IFsrmAccessDeniedRemediationClient { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Show<'a, P0, P1, P2>(&self, parentwnd: usize, accesspath: P0, errortype: AdrClientErrorType, flags: i32, windowtitle: P1, windowmessage: P2) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn Show(&self, parentwnd: usize, accesspath: &::windows::core::BSTR, errortype: AdrClientErrorType, flags: i32, windowtitle: &::windows::core::BSTR, windowmessage: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Show)(::windows::core::Interface::as_raw(self), parentwnd, accesspath.into().abi(), errortype, flags, windowtitle.into().abi(), windowmessage.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Show)(::windows::core::Interface::as_raw(self), parentwnd, ::core::mem::transmute_copy(accesspath), errortype, flags, ::core::mem::transmute_copy(windowtitle), ::core::mem::transmute_copy(windowmessage), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -155,10 +148,7 @@ unsafe impl ::windows::core::Interface for IFsrmAccessDeniedRemediationClient { #[doc(hidden)] pub struct IFsrmAccessDeniedRemediationClient_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Show: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, parentwnd: usize, accesspath: ::core::mem::ManuallyDrop, errortype: AdrClientErrorType, flags: i32, windowtitle: ::core::mem::ManuallyDrop, windowmessage: ::core::mem::ManuallyDrop, result: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Show: usize, + pub Show: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, parentwnd: usize, accesspath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, errortype: AdrClientErrorType, flags: i32, windowtitle: ::core::mem::ManuallyDrop<::windows::core::BSTR>, windowmessage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, result: *mut i32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Storage_FileServerResourceManager\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -281,33 +271,19 @@ impl IFsrmActionCommand { pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Delete)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExecutablePath(&self) -> ::windows::core::Result { + pub unsafe fn ExecutablePath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ExecutablePath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ExecutablePath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetExecutablePath<'a, P0>(&self, executablepath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetExecutablePath)(::windows::core::Interface::as_raw(self), executablepath.into().abi()).ok() + pub unsafe fn SetExecutablePath(&self, executablepath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetExecutablePath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(executablepath)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Arguments(&self) -> ::windows::core::Result { + pub unsafe fn Arguments(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Arguments)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Arguments)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetArguments<'a, P0>(&self, arguments: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetArguments)(::windows::core::Interface::as_raw(self), arguments.into().abi()).ok() + pub unsafe fn SetArguments(&self, arguments: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetArguments)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(arguments)).ok() } pub unsafe fn Account(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -316,19 +292,12 @@ impl IFsrmActionCommand { pub unsafe fn SetAccount(&self, account: FsrmAccountType) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetAccount)(::windows::core::Interface::as_raw(self), account).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn WorkingDirectory(&self) -> ::windows::core::Result { + pub unsafe fn WorkingDirectory(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).WorkingDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).WorkingDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetWorkingDirectory<'a, P0>(&self, workingdirectory: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetWorkingDirectory)(::windows::core::Interface::as_raw(self), workingdirectory.into().abi()).ok() + pub unsafe fn SetWorkingDirectory(&self, workingdirectory: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetWorkingDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(workingdirectory)).ok() } pub unsafe fn MonitorCommand(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -436,32 +405,14 @@ unsafe impl ::windows::core::Interface for IFsrmActionCommand { #[doc(hidden)] pub struct IFsrmActionCommand_Vtbl { pub base__: IFsrmAction_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub ExecutablePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, executablepath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ExecutablePath: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetExecutablePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, executablepath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetExecutablePath: usize, - #[cfg(feature = "Win32_Foundation")] - pub Arguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, arguments: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Arguments: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, arguments: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetArguments: usize, + pub ExecutablePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, executablepath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetExecutablePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, executablepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Arguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, arguments: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, arguments: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Account: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, account: *mut FsrmAccountType) -> ::windows::core::HRESULT, pub SetAccount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, account: FsrmAccountType) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub WorkingDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, workingdirectory: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - WorkingDirectory: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetWorkingDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, workingdirectory: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetWorkingDirectory: usize, + pub WorkingDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, workingdirectory: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetWorkingDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, workingdirectory: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub MonitorCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, monitorcommand: *mut i16) -> ::windows::core::HRESULT, pub SetMonitorCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, monitorcommand: i16) -> ::windows::core::HRESULT, pub KillTimeOut: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, minutes: *mut i32) -> ::windows::core::HRESULT, @@ -493,103 +444,54 @@ impl IFsrmActionEmail { pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Delete)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MailFrom(&self) -> ::windows::core::Result { + pub unsafe fn MailFrom(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).MailFrom)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).MailFrom)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMailFrom<'a, P0>(&self, mailfrom: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetMailFrom)(::windows::core::Interface::as_raw(self), mailfrom.into().abi()).ok() + pub unsafe fn SetMailFrom(&self, mailfrom: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetMailFrom)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mailfrom)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MailReplyTo(&self) -> ::windows::core::Result { + pub unsafe fn MailReplyTo(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).MailReplyTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).MailReplyTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMailReplyTo<'a, P0>(&self, mailreplyto: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetMailReplyTo)(::windows::core::Interface::as_raw(self), mailreplyto.into().abi()).ok() + pub unsafe fn SetMailReplyTo(&self, mailreplyto: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetMailReplyTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mailreplyto)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MailTo(&self) -> ::windows::core::Result { + pub unsafe fn MailTo(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).MailTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).MailTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMailTo<'a, P0>(&self, mailto: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetMailTo)(::windows::core::Interface::as_raw(self), mailto.into().abi()).ok() + pub unsafe fn SetMailTo(&self, mailto: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetMailTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mailto)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MailCc(&self) -> ::windows::core::Result { + pub unsafe fn MailCc(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).MailCc)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).MailCc)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMailCc<'a, P0>(&self, mailcc: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetMailCc)(::windows::core::Interface::as_raw(self), mailcc.into().abi()).ok() + pub unsafe fn SetMailCc(&self, mailcc: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetMailCc)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mailcc)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MailBcc(&self) -> ::windows::core::Result { + pub unsafe fn MailBcc(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).MailBcc)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).MailBcc)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMailBcc<'a, P0>(&self, mailbcc: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetMailBcc)(::windows::core::Interface::as_raw(self), mailbcc.into().abi()).ok() + pub unsafe fn SetMailBcc(&self, mailbcc: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetMailBcc)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mailbcc)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MailSubject(&self) -> ::windows::core::Result { + pub unsafe fn MailSubject(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).MailSubject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).MailSubject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMailSubject<'a, P0>(&self, mailsubject: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetMailSubject)(::windows::core::Interface::as_raw(self), mailsubject.into().abi()).ok() + pub unsafe fn SetMailSubject(&self, mailsubject: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetMailSubject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mailsubject)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MessageText(&self) -> ::windows::core::Result { + pub unsafe fn MessageText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).MessageText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).MessageText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMessageText<'a, P0>(&self, messagetext: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetMessageText)(::windows::core::Interface::as_raw(self), messagetext.into().abi()).ok() + pub unsafe fn SetMessageText(&self, messagetext: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetMessageText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(messagetext)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -676,62 +578,20 @@ unsafe impl ::windows::core::Interface for IFsrmActionEmail { #[doc(hidden)] pub struct IFsrmActionEmail_Vtbl { pub base__: IFsrmAction_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub MailFrom: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailfrom: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MailFrom: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetMailFrom: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailfrom: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetMailFrom: usize, - #[cfg(feature = "Win32_Foundation")] - pub MailReplyTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailreplyto: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MailReplyTo: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetMailReplyTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailreplyto: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetMailReplyTo: usize, - #[cfg(feature = "Win32_Foundation")] - pub MailTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailto: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MailTo: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetMailTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailto: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetMailTo: usize, - #[cfg(feature = "Win32_Foundation")] - pub MailCc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailcc: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MailCc: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetMailCc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailcc: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetMailCc: usize, - #[cfg(feature = "Win32_Foundation")] - pub MailBcc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailbcc: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MailBcc: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetMailBcc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailbcc: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetMailBcc: usize, - #[cfg(feature = "Win32_Foundation")] - pub MailSubject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailsubject: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MailSubject: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetMailSubject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailsubject: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetMailSubject: usize, - #[cfg(feature = "Win32_Foundation")] - pub MessageText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, messagetext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MessageText: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetMessageText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, messagetext: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetMessageText: usize, + pub MailFrom: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailfrom: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetMailFrom: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailfrom: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub MailReplyTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailreplyto: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetMailReplyTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailreplyto: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub MailTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailto: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetMailTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailto: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub MailCc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailcc: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetMailCc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailcc: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub MailBcc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailbcc: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetMailBcc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailbcc: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub MailSubject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailsubject: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetMailSubject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailsubject: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub MessageText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, messagetext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetMessageText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, messagetext: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Storage_FileServerResourceManager\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -757,103 +617,54 @@ impl IFsrmActionEmail2 { pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.Delete)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MailFrom(&self) -> ::windows::core::Result { + pub unsafe fn MailFrom(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.MailFrom)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.MailFrom)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMailFrom<'a, P0>(&self, mailfrom: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetMailFrom)(::windows::core::Interface::as_raw(self), mailfrom.into().abi()).ok() + pub unsafe fn SetMailFrom(&self, mailfrom: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetMailFrom)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mailfrom)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MailReplyTo(&self) -> ::windows::core::Result { + pub unsafe fn MailReplyTo(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.MailReplyTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.MailReplyTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMailReplyTo<'a, P0>(&self, mailreplyto: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetMailReplyTo)(::windows::core::Interface::as_raw(self), mailreplyto.into().abi()).ok() + pub unsafe fn SetMailReplyTo(&self, mailreplyto: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetMailReplyTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mailreplyto)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MailTo(&self) -> ::windows::core::Result { + pub unsafe fn MailTo(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.MailTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.MailTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMailTo<'a, P0>(&self, mailto: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetMailTo)(::windows::core::Interface::as_raw(self), mailto.into().abi()).ok() + pub unsafe fn SetMailTo(&self, mailto: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetMailTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mailto)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MailCc(&self) -> ::windows::core::Result { + pub unsafe fn MailCc(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.MailCc)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.MailCc)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMailCc<'a, P0>(&self, mailcc: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetMailCc)(::windows::core::Interface::as_raw(self), mailcc.into().abi()).ok() + pub unsafe fn SetMailCc(&self, mailcc: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetMailCc)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mailcc)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MailBcc(&self) -> ::windows::core::Result { + pub unsafe fn MailBcc(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.MailBcc)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.MailBcc)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMailBcc<'a, P0>(&self, mailbcc: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetMailBcc)(::windows::core::Interface::as_raw(self), mailbcc.into().abi()).ok() + pub unsafe fn SetMailBcc(&self, mailbcc: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetMailBcc)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mailbcc)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MailSubject(&self) -> ::windows::core::Result { + pub unsafe fn MailSubject(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.MailSubject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.MailSubject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMailSubject<'a, P0>(&self, mailsubject: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetMailSubject)(::windows::core::Interface::as_raw(self), mailsubject.into().abi()).ok() + pub unsafe fn SetMailSubject(&self, mailsubject: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetMailSubject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mailsubject)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MessageText(&self) -> ::windows::core::Result { + pub unsafe fn MessageText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.MessageText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.MessageText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMessageText<'a, P0>(&self, messagetext: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetMessageText)(::windows::core::Interface::as_raw(self), messagetext.into().abi()).ok() + pub unsafe fn SetMessageText(&self, messagetext: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetMessageText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(messagetext)).ok() } pub unsafe fn AttachmentFileListSize(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -999,19 +810,12 @@ impl IFsrmActionEventLog { pub unsafe fn SetEventType(&self, eventtype: FsrmEventType) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetEventType)(::windows::core::Interface::as_raw(self), eventtype).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MessageText(&self) -> ::windows::core::Result { + pub unsafe fn MessageText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).MessageText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).MessageText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMessageText<'a, P0>(&self, messagetext: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetMessageText)(::windows::core::Interface::as_raw(self), messagetext.into().abi()).ok() + pub unsafe fn SetMessageText(&self, messagetext: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetMessageText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(messagetext)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1100,14 +904,8 @@ pub struct IFsrmActionEventLog_Vtbl { pub base__: IFsrmAction_Vtbl, pub EventType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventtype: *mut FsrmEventType) -> ::windows::core::HRESULT, pub SetEventType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventtype: FsrmEventType) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub MessageText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, messagetext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MessageText: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetMessageText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, messagetext: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetMessageText: usize, + pub MessageText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, messagetext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetMessageText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, messagetext: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Storage_FileServerResourceManager\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1144,19 +942,12 @@ impl IFsrmActionReport { pub unsafe fn SetReportTypes(&self, reporttypes: &super::super::System::Com::SAFEARRAY) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetReportTypes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(reporttypes)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MailTo(&self) -> ::windows::core::Result { + pub unsafe fn MailTo(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).MailTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).MailTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMailTo<'a, P0>(&self, mailto: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetMailTo)(::windows::core::Interface::as_raw(self), mailto.into().abi()).ok() + pub unsafe fn SetMailTo(&self, mailto: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetMailTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mailto)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1251,14 +1042,8 @@ pub struct IFsrmActionReport_Vtbl { pub SetReportTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reporttypes: *const super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] SetReportTypes: usize, - #[cfg(feature = "Win32_Foundation")] - pub MailTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailto: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MailTo: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetMailTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailto: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetMailTo: usize, + pub MailTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailto: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetMailTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailto: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Storage_FileServerResourceManager\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1270,19 +1055,12 @@ impl IFsrmAutoApplyQuota { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, description: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.SetDescription)(::windows::core::Interface::as_raw(self), description.into().abi()).ok() + pub unsafe fn SetDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(description)).ok() } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.Delete)(::windows::core::Interface::as_raw(self)).ok() @@ -1338,41 +1116,28 @@ impl IFsrmAutoApplyQuota { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.EnumThresholdActions)(::windows::core::Interface::as_raw(self), threshold, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Path(&self) -> ::windows::core::Result { + pub unsafe fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserSid(&self) -> ::windows::core::Result { + pub unsafe fn UserSid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.UserSid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.UserSid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserAccount(&self) -> ::windows::core::Result { + pub unsafe fn UserAccount(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.UserAccount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.UserAccount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SourceTemplateName(&self) -> ::windows::core::Result { + pub unsafe fn SourceTemplateName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.SourceTemplateName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.SourceTemplateName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn MatchesSourceTemplate(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.MatchesSourceTemplate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ApplyTemplate<'a, P0>(&self, quotatemplatename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.ApplyTemplate)(::windows::core::Interface::as_raw(self), quotatemplatename.into().abi()).ok() + pub unsafe fn ApplyTemplate(&self, quotatemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.ApplyTemplate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(quotatemplatename)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1549,19 +1314,12 @@ impl IFsrmClassificationManager { pub unsafe fn SetLogging(&self, logging: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetLogging)(::windows::core::Interface::as_raw(self), logging).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassificationReportMailTo(&self) -> ::windows::core::Result { + pub unsafe fn ClassificationReportMailTo(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ClassificationReportMailTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ClassificationReportMailTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetClassificationReportMailTo<'a, P0>(&self, mailto: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetClassificationReportMailTo)(::windows::core::Interface::as_raw(self), mailto.into().abi()).ok() + pub unsafe fn SetClassificationReportMailTo(&self, mailto: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetClassificationReportMailTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mailto)).ok() } pub unsafe fn ClassificationReportEnabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1570,17 +1328,13 @@ impl IFsrmClassificationManager { pub unsafe fn SetClassificationReportEnabled(&self, reportenabled: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetClassificationReportEnabled)(::windows::core::Interface::as_raw(self), reportenabled).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassificationLastReportPathWithoutExtension(&self) -> ::windows::core::Result { + pub unsafe fn ClassificationLastReportPathWithoutExtension(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ClassificationLastReportPathWithoutExtension)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ClassificationLastReportPathWithoutExtension)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassificationLastError(&self) -> ::windows::core::Result { + pub unsafe fn ClassificationLastError(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ClassificationLastError)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ClassificationLastError)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn ClassificationRunningStatus(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1598,14 +1352,11 @@ impl IFsrmClassificationManager { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CreatePropertyDefinition)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetPropertyDefinition<'a, P0>(&self, propertyname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetPropertyDefinition(&self, propertyname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetPropertyDefinition)(::windows::core::Interface::as_raw(self), propertyname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetPropertyDefinition)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(propertyname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1619,14 +1370,11 @@ impl IFsrmClassificationManager { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CreateRule)(::windows::core::Interface::as_raw(self), ruletype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetRule<'a, P0>(&self, rulename: P0, ruletype: FsrmRuleType) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetRule(&self, rulename: &::windows::core::BSTR, ruletype: FsrmRuleType) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetRule)(::windows::core::Interface::as_raw(self), rulename.into().abi(), ruletype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetRule)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(rulename), ruletype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1640,22 +1388,14 @@ impl IFsrmClassificationManager { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CreateModuleDefinition)(::windows::core::Interface::as_raw(self), moduletype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetModuleDefinition<'a, P0>(&self, modulename: P0, moduletype: FsrmPipelineModuleType) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetModuleDefinition(&self, modulename: &::windows::core::BSTR, moduletype: FsrmPipelineModuleType) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetModuleDefinition)(::windows::core::Interface::as_raw(self), modulename.into().abi(), moduletype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetModuleDefinition)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(modulename), moduletype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RunClassification<'a, P0>(&self, context: FsrmReportGenerationContext, reserved: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).RunClassification)(::windows::core::Interface::as_raw(self), context, reserved.into().abi()).ok() + pub unsafe fn RunClassification(&self, context: FsrmReportGenerationContext, reserved: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).RunClassification)(::windows::core::Interface::as_raw(self), context, ::core::mem::transmute_copy(reserved)).ok() } pub unsafe fn WaitForClassificationCompletion(&self, waitseconds: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1664,43 +1404,23 @@ impl IFsrmClassificationManager { pub unsafe fn CancelClassification(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).CancelClassification)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn EnumFileProperties<'a, P0>(&self, filepath: P0, options: FsrmGetFilePropertyOptions) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn EnumFileProperties(&self, filepath: &::windows::core::BSTR, options: FsrmGetFilePropertyOptions) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).EnumFileProperties)(::windows::core::Interface::as_raw(self), filepath.into().abi(), options, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).EnumFileProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(filepath), options, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetFileProperty<'a, P0, P1>(&self, filepath: P0, propertyname: P1, options: FsrmGetFilePropertyOptions) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetFileProperty(&self, filepath: &::windows::core::BSTR, propertyname: &::windows::core::BSTR, options: FsrmGetFilePropertyOptions) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetFileProperty)(::windows::core::Interface::as_raw(self), filepath.into().abi(), propertyname.into().abi(), options, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetFileProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(filepath), ::core::mem::transmute_copy(propertyname), options, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFileProperty<'a, P0, P1, P2>(&self, filepath: P0, propertyname: P1, propertyvalue: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetFileProperty)(::windows::core::Interface::as_raw(self), filepath.into().abi(), propertyname.into().abi(), propertyvalue.into().abi()).ok() + pub unsafe fn SetFileProperty(&self, filepath: &::windows::core::BSTR, propertyname: &::windows::core::BSTR, propertyvalue: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetFileProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(filepath), ::core::mem::transmute_copy(propertyname), ::core::mem::transmute_copy(propertyvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClearFileProperty<'a, P0, P1>(&self, filepath: P0, property: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ClearFileProperty)(::windows::core::Interface::as_raw(self), filepath.into().abi(), property.into().abi()).ok() + pub unsafe fn ClearFileProperty(&self, filepath: &::windows::core::BSTR, property: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ClearFileProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(filepath), ::core::mem::transmute_copy(property)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1779,24 +1499,12 @@ pub struct IFsrmClassificationManager_Vtbl { SetClassificationReportFormats: usize, pub Logging: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, logging: *mut i32) -> ::windows::core::HRESULT, pub SetLogging: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, logging: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ClassificationReportMailTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailto: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ClassificationReportMailTo: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetClassificationReportMailTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailto: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetClassificationReportMailTo: usize, + pub ClassificationReportMailTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailto: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetClassificationReportMailTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailto: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ClassificationReportEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reportenabled: *mut i16) -> ::windows::core::HRESULT, pub SetClassificationReportEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reportenabled: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ClassificationLastReportPathWithoutExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lastreportpath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ClassificationLastReportPathWithoutExtension: usize, - #[cfg(feature = "Win32_Foundation")] - pub ClassificationLastError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lasterror: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ClassificationLastError: usize, + pub ClassificationLastReportPathWithoutExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lastreportpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ClassificationLastError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lasterror: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ClassificationRunningStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, runningstatus: *mut FsrmReportRunningStatus) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub EnumPropertyDefinitions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: FsrmEnumOptions, propertydefinitions: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -1806,9 +1514,9 @@ pub struct IFsrmClassificationManager_Vtbl { pub CreatePropertyDefinition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertydefinition: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] CreatePropertyDefinition: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetPropertyDefinition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop, propertydefinition: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetPropertyDefinition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertydefinition: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetPropertyDefinition: usize, #[cfg(feature = "Win32_System_Com")] pub EnumRules: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ruletype: FsrmRuleType, options: FsrmEnumOptions, rules: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -1818,9 +1526,9 @@ pub struct IFsrmClassificationManager_Vtbl { pub CreateRule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ruletype: FsrmRuleType, rule: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] CreateRule: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetRule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rulename: ::core::mem::ManuallyDrop, ruletype: FsrmRuleType, rule: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetRule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rulename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ruletype: FsrmRuleType, rule: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetRule: usize, #[cfg(feature = "Win32_System_Com")] pub EnumModuleDefinitions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, moduletype: FsrmPipelineModuleType, options: FsrmEnumOptions, moduledefinitions: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -1830,32 +1538,23 @@ pub struct IFsrmClassificationManager_Vtbl { pub CreateModuleDefinition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, moduletype: FsrmPipelineModuleType, moduledefinition: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] CreateModuleDefinition: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetModuleDefinition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, modulename: ::core::mem::ManuallyDrop, moduletype: FsrmPipelineModuleType, moduledefinition: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetModuleDefinition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, modulename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, moduletype: FsrmPipelineModuleType, moduledefinition: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetModuleDefinition: usize, - #[cfg(feature = "Win32_Foundation")] - pub RunClassification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: FsrmReportGenerationContext, reserved: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RunClassification: usize, + pub RunClassification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: FsrmReportGenerationContext, reserved: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub WaitForClassificationCompletion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, waitseconds: i32, completed: *mut i16) -> ::windows::core::HRESULT, pub CancelClassification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub EnumFileProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop, options: FsrmGetFilePropertyOptions, fileproperties: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub EnumFileProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, options: FsrmGetFilePropertyOptions, fileproperties: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] EnumFileProperties: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetFileProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop, propertyname: ::core::mem::ManuallyDrop, options: FsrmGetFilePropertyOptions, property: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetFileProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, options: FsrmGetFilePropertyOptions, property: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetFileProperty: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetFileProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop, propertyname: ::core::mem::ManuallyDrop, propertyvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetFileProperty: usize, - #[cfg(feature = "Win32_Foundation")] - pub ClearFileProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop, property: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ClearFileProperty: usize, + pub SetFileProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ClearFileProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, property: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Storage_FileServerResourceManager\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1881,19 +1580,12 @@ impl IFsrmClassificationManager2 { pub unsafe fn SetLogging(&self, logging: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetLogging)(::windows::core::Interface::as_raw(self), logging).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassificationReportMailTo(&self) -> ::windows::core::Result { + pub unsafe fn ClassificationReportMailTo(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ClassificationReportMailTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ClassificationReportMailTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetClassificationReportMailTo<'a, P0>(&self, mailto: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetClassificationReportMailTo)(::windows::core::Interface::as_raw(self), mailto.into().abi()).ok() + pub unsafe fn SetClassificationReportMailTo(&self, mailto: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetClassificationReportMailTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mailto)).ok() } pub unsafe fn ClassificationReportEnabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1902,17 +1594,13 @@ impl IFsrmClassificationManager2 { pub unsafe fn SetClassificationReportEnabled(&self, reportenabled: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetClassificationReportEnabled)(::windows::core::Interface::as_raw(self), reportenabled).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassificationLastReportPathWithoutExtension(&self) -> ::windows::core::Result { + pub unsafe fn ClassificationLastReportPathWithoutExtension(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ClassificationLastReportPathWithoutExtension)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ClassificationLastReportPathWithoutExtension)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassificationLastError(&self) -> ::windows::core::Result { + pub unsafe fn ClassificationLastError(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ClassificationLastError)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ClassificationLastError)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn ClassificationRunningStatus(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1930,14 +1618,11 @@ impl IFsrmClassificationManager2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.CreatePropertyDefinition)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetPropertyDefinition<'a, P0>(&self, propertyname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetPropertyDefinition(&self, propertyname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetPropertyDefinition)(::windows::core::Interface::as_raw(self), propertyname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetPropertyDefinition)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(propertyname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1951,14 +1636,11 @@ impl IFsrmClassificationManager2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.CreateRule)(::windows::core::Interface::as_raw(self), ruletype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetRule<'a, P0>(&self, rulename: P0, ruletype: FsrmRuleType) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetRule(&self, rulename: &::windows::core::BSTR, ruletype: FsrmRuleType) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetRule)(::windows::core::Interface::as_raw(self), rulename.into().abi(), ruletype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetRule)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(rulename), ruletype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1972,22 +1654,14 @@ impl IFsrmClassificationManager2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.CreateModuleDefinition)(::windows::core::Interface::as_raw(self), moduletype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetModuleDefinition<'a, P0>(&self, modulename: P0, moduletype: FsrmPipelineModuleType) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetModuleDefinition(&self, modulename: &::windows::core::BSTR, moduletype: FsrmPipelineModuleType) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetModuleDefinition)(::windows::core::Interface::as_raw(self), modulename.into().abi(), moduletype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetModuleDefinition)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(modulename), moduletype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RunClassification<'a, P0>(&self, context: FsrmReportGenerationContext, reserved: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.RunClassification)(::windows::core::Interface::as_raw(self), context, reserved.into().abi()).ok() + pub unsafe fn RunClassification(&self, context: FsrmReportGenerationContext, reserved: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.RunClassification)(::windows::core::Interface::as_raw(self), context, ::core::mem::transmute_copy(reserved)).ok() } pub unsafe fn WaitForClassificationCompletion(&self, waitseconds: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1996,43 +1670,23 @@ impl IFsrmClassificationManager2 { pub unsafe fn CancelClassification(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.CancelClassification)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn EnumFileProperties<'a, P0>(&self, filepath: P0, options: FsrmGetFilePropertyOptions) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn EnumFileProperties(&self, filepath: &::windows::core::BSTR, options: FsrmGetFilePropertyOptions) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.EnumFileProperties)(::windows::core::Interface::as_raw(self), filepath.into().abi(), options, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.EnumFileProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(filepath), options, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetFileProperty<'a, P0, P1>(&self, filepath: P0, propertyname: P1, options: FsrmGetFilePropertyOptions) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetFileProperty(&self, filepath: &::windows::core::BSTR, propertyname: &::windows::core::BSTR, options: FsrmGetFilePropertyOptions) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetFileProperty)(::windows::core::Interface::as_raw(self), filepath.into().abi(), propertyname.into().abi(), options, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetFileProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(filepath), ::core::mem::transmute_copy(propertyname), options, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFileProperty<'a, P0, P1, P2>(&self, filepath: P0, propertyname: P1, propertyvalue: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetFileProperty)(::windows::core::Interface::as_raw(self), filepath.into().abi(), propertyname.into().abi(), propertyvalue.into().abi()).ok() + pub unsafe fn SetFileProperty(&self, filepath: &::windows::core::BSTR, propertyname: &::windows::core::BSTR, propertyvalue: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetFileProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(filepath), ::core::mem::transmute_copy(propertyname), ::core::mem::transmute_copy(propertyvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClearFileProperty<'a, P0, P1>(&self, filepath: P0, property: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.ClearFileProperty)(::windows::core::Interface::as_raw(self), filepath.into().abi(), property.into().abi()).ok() + pub unsafe fn ClearFileProperty(&self, filepath: &::windows::core::BSTR, property: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.ClearFileProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(filepath), ::core::mem::transmute_copy(property)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2139,19 +1793,12 @@ impl IFsrmClassificationRule { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, description: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetDescription)(::windows::core::Interface::as_raw(self), description.into().abi()).ok() + pub unsafe fn SetDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(description)).ok() } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.Delete)(::windows::core::Interface::as_raw(self)).ok() @@ -2159,37 +1806,23 @@ impl IFsrmClassificationRule { pub unsafe fn Commit(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.Commit)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } pub unsafe fn RuleType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.RuleType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ModuleDefinitionName(&self) -> ::windows::core::Result { + pub unsafe fn ModuleDefinitionName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ModuleDefinitionName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ModuleDefinitionName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetModuleDefinitionName<'a, P0>(&self, moduledefinitionname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetModuleDefinitionName)(::windows::core::Interface::as_raw(self), moduledefinitionname.into().abi()).ok() + pub unsafe fn SetModuleDefinitionName(&self, moduledefinitionname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetModuleDefinitionName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(moduledefinitionname)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2233,33 +1866,19 @@ impl IFsrmClassificationRule { pub unsafe fn SetExecutionOption(&self, executionoption: FsrmExecutionOption) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetExecutionOption)(::windows::core::Interface::as_raw(self), executionoption).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PropertyAffected(&self) -> ::windows::core::Result { + pub unsafe fn PropertyAffected(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PropertyAffected)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PropertyAffected)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPropertyAffected<'a, P0>(&self, property: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPropertyAffected)(::windows::core::Interface::as_raw(self), property.into().abi()).ok() + pub unsafe fn SetPropertyAffected(&self, property: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPropertyAffected)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(property)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Value(&self) -> ::windows::core::Result { + pub unsafe fn Value(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Value)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Value)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetValue<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetValue)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetValue(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2366,22 +1985,10 @@ pub struct IFsrmClassificationRule_Vtbl { pub base__: IFsrmRule_Vtbl, pub ExecutionOption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, executionoption: *mut FsrmExecutionOption) -> ::windows::core::HRESULT, pub SetExecutionOption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, executionoption: FsrmExecutionOption) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub PropertyAffected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, property: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PropertyAffected: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPropertyAffected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, property: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPropertyAffected: usize, - #[cfg(feature = "Win32_Foundation")] - pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Value: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetValue: usize, + pub PropertyAffected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, property: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetPropertyAffected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, property: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Storage_FileServerResourceManager\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2393,19 +2000,12 @@ impl IFsrmClassifierModuleDefinition { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, description: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetDescription)(::windows::core::Interface::as_raw(self), description.into().abi()).ok() + pub unsafe fn SetDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(description)).ok() } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.Delete)(::windows::core::Interface::as_raw(self)).ok() @@ -2413,61 +2013,33 @@ impl IFsrmClassifierModuleDefinition { pub unsafe fn Commit(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.Commit)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ModuleClsid(&self) -> ::windows::core::Result { + pub unsafe fn ModuleClsid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ModuleClsid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ModuleClsid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetModuleClsid<'a, P0>(&self, moduleclsid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetModuleClsid)(::windows::core::Interface::as_raw(self), moduleclsid.into().abi()).ok() + pub unsafe fn SetModuleClsid(&self, moduleclsid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetModuleClsid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(moduleclsid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Company(&self) -> ::windows::core::Result { + pub unsafe fn Company(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Company)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Company)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCompany<'a, P0>(&self, company: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetCompany)(::windows::core::Interface::as_raw(self), company.into().abi()).ok() + pub unsafe fn SetCompany(&self, company: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetCompany)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(company)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Version(&self) -> ::windows::core::Result { + pub unsafe fn Version(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Version)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Version)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetVersion<'a, P0>(&self, version: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetVersion)(::windows::core::Interface::as_raw(self), version.into().abi()).ok() + pub unsafe fn SetVersion(&self, version: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetVersion)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(version)).ok() } pub unsafe fn ModuleType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2708,22 +2280,11 @@ impl IFsrmClassifierModuleImplementation { { (::windows::core::Interface::vtable(self).OnBeginFile)(::windows::core::Interface::as_raw(self), propertybag.into().abi(), ::core::mem::transmute(arrayruleids)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DoesPropertyValueApply<'a, P0, P1>(&self, property: P0, value: P1, applyvalue: &mut i16, idrule: ::windows::core::GUID, idpropdef: ::windows::core::GUID) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DoesPropertyValueApply)(::windows::core::Interface::as_raw(self), property.into().abi(), value.into().abi(), ::core::mem::transmute(applyvalue), ::core::mem::transmute(idrule), ::core::mem::transmute(idpropdef)).ok() + pub unsafe fn DoesPropertyValueApply(&self, property: &::windows::core::BSTR, value: &::windows::core::BSTR, applyvalue: &mut i16, idrule: ::windows::core::GUID, idpropdef: ::windows::core::GUID) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DoesPropertyValueApply)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(property), ::core::mem::transmute_copy(value), ::core::mem::transmute(applyvalue), ::core::mem::transmute(idrule), ::core::mem::transmute(idpropdef)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPropertyValueToApply<'a, P0>(&self, property: P0, value: &mut super::super::Foundation::BSTR, idrule: ::windows::core::GUID, idpropdef: ::windows::core::GUID) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetPropertyValueToApply)(::windows::core::Interface::as_raw(self), property.into().abi(), ::core::mem::transmute(value), ::core::mem::transmute(idrule), ::core::mem::transmute(idpropdef)).ok() + pub unsafe fn GetPropertyValueToApply(&self, property: &::windows::core::BSTR, value: &mut ::windows::core::BSTR, idrule: ::windows::core::GUID, idpropdef: ::windows::core::GUID) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetPropertyValueToApply)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(property), ::core::mem::transmute(value), ::core::mem::transmute(idrule), ::core::mem::transmute(idpropdef)).ok() } pub unsafe fn OnEndFile(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).OnEndFile)(::windows::core::Interface::as_raw(self)).ok() @@ -2825,14 +2386,8 @@ pub struct IFsrmClassifierModuleImplementation_Vtbl { pub OnBeginFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertybag: *mut ::core::ffi::c_void, arrayruleids: *const super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] OnBeginFile: usize, - #[cfg(feature = "Win32_Foundation")] - pub DoesPropertyValueApply: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, property: ::core::mem::ManuallyDrop, value: ::core::mem::ManuallyDrop, applyvalue: *mut i16, idrule: ::windows::core::GUID, idpropdef: ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DoesPropertyValueApply: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetPropertyValueToApply: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, property: ::core::mem::ManuallyDrop, value: *mut super::super::Foundation::BSTR, idrule: ::windows::core::GUID, idpropdef: ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPropertyValueToApply: usize, + pub DoesPropertyValueApply: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, property: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>, applyvalue: *mut i16, idrule: ::windows::core::GUID, idpropdef: ::windows::core::GUID) -> ::windows::core::HRESULT, + pub GetPropertyValueToApply: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, property: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, idrule: ::windows::core::GUID, idpropdef: ::windows::core::GUID) -> ::windows::core::HRESULT, pub OnEndFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Storage_FileServerResourceManager\"`, `\"Win32_System_Com\"`*"] @@ -3226,60 +2781,36 @@ pub struct IFsrmExportImport(::windows::core::IUnknown); impl IFsrmExportImport { #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ExportFileGroups<'a, P0, P1>(&self, filepath: P0, filegroupnamessafearray: &super::super::System::Com::VARIANT, remotehost: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ExportFileGroups)(::windows::core::Interface::as_raw(self), filepath.into().abi(), ::core::mem::transmute(filegroupnamessafearray), remotehost.into().abi()).ok() + pub unsafe fn ExportFileGroups(&self, filepath: &::windows::core::BSTR, filegroupnamessafearray: &super::super::System::Com::VARIANT, remotehost: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ExportFileGroups)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(filepath), ::core::mem::transmute(filegroupnamessafearray), ::core::mem::transmute_copy(remotehost)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ImportFileGroups<'a, P0, P1>(&self, filepath: P0, filegroupnamessafearray: &super::super::System::Com::VARIANT, remotehost: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn ImportFileGroups(&self, filepath: &::windows::core::BSTR, filegroupnamessafearray: &super::super::System::Com::VARIANT, remotehost: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ImportFileGroups)(::windows::core::Interface::as_raw(self), filepath.into().abi(), ::core::mem::transmute(filegroupnamessafearray), remotehost.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ImportFileGroups)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(filepath), ::core::mem::transmute(filegroupnamessafearray), ::core::mem::transmute_copy(remotehost), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ExportFileScreenTemplates<'a, P0, P1>(&self, filepath: P0, templatenamessafearray: &super::super::System::Com::VARIANT, remotehost: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ExportFileScreenTemplates)(::windows::core::Interface::as_raw(self), filepath.into().abi(), ::core::mem::transmute(templatenamessafearray), remotehost.into().abi()).ok() + pub unsafe fn ExportFileScreenTemplates(&self, filepath: &::windows::core::BSTR, templatenamessafearray: &super::super::System::Com::VARIANT, remotehost: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ExportFileScreenTemplates)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(filepath), ::core::mem::transmute(templatenamessafearray), ::core::mem::transmute_copy(remotehost)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ImportFileScreenTemplates<'a, P0, P1>(&self, filepath: P0, templatenamessafearray: &super::super::System::Com::VARIANT, remotehost: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn ImportFileScreenTemplates(&self, filepath: &::windows::core::BSTR, templatenamessafearray: &super::super::System::Com::VARIANT, remotehost: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ImportFileScreenTemplates)(::windows::core::Interface::as_raw(self), filepath.into().abi(), ::core::mem::transmute(templatenamessafearray), remotehost.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ImportFileScreenTemplates)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(filepath), ::core::mem::transmute(templatenamessafearray), ::core::mem::transmute_copy(remotehost), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ExportQuotaTemplates<'a, P0, P1>(&self, filepath: P0, templatenamessafearray: &super::super::System::Com::VARIANT, remotehost: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ExportQuotaTemplates)(::windows::core::Interface::as_raw(self), filepath.into().abi(), ::core::mem::transmute(templatenamessafearray), remotehost.into().abi()).ok() + pub unsafe fn ExportQuotaTemplates(&self, filepath: &::windows::core::BSTR, templatenamessafearray: &super::super::System::Com::VARIANT, remotehost: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ExportQuotaTemplates)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(filepath), ::core::mem::transmute(templatenamessafearray), ::core::mem::transmute_copy(remotehost)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ImportQuotaTemplates<'a, P0, P1>(&self, filepath: P0, templatenamessafearray: &super::super::System::Com::VARIANT, remotehost: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn ImportQuotaTemplates(&self, filepath: &::windows::core::BSTR, templatenamessafearray: &super::super::System::Com::VARIANT, remotehost: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ImportQuotaTemplates)(::windows::core::Interface::as_raw(self), filepath.into().abi(), ::core::mem::transmute(templatenamessafearray), remotehost.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ImportQuotaTemplates)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(filepath), ::core::mem::transmute(templatenamessafearray), ::core::mem::transmute_copy(remotehost), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -3349,27 +2880,27 @@ unsafe impl ::windows::core::Interface for IFsrmExportImport { pub struct IFsrmExportImport_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub ExportFileGroups: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop, filegroupnamessafearray: *const super::super::System::Com::VARIANT, remotehost: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub ExportFileGroups: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, filegroupnamessafearray: *const super::super::System::Com::VARIANT, remotehost: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] ExportFileGroups: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub ImportFileGroups: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop, filegroupnamessafearray: *const super::super::System::Com::VARIANT, remotehost: ::core::mem::ManuallyDrop, filegroups: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub ImportFileGroups: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, filegroupnamessafearray: *const super::super::System::Com::VARIANT, remotehost: ::core::mem::ManuallyDrop<::windows::core::BSTR>, filegroups: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] ImportFileGroups: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub ExportFileScreenTemplates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop, templatenamessafearray: *const super::super::System::Com::VARIANT, remotehost: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub ExportFileScreenTemplates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, templatenamessafearray: *const super::super::System::Com::VARIANT, remotehost: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] ExportFileScreenTemplates: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub ImportFileScreenTemplates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop, templatenamessafearray: *const super::super::System::Com::VARIANT, remotehost: ::core::mem::ManuallyDrop, templates: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub ImportFileScreenTemplates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, templatenamessafearray: *const super::super::System::Com::VARIANT, remotehost: ::core::mem::ManuallyDrop<::windows::core::BSTR>, templates: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] ImportFileScreenTemplates: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub ExportQuotaTemplates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop, templatenamessafearray: *const super::super::System::Com::VARIANT, remotehost: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub ExportQuotaTemplates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, templatenamessafearray: *const super::super::System::Com::VARIANT, remotehost: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] ExportQuotaTemplates: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub ImportQuotaTemplates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop, templatenamessafearray: *const super::super::System::Com::VARIANT, remotehost: ::core::mem::ManuallyDrop, templates: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub ImportQuotaTemplates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, templatenamessafearray: *const super::super::System::Com::VARIANT, remotehost: ::core::mem::ManuallyDrop<::windows::core::BSTR>, templates: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] ImportQuotaTemplates: usize, } @@ -3469,19 +3000,12 @@ impl IFsrmFileConditionProperty { pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Delete)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PropertyName(&self) -> ::windows::core::Result { + pub unsafe fn PropertyName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PropertyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PropertyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPropertyName<'a, P0>(&self, newval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPropertyName)(::windows::core::Interface::as_raw(self), newval.into().abi()).ok() + pub unsafe fn SetPropertyName(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPropertyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(newval)).ok() } pub unsafe fn PropertyId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3603,14 +3127,8 @@ unsafe impl ::windows::core::Interface for IFsrmFileConditionProperty { #[doc(hidden)] pub struct IFsrmFileConditionProperty_Vtbl { pub base__: IFsrmFileCondition_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub PropertyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PropertyName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPropertyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPropertyName: usize, + pub PropertyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetPropertyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub PropertyId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut FsrmFileSystemPropertyId) -> ::windows::core::HRESULT, pub SetPropertyId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: FsrmFileSystemPropertyId) -> ::windows::core::HRESULT, pub Operator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut FsrmPropertyConditionType) -> ::windows::core::HRESULT, @@ -3636,19 +3154,12 @@ impl IFsrmFileGroup { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, description: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), description.into().abi()).ok() + pub unsafe fn SetDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(description)).ok() } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Delete)(::windows::core::Interface::as_raw(self)).ok() @@ -3656,19 +3167,12 @@ impl IFsrmFileGroup { pub unsafe fn Commit(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Commit)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3783,14 +3287,8 @@ unsafe impl ::windows::core::Interface for IFsrmFileGroup { #[doc(hidden)] pub struct IFsrmFileGroup_Vtbl { pub base__: IFsrmObject_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Members: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, members: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -3818,19 +3316,12 @@ impl IFsrmFileGroupImported { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, description: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetDescription)(::windows::core::Interface::as_raw(self), description.into().abi()).ok() + pub unsafe fn SetDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(description)).ok() } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.Delete)(::windows::core::Interface::as_raw(self)).ok() @@ -3838,19 +3329,12 @@ impl IFsrmFileGroupImported { pub unsafe fn Commit(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.Commit)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4005,14 +3489,11 @@ impl IFsrmFileGroupManager { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CreateFileGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetFileGroup<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetFileGroup(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetFileGroup)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetFileGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4022,18 +3503,15 @@ impl IFsrmFileGroupManager { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ExportFileGroups(&self, filegroupnamesarray: &super::super::System::Com::VARIANT) -> ::windows::core::Result { + pub unsafe fn ExportFileGroups(&self, filegroupnamesarray: &super::super::System::Com::VARIANT) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ExportFileGroups)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(filegroupnamesarray), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ExportFileGroups)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(filegroupnamesarray), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ImportFileGroups<'a, P0>(&self, serializedfilegroups: P0, filegroupnamesarray: &super::super::System::Com::VARIANT) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn ImportFileGroups(&self, serializedfilegroups: &::windows::core::BSTR, filegroupnamesarray: &super::super::System::Com::VARIANT) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ImportFileGroups)(::windows::core::Interface::as_raw(self), serializedfilegroups.into().abi(), ::core::mem::transmute(filegroupnamesarray), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ImportFileGroups)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(serializedfilegroups), ::core::mem::transmute(filegroupnamesarray), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -4106,20 +3584,20 @@ pub struct IFsrmFileGroupManager_Vtbl { pub CreateFileGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filegroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] CreateFileGroup: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetFileGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, filegroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetFileGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, filegroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetFileGroup: usize, #[cfg(feature = "Win32_System_Com")] pub EnumFileGroups: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: FsrmEnumOptions, filegroups: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] EnumFileGroups: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub ExportFileGroups: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filegroupnamesarray: *const super::super::System::Com::VARIANT, serializedfilegroups: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub ExportFileGroups: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filegroupnamesarray: *const super::super::System::Com::VARIANT, serializedfilegroups: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] ExportFileGroups: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub ImportFileGroups: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, serializedfilegroups: ::core::mem::ManuallyDrop, filegroupnamesarray: *const super::super::System::Com::VARIANT, filegroups: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub ImportFileGroups: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, serializedfilegroups: ::core::mem::ManuallyDrop<::windows::core::BSTR>, filegroupnamesarray: *const super::super::System::Com::VARIANT, filegroups: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] ImportFileGroups: usize, } @@ -4133,19 +3611,12 @@ impl IFsrmFileManagementJob { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, description: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), description.into().abi()).ok() + pub unsafe fn SetDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(description)).ok() } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Delete)(::windows::core::Interface::as_raw(self)).ok() @@ -4153,19 +3624,12 @@ impl IFsrmFileManagementJob { pub unsafe fn Commit(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Commit)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4192,19 +3656,12 @@ impl IFsrmFileManagementJob { pub unsafe fn SetOperationType(&self, operationtype: FsrmFileManagementType) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetOperationType)(::windows::core::Interface::as_raw(self), operationtype).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExpirationDirectory(&self) -> ::windows::core::Result { + pub unsafe fn ExpirationDirectory(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ExpirationDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ExpirationDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetExpirationDirectory<'a, P0>(&self, expirationdirectory: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetExpirationDirectory)(::windows::core::Interface::as_raw(self), expirationdirectory.into().abi()).ok() + pub unsafe fn SetExpirationDirectory(&self, expirationdirectory: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetExpirationDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(expirationdirectory)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4243,19 +3700,12 @@ impl IFsrmFileManagementJob { pub unsafe fn SetFormats(&self, formats: &super::super::System::Com::SAFEARRAY) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetFormats)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(formats)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MailTo(&self) -> ::windows::core::Result { + pub unsafe fn MailTo(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).MailTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).MailTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMailTo<'a, P0>(&self, mailto: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetMailTo)(::windows::core::Interface::as_raw(self), mailto.into().abi()).ok() + pub unsafe fn SetMailTo(&self, mailto: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetMailTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mailto)).ok() } pub unsafe fn DaysSinceFileCreated(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4291,19 +3741,12 @@ impl IFsrmFileManagementJob { pub unsafe fn SetFromDate(&self, fromdate: f64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetFromDate)(::windows::core::Interface::as_raw(self), fromdate).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Task(&self) -> ::windows::core::Result { + pub unsafe fn Task(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Task)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Task)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetTask<'a, P0>(&self, taskname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetTask)(::windows::core::Interface::as_raw(self), taskname.into().abi()).ok() + pub unsafe fn SetTask(&self, taskname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetTask)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(taskname)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4320,35 +3763,24 @@ impl IFsrmFileManagementJob { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).RunningStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LastError(&self) -> ::windows::core::Result { + pub unsafe fn LastError(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LastError)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LastError)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LastReportPathWithoutExtension(&self) -> ::windows::core::Result { + pub unsafe fn LastReportPathWithoutExtension(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LastReportPathWithoutExtension)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LastReportPathWithoutExtension)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn LastRun(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).LastRun)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FileNamePattern(&self) -> ::windows::core::Result { + pub unsafe fn FileNamePattern(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FileNamePattern)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FileNamePattern)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFileNamePattern<'a, P0>(&self, filenamepattern: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetFileNamePattern)(::windows::core::Interface::as_raw(self), filenamepattern.into().abi()).ok() + pub unsafe fn SetFileNamePattern(&self, filenamepattern: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetFileNamePattern)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(filenamepattern)).ok() } pub unsafe fn Run(&self, context: FsrmReportGenerationContext) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Run)(::windows::core::Interface::as_raw(self), context).ok() @@ -4381,14 +3813,11 @@ impl IFsrmFileManagementJob { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).EnumNotificationActions)(::windows::core::Interface::as_raw(self), days, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreatePropertyCondition<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreatePropertyCondition(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreatePropertyCondition)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreatePropertyCondition)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4481,14 +3910,8 @@ unsafe impl ::windows::core::Interface for IFsrmFileManagementJob { #[doc(hidden)] pub struct IFsrmFileManagementJob_Vtbl { pub base__: IFsrmObject_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub NamespaceRoots: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, namespaceroots: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -4501,14 +3924,8 @@ pub struct IFsrmFileManagementJob_Vtbl { pub SetEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enabled: i16) -> ::windows::core::HRESULT, pub OperationType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, operationtype: *mut FsrmFileManagementType) -> ::windows::core::HRESULT, pub SetOperationType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, operationtype: FsrmFileManagementType) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ExpirationDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, expirationdirectory: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ExpirationDirectory: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetExpirationDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, expirationdirectory: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetExpirationDirectory: usize, + pub ExpirationDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, expirationdirectory: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetExpirationDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, expirationdirectory: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub CustomAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, action: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -4529,14 +3946,8 @@ pub struct IFsrmFileManagementJob_Vtbl { pub SetFormats: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, formats: *const super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] SetFormats: usize, - #[cfg(feature = "Win32_Foundation")] - pub MailTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailto: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MailTo: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetMailTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailto: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetMailTo: usize, + pub MailTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailto: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetMailTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailto: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub DaysSinceFileCreated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dayssincecreation: *mut i32) -> ::windows::core::HRESULT, pub SetDaysSinceFileCreated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dayssincecreation: i32) -> ::windows::core::HRESULT, pub DaysSinceFileLastAccessed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dayssinceaccess: *mut i32) -> ::windows::core::HRESULT, @@ -4549,14 +3960,8 @@ pub struct IFsrmFileManagementJob_Vtbl { PropertyConditions: usize, pub FromDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fromdate: *mut f64) -> ::windows::core::HRESULT, pub SetFromDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fromdate: f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Task: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, taskname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Task: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, taskname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetTask: usize, + pub Task: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, taskname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, taskname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Parameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, parameters: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -4566,23 +3971,11 @@ pub struct IFsrmFileManagementJob_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetParameters: usize, pub RunningStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, runningstatus: *mut FsrmReportRunningStatus) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub LastError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lasterror: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LastError: usize, - #[cfg(feature = "Win32_Foundation")] - pub LastReportPathWithoutExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LastReportPathWithoutExtension: usize, + pub LastError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lasterror: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub LastReportPathWithoutExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub LastRun: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lastrun: *mut f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub FileNamePattern: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filenamepattern: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FileNamePattern: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetFileNamePattern: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filenamepattern: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetFileNamePattern: usize, + pub FileNamePattern: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filenamepattern: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetFileNamePattern: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filenamepattern: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Run: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: FsrmReportGenerationContext) -> ::windows::core::HRESULT, pub WaitForCompletion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, waitseconds: i32, completed: *mut i16) -> ::windows::core::HRESULT, pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -4597,9 +3990,9 @@ pub struct IFsrmFileManagementJob_Vtbl { pub EnumNotificationActions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, days: i32, actions: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] EnumNotificationActions: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreatePropertyCondition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, propertycondition: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreatePropertyCondition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertycondition: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreatePropertyCondition: usize, #[cfg(feature = "Win32_System_Com")] pub CreateCustomAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, customaction: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -4636,14 +4029,11 @@ impl IFsrmFileManagementJobManager { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CreateFileManagementJob)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetFileManagementJob<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetFileManagementJob(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetFileManagementJob)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetFileManagementJob)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -4728,9 +4118,9 @@ pub struct IFsrmFileManagementJobManager_Vtbl { pub CreateFileManagementJob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filemanagementjob: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] CreateFileManagementJob: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetFileManagementJob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, filemanagementjob: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetFileManagementJob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, filemanagementjob: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetFileManagementJob: usize, } #[doc = "*Required features: `\"Win32_Storage_FileServerResourceManager\"`, `\"Win32_System_Com\"`*"] @@ -4743,19 +4133,12 @@ impl IFsrmFileScreen { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, description: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetDescription)(::windows::core::Interface::as_raw(self), description.into().abi()).ok() + pub unsafe fn SetDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(description)).ok() } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.Delete)(::windows::core::Interface::as_raw(self)).ok() @@ -4796,41 +4179,28 @@ impl IFsrmFileScreen { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.EnumActions)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Path(&self) -> ::windows::core::Result { + pub unsafe fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SourceTemplateName(&self) -> ::windows::core::Result { + pub unsafe fn SourceTemplateName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SourceTemplateName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SourceTemplateName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn MatchesSourceTemplate(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).MatchesSourceTemplate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserSid(&self) -> ::windows::core::Result { + pub unsafe fn UserSid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UserSid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UserSid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserAccount(&self) -> ::windows::core::Result { + pub unsafe fn UserAccount(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UserAccount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UserAccount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ApplyTemplate<'a, P0>(&self, filescreentemplatename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ApplyTemplate)(::windows::core::Interface::as_raw(self), filescreentemplatename.into().abi()).ok() + pub unsafe fn ApplyTemplate(&self, filescreentemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ApplyTemplate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(filescreentemplatename)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4935,27 +4305,12 @@ unsafe impl ::windows::core::Interface for IFsrmFileScreen { #[doc(hidden)] pub struct IFsrmFileScreen_Vtbl { pub base__: IFsrmFileScreenBase_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Path: usize, - #[cfg(feature = "Win32_Foundation")] - pub SourceTemplateName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filescreentemplatename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SourceTemplateName: usize, + pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SourceTemplateName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filescreentemplatename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub MatchesSourceTemplate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, matches: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub UserSid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, usersid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UserSid: usize, - #[cfg(feature = "Win32_Foundation")] - pub UserAccount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, useraccount: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UserAccount: usize, - #[cfg(feature = "Win32_Foundation")] - pub ApplyTemplate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filescreentemplatename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ApplyTemplate: usize, + pub UserSid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, usersid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub UserAccount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, useraccount: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ApplyTemplate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filescreentemplatename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Storage_FileServerResourceManager\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4967,19 +4322,12 @@ impl IFsrmFileScreenBase { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, description: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), description.into().abi()).ok() + pub unsafe fn SetDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(description)).ok() } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Delete)(::windows::core::Interface::as_raw(self)).ok() @@ -5134,19 +4482,12 @@ impl IFsrmFileScreenException { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, description: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), description.into().abi()).ok() + pub unsafe fn SetDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(description)).ok() } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Delete)(::windows::core::Interface::as_raw(self)).ok() @@ -5154,11 +4495,9 @@ impl IFsrmFileScreenException { pub unsafe fn Commit(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Commit)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Path(&self) -> ::windows::core::Result { + pub unsafe fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5259,10 +4598,7 @@ unsafe impl ::windows::core::Interface for IFsrmFileScreenException { #[doc(hidden)] pub struct IFsrmFileScreenException_Vtbl { pub base__: IFsrmObject_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Path: usize, + pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub AllowedFileGroups: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, allowlist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -5290,59 +4626,41 @@ impl IFsrmFileScreenManager { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ActionVariableDescriptions)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut super::super::System::Com::SAFEARRAY>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateFileScreen<'a, P0>(&self, path: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateFileScreen(&self, path: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateFileScreen)(::windows::core::Interface::as_raw(self), path.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateFileScreen)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetFileScreen<'a, P0>(&self, path: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetFileScreen(&self, path: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetFileScreen)(::windows::core::Interface::as_raw(self), path.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetFileScreen)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn EnumFileScreens<'a, P0>(&self, path: P0, options: FsrmEnumOptions) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn EnumFileScreens(&self, path: &::windows::core::BSTR, options: FsrmEnumOptions) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).EnumFileScreens)(::windows::core::Interface::as_raw(self), path.into().abi(), options, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).EnumFileScreens)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), options, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateFileScreenException<'a, P0>(&self, path: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateFileScreenException(&self, path: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateFileScreenException)(::windows::core::Interface::as_raw(self), path.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateFileScreenException)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetFileScreenException<'a, P0>(&self, path: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetFileScreenException(&self, path: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetFileScreenException)(::windows::core::Interface::as_raw(self), path.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetFileScreenException)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn EnumFileScreenExceptions<'a, P0>(&self, path: P0, options: FsrmEnumOptions) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn EnumFileScreenExceptions(&self, path: &::windows::core::BSTR, options: FsrmEnumOptions) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).EnumFileScreenExceptions)(::windows::core::Interface::as_raw(self), path.into().abi(), options, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).EnumFileScreenExceptions)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), options, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5425,29 +4743,29 @@ pub struct IFsrmFileScreenManager_Vtbl { pub ActionVariableDescriptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, descriptions: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] ActionVariableDescriptions: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreateFileScreen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, filescreen: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreateFileScreen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, filescreen: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreateFileScreen: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetFileScreen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, filescreen: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetFileScreen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, filescreen: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetFileScreen: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub EnumFileScreens: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, options: FsrmEnumOptions, filescreens: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub EnumFileScreens: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, options: FsrmEnumOptions, filescreens: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] EnumFileScreens: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreateFileScreenException: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, filescreenexception: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreateFileScreenException: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, filescreenexception: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreateFileScreenException: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetFileScreenException: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, filescreenexception: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetFileScreenException: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, filescreenexception: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetFileScreenException: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub EnumFileScreenExceptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, options: FsrmEnumOptions, filescreenexceptions: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub EnumFileScreenExceptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, options: FsrmEnumOptions, filescreenexceptions: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] EnumFileScreenExceptions: usize, #[cfg(feature = "Win32_System_Com")] pub CreateFileScreenCollection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, collection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -5464,19 +4782,12 @@ impl IFsrmFileScreenTemplate { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, description: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetDescription)(::windows::core::Interface::as_raw(self), description.into().abi()).ok() + pub unsafe fn SetDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(description)).ok() } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.Delete)(::windows::core::Interface::as_raw(self)).ok() @@ -5517,27 +4828,15 @@ impl IFsrmFileScreenTemplate { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.EnumActions)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CopyTemplate<'a, P0>(&self, filescreentemplatename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).CopyTemplate)(::windows::core::Interface::as_raw(self), filescreentemplatename.into().abi()).ok() + pub unsafe fn CopyTemplate(&self, filescreentemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).CopyTemplate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(filescreentemplatename)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5648,18 +4947,9 @@ unsafe impl ::windows::core::Interface for IFsrmFileScreenTemplate { #[doc(hidden)] pub struct IFsrmFileScreenTemplate_Vtbl { pub base__: IFsrmFileScreenBase_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, - #[cfg(feature = "Win32_Foundation")] - pub CopyTemplate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filescreentemplatename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CopyTemplate: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CopyTemplate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filescreentemplatename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub CommitAndUpdateDerived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, commitoptions: FsrmCommitOptions, applyoptions: FsrmTemplateApplyOptions, derivedobjectsresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -5675,19 +4965,12 @@ impl IFsrmFileScreenTemplateImported { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, description: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.SetDescription)(::windows::core::Interface::as_raw(self), description.into().abi()).ok() + pub unsafe fn SetDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(description)).ok() } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.Delete)(::windows::core::Interface::as_raw(self)).ok() @@ -5728,27 +5011,15 @@ impl IFsrmFileScreenTemplateImported { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.EnumActions)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CopyTemplate<'a, P0>(&self, filescreentemplatename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.CopyTemplate)(::windows::core::Interface::as_raw(self), filescreentemplatename.into().abi()).ok() + pub unsafe fn CopyTemplate(&self, filescreentemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.CopyTemplate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(filescreentemplatename)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5899,14 +5170,11 @@ impl IFsrmFileScreenTemplateManager { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CreateTemplate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetTemplate<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetTemplate(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetTemplate)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetTemplate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5916,18 +5184,15 @@ impl IFsrmFileScreenTemplateManager { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ExportTemplates(&self, filescreentemplatenamesarray: &super::super::System::Com::VARIANT) -> ::windows::core::Result { + pub unsafe fn ExportTemplates(&self, filescreentemplatenamesarray: &super::super::System::Com::VARIANT) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ExportTemplates)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(filescreentemplatenamesarray), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ExportTemplates)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(filescreentemplatenamesarray), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ImportTemplates<'a, P0>(&self, serializedfilescreentemplates: P0, filescreentemplatenamesarray: &super::super::System::Com::VARIANT) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn ImportTemplates(&self, serializedfilescreentemplates: &::windows::core::BSTR, filescreentemplatenamesarray: &super::super::System::Com::VARIANT) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ImportTemplates)(::windows::core::Interface::as_raw(self), serializedfilescreentemplates.into().abi(), ::core::mem::transmute(filescreentemplatenamesarray), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ImportTemplates)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(serializedfilescreentemplates), ::core::mem::transmute(filescreentemplatenamesarray), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -6000,20 +5265,20 @@ pub struct IFsrmFileScreenTemplateManager_Vtbl { pub CreateTemplate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filescreentemplate: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] CreateTemplate: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetTemplate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, filescreentemplate: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetTemplate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, filescreentemplate: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetTemplate: usize, #[cfg(feature = "Win32_System_Com")] pub EnumTemplates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: FsrmEnumOptions, filescreentemplates: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] EnumTemplates: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub ExportTemplates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filescreentemplatenamesarray: *const super::super::System::Com::VARIANT, serializedfilescreentemplates: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub ExportTemplates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filescreentemplatenamesarray: *const super::super::System::Com::VARIANT, serializedfilescreentemplates: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] ExportTemplates: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub ImportTemplates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, serializedfilescreentemplates: ::core::mem::ManuallyDrop, filescreentemplatenamesarray: *const super::super::System::Com::VARIANT, filescreentemplates: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub ImportTemplates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, serializedfilescreentemplates: ::core::mem::ManuallyDrop<::windows::core::BSTR>, filescreentemplatenamesarray: *const super::super::System::Com::VARIANT, filescreentemplates: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] ImportTemplates: usize, } @@ -6180,19 +5445,12 @@ impl IFsrmObject { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, description: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), description.into().abi()).ok() + pub unsafe fn SetDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(description)).ok() } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Delete)(::windows::core::Interface::as_raw(self)).ok() @@ -6268,14 +5526,8 @@ unsafe impl ::windows::core::Interface for IFsrmObject { pub struct IFsrmObject_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDescription: usize, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Commit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } @@ -6285,14 +5537,11 @@ pub struct IFsrmObject_Vtbl { pub struct IFsrmPathMapper(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IFsrmPathMapper { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetSharePathsForLocalPath<'a, P0>(&self, localpath: P0) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetSharePathsForLocalPath(&self, localpath: &::windows::core::BSTR) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetSharePathsForLocalPath)(::windows::core::Interface::as_raw(self), localpath.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut super::super::System::Com::SAFEARRAY>(result__) + (::windows::core::Interface::vtable(self).GetSharePathsForLocalPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(localpath), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut super::super::System::Com::SAFEARRAY>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -6361,9 +5610,9 @@ unsafe impl ::windows::core::Interface for IFsrmPathMapper { #[doc(hidden)] pub struct IFsrmPathMapper_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetSharePathsForLocalPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, localpath: ::core::mem::ManuallyDrop, sharepaths: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetSharePathsForLocalPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, localpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, sharepaths: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetSharePathsForLocalPath: usize, } #[doc = "*Required features: `\"Win32_Storage_FileServerResourceManager\"`, `\"Win32_System_Com\"`*"] @@ -6378,17 +5627,13 @@ impl IFsrmPipelineModuleConnector { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ModuleImplementation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ModuleName(&self) -> ::windows::core::Result { + pub unsafe fn ModuleName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ModuleName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ModuleName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn HostingUserAccount(&self) -> ::windows::core::Result { + pub unsafe fn HostingUserAccount(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).HostingUserAccount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).HostingUserAccount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn HostingProcessPid(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6474,14 +5719,8 @@ pub struct IFsrmPipelineModuleConnector_Vtbl { pub ModuleImplementation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pipelinemoduleimplementation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] ModuleImplementation: usize, - #[cfg(feature = "Win32_Foundation")] - pub ModuleName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, username: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ModuleName: usize, - #[cfg(feature = "Win32_Foundation")] - pub HostingUserAccount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, useraccount: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - HostingUserAccount: usize, + pub ModuleName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, username: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub HostingUserAccount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, useraccount: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub HostingProcessPid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pid: *mut i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Bind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, moduledefinition: *mut ::core::ffi::c_void, moduleimplementation: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -6498,19 +5737,12 @@ impl IFsrmPipelineModuleDefinition { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, description: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), description.into().abi()).ok() + pub unsafe fn SetDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(description)).ok() } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Delete)(::windows::core::Interface::as_raw(self)).ok() @@ -6518,61 +5750,33 @@ impl IFsrmPipelineModuleDefinition { pub unsafe fn Commit(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Commit)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ModuleClsid(&self) -> ::windows::core::Result { + pub unsafe fn ModuleClsid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ModuleClsid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ModuleClsid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetModuleClsid<'a, P0>(&self, moduleclsid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetModuleClsid)(::windows::core::Interface::as_raw(self), moduleclsid.into().abi()).ok() + pub unsafe fn SetModuleClsid(&self, moduleclsid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetModuleClsid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(moduleclsid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Company(&self) -> ::windows::core::Result { + pub unsafe fn Company(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Company)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Company)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCompany<'a, P0>(&self, company: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetCompany)(::windows::core::Interface::as_raw(self), company.into().abi()).ok() + pub unsafe fn SetCompany(&self, company: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetCompany)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(company)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Version(&self) -> ::windows::core::Result { + pub unsafe fn Version(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Version)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Version)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetVersion<'a, P0>(&self, version: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetVersion)(::windows::core::Interface::as_raw(self), version.into().abi()).ok() + pub unsafe fn SetVersion(&self, version: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetVersion)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(version)).ok() } pub unsafe fn ModuleType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6706,38 +5910,14 @@ unsafe impl ::windows::core::Interface for IFsrmPipelineModuleDefinition { #[doc(hidden)] pub struct IFsrmPipelineModuleDefinition_Vtbl { pub base__: IFsrmObject_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub ModuleClsid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, moduleclsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ModuleClsid: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetModuleClsid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, moduleclsid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetModuleClsid: usize, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, - #[cfg(feature = "Win32_Foundation")] - pub Company: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, company: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Company: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetCompany: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, company: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetCompany: usize, - #[cfg(feature = "Win32_Foundation")] - pub Version: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, version: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Version: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, version: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetVersion: usize, + pub ModuleClsid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, moduleclsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetModuleClsid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, moduleclsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Company: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, company: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetCompany: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, company: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Version: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, version: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, version: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ModuleType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, moduletype: *mut FsrmPipelineModuleType) -> ::windows::core::HRESULT, pub Enabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enabled: *mut i16) -> ::windows::core::HRESULT, pub SetEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enabled: i16) -> ::windows::core::HRESULT, @@ -6859,17 +6039,13 @@ pub struct IFsrmPipelineModuleImplementation_Vtbl { pub struct IFsrmProperty(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IFsrmProperty { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Value(&self) -> ::windows::core::Result { + pub unsafe fn Value(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Value)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Value)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6948,14 +6124,8 @@ unsafe impl ::windows::core::Interface for IFsrmProperty { #[doc(hidden)] pub struct IFsrmProperty_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Value: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Sources: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sources: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -6968,29 +6138,21 @@ pub struct IFsrmProperty_Vtbl { pub struct IFsrmPropertyBag(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IFsrmPropertyBag { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RelativePath(&self) -> ::windows::core::Result { + pub unsafe fn RelativePath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RelativePath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RelativePath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn VolumeName(&self) -> ::windows::core::Result { + pub unsafe fn VolumeName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).VolumeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).VolumeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RelativeNamespaceRoot(&self) -> ::windows::core::Result { + pub unsafe fn RelativeNamespaceRoot(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RelativeNamespaceRoot)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RelativeNamespaceRoot)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn VolumeIndex(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7042,11 +6204,9 @@ impl IFsrmPropertyBag { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Attributes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OwnerSid(&self) -> ::windows::core::Result { + pub unsafe fn OwnerSid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).OwnerSid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).OwnerSid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7064,31 +6224,17 @@ impl IFsrmPropertyBag { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).PropertyBagFlags)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetFileProperty<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetFileProperty(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetFileProperty)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetFileProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFileProperty<'a, P0, P1>(&self, name: P0, value: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetFileProperty)(::windows::core::Interface::as_raw(self), name.into().abi(), value.into().abi()).ok() + pub unsafe fn SetFileProperty(&self, name: &::windows::core::BSTR, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetFileProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute_copy(value)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddMessage<'a, P0>(&self, message: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AddMessage)(::windows::core::Interface::as_raw(self), message.into().abi()).ok() + pub unsafe fn AddMessage(&self, message: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AddMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(message)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -7163,22 +6309,10 @@ unsafe impl ::windows::core::Interface for IFsrmPropertyBag { #[doc(hidden)] pub struct IFsrmPropertyBag_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub RelativePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RelativePath: usize, - #[cfg(feature = "Win32_Foundation")] - pub VolumeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, volumename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - VolumeName: usize, - #[cfg(feature = "Win32_Foundation")] - pub RelativeNamespaceRoot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, relativenamespaceroot: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RelativeNamespaceRoot: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub RelativePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub VolumeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, volumename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub RelativeNamespaceRoot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, relativenamespaceroot: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub VolumeIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, volumeid: *mut u32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub FileId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fileid: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, @@ -7209,10 +6343,7 @@ pub struct IFsrmPropertyBag_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] LastModificationTime: usize, pub Attributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, attributes: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub OwnerSid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ownersid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OwnerSid: usize, + pub OwnerSid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ownersid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub FilePropertyNames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filepropertynames: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -7222,18 +6353,12 @@ pub struct IFsrmPropertyBag_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Messages: usize, pub PropertyBagFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: *mut u32) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetFileProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, fileproperty: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetFileProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fileproperty: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetFileProperty: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetFileProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetFileProperty: usize, - #[cfg(feature = "Win32_Foundation")] - pub AddMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, message: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddMessage: usize, + pub SetFileProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub AddMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, message: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub GetFileStreamInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, accessmode: FsrmFileStreamingMode, interfacetype: FsrmFileStreamingInterfaceType, pstreaminterface: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -7245,29 +6370,21 @@ pub struct IFsrmPropertyBag_Vtbl { pub struct IFsrmPropertyBag2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IFsrmPropertyBag2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RelativePath(&self) -> ::windows::core::Result { + pub unsafe fn RelativePath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.RelativePath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.RelativePath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn VolumeName(&self) -> ::windows::core::Result { + pub unsafe fn VolumeName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.VolumeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.VolumeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RelativeNamespaceRoot(&self) -> ::windows::core::Result { + pub unsafe fn RelativeNamespaceRoot(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.RelativeNamespaceRoot)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.RelativeNamespaceRoot)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn VolumeIndex(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7319,11 +6436,9 @@ impl IFsrmPropertyBag2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Attributes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OwnerSid(&self) -> ::windows::core::Result { + pub unsafe fn OwnerSid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.OwnerSid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.OwnerSid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7341,31 +6456,17 @@ impl IFsrmPropertyBag2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.PropertyBagFlags)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetFileProperty<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetFileProperty(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetFileProperty)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetFileProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFileProperty<'a, P0, P1>(&self, name: P0, value: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetFileProperty)(::windows::core::Interface::as_raw(self), name.into().abi(), value.into().abi()).ok() + pub unsafe fn SetFileProperty(&self, name: &::windows::core::BSTR, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetFileProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute_copy(value)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddMessage<'a, P0>(&self, message: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.AddMessage)(::windows::core::Interface::as_raw(self), message.into().abi()).ok() + pub unsafe fn AddMessage(&self, message: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.AddMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(message)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -7485,19 +6586,12 @@ pub struct IFsrmPropertyBag2_Vtbl { pub struct IFsrmPropertyCondition(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IFsrmPropertyCondition { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } pub unsafe fn Type(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7506,19 +6600,12 @@ impl IFsrmPropertyCondition { pub unsafe fn SetType(&self, r#type: FsrmPropertyConditionType) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetType)(::windows::core::Interface::as_raw(self), r#type).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Value(&self) -> ::windows::core::Result { + pub unsafe fn Value(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Value)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Value)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetValue<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetValue)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetValue(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Delete)(::windows::core::Interface::as_raw(self)).ok() @@ -7590,24 +6677,12 @@ unsafe impl ::windows::core::Interface for IFsrmPropertyCondition { #[doc(hidden)] pub struct IFsrmPropertyCondition_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: *mut FsrmPropertyConditionType) -> ::windows::core::HRESULT, pub SetType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: FsrmPropertyConditionType) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Value: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetValue: usize, + pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Storage_FileServerResourceManager\"`, `\"Win32_System_Com\"`*"] @@ -7620,19 +6695,12 @@ impl IFsrmPropertyDefinition { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, description: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), description.into().abi()).ok() + pub unsafe fn SetDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(description)).ok() } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Delete)(::windows::core::Interface::as_raw(self)).ok() @@ -7640,19 +6708,12 @@ impl IFsrmPropertyDefinition { pub unsafe fn Commit(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Commit)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } pub unsafe fn Type(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7779,14 +6840,8 @@ unsafe impl ::windows::core::Interface for IFsrmPropertyDefinition { #[doc(hidden)] pub struct IFsrmPropertyDefinition_Vtbl { pub base__: IFsrmObject_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: *mut FsrmPropertyDefinitionType) -> ::windows::core::HRESULT, pub SetType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: FsrmPropertyDefinitionType) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] @@ -7824,19 +6879,12 @@ impl IFsrmPropertyDefinition2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, description: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetDescription)(::windows::core::Interface::as_raw(self), description.into().abi()).ok() + pub unsafe fn SetDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(description)).ok() } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.Delete)(::windows::core::Interface::as_raw(self)).ok() @@ -7844,19 +6892,12 @@ impl IFsrmPropertyDefinition2 { pub unsafe fn Commit(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.Commit)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } pub unsafe fn Type(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7902,19 +6943,12 @@ impl IFsrmPropertyDefinition2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).PropertyDefinitionFlags)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisplayName(&self) -> ::windows::core::Result { + pub unsafe fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDisplayName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDisplayName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetDisplayName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } pub unsafe fn AppliesTo(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -8030,14 +7064,8 @@ unsafe impl ::windows::core::Interface for IFsrmPropertyDefinition2 { pub struct IFsrmPropertyDefinition2_Vtbl { pub base__: IFsrmPropertyDefinition_Vtbl, pub PropertyDefinitionFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertydefinitionflags: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DisplayName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDisplayName: usize, + pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub AppliesTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appliesto: *mut i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub ValueDefinitions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, valuedefinitions: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -8050,29 +7078,21 @@ pub struct IFsrmPropertyDefinition2_Vtbl { pub struct IFsrmPropertyDefinitionValue(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IFsrmPropertyDefinitionValue { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisplayName(&self) -> ::windows::core::Result { + pub unsafe fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UniqueID(&self) -> ::windows::core::Result { + pub unsafe fn UniqueID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UniqueID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UniqueID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -8141,22 +7161,10 @@ unsafe impl ::windows::core::Interface for IFsrmPropertyDefinitionValue { #[doc(hidden)] pub struct IFsrmPropertyDefinitionValue_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, displayname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DisplayName: usize, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub UniqueID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uniqueid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UniqueID: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, displayname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub UniqueID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uniqueid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Storage_FileServerResourceManager\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -8168,19 +7176,12 @@ impl IFsrmQuota { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, description: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.SetDescription)(::windows::core::Interface::as_raw(self), description.into().abi()).ok() + pub unsafe fn SetDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(description)).ok() } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.Delete)(::windows::core::Interface::as_raw(self)).ok() @@ -8236,41 +7237,28 @@ impl IFsrmQuota { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.EnumThresholdActions)(::windows::core::Interface::as_raw(self), threshold, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Path(&self) -> ::windows::core::Result { + pub unsafe fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserSid(&self) -> ::windows::core::Result { + pub unsafe fn UserSid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.UserSid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.UserSid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserAccount(&self) -> ::windows::core::Result { + pub unsafe fn UserAccount(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.UserAccount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.UserAccount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SourceTemplateName(&self) -> ::windows::core::Result { + pub unsafe fn SourceTemplateName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.SourceTemplateName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.SourceTemplateName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn MatchesSourceTemplate(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.MatchesSourceTemplate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ApplyTemplate<'a, P0>(&self, quotatemplatename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.ApplyTemplate)(::windows::core::Interface::as_raw(self), quotatemplatename.into().abi()).ok() + pub unsafe fn ApplyTemplate(&self, quotatemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.ApplyTemplate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(quotatemplatename)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -8437,19 +7425,12 @@ impl IFsrmQuotaBase { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, description: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), description.into().abi()).ok() + pub unsafe fn SetDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(description)).ok() } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Delete)(::windows::core::Interface::as_raw(self)).ok() @@ -8634,86 +7615,56 @@ impl IFsrmQuotaManager { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ActionVariableDescriptions)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut super::super::System::Com::SAFEARRAY>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateQuota<'a, P0>(&self, path: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateQuota(&self, path: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateQuota)(::windows::core::Interface::as_raw(self), path.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateQuota)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateAutoApplyQuota<'a, P0, P1>(&self, quotatemplatename: P0, path: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateAutoApplyQuota(&self, quotatemplatename: &::windows::core::BSTR, path: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateAutoApplyQuota)(::windows::core::Interface::as_raw(self), quotatemplatename.into().abi(), path.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateAutoApplyQuota)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(quotatemplatename), ::core::mem::transmute_copy(path), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetQuota<'a, P0>(&self, path: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetQuota(&self, path: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetQuota)(::windows::core::Interface::as_raw(self), path.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetQuota)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetAutoApplyQuota<'a, P0>(&self, path: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetAutoApplyQuota(&self, path: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetAutoApplyQuota)(::windows::core::Interface::as_raw(self), path.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetAutoApplyQuota)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetRestrictiveQuota<'a, P0>(&self, path: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetRestrictiveQuota(&self, path: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetRestrictiveQuota)(::windows::core::Interface::as_raw(self), path.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetRestrictiveQuota)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn EnumQuotas<'a, P0>(&self, path: P0, options: FsrmEnumOptions) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn EnumQuotas(&self, path: &::windows::core::BSTR, options: FsrmEnumOptions) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).EnumQuotas)(::windows::core::Interface::as_raw(self), path.into().abi(), options, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).EnumQuotas)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), options, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn EnumAutoApplyQuotas<'a, P0>(&self, path: P0, options: FsrmEnumOptions) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn EnumAutoApplyQuotas(&self, path: &::windows::core::BSTR, options: FsrmEnumOptions) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).EnumAutoApplyQuotas)(::windows::core::Interface::as_raw(self), path.into().abi(), options, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).EnumAutoApplyQuotas)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), options, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn EnumEffectiveQuotas<'a, P0>(&self, path: P0, options: FsrmEnumOptions) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn EnumEffectiveQuotas(&self, path: &::windows::core::BSTR, options: FsrmEnumOptions) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).EnumEffectiveQuotas)(::windows::core::Interface::as_raw(self), path.into().abi(), options, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).EnumEffectiveQuotas)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), options, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Scan<'a, P0>(&self, strpath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Scan)(::windows::core::Interface::as_raw(self), strpath.into().abi()).ok() + pub unsafe fn Scan(&self, strpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Scan)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strpath)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -8796,42 +7747,39 @@ pub struct IFsrmQuotaManager_Vtbl { pub ActionVariableDescriptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, descriptions: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] ActionVariableDescriptions: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreateQuota: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, quota: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreateQuota: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, quota: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreateQuota: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreateAutoApplyQuota: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, quotatemplatename: ::core::mem::ManuallyDrop, path: ::core::mem::ManuallyDrop, quota: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreateAutoApplyQuota: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, quotatemplatename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, quota: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreateAutoApplyQuota: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetQuota: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, quota: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetQuota: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, quota: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetQuota: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetAutoApplyQuota: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, quota: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetAutoApplyQuota: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, quota: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetAutoApplyQuota: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetRestrictiveQuota: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, quota: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetRestrictiveQuota: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, quota: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetRestrictiveQuota: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub EnumQuotas: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, options: FsrmEnumOptions, quotas: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub EnumQuotas: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, options: FsrmEnumOptions, quotas: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] EnumQuotas: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub EnumAutoApplyQuotas: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, options: FsrmEnumOptions, quotas: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub EnumAutoApplyQuotas: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, options: FsrmEnumOptions, quotas: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] EnumAutoApplyQuotas: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub EnumEffectiveQuotas: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, options: FsrmEnumOptions, quotas: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub EnumEffectiveQuotas: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, options: FsrmEnumOptions, quotas: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] EnumEffectiveQuotas: usize, - #[cfg(feature = "Win32_Foundation")] - pub Scan: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Scan: usize, + pub Scan: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub CreateQuotaCollection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, collection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -8855,86 +7803,56 @@ impl IFsrmQuotaManagerEx { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.ActionVariableDescriptions)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut super::super::System::Com::SAFEARRAY>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateQuota<'a, P0>(&self, path: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateQuota(&self, path: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CreateQuota)(::windows::core::Interface::as_raw(self), path.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CreateQuota)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateAutoApplyQuota<'a, P0, P1>(&self, quotatemplatename: P0, path: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateAutoApplyQuota(&self, quotatemplatename: &::windows::core::BSTR, path: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CreateAutoApplyQuota)(::windows::core::Interface::as_raw(self), quotatemplatename.into().abi(), path.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CreateAutoApplyQuota)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(quotatemplatename), ::core::mem::transmute_copy(path), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetQuota<'a, P0>(&self, path: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetQuota(&self, path: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetQuota)(::windows::core::Interface::as_raw(self), path.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetQuota)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetAutoApplyQuota<'a, P0>(&self, path: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetAutoApplyQuota(&self, path: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetAutoApplyQuota)(::windows::core::Interface::as_raw(self), path.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetAutoApplyQuota)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetRestrictiveQuota<'a, P0>(&self, path: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetRestrictiveQuota(&self, path: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetRestrictiveQuota)(::windows::core::Interface::as_raw(self), path.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetRestrictiveQuota)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn EnumQuotas<'a, P0>(&self, path: P0, options: FsrmEnumOptions) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn EnumQuotas(&self, path: &::windows::core::BSTR, options: FsrmEnumOptions) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.EnumQuotas)(::windows::core::Interface::as_raw(self), path.into().abi(), options, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.EnumQuotas)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), options, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn EnumAutoApplyQuotas<'a, P0>(&self, path: P0, options: FsrmEnumOptions) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn EnumAutoApplyQuotas(&self, path: &::windows::core::BSTR, options: FsrmEnumOptions) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.EnumAutoApplyQuotas)(::windows::core::Interface::as_raw(self), path.into().abi(), options, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.EnumAutoApplyQuotas)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), options, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn EnumEffectiveQuotas<'a, P0>(&self, path: P0, options: FsrmEnumOptions) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn EnumEffectiveQuotas(&self, path: &::windows::core::BSTR, options: FsrmEnumOptions) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.EnumEffectiveQuotas)(::windows::core::Interface::as_raw(self), path.into().abi(), options, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.EnumEffectiveQuotas)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), options, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Scan<'a, P0>(&self, strpath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.Scan)(::windows::core::Interface::as_raw(self), strpath.into().abi()).ok() + pub unsafe fn Scan(&self, strpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.Scan)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strpath)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -8942,14 +7860,9 @@ impl IFsrmQuotaManagerEx { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.CreateQuotaCollection)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsAffectedByQuota<'a, P0>(&self, path: P0, options: FsrmEnumOptions) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsAffectedByQuota(&self, path: &::windows::core::BSTR, options: FsrmEnumOptions) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).IsAffectedByQuota)(::windows::core::Interface::as_raw(self), path.into().abi(), options, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).IsAffectedByQuota)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), options, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -9036,10 +7949,7 @@ unsafe impl ::windows::core::Interface for IFsrmQuotaManagerEx { #[doc(hidden)] pub struct IFsrmQuotaManagerEx_Vtbl { pub base__: IFsrmQuotaManager_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub IsAffectedByQuota: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, options: FsrmEnumOptions, affected: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - IsAffectedByQuota: usize, + pub IsAffectedByQuota: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, options: FsrmEnumOptions, affected: *mut i16) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Storage_FileServerResourceManager\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9051,19 +7961,12 @@ impl IFsrmQuotaObject { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, description: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetDescription)(::windows::core::Interface::as_raw(self), description.into().abi()).ok() + pub unsafe fn SetDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(description)).ok() } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.Delete)(::windows::core::Interface::as_raw(self)).ok() @@ -9119,41 +8022,28 @@ impl IFsrmQuotaObject { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.EnumThresholdActions)(::windows::core::Interface::as_raw(self), threshold, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Path(&self) -> ::windows::core::Result { + pub unsafe fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserSid(&self) -> ::windows::core::Result { + pub unsafe fn UserSid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UserSid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UserSid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserAccount(&self) -> ::windows::core::Result { + pub unsafe fn UserAccount(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UserAccount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UserAccount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SourceTemplateName(&self) -> ::windows::core::Result { + pub unsafe fn SourceTemplateName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SourceTemplateName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SourceTemplateName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn MatchesSourceTemplate(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).MatchesSourceTemplate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ApplyTemplate<'a, P0>(&self, quotatemplatename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ApplyTemplate)(::windows::core::Interface::as_raw(self), quotatemplatename.into().abi()).ok() + pub unsafe fn ApplyTemplate(&self, quotatemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ApplyTemplate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(quotatemplatename)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -9258,27 +8148,12 @@ unsafe impl ::windows::core::Interface for IFsrmQuotaObject { #[doc(hidden)] pub struct IFsrmQuotaObject_Vtbl { pub base__: IFsrmQuotaBase_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Path: usize, - #[cfg(feature = "Win32_Foundation")] - pub UserSid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, usersid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UserSid: usize, - #[cfg(feature = "Win32_Foundation")] - pub UserAccount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, useraccount: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UserAccount: usize, - #[cfg(feature = "Win32_Foundation")] - pub SourceTemplateName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, quotatemplatename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SourceTemplateName: usize, + pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub UserSid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, usersid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub UserAccount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, useraccount: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SourceTemplateName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, quotatemplatename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub MatchesSourceTemplate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, matches: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ApplyTemplate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, quotatemplatename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ApplyTemplate: usize, + pub ApplyTemplate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, quotatemplatename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Storage_FileServerResourceManager\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9290,19 +8165,12 @@ impl IFsrmQuotaTemplate { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, description: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetDescription)(::windows::core::Interface::as_raw(self), description.into().abi()).ok() + pub unsafe fn SetDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(description)).ok() } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.Delete)(::windows::core::Interface::as_raw(self)).ok() @@ -9358,27 +8226,15 @@ impl IFsrmQuotaTemplate { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.EnumThresholdActions)(::windows::core::Interface::as_raw(self), threshold, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CopyTemplate<'a, P0>(&self, quotatemplatename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).CopyTemplate)(::windows::core::Interface::as_raw(self), quotatemplatename.into().abi()).ok() + pub unsafe fn CopyTemplate(&self, quotatemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).CopyTemplate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(quotatemplatename)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9489,18 +8345,9 @@ unsafe impl ::windows::core::Interface for IFsrmQuotaTemplate { #[doc(hidden)] pub struct IFsrmQuotaTemplate_Vtbl { pub base__: IFsrmQuotaBase_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, - #[cfg(feature = "Win32_Foundation")] - pub CopyTemplate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, quotatemplatename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CopyTemplate: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CopyTemplate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, quotatemplatename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub CommitAndUpdateDerived: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, commitoptions: FsrmCommitOptions, applyoptions: FsrmTemplateApplyOptions, derivedobjectsresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -9516,19 +8363,12 @@ impl IFsrmQuotaTemplateImported { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, description: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.SetDescription)(::windows::core::Interface::as_raw(self), description.into().abi()).ok() + pub unsafe fn SetDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(description)).ok() } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.Delete)(::windows::core::Interface::as_raw(self)).ok() @@ -9584,27 +8424,15 @@ impl IFsrmQuotaTemplateImported { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.EnumThresholdActions)(::windows::core::Interface::as_raw(self), threshold, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CopyTemplate<'a, P0>(&self, quotatemplatename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.CopyTemplate)(::windows::core::Interface::as_raw(self), quotatemplatename.into().abi()).ok() + pub unsafe fn CopyTemplate(&self, quotatemplatename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.CopyTemplate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(quotatemplatename)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9755,14 +8583,11 @@ impl IFsrmQuotaTemplateManager { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CreateTemplate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetTemplate<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetTemplate(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetTemplate)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetTemplate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9772,18 +8597,15 @@ impl IFsrmQuotaTemplateManager { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ExportTemplates(&self, quotatemplatenamesarray: &super::super::System::Com::VARIANT) -> ::windows::core::Result { + pub unsafe fn ExportTemplates(&self, quotatemplatenamesarray: &super::super::System::Com::VARIANT) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ExportTemplates)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(quotatemplatenamesarray), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ExportTemplates)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(quotatemplatenamesarray), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ImportTemplates<'a, P0>(&self, serializedquotatemplates: P0, quotatemplatenamesarray: &super::super::System::Com::VARIANT) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn ImportTemplates(&self, serializedquotatemplates: &::windows::core::BSTR, quotatemplatenamesarray: &super::super::System::Com::VARIANT) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ImportTemplates)(::windows::core::Interface::as_raw(self), serializedquotatemplates.into().abi(), ::core::mem::transmute(quotatemplatenamesarray), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ImportTemplates)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(serializedquotatemplates), ::core::mem::transmute(quotatemplatenamesarray), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -9856,20 +8678,20 @@ pub struct IFsrmQuotaTemplateManager_Vtbl { pub CreateTemplate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, quotatemplate: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] CreateTemplate: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetTemplate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, quotatemplate: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetTemplate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, quotatemplate: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetTemplate: usize, #[cfg(feature = "Win32_System_Com")] pub EnumTemplates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, options: FsrmEnumOptions, quotatemplates: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] EnumTemplates: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub ExportTemplates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, quotatemplatenamesarray: *const super::super::System::Com::VARIANT, serializedquotatemplates: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub ExportTemplates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, quotatemplatenamesarray: *const super::super::System::Com::VARIANT, serializedquotatemplates: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] ExportTemplates: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub ImportTemplates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, serializedquotatemplates: ::core::mem::ManuallyDrop, quotatemplatenamesarray: *const super::super::System::Com::VARIANT, quotatemplates: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub ImportTemplates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, serializedquotatemplates: ::core::mem::ManuallyDrop<::windows::core::BSTR>, quotatemplatenamesarray: *const super::super::System::Com::VARIANT, quotatemplates: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] ImportTemplates: usize, } @@ -9883,39 +8705,23 @@ impl IFsrmReport { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, description: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), description.into().abi()).ok() + pub unsafe fn SetDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(description)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LastGeneratedFileNamePrefix(&self) -> ::windows::core::Result { + pub unsafe fn LastGeneratedFileNamePrefix(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LastGeneratedFileNamePrefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LastGeneratedFileNamePrefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -10002,26 +8808,11 @@ unsafe impl ::windows::core::Interface for IFsrmReport { pub struct IFsrmReport_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reporttype: *mut FsrmReportType) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDescription: usize, - #[cfg(feature = "Win32_Foundation")] - pub LastGeneratedFileNamePrefix: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prefix: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LastGeneratedFileNamePrefix: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub LastGeneratedFileNamePrefix: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prefix: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub GetFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filter: FsrmReportFilter, filtervalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -10042,19 +8833,12 @@ impl IFsrmReportJob { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, description: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), description.into().abi()).ok() + pub unsafe fn SetDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(description)).ok() } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Delete)(::windows::core::Interface::as_raw(self)).ok() @@ -10062,19 +8846,12 @@ impl IFsrmReportJob { pub unsafe fn Commit(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Commit)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Task(&self) -> ::windows::core::Result { + pub unsafe fn Task(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Task)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Task)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetTask<'a, P0>(&self, taskname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetTask)(::windows::core::Interface::as_raw(self), taskname.into().abi()).ok() + pub unsafe fn SetTask(&self, taskname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetTask)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(taskname)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -10098,19 +8875,12 @@ impl IFsrmReportJob { pub unsafe fn SetFormats(&self, formats: &super::super::System::Com::SAFEARRAY) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetFormats)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(formats)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MailTo(&self) -> ::windows::core::Result { + pub unsafe fn MailTo(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).MailTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).MailTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMailTo<'a, P0>(&self, mailto: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetMailTo)(::windows::core::Interface::as_raw(self), mailto.into().abi()).ok() + pub unsafe fn SetMailTo(&self, mailto: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetMailTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mailto)).ok() } pub unsafe fn RunningStatus(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -10120,17 +8890,13 @@ impl IFsrmReportJob { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).LastRun)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LastError(&self) -> ::windows::core::Result { + pub unsafe fn LastError(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LastError)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LastError)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LastGeneratedInDirectory(&self) -> ::windows::core::Result { + pub unsafe fn LastGeneratedInDirectory(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LastGeneratedInDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LastGeneratedInDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -10239,14 +9005,8 @@ unsafe impl ::windows::core::Interface for IFsrmReportJob { #[doc(hidden)] pub struct IFsrmReportJob_Vtbl { pub base__: IFsrmObject_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Task: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, taskname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Task: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, taskname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetTask: usize, + pub Task: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, taskname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, taskname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub NamespaceRoots: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, namespaceroots: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -10263,24 +9023,12 @@ pub struct IFsrmReportJob_Vtbl { pub SetFormats: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, formats: *const super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] SetFormats: usize, - #[cfg(feature = "Win32_Foundation")] - pub MailTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailto: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MailTo: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetMailTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailto: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetMailTo: usize, + pub MailTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailto: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetMailTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailto: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub RunningStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, runningstatus: *mut FsrmReportRunningStatus) -> ::windows::core::HRESULT, pub LastRun: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lastrun: *mut f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub LastError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lasterror: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LastError: usize, - #[cfg(feature = "Win32_Foundation")] - pub LastGeneratedInDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LastGeneratedInDirectory: usize, + pub LastError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lasterror: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub LastGeneratedInDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub EnumReports: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reports: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -10311,28 +9059,18 @@ impl IFsrmReportManager { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CreateReportJob)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetReportJob<'a, P0>(&self, taskname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetReportJob(&self, taskname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetReportJob)(::windows::core::Interface::as_raw(self), taskname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetReportJob)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(taskname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetOutputDirectory(&self, context: FsrmReportGenerationContext) -> ::windows::core::Result { + pub unsafe fn GetOutputDirectory(&self, context: FsrmReportGenerationContext) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetOutputDirectory)(::windows::core::Interface::as_raw(self), context, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetOutputDirectory)(::windows::core::Interface::as_raw(self), context, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetOutputDirectory<'a, P0>(&self, context: FsrmReportGenerationContext, path: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetOutputDirectory)(::windows::core::Interface::as_raw(self), context, path.into().abi()).ok() + pub unsafe fn SetOutputDirectory(&self, context: FsrmReportGenerationContext, path: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetOutputDirectory)(::windows::core::Interface::as_raw(self), context, ::core::mem::transmute_copy(path)).ok() } pub unsafe fn IsFilterValidForReportType(&self, reporttype: FsrmReportType, filter: FsrmReportFilter) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -10441,18 +9179,12 @@ pub struct IFsrmReportManager_Vtbl { pub CreateReportJob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reportjob: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] CreateReportJob: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetReportJob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, taskname: ::core::mem::ManuallyDrop, reportjob: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetReportJob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, taskname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, reportjob: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetReportJob: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetOutputDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: FsrmReportGenerationContext, path: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetOutputDirectory: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetOutputDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: FsrmReportGenerationContext, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetOutputDirectory: usize, + pub GetOutputDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: FsrmReportGenerationContext, path: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetOutputDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: FsrmReportGenerationContext, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub IsFilterValidForReportType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reporttype: FsrmReportType, filter: FsrmReportFilter, valid: *mut i16) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub GetDefaultFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reporttype: FsrmReportType, filter: FsrmReportFilter, filtervalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, @@ -10484,29 +9216,16 @@ impl IFsrmReportScheduler { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateScheduleTask<'a, P0, P1>(&self, taskname: P0, namespacessafearray: &super::super::System::Com::VARIANT, serializedtask: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).CreateScheduleTask)(::windows::core::Interface::as_raw(self), taskname.into().abi(), ::core::mem::transmute(namespacessafearray), serializedtask.into().abi()).ok() + pub unsafe fn CreateScheduleTask(&self, taskname: &::windows::core::BSTR, namespacessafearray: &super::super::System::Com::VARIANT, serializedtask: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).CreateScheduleTask)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(taskname), ::core::mem::transmute(namespacessafearray), ::core::mem::transmute_copy(serializedtask)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ModifyScheduleTask<'a, P0, P1>(&self, taskname: P0, namespacessafearray: &super::super::System::Com::VARIANT, serializedtask: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ModifyScheduleTask)(::windows::core::Interface::as_raw(self), taskname.into().abi(), ::core::mem::transmute(namespacessafearray), serializedtask.into().abi()).ok() + pub unsafe fn ModifyScheduleTask(&self, taskname: &::windows::core::BSTR, namespacessafearray: &super::super::System::Com::VARIANT, serializedtask: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ModifyScheduleTask)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(taskname), ::core::mem::transmute(namespacessafearray), ::core::mem::transmute_copy(serializedtask)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeleteScheduleTask<'a, P0>(&self, taskname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DeleteScheduleTask)(::windows::core::Interface::as_raw(self), taskname.into().abi()).ok() + pub unsafe fn DeleteScheduleTask(&self, taskname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DeleteScheduleTask)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(taskname)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -10580,17 +9299,14 @@ pub struct IFsrmReportScheduler_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] VerifyNamespaces: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub CreateScheduleTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, taskname: ::core::mem::ManuallyDrop, namespacessafearray: *const super::super::System::Com::VARIANT, serializedtask: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub CreateScheduleTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, taskname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, namespacessafearray: *const super::super::System::Com::VARIANT, serializedtask: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] CreateScheduleTask: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub ModifyScheduleTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, taskname: ::core::mem::ManuallyDrop, namespacessafearray: *const super::super::System::Com::VARIANT, serializedtask: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub ModifyScheduleTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, taskname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, namespacessafearray: *const super::super::System::Com::VARIANT, serializedtask: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] ModifyScheduleTask: usize, - #[cfg(feature = "Win32_Foundation")] - pub DeleteScheduleTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, taskname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeleteScheduleTask: usize, + pub DeleteScheduleTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, taskname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Storage_FileServerResourceManager\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -10602,19 +9318,12 @@ impl IFsrmRule { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, description: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), description.into().abi()).ok() + pub unsafe fn SetDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(description)).ok() } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Delete)(::windows::core::Interface::as_raw(self)).ok() @@ -10622,37 +9331,23 @@ impl IFsrmRule { pub unsafe fn Commit(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Commit)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } pub unsafe fn RuleType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).RuleType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ModuleDefinitionName(&self) -> ::windows::core::Result { + pub unsafe fn ModuleDefinitionName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ModuleDefinitionName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ModuleDefinitionName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetModuleDefinitionName<'a, P0>(&self, moduledefinitionname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetModuleDefinitionName)(::windows::core::Interface::as_raw(self), moduledefinitionname.into().abi()).ok() + pub unsafe fn SetModuleDefinitionName(&self, moduledefinitionname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetModuleDefinitionName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(moduledefinitionname)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -10774,23 +9469,11 @@ unsafe impl ::windows::core::Interface for IFsrmRule { #[doc(hidden)] pub struct IFsrmRule_Vtbl { pub base__: IFsrmObject_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub RuleType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ruletype: *mut FsrmRuleType) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ModuleDefinitionName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, moduledefinitionname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ModuleDefinitionName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetModuleDefinitionName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, moduledefinitionname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetModuleDefinitionName: usize, + pub ModuleDefinitionName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, moduledefinitionname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetModuleDefinitionName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, moduledefinitionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub NamespaceRoots: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, namespaceroots: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -10820,47 +9503,26 @@ pub struct IFsrmRule_Vtbl { pub struct IFsrmSetting(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IFsrmSetting { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SmtpServer(&self) -> ::windows::core::Result { + pub unsafe fn SmtpServer(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SmtpServer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SmtpServer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSmtpServer<'a, P0>(&self, smtpserver: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSmtpServer)(::windows::core::Interface::as_raw(self), smtpserver.into().abi()).ok() + pub unsafe fn SetSmtpServer(&self, smtpserver: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSmtpServer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(smtpserver)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MailFrom(&self) -> ::windows::core::Result { + pub unsafe fn MailFrom(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).MailFrom)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).MailFrom)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMailFrom<'a, P0>(&self, mailfrom: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetMailFrom)(::windows::core::Interface::as_raw(self), mailfrom.into().abi()).ok() + pub unsafe fn SetMailFrom(&self, mailfrom: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetMailFrom)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mailfrom)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AdminEmail(&self) -> ::windows::core::Result { + pub unsafe fn AdminEmail(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AdminEmail)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AdminEmail)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetAdminEmail<'a, P0>(&self, adminemail: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetAdminEmail)(::windows::core::Interface::as_raw(self), adminemail.into().abi()).ok() + pub unsafe fn SetAdminEmail(&self, adminemail: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetAdminEmail)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(adminemail)).ok() } pub unsafe fn DisableCommandLine(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -10876,13 +9538,8 @@ impl IFsrmSetting { pub unsafe fn SetEnableScreeningAudit(&self, enablescreeningaudit: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetEnableScreeningAudit)(::windows::core::Interface::as_raw(self), enablescreeningaudit).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EmailTest<'a, P0>(&self, mailto: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).EmailTest)(::windows::core::Interface::as_raw(self), mailto.into().abi()).ok() + pub unsafe fn EmailTest(&self, mailto: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).EmailTest)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(mailto)).ok() } pub unsafe fn SetActionRunLimitInterval(&self, actiontype: FsrmActionType, delaytimeminutes: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetActionRunLimitInterval)(::windows::core::Interface::as_raw(self), actiontype, delaytimeminutes).ok() @@ -10958,38 +9615,17 @@ unsafe impl ::windows::core::Interface for IFsrmSetting { #[doc(hidden)] pub struct IFsrmSetting_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub SmtpServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, smtpserver: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SmtpServer: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSmtpServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, smtpserver: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSmtpServer: usize, - #[cfg(feature = "Win32_Foundation")] - pub MailFrom: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailfrom: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MailFrom: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetMailFrom: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailfrom: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetMailFrom: usize, - #[cfg(feature = "Win32_Foundation")] - pub AdminEmail: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, adminemail: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AdminEmail: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetAdminEmail: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, adminemail: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetAdminEmail: usize, + pub SmtpServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, smtpserver: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSmtpServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, smtpserver: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub MailFrom: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailfrom: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetMailFrom: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailfrom: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub AdminEmail: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, adminemail: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetAdminEmail: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, adminemail: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub DisableCommandLine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, disablecommandline: *mut i16) -> ::windows::core::HRESULT, pub SetDisableCommandLine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, disablecommandline: i16) -> ::windows::core::HRESULT, pub EnableScreeningAudit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enablescreeningaudit: *mut i16) -> ::windows::core::HRESULT, pub SetEnableScreeningAudit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enablescreeningaudit: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub EmailTest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailto: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EmailTest: usize, + pub EmailTest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mailto: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetActionRunLimitInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, actiontype: FsrmActionType, delaytimeminutes: i32) -> ::windows::core::HRESULT, pub GetActionRunLimitInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, actiontype: FsrmActionType, delaytimeminutes: *mut i32) -> ::windows::core::HRESULT, } @@ -11003,19 +9639,12 @@ impl IFsrmStorageModuleDefinition { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, description: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetDescription)(::windows::core::Interface::as_raw(self), description.into().abi()).ok() + pub unsafe fn SetDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(description)).ok() } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.Delete)(::windows::core::Interface::as_raw(self)).ok() @@ -11023,61 +9652,33 @@ impl IFsrmStorageModuleDefinition { pub unsafe fn Commit(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.Commit)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ModuleClsid(&self) -> ::windows::core::Result { + pub unsafe fn ModuleClsid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ModuleClsid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ModuleClsid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetModuleClsid<'a, P0>(&self, moduleclsid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetModuleClsid)(::windows::core::Interface::as_raw(self), moduleclsid.into().abi()).ok() + pub unsafe fn SetModuleClsid(&self, moduleclsid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetModuleClsid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(moduleclsid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Company(&self) -> ::windows::core::Result { + pub unsafe fn Company(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Company)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Company)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCompany<'a, P0>(&self, company: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetCompany)(::windows::core::Interface::as_raw(self), company.into().abi()).ok() + pub unsafe fn SetCompany(&self, company: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetCompany)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(company)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Version(&self) -> ::windows::core::Result { + pub unsafe fn Version(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Version)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Version)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetVersion<'a, P0>(&self, version: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetVersion)(::windows::core::Interface::as_raw(self), version.into().abi()).ok() + pub unsafe fn SetVersion(&self, version: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetVersion)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(version)).ok() } pub unsafe fn ModuleType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); diff --git a/crates/libs/windows/src/Windows/Win32/Storage/Imapi/impl.rs b/crates/libs/windows/src/Windows/Win32/Storage/Imapi/impl.rs index ff2deec91e..13123cdcdb 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Imapi/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Imapi/impl.rs @@ -80,20 +80,20 @@ impl DDiscFormat2TrackAtOnceEvents_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait DDiscMaster2Events_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn NotifyDeviceAdded(&self, object: &::core::option::Option, uniqueid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn NotifyDeviceRemoved(&self, object: &::core::option::Option, uniqueid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn NotifyDeviceAdded(&self, object: &::core::option::Option, uniqueid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn NotifyDeviceRemoved(&self, object: &::core::option::Option, uniqueid: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for DDiscMaster2Events {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl DDiscMaster2Events_Vtbl { pub const fn new, Impl: DDiscMaster2Events_Impl, const OFFSET: isize>() -> DDiscMaster2Events_Vtbl { - unsafe extern "system" fn NotifyDeviceAdded, Impl: DDiscMaster2Events_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, object: *mut ::core::ffi::c_void, uniqueid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn NotifyDeviceAdded, Impl: DDiscMaster2Events_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, object: *mut ::core::ffi::c_void, uniqueid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.NotifyDeviceAdded(::core::mem::transmute(&object), ::core::mem::transmute(&uniqueid)).into() } - unsafe extern "system" fn NotifyDeviceRemoved, Impl: DDiscMaster2Events_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, object: *mut ::core::ffi::c_void, uniqueid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn NotifyDeviceRemoved, Impl: DDiscMaster2Events_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, object: *mut ::core::ffi::c_void, uniqueid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.NotifyDeviceRemoved(::core::mem::transmute(&object), ::core::mem::transmute(&uniqueid)).into() @@ -110,14 +110,14 @@ impl DDiscMaster2Events_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait DFileSystemImageEvents_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Update(&self, object: &::core::option::Option, currentfile: &super::super::Foundation::BSTR, copiedsectors: i32, totalsectors: i32) -> ::windows::core::Result<()>; + fn Update(&self, object: &::core::option::Option, currentfile: &::windows::core::BSTR, copiedsectors: i32, totalsectors: i32) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for DFileSystemImageEvents {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl DFileSystemImageEvents_Vtbl { pub const fn new, Impl: DFileSystemImageEvents_Impl, const OFFSET: isize>() -> DFileSystemImageEvents_Vtbl { - unsafe extern "system" fn Update, Impl: DFileSystemImageEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, object: *mut ::core::ffi::c_void, currentfile: ::core::mem::ManuallyDrop, copiedsectors: i32, totalsectors: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn Update, Impl: DFileSystemImageEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, object: *mut ::core::ffi::c_void, currentfile: ::core::mem::ManuallyDrop<::windows::core::BSTR>, copiedsectors: i32, totalsectors: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Update(::core::mem::transmute(&object), ::core::mem::transmute(¤tfile), ::core::mem::transmute_copy(&copiedsectors), ::core::mem::transmute_copy(&totalsectors)).into() @@ -130,14 +130,14 @@ impl DFileSystemImageEvents_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait DFileSystemImageImportEvents_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn UpdateImport(&self, object: &::core::option::Option, filesystem: FsiFileSystems, currentitem: &super::super::Foundation::BSTR, importeddirectoryitems: i32, totaldirectoryitems: i32, importedfileitems: i32, totalfileitems: i32) -> ::windows::core::Result<()>; + fn UpdateImport(&self, object: &::core::option::Option, filesystem: FsiFileSystems, currentitem: &::windows::core::BSTR, importeddirectoryitems: i32, totaldirectoryitems: i32, importedfileitems: i32, totalfileitems: i32) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for DFileSystemImageImportEvents {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl DFileSystemImageImportEvents_Vtbl { pub const fn new, Impl: DFileSystemImageImportEvents_Impl, const OFFSET: isize>() -> DFileSystemImageImportEvents_Vtbl { - unsafe extern "system" fn UpdateImport, Impl: DFileSystemImageImportEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, object: *mut ::core::ffi::c_void, filesystem: FsiFileSystems, currentitem: ::core::mem::ManuallyDrop, importeddirectoryitems: i32, totaldirectoryitems: i32, importedfileitems: i32, totalfileitems: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn UpdateImport, Impl: DFileSystemImageImportEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, object: *mut ::core::ffi::c_void, filesystem: FsiFileSystems, currentitem: ::core::mem::ManuallyDrop<::windows::core::BSTR>, importeddirectoryitems: i32, totaldirectoryitems: i32, importedfileitems: i32, totalfileitems: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.UpdateImport(::core::mem::transmute(&object), ::core::mem::transmute_copy(&filesystem), ::core::mem::transmute(¤titem), ::core::mem::transmute_copy(&importeddirectoryitems), ::core::mem::transmute_copy(&totaldirectoryitems), ::core::mem::transmute_copy(&importedfileitems), ::core::mem::transmute_copy(&totalfileitems)).into() @@ -239,8 +239,8 @@ impl IBlockRangeList_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IBootOptions_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn BootImage(&self) -> ::windows::core::Result; - fn Manufacturer(&self) -> ::windows::core::Result; - fn SetManufacturer(&self, newval: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Manufacturer(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetManufacturer(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn PlatformId(&self) -> ::windows::core::Result; fn SetPlatformId(&self, newval: PlatformId) -> ::windows::core::Result<()>; fn Emulation(&self) -> ::windows::core::Result; @@ -264,7 +264,7 @@ impl IBootOptions_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Manufacturer, Impl: IBootOptions_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Manufacturer, Impl: IBootOptions_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Manufacturer() { @@ -275,7 +275,7 @@ impl IBootOptions_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetManufacturer, Impl: IBootOptions_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetManufacturer, Impl: IBootOptions_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetManufacturer(::core::mem::transmute(&newval)).into() @@ -479,8 +479,8 @@ pub trait IDiscFormat2Data_Impl: Sized + super::super::System::Com::IDispatch_Im fn SetDisableConsumerDvdCompatibilityMode(&self, value: i16) -> ::windows::core::Result<()>; fn DisableConsumerDvdCompatibilityMode(&self) -> ::windows::core::Result; fn CurrentPhysicalMediaType(&self) -> ::windows::core::Result; - fn SetClientName(&self, value: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ClientName(&self) -> ::windows::core::Result; + fn SetClientName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ClientName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn RequestedWriteSpeed(&self) -> ::windows::core::Result; fn RequestedRotationTypeIsPureCAV(&self) -> ::windows::core::Result; fn CurrentWriteSpeed(&self) -> ::windows::core::Result; @@ -667,12 +667,12 @@ impl IDiscFormat2Data_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetClientName, Impl: IDiscFormat2Data_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetClientName, Impl: IDiscFormat2Data_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetClientName(::core::mem::transmute(&value)).into() } - unsafe extern "system" fn ClientName, Impl: IDiscFormat2Data_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ClientName, Impl: IDiscFormat2Data_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ClientName() { @@ -906,8 +906,8 @@ pub trait IDiscFormat2Erase_Impl: Sized + super::super::System::Com::IDispatch_I fn SetFullErase(&self, value: i16) -> ::windows::core::Result<()>; fn FullErase(&self) -> ::windows::core::Result; fn CurrentPhysicalMediaType(&self) -> ::windows::core::Result; - fn SetClientName(&self, value: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ClientName(&self) -> ::windows::core::Result; + fn SetClientName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ClientName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn EraseMedia(&self) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -958,12 +958,12 @@ impl IDiscFormat2Erase_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetClientName, Impl: IDiscFormat2Erase_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetClientName, Impl: IDiscFormat2Erase_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetClientName(::core::mem::transmute(&value)).into() } - unsafe extern "system" fn ClientName, Impl: IDiscFormat2Erase_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ClientName, Impl: IDiscFormat2Erase_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ClientName() { @@ -1013,8 +1013,8 @@ pub trait IDiscFormat2RawCD_Impl: Sized + super::super::System::Com::IDispatch_I fn SupportedSectorTypes(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; fn SetRequestedSectorType(&self, value: IMAPI_FORMAT2_RAW_CD_DATA_SECTOR_TYPE) -> ::windows::core::Result<()>; fn RequestedSectorType(&self) -> ::windows::core::Result; - fn SetClientName(&self, value: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ClientName(&self) -> ::windows::core::Result; + fn SetClientName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ClientName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn RequestedWriteSpeed(&self) -> ::windows::core::Result; fn RequestedRotationTypeIsPureCAV(&self) -> ::windows::core::Result; fn CurrentWriteSpeed(&self) -> ::windows::core::Result; @@ -1149,12 +1149,12 @@ impl IDiscFormat2RawCD_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetClientName, Impl: IDiscFormat2RawCD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetClientName, Impl: IDiscFormat2RawCD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetClientName(::core::mem::transmute(&value)).into() } - unsafe extern "system" fn ClientName, Impl: IDiscFormat2RawCD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ClientName, Impl: IDiscFormat2RawCD_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ClientName() { @@ -1337,8 +1337,8 @@ pub trait IDiscFormat2TrackAtOnce_Impl: Sized + super::super::System::Com::IDisp fn DoNotFinalizeMedia(&self) -> ::windows::core::Result; fn ExpectedTableOfContents(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; fn CurrentPhysicalMediaType(&self) -> ::windows::core::Result; - fn SetClientName(&self, value: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ClientName(&self) -> ::windows::core::Result; + fn SetClientName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ClientName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn RequestedWriteSpeed(&self) -> ::windows::core::Result; fn RequestedRotationTypeIsPureCAV(&self) -> ::windows::core::Result; fn CurrentWriteSpeed(&self) -> ::windows::core::Result; @@ -1490,12 +1490,12 @@ impl IDiscFormat2TrackAtOnce_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetClientName, Impl: IDiscFormat2TrackAtOnce_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetClientName, Impl: IDiscFormat2TrackAtOnce_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetClientName(::core::mem::transmute(&value)).into() } - unsafe extern "system" fn ClientName, Impl: IDiscFormat2TrackAtOnce_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ClientName, Impl: IDiscFormat2TrackAtOnce_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ClientName() { @@ -1803,7 +1803,7 @@ impl IDiscMaster_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IDiscMaster2_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn _NewEnum(&self) -> ::windows::core::Result; - fn get_Item(&self, index: i32) -> ::windows::core::Result; + fn get_Item(&self, index: i32) -> ::windows::core::Result<::windows::core::BSTR>; fn Count(&self) -> ::windows::core::Result; fn IsSupportedEnvironment(&self) -> ::windows::core::Result; } @@ -1823,7 +1823,7 @@ impl IDiscMaster2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_Item, Impl: IDiscMaster2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: i32, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Item, Impl: IDiscMaster2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: i32, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_Item(::core::mem::transmute_copy(&index)) { @@ -1950,14 +1950,14 @@ impl IDiscMasterProgressEvents_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] +#[cfg(feature = "Win32_System_Com_StructuredStorage")] pub trait IDiscRecorder_Impl: Sized { fn Init(&self, pbyuniqueid: *const u8, nulidsize: u32, nuldrivenumber: u32) -> ::windows::core::Result<()>; fn GetRecorderGUID(&self, pbyuniqueid: *mut u8, ulbuffersize: u32, pulreturnsizerequired: *mut u32) -> ::windows::core::Result<()>; fn GetRecorderType(&self) -> ::windows::core::Result; - fn GetDisplayNames(&self, pbstrvendorid: *mut super::super::Foundation::BSTR, pbstrproductid: *mut super::super::Foundation::BSTR, pbstrrevision: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetBasePnPID(&self) -> ::windows::core::Result; - fn GetPath(&self) -> ::windows::core::Result; + fn GetDisplayNames(&self, pbstrvendorid: *mut ::windows::core::BSTR, pbstrproductid: *mut ::windows::core::BSTR, pbstrrevision: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetBasePnPID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetPath(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetRecorderProperties(&self) -> ::windows::core::Result; fn SetRecorderProperties(&self, ppropstg: &::core::option::Option) -> ::windows::core::Result<()>; fn GetRecorderState(&self) -> ::windows::core::Result; @@ -1968,9 +1968,9 @@ pub trait IDiscRecorder_Impl: Sized { fn Erase(&self, bfullerase: u8) -> ::windows::core::Result<()>; fn Close(&self) -> ::windows::core::Result<()>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] +#[cfg(feature = "Win32_System_Com_StructuredStorage")] impl ::windows::core::RuntimeName for IDiscRecorder {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] +#[cfg(feature = "Win32_System_Com_StructuredStorage")] impl IDiscRecorder_Vtbl { pub const fn new, Impl: IDiscRecorder_Impl, const OFFSET: isize>() -> IDiscRecorder_Vtbl { unsafe extern "system" fn Init, Impl: IDiscRecorder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbyuniqueid: *const u8, nulidsize: u32, nuldrivenumber: u32) -> ::windows::core::HRESULT { @@ -1994,12 +1994,12 @@ impl IDiscRecorder_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetDisplayNames, Impl: IDiscRecorder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrvendorid: *mut super::super::Foundation::BSTR, pbstrproductid: *mut super::super::Foundation::BSTR, pbstrrevision: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDisplayNames, Impl: IDiscRecorder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrvendorid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrproductid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrrevision: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetDisplayNames(::core::mem::transmute_copy(&pbstrvendorid), ::core::mem::transmute_copy(&pbstrproductid), ::core::mem::transmute_copy(&pbstrrevision)).into() } - unsafe extern "system" fn GetBasePnPID, Impl: IDiscRecorder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrbasepnpid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetBasePnPID, Impl: IDiscRecorder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrbasepnpid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetBasePnPID() { @@ -2010,7 +2010,7 @@ impl IDiscRecorder_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetPath, Impl: IDiscRecorder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPath, Impl: IDiscRecorder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetPath() { @@ -2105,16 +2105,16 @@ impl IDiscRecorder_Vtbl { pub trait IDiscRecorder2_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn EjectMedia(&self) -> ::windows::core::Result<()>; fn CloseTray(&self) -> ::windows::core::Result<()>; - fn AcquireExclusiveAccess(&self, force: i16, __midl__idiscrecorder20000: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn AcquireExclusiveAccess(&self, force: i16, __midl__idiscrecorder20000: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn ReleaseExclusiveAccess(&self) -> ::windows::core::Result<()>; fn DisableMcn(&self) -> ::windows::core::Result<()>; fn EnableMcn(&self) -> ::windows::core::Result<()>; - fn InitializeDiscRecorder(&self, recorderuniqueid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ActiveDiscRecorder(&self) -> ::windows::core::Result; - fn VendorId(&self) -> ::windows::core::Result; - fn ProductId(&self) -> ::windows::core::Result; - fn ProductRevision(&self) -> ::windows::core::Result; - fn VolumeName(&self) -> ::windows::core::Result; + fn InitializeDiscRecorder(&self, recorderuniqueid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ActiveDiscRecorder(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn VendorId(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ProductId(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ProductRevision(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn VolumeName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn VolumePathNames(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; fn DeviceCanLoadMedia(&self) -> ::windows::core::Result; fn LegacyDeviceNumber(&self) -> ::windows::core::Result; @@ -2123,7 +2123,7 @@ pub trait IDiscRecorder2_Impl: Sized + super::super::System::Com::IDispatch_Impl fn SupportedProfiles(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; fn CurrentProfiles(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; fn SupportedModePages(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; - fn ExclusiveAccessOwner(&self) -> ::windows::core::Result; + fn ExclusiveAccessOwner(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IDiscRecorder2 {} @@ -2140,7 +2140,7 @@ impl IDiscRecorder2_Vtbl { let this = (*this).get_impl(); this.CloseTray().into() } - unsafe extern "system" fn AcquireExclusiveAccess, Impl: IDiscRecorder2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, force: i16, __midl__idiscrecorder20000: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AcquireExclusiveAccess, Impl: IDiscRecorder2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, force: i16, __midl__idiscrecorder20000: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AcquireExclusiveAccess(::core::mem::transmute_copy(&force), ::core::mem::transmute(&__midl__idiscrecorder20000)).into() @@ -2160,12 +2160,12 @@ impl IDiscRecorder2_Vtbl { let this = (*this).get_impl(); this.EnableMcn().into() } - unsafe extern "system" fn InitializeDiscRecorder, Impl: IDiscRecorder2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, recorderuniqueid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeDiscRecorder, Impl: IDiscRecorder2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, recorderuniqueid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeDiscRecorder(::core::mem::transmute(&recorderuniqueid)).into() } - unsafe extern "system" fn ActiveDiscRecorder, Impl: IDiscRecorder2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ActiveDiscRecorder, Impl: IDiscRecorder2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ActiveDiscRecorder() { @@ -2176,7 +2176,7 @@ impl IDiscRecorder2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn VendorId, Impl: IDiscRecorder2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn VendorId, Impl: IDiscRecorder2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.VendorId() { @@ -2187,7 +2187,7 @@ impl IDiscRecorder2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ProductId, Impl: IDiscRecorder2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ProductId, Impl: IDiscRecorder2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ProductId() { @@ -2198,7 +2198,7 @@ impl IDiscRecorder2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ProductRevision, Impl: IDiscRecorder2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ProductRevision, Impl: IDiscRecorder2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ProductRevision() { @@ -2209,7 +2209,7 @@ impl IDiscRecorder2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn VolumeName, Impl: IDiscRecorder2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn VolumeName, Impl: IDiscRecorder2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.VolumeName() { @@ -2308,7 +2308,7 @@ impl IDiscRecorder2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ExclusiveAccessOwner, Impl: IDiscRecorder2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExclusiveAccessOwner, Impl: IDiscRecorder2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ExclusiveAccessOwner() { @@ -2711,15 +2711,15 @@ pub trait IFileSystemImage_Impl: Sized + super::super::System::Com::IDispatch_Im fn SetFreeMediaBlocks(&self, newval: i32) -> ::windows::core::Result<()>; fn SetMaxMediaBlocksFromDevice(&self, discrecorder: &::core::option::Option) -> ::windows::core::Result<()>; fn UsedBlocks(&self) -> ::windows::core::Result; - fn VolumeName(&self) -> ::windows::core::Result; - fn SetVolumeName(&self, newval: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ImportedVolumeName(&self) -> ::windows::core::Result; + fn VolumeName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetVolumeName(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ImportedVolumeName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn BootImageOptions(&self) -> ::windows::core::Result; fn SetBootImageOptions(&self, newval: &::core::option::Option) -> ::windows::core::Result<()>; fn FileCount(&self) -> ::windows::core::Result; fn DirectoryCount(&self) -> ::windows::core::Result; - fn WorkingDirectory(&self) -> ::windows::core::Result; - fn SetWorkingDirectory(&self, newval: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn WorkingDirectory(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetWorkingDirectory(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn ChangePoint(&self) -> ::windows::core::Result; fn StrictFileSystemCompliance(&self) -> ::windows::core::Result; fn SetStrictFileSystemCompliance(&self, newval: i16) -> ::windows::core::Result<()>; @@ -2737,19 +2737,19 @@ pub trait IFileSystemImage_Impl: Sized + super::super::System::Com::IDispatch_Im fn ISO9660InterchangeLevel(&self) -> ::windows::core::Result; fn ISO9660InterchangeLevelsSupported(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; fn CreateResultImage(&self) -> ::windows::core::Result; - fn Exists(&self, fullpath: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn CalculateDiscIdentifier(&self) -> ::windows::core::Result; + fn Exists(&self, fullpath: &::windows::core::BSTR) -> ::windows::core::Result; + fn CalculateDiscIdentifier(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn IdentifyFileSystemsOnDisc(&self, discrecorder: &::core::option::Option) -> ::windows::core::Result; fn GetDefaultFileSystemForImport(&self, filesystems: FsiFileSystems) -> ::windows::core::Result; fn ImportFileSystem(&self) -> ::windows::core::Result; fn ImportSpecificFileSystem(&self, filesystemtouse: FsiFileSystems) -> ::windows::core::Result<()>; fn RollbackToChangePoint(&self, changepoint: i32) -> ::windows::core::Result<()>; fn LockInChangePoint(&self) -> ::windows::core::Result<()>; - fn CreateDirectoryItem(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn CreateFileItem(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn VolumeNameUDF(&self) -> ::windows::core::Result; - fn VolumeNameJoliet(&self) -> ::windows::core::Result; - fn VolumeNameISO9660(&self) -> ::windows::core::Result; + fn CreateDirectoryItem(&self, name: &::windows::core::BSTR) -> ::windows::core::Result; + fn CreateFileItem(&self, name: &::windows::core::BSTR) -> ::windows::core::Result; + fn VolumeNameUDF(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn VolumeNameJoliet(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn VolumeNameISO9660(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn StageFiles(&self) -> ::windows::core::Result; fn SetStageFiles(&self, newval: i16) -> ::windows::core::Result<()>; fn MultisessionInterfaces(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; @@ -2819,7 +2819,7 @@ impl IFileSystemImage_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn VolumeName, Impl: IFileSystemImage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn VolumeName, Impl: IFileSystemImage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.VolumeName() { @@ -2830,12 +2830,12 @@ impl IFileSystemImage_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetVolumeName, Impl: IFileSystemImage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetVolumeName, Impl: IFileSystemImage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetVolumeName(::core::mem::transmute(&newval)).into() } - unsafe extern "system" fn ImportedVolumeName, Impl: IFileSystemImage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ImportedVolumeName, Impl: IFileSystemImage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ImportedVolumeName() { @@ -2884,7 +2884,7 @@ impl IFileSystemImage_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn WorkingDirectory, Impl: IFileSystemImage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn WorkingDirectory, Impl: IFileSystemImage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.WorkingDirectory() { @@ -2895,7 +2895,7 @@ impl IFileSystemImage_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetWorkingDirectory, Impl: IFileSystemImage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetWorkingDirectory, Impl: IFileSystemImage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetWorkingDirectory(::core::mem::transmute(&newval)).into() @@ -3045,7 +3045,7 @@ impl IFileSystemImage_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Exists, Impl: IFileSystemImage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, fullpath: ::core::mem::ManuallyDrop, itemtype: *mut FsiItemType) -> ::windows::core::HRESULT { + unsafe extern "system" fn Exists, Impl: IFileSystemImage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, fullpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, itemtype: *mut FsiItemType) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Exists(::core::mem::transmute(&fullpath)) { @@ -3056,7 +3056,7 @@ impl IFileSystemImage_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CalculateDiscIdentifier, Impl: IFileSystemImage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, discidentifier: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CalculateDiscIdentifier, Impl: IFileSystemImage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, discidentifier: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CalculateDiscIdentifier() { @@ -3115,7 +3115,7 @@ impl IFileSystemImage_Vtbl { let this = (*this).get_impl(); this.LockInChangePoint().into() } - unsafe extern "system" fn CreateDirectoryItem, Impl: IFileSystemImage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, newitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateDirectoryItem, Impl: IFileSystemImage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, newitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateDirectoryItem(::core::mem::transmute(&name)) { @@ -3126,7 +3126,7 @@ impl IFileSystemImage_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateFileItem, Impl: IFileSystemImage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, newitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateFileItem, Impl: IFileSystemImage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, newitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateFileItem(::core::mem::transmute(&name)) { @@ -3137,7 +3137,7 @@ impl IFileSystemImage_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn VolumeNameUDF, Impl: IFileSystemImage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn VolumeNameUDF, Impl: IFileSystemImage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.VolumeNameUDF() { @@ -3148,7 +3148,7 @@ impl IFileSystemImage_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn VolumeNameJoliet, Impl: IFileSystemImage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn VolumeNameJoliet, Impl: IFileSystemImage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.VolumeNameJoliet() { @@ -3159,7 +3159,7 @@ impl IFileSystemImage_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn VolumeNameISO9660, Impl: IFileSystemImage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn VolumeNameISO9660, Impl: IFileSystemImage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.VolumeNameISO9660() { @@ -3351,7 +3351,7 @@ pub trait IFileSystemImageResult_Impl: Sized + super::super::System::Com::IDispa fn ProgressItems(&self) -> ::windows::core::Result; fn TotalBlocks(&self) -> ::windows::core::Result; fn BlockSize(&self) -> ::windows::core::Result; - fn DiscId(&self) -> ::windows::core::Result; + fn DiscId(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFileSystemImageResult {} @@ -3402,7 +3402,7 @@ impl IFileSystemImageResult_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DiscId, Impl: IFileSystemImageResult_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DiscId, Impl: IFileSystemImageResult_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DiscId() { @@ -3455,15 +3455,15 @@ impl IFileSystemImageResult2_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFsiDirectoryItem_Impl: Sized + super::super::System::Com::IDispatch_Impl + IFsiItem_Impl { fn _NewEnum(&self) -> ::windows::core::Result; - fn get_Item(&self, path: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn get_Item(&self, path: &::windows::core::BSTR) -> ::windows::core::Result; fn Count(&self) -> ::windows::core::Result; fn EnumFsiItems(&self) -> ::windows::core::Result; - fn AddDirectory(&self, path: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn AddFile(&self, path: &super::super::Foundation::BSTR, filedata: &::core::option::Option) -> ::windows::core::Result<()>; - fn AddTree(&self, sourcedirectory: &super::super::Foundation::BSTR, includebasedirectory: i16) -> ::windows::core::Result<()>; + fn AddDirectory(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn AddFile(&self, path: &::windows::core::BSTR, filedata: &::core::option::Option) -> ::windows::core::Result<()>; + fn AddTree(&self, sourcedirectory: &::windows::core::BSTR, includebasedirectory: i16) -> ::windows::core::Result<()>; fn Add(&self, item: &::core::option::Option) -> ::windows::core::Result<()>; - fn Remove(&self, path: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn RemoveTree(&self, path: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Remove(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn RemoveTree(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFsiDirectoryItem {} @@ -3481,7 +3481,7 @@ impl IFsiDirectoryItem_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_Item, Impl: IFsiDirectoryItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, item: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Item, Impl: IFsiDirectoryItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, item: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_Item(::core::mem::transmute(&path)) { @@ -3514,17 +3514,17 @@ impl IFsiDirectoryItem_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AddDirectory, Impl: IFsiDirectoryItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddDirectory, Impl: IFsiDirectoryItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddDirectory(::core::mem::transmute(&path)).into() } - unsafe extern "system" fn AddFile, Impl: IFsiDirectoryItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, filedata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddFile, Impl: IFsiDirectoryItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, filedata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddFile(::core::mem::transmute(&path), ::core::mem::transmute(&filedata)).into() } - unsafe extern "system" fn AddTree, Impl: IFsiDirectoryItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sourcedirectory: ::core::mem::ManuallyDrop, includebasedirectory: i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddTree, Impl: IFsiDirectoryItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sourcedirectory: ::core::mem::ManuallyDrop<::windows::core::BSTR>, includebasedirectory: i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddTree(::core::mem::transmute(&sourcedirectory), ::core::mem::transmute_copy(&includebasedirectory)).into() @@ -3534,12 +3534,12 @@ impl IFsiDirectoryItem_Vtbl { let this = (*this).get_impl(); this.Add(::core::mem::transmute(&item)).into() } - unsafe extern "system" fn Remove, Impl: IFsiDirectoryItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Remove, Impl: IFsiDirectoryItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Remove(::core::mem::transmute(&path)).into() } - unsafe extern "system" fn RemoveTree, Impl: IFsiDirectoryItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn RemoveTree, Impl: IFsiDirectoryItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RemoveTree(::core::mem::transmute(&path)).into() @@ -3564,14 +3564,14 @@ impl IFsiDirectoryItem_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFsiDirectoryItem2_Impl: Sized + super::super::System::Com::IDispatch_Impl + IFsiItem_Impl + IFsiDirectoryItem_Impl { - fn AddTreeWithNamedStreams(&self, sourcedirectory: &super::super::Foundation::BSTR, includebasedirectory: i16) -> ::windows::core::Result<()>; + fn AddTreeWithNamedStreams(&self, sourcedirectory: &::windows::core::BSTR, includebasedirectory: i16) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFsiDirectoryItem2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFsiDirectoryItem2_Vtbl { pub const fn new, Impl: IFsiDirectoryItem2_Impl, const OFFSET: isize>() -> IFsiDirectoryItem2_Vtbl { - unsafe extern "system" fn AddTreeWithNamedStreams, Impl: IFsiDirectoryItem2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sourcedirectory: ::core::mem::ManuallyDrop, includebasedirectory: i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddTreeWithNamedStreams, Impl: IFsiDirectoryItem2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sourcedirectory: ::core::mem::ManuallyDrop<::windows::core::BSTR>, includebasedirectory: i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddTreeWithNamedStreams(::core::mem::transmute(&sourcedirectory), ::core::mem::transmute_copy(&includebasedirectory)).into() @@ -3661,8 +3661,8 @@ impl IFsiFileItem_Vtbl { pub trait IFsiFileItem2_Impl: Sized + super::super::System::Com::IDispatch_Impl + IFsiItem_Impl + IFsiFileItem_Impl { fn FsiNamedStreams(&self) -> ::windows::core::Result; fn IsNamedStream(&self) -> ::windows::core::Result; - fn AddStream(&self, name: &super::super::Foundation::BSTR, streamdata: &::core::option::Option) -> ::windows::core::Result<()>; - fn RemoveStream(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn AddStream(&self, name: &::windows::core::BSTR, streamdata: &::core::option::Option) -> ::windows::core::Result<()>; + fn RemoveStream(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn IsRealTime(&self) -> ::windows::core::Result; fn SetIsRealTime(&self, newval: i16) -> ::windows::core::Result<()>; } @@ -3693,12 +3693,12 @@ impl IFsiFileItem2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AddStream, Impl: IFsiFileItem2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, streamdata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddStream, Impl: IFsiFileItem2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, streamdata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddStream(::core::mem::transmute(&name), ::core::mem::transmute(&streamdata)).into() } - unsafe extern "system" fn RemoveStream, Impl: IFsiFileItem2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn RemoveStream, Impl: IFsiFileItem2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RemoveStream(::core::mem::transmute(&name)).into() @@ -3735,8 +3735,8 @@ impl IFsiFileItem2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFsiItem_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; - fn FullPath(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn FullPath(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CreationTime(&self) -> ::windows::core::Result; fn SetCreationTime(&self, newval: f64) -> ::windows::core::Result<()>; fn LastAccessedTime(&self) -> ::windows::core::Result; @@ -3745,15 +3745,15 @@ pub trait IFsiItem_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn SetLastModifiedTime(&self, newval: f64) -> ::windows::core::Result<()>; fn IsHidden(&self) -> ::windows::core::Result; fn SetIsHidden(&self, newval: i16) -> ::windows::core::Result<()>; - fn FileSystemName(&self, filesystem: FsiFileSystems) -> ::windows::core::Result; - fn FileSystemPath(&self, filesystem: FsiFileSystems) -> ::windows::core::Result; + fn FileSystemName(&self, filesystem: FsiFileSystems) -> ::windows::core::Result<::windows::core::BSTR>; + fn FileSystemPath(&self, filesystem: FsiFileSystems) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFsiItem {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IFsiItem_Vtbl { pub const fn new, Impl: IFsiItem_Impl, const OFFSET: isize>() -> IFsiItem_Vtbl { - unsafe extern "system" fn Name, Impl: IFsiItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IFsiItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -3764,7 +3764,7 @@ impl IFsiItem_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn FullPath, Impl: IFsiItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FullPath, Impl: IFsiItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FullPath() { @@ -3839,7 +3839,7 @@ impl IFsiItem_Vtbl { let this = (*this).get_impl(); this.SetIsHidden(::core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn FileSystemName, Impl: IFsiItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filesystem: FsiFileSystems, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FileSystemName, Impl: IFsiItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filesystem: FsiFileSystems, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FileSystemName(::core::mem::transmute_copy(&filesystem)) { @@ -3850,7 +3850,7 @@ impl IFsiItem_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn FileSystemPath, Impl: IFsiItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filesystem: FsiFileSystems, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FileSystemPath, Impl: IFsiItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filesystem: FsiFileSystems, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FileSystemPath(::core::mem::transmute_copy(&filesystem)) { @@ -3951,9 +3951,9 @@ impl IFsiNamedStreams_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IIsoImageManager_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Path(&self) -> ::windows::core::Result; + fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Stream(&self) -> ::windows::core::Result; - fn SetPath(&self, val: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetPath(&self, val: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SetStream(&self, data: &::core::option::Option) -> ::windows::core::Result<()>; fn Validate(&self) -> ::windows::core::Result<()>; } @@ -3962,7 +3962,7 @@ impl ::windows::core::RuntimeName for IIsoImageManager {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IIsoImageManager_Vtbl { pub const fn new, Impl: IIsoImageManager_Impl, const OFFSET: isize>() -> IIsoImageManager_Vtbl { - unsafe extern "system" fn Path, Impl: IIsoImageManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Path, Impl: IIsoImageManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Path() { @@ -3984,7 +3984,7 @@ impl IIsoImageManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPath, Impl: IIsoImageManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, val: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPath, Impl: IIsoImageManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, val: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPath(::core::mem::transmute(&val)).into() @@ -4320,7 +4320,7 @@ impl IMultisessionSequential2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IProgressItem_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Description(&self) -> ::windows::core::Result; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn FirstBlock(&self) -> ::windows::core::Result; fn LastBlock(&self) -> ::windows::core::Result; fn BlockCount(&self) -> ::windows::core::Result; @@ -4330,7 +4330,7 @@ impl ::windows::core::RuntimeName for IProgressItem {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IProgressItem_Vtbl { pub const fn new, Impl: IProgressItem_Impl, const OFFSET: isize>() -> IProgressItem_Vtbl { - unsafe extern "system" fn Description, Impl: IProgressItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, desc: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IProgressItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, desc: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -4392,7 +4392,7 @@ pub trait IProgressItems_Impl: Sized + super::super::System::Com::IDispatch_Impl fn get_Item(&self, index: i32) -> ::windows::core::Result; fn Count(&self) -> ::windows::core::Result; fn ProgressItemFromBlock(&self, block: u32) -> ::windows::core::Result; - fn ProgressItemFromDescription(&self, description: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn ProgressItemFromDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result; fn EnumProgressItems(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -4444,7 +4444,7 @@ impl IProgressItems_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ProgressItemFromDescription, Impl: IProgressItems_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: ::core::mem::ManuallyDrop, item: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn ProgressItemFromDescription, Impl: IProgressItems_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: ::core::mem::ManuallyDrop<::windows::core::BSTR>, item: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ProgressItemFromDescription(::core::mem::transmute(&description)) { @@ -4493,8 +4493,8 @@ pub trait IRawCDImageCreator_Impl: Sized + super::super::System::Com::IDispatch_ fn StartOfLeadoutLimit(&self) -> ::windows::core::Result; fn SetDisableGaplessAudio(&self, value: i16) -> ::windows::core::Result<()>; fn DisableGaplessAudio(&self) -> ::windows::core::Result; - fn SetMediaCatalogNumber(&self, value: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn MediaCatalogNumber(&self) -> ::windows::core::Result; + fn SetMediaCatalogNumber(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn MediaCatalogNumber(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn SetStartingTrackNumber(&self, value: i32) -> ::windows::core::Result<()>; fn StartingTrackNumber(&self) -> ::windows::core::Result; fn get_TrackInfo(&self, trackindex: i32) -> ::windows::core::Result; @@ -4598,12 +4598,12 @@ impl IRawCDImageCreator_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetMediaCatalogNumber, Impl: IRawCDImageCreator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetMediaCatalogNumber, Impl: IRawCDImageCreator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetMediaCatalogNumber(::core::mem::transmute(&value)).into() } - unsafe extern "system" fn MediaCatalogNumber, Impl: IRawCDImageCreator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn MediaCatalogNumber, Impl: IRawCDImageCreator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.MediaCatalogNumber() { @@ -4707,8 +4707,8 @@ pub trait IRawCDImageTrackInfo_Impl: Sized + super::super::System::Com::IDispatc fn SectorCount(&self) -> ::windows::core::Result; fn TrackNumber(&self) -> ::windows::core::Result; fn SectorType(&self) -> ::windows::core::Result; - fn ISRC(&self) -> ::windows::core::Result; - fn SetISRC(&self, value: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ISRC(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetISRC(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn DigitalAudioCopySetting(&self) -> ::windows::core::Result; fn SetDigitalAudioCopySetting(&self, value: IMAPI_CD_TRACK_DIGITAL_COPY_SETTING) -> ::windows::core::Result<()>; fn AudioHasPreemphasis(&self) -> ::windows::core::Result; @@ -4766,7 +4766,7 @@ impl IRawCDImageTrackInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ISRC, Impl: IRawCDImageTrackInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ISRC, Impl: IRawCDImageTrackInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ISRC() { @@ -4777,7 +4777,7 @@ impl IRawCDImageTrackInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetISRC, Impl: IRawCDImageTrackInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetISRC, Impl: IRawCDImageTrackInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetISRC(::core::mem::transmute(&value)).into() diff --git a/crates/libs/windows/src/Windows/Win32/Storage/Imapi/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/Imapi/mod.rs index 8cf2dbbd32..122d7bff67 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Imapi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Imapi/mod.rs @@ -416,23 +416,21 @@ pub struct DDiscFormat2TrackAtOnceEvents_Vtbl { pub struct DDiscMaster2Events(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl DDiscMaster2Events { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn NotifyDeviceAdded<'a, P0, P1>(&self, object: P0, uniqueid: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn NotifyDeviceAdded<'a, P0>(&self, object: P0, uniqueid: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IDispatch>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).NotifyDeviceAdded)(::windows::core::Interface::as_raw(self), object.into().abi(), uniqueid.into().abi()).ok() + (::windows::core::Interface::vtable(self).NotifyDeviceAdded)(::windows::core::Interface::as_raw(self), object.into().abi(), ::core::mem::transmute_copy(uniqueid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn NotifyDeviceRemoved<'a, P0, P1>(&self, object: P0, uniqueid: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn NotifyDeviceRemoved<'a, P0>(&self, object: P0, uniqueid: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IDispatch>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).NotifyDeviceRemoved)(::windows::core::Interface::as_raw(self), object.into().abi(), uniqueid.into().abi()).ok() + (::windows::core::Interface::vtable(self).NotifyDeviceRemoved)(::windows::core::Interface::as_raw(self), object.into().abi(), ::core::mem::transmute_copy(uniqueid)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -501,13 +499,13 @@ unsafe impl ::windows::core::Interface for DDiscMaster2Events { #[doc(hidden)] pub struct DDiscMaster2Events_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub NotifyDeviceAdded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, object: *mut ::core::ffi::c_void, uniqueid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub NotifyDeviceAdded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, object: *mut ::core::ffi::c_void, uniqueid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] NotifyDeviceAdded: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub NotifyDeviceRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, object: *mut ::core::ffi::c_void, uniqueid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub NotifyDeviceRemoved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, object: *mut ::core::ffi::c_void, uniqueid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] NotifyDeviceRemoved: usize, } #[doc = "*Required features: `\"Win32_Storage_Imapi\"`, `\"Win32_System_Com\"`*"] @@ -516,14 +514,13 @@ pub struct DDiscMaster2Events_Vtbl { pub struct DFileSystemImageEvents(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl DFileSystemImageEvents { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Update<'a, P0, P1>(&self, object: P0, currentfile: P1, copiedsectors: i32, totalsectors: i32) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Update<'a, P0>(&self, object: P0, currentfile: &::windows::core::BSTR, copiedsectors: i32, totalsectors: i32) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IDispatch>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).Update)(::windows::core::Interface::as_raw(self), object.into().abi(), currentfile.into().abi(), copiedsectors, totalsectors).ok() + (::windows::core::Interface::vtable(self).Update)(::windows::core::Interface::as_raw(self), object.into().abi(), ::core::mem::transmute_copy(currentfile), copiedsectors, totalsectors).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -592,9 +589,9 @@ unsafe impl ::windows::core::Interface for DFileSystemImageEvents { #[doc(hidden)] pub struct DFileSystemImageEvents_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Update: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, object: *mut ::core::ffi::c_void, currentfile: ::core::mem::ManuallyDrop, copiedsectors: i32, totalsectors: i32) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub Update: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, object: *mut ::core::ffi::c_void, currentfile: ::core::mem::ManuallyDrop<::windows::core::BSTR>, copiedsectors: i32, totalsectors: i32) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Update: usize, } #[doc = "*Required features: `\"Win32_Storage_Imapi\"`, `\"Win32_System_Com\"`*"] @@ -603,14 +600,13 @@ pub struct DFileSystemImageEvents_Vtbl { pub struct DFileSystemImageImportEvents(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl DFileSystemImageImportEvents { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn UpdateImport<'a, P0, P1>(&self, object: P0, filesystem: FsiFileSystems, currentitem: P1, importeddirectoryitems: i32, totaldirectoryitems: i32, importedfileitems: i32, totalfileitems: i32) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn UpdateImport<'a, P0>(&self, object: P0, filesystem: FsiFileSystems, currentitem: &::windows::core::BSTR, importeddirectoryitems: i32, totaldirectoryitems: i32, importedfileitems: i32, totalfileitems: i32) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IDispatch>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).UpdateImport)(::windows::core::Interface::as_raw(self), object.into().abi(), filesystem, currentitem.into().abi(), importeddirectoryitems, totaldirectoryitems, importedfileitems, totalfileitems).ok() + (::windows::core::Interface::vtable(self).UpdateImport)(::windows::core::Interface::as_raw(self), object.into().abi(), filesystem, ::core::mem::transmute_copy(currentitem), importeddirectoryitems, totaldirectoryitems, importedfileitems, totalfileitems).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -679,9 +675,9 @@ unsafe impl ::windows::core::Interface for DFileSystemImageImportEvents { #[doc(hidden)] pub struct DFileSystemImageImportEvents_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub UpdateImport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, object: *mut ::core::ffi::c_void, filesystem: FsiFileSystems, currentitem: ::core::mem::ManuallyDrop, importeddirectoryitems: i32, totaldirectoryitems: i32, importedfileitems: i32, totalfileitems: i32) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub UpdateImport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, object: *mut ::core::ffi::c_void, filesystem: FsiFileSystems, currentitem: ::core::mem::ManuallyDrop<::windows::core::BSTR>, importeddirectoryitems: i32, totaldirectoryitems: i32, importedfileitems: i32, totalfileitems: i32) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] UpdateImport: usize, } #[doc = "*Required features: `\"Win32_Storage_Imapi\"`, `\"Win32_System_Com\"`*"] @@ -951,19 +947,12 @@ impl IBootOptions { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).BootImage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Manufacturer(&self) -> ::windows::core::Result { + pub unsafe fn Manufacturer(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Manufacturer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Manufacturer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetManufacturer<'a, P0>(&self, newval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetManufacturer)(::windows::core::Interface::as_raw(self), newval.into().abi()).ok() + pub unsafe fn SetManufacturer(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetManufacturer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(newval)).ok() } pub unsafe fn PlatformId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1062,14 +1051,8 @@ pub struct IBootOptions_Vtbl { pub BootImage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] BootImage: usize, - #[cfg(feature = "Win32_Foundation")] - pub Manufacturer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Manufacturer: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetManufacturer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetManufacturer: usize, + pub Manufacturer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetManufacturer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub PlatformId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut PlatformId) -> ::windows::core::HRESULT, pub SetPlatformId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: PlatformId) -> ::windows::core::HRESULT, pub Emulation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut EmulationType) -> ::windows::core::HRESULT, @@ -1366,19 +1349,12 @@ impl IDiscFormat2Data { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CurrentPhysicalMediaType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetClientName<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetClientName)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetClientName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetClientName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClientName(&self) -> ::windows::core::Result { + pub unsafe fn ClientName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ClientName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ClientName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn RequestedWriteSpeed(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1544,14 +1520,8 @@ pub struct IDiscFormat2Data_Vtbl { pub SetDisableConsumerDvdCompatibilityMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i16) -> ::windows::core::HRESULT, pub DisableConsumerDvdCompatibilityMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i16) -> ::windows::core::HRESULT, pub CurrentPhysicalMediaType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut IMAPI_MEDIA_PHYSICAL_TYPE) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetClientName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetClientName: usize, - #[cfg(feature = "Win32_Foundation")] - pub ClientName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ClientName: usize, + pub SetClientName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ClientName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub RequestedWriteSpeed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i32) -> ::windows::core::HRESULT, pub RequestedRotationTypeIsPureCAV: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i16) -> ::windows::core::HRESULT, pub CurrentWriteSpeed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i32) -> ::windows::core::HRESULT, @@ -1780,19 +1750,12 @@ impl IDiscFormat2Erase { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CurrentPhysicalMediaType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetClientName<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetClientName)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetClientName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetClientName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClientName(&self) -> ::windows::core::Result { + pub unsafe fn ClientName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ClientName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ClientName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn EraseMedia(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).EraseMedia)(::windows::core::Interface::as_raw(self)).ok() @@ -1893,14 +1856,8 @@ pub struct IDiscFormat2Erase_Vtbl { pub SetFullErase: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i16) -> ::windows::core::HRESULT, pub FullErase: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i16) -> ::windows::core::HRESULT, pub CurrentPhysicalMediaType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut IMAPI_MEDIA_PHYSICAL_TYPE) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetClientName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetClientName: usize, - #[cfg(feature = "Win32_Foundation")] - pub ClientName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ClientName: usize, + pub SetClientName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ClientName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub EraseMedia: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Storage_Imapi\"`, `\"Win32_System_Com\"`*"] @@ -2015,19 +1972,12 @@ impl IDiscFormat2RawCD { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).RequestedSectorType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetClientName<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetClientName)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetClientName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetClientName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClientName(&self) -> ::windows::core::Result { + pub unsafe fn ClientName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ClientName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ClientName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn RequestedWriteSpeed(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2173,14 +2123,8 @@ pub struct IDiscFormat2RawCD_Vtbl { SupportedSectorTypes: usize, pub SetRequestedSectorType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: IMAPI_FORMAT2_RAW_CD_DATA_SECTOR_TYPE) -> ::windows::core::HRESULT, pub RequestedSectorType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut IMAPI_FORMAT2_RAW_CD_DATA_SECTOR_TYPE) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetClientName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetClientName: usize, - #[cfg(feature = "Win32_Foundation")] - pub ClientName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ClientName: usize, + pub SetClientName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ClientName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub RequestedWriteSpeed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i32) -> ::windows::core::HRESULT, pub RequestedRotationTypeIsPureCAV: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i16) -> ::windows::core::HRESULT, pub CurrentWriteSpeed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i32) -> ::windows::core::HRESULT, @@ -2441,19 +2385,12 @@ impl IDiscFormat2TrackAtOnce { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CurrentPhysicalMediaType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetClientName<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetClientName)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetClientName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetClientName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClientName(&self) -> ::windows::core::Result { + pub unsafe fn ClientName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ClientName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ClientName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn RequestedWriteSpeed(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2597,14 +2534,8 @@ pub struct IDiscFormat2TrackAtOnce_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ExpectedTableOfContents: usize, pub CurrentPhysicalMediaType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut IMAPI_MEDIA_PHYSICAL_TYPE) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetClientName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetClientName: usize, - #[cfg(feature = "Win32_Foundation")] - pub ClientName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ClientName: usize, + pub SetClientName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ClientName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub RequestedWriteSpeed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i32) -> ::windows::core::HRESULT, pub RequestedRotationTypeIsPureCAV: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i16) -> ::windows::core::HRESULT, pub CurrentWriteSpeed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i32) -> ::windows::core::HRESULT, @@ -2874,11 +2805,9 @@ impl IDiscMaster2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self)._NewEnum)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_Item(&self, index: i32) -> ::windows::core::Result { + pub unsafe fn get_Item(&self, index: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Count(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2959,10 +2888,7 @@ pub struct IDiscMaster2_Vtbl { pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Ole"))] _NewEnum: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_Item: usize, + pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i32) -> ::windows::core::HRESULT, pub IsSupportedEnvironment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i16) -> ::windows::core::HRESULT, } @@ -3062,22 +2988,16 @@ impl IDiscRecorder { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetRecorderType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDisplayNames(&self, pbstrvendorid: ::core::option::Option<&mut super::super::Foundation::BSTR>, pbstrproductid: ::core::option::Option<&mut super::super::Foundation::BSTR>, pbstrrevision: ::core::option::Option<&mut super::super::Foundation::BSTR>) -> ::windows::core::Result<()> { + pub unsafe fn GetDisplayNames(&self, pbstrvendorid: ::core::option::Option<&mut ::windows::core::BSTR>, pbstrproductid: ::core::option::Option<&mut ::windows::core::BSTR>, pbstrrevision: ::core::option::Option<&mut ::windows::core::BSTR>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetDisplayNames)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrvendorid), ::core::mem::transmute(pbstrproductid), ::core::mem::transmute(pbstrrevision)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetBasePnPID(&self) -> ::windows::core::Result { + pub unsafe fn GetBasePnPID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetBasePnPID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetBasePnPID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPath(&self) -> ::windows::core::Result { + pub unsafe fn GetPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -3158,18 +3078,9 @@ pub struct IDiscRecorder_Vtbl { pub Init: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbyuniqueid: *const u8, nulidsize: u32, nuldrivenumber: u32) -> ::windows::core::HRESULT, pub GetRecorderGUID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbyuniqueid: *mut u8, ulbuffersize: u32, pulreturnsizerequired: *mut u32) -> ::windows::core::HRESULT, pub GetRecorderType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ftypecode: *mut RECORDER_TYPES) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetDisplayNames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrvendorid: *mut super::super::Foundation::BSTR, pbstrproductid: *mut super::super::Foundation::BSTR, pbstrrevision: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDisplayNames: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetBasePnPID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbasepnpid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetBasePnPID: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPath: usize, + pub GetDisplayNames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrvendorid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrproductid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrrevision: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetBasePnPID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbasepnpid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub GetRecorderProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pppropstg: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com_StructuredStorage"))] @@ -3198,13 +3109,8 @@ impl IDiscRecorder2 { pub unsafe fn CloseTray(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).CloseTray)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AcquireExclusiveAccess<'a, P0>(&self, force: i16, __midl__idiscrecorder20000: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AcquireExclusiveAccess)(::windows::core::Interface::as_raw(self), force, __midl__idiscrecorder20000.into().abi()).ok() + pub unsafe fn AcquireExclusiveAccess(&self, force: i16, __midl__idiscrecorder20000: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AcquireExclusiveAccess)(::windows::core::Interface::as_raw(self), force, ::core::mem::transmute_copy(__midl__idiscrecorder20000)).ok() } pub unsafe fn ReleaseExclusiveAccess(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ReleaseExclusiveAccess)(::windows::core::Interface::as_raw(self)).ok() @@ -3215,43 +3121,28 @@ impl IDiscRecorder2 { pub unsafe fn EnableMcn(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).EnableMcn)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeDiscRecorder<'a, P0>(&self, recorderuniqueid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeDiscRecorder)(::windows::core::Interface::as_raw(self), recorderuniqueid.into().abi()).ok() + pub unsafe fn InitializeDiscRecorder(&self, recorderuniqueid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeDiscRecorder)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(recorderuniqueid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ActiveDiscRecorder(&self) -> ::windows::core::Result { + pub unsafe fn ActiveDiscRecorder(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ActiveDiscRecorder)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ActiveDiscRecorder)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn VendorId(&self) -> ::windows::core::Result { + pub unsafe fn VendorId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).VendorId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).VendorId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ProductId(&self) -> ::windows::core::Result { + pub unsafe fn ProductId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ProductId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ProductId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ProductRevision(&self) -> ::windows::core::Result { + pub unsafe fn ProductRevision(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ProductRevision)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ProductRevision)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn VolumeName(&self) -> ::windows::core::Result { + pub unsafe fn VolumeName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).VolumeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).VolumeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3297,11 +3188,9 @@ impl IDiscRecorder2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).SupportedModePages)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut super::super::System::Com::SAFEARRAY>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExclusiveAccessOwner(&self) -> ::windows::core::Result { + pub unsafe fn ExclusiveAccessOwner(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ExclusiveAccessOwner)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ExclusiveAccessOwner)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -3372,37 +3261,16 @@ pub struct IDiscRecorder2_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub EjectMedia: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub CloseTray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub AcquireExclusiveAccess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, force: i16, __midl__idiscrecorder20000: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AcquireExclusiveAccess: usize, + pub AcquireExclusiveAccess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, force: i16, __midl__idiscrecorder20000: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ReleaseExclusiveAccess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub DisableMcn: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub EnableMcn: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub InitializeDiscRecorder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, recorderuniqueid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeDiscRecorder: usize, - #[cfg(feature = "Win32_Foundation")] - pub ActiveDiscRecorder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ActiveDiscRecorder: usize, - #[cfg(feature = "Win32_Foundation")] - pub VendorId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - VendorId: usize, - #[cfg(feature = "Win32_Foundation")] - pub ProductId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ProductId: usize, - #[cfg(feature = "Win32_Foundation")] - pub ProductRevision: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ProductRevision: usize, - #[cfg(feature = "Win32_Foundation")] - pub VolumeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - VolumeName: usize, + pub InitializeDiscRecorder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, recorderuniqueid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ActiveDiscRecorder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub VendorId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ProductId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ProductRevision: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub VolumeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub VolumePathNames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -3429,10 +3297,7 @@ pub struct IDiscRecorder2_Vtbl { pub SupportedModePages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] SupportedModePages: usize, - #[cfg(feature = "Win32_Foundation")] - pub ExclusiveAccessOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ExclusiveAccessOwner: usize, + pub ExclusiveAccessOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Storage_Imapi\"`*"] #[repr(transparent)] @@ -3874,25 +3739,16 @@ impl IFileSystemImage { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).UsedBlocks)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn VolumeName(&self) -> ::windows::core::Result { + pub unsafe fn VolumeName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).VolumeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).VolumeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetVolumeName<'a, P0>(&self, newval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetVolumeName)(::windows::core::Interface::as_raw(self), newval.into().abi()).ok() + pub unsafe fn SetVolumeName(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetVolumeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(newval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ImportedVolumeName(&self) -> ::windows::core::Result { + pub unsafe fn ImportedVolumeName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ImportedVolumeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ImportedVolumeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3916,19 +3772,12 @@ impl IFileSystemImage { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).DirectoryCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn WorkingDirectory(&self) -> ::windows::core::Result { + pub unsafe fn WorkingDirectory(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).WorkingDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).WorkingDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetWorkingDirectory<'a, P0>(&self, newval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetWorkingDirectory)(::windows::core::Interface::as_raw(self), newval.into().abi()).ok() + pub unsafe fn SetWorkingDirectory(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetWorkingDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(newval)).ok() } pub unsafe fn ChangePoint(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4002,20 +3851,13 @@ impl IFileSystemImage { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CreateResultImage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Exists<'a, P0>(&self, fullpath: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn Exists(&self, fullpath: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Exists)(::windows::core::Interface::as_raw(self), fullpath.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Exists)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(fullpath), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CalculateDiscIdentifier(&self) -> ::windows::core::Result { + pub unsafe fn CalculateDiscIdentifier(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CalculateDiscIdentifier)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CalculateDiscIdentifier)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4043,41 +3885,29 @@ impl IFileSystemImage { pub unsafe fn LockInChangePoint(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).LockInChangePoint)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateDirectoryItem<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateDirectoryItem(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateDirectoryItem)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateDirectoryItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateFileItem<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateFileItem(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateFileItem)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateFileItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn VolumeNameUDF(&self) -> ::windows::core::Result { + pub unsafe fn VolumeNameUDF(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).VolumeNameUDF)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).VolumeNameUDF)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn VolumeNameJoliet(&self) -> ::windows::core::Result { + pub unsafe fn VolumeNameJoliet(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).VolumeNameJoliet)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).VolumeNameJoliet)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn VolumeNameISO9660(&self) -> ::windows::core::Result { + pub unsafe fn VolumeNameISO9660(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).VolumeNameISO9660)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).VolumeNameISO9660)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn StageFiles(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4177,18 +4007,9 @@ pub struct IFileSystemImage_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetMaxMediaBlocksFromDevice: usize, pub UsedBlocks: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub VolumeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - VolumeName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetVolumeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetVolumeName: usize, - #[cfg(feature = "Win32_Foundation")] - pub ImportedVolumeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ImportedVolumeName: usize, + pub VolumeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetVolumeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ImportedVolumeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub BootImageOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -4199,14 +4020,8 @@ pub struct IFileSystemImage_Vtbl { SetBootImageOptions: usize, pub FileCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows::core::HRESULT, pub DirectoryCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub WorkingDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - WorkingDirectory: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetWorkingDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetWorkingDirectory: usize, + pub WorkingDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetWorkingDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ChangePoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows::core::HRESULT, pub StrictFileSystemCompliance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i16) -> ::windows::core::HRESULT, pub SetStrictFileSystemCompliance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: i16) -> ::windows::core::HRESULT, @@ -4236,14 +4051,8 @@ pub struct IFileSystemImage_Vtbl { pub CreateResultImage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, resultstream: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] CreateResultImage: usize, - #[cfg(feature = "Win32_Foundation")] - pub Exists: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fullpath: ::core::mem::ManuallyDrop, itemtype: *mut FsiItemType) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Exists: usize, - #[cfg(feature = "Win32_Foundation")] - pub CalculateDiscIdentifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, discidentifier: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CalculateDiscIdentifier: usize, + pub Exists: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fullpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, itemtype: *mut FsiItemType) -> ::windows::core::HRESULT, + pub CalculateDiscIdentifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, discidentifier: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub IdentifyFileSystemsOnDisc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, discrecorder: *mut ::core::ffi::c_void, filesystems: *mut FsiFileSystems) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -4253,26 +4062,17 @@ pub struct IFileSystemImage_Vtbl { pub ImportSpecificFileSystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filesystemtouse: FsiFileSystems) -> ::windows::core::HRESULT, pub RollbackToChangePoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, changepoint: i32) -> ::windows::core::HRESULT, pub LockInChangePoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreateDirectoryItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, newitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreateDirectoryItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, newitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreateDirectoryItem: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreateFileItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, newitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreateFileItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, newitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreateFileItem: usize, - #[cfg(feature = "Win32_Foundation")] - pub VolumeNameUDF: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - VolumeNameUDF: usize, - #[cfg(feature = "Win32_Foundation")] - pub VolumeNameJoliet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - VolumeNameJoliet: usize, - #[cfg(feature = "Win32_Foundation")] - pub VolumeNameISO9660: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - VolumeNameISO9660: usize, + pub VolumeNameUDF: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub VolumeNameJoliet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub VolumeNameISO9660: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub StageFiles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i16) -> ::windows::core::HRESULT, pub SetStageFiles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] @@ -4322,25 +4122,16 @@ impl IFileSystemImage2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.UsedBlocks)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn VolumeName(&self) -> ::windows::core::Result { + pub unsafe fn VolumeName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.VolumeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.VolumeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetVolumeName<'a, P0>(&self, newval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetVolumeName)(::windows::core::Interface::as_raw(self), newval.into().abi()).ok() + pub unsafe fn SetVolumeName(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetVolumeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(newval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ImportedVolumeName(&self) -> ::windows::core::Result { + pub unsafe fn ImportedVolumeName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ImportedVolumeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ImportedVolumeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4364,19 +4155,12 @@ impl IFileSystemImage2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.DirectoryCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn WorkingDirectory(&self) -> ::windows::core::Result { + pub unsafe fn WorkingDirectory(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.WorkingDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.WorkingDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetWorkingDirectory<'a, P0>(&self, newval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetWorkingDirectory)(::windows::core::Interface::as_raw(self), newval.into().abi()).ok() + pub unsafe fn SetWorkingDirectory(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetWorkingDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(newval)).ok() } pub unsafe fn ChangePoint(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4450,20 +4234,13 @@ impl IFileSystemImage2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.CreateResultImage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Exists<'a, P0>(&self, fullpath: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn Exists(&self, fullpath: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Exists)(::windows::core::Interface::as_raw(self), fullpath.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Exists)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(fullpath), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CalculateDiscIdentifier(&self) -> ::windows::core::Result { + pub unsafe fn CalculateDiscIdentifier(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CalculateDiscIdentifier)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CalculateDiscIdentifier)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4491,41 +4268,29 @@ impl IFileSystemImage2 { pub unsafe fn LockInChangePoint(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.LockInChangePoint)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateDirectoryItem<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateDirectoryItem(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CreateDirectoryItem)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CreateDirectoryItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateFileItem<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateFileItem(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CreateFileItem)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CreateFileItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn VolumeNameUDF(&self) -> ::windows::core::Result { + pub unsafe fn VolumeNameUDF(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.VolumeNameUDF)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.VolumeNameUDF)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn VolumeNameJoliet(&self) -> ::windows::core::Result { + pub unsafe fn VolumeNameJoliet(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.VolumeNameJoliet)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.VolumeNameJoliet)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn VolumeNameISO9660(&self) -> ::windows::core::Result { + pub unsafe fn VolumeNameISO9660(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.VolumeNameISO9660)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.VolumeNameISO9660)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn StageFiles(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4688,25 +4453,16 @@ impl IFileSystemImage3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.UsedBlocks)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn VolumeName(&self) -> ::windows::core::Result { + pub unsafe fn VolumeName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.VolumeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.VolumeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetVolumeName<'a, P0>(&self, newval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetVolumeName)(::windows::core::Interface::as_raw(self), newval.into().abi()).ok() + pub unsafe fn SetVolumeName(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetVolumeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(newval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ImportedVolumeName(&self) -> ::windows::core::Result { + pub unsafe fn ImportedVolumeName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.ImportedVolumeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.ImportedVolumeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4730,19 +4486,12 @@ impl IFileSystemImage3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.DirectoryCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn WorkingDirectory(&self) -> ::windows::core::Result { + pub unsafe fn WorkingDirectory(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.WorkingDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.WorkingDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetWorkingDirectory<'a, P0>(&self, newval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetWorkingDirectory)(::windows::core::Interface::as_raw(self), newval.into().abi()).ok() + pub unsafe fn SetWorkingDirectory(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetWorkingDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(newval)).ok() } pub unsafe fn ChangePoint(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4816,20 +4565,13 @@ impl IFileSystemImage3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.CreateResultImage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Exists<'a, P0>(&self, fullpath: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn Exists(&self, fullpath: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Exists)(::windows::core::Interface::as_raw(self), fullpath.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Exists)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(fullpath), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CalculateDiscIdentifier(&self) -> ::windows::core::Result { + pub unsafe fn CalculateDiscIdentifier(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CalculateDiscIdentifier)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CalculateDiscIdentifier)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4857,41 +4599,29 @@ impl IFileSystemImage3 { pub unsafe fn LockInChangePoint(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.LockInChangePoint)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateDirectoryItem<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateDirectoryItem(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CreateDirectoryItem)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CreateDirectoryItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateFileItem<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateFileItem(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CreateFileItem)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CreateFileItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn VolumeNameUDF(&self) -> ::windows::core::Result { + pub unsafe fn VolumeNameUDF(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.VolumeNameUDF)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.VolumeNameUDF)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn VolumeNameJoliet(&self) -> ::windows::core::Result { + pub unsafe fn VolumeNameJoliet(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.VolumeNameJoliet)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.VolumeNameJoliet)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn VolumeNameISO9660(&self) -> ::windows::core::Result { + pub unsafe fn VolumeNameISO9660(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.VolumeNameISO9660)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.VolumeNameISO9660)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn StageFiles(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5066,11 +4796,9 @@ impl IFileSystemImageResult { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).BlockSize)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DiscId(&self) -> ::windows::core::Result { + pub unsafe fn DiscId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DiscId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DiscId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -5149,10 +4877,7 @@ pub struct IFileSystemImageResult_Vtbl { ProgressItems: usize, pub TotalBlocks: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows::core::HRESULT, pub BlockSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub DiscId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DiscId: usize, + pub DiscId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Storage_Imapi\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5180,11 +4905,9 @@ impl IFileSystemImageResult2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.BlockSize)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DiscId(&self) -> ::windows::core::Result { + pub unsafe fn DiscId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.DiscId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.DiscId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5288,17 +5011,13 @@ pub struct IFileSystemImageResult2_Vtbl { pub struct IFsiDirectoryItem(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IFsiDirectoryItem { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FullPath(&self) -> ::windows::core::Result { + pub unsafe fn FullPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FullPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.FullPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CreationTime(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5328,17 +5047,13 @@ impl IFsiDirectoryItem { pub unsafe fn SetIsHidden(&self, newval: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetIsHidden)(::windows::core::Interface::as_raw(self), newval).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FileSystemName(&self, filesystem: FsiFileSystems) -> ::windows::core::Result { + pub unsafe fn FileSystemName(&self, filesystem: FsiFileSystems) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FileSystemName)(::windows::core::Interface::as_raw(self), filesystem, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.FileSystemName)(::windows::core::Interface::as_raw(self), filesystem, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FileSystemPath(&self, filesystem: FsiFileSystems) -> ::windows::core::Result { + pub unsafe fn FileSystemPath(&self, filesystem: FsiFileSystems) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FileSystemPath)(::windows::core::Interface::as_raw(self), filesystem, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.FileSystemPath)(::windows::core::Interface::as_raw(self), filesystem, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Ole\"`*"] #[cfg(feature = "Win32_System_Ole")] @@ -5346,14 +5061,11 @@ impl IFsiDirectoryItem { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self)._NewEnum)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn get_Item<'a, P0>(&self, path: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn get_Item(&self, path: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), path.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn Count(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5363,30 +5075,19 @@ impl IFsiDirectoryItem { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).EnumFsiItems)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddDirectory<'a, P0>(&self, path: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AddDirectory)(::windows::core::Interface::as_raw(self), path.into().abi()).ok() + pub unsafe fn AddDirectory(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AddDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn AddFile<'a, P0, P1>(&self, path: P0, filedata: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn AddFile<'a, P0>(&self, path: &::windows::core::BSTR, filedata: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IStream>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IStream>>, { - (::windows::core::Interface::vtable(self).AddFile)(::windows::core::Interface::as_raw(self), path.into().abi(), filedata.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddFile)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), filedata.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddTree<'a, P0>(&self, sourcedirectory: P0, includebasedirectory: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AddTree)(::windows::core::Interface::as_raw(self), sourcedirectory.into().abi(), includebasedirectory).ok() + pub unsafe fn AddTree(&self, sourcedirectory: &::windows::core::BSTR, includebasedirectory: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AddTree)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(sourcedirectory), includebasedirectory).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5396,21 +5097,11 @@ impl IFsiDirectoryItem { { (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), item.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Remove<'a, P0>(&self, path: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), path.into().abi()).ok() + pub unsafe fn Remove(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoveTree<'a, P0>(&self, path: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).RemoveTree)(::windows::core::Interface::as_raw(self), path.into().abi()).ok() + pub unsafe fn RemoveTree(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).RemoveTree)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5501,36 +5192,24 @@ pub struct IFsiDirectoryItem_Vtbl { pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Ole"))] _NewEnum: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, item: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, item: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] get_Item: usize, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: *mut i32) -> ::windows::core::HRESULT, pub EnumFsiItems: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub AddDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddDirectory: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub AddFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, filedata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub AddDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub AddFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, filedata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] AddFile: usize, - #[cfg(feature = "Win32_Foundation")] - pub AddTree: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sourcedirectory: ::core::mem::ManuallyDrop, includebasedirectory: i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddTree: usize, + pub AddTree: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sourcedirectory: ::core::mem::ManuallyDrop<::windows::core::BSTR>, includebasedirectory: i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, item: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Add: usize, - #[cfg(feature = "Win32_Foundation")] - pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Remove: usize, - #[cfg(feature = "Win32_Foundation")] - pub RemoveTree: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RemoveTree: usize, + pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub RemoveTree: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Storage_Imapi\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5538,17 +5217,13 @@ pub struct IFsiDirectoryItem_Vtbl { pub struct IFsiDirectoryItem2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IFsiDirectoryItem2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FullPath(&self) -> ::windows::core::Result { + pub unsafe fn FullPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.FullPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.FullPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CreationTime(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5578,17 +5253,13 @@ impl IFsiDirectoryItem2 { pub unsafe fn SetIsHidden(&self, newval: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.SetIsHidden)(::windows::core::Interface::as_raw(self), newval).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FileSystemName(&self, filesystem: FsiFileSystems) -> ::windows::core::Result { + pub unsafe fn FileSystemName(&self, filesystem: FsiFileSystems) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.FileSystemName)(::windows::core::Interface::as_raw(self), filesystem, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.FileSystemName)(::windows::core::Interface::as_raw(self), filesystem, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FileSystemPath(&self, filesystem: FsiFileSystems) -> ::windows::core::Result { + pub unsafe fn FileSystemPath(&self, filesystem: FsiFileSystems) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.FileSystemPath)(::windows::core::Interface::as_raw(self), filesystem, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.FileSystemPath)(::windows::core::Interface::as_raw(self), filesystem, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Ole\"`*"] #[cfg(feature = "Win32_System_Ole")] @@ -5596,14 +5267,11 @@ impl IFsiDirectoryItem2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__._NewEnum)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn get_Item<'a, P0>(&self, path: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn get_Item(&self, path: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_Item)(::windows::core::Interface::as_raw(self), path.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_Item)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn Count(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5613,30 +5281,19 @@ impl IFsiDirectoryItem2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.EnumFsiItems)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddDirectory<'a, P0>(&self, path: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.AddDirectory)(::windows::core::Interface::as_raw(self), path.into().abi()).ok() + pub unsafe fn AddDirectory(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.AddDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn AddFile<'a, P0, P1>(&self, path: P0, filedata: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn AddFile<'a, P0>(&self, path: &::windows::core::BSTR, filedata: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IStream>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IStream>>, { - (::windows::core::Interface::vtable(self).base__.AddFile)(::windows::core::Interface::as_raw(self), path.into().abi(), filedata.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AddFile)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), filedata.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddTree<'a, P0>(&self, sourcedirectory: P0, includebasedirectory: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.AddTree)(::windows::core::Interface::as_raw(self), sourcedirectory.into().abi(), includebasedirectory).ok() + pub unsafe fn AddTree(&self, sourcedirectory: &::windows::core::BSTR, includebasedirectory: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.AddTree)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(sourcedirectory), includebasedirectory).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5646,29 +5303,14 @@ impl IFsiDirectoryItem2 { { (::windows::core::Interface::vtable(self).base__.Add)(::windows::core::Interface::as_raw(self), item.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Remove<'a, P0>(&self, path: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.Remove)(::windows::core::Interface::as_raw(self), path.into().abi()).ok() + pub unsafe fn Remove(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.Remove)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoveTree<'a, P0>(&self, path: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.RemoveTree)(::windows::core::Interface::as_raw(self), path.into().abi()).ok() + pub unsafe fn RemoveTree(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.RemoveTree)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddTreeWithNamedStreams<'a, P0>(&self, sourcedirectory: P0, includebasedirectory: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AddTreeWithNamedStreams)(::windows::core::Interface::as_raw(self), sourcedirectory.into().abi(), includebasedirectory).ok() + pub unsafe fn AddTreeWithNamedStreams(&self, sourcedirectory: &::windows::core::BSTR, includebasedirectory: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AddTreeWithNamedStreams)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(sourcedirectory), includebasedirectory).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5773,10 +5415,7 @@ unsafe impl ::windows::core::Interface for IFsiDirectoryItem2 { #[doc(hidden)] pub struct IFsiDirectoryItem2_Vtbl { pub base__: IFsiDirectoryItem_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub AddTreeWithNamedStreams: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sourcedirectory: ::core::mem::ManuallyDrop, includebasedirectory: i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddTreeWithNamedStreams: usize, + pub AddTreeWithNamedStreams: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sourcedirectory: ::core::mem::ManuallyDrop<::windows::core::BSTR>, includebasedirectory: i16) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Storage_Imapi\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5784,17 +5423,13 @@ pub struct IFsiDirectoryItem2_Vtbl { pub struct IFsiFileItem(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IFsiFileItem { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FullPath(&self) -> ::windows::core::Result { + pub unsafe fn FullPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FullPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.FullPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CreationTime(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5824,17 +5459,13 @@ impl IFsiFileItem { pub unsafe fn SetIsHidden(&self, newval: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetIsHidden)(::windows::core::Interface::as_raw(self), newval).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FileSystemName(&self, filesystem: FsiFileSystems) -> ::windows::core::Result { + pub unsafe fn FileSystemName(&self, filesystem: FsiFileSystems) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FileSystemName)(::windows::core::Interface::as_raw(self), filesystem, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.FileSystemName)(::windows::core::Interface::as_raw(self), filesystem, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FileSystemPath(&self, filesystem: FsiFileSystems) -> ::windows::core::Result { + pub unsafe fn FileSystemPath(&self, filesystem: FsiFileSystems) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FileSystemPath)(::windows::core::Interface::as_raw(self), filesystem, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.FileSystemPath)(::windows::core::Interface::as_raw(self), filesystem, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn DataSize(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5965,17 +5596,13 @@ pub struct IFsiFileItem_Vtbl { pub struct IFsiFileItem2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IFsiFileItem2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FullPath(&self) -> ::windows::core::Result { + pub unsafe fn FullPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.FullPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.FullPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CreationTime(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6005,17 +5632,13 @@ impl IFsiFileItem2 { pub unsafe fn SetIsHidden(&self, newval: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.SetIsHidden)(::windows::core::Interface::as_raw(self), newval).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FileSystemName(&self, filesystem: FsiFileSystems) -> ::windows::core::Result { + pub unsafe fn FileSystemName(&self, filesystem: FsiFileSystems) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.FileSystemName)(::windows::core::Interface::as_raw(self), filesystem, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.FileSystemName)(::windows::core::Interface::as_raw(self), filesystem, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FileSystemPath(&self, filesystem: FsiFileSystems) -> ::windows::core::Result { + pub unsafe fn FileSystemPath(&self, filesystem: FsiFileSystems) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.FileSystemPath)(::windows::core::Interface::as_raw(self), filesystem, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.FileSystemPath)(::windows::core::Interface::as_raw(self), filesystem, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn DataSize(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6053,22 +5676,16 @@ impl IFsiFileItem2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).IsNamedStream)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn AddStream<'a, P0, P1>(&self, name: P0, streamdata: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn AddStream<'a, P0>(&self, name: &::windows::core::BSTR, streamdata: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IStream>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::IStream>>, { - (::windows::core::Interface::vtable(self).AddStream)(::windows::core::Interface::as_raw(self), name.into().abi(), streamdata.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddStream)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), streamdata.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoveStream<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).RemoveStream)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn RemoveStream(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).RemoveStream)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } pub unsafe fn IsRealTime(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6185,14 +5802,11 @@ pub struct IFsiFileItem2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] FsiNamedStreams: usize, pub IsNamedStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i16) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub AddStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, streamdata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub AddStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, streamdata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] AddStream: usize, - #[cfg(feature = "Win32_Foundation")] - pub RemoveStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RemoveStream: usize, + pub RemoveStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub IsRealTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i16) -> ::windows::core::HRESULT, pub SetIsRealTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: i16) -> ::windows::core::HRESULT, } @@ -6202,17 +5816,13 @@ pub struct IFsiFileItem2_Vtbl { pub struct IFsiItem(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IFsiItem { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FullPath(&self) -> ::windows::core::Result { + pub unsafe fn FullPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FullPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FullPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CreationTime(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6242,17 +5852,13 @@ impl IFsiItem { pub unsafe fn SetIsHidden(&self, newval: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetIsHidden)(::windows::core::Interface::as_raw(self), newval).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FileSystemName(&self, filesystem: FsiFileSystems) -> ::windows::core::Result { + pub unsafe fn FileSystemName(&self, filesystem: FsiFileSystems) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FileSystemName)(::windows::core::Interface::as_raw(self), filesystem, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FileSystemName)(::windows::core::Interface::as_raw(self), filesystem, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FileSystemPath(&self, filesystem: FsiFileSystems) -> ::windows::core::Result { + pub unsafe fn FileSystemPath(&self, filesystem: FsiFileSystems) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FileSystemPath)(::windows::core::Interface::as_raw(self), filesystem, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FileSystemPath)(::windows::core::Interface::as_raw(self), filesystem, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -6321,14 +5927,8 @@ unsafe impl ::windows::core::Interface for IFsiItem { #[doc(hidden)] pub struct IFsiItem_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub FullPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FullPath: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FullPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub CreationTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut f64) -> ::windows::core::HRESULT, pub SetCreationTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: f64) -> ::windows::core::HRESULT, pub LastAccessedTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut f64) -> ::windows::core::HRESULT, @@ -6337,14 +5937,8 @@ pub struct IFsiItem_Vtbl { pub SetLastModifiedTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: f64) -> ::windows::core::HRESULT, pub IsHidden: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i16) -> ::windows::core::HRESULT, pub SetIsHidden: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub FileSystemName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filesystem: FsiFileSystems, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FileSystemName: usize, - #[cfg(feature = "Win32_Foundation")] - pub FileSystemPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filesystem: FsiFileSystems, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FileSystemPath: usize, + pub FileSystemName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filesystem: FsiFileSystems, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FileSystemPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filesystem: FsiFileSystems, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Storage_Imapi\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6456,11 +6050,9 @@ pub struct IFsiNamedStreams_Vtbl { pub struct IIsoImageManager(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IIsoImageManager { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Path(&self) -> ::windows::core::Result { + pub unsafe fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6468,13 +6060,8 @@ impl IIsoImageManager { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Stream)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPath<'a, P0>(&self, val: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPath)(::windows::core::Interface::as_raw(self), val.into().abi()).ok() + pub unsafe fn SetPath(&self, val: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(val)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6554,18 +6141,12 @@ unsafe impl ::windows::core::Interface for IIsoImageManager { #[doc(hidden)] pub struct IIsoImageManager_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Path: usize, + pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Stream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, data: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Stream: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, val: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPath: usize, + pub SetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, val: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub SetStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, data: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -7180,11 +6761,9 @@ pub struct IMultisessionSequential2_Vtbl { pub struct IProgressItem(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IProgressItem { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn FirstBlock(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7265,10 +6844,7 @@ unsafe impl ::windows::core::Interface for IProgressItem { #[doc(hidden)] pub struct IProgressItem_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, desc: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, desc: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub FirstBlock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, block: *mut u32) -> ::windows::core::HRESULT, pub LastBlock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, block: *mut u32) -> ::windows::core::HRESULT, pub BlockCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, blocks: *mut u32) -> ::windows::core::HRESULT, @@ -7301,14 +6877,11 @@ impl IProgressItems { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ProgressItemFromBlock)(::windows::core::Interface::as_raw(self), block, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn ProgressItemFromDescription<'a, P0>(&self, description: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn ProgressItemFromDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ProgressItemFromDescription)(::windows::core::Interface::as_raw(self), description.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ProgressItemFromDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(description), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn EnumProgressItems(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7394,9 +6967,9 @@ pub struct IProgressItems_Vtbl { pub ProgressItemFromBlock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, block: u32, item: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] ProgressItemFromBlock: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub ProgressItemFromDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: ::core::mem::ManuallyDrop, item: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub ProgressItemFromDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: ::core::mem::ManuallyDrop<::windows::core::BSTR>, item: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] ProgressItemFromDescription: usize, pub EnumProgressItems: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } @@ -7462,19 +7035,12 @@ impl IRawCDImageCreator { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).DisableGaplessAudio)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMediaCatalogNumber<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetMediaCatalogNumber)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetMediaCatalogNumber(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetMediaCatalogNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MediaCatalogNumber(&self) -> ::windows::core::Result { + pub unsafe fn MediaCatalogNumber(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).MediaCatalogNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).MediaCatalogNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetStartingTrackNumber(&self, value: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetStartingTrackNumber)(::windows::core::Interface::as_raw(self), value).ok() @@ -7593,14 +7159,8 @@ pub struct IRawCDImageCreator_Vtbl { pub StartOfLeadoutLimit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i32) -> ::windows::core::HRESULT, pub SetDisableGaplessAudio: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i16) -> ::windows::core::HRESULT, pub DisableGaplessAudio: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetMediaCatalogNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetMediaCatalogNumber: usize, - #[cfg(feature = "Win32_Foundation")] - pub MediaCatalogNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MediaCatalogNumber: usize, + pub SetMediaCatalogNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub MediaCatalogNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetStartingTrackNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, pub StartingTrackNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] @@ -7636,19 +7196,12 @@ impl IRawCDImageTrackInfo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).SectorType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ISRC(&self) -> ::windows::core::Result { + pub unsafe fn ISRC(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ISRC)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ISRC)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetISRC<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetISRC)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetISRC(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetISRC)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } pub unsafe fn DigitalAudioCopySetting(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7747,14 +7300,8 @@ pub struct IRawCDImageTrackInfo_Vtbl { pub SectorCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i32) -> ::windows::core::HRESULT, pub TrackNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i32) -> ::windows::core::HRESULT, pub SectorType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut IMAPI_CD_SECTOR_TYPE) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ISRC: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ISRC: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetISRC: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetISRC: usize, + pub ISRC: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetISRC: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub DigitalAudioCopySetting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut IMAPI_CD_TRACK_DIGITAL_COPY_SETTING) -> ::windows::core::HRESULT, pub SetDigitalAudioCopySetting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: IMAPI_CD_TRACK_DIGITAL_COPY_SETTING) -> ::windows::core::HRESULT, pub AudioHasPreemphasis: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i16) -> ::windows::core::HRESULT, diff --git a/crates/libs/windows/src/Windows/Win32/Storage/Packaging/Opc/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/Packaging/Opc/mod.rs index bbb2015aa2..611d9b6bae 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Packaging/Opc/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Packaging/Opc/mod.rs @@ -903,9 +903,9 @@ pub struct IOpcPartSet_Vtbl { pub struct IOpcPartUri(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IOpcPartUri { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetPropertyBSTR(&self, uriprop: super::super::super::System::Com::Uri_PROPERTY, pbstrproperty: &mut super::super::super::Foundation::BSTR, dwflags: u32) -> ::windows::core::Result<()> { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetPropertyBSTR(&self, uriprop: super::super::super::System::Com::Uri_PROPERTY, pbstrproperty: &mut ::windows::core::BSTR, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.GetPropertyBSTR)(::windows::core::Interface::as_raw(self), uriprop, ::core::mem::transmute(pbstrproperty), dwflags).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] @@ -924,95 +924,95 @@ impl IOpcPartUri { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.HasProperty)(::windows::core::Interface::as_raw(self), uriprop, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetAbsoluteUri(&self) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetAbsoluteUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetAbsoluteUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetAbsoluteUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetAuthority(&self) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetAuthority(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetAuthority)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetAuthority)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetDisplayUri(&self) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetDisplayUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetDisplayUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetDisplayUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetDomain(&self) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetDomain(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetDomain)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetDomain)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetExtension(&self) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetExtension(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetExtension)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetExtension)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetFragment(&self) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetFragment(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetFragment)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetFragment)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetHost(&self) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetHost(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetHost)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetHost)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetPassword(&self) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetPassword(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetPassword)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetPassword)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetPath(&self) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetPathAndQuery(&self) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetPathAndQuery(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetPathAndQuery)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetPathAndQuery)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetQuery(&self) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetQuery(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetQuery)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetQuery)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetRawUri(&self) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetRawUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetRawUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetRawUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetSchemeName(&self) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetSchemeName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetSchemeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetSchemeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetUserInfo(&self) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetUserInfo(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetUserInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetUserInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetUserName(&self) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetUserName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetUserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetUserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2673,9 +2673,9 @@ pub struct IOpcSigningOptions_Vtbl { pub struct IOpcUri(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IOpcUri { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetPropertyBSTR(&self, uriprop: super::super::super::System::Com::Uri_PROPERTY, pbstrproperty: &mut super::super::super::Foundation::BSTR, dwflags: u32) -> ::windows::core::Result<()> { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetPropertyBSTR(&self, uriprop: super::super::super::System::Com::Uri_PROPERTY, pbstrproperty: &mut ::windows::core::BSTR, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetPropertyBSTR)(::windows::core::Interface::as_raw(self), uriprop, ::core::mem::transmute(pbstrproperty), dwflags).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] @@ -2694,95 +2694,95 @@ impl IOpcUri { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.HasProperty)(::windows::core::Interface::as_raw(self), uriprop, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetAbsoluteUri(&self) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetAbsoluteUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetAbsoluteUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetAbsoluteUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetAuthority(&self) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetAuthority(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetAuthority)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetAuthority)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetDisplayUri(&self) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetDisplayUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetDisplayUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetDisplayUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetDomain(&self) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetDomain(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetDomain)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetDomain)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetExtension(&self) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetExtension(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetExtension)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetExtension)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetFragment(&self) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetFragment(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetFragment)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetFragment)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetHost(&self) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetHost(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetHost)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetHost)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetPassword(&self) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetPassword(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetPassword)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetPassword)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetPath(&self) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetPathAndQuery(&self) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetPathAndQuery(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetPathAndQuery)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetPathAndQuery)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetQuery(&self) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetQuery(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetQuery)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetQuery)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetRawUri(&self) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetRawUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetRawUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetRawUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetSchemeName(&self) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetSchemeName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetSchemeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetSchemeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetUserInfo(&self) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetUserInfo(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetUserInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetUserInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetUserName(&self) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetUserName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetUserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetUserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] diff --git a/crates/libs/windows/src/Windows/Win32/Storage/Vss/impl.rs b/crates/libs/windows/src/Windows/Win32/Storage/Vss/impl.rs index 6ee4095925..994d7148b9 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Vss/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Vss/impl.rs @@ -127,51 +127,51 @@ impl IVssAsync_Vtbl { } #[cfg(feature = "Win32_Foundation")] pub trait IVssComponent_Impl: Sized { - fn GetLogicalPath(&self, pbstrpath: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetLogicalPath(&self, pbstrpath: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetComponentType(&self, pct: *mut VSS_COMPONENT_TYPE) -> ::windows::core::Result<()>; - fn GetComponentName(&self, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetComponentName(&self, pbstrname: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetBackupSucceeded(&self, pbsucceeded: *mut bool) -> ::windows::core::Result<()>; fn GetAlternateLocationMappingCount(&self, pcmappings: *mut u32) -> ::windows::core::Result<()>; fn GetAlternateLocationMapping(&self, imapping: u32) -> ::windows::core::Result; fn SetBackupMetadata(&self, wszdata: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; - fn GetBackupMetadata(&self, pbstrdata: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetBackupMetadata(&self, pbstrdata: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn AddPartialFile(&self, wszpath: &::windows::core::PCWSTR, wszfilename: &::windows::core::PCWSTR, wszranges: &::windows::core::PCWSTR, wszmetadata: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn GetPartialFileCount(&self, pcpartialfiles: *mut u32) -> ::windows::core::Result<()>; - fn GetPartialFile(&self, ipartialfile: u32, pbstrpath: *mut super::super::Foundation::BSTR, pbstrfilename: *mut super::super::Foundation::BSTR, pbstrrange: *mut super::super::Foundation::BSTR, pbstrmetadata: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetPartialFile(&self, ipartialfile: u32, pbstrpath: *mut ::windows::core::BSTR, pbstrfilename: *mut ::windows::core::BSTR, pbstrrange: *mut ::windows::core::BSTR, pbstrmetadata: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn IsSelectedForRestore(&self, pbselectedforrestore: *mut bool) -> ::windows::core::Result<()>; fn GetAdditionalRestores(&self, pbadditionalrestores: *mut bool) -> ::windows::core::Result<()>; fn GetNewTargetCount(&self, pcnewtarget: *mut u32) -> ::windows::core::Result<()>; fn GetNewTarget(&self, inewtarget: u32) -> ::windows::core::Result; fn AddDirectedTarget(&self, wszsourcepath: &::windows::core::PCWSTR, wszsourcefilename: &::windows::core::PCWSTR, wszsourcerangelist: &::windows::core::PCWSTR, wszdestinationpath: &::windows::core::PCWSTR, wszdestinationfilename: &::windows::core::PCWSTR, wszdestinationrangelist: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn GetDirectedTargetCount(&self, pcdirectedtarget: *mut u32) -> ::windows::core::Result<()>; - fn GetDirectedTarget(&self, idirectedtarget: u32, pbstrsourcepath: *mut super::super::Foundation::BSTR, pbstrsourcefilename: *mut super::super::Foundation::BSTR, pbstrsourcerangelist: *mut super::super::Foundation::BSTR, pbstrdestinationpath: *mut super::super::Foundation::BSTR, pbstrdestinationfilename: *mut super::super::Foundation::BSTR, pbstrdestinationrangelist: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetDirectedTarget(&self, idirectedtarget: u32, pbstrsourcepath: *mut ::windows::core::BSTR, pbstrsourcefilename: *mut ::windows::core::BSTR, pbstrsourcerangelist: *mut ::windows::core::BSTR, pbstrdestinationpath: *mut ::windows::core::BSTR, pbstrdestinationfilename: *mut ::windows::core::BSTR, pbstrdestinationrangelist: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn SetRestoreMetadata(&self, wszrestoremetadata: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; - fn GetRestoreMetadata(&self, pbstrrestoremetadata: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetRestoreMetadata(&self, pbstrrestoremetadata: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn SetRestoreTarget(&self, target: VSS_RESTORE_TARGET) -> ::windows::core::Result<()>; fn GetRestoreTarget(&self, ptarget: *mut VSS_RESTORE_TARGET) -> ::windows::core::Result<()>; fn SetPreRestoreFailureMsg(&self, wszprerestorefailuremsg: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; - fn GetPreRestoreFailureMsg(&self, pbstrprerestorefailuremsg: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetPreRestoreFailureMsg(&self, pbstrprerestorefailuremsg: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn SetPostRestoreFailureMsg(&self, wszpostrestorefailuremsg: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; - fn GetPostRestoreFailureMsg(&self, pbstrpostrestorefailuremsg: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetPostRestoreFailureMsg(&self, pbstrpostrestorefailuremsg: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn SetBackupStamp(&self, wszbackupstamp: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; - fn GetBackupStamp(&self, pbstrbackupstamp: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetPreviousBackupStamp(&self, pbstrbackupstamp: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetBackupOptions(&self, pbstrbackupoptions: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetRestoreOptions(&self, pbstrrestoreoptions: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetBackupStamp(&self, pbstrbackupstamp: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetPreviousBackupStamp(&self, pbstrbackupstamp: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetBackupOptions(&self, pbstrbackupoptions: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetRestoreOptions(&self, pbstrrestoreoptions: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetRestoreSubcomponentCount(&self, pcrestoresubcomponent: *mut u32) -> ::windows::core::Result<()>; - fn GetRestoreSubcomponent(&self, icomponent: u32, pbstrlogicalpath: *mut super::super::Foundation::BSTR, pbstrcomponentname: *mut super::super::Foundation::BSTR, pbrepair: *mut bool) -> ::windows::core::Result<()>; + fn GetRestoreSubcomponent(&self, icomponent: u32, pbstrlogicalpath: *mut ::windows::core::BSTR, pbstrcomponentname: *mut ::windows::core::BSTR, pbrepair: *mut bool) -> ::windows::core::Result<()>; fn GetFileRestoreStatus(&self, pstatus: *mut VSS_FILE_RESTORE_STATUS) -> ::windows::core::Result<()>; fn AddDifferencedFilesByLastModifyTime(&self, wszpath: &::windows::core::PCWSTR, wszfilespec: &::windows::core::PCWSTR, brecursive: super::super::Foundation::BOOL, ftlastmodifytime: &super::super::Foundation::FILETIME) -> ::windows::core::Result<()>; - fn AddDifferencedFilesByLastModifyLSN(&self, wszpath: &::windows::core::PCWSTR, wszfilespec: &::windows::core::PCWSTR, brecursive: super::super::Foundation::BOOL, bstrlsnstring: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn AddDifferencedFilesByLastModifyLSN(&self, wszpath: &::windows::core::PCWSTR, wszfilespec: &::windows::core::PCWSTR, brecursive: super::super::Foundation::BOOL, bstrlsnstring: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetDifferencedFilesCount(&self, pcdifferencedfiles: *mut u32) -> ::windows::core::Result<()>; - fn GetDifferencedFile(&self, idifferencedfile: u32, pbstrpath: *mut super::super::Foundation::BSTR, pbstrfilespec: *mut super::super::Foundation::BSTR, pbrecursive: *mut super::super::Foundation::BOOL, pbstrlsnstring: *mut super::super::Foundation::BSTR, pftlastmodifytime: *mut super::super::Foundation::FILETIME) -> ::windows::core::Result<()>; + fn GetDifferencedFile(&self, idifferencedfile: u32, pbstrpath: *mut ::windows::core::BSTR, pbstrfilespec: *mut ::windows::core::BSTR, pbrecursive: *mut super::super::Foundation::BOOL, pbstrlsnstring: *mut ::windows::core::BSTR, pftlastmodifytime: *mut super::super::Foundation::FILETIME) -> ::windows::core::Result<()>; } #[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IVssComponent {} #[cfg(feature = "Win32_Foundation")] impl IVssComponent_Vtbl { pub const fn new, Impl: IVssComponent_Impl, const OFFSET: isize>() -> IVssComponent_Vtbl { - unsafe extern "system" fn GetLogicalPath, Impl: IVssComponent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetLogicalPath, Impl: IVssComponent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetLogicalPath(::core::mem::transmute_copy(&pbstrpath)).into() @@ -181,7 +181,7 @@ impl IVssComponent_Vtbl { let this = (*this).get_impl(); this.GetComponentType(::core::mem::transmute_copy(&pct)).into() } - unsafe extern "system" fn GetComponentName, Impl: IVssComponent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetComponentName, Impl: IVssComponent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetComponentName(::core::mem::transmute_copy(&pbstrname)).into() @@ -212,7 +212,7 @@ impl IVssComponent_Vtbl { let this = (*this).get_impl(); this.SetBackupMetadata(::core::mem::transmute(&wszdata)).into() } - unsafe extern "system" fn GetBackupMetadata, Impl: IVssComponent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetBackupMetadata, Impl: IVssComponent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetBackupMetadata(::core::mem::transmute_copy(&pbstrdata)).into() @@ -227,7 +227,7 @@ impl IVssComponent_Vtbl { let this = (*this).get_impl(); this.GetPartialFileCount(::core::mem::transmute_copy(&pcpartialfiles)).into() } - unsafe extern "system" fn GetPartialFile, Impl: IVssComponent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ipartialfile: u32, pbstrpath: *mut super::super::Foundation::BSTR, pbstrfilename: *mut super::super::Foundation::BSTR, pbstrrange: *mut super::super::Foundation::BSTR, pbstrmetadata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPartialFile, Impl: IVssComponent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ipartialfile: u32, pbstrpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrfilename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrrange: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrmetadata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetPartialFile(::core::mem::transmute_copy(&ipartialfile), ::core::mem::transmute_copy(&pbstrpath), ::core::mem::transmute_copy(&pbstrfilename), ::core::mem::transmute_copy(&pbstrrange), ::core::mem::transmute_copy(&pbstrmetadata)).into() @@ -268,7 +268,7 @@ impl IVssComponent_Vtbl { let this = (*this).get_impl(); this.GetDirectedTargetCount(::core::mem::transmute_copy(&pcdirectedtarget)).into() } - unsafe extern "system" fn GetDirectedTarget, Impl: IVssComponent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, idirectedtarget: u32, pbstrsourcepath: *mut super::super::Foundation::BSTR, pbstrsourcefilename: *mut super::super::Foundation::BSTR, pbstrsourcerangelist: *mut super::super::Foundation::BSTR, pbstrdestinationpath: *mut super::super::Foundation::BSTR, pbstrdestinationfilename: *mut super::super::Foundation::BSTR, pbstrdestinationrangelist: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDirectedTarget, Impl: IVssComponent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, idirectedtarget: u32, pbstrsourcepath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrsourcefilename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrsourcerangelist: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrdestinationpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrdestinationfilename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrdestinationrangelist: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetDirectedTarget(::core::mem::transmute_copy(&idirectedtarget), ::core::mem::transmute_copy(&pbstrsourcepath), ::core::mem::transmute_copy(&pbstrsourcefilename), ::core::mem::transmute_copy(&pbstrsourcerangelist), ::core::mem::transmute_copy(&pbstrdestinationpath), ::core::mem::transmute_copy(&pbstrdestinationfilename), ::core::mem::transmute_copy(&pbstrdestinationrangelist)).into() @@ -278,7 +278,7 @@ impl IVssComponent_Vtbl { let this = (*this).get_impl(); this.SetRestoreMetadata(::core::mem::transmute(&wszrestoremetadata)).into() } - unsafe extern "system" fn GetRestoreMetadata, Impl: IVssComponent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrrestoremetadata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetRestoreMetadata, Impl: IVssComponent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrrestoremetadata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetRestoreMetadata(::core::mem::transmute_copy(&pbstrrestoremetadata)).into() @@ -298,7 +298,7 @@ impl IVssComponent_Vtbl { let this = (*this).get_impl(); this.SetPreRestoreFailureMsg(::core::mem::transmute(&wszprerestorefailuremsg)).into() } - unsafe extern "system" fn GetPreRestoreFailureMsg, Impl: IVssComponent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprerestorefailuremsg: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPreRestoreFailureMsg, Impl: IVssComponent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrprerestorefailuremsg: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetPreRestoreFailureMsg(::core::mem::transmute_copy(&pbstrprerestorefailuremsg)).into() @@ -308,7 +308,7 @@ impl IVssComponent_Vtbl { let this = (*this).get_impl(); this.SetPostRestoreFailureMsg(::core::mem::transmute(&wszpostrestorefailuremsg)).into() } - unsafe extern "system" fn GetPostRestoreFailureMsg, Impl: IVssComponent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpostrestorefailuremsg: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPostRestoreFailureMsg, Impl: IVssComponent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpostrestorefailuremsg: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetPostRestoreFailureMsg(::core::mem::transmute_copy(&pbstrpostrestorefailuremsg)).into() @@ -318,22 +318,22 @@ impl IVssComponent_Vtbl { let this = (*this).get_impl(); this.SetBackupStamp(::core::mem::transmute(&wszbackupstamp)).into() } - unsafe extern "system" fn GetBackupStamp, Impl: IVssComponent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrbackupstamp: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetBackupStamp, Impl: IVssComponent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrbackupstamp: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetBackupStamp(::core::mem::transmute_copy(&pbstrbackupstamp)).into() } - unsafe extern "system" fn GetPreviousBackupStamp, Impl: IVssComponent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrbackupstamp: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPreviousBackupStamp, Impl: IVssComponent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrbackupstamp: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetPreviousBackupStamp(::core::mem::transmute_copy(&pbstrbackupstamp)).into() } - unsafe extern "system" fn GetBackupOptions, Impl: IVssComponent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrbackupoptions: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetBackupOptions, Impl: IVssComponent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrbackupoptions: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetBackupOptions(::core::mem::transmute_copy(&pbstrbackupoptions)).into() } - unsafe extern "system" fn GetRestoreOptions, Impl: IVssComponent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrrestoreoptions: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetRestoreOptions, Impl: IVssComponent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrrestoreoptions: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetRestoreOptions(::core::mem::transmute_copy(&pbstrrestoreoptions)).into() @@ -343,7 +343,7 @@ impl IVssComponent_Vtbl { let this = (*this).get_impl(); this.GetRestoreSubcomponentCount(::core::mem::transmute_copy(&pcrestoresubcomponent)).into() } - unsafe extern "system" fn GetRestoreSubcomponent, Impl: IVssComponent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, icomponent: u32, pbstrlogicalpath: *mut super::super::Foundation::BSTR, pbstrcomponentname: *mut super::super::Foundation::BSTR, pbrepair: *mut bool) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetRestoreSubcomponent, Impl: IVssComponent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, icomponent: u32, pbstrlogicalpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrcomponentname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbrepair: *mut bool) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetRestoreSubcomponent(::core::mem::transmute_copy(&icomponent), ::core::mem::transmute_copy(&pbstrlogicalpath), ::core::mem::transmute_copy(&pbstrcomponentname), ::core::mem::transmute_copy(&pbrepair)).into() @@ -358,7 +358,7 @@ impl IVssComponent_Vtbl { let this = (*this).get_impl(); this.AddDifferencedFilesByLastModifyTime(::core::mem::transmute(&wszpath), ::core::mem::transmute(&wszfilespec), ::core::mem::transmute_copy(&brecursive), ::core::mem::transmute(&ftlastmodifytime)).into() } - unsafe extern "system" fn AddDifferencedFilesByLastModifyLSN, Impl: IVssComponent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wszpath: ::windows::core::PCWSTR, wszfilespec: ::windows::core::PCWSTR, brecursive: super::super::Foundation::BOOL, bstrlsnstring: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddDifferencedFilesByLastModifyLSN, Impl: IVssComponent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wszpath: ::windows::core::PCWSTR, wszfilespec: ::windows::core::PCWSTR, brecursive: super::super::Foundation::BOOL, bstrlsnstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddDifferencedFilesByLastModifyLSN(::core::mem::transmute(&wszpath), ::core::mem::transmute(&wszfilespec), ::core::mem::transmute_copy(&brecursive), ::core::mem::transmute(&bstrlsnstring)).into() @@ -368,7 +368,7 @@ impl IVssComponent_Vtbl { let this = (*this).get_impl(); this.GetDifferencedFilesCount(::core::mem::transmute_copy(&pcdifferencedfiles)).into() } - unsafe extern "system" fn GetDifferencedFile, Impl: IVssComponent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, idifferencedfile: u32, pbstrpath: *mut super::super::Foundation::BSTR, pbstrfilespec: *mut super::super::Foundation::BSTR, pbrecursive: *mut super::super::Foundation::BOOL, pbstrlsnstring: *mut super::super::Foundation::BSTR, pftlastmodifytime: *mut super::super::Foundation::FILETIME) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDifferencedFile, Impl: IVssComponent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, idifferencedfile: u32, pbstrpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrfilespec: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbrecursive: *mut super::super::Foundation::BOOL, pbstrlsnstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pftlastmodifytime: *mut super::super::Foundation::FILETIME) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetDifferencedFile(::core::mem::transmute_copy(&idifferencedfile), ::core::mem::transmute_copy(&pbstrpath), ::core::mem::transmute_copy(&pbstrfilespec), ::core::mem::transmute_copy(&pbrecursive), ::core::mem::transmute_copy(&pbstrlsnstring), ::core::mem::transmute_copy(&pftlastmodifytime)).into() @@ -423,11 +423,11 @@ impl IVssComponent_Vtbl { pub trait IVssComponentEx_Impl: Sized + IVssComponent_Impl { fn SetPrepareForBackupFailureMsg(&self, wszfailuremsg: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn SetPostSnapshotFailureMsg(&self, wszfailuremsg: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; - fn GetPrepareForBackupFailureMsg(&self) -> ::windows::core::Result; - fn GetPostSnapshotFailureMsg(&self) -> ::windows::core::Result; + fn GetPrepareForBackupFailureMsg(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetPostSnapshotFailureMsg(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetAuthoritativeRestore(&self) -> ::windows::core::Result; - fn GetRollForward(&self, prolltype: *mut VSS_ROLLFORWARD_TYPE, pbstrpoint: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetRestoreName(&self) -> ::windows::core::Result; + fn GetRollForward(&self, prolltype: *mut VSS_ROLLFORWARD_TYPE, pbstrpoint: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetRestoreName(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IVssComponentEx {} @@ -444,7 +444,7 @@ impl IVssComponentEx_Vtbl { let this = (*this).get_impl(); this.SetPostSnapshotFailureMsg(::core::mem::transmute(&wszfailuremsg)).into() } - unsafe extern "system" fn GetPrepareForBackupFailureMsg, Impl: IVssComponentEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfailuremsg: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPrepareForBackupFailureMsg, Impl: IVssComponentEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfailuremsg: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetPrepareForBackupFailureMsg() { @@ -455,7 +455,7 @@ impl IVssComponentEx_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetPostSnapshotFailureMsg, Impl: IVssComponentEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfailuremsg: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPostSnapshotFailureMsg, Impl: IVssComponentEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfailuremsg: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetPostSnapshotFailureMsg() { @@ -477,12 +477,12 @@ impl IVssComponentEx_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetRollForward, Impl: IVssComponentEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, prolltype: *mut VSS_ROLLFORWARD_TYPE, pbstrpoint: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetRollForward, Impl: IVssComponentEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, prolltype: *mut VSS_ROLLFORWARD_TYPE, pbstrpoint: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetRollForward(::core::mem::transmute_copy(&prolltype), ::core::mem::transmute_copy(&pbstrpoint)).into() } - unsafe extern "system" fn GetRestoreName, Impl: IVssComponentEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetRestoreName, Impl: IVssComponentEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetRestoreName() { @@ -511,7 +511,7 @@ impl IVssComponentEx_Vtbl { #[cfg(feature = "Win32_Foundation")] pub trait IVssComponentEx2_Impl: Sized + IVssComponent_Impl + IVssComponentEx_Impl { fn SetFailure(&self, hr: ::windows::core::HRESULT, hrapplication: ::windows::core::HRESULT, wszapplicationmessage: &::windows::core::PCWSTR, dwreserved: u32) -> ::windows::core::Result<()>; - fn GetFailure(&self, phr: *mut ::windows::core::HRESULT, phrapplication: *mut ::windows::core::HRESULT, pbstrapplicationmessage: *mut super::super::Foundation::BSTR, pdwreserved: *mut u32) -> ::windows::core::Result<()>; + fn GetFailure(&self, phr: *mut ::windows::core::HRESULT, phrapplication: *mut ::windows::core::HRESULT, pbstrapplicationmessage: *mut ::windows::core::BSTR, pdwreserved: *mut u32) -> ::windows::core::Result<()>; } #[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IVssComponentEx2 {} @@ -523,7 +523,7 @@ impl IVssComponentEx2_Vtbl { let this = (*this).get_impl(); this.SetFailure(::core::mem::transmute_copy(&hr), ::core::mem::transmute_copy(&hrapplication), ::core::mem::transmute(&wszapplicationmessage), ::core::mem::transmute_copy(&dwreserved)).into() } - unsafe extern "system" fn GetFailure, Impl: IVssComponentEx2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, phr: *mut ::windows::core::HRESULT, phrapplication: *mut ::windows::core::HRESULT, pbstrapplicationmessage: *mut super::super::Foundation::BSTR, pdwreserved: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFailure, Impl: IVssComponentEx2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, phr: *mut ::windows::core::HRESULT, phrapplication: *mut ::windows::core::HRESULT, pbstrapplicationmessage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwreserved: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetFailure(::core::mem::transmute_copy(&phr), ::core::mem::transmute_copy(&phrapplication), ::core::mem::transmute_copy(&pbstrapplicationmessage), ::core::mem::transmute_copy(&pdwreserved)).into() @@ -538,7 +538,6 @@ impl IVssComponentEx2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IVssCreateExpressWriterMetadata_Impl: Sized { fn AddExcludeFiles(&self, wszpath: &::windows::core::PCWSTR, wszfilespec: &::windows::core::PCWSTR, brecursive: u8) -> ::windows::core::Result<()>; fn AddComponent(&self, ct: VSS_COMPONENT_TYPE, wszlogicalpath: &::windows::core::PCWSTR, wszcomponentname: &::windows::core::PCWSTR, wszcaption: &::windows::core::PCWSTR, pbicon: *const u8, cbicon: u32, brestoremetadata: u8, bnotifyonbackupcomplete: u8, bselectable: u8, bselectableforrestore: u8, dwcomponentflags: u32) -> ::windows::core::Result<()>; @@ -546,11 +545,9 @@ pub trait IVssCreateExpressWriterMetadata_Impl: Sized { fn SetRestoreMethod(&self, method: VSS_RESTOREMETHOD_ENUM, wszservice: &::windows::core::PCWSTR, wszuserprocedure: &::windows::core::PCWSTR, writerrestore: VSS_WRITERRESTORE_ENUM, brebootrequired: u8) -> ::windows::core::Result<()>; fn AddComponentDependency(&self, wszforlogicalpath: &::windows::core::PCWSTR, wszforcomponentname: &::windows::core::PCWSTR, onwriterid: &::windows::core::GUID, wszonlogicalpath: &::windows::core::PCWSTR, wszoncomponentname: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn SetBackupSchema(&self, dwschemamask: u32) -> ::windows::core::Result<()>; - fn SaveAsXML(&self) -> ::windows::core::Result; + fn SaveAsXML(&self) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IVssCreateExpressWriterMetadata {} -#[cfg(feature = "Win32_Foundation")] impl IVssCreateExpressWriterMetadata_Vtbl { pub const fn new, Impl: IVssCreateExpressWriterMetadata_Impl, const OFFSET: isize>() -> IVssCreateExpressWriterMetadata_Vtbl { unsafe extern "system" fn AddExcludeFiles, Impl: IVssCreateExpressWriterMetadata_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wszpath: ::windows::core::PCWSTR, wszfilespec: ::windows::core::PCWSTR, brecursive: u8) -> ::windows::core::HRESULT { @@ -584,7 +581,7 @@ impl IVssCreateExpressWriterMetadata_Vtbl { let this = (*this).get_impl(); this.SetBackupSchema(::core::mem::transmute_copy(&dwschemamask)).into() } - unsafe extern "system" fn SaveAsXML, Impl: IVssCreateExpressWriterMetadata_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrxml: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SaveAsXML, Impl: IVssCreateExpressWriterMetadata_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrxml: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SaveAsXML() { @@ -610,7 +607,7 @@ impl IVssCreateExpressWriterMetadata_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] pub trait IVssCreateWriterMetadata_Impl: Sized { fn AddIncludeFiles(&self, wszpath: &::windows::core::PCWSTR, wszfilespec: &::windows::core::PCWSTR, brecursive: u8, wszalternatelocation: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn AddExcludeFiles(&self, wszpath: &::windows::core::PCWSTR, wszfilespec: &::windows::core::PCWSTR, brecursive: u8) -> ::windows::core::Result<()>; @@ -623,11 +620,11 @@ pub trait IVssCreateWriterMetadata_Impl: Sized { fn AddComponentDependency(&self, wszforlogicalpath: &::windows::core::PCWSTR, wszforcomponentname: &::windows::core::PCWSTR, onwriterid: &::windows::core::GUID, wszonlogicalpath: &::windows::core::PCWSTR, wszoncomponentname: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn SetBackupSchema(&self, dwschemamask: u32) -> ::windows::core::Result<()>; fn GetDocument(&self) -> ::windows::core::Result; - fn SaveAsXML(&self, pbstrxml: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SaveAsXML(&self, pbstrxml: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] impl ::windows::core::RuntimeName for IVssCreateWriterMetadata {} -#[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] impl IVssCreateWriterMetadata_Vtbl { pub const fn new, Impl: IVssCreateWriterMetadata_Impl, const OFFSET: isize>() -> IVssCreateWriterMetadata_Vtbl { unsafe extern "system" fn AddIncludeFiles, Impl: IVssCreateWriterMetadata_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wszpath: ::windows::core::PCWSTR, wszfilespec: ::windows::core::PCWSTR, brecursive: u8, wszalternatelocation: ::windows::core::PCWSTR) -> ::windows::core::HRESULT { @@ -692,7 +689,7 @@ impl IVssCreateWriterMetadata_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SaveAsXML, Impl: IVssCreateWriterMetadata_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrxml: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SaveAsXML, Impl: IVssCreateWriterMetadata_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrxml: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SaveAsXML(::core::mem::transmute_copy(&pbstrxml)).into() @@ -1512,15 +1509,12 @@ impl IVssSoftwareSnapshotProvider_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IVssWMDependency_Impl: Sized { fn GetWriterId(&self, pwriterid: *mut ::windows::core::GUID) -> ::windows::core::Result<()>; - fn GetLogicalPath(&self, pbstrlogicalpath: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetComponentName(&self, pbstrcomponentname: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetLogicalPath(&self, pbstrlogicalpath: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetComponentName(&self, pbstrcomponentname: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IVssWMDependency {} -#[cfg(feature = "Win32_Foundation")] impl IVssWMDependency_Vtbl { pub const fn new, Impl: IVssWMDependency_Impl, const OFFSET: isize>() -> IVssWMDependency_Vtbl { unsafe extern "system" fn GetWriterId, Impl: IVssWMDependency_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pwriterid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT { @@ -1528,12 +1522,12 @@ impl IVssWMDependency_Vtbl { let this = (*this).get_impl(); this.GetWriterId(::core::mem::transmute_copy(&pwriterid)).into() } - unsafe extern "system" fn GetLogicalPath, Impl: IVssWMDependency_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrlogicalpath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetLogicalPath, Impl: IVssWMDependency_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrlogicalpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetLogicalPath(::core::mem::transmute_copy(&pbstrlogicalpath)).into() } - unsafe extern "system" fn GetComponentName, Impl: IVssWMDependency_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcomponentname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetComponentName, Impl: IVssWMDependency_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcomponentname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetComponentName(::core::mem::transmute_copy(&pbstrcomponentname)).into() @@ -1549,20 +1543,17 @@ impl IVssWMDependency_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IVssWMFiledesc_Impl: Sized { - fn GetPath(&self) -> ::windows::core::Result; - fn GetFilespec(&self) -> ::windows::core::Result; + fn GetPath(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetFilespec(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetRecursive(&self) -> ::windows::core::Result; - fn GetAlternateLocation(&self) -> ::windows::core::Result; + fn GetAlternateLocation(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetBackupTypeMask(&self) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IVssWMFiledesc {} -#[cfg(feature = "Win32_Foundation")] impl IVssWMFiledesc_Vtbl { pub const fn new, Impl: IVssWMFiledesc_Impl, const OFFSET: isize>() -> IVssWMFiledesc_Vtbl { - unsafe extern "system" fn GetPath, Impl: IVssWMFiledesc_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPath, Impl: IVssWMFiledesc_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetPath() { @@ -1573,7 +1564,7 @@ impl IVssWMFiledesc_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetFilespec, Impl: IVssWMFiledesc_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfilespec: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFilespec, Impl: IVssWMFiledesc_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfilespec: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetFilespec() { @@ -1595,7 +1586,7 @@ impl IVssWMFiledesc_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetAlternateLocation, Impl: IVssWMFiledesc_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstralternatelocation: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetAlternateLocation, Impl: IVssWMFiledesc_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstralternatelocation: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetAlternateLocation() { diff --git a/crates/libs/windows/src/Windows/Win32/Storage/Vss/mod.rs b/crates/libs/windows/src/Windows/Win32/Storage/Vss/mod.rs index f913de0d3b..1f02851382 100644 --- a/crates/libs/windows/src/Windows/Win32/Storage/Vss/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Storage/Vss/mod.rs @@ -218,17 +218,13 @@ pub struct IVssAsync_Vtbl { #[repr(transparent)] pub struct IVssComponent(::windows::core::IUnknown); impl IVssComponent { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetLogicalPath(&self, pbstrpath: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetLogicalPath(&self, pbstrpath: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetLogicalPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrpath)).ok() } pub unsafe fn GetComponentType(&self, pct: &mut VSS_COMPONENT_TYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetComponentType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pct)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetComponentName(&self, pbstrname: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetComponentName(&self, pbstrname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetComponentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrname)).ok() } pub unsafe fn GetBackupSucceeded(&self, pbsucceeded: &mut bool) -> ::windows::core::Result<()> { @@ -247,9 +243,7 @@ impl IVssComponent { { (::windows::core::Interface::vtable(self).SetBackupMetadata)(::windows::core::Interface::as_raw(self), wszdata.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetBackupMetadata(&self, pbstrdata: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetBackupMetadata(&self, pbstrdata: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetBackupMetadata)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrdata)).ok() } pub unsafe fn AddPartialFile<'a, P0, P1, P2, P3>(&self, wszpath: P0, wszfilename: P1, wszranges: P2, wszmetadata: P3) -> ::windows::core::Result<()> @@ -264,9 +258,7 @@ impl IVssComponent { pub unsafe fn GetPartialFileCount(&self, pcpartialfiles: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetPartialFileCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pcpartialfiles)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPartialFile(&self, ipartialfile: u32, pbstrpath: &mut super::super::Foundation::BSTR, pbstrfilename: &mut super::super::Foundation::BSTR, pbstrrange: &mut super::super::Foundation::BSTR, pbstrmetadata: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetPartialFile(&self, ipartialfile: u32, pbstrpath: &mut ::windows::core::BSTR, pbstrfilename: &mut ::windows::core::BSTR, pbstrrange: &mut ::windows::core::BSTR, pbstrmetadata: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetPartialFile)(::windows::core::Interface::as_raw(self), ipartialfile, ::core::mem::transmute(pbstrpath), ::core::mem::transmute(pbstrfilename), ::core::mem::transmute(pbstrrange), ::core::mem::transmute(pbstrmetadata)).ok() } pub unsafe fn IsSelectedForRestore(&self, pbselectedforrestore: &mut bool) -> ::windows::core::Result<()> { @@ -296,9 +288,7 @@ impl IVssComponent { pub unsafe fn GetDirectedTargetCount(&self, pcdirectedtarget: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetDirectedTargetCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pcdirectedtarget)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDirectedTarget(&self, idirectedtarget: u32, pbstrsourcepath: &mut super::super::Foundation::BSTR, pbstrsourcefilename: &mut super::super::Foundation::BSTR, pbstrsourcerangelist: &mut super::super::Foundation::BSTR, pbstrdestinationpath: &mut super::super::Foundation::BSTR, pbstrdestinationfilename: &mut super::super::Foundation::BSTR, pbstrdestinationrangelist: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetDirectedTarget(&self, idirectedtarget: u32, pbstrsourcepath: &mut ::windows::core::BSTR, pbstrsourcefilename: &mut ::windows::core::BSTR, pbstrsourcerangelist: &mut ::windows::core::BSTR, pbstrdestinationpath: &mut ::windows::core::BSTR, pbstrdestinationfilename: &mut ::windows::core::BSTR, pbstrdestinationrangelist: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetDirectedTarget)(::windows::core::Interface::as_raw(self), idirectedtarget, ::core::mem::transmute(pbstrsourcepath), ::core::mem::transmute(pbstrsourcefilename), ::core::mem::transmute(pbstrsourcerangelist), ::core::mem::transmute(pbstrdestinationpath), ::core::mem::transmute(pbstrdestinationfilename), ::core::mem::transmute(pbstrdestinationrangelist)).ok() } pub unsafe fn SetRestoreMetadata<'a, P0>(&self, wszrestoremetadata: P0) -> ::windows::core::Result<()> @@ -307,9 +297,7 @@ impl IVssComponent { { (::windows::core::Interface::vtable(self).SetRestoreMetadata)(::windows::core::Interface::as_raw(self), wszrestoremetadata.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetRestoreMetadata(&self, pbstrrestoremetadata: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetRestoreMetadata(&self, pbstrrestoremetadata: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetRestoreMetadata)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrrestoremetadata)).ok() } pub unsafe fn SetRestoreTarget(&self, target: VSS_RESTORE_TARGET) -> ::windows::core::Result<()> { @@ -324,9 +312,7 @@ impl IVssComponent { { (::windows::core::Interface::vtable(self).SetPreRestoreFailureMsg)(::windows::core::Interface::as_raw(self), wszprerestorefailuremsg.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPreRestoreFailureMsg(&self, pbstrprerestorefailuremsg: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetPreRestoreFailureMsg(&self, pbstrprerestorefailuremsg: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetPreRestoreFailureMsg)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrprerestorefailuremsg)).ok() } pub unsafe fn SetPostRestoreFailureMsg<'a, P0>(&self, wszpostrestorefailuremsg: P0) -> ::windows::core::Result<()> @@ -335,9 +321,7 @@ impl IVssComponent { { (::windows::core::Interface::vtable(self).SetPostRestoreFailureMsg)(::windows::core::Interface::as_raw(self), wszpostrestorefailuremsg.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPostRestoreFailureMsg(&self, pbstrpostrestorefailuremsg: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetPostRestoreFailureMsg(&self, pbstrpostrestorefailuremsg: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetPostRestoreFailureMsg)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrpostrestorefailuremsg)).ok() } pub unsafe fn SetBackupStamp<'a, P0>(&self, wszbackupstamp: P0) -> ::windows::core::Result<()> @@ -346,32 +330,22 @@ impl IVssComponent { { (::windows::core::Interface::vtable(self).SetBackupStamp)(::windows::core::Interface::as_raw(self), wszbackupstamp.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetBackupStamp(&self, pbstrbackupstamp: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetBackupStamp(&self, pbstrbackupstamp: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetBackupStamp)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrbackupstamp)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPreviousBackupStamp(&self, pbstrbackupstamp: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetPreviousBackupStamp(&self, pbstrbackupstamp: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetPreviousBackupStamp)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrbackupstamp)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetBackupOptions(&self, pbstrbackupoptions: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetBackupOptions(&self, pbstrbackupoptions: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetBackupOptions)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrbackupoptions)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetRestoreOptions(&self, pbstrrestoreoptions: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetRestoreOptions(&self, pbstrrestoreoptions: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetRestoreOptions)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrrestoreoptions)).ok() } pub unsafe fn GetRestoreSubcomponentCount(&self, pcrestoresubcomponent: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetRestoreSubcomponentCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pcrestoresubcomponent)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetRestoreSubcomponent(&self, icomponent: u32, pbstrlogicalpath: &mut super::super::Foundation::BSTR, pbstrcomponentname: &mut super::super::Foundation::BSTR, pbrepair: &mut bool) -> ::windows::core::Result<()> { + pub unsafe fn GetRestoreSubcomponent(&self, icomponent: u32, pbstrlogicalpath: &mut ::windows::core::BSTR, pbstrcomponentname: &mut ::windows::core::BSTR, pbrepair: &mut bool) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetRestoreSubcomponent)(::windows::core::Interface::as_raw(self), icomponent, ::core::mem::transmute(pbstrlogicalpath), ::core::mem::transmute(pbstrcomponentname), ::core::mem::transmute(pbrepair)).ok() } pub unsafe fn GetFileRestoreStatus(&self, pstatus: &mut VSS_FILE_RESTORE_STATUS) -> ::windows::core::Result<()> { @@ -389,21 +363,20 @@ impl IVssComponent { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddDifferencedFilesByLastModifyLSN<'a, P0, P1, P2, P3>(&self, wszpath: P0, wszfilespec: P1, brecursive: P2, bstrlsnstring: P3) -> ::windows::core::Result<()> + pub unsafe fn AddDifferencedFilesByLastModifyLSN<'a, P0, P1, P2>(&self, wszpath: P0, wszfilespec: P1, brecursive: P2, bstrlsnstring: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into<::windows::core::PCWSTR>, P2: ::std::convert::Into, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).AddDifferencedFilesByLastModifyLSN)(::windows::core::Interface::as_raw(self), wszpath.into(), wszfilespec.into(), brecursive.into(), bstrlsnstring.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddDifferencedFilesByLastModifyLSN)(::windows::core::Interface::as_raw(self), wszpath.into(), wszfilespec.into(), brecursive.into(), ::core::mem::transmute_copy(bstrlsnstring)).ok() } pub unsafe fn GetDifferencedFilesCount(&self, pcdifferencedfiles: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetDifferencedFilesCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pcdifferencedfiles)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDifferencedFile(&self, idifferencedfile: u32, pbstrpath: &mut super::super::Foundation::BSTR, pbstrfilespec: &mut super::super::Foundation::BSTR, pbrecursive: &mut super::super::Foundation::BOOL, pbstrlsnstring: &mut super::super::Foundation::BSTR, pftlastmodifytime: &mut super::super::Foundation::FILETIME) -> ::windows::core::Result<()> { + pub unsafe fn GetDifferencedFile(&self, idifferencedfile: u32, pbstrpath: &mut ::windows::core::BSTR, pbstrfilespec: &mut ::windows::core::BSTR, pbrecursive: &mut super::super::Foundation::BOOL, pbstrlsnstring: &mut ::windows::core::BSTR, pftlastmodifytime: &mut super::super::Foundation::FILETIME) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetDifferencedFile)(::windows::core::Interface::as_raw(self), idifferencedfile, ::core::mem::transmute(pbstrpath), ::core::mem::transmute(pbstrfilespec), ::core::mem::transmute(pbrecursive), ::core::mem::transmute(pbstrlsnstring), ::core::mem::transmute(pftlastmodifytime)).ok() } } @@ -446,90 +419,51 @@ unsafe impl ::windows::core::Interface for IVssComponent { #[doc(hidden)] pub struct IVssComponent_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetLogicalPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetLogicalPath: usize, + pub GetLogicalPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetComponentType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pct: *mut VSS_COMPONENT_TYPE) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetComponentName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetComponentName: usize, + pub GetComponentName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetBackupSucceeded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbsucceeded: *mut bool) -> ::windows::core::HRESULT, pub GetAlternateLocationMappingCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcmappings: *mut u32) -> ::windows::core::HRESULT, pub GetAlternateLocationMapping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, imapping: u32, ppfiledesc: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub SetBackupMetadata: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszdata: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetBackupMetadata: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetBackupMetadata: usize, + pub GetBackupMetadata: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub AddPartialFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszpath: ::windows::core::PCWSTR, wszfilename: ::windows::core::PCWSTR, wszranges: ::windows::core::PCWSTR, wszmetadata: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, pub GetPartialFileCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcpartialfiles: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetPartialFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ipartialfile: u32, pbstrpath: *mut super::super::Foundation::BSTR, pbstrfilename: *mut super::super::Foundation::BSTR, pbstrrange: *mut super::super::Foundation::BSTR, pbstrmetadata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPartialFile: usize, + pub GetPartialFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ipartialfile: u32, pbstrpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrfilename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrrange: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrmetadata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub IsSelectedForRestore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbselectedforrestore: *mut bool) -> ::windows::core::HRESULT, pub GetAdditionalRestores: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbadditionalrestores: *mut bool) -> ::windows::core::HRESULT, pub GetNewTargetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcnewtarget: *mut u32) -> ::windows::core::HRESULT, pub GetNewTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, inewtarget: u32, ppfiledesc: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub AddDirectedTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszsourcepath: ::windows::core::PCWSTR, wszsourcefilename: ::windows::core::PCWSTR, wszsourcerangelist: ::windows::core::PCWSTR, wszdestinationpath: ::windows::core::PCWSTR, wszdestinationfilename: ::windows::core::PCWSTR, wszdestinationrangelist: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, pub GetDirectedTargetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcdirectedtarget: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetDirectedTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, idirectedtarget: u32, pbstrsourcepath: *mut super::super::Foundation::BSTR, pbstrsourcefilename: *mut super::super::Foundation::BSTR, pbstrsourcerangelist: *mut super::super::Foundation::BSTR, pbstrdestinationpath: *mut super::super::Foundation::BSTR, pbstrdestinationfilename: *mut super::super::Foundation::BSTR, pbstrdestinationrangelist: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDirectedTarget: usize, + pub GetDirectedTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, idirectedtarget: u32, pbstrsourcepath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrsourcefilename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrsourcerangelist: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrdestinationpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrdestinationfilename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrdestinationrangelist: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetRestoreMetadata: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszrestoremetadata: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetRestoreMetadata: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrrestoremetadata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetRestoreMetadata: usize, + pub GetRestoreMetadata: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrrestoremetadata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetRestoreTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, target: VSS_RESTORE_TARGET) -> ::windows::core::HRESULT, pub GetRestoreTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptarget: *mut VSS_RESTORE_TARGET) -> ::windows::core::HRESULT, pub SetPreRestoreFailureMsg: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszprerestorefailuremsg: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetPreRestoreFailureMsg: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprerestorefailuremsg: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPreRestoreFailureMsg: usize, + pub GetPreRestoreFailureMsg: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrprerestorefailuremsg: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetPostRestoreFailureMsg: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszpostrestorefailuremsg: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetPostRestoreFailureMsg: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpostrestorefailuremsg: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPostRestoreFailureMsg: usize, + pub GetPostRestoreFailureMsg: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpostrestorefailuremsg: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetBackupStamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszbackupstamp: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetBackupStamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbackupstamp: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetBackupStamp: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetPreviousBackupStamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbackupstamp: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPreviousBackupStamp: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetBackupOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbackupoptions: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetBackupOptions: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetRestoreOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrrestoreoptions: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetRestoreOptions: usize, + pub GetBackupStamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbackupstamp: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetPreviousBackupStamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbackupstamp: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetBackupOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbackupoptions: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetRestoreOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrrestoreoptions: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetRestoreSubcomponentCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcrestoresubcomponent: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetRestoreSubcomponent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, icomponent: u32, pbstrlogicalpath: *mut super::super::Foundation::BSTR, pbstrcomponentname: *mut super::super::Foundation::BSTR, pbrepair: *mut bool) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetRestoreSubcomponent: usize, + pub GetRestoreSubcomponent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, icomponent: u32, pbstrlogicalpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrcomponentname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbrepair: *mut bool) -> ::windows::core::HRESULT, pub GetFileRestoreStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstatus: *mut VSS_FILE_RESTORE_STATUS) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub AddDifferencedFilesByLastModifyTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszpath: ::windows::core::PCWSTR, wszfilespec: ::windows::core::PCWSTR, brecursive: super::super::Foundation::BOOL, ftlastmodifytime: super::super::Foundation::FILETIME) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] AddDifferencedFilesByLastModifyTime: usize, #[cfg(feature = "Win32_Foundation")] - pub AddDifferencedFilesByLastModifyLSN: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszpath: ::windows::core::PCWSTR, wszfilespec: ::windows::core::PCWSTR, brecursive: super::super::Foundation::BOOL, bstrlsnstring: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub AddDifferencedFilesByLastModifyLSN: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszpath: ::windows::core::PCWSTR, wszfilespec: ::windows::core::PCWSTR, brecursive: super::super::Foundation::BOOL, bstrlsnstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] AddDifferencedFilesByLastModifyLSN: usize, pub GetDifferencedFilesCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcdifferencedfiles: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub GetDifferencedFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, idifferencedfile: u32, pbstrpath: *mut super::super::Foundation::BSTR, pbstrfilespec: *mut super::super::Foundation::BSTR, pbrecursive: *mut super::super::Foundation::BOOL, pbstrlsnstring: *mut super::super::Foundation::BSTR, pftlastmodifytime: *mut super::super::Foundation::FILETIME) -> ::windows::core::HRESULT, + pub GetDifferencedFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, idifferencedfile: u32, pbstrpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrfilespec: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbrecursive: *mut super::super::Foundation::BOOL, pbstrlsnstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pftlastmodifytime: *mut super::super::Foundation::FILETIME) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] GetDifferencedFile: usize, } @@ -537,17 +471,13 @@ pub struct IVssComponent_Vtbl { #[repr(transparent)] pub struct IVssComponentEx(::windows::core::IUnknown); impl IVssComponentEx { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetLogicalPath(&self, pbstrpath: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetLogicalPath(&self, pbstrpath: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetLogicalPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrpath)).ok() } pub unsafe fn GetComponentType(&self, pct: &mut VSS_COMPONENT_TYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetComponentType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pct)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetComponentName(&self, pbstrname: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetComponentName(&self, pbstrname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetComponentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrname)).ok() } pub unsafe fn GetBackupSucceeded(&self, pbsucceeded: &mut bool) -> ::windows::core::Result<()> { @@ -566,9 +496,7 @@ impl IVssComponentEx { { (::windows::core::Interface::vtable(self).base__.SetBackupMetadata)(::windows::core::Interface::as_raw(self), wszdata.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetBackupMetadata(&self, pbstrdata: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetBackupMetadata(&self, pbstrdata: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetBackupMetadata)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrdata)).ok() } pub unsafe fn AddPartialFile<'a, P0, P1, P2, P3>(&self, wszpath: P0, wszfilename: P1, wszranges: P2, wszmetadata: P3) -> ::windows::core::Result<()> @@ -583,9 +511,7 @@ impl IVssComponentEx { pub unsafe fn GetPartialFileCount(&self, pcpartialfiles: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetPartialFileCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pcpartialfiles)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPartialFile(&self, ipartialfile: u32, pbstrpath: &mut super::super::Foundation::BSTR, pbstrfilename: &mut super::super::Foundation::BSTR, pbstrrange: &mut super::super::Foundation::BSTR, pbstrmetadata: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetPartialFile(&self, ipartialfile: u32, pbstrpath: &mut ::windows::core::BSTR, pbstrfilename: &mut ::windows::core::BSTR, pbstrrange: &mut ::windows::core::BSTR, pbstrmetadata: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetPartialFile)(::windows::core::Interface::as_raw(self), ipartialfile, ::core::mem::transmute(pbstrpath), ::core::mem::transmute(pbstrfilename), ::core::mem::transmute(pbstrrange), ::core::mem::transmute(pbstrmetadata)).ok() } pub unsafe fn IsSelectedForRestore(&self, pbselectedforrestore: &mut bool) -> ::windows::core::Result<()> { @@ -615,9 +541,7 @@ impl IVssComponentEx { pub unsafe fn GetDirectedTargetCount(&self, pcdirectedtarget: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetDirectedTargetCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pcdirectedtarget)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDirectedTarget(&self, idirectedtarget: u32, pbstrsourcepath: &mut super::super::Foundation::BSTR, pbstrsourcefilename: &mut super::super::Foundation::BSTR, pbstrsourcerangelist: &mut super::super::Foundation::BSTR, pbstrdestinationpath: &mut super::super::Foundation::BSTR, pbstrdestinationfilename: &mut super::super::Foundation::BSTR, pbstrdestinationrangelist: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetDirectedTarget(&self, idirectedtarget: u32, pbstrsourcepath: &mut ::windows::core::BSTR, pbstrsourcefilename: &mut ::windows::core::BSTR, pbstrsourcerangelist: &mut ::windows::core::BSTR, pbstrdestinationpath: &mut ::windows::core::BSTR, pbstrdestinationfilename: &mut ::windows::core::BSTR, pbstrdestinationrangelist: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetDirectedTarget)(::windows::core::Interface::as_raw(self), idirectedtarget, ::core::mem::transmute(pbstrsourcepath), ::core::mem::transmute(pbstrsourcefilename), ::core::mem::transmute(pbstrsourcerangelist), ::core::mem::transmute(pbstrdestinationpath), ::core::mem::transmute(pbstrdestinationfilename), ::core::mem::transmute(pbstrdestinationrangelist)).ok() } pub unsafe fn SetRestoreMetadata<'a, P0>(&self, wszrestoremetadata: P0) -> ::windows::core::Result<()> @@ -626,9 +550,7 @@ impl IVssComponentEx { { (::windows::core::Interface::vtable(self).base__.SetRestoreMetadata)(::windows::core::Interface::as_raw(self), wszrestoremetadata.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetRestoreMetadata(&self, pbstrrestoremetadata: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetRestoreMetadata(&self, pbstrrestoremetadata: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetRestoreMetadata)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrrestoremetadata)).ok() } pub unsafe fn SetRestoreTarget(&self, target: VSS_RESTORE_TARGET) -> ::windows::core::Result<()> { @@ -643,9 +565,7 @@ impl IVssComponentEx { { (::windows::core::Interface::vtable(self).base__.SetPreRestoreFailureMsg)(::windows::core::Interface::as_raw(self), wszprerestorefailuremsg.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPreRestoreFailureMsg(&self, pbstrprerestorefailuremsg: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetPreRestoreFailureMsg(&self, pbstrprerestorefailuremsg: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetPreRestoreFailureMsg)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrprerestorefailuremsg)).ok() } pub unsafe fn SetPostRestoreFailureMsg<'a, P0>(&self, wszpostrestorefailuremsg: P0) -> ::windows::core::Result<()> @@ -654,9 +574,7 @@ impl IVssComponentEx { { (::windows::core::Interface::vtable(self).base__.SetPostRestoreFailureMsg)(::windows::core::Interface::as_raw(self), wszpostrestorefailuremsg.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPostRestoreFailureMsg(&self, pbstrpostrestorefailuremsg: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetPostRestoreFailureMsg(&self, pbstrpostrestorefailuremsg: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetPostRestoreFailureMsg)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrpostrestorefailuremsg)).ok() } pub unsafe fn SetBackupStamp<'a, P0>(&self, wszbackupstamp: P0) -> ::windows::core::Result<()> @@ -665,32 +583,22 @@ impl IVssComponentEx { { (::windows::core::Interface::vtable(self).base__.SetBackupStamp)(::windows::core::Interface::as_raw(self), wszbackupstamp.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetBackupStamp(&self, pbstrbackupstamp: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetBackupStamp(&self, pbstrbackupstamp: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetBackupStamp)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrbackupstamp)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPreviousBackupStamp(&self, pbstrbackupstamp: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetPreviousBackupStamp(&self, pbstrbackupstamp: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetPreviousBackupStamp)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrbackupstamp)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetBackupOptions(&self, pbstrbackupoptions: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetBackupOptions(&self, pbstrbackupoptions: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetBackupOptions)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrbackupoptions)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetRestoreOptions(&self, pbstrrestoreoptions: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetRestoreOptions(&self, pbstrrestoreoptions: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetRestoreOptions)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrrestoreoptions)).ok() } pub unsafe fn GetRestoreSubcomponentCount(&self, pcrestoresubcomponent: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetRestoreSubcomponentCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pcrestoresubcomponent)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetRestoreSubcomponent(&self, icomponent: u32, pbstrlogicalpath: &mut super::super::Foundation::BSTR, pbstrcomponentname: &mut super::super::Foundation::BSTR, pbrepair: &mut bool) -> ::windows::core::Result<()> { + pub unsafe fn GetRestoreSubcomponent(&self, icomponent: u32, pbstrlogicalpath: &mut ::windows::core::BSTR, pbstrcomponentname: &mut ::windows::core::BSTR, pbrepair: &mut bool) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetRestoreSubcomponent)(::windows::core::Interface::as_raw(self), icomponent, ::core::mem::transmute(pbstrlogicalpath), ::core::mem::transmute(pbstrcomponentname), ::core::mem::transmute(pbrepair)).ok() } pub unsafe fn GetFileRestoreStatus(&self, pstatus: &mut VSS_FILE_RESTORE_STATUS) -> ::windows::core::Result<()> { @@ -708,21 +616,20 @@ impl IVssComponentEx { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddDifferencedFilesByLastModifyLSN<'a, P0, P1, P2, P3>(&self, wszpath: P0, wszfilespec: P1, brecursive: P2, bstrlsnstring: P3) -> ::windows::core::Result<()> + pub unsafe fn AddDifferencedFilesByLastModifyLSN<'a, P0, P1, P2>(&self, wszpath: P0, wszfilespec: P1, brecursive: P2, bstrlsnstring: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into<::windows::core::PCWSTR>, P2: ::std::convert::Into, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.AddDifferencedFilesByLastModifyLSN)(::windows::core::Interface::as_raw(self), wszpath.into(), wszfilespec.into(), brecursive.into(), bstrlsnstring.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AddDifferencedFilesByLastModifyLSN)(::windows::core::Interface::as_raw(self), wszpath.into(), wszfilespec.into(), brecursive.into(), ::core::mem::transmute_copy(bstrlsnstring)).ok() } pub unsafe fn GetDifferencedFilesCount(&self, pcdifferencedfiles: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetDifferencedFilesCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pcdifferencedfiles)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDifferencedFile(&self, idifferencedfile: u32, pbstrpath: &mut super::super::Foundation::BSTR, pbstrfilespec: &mut super::super::Foundation::BSTR, pbrecursive: &mut super::super::Foundation::BOOL, pbstrlsnstring: &mut super::super::Foundation::BSTR, pftlastmodifytime: &mut super::super::Foundation::FILETIME) -> ::windows::core::Result<()> { + pub unsafe fn GetDifferencedFile(&self, idifferencedfile: u32, pbstrpath: &mut ::windows::core::BSTR, pbstrfilespec: &mut ::windows::core::BSTR, pbrecursive: &mut super::super::Foundation::BOOL, pbstrlsnstring: &mut ::windows::core::BSTR, pftlastmodifytime: &mut super::super::Foundation::FILETIME) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetDifferencedFile)(::windows::core::Interface::as_raw(self), idifferencedfile, ::core::mem::transmute(pbstrpath), ::core::mem::transmute(pbstrfilespec), ::core::mem::transmute(pbrecursive), ::core::mem::transmute(pbstrlsnstring), ::core::mem::transmute(pftlastmodifytime)).ok() } pub unsafe fn SetPrepareForBackupFailureMsg<'a, P0>(&self, wszfailuremsg: P0) -> ::windows::core::Result<()> @@ -737,32 +644,24 @@ impl IVssComponentEx { { (::windows::core::Interface::vtable(self).SetPostSnapshotFailureMsg)(::windows::core::Interface::as_raw(self), wszfailuremsg.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPrepareForBackupFailureMsg(&self) -> ::windows::core::Result { + pub unsafe fn GetPrepareForBackupFailureMsg(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetPrepareForBackupFailureMsg)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetPrepareForBackupFailureMsg)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPostSnapshotFailureMsg(&self) -> ::windows::core::Result { + pub unsafe fn GetPostSnapshotFailureMsg(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetPostSnapshotFailureMsg)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetPostSnapshotFailureMsg)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetAuthoritativeRestore(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetAuthoritativeRestore)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetRollForward(&self, prolltype: &mut VSS_ROLLFORWARD_TYPE, pbstrpoint: ::core::option::Option<&mut super::super::Foundation::BSTR>) -> ::windows::core::Result<()> { + pub unsafe fn GetRollForward(&self, prolltype: &mut VSS_ROLLFORWARD_TYPE, pbstrpoint: ::core::option::Option<&mut ::windows::core::BSTR>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetRollForward)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(prolltype), ::core::mem::transmute(pbstrpoint)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetRestoreName(&self) -> ::windows::core::Result { + pub unsafe fn GetRestoreName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetRestoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetRestoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -821,39 +720,23 @@ pub struct IVssComponentEx_Vtbl { pub base__: IVssComponent_Vtbl, pub SetPrepareForBackupFailureMsg: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszfailuremsg: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, pub SetPostSnapshotFailureMsg: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszfailuremsg: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetPrepareForBackupFailureMsg: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfailuremsg: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPrepareForBackupFailureMsg: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetPostSnapshotFailureMsg: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfailuremsg: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPostSnapshotFailureMsg: usize, + pub GetPrepareForBackupFailureMsg: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfailuremsg: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetPostSnapshotFailureMsg: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfailuremsg: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetAuthoritativeRestore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbauth: *mut bool) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetRollForward: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prolltype: *mut VSS_ROLLFORWARD_TYPE, pbstrpoint: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetRollForward: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetRestoreName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetRestoreName: usize, + pub GetRollForward: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prolltype: *mut VSS_ROLLFORWARD_TYPE, pbstrpoint: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetRestoreName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Storage_Vss\"`*"] #[repr(transparent)] pub struct IVssComponentEx2(::windows::core::IUnknown); impl IVssComponentEx2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetLogicalPath(&self, pbstrpath: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetLogicalPath(&self, pbstrpath: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.GetLogicalPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrpath)).ok() } pub unsafe fn GetComponentType(&self, pct: &mut VSS_COMPONENT_TYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.GetComponentType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pct)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetComponentName(&self, pbstrname: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetComponentName(&self, pbstrname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.GetComponentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrname)).ok() } pub unsafe fn GetBackupSucceeded(&self, pbsucceeded: &mut bool) -> ::windows::core::Result<()> { @@ -872,9 +755,7 @@ impl IVssComponentEx2 { { (::windows::core::Interface::vtable(self).base__.base__.SetBackupMetadata)(::windows::core::Interface::as_raw(self), wszdata.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetBackupMetadata(&self, pbstrdata: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetBackupMetadata(&self, pbstrdata: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.GetBackupMetadata)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrdata)).ok() } pub unsafe fn AddPartialFile<'a, P0, P1, P2, P3>(&self, wszpath: P0, wszfilename: P1, wszranges: P2, wszmetadata: P3) -> ::windows::core::Result<()> @@ -889,9 +770,7 @@ impl IVssComponentEx2 { pub unsafe fn GetPartialFileCount(&self, pcpartialfiles: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.GetPartialFileCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pcpartialfiles)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPartialFile(&self, ipartialfile: u32, pbstrpath: &mut super::super::Foundation::BSTR, pbstrfilename: &mut super::super::Foundation::BSTR, pbstrrange: &mut super::super::Foundation::BSTR, pbstrmetadata: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetPartialFile(&self, ipartialfile: u32, pbstrpath: &mut ::windows::core::BSTR, pbstrfilename: &mut ::windows::core::BSTR, pbstrrange: &mut ::windows::core::BSTR, pbstrmetadata: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.GetPartialFile)(::windows::core::Interface::as_raw(self), ipartialfile, ::core::mem::transmute(pbstrpath), ::core::mem::transmute(pbstrfilename), ::core::mem::transmute(pbstrrange), ::core::mem::transmute(pbstrmetadata)).ok() } pub unsafe fn IsSelectedForRestore(&self, pbselectedforrestore: &mut bool) -> ::windows::core::Result<()> { @@ -921,9 +800,7 @@ impl IVssComponentEx2 { pub unsafe fn GetDirectedTargetCount(&self, pcdirectedtarget: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.GetDirectedTargetCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pcdirectedtarget)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDirectedTarget(&self, idirectedtarget: u32, pbstrsourcepath: &mut super::super::Foundation::BSTR, pbstrsourcefilename: &mut super::super::Foundation::BSTR, pbstrsourcerangelist: &mut super::super::Foundation::BSTR, pbstrdestinationpath: &mut super::super::Foundation::BSTR, pbstrdestinationfilename: &mut super::super::Foundation::BSTR, pbstrdestinationrangelist: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetDirectedTarget(&self, idirectedtarget: u32, pbstrsourcepath: &mut ::windows::core::BSTR, pbstrsourcefilename: &mut ::windows::core::BSTR, pbstrsourcerangelist: &mut ::windows::core::BSTR, pbstrdestinationpath: &mut ::windows::core::BSTR, pbstrdestinationfilename: &mut ::windows::core::BSTR, pbstrdestinationrangelist: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.GetDirectedTarget)(::windows::core::Interface::as_raw(self), idirectedtarget, ::core::mem::transmute(pbstrsourcepath), ::core::mem::transmute(pbstrsourcefilename), ::core::mem::transmute(pbstrsourcerangelist), ::core::mem::transmute(pbstrdestinationpath), ::core::mem::transmute(pbstrdestinationfilename), ::core::mem::transmute(pbstrdestinationrangelist)).ok() } pub unsafe fn SetRestoreMetadata<'a, P0>(&self, wszrestoremetadata: P0) -> ::windows::core::Result<()> @@ -932,9 +809,7 @@ impl IVssComponentEx2 { { (::windows::core::Interface::vtable(self).base__.base__.SetRestoreMetadata)(::windows::core::Interface::as_raw(self), wszrestoremetadata.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetRestoreMetadata(&self, pbstrrestoremetadata: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetRestoreMetadata(&self, pbstrrestoremetadata: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.GetRestoreMetadata)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrrestoremetadata)).ok() } pub unsafe fn SetRestoreTarget(&self, target: VSS_RESTORE_TARGET) -> ::windows::core::Result<()> { @@ -949,9 +824,7 @@ impl IVssComponentEx2 { { (::windows::core::Interface::vtable(self).base__.base__.SetPreRestoreFailureMsg)(::windows::core::Interface::as_raw(self), wszprerestorefailuremsg.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPreRestoreFailureMsg(&self, pbstrprerestorefailuremsg: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetPreRestoreFailureMsg(&self, pbstrprerestorefailuremsg: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.GetPreRestoreFailureMsg)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrprerestorefailuremsg)).ok() } pub unsafe fn SetPostRestoreFailureMsg<'a, P0>(&self, wszpostrestorefailuremsg: P0) -> ::windows::core::Result<()> @@ -960,9 +833,7 @@ impl IVssComponentEx2 { { (::windows::core::Interface::vtable(self).base__.base__.SetPostRestoreFailureMsg)(::windows::core::Interface::as_raw(self), wszpostrestorefailuremsg.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPostRestoreFailureMsg(&self, pbstrpostrestorefailuremsg: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetPostRestoreFailureMsg(&self, pbstrpostrestorefailuremsg: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.GetPostRestoreFailureMsg)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrpostrestorefailuremsg)).ok() } pub unsafe fn SetBackupStamp<'a, P0>(&self, wszbackupstamp: P0) -> ::windows::core::Result<()> @@ -971,32 +842,22 @@ impl IVssComponentEx2 { { (::windows::core::Interface::vtable(self).base__.base__.SetBackupStamp)(::windows::core::Interface::as_raw(self), wszbackupstamp.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetBackupStamp(&self, pbstrbackupstamp: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetBackupStamp(&self, pbstrbackupstamp: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.GetBackupStamp)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrbackupstamp)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPreviousBackupStamp(&self, pbstrbackupstamp: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetPreviousBackupStamp(&self, pbstrbackupstamp: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.GetPreviousBackupStamp)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrbackupstamp)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetBackupOptions(&self, pbstrbackupoptions: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetBackupOptions(&self, pbstrbackupoptions: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.GetBackupOptions)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrbackupoptions)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetRestoreOptions(&self, pbstrrestoreoptions: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetRestoreOptions(&self, pbstrrestoreoptions: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.GetRestoreOptions)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrrestoreoptions)).ok() } pub unsafe fn GetRestoreSubcomponentCount(&self, pcrestoresubcomponent: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.GetRestoreSubcomponentCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pcrestoresubcomponent)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetRestoreSubcomponent(&self, icomponent: u32, pbstrlogicalpath: &mut super::super::Foundation::BSTR, pbstrcomponentname: &mut super::super::Foundation::BSTR, pbrepair: &mut bool) -> ::windows::core::Result<()> { + pub unsafe fn GetRestoreSubcomponent(&self, icomponent: u32, pbstrlogicalpath: &mut ::windows::core::BSTR, pbstrcomponentname: &mut ::windows::core::BSTR, pbrepair: &mut bool) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.GetRestoreSubcomponent)(::windows::core::Interface::as_raw(self), icomponent, ::core::mem::transmute(pbstrlogicalpath), ::core::mem::transmute(pbstrcomponentname), ::core::mem::transmute(pbrepair)).ok() } pub unsafe fn GetFileRestoreStatus(&self, pstatus: &mut VSS_FILE_RESTORE_STATUS) -> ::windows::core::Result<()> { @@ -1014,21 +875,20 @@ impl IVssComponentEx2 { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddDifferencedFilesByLastModifyLSN<'a, P0, P1, P2, P3>(&self, wszpath: P0, wszfilespec: P1, brecursive: P2, bstrlsnstring: P3) -> ::windows::core::Result<()> + pub unsafe fn AddDifferencedFilesByLastModifyLSN<'a, P0, P1, P2>(&self, wszpath: P0, wszfilespec: P1, brecursive: P2, bstrlsnstring: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into<::windows::core::PCWSTR>, P2: ::std::convert::Into, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.base__.AddDifferencedFilesByLastModifyLSN)(::windows::core::Interface::as_raw(self), wszpath.into(), wszfilespec.into(), brecursive.into(), bstrlsnstring.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.AddDifferencedFilesByLastModifyLSN)(::windows::core::Interface::as_raw(self), wszpath.into(), wszfilespec.into(), brecursive.into(), ::core::mem::transmute_copy(bstrlsnstring)).ok() } pub unsafe fn GetDifferencedFilesCount(&self, pcdifferencedfiles: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.GetDifferencedFilesCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pcdifferencedfiles)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDifferencedFile(&self, idifferencedfile: u32, pbstrpath: &mut super::super::Foundation::BSTR, pbstrfilespec: &mut super::super::Foundation::BSTR, pbrecursive: &mut super::super::Foundation::BOOL, pbstrlsnstring: &mut super::super::Foundation::BSTR, pftlastmodifytime: &mut super::super::Foundation::FILETIME) -> ::windows::core::Result<()> { + pub unsafe fn GetDifferencedFile(&self, idifferencedfile: u32, pbstrpath: &mut ::windows::core::BSTR, pbstrfilespec: &mut ::windows::core::BSTR, pbrecursive: &mut super::super::Foundation::BOOL, pbstrlsnstring: &mut ::windows::core::BSTR, pftlastmodifytime: &mut super::super::Foundation::FILETIME) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.GetDifferencedFile)(::windows::core::Interface::as_raw(self), idifferencedfile, ::core::mem::transmute(pbstrpath), ::core::mem::transmute(pbstrfilespec), ::core::mem::transmute(pbrecursive), ::core::mem::transmute(pbstrlsnstring), ::core::mem::transmute(pftlastmodifytime)).ok() } pub unsafe fn SetPrepareForBackupFailureMsg<'a, P0>(&self, wszfailuremsg: P0) -> ::windows::core::Result<()> @@ -1043,32 +903,24 @@ impl IVssComponentEx2 { { (::windows::core::Interface::vtable(self).base__.SetPostSnapshotFailureMsg)(::windows::core::Interface::as_raw(self), wszfailuremsg.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPrepareForBackupFailureMsg(&self) -> ::windows::core::Result { + pub unsafe fn GetPrepareForBackupFailureMsg(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetPrepareForBackupFailureMsg)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetPrepareForBackupFailureMsg)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPostSnapshotFailureMsg(&self) -> ::windows::core::Result { + pub unsafe fn GetPostSnapshotFailureMsg(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetPostSnapshotFailureMsg)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetPostSnapshotFailureMsg)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetAuthoritativeRestore(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetAuthoritativeRestore)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetRollForward(&self, prolltype: &mut VSS_ROLLFORWARD_TYPE, pbstrpoint: ::core::option::Option<&mut super::super::Foundation::BSTR>) -> ::windows::core::Result<()> { + pub unsafe fn GetRollForward(&self, prolltype: &mut VSS_ROLLFORWARD_TYPE, pbstrpoint: ::core::option::Option<&mut ::windows::core::BSTR>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetRollForward)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(prolltype), ::core::mem::transmute(pbstrpoint)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetRestoreName(&self) -> ::windows::core::Result { + pub unsafe fn GetRestoreName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetRestoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetRestoreName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetFailure<'a, P0>(&self, hr: ::windows::core::HRESULT, hrapplication: ::windows::core::HRESULT, wszapplicationmessage: P0, dwreserved: u32) -> ::windows::core::Result<()> where @@ -1076,9 +928,7 @@ impl IVssComponentEx2 { { (::windows::core::Interface::vtable(self).SetFailure)(::windows::core::Interface::as_raw(self), hr, hrapplication, wszapplicationmessage.into(), dwreserved).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetFailure(&self, phr: &mut ::windows::core::HRESULT, phrapplication: &mut ::windows::core::HRESULT, pbstrapplicationmessage: &mut super::super::Foundation::BSTR, pdwreserved: &mut u32) -> ::windows::core::Result<()> { + pub unsafe fn GetFailure(&self, phr: &mut ::windows::core::HRESULT, phrapplication: &mut ::windows::core::HRESULT, pbstrapplicationmessage: &mut ::windows::core::BSTR, pdwreserved: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetFailure)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(phr), ::core::mem::transmute(phrapplication), ::core::mem::transmute(pbstrapplicationmessage), ::core::mem::transmute(pdwreserved)).ok() } } @@ -1152,10 +1002,7 @@ unsafe impl ::windows::core::Interface for IVssComponentEx2 { pub struct IVssComponentEx2_Vtbl { pub base__: IVssComponentEx_Vtbl, pub SetFailure: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hr: ::windows::core::HRESULT, hrapplication: ::windows::core::HRESULT, wszapplicationmessage: ::windows::core::PCWSTR, dwreserved: u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetFailure: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phr: *mut ::windows::core::HRESULT, phrapplication: *mut ::windows::core::HRESULT, pbstrapplicationmessage: *mut super::super::Foundation::BSTR, pdwreserved: *mut u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetFailure: usize, + pub GetFailure: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phr: *mut ::windows::core::HRESULT, phrapplication: *mut ::windows::core::HRESULT, pbstrapplicationmessage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwreserved: *mut u32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Storage_Vss\"`*"] #[repr(transparent)] @@ -1205,11 +1052,9 @@ impl IVssCreateExpressWriterMetadata { pub unsafe fn SetBackupSchema(&self, dwschemamask: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetBackupSchema)(::windows::core::Interface::as_raw(self), dwschemamask).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SaveAsXML(&self) -> ::windows::core::Result { + pub unsafe fn SaveAsXML(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SaveAsXML)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SaveAsXML)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -1257,10 +1102,7 @@ pub struct IVssCreateExpressWriterMetadata_Vtbl { pub SetRestoreMethod: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, method: VSS_RESTOREMETHOD_ENUM, wszservice: ::windows::core::PCWSTR, wszuserprocedure: ::windows::core::PCWSTR, writerrestore: VSS_WRITERRESTORE_ENUM, brebootrequired: u8) -> ::windows::core::HRESULT, pub AddComponentDependency: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszforlogicalpath: ::windows::core::PCWSTR, wszforcomponentname: ::windows::core::PCWSTR, onwriterid: ::windows::core::GUID, wszonlogicalpath: ::windows::core::PCWSTR, wszoncomponentname: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, pub SetBackupSchema: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwschemamask: u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SaveAsXML: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrxml: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SaveAsXML: usize, + pub SaveAsXML: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrxml: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Storage_Vss\"`*"] #[repr(transparent)] @@ -1350,9 +1192,7 @@ impl IVssCreateWriterMetadata { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetDocument)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SaveAsXML(&self, pbstrxml: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn SaveAsXML(&self, pbstrxml: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SaveAsXML)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrxml)).ok() } } @@ -1393,10 +1233,7 @@ pub struct IVssCreateWriterMetadata_Vtbl { pub GetDocument: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdoc: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com")))] GetDocument: usize, - #[cfg(feature = "Win32_Foundation")] - pub SaveAsXML: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrxml: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SaveAsXML: usize, + pub SaveAsXML: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrxml: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Storage_Vss\"`*"] #[repr(transparent)] @@ -2606,14 +2443,10 @@ impl IVssWMDependency { pub unsafe fn GetWriterId(&self, pwriterid: &mut ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetWriterId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pwriterid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetLogicalPath(&self, pbstrlogicalpath: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetLogicalPath(&self, pbstrlogicalpath: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetLogicalPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrlogicalpath)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetComponentName(&self, pbstrcomponentname: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetComponentName(&self, pbstrcomponentname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetComponentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrcomponentname)).ok() } } @@ -2657,40 +2490,28 @@ unsafe impl ::windows::core::Interface for IVssWMDependency { pub struct IVssWMDependency_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub GetWriterId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwriterid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetLogicalPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrlogicalpath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetLogicalPath: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetComponentName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcomponentname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetComponentName: usize, + pub GetLogicalPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrlogicalpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetComponentName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcomponentname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Storage_Vss\"`*"] #[repr(transparent)] pub struct IVssWMFiledesc(::windows::core::IUnknown); impl IVssWMFiledesc { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPath(&self) -> ::windows::core::Result { + pub unsafe fn GetPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetFilespec(&self) -> ::windows::core::Result { + pub unsafe fn GetFilespec(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetFilespec)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetFilespec)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetRecursive(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetRecursive)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetAlternateLocation(&self) -> ::windows::core::Result { + pub unsafe fn GetAlternateLocation(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetAlternateLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetAlternateLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetBackupTypeMask(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2736,19 +2557,10 @@ unsafe impl ::windows::core::Interface for IVssWMFiledesc { #[doc(hidden)] pub struct IVssWMFiledesc_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPath: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetFilespec: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfilespec: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetFilespec: usize, + pub GetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetFilespec: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfilespec: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetRecursive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbrecursive: *mut bool) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetAlternateLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstralternatelocation: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetAlternateLocation: usize, + pub GetAlternateLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstralternatelocation: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetBackupTypeMask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwtypemask: *mut u32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_Storage_Vss\"`*"] diff --git a/crates/libs/windows/src/Windows/Win32/System/ApplicationInstallationAndServicing/impl.rs b/crates/libs/windows/src/Windows/Win32/System/ApplicationInstallationAndServicing/impl.rs index 72e015bf0e..8b43963858 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ApplicationInstallationAndServicing/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ApplicationInstallationAndServicing/impl.rs @@ -271,19 +271,16 @@ impl IEnumMsmError_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IEnumMsmString_Impl: Sized { - fn Next(&self, cfetch: u32, rgbstrstrings: *mut super::super::Foundation::BSTR, pcfetched: *mut u32) -> ::windows::core::Result<()>; + fn Next(&self, cfetch: u32, rgbstrstrings: *mut ::windows::core::BSTR, pcfetched: *mut u32) -> ::windows::core::Result<()>; fn Skip(&self, cskip: u32) -> ::windows::core::Result<()>; fn Reset(&self) -> ::windows::core::Result<()>; fn Clone(&self) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IEnumMsmString {} -#[cfg(feature = "Win32_Foundation")] impl IEnumMsmString_Vtbl { pub const fn new, Impl: IEnumMsmString_Impl, const OFFSET: isize>() -> IEnumMsmString_Vtbl { - unsafe extern "system" fn Next, Impl: IEnumMsmString_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, cfetch: u32, rgbstrstrings: *mut super::super::Foundation::BSTR, pcfetched: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn Next, Impl: IEnumMsmString_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, cfetch: u32, rgbstrstrings: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcfetched: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Next(::core::mem::transmute_copy(&cfetch), ::core::mem::transmute_copy(&rgbstrstrings), ::core::mem::transmute_copy(&pcfetched)).into() @@ -372,16 +369,16 @@ impl IMsmDependencies_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IMsmDependency_Impl: Sized + super::Com::IDispatch_Impl { - fn Module(&self, module: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Module(&self, module: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn Language(&self, language: *mut i16) -> ::windows::core::Result<()>; - fn Version(&self, version: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Version(&self, version: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IMsmDependency {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IMsmDependency_Vtbl { pub const fn new, Impl: IMsmDependency_Impl, const OFFSET: isize>() -> IMsmDependency_Vtbl { - unsafe extern "system" fn Module, Impl: IMsmDependency_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, module: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Module, Impl: IMsmDependency_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, module: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Module(::core::mem::transmute_copy(&module)).into() @@ -391,7 +388,7 @@ impl IMsmDependency_Vtbl { let this = (*this).get_impl(); this.Language(::core::mem::transmute_copy(&language)).into() } - unsafe extern "system" fn Version, Impl: IMsmDependency_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, version: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Version, Impl: IMsmDependency_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, version: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Version(::core::mem::transmute_copy(&version)).into() @@ -410,11 +407,11 @@ impl IMsmDependency_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IMsmError_Impl: Sized + super::Com::IDispatch_Impl { fn Type(&self, errortype: *mut msmErrorType) -> ::windows::core::Result<()>; - fn Path(&self, errorpath: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Path(&self, errorpath: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn Language(&self, errorlanguage: *mut i16) -> ::windows::core::Result<()>; - fn DatabaseTable(&self, errortable: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn DatabaseTable(&self, errortable: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn DatabaseKeys(&self) -> ::windows::core::Result; - fn ModuleTable(&self, errortable: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ModuleTable(&self, errortable: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn ModuleKeys(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -427,7 +424,7 @@ impl IMsmError_Vtbl { let this = (*this).get_impl(); this.Type(::core::mem::transmute_copy(&errortype)).into() } - unsafe extern "system" fn Path, Impl: IMsmError_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, errorpath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Path, Impl: IMsmError_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, errorpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Path(::core::mem::transmute_copy(&errorpath)).into() @@ -437,7 +434,7 @@ impl IMsmError_Vtbl { let this = (*this).get_impl(); this.Language(::core::mem::transmute_copy(&errorlanguage)).into() } - unsafe extern "system" fn DatabaseTable, Impl: IMsmError_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, errortable: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DatabaseTable, Impl: IMsmError_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, errortable: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DatabaseTable(::core::mem::transmute_copy(&errortable)).into() @@ -453,7 +450,7 @@ impl IMsmError_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ModuleTable, Impl: IMsmError_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, errortable: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ModuleTable, Impl: IMsmError_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, errortable: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ModuleTable(::core::mem::transmute_copy(&errortable)).into() @@ -561,31 +558,31 @@ impl IMsmGetFiles_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IMsmMerge_Impl: Sized + super::Com::IDispatch_Impl { - fn OpenDatabase(&self, path: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn OpenModule(&self, path: &super::super::Foundation::BSTR, language: i16) -> ::windows::core::Result<()>; + fn OpenDatabase(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn OpenModule(&self, path: &::windows::core::BSTR, language: i16) -> ::windows::core::Result<()>; fn CloseDatabase(&self, commit: i16) -> ::windows::core::Result<()>; fn CloseModule(&self) -> ::windows::core::Result<()>; - fn OpenLog(&self, path: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn OpenLog(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn CloseLog(&self) -> ::windows::core::Result<()>; - fn Log(&self, message: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Log(&self, message: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Errors(&self) -> ::windows::core::Result; fn Dependencies(&self) -> ::windows::core::Result; - fn Merge(&self, feature: &super::super::Foundation::BSTR, redirectdir: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Connect(&self, feature: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ExtractCAB(&self, filename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ExtractFiles(&self, path: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Merge(&self, feature: &::windows::core::BSTR, redirectdir: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Connect(&self, feature: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ExtractCAB(&self, filename: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ExtractFiles(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IMsmMerge {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IMsmMerge_Vtbl { pub const fn new, Impl: IMsmMerge_Impl, const OFFSET: isize>() -> IMsmMerge_Vtbl { - unsafe extern "system" fn OpenDatabase, Impl: IMsmMerge_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn OpenDatabase, Impl: IMsmMerge_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OpenDatabase(::core::mem::transmute(&path)).into() } - unsafe extern "system" fn OpenModule, Impl: IMsmMerge_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, language: i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn OpenModule, Impl: IMsmMerge_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, language: i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OpenModule(::core::mem::transmute(&path), ::core::mem::transmute_copy(&language)).into() @@ -600,7 +597,7 @@ impl IMsmMerge_Vtbl { let this = (*this).get_impl(); this.CloseModule().into() } - unsafe extern "system" fn OpenLog, Impl: IMsmMerge_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn OpenLog, Impl: IMsmMerge_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OpenLog(::core::mem::transmute(&path)).into() @@ -610,7 +607,7 @@ impl IMsmMerge_Vtbl { let this = (*this).get_impl(); this.CloseLog().into() } - unsafe extern "system" fn Log, Impl: IMsmMerge_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, message: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Log, Impl: IMsmMerge_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, message: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Log(::core::mem::transmute(&message)).into() @@ -637,22 +634,22 @@ impl IMsmMerge_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Merge, Impl: IMsmMerge_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feature: ::core::mem::ManuallyDrop, redirectdir: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Merge, Impl: IMsmMerge_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feature: ::core::mem::ManuallyDrop<::windows::core::BSTR>, redirectdir: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Merge(::core::mem::transmute(&feature), ::core::mem::transmute(&redirectdir)).into() } - unsafe extern "system" fn Connect, Impl: IMsmMerge_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feature: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Connect, Impl: IMsmMerge_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, feature: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Connect(::core::mem::transmute(&feature)).into() } - unsafe extern "system" fn ExtractCAB, Impl: IMsmMerge_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExtractCAB, Impl: IMsmMerge_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ExtractCAB(::core::mem::transmute(&filename)).into() } - unsafe extern "system" fn ExtractFiles, Impl: IMsmMerge_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExtractFiles, Impl: IMsmMerge_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ExtractFiles(::core::mem::transmute(&path)).into() @@ -680,7 +677,7 @@ impl IMsmMerge_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IMsmStrings_Impl: Sized + super::Com::IDispatch_Impl { - fn get_Item(&self, item: i32, r#return: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn get_Item(&self, item: i32, r#return: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn Count(&self, count: *mut i32) -> ::windows::core::Result<()>; fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; } @@ -689,7 +686,7 @@ impl ::windows::core::RuntimeName for IMsmStrings {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IMsmStrings_Vtbl { pub const fn new, Impl: IMsmStrings_Impl, const OFFSET: isize>() -> IMsmStrings_Vtbl { - unsafe extern "system" fn get_Item, Impl: IMsmStrings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, item: i32, r#return: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Item, Impl: IMsmStrings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, item: i32, r#return: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_Item(::core::mem::transmute_copy(&item), ::core::mem::transmute_copy(&r#return)).into() @@ -726,9 +723,9 @@ pub trait IPMApplicationInfo_Impl: Sized { fn ProductID(&self) -> ::windows::core::Result<::windows::core::GUID>; fn InstanceID(&self) -> ::windows::core::Result<::windows::core::GUID>; fn OfferID(&self) -> ::windows::core::Result<::windows::core::GUID>; - fn DefaultTask(&self, pdefaulttask: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn AppTitle(&self, papptitle: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn IconPath(&self, pappiconpath: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn DefaultTask(&self, pdefaulttask: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn AppTitle(&self, papptitle: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn IconPath(&self, pappiconpath: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn NotificationState(&self) -> ::windows::core::Result; fn AppInstallType(&self) -> ::windows::core::Result; fn State(&self) -> ::windows::core::Result; @@ -738,24 +735,24 @@ pub trait IPMApplicationInfo_Impl: Sized { fn IsUninstallable(&self) -> ::windows::core::Result; fn IsThemable(&self) -> ::windows::core::Result; fn IsTrial(&self) -> ::windows::core::Result; - fn InstallPath(&self, pinstallpath: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn DataRoot(&self, pdataroot: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn InstallPath(&self, pinstallpath: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn DataRoot(&self, pdataroot: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn Genre(&self) -> ::windows::core::Result; - fn Publisher(&self, ppublisher: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Author(&self, pauthor: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Description(&self, pdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Version(&self, pversion: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn get_InvocationInfo(&self, pimageurn: *mut super::super::Foundation::BSTR, pparameters: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Publisher(&self, ppublisher: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Author(&self, pauthor: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Description(&self, pdescription: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Version(&self, pversion: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn get_InvocationInfo(&self, pimageurn: *mut ::windows::core::BSTR, pparameters: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn AppPlatMajorVersion(&self) -> ::windows::core::Result; fn AppPlatMinorVersion(&self) -> ::windows::core::Result; fn PublisherID(&self) -> ::windows::core::Result<::windows::core::GUID>; fn IsMultiCore(&self) -> ::windows::core::Result; - fn SID(&self, psid: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SID(&self, psid: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn AppPlatMajorVersionLightUp(&self) -> ::windows::core::Result; fn AppPlatMinorVersionLightUp(&self) -> ::windows::core::Result; fn set_UpdateAvailable(&self, isupdateavailable: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn set_NotificationState(&self, isnotified: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; - fn set_IconPath(&self, appiconpath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn set_IconPath(&self, appiconpath: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn set_UninstallableState(&self, isuninstallable: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn IsPinableOnKidZone(&self) -> ::windows::core::Result; fn IsOriginallyPreInstalled(&self) -> ::windows::core::Result; @@ -777,7 +774,7 @@ pub trait IPMApplicationInfo_Impl: Sized { fn ShouldDeferMdilBind(&self) -> ::windows::core::Result; fn IsFullyPreInstall(&self) -> ::windows::core::Result; fn set_IsMdilMaintenanceNeeded(&self, fismdilmaintenanceneeded: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; - fn set_Title(&self, apptitle: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn set_Title(&self, apptitle: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IPMApplicationInfo {} @@ -817,17 +814,17 @@ impl IPMApplicationInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DefaultTask, Impl: IPMApplicationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdefaulttask: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DefaultTask, Impl: IPMApplicationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdefaulttask: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DefaultTask(::core::mem::transmute_copy(&pdefaulttask)).into() } - unsafe extern "system" fn AppTitle, Impl: IPMApplicationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, papptitle: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn AppTitle, Impl: IPMApplicationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, papptitle: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AppTitle(::core::mem::transmute_copy(&papptitle)).into() } - unsafe extern "system" fn IconPath, Impl: IPMApplicationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pappiconpath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn IconPath, Impl: IPMApplicationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pappiconpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.IconPath(::core::mem::transmute_copy(&pappiconpath)).into() @@ -931,12 +928,12 @@ impl IPMApplicationInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn InstallPath, Impl: IPMApplicationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pinstallpath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn InstallPath, Impl: IPMApplicationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pinstallpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InstallPath(::core::mem::transmute_copy(&pinstallpath)).into() } - unsafe extern "system" fn DataRoot, Impl: IPMApplicationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdataroot: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DataRoot, Impl: IPMApplicationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdataroot: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DataRoot(::core::mem::transmute_copy(&pdataroot)).into() @@ -952,27 +949,27 @@ impl IPMApplicationInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Publisher, Impl: IPMApplicationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppublisher: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Publisher, Impl: IPMApplicationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppublisher: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Publisher(::core::mem::transmute_copy(&ppublisher)).into() } - unsafe extern "system" fn Author, Impl: IPMApplicationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pauthor: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Author, Impl: IPMApplicationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pauthor: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Author(::core::mem::transmute_copy(&pauthor)).into() } - unsafe extern "system" fn Description, Impl: IPMApplicationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IPMApplicationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Description(::core::mem::transmute_copy(&pdescription)).into() } - unsafe extern "system" fn Version, Impl: IPMApplicationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pversion: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Version, Impl: IPMApplicationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pversion: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Version(::core::mem::transmute_copy(&pversion)).into() } - unsafe extern "system" fn get_InvocationInfo, Impl: IPMApplicationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pimageurn: *mut super::super::Foundation::BSTR, pparameters: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_InvocationInfo, Impl: IPMApplicationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pimageurn: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pparameters: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_InvocationInfo(::core::mem::transmute_copy(&pimageurn), ::core::mem::transmute_copy(&pparameters)).into() @@ -1021,7 +1018,7 @@ impl IPMApplicationInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SID, Impl: IPMApplicationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, psid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SID, Impl: IPMApplicationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, psid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SID(::core::mem::transmute_copy(&psid)).into() @@ -1058,7 +1055,7 @@ impl IPMApplicationInfo_Vtbl { let this = (*this).get_impl(); this.set_NotificationState(::core::mem::transmute_copy(&isnotified)).into() } - unsafe extern "system" fn set_IconPath, Impl: IPMApplicationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, appiconpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn set_IconPath, Impl: IPMApplicationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, appiconpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.set_IconPath(::core::mem::transmute(&appiconpath)).into() @@ -1264,7 +1261,7 @@ impl IPMApplicationInfo_Vtbl { let this = (*this).get_impl(); this.set_IsMdilMaintenanceNeeded(::core::mem::transmute_copy(&fismdilmaintenanceneeded)).into() } - unsafe extern "system" fn set_Title, Impl: IPMApplicationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, apptitle: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn set_Title, Impl: IPMApplicationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, apptitle: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.set_Title(::core::mem::transmute(&apptitle)).into() @@ -1358,16 +1355,16 @@ impl IPMApplicationInfoEnumerator_Vtbl { #[cfg(feature = "Win32_Foundation")] pub trait IPMBackgroundServiceAgentInfo_Impl: Sized { fn ProductID(&self) -> ::windows::core::Result<::windows::core::GUID>; - fn TaskID(&self, ptaskid: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn TaskID(&self, ptaskid: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn BSAID(&self) -> ::windows::core::Result; - fn BGSpecifier(&self, pbgspecifier: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn BGName(&self, pbgname: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn BGSource(&self, pbgsource: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn BGType(&self, pbgtype: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn BGSpecifier(&self, pbgspecifier: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn BGName(&self, pbgname: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn BGSource(&self, pbgsource: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn BGType(&self, pbgtype: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn IsPeriodic(&self) -> ::windows::core::Result; fn IsScheduled(&self) -> ::windows::core::Result; fn IsScheduleAllowed(&self) -> ::windows::core::Result; - fn Description(&self, pdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Description(&self, pdescription: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn IsLaunchOnBoot(&self) -> ::windows::core::Result; fn set_IsScheduled(&self, isscheduled: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn set_IsScheduleAllowed(&self, isscheduleallowed: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; @@ -1388,7 +1385,7 @@ impl IPMBackgroundServiceAgentInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn TaskID, Impl: IPMBackgroundServiceAgentInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ptaskid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TaskID, Impl: IPMBackgroundServiceAgentInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ptaskid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.TaskID(::core::mem::transmute_copy(&ptaskid)).into() @@ -1404,22 +1401,22 @@ impl IPMBackgroundServiceAgentInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn BGSpecifier, Impl: IPMBackgroundServiceAgentInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbgspecifier: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn BGSpecifier, Impl: IPMBackgroundServiceAgentInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbgspecifier: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.BGSpecifier(::core::mem::transmute_copy(&pbgspecifier)).into() } - unsafe extern "system" fn BGName, Impl: IPMBackgroundServiceAgentInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbgname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn BGName, Impl: IPMBackgroundServiceAgentInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbgname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.BGName(::core::mem::transmute_copy(&pbgname)).into() } - unsafe extern "system" fn BGSource, Impl: IPMBackgroundServiceAgentInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbgsource: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn BGSource, Impl: IPMBackgroundServiceAgentInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbgsource: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.BGSource(::core::mem::transmute_copy(&pbgsource)).into() } - unsafe extern "system" fn BGType, Impl: IPMBackgroundServiceAgentInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbgtype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn BGType, Impl: IPMBackgroundServiceAgentInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbgtype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.BGType(::core::mem::transmute_copy(&pbgtype)).into() @@ -1457,7 +1454,7 @@ impl IPMBackgroundServiceAgentInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Description, Impl: IPMBackgroundServiceAgentInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IPMBackgroundServiceAgentInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Description(::core::mem::transmute_copy(&pdescription)).into() @@ -1531,8 +1528,8 @@ impl IPMBackgroundServiceAgentInfoEnumerator_Vtbl { #[cfg(feature = "Win32_Foundation")] pub trait IPMBackgroundWorkerInfo_Impl: Sized { fn ProductID(&self) -> ::windows::core::Result<::windows::core::GUID>; - fn TaskID(&self, ptaskid: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn BGName(&self, pbgname: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn TaskID(&self, ptaskid: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn BGName(&self, pbgname: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn MaxStartupLatency(&self) -> ::windows::core::Result; fn ExpectedRuntime(&self) -> ::windows::core::Result; fn IsBootWorker(&self) -> ::windows::core::Result; @@ -1553,12 +1550,12 @@ impl IPMBackgroundWorkerInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn TaskID, Impl: IPMBackgroundWorkerInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ptaskid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TaskID, Impl: IPMBackgroundWorkerInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ptaskid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.TaskID(::core::mem::transmute_copy(&ptaskid)).into() } - unsafe extern "system" fn BGName, Impl: IPMBackgroundWorkerInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbgname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn BGName, Impl: IPMBackgroundWorkerInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbgname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.BGName(::core::mem::transmute_copy(&pbgname)).into() @@ -1646,7 +1643,7 @@ pub trait IPMDeploymentManager_Impl: Sized { fn BeginEnterpriseAppInstall(&self, pinstallinfo: *const PM_INSTALLINFO) -> ::windows::core::Result<()>; fn BeginEnterpriseAppUpdate(&self, pupdateinfo: *const PM_UPDATEINFO) -> ::windows::core::Result<()>; fn BeginUpdateLicense(&self, productid: &::windows::core::GUID, offerid: &::windows::core::GUID, pblicense: *const u8, cblicense: u32) -> ::windows::core::Result<()>; - fn GetLicenseChallenge(&self, packagepath: &super::super::Foundation::BSTR, ppbchallenge: *mut *mut u8, pcbchallenge: *mut u32, ppbkid: *mut *mut u8, pcbkid: *mut u32, ppbdeviceid: *mut *mut u8, pcbdeviceid: *mut u32, ppbsaltvalue: *mut *mut u8, pcbsaltvalue: *mut u32, ppbkgvvalue: *mut *mut u8, pcbkgvvalue: *mut u32) -> ::windows::core::Result<()>; + fn GetLicenseChallenge(&self, packagepath: &::windows::core::BSTR, ppbchallenge: *mut *mut u8, pcbchallenge: *mut u32, ppbkid: *mut *mut u8, pcbkid: *mut u32, ppbdeviceid: *mut *mut u8, pcbdeviceid: *mut u32, ppbsaltvalue: *mut *mut u8, pcbsaltvalue: *mut u32, ppbkgvvalue: *mut *mut u8, pcbkgvvalue: *mut u32) -> ::windows::core::Result<()>; fn GetLicenseChallengeByProductID(&self, productid: &::windows::core::GUID, ppbchallenge: *mut *mut u8, pcblicense: *mut u32) -> ::windows::core::Result<()>; fn GetLicenseChallengeByProductID2(&self, productid: &::windows::core::GUID, ppbchallenge: *mut *mut u8, pcblicense: *mut u32, ppbkid: *mut *mut u8, pcbkid: *mut u32, ppbdeviceid: *mut *mut u8, pcbdeviceid: *mut u32, ppbsaltvalue: *mut *mut u8, pcbsaltvalue: *mut u32, ppbkgvvalue: *mut *mut u8, pcbkgvvalue: *mut u32) -> ::windows::core::Result<()>; fn RevokeLicense(&self, productid: &::windows::core::GUID) -> ::windows::core::Result<()>; @@ -1654,7 +1651,7 @@ pub trait IPMDeploymentManager_Impl: Sized { fn RebindAllMdilBinaries(&self, productid: &::windows::core::GUID, instanceid: &::windows::core::GUID) -> ::windows::core::Result<()>; fn RegenerateXbf(&self, productid: &::windows::core::GUID, assemblypaths: *const super::Com::SAFEARRAY) -> ::windows::core::Result<()>; fn GenerateXbfForCurrentLocale(&self, productid: &::windows::core::GUID) -> ::windows::core::Result<()>; - fn BeginProvision(&self, productid: &::windows::core::GUID, xmlpath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn BeginProvision(&self, productid: &::windows::core::GUID, xmlpath: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn BeginDeprovision(&self, productid: &::windows::core::GUID) -> ::windows::core::Result<()>; fn ReindexSQLCEDatabases(&self, productid: &::windows::core::GUID) -> ::windows::core::Result<()>; fn SetApplicationsNeedMaintenance(&self, requiredmaintenanceoperations: u32) -> ::windows::core::Result; @@ -1662,12 +1659,12 @@ pub trait IPMDeploymentManager_Impl: Sized { fn EnterprisePolicyIsApplicationAllowed(&self, productid: &::windows::core::GUID, publishername: &::windows::core::PCWSTR) -> ::windows::core::Result; fn BeginUpdateDeployedPackage(&self, pupdateinfo: *const PM_UPDATEINFO) -> ::windows::core::Result<()>; fn ReportRestoreCancelled(&self, productid: &::windows::core::GUID) -> ::windows::core::Result<()>; - fn ResolveResourceString(&self, resourcestring: &::windows::core::PCWSTR, presolvedresourcestring: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ResolveResourceString(&self, resourcestring: &::windows::core::PCWSTR, presolvedresourcestring: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn UpdateCapabilitiesForModernApps(&self) -> ::windows::core::Result<()>; fn ReportDownloadStatusUpdate(&self, productid: &::windows::core::GUID) -> ::windows::core::Result<()>; fn BeginUninstallWithOptions(&self, productid: &::windows::core::GUID, removaloptions: u32) -> ::windows::core::Result<()>; fn BindDeferredMdilBinaries(&self) -> ::windows::core::Result<()>; - fn GenerateXamlLightupXbfForCurrentLocale(&self, packagefamilyname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GenerateXamlLightupXbfForCurrentLocale(&self, packagefamilyname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn AddLicenseForAppx(&self, productid: &::windows::core::GUID, pblicense: *const u8, cblicense: u32, pbplayreadyheader: *const u8, cbplayreadyheader: u32) -> ::windows::core::Result<()>; fn FixJunctionsForAppsOnSDCard(&self) -> ::windows::core::Result<()>; } @@ -1731,7 +1728,7 @@ impl IPMDeploymentManager_Vtbl { let this = (*this).get_impl(); this.BeginUpdateLicense(::core::mem::transmute(&productid), ::core::mem::transmute(&offerid), ::core::mem::transmute_copy(&pblicense), ::core::mem::transmute_copy(&cblicense)).into() } - unsafe extern "system" fn GetLicenseChallenge, Impl: IPMDeploymentManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, packagepath: ::core::mem::ManuallyDrop, ppbchallenge: *mut *mut u8, pcbchallenge: *mut u32, ppbkid: *mut *mut u8, pcbkid: *mut u32, ppbdeviceid: *mut *mut u8, pcbdeviceid: *mut u32, ppbsaltvalue: *mut *mut u8, pcbsaltvalue: *mut u32, ppbkgvvalue: *mut *mut u8, pcbkgvvalue: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetLicenseChallenge, Impl: IPMDeploymentManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, packagepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppbchallenge: *mut *mut u8, pcbchallenge: *mut u32, ppbkid: *mut *mut u8, pcbkid: *mut u32, ppbdeviceid: *mut *mut u8, pcbdeviceid: *mut u32, ppbsaltvalue: *mut *mut u8, pcbsaltvalue: *mut u32, ppbkgvvalue: *mut *mut u8, pcbkgvvalue: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetLicenseChallenge(::core::mem::transmute(&packagepath), ::core::mem::transmute_copy(&ppbchallenge), ::core::mem::transmute_copy(&pcbchallenge), ::core::mem::transmute_copy(&ppbkid), ::core::mem::transmute_copy(&pcbkid), ::core::mem::transmute_copy(&ppbdeviceid), ::core::mem::transmute_copy(&pcbdeviceid), ::core::mem::transmute_copy(&ppbsaltvalue), ::core::mem::transmute_copy(&pcbsaltvalue), ::core::mem::transmute_copy(&ppbkgvvalue), ::core::mem::transmute_copy(&pcbkgvvalue)) @@ -1773,7 +1770,7 @@ impl IPMDeploymentManager_Vtbl { let this = (*this).get_impl(); this.GenerateXbfForCurrentLocale(::core::mem::transmute(&productid)).into() } - unsafe extern "system" fn BeginProvision, Impl: IPMDeploymentManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, productid: ::windows::core::GUID, xmlpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn BeginProvision, Impl: IPMDeploymentManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, productid: ::windows::core::GUID, xmlpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.BeginProvision(::core::mem::transmute(&productid), ::core::mem::transmute(&xmlpath)).into() @@ -1825,7 +1822,7 @@ impl IPMDeploymentManager_Vtbl { let this = (*this).get_impl(); this.ReportRestoreCancelled(::core::mem::transmute(&productid)).into() } - unsafe extern "system" fn ResolveResourceString, Impl: IPMDeploymentManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, resourcestring: ::windows::core::PCWSTR, presolvedresourcestring: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ResolveResourceString, Impl: IPMDeploymentManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, resourcestring: ::windows::core::PCWSTR, presolvedresourcestring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ResolveResourceString(::core::mem::transmute(&resourcestring), ::core::mem::transmute_copy(&presolvedresourcestring)).into() @@ -1850,7 +1847,7 @@ impl IPMDeploymentManager_Vtbl { let this = (*this).get_impl(); this.BindDeferredMdilBinaries().into() } - unsafe extern "system" fn GenerateXamlLightupXbfForCurrentLocale, Impl: IPMDeploymentManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, packagefamilyname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn GenerateXamlLightupXbfForCurrentLocale, Impl: IPMDeploymentManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, packagefamilyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GenerateXamlLightupXbfForCurrentLocale(::core::mem::transmute(&packagefamilyname)).into() @@ -1917,15 +1914,15 @@ pub trait IPMEnumerationManager_Impl: Sized { fn get_AllBackgroundServiceAgents(&self, ppbsaenum: *mut ::core::option::Option, filter: &PM_ENUM_FILTER) -> ::windows::core::Result<()>; fn get_AllBackgroundWorkers(&self, ppbswenum: *mut ::core::option::Option, filter: &PM_ENUM_FILTER) -> ::windows::core::Result<()>; fn get_ApplicationInfo(&self, productid: &::windows::core::GUID) -> ::windows::core::Result; - fn get_TileInfo(&self, productid: &::windows::core::GUID, tileid: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn get_TaskInfo(&self, productid: &::windows::core::GUID, taskid: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn get_TileInfo(&self, productid: &::windows::core::GUID, tileid: &::windows::core::BSTR) -> ::windows::core::Result; + fn get_TaskInfo(&self, productid: &::windows::core::GUID, taskid: &::windows::core::BSTR) -> ::windows::core::Result; fn get_TaskInfoEx(&self, productid: &::windows::core::GUID, taskid: &::windows::core::PCWSTR) -> ::windows::core::Result; fn get_BackgroundServiceAgentInfo(&self, bsaid: u32) -> ::windows::core::Result; fn AllLiveTileJobs(&self) -> ::windows::core::Result; - fn get_LiveTileJob(&self, productid: &::windows::core::GUID, tileid: &super::super::Foundation::BSTR, recurrencetype: PM_LIVETILE_RECURRENCE_TYPE) -> ::windows::core::Result; + fn get_LiveTileJob(&self, productid: &::windows::core::GUID, tileid: &::windows::core::BSTR, recurrencetype: PM_LIVETILE_RECURRENCE_TYPE) -> ::windows::core::Result; fn get_ApplicationInfoExternal(&self, productid: &::windows::core::GUID) -> ::windows::core::Result; - fn get_FileHandlerGenericLogo(&self, filetype: &super::super::Foundation::BSTR, logosize: PM_LOGO_SIZE, plogo: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn get_ApplicationInfoFromAccessClaims(&self, sysappid0: &super::super::Foundation::BSTR, sysappid1: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn get_FileHandlerGenericLogo(&self, filetype: &::windows::core::BSTR, logosize: PM_LOGO_SIZE, plogo: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn get_ApplicationInfoFromAccessClaims(&self, sysappid0: &::windows::core::BSTR, sysappid1: &::windows::core::BSTR) -> ::windows::core::Result; fn get_StartTileEnumeratorBlob(&self, filter: &PM_ENUM_FILTER, pctiles: *mut u32, pptileblobs: *mut *mut PM_STARTTILEBLOB) -> ::windows::core::Result<()>; fn get_StartAppEnumeratorBlob(&self, filter: &PM_ENUM_FILTER, pcapps: *mut u32, ppappblobs: *mut *mut PM_STARTAPPBLOB) -> ::windows::core::Result<()>; } @@ -1975,7 +1972,7 @@ impl IPMEnumerationManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_TileInfo, Impl: IPMEnumerationManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, productid: ::windows::core::GUID, tileid: ::core::mem::ManuallyDrop, pptileinfo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_TileInfo, Impl: IPMEnumerationManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, productid: ::windows::core::GUID, tileid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pptileinfo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_TileInfo(::core::mem::transmute(&productid), ::core::mem::transmute(&tileid)) { @@ -1986,7 +1983,7 @@ impl IPMEnumerationManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_TaskInfo, Impl: IPMEnumerationManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, productid: ::windows::core::GUID, taskid: ::core::mem::ManuallyDrop, pptaskinfo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_TaskInfo, Impl: IPMEnumerationManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, productid: ::windows::core::GUID, taskid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pptaskinfo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_TaskInfo(::core::mem::transmute(&productid), ::core::mem::transmute(&taskid)) { @@ -2030,7 +2027,7 @@ impl IPMEnumerationManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_LiveTileJob, Impl: IPMEnumerationManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, productid: ::windows::core::GUID, tileid: ::core::mem::ManuallyDrop, recurrencetype: PM_LIVETILE_RECURRENCE_TYPE, pplivetilejobinfo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_LiveTileJob, Impl: IPMEnumerationManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, productid: ::windows::core::GUID, tileid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, recurrencetype: PM_LIVETILE_RECURRENCE_TYPE, pplivetilejobinfo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_LiveTileJob(::core::mem::transmute(&productid), ::core::mem::transmute(&tileid), ::core::mem::transmute_copy(&recurrencetype)) { @@ -2052,12 +2049,12 @@ impl IPMEnumerationManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_FileHandlerGenericLogo, Impl: IPMEnumerationManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filetype: ::core::mem::ManuallyDrop, logosize: PM_LOGO_SIZE, plogo: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_FileHandlerGenericLogo, Impl: IPMEnumerationManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filetype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, logosize: PM_LOGO_SIZE, plogo: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_FileHandlerGenericLogo(::core::mem::transmute(&filetype), ::core::mem::transmute_copy(&logosize), ::core::mem::transmute_copy(&plogo)).into() } - unsafe extern "system" fn get_ApplicationInfoFromAccessClaims, Impl: IPMEnumerationManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sysappid0: ::core::mem::ManuallyDrop, sysappid1: ::core::mem::ManuallyDrop, ppappinfo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_ApplicationInfoFromAccessClaims, Impl: IPMEnumerationManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sysappid0: ::core::mem::ManuallyDrop<::windows::core::BSTR>, sysappid1: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppappinfo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_ApplicationInfoFromAccessClaims(::core::mem::transmute(&sysappid0), ::core::mem::transmute(&sysappid1)) { @@ -2130,16 +2127,13 @@ impl IPMExtensionCachedFileUpdaterInfo_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IPMExtensionContractInfo_Impl: Sized { - fn get_InvocationInfo(&self, paumid: *mut super::super::Foundation::BSTR, pargs: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn get_InvocationInfo(&self, paumid: *mut ::windows::core::BSTR, pargs: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IPMExtensionContractInfo {} -#[cfg(feature = "Win32_Foundation")] impl IPMExtensionContractInfo_Vtbl { pub const fn new, Impl: IPMExtensionContractInfo_Impl, const OFFSET: isize>() -> IPMExtensionContractInfo_Vtbl { - unsafe extern "system" fn get_InvocationInfo, Impl: IPMExtensionContractInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, paumid: *mut super::super::Foundation::BSTR, pargs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_InvocationInfo, Impl: IPMExtensionContractInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, paumid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pargs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_InvocationInfo(::core::mem::transmute_copy(&paumid), ::core::mem::transmute_copy(&pargs)).into() @@ -2150,52 +2144,49 @@ impl IPMExtensionContractInfo_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IPMExtensionFileExtensionInfo_Impl: Sized { - fn Name(&self, pname: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn DisplayName(&self, pdisplayname: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn get_Logo(&self, logosize: PM_LOGO_SIZE, plogo: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn get_ContentType(&self, filetype: &super::super::Foundation::BSTR, pcontenttype: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn get_FileType(&self, contenttype: &super::super::Foundation::BSTR, pfiletype: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn get_InvocationInfo(&self, pimageurn: *mut super::super::Foundation::BSTR, pparameters: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn get_AllFileTypes(&self, pcbtypes: *mut u32, pptypes: *mut *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Name(&self, pname: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn DisplayName(&self, pdisplayname: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn get_Logo(&self, logosize: PM_LOGO_SIZE, plogo: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn get_ContentType(&self, filetype: &::windows::core::BSTR, pcontenttype: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn get_FileType(&self, contenttype: &::windows::core::BSTR, pfiletype: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn get_InvocationInfo(&self, pimageurn: *mut ::windows::core::BSTR, pparameters: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn get_AllFileTypes(&self, pcbtypes: *mut u32, pptypes: *mut *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IPMExtensionFileExtensionInfo {} -#[cfg(feature = "Win32_Foundation")] impl IPMExtensionFileExtensionInfo_Vtbl { pub const fn new, Impl: IPMExtensionFileExtensionInfo_Impl, const OFFSET: isize>() -> IPMExtensionFileExtensionInfo_Vtbl { - unsafe extern "system" fn Name, Impl: IPMExtensionFileExtensionInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IPMExtensionFileExtensionInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Name(::core::mem::transmute_copy(&pname)).into() } - unsafe extern "system" fn DisplayName, Impl: IPMExtensionFileExtensionInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdisplayname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DisplayName, Impl: IPMExtensionFileExtensionInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdisplayname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DisplayName(::core::mem::transmute_copy(&pdisplayname)).into() } - unsafe extern "system" fn get_Logo, Impl: IPMExtensionFileExtensionInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, logosize: PM_LOGO_SIZE, plogo: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Logo, Impl: IPMExtensionFileExtensionInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, logosize: PM_LOGO_SIZE, plogo: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_Logo(::core::mem::transmute_copy(&logosize), ::core::mem::transmute_copy(&plogo)).into() } - unsafe extern "system" fn get_ContentType, Impl: IPMExtensionFileExtensionInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filetype: ::core::mem::ManuallyDrop, pcontenttype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_ContentType, Impl: IPMExtensionFileExtensionInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filetype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcontenttype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_ContentType(::core::mem::transmute(&filetype), ::core::mem::transmute_copy(&pcontenttype)).into() } - unsafe extern "system" fn get_FileType, Impl: IPMExtensionFileExtensionInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, contenttype: ::core::mem::ManuallyDrop, pfiletype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_FileType, Impl: IPMExtensionFileExtensionInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, contenttype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfiletype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_FileType(::core::mem::transmute(&contenttype), ::core::mem::transmute_copy(&pfiletype)).into() } - unsafe extern "system" fn get_InvocationInfo, Impl: IPMExtensionFileExtensionInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pimageurn: *mut super::super::Foundation::BSTR, pparameters: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_InvocationInfo, Impl: IPMExtensionFileExtensionInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pimageurn: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pparameters: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_InvocationInfo(::core::mem::transmute_copy(&pimageurn), ::core::mem::transmute_copy(&pparameters)).into() } - unsafe extern "system" fn get_AllFileTypes, Impl: IPMExtensionFileExtensionInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcbtypes: *mut u32, pptypes: *mut *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_AllFileTypes, Impl: IPMExtensionFileExtensionInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcbtypes: *mut u32, pptypes: *mut *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_AllFileTypes(::core::mem::transmute_copy(&pcbtypes), ::core::mem::transmute_copy(&pptypes)).into() @@ -2217,7 +2208,7 @@ impl IPMExtensionFileExtensionInfo_Vtbl { } #[cfg(feature = "Win32_Foundation")] pub trait IPMExtensionFileOpenPickerInfo_Impl: Sized { - fn get_AllFileTypes(&self, pctypes: *mut u32, pptypes: *mut *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn get_AllFileTypes(&self, pctypes: *mut u32, pptypes: *mut *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn SupportsAllFileTypes(&self) -> ::windows::core::Result; } #[cfg(feature = "Win32_Foundation")] @@ -2225,7 +2216,7 @@ impl ::windows::core::RuntimeName for IPMExtensionFileOpenPickerInfo {} #[cfg(feature = "Win32_Foundation")] impl IPMExtensionFileOpenPickerInfo_Vtbl { pub const fn new, Impl: IPMExtensionFileOpenPickerInfo_Impl, const OFFSET: isize>() -> IPMExtensionFileOpenPickerInfo_Vtbl { - unsafe extern "system" fn get_AllFileTypes, Impl: IPMExtensionFileOpenPickerInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pctypes: *mut u32, pptypes: *mut *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_AllFileTypes, Impl: IPMExtensionFileOpenPickerInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pctypes: *mut u32, pptypes: *mut *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_AllFileTypes(::core::mem::transmute_copy(&pctypes), ::core::mem::transmute_copy(&pptypes)).into() @@ -2253,7 +2244,7 @@ impl IPMExtensionFileOpenPickerInfo_Vtbl { } #[cfg(feature = "Win32_Foundation")] pub trait IPMExtensionFileSavePickerInfo_Impl: Sized { - fn get_AllFileTypes(&self, pctypes: *mut u32, pptypes: *mut *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn get_AllFileTypes(&self, pctypes: *mut u32, pptypes: *mut *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn SupportsAllFileTypes(&self) -> ::windows::core::Result; } #[cfg(feature = "Win32_Foundation")] @@ -2261,7 +2252,7 @@ impl ::windows::core::RuntimeName for IPMExtensionFileSavePickerInfo {} #[cfg(feature = "Win32_Foundation")] impl IPMExtensionFileSavePickerInfo_Vtbl { pub const fn new, Impl: IPMExtensionFileSavePickerInfo_Impl, const OFFSET: isize>() -> IPMExtensionFileSavePickerInfo_Vtbl { - unsafe extern "system" fn get_AllFileTypes, Impl: IPMExtensionFileSavePickerInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pctypes: *mut u32, pptypes: *mut *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_AllFileTypes, Impl: IPMExtensionFileSavePickerInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pctypes: *mut u32, pptypes: *mut *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_AllFileTypes(::core::mem::transmute_copy(&pctypes), ::core::mem::transmute_copy(&pptypes)).into() @@ -2287,18 +2278,15 @@ impl IPMExtensionFileSavePickerInfo_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IPMExtensionInfo_Impl: Sized { fn SupplierPID(&self) -> ::windows::core::Result<::windows::core::GUID>; - fn SupplierTaskID(&self, psuppliertid: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Title(&self, ptitle: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn IconPath(&self, piconpath: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ExtraFile(&self, pfilepath: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn get_InvocationInfo(&self, pimageurn: *mut super::super::Foundation::BSTR, pparameters: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SupplierTaskID(&self, psuppliertid: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Title(&self, ptitle: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn IconPath(&self, piconpath: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ExtraFile(&self, pfilepath: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn get_InvocationInfo(&self, pimageurn: *mut ::windows::core::BSTR, pparameters: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IPMExtensionInfo {} -#[cfg(feature = "Win32_Foundation")] impl IPMExtensionInfo_Vtbl { pub const fn new, Impl: IPMExtensionInfo_Impl, const OFFSET: isize>() -> IPMExtensionInfo_Vtbl { unsafe extern "system" fn SupplierPID, Impl: IPMExtensionInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, psupplierpid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT { @@ -2312,27 +2300,27 @@ impl IPMExtensionInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SupplierTaskID, Impl: IPMExtensionInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, psuppliertid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SupplierTaskID, Impl: IPMExtensionInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, psuppliertid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SupplierTaskID(::core::mem::transmute_copy(&psuppliertid)).into() } - unsafe extern "system" fn Title, Impl: IPMExtensionInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ptitle: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Title, Impl: IPMExtensionInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ptitle: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Title(::core::mem::transmute_copy(&ptitle)).into() } - unsafe extern "system" fn IconPath, Impl: IPMExtensionInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, piconpath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn IconPath, Impl: IPMExtensionInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, piconpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.IconPath(::core::mem::transmute_copy(&piconpath)).into() } - unsafe extern "system" fn ExtraFile, Impl: IPMExtensionInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfilepath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExtraFile, Impl: IPMExtensionInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfilepath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ExtraFile(::core::mem::transmute_copy(&pfilepath)).into() } - unsafe extern "system" fn get_InvocationInfo, Impl: IPMExtensionInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pimageurn: *mut super::super::Foundation::BSTR, pparameters: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_InvocationInfo, Impl: IPMExtensionInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pimageurn: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pparameters: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_InvocationInfo(::core::mem::transmute_copy(&pimageurn), ::core::mem::transmute_copy(&pparameters)).into() @@ -2374,22 +2362,19 @@ impl IPMExtensionInfoEnumerator_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IPMExtensionProtocolInfo_Impl: Sized { - fn Protocol(&self, pprotocol: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn get_InvocationInfo(&self, pimageurn: *mut super::super::Foundation::BSTR, pparameters: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Protocol(&self, pprotocol: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn get_InvocationInfo(&self, pimageurn: *mut ::windows::core::BSTR, pparameters: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IPMExtensionProtocolInfo {} -#[cfg(feature = "Win32_Foundation")] impl IPMExtensionProtocolInfo_Vtbl { pub const fn new, Impl: IPMExtensionProtocolInfo_Impl, const OFFSET: isize>() -> IPMExtensionProtocolInfo_Vtbl { - unsafe extern "system" fn Protocol, Impl: IPMExtensionProtocolInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pprotocol: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Protocol, Impl: IPMExtensionProtocolInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pprotocol: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Protocol(::core::mem::transmute_copy(&pprotocol)).into() } - unsafe extern "system" fn get_InvocationInfo, Impl: IPMExtensionProtocolInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pimageurn: *mut super::super::Foundation::BSTR, pparameters: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_InvocationInfo, Impl: IPMExtensionProtocolInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pimageurn: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pparameters: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_InvocationInfo(::core::mem::transmute_copy(&pimageurn), ::core::mem::transmute_copy(&pparameters)).into() @@ -2406,8 +2391,8 @@ impl IPMExtensionProtocolInfo_Vtbl { } #[cfg(feature = "Win32_Foundation")] pub trait IPMExtensionShareTargetInfo_Impl: Sized { - fn get_AllFileTypes(&self, pctypes: *mut u32, pptypes: *mut *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn get_AllDataFormats(&self, pcdataformats: *mut u32, ppdataformats: *mut *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn get_AllFileTypes(&self, pctypes: *mut u32, pptypes: *mut *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn get_AllDataFormats(&self, pcdataformats: *mut u32, ppdataformats: *mut *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn SupportsAllFileTypes(&self) -> ::windows::core::Result; } #[cfg(feature = "Win32_Foundation")] @@ -2415,12 +2400,12 @@ impl ::windows::core::RuntimeName for IPMExtensionShareTargetInfo {} #[cfg(feature = "Win32_Foundation")] impl IPMExtensionShareTargetInfo_Vtbl { pub const fn new, Impl: IPMExtensionShareTargetInfo_Impl, const OFFSET: isize>() -> IPMExtensionShareTargetInfo_Vtbl { - unsafe extern "system" fn get_AllFileTypes, Impl: IPMExtensionShareTargetInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pctypes: *mut u32, pptypes: *mut *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_AllFileTypes, Impl: IPMExtensionShareTargetInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pctypes: *mut u32, pptypes: *mut *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_AllFileTypes(::core::mem::transmute_copy(&pctypes), ::core::mem::transmute_copy(&pptypes)).into() } - unsafe extern "system" fn get_AllDataFormats, Impl: IPMExtensionShareTargetInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcdataformats: *mut u32, ppdataformats: *mut *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_AllDataFormats, Impl: IPMExtensionShareTargetInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcdataformats: *mut u32, ppdataformats: *mut *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_AllDataFormats(::core::mem::transmute_copy(&pcdataformats), ::core::mem::transmute_copy(&ppdataformats)).into() @@ -2450,7 +2435,7 @@ impl IPMExtensionShareTargetInfo_Vtbl { #[cfg(feature = "Win32_Foundation")] pub trait IPMLiveTileJobInfo_Impl: Sized { fn ProductID(&self) -> ::windows::core::Result<::windows::core::GUID>; - fn TileID(&self, ptileid: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn TileID(&self, ptileid: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn NextSchedule(&self) -> ::windows::core::Result; fn set_NextSchedule(&self, ftnextschedule: &super::super::Foundation::FILETIME) -> ::windows::core::Result<()>; fn StartSchedule(&self) -> ::windows::core::Result; @@ -2490,7 +2475,7 @@ impl IPMLiveTileJobInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn TileID, Impl: IPMLiveTileJobInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ptileid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TileID, Impl: IPMLiveTileJobInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ptileid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.TileID(::core::mem::transmute_copy(&ptileid)).into() @@ -2717,17 +2702,17 @@ impl IPMLiveTileJobInfoEnumerator_Vtbl { #[cfg(feature = "Win32_Foundation")] pub trait IPMTaskInfo_Impl: Sized { fn ProductID(&self) -> ::windows::core::Result<::windows::core::GUID>; - fn TaskID(&self, ptaskid: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn NavigationPage(&self, pnavigationpage: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn TaskID(&self, ptaskid: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn NavigationPage(&self, pnavigationpage: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn TaskTransition(&self) -> ::windows::core::Result; fn RuntimeType(&self) -> ::windows::core::Result; fn ActivationPolicy(&self) -> ::windows::core::Result; fn TaskType(&self) -> ::windows::core::Result; - fn get_InvocationInfo(&self, pimageurn: *mut super::super::Foundation::BSTR, pparameters: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ImagePath(&self, pimagepath: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ImageParams(&self, pimageparams: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn InstallRootFolder(&self, pinstallrootfolder: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn DataRootFolder(&self, pdatarootfolder: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn get_InvocationInfo(&self, pimageurn: *mut ::windows::core::BSTR, pparameters: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ImagePath(&self, pimagepath: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ImageParams(&self, pimageparams: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn InstallRootFolder(&self, pinstallrootfolder: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn DataRootFolder(&self, pdatarootfolder: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn IsSingleInstanceHost(&self) -> ::windows::core::Result; fn IsInteropEnabled(&self) -> ::windows::core::Result; fn ApplicationState(&self) -> ::windows::core::Result; @@ -2735,7 +2720,7 @@ pub trait IPMTaskInfo_Impl: Sized { fn get_Version(&self, ptargetmajorversion: *mut u8, ptargetminorversion: *mut u8) -> ::windows::core::Result<()>; fn BitsPerPixel(&self) -> ::windows::core::Result; fn SuppressesDehydration(&self) -> ::windows::core::Result; - fn BackgroundExecutionAbilities(&self, pbackgroundexecutionabilities: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn BackgroundExecutionAbilities(&self, pbackgroundexecutionabilities: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn IsOptedForExtendedMem(&self) -> ::windows::core::Result; } #[cfg(feature = "Win32_Foundation")] @@ -2754,12 +2739,12 @@ impl IPMTaskInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn TaskID, Impl: IPMTaskInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ptaskid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TaskID, Impl: IPMTaskInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ptaskid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.TaskID(::core::mem::transmute_copy(&ptaskid)).into() } - unsafe extern "system" fn NavigationPage, Impl: IPMTaskInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pnavigationpage: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn NavigationPage, Impl: IPMTaskInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pnavigationpage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.NavigationPage(::core::mem::transmute_copy(&pnavigationpage)).into() @@ -2808,27 +2793,27 @@ impl IPMTaskInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_InvocationInfo, Impl: IPMTaskInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pimageurn: *mut super::super::Foundation::BSTR, pparameters: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_InvocationInfo, Impl: IPMTaskInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pimageurn: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pparameters: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_InvocationInfo(::core::mem::transmute_copy(&pimageurn), ::core::mem::transmute_copy(&pparameters)).into() } - unsafe extern "system" fn ImagePath, Impl: IPMTaskInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pimagepath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ImagePath, Impl: IPMTaskInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pimagepath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ImagePath(::core::mem::transmute_copy(&pimagepath)).into() } - unsafe extern "system" fn ImageParams, Impl: IPMTaskInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pimageparams: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ImageParams, Impl: IPMTaskInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pimageparams: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ImageParams(::core::mem::transmute_copy(&pimageparams)).into() } - unsafe extern "system" fn InstallRootFolder, Impl: IPMTaskInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pinstallrootfolder: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn InstallRootFolder, Impl: IPMTaskInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pinstallrootfolder: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InstallRootFolder(::core::mem::transmute_copy(&pinstallrootfolder)).into() } - unsafe extern "system" fn DataRootFolder, Impl: IPMTaskInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdatarootfolder: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DataRootFolder, Impl: IPMTaskInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdatarootfolder: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DataRootFolder(::core::mem::transmute_copy(&pdatarootfolder)).into() @@ -2904,7 +2889,7 @@ impl IPMTaskInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn BackgroundExecutionAbilities, Impl: IPMTaskInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbackgroundexecutionabilities: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn BackgroundExecutionAbilities, Impl: IPMTaskInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbackgroundexecutionabilities: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.BackgroundExecutionAbilities(::core::mem::transmute_copy(&pbackgroundexecutionabilities)).into() @@ -2975,24 +2960,24 @@ impl IPMTaskInfoEnumerator_Vtbl { #[cfg(feature = "Win32_Foundation")] pub trait IPMTileInfo_Impl: Sized { fn ProductID(&self) -> ::windows::core::Result<::windows::core::GUID>; - fn TileID(&self, ptileid: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn TileID(&self, ptileid: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn TemplateType(&self) -> ::windows::core::Result; fn get_HubPinnedState(&self, hubtype: PM_TILE_HUBTYPE) -> ::windows::core::Result; fn get_HubPosition(&self, hubtype: PM_TILE_HUBTYPE) -> ::windows::core::Result; fn IsNotified(&self) -> ::windows::core::Result; fn IsDefault(&self) -> ::windows::core::Result; - fn TaskID(&self, ptaskid: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn TaskID(&self, ptaskid: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn TileType(&self) -> ::windows::core::Result; fn IsThemable(&self) -> ::windows::core::Result; fn get_PropertyById(&self, propid: u32) -> ::windows::core::Result; - fn get_InvocationInfo(&self, pimageurn: *mut super::super::Foundation::BSTR, pparameters: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn get_InvocationInfo(&self, pimageurn: *mut ::windows::core::BSTR, pparameters: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn PropertyEnum(&self) -> ::windows::core::Result; fn get_HubTileSize(&self, hubtype: PM_TILE_HUBTYPE) -> ::windows::core::Result; fn set_HubPosition(&self, hubtype: PM_TILE_HUBTYPE, position: u32) -> ::windows::core::Result<()>; fn set_NotifiedState(&self, notified: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn set_HubPinnedState(&self, hubtype: PM_TILE_HUBTYPE, pinned: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn set_HubTileSize(&self, hubtype: PM_TILE_HUBTYPE, size: PM_TILE_SIZE) -> ::windows::core::Result<()>; - fn set_InvocationInfo(&self, taskname: &super::super::Foundation::BSTR, taskparameters: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn set_InvocationInfo(&self, taskname: &::windows::core::BSTR, taskparameters: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn StartTileBlob(&self, pblob: *mut PM_STARTTILEBLOB) -> ::windows::core::Result<()>; fn IsRestoring(&self) -> ::windows::core::Result; fn IsAutoRestoreDisabled(&self) -> ::windows::core::Result; @@ -3015,7 +3000,7 @@ impl IPMTileInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn TileID, Impl: IPMTileInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ptileid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TileID, Impl: IPMTileInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ptileid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.TileID(::core::mem::transmute_copy(&ptileid)).into() @@ -3075,7 +3060,7 @@ impl IPMTileInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn TaskID, Impl: IPMTileInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ptaskid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TaskID, Impl: IPMTileInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ptaskid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.TaskID(::core::mem::transmute_copy(&ptaskid)).into() @@ -3113,7 +3098,7 @@ impl IPMTileInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_InvocationInfo, Impl: IPMTileInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pimageurn: *mut super::super::Foundation::BSTR, pparameters: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_InvocationInfo, Impl: IPMTileInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pimageurn: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pparameters: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_InvocationInfo(::core::mem::transmute_copy(&pimageurn), ::core::mem::transmute_copy(&pparameters)).into() @@ -3160,7 +3145,7 @@ impl IPMTileInfo_Vtbl { let this = (*this).get_impl(); this.set_HubTileSize(::core::mem::transmute_copy(&hubtype), ::core::mem::transmute_copy(&size)).into() } - unsafe extern "system" fn set_InvocationInfo, Impl: IPMTileInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, taskname: ::core::mem::ManuallyDrop, taskparameters: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn set_InvocationInfo, Impl: IPMTileInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, taskname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, taskparameters: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.set_InvocationInfo(::core::mem::transmute(&taskname), ::core::mem::transmute(&taskparameters)).into() @@ -3280,15 +3265,12 @@ impl IPMTilePropertyEnumerator_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IPMTilePropertyInfo_Impl: Sized { fn PropertyID(&self) -> ::windows::core::Result; - fn PropertyValue(&self, ppropvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn set_Property(&self, propvalue: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn PropertyValue(&self, ppropvalue: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn set_Property(&self, propvalue: &::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IPMTilePropertyInfo {} -#[cfg(feature = "Win32_Foundation")] impl IPMTilePropertyInfo_Vtbl { pub const fn new, Impl: IPMTilePropertyInfo_Impl, const OFFSET: isize>() -> IPMTilePropertyInfo_Vtbl { unsafe extern "system" fn PropertyID, Impl: IPMTilePropertyInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppropid: *mut u32) -> ::windows::core::HRESULT { @@ -3302,12 +3284,12 @@ impl IPMTilePropertyInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn PropertyValue, Impl: IPMTilePropertyInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppropvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PropertyValue, Impl: IPMTilePropertyInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppropvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.PropertyValue(::core::mem::transmute_copy(&ppropvalue)).into() } - unsafe extern "system" fn set_Property, Impl: IPMTilePropertyInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn set_Property, Impl: IPMTilePropertyInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.set_Property(::core::mem::transmute(&propvalue)).into() diff --git a/crates/libs/windows/src/Windows/Win32/System/ApplicationInstallationAndServicing/mod.rs b/crates/libs/windows/src/Windows/Win32/System/ApplicationInstallationAndServicing/mod.rs index d6dfb493a8..64df7f2267 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ApplicationInstallationAndServicing/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ApplicationInstallationAndServicing/mod.rs @@ -4568,9 +4568,7 @@ pub struct IEnumMsmError_Vtbl { #[repr(transparent)] pub struct IEnumMsmString(::windows::core::IUnknown); impl IEnumMsmString { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Next(&self, cfetch: u32, rgbstrstrings: &mut super::super::Foundation::BSTR, pcfetched: &mut u32) -> ::windows::core::Result<()> { + pub unsafe fn Next(&self, cfetch: u32, rgbstrstrings: &mut ::windows::core::BSTR, pcfetched: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Next)(::windows::core::Interface::as_raw(self), cfetch, ::core::mem::transmute(rgbstrstrings), ::core::mem::transmute(pcfetched)).ok() } pub unsafe fn Skip(&self, cskip: u32) -> ::windows::core::Result<()> { @@ -4623,10 +4621,7 @@ unsafe impl ::windows::core::Interface for IEnumMsmString { #[doc(hidden)] pub struct IEnumMsmString_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cfetch: u32, rgbstrstrings: *mut super::super::Foundation::BSTR, pcfetched: *mut u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Next: usize, + pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cfetch: u32, rgbstrstrings: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcfetched: *mut u32) -> ::windows::core::HRESULT, pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cskip: u32) -> ::windows::core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pemsmstrings: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -4730,17 +4725,13 @@ pub struct IMsmDependencies_Vtbl { pub struct IMsmDependency(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMsmDependency { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Module(&self, module: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Module(&self, module: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Module)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(module)).ok() } pub unsafe fn Language(&self, language: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Language)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(language)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Version(&self, version: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Version(&self, version: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Version)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(version)).ok() } } @@ -4810,15 +4801,9 @@ unsafe impl ::windows::core::Interface for IMsmDependency { #[doc(hidden)] pub struct IMsmDependency_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Module: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, module: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Module: usize, + pub Module: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, module: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Language: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, language: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Version: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, version: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Version: usize, + pub Version: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, version: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4829,17 +4814,13 @@ impl IMsmError { pub unsafe fn Type(&self, errortype: &mut msmErrorType) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(errortype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Path(&self, errorpath: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Path(&self, errorpath: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(errorpath)).ok() } pub unsafe fn Language(&self, errorlanguage: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Language)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(errorlanguage)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DatabaseTable(&self, errortable: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn DatabaseTable(&self, errortable: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).DatabaseTable)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(errortable)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] @@ -4848,9 +4829,7 @@ impl IMsmError { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).DatabaseKeys)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ModuleTable(&self, errortable: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn ModuleTable(&self, errortable: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ModuleTable)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(errortable)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] @@ -4927,23 +4906,14 @@ unsafe impl ::windows::core::Interface for IMsmError { pub struct IMsmError_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, errortype: *mut msmErrorType) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, errorpath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Path: usize, + pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, errorpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Language: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, errorlanguage: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub DatabaseTable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, errortable: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DatabaseTable: usize, + pub DatabaseTable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, errortable: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub DatabaseKeys: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, errorkeys: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] DatabaseKeys: usize, - #[cfg(feature = "Win32_Foundation")] - pub ModuleTable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, errortable: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ModuleTable: usize, + pub ModuleTable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, errortable: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub ModuleKeys: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, errorkeys: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -5132,21 +5102,11 @@ pub struct IMsmGetFiles_Vtbl { pub struct IMsmMerge(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMsmMerge { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OpenDatabase<'a, P0>(&self, path: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).OpenDatabase)(::windows::core::Interface::as_raw(self), path.into().abi()).ok() + pub unsafe fn OpenDatabase(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).OpenDatabase)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OpenModule<'a, P0>(&self, path: P0, language: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).OpenModule)(::windows::core::Interface::as_raw(self), path.into().abi(), language).ok() + pub unsafe fn OpenModule(&self, path: &::windows::core::BSTR, language: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).OpenModule)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), language).ok() } pub unsafe fn CloseDatabase(&self, commit: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).CloseDatabase)(::windows::core::Interface::as_raw(self), commit).ok() @@ -5154,24 +5114,14 @@ impl IMsmMerge { pub unsafe fn CloseModule(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).CloseModule)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OpenLog<'a, P0>(&self, path: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).OpenLog)(::windows::core::Interface::as_raw(self), path.into().abi()).ok() + pub unsafe fn OpenLog(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).OpenLog)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path)).ok() } pub unsafe fn CloseLog(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).CloseLog)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Log<'a, P0>(&self, message: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Log)(::windows::core::Interface::as_raw(self), message.into().abi()).ok() + pub unsafe fn Log(&self, message: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Log)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(message)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5185,38 +5135,17 @@ impl IMsmMerge { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Dependencies)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Merge<'a, P0, P1>(&self, feature: P0, redirectdir: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Merge)(::windows::core::Interface::as_raw(self), feature.into().abi(), redirectdir.into().abi()).ok() + pub unsafe fn Merge(&self, feature: &::windows::core::BSTR, redirectdir: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Merge)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(feature), ::core::mem::transmute_copy(redirectdir)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Connect<'a, P0>(&self, feature: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Connect)(::windows::core::Interface::as_raw(self), feature.into().abi()).ok() + pub unsafe fn Connect(&self, feature: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Connect)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(feature)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExtractCAB<'a, P0>(&self, filename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ExtractCAB)(::windows::core::Interface::as_raw(self), filename.into().abi()).ok() + pub unsafe fn ExtractCAB(&self, filename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ExtractCAB)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(filename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExtractFiles<'a, P0>(&self, path: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ExtractFiles)(::windows::core::Interface::as_raw(self), path.into().abi()).ok() + pub unsafe fn ExtractFiles(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ExtractFiles)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5285,25 +5214,13 @@ unsafe impl ::windows::core::Interface for IMsmMerge { #[doc(hidden)] pub struct IMsmMerge_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub OpenDatabase: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OpenDatabase: usize, - #[cfg(feature = "Win32_Foundation")] - pub OpenModule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, language: i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OpenModule: usize, + pub OpenDatabase: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub OpenModule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, language: i16) -> ::windows::core::HRESULT, pub CloseDatabase: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, commit: i16) -> ::windows::core::HRESULT, pub CloseModule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub OpenLog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OpenLog: usize, + pub OpenLog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub CloseLog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Log: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, message: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Log: usize, + pub Log: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, message: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Errors: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, errors: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -5312,22 +5229,10 @@ pub struct IMsmMerge_Vtbl { pub Dependencies: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dependencies: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Dependencies: usize, - #[cfg(feature = "Win32_Foundation")] - pub Merge: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feature: ::core::mem::ManuallyDrop, redirectdir: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Merge: usize, - #[cfg(feature = "Win32_Foundation")] - pub Connect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feature: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Connect: usize, - #[cfg(feature = "Win32_Foundation")] - pub ExtractCAB: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ExtractCAB: usize, - #[cfg(feature = "Win32_Foundation")] - pub ExtractFiles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ExtractFiles: usize, + pub Merge: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feature: ::core::mem::ManuallyDrop<::windows::core::BSTR>, redirectdir: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Connect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, feature: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ExtractCAB: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ExtractFiles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5335,9 +5240,7 @@ pub struct IMsmMerge_Vtbl { pub struct IMsmStrings(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMsmStrings { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_Item(&self, item: i32, r#return: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn get_Item(&self, item: i32, r#return: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), item, ::core::mem::transmute(r#return)).ok() } pub unsafe fn Count(&self, count: &mut i32) -> ::windows::core::Result<()> { @@ -5414,10 +5317,7 @@ unsafe impl ::windows::core::Interface for IMsmStrings { #[doc(hidden)] pub struct IMsmStrings_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, item: i32, r#return: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_Item: usize, + pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, item: i32, r#return: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: *mut i32) -> ::windows::core::HRESULT, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } @@ -5437,19 +5337,13 @@ impl IPMApplicationInfo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).OfferID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DefaultTask(&self, pdefaulttask: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn DefaultTask(&self, pdefaulttask: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).DefaultTask)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdefaulttask)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AppTitle(&self, papptitle: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn AppTitle(&self, papptitle: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).AppTitle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(papptitle)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IconPath(&self, pappiconpath: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn IconPath(&self, pappiconpath: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).IconPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pappiconpath)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] @@ -5502,43 +5396,29 @@ impl IPMApplicationInfo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).IsTrial)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InstallPath(&self, pinstallpath: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn InstallPath(&self, pinstallpath: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).InstallPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pinstallpath)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DataRoot(&self, pdataroot: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn DataRoot(&self, pdataroot: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).DataRoot)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdataroot)).ok() } pub unsafe fn Genre(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Genre)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Publisher(&self, ppublisher: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Publisher(&self, ppublisher: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Publisher)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ppublisher)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Author(&self, pauthor: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Author(&self, pauthor: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Author)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pauthor)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self, pdescription: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Description(&self, pdescription: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdescription)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Version(&self, pversion: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Version(&self, pversion: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Version)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pversion)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_InvocationInfo(&self, pimageurn: &mut super::super::Foundation::BSTR, pparameters: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn get_InvocationInfo(&self, pimageurn: &mut ::windows::core::BSTR, pparameters: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).get_InvocationInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pimageurn), ::core::mem::transmute(pparameters)).ok() } pub unsafe fn AppPlatMajorVersion(&self) -> ::windows::core::Result { @@ -5559,9 +5439,7 @@ impl IPMApplicationInfo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).IsMultiCore)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SID(&self, psid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn SID(&self, psid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(psid)).ok() } pub unsafe fn AppPlatMajorVersionLightUp(&self) -> ::windows::core::Result { @@ -5588,13 +5466,8 @@ impl IPMApplicationInfo { { (::windows::core::Interface::vtable(self).set_NotificationState)(::windows::core::Interface::as_raw(self), isnotified.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn set_IconPath<'a, P0>(&self, appiconpath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).set_IconPath)(::windows::core::Interface::as_raw(self), appiconpath.into().abi()).ok() + pub unsafe fn set_IconPath(&self, appiconpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).set_IconPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(appiconpath)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -5725,13 +5598,8 @@ impl IPMApplicationInfo { { (::windows::core::Interface::vtable(self).set_IsMdilMaintenanceNeeded)(::windows::core::Interface::as_raw(self), fismdilmaintenanceneeded.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn set_Title<'a, P0>(&self, apptitle: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).set_Title)(::windows::core::Interface::as_raw(self), apptitle.into().abi()).ok() + pub unsafe fn set_Title(&self, apptitle: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).set_Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(apptitle)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -5776,18 +5644,9 @@ pub struct IPMApplicationInfo_Vtbl { pub ProductID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pproductid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, pub InstanceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinstanceid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, pub OfferID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pofferid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub DefaultTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdefaulttask: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DefaultTask: usize, - #[cfg(feature = "Win32_Foundation")] - pub AppTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, papptitle: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AppTitle: usize, - #[cfg(feature = "Win32_Foundation")] - pub IconPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pappiconpath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - IconPath: usize, + pub DefaultTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdefaulttask: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub AppTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, papptitle: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub IconPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pappiconpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub NotificationState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pisnotified: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -5818,35 +5677,14 @@ pub struct IPMApplicationInfo_Vtbl { pub IsTrial: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pistrial: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] IsTrial: usize, - #[cfg(feature = "Win32_Foundation")] - pub InstallPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinstallpath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InstallPath: usize, - #[cfg(feature = "Win32_Foundation")] - pub DataRoot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdataroot: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DataRoot: usize, + pub InstallPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinstallpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DataRoot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdataroot: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Genre: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pgenre: *mut PM_APP_GENRE) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Publisher: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppublisher: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Publisher: usize, - #[cfg(feature = "Win32_Foundation")] - pub Author: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pauthor: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Author: usize, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub Version: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pversion: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Version: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_InvocationInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pimageurn: *mut super::super::Foundation::BSTR, pparameters: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_InvocationInfo: usize, + pub Publisher: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppublisher: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Author: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pauthor: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Version: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pversion: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub get_InvocationInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pimageurn: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pparameters: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub AppPlatMajorVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmajorver: *mut u8) -> ::windows::core::HRESULT, pub AppPlatMinorVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pminorver: *mut u8) -> ::windows::core::HRESULT, pub PublisherID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppublisherid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, @@ -5854,10 +5692,7 @@ pub struct IPMApplicationInfo_Vtbl { pub IsMultiCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pismulticore: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] IsMultiCore: usize, - #[cfg(feature = "Win32_Foundation")] - pub SID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SID: usize, + pub SID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub AppPlatMajorVersionLightUp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmajorver: *mut u8) -> ::windows::core::HRESULT, pub AppPlatMinorVersionLightUp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pminorver: *mut u8) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] @@ -5868,10 +5703,7 @@ pub struct IPMApplicationInfo_Vtbl { pub set_NotificationState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, isnotified: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] set_NotificationState: usize, - #[cfg(feature = "Win32_Foundation")] - pub set_IconPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appiconpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - set_IconPath: usize, + pub set_IconPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appiconpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub set_UninstallableState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, isuninstallable: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -5950,10 +5782,7 @@ pub struct IPMApplicationInfo_Vtbl { pub set_IsMdilMaintenanceNeeded: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fismdilmaintenanceneeded: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] set_IsMdilMaintenanceNeeded: usize, - #[cfg(feature = "Win32_Foundation")] - pub set_Title: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, apptitle: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - set_Title: usize, + pub set_Title: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, apptitle: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] #[repr(transparent)] @@ -6013,33 +5842,23 @@ impl IPMBackgroundServiceAgentInfo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ProductID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TaskID(&self, ptaskid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn TaskID(&self, ptaskid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).TaskID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptaskid)).ok() } pub unsafe fn BSAID(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).BSAID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BGSpecifier(&self, pbgspecifier: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn BGSpecifier(&self, pbgspecifier: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).BGSpecifier)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbgspecifier)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BGName(&self, pbgname: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn BGName(&self, pbgname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).BGName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbgname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BGSource(&self, pbgsource: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn BGSource(&self, pbgsource: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).BGSource)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbgsource)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BGType(&self, pbgtype: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn BGType(&self, pbgtype: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).BGType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbgtype)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] @@ -6060,9 +5879,7 @@ impl IPMBackgroundServiceAgentInfo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).IsScheduleAllowed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self, pdescription: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Description(&self, pdescription: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdescription)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] @@ -6128,27 +5945,12 @@ unsafe impl ::windows::core::Interface for IPMBackgroundServiceAgentInfo { pub struct IPMBackgroundServiceAgentInfo_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub ProductID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pproductid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub TaskID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptaskid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TaskID: usize, + pub TaskID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptaskid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub BSAID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbsaid: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub BGSpecifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbgspecifier: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BGSpecifier: usize, - #[cfg(feature = "Win32_Foundation")] - pub BGName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbgname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BGName: usize, - #[cfg(feature = "Win32_Foundation")] - pub BGSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbgsource: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BGSource: usize, - #[cfg(feature = "Win32_Foundation")] - pub BGType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbgtype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BGType: usize, + pub BGSpecifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbgspecifier: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub BGName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbgname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub BGSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbgsource: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub BGType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbgtype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub IsPeriodic: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pisperiodic: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -6161,10 +5963,7 @@ pub struct IPMBackgroundServiceAgentInfo_Vtbl { pub IsScheduleAllowed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pisscheduleallowed: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] IsScheduleAllowed: usize, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub IsLaunchOnBoot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plaunchonboot: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -6236,14 +6035,10 @@ impl IPMBackgroundWorkerInfo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ProductID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TaskID(&self, ptaskid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn TaskID(&self, ptaskid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).TaskID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptaskid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BGName(&self, pbgname: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn BGName(&self, pbgname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).BGName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbgname)).ok() } pub unsafe fn MaxStartupLatency(&self) -> ::windows::core::Result { @@ -6301,14 +6096,8 @@ unsafe impl ::windows::core::Interface for IPMBackgroundWorkerInfo { pub struct IPMBackgroundWorkerInfo_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub ProductID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pproductid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub TaskID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptaskid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TaskID: usize, - #[cfg(feature = "Win32_Foundation")] - pub BGName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbgname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BGName: usize, + pub TaskID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptaskid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub BGName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbgname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub MaxStartupLatency: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmaxstartuplatency: *mut u32) -> ::windows::core::HRESULT, pub ExpectedRuntime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pexpectedruntime: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] @@ -6384,8 +6173,6 @@ impl IPMDeploymentManager { pub unsafe fn BeginInstall(&self, pinstallinfo: &PM_INSTALLINFO) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).BeginInstall)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pinstallinfo)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn BeginUpdate(&self, pupdateinfo: &PM_UPDATEINFO) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).BeginUpdate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pupdateinfo)).ok() } @@ -6394,8 +6181,6 @@ impl IPMDeploymentManager { pub unsafe fn BeginDeployPackage(&self, pinstallinfo: &PM_INSTALLINFO) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).BeginDeployPackage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pinstallinfo)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn BeginUpdateDeployedPackageLegacy(&self, pupdateinfo: &PM_UPDATEINFO_LEGACY) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).BeginUpdateDeployedPackageLegacy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pupdateinfo)).ok() } @@ -6407,21 +6192,14 @@ impl IPMDeploymentManager { pub unsafe fn BeginEnterpriseAppInstall(&self, pinstallinfo: &PM_INSTALLINFO) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).BeginEnterpriseAppInstall)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pinstallinfo)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn BeginEnterpriseAppUpdate(&self, pupdateinfo: &PM_UPDATEINFO) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).BeginEnterpriseAppUpdate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pupdateinfo)).ok() } pub unsafe fn BeginUpdateLicense(&self, productid: ::windows::core::GUID, offerid: ::windows::core::GUID, pblicense: &[u8]) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).BeginUpdateLicense)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(productid), ::core::mem::transmute(offerid), ::core::mem::transmute(pblicense.as_ptr()), pblicense.len() as _).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetLicenseChallenge<'a, P0>(&self, packagepath: P0, ppbchallenge: *mut *mut u8, pcbchallenge: &mut u32, ppbkid: *mut *mut u8, pcbkid: ::core::option::Option<&mut u32>, ppbdeviceid: *mut *mut u8, pcbdeviceid: ::core::option::Option<&mut u32>, ppbsaltvalue: *mut *mut u8, pcbsaltvalue: ::core::option::Option<&mut u32>, ppbkgvvalue: *mut *mut u8, pcbkgvvalue: ::core::option::Option<&mut u32>) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetLicenseChallenge)(::windows::core::Interface::as_raw(self), packagepath.into().abi(), ::core::mem::transmute(ppbchallenge), ::core::mem::transmute(pcbchallenge), ::core::mem::transmute(ppbkid), ::core::mem::transmute(pcbkid), ::core::mem::transmute(ppbdeviceid), ::core::mem::transmute(pcbdeviceid), ::core::mem::transmute(ppbsaltvalue), ::core::mem::transmute(pcbsaltvalue), ::core::mem::transmute(ppbkgvvalue), ::core::mem::transmute(pcbkgvvalue)).ok() + pub unsafe fn GetLicenseChallenge(&self, packagepath: &::windows::core::BSTR, ppbchallenge: *mut *mut u8, pcbchallenge: &mut u32, ppbkid: *mut *mut u8, pcbkid: ::core::option::Option<&mut u32>, ppbdeviceid: *mut *mut u8, pcbdeviceid: ::core::option::Option<&mut u32>, ppbsaltvalue: *mut *mut u8, pcbsaltvalue: ::core::option::Option<&mut u32>, ppbkgvvalue: *mut *mut u8, pcbkgvvalue: ::core::option::Option<&mut u32>) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetLicenseChallenge)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(packagepath), ::core::mem::transmute(ppbchallenge), ::core::mem::transmute(pcbchallenge), ::core::mem::transmute(ppbkid), ::core::mem::transmute(pcbkid), ::core::mem::transmute(ppbdeviceid), ::core::mem::transmute(pcbdeviceid), ::core::mem::transmute(ppbsaltvalue), ::core::mem::transmute(pcbsaltvalue), ::core::mem::transmute(ppbkgvvalue), ::core::mem::transmute(pcbkgvvalue)).ok() } pub unsafe fn GetLicenseChallengeByProductID(&self, productid: ::windows::core::GUID, ppbchallenge: *mut *mut u8, pcblicense: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetLicenseChallengeByProductID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(productid), ::core::mem::transmute(ppbchallenge), ::core::mem::transmute(pcblicense)).ok() @@ -6448,13 +6226,8 @@ impl IPMDeploymentManager { pub unsafe fn GenerateXbfForCurrentLocale(&self, productid: ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GenerateXbfForCurrentLocale)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(productid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BeginProvision<'a, P0>(&self, productid: ::windows::core::GUID, xmlpath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).BeginProvision)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(productid), xmlpath.into().abi()).ok() + pub unsafe fn BeginProvision(&self, productid: ::windows::core::GUID, xmlpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).BeginProvision)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(productid), ::core::mem::transmute_copy(xmlpath)).ok() } pub unsafe fn BeginDeprovision(&self, productid: ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).BeginDeprovision)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(productid)).ok() @@ -6478,17 +6251,13 @@ impl IPMDeploymentManager { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).EnterprisePolicyIsApplicationAllowed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(productid), publishername.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn BeginUpdateDeployedPackage(&self, pupdateinfo: &PM_UPDATEINFO) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).BeginUpdateDeployedPackage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pupdateinfo)).ok() } pub unsafe fn ReportRestoreCancelled(&self, productid: ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ReportRestoreCancelled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(productid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ResolveResourceString<'a, P0>(&self, resourcestring: P0, presolvedresourcestring: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> + pub unsafe fn ResolveResourceString<'a, P0>(&self, resourcestring: P0, presolvedresourcestring: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::PCWSTR>, { @@ -6506,13 +6275,8 @@ impl IPMDeploymentManager { pub unsafe fn BindDeferredMdilBinaries(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).BindDeferredMdilBinaries)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GenerateXamlLightupXbfForCurrentLocale<'a, P0>(&self, packagefamilyname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GenerateXamlLightupXbfForCurrentLocale)(::windows::core::Interface::as_raw(self), packagefamilyname.into().abi()).ok() + pub unsafe fn GenerateXamlLightupXbfForCurrentLocale(&self, packagefamilyname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GenerateXamlLightupXbfForCurrentLocale)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(packagefamilyname)).ok() } pub unsafe fn AddLicenseForAppx(&self, productid: ::windows::core::GUID, pblicense: &[u8], pbplayreadyheader: ::core::option::Option<&[u8]>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).AddLicenseForAppx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(productid), ::core::mem::transmute(pblicense.as_ptr()), pblicense.len() as _, ::core::mem::transmute(pbplayreadyheader.as_deref().map_or(::core::ptr::null(), |slice| slice.as_ptr())), pbplayreadyheader.as_deref().map_or(0, |slice| slice.len() as _)).ok() @@ -6567,32 +6331,20 @@ pub struct IPMDeploymentManager_Vtbl { pub BeginInstall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinstallinfo: *const PM_INSTALLINFO) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] BeginInstall: usize, - #[cfg(feature = "Win32_Foundation")] pub BeginUpdate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pupdateinfo: *const PM_UPDATEINFO) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BeginUpdate: usize, #[cfg(feature = "Win32_Foundation")] pub BeginDeployPackage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinstallinfo: *const PM_INSTALLINFO) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] BeginDeployPackage: usize, - #[cfg(feature = "Win32_Foundation")] pub BeginUpdateDeployedPackageLegacy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pupdateinfo: *const PM_UPDATEINFO_LEGACY) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BeginUpdateDeployedPackageLegacy: usize, pub BeginUninstall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, productid: ::windows::core::GUID) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub BeginEnterpriseAppInstall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinstallinfo: *const PM_INSTALLINFO) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] BeginEnterpriseAppInstall: usize, - #[cfg(feature = "Win32_Foundation")] pub BeginEnterpriseAppUpdate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pupdateinfo: *const PM_UPDATEINFO) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BeginEnterpriseAppUpdate: usize, pub BeginUpdateLicense: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, productid: ::windows::core::GUID, offerid: ::windows::core::GUID, pblicense: *const u8, cblicense: u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetLicenseChallenge: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, packagepath: ::core::mem::ManuallyDrop, ppbchallenge: *mut *mut u8, pcbchallenge: *mut u32, ppbkid: *mut *mut u8, pcbkid: *mut u32, ppbdeviceid: *mut *mut u8, pcbdeviceid: *mut u32, ppbsaltvalue: *mut *mut u8, pcbsaltvalue: *mut u32, ppbkgvvalue: *mut *mut u8, pcbkgvvalue: *mut u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetLicenseChallenge: usize, + pub GetLicenseChallenge: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, packagepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppbchallenge: *mut *mut u8, pcbchallenge: *mut u32, ppbkid: *mut *mut u8, pcbkid: *mut u32, ppbdeviceid: *mut *mut u8, pcbdeviceid: *mut u32, ppbsaltvalue: *mut *mut u8, pcbsaltvalue: *mut u32, ppbkgvvalue: *mut *mut u8, pcbkgvvalue: *mut u32) -> ::windows::core::HRESULT, pub GetLicenseChallengeByProductID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, productid: ::windows::core::GUID, ppbchallenge: *mut *mut u8, pcblicense: *mut u32) -> ::windows::core::HRESULT, pub GetLicenseChallengeByProductID2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, productid: ::windows::core::GUID, ppbchallenge: *mut *mut u8, pcblicense: *mut u32, ppbkid: *mut *mut u8, pcbkid: *mut u32, ppbdeviceid: *mut *mut u8, pcbdeviceid: *mut u32, ppbsaltvalue: *mut *mut u8, pcbsaltvalue: *mut u32, ppbkgvvalue: *mut *mut u8, pcbkgvvalue: *mut u32) -> ::windows::core::HRESULT, pub RevokeLicense: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, productid: ::windows::core::GUID) -> ::windows::core::HRESULT, @@ -6606,10 +6358,7 @@ pub struct IPMDeploymentManager_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] RegenerateXbf: usize, pub GenerateXbfForCurrentLocale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, productid: ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub BeginProvision: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, productid: ::windows::core::GUID, xmlpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BeginProvision: usize, + pub BeginProvision: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, productid: ::windows::core::GUID, xmlpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub BeginDeprovision: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, productid: ::windows::core::GUID) -> ::windows::core::HRESULT, pub ReindexSQLCEDatabases: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, productid: ::windows::core::GUID) -> ::windows::core::HRESULT, pub SetApplicationsNeedMaintenance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, requiredmaintenanceoperations: u32, pcapplications: *mut u32) -> ::windows::core::HRESULT, @@ -6618,23 +6367,14 @@ pub struct IPMDeploymentManager_Vtbl { pub EnterprisePolicyIsApplicationAllowed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, productid: ::windows::core::GUID, publishername: ::windows::core::PCWSTR, pisallowed: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] EnterprisePolicyIsApplicationAllowed: usize, - #[cfg(feature = "Win32_Foundation")] pub BeginUpdateDeployedPackage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pupdateinfo: *const PM_UPDATEINFO) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BeginUpdateDeployedPackage: usize, pub ReportRestoreCancelled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, productid: ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ResolveResourceString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, resourcestring: ::windows::core::PCWSTR, presolvedresourcestring: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ResolveResourceString: usize, + pub ResolveResourceString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, resourcestring: ::windows::core::PCWSTR, presolvedresourcestring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub UpdateCapabilitiesForModernApps: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub ReportDownloadStatusUpdate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, productid: ::windows::core::GUID) -> ::windows::core::HRESULT, pub BeginUninstallWithOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, productid: ::windows::core::GUID, removaloptions: u32) -> ::windows::core::HRESULT, pub BindDeferredMdilBinaries: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GenerateXamlLightupXbfForCurrentLocale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, packagefamilyname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GenerateXamlLightupXbfForCurrentLocale: usize, + pub GenerateXamlLightupXbfForCurrentLocale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, packagefamilyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub AddLicenseForAppx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, productid: ::windows::core::GUID, pblicense: *const u8, cblicense: u32, pbplayreadyheader: *const u8, cbplayreadyheader: u32) -> ::windows::core::HRESULT, pub FixJunctionsForAppsOnSDCard: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } @@ -6642,48 +6382,36 @@ pub struct IPMDeploymentManager_Vtbl { #[repr(transparent)] pub struct IPMEnumerationManager(::windows::core::IUnknown); impl IPMEnumerationManager { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_AllApplications<'a, P0>(&self, ppappenum: &mut ::core::option::Option, filter: P0) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, PM_ENUM_FILTER>>, { (::windows::core::Interface::vtable(self).get_AllApplications)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ppappenum), filter.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_AllTiles<'a, P0>(&self, pptileenum: &mut ::core::option::Option, filter: P0) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, PM_ENUM_FILTER>>, { (::windows::core::Interface::vtable(self).get_AllTiles)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pptileenum), filter.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_AllTasks<'a, P0>(&self, pptaskenum: &mut ::core::option::Option, filter: P0) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, PM_ENUM_FILTER>>, { (::windows::core::Interface::vtable(self).get_AllTasks)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pptaskenum), filter.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_AllExtensions<'a, P0>(&self, ppextensionenum: &mut ::core::option::Option, filter: P0) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, PM_ENUM_FILTER>>, { (::windows::core::Interface::vtable(self).get_AllExtensions)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ppextensionenum), filter.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_AllBackgroundServiceAgents<'a, P0>(&self, ppbsaenum: &mut ::core::option::Option, filter: P0) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, PM_ENUM_FILTER>>, { (::windows::core::Interface::vtable(self).get_AllBackgroundServiceAgents)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ppbsaenum), filter.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_AllBackgroundWorkers<'a, P0>(&self, ppbswenum: &mut ::core::option::Option, filter: P0) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, PM_ENUM_FILTER>>, @@ -6694,23 +6422,13 @@ impl IPMEnumerationManager { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).get_ApplicationInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(productid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_TileInfo<'a, P0>(&self, productid: ::windows::core::GUID, tileid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn get_TileInfo(&self, productid: ::windows::core::GUID, tileid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_TileInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(productid), tileid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_TileInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(productid), ::core::mem::transmute_copy(tileid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_TaskInfo<'a, P0>(&self, productid: ::windows::core::GUID, taskid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn get_TaskInfo(&self, productid: ::windows::core::GUID, taskid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_TaskInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(productid), taskid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_TaskInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(productid), ::core::mem::transmute_copy(taskid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn get_TaskInfoEx<'a, P0>(&self, productid: ::windows::core::GUID, taskid: P0) -> ::windows::core::Result where @@ -6727,36 +6445,20 @@ impl IPMEnumerationManager { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).AllLiveTileJobs)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_LiveTileJob<'a, P0>(&self, productid: ::windows::core::GUID, tileid: P0, recurrencetype: PM_LIVETILE_RECURRENCE_TYPE) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn get_LiveTileJob(&self, productid: ::windows::core::GUID, tileid: &::windows::core::BSTR, recurrencetype: PM_LIVETILE_RECURRENCE_TYPE) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_LiveTileJob)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(productid), tileid.into().abi(), recurrencetype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_LiveTileJob)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(productid), ::core::mem::transmute_copy(tileid), recurrencetype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn get_ApplicationInfoExternal(&self, productid: ::windows::core::GUID) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).get_ApplicationInfoExternal)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(productid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_FileHandlerGenericLogo<'a, P0>(&self, filetype: P0, logosize: PM_LOGO_SIZE, plogo: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).get_FileHandlerGenericLogo)(::windows::core::Interface::as_raw(self), filetype.into().abi(), logosize, ::core::mem::transmute(plogo)).ok() + pub unsafe fn get_FileHandlerGenericLogo(&self, filetype: &::windows::core::BSTR, logosize: PM_LOGO_SIZE, plogo: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).get_FileHandlerGenericLogo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(filetype), logosize, ::core::mem::transmute(plogo)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_ApplicationInfoFromAccessClaims<'a, P0, P1>(&self, sysappid0: P0, sysappid1: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn get_ApplicationInfoFromAccessClaims(&self, sysappid0: &::windows::core::BSTR, sysappid1: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_ApplicationInfoFromAccessClaims)(::windows::core::Interface::as_raw(self), sysappid0.into().abi(), sysappid1.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_ApplicationInfoFromAccessClaims)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(sysappid0), ::core::mem::transmute_copy(sysappid1), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -6814,55 +6516,22 @@ unsafe impl ::windows::core::Interface for IPMEnumerationManager { #[doc(hidden)] pub struct IPMEnumerationManager_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] pub get_AllApplications: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppappenum: *mut *mut ::core::ffi::c_void, filter: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_AllApplications: usize, - #[cfg(feature = "Win32_Foundation")] pub get_AllTiles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pptileenum: *mut *mut ::core::ffi::c_void, filter: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_AllTiles: usize, - #[cfg(feature = "Win32_Foundation")] pub get_AllTasks: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pptaskenum: *mut *mut ::core::ffi::c_void, filter: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_AllTasks: usize, - #[cfg(feature = "Win32_Foundation")] pub get_AllExtensions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppextensionenum: *mut *mut ::core::ffi::c_void, filter: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_AllExtensions: usize, - #[cfg(feature = "Win32_Foundation")] pub get_AllBackgroundServiceAgents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppbsaenum: *mut *mut ::core::ffi::c_void, filter: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_AllBackgroundServiceAgents: usize, - #[cfg(feature = "Win32_Foundation")] pub get_AllBackgroundWorkers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppbswenum: *mut *mut ::core::ffi::c_void, filter: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_AllBackgroundWorkers: usize, pub get_ApplicationInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, productid: ::windows::core::GUID, ppappinfo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub get_TileInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, productid: ::windows::core::GUID, tileid: ::core::mem::ManuallyDrop, pptileinfo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_TileInfo: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_TaskInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, productid: ::windows::core::GUID, taskid: ::core::mem::ManuallyDrop, pptaskinfo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_TaskInfo: usize, + pub get_TileInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, productid: ::windows::core::GUID, tileid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pptileinfo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub get_TaskInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, productid: ::windows::core::GUID, taskid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pptaskinfo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub get_TaskInfoEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, productid: ::windows::core::GUID, taskid: ::windows::core::PCWSTR, pptaskinfo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub get_BackgroundServiceAgentInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bsaid: u32, pptaskinfo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub AllLiveTileJobs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pplivetilejobenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub get_LiveTileJob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, productid: ::windows::core::GUID, tileid: ::core::mem::ManuallyDrop, recurrencetype: PM_LIVETILE_RECURRENCE_TYPE, pplivetilejobinfo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_LiveTileJob: usize, + pub get_LiveTileJob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, productid: ::windows::core::GUID, tileid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, recurrencetype: PM_LIVETILE_RECURRENCE_TYPE, pplivetilejobinfo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub get_ApplicationInfoExternal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, productid: ::windows::core::GUID, ppappinfo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub get_FileHandlerGenericLogo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filetype: ::core::mem::ManuallyDrop, logosize: PM_LOGO_SIZE, plogo: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_FileHandlerGenericLogo: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_ApplicationInfoFromAccessClaims: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sysappid0: ::core::mem::ManuallyDrop, sysappid1: ::core::mem::ManuallyDrop, ppappinfo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_ApplicationInfoFromAccessClaims: usize, + pub get_FileHandlerGenericLogo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filetype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, logosize: PM_LOGO_SIZE, plogo: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub get_ApplicationInfoFromAccessClaims: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sysappid0: ::core::mem::ManuallyDrop<::windows::core::BSTR>, sysappid1: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppappinfo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub get_StartTileEnumeratorBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filter: ::core::mem::ManuallyDrop, pctiles: *mut u32, pptileblobs: *mut *mut PM_STARTTILEBLOB) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -6931,9 +6600,7 @@ pub struct IPMExtensionCachedFileUpdaterInfo_Vtbl { #[repr(transparent)] pub struct IPMExtensionContractInfo(::windows::core::IUnknown); impl IPMExtensionContractInfo { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_InvocationInfo(&self, paumid: &mut super::super::Foundation::BSTR, pargs: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn get_InvocationInfo(&self, paumid: &mut ::windows::core::BSTR, pargs: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).get_InvocationInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(paumid), ::core::mem::transmute(pargs)).ok() } } @@ -6976,54 +6643,31 @@ unsafe impl ::windows::core::Interface for IPMExtensionContractInfo { #[doc(hidden)] pub struct IPMExtensionContractInfo_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub get_InvocationInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, paumid: *mut super::super::Foundation::BSTR, pargs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_InvocationInfo: usize, + pub get_InvocationInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, paumid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pargs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] #[repr(transparent)] pub struct IPMExtensionFileExtensionInfo(::windows::core::IUnknown); impl IPMExtensionFileExtensionInfo { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self, pname: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Name(&self, pname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisplayName(&self, pdisplayname: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn DisplayName(&self, pdisplayname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdisplayname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_Logo(&self, logosize: PM_LOGO_SIZE, plogo: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn get_Logo(&self, logosize: PM_LOGO_SIZE, plogo: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).get_Logo)(::windows::core::Interface::as_raw(self), logosize, ::core::mem::transmute(plogo)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_ContentType<'a, P0>(&self, filetype: P0, pcontenttype: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).get_ContentType)(::windows::core::Interface::as_raw(self), filetype.into().abi(), ::core::mem::transmute(pcontenttype)).ok() + pub unsafe fn get_ContentType(&self, filetype: &::windows::core::BSTR, pcontenttype: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).get_ContentType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(filetype), ::core::mem::transmute(pcontenttype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_FileType<'a, P0>(&self, contenttype: P0, pfiletype: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).get_FileType)(::windows::core::Interface::as_raw(self), contenttype.into().abi(), ::core::mem::transmute(pfiletype)).ok() + pub unsafe fn get_FileType(&self, contenttype: &::windows::core::BSTR, pfiletype: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).get_FileType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(contenttype), ::core::mem::transmute(pfiletype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_InvocationInfo(&self, pimageurn: &mut super::super::Foundation::BSTR, pparameters: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn get_InvocationInfo(&self, pimageurn: &mut ::windows::core::BSTR, pparameters: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).get_InvocationInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pimageurn), ::core::mem::transmute(pparameters)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_AllFileTypes(&self, pcbtypes: &mut u32, pptypes: *mut *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn get_AllFileTypes(&self, pcbtypes: &mut u32, pptypes: *mut *mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).get_AllFileTypes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pcbtypes), ::core::mem::transmute(pptypes)).ok() } } @@ -7066,42 +6710,19 @@ unsafe impl ::windows::core::Interface for IPMExtensionFileExtensionInfo { #[doc(hidden)] pub struct IPMExtensionFileExtensionInfo_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdisplayname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DisplayName: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_Logo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, logosize: PM_LOGO_SIZE, plogo: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_Logo: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_ContentType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filetype: ::core::mem::ManuallyDrop, pcontenttype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_ContentType: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_FileType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contenttype: ::core::mem::ManuallyDrop, pfiletype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_FileType: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_InvocationInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pimageurn: *mut super::super::Foundation::BSTR, pparameters: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_InvocationInfo: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_AllFileTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcbtypes: *mut u32, pptypes: *mut *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_AllFileTypes: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdisplayname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub get_Logo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, logosize: PM_LOGO_SIZE, plogo: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub get_ContentType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filetype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcontenttype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub get_FileType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contenttype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfiletype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub get_InvocationInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pimageurn: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pparameters: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub get_AllFileTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcbtypes: *mut u32, pptypes: *mut *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] #[repr(transparent)] pub struct IPMExtensionFileOpenPickerInfo(::windows::core::IUnknown); impl IPMExtensionFileOpenPickerInfo { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_AllFileTypes(&self, pctypes: &mut u32, pptypes: *mut *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn get_AllFileTypes(&self, pctypes: &mut u32, pptypes: *mut *mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).get_AllFileTypes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pctypes), ::core::mem::transmute(pptypes)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] @@ -7150,10 +6771,7 @@ unsafe impl ::windows::core::Interface for IPMExtensionFileOpenPickerInfo { #[doc(hidden)] pub struct IPMExtensionFileOpenPickerInfo_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub get_AllFileTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pctypes: *mut u32, pptypes: *mut *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_AllFileTypes: usize, + pub get_AllFileTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pctypes: *mut u32, pptypes: *mut *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub SupportsAllFileTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psupportsalltypes: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -7163,9 +6781,7 @@ pub struct IPMExtensionFileOpenPickerInfo_Vtbl { #[repr(transparent)] pub struct IPMExtensionFileSavePickerInfo(::windows::core::IUnknown); impl IPMExtensionFileSavePickerInfo { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_AllFileTypes(&self, pctypes: &mut u32, pptypes: *mut *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn get_AllFileTypes(&self, pctypes: &mut u32, pptypes: *mut *mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).get_AllFileTypes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pctypes), ::core::mem::transmute(pptypes)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] @@ -7214,10 +6830,7 @@ unsafe impl ::windows::core::Interface for IPMExtensionFileSavePickerInfo { #[doc(hidden)] pub struct IPMExtensionFileSavePickerInfo_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub get_AllFileTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pctypes: *mut u32, pptypes: *mut *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_AllFileTypes: usize, + pub get_AllFileTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pctypes: *mut u32, pptypes: *mut *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub SupportsAllFileTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psupportsalltypes: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -7231,29 +6844,19 @@ impl IPMExtensionInfo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).SupplierPID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SupplierTaskID(&self, psuppliertid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn SupplierTaskID(&self, psuppliertid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SupplierTaskID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(psuppliertid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Title(&self, ptitle: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Title(&self, ptitle: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptitle)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IconPath(&self, piconpath: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn IconPath(&self, piconpath: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).IconPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(piconpath)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExtraFile(&self, pfilepath: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn ExtraFile(&self, pfilepath: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ExtraFile)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pfilepath)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_InvocationInfo(&self, pimageurn: &mut super::super::Foundation::BSTR, pparameters: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn get_InvocationInfo(&self, pimageurn: &mut ::windows::core::BSTR, pparameters: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).get_InvocationInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pimageurn), ::core::mem::transmute(pparameters)).ok() } } @@ -7297,26 +6900,11 @@ unsafe impl ::windows::core::Interface for IPMExtensionInfo { pub struct IPMExtensionInfo_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub SupplierPID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psupplierpid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SupplierTaskID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psuppliertid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SupplierTaskID: usize, - #[cfg(feature = "Win32_Foundation")] - pub Title: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptitle: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Title: usize, - #[cfg(feature = "Win32_Foundation")] - pub IconPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, piconpath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - IconPath: usize, - #[cfg(feature = "Win32_Foundation")] - pub ExtraFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfilepath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ExtraFile: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_InvocationInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pimageurn: *mut super::super::Foundation::BSTR, pparameters: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_InvocationInfo: usize, + pub SupplierTaskID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psuppliertid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Title: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptitle: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub IconPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, piconpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ExtraFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfilepath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub get_InvocationInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pimageurn: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pparameters: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] #[repr(transparent)] @@ -7372,14 +6960,10 @@ pub struct IPMExtensionInfoEnumerator_Vtbl { #[repr(transparent)] pub struct IPMExtensionProtocolInfo(::windows::core::IUnknown); impl IPMExtensionProtocolInfo { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Protocol(&self, pprotocol: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Protocol(&self, pprotocol: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Protocol)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pprotocol)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_InvocationInfo(&self, pimageurn: &mut super::super::Foundation::BSTR, pparameters: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn get_InvocationInfo(&self, pimageurn: &mut ::windows::core::BSTR, pparameters: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).get_InvocationInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pimageurn), ::core::mem::transmute(pparameters)).ok() } } @@ -7422,27 +7006,17 @@ unsafe impl ::windows::core::Interface for IPMExtensionProtocolInfo { #[doc(hidden)] pub struct IPMExtensionProtocolInfo_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub Protocol: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprotocol: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Protocol: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_InvocationInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pimageurn: *mut super::super::Foundation::BSTR, pparameters: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_InvocationInfo: usize, + pub Protocol: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprotocol: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub get_InvocationInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pimageurn: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pparameters: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] #[repr(transparent)] pub struct IPMExtensionShareTargetInfo(::windows::core::IUnknown); impl IPMExtensionShareTargetInfo { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_AllFileTypes(&self, pctypes: &mut u32, pptypes: *mut *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn get_AllFileTypes(&self, pctypes: &mut u32, pptypes: *mut *mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).get_AllFileTypes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pctypes), ::core::mem::transmute(pptypes)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_AllDataFormats(&self, pcdataformats: &mut u32, ppdataformats: *mut *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn get_AllDataFormats(&self, pcdataformats: &mut u32, ppdataformats: *mut *mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).get_AllDataFormats)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pcdataformats), ::core::mem::transmute(ppdataformats)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] @@ -7491,14 +7065,8 @@ unsafe impl ::windows::core::Interface for IPMExtensionShareTargetInfo { #[doc(hidden)] pub struct IPMExtensionShareTargetInfo_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub get_AllFileTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pctypes: *mut u32, pptypes: *mut *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_AllFileTypes: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_AllDataFormats: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcdataformats: *mut u32, ppdataformats: *mut *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_AllDataFormats: usize, + pub get_AllFileTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pctypes: *mut u32, pptypes: *mut *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub get_AllDataFormats: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcdataformats: *mut u32, ppdataformats: *mut *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub SupportsAllFileTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psupportsalltypes: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -7512,9 +7080,7 @@ impl IPMLiveTileJobInfo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ProductID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TileID(&self, ptileid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn TileID(&self, ptileid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).TileID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptileid)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] @@ -7648,10 +7214,7 @@ unsafe impl ::windows::core::Interface for IPMLiveTileJobInfo { pub struct IPMLiveTileJobInfo_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub ProductID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pproductid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub TileID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptileid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TileID: usize, + pub TileID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptileid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub NextSchedule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnextschedule: *mut super::super::Foundation::FILETIME) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -7751,14 +7314,10 @@ impl IPMTaskInfo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ProductID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TaskID(&self, ptaskid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn TaskID(&self, ptaskid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).TaskID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptaskid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NavigationPage(&self, pnavigationpage: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn NavigationPage(&self, pnavigationpage: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).NavigationPage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pnavigationpage)).ok() } pub unsafe fn TaskTransition(&self) -> ::windows::core::Result { @@ -7777,29 +7336,19 @@ impl IPMTaskInfo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).TaskType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_InvocationInfo(&self, pimageurn: &mut super::super::Foundation::BSTR, pparameters: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn get_InvocationInfo(&self, pimageurn: &mut ::windows::core::BSTR, pparameters: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).get_InvocationInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pimageurn), ::core::mem::transmute(pparameters)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ImagePath(&self, pimagepath: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn ImagePath(&self, pimagepath: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ImagePath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pimagepath)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ImageParams(&self, pimageparams: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn ImageParams(&self, pimageparams: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ImageParams)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pimageparams)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InstallRootFolder(&self, pinstallrootfolder: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn InstallRootFolder(&self, pinstallrootfolder: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).InstallRootFolder)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pinstallrootfolder)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DataRootFolder(&self, pdatarootfolder: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn DataRootFolder(&self, pdatarootfolder: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).DataRootFolder)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdatarootfolder)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] @@ -7835,9 +7384,7 @@ impl IPMTaskInfo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).SuppressesDehydration)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BackgroundExecutionAbilities(&self, pbackgroundexecutionabilities: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn BackgroundExecutionAbilities(&self, pbackgroundexecutionabilities: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).BackgroundExecutionAbilities)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbackgroundexecutionabilities)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] @@ -7887,38 +7434,17 @@ unsafe impl ::windows::core::Interface for IPMTaskInfo { pub struct IPMTaskInfo_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub ProductID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pproductid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub TaskID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptaskid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TaskID: usize, - #[cfg(feature = "Win32_Foundation")] - pub NavigationPage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnavigationpage: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - NavigationPage: usize, + pub TaskID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptaskid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub NavigationPage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnavigationpage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub TaskTransition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptasktransition: *mut PM_TASK_TRANSITION) -> ::windows::core::HRESULT, pub RuntimeType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pruntimetype: *mut PACKMAN_RUNTIME) -> ::windows::core::HRESULT, pub ActivationPolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pactivationpolicy: *mut PM_ACTIVATION_POLICY) -> ::windows::core::HRESULT, pub TaskType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptasktype: *mut PM_TASK_TYPE) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub get_InvocationInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pimageurn: *mut super::super::Foundation::BSTR, pparameters: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_InvocationInfo: usize, - #[cfg(feature = "Win32_Foundation")] - pub ImagePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pimagepath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ImagePath: usize, - #[cfg(feature = "Win32_Foundation")] - pub ImageParams: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pimageparams: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ImageParams: usize, - #[cfg(feature = "Win32_Foundation")] - pub InstallRootFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinstallrootfolder: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InstallRootFolder: usize, - #[cfg(feature = "Win32_Foundation")] - pub DataRootFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdatarootfolder: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DataRootFolder: usize, + pub get_InvocationInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pimageurn: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pparameters: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ImagePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pimagepath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ImageParams: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pimageparams: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub InstallRootFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinstallrootfolder: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DataRootFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdatarootfolder: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub IsSingleInstanceHost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pissingleinstancehost: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -7935,10 +7461,7 @@ pub struct IPMTaskInfo_Vtbl { pub SuppressesDehydration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psuppressesdehydration: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] SuppressesDehydration: usize, - #[cfg(feature = "Win32_Foundation")] - pub BackgroundExecutionAbilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbackgroundexecutionabilities: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BackgroundExecutionAbilities: usize, + pub BackgroundExecutionAbilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbackgroundexecutionabilities: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub IsOptedForExtendedMem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pisoptedin: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -8002,9 +7525,7 @@ impl IPMTileInfo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ProductID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TileID(&self, ptileid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn TileID(&self, ptileid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).TileID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptileid)).ok() } pub unsafe fn TemplateType(&self) -> ::windows::core::Result { @@ -8033,9 +7554,7 @@ impl IPMTileInfo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).IsDefault)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TaskID(&self, ptaskid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn TaskID(&self, ptaskid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).TaskID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptaskid)).ok() } pub unsafe fn TileType(&self) -> ::windows::core::Result { @@ -8052,9 +7571,7 @@ impl IPMTileInfo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).get_PropertyById)(::windows::core::Interface::as_raw(self), propid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_InvocationInfo(&self, pimageurn: &mut super::super::Foundation::BSTR, pparameters: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn get_InvocationInfo(&self, pimageurn: &mut ::windows::core::BSTR, pparameters: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).get_InvocationInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pimageurn), ::core::mem::transmute(pparameters)).ok() } pub unsafe fn PropertyEnum(&self) -> ::windows::core::Result { @@ -8087,14 +7604,8 @@ impl IPMTileInfo { pub unsafe fn set_HubTileSize(&self, hubtype: PM_TILE_HUBTYPE, size: PM_TILE_SIZE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).set_HubTileSize)(::windows::core::Interface::as_raw(self), hubtype, size).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn set_InvocationInfo<'a, P0, P1>(&self, taskname: P0, taskparameters: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).set_InvocationInfo)(::windows::core::Interface::as_raw(self), taskname.into().abi(), taskparameters.into().abi()).ok() + pub unsafe fn set_InvocationInfo(&self, taskname: &::windows::core::BSTR, taskparameters: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).set_InvocationInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(taskname), ::core::mem::transmute_copy(taskparameters)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -8170,10 +7681,7 @@ unsafe impl ::windows::core::Interface for IPMTileInfo { pub struct IPMTileInfo_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub ProductID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pproductid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub TileID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptileid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TileID: usize, + pub TileID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptileid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub TemplateType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptemplatetype: *mut TILE_TEMPLATE_TYPE) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub get_HubPinnedState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hubtype: PM_TILE_HUBTYPE, ppinned: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, @@ -8188,20 +7696,14 @@ pub struct IPMTileInfo_Vtbl { pub IsDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pisdefault: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] IsDefault: usize, - #[cfg(feature = "Win32_Foundation")] - pub TaskID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptaskid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TaskID: usize, + pub TaskID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptaskid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub TileType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstarttiletype: *mut PM_STARTTILE_TYPE) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub IsThemable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pisthemable: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] IsThemable: usize, pub get_PropertyById: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propid: u32, pppropinfo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub get_InvocationInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pimageurn: *mut super::super::Foundation::BSTR, pparameters: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_InvocationInfo: usize, + pub get_InvocationInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pimageurn: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pparameters: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub PropertyEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pptilepropenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub get_HubTileSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hubtype: PM_TILE_HUBTYPE, psize: *mut PM_TILE_SIZE) -> ::windows::core::HRESULT, pub set_HubPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hubtype: PM_TILE_HUBTYPE, position: u32) -> ::windows::core::HRESULT, @@ -8214,10 +7716,7 @@ pub struct IPMTileInfo_Vtbl { #[cfg(not(feature = "Win32_Foundation"))] set_HubPinnedState: usize, pub set_HubTileSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hubtype: PM_TILE_HUBTYPE, size: PM_TILE_SIZE) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub set_InvocationInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, taskname: ::core::mem::ManuallyDrop, taskparameters: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - set_InvocationInfo: usize, + pub set_InvocationInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, taskname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, taskparameters: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub StartTileBlob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pblob: *mut PM_STARTTILEBLOB) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -8347,18 +7846,11 @@ impl IPMTilePropertyInfo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).PropertyID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PropertyValue(&self, ppropvalue: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn PropertyValue(&self, ppropvalue: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).PropertyValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ppropvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn set_Property<'a, P0>(&self, propvalue: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).set_Property)(::windows::core::Interface::as_raw(self), propvalue.into().abi()).ok() + pub unsafe fn set_Property(&self, propvalue: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).set_Property)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(propvalue)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -8401,14 +7893,8 @@ unsafe impl ::windows::core::Interface for IPMTilePropertyInfo { pub struct IPMTilePropertyInfo_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub PropertyID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppropid: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub PropertyValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppropvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PropertyValue: usize, - #[cfg(feature = "Win32_Foundation")] - pub set_Property: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - set_Property: usize, + pub PropertyValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppropvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub set_Property: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] #[repr(transparent)] @@ -14395,113 +13881,92 @@ impl ::core::default::Default for PMSIHANDLE { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] pub struct PM_BSATASKID { pub ProductID: ::windows::core::GUID, - pub TaskID: super::super::Foundation::BSTR, + pub TaskID: ::windows::core::BSTR, } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for PM_BSATASKID { fn clone(&self) -> Self { Self { ProductID: self.ProductID, TaskID: self.TaskID.clone() } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for PM_BSATASKID { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("PM_BSATASKID").field("ProductID", &self.ProductID).field("TaskID", &self.TaskID).finish() } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for PM_BSATASKID { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for PM_BSATASKID { fn eq(&self, other: &Self) -> bool { self.ProductID == other.ProductID && self.TaskID == other.TaskID } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for PM_BSATASKID {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for PM_BSATASKID { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] pub struct PM_BWTASKID { pub ProductID: ::windows::core::GUID, - pub TaskID: super::super::Foundation::BSTR, + pub TaskID: ::windows::core::BSTR, } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for PM_BWTASKID { fn clone(&self) -> Self { Self { ProductID: self.ProductID, TaskID: self.TaskID.clone() } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for PM_BWTASKID { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("PM_BWTASKID").field("ProductID", &self.ProductID).field("TaskID", &self.TaskID).finish() } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for PM_BWTASKID { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for PM_BWTASKID { fn eq(&self, other: &Self) -> bool { self.ProductID == other.ProductID && self.TaskID == other.TaskID } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for PM_BWTASKID {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for PM_BWTASKID { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] pub struct PM_ENUM_FILTER { pub FilterType: i32, pub FilterParameter: PM_ENUM_FILTER_0, } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for PM_ENUM_FILTER { fn clone(&self) -> Self { Self { FilterType: self.FilterType, FilterParameter: self.FilterParameter.clone() } } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for PM_ENUM_FILTER { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for PM_ENUM_FILTER { fn eq(&self, other: &Self) -> bool { self.FilterType == other.FilterType && self.FilterParameter == other.FilterParameter } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for PM_ENUM_FILTER {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for PM_ENUM_FILTER { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] pub union PM_ENUM_FILTER_0 { pub Dummy: i32, pub Genre: PM_APP_GENRE, @@ -14515,68 +13980,56 @@ pub union PM_ENUM_FILTER_0 { pub BSATask: ::core::mem::ManuallyDrop, pub BSAProductID: ::windows::core::GUID, pub BWTask: ::core::mem::ManuallyDrop, - pub ProtocolName: ::core::mem::ManuallyDrop, - pub FileType: ::core::mem::ManuallyDrop, - pub ContentType: ::core::mem::ManuallyDrop, + pub ProtocolName: ::core::mem::ManuallyDrop<::windows::core::BSTR>, + pub FileType: ::core::mem::ManuallyDrop<::windows::core::BSTR>, + pub ContentType: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pub AppSupportedFileExtPID: ::windows::core::GUID, - pub ShareTargetFileType: ::core::mem::ManuallyDrop, + pub ShareTargetFileType: ::core::mem::ManuallyDrop<::windows::core::BSTR>, } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for PM_ENUM_FILTER_0 { fn clone(&self) -> Self { unsafe { ::core::mem::transmute_copy(self) } } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for PM_ENUM_FILTER_0 { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for PM_ENUM_FILTER_0 { fn eq(&self, other: &Self) -> bool { unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for PM_ENUM_FILTER_0 {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for PM_ENUM_FILTER_0 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] pub struct PM_EXTENSIONCONSUMER { pub ConsumerPID: ::windows::core::GUID, - pub ExtensionID: super::super::Foundation::BSTR, + pub ExtensionID: ::windows::core::BSTR, } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for PM_EXTENSIONCONSUMER { fn clone(&self) -> Self { Self { ConsumerPID: self.ConsumerPID, ExtensionID: self.ExtensionID.clone() } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for PM_EXTENSIONCONSUMER { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("PM_EXTENSIONCONSUMER").field("ConsumerPID", &self.ConsumerPID).field("ExtensionID", &self.ExtensionID).finish() } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for PM_EXTENSIONCONSUMER { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for PM_EXTENSIONCONSUMER { fn eq(&self, other: &Self) -> bool { self.ConsumerPID == other.ConsumerPID && self.ExtensionID == other.ExtensionID } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for PM_EXTENSIONCONSUMER {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for PM_EXTENSIONCONSUMER { fn default() -> Self { unsafe { ::core::mem::zeroed() } @@ -14587,14 +14040,14 @@ impl ::core::default::Default for PM_EXTENSIONCONSUMER { #[cfg(feature = "Win32_Foundation")] pub struct PM_INSTALLINFO { pub ProductID: ::windows::core::GUID, - pub PackagePath: super::super::Foundation::BSTR, + pub PackagePath: ::windows::core::BSTR, pub InstanceID: ::windows::core::GUID, pub pbLicense: *mut u8, pub cbLicense: u32, pub IsUninstallDisabled: super::super::Foundation::BOOL, pub DeploymentOptions: u32, pub OfferID: ::windows::core::GUID, - pub MarketplaceAppVersion: super::super::Foundation::BSTR, + pub MarketplaceAppVersion: ::windows::core::BSTR, } #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for PM_INSTALLINFO { @@ -14637,37 +14090,30 @@ impl ::core::default::Default for PM_INSTALLINFO { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] pub struct PM_INVOCATIONINFO { - pub URIBaseOrAUMID: super::super::Foundation::BSTR, - pub URIFragmentOrArgs: super::super::Foundation::BSTR, + pub URIBaseOrAUMID: ::windows::core::BSTR, + pub URIFragmentOrArgs: ::windows::core::BSTR, } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for PM_INVOCATIONINFO { fn clone(&self) -> Self { Self { URIBaseOrAUMID: self.URIBaseOrAUMID.clone(), URIFragmentOrArgs: self.URIFragmentOrArgs.clone() } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for PM_INVOCATIONINFO { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("PM_INVOCATIONINFO").field("URIBaseOrAUMID", &self.URIBaseOrAUMID).field("URIFragmentOrArgs", &self.URIFragmentOrArgs).finish() } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for PM_INVOCATIONINFO { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for PM_INVOCATIONINFO { fn eq(&self, other: &Self) -> bool { self.URIBaseOrAUMID == other.URIBaseOrAUMID && self.URIFragmentOrArgs == other.URIFragmentOrArgs } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for PM_INVOCATIONINFO {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for PM_INVOCATIONINFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } @@ -14679,8 +14125,8 @@ impl ::core::default::Default for PM_INVOCATIONINFO { pub struct PM_STARTAPPBLOB { pub cbSize: u32, pub ProductID: ::windows::core::GUID, - pub AppTitle: super::super::Foundation::BSTR, - pub IconPath: super::super::Foundation::BSTR, + pub AppTitle: ::windows::core::BSTR, + pub IconPath: ::windows::core::BSTR, pub IsUninstallable: super::super::Foundation::BOOL, pub AppInstallType: PM_APPLICATION_INSTALL_TYPE, pub InstanceID: ::windows::core::GUID, @@ -14737,7 +14183,7 @@ impl ::core::default::Default for PM_STARTAPPBLOB { pub struct PM_STARTTILEBLOB { pub cbSize: u32, pub ProductID: ::windows::core::GUID, - pub TileID: super::super::Foundation::BSTR, + pub TileID: ::windows::core::BSTR, pub TemplateType: TILE_TEMPLATE_TYPE, pub HubPosition: [u32; 32], pub HubVisibilityBitmask: u32, @@ -14808,18 +14254,16 @@ impl ::core::default::Default for PM_STARTTILEBLOB { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] pub struct PM_UPDATEINFO { pub ProductID: ::windows::core::GUID, - pub PackagePath: super::super::Foundation::BSTR, + pub PackagePath: ::windows::core::BSTR, pub InstanceID: ::windows::core::GUID, pub pbLicense: *mut u8, pub cbLicense: u32, - pub MarketplaceAppVersion: super::super::Foundation::BSTR, + pub MarketplaceAppVersion: ::windows::core::BSTR, pub DeploymentOptions: u32, } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for PM_UPDATEINFO { fn clone(&self) -> Self { Self { @@ -14833,42 +14277,35 @@ impl ::core::clone::Clone for PM_UPDATEINFO { } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for PM_UPDATEINFO { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("PM_UPDATEINFO").field("ProductID", &self.ProductID).field("PackagePath", &self.PackagePath).field("InstanceID", &self.InstanceID).field("pbLicense", &self.pbLicense).field("cbLicense", &self.cbLicense).field("MarketplaceAppVersion", &self.MarketplaceAppVersion).field("DeploymentOptions", &self.DeploymentOptions).finish() } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for PM_UPDATEINFO { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for PM_UPDATEINFO { fn eq(&self, other: &Self) -> bool { self.ProductID == other.ProductID && self.PackagePath == other.PackagePath && self.InstanceID == other.InstanceID && self.pbLicense == other.pbLicense && self.cbLicense == other.cbLicense && self.MarketplaceAppVersion == other.MarketplaceAppVersion && self.DeploymentOptions == other.DeploymentOptions } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for PM_UPDATEINFO {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for PM_UPDATEINFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_ApplicationInstallationAndServicing\"`*"] pub struct PM_UPDATEINFO_LEGACY { pub ProductID: ::windows::core::GUID, - pub PackagePath: super::super::Foundation::BSTR, + pub PackagePath: ::windows::core::BSTR, pub InstanceID: ::windows::core::GUID, pub pbLicense: *mut u8, pub cbLicense: u32, - pub MarketplaceAppVersion: super::super::Foundation::BSTR, + pub MarketplaceAppVersion: ::windows::core::BSTR, } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for PM_UPDATEINFO_LEGACY { fn clone(&self) -> Self { Self { @@ -14881,25 +14318,20 @@ impl ::core::clone::Clone for PM_UPDATEINFO_LEGACY { } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for PM_UPDATEINFO_LEGACY { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("PM_UPDATEINFO_LEGACY").field("ProductID", &self.ProductID).field("PackagePath", &self.PackagePath).field("InstanceID", &self.InstanceID).field("pbLicense", &self.pbLicense).field("cbLicense", &self.cbLicense).field("MarketplaceAppVersion", &self.MarketplaceAppVersion).finish() } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for PM_UPDATEINFO_LEGACY { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for PM_UPDATEINFO_LEGACY { fn eq(&self, other: &Self) -> bool { self.ProductID == other.ProductID && self.PackagePath == other.PackagePath && self.InstanceID == other.InstanceID && self.pbLicense == other.pbLicense && self.cbLicense == other.cbLicense && self.MarketplaceAppVersion == other.MarketplaceAppVersion } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for PM_UPDATEINFO_LEGACY {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for PM_UPDATEINFO_LEGACY { fn default() -> Self { unsafe { ::core::mem::zeroed() } diff --git a/crates/libs/windows/src/Windows/Win32/System/AssessmentTool/impl.rs b/crates/libs/windows/src/Windows/Win32/System/AssessmentTool/impl.rs index 3dad69825b..c0ff68877f 100644 --- a/crates/libs/windows/src/Windows/Win32/System/AssessmentTool/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/AssessmentTool/impl.rs @@ -61,8 +61,8 @@ impl IInitiateWinSATAssessment_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IProvideWinSATAssessmentInfo_Impl: Sized + super::Com::IDispatch_Impl { fn Score(&self) -> ::windows::core::Result; - fn Title(&self) -> ::windows::core::Result; - fn Description(&self) -> ::windows::core::Result; + fn Title(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IProvideWinSATAssessmentInfo {} @@ -80,7 +80,7 @@ impl IProvideWinSATAssessmentInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Title, Impl: IProvideWinSATAssessmentInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, title: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Title, Impl: IProvideWinSATAssessmentInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, title: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Title() { @@ -91,7 +91,7 @@ impl IProvideWinSATAssessmentInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Description, Impl: IProvideWinSATAssessmentInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IProvideWinSATAssessmentInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -119,7 +119,7 @@ pub trait IProvideWinSATResultsInfo_Impl: Sized + super::Com::IDispatch_Impl { fn AssessmentState(&self) -> ::windows::core::Result; fn AssessmentDateTime(&self) -> ::windows::core::Result; fn SystemRating(&self) -> ::windows::core::Result; - fn RatingStateDesc(&self) -> ::windows::core::Result; + fn RatingStateDesc(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IProvideWinSATResultsInfo {} @@ -170,7 +170,7 @@ impl IProvideWinSATResultsInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RatingStateDesc, Impl: IProvideWinSATResultsInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RatingStateDesc, Impl: IProvideWinSATResultsInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RatingStateDesc() { @@ -222,14 +222,14 @@ impl IProvideWinSATVisuals_Vtbl { } #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IQueryAllWinSATAssessments_Impl: Sized + super::Com::IDispatch_Impl { - fn get_AllXML(&self, xpath: &super::super::Foundation::BSTR, namespaces: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn get_AllXML(&self, xpath: &::windows::core::BSTR, namespaces: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IQueryAllWinSATAssessments {} #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IQueryAllWinSATAssessments_Vtbl { pub const fn new, Impl: IQueryAllWinSATAssessments_Impl, const OFFSET: isize>() -> IQueryAllWinSATAssessments_Vtbl { - unsafe extern "system" fn get_AllXML, Impl: IQueryAllWinSATAssessments_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, xpath: ::core::mem::ManuallyDrop, namespaces: ::core::mem::ManuallyDrop, ppdomnodelist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_AllXML, Impl: IQueryAllWinSATAssessments_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, xpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, namespaces: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppdomnodelist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_AllXML(::core::mem::transmute(&xpath), ::core::mem::transmute(&namespaces)) { @@ -271,7 +271,7 @@ impl IQueryOEMWinSATCustomization_Vtbl { } #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IQueryRecentWinSATAssessment_Impl: Sized + super::Com::IDispatch_Impl { - fn get_XML(&self, xpath: &super::super::Foundation::BSTR, namespaces: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn get_XML(&self, xpath: &::windows::core::BSTR, namespaces: &::windows::core::BSTR) -> ::windows::core::Result; fn Info(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -279,7 +279,7 @@ impl ::windows::core::RuntimeName for IQueryRecentWinSATAssessment {} #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IQueryRecentWinSATAssessment_Vtbl { pub const fn new, Impl: IQueryRecentWinSATAssessment_Impl, const OFFSET: isize>() -> IQueryRecentWinSATAssessment_Vtbl { - unsafe extern "system" fn get_XML, Impl: IQueryRecentWinSATAssessment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, xpath: ::core::mem::ManuallyDrop, namespaces: ::core::mem::ManuallyDrop, ppdomnodelist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_XML, Impl: IQueryRecentWinSATAssessment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, xpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, namespaces: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppdomnodelist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_XML(::core::mem::transmute(&xpath), ::core::mem::transmute(&namespaces)) { diff --git a/crates/libs/windows/src/Windows/Win32/System/AssessmentTool/mod.rs b/crates/libs/windows/src/Windows/Win32/System/AssessmentTool/mod.rs index 6d16584214..9f593cdab3 100644 --- a/crates/libs/windows/src/Windows/Win32/System/AssessmentTool/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/AssessmentTool/mod.rs @@ -27,30 +27,30 @@ impl IAccessibleWinSAT { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_UI_Accessibility\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Accessibility"))] - pub unsafe fn get_accName<'a, P0>(&self, varchild: P0) -> ::windows::core::Result + pub unsafe fn get_accName<'a, P0>(&self, varchild: P0) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_accName)(::windows::core::Interface::as_raw(self), varchild.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_accName)(::windows::core::Interface::as_raw(self), varchild.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_UI_Accessibility\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Accessibility"))] - pub unsafe fn get_accValue<'a, P0>(&self, varchild: P0) -> ::windows::core::Result + pub unsafe fn get_accValue<'a, P0>(&self, varchild: P0) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_accValue)(::windows::core::Interface::as_raw(self), varchild.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_accValue)(::windows::core::Interface::as_raw(self), varchild.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_UI_Accessibility\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Accessibility"))] - pub unsafe fn get_accDescription<'a, P0>(&self, varchild: P0) -> ::windows::core::Result + pub unsafe fn get_accDescription<'a, P0>(&self, varchild: P0) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_accDescription)(::windows::core::Interface::as_raw(self), varchild.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_accDescription)(::windows::core::Interface::as_raw(self), varchild.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_UI_Accessibility\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Accessibility"))] @@ -72,16 +72,16 @@ impl IAccessibleWinSAT { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_UI_Accessibility\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Accessibility"))] - pub unsafe fn get_accHelp<'a, P0>(&self, varchild: P0) -> ::windows::core::Result + pub unsafe fn get_accHelp<'a, P0>(&self, varchild: P0) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_accHelp)(::windows::core::Interface::as_raw(self), varchild.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_accHelp)(::windows::core::Interface::as_raw(self), varchild.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_UI_Accessibility\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Accessibility"))] - pub unsafe fn get_accHelpTopic<'a, P0>(&self, pszhelpfile: &mut super::super::Foundation::BSTR, varchild: P0, pidtopic: &mut i32) -> ::windows::core::Result<()> + pub unsafe fn get_accHelpTopic<'a, P0>(&self, pszhelpfile: &mut ::windows::core::BSTR, varchild: P0, pidtopic: &mut i32) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, { @@ -89,12 +89,12 @@ impl IAccessibleWinSAT { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_UI_Accessibility\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Accessibility"))] - pub unsafe fn get_accKeyboardShortcut<'a, P0>(&self, varchild: P0) -> ::windows::core::Result + pub unsafe fn get_accKeyboardShortcut<'a, P0>(&self, varchild: P0) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_accKeyboardShortcut)(::windows::core::Interface::as_raw(self), varchild.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_accKeyboardShortcut)(::windows::core::Interface::as_raw(self), varchild.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_UI_Accessibility\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Accessibility"))] @@ -110,12 +110,12 @@ impl IAccessibleWinSAT { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_UI_Accessibility\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Accessibility"))] - pub unsafe fn get_accDefaultAction<'a, P0>(&self, varchild: P0) -> ::windows::core::Result + pub unsafe fn get_accDefaultAction<'a, P0>(&self, varchild: P0) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_accDefaultAction)(::windows::core::Interface::as_raw(self), varchild.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_accDefaultAction)(::windows::core::Interface::as_raw(self), varchild.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_UI_Accessibility\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Accessibility"))] @@ -158,21 +158,19 @@ impl IAccessibleWinSAT { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_UI_Accessibility\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Accessibility"))] - pub unsafe fn put_accName<'a, P0, P1>(&self, varchild: P0, szname: P1) -> ::windows::core::Result<()> + pub unsafe fn put_accName<'a, P0>(&self, varchild: P0, szname: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.put_accName)(::windows::core::Interface::as_raw(self), varchild.into().abi(), szname.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.put_accName)(::windows::core::Interface::as_raw(self), varchild.into().abi(), ::core::mem::transmute_copy(szname)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_UI_Accessibility\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Accessibility"))] - pub unsafe fn put_accValue<'a, P0, P1>(&self, varchild: P0, szvalue: P1) -> ::windows::core::Result<()> + pub unsafe fn put_accValue<'a, P0>(&self, varchild: P0, szvalue: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.put_accValue)(::windows::core::Interface::as_raw(self), varchild.into().abi(), szvalue.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.put_accValue)(::windows::core::Interface::as_raw(self), varchild.into().abi(), ::core::mem::transmute_copy(szvalue)).ok() } pub unsafe fn SetAccessiblityData<'a, P0, P1, P2>(&self, wsname: P0, wsvalue: P1, wsdesc: P2) -> ::windows::core::Result<()> where @@ -355,17 +353,13 @@ impl IProvideWinSATAssessmentInfo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Score)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Title(&self) -> ::windows::core::Result { + pub unsafe fn Title(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -435,14 +429,8 @@ unsafe impl ::windows::core::Interface for IProvideWinSATAssessmentInfo { pub struct IProvideWinSATAssessmentInfo_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub Score: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, score: *mut f32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Title: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, title: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Title: usize, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, + pub Title: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, title: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_AssessmentTool\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -470,11 +458,9 @@ impl IProvideWinSATResultsInfo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).SystemRating)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RatingStateDesc(&self) -> ::windows::core::Result { + pub unsafe fn RatingStateDesc(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RatingStateDesc)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RatingStateDesc)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -553,10 +539,7 @@ pub struct IProvideWinSATResultsInfo_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AssessmentDateTime: usize, pub SystemRating: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, level: *mut f32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub RatingStateDesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RatingStateDesc: usize, + pub RatingStateDesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_AssessmentTool\"`*"] #[repr(transparent)] @@ -619,15 +602,11 @@ pub struct IProvideWinSATVisuals_Vtbl { pub struct IQueryAllWinSATAssessments(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IQueryAllWinSATAssessments { - #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn get_AllXML<'a, P0, P1>(&self, xpath: P0, namespaces: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_System_Com\"`*"] + #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] + pub unsafe fn get_AllXML(&self, xpath: &::windows::core::BSTR, namespaces: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_AllXML)(::windows::core::Interface::as_raw(self), xpath.into().abi(), namespaces.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_AllXML)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(xpath), ::core::mem::transmute_copy(namespaces), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -696,9 +675,9 @@ unsafe impl ::windows::core::Interface for IQueryAllWinSATAssessments { #[doc(hidden)] pub struct IQueryAllWinSATAssessments_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub get_AllXML: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, xpath: ::core::mem::ManuallyDrop, namespaces: ::core::mem::ManuallyDrop, ppdomnodelist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] + pub get_AllXML: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, xpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, namespaces: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppdomnodelist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com")))] get_AllXML: usize, } #[doc = "*Required features: `\"Win32_System_AssessmentTool\"`*"] @@ -757,15 +736,11 @@ pub struct IQueryOEMWinSATCustomization_Vtbl { pub struct IQueryRecentWinSATAssessment(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IQueryRecentWinSATAssessment { - #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn get_XML<'a, P0, P1>(&self, xpath: P0, namespaces: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_Data_Xml_MsXml\"`, `\"Win32_System_Com\"`*"] + #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] + pub unsafe fn get_XML(&self, xpath: &::windows::core::BSTR, namespaces: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_XML)(::windows::core::Interface::as_raw(self), xpath.into().abi(), namespaces.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_XML)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(xpath), ::core::mem::transmute_copy(namespaces), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -840,9 +815,9 @@ unsafe impl ::windows::core::Interface for IQueryRecentWinSATAssessment { #[doc(hidden)] pub struct IQueryRecentWinSATAssessment_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub get_XML: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, xpath: ::core::mem::ManuallyDrop, namespaces: ::core::mem::ManuallyDrop, ppdomnodelist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com"))] + pub get_XML: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, xpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, namespaces: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppdomnodelist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_System_Com")))] get_XML: usize, #[cfg(feature = "Win32_System_Com")] pub Info: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwinsatassessmentinfo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/ChannelCredentials/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Com/ChannelCredentials/impl.rs index 4027a02143..327672a8cb 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/ChannelCredentials/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/ChannelCredentials/impl.rs @@ -1,67 +1,67 @@ #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] pub trait IChannelCredentials_Impl: Sized + super::IDispatch_Impl { - fn SetWindowsCredential(&self, domain: &super::super::super::Foundation::BSTR, username: &super::super::super::Foundation::BSTR, password: &super::super::super::Foundation::BSTR, impersonationlevel: i32, allowntlm: super::super::super::Foundation::BOOL) -> ::windows::core::Result<()>; - fn SetUserNameCredential(&self, username: &super::super::super::Foundation::BSTR, password: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetClientCertificateFromStore(&self, storelocation: &super::super::super::Foundation::BSTR, storename: &super::super::super::Foundation::BSTR, findyype: &super::super::super::Foundation::BSTR, findvalue: &super::VARIANT) -> ::windows::core::Result<()>; - fn SetClientCertificateFromStoreByName(&self, subjectname: &super::super::super::Foundation::BSTR, storelocation: &super::super::super::Foundation::BSTR, storename: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetClientCertificateFromFile(&self, filename: &super::super::super::Foundation::BSTR, password: &super::super::super::Foundation::BSTR, keystorageflags: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetDefaultServiceCertificateFromStore(&self, storelocation: &super::super::super::Foundation::BSTR, storename: &super::super::super::Foundation::BSTR, findtype: &super::super::super::Foundation::BSTR, findvalue: &super::VARIANT) -> ::windows::core::Result<()>; - fn SetDefaultServiceCertificateFromStoreByName(&self, subjectname: &super::super::super::Foundation::BSTR, storelocation: &super::super::super::Foundation::BSTR, storename: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetDefaultServiceCertificateFromFile(&self, filename: &super::super::super::Foundation::BSTR, password: &super::super::super::Foundation::BSTR, keystorageflags: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetServiceCertificateAuthentication(&self, storelocation: &super::super::super::Foundation::BSTR, revocationmode: &super::super::super::Foundation::BSTR, certificatevalidationmode: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetIssuedToken(&self, localissueraddres: &super::super::super::Foundation::BSTR, localissuerbindingtype: &super::super::super::Foundation::BSTR, localissuerbinding: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetWindowsCredential(&self, domain: &::windows::core::BSTR, username: &::windows::core::BSTR, password: &::windows::core::BSTR, impersonationlevel: i32, allowntlm: super::super::super::Foundation::BOOL) -> ::windows::core::Result<()>; + fn SetUserNameCredential(&self, username: &::windows::core::BSTR, password: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetClientCertificateFromStore(&self, storelocation: &::windows::core::BSTR, storename: &::windows::core::BSTR, findyype: &::windows::core::BSTR, findvalue: &super::VARIANT) -> ::windows::core::Result<()>; + fn SetClientCertificateFromStoreByName(&self, subjectname: &::windows::core::BSTR, storelocation: &::windows::core::BSTR, storename: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetClientCertificateFromFile(&self, filename: &::windows::core::BSTR, password: &::windows::core::BSTR, keystorageflags: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetDefaultServiceCertificateFromStore(&self, storelocation: &::windows::core::BSTR, storename: &::windows::core::BSTR, findtype: &::windows::core::BSTR, findvalue: &super::VARIANT) -> ::windows::core::Result<()>; + fn SetDefaultServiceCertificateFromStoreByName(&self, subjectname: &::windows::core::BSTR, storelocation: &::windows::core::BSTR, storename: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetDefaultServiceCertificateFromFile(&self, filename: &::windows::core::BSTR, password: &::windows::core::BSTR, keystorageflags: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetServiceCertificateAuthentication(&self, storelocation: &::windows::core::BSTR, revocationmode: &::windows::core::BSTR, certificatevalidationmode: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetIssuedToken(&self, localissueraddres: &::windows::core::BSTR, localissuerbindingtype: &::windows::core::BSTR, localissuerbinding: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IChannelCredentials {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] impl IChannelCredentials_Vtbl { pub const fn new, Impl: IChannelCredentials_Impl, const OFFSET: isize>() -> IChannelCredentials_Vtbl { - unsafe extern "system" fn SetWindowsCredential, Impl: IChannelCredentials_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, domain: ::core::mem::ManuallyDrop, username: ::core::mem::ManuallyDrop, password: ::core::mem::ManuallyDrop, impersonationlevel: i32, allowntlm: super::super::super::Foundation::BOOL) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetWindowsCredential, Impl: IChannelCredentials_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, domain: ::core::mem::ManuallyDrop<::windows::core::BSTR>, username: ::core::mem::ManuallyDrop<::windows::core::BSTR>, password: ::core::mem::ManuallyDrop<::windows::core::BSTR>, impersonationlevel: i32, allowntlm: super::super::super::Foundation::BOOL) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetWindowsCredential(::core::mem::transmute(&domain), ::core::mem::transmute(&username), ::core::mem::transmute(&password), ::core::mem::transmute_copy(&impersonationlevel), ::core::mem::transmute_copy(&allowntlm)).into() } - unsafe extern "system" fn SetUserNameCredential, Impl: IChannelCredentials_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, username: ::core::mem::ManuallyDrop, password: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetUserNameCredential, Impl: IChannelCredentials_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, username: ::core::mem::ManuallyDrop<::windows::core::BSTR>, password: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetUserNameCredential(::core::mem::transmute(&username), ::core::mem::transmute(&password)).into() } - unsafe extern "system" fn SetClientCertificateFromStore, Impl: IChannelCredentials_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, storelocation: ::core::mem::ManuallyDrop, storename: ::core::mem::ManuallyDrop, findyype: ::core::mem::ManuallyDrop, findvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetClientCertificateFromStore, Impl: IChannelCredentials_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, storelocation: ::core::mem::ManuallyDrop<::windows::core::BSTR>, storename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, findyype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, findvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetClientCertificateFromStore(::core::mem::transmute(&storelocation), ::core::mem::transmute(&storename), ::core::mem::transmute(&findyype), ::core::mem::transmute(&findvalue)).into() } - unsafe extern "system" fn SetClientCertificateFromStoreByName, Impl: IChannelCredentials_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, subjectname: ::core::mem::ManuallyDrop, storelocation: ::core::mem::ManuallyDrop, storename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetClientCertificateFromStoreByName, Impl: IChannelCredentials_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, subjectname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, storelocation: ::core::mem::ManuallyDrop<::windows::core::BSTR>, storename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetClientCertificateFromStoreByName(::core::mem::transmute(&subjectname), ::core::mem::transmute(&storelocation), ::core::mem::transmute(&storename)).into() } - unsafe extern "system" fn SetClientCertificateFromFile, Impl: IChannelCredentials_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop, password: ::core::mem::ManuallyDrop, keystorageflags: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetClientCertificateFromFile, Impl: IChannelCredentials_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, password: ::core::mem::ManuallyDrop<::windows::core::BSTR>, keystorageflags: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetClientCertificateFromFile(::core::mem::transmute(&filename), ::core::mem::transmute(&password), ::core::mem::transmute(&keystorageflags)).into() } - unsafe extern "system" fn SetDefaultServiceCertificateFromStore, Impl: IChannelCredentials_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, storelocation: ::core::mem::ManuallyDrop, storename: ::core::mem::ManuallyDrop, findtype: ::core::mem::ManuallyDrop, findvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDefaultServiceCertificateFromStore, Impl: IChannelCredentials_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, storelocation: ::core::mem::ManuallyDrop<::windows::core::BSTR>, storename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, findtype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, findvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDefaultServiceCertificateFromStore(::core::mem::transmute(&storelocation), ::core::mem::transmute(&storename), ::core::mem::transmute(&findtype), ::core::mem::transmute(&findvalue)).into() } - unsafe extern "system" fn SetDefaultServiceCertificateFromStoreByName, Impl: IChannelCredentials_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, subjectname: ::core::mem::ManuallyDrop, storelocation: ::core::mem::ManuallyDrop, storename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDefaultServiceCertificateFromStoreByName, Impl: IChannelCredentials_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, subjectname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, storelocation: ::core::mem::ManuallyDrop<::windows::core::BSTR>, storename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDefaultServiceCertificateFromStoreByName(::core::mem::transmute(&subjectname), ::core::mem::transmute(&storelocation), ::core::mem::transmute(&storename)).into() } - unsafe extern "system" fn SetDefaultServiceCertificateFromFile, Impl: IChannelCredentials_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop, password: ::core::mem::ManuallyDrop, keystorageflags: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDefaultServiceCertificateFromFile, Impl: IChannelCredentials_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, password: ::core::mem::ManuallyDrop<::windows::core::BSTR>, keystorageflags: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDefaultServiceCertificateFromFile(::core::mem::transmute(&filename), ::core::mem::transmute(&password), ::core::mem::transmute(&keystorageflags)).into() } - unsafe extern "system" fn SetServiceCertificateAuthentication, Impl: IChannelCredentials_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, storelocation: ::core::mem::ManuallyDrop, revocationmode: ::core::mem::ManuallyDrop, certificatevalidationmode: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetServiceCertificateAuthentication, Impl: IChannelCredentials_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, storelocation: ::core::mem::ManuallyDrop<::windows::core::BSTR>, revocationmode: ::core::mem::ManuallyDrop<::windows::core::BSTR>, certificatevalidationmode: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetServiceCertificateAuthentication(::core::mem::transmute(&storelocation), ::core::mem::transmute(&revocationmode), ::core::mem::transmute(&certificatevalidationmode)).into() } - unsafe extern "system" fn SetIssuedToken, Impl: IChannelCredentials_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, localissueraddres: ::core::mem::ManuallyDrop, localissuerbindingtype: ::core::mem::ManuallyDrop, localissuerbinding: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetIssuedToken, Impl: IChannelCredentials_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, localissueraddres: ::core::mem::ManuallyDrop<::windows::core::BSTR>, localissuerbindingtype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, localissuerbinding: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetIssuedToken(::core::mem::transmute(&localissueraddres), ::core::mem::transmute(&localissuerbindingtype), ::core::mem::transmute(&localissuerbinding)).into() diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/ChannelCredentials/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Com/ChannelCredentials/mod.rs index 051c866d51..e74f6c38c3 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/ChannelCredentials/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/ChannelCredentials/mod.rs @@ -4,105 +4,48 @@ pub struct IChannelCredentials(::windows::core::IUnknown); impl IChannelCredentials { #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetWindowsCredential<'a, P0, P1, P2, P3>(&self, domain: P0, username: P1, password: P2, impersonationlevel: i32, allowntlm: P3) -> ::windows::core::Result<()> + pub unsafe fn SetWindowsCredential<'a, P0>(&self, domain: &::windows::core::BSTR, username: &::windows::core::BSTR, password: &::windows::core::BSTR, impersonationlevel: i32, allowntlm: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P3: ::std::convert::Into, + P0: ::std::convert::Into, { - (::windows::core::Interface::vtable(self).SetWindowsCredential)(::windows::core::Interface::as_raw(self), domain.into().abi(), username.into().abi(), password.into().abi(), impersonationlevel, allowntlm.into()).ok() + (::windows::core::Interface::vtable(self).SetWindowsCredential)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(domain), ::core::mem::transmute_copy(username), ::core::mem::transmute_copy(password), impersonationlevel, allowntlm.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetUserNameCredential<'a, P0, P1>(&self, username: P0, password: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetUserNameCredential)(::windows::core::Interface::as_raw(self), username.into().abi(), password.into().abi()).ok() + pub unsafe fn SetUserNameCredential(&self, username: &::windows::core::BSTR, password: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetUserNameCredential)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(username), ::core::mem::transmute_copy(password)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] - pub unsafe fn SetClientCertificateFromStore<'a, P0, P1, P2, P3>(&self, storelocation: P0, storename: P1, findyype: P2, findvalue: P3) -> ::windows::core::Result<()> + pub unsafe fn SetClientCertificateFromStore<'a, P0>(&self, storelocation: &::windows::core::BSTR, storename: &::windows::core::BSTR, findyype: &::windows::core::BSTR, findvalue: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::VARIANT>>, { - (::windows::core::Interface::vtable(self).SetClientCertificateFromStore)(::windows::core::Interface::as_raw(self), storelocation.into().abi(), storename.into().abi(), findyype.into().abi(), findvalue.into().abi()).ok() + (::windows::core::Interface::vtable(self).SetClientCertificateFromStore)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(storelocation), ::core::mem::transmute_copy(storename), ::core::mem::transmute_copy(findyype), findvalue.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetClientCertificateFromStoreByName<'a, P0, P1, P2>(&self, subjectname: P0, storelocation: P1, storename: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetClientCertificateFromStoreByName)(::windows::core::Interface::as_raw(self), subjectname.into().abi(), storelocation.into().abi(), storename.into().abi()).ok() + pub unsafe fn SetClientCertificateFromStoreByName(&self, subjectname: &::windows::core::BSTR, storelocation: &::windows::core::BSTR, storename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetClientCertificateFromStoreByName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(subjectname), ::core::mem::transmute_copy(storelocation), ::core::mem::transmute_copy(storename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetClientCertificateFromFile<'a, P0, P1, P2>(&self, filename: P0, password: P1, keystorageflags: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetClientCertificateFromFile)(::windows::core::Interface::as_raw(self), filename.into().abi(), password.into().abi(), keystorageflags.into().abi()).ok() + pub unsafe fn SetClientCertificateFromFile(&self, filename: &::windows::core::BSTR, password: &::windows::core::BSTR, keystorageflags: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetClientCertificateFromFile)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(filename), ::core::mem::transmute_copy(password), ::core::mem::transmute_copy(keystorageflags)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] - pub unsafe fn SetDefaultServiceCertificateFromStore<'a, P0, P1, P2, P3>(&self, storelocation: P0, storename: P1, findtype: P2, findvalue: P3) -> ::windows::core::Result<()> + pub unsafe fn SetDefaultServiceCertificateFromStore<'a, P0>(&self, storelocation: &::windows::core::BSTR, storename: &::windows::core::BSTR, findtype: &::windows::core::BSTR, findvalue: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::VARIANT>>, { - (::windows::core::Interface::vtable(self).SetDefaultServiceCertificateFromStore)(::windows::core::Interface::as_raw(self), storelocation.into().abi(), storename.into().abi(), findtype.into().abi(), findvalue.into().abi()).ok() + (::windows::core::Interface::vtable(self).SetDefaultServiceCertificateFromStore)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(storelocation), ::core::mem::transmute_copy(storename), ::core::mem::transmute_copy(findtype), findvalue.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDefaultServiceCertificateFromStoreByName<'a, P0, P1, P2>(&self, subjectname: P0, storelocation: P1, storename: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDefaultServiceCertificateFromStoreByName)(::windows::core::Interface::as_raw(self), subjectname.into().abi(), storelocation.into().abi(), storename.into().abi()).ok() + pub unsafe fn SetDefaultServiceCertificateFromStoreByName(&self, subjectname: &::windows::core::BSTR, storelocation: &::windows::core::BSTR, storename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDefaultServiceCertificateFromStoreByName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(subjectname), ::core::mem::transmute_copy(storelocation), ::core::mem::transmute_copy(storename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDefaultServiceCertificateFromFile<'a, P0, P1, P2>(&self, filename: P0, password: P1, keystorageflags: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDefaultServiceCertificateFromFile)(::windows::core::Interface::as_raw(self), filename.into().abi(), password.into().abi(), keystorageflags.into().abi()).ok() + pub unsafe fn SetDefaultServiceCertificateFromFile(&self, filename: &::windows::core::BSTR, password: &::windows::core::BSTR, keystorageflags: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDefaultServiceCertificateFromFile)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(filename), ::core::mem::transmute_copy(password), ::core::mem::transmute_copy(keystorageflags)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetServiceCertificateAuthentication<'a, P0, P1, P2>(&self, storelocation: P0, revocationmode: P1, certificatevalidationmode: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetServiceCertificateAuthentication)(::windows::core::Interface::as_raw(self), storelocation.into().abi(), revocationmode.into().abi(), certificatevalidationmode.into().abi()).ok() + pub unsafe fn SetServiceCertificateAuthentication(&self, storelocation: &::windows::core::BSTR, revocationmode: &::windows::core::BSTR, certificatevalidationmode: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetServiceCertificateAuthentication)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(storelocation), ::core::mem::transmute_copy(revocationmode), ::core::mem::transmute_copy(certificatevalidationmode)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetIssuedToken<'a, P0, P1, P2>(&self, localissueraddres: P0, localissuerbindingtype: P1, localissuerbinding: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetIssuedToken)(::windows::core::Interface::as_raw(self), localissueraddres.into().abi(), localissuerbindingtype.into().abi(), localissuerbinding.into().abi()).ok() + pub unsafe fn SetIssuedToken(&self, localissueraddres: &::windows::core::BSTR, localissuerbindingtype: &::windows::core::BSTR, localissuerbinding: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetIssuedToken)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(localissueraddres), ::core::mem::transmute_copy(localissuerbindingtype), ::core::mem::transmute_copy(localissuerbinding)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -160,45 +103,24 @@ unsafe impl ::windows::core::Interface for IChannelCredentials { pub struct IChannelCredentials_Vtbl { pub base__: super::IDispatch_Vtbl, #[cfg(feature = "Win32_Foundation")] - pub SetWindowsCredential: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, domain: ::core::mem::ManuallyDrop, username: ::core::mem::ManuallyDrop, password: ::core::mem::ManuallyDrop, impersonationlevel: i32, allowntlm: super::super::super::Foundation::BOOL) -> ::windows::core::HRESULT, + pub SetWindowsCredential: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, domain: ::core::mem::ManuallyDrop<::windows::core::BSTR>, username: ::core::mem::ManuallyDrop<::windows::core::BSTR>, password: ::core::mem::ManuallyDrop<::windows::core::BSTR>, impersonationlevel: i32, allowntlm: super::super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] SetWindowsCredential: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetUserNameCredential: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, username: ::core::mem::ManuallyDrop, password: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetUserNameCredential: usize, + pub SetUserNameCredential: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, username: ::core::mem::ManuallyDrop<::windows::core::BSTR>, password: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] - pub SetClientCertificateFromStore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, storelocation: ::core::mem::ManuallyDrop, storename: ::core::mem::ManuallyDrop, findyype: ::core::mem::ManuallyDrop, findvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub SetClientCertificateFromStore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, storelocation: ::core::mem::ManuallyDrop<::windows::core::BSTR>, storename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, findyype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, findvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Ole")))] SetClientCertificateFromStore: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetClientCertificateFromStoreByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, subjectname: ::core::mem::ManuallyDrop, storelocation: ::core::mem::ManuallyDrop, storename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetClientCertificateFromStoreByName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetClientCertificateFromFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop, password: ::core::mem::ManuallyDrop, keystorageflags: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetClientCertificateFromFile: usize, + pub SetClientCertificateFromStoreByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, subjectname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, storelocation: ::core::mem::ManuallyDrop<::windows::core::BSTR>, storename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetClientCertificateFromFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, password: ::core::mem::ManuallyDrop<::windows::core::BSTR>, keystorageflags: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] - pub SetDefaultServiceCertificateFromStore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, storelocation: ::core::mem::ManuallyDrop, storename: ::core::mem::ManuallyDrop, findtype: ::core::mem::ManuallyDrop, findvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub SetDefaultServiceCertificateFromStore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, storelocation: ::core::mem::ManuallyDrop<::windows::core::BSTR>, storename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, findtype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, findvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Ole")))] SetDefaultServiceCertificateFromStore: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDefaultServiceCertificateFromStoreByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, subjectname: ::core::mem::ManuallyDrop, storelocation: ::core::mem::ManuallyDrop, storename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDefaultServiceCertificateFromStoreByName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDefaultServiceCertificateFromFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop, password: ::core::mem::ManuallyDrop, keystorageflags: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDefaultServiceCertificateFromFile: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetServiceCertificateAuthentication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, storelocation: ::core::mem::ManuallyDrop, revocationmode: ::core::mem::ManuallyDrop, certificatevalidationmode: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetServiceCertificateAuthentication: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetIssuedToken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, localissueraddres: ::core::mem::ManuallyDrop, localissuerbindingtype: ::core::mem::ManuallyDrop, localissuerbinding: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetIssuedToken: usize, + pub SetDefaultServiceCertificateFromStoreByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, subjectname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, storelocation: ::core::mem::ManuallyDrop<::windows::core::BSTR>, storename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDefaultServiceCertificateFromFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, password: ::core::mem::ManuallyDrop<::windows::core::BSTR>, keystorageflags: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetServiceCertificateAuthentication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, storelocation: ::core::mem::ManuallyDrop<::windows::core::BSTR>, revocationmode: ::core::mem::ManuallyDrop<::windows::core::BSTR>, certificatevalidationmode: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetIssuedToken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, localissueraddres: ::core::mem::ManuallyDrop<::windows::core::BSTR>, localissuerbindingtype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, localissuerbinding: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[cfg(feature = "implement")] ::core::include!("impl.rs"); diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/Events/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Com/Events/impl.rs index 07e5d43ced..b9dc3726f8 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/Events/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/Events/impl.rs @@ -57,27 +57,27 @@ impl IEnumEventObject_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] pub trait IEventClass_Impl: Sized + super::IDispatch_Impl { - fn EventClassID(&self) -> ::windows::core::Result; - fn SetEventClassID(&self, bstreventclassid: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn EventClassName(&self) -> ::windows::core::Result; - fn SetEventClassName(&self, bstreventclassname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn OwnerSID(&self) -> ::windows::core::Result; - fn SetOwnerSID(&self, bstrownersid: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn FiringInterfaceID(&self) -> ::windows::core::Result; - fn SetFiringInterfaceID(&self, bstrfiringinterfaceid: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Description(&self) -> ::windows::core::Result; - fn SetDescription(&self, bstrdescription: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn CustomConfigCLSID(&self) -> ::windows::core::Result; - fn SetCustomConfigCLSID(&self, bstrcustomconfigclsid: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn TypeLib(&self) -> ::windows::core::Result; - fn SetTypeLib(&self, bstrtypelib: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn EventClassID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetEventClassID(&self, bstreventclassid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn EventClassName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetEventClassName(&self, bstreventclassname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn OwnerSID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetOwnerSID(&self, bstrownersid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn FiringInterfaceID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetFiringInterfaceID(&self, bstrfiringinterfaceid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn CustomConfigCLSID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetCustomConfigCLSID(&self, bstrcustomconfigclsid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn TypeLib(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetTypeLib(&self, bstrtypelib: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IEventClass {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] impl IEventClass_Vtbl { pub const fn new, Impl: IEventClass_Impl, const OFFSET: isize>() -> IEventClass_Vtbl { - unsafe extern "system" fn EventClassID, Impl: IEventClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstreventclassid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn EventClassID, Impl: IEventClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstreventclassid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EventClassID() { @@ -88,12 +88,12 @@ impl IEventClass_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetEventClassID, Impl: IEventClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstreventclassid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetEventClassID, Impl: IEventClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstreventclassid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetEventClassID(::core::mem::transmute(&bstreventclassid)).into() } - unsafe extern "system" fn EventClassName, Impl: IEventClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstreventclassname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn EventClassName, Impl: IEventClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstreventclassname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EventClassName() { @@ -104,12 +104,12 @@ impl IEventClass_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetEventClassName, Impl: IEventClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstreventclassname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetEventClassName, Impl: IEventClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstreventclassname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetEventClassName(::core::mem::transmute(&bstreventclassname)).into() } - unsafe extern "system" fn OwnerSID, Impl: IEventClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrownersid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn OwnerSID, Impl: IEventClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrownersid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OwnerSID() { @@ -120,12 +120,12 @@ impl IEventClass_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetOwnerSID, Impl: IEventClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrownersid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetOwnerSID, Impl: IEventClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrownersid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetOwnerSID(::core::mem::transmute(&bstrownersid)).into() } - unsafe extern "system" fn FiringInterfaceID, Impl: IEventClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfiringinterfaceid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FiringInterfaceID, Impl: IEventClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfiringinterfaceid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FiringInterfaceID() { @@ -136,12 +136,12 @@ impl IEventClass_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetFiringInterfaceID, Impl: IEventClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfiringinterfaceid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetFiringInterfaceID, Impl: IEventClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfiringinterfaceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetFiringInterfaceID(::core::mem::transmute(&bstrfiringinterfaceid)).into() } - unsafe extern "system" fn Description, Impl: IEventClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IEventClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -152,12 +152,12 @@ impl IEventClass_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription, Impl: IEventClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDescription, Impl: IEventClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDescription(::core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn CustomConfigCLSID, Impl: IEventClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcustomconfigclsid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CustomConfigCLSID, Impl: IEventClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcustomconfigclsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CustomConfigCLSID() { @@ -168,12 +168,12 @@ impl IEventClass_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetCustomConfigCLSID, Impl: IEventClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcustomconfigclsid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCustomConfigCLSID, Impl: IEventClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcustomconfigclsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCustomConfigCLSID(::core::mem::transmute(&bstrcustomconfigclsid)).into() } - unsafe extern "system" fn TypeLib, Impl: IEventClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtypelib: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TypeLib, Impl: IEventClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtypelib: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TypeLib() { @@ -184,7 +184,7 @@ impl IEventClass_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetTypeLib, Impl: IEventClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtypelib: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetTypeLib, Impl: IEventClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtypelib: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetTypeLib(::core::mem::transmute(&bstrtypelib)).into() @@ -213,10 +213,10 @@ impl IEventClass_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] pub trait IEventClass2_Impl: Sized + super::IDispatch_Impl + IEventClass_Impl { - fn PublisherID(&self) -> ::windows::core::Result; - fn SetPublisherID(&self, bstrpublisherid: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn MultiInterfacePublisherFilterCLSID(&self) -> ::windows::core::Result; - fn SetMultiInterfacePublisherFilterCLSID(&self, bstrpubfilclsid: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn PublisherID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetPublisherID(&self, bstrpublisherid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn MultiInterfacePublisherFilterCLSID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetMultiInterfacePublisherFilterCLSID(&self, bstrpubfilclsid: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn AllowInprocActivation(&self) -> ::windows::core::Result; fn SetAllowInprocActivation(&self, fallowinprocactivation: super::super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn FireInParallel(&self) -> ::windows::core::Result; @@ -227,7 +227,7 @@ impl ::windows::core::RuntimeName for IEventClass2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] impl IEventClass2_Vtbl { pub const fn new, Impl: IEventClass2_Impl, const OFFSET: isize>() -> IEventClass2_Vtbl { - unsafe extern "system" fn PublisherID, Impl: IEventClass2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpublisherid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PublisherID, Impl: IEventClass2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpublisherid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PublisherID() { @@ -238,12 +238,12 @@ impl IEventClass2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPublisherID, Impl: IEventClass2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpublisherid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPublisherID, Impl: IEventClass2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpublisherid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPublisherID(::core::mem::transmute(&bstrpublisherid)).into() } - unsafe extern "system" fn MultiInterfacePublisherFilterCLSID, Impl: IEventClass2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpubfilclsid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn MultiInterfacePublisherFilterCLSID, Impl: IEventClass2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpubfilclsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.MultiInterfacePublisherFilterCLSID() { @@ -254,7 +254,7 @@ impl IEventClass2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetMultiInterfacePublisherFilterCLSID, Impl: IEventClass2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpubfilclsid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetMultiInterfacePublisherFilterCLSID, Impl: IEventClass2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpubfilclsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetMultiInterfacePublisherFilterCLSID(::core::mem::transmute(&bstrpubfilclsid)).into() @@ -309,18 +309,18 @@ impl IEventClass2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] pub trait IEventControl_Impl: Sized + super::IDispatch_Impl { - fn SetPublisherFilter(&self, methodname: &super::super::super::Foundation::BSTR, ppublisherfilter: &::core::option::Option) -> ::windows::core::Result<()>; + fn SetPublisherFilter(&self, methodname: &::windows::core::BSTR, ppublisherfilter: &::core::option::Option) -> ::windows::core::Result<()>; fn AllowInprocActivation(&self) -> ::windows::core::Result; fn SetAllowInprocActivation(&self, fallowinprocactivation: super::super::super::Foundation::BOOL) -> ::windows::core::Result<()>; - fn GetSubscriptions(&self, methodname: &super::super::super::Foundation::BSTR, optionalcriteria: &super::super::super::Foundation::BSTR, optionalerrorindex: *const i32) -> ::windows::core::Result; - fn SetDefaultQuery(&self, methodname: &super::super::super::Foundation::BSTR, criteria: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetSubscriptions(&self, methodname: &::windows::core::BSTR, optionalcriteria: &::windows::core::BSTR, optionalerrorindex: *const i32) -> ::windows::core::Result; + fn SetDefaultQuery(&self, methodname: &::windows::core::BSTR, criteria: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IEventControl {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] impl IEventControl_Vtbl { pub const fn new, Impl: IEventControl_Impl, const OFFSET: isize>() -> IEventControl_Vtbl { - unsafe extern "system" fn SetPublisherFilter, Impl: IEventControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, methodname: ::core::mem::ManuallyDrop, ppublisherfilter: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPublisherFilter, Impl: IEventControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, methodname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppublisherfilter: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPublisherFilter(::core::mem::transmute(&methodname), ::core::mem::transmute(&ppublisherfilter)).into() @@ -341,7 +341,7 @@ impl IEventControl_Vtbl { let this = (*this).get_impl(); this.SetAllowInprocActivation(::core::mem::transmute_copy(&fallowinprocactivation)).into() } - unsafe extern "system" fn GetSubscriptions, Impl: IEventControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, methodname: ::core::mem::ManuallyDrop, optionalcriteria: ::core::mem::ManuallyDrop, optionalerrorindex: *const i32, ppcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSubscriptions, Impl: IEventControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, methodname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, optionalcriteria: ::core::mem::ManuallyDrop<::windows::core::BSTR>, optionalerrorindex: *const i32, ppcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetSubscriptions(::core::mem::transmute(&methodname), ::core::mem::transmute(&optionalcriteria), ::core::mem::transmute_copy(&optionalerrorindex)) { @@ -352,7 +352,7 @@ impl IEventControl_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDefaultQuery, Impl: IEventControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, methodname: ::core::mem::ManuallyDrop, criteria: ::core::mem::ManuallyDrop, errorindex: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDefaultQuery, Impl: IEventControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, methodname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, criteria: ::core::mem::ManuallyDrop<::windows::core::BSTR>, errorindex: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SetDefaultQuery(::core::mem::transmute(&methodname), ::core::mem::transmute(&criteria)) { @@ -376,28 +376,25 @@ impl IEventControl_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IEventObjectChange_Impl: Sized { - fn ChangedSubscription(&self, changetype: EOC_ChangeType, bstrsubscriptionid: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ChangedEventClass(&self, changetype: EOC_ChangeType, bstreventclassid: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ChangedPublisher(&self, changetype: EOC_ChangeType, bstrpublisherid: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ChangedSubscription(&self, changetype: EOC_ChangeType, bstrsubscriptionid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ChangedEventClass(&self, changetype: EOC_ChangeType, bstreventclassid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ChangedPublisher(&self, changetype: EOC_ChangeType, bstrpublisherid: &::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IEventObjectChange {} -#[cfg(feature = "Win32_Foundation")] impl IEventObjectChange_Vtbl { pub const fn new, Impl: IEventObjectChange_Impl, const OFFSET: isize>() -> IEventObjectChange_Vtbl { - unsafe extern "system" fn ChangedSubscription, Impl: IEventObjectChange_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, changetype: EOC_ChangeType, bstrsubscriptionid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ChangedSubscription, Impl: IEventObjectChange_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, changetype: EOC_ChangeType, bstrsubscriptionid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ChangedSubscription(::core::mem::transmute_copy(&changetype), ::core::mem::transmute(&bstrsubscriptionid)).into() } - unsafe extern "system" fn ChangedEventClass, Impl: IEventObjectChange_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, changetype: EOC_ChangeType, bstreventclassid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ChangedEventClass, Impl: IEventObjectChange_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, changetype: EOC_ChangeType, bstreventclassid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ChangedEventClass(::core::mem::transmute_copy(&changetype), ::core::mem::transmute(&bstreventclassid)).into() } - unsafe extern "system" fn ChangedPublisher, Impl: IEventObjectChange_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, changetype: EOC_ChangeType, bstrpublisherid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ChangedPublisher, Impl: IEventObjectChange_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, changetype: EOC_ChangeType, bstrpublisherid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ChangedPublisher(::core::mem::transmute_copy(&changetype), ::core::mem::transmute(&bstrpublisherid)).into() @@ -413,14 +410,11 @@ impl IEventObjectChange_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IEventObjectChange2_Impl: Sized { fn ChangedSubscription(&self, pinfo: *const COMEVENTSYSCHANGEINFO) -> ::windows::core::Result<()>; fn ChangedEventClass(&self, pinfo: *const COMEVENTSYSCHANGEINFO) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IEventObjectChange2 {} -#[cfg(feature = "Win32_Foundation")] impl IEventObjectChange2_Vtbl { pub const fn new, Impl: IEventObjectChange2_Impl, const OFFSET: isize>() -> IEventObjectChange2_Vtbl { unsafe extern "system" fn ChangedSubscription, Impl: IEventObjectChange2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pinfo: *const COMEVENTSYSCHANGEINFO) -> ::windows::core::HRESULT { @@ -446,11 +440,11 @@ impl IEventObjectChange2_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] pub trait IEventObjectCollection_Impl: Sized + super::IDispatch_Impl { fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; - fn get_Item(&self, objectid: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; + fn get_Item(&self, objectid: &::windows::core::BSTR) -> ::windows::core::Result; fn NewEnum(&self) -> ::windows::core::Result; fn Count(&self) -> ::windows::core::Result; - fn Add(&self, item: *const super::VARIANT, objectid: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Remove(&self, objectid: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Add(&self, item: *const super::VARIANT, objectid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Remove(&self, objectid: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IEventObjectCollection {} @@ -468,7 +462,7 @@ impl IEventObjectCollection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_Item, Impl: IEventObjectCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, objectid: ::core::mem::ManuallyDrop, pitem: *mut super::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Item, Impl: IEventObjectCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, objectid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pitem: *mut super::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_Item(::core::mem::transmute(&objectid)) { @@ -501,12 +495,12 @@ impl IEventObjectCollection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Add, Impl: IEventObjectCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, item: *const super::VARIANT, objectid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Add, Impl: IEventObjectCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, item: *const super::VARIANT, objectid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Add(::core::mem::transmute_copy(&item), ::core::mem::transmute(&objectid)).into() } - unsafe extern "system" fn Remove, Impl: IEventObjectCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, objectid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Remove, Impl: IEventObjectCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, objectid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Remove(::core::mem::transmute(&objectid)).into() @@ -527,8 +521,8 @@ impl IEventObjectCollection_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] pub trait IEventProperty_Impl: Sized + super::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; - fn SetName(&self, propertyname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetName(&self, propertyname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Value(&self) -> ::windows::core::Result; fn SetValue(&self, propertyvalue: *const super::VARIANT) -> ::windows::core::Result<()>; } @@ -537,7 +531,7 @@ impl ::windows::core::RuntimeName for IEventProperty {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] impl IEventProperty_Vtbl { pub const fn new, Impl: IEventProperty_Impl, const OFFSET: isize>() -> IEventProperty_Vtbl { - unsafe extern "system" fn Name, Impl: IEventProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertyname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IEventProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertyname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -548,7 +542,7 @@ impl IEventProperty_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetName, Impl: IEventProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: IEventProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&propertyname)).into() @@ -583,19 +577,19 @@ impl IEventProperty_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] pub trait IEventPublisher_Impl: Sized + super::IDispatch_Impl { - fn PublisherID(&self) -> ::windows::core::Result; - fn SetPublisherID(&self, bstrpublisherid: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn PublisherName(&self) -> ::windows::core::Result; - fn SetPublisherName(&self, bstrpublishername: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn PublisherType(&self) -> ::windows::core::Result; - fn SetPublisherType(&self, bstrpublishertype: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn OwnerSID(&self) -> ::windows::core::Result; - fn SetOwnerSID(&self, bstrownersid: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Description(&self) -> ::windows::core::Result; - fn SetDescription(&self, bstrdescription: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetDefaultProperty(&self, bstrpropertyname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn PutDefaultProperty(&self, bstrpropertyname: &super::super::super::Foundation::BSTR, propertyvalue: *const super::VARIANT) -> ::windows::core::Result<()>; - fn RemoveDefaultProperty(&self, bstrpropertyname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn PublisherID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetPublisherID(&self, bstrpublisherid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn PublisherName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetPublisherName(&self, bstrpublishername: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn PublisherType(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetPublisherType(&self, bstrpublishertype: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn OwnerSID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetOwnerSID(&self, bstrownersid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetDefaultProperty(&self, bstrpropertyname: &::windows::core::BSTR) -> ::windows::core::Result; + fn PutDefaultProperty(&self, bstrpropertyname: &::windows::core::BSTR, propertyvalue: *const super::VARIANT) -> ::windows::core::Result<()>; + fn RemoveDefaultProperty(&self, bstrpropertyname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetDefaultPropertyCollection(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] @@ -603,7 +597,7 @@ impl ::windows::core::RuntimeName for IEventPublisher {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] impl IEventPublisher_Vtbl { pub const fn new, Impl: IEventPublisher_Impl, const OFFSET: isize>() -> IEventPublisher_Vtbl { - unsafe extern "system" fn PublisherID, Impl: IEventPublisher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpublisherid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PublisherID, Impl: IEventPublisher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpublisherid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PublisherID() { @@ -614,12 +608,12 @@ impl IEventPublisher_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPublisherID, Impl: IEventPublisher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpublisherid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPublisherID, Impl: IEventPublisher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpublisherid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPublisherID(::core::mem::transmute(&bstrpublisherid)).into() } - unsafe extern "system" fn PublisherName, Impl: IEventPublisher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpublishername: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PublisherName, Impl: IEventPublisher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpublishername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PublisherName() { @@ -630,12 +624,12 @@ impl IEventPublisher_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPublisherName, Impl: IEventPublisher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpublishername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPublisherName, Impl: IEventPublisher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpublishername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPublisherName(::core::mem::transmute(&bstrpublishername)).into() } - unsafe extern "system" fn PublisherType, Impl: IEventPublisher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpublishertype: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PublisherType, Impl: IEventPublisher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpublishertype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PublisherType() { @@ -646,12 +640,12 @@ impl IEventPublisher_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPublisherType, Impl: IEventPublisher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpublishertype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPublisherType, Impl: IEventPublisher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpublishertype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPublisherType(::core::mem::transmute(&bstrpublishertype)).into() } - unsafe extern "system" fn OwnerSID, Impl: IEventPublisher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrownersid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn OwnerSID, Impl: IEventPublisher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrownersid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OwnerSID() { @@ -662,12 +656,12 @@ impl IEventPublisher_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetOwnerSID, Impl: IEventPublisher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrownersid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetOwnerSID, Impl: IEventPublisher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrownersid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetOwnerSID(::core::mem::transmute(&bstrownersid)).into() } - unsafe extern "system" fn Description, Impl: IEventPublisher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IEventPublisher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -678,12 +672,12 @@ impl IEventPublisher_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription, Impl: IEventPublisher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDescription, Impl: IEventPublisher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDescription(::core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn GetDefaultProperty, Impl: IEventPublisher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop, propertyvalue: *mut super::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDefaultProperty, Impl: IEventPublisher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyvalue: *mut super::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDefaultProperty(::core::mem::transmute(&bstrpropertyname)) { @@ -694,12 +688,12 @@ impl IEventPublisher_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn PutDefaultProperty, Impl: IEventPublisher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop, propertyvalue: *const super::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn PutDefaultProperty, Impl: IEventPublisher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyvalue: *const super::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.PutDefaultProperty(::core::mem::transmute(&bstrpropertyname), ::core::mem::transmute_copy(&propertyvalue)).into() } - unsafe extern "system" fn RemoveDefaultProperty, Impl: IEventPublisher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn RemoveDefaultProperty, Impl: IEventPublisher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RemoveDefaultProperty(::core::mem::transmute(&bstrpropertyname)).into() @@ -739,47 +733,47 @@ impl IEventPublisher_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] pub trait IEventSubscription_Impl: Sized + super::IDispatch_Impl { - fn SubscriptionID(&self) -> ::windows::core::Result; - fn SetSubscriptionID(&self, bstrsubscriptionid: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SubscriptionName(&self) -> ::windows::core::Result; - fn SetSubscriptionName(&self, bstrsubscriptionname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn PublisherID(&self) -> ::windows::core::Result; - fn SetPublisherID(&self, bstrpublisherid: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn EventClassID(&self) -> ::windows::core::Result; - fn SetEventClassID(&self, bstreventclassid: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn MethodName(&self) -> ::windows::core::Result; - fn SetMethodName(&self, bstrmethodname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SubscriberCLSID(&self) -> ::windows::core::Result; - fn SetSubscriberCLSID(&self, bstrsubscriberclsid: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SubscriptionID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetSubscriptionID(&self, bstrsubscriptionid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SubscriptionName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetSubscriptionName(&self, bstrsubscriptionname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn PublisherID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetPublisherID(&self, bstrpublisherid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn EventClassID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetEventClassID(&self, bstreventclassid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn MethodName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetMethodName(&self, bstrmethodname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SubscriberCLSID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetSubscriberCLSID(&self, bstrsubscriberclsid: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SubscriberInterface(&self) -> ::windows::core::Result<::windows::core::IUnknown>; fn SetSubscriberInterface(&self, psubscriberinterface: &::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result<()>; fn PerUser(&self) -> ::windows::core::Result; fn SetPerUser(&self, fperuser: super::super::super::Foundation::BOOL) -> ::windows::core::Result<()>; - fn OwnerSID(&self) -> ::windows::core::Result; - fn SetOwnerSID(&self, bstrownersid: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn OwnerSID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetOwnerSID(&self, bstrownersid: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Enabled(&self) -> ::windows::core::Result; fn SetEnabled(&self, fenabled: super::super::super::Foundation::BOOL) -> ::windows::core::Result<()>; - fn Description(&self) -> ::windows::core::Result; - fn SetDescription(&self, bstrdescription: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn MachineName(&self) -> ::windows::core::Result; - fn SetMachineName(&self, bstrmachinename: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetPublisherProperty(&self, bstrpropertyname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn PutPublisherProperty(&self, bstrpropertyname: &super::super::super::Foundation::BSTR, propertyvalue: *const super::VARIANT) -> ::windows::core::Result<()>; - fn RemovePublisherProperty(&self, bstrpropertyname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn MachineName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetMachineName(&self, bstrmachinename: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetPublisherProperty(&self, bstrpropertyname: &::windows::core::BSTR) -> ::windows::core::Result; + fn PutPublisherProperty(&self, bstrpropertyname: &::windows::core::BSTR, propertyvalue: *const super::VARIANT) -> ::windows::core::Result<()>; + fn RemovePublisherProperty(&self, bstrpropertyname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetPublisherPropertyCollection(&self) -> ::windows::core::Result; - fn GetSubscriberProperty(&self, bstrpropertyname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn PutSubscriberProperty(&self, bstrpropertyname: &super::super::super::Foundation::BSTR, propertyvalue: *const super::VARIANT) -> ::windows::core::Result<()>; - fn RemoveSubscriberProperty(&self, bstrpropertyname: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetSubscriberProperty(&self, bstrpropertyname: &::windows::core::BSTR) -> ::windows::core::Result; + fn PutSubscriberProperty(&self, bstrpropertyname: &::windows::core::BSTR, propertyvalue: *const super::VARIANT) -> ::windows::core::Result<()>; + fn RemoveSubscriberProperty(&self, bstrpropertyname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetSubscriberPropertyCollection(&self) -> ::windows::core::Result; - fn InterfaceID(&self) -> ::windows::core::Result; - fn SetInterfaceID(&self, bstrinterfaceid: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn InterfaceID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetInterfaceID(&self, bstrinterfaceid: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IEventSubscription {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] impl IEventSubscription_Vtbl { pub const fn new, Impl: IEventSubscription_Impl, const OFFSET: isize>() -> IEventSubscription_Vtbl { - unsafe extern "system" fn SubscriptionID, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsubscriptionid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SubscriptionID, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsubscriptionid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SubscriptionID() { @@ -790,12 +784,12 @@ impl IEventSubscription_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSubscriptionID, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsubscriptionid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSubscriptionID, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsubscriptionid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSubscriptionID(::core::mem::transmute(&bstrsubscriptionid)).into() } - unsafe extern "system" fn SubscriptionName, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsubscriptionname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SubscriptionName, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsubscriptionname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SubscriptionName() { @@ -806,12 +800,12 @@ impl IEventSubscription_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSubscriptionName, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsubscriptionname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSubscriptionName, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsubscriptionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSubscriptionName(::core::mem::transmute(&bstrsubscriptionname)).into() } - unsafe extern "system" fn PublisherID, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpublisherid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PublisherID, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpublisherid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PublisherID() { @@ -822,12 +816,12 @@ impl IEventSubscription_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPublisherID, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpublisherid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPublisherID, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpublisherid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPublisherID(::core::mem::transmute(&bstrpublisherid)).into() } - unsafe extern "system" fn EventClassID, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstreventclassid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn EventClassID, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstreventclassid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EventClassID() { @@ -838,12 +832,12 @@ impl IEventSubscription_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetEventClassID, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstreventclassid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetEventClassID, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstreventclassid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetEventClassID(::core::mem::transmute(&bstreventclassid)).into() } - unsafe extern "system" fn MethodName, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrmethodname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn MethodName, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrmethodname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.MethodName() { @@ -854,12 +848,12 @@ impl IEventSubscription_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetMethodName, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmethodname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetMethodName, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmethodname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetMethodName(::core::mem::transmute(&bstrmethodname)).into() } - unsafe extern "system" fn SubscriberCLSID, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsubscriberclsid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SubscriberCLSID, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsubscriberclsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SubscriberCLSID() { @@ -870,7 +864,7 @@ impl IEventSubscription_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSubscriberCLSID, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsubscriberclsid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSubscriberCLSID, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsubscriberclsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSubscriberCLSID(::core::mem::transmute(&bstrsubscriberclsid)).into() @@ -907,7 +901,7 @@ impl IEventSubscription_Vtbl { let this = (*this).get_impl(); this.SetPerUser(::core::mem::transmute_copy(&fperuser)).into() } - unsafe extern "system" fn OwnerSID, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrownersid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn OwnerSID, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrownersid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OwnerSID() { @@ -918,7 +912,7 @@ impl IEventSubscription_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetOwnerSID, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrownersid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetOwnerSID, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrownersid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetOwnerSID(::core::mem::transmute(&bstrownersid)).into() @@ -939,7 +933,7 @@ impl IEventSubscription_Vtbl { let this = (*this).get_impl(); this.SetEnabled(::core::mem::transmute_copy(&fenabled)).into() } - unsafe extern "system" fn Description, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -950,12 +944,12 @@ impl IEventSubscription_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDescription, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDescription(::core::mem::transmute(&bstrdescription)).into() } - unsafe extern "system" fn MachineName, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrmachinename: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn MachineName, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrmachinename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.MachineName() { @@ -966,12 +960,12 @@ impl IEventSubscription_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetMachineName, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmachinename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetMachineName, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmachinename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetMachineName(::core::mem::transmute(&bstrmachinename)).into() } - unsafe extern "system" fn GetPublisherProperty, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop, propertyvalue: *mut super::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPublisherProperty, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyvalue: *mut super::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetPublisherProperty(::core::mem::transmute(&bstrpropertyname)) { @@ -982,12 +976,12 @@ impl IEventSubscription_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn PutPublisherProperty, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop, propertyvalue: *const super::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn PutPublisherProperty, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyvalue: *const super::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.PutPublisherProperty(::core::mem::transmute(&bstrpropertyname), ::core::mem::transmute_copy(&propertyvalue)).into() } - unsafe extern "system" fn RemovePublisherProperty, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn RemovePublisherProperty, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RemovePublisherProperty(::core::mem::transmute(&bstrpropertyname)).into() @@ -1003,7 +997,7 @@ impl IEventSubscription_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetSubscriberProperty, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop, propertyvalue: *mut super::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSubscriberProperty, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyvalue: *mut super::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetSubscriberProperty(::core::mem::transmute(&bstrpropertyname)) { @@ -1014,12 +1008,12 @@ impl IEventSubscription_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn PutSubscriberProperty, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop, propertyvalue: *const super::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn PutSubscriberProperty, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyvalue: *const super::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.PutSubscriberProperty(::core::mem::transmute(&bstrpropertyname), ::core::mem::transmute_copy(&propertyvalue)).into() } - unsafe extern "system" fn RemoveSubscriberProperty, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn RemoveSubscriberProperty, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RemoveSubscriberProperty(::core::mem::transmute(&bstrpropertyname)).into() @@ -1035,7 +1029,7 @@ impl IEventSubscription_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn InterfaceID, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrinterfaceid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn InterfaceID, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrinterfaceid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.InterfaceID() { @@ -1046,7 +1040,7 @@ impl IEventSubscription_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetInterfaceID, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrinterfaceid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetInterfaceID, Impl: IEventSubscription_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrinterfaceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetInterfaceID(::core::mem::transmute(&bstrinterfaceid)).into() @@ -1095,29 +1089,29 @@ impl IEventSubscription_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] pub trait IEventSystem_Impl: Sized + super::IDispatch_Impl { - fn Query(&self, progid: &super::super::super::Foundation::BSTR, querycriteria: &super::super::super::Foundation::BSTR, errorindex: *mut i32, ppinterface: *mut ::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result<()>; - fn Store(&self, progid: &super::super::super::Foundation::BSTR, pinterface: &::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result<()>; - fn Remove(&self, progid: &super::super::super::Foundation::BSTR, querycriteria: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn EventObjectChangeEventClassID(&self) -> ::windows::core::Result; - fn QueryS(&self, progid: &super::super::super::Foundation::BSTR, querycriteria: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<::windows::core::IUnknown>; - fn RemoveS(&self, progid: &super::super::super::Foundation::BSTR, querycriteria: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Query(&self, progid: &::windows::core::BSTR, querycriteria: &::windows::core::BSTR, errorindex: *mut i32, ppinterface: *mut ::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result<()>; + fn Store(&self, progid: &::windows::core::BSTR, pinterface: &::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result<()>; + fn Remove(&self, progid: &::windows::core::BSTR, querycriteria: &::windows::core::BSTR) -> ::windows::core::Result; + fn EventObjectChangeEventClassID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn QueryS(&self, progid: &::windows::core::BSTR, querycriteria: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::IUnknown>; + fn RemoveS(&self, progid: &::windows::core::BSTR, querycriteria: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IEventSystem {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] impl IEventSystem_Vtbl { pub const fn new, Impl: IEventSystem_Impl, const OFFSET: isize>() -> IEventSystem_Vtbl { - unsafe extern "system" fn Query, Impl: IEventSystem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, progid: ::core::mem::ManuallyDrop, querycriteria: ::core::mem::ManuallyDrop, errorindex: *mut i32, ppinterface: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Query, Impl: IEventSystem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, progid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, querycriteria: ::core::mem::ManuallyDrop<::windows::core::BSTR>, errorindex: *mut i32, ppinterface: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Query(::core::mem::transmute(&progid), ::core::mem::transmute(&querycriteria), ::core::mem::transmute_copy(&errorindex), ::core::mem::transmute_copy(&ppinterface)).into() } - unsafe extern "system" fn Store, Impl: IEventSystem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, progid: ::core::mem::ManuallyDrop, pinterface: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Store, Impl: IEventSystem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, progid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pinterface: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Store(::core::mem::transmute(&progid), ::core::mem::transmute(&pinterface)).into() } - unsafe extern "system" fn Remove, Impl: IEventSystem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, progid: ::core::mem::ManuallyDrop, querycriteria: ::core::mem::ManuallyDrop, errorindex: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn Remove, Impl: IEventSystem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, progid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, querycriteria: ::core::mem::ManuallyDrop<::windows::core::BSTR>, errorindex: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Remove(::core::mem::transmute(&progid), ::core::mem::transmute(&querycriteria)) { @@ -1128,7 +1122,7 @@ impl IEventSystem_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn EventObjectChangeEventClassID, Impl: IEventSystem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstreventclassid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn EventObjectChangeEventClassID, Impl: IEventSystem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstreventclassid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EventObjectChangeEventClassID() { @@ -1139,7 +1133,7 @@ impl IEventSystem_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn QueryS, Impl: IEventSystem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, progid: ::core::mem::ManuallyDrop, querycriteria: ::core::mem::ManuallyDrop, ppinterface: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn QueryS, Impl: IEventSystem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, progid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, querycriteria: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppinterface: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.QueryS(::core::mem::transmute(&progid), ::core::mem::transmute(&querycriteria)) { @@ -1150,7 +1144,7 @@ impl IEventSystem_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RemoveS, Impl: IEventSystem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, progid: ::core::mem::ManuallyDrop, querycriteria: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn RemoveS, Impl: IEventSystem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, progid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, querycriteria: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RemoveS(::core::mem::transmute(&progid), ::core::mem::transmute(&querycriteria)).into() @@ -1192,8 +1186,8 @@ impl IFiringControl_Vtbl { #[cfg(feature = "Win32_Foundation")] pub trait IMultiInterfaceEventControl_Impl: Sized { fn SetMultiInterfacePublisherFilter(&self, classfilter: &::core::option::Option) -> ::windows::core::Result<()>; - fn GetSubscriptions(&self, eventiid: *const ::windows::core::GUID, bstrmethodname: &super::super::super::Foundation::BSTR, optionalcriteria: &super::super::super::Foundation::BSTR, optionalerrorindex: *const i32) -> ::windows::core::Result; - fn SetDefaultQuery(&self, eventiid: *const ::windows::core::GUID, bstrmethodname: &super::super::super::Foundation::BSTR, bstrcriteria: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetSubscriptions(&self, eventiid: *const ::windows::core::GUID, bstrmethodname: &::windows::core::BSTR, optionalcriteria: &::windows::core::BSTR, optionalerrorindex: *const i32) -> ::windows::core::Result; + fn SetDefaultQuery(&self, eventiid: *const ::windows::core::GUID, bstrmethodname: &::windows::core::BSTR, bstrcriteria: &::windows::core::BSTR) -> ::windows::core::Result; fn AllowInprocActivation(&self) -> ::windows::core::Result; fn SetAllowInprocActivation(&self, fallowinprocactivation: super::super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn FireInParallel(&self) -> ::windows::core::Result; @@ -1209,7 +1203,7 @@ impl IMultiInterfaceEventControl_Vtbl { let this = (*this).get_impl(); this.SetMultiInterfacePublisherFilter(::core::mem::transmute(&classfilter)).into() } - unsafe extern "system" fn GetSubscriptions, Impl: IMultiInterfaceEventControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, eventiid: *const ::windows::core::GUID, bstrmethodname: ::core::mem::ManuallyDrop, optionalcriteria: ::core::mem::ManuallyDrop, optionalerrorindex: *const i32, ppcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSubscriptions, Impl: IMultiInterfaceEventControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, eventiid: *const ::windows::core::GUID, bstrmethodname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, optionalcriteria: ::core::mem::ManuallyDrop<::windows::core::BSTR>, optionalerrorindex: *const i32, ppcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetSubscriptions(::core::mem::transmute_copy(&eventiid), ::core::mem::transmute(&bstrmethodname), ::core::mem::transmute(&optionalcriteria), ::core::mem::transmute_copy(&optionalerrorindex)) { @@ -1220,7 +1214,7 @@ impl IMultiInterfaceEventControl_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDefaultQuery, Impl: IMultiInterfaceEventControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, eventiid: *const ::windows::core::GUID, bstrmethodname: ::core::mem::ManuallyDrop, bstrcriteria: ::core::mem::ManuallyDrop, errorindex: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDefaultQuery, Impl: IMultiInterfaceEventControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, eventiid: *const ::windows::core::GUID, bstrmethodname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrcriteria: ::core::mem::ManuallyDrop<::windows::core::BSTR>, errorindex: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SetDefaultQuery(::core::mem::transmute_copy(&eventiid), ::core::mem::transmute(&bstrmethodname), ::core::mem::transmute(&bstrcriteria)) { @@ -1278,14 +1272,11 @@ impl IMultiInterfaceEventControl_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IMultiInterfacePublisherFilter_Impl: Sized { fn Initialize(&self, peic: &::core::option::Option) -> ::windows::core::Result<()>; - fn PrepareToFire(&self, iid: *const ::windows::core::GUID, methodname: &super::super::super::Foundation::BSTR, firingcontrol: &::core::option::Option) -> ::windows::core::Result<()>; + fn PrepareToFire(&self, iid: *const ::windows::core::GUID, methodname: &::windows::core::BSTR, firingcontrol: &::core::option::Option) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IMultiInterfacePublisherFilter {} -#[cfg(feature = "Win32_Foundation")] impl IMultiInterfacePublisherFilter_Vtbl { pub const fn new, Impl: IMultiInterfacePublisherFilter_Impl, const OFFSET: isize>() -> IMultiInterfacePublisherFilter_Vtbl { unsafe extern "system" fn Initialize, Impl: IMultiInterfacePublisherFilter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, peic: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -1293,7 +1284,7 @@ impl IMultiInterfacePublisherFilter_Vtbl { let this = (*this).get_impl(); this.Initialize(::core::mem::transmute(&peic)).into() } - unsafe extern "system" fn PrepareToFire, Impl: IMultiInterfacePublisherFilter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, iid: *const ::windows::core::GUID, methodname: ::core::mem::ManuallyDrop, firingcontrol: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn PrepareToFire, Impl: IMultiInterfacePublisherFilter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, iid: *const ::windows::core::GUID, methodname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, firingcontrol: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.PrepareToFire(::core::mem::transmute_copy(&iid), ::core::mem::transmute(&methodname), ::core::mem::transmute(&firingcontrol)).into() @@ -1308,22 +1299,19 @@ impl IMultiInterfacePublisherFilter_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IPublisherFilter_Impl: Sized { - fn Initialize(&self, methodname: &super::super::super::Foundation::BSTR, dispuserdefined: &::core::option::Option) -> ::windows::core::Result<()>; - fn PrepareToFire(&self, methodname: &super::super::super::Foundation::BSTR, firingcontrol: &::core::option::Option) -> ::windows::core::Result<()>; + fn Initialize(&self, methodname: &::windows::core::BSTR, dispuserdefined: &::core::option::Option) -> ::windows::core::Result<()>; + fn PrepareToFire(&self, methodname: &::windows::core::BSTR, firingcontrol: &::core::option::Option) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IPublisherFilter {} -#[cfg(feature = "Win32_Foundation")] impl IPublisherFilter_Vtbl { pub const fn new, Impl: IPublisherFilter_Impl, const OFFSET: isize>() -> IPublisherFilter_Vtbl { - unsafe extern "system" fn Initialize, Impl: IPublisherFilter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, methodname: ::core::mem::ManuallyDrop, dispuserdefined: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Initialize, Impl: IPublisherFilter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, methodname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dispuserdefined: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Initialize(::core::mem::transmute(&methodname), ::core::mem::transmute(&dispuserdefined)).into() } - unsafe extern "system" fn PrepareToFire, Impl: IPublisherFilter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, methodname: ::core::mem::ManuallyDrop, firingcontrol: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn PrepareToFire, Impl: IPublisherFilter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, methodname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, firingcontrol: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.PrepareToFire(::core::mem::transmute(&methodname), ::core::mem::transmute(&firingcontrol)).into() diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/Events/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Com/Events/mod.rs index a825ebf858..a263c892f5 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/Events/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/Events/mod.rs @@ -108,103 +108,54 @@ pub struct IEnumEventObject_Vtbl { #[repr(transparent)] pub struct IEventClass(::windows::core::IUnknown); impl IEventClass { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EventClassID(&self) -> ::windows::core::Result { + pub unsafe fn EventClassID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).EventClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).EventClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetEventClassID<'a, P0>(&self, bstreventclassid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetEventClassID)(::windows::core::Interface::as_raw(self), bstreventclassid.into().abi()).ok() + pub unsafe fn SetEventClassID(&self, bstreventclassid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetEventClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstreventclassid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EventClassName(&self) -> ::windows::core::Result { + pub unsafe fn EventClassName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).EventClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).EventClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetEventClassName<'a, P0>(&self, bstreventclassname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetEventClassName)(::windows::core::Interface::as_raw(self), bstreventclassname.into().abi()).ok() + pub unsafe fn SetEventClassName(&self, bstreventclassname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetEventClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstreventclassname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OwnerSID(&self) -> ::windows::core::Result { + pub unsafe fn OwnerSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).OwnerSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).OwnerSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetOwnerSID<'a, P0>(&self, bstrownersid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetOwnerSID)(::windows::core::Interface::as_raw(self), bstrownersid.into().abi()).ok() + pub unsafe fn SetOwnerSID(&self, bstrownersid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetOwnerSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrownersid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FiringInterfaceID(&self) -> ::windows::core::Result { + pub unsafe fn FiringInterfaceID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FiringInterfaceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FiringInterfaceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFiringInterfaceID<'a, P0>(&self, bstrfiringinterfaceid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetFiringInterfaceID)(::windows::core::Interface::as_raw(self), bstrfiringinterfaceid.into().abi()).ok() + pub unsafe fn SetFiringInterfaceID(&self, bstrfiringinterfaceid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetFiringInterfaceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrfiringinterfaceid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bstrdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), bstrdescription.into().abi()).ok() + pub unsafe fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdescription)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CustomConfigCLSID(&self) -> ::windows::core::Result { + pub unsafe fn CustomConfigCLSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CustomConfigCLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CustomConfigCLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCustomConfigCLSID<'a, P0>(&self, bstrcustomconfigclsid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetCustomConfigCLSID)(::windows::core::Interface::as_raw(self), bstrcustomconfigclsid.into().abi()).ok() + pub unsafe fn SetCustomConfigCLSID(&self, bstrcustomconfigclsid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetCustomConfigCLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcustomconfigclsid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TypeLib(&self) -> ::windows::core::Result { + pub unsafe fn TypeLib(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TypeLib)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TypeLib)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetTypeLib<'a, P0>(&self, bstrtypelib: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetTypeLib)(::windows::core::Interface::as_raw(self), bstrtypelib.into().abi()).ok() + pub unsafe fn SetTypeLib(&self, bstrtypelib: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetTypeLib)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtypelib)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -261,192 +212,87 @@ unsafe impl ::windows::core::Interface for IEventClass { #[doc(hidden)] pub struct IEventClass_Vtbl { pub base__: super::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub EventClassID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstreventclassid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EventClassID: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetEventClassID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstreventclassid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetEventClassID: usize, - #[cfg(feature = "Win32_Foundation")] - pub EventClassName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstreventclassname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EventClassName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetEventClassName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstreventclassname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetEventClassName: usize, - #[cfg(feature = "Win32_Foundation")] - pub OwnerSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrownersid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OwnerSID: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetOwnerSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrownersid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetOwnerSID: usize, - #[cfg(feature = "Win32_Foundation")] - pub FiringInterfaceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfiringinterfaceid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FiringInterfaceID: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetFiringInterfaceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfiringinterfaceid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetFiringInterfaceID: usize, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDescription: usize, - #[cfg(feature = "Win32_Foundation")] - pub CustomConfigCLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcustomconfigclsid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CustomConfigCLSID: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetCustomConfigCLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcustomconfigclsid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetCustomConfigCLSID: usize, - #[cfg(feature = "Win32_Foundation")] - pub TypeLib: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtypelib: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TypeLib: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetTypeLib: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtypelib: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetTypeLib: usize, + pub EventClassID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstreventclassid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetEventClassID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstreventclassid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub EventClassName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstreventclassname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetEventClassName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstreventclassname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub OwnerSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrownersid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetOwnerSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrownersid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FiringInterfaceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfiringinterfaceid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetFiringInterfaceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfiringinterfaceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CustomConfigCLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcustomconfigclsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetCustomConfigCLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcustomconfigclsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub TypeLib: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtypelib: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetTypeLib: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtypelib: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Com_Events\"`*"] #[repr(transparent)] pub struct IEventClass2(::windows::core::IUnknown); impl IEventClass2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EventClassID(&self) -> ::windows::core::Result { + pub unsafe fn EventClassID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.EventClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.EventClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetEventClassID<'a, P0>(&self, bstreventclassid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetEventClassID)(::windows::core::Interface::as_raw(self), bstreventclassid.into().abi()).ok() + pub unsafe fn SetEventClassID(&self, bstreventclassid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetEventClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstreventclassid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EventClassName(&self) -> ::windows::core::Result { + pub unsafe fn EventClassName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.EventClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.EventClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetEventClassName<'a, P0>(&self, bstreventclassname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetEventClassName)(::windows::core::Interface::as_raw(self), bstreventclassname.into().abi()).ok() + pub unsafe fn SetEventClassName(&self, bstreventclassname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetEventClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstreventclassname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OwnerSID(&self) -> ::windows::core::Result { + pub unsafe fn OwnerSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.OwnerSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.OwnerSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetOwnerSID<'a, P0>(&self, bstrownersid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetOwnerSID)(::windows::core::Interface::as_raw(self), bstrownersid.into().abi()).ok() + pub unsafe fn SetOwnerSID(&self, bstrownersid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetOwnerSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrownersid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FiringInterfaceID(&self) -> ::windows::core::Result { + pub unsafe fn FiringInterfaceID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FiringInterfaceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.FiringInterfaceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFiringInterfaceID<'a, P0>(&self, bstrfiringinterfaceid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetFiringInterfaceID)(::windows::core::Interface::as_raw(self), bstrfiringinterfaceid.into().abi()).ok() + pub unsafe fn SetFiringInterfaceID(&self, bstrfiringinterfaceid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetFiringInterfaceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrfiringinterfaceid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bstrdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), bstrdescription.into().abi()).ok() + pub unsafe fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdescription)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CustomConfigCLSID(&self) -> ::windows::core::Result { + pub unsafe fn CustomConfigCLSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CustomConfigCLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CustomConfigCLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCustomConfigCLSID<'a, P0>(&self, bstrcustomconfigclsid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetCustomConfigCLSID)(::windows::core::Interface::as_raw(self), bstrcustomconfigclsid.into().abi()).ok() + pub unsafe fn SetCustomConfigCLSID(&self, bstrcustomconfigclsid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetCustomConfigCLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcustomconfigclsid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TypeLib(&self) -> ::windows::core::Result { + pub unsafe fn TypeLib(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.TypeLib)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.TypeLib)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetTypeLib<'a, P0>(&self, bstrtypelib: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetTypeLib)(::windows::core::Interface::as_raw(self), bstrtypelib.into().abi()).ok() + pub unsafe fn SetTypeLib(&self, bstrtypelib: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetTypeLib)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtypelib)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PublisherID(&self) -> ::windows::core::Result { + pub unsafe fn PublisherID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PublisherID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PublisherID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPublisherID<'a, P0>(&self, bstrpublisherid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPublisherID)(::windows::core::Interface::as_raw(self), bstrpublisherid.into().abi()).ok() + pub unsafe fn SetPublisherID(&self, bstrpublisherid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPublisherID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpublisherid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MultiInterfacePublisherFilterCLSID(&self) -> ::windows::core::Result { + pub unsafe fn MultiInterfacePublisherFilterCLSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).MultiInterfacePublisherFilterCLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).MultiInterfacePublisherFilterCLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMultiInterfacePublisherFilterCLSID<'a, P0>(&self, bstrpubfilclsid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetMultiInterfacePublisherFilterCLSID)(::windows::core::Interface::as_raw(self), bstrpubfilclsid.into().abi()).ok() + pub unsafe fn SetMultiInterfacePublisherFilterCLSID(&self, bstrpubfilclsid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetMultiInterfacePublisherFilterCLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpubfilclsid)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -546,22 +392,10 @@ unsafe impl ::windows::core::Interface for IEventClass2 { #[doc(hidden)] pub struct IEventClass2_Vtbl { pub base__: IEventClass_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub PublisherID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpublisherid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PublisherID: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPublisherID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpublisherid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPublisherID: usize, - #[cfg(feature = "Win32_Foundation")] - pub MultiInterfacePublisherFilterCLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpubfilclsid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MultiInterfacePublisherFilterCLSID: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetMultiInterfacePublisherFilterCLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpubfilclsid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetMultiInterfacePublisherFilterCLSID: usize, + pub PublisherID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpublisherid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetPublisherID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpublisherid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub MultiInterfacePublisherFilterCLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpubfilclsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetMultiInterfacePublisherFilterCLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpubfilclsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub AllowInprocActivation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfallowinprocactivation: *mut super::super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -583,14 +417,11 @@ pub struct IEventClass2_Vtbl { #[repr(transparent)] pub struct IEventControl(::windows::core::IUnknown); impl IEventControl { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPublisherFilter<'a, P0, P1>(&self, methodname: P0, ppublisherfilter: P1) -> ::windows::core::Result<()> + pub unsafe fn SetPublisherFilter<'a, P0>(&self, methodname: &::windows::core::BSTR, ppublisherfilter: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IPublisherFilter>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IPublisherFilter>>, { - (::windows::core::Interface::vtable(self).SetPublisherFilter)(::windows::core::Interface::as_raw(self), methodname.into().abi(), ppublisherfilter.into().abi()).ok() + (::windows::core::Interface::vtable(self).SetPublisherFilter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(methodname), ppublisherfilter.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -606,25 +437,13 @@ impl IEventControl { { (::windows::core::Interface::vtable(self).SetAllowInprocActivation)(::windows::core::Interface::as_raw(self), fallowinprocactivation.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetSubscriptions<'a, P0, P1>(&self, methodname: P0, optionalcriteria: P1, optionalerrorindex: &i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetSubscriptions(&self, methodname: &::windows::core::BSTR, optionalcriteria: &::windows::core::BSTR, optionalerrorindex: &i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetSubscriptions)(::windows::core::Interface::as_raw(self), methodname.into().abi(), optionalcriteria.into().abi(), ::core::mem::transmute(optionalerrorindex), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetSubscriptions)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(methodname), ::core::mem::transmute_copy(optionalcriteria), ::core::mem::transmute(optionalerrorindex), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDefaultQuery<'a, P0, P1>(&self, methodname: P0, criteria: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn SetDefaultQuery(&self, methodname: &::windows::core::BSTR, criteria: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SetDefaultQuery)(::windows::core::Interface::as_raw(self), methodname.into().abi(), criteria.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SetDefaultQuery)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(methodname), ::core::mem::transmute_copy(criteria), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -681,10 +500,7 @@ unsafe impl ::windows::core::Interface for IEventControl { #[doc(hidden)] pub struct IEventControl_Vtbl { pub base__: super::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub SetPublisherFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, methodname: ::core::mem::ManuallyDrop, ppublisherfilter: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPublisherFilter: usize, + pub SetPublisherFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, methodname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppublisherfilter: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub AllowInprocActivation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfallowinprocactivation: *mut super::super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -693,42 +509,21 @@ pub struct IEventControl_Vtbl { pub SetAllowInprocActivation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fallowinprocactivation: super::super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] SetAllowInprocActivation: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetSubscriptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, methodname: ::core::mem::ManuallyDrop, optionalcriteria: ::core::mem::ManuallyDrop, optionalerrorindex: *const i32, ppcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetSubscriptions: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDefaultQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, methodname: ::core::mem::ManuallyDrop, criteria: ::core::mem::ManuallyDrop, errorindex: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDefaultQuery: usize, + pub GetSubscriptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, methodname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, optionalcriteria: ::core::mem::ManuallyDrop<::windows::core::BSTR>, optionalerrorindex: *const i32, ppcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub SetDefaultQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, methodname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, criteria: ::core::mem::ManuallyDrop<::windows::core::BSTR>, errorindex: *mut i32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Com_Events\"`*"] #[repr(transparent)] pub struct IEventObjectChange(::windows::core::IUnknown); impl IEventObjectChange { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ChangedSubscription<'a, P0>(&self, changetype: EOC_ChangeType, bstrsubscriptionid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ChangedSubscription)(::windows::core::Interface::as_raw(self), changetype, bstrsubscriptionid.into().abi()).ok() + pub unsafe fn ChangedSubscription(&self, changetype: EOC_ChangeType, bstrsubscriptionid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ChangedSubscription)(::windows::core::Interface::as_raw(self), changetype, ::core::mem::transmute_copy(bstrsubscriptionid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ChangedEventClass<'a, P0>(&self, changetype: EOC_ChangeType, bstreventclassid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ChangedEventClass)(::windows::core::Interface::as_raw(self), changetype, bstreventclassid.into().abi()).ok() + pub unsafe fn ChangedEventClass(&self, changetype: EOC_ChangeType, bstreventclassid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ChangedEventClass)(::windows::core::Interface::as_raw(self), changetype, ::core::mem::transmute_copy(bstreventclassid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ChangedPublisher<'a, P0>(&self, changetype: EOC_ChangeType, bstrpublisherid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ChangedPublisher)(::windows::core::Interface::as_raw(self), changetype, bstrpublisherid.into().abi()).ok() + pub unsafe fn ChangedPublisher(&self, changetype: EOC_ChangeType, bstrpublisherid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ChangedPublisher)(::windows::core::Interface::as_raw(self), changetype, ::core::mem::transmute_copy(bstrpublisherid)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -770,30 +565,17 @@ unsafe impl ::windows::core::Interface for IEventObjectChange { #[doc(hidden)] pub struct IEventObjectChange_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub ChangedSubscription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, changetype: EOC_ChangeType, bstrsubscriptionid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ChangedSubscription: usize, - #[cfg(feature = "Win32_Foundation")] - pub ChangedEventClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, changetype: EOC_ChangeType, bstreventclassid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ChangedEventClass: usize, - #[cfg(feature = "Win32_Foundation")] - pub ChangedPublisher: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, changetype: EOC_ChangeType, bstrpublisherid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ChangedPublisher: usize, + pub ChangedSubscription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, changetype: EOC_ChangeType, bstrsubscriptionid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ChangedEventClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, changetype: EOC_ChangeType, bstreventclassid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ChangedPublisher: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, changetype: EOC_ChangeType, bstrpublisherid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Com_Events\"`*"] #[repr(transparent)] pub struct IEventObjectChange2(::windows::core::IUnknown); impl IEventObjectChange2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn ChangedSubscription(&self, pinfo: &COMEVENTSYSCHANGEINFO) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ChangedSubscription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pinfo)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn ChangedEventClass(&self, pinfo: &COMEVENTSYSCHANGEINFO) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ChangedEventClass)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pinfo)).ok() } @@ -837,14 +619,8 @@ unsafe impl ::windows::core::Interface for IEventObjectChange2 { #[doc(hidden)] pub struct IEventObjectChange2_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] pub ChangedSubscription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMEVENTSYSCHANGEINFO) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ChangedSubscription: usize, - #[cfg(feature = "Win32_Foundation")] pub ChangedEventClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *const COMEVENTSYSCHANGEINFO) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ChangedEventClass: usize, } #[doc = "*Required features: `\"Win32_System_Com_Events\"`*"] #[repr(transparent)] @@ -856,12 +632,9 @@ impl IEventObjectCollection { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] - pub unsafe fn get_Item<'a, P0>(&self, objectid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn get_Item(&self, objectid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), objectid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(objectid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn NewEnum(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -873,19 +646,11 @@ impl IEventObjectCollection { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] - pub unsafe fn Add<'a, P0>(&self, item: &super::VARIANT, objectid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(item), objectid.into().abi()).ok() + pub unsafe fn Add(&self, item: &super::VARIANT, objectid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(item), ::core::mem::transmute_copy(objectid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Remove<'a, P0>(&self, objectid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), objectid.into().abi()).ok() + pub unsafe fn Remove(&self, objectid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(objectid)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -944,37 +709,27 @@ pub struct IEventObjectCollection_Vtbl { pub base__: super::IDispatch_Vtbl, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunkenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] - pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objectid: ::core::mem::ManuallyDrop, pitem: *mut super::VARIANT) -> ::windows::core::HRESULT, + pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objectid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pitem: *mut super::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Ole")))] get_Item: usize, pub NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcount: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] - pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, item: *const super::VARIANT, objectid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, item: *const super::VARIANT, objectid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Ole")))] Add: usize, - #[cfg(feature = "Win32_Foundation")] - pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objectid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Remove: usize, + pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objectid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Com_Events\"`*"] #[repr(transparent)] pub struct IEventProperty(::windows::core::IUnknown); impl IEventProperty { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, propertyname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), propertyname.into().abi()).ok() + pub unsafe fn SetName(&self, propertyname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(propertyname)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] @@ -1042,14 +797,8 @@ unsafe impl ::windows::core::Interface for IEventProperty { #[doc(hidden)] pub struct IEventProperty_Vtbl { pub base__: super::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyvalue: *mut super::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Ole")))] @@ -1063,100 +812,54 @@ pub struct IEventProperty_Vtbl { #[repr(transparent)] pub struct IEventPublisher(::windows::core::IUnknown); impl IEventPublisher { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PublisherID(&self) -> ::windows::core::Result { + pub unsafe fn PublisherID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PublisherID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PublisherID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPublisherID<'a, P0>(&self, bstrpublisherid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPublisherID)(::windows::core::Interface::as_raw(self), bstrpublisherid.into().abi()).ok() + pub unsafe fn SetPublisherID(&self, bstrpublisherid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPublisherID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpublisherid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PublisherName(&self) -> ::windows::core::Result { + pub unsafe fn PublisherName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PublisherName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PublisherName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPublisherName<'a, P0>(&self, bstrpublishername: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPublisherName)(::windows::core::Interface::as_raw(self), bstrpublishername.into().abi()).ok() + pub unsafe fn SetPublisherName(&self, bstrpublishername: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPublisherName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpublishername)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PublisherType(&self) -> ::windows::core::Result { + pub unsafe fn PublisherType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PublisherType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PublisherType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPublisherType<'a, P0>(&self, bstrpublishertype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPublisherType)(::windows::core::Interface::as_raw(self), bstrpublishertype.into().abi()).ok() + pub unsafe fn SetPublisherType(&self, bstrpublishertype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPublisherType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpublishertype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OwnerSID(&self) -> ::windows::core::Result { + pub unsafe fn OwnerSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).OwnerSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).OwnerSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetOwnerSID<'a, P0>(&self, bstrownersid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetOwnerSID)(::windows::core::Interface::as_raw(self), bstrownersid.into().abi()).ok() + pub unsafe fn SetOwnerSID(&self, bstrownersid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetOwnerSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrownersid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bstrdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), bstrdescription.into().abi()).ok() + pub unsafe fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdescription)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] - pub unsafe fn GetDefaultProperty<'a, P0>(&self, bstrpropertyname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetDefaultProperty(&self, bstrpropertyname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDefaultProperty)(::windows::core::Interface::as_raw(self), bstrpropertyname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDefaultProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpropertyname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] - pub unsafe fn PutDefaultProperty<'a, P0>(&self, bstrpropertyname: P0, propertyvalue: &super::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).PutDefaultProperty)(::windows::core::Interface::as_raw(self), bstrpropertyname.into().abi(), ::core::mem::transmute(propertyvalue)).ok() + pub unsafe fn PutDefaultProperty(&self, bstrpropertyname: &::windows::core::BSTR, propertyvalue: &super::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).PutDefaultProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpropertyname), ::core::mem::transmute(propertyvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoveDefaultProperty<'a, P0>(&self, bstrpropertyname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).RemoveDefaultProperty)(::windows::core::Interface::as_raw(self), bstrpropertyname.into().abi()).ok() + pub unsafe fn RemoveDefaultProperty(&self, bstrpropertyname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).RemoveDefaultProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpropertyname)).ok() } pub unsafe fn GetDefaultPropertyCollection(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1217,147 +920,72 @@ unsafe impl ::windows::core::Interface for IEventPublisher { #[doc(hidden)] pub struct IEventPublisher_Vtbl { pub base__: super::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub PublisherID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpublisherid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PublisherID: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPublisherID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpublisherid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPublisherID: usize, - #[cfg(feature = "Win32_Foundation")] - pub PublisherName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpublishername: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PublisherName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPublisherName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpublishername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPublisherName: usize, - #[cfg(feature = "Win32_Foundation")] - pub PublisherType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpublishertype: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PublisherType: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPublisherType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpublishertype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPublisherType: usize, - #[cfg(feature = "Win32_Foundation")] - pub OwnerSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrownersid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OwnerSID: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetOwnerSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrownersid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetOwnerSID: usize, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDescription: usize, + pub PublisherID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpublisherid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetPublisherID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpublisherid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub PublisherName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpublishername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetPublisherName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpublishername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub PublisherType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpublishertype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetPublisherType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpublishertype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub OwnerSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrownersid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetOwnerSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrownersid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] - pub GetDefaultProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop, propertyvalue: *mut super::VARIANT) -> ::windows::core::HRESULT, + pub GetDefaultProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyvalue: *mut super::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Ole")))] GetDefaultProperty: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] - pub PutDefaultProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop, propertyvalue: *const super::VARIANT) -> ::windows::core::HRESULT, + pub PutDefaultProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyvalue: *const super::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Ole")))] PutDefaultProperty: usize, - #[cfg(feature = "Win32_Foundation")] - pub RemoveDefaultProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RemoveDefaultProperty: usize, + pub RemoveDefaultProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetDefaultPropertyCollection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, collection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Com_Events\"`*"] #[repr(transparent)] pub struct IEventSubscription(::windows::core::IUnknown); impl IEventSubscription { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SubscriptionID(&self) -> ::windows::core::Result { + pub unsafe fn SubscriptionID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SubscriptionID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SubscriptionID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSubscriptionID<'a, P0>(&self, bstrsubscriptionid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSubscriptionID)(::windows::core::Interface::as_raw(self), bstrsubscriptionid.into().abi()).ok() + pub unsafe fn SetSubscriptionID(&self, bstrsubscriptionid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSubscriptionID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsubscriptionid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SubscriptionName(&self) -> ::windows::core::Result { + pub unsafe fn SubscriptionName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SubscriptionName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SubscriptionName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSubscriptionName<'a, P0>(&self, bstrsubscriptionname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSubscriptionName)(::windows::core::Interface::as_raw(self), bstrsubscriptionname.into().abi()).ok() + pub unsafe fn SetSubscriptionName(&self, bstrsubscriptionname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSubscriptionName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsubscriptionname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PublisherID(&self) -> ::windows::core::Result { + pub unsafe fn PublisherID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PublisherID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PublisherID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPublisherID<'a, P0>(&self, bstrpublisherid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPublisherID)(::windows::core::Interface::as_raw(self), bstrpublisherid.into().abi()).ok() + pub unsafe fn SetPublisherID(&self, bstrpublisherid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPublisherID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpublisherid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EventClassID(&self) -> ::windows::core::Result { + pub unsafe fn EventClassID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).EventClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).EventClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetEventClassID<'a, P0>(&self, bstreventclassid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetEventClassID)(::windows::core::Interface::as_raw(self), bstreventclassid.into().abi()).ok() + pub unsafe fn SetEventClassID(&self, bstreventclassid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetEventClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstreventclassid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MethodName(&self) -> ::windows::core::Result { + pub unsafe fn MethodName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).MethodName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).MethodName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMethodName<'a, P0>(&self, bstrmethodname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetMethodName)(::windows::core::Interface::as_raw(self), bstrmethodname.into().abi()).ok() + pub unsafe fn SetMethodName(&self, bstrmethodname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetMethodName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrmethodname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SubscriberCLSID(&self) -> ::windows::core::Result { + pub unsafe fn SubscriberCLSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SubscriberCLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SubscriberCLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSubscriberCLSID<'a, P0>(&self, bstrsubscriberclsid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSubscriberCLSID)(::windows::core::Interface::as_raw(self), bstrsubscriberclsid.into().abi()).ok() + pub unsafe fn SetSubscriberCLSID(&self, bstrsubscriberclsid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSubscriberCLSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsubscriberclsid)).ok() } pub unsafe fn SubscriberInterface(&self) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1383,19 +1011,12 @@ impl IEventSubscription { { (::windows::core::Interface::vtable(self).SetPerUser)(::windows::core::Interface::as_raw(self), fperuser.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OwnerSID(&self) -> ::windows::core::Result { + pub unsafe fn OwnerSID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).OwnerSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).OwnerSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetOwnerSID<'a, P0>(&self, bstrownersid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetOwnerSID)(::windows::core::Interface::as_raw(self), bstrownersid.into().abi()).ok() + pub unsafe fn SetOwnerSID(&self, bstrownersid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetOwnerSID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrownersid)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -1411,58 +1032,33 @@ impl IEventSubscription { { (::windows::core::Interface::vtable(self).SetEnabled)(::windows::core::Interface::as_raw(self), fenabled.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bstrdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), bstrdescription.into().abi()).ok() + pub unsafe fn SetDescription(&self, bstrdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdescription)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MachineName(&self) -> ::windows::core::Result { + pub unsafe fn MachineName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).MachineName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).MachineName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMachineName<'a, P0>(&self, bstrmachinename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetMachineName)(::windows::core::Interface::as_raw(self), bstrmachinename.into().abi()).ok() + pub unsafe fn SetMachineName(&self, bstrmachinename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetMachineName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrmachinename)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] - pub unsafe fn GetPublisherProperty<'a, P0>(&self, bstrpropertyname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetPublisherProperty(&self, bstrpropertyname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetPublisherProperty)(::windows::core::Interface::as_raw(self), bstrpropertyname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetPublisherProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpropertyname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] - pub unsafe fn PutPublisherProperty<'a, P0>(&self, bstrpropertyname: P0, propertyvalue: &super::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).PutPublisherProperty)(::windows::core::Interface::as_raw(self), bstrpropertyname.into().abi(), ::core::mem::transmute(propertyvalue)).ok() + pub unsafe fn PutPublisherProperty(&self, bstrpropertyname: &::windows::core::BSTR, propertyvalue: &super::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).PutPublisherProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpropertyname), ::core::mem::transmute(propertyvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemovePublisherProperty<'a, P0>(&self, bstrpropertyname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).RemovePublisherProperty)(::windows::core::Interface::as_raw(self), bstrpropertyname.into().abi()).ok() + pub unsafe fn RemovePublisherProperty(&self, bstrpropertyname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).RemovePublisherProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpropertyname)).ok() } pub unsafe fn GetPublisherPropertyCollection(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1470,46 +1066,28 @@ impl IEventSubscription { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] - pub unsafe fn GetSubscriberProperty<'a, P0>(&self, bstrpropertyname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetSubscriberProperty(&self, bstrpropertyname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetSubscriberProperty)(::windows::core::Interface::as_raw(self), bstrpropertyname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetSubscriberProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpropertyname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] - pub unsafe fn PutSubscriberProperty<'a, P0>(&self, bstrpropertyname: P0, propertyvalue: &super::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).PutSubscriberProperty)(::windows::core::Interface::as_raw(self), bstrpropertyname.into().abi(), ::core::mem::transmute(propertyvalue)).ok() + pub unsafe fn PutSubscriberProperty(&self, bstrpropertyname: &::windows::core::BSTR, propertyvalue: &super::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).PutSubscriberProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpropertyname), ::core::mem::transmute(propertyvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoveSubscriberProperty<'a, P0>(&self, bstrpropertyname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).RemoveSubscriberProperty)(::windows::core::Interface::as_raw(self), bstrpropertyname.into().abi()).ok() + pub unsafe fn RemoveSubscriberProperty(&self, bstrpropertyname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).RemoveSubscriberProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpropertyname)).ok() } pub unsafe fn GetSubscriberPropertyCollection(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetSubscriberPropertyCollection)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InterfaceID(&self) -> ::windows::core::Result { + pub unsafe fn InterfaceID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).InterfaceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).InterfaceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetInterfaceID<'a, P0>(&self, bstrinterfaceid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetInterfaceID)(::windows::core::Interface::as_raw(self), bstrinterfaceid.into().abi()).ok() + pub unsafe fn SetInterfaceID(&self, bstrinterfaceid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetInterfaceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrinterfaceid)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -1566,54 +1144,18 @@ unsafe impl ::windows::core::Interface for IEventSubscription { #[doc(hidden)] pub struct IEventSubscription_Vtbl { pub base__: super::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub SubscriptionID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsubscriptionid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SubscriptionID: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSubscriptionID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsubscriptionid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSubscriptionID: usize, - #[cfg(feature = "Win32_Foundation")] - pub SubscriptionName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsubscriptionname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SubscriptionName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSubscriptionName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsubscriptionname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSubscriptionName: usize, - #[cfg(feature = "Win32_Foundation")] - pub PublisherID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpublisherid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PublisherID: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPublisherID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpublisherid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPublisherID: usize, - #[cfg(feature = "Win32_Foundation")] - pub EventClassID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstreventclassid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EventClassID: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetEventClassID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstreventclassid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetEventClassID: usize, - #[cfg(feature = "Win32_Foundation")] - pub MethodName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmethodname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MethodName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetMethodName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmethodname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetMethodName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SubscriberCLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsubscriberclsid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SubscriberCLSID: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSubscriberCLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsubscriberclsid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSubscriberCLSID: usize, + pub SubscriptionID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsubscriptionid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSubscriptionID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsubscriptionid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SubscriptionName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsubscriptionname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSubscriptionName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsubscriptionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub PublisherID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpublisherid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetPublisherID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpublisherid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub EventClassID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstreventclassid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetEventClassID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstreventclassid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub MethodName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmethodname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetMethodName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmethodname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SubscriberCLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsubscriberclsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSubscriberCLSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsubscriberclsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SubscriberInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsubscriberinterface: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub SetSubscriberInterface: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psubscriberinterface: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] @@ -1624,14 +1166,8 @@ pub struct IEventSubscription_Vtbl { pub SetPerUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fperuser: super::super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] SetPerUser: usize, - #[cfg(feature = "Win32_Foundation")] - pub OwnerSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrownersid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OwnerSID: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetOwnerSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrownersid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetOwnerSID: usize, + pub OwnerSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrownersid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetOwnerSID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrownersid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub Enabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfenabled: *mut super::super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -1640,113 +1176,60 @@ pub struct IEventSubscription_Vtbl { pub SetEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fenabled: super::super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] SetEnabled: usize, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDescription: usize, - #[cfg(feature = "Win32_Foundation")] - pub MachineName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmachinename: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MachineName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetMachineName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmachinename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetMachineName: usize, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub MachineName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmachinename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetMachineName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmachinename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] - pub GetPublisherProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop, propertyvalue: *mut super::VARIANT) -> ::windows::core::HRESULT, + pub GetPublisherProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyvalue: *mut super::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Ole")))] GetPublisherProperty: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] - pub PutPublisherProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop, propertyvalue: *const super::VARIANT) -> ::windows::core::HRESULT, + pub PutPublisherProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyvalue: *const super::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Ole")))] PutPublisherProperty: usize, - #[cfg(feature = "Win32_Foundation")] - pub RemovePublisherProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RemovePublisherProperty: usize, + pub RemovePublisherProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetPublisherPropertyCollection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, collection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] - pub GetSubscriberProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop, propertyvalue: *mut super::VARIANT) -> ::windows::core::HRESULT, + pub GetSubscriberProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyvalue: *mut super::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Ole")))] GetSubscriberProperty: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] - pub PutSubscriberProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop, propertyvalue: *const super::VARIANT) -> ::windows::core::HRESULT, + pub PutSubscriberProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyvalue: *const super::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Ole")))] PutSubscriberProperty: usize, - #[cfg(feature = "Win32_Foundation")] - pub RemoveSubscriberProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RemoveSubscriberProperty: usize, + pub RemoveSubscriberProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetSubscriberPropertyCollection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, collection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub InterfaceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrinterfaceid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InterfaceID: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetInterfaceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinterfaceid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetInterfaceID: usize, + pub InterfaceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrinterfaceid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetInterfaceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinterfaceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Com_Events\"`*"] #[repr(transparent)] pub struct IEventSystem(::windows::core::IUnknown); impl IEventSystem { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Query<'a, P0, P1>(&self, progid: P0, querycriteria: P1, errorindex: &mut i32, ppinterface: &mut ::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Query)(::windows::core::Interface::as_raw(self), progid.into().abi(), querycriteria.into().abi(), ::core::mem::transmute(errorindex), ::core::mem::transmute(ppinterface)).ok() + pub unsafe fn Query(&self, progid: &::windows::core::BSTR, querycriteria: &::windows::core::BSTR, errorindex: &mut i32, ppinterface: &mut ::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Query)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(progid), ::core::mem::transmute_copy(querycriteria), ::core::mem::transmute(errorindex), ::core::mem::transmute(ppinterface)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Store<'a, P0, P1>(&self, progid: P0, pinterface: P1) -> ::windows::core::Result<()> + pub unsafe fn Store<'a, P0>(&self, progid: &::windows::core::BSTR, pinterface: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, { - (::windows::core::Interface::vtable(self).Store)(::windows::core::Interface::as_raw(self), progid.into().abi(), pinterface.into().abi()).ok() + (::windows::core::Interface::vtable(self).Store)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(progid), pinterface.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Remove<'a, P0, P1>(&self, progid: P0, querycriteria: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn Remove(&self, progid: &::windows::core::BSTR, querycriteria: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), progid.into().abi(), querycriteria.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(progid), ::core::mem::transmute_copy(querycriteria), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EventObjectChangeEventClassID(&self) -> ::windows::core::Result { + pub unsafe fn EventObjectChangeEventClassID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).EventObjectChangeEventClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).EventObjectChangeEventClassID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn QueryS<'a, P0, P1>(&self, progid: P0, querycriteria: P1) -> ::windows::core::Result<::windows::core::IUnknown> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn QueryS(&self, progid: &::windows::core::BSTR, querycriteria: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).QueryS)(::windows::core::Interface::as_raw(self), progid.into().abi(), querycriteria.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) + (::windows::core::Interface::vtable(self).QueryS)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(progid), ::core::mem::transmute_copy(querycriteria), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoveS<'a, P0, P1>(&self, progid: P0, querycriteria: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).RemoveS)(::windows::core::Interface::as_raw(self), progid.into().abi(), querycriteria.into().abi()).ok() + pub unsafe fn RemoveS(&self, progid: &::windows::core::BSTR, querycriteria: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).RemoveS)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(progid), ::core::mem::transmute_copy(querycriteria)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -1803,30 +1286,12 @@ unsafe impl ::windows::core::Interface for IEventSystem { #[doc(hidden)] pub struct IEventSystem_Vtbl { pub base__: super::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Query: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, progid: ::core::mem::ManuallyDrop, querycriteria: ::core::mem::ManuallyDrop, errorindex: *mut i32, ppinterface: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Query: usize, - #[cfg(feature = "Win32_Foundation")] - pub Store: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, progid: ::core::mem::ManuallyDrop, pinterface: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Store: usize, - #[cfg(feature = "Win32_Foundation")] - pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, progid: ::core::mem::ManuallyDrop, querycriteria: ::core::mem::ManuallyDrop, errorindex: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Remove: usize, - #[cfg(feature = "Win32_Foundation")] - pub EventObjectChangeEventClassID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstreventclassid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EventObjectChangeEventClassID: usize, - #[cfg(feature = "Win32_Foundation")] - pub QueryS: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, progid: ::core::mem::ManuallyDrop, querycriteria: ::core::mem::ManuallyDrop, ppinterface: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - QueryS: usize, - #[cfg(feature = "Win32_Foundation")] - pub RemoveS: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, progid: ::core::mem::ManuallyDrop, querycriteria: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RemoveS: usize, + pub Query: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, progid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, querycriteria: ::core::mem::ManuallyDrop<::windows::core::BSTR>, errorindex: *mut i32, ppinterface: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub Store: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, progid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pinterface: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, progid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, querycriteria: ::core::mem::ManuallyDrop<::windows::core::BSTR>, errorindex: *mut i32) -> ::windows::core::HRESULT, + pub EventObjectChangeEventClassID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstreventclassid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub QueryS: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, progid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, querycriteria: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppinterface: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub RemoveS: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, progid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, querycriteria: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Com_Events\"`*"] #[repr(transparent)] @@ -1905,25 +1370,13 @@ impl IMultiInterfaceEventControl { { (::windows::core::Interface::vtable(self).SetMultiInterfacePublisherFilter)(::windows::core::Interface::as_raw(self), classfilter.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetSubscriptions<'a, P0, P1>(&self, eventiid: &::windows::core::GUID, bstrmethodname: P0, optionalcriteria: P1, optionalerrorindex: &i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetSubscriptions(&self, eventiid: &::windows::core::GUID, bstrmethodname: &::windows::core::BSTR, optionalcriteria: &::windows::core::BSTR, optionalerrorindex: &i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetSubscriptions)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(eventiid), bstrmethodname.into().abi(), optionalcriteria.into().abi(), ::core::mem::transmute(optionalerrorindex), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetSubscriptions)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(eventiid), ::core::mem::transmute_copy(bstrmethodname), ::core::mem::transmute_copy(optionalcriteria), ::core::mem::transmute(optionalerrorindex), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDefaultQuery<'a, P0, P1>(&self, eventiid: &::windows::core::GUID, bstrmethodname: P0, bstrcriteria: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn SetDefaultQuery(&self, eventiid: &::windows::core::GUID, bstrmethodname: &::windows::core::BSTR, bstrcriteria: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SetDefaultQuery)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(eventiid), bstrmethodname.into().abi(), bstrcriteria.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SetDefaultQuery)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(eventiid), ::core::mem::transmute_copy(bstrmethodname), ::core::mem::transmute_copy(bstrcriteria), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -1994,14 +1447,8 @@ unsafe impl ::windows::core::Interface for IMultiInterfaceEventControl { pub struct IMultiInterfaceEventControl_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub SetMultiInterfacePublisherFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, classfilter: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetSubscriptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventiid: *const ::windows::core::GUID, bstrmethodname: ::core::mem::ManuallyDrop, optionalcriteria: ::core::mem::ManuallyDrop, optionalerrorindex: *const i32, ppcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetSubscriptions: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDefaultQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventiid: *const ::windows::core::GUID, bstrmethodname: ::core::mem::ManuallyDrop, bstrcriteria: ::core::mem::ManuallyDrop, errorindex: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDefaultQuery: usize, + pub GetSubscriptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventiid: *const ::windows::core::GUID, bstrmethodname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, optionalcriteria: ::core::mem::ManuallyDrop<::windows::core::BSTR>, optionalerrorindex: *const i32, ppcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub SetDefaultQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventiid: *const ::windows::core::GUID, bstrmethodname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrcriteria: ::core::mem::ManuallyDrop<::windows::core::BSTR>, errorindex: *mut i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub AllowInprocActivation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfallowinprocactivation: *mut super::super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -2029,14 +1476,11 @@ impl IMultiInterfacePublisherFilter { { (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), peic.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PrepareToFire<'a, P0, P1>(&self, iid: &::windows::core::GUID, methodname: P0, firingcontrol: P1) -> ::windows::core::Result<()> + pub unsafe fn PrepareToFire<'a, P0>(&self, iid: &::windows::core::GUID, methodname: &::windows::core::BSTR, firingcontrol: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFiringControl>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IFiringControl>>, { - (::windows::core::Interface::vtable(self).PrepareToFire)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(iid), methodname.into().abi(), firingcontrol.into().abi()).ok() + (::windows::core::Interface::vtable(self).PrepareToFire)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(iid), ::core::mem::transmute_copy(methodname), firingcontrol.into().abi()).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -2079,32 +1523,23 @@ unsafe impl ::windows::core::Interface for IMultiInterfacePublisherFilter { pub struct IMultiInterfacePublisherFilter_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, peic: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub PrepareToFire: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iid: *const ::windows::core::GUID, methodname: ::core::mem::ManuallyDrop, firingcontrol: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PrepareToFire: usize, + pub PrepareToFire: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iid: *const ::windows::core::GUID, methodname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, firingcontrol: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Com_Events\"`*"] #[repr(transparent)] pub struct IPublisherFilter(::windows::core::IUnknown); impl IPublisherFilter { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Initialize<'a, P0, P1>(&self, methodname: P0, dispuserdefined: P1) -> ::windows::core::Result<()> + pub unsafe fn Initialize<'a, P0>(&self, methodname: &::windows::core::BSTR, dispuserdefined: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::IDispatch>>, { - (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), methodname.into().abi(), dispuserdefined.into().abi()).ok() + (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(methodname), dispuserdefined.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PrepareToFire<'a, P0, P1>(&self, methodname: P0, firingcontrol: P1) -> ::windows::core::Result<()> + pub unsafe fn PrepareToFire<'a, P0>(&self, methodname: &::windows::core::BSTR, firingcontrol: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFiringControl>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IFiringControl>>, { - (::windows::core::Interface::vtable(self).PrepareToFire)(::windows::core::Interface::as_raw(self), methodname.into().abi(), firingcontrol.into().abi()).ok() + (::windows::core::Interface::vtable(self).PrepareToFire)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(methodname), firingcontrol.into().abi()).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -2146,14 +1581,8 @@ unsafe impl ::windows::core::Interface for IPublisherFilter { #[doc(hidden)] pub struct IPublisherFilter_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, methodname: ::core::mem::ManuallyDrop, dispuserdefined: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Initialize: usize, - #[cfg(feature = "Win32_Foundation")] - pub PrepareToFire: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, methodname: ::core::mem::ManuallyDrop, firingcontrol: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PrepareToFire: usize, + pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, methodname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dispuserdefined: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub PrepareToFire: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, methodname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, firingcontrol: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } pub const CEventClass: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcdbec9c0_7a68_11d1_88f9_0080c7d771bf); pub const CEventPublisher: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xab944620_79c6_11d1_88f9_0080c7d771bf); @@ -2191,17 +1620,15 @@ impl ::core::fmt::Debug for EOC_ChangeType { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_Com_Events\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Com_Events\"`*"] pub struct COMEVENTSYSCHANGEINFO { pub cbSize: u32, pub changeType: EOC_ChangeType, - pub objectId: super::super::super::Foundation::BSTR, - pub partitionId: super::super::super::Foundation::BSTR, - pub applicationId: super::super::super::Foundation::BSTR, + pub objectId: ::windows::core::BSTR, + pub partitionId: ::windows::core::BSTR, + pub applicationId: ::windows::core::BSTR, pub reserved: [::windows::core::GUID; 10], } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for COMEVENTSYSCHANGEINFO { fn clone(&self) -> Self { Self { @@ -2214,25 +1641,20 @@ impl ::core::clone::Clone for COMEVENTSYSCHANGEINFO { } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for COMEVENTSYSCHANGEINFO { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("COMEVENTSYSCHANGEINFO").field("cbSize", &self.cbSize).field("changeType", &self.changeType).field("objectId", &self.objectId).field("partitionId", &self.partitionId).field("applicationId", &self.applicationId).field("reserved", &self.reserved).finish() } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for COMEVENTSYSCHANGEINFO { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for COMEVENTSYSCHANGEINFO { fn eq(&self, other: &Self) -> bool { self.cbSize == other.cbSize && self.changeType == other.changeType && self.objectId == other.objectId && self.partitionId == other.partitionId && self.applicationId == other.applicationId && self.reserved == other.reserved } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for COMEVENTSYSCHANGEINFO {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for COMEVENTSYSCHANGEINFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/Marshal/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Com/Marshal/mod.rs index d62577a4f9..84fe85d57a 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/Marshal/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/Marshal/mod.rs @@ -1,80 +1,72 @@ -#[doc = "*Required features: `\"Win32_System_Com_Marshal\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Com_Marshal\"`*"] #[inline] -pub unsafe fn BSTR_UserFree(param0: &u32, param1: &super::super::super::Foundation::BSTR) { +pub unsafe fn BSTR_UserFree(param0: &u32, param1: &::windows::core::BSTR) { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn BSTR_UserFree(param0: *const u32, param1: *const super::super::super::Foundation::BSTR); + fn BSTR_UserFree(param0: *const u32, param1: *const ::core::mem::ManuallyDrop<::windows::core::BSTR>); } BSTR_UserFree(::core::mem::transmute(param0), ::core::mem::transmute(param1)) } -#[doc = "*Required features: `\"Win32_System_Com_Marshal\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Com_Marshal\"`*"] #[inline] -pub unsafe fn BSTR_UserFree64(param0: &u32, param1: &super::super::super::Foundation::BSTR) { +pub unsafe fn BSTR_UserFree64(param0: &u32, param1: &::windows::core::BSTR) { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn BSTR_UserFree64(param0: *const u32, param1: *const super::super::super::Foundation::BSTR); + fn BSTR_UserFree64(param0: *const u32, param1: *const ::core::mem::ManuallyDrop<::windows::core::BSTR>); } BSTR_UserFree64(::core::mem::transmute(param0), ::core::mem::transmute(param1)) } -#[doc = "*Required features: `\"Win32_System_Com_Marshal\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Com_Marshal\"`*"] #[inline] -pub unsafe fn BSTR_UserMarshal(param0: &u32, param1: &mut u8, param2: &super::super::super::Foundation::BSTR) -> *mut u8 { +pub unsafe fn BSTR_UserMarshal(param0: &u32, param1: &mut u8, param2: &::windows::core::BSTR) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn BSTR_UserMarshal(param0: *const u32, param1: *mut u8, param2: *const super::super::super::Foundation::BSTR) -> *mut u8; + fn BSTR_UserMarshal(param0: *const u32, param1: *mut u8, param2: *const ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> *mut u8; } BSTR_UserMarshal(::core::mem::transmute(param0), ::core::mem::transmute(param1), ::core::mem::transmute(param2)) } -#[doc = "*Required features: `\"Win32_System_Com_Marshal\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Com_Marshal\"`*"] #[inline] -pub unsafe fn BSTR_UserMarshal64(param0: &u32, param1: &mut u8, param2: &super::super::super::Foundation::BSTR) -> *mut u8 { +pub unsafe fn BSTR_UserMarshal64(param0: &u32, param1: &mut u8, param2: &::windows::core::BSTR) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn BSTR_UserMarshal64(param0: *const u32, param1: *mut u8, param2: *const super::super::super::Foundation::BSTR) -> *mut u8; + fn BSTR_UserMarshal64(param0: *const u32, param1: *mut u8, param2: *const ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> *mut u8; } BSTR_UserMarshal64(::core::mem::transmute(param0), ::core::mem::transmute(param1), ::core::mem::transmute(param2)) } -#[doc = "*Required features: `\"Win32_System_Com_Marshal\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Com_Marshal\"`*"] #[inline] -pub unsafe fn BSTR_UserSize(param0: &u32, param1: u32, param2: &super::super::super::Foundation::BSTR) -> u32 { +pub unsafe fn BSTR_UserSize(param0: &u32, param1: u32, param2: &::windows::core::BSTR) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn BSTR_UserSize(param0: *const u32, param1: u32, param2: *const super::super::super::Foundation::BSTR) -> u32; + fn BSTR_UserSize(param0: *const u32, param1: u32, param2: *const ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> u32; } BSTR_UserSize(::core::mem::transmute(param0), param1, ::core::mem::transmute(param2)) } -#[doc = "*Required features: `\"Win32_System_Com_Marshal\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Com_Marshal\"`*"] #[inline] -pub unsafe fn BSTR_UserSize64(param0: &u32, param1: u32, param2: &super::super::super::Foundation::BSTR) -> u32 { +pub unsafe fn BSTR_UserSize64(param0: &u32, param1: u32, param2: &::windows::core::BSTR) -> u32 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn BSTR_UserSize64(param0: *const u32, param1: u32, param2: *const super::super::super::Foundation::BSTR) -> u32; + fn BSTR_UserSize64(param0: *const u32, param1: u32, param2: *const ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> u32; } BSTR_UserSize64(::core::mem::transmute(param0), param1, ::core::mem::transmute(param2)) } -#[doc = "*Required features: `\"Win32_System_Com_Marshal\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Com_Marshal\"`*"] #[inline] -pub unsafe fn BSTR_UserUnmarshal(param0: &u32, param1: *const u8, param2: &mut super::super::super::Foundation::BSTR) -> *mut u8 { +pub unsafe fn BSTR_UserUnmarshal(param0: &u32, param1: *const u8, param2: &mut ::windows::core::BSTR) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn BSTR_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut super::super::super::Foundation::BSTR) -> *mut u8; + fn BSTR_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> *mut u8; } BSTR_UserUnmarshal(::core::mem::transmute(param0), ::core::mem::transmute(param1), ::core::mem::transmute(param2)) } -#[doc = "*Required features: `\"Win32_System_Com_Marshal\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Com_Marshal\"`*"] #[inline] -pub unsafe fn BSTR_UserUnmarshal64(param0: &u32, param1: *const u8, param2: &mut super::super::super::Foundation::BSTR) -> *mut u8 { +pub unsafe fn BSTR_UserUnmarshal64(param0: &u32, param1: *const u8, param2: &mut ::windows::core::BSTR) -> *mut u8 { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn BSTR_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut super::super::super::Foundation::BSTR) -> *mut u8; + fn BSTR_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> *mut u8; } BSTR_UserUnmarshal64(::core::mem::transmute(param0), ::core::mem::transmute(param1), ::core::mem::transmute(param2)) } diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/StructuredStorage/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Com/StructuredStorage/mod.rs index 63d3ce1473..de0ffa3d7a 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/StructuredStorage/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/StructuredStorage/mod.rs @@ -2148,39 +2148,31 @@ impl ::core::default::Default for CABOOL { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] pub struct CABSTR { pub cElems: u32, - pub pElems: *mut super::super::super::Foundation::BSTR, + pub pElems: *mut ::windows::core::BSTR, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for CABSTR {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for CABSTR { fn clone(&self) -> Self { *self } } -#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for CABSTR { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("CABSTR").field("cElems", &self.cElems).field("pElems", &self.pElems).finish() } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for CABSTR { type Abi = Self; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for CABSTR { fn eq(&self, other: &Self) -> bool { unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for CABSTR {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for CABSTR { fn default() -> Self { unsafe { ::core::mem::zeroed() } @@ -3123,7 +3115,7 @@ pub union PROPVARIANT_0_0_0 { pub filetime: super::super::super::Foundation::FILETIME, pub puuid: *mut ::windows::core::GUID, pub pclipdata: *mut CLIPDATA, - pub bstrVal: ::core::mem::ManuallyDrop, + pub bstrVal: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pub bstrblobVal: BSTRBLOB, pub blob: super::BLOB, pub pszVal: ::windows::core::PSTR, @@ -3171,7 +3163,7 @@ pub union PROPVARIANT_0_0_0 { pub pscode: *mut i32, pub pcyVal: *mut super::CY, pub pdate: *mut f64, - pub pbstrVal: *mut super::super::super::Foundation::BSTR, + pub pbstrVal: *mut ::windows::core::BSTR, pub ppunkVal: *mut ::core::option::Option<::windows::core::IUnknown>, pub ppdispVal: *mut ::core::option::Option, pub pparray: *mut *mut super::SAFEARRAY, diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Com/impl.rs index 50ce20f85c..d5e1f6dd50 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/impl.rs @@ -2062,17 +2062,14 @@ impl IEnumUnknown_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IErrorInfo_Impl: Sized { fn GetGUID(&self) -> ::windows::core::Result<::windows::core::GUID>; - fn GetSource(&self) -> ::windows::core::Result; - fn GetDescription(&self) -> ::windows::core::Result; - fn GetHelpFile(&self) -> ::windows::core::Result; + fn GetSource(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetDescription(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetHelpFile(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetHelpContext(&self) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IErrorInfo {} -#[cfg(feature = "Win32_Foundation")] impl IErrorInfo_Vtbl { pub const fn new, Impl: IErrorInfo_Impl, const OFFSET: isize>() -> IErrorInfo_Vtbl { unsafe extern "system" fn GetGUID, Impl: IErrorInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pguid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT { @@ -2086,7 +2083,7 @@ impl IErrorInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetSource, Impl: IErrorInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsource: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSource, Impl: IErrorInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsource: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetSource() { @@ -2097,7 +2094,7 @@ impl IErrorInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetDescription, Impl: IErrorInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDescription, Impl: IErrorInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDescription() { @@ -2108,7 +2105,7 @@ impl IErrorInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetHelpFile, Impl: IErrorInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrhelpfile: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetHelpFile, Impl: IErrorInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrhelpfile: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetHelpFile() { @@ -2143,13 +2140,10 @@ impl IErrorInfo_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IErrorLog_Impl: Sized { fn AddError(&self, pszpropname: &::windows::core::PCWSTR, pexcepinfo: *const EXCEPINFO) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IErrorLog {} -#[cfg(feature = "Win32_Foundation")] impl IErrorLog_Vtbl { pub const fn new, Impl: IErrorLog_Impl, const OFFSET: isize>() -> IErrorLog_Vtbl { unsafe extern "system" fn AddError, Impl: IErrorLog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszpropname: ::windows::core::PCWSTR, pexcepinfo: *const EXCEPINFO) -> ::windows::core::HRESULT { @@ -4153,17 +4147,17 @@ pub trait ITypeInfo_Impl: Sized { fn GetTypeComp(&self) -> ::windows::core::Result; fn GetFuncDesc(&self, index: u32) -> ::windows::core::Result<*mut FUNCDESC>; fn GetVarDesc(&self, index: u32) -> ::windows::core::Result<*mut VARDESC>; - fn GetNames(&self, memid: i32, rgbstrnames: *mut super::super::Foundation::BSTR, cmaxnames: u32, pcnames: *mut u32) -> ::windows::core::Result<()>; + fn GetNames(&self, memid: i32, rgbstrnames: *mut ::windows::core::BSTR, cmaxnames: u32, pcnames: *mut u32) -> ::windows::core::Result<()>; fn GetRefTypeOfImplType(&self, index: u32) -> ::windows::core::Result; fn GetImplTypeFlags(&self, index: u32) -> ::windows::core::Result; fn GetIDsOfNames(&self, rgsznames: *const ::windows::core::PWSTR, cnames: u32, pmemid: *mut i32) -> ::windows::core::Result<()>; fn Invoke(&self, pvinstance: *const ::core::ffi::c_void, memid: i32, wflags: u16, pdispparams: *mut DISPPARAMS, pvarresult: *mut VARIANT, pexcepinfo: *mut EXCEPINFO, puargerr: *mut u32) -> ::windows::core::Result<()>; - fn GetDocumentation(&self, memid: i32, pbstrname: *mut super::super::Foundation::BSTR, pbstrdocstring: *mut super::super::Foundation::BSTR, pdwhelpcontext: *mut u32, pbstrhelpfile: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetDllEntry(&self, memid: i32, invkind: INVOKEKIND, pbstrdllname: *mut super::super::Foundation::BSTR, pbstrname: *mut super::super::Foundation::BSTR, pwordinal: *mut u16) -> ::windows::core::Result<()>; + fn GetDocumentation(&self, memid: i32, pbstrname: *mut ::windows::core::BSTR, pbstrdocstring: *mut ::windows::core::BSTR, pdwhelpcontext: *mut u32, pbstrhelpfile: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetDllEntry(&self, memid: i32, invkind: INVOKEKIND, pbstrdllname: *mut ::windows::core::BSTR, pbstrname: *mut ::windows::core::BSTR, pwordinal: *mut u16) -> ::windows::core::Result<()>; fn GetRefTypeInfo(&self, hreftype: u32) -> ::windows::core::Result; fn AddressOfMember(&self, memid: i32, invkind: INVOKEKIND, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; fn CreateInstance(&self, punkouter: &::core::option::Option<::windows::core::IUnknown>, riid: *const ::windows::core::GUID, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; - fn GetMops(&self, memid: i32) -> ::windows::core::Result; + fn GetMops(&self, memid: i32) -> ::windows::core::Result<::windows::core::BSTR>; fn GetContainingTypeLib(&self, pptlib: *mut ::core::option::Option, pindex: *mut u32) -> ::windows::core::Result<()>; fn ReleaseTypeAttr(&self, ptypeattr: *const TYPEATTR); fn ReleaseFuncDesc(&self, pfuncdesc: *const FUNCDESC); @@ -4218,7 +4212,7 @@ impl ITypeInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetNames, Impl: ITypeInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, memid: i32, rgbstrnames: *mut super::super::Foundation::BSTR, cmaxnames: u32, pcnames: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetNames, Impl: ITypeInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, memid: i32, rgbstrnames: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, cmaxnames: u32, pcnames: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetNames(::core::mem::transmute_copy(&memid), ::core::mem::transmute_copy(&rgbstrnames), ::core::mem::transmute_copy(&cmaxnames), ::core::mem::transmute_copy(&pcnames)).into() @@ -4255,12 +4249,12 @@ impl ITypeInfo_Vtbl { let this = (*this).get_impl(); this.Invoke(::core::mem::transmute_copy(&pvinstance), ::core::mem::transmute_copy(&memid), ::core::mem::transmute_copy(&wflags), ::core::mem::transmute_copy(&pdispparams), ::core::mem::transmute_copy(&pvarresult), ::core::mem::transmute_copy(&pexcepinfo), ::core::mem::transmute_copy(&puargerr)).into() } - unsafe extern "system" fn GetDocumentation, Impl: ITypeInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, memid: i32, pbstrname: *mut super::super::Foundation::BSTR, pbstrdocstring: *mut super::super::Foundation::BSTR, pdwhelpcontext: *mut u32, pbstrhelpfile: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDocumentation, Impl: ITypeInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, memid: i32, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrdocstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwhelpcontext: *mut u32, pbstrhelpfile: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetDocumentation(::core::mem::transmute_copy(&memid), ::core::mem::transmute_copy(&pbstrname), ::core::mem::transmute_copy(&pbstrdocstring), ::core::mem::transmute_copy(&pdwhelpcontext), ::core::mem::transmute_copy(&pbstrhelpfile)).into() } - unsafe extern "system" fn GetDllEntry, Impl: ITypeInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, memid: i32, invkind: INVOKEKIND, pbstrdllname: *mut super::super::Foundation::BSTR, pbstrname: *mut super::super::Foundation::BSTR, pwordinal: *mut u16) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDllEntry, Impl: ITypeInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, memid: i32, invkind: INVOKEKIND, pbstrdllname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pwordinal: *mut u16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetDllEntry(::core::mem::transmute_copy(&memid), ::core::mem::transmute_copy(&invkind), ::core::mem::transmute_copy(&pbstrdllname), ::core::mem::transmute_copy(&pbstrname), ::core::mem::transmute_copy(&pwordinal)).into() @@ -4286,7 +4280,7 @@ impl ITypeInfo_Vtbl { let this = (*this).get_impl(); this.CreateInstance(::core::mem::transmute(&punkouter), ::core::mem::transmute_copy(&riid), ::core::mem::transmute_copy(&ppvobj)).into() } - unsafe extern "system" fn GetMops, Impl: ITypeInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, memid: i32, pbstrmops: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetMops, Impl: ITypeInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, memid: i32, pbstrmops: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetMops(::core::mem::transmute_copy(&memid)) { @@ -4355,7 +4349,7 @@ pub trait ITypeInfo2_Impl: Sized + ITypeInfo_Impl { fn GetParamCustData(&self, indexfunc: u32, indexparam: u32, guid: *const ::windows::core::GUID) -> ::windows::core::Result; fn GetVarCustData(&self, index: u32, guid: *const ::windows::core::GUID) -> ::windows::core::Result; fn GetImplTypeCustData(&self, index: u32, guid: *const ::windows::core::GUID) -> ::windows::core::Result; - fn GetDocumentation2(&self, memid: i32, lcid: u32, pbstrhelpstring: *mut super::super::Foundation::BSTR, pdwhelpstringcontext: *mut u32, pbstrhelpstringdll: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetDocumentation2(&self, memid: i32, lcid: u32, pbstrhelpstring: *mut ::windows::core::BSTR, pdwhelpstringcontext: *mut u32, pbstrhelpstringdll: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetAllCustData(&self) -> ::windows::core::Result; fn GetAllFuncCustData(&self, index: u32) -> ::windows::core::Result; fn GetAllParamCustData(&self, indexfunc: u32, indexparam: u32) -> ::windows::core::Result; @@ -4466,7 +4460,7 @@ impl ITypeInfo2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetDocumentation2, Impl: ITypeInfo2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, memid: i32, lcid: u32, pbstrhelpstring: *mut super::super::Foundation::BSTR, pdwhelpstringcontext: *mut u32, pbstrhelpstringdll: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDocumentation2, Impl: ITypeInfo2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, memid: i32, lcid: u32, pbstrhelpstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwhelpstringcontext: *mut u32, pbstrhelpstringdll: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetDocumentation2(::core::mem::transmute_copy(&memid), ::core::mem::transmute_copy(&lcid), ::core::mem::transmute_copy(&pbstrhelpstring), ::core::mem::transmute_copy(&pdwhelpstringcontext), ::core::mem::transmute_copy(&pbstrhelpstringdll)).into() @@ -4557,7 +4551,7 @@ pub trait ITypeLib_Impl: Sized { fn GetTypeInfoOfGuid(&self, guid: *const ::windows::core::GUID) -> ::windows::core::Result; fn GetLibAttr(&self) -> ::windows::core::Result<*mut TLIBATTR>; fn GetTypeComp(&self) -> ::windows::core::Result; - fn GetDocumentation(&self, index: i32, pbstrname: *mut super::super::Foundation::BSTR, pbstrdocstring: *mut super::super::Foundation::BSTR, pdwhelpcontext: *mut u32, pbstrhelpfile: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetDocumentation(&self, index: i32, pbstrname: *mut ::windows::core::BSTR, pbstrdocstring: *mut ::windows::core::BSTR, pdwhelpcontext: *mut u32, pbstrhelpfile: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn IsName(&self, sznamebuf: &::windows::core::PWSTR, lhashval: u32, pfname: *mut super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn FindName(&self, sznamebuf: &::windows::core::PWSTR, lhashval: u32, pptinfo: *mut ::core::option::Option, rgmemid: *mut i32, pcfound: *mut u16) -> ::windows::core::Result<()>; fn ReleaseTLibAttr(&self, ptlibattr: *const TLIBATTR); @@ -4627,7 +4621,7 @@ impl ITypeLib_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetDocumentation, Impl: ITypeLib_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: i32, pbstrname: *mut super::super::Foundation::BSTR, pbstrdocstring: *mut super::super::Foundation::BSTR, pdwhelpcontext: *mut u32, pbstrhelpfile: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDocumentation, Impl: ITypeLib_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: i32, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrdocstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwhelpcontext: *mut u32, pbstrhelpfile: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetDocumentation(::core::mem::transmute_copy(&index), ::core::mem::transmute_copy(&pbstrname), ::core::mem::transmute_copy(&pbstrdocstring), ::core::mem::transmute_copy(&pdwhelpcontext), ::core::mem::transmute_copy(&pbstrhelpfile)).into() @@ -4669,7 +4663,7 @@ impl ITypeLib_Vtbl { pub trait ITypeLib2_Impl: Sized + ITypeLib_Impl { fn GetCustData(&self, guid: *const ::windows::core::GUID) -> ::windows::core::Result; fn GetLibStatistics(&self, pcuniquenames: *mut u32, pcchuniquenames: *mut u32) -> ::windows::core::Result<()>; - fn GetDocumentation2(&self, index: i32, lcid: u32, pbstrhelpstring: *mut super::super::Foundation::BSTR, pdwhelpstringcontext: *mut u32, pbstrhelpstringdll: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetDocumentation2(&self, index: i32, lcid: u32, pbstrhelpstring: *mut ::windows::core::BSTR, pdwhelpstringcontext: *mut u32, pbstrhelpstringdll: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetAllCustData(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] @@ -4693,7 +4687,7 @@ impl ITypeLib2_Vtbl { let this = (*this).get_impl(); this.GetLibStatistics(::core::mem::transmute_copy(&pcuniquenames), ::core::mem::transmute_copy(&pcchuniquenames)).into() } - unsafe extern "system" fn GetDocumentation2, Impl: ITypeLib2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: i32, lcid: u32, pbstrhelpstring: *mut super::super::Foundation::BSTR, pdwhelpstringcontext: *mut u32, pbstrhelpstringdll: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDocumentation2, Impl: ITypeLib2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: i32, lcid: u32, pbstrhelpstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwhelpstringcontext: *mut u32, pbstrhelpstringdll: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetDocumentation2(::core::mem::transmute_copy(&index), ::core::mem::transmute_copy(&lcid), ::core::mem::transmute_copy(&pbstrhelpstring), ::core::mem::transmute_copy(&pdwhelpstringcontext), ::core::mem::transmute_copy(&pbstrhelpstringdll)).into() @@ -4721,20 +4715,17 @@ impl ITypeLib2_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait ITypeLibRegistration_Impl: Sized { fn GetGuid(&self) -> ::windows::core::Result<::windows::core::GUID>; - fn GetVersion(&self) -> ::windows::core::Result; + fn GetVersion(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetLcid(&self) -> ::windows::core::Result; - fn GetWin32Path(&self) -> ::windows::core::Result; - fn GetWin64Path(&self) -> ::windows::core::Result; - fn GetDisplayName(&self) -> ::windows::core::Result; + fn GetWin32Path(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetWin64Path(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetDisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetFlags(&self) -> ::windows::core::Result; - fn GetHelpDir(&self) -> ::windows::core::Result; + fn GetHelpDir(&self) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ITypeLibRegistration {} -#[cfg(feature = "Win32_Foundation")] impl ITypeLibRegistration_Vtbl { pub const fn new, Impl: ITypeLibRegistration_Impl, const OFFSET: isize>() -> ITypeLibRegistration_Vtbl { unsafe extern "system" fn GetGuid, Impl: ITypeLibRegistration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pguid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT { @@ -4748,7 +4739,7 @@ impl ITypeLibRegistration_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetVersion, Impl: ITypeLibRegistration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pversion: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetVersion, Impl: ITypeLibRegistration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pversion: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetVersion() { @@ -4770,7 +4761,7 @@ impl ITypeLibRegistration_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetWin32Path, Impl: ITypeLibRegistration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pwin32path: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetWin32Path, Impl: ITypeLibRegistration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pwin32path: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetWin32Path() { @@ -4781,7 +4772,7 @@ impl ITypeLibRegistration_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetWin64Path, Impl: ITypeLibRegistration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pwin64path: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetWin64Path, Impl: ITypeLibRegistration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pwin64path: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetWin64Path() { @@ -4792,7 +4783,7 @@ impl ITypeLibRegistration_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetDisplayName, Impl: ITypeLibRegistration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdisplayname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDisplayName, Impl: ITypeLibRegistration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdisplayname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDisplayName() { @@ -4814,7 +4805,7 @@ impl ITypeLibRegistration_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetHelpDir, Impl: ITypeLibRegistration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, phelpdir: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetHelpDir, Impl: ITypeLibRegistration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, phelpdir: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetHelpDir() { @@ -4866,25 +4857,25 @@ impl ITypeLibRegistrationReader_Vtbl { } #[cfg(feature = "Win32_Foundation")] pub trait IUri_Impl: Sized { - fn GetPropertyBSTR(&self, uriprop: Uri_PROPERTY, pbstrproperty: *mut super::super::Foundation::BSTR, dwflags: u32) -> ::windows::core::Result<()>; + fn GetPropertyBSTR(&self, uriprop: Uri_PROPERTY, pbstrproperty: *mut ::windows::core::BSTR, dwflags: u32) -> ::windows::core::Result<()>; fn GetPropertyLength(&self, uriprop: Uri_PROPERTY, pcchproperty: *mut u32, dwflags: u32) -> ::windows::core::Result<()>; fn GetPropertyDWORD(&self, uriprop: Uri_PROPERTY, pdwproperty: *mut u32, dwflags: u32) -> ::windows::core::Result<()>; fn HasProperty(&self, uriprop: Uri_PROPERTY) -> ::windows::core::Result; - fn GetAbsoluteUri(&self) -> ::windows::core::Result; - fn GetAuthority(&self) -> ::windows::core::Result; - fn GetDisplayUri(&self) -> ::windows::core::Result; - fn GetDomain(&self) -> ::windows::core::Result; - fn GetExtension(&self) -> ::windows::core::Result; - fn GetFragment(&self) -> ::windows::core::Result; - fn GetHost(&self) -> ::windows::core::Result; - fn GetPassword(&self) -> ::windows::core::Result; - fn GetPath(&self) -> ::windows::core::Result; - fn GetPathAndQuery(&self) -> ::windows::core::Result; - fn GetQuery(&self) -> ::windows::core::Result; - fn GetRawUri(&self) -> ::windows::core::Result; - fn GetSchemeName(&self) -> ::windows::core::Result; - fn GetUserInfo(&self) -> ::windows::core::Result; - fn GetUserName(&self) -> ::windows::core::Result; + fn GetAbsoluteUri(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetAuthority(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetDisplayUri(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetDomain(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetExtension(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetFragment(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetHost(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetPassword(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetPath(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetPathAndQuery(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetQuery(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetRawUri(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetSchemeName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetUserInfo(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetUserName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetHostType(&self) -> ::windows::core::Result; fn GetPort(&self) -> ::windows::core::Result; fn GetScheme(&self) -> ::windows::core::Result; @@ -4897,7 +4888,7 @@ impl ::windows::core::RuntimeName for IUri {} #[cfg(feature = "Win32_Foundation")] impl IUri_Vtbl { pub const fn new, Impl: IUri_Impl, const OFFSET: isize>() -> IUri_Vtbl { - unsafe extern "system" fn GetPropertyBSTR, Impl: IUri_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uriprop: Uri_PROPERTY, pbstrproperty: *mut super::super::Foundation::BSTR, dwflags: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPropertyBSTR, Impl: IUri_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uriprop: Uri_PROPERTY, pbstrproperty: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwflags: u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetPropertyBSTR(::core::mem::transmute_copy(&uriprop), ::core::mem::transmute_copy(&pbstrproperty), ::core::mem::transmute_copy(&dwflags)).into() @@ -4923,7 +4914,7 @@ impl IUri_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetAbsoluteUri, Impl: IUri_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrabsoluteuri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetAbsoluteUri, Impl: IUri_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrabsoluteuri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetAbsoluteUri() { @@ -4934,7 +4925,7 @@ impl IUri_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetAuthority, Impl: IUri_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrauthority: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetAuthority, Impl: IUri_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrauthority: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetAuthority() { @@ -4945,7 +4936,7 @@ impl IUri_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetDisplayUri, Impl: IUri_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdisplaystring: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDisplayUri, Impl: IUri_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdisplaystring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDisplayUri() { @@ -4956,7 +4947,7 @@ impl IUri_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetDomain, Impl: IUri_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdomain: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDomain, Impl: IUri_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdomain: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDomain() { @@ -4967,7 +4958,7 @@ impl IUri_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetExtension, Impl: IUri_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrextension: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetExtension, Impl: IUri_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrextension: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetExtension() { @@ -4978,7 +4969,7 @@ impl IUri_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetFragment, Impl: IUri_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfragment: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFragment, Impl: IUri_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfragment: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetFragment() { @@ -4989,7 +4980,7 @@ impl IUri_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetHost, Impl: IUri_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrhost: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetHost, Impl: IUri_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrhost: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetHost() { @@ -5000,7 +4991,7 @@ impl IUri_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetPassword, Impl: IUri_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpassword: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPassword, Impl: IUri_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpassword: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetPassword() { @@ -5011,7 +5002,7 @@ impl IUri_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetPath, Impl: IUri_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPath, Impl: IUri_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetPath() { @@ -5022,7 +5013,7 @@ impl IUri_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetPathAndQuery, Impl: IUri_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpathandquery: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPathAndQuery, Impl: IUri_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpathandquery: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetPathAndQuery() { @@ -5033,7 +5024,7 @@ impl IUri_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetQuery, Impl: IUri_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrquery: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetQuery, Impl: IUri_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrquery: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetQuery() { @@ -5044,7 +5035,7 @@ impl IUri_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetRawUri, Impl: IUri_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrrawuri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetRawUri, Impl: IUri_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrrawuri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetRawUri() { @@ -5055,7 +5046,7 @@ impl IUri_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetSchemeName, Impl: IUri_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrschemename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSchemeName, Impl: IUri_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrschemename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetSchemeName() { @@ -5066,7 +5057,7 @@ impl IUri_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetUserInfo, Impl: IUri_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstruserinfo: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetUserInfo, Impl: IUri_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstruserinfo: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetUserInfo() { @@ -5077,7 +5068,7 @@ impl IUri_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetUserName, Impl: IUri_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrusername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetUserName, Impl: IUri_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrusername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetUserName() { diff --git a/crates/libs/windows/src/Windows/Win32/System/Com/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Com/mod.rs index 5f59beb0fb..b900f4c474 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Com/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Com/mod.rs @@ -4449,23 +4449,17 @@ impl IErrorInfo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetGUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetSource(&self) -> ::windows::core::Result { + pub unsafe fn GetSource(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetSource)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetSource)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDescription(&self) -> ::windows::core::Result { + pub unsafe fn GetDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetHelpFile(&self) -> ::windows::core::Result { + pub unsafe fn GetHelpFile(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetHelpFile)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetHelpFile)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetHelpContext(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4512,26 +4506,15 @@ unsafe impl ::windows::core::Interface for IErrorInfo { pub struct IErrorInfo_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub GetGUID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsource: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetSource: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDescription: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetHelpFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrhelpfile: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetHelpFile: usize, + pub GetSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsource: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetHelpFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrhelpfile: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetHelpContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwhelpcontext: *mut u32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[repr(transparent)] pub struct IErrorLog(::windows::core::IUnknown); impl IErrorLog { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn AddError<'a, P0>(&self, pszpropname: P0, pexcepinfo: &EXCEPINFO) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::PCWSTR>, @@ -4578,10 +4561,7 @@ unsafe impl ::windows::core::Interface for IErrorLog { #[doc(hidden)] pub struct IErrorLog_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] pub AddError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszpropname: ::windows::core::PCWSTR, pexcepinfo: *const EXCEPINFO) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddError: usize, } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[repr(transparent)] @@ -8276,9 +8256,7 @@ impl ITypeInfo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetVarDesc)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut VARDESC>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetNames(&self, memid: i32, rgbstrnames: *mut super::super::Foundation::BSTR, cmaxnames: u32, pcnames: &mut u32) -> ::windows::core::Result<()> { + pub unsafe fn GetNames(&self, memid: i32, rgbstrnames: *mut ::windows::core::BSTR, cmaxnames: u32, pcnames: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetNames)(::windows::core::Interface::as_raw(self), memid, ::core::mem::transmute(rgbstrnames), cmaxnames, ::core::mem::transmute(pcnames)).ok() } pub unsafe fn GetRefTypeOfImplType(&self, index: u32) -> ::windows::core::Result { @@ -8297,14 +8275,10 @@ impl ITypeInfo { pub unsafe fn Invoke(&self, pvinstance: *const ::core::ffi::c_void, memid: i32, wflags: u16, pdispparams: &mut DISPPARAMS, pvarresult: &mut VARIANT, pexcepinfo: &mut EXCEPINFO, puargerr: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Invoke)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pvinstance), memid, wflags, ::core::mem::transmute(pdispparams), ::core::mem::transmute(pvarresult), ::core::mem::transmute(pexcepinfo), ::core::mem::transmute(puargerr)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDocumentation(&self, memid: i32, pbstrname: ::core::option::Option<&mut super::super::Foundation::BSTR>, pbstrdocstring: ::core::option::Option<&mut super::super::Foundation::BSTR>, pdwhelpcontext: &mut u32, pbstrhelpfile: ::core::option::Option<&mut super::super::Foundation::BSTR>) -> ::windows::core::Result<()> { + pub unsafe fn GetDocumentation(&self, memid: i32, pbstrname: ::core::option::Option<&mut ::windows::core::BSTR>, pbstrdocstring: ::core::option::Option<&mut ::windows::core::BSTR>, pdwhelpcontext: &mut u32, pbstrhelpfile: ::core::option::Option<&mut ::windows::core::BSTR>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetDocumentation)(::windows::core::Interface::as_raw(self), memid, ::core::mem::transmute(pbstrname), ::core::mem::transmute(pbstrdocstring), ::core::mem::transmute(pdwhelpcontext), ::core::mem::transmute(pbstrhelpfile)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDllEntry(&self, memid: i32, invkind: INVOKEKIND, pbstrdllname: ::core::option::Option<&mut super::super::Foundation::BSTR>, pbstrname: ::core::option::Option<&mut super::super::Foundation::BSTR>, pwordinal: &mut u16) -> ::windows::core::Result<()> { + pub unsafe fn GetDllEntry(&self, memid: i32, invkind: INVOKEKIND, pbstrdllname: ::core::option::Option<&mut ::windows::core::BSTR>, pbstrname: ::core::option::Option<&mut ::windows::core::BSTR>, pwordinal: &mut u16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetDllEntry)(::windows::core::Interface::as_raw(self), memid, invkind, ::core::mem::transmute(pbstrdllname), ::core::mem::transmute(pbstrname), ::core::mem::transmute(pwordinal)).ok() } pub unsafe fn GetRefTypeInfo(&self, hreftype: u32) -> ::windows::core::Result { @@ -8322,11 +8296,9 @@ impl ITypeInfo { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).CreateInstance)(::windows::core::Interface::as_raw(self), punkouter.into().abi(), &::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetMops(&self, memid: i32) -> ::windows::core::Result { + pub unsafe fn GetMops(&self, memid: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetMops)(::windows::core::Interface::as_raw(self), memid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetMops)(::windows::core::Interface::as_raw(self), memid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetContainingTypeLib(&self, pptlib: &mut ::core::option::Option, pindex: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetContainingTypeLib)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pptlib), ::core::mem::transmute(pindex)).ok() @@ -8399,10 +8371,7 @@ pub struct ITypeInfo_Vtbl { pub GetVarDesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, ppvardesc: *mut *mut VARDESC) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Ole")))] GetVarDesc: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetNames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, memid: i32, rgbstrnames: *mut super::super::Foundation::BSTR, cmaxnames: u32, pcnames: *mut u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetNames: usize, + pub GetNames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, memid: i32, rgbstrnames: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, cmaxnames: u32, pcnames: *mut u32) -> ::windows::core::HRESULT, pub GetRefTypeOfImplType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, preftype: *mut u32) -> ::windows::core::HRESULT, pub GetImplTypeFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, pimpltypeflags: *mut i32) -> ::windows::core::HRESULT, pub GetIDsOfNames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rgsznames: *const ::windows::core::PWSTR, cnames: u32, pmemid: *mut i32) -> ::windows::core::HRESULT, @@ -8410,21 +8379,12 @@ pub struct ITypeInfo_Vtbl { pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvinstance: *const ::core::ffi::c_void, memid: i32, wflags: u16, pdispparams: *mut DISPPARAMS, pvarresult: *mut VARIANT, pexcepinfo: *mut EXCEPINFO, puargerr: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Ole")))] Invoke: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetDocumentation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, memid: i32, pbstrname: *mut super::super::Foundation::BSTR, pbstrdocstring: *mut super::super::Foundation::BSTR, pdwhelpcontext: *mut u32, pbstrhelpfile: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDocumentation: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetDllEntry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, memid: i32, invkind: INVOKEKIND, pbstrdllname: *mut super::super::Foundation::BSTR, pbstrname: *mut super::super::Foundation::BSTR, pwordinal: *mut u16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDllEntry: usize, + pub GetDocumentation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, memid: i32, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrdocstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwhelpcontext: *mut u32, pbstrhelpfile: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetDllEntry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, memid: i32, invkind: INVOKEKIND, pbstrdllname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pwordinal: *mut u16) -> ::windows::core::HRESULT, pub GetRefTypeInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hreftype: u32, pptinfo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub AddressOfMember: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, memid: i32, invkind: INVOKEKIND, ppv: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkouter: *mut ::core::ffi::c_void, riid: *const ::windows::core::GUID, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetMops: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, memid: i32, pbstrmops: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetMops: usize, + pub GetMops: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, memid: i32, pbstrmops: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetContainingTypeLib: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pptlib: *mut *mut ::core::ffi::c_void, pindex: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Ole")] pub ReleaseTypeAttr: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptypeattr: *const TYPEATTR), @@ -8465,9 +8425,7 @@ impl ITypeInfo2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetVarDesc)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut VARDESC>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetNames(&self, memid: i32, rgbstrnames: *mut super::super::Foundation::BSTR, cmaxnames: u32, pcnames: &mut u32) -> ::windows::core::Result<()> { + pub unsafe fn GetNames(&self, memid: i32, rgbstrnames: *mut ::windows::core::BSTR, cmaxnames: u32, pcnames: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetNames)(::windows::core::Interface::as_raw(self), memid, ::core::mem::transmute(rgbstrnames), cmaxnames, ::core::mem::transmute(pcnames)).ok() } pub unsafe fn GetRefTypeOfImplType(&self, index: u32) -> ::windows::core::Result { @@ -8486,14 +8444,10 @@ impl ITypeInfo2 { pub unsafe fn Invoke(&self, pvinstance: *const ::core::ffi::c_void, memid: i32, wflags: u16, pdispparams: &mut DISPPARAMS, pvarresult: &mut VARIANT, pexcepinfo: &mut EXCEPINFO, puargerr: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Invoke)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pvinstance), memid, wflags, ::core::mem::transmute(pdispparams), ::core::mem::transmute(pvarresult), ::core::mem::transmute(pexcepinfo), ::core::mem::transmute(puargerr)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDocumentation(&self, memid: i32, pbstrname: ::core::option::Option<&mut super::super::Foundation::BSTR>, pbstrdocstring: ::core::option::Option<&mut super::super::Foundation::BSTR>, pdwhelpcontext: &mut u32, pbstrhelpfile: ::core::option::Option<&mut super::super::Foundation::BSTR>) -> ::windows::core::Result<()> { + pub unsafe fn GetDocumentation(&self, memid: i32, pbstrname: ::core::option::Option<&mut ::windows::core::BSTR>, pbstrdocstring: ::core::option::Option<&mut ::windows::core::BSTR>, pdwhelpcontext: &mut u32, pbstrhelpfile: ::core::option::Option<&mut ::windows::core::BSTR>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetDocumentation)(::windows::core::Interface::as_raw(self), memid, ::core::mem::transmute(pbstrname), ::core::mem::transmute(pbstrdocstring), ::core::mem::transmute(pdwhelpcontext), ::core::mem::transmute(pbstrhelpfile)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDllEntry(&self, memid: i32, invkind: INVOKEKIND, pbstrdllname: ::core::option::Option<&mut super::super::Foundation::BSTR>, pbstrname: ::core::option::Option<&mut super::super::Foundation::BSTR>, pwordinal: &mut u16) -> ::windows::core::Result<()> { + pub unsafe fn GetDllEntry(&self, memid: i32, invkind: INVOKEKIND, pbstrdllname: ::core::option::Option<&mut ::windows::core::BSTR>, pbstrname: ::core::option::Option<&mut ::windows::core::BSTR>, pwordinal: &mut u16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetDllEntry)(::windows::core::Interface::as_raw(self), memid, invkind, ::core::mem::transmute(pbstrdllname), ::core::mem::transmute(pbstrname), ::core::mem::transmute(pwordinal)).ok() } pub unsafe fn GetRefTypeInfo(&self, hreftype: u32) -> ::windows::core::Result { @@ -8511,11 +8465,9 @@ impl ITypeInfo2 { let mut result__ = ::core::option::Option::None; (::windows::core::Interface::vtable(self).base__.CreateInstance)(::windows::core::Interface::as_raw(self), punkouter.into().abi(), &::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetMops(&self, memid: i32) -> ::windows::core::Result { + pub unsafe fn GetMops(&self, memid: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetMops)(::windows::core::Interface::as_raw(self), memid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetMops)(::windows::core::Interface::as_raw(self), memid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetContainingTypeLib(&self, pptlib: &mut ::core::option::Option, pindex: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetContainingTypeLib)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pptlib), ::core::mem::transmute(pindex)).ok() @@ -8581,9 +8533,7 @@ impl ITypeInfo2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetImplTypeCustData)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(guid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDocumentation2(&self, memid: i32, lcid: u32, pbstrhelpstring: ::core::option::Option<&mut super::super::Foundation::BSTR>, pdwhelpstringcontext: &mut u32, pbstrhelpstringdll: ::core::option::Option<&mut super::super::Foundation::BSTR>) -> ::windows::core::Result<()> { + pub unsafe fn GetDocumentation2(&self, memid: i32, lcid: u32, pbstrhelpstring: ::core::option::Option<&mut ::windows::core::BSTR>, pdwhelpstringcontext: &mut u32, pbstrhelpstringdll: ::core::option::Option<&mut ::windows::core::BSTR>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetDocumentation2)(::windows::core::Interface::as_raw(self), memid, lcid, ::core::mem::transmute(pbstrhelpstring), ::core::mem::transmute(pdwhelpstringcontext), ::core::mem::transmute(pbstrhelpstringdll)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Ole\"`*"] @@ -8695,10 +8645,7 @@ pub struct ITypeInfo2_Vtbl { pub GetImplTypeCustData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, guid: *const ::windows::core::GUID, pvarval: *mut VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Ole")))] GetImplTypeCustData: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetDocumentation2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, memid: i32, lcid: u32, pbstrhelpstring: *mut super::super::Foundation::BSTR, pdwhelpstringcontext: *mut u32, pbstrhelpstringdll: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDocumentation2: usize, + pub GetDocumentation2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, memid: i32, lcid: u32, pbstrhelpstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwhelpstringcontext: *mut u32, pbstrhelpstringdll: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] pub GetAllCustData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcustdata: *mut CUSTDATA) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Ole")))] @@ -8747,9 +8694,7 @@ impl ITypeLib { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetTypeComp)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDocumentation(&self, index: i32, pbstrname: ::core::option::Option<&mut super::super::Foundation::BSTR>, pbstrdocstring: ::core::option::Option<&mut super::super::Foundation::BSTR>, pdwhelpcontext: &mut u32, pbstrhelpfile: ::core::option::Option<&mut super::super::Foundation::BSTR>) -> ::windows::core::Result<()> { + pub unsafe fn GetDocumentation(&self, index: i32, pbstrname: ::core::option::Option<&mut ::windows::core::BSTR>, pbstrdocstring: ::core::option::Option<&mut ::windows::core::BSTR>, pdwhelpcontext: &mut u32, pbstrhelpfile: ::core::option::Option<&mut ::windows::core::BSTR>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetDocumentation)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(pbstrname), ::core::mem::transmute(pbstrdocstring), ::core::mem::transmute(pdwhelpcontext), ::core::mem::transmute(pbstrhelpfile)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] @@ -8809,10 +8754,7 @@ pub struct ITypeLib_Vtbl { pub GetTypeInfoOfGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: *const ::windows::core::GUID, pptinfo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetLibAttr: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pptlibattr: *mut *mut TLIBATTR) -> ::windows::core::HRESULT, pub GetTypeComp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pptcomp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetDocumentation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, pbstrname: *mut super::super::Foundation::BSTR, pbstrdocstring: *mut super::super::Foundation::BSTR, pdwhelpcontext: *mut u32, pbstrhelpfile: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDocumentation: usize, + pub GetDocumentation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrdocstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwhelpcontext: *mut u32, pbstrhelpfile: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub IsName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sznamebuf: ::windows::core::PWSTR, lhashval: u32, pfname: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -8847,9 +8789,7 @@ impl ITypeLib2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetTypeComp)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDocumentation(&self, index: i32, pbstrname: ::core::option::Option<&mut super::super::Foundation::BSTR>, pbstrdocstring: ::core::option::Option<&mut super::super::Foundation::BSTR>, pdwhelpcontext: &mut u32, pbstrhelpfile: ::core::option::Option<&mut super::super::Foundation::BSTR>) -> ::windows::core::Result<()> { + pub unsafe fn GetDocumentation(&self, index: i32, pbstrname: ::core::option::Option<&mut ::windows::core::BSTR>, pbstrdocstring: ::core::option::Option<&mut ::windows::core::BSTR>, pdwhelpcontext: &mut u32, pbstrhelpfile: ::core::option::Option<&mut ::windows::core::BSTR>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetDocumentation)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(pbstrname), ::core::mem::transmute(pbstrdocstring), ::core::mem::transmute(pdwhelpcontext), ::core::mem::transmute(pbstrhelpfile)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] @@ -8872,9 +8812,7 @@ impl ITypeLib2 { pub unsafe fn GetLibStatistics(&self, pcuniquenames: &mut u32, pcchuniquenames: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetLibStatistics)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pcuniquenames), ::core::mem::transmute(pcchuniquenames)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDocumentation2(&self, index: i32, lcid: u32, pbstrhelpstring: ::core::option::Option<&mut super::super::Foundation::BSTR>, pdwhelpstringcontext: &mut u32, pbstrhelpstringdll: ::core::option::Option<&mut super::super::Foundation::BSTR>) -> ::windows::core::Result<()> { + pub unsafe fn GetDocumentation2(&self, index: i32, lcid: u32, pbstrhelpstring: ::core::option::Option<&mut ::windows::core::BSTR>, pdwhelpstringcontext: &mut u32, pbstrhelpstringdll: ::core::option::Option<&mut ::windows::core::BSTR>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetDocumentation2)(::windows::core::Interface::as_raw(self), index, lcid, ::core::mem::transmute(pbstrhelpstring), ::core::mem::transmute(pdwhelpstringcontext), ::core::mem::transmute(pbstrhelpstringdll)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Ole\"`*"] @@ -8943,10 +8881,7 @@ pub struct ITypeLib2_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Ole")))] GetCustData: usize, pub GetLibStatistics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcuniquenames: *mut u32, pcchuniquenames: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetDocumentation2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, lcid: u32, pbstrhelpstring: *mut super::super::Foundation::BSTR, pdwhelpstringcontext: *mut u32, pbstrhelpstringdll: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDocumentation2: usize, + pub GetDocumentation2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, lcid: u32, pbstrhelpstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwhelpstringcontext: *mut u32, pbstrhelpstringdll: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] pub GetAllCustData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcustdata: *mut CUSTDATA) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Ole")))] @@ -8960,43 +8895,33 @@ impl ITypeLibRegistration { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetVersion(&self) -> ::windows::core::Result { + pub unsafe fn GetVersion(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetVersion)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetVersion)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetLcid(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetLcid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetWin32Path(&self) -> ::windows::core::Result { + pub unsafe fn GetWin32Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetWin32Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetWin32Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetWin64Path(&self) -> ::windows::core::Result { + pub unsafe fn GetWin64Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetWin64Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetWin64Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDisplayName(&self) -> ::windows::core::Result { + pub unsafe fn GetDisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetFlags(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetFlags)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetHelpDir(&self) -> ::windows::core::Result { + pub unsafe fn GetHelpDir(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetHelpDir)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetHelpDir)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -9039,28 +8964,13 @@ unsafe impl ::windows::core::Interface for ITypeLibRegistration { pub struct ITypeLibRegistration_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub GetGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pversion: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetVersion: usize, + pub GetVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pversion: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetLcid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcid: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetWin32Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwin32path: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetWin32Path: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetWin64Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwin64path: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetWin64Path: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdisplayname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDisplayName: usize, + pub GetWin32Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwin32path: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetWin64Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwin64path: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdisplayname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pflags: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetHelpDir: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phelpdir: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetHelpDir: usize, + pub GetHelpDir: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phelpdir: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[repr(transparent)] @@ -9116,9 +9026,7 @@ pub struct ITypeLibRegistrationReader_Vtbl { #[repr(transparent)] pub struct IUri(::windows::core::IUnknown); impl IUri { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPropertyBSTR(&self, uriprop: Uri_PROPERTY, pbstrproperty: &mut super::super::Foundation::BSTR, dwflags: u32) -> ::windows::core::Result<()> { + pub unsafe fn GetPropertyBSTR(&self, uriprop: Uri_PROPERTY, pbstrproperty: &mut ::windows::core::BSTR, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetPropertyBSTR)(::windows::core::Interface::as_raw(self), uriprop, ::core::mem::transmute(pbstrproperty), dwflags).ok() } pub unsafe fn GetPropertyLength(&self, uriprop: Uri_PROPERTY, pcchproperty: &mut u32, dwflags: u32) -> ::windows::core::Result<()> { @@ -9133,95 +9041,65 @@ impl IUri { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).HasProperty)(::windows::core::Interface::as_raw(self), uriprop, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetAbsoluteUri(&self) -> ::windows::core::Result { + pub unsafe fn GetAbsoluteUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetAbsoluteUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetAbsoluteUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetAuthority(&self) -> ::windows::core::Result { + pub unsafe fn GetAuthority(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetAuthority)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetAuthority)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDisplayUri(&self) -> ::windows::core::Result { + pub unsafe fn GetDisplayUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDisplayUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDisplayUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDomain(&self) -> ::windows::core::Result { + pub unsafe fn GetDomain(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDomain)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDomain)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetExtension(&self) -> ::windows::core::Result { + pub unsafe fn GetExtension(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetExtension)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetExtension)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetFragment(&self) -> ::windows::core::Result { + pub unsafe fn GetFragment(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetFragment)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetFragment)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetHost(&self) -> ::windows::core::Result { + pub unsafe fn GetHost(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetHost)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetHost)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPassword(&self) -> ::windows::core::Result { + pub unsafe fn GetPassword(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetPassword)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetPassword)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPath(&self) -> ::windows::core::Result { + pub unsafe fn GetPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPathAndQuery(&self) -> ::windows::core::Result { + pub unsafe fn GetPathAndQuery(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetPathAndQuery)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetPathAndQuery)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetQuery(&self) -> ::windows::core::Result { + pub unsafe fn GetQuery(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetQuery)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetQuery)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetRawUri(&self) -> ::windows::core::Result { + pub unsafe fn GetRawUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetRawUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetRawUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetSchemeName(&self) -> ::windows::core::Result { + pub unsafe fn GetSchemeName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetSchemeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetSchemeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetUserInfo(&self) -> ::windows::core::Result { + pub unsafe fn GetUserInfo(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetUserInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetUserInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetUserName(&self) -> ::windows::core::Result { + pub unsafe fn GetUserName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetUserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetUserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetHostType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -9292,76 +9170,28 @@ unsafe impl ::windows::core::Interface for IUri { #[doc(hidden)] pub struct IUri_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetPropertyBSTR: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uriprop: Uri_PROPERTY, pbstrproperty: *mut super::super::Foundation::BSTR, dwflags: u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPropertyBSTR: usize, + pub GetPropertyBSTR: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uriprop: Uri_PROPERTY, pbstrproperty: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwflags: u32) -> ::windows::core::HRESULT, pub GetPropertyLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uriprop: Uri_PROPERTY, pcchproperty: *mut u32, dwflags: u32) -> ::windows::core::HRESULT, pub GetPropertyDWORD: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uriprop: Uri_PROPERTY, pdwproperty: *mut u32, dwflags: u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub HasProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uriprop: Uri_PROPERTY, pfhasproperty: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] HasProperty: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetAbsoluteUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrabsoluteuri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetAbsoluteUri: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetAuthority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrauthority: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetAuthority: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetDisplayUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdisplaystring: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDisplayUri: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetDomain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdomain: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDomain: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrextension: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetExtension: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetFragment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfragment: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetFragment: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetHost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrhost: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetHost: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetPassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpassword: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPassword: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPath: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetPathAndQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpathandquery: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPathAndQuery: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrquery: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetQuery: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetRawUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrrawuri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetRawUri: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetSchemeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrschemename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetSchemeName: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetUserInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstruserinfo: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetUserInfo: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetUserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrusername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetUserName: usize, + pub GetAbsoluteUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrabsoluteuri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetAuthority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrauthority: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetDisplayUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdisplaystring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetDomain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdomain: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrextension: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetFragment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfragment: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetHost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrhost: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetPassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpassword: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetPathAndQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpathandquery: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrquery: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetRawUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrrawuri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetSchemeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrschemename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetUserInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstruserinfo: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetUserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrusername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetHostType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwhosttype: *mut u32) -> ::windows::core::HRESULT, pub GetPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwport: *mut u32) -> ::windows::core::HRESULT, pub GetScheme: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwscheme: *mut u32) -> ::windows::core::HRESULT, @@ -12848,20 +12678,18 @@ impl ::core::default::Default for ELEMDESC_0 { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_Com\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Com\"`*"] pub struct EXCEPINFO { pub wCode: u16, pub wReserved: u16, - pub bstrSource: super::super::Foundation::BSTR, - pub bstrDescription: super::super::Foundation::BSTR, - pub bstrHelpFile: super::super::Foundation::BSTR, + pub bstrSource: ::windows::core::BSTR, + pub bstrDescription: ::windows::core::BSTR, + pub bstrHelpFile: ::windows::core::BSTR, pub dwHelpContext: u32, pub pvReserved: *mut ::core::ffi::c_void, pub pfnDeferredFillIn: LPEXCEPFINO_DEFERRED_FILLIN, pub scode: i32, } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for EXCEPINFO { fn clone(&self) -> Self { Self { @@ -12877,25 +12705,20 @@ impl ::core::clone::Clone for EXCEPINFO { } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for EXCEPINFO { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("EXCEPINFO").field("wCode", &self.wCode).field("wReserved", &self.wReserved).field("bstrSource", &self.bstrSource).field("bstrDescription", &self.bstrDescription).field("bstrHelpFile", &self.bstrHelpFile).field("dwHelpContext", &self.dwHelpContext).field("pvReserved", &self.pvReserved).field("pfnDeferredFillIn", &self.pfnDeferredFillIn.map(|f| f as usize)).field("scode", &self.scode).finish() } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for EXCEPINFO { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for EXCEPINFO { fn eq(&self, other: &Self) -> bool { self.wCode == other.wCode && self.wReserved == other.wReserved && self.bstrSource == other.bstrSource && self.bstrDescription == other.bstrDescription && self.bstrHelpFile == other.bstrHelpFile && self.dwHelpContext == other.dwHelpContext && self.pvReserved == other.pvReserved && self.pfnDeferredFillIn.map(|f| f as usize) == other.pfnDeferredFillIn.map(|f| f as usize) && self.scode == other.scode } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for EXCEPINFO {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for EXCEPINFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } @@ -14175,7 +13998,7 @@ pub union VARIANT_0_0_0 { pub scode: i32, pub cyVal: CY, pub date: f64, - pub bstrVal: ::core::mem::ManuallyDrop, + pub bstrVal: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pub punkVal: ::core::mem::ManuallyDrop<::core::option::Option<::windows::core::IUnknown>>, pub pdispVal: ::core::mem::ManuallyDrop<::core::option::Option>, pub parray: *mut SAFEARRAY, @@ -14190,7 +14013,7 @@ pub union VARIANT_0_0_0 { pub pscode: *mut i32, pub pcyVal: *mut CY, pub pdate: *mut f64, - pub pbstrVal: *mut super::super::Foundation::BSTR, + pub pbstrVal: *mut ::windows::core::BSTR, pub ppunkVal: *mut ::core::option::Option<::windows::core::IUnknown>, pub ppdispVal: *mut ::core::option::Option, pub pparray: *mut *mut SAFEARRAY, @@ -14553,8 +14376,7 @@ impl ::core::default::Default for userSTGMEDIUM_0_0 { unsafe { ::core::mem::zeroed() } } } -#[doc = "*Required features: `\"Win32_System_Com\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Com\"`*"] pub type LPEXCEPFINO_DEFERRED_FILLIN = ::core::option::Option ::windows::core::HRESULT>; #[doc = "*Required features: `\"Win32_System_Com\"`*"] pub type LPFNCANUNLOADNOW = ::core::option::Option ::windows::core::HRESULT>; diff --git a/crates/libs/windows/src/Windows/Win32/System/ComponentServices/impl.rs b/crates/libs/windows/src/Windows/Win32/System/ComponentServices/impl.rs index 669cc3ca83..77057c9be9 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ComponentServices/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ComponentServices/impl.rs @@ -2,9 +2,9 @@ pub trait ContextInfo_Impl: Sized + super::Com::IDispatch_Impl { fn IsInTransaction(&self) -> ::windows::core::Result; fn GetTransaction(&self) -> ::windows::core::Result<::windows::core::IUnknown>; - fn GetTransactionId(&self) -> ::windows::core::Result; - fn GetActivityId(&self) -> ::windows::core::Result; - fn GetContextId(&self) -> ::windows::core::Result; + fn GetTransactionId(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetActivityId(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetContextId(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ContextInfo {} @@ -33,7 +33,7 @@ impl ContextInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetTransactionId, Impl: ContextInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtxid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetTransactionId, Impl: ContextInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtxid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetTransactionId() { @@ -44,7 +44,7 @@ impl ContextInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetActivityId, Impl: ContextInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstractivityid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetActivityId, Impl: ContextInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstractivityid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetActivityId() { @@ -55,7 +55,7 @@ impl ContextInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetContextId, Impl: ContextInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrctxid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetContextId, Impl: ContextInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrctxid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetContextId() { @@ -81,16 +81,16 @@ impl ContextInfo_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ContextInfo2_Impl: Sized + super::Com::IDispatch_Impl + ContextInfo_Impl { - fn GetPartitionId(&self) -> ::windows::core::Result; - fn GetApplicationId(&self) -> ::windows::core::Result; - fn GetApplicationInstanceId(&self) -> ::windows::core::Result; + fn GetPartitionId(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetApplicationId(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetApplicationInstanceId(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ContextInfo2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ContextInfo2_Vtbl { pub const fn new, Impl: ContextInfo2_Impl, const OFFSET: isize>() -> ContextInfo2_Vtbl { - unsafe extern "system" fn GetPartitionId, Impl: ContextInfo2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, __midl__contextinfo20000: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPartitionId, Impl: ContextInfo2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, __midl__contextinfo20000: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetPartitionId() { @@ -101,7 +101,7 @@ impl ContextInfo2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetApplicationId, Impl: ContextInfo2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, __midl__contextinfo20001: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetApplicationId, Impl: ContextInfo2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, __midl__contextinfo20001: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetApplicationId() { @@ -112,7 +112,7 @@ impl ContextInfo2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetApplicationInstanceId, Impl: ContextInfo2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, __midl__contextinfo20002: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetApplicationInstanceId, Impl: ContextInfo2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, __midl__contextinfo20002: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetApplicationInstanceId() { @@ -166,14 +166,14 @@ impl IAppDomainHelper_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IAssemblyLocator_Impl: Sized + super::Com::IDispatch_Impl { - fn GetModules(&self, applicationdir: &super::super::Foundation::BSTR, applicationname: &super::super::Foundation::BSTR, assemblyname: &super::super::Foundation::BSTR) -> ::windows::core::Result<*mut super::Com::SAFEARRAY>; + fn GetModules(&self, applicationdir: &::windows::core::BSTR, applicationname: &::windows::core::BSTR, assemblyname: &::windows::core::BSTR) -> ::windows::core::Result<*mut super::Com::SAFEARRAY>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IAssemblyLocator {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IAssemblyLocator_Vtbl { pub const fn new, Impl: IAssemblyLocator_Impl, const OFFSET: isize>() -> IAssemblyLocator_Vtbl { - unsafe extern "system" fn GetModules, Impl: IAssemblyLocator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, applicationdir: ::core::mem::ManuallyDrop, applicationname: ::core::mem::ManuallyDrop, assemblyname: ::core::mem::ManuallyDrop, pmodules: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetModules, Impl: IAssemblyLocator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, applicationdir: ::core::mem::ManuallyDrop<::windows::core::BSTR>, applicationname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, assemblyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pmodules: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetModules(::core::mem::transmute(&applicationdir), ::core::mem::transmute(&applicationname), ::core::mem::transmute(&assemblyname)) { @@ -209,39 +209,39 @@ impl IAsyncErrorNotify_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICOMAdminCatalog_Impl: Sized + super::Com::IDispatch_Impl { - fn GetCollection(&self, bstrcollname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn Connect(&self, bstrcatalogservername: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetCollection(&self, bstrcollname: &::windows::core::BSTR) -> ::windows::core::Result; + fn Connect(&self, bstrcatalogservername: &::windows::core::BSTR) -> ::windows::core::Result; fn MajorVersion(&self) -> ::windows::core::Result; fn MinorVersion(&self) -> ::windows::core::Result; - fn GetCollectionByQuery(&self, bstrcollname: &super::super::Foundation::BSTR, ppsavarquery: *const *const super::Com::SAFEARRAY) -> ::windows::core::Result; - fn ImportComponent(&self, bstrapplidorname: &super::super::Foundation::BSTR, bstrclsidorprogid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn InstallComponent(&self, bstrapplidorname: &super::super::Foundation::BSTR, bstrdll: &super::super::Foundation::BSTR, bstrtlb: &super::super::Foundation::BSTR, bstrpsdll: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ShutdownApplication(&self, bstrapplidorname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ExportApplication(&self, bstrapplidorname: &super::super::Foundation::BSTR, bstrapplicationfile: &super::super::Foundation::BSTR, loptions: COMAdminApplicationExportOptions) -> ::windows::core::Result<()>; - fn InstallApplication(&self, bstrapplicationfile: &super::super::Foundation::BSTR, bstrdestinationdirectory: &super::super::Foundation::BSTR, loptions: COMAdminApplicationInstallOptions, bstruserid: &super::super::Foundation::BSTR, bstrpassword: &super::super::Foundation::BSTR, bstrrsn: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetCollectionByQuery(&self, bstrcollname: &::windows::core::BSTR, ppsavarquery: *const *const super::Com::SAFEARRAY) -> ::windows::core::Result; + fn ImportComponent(&self, bstrapplidorname: &::windows::core::BSTR, bstrclsidorprogid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn InstallComponent(&self, bstrapplidorname: &::windows::core::BSTR, bstrdll: &::windows::core::BSTR, bstrtlb: &::windows::core::BSTR, bstrpsdll: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ShutdownApplication(&self, bstrapplidorname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ExportApplication(&self, bstrapplidorname: &::windows::core::BSTR, bstrapplicationfile: &::windows::core::BSTR, loptions: COMAdminApplicationExportOptions) -> ::windows::core::Result<()>; + fn InstallApplication(&self, bstrapplicationfile: &::windows::core::BSTR, bstrdestinationdirectory: &::windows::core::BSTR, loptions: COMAdminApplicationInstallOptions, bstruserid: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR, bstrrsn: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn StopRouter(&self) -> ::windows::core::Result<()>; fn RefreshRouter(&self) -> ::windows::core::Result<()>; fn StartRouter(&self) -> ::windows::core::Result<()>; fn Reserved1(&self) -> ::windows::core::Result<()>; fn Reserved2(&self) -> ::windows::core::Result<()>; - fn InstallMultipleComponents(&self, bstrapplidorname: &super::super::Foundation::BSTR, ppsavarfilenames: *const *const super::Com::SAFEARRAY, ppsavarclsids: *const *const super::Com::SAFEARRAY) -> ::windows::core::Result<()>; - fn GetMultipleComponentsInfo(&self, bstrapplidorname: &super::super::Foundation::BSTR, ppsavarfilenames: *const *const super::Com::SAFEARRAY, ppsavarclsids: *mut *mut super::Com::SAFEARRAY, ppsavarclassnames: *mut *mut super::Com::SAFEARRAY, ppsavarfileflags: *mut *mut super::Com::SAFEARRAY, ppsavarcomponentflags: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::Result<()>; + fn InstallMultipleComponents(&self, bstrapplidorname: &::windows::core::BSTR, ppsavarfilenames: *const *const super::Com::SAFEARRAY, ppsavarclsids: *const *const super::Com::SAFEARRAY) -> ::windows::core::Result<()>; + fn GetMultipleComponentsInfo(&self, bstrapplidorname: &::windows::core::BSTR, ppsavarfilenames: *const *const super::Com::SAFEARRAY, ppsavarclsids: *mut *mut super::Com::SAFEARRAY, ppsavarclassnames: *mut *mut super::Com::SAFEARRAY, ppsavarfileflags: *mut *mut super::Com::SAFEARRAY, ppsavarcomponentflags: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::Result<()>; fn RefreshComponents(&self) -> ::windows::core::Result<()>; - fn BackupREGDB(&self, bstrbackupfilepath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn RestoreREGDB(&self, bstrbackupfilepath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn QueryApplicationFile(&self, bstrapplicationfile: &super::super::Foundation::BSTR, pbstrapplicationname: *mut super::super::Foundation::BSTR, pbstrapplicationdescription: *mut super::super::Foundation::BSTR, pbhasusers: *mut i16, pbisproxy: *mut i16, ppsavarfilenames: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::Result<()>; - fn StartApplication(&self, bstrapplidorname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn BackupREGDB(&self, bstrbackupfilepath: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn RestoreREGDB(&self, bstrbackupfilepath: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn QueryApplicationFile(&self, bstrapplicationfile: &::windows::core::BSTR, pbstrapplicationname: *mut ::windows::core::BSTR, pbstrapplicationdescription: *mut ::windows::core::BSTR, pbhasusers: *mut i16, pbisproxy: *mut i16, ppsavarfilenames: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::Result<()>; + fn StartApplication(&self, bstrapplidorname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn ServiceCheck(&self, lservice: i32) -> ::windows::core::Result; - fn InstallMultipleEventClasses(&self, bstrapplidorname: &super::super::Foundation::BSTR, ppsavarfilenames: *const *const super::Com::SAFEARRAY, ppsavarclsids: *const *const super::Com::SAFEARRAY) -> ::windows::core::Result<()>; - fn InstallEventClass(&self, bstrapplidorname: &super::super::Foundation::BSTR, bstrdll: &super::super::Foundation::BSTR, bstrtlb: &super::super::Foundation::BSTR, bstrpsdll: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetEventClassesForIID(&self, bstriid: &super::super::Foundation::BSTR, ppsavarclsids: *mut *mut super::Com::SAFEARRAY, ppsavarprogids: *mut *mut super::Com::SAFEARRAY, ppsavardescriptions: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::Result<()>; + fn InstallMultipleEventClasses(&self, bstrapplidorname: &::windows::core::BSTR, ppsavarfilenames: *const *const super::Com::SAFEARRAY, ppsavarclsids: *const *const super::Com::SAFEARRAY) -> ::windows::core::Result<()>; + fn InstallEventClass(&self, bstrapplidorname: &::windows::core::BSTR, bstrdll: &::windows::core::BSTR, bstrtlb: &::windows::core::BSTR, bstrpsdll: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetEventClassesForIID(&self, bstriid: &::windows::core::BSTR, ppsavarclsids: *mut *mut super::Com::SAFEARRAY, ppsavarprogids: *mut *mut super::Com::SAFEARRAY, ppsavardescriptions: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICOMAdminCatalog {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICOMAdminCatalog_Vtbl { pub const fn new, Impl: ICOMAdminCatalog_Impl, const OFFSET: isize>() -> ICOMAdminCatalog_Vtbl { - unsafe extern "system" fn GetCollection, Impl: ICOMAdminCatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcollname: ::core::mem::ManuallyDrop, ppcatalogcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCollection, Impl: ICOMAdminCatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcollname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppcatalogcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCollection(::core::mem::transmute(&bstrcollname)) { @@ -252,7 +252,7 @@ impl ICOMAdminCatalog_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Connect, Impl: ICOMAdminCatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcatalogservername: ::core::mem::ManuallyDrop, ppcatalogcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Connect, Impl: ICOMAdminCatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcatalogservername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppcatalogcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Connect(::core::mem::transmute(&bstrcatalogservername)) { @@ -285,7 +285,7 @@ impl ICOMAdminCatalog_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetCollectionByQuery, Impl: ICOMAdminCatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcollname: ::core::mem::ManuallyDrop, ppsavarquery: *const *const super::Com::SAFEARRAY, ppcatalogcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCollectionByQuery, Impl: ICOMAdminCatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcollname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppsavarquery: *const *const super::Com::SAFEARRAY, ppcatalogcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCollectionByQuery(::core::mem::transmute(&bstrcollname), ::core::mem::transmute_copy(&ppsavarquery)) { @@ -296,27 +296,27 @@ impl ICOMAdminCatalog_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ImportComponent, Impl: ICOMAdminCatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplidorname: ::core::mem::ManuallyDrop, bstrclsidorprogid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ImportComponent, Impl: ICOMAdminCatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrclsidorprogid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ImportComponent(::core::mem::transmute(&bstrapplidorname), ::core::mem::transmute(&bstrclsidorprogid)).into() } - unsafe extern "system" fn InstallComponent, Impl: ICOMAdminCatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplidorname: ::core::mem::ManuallyDrop, bstrdll: ::core::mem::ManuallyDrop, bstrtlb: ::core::mem::ManuallyDrop, bstrpsdll: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InstallComponent, Impl: ICOMAdminCatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdll: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrtlb: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpsdll: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InstallComponent(::core::mem::transmute(&bstrapplidorname), ::core::mem::transmute(&bstrdll), ::core::mem::transmute(&bstrtlb), ::core::mem::transmute(&bstrpsdll)).into() } - unsafe extern "system" fn ShutdownApplication, Impl: ICOMAdminCatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplidorname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ShutdownApplication, Impl: ICOMAdminCatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ShutdownApplication(::core::mem::transmute(&bstrapplidorname)).into() } - unsafe extern "system" fn ExportApplication, Impl: ICOMAdminCatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplidorname: ::core::mem::ManuallyDrop, bstrapplicationfile: ::core::mem::ManuallyDrop, loptions: COMAdminApplicationExportOptions) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExportApplication, Impl: ICOMAdminCatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrapplicationfile: ::core::mem::ManuallyDrop<::windows::core::BSTR>, loptions: COMAdminApplicationExportOptions) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ExportApplication(::core::mem::transmute(&bstrapplidorname), ::core::mem::transmute(&bstrapplicationfile), ::core::mem::transmute_copy(&loptions)).into() } - unsafe extern "system" fn InstallApplication, Impl: ICOMAdminCatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationfile: ::core::mem::ManuallyDrop, bstrdestinationdirectory: ::core::mem::ManuallyDrop, loptions: COMAdminApplicationInstallOptions, bstruserid: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop, bstrrsn: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InstallApplication, Impl: ICOMAdminCatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationfile: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdestinationdirectory: ::core::mem::ManuallyDrop<::windows::core::BSTR>, loptions: COMAdminApplicationInstallOptions, bstruserid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrrsn: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InstallApplication(::core::mem::transmute(&bstrapplicationfile), ::core::mem::transmute(&bstrdestinationdirectory), ::core::mem::transmute_copy(&loptions), ::core::mem::transmute(&bstruserid), ::core::mem::transmute(&bstrpassword), ::core::mem::transmute(&bstrrsn)).into() @@ -346,12 +346,12 @@ impl ICOMAdminCatalog_Vtbl { let this = (*this).get_impl(); this.Reserved2().into() } - unsafe extern "system" fn InstallMultipleComponents, Impl: ICOMAdminCatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplidorname: ::core::mem::ManuallyDrop, ppsavarfilenames: *const *const super::Com::SAFEARRAY, ppsavarclsids: *const *const super::Com::SAFEARRAY) -> ::windows::core::HRESULT { + unsafe extern "system" fn InstallMultipleComponents, Impl: ICOMAdminCatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppsavarfilenames: *const *const super::Com::SAFEARRAY, ppsavarclsids: *const *const super::Com::SAFEARRAY) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InstallMultipleComponents(::core::mem::transmute(&bstrapplidorname), ::core::mem::transmute_copy(&ppsavarfilenames), ::core::mem::transmute_copy(&ppsavarclsids)).into() } - unsafe extern "system" fn GetMultipleComponentsInfo, Impl: ICOMAdminCatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplidorname: ::core::mem::ManuallyDrop, ppsavarfilenames: *const *const super::Com::SAFEARRAY, ppsavarclsids: *mut *mut super::Com::SAFEARRAY, ppsavarclassnames: *mut *mut super::Com::SAFEARRAY, ppsavarfileflags: *mut *mut super::Com::SAFEARRAY, ppsavarcomponentflags: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetMultipleComponentsInfo, Impl: ICOMAdminCatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppsavarfilenames: *const *const super::Com::SAFEARRAY, ppsavarclsids: *mut *mut super::Com::SAFEARRAY, ppsavarclassnames: *mut *mut super::Com::SAFEARRAY, ppsavarfileflags: *mut *mut super::Com::SAFEARRAY, ppsavarcomponentflags: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetMultipleComponentsInfo(::core::mem::transmute(&bstrapplidorname), ::core::mem::transmute_copy(&ppsavarfilenames), ::core::mem::transmute_copy(&ppsavarclsids), ::core::mem::transmute_copy(&ppsavarclassnames), ::core::mem::transmute_copy(&ppsavarfileflags), ::core::mem::transmute_copy(&ppsavarcomponentflags)).into() @@ -361,22 +361,22 @@ impl ICOMAdminCatalog_Vtbl { let this = (*this).get_impl(); this.RefreshComponents().into() } - unsafe extern "system" fn BackupREGDB, Impl: ICOMAdminCatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrbackupfilepath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn BackupREGDB, Impl: ICOMAdminCatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrbackupfilepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.BackupREGDB(::core::mem::transmute(&bstrbackupfilepath)).into() } - unsafe extern "system" fn RestoreREGDB, Impl: ICOMAdminCatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrbackupfilepath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn RestoreREGDB, Impl: ICOMAdminCatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrbackupfilepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RestoreREGDB(::core::mem::transmute(&bstrbackupfilepath)).into() } - unsafe extern "system" fn QueryApplicationFile, Impl: ICOMAdminCatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationfile: ::core::mem::ManuallyDrop, pbstrapplicationname: *mut super::super::Foundation::BSTR, pbstrapplicationdescription: *mut super::super::Foundation::BSTR, pbhasusers: *mut i16, pbisproxy: *mut i16, ppsavarfilenames: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT { + unsafe extern "system" fn QueryApplicationFile, Impl: ICOMAdminCatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationfile: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrapplicationname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrapplicationdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbhasusers: *mut i16, pbisproxy: *mut i16, ppsavarfilenames: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.QueryApplicationFile(::core::mem::transmute(&bstrapplicationfile), ::core::mem::transmute_copy(&pbstrapplicationname), ::core::mem::transmute_copy(&pbstrapplicationdescription), ::core::mem::transmute_copy(&pbhasusers), ::core::mem::transmute_copy(&pbisproxy), ::core::mem::transmute_copy(&ppsavarfilenames)).into() } - unsafe extern "system" fn StartApplication, Impl: ICOMAdminCatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplidorname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn StartApplication, Impl: ICOMAdminCatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.StartApplication(::core::mem::transmute(&bstrapplidorname)).into() @@ -392,17 +392,17 @@ impl ICOMAdminCatalog_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn InstallMultipleEventClasses, Impl: ICOMAdminCatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplidorname: ::core::mem::ManuallyDrop, ppsavarfilenames: *const *const super::Com::SAFEARRAY, ppsavarclsids: *const *const super::Com::SAFEARRAY) -> ::windows::core::HRESULT { + unsafe extern "system" fn InstallMultipleEventClasses, Impl: ICOMAdminCatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppsavarfilenames: *const *const super::Com::SAFEARRAY, ppsavarclsids: *const *const super::Com::SAFEARRAY) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InstallMultipleEventClasses(::core::mem::transmute(&bstrapplidorname), ::core::mem::transmute_copy(&ppsavarfilenames), ::core::mem::transmute_copy(&ppsavarclsids)).into() } - unsafe extern "system" fn InstallEventClass, Impl: ICOMAdminCatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplidorname: ::core::mem::ManuallyDrop, bstrdll: ::core::mem::ManuallyDrop, bstrtlb: ::core::mem::ManuallyDrop, bstrpsdll: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InstallEventClass, Impl: ICOMAdminCatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdll: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrtlb: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpsdll: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InstallEventClass(::core::mem::transmute(&bstrapplidorname), ::core::mem::transmute(&bstrdll), ::core::mem::transmute(&bstrtlb), ::core::mem::transmute(&bstrpsdll)).into() } - unsafe extern "system" fn GetEventClassesForIID, Impl: ICOMAdminCatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstriid: ::core::mem::ManuallyDrop, ppsavarclsids: *mut *mut super::Com::SAFEARRAY, ppsavarprogids: *mut *mut super::Com::SAFEARRAY, ppsavardescriptions: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetEventClassesForIID, Impl: ICOMAdminCatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstriid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppsavarclsids: *mut *mut super::Com::SAFEARRAY, ppsavarprogids: *mut *mut super::Com::SAFEARRAY, ppsavardescriptions: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetEventClassesForIID(::core::mem::transmute(&bstriid), ::core::mem::transmute_copy(&ppsavarclsids), ::core::mem::transmute_copy(&ppsavarprogids), ::core::mem::transmute_copy(&ppsavardescriptions)).into() @@ -443,44 +443,44 @@ impl ICOMAdminCatalog_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICOMAdminCatalog2_Impl: Sized + super::Com::IDispatch_Impl + ICOMAdminCatalog_Impl { - fn GetCollectionByQuery2(&self, bstrcollectionname: &super::super::Foundation::BSTR, pvarquerystrings: *const super::Com::VARIANT) -> ::windows::core::Result; - fn GetApplicationInstanceIDFromProcessID(&self, lprocessid: i32) -> ::windows::core::Result; + fn GetCollectionByQuery2(&self, bstrcollectionname: &::windows::core::BSTR, pvarquerystrings: *const super::Com::VARIANT) -> ::windows::core::Result; + fn GetApplicationInstanceIDFromProcessID(&self, lprocessid: i32) -> ::windows::core::Result<::windows::core::BSTR>; fn ShutdownApplicationInstances(&self, pvarapplicationinstanceid: *const super::Com::VARIANT) -> ::windows::core::Result<()>; fn PauseApplicationInstances(&self, pvarapplicationinstanceid: *const super::Com::VARIANT) -> ::windows::core::Result<()>; fn ResumeApplicationInstances(&self, pvarapplicationinstanceid: *const super::Com::VARIANT) -> ::windows::core::Result<()>; fn RecycleApplicationInstances(&self, pvarapplicationinstanceid: *const super::Com::VARIANT, lreasoncode: i32) -> ::windows::core::Result<()>; fn AreApplicationInstancesPaused(&self, pvarapplicationinstanceid: *const super::Com::VARIANT) -> ::windows::core::Result; - fn DumpApplicationInstance(&self, bstrapplicationinstanceid: &super::super::Foundation::BSTR, bstrdirectory: &super::super::Foundation::BSTR, lmaximages: i32) -> ::windows::core::Result; + fn DumpApplicationInstance(&self, bstrapplicationinstanceid: &::windows::core::BSTR, bstrdirectory: &::windows::core::BSTR, lmaximages: i32) -> ::windows::core::Result<::windows::core::BSTR>; fn IsApplicationInstanceDumpSupported(&self) -> ::windows::core::Result; - fn CreateServiceForApplication(&self, bstrapplicationidorname: &super::super::Foundation::BSTR, bstrservicename: &super::super::Foundation::BSTR, bstrstarttype: &super::super::Foundation::BSTR, bstrerrorcontrol: &super::super::Foundation::BSTR, bstrdependencies: &super::super::Foundation::BSTR, bstrrunas: &super::super::Foundation::BSTR, bstrpassword: &super::super::Foundation::BSTR, bdesktopok: i16) -> ::windows::core::Result<()>; - fn DeleteServiceForApplication(&self, bstrapplicationidorname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetPartitionID(&self, bstrapplicationidorname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetPartitionName(&self, bstrapplicationidorname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn SetCurrentPartition(&self, bstrpartitionidorname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn CurrentPartitionID(&self) -> ::windows::core::Result; - fn CurrentPartitionName(&self) -> ::windows::core::Result; - fn GlobalPartitionID(&self) -> ::windows::core::Result; + fn CreateServiceForApplication(&self, bstrapplicationidorname: &::windows::core::BSTR, bstrservicename: &::windows::core::BSTR, bstrstarttype: &::windows::core::BSTR, bstrerrorcontrol: &::windows::core::BSTR, bstrdependencies: &::windows::core::BSTR, bstrrunas: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR, bdesktopok: i16) -> ::windows::core::Result<()>; + fn DeleteServiceForApplication(&self, bstrapplicationidorname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetPartitionID(&self, bstrapplicationidorname: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetPartitionName(&self, bstrapplicationidorname: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetCurrentPartition(&self, bstrpartitionidorname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn CurrentPartitionID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CurrentPartitionName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GlobalPartitionID(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn FlushPartitionCache(&self) -> ::windows::core::Result<()>; - fn CopyApplications(&self, bstrsourcepartitionidorname: &super::super::Foundation::BSTR, pvarapplicationid: *const super::Com::VARIANT, bstrdestinationpartitionidorname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn CopyComponents(&self, bstrsourceapplicationidorname: &super::super::Foundation::BSTR, pvarclsidorprogid: *const super::Com::VARIANT, bstrdestinationapplicationidorname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn MoveComponents(&self, bstrsourceapplicationidorname: &super::super::Foundation::BSTR, pvarclsidorprogid: *const super::Com::VARIANT, bstrdestinationapplicationidorname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn AliasComponent(&self, bstrsrcapplicationidorname: &super::super::Foundation::BSTR, bstrclsidorprogid: &super::super::Foundation::BSTR, bstrdestapplicationidorname: &super::super::Foundation::BSTR, bstrnewprogid: &super::super::Foundation::BSTR, bstrnewclsid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn IsSafeToDelete(&self, bstrdllname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn ImportUnconfiguredComponents(&self, bstrapplicationidorname: &super::super::Foundation::BSTR, pvarclsidorprogid: *const super::Com::VARIANT, pvarcomponenttype: *const super::Com::VARIANT) -> ::windows::core::Result<()>; - fn PromoteUnconfiguredComponents(&self, bstrapplicationidorname: &super::super::Foundation::BSTR, pvarclsidorprogid: *const super::Com::VARIANT, pvarcomponenttype: *const super::Com::VARIANT) -> ::windows::core::Result<()>; - fn ImportComponents(&self, bstrapplicationidorname: &super::super::Foundation::BSTR, pvarclsidorprogid: *const super::Com::VARIANT, pvarcomponenttype: *const super::Com::VARIANT) -> ::windows::core::Result<()>; + fn CopyApplications(&self, bstrsourcepartitionidorname: &::windows::core::BSTR, pvarapplicationid: *const super::Com::VARIANT, bstrdestinationpartitionidorname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn CopyComponents(&self, bstrsourceapplicationidorname: &::windows::core::BSTR, pvarclsidorprogid: *const super::Com::VARIANT, bstrdestinationapplicationidorname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn MoveComponents(&self, bstrsourceapplicationidorname: &::windows::core::BSTR, pvarclsidorprogid: *const super::Com::VARIANT, bstrdestinationapplicationidorname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn AliasComponent(&self, bstrsrcapplicationidorname: &::windows::core::BSTR, bstrclsidorprogid: &::windows::core::BSTR, bstrdestapplicationidorname: &::windows::core::BSTR, bstrnewprogid: &::windows::core::BSTR, bstrnewclsid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn IsSafeToDelete(&self, bstrdllname: &::windows::core::BSTR) -> ::windows::core::Result; + fn ImportUnconfiguredComponents(&self, bstrapplicationidorname: &::windows::core::BSTR, pvarclsidorprogid: *const super::Com::VARIANT, pvarcomponenttype: *const super::Com::VARIANT) -> ::windows::core::Result<()>; + fn PromoteUnconfiguredComponents(&self, bstrapplicationidorname: &::windows::core::BSTR, pvarclsidorprogid: *const super::Com::VARIANT, pvarcomponenttype: *const super::Com::VARIANT) -> ::windows::core::Result<()>; + fn ImportComponents(&self, bstrapplicationidorname: &::windows::core::BSTR, pvarclsidorprogid: *const super::Com::VARIANT, pvarcomponenttype: *const super::Com::VARIANT) -> ::windows::core::Result<()>; fn Is64BitCatalogServer(&self) -> ::windows::core::Result; - fn ExportPartition(&self, bstrpartitionidorname: &super::super::Foundation::BSTR, bstrpartitionfilename: &super::super::Foundation::BSTR, loptions: COMAdminApplicationExportOptions) -> ::windows::core::Result<()>; - fn InstallPartition(&self, bstrfilename: &super::super::Foundation::BSTR, bstrdestdirectory: &super::super::Foundation::BSTR, loptions: COMAdminApplicationInstallOptions, bstruserid: &super::super::Foundation::BSTR, bstrpassword: &super::super::Foundation::BSTR, bstrrsn: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn QueryApplicationFile2(&self, bstrapplicationfile: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetComponentVersionCount(&self, bstrclsidorprogid: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn ExportPartition(&self, bstrpartitionidorname: &::windows::core::BSTR, bstrpartitionfilename: &::windows::core::BSTR, loptions: COMAdminApplicationExportOptions) -> ::windows::core::Result<()>; + fn InstallPartition(&self, bstrfilename: &::windows::core::BSTR, bstrdestdirectory: &::windows::core::BSTR, loptions: COMAdminApplicationInstallOptions, bstruserid: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR, bstrrsn: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn QueryApplicationFile2(&self, bstrapplicationfile: &::windows::core::BSTR) -> ::windows::core::Result; + fn GetComponentVersionCount(&self, bstrclsidorprogid: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICOMAdminCatalog2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICOMAdminCatalog2_Vtbl { pub const fn new, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>() -> ICOMAdminCatalog2_Vtbl { - unsafe extern "system" fn GetCollectionByQuery2, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcollectionname: ::core::mem::ManuallyDrop, pvarquerystrings: *const super::Com::VARIANT, ppcatalogcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCollectionByQuery2, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcollectionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarquerystrings: *const super::Com::VARIANT, ppcatalogcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCollectionByQuery2(::core::mem::transmute(&bstrcollectionname), ::core::mem::transmute_copy(&pvarquerystrings)) { @@ -491,7 +491,7 @@ impl ICOMAdminCatalog2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetApplicationInstanceIDFromProcessID, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lprocessid: i32, pbstrapplicationinstanceid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetApplicationInstanceIDFromProcessID, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lprocessid: i32, pbstrapplicationinstanceid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetApplicationInstanceIDFromProcessID(::core::mem::transmute_copy(&lprocessid)) { @@ -533,7 +533,7 @@ impl ICOMAdminCatalog2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DumpApplicationInstance, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationinstanceid: ::core::mem::ManuallyDrop, bstrdirectory: ::core::mem::ManuallyDrop, lmaximages: i32, pbstrdumpfile: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DumpApplicationInstance, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationinstanceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdirectory: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lmaximages: i32, pbstrdumpfile: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DumpApplicationInstance(::core::mem::transmute(&bstrapplicationinstanceid), ::core::mem::transmute(&bstrdirectory), ::core::mem::transmute_copy(&lmaximages)) { @@ -555,17 +555,17 @@ impl ICOMAdminCatalog2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateServiceForApplication, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationidorname: ::core::mem::ManuallyDrop, bstrservicename: ::core::mem::ManuallyDrop, bstrstarttype: ::core::mem::ManuallyDrop, bstrerrorcontrol: ::core::mem::ManuallyDrop, bstrdependencies: ::core::mem::ManuallyDrop, bstrrunas: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop, bdesktopok: i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateServiceForApplication, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrservicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrstarttype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrerrorcontrol: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdependencies: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrrunas: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bdesktopok: i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CreateServiceForApplication(::core::mem::transmute(&bstrapplicationidorname), ::core::mem::transmute(&bstrservicename), ::core::mem::transmute(&bstrstarttype), ::core::mem::transmute(&bstrerrorcontrol), ::core::mem::transmute(&bstrdependencies), ::core::mem::transmute(&bstrrunas), ::core::mem::transmute(&bstrpassword), ::core::mem::transmute_copy(&bdesktopok)).into() } - unsafe extern "system" fn DeleteServiceForApplication, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationidorname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteServiceForApplication, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteServiceForApplication(::core::mem::transmute(&bstrapplicationidorname)).into() } - unsafe extern "system" fn GetPartitionID, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationidorname: ::core::mem::ManuallyDrop, pbstrpartitionid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPartitionID, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrpartitionid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetPartitionID(::core::mem::transmute(&bstrapplicationidorname)) { @@ -576,7 +576,7 @@ impl ICOMAdminCatalog2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetPartitionName, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationidorname: ::core::mem::ManuallyDrop, pbstrpartitionname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPartitionName, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrpartitionname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetPartitionName(::core::mem::transmute(&bstrapplicationidorname)) { @@ -587,12 +587,12 @@ impl ICOMAdminCatalog2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetCurrentPartition, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpartitionidorname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCurrentPartition, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpartitionidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCurrentPartition(::core::mem::transmute(&bstrpartitionidorname)).into() } - unsafe extern "system" fn CurrentPartitionID, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpartitionid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CurrentPartitionID, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpartitionid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CurrentPartitionID() { @@ -603,7 +603,7 @@ impl ICOMAdminCatalog2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CurrentPartitionName, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpartitionname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CurrentPartitionName, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpartitionname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CurrentPartitionName() { @@ -614,7 +614,7 @@ impl ICOMAdminCatalog2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GlobalPartitionID, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrglobalpartitionid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GlobalPartitionID, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrglobalpartitionid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GlobalPartitionID() { @@ -630,27 +630,27 @@ impl ICOMAdminCatalog2_Vtbl { let this = (*this).get_impl(); this.FlushPartitionCache().into() } - unsafe extern "system" fn CopyApplications, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsourcepartitionidorname: ::core::mem::ManuallyDrop, pvarapplicationid: *const super::Com::VARIANT, bstrdestinationpartitionidorname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn CopyApplications, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsourcepartitionidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarapplicationid: *const super::Com::VARIANT, bstrdestinationpartitionidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CopyApplications(::core::mem::transmute(&bstrsourcepartitionidorname), ::core::mem::transmute_copy(&pvarapplicationid), ::core::mem::transmute(&bstrdestinationpartitionidorname)).into() } - unsafe extern "system" fn CopyComponents, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsourceapplicationidorname: ::core::mem::ManuallyDrop, pvarclsidorprogid: *const super::Com::VARIANT, bstrdestinationapplicationidorname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn CopyComponents, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsourceapplicationidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarclsidorprogid: *const super::Com::VARIANT, bstrdestinationapplicationidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CopyComponents(::core::mem::transmute(&bstrsourceapplicationidorname), ::core::mem::transmute_copy(&pvarclsidorprogid), ::core::mem::transmute(&bstrdestinationapplicationidorname)).into() } - unsafe extern "system" fn MoveComponents, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsourceapplicationidorname: ::core::mem::ManuallyDrop, pvarclsidorprogid: *const super::Com::VARIANT, bstrdestinationapplicationidorname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn MoveComponents, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsourceapplicationidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarclsidorprogid: *const super::Com::VARIANT, bstrdestinationapplicationidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.MoveComponents(::core::mem::transmute(&bstrsourceapplicationidorname), ::core::mem::transmute_copy(&pvarclsidorprogid), ::core::mem::transmute(&bstrdestinationapplicationidorname)).into() } - unsafe extern "system" fn AliasComponent, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsrcapplicationidorname: ::core::mem::ManuallyDrop, bstrclsidorprogid: ::core::mem::ManuallyDrop, bstrdestapplicationidorname: ::core::mem::ManuallyDrop, bstrnewprogid: ::core::mem::ManuallyDrop, bstrnewclsid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AliasComponent, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsrcapplicationidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrclsidorprogid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdestapplicationidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrnewprogid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrnewclsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AliasComponent(::core::mem::transmute(&bstrsrcapplicationidorname), ::core::mem::transmute(&bstrclsidorprogid), ::core::mem::transmute(&bstrdestapplicationidorname), ::core::mem::transmute(&bstrnewprogid), ::core::mem::transmute(&bstrnewclsid)).into() } - unsafe extern "system" fn IsSafeToDelete, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdllname: ::core::mem::ManuallyDrop, pcomadmininuse: *mut COMAdminInUse) -> ::windows::core::HRESULT { + unsafe extern "system" fn IsSafeToDelete, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdllname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcomadmininuse: *mut COMAdminInUse) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.IsSafeToDelete(::core::mem::transmute(&bstrdllname)) { @@ -661,17 +661,17 @@ impl ICOMAdminCatalog2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ImportUnconfiguredComponents, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationidorname: ::core::mem::ManuallyDrop, pvarclsidorprogid: *const super::Com::VARIANT, pvarcomponenttype: *const super::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn ImportUnconfiguredComponents, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarclsidorprogid: *const super::Com::VARIANT, pvarcomponenttype: *const super::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ImportUnconfiguredComponents(::core::mem::transmute(&bstrapplicationidorname), ::core::mem::transmute_copy(&pvarclsidorprogid), ::core::mem::transmute_copy(&pvarcomponenttype)).into() } - unsafe extern "system" fn PromoteUnconfiguredComponents, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationidorname: ::core::mem::ManuallyDrop, pvarclsidorprogid: *const super::Com::VARIANT, pvarcomponenttype: *const super::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn PromoteUnconfiguredComponents, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarclsidorprogid: *const super::Com::VARIANT, pvarcomponenttype: *const super::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.PromoteUnconfiguredComponents(::core::mem::transmute(&bstrapplicationidorname), ::core::mem::transmute_copy(&pvarclsidorprogid), ::core::mem::transmute_copy(&pvarcomponenttype)).into() } - unsafe extern "system" fn ImportComponents, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationidorname: ::core::mem::ManuallyDrop, pvarclsidorprogid: *const super::Com::VARIANT, pvarcomponenttype: *const super::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn ImportComponents, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarclsidorprogid: *const super::Com::VARIANT, pvarcomponenttype: *const super::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ImportComponents(::core::mem::transmute(&bstrapplicationidorname), ::core::mem::transmute_copy(&pvarclsidorprogid), ::core::mem::transmute_copy(&pvarcomponenttype)).into() @@ -687,17 +687,17 @@ impl ICOMAdminCatalog2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ExportPartition, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpartitionidorname: ::core::mem::ManuallyDrop, bstrpartitionfilename: ::core::mem::ManuallyDrop, loptions: COMAdminApplicationExportOptions) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExportPartition, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpartitionidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpartitionfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, loptions: COMAdminApplicationExportOptions) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ExportPartition(::core::mem::transmute(&bstrpartitionidorname), ::core::mem::transmute(&bstrpartitionfilename), ::core::mem::transmute_copy(&loptions)).into() } - unsafe extern "system" fn InstallPartition, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop, bstrdestdirectory: ::core::mem::ManuallyDrop, loptions: COMAdminApplicationInstallOptions, bstruserid: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop, bstrrsn: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InstallPartition, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdestdirectory: ::core::mem::ManuallyDrop<::windows::core::BSTR>, loptions: COMAdminApplicationInstallOptions, bstruserid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrrsn: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InstallPartition(::core::mem::transmute(&bstrfilename), ::core::mem::transmute(&bstrdestdirectory), ::core::mem::transmute_copy(&loptions), ::core::mem::transmute(&bstruserid), ::core::mem::transmute(&bstrpassword), ::core::mem::transmute(&bstrrsn)).into() } - unsafe extern "system" fn QueryApplicationFile2, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationfile: ::core::mem::ManuallyDrop, ppfilesforimport: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn QueryApplicationFile2, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrapplicationfile: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppfilesforimport: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.QueryApplicationFile2(::core::mem::transmute(&bstrapplicationfile)) { @@ -708,7 +708,7 @@ impl ICOMAdminCatalog2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetComponentVersionCount, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrclsidorprogid: ::core::mem::ManuallyDrop, plversioncount: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetComponentVersionCount, Impl: ICOMAdminCatalog2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrclsidorprogid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, plversioncount: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetComponentVersionCount(::core::mem::transmute(&bstrclsidorprogid)) { @@ -808,7 +808,7 @@ pub trait ICatalogCollection_Impl: Sized + super::Com::IDispatch_Impl { fn Add(&self) -> ::windows::core::Result; fn Populate(&self) -> ::windows::core::Result<()>; fn SaveChanges(&self) -> ::windows::core::Result; - fn GetCollection(&self, bstrcollname: &super::super::Foundation::BSTR, varobjectkey: &super::Com::VARIANT) -> ::windows::core::Result; + fn GetCollection(&self, bstrcollname: &::windows::core::BSTR, varobjectkey: &super::Com::VARIANT) -> ::windows::core::Result; fn Name(&self) -> ::windows::core::Result; fn AddEnabled(&self) -> ::windows::core::Result; fn RemoveEnabled(&self) -> ::windows::core::Result; @@ -816,7 +816,7 @@ pub trait ICatalogCollection_Impl: Sized + super::Com::IDispatch_Impl { fn DataStoreMajorVersion(&self) -> ::windows::core::Result; fn DataStoreMinorVersion(&self) -> ::windows::core::Result; fn PopulateByKey(&self, psakeys: *const super::Com::SAFEARRAY) -> ::windows::core::Result<()>; - fn PopulateByQuery(&self, bstrquerystring: &super::super::Foundation::BSTR, lquerytype: i32) -> ::windows::core::Result<()>; + fn PopulateByQuery(&self, bstrquerystring: &::windows::core::BSTR, lquerytype: i32) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICatalogCollection {} @@ -888,7 +888,7 @@ impl ICatalogCollection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetCollection, Impl: ICatalogCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcollname: ::core::mem::ManuallyDrop, varobjectkey: ::core::mem::ManuallyDrop, ppcatalogcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCollection, Impl: ICatalogCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcollname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varobjectkey: ::core::mem::ManuallyDrop, ppcatalogcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCollection(::core::mem::transmute(&bstrcollname), ::core::mem::transmute(&varobjectkey)) { @@ -970,7 +970,7 @@ impl ICatalogCollection_Vtbl { let this = (*this).get_impl(); this.PopulateByKey(::core::mem::transmute_copy(&psakeys)).into() } - unsafe extern "system" fn PopulateByQuery, Impl: ICatalogCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrquerystring: ::core::mem::ManuallyDrop, lquerytype: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn PopulateByQuery, Impl: ICatalogCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrquerystring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lquerytype: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.PopulateByQuery(::core::mem::transmute(&bstrquerystring), ::core::mem::transmute_copy(&lquerytype)).into() @@ -1001,20 +1001,20 @@ impl ICatalogCollection_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICatalogObject_Impl: Sized + super::Com::IDispatch_Impl { - fn get_Value(&self, bstrpropname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn put_Value(&self, bstrpropname: &super::super::Foundation::BSTR, val: &super::Com::VARIANT) -> ::windows::core::Result<()>; + fn get_Value(&self, bstrpropname: &::windows::core::BSTR) -> ::windows::core::Result; + fn put_Value(&self, bstrpropname: &::windows::core::BSTR, val: &super::Com::VARIANT) -> ::windows::core::Result<()>; fn Key(&self) -> ::windows::core::Result; fn Name(&self) -> ::windows::core::Result; - fn IsPropertyReadOnly(&self, bstrpropname: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn IsPropertyReadOnly(&self, bstrpropname: &::windows::core::BSTR) -> ::windows::core::Result; fn Valid(&self) -> ::windows::core::Result; - fn IsPropertyWriteOnly(&self, bstrpropname: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn IsPropertyWriteOnly(&self, bstrpropname: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ICatalogObject {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICatalogObject_Vtbl { pub const fn new, Impl: ICatalogObject_Impl, const OFFSET: isize>() -> ICatalogObject_Vtbl { - unsafe extern "system" fn get_Value, Impl: ICatalogObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropname: ::core::mem::ManuallyDrop, pvarretval: *mut super::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Value, Impl: ICatalogObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarretval: *mut super::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_Value(::core::mem::transmute(&bstrpropname)) { @@ -1025,7 +1025,7 @@ impl ICatalogObject_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn put_Value, Impl: ICatalogObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropname: ::core::mem::ManuallyDrop, val: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn put_Value, Impl: ICatalogObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, val: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.put_Value(::core::mem::transmute(&bstrpropname), ::core::mem::transmute(&val)).into() @@ -1052,7 +1052,7 @@ impl ICatalogObject_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn IsPropertyReadOnly, Impl: ICatalogObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropname: ::core::mem::ManuallyDrop, pbretval: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn IsPropertyReadOnly, Impl: ICatalogObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbretval: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.IsPropertyReadOnly(::core::mem::transmute(&bstrpropname)) { @@ -1074,7 +1074,7 @@ impl ICatalogObject_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn IsPropertyWriteOnly, Impl: ICatalogObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropname: ::core::mem::ManuallyDrop, pbretval: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn IsPropertyWriteOnly, Impl: ICatalogObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbretval: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.IsPropertyWriteOnly(::core::mem::transmute(&bstrpropname)) { @@ -2578,10 +2578,10 @@ impl IComUserEvent_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IContextProperties_Impl: Sized { fn Count(&self, plcount: *mut i32) -> ::windows::core::Result<()>; - fn GetProperty(&self, name: &super::super::Foundation::BSTR, pproperty: *mut super::Com::VARIANT) -> ::windows::core::Result<()>; + fn GetProperty(&self, name: &::windows::core::BSTR, pproperty: *mut super::Com::VARIANT) -> ::windows::core::Result<()>; fn EnumNames(&self) -> ::windows::core::Result; - fn SetProperty(&self, name: &super::super::Foundation::BSTR, property: &super::Com::VARIANT) -> ::windows::core::Result<()>; - fn RemoveProperty(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetProperty(&self, name: &::windows::core::BSTR, property: &super::Com::VARIANT) -> ::windows::core::Result<()>; + fn RemoveProperty(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IContextProperties {} @@ -2593,7 +2593,7 @@ impl IContextProperties_Vtbl { let this = (*this).get_impl(); this.Count(::core::mem::transmute_copy(&plcount)).into() } - unsafe extern "system" fn GetProperty, Impl: IContextProperties_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, pproperty: *mut super::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetProperty, Impl: IContextProperties_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pproperty: *mut super::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetProperty(::core::mem::transmute(&name), ::core::mem::transmute_copy(&pproperty)).into() @@ -2609,12 +2609,12 @@ impl IContextProperties_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetProperty, Impl: IContextProperties_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, property: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetProperty, Impl: IContextProperties_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, property: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetProperty(::core::mem::transmute(&name), ::core::mem::transmute(&property)).into() } - unsafe extern "system" fn RemoveProperty, Impl: IContextProperties_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn RemoveProperty, Impl: IContextProperties_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RemoveProperty(::core::mem::transmute(&name)).into() @@ -2720,16 +2720,13 @@ impl ICreateWithLocalTransaction_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait ICreateWithTipTransactionEx_Impl: Sized { - fn CreateInstance(&self, bstrtipurl: &super::super::Foundation::BSTR, rclsid: *const ::windows::core::GUID, riid: *const ::windows::core::GUID, pobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; + fn CreateInstance(&self, bstrtipurl: &::windows::core::BSTR, rclsid: *const ::windows::core::GUID, riid: *const ::windows::core::GUID, pobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ICreateWithTipTransactionEx {} -#[cfg(feature = "Win32_Foundation")] impl ICreateWithTipTransactionEx_Vtbl { pub const fn new, Impl: ICreateWithTipTransactionEx_Impl, const OFFSET: isize>() -> ICreateWithTipTransactionEx_Vtbl { - unsafe extern "system" fn CreateInstance, Impl: ICreateWithTipTransactionEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtipurl: ::core::mem::ManuallyDrop, rclsid: *const ::windows::core::GUID, riid: *const ::windows::core::GUID, pobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateInstance, Impl: ICreateWithTipTransactionEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtipurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, rclsid: *const ::windows::core::GUID, riid: *const ::windows::core::GUID, pobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CreateInstance(::core::mem::transmute(&bstrtipurl), ::core::mem::transmute_copy(&rclsid), ::core::mem::transmute_copy(&riid), ::core::mem::transmute_copy(&pobject)).into() @@ -3050,7 +3047,7 @@ impl ICrmFormatLogRecords_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICrmLogControl_Impl: Sized { - fn TransactionUOW(&self) -> ::windows::core::Result; + fn TransactionUOW(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn RegisterCompensator(&self, lpcwstrprogidcompensator: &::windows::core::PCWSTR, lpcwstrdescription: &::windows::core::PCWSTR, lcrmregflags: i32) -> ::windows::core::Result<()>; fn WriteLogRecordVariants(&self, plogrecord: *const super::Com::VARIANT) -> ::windows::core::Result<()>; fn ForceLog(&self) -> ::windows::core::Result<()>; @@ -3063,7 +3060,7 @@ impl ::windows::core::RuntimeName for ICrmLogControl {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICrmLogControl_Vtbl { pub const fn new, Impl: ICrmLogControl_Impl, const OFFSET: isize>() -> ICrmLogControl_Vtbl { - unsafe extern "system" fn TransactionUOW, Impl: ICrmLogControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TransactionUOW, Impl: ICrmLogControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TransactionUOW() { @@ -3434,19 +3431,16 @@ impl IDispenserManager_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IEnumNames_Impl: Sized { - fn Next(&self, celt: u32, rgname: *mut super::super::Foundation::BSTR, pceltfetched: *mut u32) -> ::windows::core::Result<()>; + fn Next(&self, celt: u32, rgname: *mut ::windows::core::BSTR, pceltfetched: *mut u32) -> ::windows::core::Result<()>; fn Skip(&self, celt: u32) -> ::windows::core::Result<()>; fn Reset(&self) -> ::windows::core::Result<()>; fn Clone(&self) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IEnumNames {} -#[cfg(feature = "Win32_Foundation")] impl IEnumNames_Vtbl { pub const fn new, Impl: IEnumNames_Impl, const OFFSET: isize>() -> IEnumNames_Vtbl { - unsafe extern "system" fn Next, Impl: IEnumNames_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, celt: u32, rgname: *mut super::super::Foundation::BSTR, pceltfetched: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn Next, Impl: IEnumNames_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, celt: u32, rgname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pceltfetched: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Next(::core::mem::transmute_copy(&celt), ::core::mem::transmute_copy(&rgname), ::core::mem::transmute_copy(&pceltfetched)).into() @@ -3486,26 +3480,26 @@ impl IEnumNames_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IEventServerTrace_Impl: Sized + super::Com::IDispatch_Impl { - fn StartTraceGuid(&self, bstrguidevent: &super::super::Foundation::BSTR, bstrguidfilter: &super::super::Foundation::BSTR, lpidfilter: i32) -> ::windows::core::Result<()>; - fn StopTraceGuid(&self, bstrguidevent: &super::super::Foundation::BSTR, bstrguidfilter: &super::super::Foundation::BSTR, lpidfilter: i32) -> ::windows::core::Result<()>; - fn EnumTraceGuid(&self, plcntguids: *mut i32, pbstrguidlist: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn StartTraceGuid(&self, bstrguidevent: &::windows::core::BSTR, bstrguidfilter: &::windows::core::BSTR, lpidfilter: i32) -> ::windows::core::Result<()>; + fn StopTraceGuid(&self, bstrguidevent: &::windows::core::BSTR, bstrguidfilter: &::windows::core::BSTR, lpidfilter: i32) -> ::windows::core::Result<()>; + fn EnumTraceGuid(&self, plcntguids: *mut i32, pbstrguidlist: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IEventServerTrace {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IEventServerTrace_Vtbl { pub const fn new, Impl: IEventServerTrace_Impl, const OFFSET: isize>() -> IEventServerTrace_Vtbl { - unsafe extern "system" fn StartTraceGuid, Impl: IEventServerTrace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrguidevent: ::core::mem::ManuallyDrop, bstrguidfilter: ::core::mem::ManuallyDrop, lpidfilter: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn StartTraceGuid, Impl: IEventServerTrace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrguidevent: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrguidfilter: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lpidfilter: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.StartTraceGuid(::core::mem::transmute(&bstrguidevent), ::core::mem::transmute(&bstrguidfilter), ::core::mem::transmute_copy(&lpidfilter)).into() } - unsafe extern "system" fn StopTraceGuid, Impl: IEventServerTrace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrguidevent: ::core::mem::ManuallyDrop, bstrguidfilter: ::core::mem::ManuallyDrop, lpidfilter: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn StopTraceGuid, Impl: IEventServerTrace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrguidevent: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrguidfilter: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lpidfilter: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.StopTraceGuid(::core::mem::transmute(&bstrguidevent), ::core::mem::transmute(&bstrguidfilter), ::core::mem::transmute_copy(&lpidfilter)).into() } - unsafe extern "system" fn EnumTraceGuid, Impl: IEventServerTrace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, plcntguids: *mut i32, pbstrguidlist: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn EnumTraceGuid, Impl: IEventServerTrace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, plcntguids: *mut i32, pbstrguidlist: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.EnumTraceGuid(::core::mem::transmute_copy(&plcntguids), ::core::mem::transmute_copy(&pbstrguidlist)).into() @@ -3601,7 +3595,7 @@ impl IGetAppTrackerData_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IGetContextProperties_Impl: Sized { fn Count(&self, plcount: *mut i32) -> ::windows::core::Result<()>; - fn GetProperty(&self, name: &super::super::Foundation::BSTR, pproperty: *mut super::Com::VARIANT) -> ::windows::core::Result<()>; + fn GetProperty(&self, name: &::windows::core::BSTR, pproperty: *mut super::Com::VARIANT) -> ::windows::core::Result<()>; fn EnumNames(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3614,7 +3608,7 @@ impl IGetContextProperties_Vtbl { let this = (*this).get_impl(); this.Count(::core::mem::transmute_copy(&plcount)).into() } - unsafe extern "system" fn GetProperty, Impl: IGetContextProperties_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, pproperty: *mut super::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetProperty, Impl: IGetContextProperties_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pproperty: *mut super::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetProperty(::core::mem::transmute(&name), ::core::mem::transmute_copy(&pproperty)).into() @@ -3741,26 +3735,26 @@ impl IHolder_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ILBEvents_Impl: Sized { - fn TargetUp(&self, bstrservername: &super::super::Foundation::BSTR, bstrclsideng: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn TargetDown(&self, bstrservername: &super::super::Foundation::BSTR, bstrclsideng: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn EngineDefined(&self, bstrpropname: &super::super::Foundation::BSTR, varpropvalue: *const super::Com::VARIANT, bstrclsideng: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn TargetUp(&self, bstrservername: &::windows::core::BSTR, bstrclsideng: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn TargetDown(&self, bstrservername: &::windows::core::BSTR, bstrclsideng: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn EngineDefined(&self, bstrpropname: &::windows::core::BSTR, varpropvalue: *const super::Com::VARIANT, bstrclsideng: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ILBEvents {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ILBEvents_Vtbl { pub const fn new, Impl: ILBEvents_Impl, const OFFSET: isize>() -> ILBEvents_Vtbl { - unsafe extern "system" fn TargetUp, Impl: ILBEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop, bstrclsideng: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn TargetUp, Impl: ILBEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrclsideng: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.TargetUp(::core::mem::transmute(&bstrservername), ::core::mem::transmute(&bstrclsideng)).into() } - unsafe extern "system" fn TargetDown, Impl: ILBEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop, bstrclsideng: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn TargetDown, Impl: ILBEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrclsideng: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.TargetDown(::core::mem::transmute(&bstrservername), ::core::mem::transmute(&bstrclsideng)).into() } - unsafe extern "system" fn EngineDefined, Impl: ILBEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropname: ::core::mem::ManuallyDrop, varpropvalue: *const super::Com::VARIANT, bstrclsideng: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn EngineDefined, Impl: ILBEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varpropvalue: *const super::Com::VARIANT, bstrclsideng: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.EngineDefined(::core::mem::transmute(&bstrpropname), ::core::mem::transmute_copy(&varpropvalue), ::core::mem::transmute(&bstrclsideng)).into() @@ -3992,10 +3986,10 @@ impl IManagedPooledObj_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IMessageMover_Impl: Sized + super::Com::IDispatch_Impl { - fn SourcePath(&self) -> ::windows::core::Result; - fn SetSourcePath(&self, newval: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn DestPath(&self) -> ::windows::core::Result; - fn SetDestPath(&self, newval: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SourcePath(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetSourcePath(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn DestPath(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDestPath(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn CommitBatchSize(&self) -> ::windows::core::Result; fn SetCommitBatchSize(&self, newval: i32) -> ::windows::core::Result<()>; fn MoveMessages(&self) -> ::windows::core::Result; @@ -4005,7 +3999,7 @@ impl ::windows::core::RuntimeName for IMessageMover {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IMessageMover_Vtbl { pub const fn new, Impl: IMessageMover_Impl, const OFFSET: isize>() -> IMessageMover_Vtbl { - unsafe extern "system" fn SourcePath, Impl: IMessageMover_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SourcePath, Impl: IMessageMover_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SourcePath() { @@ -4016,12 +4010,12 @@ impl IMessageMover_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSourcePath, Impl: IMessageMover_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSourcePath, Impl: IMessageMover_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSourcePath(::core::mem::transmute(&newval)).into() } - unsafe extern "system" fn DestPath, Impl: IMessageMover_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DestPath, Impl: IMessageMover_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DestPath() { @@ -4032,7 +4026,7 @@ impl IMessageMover_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDestPath, Impl: IMessageMover_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDestPath, Impl: IMessageMover_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDestPath(::core::mem::transmute(&newval)).into() @@ -4082,10 +4076,10 @@ impl IMessageMover_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IMtsEventInfo_Impl: Sized + super::Com::IDispatch_Impl { fn Names(&self) -> ::windows::core::Result<::windows::core::IUnknown>; - fn DisplayName(&self) -> ::windows::core::Result; - fn EventID(&self) -> ::windows::core::Result; + fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn EventID(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Count(&self) -> ::windows::core::Result; - fn get_Value(&self, skey: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn get_Value(&self, skey: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IMtsEventInfo {} @@ -4103,7 +4097,7 @@ impl IMtsEventInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DisplayName, Impl: IMtsEventInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sdisplayname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DisplayName, Impl: IMtsEventInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sdisplayname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DisplayName() { @@ -4114,7 +4108,7 @@ impl IMtsEventInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn EventID, Impl: IMtsEventInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sguideventid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn EventID, Impl: IMtsEventInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sguideventid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EventID() { @@ -4136,7 +4130,7 @@ impl IMtsEventInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_Value, Impl: IMtsEventInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, skey: ::core::mem::ManuallyDrop, pval: *mut super::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Value, Impl: IMtsEventInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, skey: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pval: *mut super::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_Value(::core::mem::transmute(&skey)) { @@ -4162,8 +4156,8 @@ impl IMtsEventInfo_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IMtsEvents_Impl: Sized + super::Com::IDispatch_Impl { - fn PackageName(&self) -> ::windows::core::Result; - fn PackageGuid(&self) -> ::windows::core::Result; + fn PackageName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn PackageGuid(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn PostEvent(&self, vevent: *const super::Com::VARIANT) -> ::windows::core::Result<()>; fn FireEvents(&self) -> ::windows::core::Result; fn GetProcessID(&self) -> ::windows::core::Result; @@ -4173,7 +4167,7 @@ impl ::windows::core::RuntimeName for IMtsEvents {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IMtsEvents_Vtbl { pub const fn new, Impl: IMtsEvents_Impl, const OFFSET: isize>() -> IMtsEvents_Vtbl { - unsafe extern "system" fn PackageName, Impl: IMtsEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PackageName, Impl: IMtsEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PackageName() { @@ -4184,7 +4178,7 @@ impl IMtsEvents_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn PackageGuid, Impl: IMtsEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PackageGuid, Impl: IMtsEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PackageGuid() { @@ -4368,14 +4362,14 @@ impl IObjectConstruct_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IObjectConstructString_Impl: Sized + super::Com::IDispatch_Impl { - fn ConstructString(&self, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ConstructString(&self, pval: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IObjectConstructString {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IObjectConstructString_Vtbl { pub const fn new, Impl: IObjectConstructString_Impl, const OFFSET: isize>() -> IObjectConstructString_Vtbl { - unsafe extern "system" fn ConstructString, Impl: IObjectConstructString_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ConstructString, Impl: IObjectConstructString_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ConstructString(::core::mem::transmute_copy(&pval)).into() @@ -4395,7 +4389,7 @@ pub trait IObjectContext_Impl: Sized { fn DisableCommit(&self) -> ::windows::core::Result<()>; fn IsInTransaction(&self) -> super::super::Foundation::BOOL; fn IsSecurityEnabled(&self) -> super::super::Foundation::BOOL; - fn IsCallerInRole(&self, bstrrole: &super::super::Foundation::BSTR, pfisinrole: *mut super::super::Foundation::BOOL) -> ::windows::core::Result<()>; + fn IsCallerInRole(&self, bstrrole: &::windows::core::BSTR, pfisinrole: *mut super::super::Foundation::BOOL) -> ::windows::core::Result<()>; } #[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IObjectContext {} @@ -4437,7 +4431,7 @@ impl IObjectContext_Vtbl { let this = (*this).get_impl(); this.IsSecurityEnabled() } - unsafe extern "system" fn IsCallerInRole, Impl: IObjectContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrole: ::core::mem::ManuallyDrop, pfisinrole: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT { + unsafe extern "system" fn IsCallerInRole, Impl: IObjectContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrole: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfisinrole: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.IsCallerInRole(::core::mem::transmute(&bstrrole), ::core::mem::transmute_copy(&pfisinrole)).into() @@ -4569,16 +4563,13 @@ impl IObjectContextInfo2_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IObjectContextTip_Impl: Sized { - fn GetTipUrl(&self, ptipurl: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetTipUrl(&self, ptipurl: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IObjectContextTip {} -#[cfg(feature = "Win32_Foundation")] impl IObjectContextTip_Vtbl { pub const fn new, Impl: IObjectContextTip_Impl, const OFFSET: isize>() -> IObjectContextTip_Vtbl { - unsafe extern "system" fn GetTipUrl, Impl: IObjectContextTip_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ptipurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetTipUrl, Impl: IObjectContextTip_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ptipurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetTipUrl(::core::mem::transmute_copy(&ptipurl)).into() @@ -4655,14 +4646,14 @@ impl IPlaybackControl_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IPoolManager_Impl: Sized + super::Com::IDispatch_Impl { - fn ShutdownPool(&self, clsidorprogid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ShutdownPool(&self, clsidorprogid: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IPoolManager {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IPoolManager_Vtbl { pub const fn new, Impl: IPoolManager_Impl, const OFFSET: isize>() -> IPoolManager_Vtbl { - unsafe extern "system" fn ShutdownPool, Impl: IPoolManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, clsidorprogid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ShutdownPool, Impl: IPoolManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, clsidorprogid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ShutdownPool(::core::mem::transmute(&clsidorprogid)).into() @@ -4703,11 +4694,11 @@ impl IProcessInitializer_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISecurityCallContext_Impl: Sized + super::Com::IDispatch_Impl { fn Count(&self) -> ::windows::core::Result; - fn get_Item(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn get_Item(&self, name: &::windows::core::BSTR) -> ::windows::core::Result; fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; - fn IsCallerInRole(&self, bstrrole: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn IsCallerInRole(&self, bstrrole: &::windows::core::BSTR) -> ::windows::core::Result; fn IsSecurityEnabled(&self) -> ::windows::core::Result; - fn IsUserInRole(&self, puser: *const super::Com::VARIANT, bstrrole: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn IsUserInRole(&self, puser: *const super::Com::VARIANT, bstrrole: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ISecurityCallContext {} @@ -4725,7 +4716,7 @@ impl ISecurityCallContext_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_Item, Impl: ISecurityCallContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, pitem: *mut super::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Item, Impl: ISecurityCallContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pitem: *mut super::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_Item(::core::mem::transmute(&name)) { @@ -4747,7 +4738,7 @@ impl ISecurityCallContext_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn IsCallerInRole, Impl: ISecurityCallContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrole: ::core::mem::ManuallyDrop, pfinrole: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn IsCallerInRole, Impl: ISecurityCallContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrole: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfinrole: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.IsCallerInRole(::core::mem::transmute(&bstrrole)) { @@ -4769,7 +4760,7 @@ impl ISecurityCallContext_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn IsUserInRole, Impl: ISecurityCallContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, puser: *const super::Com::VARIANT, bstrrole: ::core::mem::ManuallyDrop, pfinrole: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn IsUserInRole, Impl: ISecurityCallContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, puser: *const super::Com::VARIANT, bstrrole: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfinrole: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.IsUserInRole(::core::mem::transmute_copy(&puser), ::core::mem::transmute(&bstrrole)) { @@ -4852,7 +4843,7 @@ impl ISecurityCallersColl_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISecurityIdentityColl_Impl: Sized + super::Com::IDispatch_Impl { fn Count(&self) -> ::windows::core::Result; - fn get_Item(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn get_Item(&self, name: &::windows::core::BSTR) -> ::windows::core::Result; fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -4871,7 +4862,7 @@ impl ISecurityIdentityColl_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_Item, Impl: ISecurityIdentityColl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, pitem: *mut super::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Item, Impl: ISecurityIdentityColl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pitem: *mut super::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_Item(::core::mem::transmute(&name)) { @@ -5497,8 +5488,8 @@ impl ISharedProperty_Vtbl { pub trait ISharedPropertyGroup_Impl: Sized + super::Com::IDispatch_Impl { fn CreatePropertyByPosition(&self, index: i32, fexists: *mut i16, ppprop: *mut ::core::option::Option) -> ::windows::core::Result<()>; fn get_PropertyByPosition(&self, index: i32) -> ::windows::core::Result; - fn CreateProperty(&self, name: &super::super::Foundation::BSTR, fexists: *mut i16, ppprop: *mut ::core::option::Option) -> ::windows::core::Result<()>; - fn get_Property(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn CreateProperty(&self, name: &::windows::core::BSTR, fexists: *mut i16, ppprop: *mut ::core::option::Option) -> ::windows::core::Result<()>; + fn get_Property(&self, name: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ISharedPropertyGroup {} @@ -5521,12 +5512,12 @@ impl ISharedPropertyGroup_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateProperty, Impl: ISharedPropertyGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, fexists: *mut i16, ppprop: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateProperty, Impl: ISharedPropertyGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fexists: *mut i16, ppprop: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CreateProperty(::core::mem::transmute(&name), ::core::mem::transmute_copy(&fexists), ::core::mem::transmute_copy(&ppprop)).into() } - unsafe extern "system" fn get_Property, Impl: ISharedPropertyGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, ppproperty: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Property, Impl: ISharedPropertyGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppproperty: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_Property(::core::mem::transmute(&name)) { @@ -5551,8 +5542,8 @@ impl ISharedPropertyGroup_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISharedPropertyGroupManager_Impl: Sized + super::Com::IDispatch_Impl { - fn CreatePropertyGroup(&self, name: &super::super::Foundation::BSTR, dwisomode: *mut i32, dwrelmode: *mut i32, fexists: *mut i16, ppgroup: *mut ::core::option::Option) -> ::windows::core::Result<()>; - fn get_Group(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn CreatePropertyGroup(&self, name: &::windows::core::BSTR, dwisomode: *mut i32, dwrelmode: *mut i32, fexists: *mut i16, ppgroup: *mut ::core::option::Option) -> ::windows::core::Result<()>; + fn get_Group(&self, name: &::windows::core::BSTR) -> ::windows::core::Result; fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -5560,12 +5551,12 @@ impl ::windows::core::RuntimeName for ISharedPropertyGroupManager {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ISharedPropertyGroupManager_Vtbl { pub const fn new, Impl: ISharedPropertyGroupManager_Impl, const OFFSET: isize>() -> ISharedPropertyGroupManager_Vtbl { - unsafe extern "system" fn CreatePropertyGroup, Impl: ISharedPropertyGroupManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, dwisomode: *mut i32, dwrelmode: *mut i32, fexists: *mut i16, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreatePropertyGroup, Impl: ISharedPropertyGroupManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwisomode: *mut i32, dwrelmode: *mut i32, fexists: *mut i16, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CreatePropertyGroup(::core::mem::transmute(&name), ::core::mem::transmute_copy(&dwisomode), ::core::mem::transmute_copy(&dwrelmode), ::core::mem::transmute_copy(&fexists), ::core::mem::transmute_copy(&ppgroup)).into() } - unsafe extern "system" fn get_Group, Impl: ISharedPropertyGroupManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Group, Impl: ISharedPropertyGroupManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_Group(::core::mem::transmute(&name)) { @@ -5598,14 +5589,11 @@ impl ISharedPropertyGroupManager_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait ISystemAppEventData_Impl: Sized { fn Startup(&self) -> ::windows::core::Result<()>; - fn OnDataChanged(&self, dwpid: u32, dwmask: u32, dwnumbersinks: u32, bstrdwmethodmask: &super::super::Foundation::BSTR, dwreason: u32, u64tracehandle: u64) -> ::windows::core::Result<()>; + fn OnDataChanged(&self, dwpid: u32, dwmask: u32, dwnumbersinks: u32, bstrdwmethodmask: &::windows::core::BSTR, dwreason: u32, u64tracehandle: u64) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ISystemAppEventData {} -#[cfg(feature = "Win32_Foundation")] impl ISystemAppEventData_Vtbl { pub const fn new, Impl: ISystemAppEventData_Impl, const OFFSET: isize>() -> ISystemAppEventData_Vtbl { unsafe extern "system" fn Startup, Impl: ISystemAppEventData_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -5613,7 +5601,7 @@ impl ISystemAppEventData_Vtbl { let this = (*this).get_impl(); this.Startup().into() } - unsafe extern "system" fn OnDataChanged, Impl: ISystemAppEventData_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwpid: u32, dwmask: u32, dwnumbersinks: u32, bstrdwmethodmask: ::core::mem::ManuallyDrop, dwreason: u32, u64tracehandle: u64) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnDataChanged, Impl: ISystemAppEventData_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwpid: u32, dwmask: u32, dwnumbersinks: u32, bstrdwmethodmask: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwreason: u32, u64tracehandle: u64) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnDataChanged(::core::mem::transmute_copy(&dwpid), ::core::mem::transmute_copy(&dwmask), ::core::mem::transmute_copy(&dwnumbersinks), ::core::mem::transmute(&bstrdwmethodmask), ::core::mem::transmute_copy(&dwreason), ::core::mem::transmute_copy(&u64tracehandle)).into() @@ -5713,7 +5701,7 @@ impl IThreadPoolKnobs_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ITransactionContext_Impl: Sized + super::Com::IDispatch_Impl { - fn CreateInstance(&self, pszprogid: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn CreateInstance(&self, pszprogid: &::windows::core::BSTR) -> ::windows::core::Result; fn Commit(&self) -> ::windows::core::Result<()>; fn Abort(&self) -> ::windows::core::Result<()>; } @@ -5722,7 +5710,7 @@ impl ::windows::core::RuntimeName for ITransactionContext {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ITransactionContext_Vtbl { pub const fn new, Impl: ITransactionContext_Impl, const OFFSET: isize>() -> ITransactionContext_Vtbl { - unsafe extern "system" fn CreateInstance, Impl: ITransactionContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszprogid: ::core::mem::ManuallyDrop, pobject: *mut super::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateInstance, Impl: ITransactionContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszprogid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pobject: *mut super::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateInstance(::core::mem::transmute(&pszprogid)) { @@ -6089,16 +6077,16 @@ impl ITxProxyHolder_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ObjectContext_Impl: Sized + super::Com::IDispatch_Impl { - fn CreateInstance(&self, bstrprogid: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn CreateInstance(&self, bstrprogid: &::windows::core::BSTR) -> ::windows::core::Result; fn SetComplete(&self) -> ::windows::core::Result<()>; fn SetAbort(&self) -> ::windows::core::Result<()>; fn EnableCommit(&self) -> ::windows::core::Result<()>; fn DisableCommit(&self) -> ::windows::core::Result<()>; fn IsInTransaction(&self) -> ::windows::core::Result; fn IsSecurityEnabled(&self) -> ::windows::core::Result; - fn IsCallerInRole(&self, bstrrole: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn IsCallerInRole(&self, bstrrole: &::windows::core::BSTR) -> ::windows::core::Result; fn Count(&self) -> ::windows::core::Result; - fn get_Item(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn get_Item(&self, name: &::windows::core::BSTR) -> ::windows::core::Result; fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; fn Security(&self) -> ::windows::core::Result; fn ContextInfo(&self) -> ::windows::core::Result; @@ -6108,7 +6096,7 @@ impl ::windows::core::RuntimeName for ObjectContext {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ObjectContext_Vtbl { pub const fn new, Impl: ObjectContext_Impl, const OFFSET: isize>() -> ObjectContext_Vtbl { - unsafe extern "system" fn CreateInstance, Impl: ObjectContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprogid: ::core::mem::ManuallyDrop, pobject: *mut super::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateInstance, Impl: ObjectContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprogid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pobject: *mut super::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateInstance(::core::mem::transmute(&bstrprogid)) { @@ -6161,7 +6149,7 @@ impl ObjectContext_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn IsCallerInRole, Impl: ObjectContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrole: ::core::mem::ManuallyDrop, pbinrole: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn IsCallerInRole, Impl: ObjectContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrole: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbinrole: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.IsCallerInRole(::core::mem::transmute(&bstrrole)) { @@ -6183,7 +6171,7 @@ impl ObjectContext_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_Item, Impl: ObjectContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, pitem: *mut super::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Item, Impl: ObjectContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pitem: *mut super::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_Item(::core::mem::transmute(&name)) { @@ -6284,17 +6272,17 @@ impl ObjectControl_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait SecurityProperty_Impl: Sized + super::Com::IDispatch_Impl { - fn GetDirectCallerName(&self) -> ::windows::core::Result; - fn GetDirectCreatorName(&self) -> ::windows::core::Result; - fn GetOriginalCallerName(&self) -> ::windows::core::Result; - fn GetOriginalCreatorName(&self) -> ::windows::core::Result; + fn GetDirectCallerName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetDirectCreatorName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetOriginalCallerName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetOriginalCreatorName(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for SecurityProperty {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl SecurityProperty_Vtbl { pub const fn new, Impl: SecurityProperty_Impl, const OFFSET: isize>() -> SecurityProperty_Vtbl { - unsafe extern "system" fn GetDirectCallerName, Impl: SecurityProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDirectCallerName, Impl: SecurityProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDirectCallerName() { @@ -6305,7 +6293,7 @@ impl SecurityProperty_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetDirectCreatorName, Impl: SecurityProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDirectCreatorName, Impl: SecurityProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDirectCreatorName() { @@ -6316,7 +6304,7 @@ impl SecurityProperty_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetOriginalCallerName, Impl: SecurityProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetOriginalCallerName, Impl: SecurityProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetOriginalCallerName() { @@ -6327,7 +6315,7 @@ impl SecurityProperty_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetOriginalCreatorName, Impl: SecurityProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetOriginalCreatorName, Impl: SecurityProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetOriginalCreatorName() { diff --git a/crates/libs/windows/src/Windows/Win32/System/ComponentServices/mod.rs b/crates/libs/windows/src/Windows/Win32/System/ComponentServices/mod.rs index df225fc82c..7aa2f8a341 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ComponentServices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ComponentServices/mod.rs @@ -107,23 +107,17 @@ impl ContextInfo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetTransaction)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetTransactionId(&self) -> ::windows::core::Result { + pub unsafe fn GetTransactionId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetTransactionId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetTransactionId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetActivityId(&self) -> ::windows::core::Result { + pub unsafe fn GetActivityId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetActivityId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetActivityId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetContextId(&self) -> ::windows::core::Result { + pub unsafe fn GetContextId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetContextId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetContextId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -194,18 +188,9 @@ pub struct ContextInfo_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub IsInTransaction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbisintx: *mut i16) -> ::windows::core::HRESULT, pub GetTransaction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pptx: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetTransactionId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtxid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetTransactionId: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetActivityId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstractivityid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetActivityId: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetContextId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrctxid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetContextId: usize, + pub GetTransactionId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtxid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetActivityId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstractivityid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetContextId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrctxid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_ComponentServices\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -221,41 +206,29 @@ impl ContextInfo2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetTransaction)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetTransactionId(&self) -> ::windows::core::Result { + pub unsafe fn GetTransactionId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetTransactionId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetTransactionId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetActivityId(&self) -> ::windows::core::Result { + pub unsafe fn GetActivityId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetActivityId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetActivityId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetContextId(&self) -> ::windows::core::Result { + pub unsafe fn GetContextId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetContextId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetContextId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPartitionId(&self) -> ::windows::core::Result { + pub unsafe fn GetPartitionId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetPartitionId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetPartitionId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetApplicationId(&self) -> ::windows::core::Result { + pub unsafe fn GetApplicationId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetApplicationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetApplicationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetApplicationInstanceId(&self) -> ::windows::core::Result { + pub unsafe fn GetApplicationInstanceId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetApplicationInstanceId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetApplicationInstanceId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -342,18 +315,9 @@ unsafe impl ::windows::core::Interface for ContextInfo2 { #[doc(hidden)] pub struct ContextInfo2_Vtbl { pub base__: ContextInfo_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetPartitionId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__contextinfo20000: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPartitionId: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetApplicationId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__contextinfo20001: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetApplicationId: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetApplicationInstanceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__contextinfo20002: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetApplicationInstanceId: usize, + pub GetPartitionId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__contextinfo20000: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetApplicationId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__contextinfo20001: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetApplicationInstanceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__contextinfo20002: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_ComponentServices\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -449,16 +413,11 @@ pub struct IAppDomainHelper_Vtbl { pub struct IAssemblyLocator(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IAssemblyLocator { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetModules<'a, P0, P1, P2>(&self, applicationdir: P0, applicationname: P1, assemblyname: P2) -> ::windows::core::Result<*mut super::Com::SAFEARRAY> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetModules(&self, applicationdir: &::windows::core::BSTR, applicationname: &::windows::core::BSTR, assemblyname: &::windows::core::BSTR) -> ::windows::core::Result<*mut super::Com::SAFEARRAY> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetModules)(::windows::core::Interface::as_raw(self), applicationdir.into().abi(), applicationname.into().abi(), assemblyname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut super::Com::SAFEARRAY>(result__) + (::windows::core::Interface::vtable(self).GetModules)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(applicationdir), ::core::mem::transmute_copy(applicationname), ::core::mem::transmute_copy(assemblyname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut super::Com::SAFEARRAY>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -527,9 +486,9 @@ unsafe impl ::windows::core::Interface for IAssemblyLocator { #[doc(hidden)] pub struct IAssemblyLocator_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetModules: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, applicationdir: ::core::mem::ManuallyDrop, applicationname: ::core::mem::ManuallyDrop, assemblyname: ::core::mem::ManuallyDrop, pmodules: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetModules: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, applicationdir: ::core::mem::ManuallyDrop<::windows::core::BSTR>, applicationname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, assemblyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pmodules: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetModules: usize, } #[doc = "*Required features: `\"Win32_System_ComponentServices\"`*"] @@ -587,23 +546,17 @@ pub struct IAsyncErrorNotify_Vtbl { pub struct ICOMAdminCatalog(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICOMAdminCatalog { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetCollection<'a, P0>(&self, bstrcollname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetCollection(&self, bstrcollname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetCollection)(::windows::core::Interface::as_raw(self), bstrcollname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetCollection)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcollname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Connect<'a, P0>(&self, bstrcatalogservername: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Connect(&self, bstrcatalogservername: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Connect)(::windows::core::Interface::as_raw(self), bstrcatalogservername.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Connect)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcatalogservername), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn MajorVersion(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -613,63 +566,26 @@ impl ICOMAdminCatalog { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).MinorVersion)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetCollectionByQuery<'a, P0>(&self, bstrcollname: P0, ppsavarquery: &*const super::Com::SAFEARRAY) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetCollectionByQuery(&self, bstrcollname: &::windows::core::BSTR, ppsavarquery: &*const super::Com::SAFEARRAY) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetCollectionByQuery)(::windows::core::Interface::as_raw(self), bstrcollname.into().abi(), ::core::mem::transmute(ppsavarquery), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetCollectionByQuery)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcollname), ::core::mem::transmute(ppsavarquery), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ImportComponent<'a, P0, P1>(&self, bstrapplidorname: P0, bstrclsidorprogid: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ImportComponent)(::windows::core::Interface::as_raw(self), bstrapplidorname.into().abi(), bstrclsidorprogid.into().abi()).ok() + pub unsafe fn ImportComponent(&self, bstrapplidorname: &::windows::core::BSTR, bstrclsidorprogid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ImportComponent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplidorname), ::core::mem::transmute_copy(bstrclsidorprogid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InstallComponent<'a, P0, P1, P2, P3>(&self, bstrapplidorname: P0, bstrdll: P1, bstrtlb: P2, bstrpsdll: P3) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InstallComponent)(::windows::core::Interface::as_raw(self), bstrapplidorname.into().abi(), bstrdll.into().abi(), bstrtlb.into().abi(), bstrpsdll.into().abi()).ok() + pub unsafe fn InstallComponent(&self, bstrapplidorname: &::windows::core::BSTR, bstrdll: &::windows::core::BSTR, bstrtlb: &::windows::core::BSTR, bstrpsdll: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InstallComponent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplidorname), ::core::mem::transmute_copy(bstrdll), ::core::mem::transmute_copy(bstrtlb), ::core::mem::transmute_copy(bstrpsdll)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ShutdownApplication<'a, P0>(&self, bstrapplidorname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ShutdownApplication)(::windows::core::Interface::as_raw(self), bstrapplidorname.into().abi()).ok() + pub unsafe fn ShutdownApplication(&self, bstrapplidorname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ShutdownApplication)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplidorname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExportApplication<'a, P0, P1>(&self, bstrapplidorname: P0, bstrapplicationfile: P1, loptions: COMAdminApplicationExportOptions) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ExportApplication)(::windows::core::Interface::as_raw(self), bstrapplidorname.into().abi(), bstrapplicationfile.into().abi(), loptions).ok() + pub unsafe fn ExportApplication(&self, bstrapplidorname: &::windows::core::BSTR, bstrapplicationfile: &::windows::core::BSTR, loptions: COMAdminApplicationExportOptions) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ExportApplication)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplidorname), ::core::mem::transmute_copy(bstrapplicationfile), loptions).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InstallApplication<'a, P0, P1, P2, P3, P4>(&self, bstrapplicationfile: P0, bstrdestinationdirectory: P1, loptions: COMAdminApplicationInstallOptions, bstruserid: P2, bstrpassword: P3, bstrrsn: P4) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InstallApplication)(::windows::core::Interface::as_raw(self), bstrapplicationfile.into().abi(), bstrdestinationdirectory.into().abi(), loptions, bstruserid.into().abi(), bstrpassword.into().abi(), bstrrsn.into().abi()).ok() + pub unsafe fn InstallApplication(&self, bstrapplicationfile: &::windows::core::BSTR, bstrdestinationdirectory: &::windows::core::BSTR, loptions: COMAdminApplicationInstallOptions, bstruserid: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR, bstrrsn: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InstallApplication)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationfile), ::core::mem::transmute_copy(bstrdestinationdirectory), loptions, ::core::mem::transmute_copy(bstruserid), ::core::mem::transmute_copy(bstrpassword), ::core::mem::transmute_copy(bstrrsn)).ok() } pub unsafe fn StopRouter(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).StopRouter)(::windows::core::Interface::as_raw(self)).ok() @@ -686,87 +602,49 @@ impl ICOMAdminCatalog { pub unsafe fn Reserved2(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Reserved2)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn InstallMultipleComponents<'a, P0>(&self, bstrapplidorname: P0, ppsavarfilenames: &*const super::Com::SAFEARRAY, ppsavarclsids: &*const super::Com::SAFEARRAY) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InstallMultipleComponents)(::windows::core::Interface::as_raw(self), bstrapplidorname.into().abi(), ::core::mem::transmute(ppsavarfilenames), ::core::mem::transmute(ppsavarclsids)).ok() + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn InstallMultipleComponents(&self, bstrapplidorname: &::windows::core::BSTR, ppsavarfilenames: &*const super::Com::SAFEARRAY, ppsavarclsids: &*const super::Com::SAFEARRAY) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InstallMultipleComponents)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplidorname), ::core::mem::transmute(ppsavarfilenames), ::core::mem::transmute(ppsavarclsids)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetMultipleComponentsInfo<'a, P0>(&self, bstrapplidorname: P0, ppsavarfilenames: &*const super::Com::SAFEARRAY, ppsavarclsids: &mut *mut super::Com::SAFEARRAY, ppsavarclassnames: &mut *mut super::Com::SAFEARRAY, ppsavarfileflags: &mut *mut super::Com::SAFEARRAY, ppsavarcomponentflags: &mut *mut super::Com::SAFEARRAY) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetMultipleComponentsInfo)(::windows::core::Interface::as_raw(self), bstrapplidorname.into().abi(), ::core::mem::transmute(ppsavarfilenames), ::core::mem::transmute(ppsavarclsids), ::core::mem::transmute(ppsavarclassnames), ::core::mem::transmute(ppsavarfileflags), ::core::mem::transmute(ppsavarcomponentflags)).ok() + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetMultipleComponentsInfo(&self, bstrapplidorname: &::windows::core::BSTR, ppsavarfilenames: &*const super::Com::SAFEARRAY, ppsavarclsids: &mut *mut super::Com::SAFEARRAY, ppsavarclassnames: &mut *mut super::Com::SAFEARRAY, ppsavarfileflags: &mut *mut super::Com::SAFEARRAY, ppsavarcomponentflags: &mut *mut super::Com::SAFEARRAY) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetMultipleComponentsInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplidorname), ::core::mem::transmute(ppsavarfilenames), ::core::mem::transmute(ppsavarclsids), ::core::mem::transmute(ppsavarclassnames), ::core::mem::transmute(ppsavarfileflags), ::core::mem::transmute(ppsavarcomponentflags)).ok() } pub unsafe fn RefreshComponents(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RefreshComponents)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BackupREGDB<'a, P0>(&self, bstrbackupfilepath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).BackupREGDB)(::windows::core::Interface::as_raw(self), bstrbackupfilepath.into().abi()).ok() + pub unsafe fn BackupREGDB(&self, bstrbackupfilepath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).BackupREGDB)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrbackupfilepath)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RestoreREGDB<'a, P0>(&self, bstrbackupfilepath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).RestoreREGDB)(::windows::core::Interface::as_raw(self), bstrbackupfilepath.into().abi()).ok() + pub unsafe fn RestoreREGDB(&self, bstrbackupfilepath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).RestoreREGDB)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrbackupfilepath)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn QueryApplicationFile<'a, P0>(&self, bstrapplicationfile: P0, pbstrapplicationname: &mut super::super::Foundation::BSTR, pbstrapplicationdescription: &mut super::super::Foundation::BSTR, pbhasusers: &mut i16, pbisproxy: &mut i16, ppsavarfilenames: &mut *mut super::Com::SAFEARRAY) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).QueryApplicationFile)(::windows::core::Interface::as_raw(self), bstrapplicationfile.into().abi(), ::core::mem::transmute(pbstrapplicationname), ::core::mem::transmute(pbstrapplicationdescription), ::core::mem::transmute(pbhasusers), ::core::mem::transmute(pbisproxy), ::core::mem::transmute(ppsavarfilenames)).ok() + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn QueryApplicationFile(&self, bstrapplicationfile: &::windows::core::BSTR, pbstrapplicationname: &mut ::windows::core::BSTR, pbstrapplicationdescription: &mut ::windows::core::BSTR, pbhasusers: &mut i16, pbisproxy: &mut i16, ppsavarfilenames: &mut *mut super::Com::SAFEARRAY) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).QueryApplicationFile)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationfile), ::core::mem::transmute(pbstrapplicationname), ::core::mem::transmute(pbstrapplicationdescription), ::core::mem::transmute(pbhasusers), ::core::mem::transmute(pbisproxy), ::core::mem::transmute(ppsavarfilenames)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StartApplication<'a, P0>(&self, bstrapplidorname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).StartApplication)(::windows::core::Interface::as_raw(self), bstrapplidorname.into().abi()).ok() + pub unsafe fn StartApplication(&self, bstrapplidorname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).StartApplication)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplidorname)).ok() } pub unsafe fn ServiceCheck(&self, lservice: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ServiceCheck)(::windows::core::Interface::as_raw(self), lservice, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn InstallMultipleEventClasses<'a, P0>(&self, bstrapplidorname: P0, ppsavarfilenames: &*const super::Com::SAFEARRAY, ppsavarclsids: &*const super::Com::SAFEARRAY) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InstallMultipleEventClasses)(::windows::core::Interface::as_raw(self), bstrapplidorname.into().abi(), ::core::mem::transmute(ppsavarfilenames), ::core::mem::transmute(ppsavarclsids)).ok() + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn InstallMultipleEventClasses(&self, bstrapplidorname: &::windows::core::BSTR, ppsavarfilenames: &*const super::Com::SAFEARRAY, ppsavarclsids: &*const super::Com::SAFEARRAY) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InstallMultipleEventClasses)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplidorname), ::core::mem::transmute(ppsavarfilenames), ::core::mem::transmute(ppsavarclsids)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InstallEventClass<'a, P0, P1, P2, P3>(&self, bstrapplidorname: P0, bstrdll: P1, bstrtlb: P2, bstrpsdll: P3) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InstallEventClass)(::windows::core::Interface::as_raw(self), bstrapplidorname.into().abi(), bstrdll.into().abi(), bstrtlb.into().abi(), bstrpsdll.into().abi()).ok() + pub unsafe fn InstallEventClass(&self, bstrapplidorname: &::windows::core::BSTR, bstrdll: &::windows::core::BSTR, bstrtlb: &::windows::core::BSTR, bstrpsdll: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InstallEventClass)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplidorname), ::core::mem::transmute_copy(bstrdll), ::core::mem::transmute_copy(bstrtlb), ::core::mem::transmute_copy(bstrpsdll)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetEventClassesForIID<'a, P0>(&self, bstriid: P0, ppsavarclsids: &mut *mut super::Com::SAFEARRAY, ppsavarprogids: &mut *mut super::Com::SAFEARRAY, ppsavardescriptions: &mut *mut super::Com::SAFEARRAY) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetEventClassesForIID)(::windows::core::Interface::as_raw(self), bstriid.into().abi(), ::core::mem::transmute(ppsavarclsids), ::core::mem::transmute(ppsavarprogids), ::core::mem::transmute(ppsavardescriptions)).ok() + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetEventClassesForIID(&self, bstriid: &::windows::core::BSTR, ppsavarclsids: &mut *mut super::Com::SAFEARRAY, ppsavarprogids: &mut *mut super::Com::SAFEARRAY, ppsavardescriptions: &mut *mut super::Com::SAFEARRAY) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetEventClassesForIID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstriid), ::core::mem::transmute(ppsavarclsids), ::core::mem::transmute(ppsavarprogids), ::core::mem::transmute(ppsavardescriptions)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -835,82 +713,55 @@ unsafe impl ::windows::core::Interface for ICOMAdminCatalog { #[doc(hidden)] pub struct ICOMAdminCatalog_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetCollection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcollname: ::core::mem::ManuallyDrop, ppcatalogcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetCollection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcollname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppcatalogcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetCollection: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Connect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcatalogservername: ::core::mem::ManuallyDrop, ppcatalogcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub Connect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcatalogservername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppcatalogcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Connect: usize, pub MajorVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plmajorversion: *mut i32) -> ::windows::core::HRESULT, pub MinorVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plminorversion: *mut i32) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetCollectionByQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcollname: ::core::mem::ManuallyDrop, ppsavarquery: *const *const super::Com::SAFEARRAY, ppcatalogcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetCollectionByQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcollname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppsavarquery: *const *const super::Com::SAFEARRAY, ppcatalogcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetCollectionByQuery: usize, - #[cfg(feature = "Win32_Foundation")] - pub ImportComponent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplidorname: ::core::mem::ManuallyDrop, bstrclsidorprogid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ImportComponent: usize, - #[cfg(feature = "Win32_Foundation")] - pub InstallComponent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplidorname: ::core::mem::ManuallyDrop, bstrdll: ::core::mem::ManuallyDrop, bstrtlb: ::core::mem::ManuallyDrop, bstrpsdll: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InstallComponent: usize, - #[cfg(feature = "Win32_Foundation")] - pub ShutdownApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplidorname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ShutdownApplication: usize, - #[cfg(feature = "Win32_Foundation")] - pub ExportApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplidorname: ::core::mem::ManuallyDrop, bstrapplicationfile: ::core::mem::ManuallyDrop, loptions: COMAdminApplicationExportOptions) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ExportApplication: usize, - #[cfg(feature = "Win32_Foundation")] - pub InstallApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationfile: ::core::mem::ManuallyDrop, bstrdestinationdirectory: ::core::mem::ManuallyDrop, loptions: COMAdminApplicationInstallOptions, bstruserid: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop, bstrrsn: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InstallApplication: usize, + pub ImportComponent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrclsidorprogid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub InstallComponent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdll: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrtlb: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpsdll: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ShutdownApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ExportApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrapplicationfile: ::core::mem::ManuallyDrop<::windows::core::BSTR>, loptions: COMAdminApplicationExportOptions) -> ::windows::core::HRESULT, + pub InstallApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationfile: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdestinationdirectory: ::core::mem::ManuallyDrop<::windows::core::BSTR>, loptions: COMAdminApplicationInstallOptions, bstruserid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrrsn: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub StopRouter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub RefreshRouter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub StartRouter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Reserved1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Reserved2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub InstallMultipleComponents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplidorname: ::core::mem::ManuallyDrop, ppsavarfilenames: *const *const super::Com::SAFEARRAY, ppsavarclsids: *const *const super::Com::SAFEARRAY) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub InstallMultipleComponents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppsavarfilenames: *const *const super::Com::SAFEARRAY, ppsavarclsids: *const *const super::Com::SAFEARRAY) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] InstallMultipleComponents: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetMultipleComponentsInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplidorname: ::core::mem::ManuallyDrop, ppsavarfilenames: *const *const super::Com::SAFEARRAY, ppsavarclsids: *mut *mut super::Com::SAFEARRAY, ppsavarclassnames: *mut *mut super::Com::SAFEARRAY, ppsavarfileflags: *mut *mut super::Com::SAFEARRAY, ppsavarcomponentflags: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetMultipleComponentsInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppsavarfilenames: *const *const super::Com::SAFEARRAY, ppsavarclsids: *mut *mut super::Com::SAFEARRAY, ppsavarclassnames: *mut *mut super::Com::SAFEARRAY, ppsavarfileflags: *mut *mut super::Com::SAFEARRAY, ppsavarcomponentflags: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetMultipleComponentsInfo: usize, pub RefreshComponents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub BackupREGDB: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrbackupfilepath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BackupREGDB: usize, - #[cfg(feature = "Win32_Foundation")] - pub RestoreREGDB: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrbackupfilepath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RestoreREGDB: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub QueryApplicationFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationfile: ::core::mem::ManuallyDrop, pbstrapplicationname: *mut super::super::Foundation::BSTR, pbstrapplicationdescription: *mut super::super::Foundation::BSTR, pbhasusers: *mut i16, pbisproxy: *mut i16, ppsavarfilenames: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub BackupREGDB: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrbackupfilepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub RestoreREGDB: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrbackupfilepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub QueryApplicationFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationfile: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrapplicationname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrapplicationdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbhasusers: *mut i16, pbisproxy: *mut i16, ppsavarfilenames: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] QueryApplicationFile: usize, - #[cfg(feature = "Win32_Foundation")] - pub StartApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplidorname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - StartApplication: usize, + pub StartApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ServiceCheck: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lservice: i32, plstatus: *mut i32) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub InstallMultipleEventClasses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplidorname: ::core::mem::ManuallyDrop, ppsavarfilenames: *const *const super::Com::SAFEARRAY, ppsavarclsids: *const *const super::Com::SAFEARRAY) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub InstallMultipleEventClasses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppsavarfilenames: *const *const super::Com::SAFEARRAY, ppsavarclsids: *const *const super::Com::SAFEARRAY) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] InstallMultipleEventClasses: usize, - #[cfg(feature = "Win32_Foundation")] - pub InstallEventClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplidorname: ::core::mem::ManuallyDrop, bstrdll: ::core::mem::ManuallyDrop, bstrtlb: ::core::mem::ManuallyDrop, bstrpsdll: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InstallEventClass: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetEventClassesForIID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstriid: ::core::mem::ManuallyDrop, ppsavarclsids: *mut *mut super::Com::SAFEARRAY, ppsavarprogids: *mut *mut super::Com::SAFEARRAY, ppsavardescriptions: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub InstallEventClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdll: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrtlb: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpsdll: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub GetEventClassesForIID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstriid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppsavarclsids: *mut *mut super::Com::SAFEARRAY, ppsavarprogids: *mut *mut super::Com::SAFEARRAY, ppsavardescriptions: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetEventClassesForIID: usize, } #[doc = "*Required features: `\"Win32_System_ComponentServices\"`, `\"Win32_System_Com\"`*"] @@ -919,23 +770,17 @@ pub struct ICOMAdminCatalog_Vtbl { pub struct ICOMAdminCatalog2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICOMAdminCatalog2 { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetCollection<'a, P0>(&self, bstrcollname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetCollection(&self, bstrcollname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetCollection)(::windows::core::Interface::as_raw(self), bstrcollname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetCollection)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcollname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Connect<'a, P0>(&self, bstrcatalogservername: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Connect(&self, bstrcatalogservername: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Connect)(::windows::core::Interface::as_raw(self), bstrcatalogservername.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Connect)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcatalogservername), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn MajorVersion(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -945,63 +790,26 @@ impl ICOMAdminCatalog2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.MinorVersion)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetCollectionByQuery<'a, P0>(&self, bstrcollname: P0, ppsavarquery: &*const super::Com::SAFEARRAY) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetCollectionByQuery(&self, bstrcollname: &::windows::core::BSTR, ppsavarquery: &*const super::Com::SAFEARRAY) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetCollectionByQuery)(::windows::core::Interface::as_raw(self), bstrcollname.into().abi(), ::core::mem::transmute(ppsavarquery), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetCollectionByQuery)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcollname), ::core::mem::transmute(ppsavarquery), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ImportComponent<'a, P0, P1>(&self, bstrapplidorname: P0, bstrclsidorprogid: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.ImportComponent)(::windows::core::Interface::as_raw(self), bstrapplidorname.into().abi(), bstrclsidorprogid.into().abi()).ok() + pub unsafe fn ImportComponent(&self, bstrapplidorname: &::windows::core::BSTR, bstrclsidorprogid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.ImportComponent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplidorname), ::core::mem::transmute_copy(bstrclsidorprogid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InstallComponent<'a, P0, P1, P2, P3>(&self, bstrapplidorname: P0, bstrdll: P1, bstrtlb: P2, bstrpsdll: P3) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InstallComponent)(::windows::core::Interface::as_raw(self), bstrapplidorname.into().abi(), bstrdll.into().abi(), bstrtlb.into().abi(), bstrpsdll.into().abi()).ok() + pub unsafe fn InstallComponent(&self, bstrapplidorname: &::windows::core::BSTR, bstrdll: &::windows::core::BSTR, bstrtlb: &::windows::core::BSTR, bstrpsdll: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InstallComponent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplidorname), ::core::mem::transmute_copy(bstrdll), ::core::mem::transmute_copy(bstrtlb), ::core::mem::transmute_copy(bstrpsdll)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ShutdownApplication<'a, P0>(&self, bstrapplidorname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.ShutdownApplication)(::windows::core::Interface::as_raw(self), bstrapplidorname.into().abi()).ok() + pub unsafe fn ShutdownApplication(&self, bstrapplidorname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.ShutdownApplication)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplidorname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExportApplication<'a, P0, P1>(&self, bstrapplidorname: P0, bstrapplicationfile: P1, loptions: COMAdminApplicationExportOptions) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.ExportApplication)(::windows::core::Interface::as_raw(self), bstrapplidorname.into().abi(), bstrapplicationfile.into().abi(), loptions).ok() + pub unsafe fn ExportApplication(&self, bstrapplidorname: &::windows::core::BSTR, bstrapplicationfile: &::windows::core::BSTR, loptions: COMAdminApplicationExportOptions) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.ExportApplication)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplidorname), ::core::mem::transmute_copy(bstrapplicationfile), loptions).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InstallApplication<'a, P0, P1, P2, P3, P4>(&self, bstrapplicationfile: P0, bstrdestinationdirectory: P1, loptions: COMAdminApplicationInstallOptions, bstruserid: P2, bstrpassword: P3, bstrrsn: P4) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InstallApplication)(::windows::core::Interface::as_raw(self), bstrapplicationfile.into().abi(), bstrdestinationdirectory.into().abi(), loptions, bstruserid.into().abi(), bstrpassword.into().abi(), bstrrsn.into().abi()).ok() + pub unsafe fn InstallApplication(&self, bstrapplicationfile: &::windows::core::BSTR, bstrdestinationdirectory: &::windows::core::BSTR, loptions: COMAdminApplicationInstallOptions, bstruserid: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR, bstrrsn: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InstallApplication)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationfile), ::core::mem::transmute_copy(bstrdestinationdirectory), loptions, ::core::mem::transmute_copy(bstruserid), ::core::mem::transmute_copy(bstrpassword), ::core::mem::transmute_copy(bstrrsn)).ok() } pub unsafe fn StopRouter(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.StopRouter)(::windows::core::Interface::as_raw(self)).ok() @@ -1018,102 +826,59 @@ impl ICOMAdminCatalog2 { pub unsafe fn Reserved2(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Reserved2)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn InstallMultipleComponents<'a, P0>(&self, bstrapplidorname: P0, ppsavarfilenames: &*const super::Com::SAFEARRAY, ppsavarclsids: &*const super::Com::SAFEARRAY) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InstallMultipleComponents)(::windows::core::Interface::as_raw(self), bstrapplidorname.into().abi(), ::core::mem::transmute(ppsavarfilenames), ::core::mem::transmute(ppsavarclsids)).ok() + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn InstallMultipleComponents(&self, bstrapplidorname: &::windows::core::BSTR, ppsavarfilenames: &*const super::Com::SAFEARRAY, ppsavarclsids: &*const super::Com::SAFEARRAY) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InstallMultipleComponents)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplidorname), ::core::mem::transmute(ppsavarfilenames), ::core::mem::transmute(ppsavarclsids)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetMultipleComponentsInfo<'a, P0>(&self, bstrapplidorname: P0, ppsavarfilenames: &*const super::Com::SAFEARRAY, ppsavarclsids: &mut *mut super::Com::SAFEARRAY, ppsavarclassnames: &mut *mut super::Com::SAFEARRAY, ppsavarfileflags: &mut *mut super::Com::SAFEARRAY, ppsavarcomponentflags: &mut *mut super::Com::SAFEARRAY) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.GetMultipleComponentsInfo)(::windows::core::Interface::as_raw(self), bstrapplidorname.into().abi(), ::core::mem::transmute(ppsavarfilenames), ::core::mem::transmute(ppsavarclsids), ::core::mem::transmute(ppsavarclassnames), ::core::mem::transmute(ppsavarfileflags), ::core::mem::transmute(ppsavarcomponentflags)).ok() + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetMultipleComponentsInfo(&self, bstrapplidorname: &::windows::core::BSTR, ppsavarfilenames: &*const super::Com::SAFEARRAY, ppsavarclsids: &mut *mut super::Com::SAFEARRAY, ppsavarclassnames: &mut *mut super::Com::SAFEARRAY, ppsavarfileflags: &mut *mut super::Com::SAFEARRAY, ppsavarcomponentflags: &mut *mut super::Com::SAFEARRAY) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.GetMultipleComponentsInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplidorname), ::core::mem::transmute(ppsavarfilenames), ::core::mem::transmute(ppsavarclsids), ::core::mem::transmute(ppsavarclassnames), ::core::mem::transmute(ppsavarfileflags), ::core::mem::transmute(ppsavarcomponentflags)).ok() } pub unsafe fn RefreshComponents(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.RefreshComponents)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BackupREGDB<'a, P0>(&self, bstrbackupfilepath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.BackupREGDB)(::windows::core::Interface::as_raw(self), bstrbackupfilepath.into().abi()).ok() + pub unsafe fn BackupREGDB(&self, bstrbackupfilepath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.BackupREGDB)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrbackupfilepath)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RestoreREGDB<'a, P0>(&self, bstrbackupfilepath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.RestoreREGDB)(::windows::core::Interface::as_raw(self), bstrbackupfilepath.into().abi()).ok() + pub unsafe fn RestoreREGDB(&self, bstrbackupfilepath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.RestoreREGDB)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrbackupfilepath)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn QueryApplicationFile<'a, P0>(&self, bstrapplicationfile: P0, pbstrapplicationname: &mut super::super::Foundation::BSTR, pbstrapplicationdescription: &mut super::super::Foundation::BSTR, pbhasusers: &mut i16, pbisproxy: &mut i16, ppsavarfilenames: &mut *mut super::Com::SAFEARRAY) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.QueryApplicationFile)(::windows::core::Interface::as_raw(self), bstrapplicationfile.into().abi(), ::core::mem::transmute(pbstrapplicationname), ::core::mem::transmute(pbstrapplicationdescription), ::core::mem::transmute(pbhasusers), ::core::mem::transmute(pbisproxy), ::core::mem::transmute(ppsavarfilenames)).ok() + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn QueryApplicationFile(&self, bstrapplicationfile: &::windows::core::BSTR, pbstrapplicationname: &mut ::windows::core::BSTR, pbstrapplicationdescription: &mut ::windows::core::BSTR, pbhasusers: &mut i16, pbisproxy: &mut i16, ppsavarfilenames: &mut *mut super::Com::SAFEARRAY) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.QueryApplicationFile)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationfile), ::core::mem::transmute(pbstrapplicationname), ::core::mem::transmute(pbstrapplicationdescription), ::core::mem::transmute(pbhasusers), ::core::mem::transmute(pbisproxy), ::core::mem::transmute(ppsavarfilenames)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StartApplication<'a, P0>(&self, bstrapplidorname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.StartApplication)(::windows::core::Interface::as_raw(self), bstrapplidorname.into().abi()).ok() + pub unsafe fn StartApplication(&self, bstrapplidorname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.StartApplication)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplidorname)).ok() } pub unsafe fn ServiceCheck(&self, lservice: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.ServiceCheck)(::windows::core::Interface::as_raw(self), lservice, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn InstallMultipleEventClasses<'a, P0>(&self, bstrapplidorname: P0, ppsavarfilenames: &*const super::Com::SAFEARRAY, ppsavarclsids: &*const super::Com::SAFEARRAY) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InstallMultipleEventClasses)(::windows::core::Interface::as_raw(self), bstrapplidorname.into().abi(), ::core::mem::transmute(ppsavarfilenames), ::core::mem::transmute(ppsavarclsids)).ok() + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn InstallMultipleEventClasses(&self, bstrapplidorname: &::windows::core::BSTR, ppsavarfilenames: &*const super::Com::SAFEARRAY, ppsavarclsids: &*const super::Com::SAFEARRAY) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InstallMultipleEventClasses)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplidorname), ::core::mem::transmute(ppsavarfilenames), ::core::mem::transmute(ppsavarclsids)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InstallEventClass<'a, P0, P1, P2, P3>(&self, bstrapplidorname: P0, bstrdll: P1, bstrtlb: P2, bstrpsdll: P3) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InstallEventClass)(::windows::core::Interface::as_raw(self), bstrapplidorname.into().abi(), bstrdll.into().abi(), bstrtlb.into().abi(), bstrpsdll.into().abi()).ok() + pub unsafe fn InstallEventClass(&self, bstrapplidorname: &::windows::core::BSTR, bstrdll: &::windows::core::BSTR, bstrtlb: &::windows::core::BSTR, bstrpsdll: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InstallEventClass)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplidorname), ::core::mem::transmute_copy(bstrdll), ::core::mem::transmute_copy(bstrtlb), ::core::mem::transmute_copy(bstrpsdll)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetEventClassesForIID<'a, P0>(&self, bstriid: P0, ppsavarclsids: &mut *mut super::Com::SAFEARRAY, ppsavarprogids: &mut *mut super::Com::SAFEARRAY, ppsavardescriptions: &mut *mut super::Com::SAFEARRAY) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.GetEventClassesForIID)(::windows::core::Interface::as_raw(self), bstriid.into().abi(), ::core::mem::transmute(ppsavarclsids), ::core::mem::transmute(ppsavarprogids), ::core::mem::transmute(ppsavardescriptions)).ok() + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetEventClassesForIID(&self, bstriid: &::windows::core::BSTR, ppsavarclsids: &mut *mut super::Com::SAFEARRAY, ppsavarprogids: &mut *mut super::Com::SAFEARRAY, ppsavardescriptions: &mut *mut super::Com::SAFEARRAY) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.GetEventClassesForIID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstriid), ::core::mem::transmute(ppsavarclsids), ::core::mem::transmute(ppsavarprogids), ::core::mem::transmute(ppsavardescriptions)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetCollectionByQuery2<'a, P0>(&self, bstrcollectionname: P0, pvarquerystrings: &super::Com::VARIANT) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetCollectionByQuery2(&self, bstrcollectionname: &::windows::core::BSTR, pvarquerystrings: &super::Com::VARIANT) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetCollectionByQuery2)(::windows::core::Interface::as_raw(self), bstrcollectionname.into().abi(), ::core::mem::transmute(pvarquerystrings), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetCollectionByQuery2)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcollectionname), ::core::mem::transmute(pvarquerystrings), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetApplicationInstanceIDFromProcessID(&self, lprocessid: i32) -> ::windows::core::Result { + pub unsafe fn GetApplicationInstanceIDFromProcessID(&self, lprocessid: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetApplicationInstanceIDFromProcessID)(::windows::core::Interface::as_raw(self), lprocessid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetApplicationInstanceIDFromProcessID)(::windows::core::Interface::as_raw(self), lprocessid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -1141,203 +906,102 @@ impl ICOMAdminCatalog2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).AreApplicationInstancesPaused)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pvarapplicationinstanceid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DumpApplicationInstance<'a, P0, P1>(&self, bstrapplicationinstanceid: P0, bstrdirectory: P1, lmaximages: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn DumpApplicationInstance(&self, bstrapplicationinstanceid: &::windows::core::BSTR, bstrdirectory: &::windows::core::BSTR, lmaximages: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DumpApplicationInstance)(::windows::core::Interface::as_raw(self), bstrapplicationinstanceid.into().abi(), bstrdirectory.into().abi(), lmaximages, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DumpApplicationInstance)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationinstanceid), ::core::mem::transmute_copy(bstrdirectory), lmaximages, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn IsApplicationInstanceDumpSupported(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).IsApplicationInstanceDumpSupported)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateServiceForApplication<'a, P0, P1, P2, P3, P4, P5, P6>(&self, bstrapplicationidorname: P0, bstrservicename: P1, bstrstarttype: P2, bstrerrorcontrol: P3, bstrdependencies: P4, bstrrunas: P5, bstrpassword: P6, bdesktopok: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P5: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P6: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).CreateServiceForApplication)(::windows::core::Interface::as_raw(self), bstrapplicationidorname.into().abi(), bstrservicename.into().abi(), bstrstarttype.into().abi(), bstrerrorcontrol.into().abi(), bstrdependencies.into().abi(), bstrrunas.into().abi(), bstrpassword.into().abi(), bdesktopok).ok() + pub unsafe fn CreateServiceForApplication(&self, bstrapplicationidorname: &::windows::core::BSTR, bstrservicename: &::windows::core::BSTR, bstrstarttype: &::windows::core::BSTR, bstrerrorcontrol: &::windows::core::BSTR, bstrdependencies: &::windows::core::BSTR, bstrrunas: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR, bdesktopok: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).CreateServiceForApplication)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationidorname), ::core::mem::transmute_copy(bstrservicename), ::core::mem::transmute_copy(bstrstarttype), ::core::mem::transmute_copy(bstrerrorcontrol), ::core::mem::transmute_copy(bstrdependencies), ::core::mem::transmute_copy(bstrrunas), ::core::mem::transmute_copy(bstrpassword), bdesktopok).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeleteServiceForApplication<'a, P0>(&self, bstrapplicationidorname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DeleteServiceForApplication)(::windows::core::Interface::as_raw(self), bstrapplicationidorname.into().abi()).ok() + pub unsafe fn DeleteServiceForApplication(&self, bstrapplicationidorname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DeleteServiceForApplication)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationidorname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPartitionID<'a, P0>(&self, bstrapplicationidorname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetPartitionID(&self, bstrapplicationidorname: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetPartitionID)(::windows::core::Interface::as_raw(self), bstrapplicationidorname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetPartitionID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationidorname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPartitionName<'a, P0>(&self, bstrapplicationidorname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetPartitionName(&self, bstrapplicationidorname: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetPartitionName)(::windows::core::Interface::as_raw(self), bstrapplicationidorname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetPartitionName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationidorname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCurrentPartition<'a, P0>(&self, bstrpartitionidorname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetCurrentPartition)(::windows::core::Interface::as_raw(self), bstrpartitionidorname.into().abi()).ok() + pub unsafe fn SetCurrentPartition(&self, bstrpartitionidorname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetCurrentPartition)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpartitionidorname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentPartitionID(&self) -> ::windows::core::Result { + pub unsafe fn CurrentPartitionID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CurrentPartitionID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CurrentPartitionID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentPartitionName(&self) -> ::windows::core::Result { + pub unsafe fn CurrentPartitionName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CurrentPartitionName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CurrentPartitionName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GlobalPartitionID(&self) -> ::windows::core::Result { + pub unsafe fn GlobalPartitionID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GlobalPartitionID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GlobalPartitionID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn FlushPartitionCache(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).FlushPartitionCache)(::windows::core::Interface::as_raw(self)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CopyApplications<'a, P0, P1>(&self, bstrsourcepartitionidorname: P0, pvarapplicationid: &super::Com::VARIANT, bstrdestinationpartitionidorname: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).CopyApplications)(::windows::core::Interface::as_raw(self), bstrsourcepartitionidorname.into().abi(), ::core::mem::transmute(pvarapplicationid), bstrdestinationpartitionidorname.into().abi()).ok() + pub unsafe fn CopyApplications(&self, bstrsourcepartitionidorname: &::windows::core::BSTR, pvarapplicationid: &super::Com::VARIANT, bstrdestinationpartitionidorname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).CopyApplications)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsourcepartitionidorname), ::core::mem::transmute(pvarapplicationid), ::core::mem::transmute_copy(bstrdestinationpartitionidorname)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CopyComponents<'a, P0, P1>(&self, bstrsourceapplicationidorname: P0, pvarclsidorprogid: &super::Com::VARIANT, bstrdestinationapplicationidorname: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).CopyComponents)(::windows::core::Interface::as_raw(self), bstrsourceapplicationidorname.into().abi(), ::core::mem::transmute(pvarclsidorprogid), bstrdestinationapplicationidorname.into().abi()).ok() + pub unsafe fn CopyComponents(&self, bstrsourceapplicationidorname: &::windows::core::BSTR, pvarclsidorprogid: &super::Com::VARIANT, bstrdestinationapplicationidorname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).CopyComponents)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsourceapplicationidorname), ::core::mem::transmute(pvarclsidorprogid), ::core::mem::transmute_copy(bstrdestinationapplicationidorname)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn MoveComponents<'a, P0, P1>(&self, bstrsourceapplicationidorname: P0, pvarclsidorprogid: &super::Com::VARIANT, bstrdestinationapplicationidorname: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).MoveComponents)(::windows::core::Interface::as_raw(self), bstrsourceapplicationidorname.into().abi(), ::core::mem::transmute(pvarclsidorprogid), bstrdestinationapplicationidorname.into().abi()).ok() + pub unsafe fn MoveComponents(&self, bstrsourceapplicationidorname: &::windows::core::BSTR, pvarclsidorprogid: &super::Com::VARIANT, bstrdestinationapplicationidorname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).MoveComponents)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsourceapplicationidorname), ::core::mem::transmute(pvarclsidorprogid), ::core::mem::transmute_copy(bstrdestinationapplicationidorname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AliasComponent<'a, P0, P1, P2, P3, P4>(&self, bstrsrcapplicationidorname: P0, bstrclsidorprogid: P1, bstrdestapplicationidorname: P2, bstrnewprogid: P3, bstrnewclsid: P4) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AliasComponent)(::windows::core::Interface::as_raw(self), bstrsrcapplicationidorname.into().abi(), bstrclsidorprogid.into().abi(), bstrdestapplicationidorname.into().abi(), bstrnewprogid.into().abi(), bstrnewclsid.into().abi()).ok() + pub unsafe fn AliasComponent(&self, bstrsrcapplicationidorname: &::windows::core::BSTR, bstrclsidorprogid: &::windows::core::BSTR, bstrdestapplicationidorname: &::windows::core::BSTR, bstrnewprogid: &::windows::core::BSTR, bstrnewclsid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AliasComponent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsrcapplicationidorname), ::core::mem::transmute_copy(bstrclsidorprogid), ::core::mem::transmute_copy(bstrdestapplicationidorname), ::core::mem::transmute_copy(bstrnewprogid), ::core::mem::transmute_copy(bstrnewclsid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsSafeToDelete<'a, P0>(&self, bstrdllname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsSafeToDelete(&self, bstrdllname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).IsSafeToDelete)(::windows::core::Interface::as_raw(self), bstrdllname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).IsSafeToDelete)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdllname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ImportUnconfiguredComponents<'a, P0>(&self, bstrapplicationidorname: P0, pvarclsidorprogid: &super::Com::VARIANT, pvarcomponenttype: &super::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ImportUnconfiguredComponents)(::windows::core::Interface::as_raw(self), bstrapplicationidorname.into().abi(), ::core::mem::transmute(pvarclsidorprogid), ::core::mem::transmute(pvarcomponenttype)).ok() + pub unsafe fn ImportUnconfiguredComponents(&self, bstrapplicationidorname: &::windows::core::BSTR, pvarclsidorprogid: &super::Com::VARIANT, pvarcomponenttype: &super::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ImportUnconfiguredComponents)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationidorname), ::core::mem::transmute(pvarclsidorprogid), ::core::mem::transmute(pvarcomponenttype)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn PromoteUnconfiguredComponents<'a, P0>(&self, bstrapplicationidorname: P0, pvarclsidorprogid: &super::Com::VARIANT, pvarcomponenttype: &super::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).PromoteUnconfiguredComponents)(::windows::core::Interface::as_raw(self), bstrapplicationidorname.into().abi(), ::core::mem::transmute(pvarclsidorprogid), ::core::mem::transmute(pvarcomponenttype)).ok() + pub unsafe fn PromoteUnconfiguredComponents(&self, bstrapplicationidorname: &::windows::core::BSTR, pvarclsidorprogid: &super::Com::VARIANT, pvarcomponenttype: &super::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).PromoteUnconfiguredComponents)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationidorname), ::core::mem::transmute(pvarclsidorprogid), ::core::mem::transmute(pvarcomponenttype)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ImportComponents<'a, P0>(&self, bstrapplicationidorname: P0, pvarclsidorprogid: &super::Com::VARIANT, pvarcomponenttype: &super::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ImportComponents)(::windows::core::Interface::as_raw(self), bstrapplicationidorname.into().abi(), ::core::mem::transmute(pvarclsidorprogid), ::core::mem::transmute(pvarcomponenttype)).ok() + pub unsafe fn ImportComponents(&self, bstrapplicationidorname: &::windows::core::BSTR, pvarclsidorprogid: &super::Com::VARIANT, pvarcomponenttype: &super::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ImportComponents)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationidorname), ::core::mem::transmute(pvarclsidorprogid), ::core::mem::transmute(pvarcomponenttype)).ok() } pub unsafe fn Is64BitCatalogServer(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Is64BitCatalogServer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExportPartition<'a, P0, P1>(&self, bstrpartitionidorname: P0, bstrpartitionfilename: P1, loptions: COMAdminApplicationExportOptions) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ExportPartition)(::windows::core::Interface::as_raw(self), bstrpartitionidorname.into().abi(), bstrpartitionfilename.into().abi(), loptions).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InstallPartition<'a, P0, P1, P2, P3, P4>(&self, bstrfilename: P0, bstrdestdirectory: P1, loptions: COMAdminApplicationInstallOptions, bstruserid: P2, bstrpassword: P3, bstrrsn: P4) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InstallPartition)(::windows::core::Interface::as_raw(self), bstrfilename.into().abi(), bstrdestdirectory.into().abi(), loptions, bstruserid.into().abi(), bstrpassword.into().abi(), bstrrsn.into().abi()).ok() + pub unsafe fn ExportPartition(&self, bstrpartitionidorname: &::windows::core::BSTR, bstrpartitionfilename: &::windows::core::BSTR, loptions: COMAdminApplicationExportOptions) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ExportPartition)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpartitionidorname), ::core::mem::transmute_copy(bstrpartitionfilename), loptions).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn QueryApplicationFile2<'a, P0>(&self, bstrapplicationfile: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).QueryApplicationFile2)(::windows::core::Interface::as_raw(self), bstrapplicationfile.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + pub unsafe fn InstallPartition(&self, bstrfilename: &::windows::core::BSTR, bstrdestdirectory: &::windows::core::BSTR, loptions: COMAdminApplicationInstallOptions, bstruserid: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR, bstrrsn: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InstallPartition)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrfilename), ::core::mem::transmute_copy(bstrdestdirectory), loptions, ::core::mem::transmute_copy(bstruserid), ::core::mem::transmute_copy(bstrpassword), ::core::mem::transmute_copy(bstrrsn)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetComponentVersionCount<'a, P0>(&self, bstrclsidorprogid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn QueryApplicationFile2(&self, bstrapplicationfile: &::windows::core::BSTR) -> ::windows::core::Result { + let mut result__ = ::core::mem::MaybeUninit::zeroed(); + (::windows::core::Interface::vtable(self).QueryApplicationFile2)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrapplicationfile), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + } + pub unsafe fn GetComponentVersionCount(&self, bstrclsidorprogid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetComponentVersionCount)(::windows::core::Interface::as_raw(self), bstrclsidorprogid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetComponentVersionCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrclsidorprogid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1425,13 +1089,10 @@ unsafe impl ::windows::core::Interface for ICOMAdminCatalog2 { pub struct ICOMAdminCatalog2_Vtbl { pub base__: ICOMAdminCatalog_Vtbl, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetCollectionByQuery2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcollectionname: ::core::mem::ManuallyDrop, pvarquerystrings: *const super::Com::VARIANT, ppcatalogcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub GetCollectionByQuery2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcollectionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarquerystrings: *const super::Com::VARIANT, ppcatalogcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetCollectionByQuery2: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetApplicationInstanceIDFromProcessID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lprocessid: i32, pbstrapplicationinstanceid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetApplicationInstanceIDFromProcessID: usize, + pub GetApplicationInstanceIDFromProcessID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lprocessid: i32, pbstrapplicationinstanceid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub ShutdownApplicationInstances: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvarapplicationinstanceid: *const super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -1452,93 +1113,51 @@ pub struct ICOMAdminCatalog2_Vtbl { pub AreApplicationInstancesPaused: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvarapplicationinstanceid: *const super::Com::VARIANT, pvarboolpaused: *mut i16) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AreApplicationInstancesPaused: usize, - #[cfg(feature = "Win32_Foundation")] - pub DumpApplicationInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationinstanceid: ::core::mem::ManuallyDrop, bstrdirectory: ::core::mem::ManuallyDrop, lmaximages: i32, pbstrdumpfile: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DumpApplicationInstance: usize, + pub DumpApplicationInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationinstanceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdirectory: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lmaximages: i32, pbstrdumpfile: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub IsApplicationInstanceDumpSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvarbooldumpsupported: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CreateServiceForApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationidorname: ::core::mem::ManuallyDrop, bstrservicename: ::core::mem::ManuallyDrop, bstrstarttype: ::core::mem::ManuallyDrop, bstrerrorcontrol: ::core::mem::ManuallyDrop, bstrdependencies: ::core::mem::ManuallyDrop, bstrrunas: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop, bdesktopok: i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CreateServiceForApplication: usize, - #[cfg(feature = "Win32_Foundation")] - pub DeleteServiceForApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationidorname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeleteServiceForApplication: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetPartitionID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationidorname: ::core::mem::ManuallyDrop, pbstrpartitionid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPartitionID: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetPartitionName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationidorname: ::core::mem::ManuallyDrop, pbstrpartitionname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPartitionName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetCurrentPartition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpartitionidorname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetCurrentPartition: usize, - #[cfg(feature = "Win32_Foundation")] - pub CurrentPartitionID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpartitionid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CurrentPartitionID: usize, - #[cfg(feature = "Win32_Foundation")] - pub CurrentPartitionName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpartitionname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CurrentPartitionName: usize, - #[cfg(feature = "Win32_Foundation")] - pub GlobalPartitionID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrglobalpartitionid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GlobalPartitionID: usize, + pub CreateServiceForApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrservicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrstarttype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrerrorcontrol: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdependencies: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrrunas: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bdesktopok: i16) -> ::windows::core::HRESULT, + pub DeleteServiceForApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetPartitionID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrpartitionid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetPartitionName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrpartitionname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetCurrentPartition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpartitionidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CurrentPartitionID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpartitionid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CurrentPartitionName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpartitionname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GlobalPartitionID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrglobalpartitionid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub FlushPartitionCache: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub CopyApplications: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsourcepartitionidorname: ::core::mem::ManuallyDrop, pvarapplicationid: *const super::Com::VARIANT, bstrdestinationpartitionidorname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub CopyApplications: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsourcepartitionidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarapplicationid: *const super::Com::VARIANT, bstrdestinationpartitionidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] CopyApplications: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub CopyComponents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsourceapplicationidorname: ::core::mem::ManuallyDrop, pvarclsidorprogid: *const super::Com::VARIANT, bstrdestinationapplicationidorname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub CopyComponents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsourceapplicationidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarclsidorprogid: *const super::Com::VARIANT, bstrdestinationapplicationidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] CopyComponents: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub MoveComponents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsourceapplicationidorname: ::core::mem::ManuallyDrop, pvarclsidorprogid: *const super::Com::VARIANT, bstrdestinationapplicationidorname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub MoveComponents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsourceapplicationidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarclsidorprogid: *const super::Com::VARIANT, bstrdestinationapplicationidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] MoveComponents: usize, - #[cfg(feature = "Win32_Foundation")] - pub AliasComponent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsrcapplicationidorname: ::core::mem::ManuallyDrop, bstrclsidorprogid: ::core::mem::ManuallyDrop, bstrdestapplicationidorname: ::core::mem::ManuallyDrop, bstrnewprogid: ::core::mem::ManuallyDrop, bstrnewclsid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AliasComponent: usize, - #[cfg(feature = "Win32_Foundation")] - pub IsSafeToDelete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdllname: ::core::mem::ManuallyDrop, pcomadmininuse: *mut COMAdminInUse) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - IsSafeToDelete: usize, + pub AliasComponent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsrcapplicationidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrclsidorprogid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdestapplicationidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrnewprogid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrnewclsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub IsSafeToDelete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdllname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcomadmininuse: *mut COMAdminInUse) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub ImportUnconfiguredComponents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationidorname: ::core::mem::ManuallyDrop, pvarclsidorprogid: *const super::Com::VARIANT, pvarcomponenttype: *const super::Com::VARIANT) -> ::windows::core::HRESULT, + pub ImportUnconfiguredComponents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarclsidorprogid: *const super::Com::VARIANT, pvarcomponenttype: *const super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] ImportUnconfiguredComponents: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub PromoteUnconfiguredComponents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationidorname: ::core::mem::ManuallyDrop, pvarclsidorprogid: *const super::Com::VARIANT, pvarcomponenttype: *const super::Com::VARIANT) -> ::windows::core::HRESULT, + pub PromoteUnconfiguredComponents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarclsidorprogid: *const super::Com::VARIANT, pvarcomponenttype: *const super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] PromoteUnconfiguredComponents: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub ImportComponents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationidorname: ::core::mem::ManuallyDrop, pvarclsidorprogid: *const super::Com::VARIANT, pvarcomponenttype: *const super::Com::VARIANT) -> ::windows::core::HRESULT, + pub ImportComponents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarclsidorprogid: *const super::Com::VARIANT, pvarcomponenttype: *const super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] ImportComponents: usize, pub Is64BitCatalogServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbis64bit: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ExportPartition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpartitionidorname: ::core::mem::ManuallyDrop, bstrpartitionfilename: ::core::mem::ManuallyDrop, loptions: COMAdminApplicationExportOptions) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ExportPartition: usize, - #[cfg(feature = "Win32_Foundation")] - pub InstallPartition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop, bstrdestdirectory: ::core::mem::ManuallyDrop, loptions: COMAdminApplicationInstallOptions, bstruserid: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop, bstrrsn: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InstallPartition: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub QueryApplicationFile2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationfile: ::core::mem::ManuallyDrop, ppfilesforimport: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub ExportPartition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpartitionidorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpartitionfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, loptions: COMAdminApplicationExportOptions) -> ::windows::core::HRESULT, + pub InstallPartition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdestdirectory: ::core::mem::ManuallyDrop<::windows::core::BSTR>, loptions: COMAdminApplicationInstallOptions, bstruserid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrrsn: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub QueryApplicationFile2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrapplicationfile: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppfilesforimport: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] QueryApplicationFile2: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetComponentVersionCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrclsidorprogid: ::core::mem::ManuallyDrop, plversioncount: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetComponentVersionCount: usize, + pub GetComponentVersionCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrclsidorprogid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, plversioncount: *mut i32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_ComponentServices\"`*"] #[repr(transparent)] @@ -1639,13 +1258,12 @@ impl ICatalogCollection { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetCollection<'a, P0, P1>(&self, bstrcollname: P0, varobjectkey: P1) -> ::windows::core::Result + pub unsafe fn GetCollection<'a, P0>(&self, bstrcollname: &::windows::core::BSTR, varobjectkey: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetCollection)(::windows::core::Interface::as_raw(self), bstrcollname.into().abi(), varobjectkey.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetCollection)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcollname), varobjectkey.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -1680,13 +1298,8 @@ impl ICatalogCollection { pub unsafe fn PopulateByKey(&self, psakeys: &super::Com::SAFEARRAY) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).PopulateByKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(psakeys)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PopulateByQuery<'a, P0>(&self, bstrquerystring: P0, lquerytype: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).PopulateByQuery)(::windows::core::Interface::as_raw(self), bstrquerystring.into().abi(), lquerytype).ok() + pub unsafe fn PopulateByQuery(&self, bstrquerystring: &::windows::core::BSTR, lquerytype: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).PopulateByQuery)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrquerystring), lquerytype).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1769,7 +1382,7 @@ pub struct ICatalogCollection_Vtbl { pub Populate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub SaveChanges: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcchanges: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetCollection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcollname: ::core::mem::ManuallyDrop, varobjectkey: ::core::mem::ManuallyDrop, ppcatalogcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub GetCollection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcollname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varobjectkey: ::core::mem::ManuallyDrop, ppcatalogcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetCollection: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -1788,10 +1401,7 @@ pub struct ICatalogCollection_Vtbl { pub PopulateByKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psakeys: *const super::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] PopulateByKey: usize, - #[cfg(feature = "Win32_Foundation")] - pub PopulateByQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrquerystring: ::core::mem::ManuallyDrop, lquerytype: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PopulateByQuery: usize, + pub PopulateByQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrquerystring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lquerytype: i32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_ComponentServices\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1801,21 +1411,17 @@ pub struct ICatalogObject(::windows::core::IUnknown); impl ICatalogObject { #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn get_Value<'a, P0>(&self, bstrpropname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn get_Value(&self, bstrpropname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_Value)(::windows::core::Interface::as_raw(self), bstrpropname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_Value)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpropname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn put_Value<'a, P0, P1>(&self, bstrpropname: P0, val: P1) -> ::windows::core::Result<()> + pub unsafe fn put_Value<'a, P0>(&self, bstrpropname: &::windows::core::BSTR, val: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).put_Value)(::windows::core::Interface::as_raw(self), bstrpropname.into().abi(), val.into().abi()).ok() + (::windows::core::Interface::vtable(self).put_Value)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpropname), val.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -1829,27 +1435,17 @@ impl ICatalogObject { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsPropertyReadOnly<'a, P0>(&self, bstrpropname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsPropertyReadOnly(&self, bstrpropname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).IsPropertyReadOnly)(::windows::core::Interface::as_raw(self), bstrpropname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).IsPropertyReadOnly)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpropname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn Valid(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Valid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsPropertyWriteOnly<'a, P0>(&self, bstrpropname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsPropertyWriteOnly(&self, bstrpropname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).IsPropertyWriteOnly)(::windows::core::Interface::as_raw(self), bstrpropname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).IsPropertyWriteOnly)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpropname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1919,11 +1515,11 @@ unsafe impl ::windows::core::Interface for ICatalogObject { pub struct ICatalogObject_Vtbl { pub base__: super::Com::IDispatch_Vtbl, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub get_Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropname: ::core::mem::ManuallyDrop, pvarretval: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, + pub get_Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarretval: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_Value: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub put_Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropname: ::core::mem::ManuallyDrop, val: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub put_Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, val: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] put_Value: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -1934,15 +1530,9 @@ pub struct ICatalogObject_Vtbl { pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvarretval: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub IsPropertyReadOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropname: ::core::mem::ManuallyDrop, pbretval: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - IsPropertyReadOnly: usize, + pub IsPropertyReadOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbretval: *mut i16) -> ::windows::core::HRESULT, pub Valid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbretval: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub IsPropertyWriteOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropname: ::core::mem::ManuallyDrop, pbretval: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - IsPropertyWriteOnly: usize, + pub IsPropertyWriteOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbretval: *mut i16) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_ComponentServices\"`*"] #[repr(transparent)] @@ -4187,11 +3777,8 @@ impl IContextProperties { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetProperty<'a, P0>(&self, name: P0, pproperty: &mut super::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetProperty)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(pproperty)).ok() + pub unsafe fn GetProperty(&self, name: &::windows::core::BSTR, pproperty: &mut super::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(pproperty)).ok() } pub unsafe fn EnumNames(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4199,20 +3786,14 @@ impl IContextProperties { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn SetProperty<'a, P0, P1>(&self, name: P0, property: P1) -> ::windows::core::Result<()> + pub unsafe fn SetProperty<'a, P0>(&self, name: &::windows::core::BSTR, property: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).SetProperty)(::windows::core::Interface::as_raw(self), name.into().abi(), property.into().abi()).ok() + (::windows::core::Interface::vtable(self).SetProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), property.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoveProperty<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).RemoveProperty)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn RemoveProperty(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).RemoveProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -4256,18 +3837,15 @@ pub struct IContextProperties_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, pproperty: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pproperty: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetProperty: usize, pub EnumNames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub SetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, property: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub SetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, property: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SetProperty: usize, - #[cfg(feature = "Win32_Foundation")] - pub RemoveProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RemoveProperty: usize, + pub RemoveProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_ComponentServices\"`*"] #[repr(transparent)] @@ -4452,15 +4030,12 @@ pub struct ICreateWithLocalTransaction_Vtbl { #[repr(transparent)] pub struct ICreateWithTipTransactionEx(::windows::core::IUnknown); impl ICreateWithTipTransactionEx { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateInstance<'a, P0, T>(&self, bstrtipurl: P0, rclsid: &::windows::core::GUID) -> ::windows::core::Result + pub unsafe fn CreateInstance(&self, bstrtipurl: &::windows::core::BSTR, rclsid: &::windows::core::GUID) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, T: ::windows::core::Interface, { let mut result__ = ::core::option::Option::None; - (::windows::core::Interface::vtable(self).CreateInstance)(::windows::core::Interface::as_raw(self), bstrtipurl.into().abi(), ::core::mem::transmute(rclsid), &::IID, &mut result__ as *mut _ as *mut _).and_some(result__) + (::windows::core::Interface::vtable(self).CreateInstance)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtipurl), ::core::mem::transmute(rclsid), &::IID, &mut result__ as *mut _ as *mut _).and_some(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -4502,10 +4077,7 @@ unsafe impl ::windows::core::Interface for ICreateWithTipTransactionEx { #[doc(hidden)] pub struct ICreateWithTipTransactionEx_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtipurl: ::core::mem::ManuallyDrop, rclsid: *const ::windows::core::GUID, riid: *const ::windows::core::GUID, pobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CreateInstance: usize, + pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtipurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, rclsid: *const ::windows::core::GUID, riid: *const ::windows::core::GUID, pobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_ComponentServices\"`*"] #[repr(transparent)] @@ -4888,11 +4460,9 @@ pub struct ICrmFormatLogRecords_Vtbl { #[repr(transparent)] pub struct ICrmLogControl(::windows::core::IUnknown); impl ICrmLogControl { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TransactionUOW(&self) -> ::windows::core::Result { + pub unsafe fn TransactionUOW(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TransactionUOW)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TransactionUOW)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn RegisterCompensator<'a, P0, P1>(&self, lpcwstrprogidcompensator: P0, lpcwstrdescription: P1, lcrmregflags: i32) -> ::windows::core::Result<()> where @@ -4960,10 +4530,7 @@ unsafe impl ::windows::core::Interface for ICrmLogControl { #[doc(hidden)] pub struct ICrmLogControl_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub TransactionUOW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TransactionUOW: usize, + pub TransactionUOW: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub RegisterCompensator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lpcwstrprogidcompensator: ::windows::core::PCWSTR, lpcwstrdescription: ::windows::core::PCWSTR, lcrmregflags: i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub WriteLogRecordVariants: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plogrecord: *const super::Com::VARIANT) -> ::windows::core::HRESULT, @@ -5415,9 +4982,7 @@ pub struct IDispenserManager_Vtbl { #[repr(transparent)] pub struct IEnumNames(::windows::core::IUnknown); impl IEnumNames { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Next(&self, celt: u32, rgname: &mut super::super::Foundation::BSTR, pceltfetched: &mut u32) -> ::windows::core::Result<()> { + pub unsafe fn Next(&self, celt: u32, rgname: &mut ::windows::core::BSTR, pceltfetched: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Next)(::windows::core::Interface::as_raw(self), celt, ::core::mem::transmute(rgname), ::core::mem::transmute(pceltfetched)).ok() } pub unsafe fn Skip(&self, celt: u32) -> ::windows::core::Result<()> { @@ -5470,10 +5035,7 @@ unsafe impl ::windows::core::Interface for IEnumNames { #[doc(hidden)] pub struct IEnumNames_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32, rgname: *mut super::super::Foundation::BSTR, pceltfetched: *mut u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Next: usize, + pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32, rgname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pceltfetched: *mut u32) -> ::windows::core::HRESULT, pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows::core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -5484,27 +5046,13 @@ pub struct IEnumNames_Vtbl { pub struct IEventServerTrace(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IEventServerTrace { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StartTraceGuid<'a, P0, P1>(&self, bstrguidevent: P0, bstrguidfilter: P1, lpidfilter: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).StartTraceGuid)(::windows::core::Interface::as_raw(self), bstrguidevent.into().abi(), bstrguidfilter.into().abi(), lpidfilter).ok() + pub unsafe fn StartTraceGuid(&self, bstrguidevent: &::windows::core::BSTR, bstrguidfilter: &::windows::core::BSTR, lpidfilter: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).StartTraceGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrguidevent), ::core::mem::transmute_copy(bstrguidfilter), lpidfilter).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StopTraceGuid<'a, P0, P1>(&self, bstrguidevent: P0, bstrguidfilter: P1, lpidfilter: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).StopTraceGuid)(::windows::core::Interface::as_raw(self), bstrguidevent.into().abi(), bstrguidfilter.into().abi(), lpidfilter).ok() + pub unsafe fn StopTraceGuid(&self, bstrguidevent: &::windows::core::BSTR, bstrguidfilter: &::windows::core::BSTR, lpidfilter: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).StopTraceGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrguidevent), ::core::mem::transmute_copy(bstrguidfilter), lpidfilter).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EnumTraceGuid(&self, plcntguids: &mut i32, pbstrguidlist: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn EnumTraceGuid(&self, plcntguids: &mut i32, pbstrguidlist: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).EnumTraceGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(plcntguids), ::core::mem::transmute(pbstrguidlist)).ok() } } @@ -5574,18 +5122,9 @@ unsafe impl ::windows::core::Interface for IEventServerTrace { #[doc(hidden)] pub struct IEventServerTrace_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub StartTraceGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrguidevent: ::core::mem::ManuallyDrop, bstrguidfilter: ::core::mem::ManuallyDrop, lpidfilter: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - StartTraceGuid: usize, - #[cfg(feature = "Win32_Foundation")] - pub StopTraceGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrguidevent: ::core::mem::ManuallyDrop, bstrguidfilter: ::core::mem::ManuallyDrop, lpidfilter: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - StopTraceGuid: usize, - #[cfg(feature = "Win32_Foundation")] - pub EnumTraceGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcntguids: *mut i32, pbstrguidlist: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EnumTraceGuid: usize, + pub StartTraceGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrguidevent: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrguidfilter: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lpidfilter: i32) -> ::windows::core::HRESULT, + pub StopTraceGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrguidevent: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrguidfilter: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lpidfilter: i32) -> ::windows::core::HRESULT, + pub EnumTraceGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcntguids: *mut i32, pbstrguidlist: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_ComponentServices\"`*"] #[repr(transparent)] @@ -5686,11 +5225,8 @@ impl IGetContextProperties { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetProperty<'a, P0>(&self, name: P0, pproperty: &mut super::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetProperty)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(pproperty)).ok() + pub unsafe fn GetProperty(&self, name: &::windows::core::BSTR, pproperty: &mut super::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(pproperty)).ok() } pub unsafe fn EnumNames(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5738,7 +5274,7 @@ pub struct IGetContextProperties_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, pproperty: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pproperty: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetProperty: usize, pub EnumNames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -5924,32 +5460,16 @@ pub struct IHolder_Vtbl { #[repr(transparent)] pub struct ILBEvents(::windows::core::IUnknown); impl ILBEvents { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TargetUp<'a, P0, P1>(&self, bstrservername: P0, bstrclsideng: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).TargetUp)(::windows::core::Interface::as_raw(self), bstrservername.into().abi(), bstrclsideng.into().abi()).ok() + pub unsafe fn TargetUp(&self, bstrservername: &::windows::core::BSTR, bstrclsideng: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).TargetUp)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrservername), ::core::mem::transmute_copy(bstrclsideng)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TargetDown<'a, P0, P1>(&self, bstrservername: P0, bstrclsideng: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).TargetDown)(::windows::core::Interface::as_raw(self), bstrservername.into().abi(), bstrclsideng.into().abi()).ok() + pub unsafe fn TargetDown(&self, bstrservername: &::windows::core::BSTR, bstrclsideng: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).TargetDown)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrservername), ::core::mem::transmute_copy(bstrclsideng)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn EngineDefined<'a, P0, P1>(&self, bstrpropname: P0, varpropvalue: &super::Com::VARIANT, bstrclsideng: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).EngineDefined)(::windows::core::Interface::as_raw(self), bstrpropname.into().abi(), ::core::mem::transmute(varpropvalue), bstrclsideng.into().abi()).ok() + pub unsafe fn EngineDefined(&self, bstrpropname: &::windows::core::BSTR, varpropvalue: &super::Com::VARIANT, bstrclsideng: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).EngineDefined)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpropname), ::core::mem::transmute(varpropvalue), ::core::mem::transmute_copy(bstrclsideng)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -5991,16 +5511,10 @@ unsafe impl ::windows::core::Interface for ILBEvents { #[doc(hidden)] pub struct ILBEvents_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub TargetUp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop, bstrclsideng: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TargetUp: usize, - #[cfg(feature = "Win32_Foundation")] - pub TargetDown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop, bstrclsideng: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TargetDown: usize, + pub TargetUp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrclsideng: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub TargetDown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrservername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrclsideng: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub EngineDefined: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropname: ::core::mem::ManuallyDrop, varpropvalue: *const super::Com::VARIANT, bstrclsideng: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub EngineDefined: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varpropvalue: *const super::Com::VARIANT, bstrclsideng: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] EngineDefined: usize, } @@ -6460,33 +5974,19 @@ pub struct IManagedPooledObj_Vtbl { pub struct IMessageMover(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMessageMover { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SourcePath(&self) -> ::windows::core::Result { + pub unsafe fn SourcePath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SourcePath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SourcePath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSourcePath<'a, P0>(&self, newval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSourcePath)(::windows::core::Interface::as_raw(self), newval.into().abi()).ok() + pub unsafe fn SetSourcePath(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSourcePath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(newval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DestPath(&self) -> ::windows::core::Result { + pub unsafe fn DestPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DestPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DestPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDestPath<'a, P0>(&self, newval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDestPath)(::windows::core::Interface::as_raw(self), newval.into().abi()).ok() + pub unsafe fn SetDestPath(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDestPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(newval)).ok() } pub unsafe fn CommitBatchSize(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6566,22 +6066,10 @@ unsafe impl ::windows::core::Interface for IMessageMover { #[doc(hidden)] pub struct IMessageMover_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub SourcePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SourcePath: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSourcePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSourcePath: usize, - #[cfg(feature = "Win32_Foundation")] - pub DestPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DestPath: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDestPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDestPath: usize, + pub SourcePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSourcePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DestPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDestPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub CommitBatchSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows::core::HRESULT, pub SetCommitBatchSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: i32) -> ::windows::core::HRESULT, pub MoveMessages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plmessagesmoved: *mut i32) -> ::windows::core::HRESULT, @@ -6596,17 +6084,13 @@ impl IMtsEventInfo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Names)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisplayName(&self) -> ::windows::core::Result { + pub unsafe fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EventID(&self) -> ::windows::core::Result { + pub unsafe fn EventID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).EventID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).EventID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Count(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6614,12 +6098,9 @@ impl IMtsEventInfo { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn get_Value<'a, P0>(&self, skey: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn get_Value(&self, skey: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_Value)(::windows::core::Interface::as_raw(self), skey.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_Value)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(skey), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -6689,17 +6170,11 @@ unsafe impl ::windows::core::Interface for IMtsEventInfo { pub struct IMtsEventInfo_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub Names: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sdisplayname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DisplayName: usize, - #[cfg(feature = "Win32_Foundation")] - pub EventID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sguideventid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EventID: usize, + pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sdisplayname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub EventID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sguideventid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lcount: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub get_Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, skey: ::core::mem::ManuallyDrop, pval: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, + pub get_Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, skey: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pval: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_Value: usize, } @@ -6709,17 +6184,13 @@ pub struct IMtsEventInfo_Vtbl { pub struct IMtsEvents(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMtsEvents { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PackageName(&self) -> ::windows::core::Result { + pub unsafe fn PackageName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PackageName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PackageName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PackageGuid(&self) -> ::windows::core::Result { + pub unsafe fn PackageGuid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PackageGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PackageGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -6801,14 +6272,8 @@ unsafe impl ::windows::core::Interface for IMtsEvents { #[doc(hidden)] pub struct IMtsEvents_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub PackageName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PackageName: usize, - #[cfg(feature = "Win32_Foundation")] - pub PackageGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PackageGuid: usize, + pub PackageName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub PackageGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub PostEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vevent: *const super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -7043,9 +6508,7 @@ pub struct IObjectConstruct_Vtbl { pub struct IObjectConstructString(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IObjectConstructString { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ConstructString(&self, pval: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn ConstructString(&self, pval: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ConstructString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pval)).ok() } } @@ -7115,10 +6578,7 @@ unsafe impl ::windows::core::Interface for IObjectConstructString { #[doc(hidden)] pub struct IObjectConstructString_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub ConstructString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ConstructString: usize, + pub ConstructString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_ComponentServices\"`*"] #[repr(transparent)] @@ -7151,11 +6611,8 @@ impl IObjectContext { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsCallerInRole<'a, P0>(&self, bstrrole: P0, pfisinrole: &mut super::super::Foundation::BOOL) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).IsCallerInRole)(::windows::core::Interface::as_raw(self), bstrrole.into().abi(), ::core::mem::transmute(pfisinrole)).ok() + pub unsafe fn IsCallerInRole(&self, bstrrole: &::windows::core::BSTR, pfisinrole: &mut super::super::Foundation::BOOL) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).IsCallerInRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrole), ::core::mem::transmute(pfisinrole)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -7211,7 +6668,7 @@ pub struct IObjectContext_Vtbl { #[cfg(not(feature = "Win32_Foundation"))] IsSecurityEnabled: usize, #[cfg(feature = "Win32_Foundation")] - pub IsCallerInRole: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrole: ::core::mem::ManuallyDrop, pfisinrole: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, + pub IsCallerInRole: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrole: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfisinrole: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] IsCallerInRole: usize, } @@ -7429,9 +6886,7 @@ pub struct IObjectContextInfo2_Vtbl { #[repr(transparent)] pub struct IObjectContextTip(::windows::core::IUnknown); impl IObjectContextTip { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetTipUrl(&self, ptipurl: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetTipUrl(&self, ptipurl: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetTipUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptipurl)).ok() } } @@ -7474,10 +6929,7 @@ unsafe impl ::windows::core::Interface for IObjectContextTip { #[doc(hidden)] pub struct IObjectContextTip_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetTipUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptipurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetTipUrl: usize, + pub GetTipUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptipurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_ComponentServices\"`*"] #[repr(transparent)] @@ -7600,13 +7052,8 @@ pub struct IPlaybackControl_Vtbl { pub struct IPoolManager(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IPoolManager { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ShutdownPool<'a, P0>(&self, clsidorprogid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ShutdownPool)(::windows::core::Interface::as_raw(self), clsidorprogid.into().abi()).ok() + pub unsafe fn ShutdownPool(&self, clsidorprogid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ShutdownPool)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(clsidorprogid)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -7675,10 +7122,7 @@ unsafe impl ::windows::core::Interface for IPoolManager { #[doc(hidden)] pub struct IPoolManager_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub ShutdownPool: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clsidorprogid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ShutdownPool: usize, + pub ShutdownPool: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clsidorprogid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_ComponentServices\"`*"] #[repr(transparent)] @@ -7748,25 +7192,17 @@ impl ISecurityCallContext { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn get_Item<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn get_Item(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self)._NewEnum)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsCallerInRole<'a, P0>(&self, bstrrole: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsCallerInRole(&self, bstrrole: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).IsCallerInRole)(::windows::core::Interface::as_raw(self), bstrrole.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).IsCallerInRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrole), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn IsSecurityEnabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7774,12 +7210,9 @@ impl ISecurityCallContext { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn IsUserInRole<'a, P0>(&self, puser: &super::Com::VARIANT, bstrrole: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsUserInRole(&self, puser: &super::Com::VARIANT, bstrrole: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).IsUserInRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(puser), bstrrole.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).IsUserInRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(puser), ::core::mem::transmute_copy(bstrrole), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -7850,17 +7283,14 @@ pub struct ISecurityCallContext_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, pitem: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, + pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pitem: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_Item: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub IsCallerInRole: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrole: ::core::mem::ManuallyDrop, pfinrole: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - IsCallerInRole: usize, + pub IsCallerInRole: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrole: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfinrole: *mut i16) -> ::windows::core::HRESULT, pub IsSecurityEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfisenabled: *mut i16) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub IsUserInRole: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puser: *const super::Com::VARIANT, bstrrole: ::core::mem::ManuallyDrop, pfinrole: *mut i16) -> ::windows::core::HRESULT, + pub IsUserInRole: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puser: *const super::Com::VARIANT, bstrrole: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfinrole: *mut i16) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] IsUserInRole: usize, } @@ -7970,12 +7400,9 @@ impl ISecurityIdentityColl { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn get_Item<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn get_Item(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -8050,7 +7477,7 @@ pub struct ISecurityIdentityColl_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, pitem: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, + pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pitem: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_Item: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -9351,22 +8778,16 @@ impl ISharedPropertyGroup { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).get_PropertyByPosition)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateProperty<'a, P0>(&self, name: P0, fexists: &mut i16, ppprop: &mut ::core::option::Option) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).CreateProperty)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(fexists), ::core::mem::transmute(ppprop)).ok() + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateProperty(&self, name: &::windows::core::BSTR, fexists: &mut i16, ppprop: &mut ::core::option::Option) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).CreateProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(fexists), ::core::mem::transmute(ppprop)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn get_Property<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn get_Property(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_Property)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_Property)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -9443,13 +8864,13 @@ pub struct ISharedPropertyGroup_Vtbl { pub get_PropertyByPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, ppproperty: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] get_PropertyByPosition: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreateProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, fexists: *mut i16, ppprop: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreateProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fexists: *mut i16, ppprop: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreateProperty: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub get_Property: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, ppproperty: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub get_Property: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppproperty: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] get_Property: usize, } #[doc = "*Required features: `\"Win32_System_ComponentServices\"`, `\"Win32_System_Com\"`*"] @@ -9458,22 +8879,16 @@ pub struct ISharedPropertyGroup_Vtbl { pub struct ISharedPropertyGroupManager(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ISharedPropertyGroupManager { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreatePropertyGroup<'a, P0>(&self, name: P0, dwisomode: &mut i32, dwrelmode: &mut i32, fexists: &mut i16, ppgroup: &mut ::core::option::Option) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).CreatePropertyGroup)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(dwisomode), ::core::mem::transmute(dwrelmode), ::core::mem::transmute(fexists), ::core::mem::transmute(ppgroup)).ok() + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreatePropertyGroup(&self, name: &::windows::core::BSTR, dwisomode: &mut i32, dwrelmode: &mut i32, fexists: &mut i16, ppgroup: &mut ::core::option::Option) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).CreatePropertyGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(dwisomode), ::core::mem::transmute(dwrelmode), ::core::mem::transmute(fexists), ::core::mem::transmute(ppgroup)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn get_Group<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn get_Group(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_Group)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_Group)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -9546,13 +8961,13 @@ unsafe impl ::windows::core::Interface for ISharedPropertyGroupManager { #[doc(hidden)] pub struct ISharedPropertyGroupManager_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreatePropertyGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, dwisomode: *mut i32, dwrelmode: *mut i32, fexists: *mut i16, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreatePropertyGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwisomode: *mut i32, dwrelmode: *mut i32, fexists: *mut i16, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreatePropertyGroup: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub get_Group: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub get_Group: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] get_Group: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } @@ -9563,13 +8978,8 @@ impl ISystemAppEventData { pub unsafe fn Startup(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Startup)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OnDataChanged<'a, P0>(&self, dwpid: u32, dwmask: u32, dwnumbersinks: u32, bstrdwmethodmask: P0, dwreason: u32, u64tracehandle: u64) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).OnDataChanged)(::windows::core::Interface::as_raw(self), dwpid, dwmask, dwnumbersinks, bstrdwmethodmask.into().abi(), dwreason, u64tracehandle).ok() + pub unsafe fn OnDataChanged(&self, dwpid: u32, dwmask: u32, dwnumbersinks: u32, bstrdwmethodmask: &::windows::core::BSTR, dwreason: u32, u64tracehandle: u64) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).OnDataChanged)(::windows::core::Interface::as_raw(self), dwpid, dwmask, dwnumbersinks, ::core::mem::transmute_copy(bstrdwmethodmask), dwreason, u64tracehandle).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -9612,10 +9022,7 @@ unsafe impl ::windows::core::Interface for ISystemAppEventData { pub struct ISystemAppEventData_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub Startup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub OnDataChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwpid: u32, dwmask: u32, dwnumbersinks: u32, bstrdwmethodmask: ::core::mem::ManuallyDrop, dwreason: u32, u64tracehandle: u64) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OnDataChanged: usize, + pub OnDataChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwpid: u32, dwmask: u32, dwnumbersinks: u32, bstrdwmethodmask: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwreason: u32, u64tracehandle: u64) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_ComponentServices\"`*"] #[repr(transparent)] @@ -9710,12 +9117,9 @@ pub struct ITransactionContext(::windows::core::IUnknown); impl ITransactionContext { #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateInstance<'a, P0>(&self, pszprogid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn CreateInstance(&self, pszprogid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateInstance)(::windows::core::Interface::as_raw(self), pszprogid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateInstance)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pszprogid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn Commit(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Commit)(::windows::core::Interface::as_raw(self)).ok() @@ -9791,7 +9195,7 @@ unsafe impl ::windows::core::Interface for ITransactionContext { pub struct ITransactionContext_Vtbl { pub base__: super::Com::IDispatch_Vtbl, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszprogid: ::core::mem::ManuallyDrop, pobject: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, + pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszprogid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pobject: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] CreateInstance: usize, pub Commit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -10240,12 +9644,9 @@ pub struct ObjectContext(::windows::core::IUnknown); impl ObjectContext { #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateInstance<'a, P0>(&self, bstrprogid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn CreateInstance(&self, bstrprogid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateInstance)(::windows::core::Interface::as_raw(self), bstrprogid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateInstance)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprogid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn SetComplete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetComplete)(::windows::core::Interface::as_raw(self)).ok() @@ -10267,14 +9668,9 @@ impl ObjectContext { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).IsSecurityEnabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsCallerInRole<'a, P0>(&self, bstrrole: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsCallerInRole(&self, bstrrole: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).IsCallerInRole)(::windows::core::Interface::as_raw(self), bstrrole.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).IsCallerInRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrole), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn Count(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -10282,12 +9678,9 @@ impl ObjectContext { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn get_Item<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn get_Item(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -10373,7 +9766,7 @@ unsafe impl ::windows::core::Interface for ObjectContext { pub struct ObjectContext_Vtbl { pub base__: super::Com::IDispatch_Vtbl, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprogid: ::core::mem::ManuallyDrop, pobject: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, + pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprogid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pobject: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] CreateInstance: usize, pub SetComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -10382,13 +9775,10 @@ pub struct ObjectContext_Vtbl { pub DisableCommit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub IsInTransaction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbisintx: *mut i16) -> ::windows::core::HRESULT, pub IsSecurityEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbisenabled: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub IsCallerInRole: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrole: ::core::mem::ManuallyDrop, pbinrole: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - IsCallerInRole: usize, + pub IsCallerInRole: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrole: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbinrole: *mut i16) -> ::windows::core::HRESULT, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcount: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, pitem: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, + pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pitem: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_Item: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -10464,29 +9854,21 @@ pub struct ObjectControl_Vtbl { pub struct SecurityProperty(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl SecurityProperty { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDirectCallerName(&self) -> ::windows::core::Result { + pub unsafe fn GetDirectCallerName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDirectCallerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDirectCallerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDirectCreatorName(&self) -> ::windows::core::Result { + pub unsafe fn GetDirectCreatorName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDirectCreatorName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDirectCreatorName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetOriginalCallerName(&self) -> ::windows::core::Result { + pub unsafe fn GetOriginalCallerName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetOriginalCallerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetOriginalCallerName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetOriginalCreatorName(&self) -> ::windows::core::Result { + pub unsafe fn GetOriginalCreatorName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetOriginalCreatorName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetOriginalCreatorName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -10555,22 +9937,10 @@ unsafe impl ::windows::core::Interface for SecurityProperty { #[doc(hidden)] pub struct SecurityProperty_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetDirectCallerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDirectCallerName: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetDirectCreatorName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDirectCreatorName: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetOriginalCallerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetOriginalCallerName: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetOriginalCreatorName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetOriginalCreatorName: usize, + pub GetDirectCallerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetDirectCreatorName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetOriginalCallerName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetOriginalCreatorName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } pub const AppDomainHelper: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xef24f689_14f8_4d92_b4af_d7b1f0e70fd4); pub const ByotServerEx: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xecabb0aa_7f19_11d2_978e_0000f8757e2a); diff --git a/crates/libs/windows/src/Windows/Win32/System/DeploymentServices/impl.rs b/crates/libs/windows/src/Windows/Win32/System/DeploymentServices/impl.rs index e8e6464e31..1b49f6f461 100644 --- a/crates/libs/windows/src/Windows/Win32/System/DeploymentServices/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/DeploymentServices/impl.rs @@ -52,15 +52,15 @@ impl IWdsTransportCacheable_Vtbl { pub trait IWdsTransportClient_Impl: Sized + super::Com::IDispatch_Impl { fn Session(&self) -> ::windows::core::Result; fn Id(&self) -> ::windows::core::Result; - fn Name(&self) -> ::windows::core::Result; - fn MacAddress(&self) -> ::windows::core::Result; - fn IpAddress(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn MacAddress(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn IpAddress(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn PercentCompletion(&self) -> ::windows::core::Result; fn JoinDuration(&self) -> ::windows::core::Result; fn CpuUtilization(&self) -> ::windows::core::Result; fn MemoryUtilization(&self) -> ::windows::core::Result; fn NetworkUtilization(&self) -> ::windows::core::Result; - fn UserIdentity(&self) -> ::windows::core::Result; + fn UserIdentity(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Disconnect(&self, disconnectiontype: WDSTRANSPORT_DISCONNECT_TYPE) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -90,7 +90,7 @@ impl IWdsTransportClient_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Name, Impl: IWdsTransportClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbszname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IWdsTransportClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbszname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -101,7 +101,7 @@ impl IWdsTransportClient_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn MacAddress, Impl: IWdsTransportClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbszmacaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn MacAddress, Impl: IWdsTransportClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbszmacaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.MacAddress() { @@ -112,7 +112,7 @@ impl IWdsTransportClient_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn IpAddress, Impl: IWdsTransportClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbszipaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn IpAddress, Impl: IWdsTransportClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbszipaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.IpAddress() { @@ -178,7 +178,7 @@ impl IWdsTransportClient_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn UserIdentity, Impl: IWdsTransportClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbszuseridentity: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UserIdentity, Impl: IWdsTransportClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbszuseridentity: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UserIdentity() { @@ -399,7 +399,7 @@ impl IWdsTransportConfigurationManager2_Vtbl { pub trait IWdsTransportContent_Impl: Sized + super::Com::IDispatch_Impl { fn Namespace(&self) -> ::windows::core::Result; fn Id(&self) -> ::windows::core::Result; - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn RetrieveSessions(&self) -> ::windows::core::Result; fn Terminate(&self) -> ::windows::core::Result<()>; } @@ -430,7 +430,7 @@ impl IWdsTransportContent_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Name, Impl: IWdsTransportContent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbszname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IWdsTransportContent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbszname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -472,17 +472,17 @@ impl IWdsTransportContent_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWdsTransportContentProvider_Impl: Sized + super::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; - fn Description(&self) -> ::windows::core::Result; - fn FilePath(&self) -> ::windows::core::Result; - fn InitializationRoutine(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn FilePath(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn InitializationRoutine(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWdsTransportContentProvider {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWdsTransportContentProvider_Vtbl { pub const fn new, Impl: IWdsTransportContentProvider_Impl, const OFFSET: isize>() -> IWdsTransportContentProvider_Vtbl { - unsafe extern "system" fn Name, Impl: IWdsTransportContentProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbszname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IWdsTransportContentProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbszname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -493,7 +493,7 @@ impl IWdsTransportContentProvider_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Description, Impl: IWdsTransportContentProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbszdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IWdsTransportContentProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbszdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -504,7 +504,7 @@ impl IWdsTransportContentProvider_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn FilePath, Impl: IWdsTransportContentProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbszfilepath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FilePath, Impl: IWdsTransportContentProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbszfilepath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FilePath() { @@ -515,7 +515,7 @@ impl IWdsTransportContentProvider_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn InitializationRoutine, Impl: IWdsTransportContentProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbszinitializationroutine: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializationRoutine, Impl: IWdsTransportContentProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbszinitializationroutine: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.InitializationRoutine() { @@ -596,14 +596,14 @@ impl IWdsTransportDiagnosticsPolicy_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWdsTransportManager_Impl: Sized + super::Com::IDispatch_Impl { - fn GetWdsTransportServer(&self, bszservername: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetWdsTransportServer(&self, bszservername: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWdsTransportManager {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWdsTransportManager_Vtbl { pub const fn new, Impl: IWdsTransportManager_Impl, const OFFSET: isize>() -> IWdsTransportManager_Vtbl { - unsafe extern "system" fn GetWdsTransportServer, Impl: IWdsTransportManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bszservername: ::core::mem::ManuallyDrop, ppwdstransportserver: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetWdsTransportServer, Impl: IWdsTransportManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bszservername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppwdstransportserver: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetWdsTransportServer(::core::mem::transmute(&bszservername)) { @@ -720,16 +720,16 @@ impl IWdsTransportMulticastSessionPolicy_Vtbl { pub trait IWdsTransportNamespace_Impl: Sized + super::Com::IDispatch_Impl { fn Type(&self) -> ::windows::core::Result; fn Id(&self) -> ::windows::core::Result; - fn Name(&self) -> ::windows::core::Result; - fn SetName(&self, bszname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn FriendlyName(&self) -> ::windows::core::Result; - fn SetFriendlyName(&self, bszfriendlyname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Description(&self) -> ::windows::core::Result; - fn SetDescription(&self, bszdescription: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ContentProvider(&self) -> ::windows::core::Result; - fn SetContentProvider(&self, bszcontentprovider: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Configuration(&self) -> ::windows::core::Result; - fn SetConfiguration(&self, bszconfiguration: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetName(&self, bszname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn FriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetFriendlyName(&self, bszfriendlyname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDescription(&self, bszdescription: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ContentProvider(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetContentProvider(&self, bszcontentprovider: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Configuration(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetConfiguration(&self, bszconfiguration: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Registered(&self) -> ::windows::core::Result; fn Tombstoned(&self) -> ::windows::core::Result; fn TombstoneTime(&self) -> ::windows::core::Result; @@ -767,7 +767,7 @@ impl IWdsTransportNamespace_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Name, Impl: IWdsTransportNamespace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbszname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IWdsTransportNamespace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbszname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -778,12 +778,12 @@ impl IWdsTransportNamespace_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetName, Impl: IWdsTransportNamespace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bszname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: IWdsTransportNamespace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bszname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&bszname)).into() } - unsafe extern "system" fn FriendlyName, Impl: IWdsTransportNamespace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbszfriendlyname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FriendlyName, Impl: IWdsTransportNamespace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbszfriendlyname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FriendlyName() { @@ -794,12 +794,12 @@ impl IWdsTransportNamespace_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetFriendlyName, Impl: IWdsTransportNamespace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bszfriendlyname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetFriendlyName, Impl: IWdsTransportNamespace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bszfriendlyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetFriendlyName(::core::mem::transmute(&bszfriendlyname)).into() } - unsafe extern "system" fn Description, Impl: IWdsTransportNamespace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbszdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IWdsTransportNamespace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbszdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -810,12 +810,12 @@ impl IWdsTransportNamespace_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription, Impl: IWdsTransportNamespace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bszdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDescription, Impl: IWdsTransportNamespace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bszdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDescription(::core::mem::transmute(&bszdescription)).into() } - unsafe extern "system" fn ContentProvider, Impl: IWdsTransportNamespace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbszcontentprovider: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ContentProvider, Impl: IWdsTransportNamespace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbszcontentprovider: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ContentProvider() { @@ -826,12 +826,12 @@ impl IWdsTransportNamespace_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetContentProvider, Impl: IWdsTransportNamespace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bszcontentprovider: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetContentProvider, Impl: IWdsTransportNamespace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bszcontentprovider: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetContentProvider(::core::mem::transmute(&bszcontentprovider)).into() } - unsafe extern "system" fn Configuration, Impl: IWdsTransportNamespace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbszconfiguration: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Configuration, Impl: IWdsTransportNamespace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbszconfiguration: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Configuration() { @@ -842,7 +842,7 @@ impl IWdsTransportNamespace_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetConfiguration, Impl: IWdsTransportNamespace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bszconfiguration: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetConfiguration, Impl: IWdsTransportNamespace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bszconfiguration: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetConfiguration(::core::mem::transmute(&bszconfiguration)).into() @@ -972,16 +972,16 @@ impl IWdsTransportNamespaceAutoCast_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWdsTransportNamespaceManager_Impl: Sized + super::Com::IDispatch_Impl { - fn CreateNamespace(&self, namespacetype: WDSTRANSPORT_NAMESPACE_TYPE, bsznamespacename: &super::super::Foundation::BSTR, bszcontentprovider: &super::super::Foundation::BSTR, bszconfiguration: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn RetrieveNamespace(&self, bsznamespacename: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn RetrieveNamespaces(&self, bszcontentprovider: &super::super::Foundation::BSTR, bsznamespacename: &super::super::Foundation::BSTR, bincludetombstones: i16) -> ::windows::core::Result; + fn CreateNamespace(&self, namespacetype: WDSTRANSPORT_NAMESPACE_TYPE, bsznamespacename: &::windows::core::BSTR, bszcontentprovider: &::windows::core::BSTR, bszconfiguration: &::windows::core::BSTR) -> ::windows::core::Result; + fn RetrieveNamespace(&self, bsznamespacename: &::windows::core::BSTR) -> ::windows::core::Result; + fn RetrieveNamespaces(&self, bszcontentprovider: &::windows::core::BSTR, bsznamespacename: &::windows::core::BSTR, bincludetombstones: i16) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWdsTransportNamespaceManager {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWdsTransportNamespaceManager_Vtbl { pub const fn new, Impl: IWdsTransportNamespaceManager_Impl, const OFFSET: isize>() -> IWdsTransportNamespaceManager_Vtbl { - unsafe extern "system" fn CreateNamespace, Impl: IWdsTransportNamespaceManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, namespacetype: WDSTRANSPORT_NAMESPACE_TYPE, bsznamespacename: ::core::mem::ManuallyDrop, bszcontentprovider: ::core::mem::ManuallyDrop, bszconfiguration: ::core::mem::ManuallyDrop, ppwdstransportnamespace: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateNamespace, Impl: IWdsTransportNamespaceManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, namespacetype: WDSTRANSPORT_NAMESPACE_TYPE, bsznamespacename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bszcontentprovider: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bszconfiguration: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppwdstransportnamespace: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateNamespace(::core::mem::transmute_copy(&namespacetype), ::core::mem::transmute(&bsznamespacename), ::core::mem::transmute(&bszcontentprovider), ::core::mem::transmute(&bszconfiguration)) { @@ -992,7 +992,7 @@ impl IWdsTransportNamespaceManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RetrieveNamespace, Impl: IWdsTransportNamespaceManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bsznamespacename: ::core::mem::ManuallyDrop, ppwdstransportnamespace: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn RetrieveNamespace, Impl: IWdsTransportNamespaceManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bsznamespacename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppwdstransportnamespace: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RetrieveNamespace(::core::mem::transmute(&bsznamespacename)) { @@ -1003,7 +1003,7 @@ impl IWdsTransportNamespaceManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RetrieveNamespaces, Impl: IWdsTransportNamespaceManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bszcontentprovider: ::core::mem::ManuallyDrop, bsznamespacename: ::core::mem::ManuallyDrop, bincludetombstones: i16, ppwdstransportnamespaces: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn RetrieveNamespaces, Impl: IWdsTransportNamespaceManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bszcontentprovider: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bsznamespacename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bincludetombstones: i16, ppwdstransportnamespaces: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RetrieveNamespaces(::core::mem::transmute(&bszcontentprovider), ::core::mem::transmute(&bsznamespacename), ::core::mem::transmute_copy(&bincludetombstones)) { @@ -1116,7 +1116,7 @@ impl IWdsTransportNamespaceScheduledCastManualStart_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWdsTransportServer_Impl: Sized + super::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn SetupManager(&self) -> ::windows::core::Result; fn ConfigurationManager(&self) -> ::windows::core::Result; fn NamespaceManager(&self) -> ::windows::core::Result; @@ -1127,7 +1127,7 @@ impl ::windows::core::RuntimeName for IWdsTransportServer {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWdsTransportServer_Vtbl { pub const fn new, Impl: IWdsTransportServer_Impl, const OFFSET: isize>() -> IWdsTransportServer_Vtbl { - unsafe extern "system" fn Name, Impl: IWdsTransportServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbszname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IWdsTransportServer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbszname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -1219,10 +1219,10 @@ impl IWdsTransportServer2_Vtbl { pub trait IWdsTransportServicePolicy_Impl: Sized + super::Com::IDispatch_Impl + IWdsTransportCacheable_Impl { fn get_IpAddressSource(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE) -> ::windows::core::Result; fn put_IpAddressSource(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, sourcetype: WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE) -> ::windows::core::Result<()>; - fn get_StartIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE) -> ::windows::core::Result; - fn put_StartIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszstartipaddress: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn get_EndIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE) -> ::windows::core::Result; - fn put_EndIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszendipaddress: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn get_StartIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE) -> ::windows::core::Result<::windows::core::BSTR>; + fn put_StartIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszstartipaddress: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn get_EndIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE) -> ::windows::core::Result<::windows::core::BSTR>; + fn put_EndIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszendipaddress: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn StartPort(&self) -> ::windows::core::Result; fn SetStartPort(&self, ulstartport: u32) -> ::windows::core::Result<()>; fn EndPort(&self) -> ::windows::core::Result; @@ -1251,7 +1251,7 @@ impl IWdsTransportServicePolicy_Vtbl { let this = (*this).get_impl(); this.put_IpAddressSource(::core::mem::transmute_copy(&addresstype), ::core::mem::transmute_copy(&sourcetype)).into() } - unsafe extern "system" fn get_StartIpAddress, Impl: IWdsTransportServicePolicy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, pbszstartipaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_StartIpAddress, Impl: IWdsTransportServicePolicy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, pbszstartipaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_StartIpAddress(::core::mem::transmute_copy(&addresstype)) { @@ -1262,12 +1262,12 @@ impl IWdsTransportServicePolicy_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn put_StartIpAddress, Impl: IWdsTransportServicePolicy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszstartipaddress: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn put_StartIpAddress, Impl: IWdsTransportServicePolicy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszstartipaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.put_StartIpAddress(::core::mem::transmute_copy(&addresstype), ::core::mem::transmute(&bszstartipaddress)).into() } - unsafe extern "system" fn get_EndIpAddress, Impl: IWdsTransportServicePolicy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, pbszendipaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_EndIpAddress, Impl: IWdsTransportServicePolicy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, pbszendipaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_EndIpAddress(::core::mem::transmute_copy(&addresstype)) { @@ -1278,7 +1278,7 @@ impl IWdsTransportServicePolicy_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn put_EndIpAddress, Impl: IWdsTransportServicePolicy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszendipaddress: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn put_EndIpAddress, Impl: IWdsTransportServicePolicy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszendipaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.put_EndIpAddress(::core::mem::transmute_copy(&addresstype), ::core::mem::transmute(&bszendipaddress)).into() @@ -1431,8 +1431,8 @@ impl IWdsTransportServicePolicy2_Vtbl { pub trait IWdsTransportSession_Impl: Sized + super::Com::IDispatch_Impl { fn Content(&self) -> ::windows::core::Result; fn Id(&self) -> ::windows::core::Result; - fn NetworkInterfaceName(&self) -> ::windows::core::Result; - fn NetworkInterfaceAddress(&self) -> ::windows::core::Result; + fn NetworkInterfaceName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn NetworkInterfaceAddress(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn TransferRate(&self) -> ::windows::core::Result; fn MasterClientId(&self) -> ::windows::core::Result; fn RetrieveClients(&self) -> ::windows::core::Result; @@ -1465,7 +1465,7 @@ impl IWdsTransportSession_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn NetworkInterfaceName, Impl: IWdsTransportSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbsznetworkinterfacename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn NetworkInterfaceName, Impl: IWdsTransportSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbsznetworkinterfacename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.NetworkInterfaceName() { @@ -1476,7 +1476,7 @@ impl IWdsTransportSession_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn NetworkInterfaceAddress, Impl: IWdsTransportSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbsznetworkinterfaceaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn NetworkInterfaceAddress, Impl: IWdsTransportSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbsznetworkinterfaceaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.NetworkInterfaceAddress() { @@ -1546,8 +1546,8 @@ pub trait IWdsTransportSetupManager_Impl: Sized + super::Com::IDispatch_Impl { fn Version(&self) -> ::windows::core::Result; fn InstalledFeatures(&self) -> ::windows::core::Result; fn Protocols(&self) -> ::windows::core::Result; - fn RegisterContentProvider(&self, bszname: &super::super::Foundation::BSTR, bszdescription: &super::super::Foundation::BSTR, bszfilepath: &super::super::Foundation::BSTR, bszinitializationroutine: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn DeregisterContentProvider(&self, bszname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn RegisterContentProvider(&self, bszname: &::windows::core::BSTR, bszdescription: &::windows::core::BSTR, bszfilepath: &::windows::core::BSTR, bszinitializationroutine: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn DeregisterContentProvider(&self, bszname: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWdsTransportSetupManager {} @@ -1587,12 +1587,12 @@ impl IWdsTransportSetupManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RegisterContentProvider, Impl: IWdsTransportSetupManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bszname: ::core::mem::ManuallyDrop, bszdescription: ::core::mem::ManuallyDrop, bszfilepath: ::core::mem::ManuallyDrop, bszinitializationroutine: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn RegisterContentProvider, Impl: IWdsTransportSetupManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bszname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bszdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bszfilepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bszinitializationroutine: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RegisterContentProvider(::core::mem::transmute(&bszname), ::core::mem::transmute(&bszdescription), ::core::mem::transmute(&bszfilepath), ::core::mem::transmute(&bszinitializationroutine)).into() } - unsafe extern "system" fn DeregisterContentProvider, Impl: IWdsTransportSetupManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bszname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeregisterContentProvider, Impl: IWdsTransportSetupManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bszname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeregisterContentProvider(::core::mem::transmute(&bszname)).into() @@ -1654,8 +1654,8 @@ impl IWdsTransportSetupManager2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWdsTransportTftpClient_Impl: Sized + super::Com::IDispatch_Impl { - fn FileName(&self) -> ::windows::core::Result; - fn IpAddress(&self) -> ::windows::core::Result; + fn FileName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn IpAddress(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Timeout(&self) -> ::windows::core::Result; fn CurrentFileOffset(&self) -> ::windows::core::Result; fn FileSize(&self) -> ::windows::core::Result; @@ -1667,7 +1667,7 @@ impl ::windows::core::RuntimeName for IWdsTransportTftpClient {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWdsTransportTftpClient_Vtbl { pub const fn new, Impl: IWdsTransportTftpClient_Impl, const OFFSET: isize>() -> IWdsTransportTftpClient_Vtbl { - unsafe extern "system" fn FileName, Impl: IWdsTransportTftpClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbszfilename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FileName, Impl: IWdsTransportTftpClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbszfilename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FileName() { @@ -1678,7 +1678,7 @@ impl IWdsTransportTftpClient_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn IpAddress, Impl: IWdsTransportTftpClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbszipaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn IpAddress, Impl: IWdsTransportTftpClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbszipaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.IpAddress() { diff --git a/crates/libs/windows/src/Windows/Win32/System/DeploymentServices/mod.rs b/crates/libs/windows/src/Windows/Win32/System/DeploymentServices/mod.rs index 1eed32caf1..521e2e4170 100644 --- a/crates/libs/windows/src/Windows/Win32/System/DeploymentServices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/DeploymentServices/mod.rs @@ -1259,23 +1259,17 @@ impl IWdsTransportClient { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MacAddress(&self) -> ::windows::core::Result { + pub unsafe fn MacAddress(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).MacAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).MacAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IpAddress(&self) -> ::windows::core::Result { + pub unsafe fn IpAddress(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).IpAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).IpAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn PercentCompletion(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1297,11 +1291,9 @@ impl IWdsTransportClient { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).NetworkUtilization)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserIdentity(&self) -> ::windows::core::Result { + pub unsafe fn UserIdentity(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UserIdentity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UserIdentity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Disconnect(&self, disconnectiontype: WDSTRANSPORT_DISCONNECT_TYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Disconnect)(::windows::core::Interface::as_raw(self), disconnectiontype).ok() @@ -1378,27 +1370,15 @@ pub struct IWdsTransportClient_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Session: usize, pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulid: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbszname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub MacAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbszmacaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MacAddress: usize, - #[cfg(feature = "Win32_Foundation")] - pub IpAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbszipaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - IpAddress: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbszname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub MacAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbszmacaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub IpAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbszipaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub PercentCompletion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulpercentcompletion: *mut u32) -> ::windows::core::HRESULT, pub JoinDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puljoinduration: *mut u32) -> ::windows::core::HRESULT, pub CpuUtilization: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulcpuutilization: *mut u32) -> ::windows::core::HRESULT, pub MemoryUtilization: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulmemoryutilization: *mut u32) -> ::windows::core::HRESULT, pub NetworkUtilization: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulnetworkutilization: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub UserIdentity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbszuseridentity: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UserIdentity: usize, + pub UserIdentity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbszuseridentity: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Disconnect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, disconnectiontype: WDSTRANSPORT_DISCONNECT_TYPE) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_DeploymentServices\"`, `\"Win32_System_Com\"`*"] @@ -1770,11 +1750,9 @@ impl IWdsTransportContent { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1857,10 +1835,7 @@ pub struct IWdsTransportContent_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Namespace: usize, pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulid: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbszname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbszname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub RetrieveSessions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwdstransportsessions: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -1873,29 +1848,21 @@ pub struct IWdsTransportContent_Vtbl { pub struct IWdsTransportContentProvider(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWdsTransportContentProvider { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FilePath(&self) -> ::windows::core::Result { + pub unsafe fn FilePath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FilePath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FilePath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializationRoutine(&self) -> ::windows::core::Result { + pub unsafe fn InitializationRoutine(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).InitializationRoutine)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).InitializationRoutine)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1964,22 +1931,10 @@ unsafe impl ::windows::core::Interface for IWdsTransportContentProvider { #[doc(hidden)] pub struct IWdsTransportContentProvider_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbszname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbszdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub FilePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbszfilepath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FilePath: usize, - #[cfg(feature = "Win32_Foundation")] - pub InitializationRoutine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbszinitializationroutine: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializationRoutine: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbszname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbszdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FilePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbszfilepath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub InitializationRoutine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbszinitializationroutine: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_DeploymentServices\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2110,14 +2065,11 @@ pub struct IWdsTransportDiagnosticsPolicy_Vtbl { pub struct IWdsTransportManager(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWdsTransportManager { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetWdsTransportServer<'a, P0>(&self, bszservername: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetWdsTransportServer(&self, bszservername: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetWdsTransportServer)(::windows::core::Interface::as_raw(self), bszservername.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetWdsTransportServer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bszservername), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -2186,9 +2138,9 @@ unsafe impl ::windows::core::Interface for IWdsTransportManager { #[doc(hidden)] pub struct IWdsTransportManager_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetWdsTransportServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bszservername: ::core::mem::ManuallyDrop, ppwdstransportserver: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetWdsTransportServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bszservername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppwdstransportserver: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetWdsTransportServer: usize, } #[doc = "*Required features: `\"Win32_System_DeploymentServices\"`, `\"Win32_System_Com\"`*"] @@ -2346,75 +2298,40 @@ impl IWdsTransportNamespace { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, bszname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), bszname.into().abi()).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FriendlyName(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFriendlyName<'a, P0>(&self, bszfriendlyname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetFriendlyName)(::windows::core::Interface::as_raw(self), bszfriendlyname.into().abi()).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bszdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), bszdescription.into().abi()).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ContentProvider(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ContentProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetContentProvider<'a, P0>(&self, bszcontentprovider: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetContentProvider)(::windows::core::Interface::as_raw(self), bszcontentprovider.into().abi()).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Configuration(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Configuration)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetConfiguration<'a, P0>(&self, bszconfiguration: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetConfiguration)(::windows::core::Interface::as_raw(self), bszconfiguration.into().abi()).ok() + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { + let mut result__ = ::core::mem::MaybeUninit::zeroed(); + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) + } + pub unsafe fn SetName(&self, bszname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bszname)).ok() + } + pub unsafe fn FriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR> { + let mut result__ = ::core::mem::MaybeUninit::zeroed(); + (::windows::core::Interface::vtable(self).FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) + } + pub unsafe fn SetFriendlyName(&self, bszfriendlyname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bszfriendlyname)).ok() + } + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { + let mut result__ = ::core::mem::MaybeUninit::zeroed(); + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) + } + pub unsafe fn SetDescription(&self, bszdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bszdescription)).ok() + } + pub unsafe fn ContentProvider(&self) -> ::windows::core::Result<::windows::core::BSTR> { + let mut result__ = ::core::mem::MaybeUninit::zeroed(); + (::windows::core::Interface::vtable(self).ContentProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) + } + pub unsafe fn SetContentProvider(&self, bszcontentprovider: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetContentProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bszcontentprovider)).ok() + } + pub unsafe fn Configuration(&self) -> ::windows::core::Result<::windows::core::BSTR> { + let mut result__ = ::core::mem::MaybeUninit::zeroed(); + (::windows::core::Interface::vtable(self).Configuration)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) + } + pub unsafe fn SetConfiguration(&self, bszconfiguration: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetConfiguration)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bszconfiguration)).ok() } pub unsafe fn Registered(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2522,46 +2439,16 @@ pub struct IWdsTransportNamespace_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptype: *mut WDSTRANSPORT_NAMESPACE_TYPE) -> ::windows::core::HRESULT, pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulid: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbszname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bszname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, - #[cfg(feature = "Win32_Foundation")] - pub FriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbszfriendlyname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FriendlyName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetFriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bszfriendlyname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetFriendlyName: usize, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbszdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bszdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDescription: usize, - #[cfg(feature = "Win32_Foundation")] - pub ContentProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbszcontentprovider: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ContentProvider: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetContentProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bszcontentprovider: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetContentProvider: usize, - #[cfg(feature = "Win32_Foundation")] - pub Configuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbszconfiguration: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Configuration: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetConfiguration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bszconfiguration: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetConfiguration: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbszname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bszname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbszfriendlyname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetFriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bszfriendlyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbszdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bszdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ContentProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbszcontentprovider: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetContentProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bszcontentprovider: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Configuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbszconfiguration: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetConfiguration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bszconfiguration: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Registered: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbregistered: *mut i16) -> ::windows::core::HRESULT, pub Tombstoned: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbtombstoned: *mut i16) -> ::windows::core::HRESULT, pub TombstoneTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptombstonetime: *mut f64) -> ::windows::core::HRESULT, @@ -2592,75 +2479,40 @@ impl IWdsTransportNamespaceAutoCast { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, bszname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), bszname.into().abi()).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FriendlyName(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFriendlyName<'a, P0>(&self, bszfriendlyname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetFriendlyName)(::windows::core::Interface::as_raw(self), bszfriendlyname.into().abi()).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bszdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), bszdescription.into().abi()).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ContentProvider(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ContentProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetContentProvider<'a, P0>(&self, bszcontentprovider: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetContentProvider)(::windows::core::Interface::as_raw(self), bszcontentprovider.into().abi()).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Configuration(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Configuration)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetConfiguration<'a, P0>(&self, bszconfiguration: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetConfiguration)(::windows::core::Interface::as_raw(self), bszconfiguration.into().abi()).ok() + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { + let mut result__ = ::core::mem::MaybeUninit::zeroed(); + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) + } + pub unsafe fn SetName(&self, bszname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bszname)).ok() + } + pub unsafe fn FriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR> { + let mut result__ = ::core::mem::MaybeUninit::zeroed(); + (::windows::core::Interface::vtable(self).base__.FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) + } + pub unsafe fn SetFriendlyName(&self, bszfriendlyname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bszfriendlyname)).ok() + } + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { + let mut result__ = ::core::mem::MaybeUninit::zeroed(); + (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) + } + pub unsafe fn SetDescription(&self, bszdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bszdescription)).ok() + } + pub unsafe fn ContentProvider(&self) -> ::windows::core::Result<::windows::core::BSTR> { + let mut result__ = ::core::mem::MaybeUninit::zeroed(); + (::windows::core::Interface::vtable(self).base__.ContentProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) + } + pub unsafe fn SetContentProvider(&self, bszcontentprovider: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetContentProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bszcontentprovider)).ok() + } + pub unsafe fn Configuration(&self) -> ::windows::core::Result<::windows::core::BSTR> { + let mut result__ = ::core::mem::MaybeUninit::zeroed(); + (::windows::core::Interface::vtable(self).base__.Configuration)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) + } + pub unsafe fn SetConfiguration(&self, bszconfiguration: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetConfiguration)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bszconfiguration)).ok() } pub unsafe fn Registered(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2791,35 +2643,23 @@ pub struct IWdsTransportNamespaceAutoCast_Vtbl { pub struct IWdsTransportNamespaceManager(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWdsTransportNamespaceManager { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateNamespace<'a, P0, P1, P2>(&self, namespacetype: WDSTRANSPORT_NAMESPACE_TYPE, bsznamespacename: P0, bszcontentprovider: P1, bszconfiguration: P2) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateNamespace(&self, namespacetype: WDSTRANSPORT_NAMESPACE_TYPE, bsznamespacename: &::windows::core::BSTR, bszcontentprovider: &::windows::core::BSTR, bszconfiguration: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateNamespace)(::windows::core::Interface::as_raw(self), namespacetype, bsznamespacename.into().abi(), bszcontentprovider.into().abi(), bszconfiguration.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateNamespace)(::windows::core::Interface::as_raw(self), namespacetype, ::core::mem::transmute_copy(bsznamespacename), ::core::mem::transmute_copy(bszcontentprovider), ::core::mem::transmute_copy(bszconfiguration), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn RetrieveNamespace<'a, P0>(&self, bsznamespacename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn RetrieveNamespace(&self, bsznamespacename: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RetrieveNamespace)(::windows::core::Interface::as_raw(self), bsznamespacename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RetrieveNamespace)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bsznamespacename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn RetrieveNamespaces<'a, P0, P1>(&self, bszcontentprovider: P0, bsznamespacename: P1, bincludetombstones: i16) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn RetrieveNamespaces(&self, bszcontentprovider: &::windows::core::BSTR, bsznamespacename: &::windows::core::BSTR, bincludetombstones: i16) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RetrieveNamespaces)(::windows::core::Interface::as_raw(self), bszcontentprovider.into().abi(), bsznamespacename.into().abi(), bincludetombstones, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RetrieveNamespaces)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bszcontentprovider), ::core::mem::transmute_copy(bsznamespacename), bincludetombstones, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -2888,17 +2728,17 @@ unsafe impl ::windows::core::Interface for IWdsTransportNamespaceManager { #[doc(hidden)] pub struct IWdsTransportNamespaceManager_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreateNamespace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, namespacetype: WDSTRANSPORT_NAMESPACE_TYPE, bsznamespacename: ::core::mem::ManuallyDrop, bszcontentprovider: ::core::mem::ManuallyDrop, bszconfiguration: ::core::mem::ManuallyDrop, ppwdstransportnamespace: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreateNamespace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, namespacetype: WDSTRANSPORT_NAMESPACE_TYPE, bsznamespacename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bszcontentprovider: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bszconfiguration: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppwdstransportnamespace: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreateNamespace: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub RetrieveNamespace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bsznamespacename: ::core::mem::ManuallyDrop, ppwdstransportnamespace: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub RetrieveNamespace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bsznamespacename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppwdstransportnamespace: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] RetrieveNamespace: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub RetrieveNamespaces: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bszcontentprovider: ::core::mem::ManuallyDrop, bsznamespacename: ::core::mem::ManuallyDrop, bincludetombstones: i16, ppwdstransportnamespaces: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub RetrieveNamespaces: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bszcontentprovider: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bsznamespacename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bincludetombstones: i16, ppwdstransportnamespaces: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] RetrieveNamespaces: usize, } #[doc = "*Required features: `\"Win32_System_DeploymentServices\"`, `\"Win32_System_Com\"`*"] @@ -2915,75 +2755,40 @@ impl IWdsTransportNamespaceScheduledCast { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, bszname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), bszname.into().abi()).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FriendlyName(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFriendlyName<'a, P0>(&self, bszfriendlyname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetFriendlyName)(::windows::core::Interface::as_raw(self), bszfriendlyname.into().abi()).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bszdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), bszdescription.into().abi()).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ContentProvider(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ContentProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetContentProvider<'a, P0>(&self, bszcontentprovider: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetContentProvider)(::windows::core::Interface::as_raw(self), bszcontentprovider.into().abi()).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Configuration(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Configuration)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetConfiguration<'a, P0>(&self, bszconfiguration: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetConfiguration)(::windows::core::Interface::as_raw(self), bszconfiguration.into().abi()).ok() + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { + let mut result__ = ::core::mem::MaybeUninit::zeroed(); + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) + } + pub unsafe fn SetName(&self, bszname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bszname)).ok() + } + pub unsafe fn FriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR> { + let mut result__ = ::core::mem::MaybeUninit::zeroed(); + (::windows::core::Interface::vtable(self).base__.FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) + } + pub unsafe fn SetFriendlyName(&self, bszfriendlyname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bszfriendlyname)).ok() + } + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { + let mut result__ = ::core::mem::MaybeUninit::zeroed(); + (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) + } + pub unsafe fn SetDescription(&self, bszdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bszdescription)).ok() + } + pub unsafe fn ContentProvider(&self) -> ::windows::core::Result<::windows::core::BSTR> { + let mut result__ = ::core::mem::MaybeUninit::zeroed(); + (::windows::core::Interface::vtable(self).base__.ContentProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) + } + pub unsafe fn SetContentProvider(&self, bszcontentprovider: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetContentProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bszcontentprovider)).ok() + } + pub unsafe fn Configuration(&self) -> ::windows::core::Result<::windows::core::BSTR> { + let mut result__ = ::core::mem::MaybeUninit::zeroed(); + (::windows::core::Interface::vtable(self).base__.Configuration)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) + } + pub unsafe fn SetConfiguration(&self, bszconfiguration: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetConfiguration)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bszconfiguration)).ok() } pub unsafe fn Registered(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3126,75 +2931,40 @@ impl IWdsTransportNamespaceScheduledCastAutoStart { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, bszname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetName)(::windows::core::Interface::as_raw(self), bszname.into().abi()).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FriendlyName(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFriendlyName<'a, P0>(&self, bszfriendlyname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetFriendlyName)(::windows::core::Interface::as_raw(self), bszfriendlyname.into().abi()).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bszdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetDescription)(::windows::core::Interface::as_raw(self), bszdescription.into().abi()).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ContentProvider(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.ContentProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetContentProvider<'a, P0>(&self, bszcontentprovider: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetContentProvider)(::windows::core::Interface::as_raw(self), bszcontentprovider.into().abi()).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Configuration(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Configuration)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetConfiguration<'a, P0>(&self, bszconfiguration: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetConfiguration)(::windows::core::Interface::as_raw(self), bszconfiguration.into().abi()).ok() + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { + let mut result__ = ::core::mem::MaybeUninit::zeroed(); + (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) + } + pub unsafe fn SetName(&self, bszname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bszname)).ok() + } + pub unsafe fn FriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR> { + let mut result__ = ::core::mem::MaybeUninit::zeroed(); + (::windows::core::Interface::vtable(self).base__.base__.FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) + } + pub unsafe fn SetFriendlyName(&self, bszfriendlyname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bszfriendlyname)).ok() + } + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { + let mut result__ = ::core::mem::MaybeUninit::zeroed(); + (::windows::core::Interface::vtable(self).base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) + } + pub unsafe fn SetDescription(&self, bszdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bszdescription)).ok() + } + pub unsafe fn ContentProvider(&self) -> ::windows::core::Result<::windows::core::BSTR> { + let mut result__ = ::core::mem::MaybeUninit::zeroed(); + (::windows::core::Interface::vtable(self).base__.base__.ContentProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) + } + pub unsafe fn SetContentProvider(&self, bszcontentprovider: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetContentProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bszcontentprovider)).ok() + } + pub unsafe fn Configuration(&self) -> ::windows::core::Result<::windows::core::BSTR> { + let mut result__ = ::core::mem::MaybeUninit::zeroed(); + (::windows::core::Interface::vtable(self).base__.base__.Configuration)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) + } + pub unsafe fn SetConfiguration(&self, bszconfiguration: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetConfiguration)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bszconfiguration)).ok() } pub unsafe fn Registered(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3372,75 +3142,40 @@ impl IWdsTransportNamespaceScheduledCastManualStart { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, bszname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetName)(::windows::core::Interface::as_raw(self), bszname.into().abi()).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FriendlyName(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFriendlyName<'a, P0>(&self, bszfriendlyname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetFriendlyName)(::windows::core::Interface::as_raw(self), bszfriendlyname.into().abi()).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bszdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetDescription)(::windows::core::Interface::as_raw(self), bszdescription.into().abi()).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ContentProvider(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.ContentProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetContentProvider<'a, P0>(&self, bszcontentprovider: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetContentProvider)(::windows::core::Interface::as_raw(self), bszcontentprovider.into().abi()).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Configuration(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Configuration)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetConfiguration<'a, P0>(&self, bszconfiguration: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetConfiguration)(::windows::core::Interface::as_raw(self), bszconfiguration.into().abi()).ok() + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { + let mut result__ = ::core::mem::MaybeUninit::zeroed(); + (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) + } + pub unsafe fn SetName(&self, bszname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bszname)).ok() + } + pub unsafe fn FriendlyName(&self) -> ::windows::core::Result<::windows::core::BSTR> { + let mut result__ = ::core::mem::MaybeUninit::zeroed(); + (::windows::core::Interface::vtable(self).base__.base__.FriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) + } + pub unsafe fn SetFriendlyName(&self, bszfriendlyname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bszfriendlyname)).ok() + } + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { + let mut result__ = ::core::mem::MaybeUninit::zeroed(); + (::windows::core::Interface::vtable(self).base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) + } + pub unsafe fn SetDescription(&self, bszdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bszdescription)).ok() + } + pub unsafe fn ContentProvider(&self) -> ::windows::core::Result<::windows::core::BSTR> { + let mut result__ = ::core::mem::MaybeUninit::zeroed(); + (::windows::core::Interface::vtable(self).base__.base__.ContentProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) + } + pub unsafe fn SetContentProvider(&self, bszcontentprovider: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetContentProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bszcontentprovider)).ok() + } + pub unsafe fn Configuration(&self) -> ::windows::core::Result<::windows::core::BSTR> { + let mut result__ = ::core::mem::MaybeUninit::zeroed(); + (::windows::core::Interface::vtable(self).base__.base__.Configuration)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) + } + pub unsafe fn SetConfiguration(&self, bszconfiguration: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetConfiguration)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bszconfiguration)).ok() } pub unsafe fn Registered(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3592,11 +3327,9 @@ pub struct IWdsTransportNamespaceScheduledCastManualStart_Vtbl { pub struct IWdsTransportServer(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWdsTransportServer { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3686,10 +3419,7 @@ unsafe impl ::windows::core::Interface for IWdsTransportServer { #[doc(hidden)] pub struct IWdsTransportServer_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbszname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbszname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub SetupManager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppwdstransportsetupmanager: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -3710,11 +3440,9 @@ pub struct IWdsTransportServer_Vtbl { pub struct IWdsTransportServer2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWdsTransportServer2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3859,33 +3587,19 @@ impl IWdsTransportServicePolicy { pub unsafe fn put_IpAddressSource(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, sourcetype: WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).put_IpAddressSource)(::windows::core::Interface::as_raw(self), addresstype, sourcetype).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_StartIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE) -> ::windows::core::Result { + pub unsafe fn get_StartIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_StartIpAddress)(::windows::core::Interface::as_raw(self), addresstype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_StartIpAddress)(::windows::core::Interface::as_raw(self), addresstype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_StartIpAddress<'a, P0>(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszstartipaddress: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).put_StartIpAddress)(::windows::core::Interface::as_raw(self), addresstype, bszstartipaddress.into().abi()).ok() + pub unsafe fn put_StartIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszstartipaddress: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).put_StartIpAddress)(::windows::core::Interface::as_raw(self), addresstype, ::core::mem::transmute_copy(bszstartipaddress)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_EndIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE) -> ::windows::core::Result { + pub unsafe fn get_EndIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_EndIpAddress)(::windows::core::Interface::as_raw(self), addresstype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_EndIpAddress)(::windows::core::Interface::as_raw(self), addresstype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_EndIpAddress<'a, P0>(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszendipaddress: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).put_EndIpAddress)(::windows::core::Interface::as_raw(self), addresstype, bszendipaddress.into().abi()).ok() + pub unsafe fn put_EndIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszendipaddress: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).put_EndIpAddress)(::windows::core::Interface::as_raw(self), addresstype, ::core::mem::transmute_copy(bszendipaddress)).ok() } pub unsafe fn StartPort(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3995,22 +3709,10 @@ pub struct IWdsTransportServicePolicy_Vtbl { pub base__: IWdsTransportCacheable_Vtbl, pub get_IpAddressSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, psourcetype: *mut WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE) -> ::windows::core::HRESULT, pub put_IpAddressSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, sourcetype: WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub get_StartIpAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, pbszstartipaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_StartIpAddress: usize, - #[cfg(feature = "Win32_Foundation")] - pub put_StartIpAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszstartipaddress: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - put_StartIpAddress: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_EndIpAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, pbszendipaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_EndIpAddress: usize, - #[cfg(feature = "Win32_Foundation")] - pub put_EndIpAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszendipaddress: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - put_EndIpAddress: usize, + pub get_StartIpAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, pbszstartipaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub put_StartIpAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszstartipaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub get_EndIpAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, pbszendipaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub put_EndIpAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszendipaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub StartPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulstartport: *mut u32) -> ::windows::core::HRESULT, pub SetStartPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulstartport: u32) -> ::windows::core::HRESULT, pub EndPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulendport: *mut u32) -> ::windows::core::HRESULT, @@ -4044,33 +3746,19 @@ impl IWdsTransportServicePolicy2 { pub unsafe fn put_IpAddressSource(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, sourcetype: WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.put_IpAddressSource)(::windows::core::Interface::as_raw(self), addresstype, sourcetype).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_StartIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE) -> ::windows::core::Result { + pub unsafe fn get_StartIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_StartIpAddress)(::windows::core::Interface::as_raw(self), addresstype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_StartIpAddress)(::windows::core::Interface::as_raw(self), addresstype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_StartIpAddress<'a, P0>(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszstartipaddress: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.put_StartIpAddress)(::windows::core::Interface::as_raw(self), addresstype, bszstartipaddress.into().abi()).ok() + pub unsafe fn put_StartIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszstartipaddress: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.put_StartIpAddress)(::windows::core::Interface::as_raw(self), addresstype, ::core::mem::transmute_copy(bszstartipaddress)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_EndIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE) -> ::windows::core::Result { + pub unsafe fn get_EndIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_EndIpAddress)(::windows::core::Interface::as_raw(self), addresstype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_EndIpAddress)(::windows::core::Interface::as_raw(self), addresstype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_EndIpAddress<'a, P0>(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszendipaddress: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.put_EndIpAddress)(::windows::core::Interface::as_raw(self), addresstype, bszendipaddress.into().abi()).ok() + pub unsafe fn put_EndIpAddress(&self, addresstype: WDSTRANSPORT_IP_ADDRESS_TYPE, bszendipaddress: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.put_EndIpAddress)(::windows::core::Interface::as_raw(self), addresstype, ::core::mem::transmute_copy(bszendipaddress)).ok() } pub unsafe fn StartPort(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4240,17 +3928,13 @@ impl IWdsTransportSession { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NetworkInterfaceName(&self) -> ::windows::core::Result { + pub unsafe fn NetworkInterfaceName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).NetworkInterfaceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).NetworkInterfaceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NetworkInterfaceAddress(&self) -> ::windows::core::Result { + pub unsafe fn NetworkInterfaceAddress(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).NetworkInterfaceAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).NetworkInterfaceAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn TransferRate(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4341,14 +4025,8 @@ pub struct IWdsTransportSession_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Content: usize, pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulid: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub NetworkInterfaceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbsznetworkinterfacename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - NetworkInterfaceName: usize, - #[cfg(feature = "Win32_Foundation")] - pub NetworkInterfaceAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbsznetworkinterfaceaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - NetworkInterfaceAddress: usize, + pub NetworkInterfaceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbsznetworkinterfacename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub NetworkInterfaceAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbsznetworkinterfaceaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub TransferRate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pultransferrate: *mut u32) -> ::windows::core::HRESULT, pub MasterClientId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulmasterclientid: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] @@ -4375,24 +4053,11 @@ impl IWdsTransportSetupManager { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Protocols)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RegisterContentProvider<'a, P0, P1, P2, P3>(&self, bszname: P0, bszdescription: P1, bszfilepath: P2, bszinitializationroutine: P3) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).RegisterContentProvider)(::windows::core::Interface::as_raw(self), bszname.into().abi(), bszdescription.into().abi(), bszfilepath.into().abi(), bszinitializationroutine.into().abi()).ok() + pub unsafe fn RegisterContentProvider(&self, bszname: &::windows::core::BSTR, bszdescription: &::windows::core::BSTR, bszfilepath: &::windows::core::BSTR, bszinitializationroutine: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).RegisterContentProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bszname), ::core::mem::transmute_copy(bszdescription), ::core::mem::transmute_copy(bszfilepath), ::core::mem::transmute_copy(bszinitializationroutine)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeregisterContentProvider<'a, P0>(&self, bszname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DeregisterContentProvider)(::windows::core::Interface::as_raw(self), bszname.into().abi()).ok() + pub unsafe fn DeregisterContentProvider(&self, bszname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DeregisterContentProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bszname)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4464,14 +4129,8 @@ pub struct IWdsTransportSetupManager_Vtbl { pub Version: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pullversion: *mut u64) -> ::windows::core::HRESULT, pub InstalledFeatures: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulinstalledfeatures: *mut u32) -> ::windows::core::HRESULT, pub Protocols: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulprotocols: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub RegisterContentProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bszname: ::core::mem::ManuallyDrop, bszdescription: ::core::mem::ManuallyDrop, bszfilepath: ::core::mem::ManuallyDrop, bszinitializationroutine: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RegisterContentProvider: usize, - #[cfg(feature = "Win32_Foundation")] - pub DeregisterContentProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bszname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeregisterContentProvider: usize, + pub RegisterContentProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bszname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bszdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bszfilepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bszinitializationroutine: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DeregisterContentProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bszname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_DeploymentServices\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4491,24 +4150,11 @@ impl IWdsTransportSetupManager2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Protocols)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RegisterContentProvider<'a, P0, P1, P2, P3>(&self, bszname: P0, bszdescription: P1, bszfilepath: P2, bszinitializationroutine: P3) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.RegisterContentProvider)(::windows::core::Interface::as_raw(self), bszname.into().abi(), bszdescription.into().abi(), bszfilepath.into().abi(), bszinitializationroutine.into().abi()).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeregisterContentProvider<'a, P0>(&self, bszname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.DeregisterContentProvider)(::windows::core::Interface::as_raw(self), bszname.into().abi()).ok() + pub unsafe fn RegisterContentProvider(&self, bszname: &::windows::core::BSTR, bszdescription: &::windows::core::BSTR, bszfilepath: &::windows::core::BSTR, bszinitializationroutine: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.RegisterContentProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bszname), ::core::mem::transmute_copy(bszdescription), ::core::mem::transmute_copy(bszfilepath), ::core::mem::transmute_copy(bszinitializationroutine)).ok() + } + pub unsafe fn DeregisterContentProvider(&self, bszname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.DeregisterContentProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bszname)).ok() } pub unsafe fn TftpCapabilities(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4617,17 +4263,13 @@ pub struct IWdsTransportSetupManager2_Vtbl { pub struct IWdsTransportTftpClient(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWdsTransportTftpClient { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FileName(&self) -> ::windows::core::Result { + pub unsafe fn FileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IpAddress(&self) -> ::windows::core::Result { + pub unsafe fn IpAddress(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).IpAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).IpAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Timeout(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4716,14 +4358,8 @@ unsafe impl ::windows::core::Interface for IWdsTransportTftpClient { #[doc(hidden)] pub struct IWdsTransportTftpClient_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub FileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbszfilename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FileName: usize, - #[cfg(feature = "Win32_Foundation")] - pub IpAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbszipaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - IpAddress: usize, + pub FileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbszfilename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub IpAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbszipaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Timeout: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pultimeout: *mut u32) -> ::windows::core::HRESULT, pub CurrentFileOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pul64currentoffset: *mut u64) -> ::windows::core::HRESULT, pub FileSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pul64filesize: *mut u64) -> ::windows::core::HRESULT, diff --git a/crates/libs/windows/src/Windows/Win32/System/DesktopSharing/impl.rs b/crates/libs/windows/src/Windows/Win32/System/DesktopSharing/impl.rs index d26a184bdf..7b21639042 100644 --- a/crates/libs/windows/src/Windows/Win32/System/DesktopSharing/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/DesktopSharing/impl.rs @@ -4,7 +4,7 @@ pub trait IRDPSRAPIApplication_Impl: Sized + super::Com::IDispatch_Impl { fn Id(&self) -> ::windows::core::Result; fn Shared(&self) -> ::windows::core::Result; fn SetShared(&self, newval: i16) -> ::windows::core::Result<()>; - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Flags(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -50,7 +50,7 @@ impl IRDPSRAPIApplication_Vtbl { let this = (*this).get_impl(); this.SetShared(::core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn Name, Impl: IRDPSRAPIApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pretval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IRDPSRAPIApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pretval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -193,7 +193,7 @@ impl IRDPSRAPIApplicationList_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IRDPSRAPIAttendee_Impl: Sized + super::Com::IDispatch_Impl { fn Id(&self) -> ::windows::core::Result; - fn RemoteName(&self) -> ::windows::core::Result; + fn RemoteName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn ControlLevel(&self) -> ::windows::core::Result; fn SetControlLevel(&self, pnewval: CTRL_LEVEL) -> ::windows::core::Result<()>; fn Invitation(&self) -> ::windows::core::Result; @@ -217,7 +217,7 @@ impl IRDPSRAPIAttendee_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RemoteName, Impl: IRDPSRAPIAttendee_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RemoteName, Impl: IRDPSRAPIAttendee_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RemoteName() { @@ -475,22 +475,19 @@ impl IRDPSRAPIClipboardUseEvents_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IRDPSRAPIDebug_Impl: Sized { - fn SetCLXCmdLine(&self, clxcmdline: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn CLXCmdLine(&self) -> ::windows::core::Result; + fn SetCLXCmdLine(&self, clxcmdline: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn CLXCmdLine(&self) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IRDPSRAPIDebug {} -#[cfg(feature = "Win32_Foundation")] impl IRDPSRAPIDebug_Vtbl { pub const fn new, Impl: IRDPSRAPIDebug_Impl, const OFFSET: isize>() -> IRDPSRAPIDebug_Vtbl { - unsafe extern "system" fn SetCLXCmdLine, Impl: IRDPSRAPIDebug_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, clxcmdline: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCLXCmdLine, Impl: IRDPSRAPIDebug_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, clxcmdline: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCLXCmdLine(::core::mem::transmute(&clxcmdline)).into() } - unsafe extern "system" fn CLXCmdLine, Impl: IRDPSRAPIDebug_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pclxcmdline: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CLXCmdLine, Impl: IRDPSRAPIDebug_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pclxcmdline: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CLXCmdLine() { @@ -581,9 +578,9 @@ impl IRDPSRAPIFrameBuffer_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IRDPSRAPIInvitation_Impl: Sized + super::Com::IDispatch_Impl { - fn ConnectionString(&self) -> ::windows::core::Result; - fn GroupName(&self) -> ::windows::core::Result; - fn Password(&self) -> ::windows::core::Result; + fn ConnectionString(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GroupName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Password(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn AttendeeLimit(&self) -> ::windows::core::Result; fn SetAttendeeLimit(&self, newval: i32) -> ::windows::core::Result<()>; fn Revoked(&self) -> ::windows::core::Result; @@ -594,7 +591,7 @@ impl ::windows::core::RuntimeName for IRDPSRAPIInvitation {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IRDPSRAPIInvitation_Vtbl { pub const fn new, Impl: IRDPSRAPIInvitation_Impl, const OFFSET: isize>() -> IRDPSRAPIInvitation_Vtbl { - unsafe extern "system" fn ConnectionString, Impl: IRDPSRAPIInvitation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ConnectionString, Impl: IRDPSRAPIInvitation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ConnectionString() { @@ -605,7 +602,7 @@ impl IRDPSRAPIInvitation_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GroupName, Impl: IRDPSRAPIInvitation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GroupName, Impl: IRDPSRAPIInvitation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GroupName() { @@ -616,7 +613,7 @@ impl IRDPSRAPIInvitation_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Password, Impl: IRDPSRAPIInvitation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Password, Impl: IRDPSRAPIInvitation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Password() { @@ -679,7 +676,7 @@ pub trait IRDPSRAPIInvitationManager_Impl: Sized + super::Com::IDispatch_Impl { fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; fn get_Item(&self, item: &super::Com::VARIANT) -> ::windows::core::Result; fn Count(&self) -> ::windows::core::Result; - fn CreateInvitation(&self, bstrauthstring: &super::super::Foundation::BSTR, bstrgroupname: &super::super::Foundation::BSTR, bstrpassword: &super::super::Foundation::BSTR, attendeelimit: i32) -> ::windows::core::Result; + fn CreateInvitation(&self, bstrauthstring: &::windows::core::BSTR, bstrgroupname: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR, attendeelimit: i32) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IRDPSRAPIInvitationManager {} @@ -719,7 +716,7 @@ impl IRDPSRAPIInvitationManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateInvitation, Impl: IRDPSRAPIInvitationManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrauthstring: ::core::mem::ManuallyDrop, bstrgroupname: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop, attendeelimit: i32, ppinvitation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateInvitation, Impl: IRDPSRAPIInvitationManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrauthstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrgroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, attendeelimit: i32, ppinvitation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateInvitation(::core::mem::transmute(&bstrauthstring), ::core::mem::transmute(&bstrgroupname), ::core::mem::transmute(&bstrpassword), ::core::mem::transmute_copy(&attendeelimit)) { @@ -759,16 +756,13 @@ impl IRDPSRAPIPerfCounterLogger_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IRDPSRAPIPerfCounterLoggingManager_Impl: Sized { - fn CreateLogger(&self, bstrcountername: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn CreateLogger(&self, bstrcountername: &::windows::core::BSTR) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IRDPSRAPIPerfCounterLoggingManager {} -#[cfg(feature = "Win32_Foundation")] impl IRDPSRAPIPerfCounterLoggingManager_Vtbl { pub const fn new, Impl: IRDPSRAPIPerfCounterLoggingManager_Impl, const OFFSET: isize>() -> IRDPSRAPIPerfCounterLoggingManager_Vtbl { - unsafe extern "system" fn CreateLogger, Impl: IRDPSRAPIPerfCounterLoggingManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcountername: ::core::mem::ManuallyDrop, pplogger: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateLogger, Impl: IRDPSRAPIPerfCounterLoggingManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcountername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pplogger: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateLogger(::core::mem::transmute(&bstrcountername)) { @@ -787,15 +781,15 @@ impl IRDPSRAPIPerfCounterLoggingManager_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IRDPSRAPISessionProperties_Impl: Sized + super::Com::IDispatch_Impl { - fn get_Property(&self, propertyname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn put_Property(&self, propertyname: &super::super::Foundation::BSTR, newval: &super::Com::VARIANT) -> ::windows::core::Result<()>; + fn get_Property(&self, propertyname: &::windows::core::BSTR) -> ::windows::core::Result; + fn put_Property(&self, propertyname: &::windows::core::BSTR, newval: &super::Com::VARIANT) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IRDPSRAPISessionProperties {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IRDPSRAPISessionProperties_Vtbl { pub const fn new, Impl: IRDPSRAPISessionProperties_Impl, const OFFSET: isize>() -> IRDPSRAPISessionProperties_Vtbl { - unsafe extern "system" fn get_Property, Impl: IRDPSRAPISessionProperties_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop, pval: *mut super::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Property, Impl: IRDPSRAPISessionProperties_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pval: *mut super::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_Property(::core::mem::transmute(&propertyname)) { @@ -806,7 +800,7 @@ impl IRDPSRAPISessionProperties_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn put_Property, Impl: IRDPSRAPISessionProperties_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn put_Property, Impl: IRDPSRAPISessionProperties_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.put_Property(::core::mem::transmute(&propertyname), ::core::mem::transmute(&newval)).into() @@ -834,7 +828,7 @@ pub trait IRDPSRAPISharingSession_Impl: Sized + super::Com::IDispatch_Impl { fn VirtualChannelManager(&self) -> ::windows::core::Result; fn Pause(&self) -> ::windows::core::Result<()>; fn Resume(&self) -> ::windows::core::Result<()>; - fn ConnectToClient(&self, bstrconnectionstring: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ConnectToClient(&self, bstrconnectionstring: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SetDesktopSharedRect(&self, left: i32, top: i32, right: i32, bottom: i32) -> ::windows::core::Result<()>; fn GetDesktopSharedRect(&self, pleft: *mut i32, ptop: *mut i32, pright: *mut i32, pbottom: *mut i32) -> ::windows::core::Result<()>; } @@ -934,7 +928,7 @@ impl IRDPSRAPISharingSession_Vtbl { let this = (*this).get_impl(); this.Resume().into() } - unsafe extern "system" fn ConnectToClient, Impl: IRDPSRAPISharingSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrconnectionstring: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ConnectToClient, Impl: IRDPSRAPISharingSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrconnectionstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ConnectToClient(::core::mem::transmute(&bstrconnectionstring)).into() @@ -973,7 +967,7 @@ impl IRDPSRAPISharingSession_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IRDPSRAPISharingSession2_Impl: Sized + super::Com::IDispatch_Impl + IRDPSRAPISharingSession_Impl { - fn ConnectUsingTransportStream(&self, pstream: &::core::option::Option, bstrgroup: &super::super::Foundation::BSTR, bstrauthenticatedattendeename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ConnectUsingTransportStream(&self, pstream: &::core::option::Option, bstrgroup: &::windows::core::BSTR, bstrauthenticatedattendeename: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn FrameBuffer(&self) -> ::windows::core::Result; fn SendControlLevelChangeResponse(&self, pattendee: &::core::option::Option, requestedlevel: CTRL_LEVEL, reasoncode: i32) -> ::windows::core::Result<()>; } @@ -982,7 +976,7 @@ impl ::windows::core::RuntimeName for IRDPSRAPISharingSession2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IRDPSRAPISharingSession2_Vtbl { pub const fn new, Impl: IRDPSRAPISharingSession2_Impl, const OFFSET: isize>() -> IRDPSRAPISharingSession2_Vtbl { - unsafe extern "system" fn ConnectUsingTransportStream, Impl: IRDPSRAPISharingSession2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstream: *mut ::core::ffi::c_void, bstrgroup: ::core::mem::ManuallyDrop, bstrauthenticatedattendeename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ConnectUsingTransportStream, Impl: IRDPSRAPISharingSession2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstream: *mut ::core::ffi::c_void, bstrgroup: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrauthenticatedattendeename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ConnectUsingTransportStream(::core::mem::transmute(&pstream), ::core::mem::transmute(&bstrgroup), ::core::mem::transmute(&bstrauthenticatedattendeename)).into() @@ -1018,9 +1012,9 @@ impl IRDPSRAPISharingSession2_Vtbl { pub trait IRDPSRAPITcpConnectionInfo_Impl: Sized + super::Com::IDispatch_Impl { fn Protocol(&self) -> ::windows::core::Result; fn LocalPort(&self) -> ::windows::core::Result; - fn LocalIP(&self) -> ::windows::core::Result; + fn LocalIP(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn PeerPort(&self) -> ::windows::core::Result; - fn PeerIP(&self) -> ::windows::core::Result; + fn PeerIP(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IRDPSRAPITcpConnectionInfo {} @@ -1049,7 +1043,7 @@ impl IRDPSRAPITcpConnectionInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn LocalIP, Impl: IRDPSRAPITcpConnectionInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbsrlocalip: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LocalIP, Impl: IRDPSRAPITcpConnectionInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbsrlocalip: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LocalIP() { @@ -1071,7 +1065,7 @@ impl IRDPSRAPITcpConnectionInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn PeerIP, Impl: IRDPSRAPITcpConnectionInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrip: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PeerIP, Impl: IRDPSRAPITcpConnectionInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrip: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PeerIP() { @@ -1311,7 +1305,7 @@ impl IRDPSRAPITransportStreamEvents_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IRDPSRAPIViewer_Impl: Sized + super::Com::IDispatch_Impl { - fn Connect(&self, bstrconnectionstring: &super::super::Foundation::BSTR, bstrname: &super::super::Foundation::BSTR, bstrpassword: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Connect(&self, bstrconnectionstring: &::windows::core::BSTR, bstrname: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Disconnect(&self) -> ::windows::core::Result<()>; fn Attendees(&self) -> ::windows::core::Result; fn Invitations(&self) -> ::windows::core::Result; @@ -1320,18 +1314,18 @@ pub trait IRDPSRAPIViewer_Impl: Sized + super::Com::IDispatch_Impl { fn SetSmartSizing(&self, vbsmartsizing: i16) -> ::windows::core::Result<()>; fn SmartSizing(&self) -> ::windows::core::Result; fn RequestControl(&self, ctrllevel: CTRL_LEVEL) -> ::windows::core::Result<()>; - fn SetDisconnectedText(&self, bstrdisconnectedtext: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn DisconnectedText(&self) -> ::windows::core::Result; + fn SetDisconnectedText(&self, bstrdisconnectedtext: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn DisconnectedText(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn RequestColorDepthChange(&self, bpp: i32) -> ::windows::core::Result<()>; fn Properties(&self) -> ::windows::core::Result; - fn StartReverseConnectListener(&self, bstrconnectionstring: &super::super::Foundation::BSTR, bstrusername: &super::super::Foundation::BSTR, bstrpassword: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn StartReverseConnectListener(&self, bstrconnectionstring: &::windows::core::BSTR, bstrusername: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IRDPSRAPIViewer {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IRDPSRAPIViewer_Vtbl { pub const fn new, Impl: IRDPSRAPIViewer_Impl, const OFFSET: isize>() -> IRDPSRAPIViewer_Vtbl { - unsafe extern "system" fn Connect, Impl: IRDPSRAPIViewer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrconnectionstring: ::core::mem::ManuallyDrop, bstrname: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Connect, Impl: IRDPSRAPIViewer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrconnectionstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Connect(::core::mem::transmute(&bstrconnectionstring), ::core::mem::transmute(&bstrname), ::core::mem::transmute(&bstrpassword)).into() @@ -1406,12 +1400,12 @@ impl IRDPSRAPIViewer_Vtbl { let this = (*this).get_impl(); this.RequestControl(::core::mem::transmute_copy(&ctrllevel)).into() } - unsafe extern "system" fn SetDisconnectedText, Impl: IRDPSRAPIViewer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdisconnectedtext: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDisconnectedText, Impl: IRDPSRAPIViewer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdisconnectedtext: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDisconnectedText(::core::mem::transmute(&bstrdisconnectedtext)).into() } - unsafe extern "system" fn DisconnectedText, Impl: IRDPSRAPIViewer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdisconnectedtext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DisconnectedText, Impl: IRDPSRAPIViewer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdisconnectedtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DisconnectedText() { @@ -1438,7 +1432,7 @@ impl IRDPSRAPIViewer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn StartReverseConnectListener, Impl: IRDPSRAPIViewer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrconnectionstring: ::core::mem::ManuallyDrop, bstrusername: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop, pbstrreverseconnectstring: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn StartReverseConnectListener, Impl: IRDPSRAPIViewer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrconnectionstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrreverseconnectstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.StartReverseConnectListener(::core::mem::transmute(&bstrconnectionstring), ::core::mem::transmute(&bstrusername), ::core::mem::transmute(&bstrpassword)) { @@ -1473,9 +1467,9 @@ impl IRDPSRAPIViewer_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IRDPSRAPIVirtualChannel_Impl: Sized + super::Com::IDispatch_Impl { - fn SendData(&self, bstrdata: &super::super::Foundation::BSTR, lattendeeid: i32, channelsendflags: u32) -> ::windows::core::Result<()>; + fn SendData(&self, bstrdata: &::windows::core::BSTR, lattendeeid: i32, channelsendflags: u32) -> ::windows::core::Result<()>; fn SetAccess(&self, lattendeeid: i32, accesstype: CHANNEL_ACCESS_ENUM) -> ::windows::core::Result<()>; - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Flags(&self) -> ::windows::core::Result; fn Priority(&self) -> ::windows::core::Result; } @@ -1484,7 +1478,7 @@ impl ::windows::core::RuntimeName for IRDPSRAPIVirtualChannel {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IRDPSRAPIVirtualChannel_Vtbl { pub const fn new, Impl: IRDPSRAPIVirtualChannel_Impl, const OFFSET: isize>() -> IRDPSRAPIVirtualChannel_Vtbl { - unsafe extern "system" fn SendData, Impl: IRDPSRAPIVirtualChannel_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdata: ::core::mem::ManuallyDrop, lattendeeid: i32, channelsendflags: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn SendData, Impl: IRDPSRAPIVirtualChannel_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lattendeeid: i32, channelsendflags: u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SendData(::core::mem::transmute(&bstrdata), ::core::mem::transmute_copy(&lattendeeid), ::core::mem::transmute_copy(&channelsendflags)).into() @@ -1494,7 +1488,7 @@ impl IRDPSRAPIVirtualChannel_Vtbl { let this = (*this).get_impl(); this.SetAccess(::core::mem::transmute_copy(&lattendeeid), ::core::mem::transmute_copy(&accesstype)).into() } - unsafe extern "system" fn Name, Impl: IRDPSRAPIVirtualChannel_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IRDPSRAPIVirtualChannel_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -1544,7 +1538,7 @@ impl IRDPSRAPIVirtualChannel_Vtbl { pub trait IRDPSRAPIVirtualChannelManager_Impl: Sized + super::Com::IDispatch_Impl { fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; fn get_Item(&self, item: &super::Com::VARIANT) -> ::windows::core::Result; - fn CreateVirtualChannel(&self, bstrchannelname: &super::super::Foundation::BSTR, priority: CHANNEL_PRIORITY, channelflags: u32) -> ::windows::core::Result; + fn CreateVirtualChannel(&self, bstrchannelname: &::windows::core::BSTR, priority: CHANNEL_PRIORITY, channelflags: u32) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IRDPSRAPIVirtualChannelManager {} @@ -1573,7 +1567,7 @@ impl IRDPSRAPIVirtualChannelManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateVirtualChannel, Impl: IRDPSRAPIVirtualChannelManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrchannelname: ::core::mem::ManuallyDrop, priority: CHANNEL_PRIORITY, channelflags: u32, ppchannel: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateVirtualChannel, Impl: IRDPSRAPIVirtualChannelManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrchannelname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, priority: CHANNEL_PRIORITY, channelflags: u32, ppchannel: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateVirtualChannel(::core::mem::transmute(&bstrchannelname), ::core::mem::transmute_copy(&priority), ::core::mem::transmute_copy(&channelflags)) { @@ -1601,7 +1595,7 @@ pub trait IRDPSRAPIWindow_Impl: Sized + super::Com::IDispatch_Impl { fn Application(&self) -> ::windows::core::Result; fn Shared(&self) -> ::windows::core::Result; fn SetShared(&self, newval: i16) -> ::windows::core::Result<()>; - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Show(&self) -> ::windows::core::Result<()>; fn Flags(&self) -> ::windows::core::Result; } @@ -1648,7 +1642,7 @@ impl IRDPSRAPIWindow_Vtbl { let this = (*this).get_impl(); this.SetShared(::core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn Name, Impl: IRDPSRAPIWindow_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pretval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IRDPSRAPIWindow_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pretval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { diff --git a/crates/libs/windows/src/Windows/Win32/System/DesktopSharing/mod.rs b/crates/libs/windows/src/Windows/Win32/System/DesktopSharing/mod.rs index da9fbfb2c0..4137fd5b17 100644 --- a/crates/libs/windows/src/Windows/Win32/System/DesktopSharing/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/DesktopSharing/mod.rs @@ -21,11 +21,9 @@ impl IRDPSRAPIApplication { pub unsafe fn SetShared(&self, newval: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetShared)(::windows::core::Interface::as_raw(self), newval).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Flags(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -105,10 +103,7 @@ pub struct IRDPSRAPIApplication_Vtbl { pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut i32) -> ::windows::core::HRESULT, pub Shared: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut i16) -> ::windows::core::HRESULT, pub SetShared: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Flags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwflags: *mut u32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_DesktopSharing\"`, `\"Win32_System_Com\"`*"] @@ -313,11 +308,9 @@ impl IRDPSRAPIAttendee { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoteName(&self) -> ::windows::core::Result { + pub unsafe fn RemoteName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RemoteName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RemoteName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn ControlLevel(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -411,10 +404,7 @@ unsafe impl ::windows::core::Interface for IRDPSRAPIAttendee { pub struct IRDPSRAPIAttendee_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pid: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub RemoteName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RemoteName: usize, + pub RemoteName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ControlLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut CTRL_LEVEL) -> ::windows::core::HRESULT, pub SetControlLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnewval: CTRL_LEVEL) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] @@ -736,19 +726,12 @@ pub struct IRDPSRAPIClipboardUseEvents_Vtbl { #[repr(transparent)] pub struct IRDPSRAPIDebug(::windows::core::IUnknown); impl IRDPSRAPIDebug { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCLXCmdLine<'a, P0>(&self, clxcmdline: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetCLXCmdLine)(::windows::core::Interface::as_raw(self), clxcmdline.into().abi()).ok() + pub unsafe fn SetCLXCmdLine(&self, clxcmdline: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetCLXCmdLine)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(clxcmdline)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CLXCmdLine(&self) -> ::windows::core::Result { + pub unsafe fn CLXCmdLine(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CLXCmdLine)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CLXCmdLine)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -790,14 +773,8 @@ unsafe impl ::windows::core::Interface for IRDPSRAPIDebug { #[doc(hidden)] pub struct IRDPSRAPIDebug_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub SetCLXCmdLine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clxcmdline: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetCLXCmdLine: usize, - #[cfg(feature = "Win32_Foundation")] - pub CLXCmdLine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pclxcmdline: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CLXCmdLine: usize, + pub SetCLXCmdLine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clxcmdline: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CLXCmdLine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pclxcmdline: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_DesktopSharing\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -904,23 +881,17 @@ pub struct IRDPSRAPIFrameBuffer_Vtbl { pub struct IRDPSRAPIInvitation(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPIInvitation { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ConnectionString(&self) -> ::windows::core::Result { + pub unsafe fn ConnectionString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ConnectionString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ConnectionString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GroupName(&self) -> ::windows::core::Result { + pub unsafe fn GroupName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GroupName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GroupName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Password(&self) -> ::windows::core::Result { + pub unsafe fn Password(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Password)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Password)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn AttendeeLimit(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1003,18 +974,9 @@ unsafe impl ::windows::core::Interface for IRDPSRAPIInvitation { #[doc(hidden)] pub struct IRDPSRAPIInvitation_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub ConnectionString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ConnectionString: usize, - #[cfg(feature = "Win32_Foundation")] - pub GroupName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GroupName: usize, - #[cfg(feature = "Win32_Foundation")] - pub Password: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Password: usize, + pub ConnectionString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GroupName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Password: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub AttendeeLimit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut i32) -> ::windows::core::HRESULT, pub SetAttendeeLimit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: i32) -> ::windows::core::HRESULT, pub Revoked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut i16) -> ::windows::core::HRESULT, @@ -1043,16 +1005,11 @@ impl IRDPSRAPIInvitationManager { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Count)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateInvitation<'a, P0, P1, P2>(&self, bstrauthstring: P0, bstrgroupname: P1, bstrpassword: P2, attendeelimit: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateInvitation(&self, bstrauthstring: &::windows::core::BSTR, bstrgroupname: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR, attendeelimit: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateInvitation)(::windows::core::Interface::as_raw(self), bstrauthstring.into().abi(), bstrgroupname.into().abi(), bstrpassword.into().abi(), attendeelimit, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateInvitation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrauthstring), ::core::mem::transmute_copy(bstrgroupname), ::core::mem::transmute_copy(bstrpassword), attendeelimit, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1127,9 +1084,9 @@ pub struct IRDPSRAPIInvitationManager_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_Item: usize, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreateInvitation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrauthstring: ::core::mem::ManuallyDrop, bstrgroupname: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop, attendeelimit: i32, ppinvitation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreateInvitation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrauthstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrgroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, attendeelimit: i32, ppinvitation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreateInvitation: usize, } #[doc = "*Required features: `\"Win32_System_DesktopSharing\"`*"] @@ -1185,14 +1142,9 @@ pub struct IRDPSRAPIPerfCounterLogger_Vtbl { #[repr(transparent)] pub struct IRDPSRAPIPerfCounterLoggingManager(::windows::core::IUnknown); impl IRDPSRAPIPerfCounterLoggingManager { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateLogger<'a, P0>(&self, bstrcountername: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn CreateLogger(&self, bstrcountername: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateLogger)(::windows::core::Interface::as_raw(self), bstrcountername.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateLogger)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcountername), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -1234,10 +1186,7 @@ unsafe impl ::windows::core::Interface for IRDPSRAPIPerfCounterLoggingManager { #[doc(hidden)] pub struct IRDPSRAPIPerfCounterLoggingManager_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub CreateLogger: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcountername: ::core::mem::ManuallyDrop, pplogger: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CreateLogger: usize, + pub CreateLogger: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcountername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pplogger: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_DesktopSharing\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1247,21 +1196,17 @@ pub struct IRDPSRAPISessionProperties(::windows::core::IUnknown); impl IRDPSRAPISessionProperties { #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn get_Property<'a, P0>(&self, propertyname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn get_Property(&self, propertyname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_Property)(::windows::core::Interface::as_raw(self), propertyname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_Property)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(propertyname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn put_Property<'a, P0, P1>(&self, propertyname: P0, newval: P1) -> ::windows::core::Result<()> + pub unsafe fn put_Property<'a, P0>(&self, propertyname: &::windows::core::BSTR, newval: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).put_Property)(::windows::core::Interface::as_raw(self), propertyname.into().abi(), newval.into().abi()).ok() + (::windows::core::Interface::vtable(self).put_Property)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(propertyname), newval.into().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1331,11 +1276,11 @@ unsafe impl ::windows::core::Interface for IRDPSRAPISessionProperties { pub struct IRDPSRAPISessionProperties_Vtbl { pub base__: super::Com::IDispatch_Vtbl, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub get_Property: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop, pval: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, + pub get_Property: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pval: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_Property: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub put_Property: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub put_Property: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] put_Property: usize, } @@ -1394,13 +1339,8 @@ impl IRDPSRAPISharingSession { pub unsafe fn Resume(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Resume)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ConnectToClient<'a, P0>(&self, bstrconnectionstring: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ConnectToClient)(::windows::core::Interface::as_raw(self), bstrconnectionstring.into().abi()).ok() + pub unsafe fn ConnectToClient(&self, bstrconnectionstring: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ConnectToClient)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrconnectionstring)).ok() } pub unsafe fn SetDesktopSharedRect(&self, left: i32, top: i32, right: i32, bottom: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetDesktopSharedRect)(::windows::core::Interface::as_raw(self), left, top, right, bottom).ok() @@ -1501,10 +1441,7 @@ pub struct IRDPSRAPISharingSession_Vtbl { VirtualChannelManager: usize, pub Pause: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Resume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ConnectToClient: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrconnectionstring: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ConnectToClient: usize, + pub ConnectToClient: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrconnectionstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetDesktopSharedRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, left: i32, top: i32, right: i32, bottom: i32) -> ::windows::core::HRESULT, pub GetDesktopSharedRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pleft: *mut i32, ptop: *mut i32, pright: *mut i32, pbottom: *mut i32) -> ::windows::core::HRESULT, } @@ -1563,13 +1500,8 @@ impl IRDPSRAPISharingSession2 { pub unsafe fn Resume(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Resume)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ConnectToClient<'a, P0>(&self, bstrconnectionstring: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.ConnectToClient)(::windows::core::Interface::as_raw(self), bstrconnectionstring.into().abi()).ok() + pub unsafe fn ConnectToClient(&self, bstrconnectionstring: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.ConnectToClient)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrconnectionstring)).ok() } pub unsafe fn SetDesktopSharedRect(&self, left: i32, top: i32, right: i32, bottom: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetDesktopSharedRect)(::windows::core::Interface::as_raw(self), left, top, right, bottom).ok() @@ -1577,15 +1509,11 @@ impl IRDPSRAPISharingSession2 { pub unsafe fn GetDesktopSharedRect(&self, pleft: &mut i32, ptop: &mut i32, pright: &mut i32, pbottom: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetDesktopSharedRect)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pleft), ::core::mem::transmute(ptop), ::core::mem::transmute(pright), ::core::mem::transmute(pbottom)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ConnectUsingTransportStream<'a, P0, P1, P2>(&self, pstream: P0, bstrgroup: P1, bstrauthenticatedattendeename: P2) -> ::windows::core::Result<()> + pub unsafe fn ConnectUsingTransportStream<'a, P0>(&self, pstream: P0, bstrgroup: &::windows::core::BSTR, bstrauthenticatedattendeename: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IRDPSRAPITransportStream>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).ConnectUsingTransportStream)(::windows::core::Interface::as_raw(self), pstream.into().abi(), bstrgroup.into().abi(), bstrauthenticatedattendeename.into().abi()).ok() + (::windows::core::Interface::vtable(self).ConnectUsingTransportStream)(::windows::core::Interface::as_raw(self), pstream.into().abi(), ::core::mem::transmute_copy(bstrgroup), ::core::mem::transmute_copy(bstrauthenticatedattendeename)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1686,10 +1614,7 @@ unsafe impl ::windows::core::Interface for IRDPSRAPISharingSession2 { #[doc(hidden)] pub struct IRDPSRAPISharingSession2_Vtbl { pub base__: IRDPSRAPISharingSession_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub ConnectUsingTransportStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstream: *mut ::core::ffi::c_void, bstrgroup: ::core::mem::ManuallyDrop, bstrauthenticatedattendeename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ConnectUsingTransportStream: usize, + pub ConnectUsingTransportStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstream: *mut ::core::ffi::c_void, bstrgroup: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrauthenticatedattendeename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub FrameBuffer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -1713,21 +1638,17 @@ impl IRDPSRAPITcpConnectionInfo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).LocalPort)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LocalIP(&self) -> ::windows::core::Result { + pub unsafe fn LocalIP(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LocalIP)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LocalIP)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn PeerPort(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).PeerPort)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PeerIP(&self) -> ::windows::core::Result { + pub unsafe fn PeerIP(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PeerIP)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PeerIP)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1798,15 +1719,9 @@ pub struct IRDPSRAPITcpConnectionInfo_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub Protocol: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plprotocol: *mut i32) -> ::windows::core::HRESULT, pub LocalPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plport: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub LocalIP: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbsrlocalip: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LocalIP: usize, + pub LocalIP: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbsrlocalip: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub PeerPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plport: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub PeerIP: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrip: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PeerIP: usize, + pub PeerIP: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrip: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_DesktopSharing\"`*"] #[repr(transparent)] @@ -2053,15 +1968,8 @@ pub struct IRDPSRAPITransportStreamEvents_Vtbl { pub struct IRDPSRAPIViewer(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPIViewer { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Connect<'a, P0, P1, P2>(&self, bstrconnectionstring: P0, bstrname: P1, bstrpassword: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Connect)(::windows::core::Interface::as_raw(self), bstrconnectionstring.into().abi(), bstrname.into().abi(), bstrpassword.into().abi()).ok() + pub unsafe fn Connect(&self, bstrconnectionstring: &::windows::core::BSTR, bstrname: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Connect)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrconnectionstring), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute_copy(bstrpassword)).ok() } pub unsafe fn Disconnect(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Disconnect)(::windows::core::Interface::as_raw(self)).ok() @@ -2100,19 +2008,12 @@ impl IRDPSRAPIViewer { pub unsafe fn RequestControl(&self, ctrllevel: CTRL_LEVEL) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RequestControl)(::windows::core::Interface::as_raw(self), ctrllevel).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDisconnectedText<'a, P0>(&self, bstrdisconnectedtext: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDisconnectedText)(::windows::core::Interface::as_raw(self), bstrdisconnectedtext.into().abi()).ok() + pub unsafe fn SetDisconnectedText(&self, bstrdisconnectedtext: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDisconnectedText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdisconnectedtext)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisconnectedText(&self) -> ::windows::core::Result { + pub unsafe fn DisconnectedText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DisconnectedText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DisconnectedText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn RequestColorDepthChange(&self, bpp: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RequestColorDepthChange)(::windows::core::Interface::as_raw(self), bpp).ok() @@ -2123,16 +2024,9 @@ impl IRDPSRAPIViewer { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Properties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StartReverseConnectListener<'a, P0, P1, P2>(&self, bstrconnectionstring: P0, bstrusername: P1, bstrpassword: P2) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn StartReverseConnectListener(&self, bstrconnectionstring: &::windows::core::BSTR, bstrusername: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).StartReverseConnectListener)(::windows::core::Interface::as_raw(self), bstrconnectionstring.into().abi(), bstrusername.into().abi(), bstrpassword.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).StartReverseConnectListener)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrconnectionstring), ::core::mem::transmute_copy(bstrusername), ::core::mem::transmute_copy(bstrpassword), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -2201,10 +2095,7 @@ unsafe impl ::windows::core::Interface for IRDPSRAPIViewer { #[doc(hidden)] pub struct IRDPSRAPIViewer_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Connect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrconnectionstring: ::core::mem::ManuallyDrop, bstrname: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Connect: usize, + pub Connect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrconnectionstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Disconnect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Attendees: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -2225,23 +2116,14 @@ pub struct IRDPSRAPIViewer_Vtbl { pub SetSmartSizing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vbsmartsizing: i16) -> ::windows::core::HRESULT, pub SmartSizing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvbsmartsizing: *mut i16) -> ::windows::core::HRESULT, pub RequestControl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ctrllevel: CTRL_LEVEL) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetDisconnectedText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdisconnectedtext: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDisconnectedText: usize, - #[cfg(feature = "Win32_Foundation")] - pub DisconnectedText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdisconnectedtext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DisconnectedText: usize, + pub SetDisconnectedText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdisconnectedtext: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DisconnectedText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdisconnectedtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub RequestColorDepthChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bpp: i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Properties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Properties: usize, - #[cfg(feature = "Win32_Foundation")] - pub StartReverseConnectListener: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrconnectionstring: ::core::mem::ManuallyDrop, bstrusername: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop, pbstrreverseconnectstring: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - StartReverseConnectListener: usize, + pub StartReverseConnectListener: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrconnectionstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrreverseconnectstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_DesktopSharing\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2249,22 +2131,15 @@ pub struct IRDPSRAPIViewer_Vtbl { pub struct IRDPSRAPIVirtualChannel(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IRDPSRAPIVirtualChannel { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SendData<'a, P0>(&self, bstrdata: P0, lattendeeid: i32, channelsendflags: u32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SendData)(::windows::core::Interface::as_raw(self), bstrdata.into().abi(), lattendeeid, channelsendflags).ok() + pub unsafe fn SendData(&self, bstrdata: &::windows::core::BSTR, lattendeeid: i32, channelsendflags: u32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SendData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdata), lattendeeid, channelsendflags).ok() } pub unsafe fn SetAccess(&self, lattendeeid: i32, accesstype: CHANNEL_ACCESS_ENUM) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetAccess)(::windows::core::Interface::as_raw(self), lattendeeid, accesstype).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Flags(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2341,15 +2216,9 @@ unsafe impl ::windows::core::Interface for IRDPSRAPIVirtualChannel { #[doc(hidden)] pub struct IRDPSRAPIVirtualChannel_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub SendData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdata: ::core::mem::ManuallyDrop, lattendeeid: i32, channelsendflags: u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SendData: usize, + pub SendData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lattendeeid: i32, channelsendflags: u32) -> ::windows::core::HRESULT, pub SetAccess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lattendeeid: i32, accesstype: CHANNEL_ACCESS_ENUM) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Flags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plflags: *mut i32) -> ::windows::core::HRESULT, pub Priority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppriority: *mut CHANNEL_PRIORITY) -> ::windows::core::HRESULT, } @@ -2372,14 +2241,11 @@ impl IRDPSRAPIVirtualChannelManager { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), item.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateVirtualChannel<'a, P0>(&self, bstrchannelname: P0, priority: CHANNEL_PRIORITY, channelflags: u32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateVirtualChannel(&self, bstrchannelname: &::windows::core::BSTR, priority: CHANNEL_PRIORITY, channelflags: u32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateVirtualChannel)(::windows::core::Interface::as_raw(self), bstrchannelname.into().abi(), priority, channelflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateVirtualChannel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrchannelname), priority, channelflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -2453,9 +2319,9 @@ pub struct IRDPSRAPIVirtualChannelManager_Vtbl { pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, item: ::core::mem::ManuallyDrop, pchannel: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_Item: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreateVirtualChannel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrchannelname: ::core::mem::ManuallyDrop, priority: CHANNEL_PRIORITY, channelflags: u32, ppchannel: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreateVirtualChannel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrchannelname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, priority: CHANNEL_PRIORITY, channelflags: u32, ppchannel: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreateVirtualChannel: usize, } #[doc = "*Required features: `\"Win32_System_DesktopSharing\"`, `\"Win32_System_Com\"`*"] @@ -2481,11 +2347,9 @@ impl IRDPSRAPIWindow { pub unsafe fn SetShared(&self, newval: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetShared)(::windows::core::Interface::as_raw(self), newval).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Show(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Show)(::windows::core::Interface::as_raw(self)).ok() @@ -2568,10 +2432,7 @@ pub struct IRDPSRAPIWindow_Vtbl { Application: usize, pub Shared: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut i16) -> ::windows::core::HRESULT, pub SetShared: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Show: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Flags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwflags: *mut u32) -> ::windows::core::HRESULT, } diff --git a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/impl.rs index e731919f3a..c7449190bb 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/impl.rs @@ -93,7 +93,7 @@ impl DebugBaseEventCallbacksWide_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IActiveScript_Impl: Sized { fn SetScriptSite(&self, pass: &::core::option::Option) -> ::windows::core::Result<()>; fn GetScriptSite(&self, riid: *const ::windows::core::GUID, ppvobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; @@ -109,9 +109,9 @@ pub trait IActiveScript_Impl: Sized { fn InterruptScriptThread(&self, stidthread: u32, pexcepinfo: *const super::super::Com::EXCEPINFO, dwflags: u32) -> ::windows::core::Result<()>; fn Clone(&self) -> ::windows::core::Result; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IActiveScript {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IActiveScript_Vtbl { pub const fn new, Impl: IActiveScript_Impl, const OFFSET: isize>() -> IActiveScript_Vtbl { unsafe extern "system" fn SetScriptSite, Impl: IActiveScript_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pass: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -249,7 +249,7 @@ pub trait IActiveScriptAuthor_Impl: Sized { fn RemoveNamedItem(&self, pszname: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn AddTypeLib(&self, rguidtypelib: *const ::windows::core::GUID, dwmajor: u32, dwminor: u32, dwflags: u32) -> ::windows::core::Result<()>; fn RemoveTypeLib(&self, rguidtypelib: *const ::windows::core::GUID, dwmajor: u32, dwminor: u32) -> ::windows::core::Result<()>; - fn GetChars(&self, frequestedlist: u32) -> ::windows::core::Result; + fn GetChars(&self, frequestedlist: u32) -> ::windows::core::Result<::windows::core::BSTR>; fn GetInfoFromContext(&self, pszcode: &::windows::core::PCWSTR, cchcode: u32, ichcurrentposition: u32, dwlisttypesrequested: u32, pdwlisttypesprovided: *mut u32, pichlistanchorposition: *mut u32, pichfuncanchorposition: *mut u32, pmemid: *mut i32, picurrentparameter: *mut i32, ppunk: *mut ::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result<()>; fn IsCommitChar(&self, ch: u16) -> ::windows::core::Result; } @@ -331,7 +331,7 @@ impl IActiveScriptAuthor_Vtbl { let this = (*this).get_impl(); this.RemoveTypeLib(::core::mem::transmute_copy(&rguidtypelib), ::core::mem::transmute_copy(&dwmajor), ::core::mem::transmute_copy(&dwminor)).into() } - unsafe extern "system" fn GetChars, Impl: IActiveScriptAuthor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, frequestedlist: u32, pbstrchars: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetChars, Impl: IActiveScriptAuthor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, frequestedlist: u32, pbstrchars: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetChars(::core::mem::transmute_copy(&frequestedlist)) { @@ -481,15 +481,12 @@ impl IActiveScriptDebug64_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IActiveScriptEncode_Impl: Sized { fn EncodeSection(&self, pchin: &::windows::core::PCWSTR, cchin: u32, pchout: &::windows::core::PWSTR, cchout: u32, pcchret: *mut u32) -> ::windows::core::Result<()>; fn DecodeScript(&self, pchin: &::windows::core::PCWSTR, cchin: u32, pchout: &::windows::core::PWSTR, cchout: u32, pcchret: *mut u32) -> ::windows::core::Result<()>; - fn GetEncodeProgId(&self, pbstrout: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetEncodeProgId(&self, pbstrout: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IActiveScriptEncode {} -#[cfg(feature = "Win32_Foundation")] impl IActiveScriptEncode_Vtbl { pub const fn new, Impl: IActiveScriptEncode_Impl, const OFFSET: isize>() -> IActiveScriptEncode_Vtbl { unsafe extern "system" fn EncodeSection, Impl: IActiveScriptEncode_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pchin: ::windows::core::PCWSTR, cchin: u32, pchout: ::windows::core::PWSTR, cchout: u32, pcchret: *mut u32) -> ::windows::core::HRESULT { @@ -502,7 +499,7 @@ impl IActiveScriptEncode_Vtbl { let this = (*this).get_impl(); this.DecodeScript(::core::mem::transmute(&pchin), ::core::mem::transmute_copy(&cchin), ::core::mem::transmute(&pchout), ::core::mem::transmute_copy(&cchout), ::core::mem::transmute_copy(&pcchret)).into() } - unsafe extern "system" fn GetEncodeProgId, Impl: IActiveScriptEncode_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrout: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetEncodeProgId, Impl: IActiveScriptEncode_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetEncodeProgId(::core::mem::transmute_copy(&pbstrout)).into() @@ -518,15 +515,15 @@ impl IActiveScriptEncode_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IActiveScriptError_Impl: Sized { fn GetExceptionInfo(&self) -> ::windows::core::Result; fn GetSourcePosition(&self, pdwsourcecontext: *mut u32, pullinenumber: *mut u32, plcharacterposition: *mut i32) -> ::windows::core::Result<()>; - fn GetSourceLineText(&self) -> ::windows::core::Result; + fn GetSourceLineText(&self) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IActiveScriptError {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IActiveScriptError_Vtbl { pub const fn new, Impl: IActiveScriptError_Impl, const OFFSET: isize>() -> IActiveScriptError_Vtbl { unsafe extern "system" fn GetExceptionInfo, Impl: IActiveScriptError_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pexcepinfo: *mut super::super::Com::EXCEPINFO) -> ::windows::core::HRESULT { @@ -545,7 +542,7 @@ impl IActiveScriptError_Vtbl { let this = (*this).get_impl(); this.GetSourcePosition(::core::mem::transmute_copy(&pdwsourcecontext), ::core::mem::transmute_copy(&pullinenumber), ::core::mem::transmute_copy(&plcharacterposition)).into() } - unsafe extern "system" fn GetSourceLineText, Impl: IActiveScriptError_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsourceline: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSourceLineText, Impl: IActiveScriptError_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsourceline: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetSourceLineText() { @@ -567,13 +564,13 @@ impl IActiveScriptError_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IActiveScriptError64_Impl: Sized + IActiveScriptError_Impl { fn GetSourcePosition64(&self, pdwsourcecontext: *mut u64, pullinenumber: *mut u32, plcharacterposition: *mut i32) -> ::windows::core::Result<()>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IActiveScriptError64 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IActiveScriptError64_Vtbl { pub const fn new, Impl: IActiveScriptError64_Impl, const OFFSET: isize>() -> IActiveScriptError64_Vtbl { unsafe extern "system" fn GetSourcePosition64, Impl: IActiveScriptError64_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdwsourcecontext: *mut u64, pullinenumber: *mut u32, plcharacterposition: *mut i32) -> ::windows::core::HRESULT { @@ -587,14 +584,14 @@ impl IActiveScriptError64_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IActiveScriptErrorDebug_Impl: Sized + IActiveScriptError_Impl { fn GetDocumentContext(&self) -> ::windows::core::Result; fn GetStackFrame(&self) -> ::windows::core::Result; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IActiveScriptErrorDebug {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IActiveScriptErrorDebug_Vtbl { pub const fn new, Impl: IActiveScriptErrorDebug_Impl, const OFFSET: isize>() -> IActiveScriptErrorDebug_Vtbl { unsafe extern "system" fn GetDocumentContext, Impl: IActiveScriptErrorDebug_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppssc: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -669,16 +666,13 @@ impl IActiveScriptGarbageCollector_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IActiveScriptHostEncode_Impl: Sized { - fn EncodeScriptHostFile(&self, bstrinfile: &super::super::super::Foundation::BSTR, pbstroutfile: *mut super::super::super::Foundation::BSTR, cflags: u32, bstrdefaultlang: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn EncodeScriptHostFile(&self, bstrinfile: &::windows::core::BSTR, pbstroutfile: *mut ::windows::core::BSTR, cflags: u32, bstrdefaultlang: &::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IActiveScriptHostEncode {} -#[cfg(feature = "Win32_Foundation")] impl IActiveScriptHostEncode_Vtbl { pub const fn new, Impl: IActiveScriptHostEncode_Impl, const OFFSET: isize>() -> IActiveScriptHostEncode_Vtbl { - unsafe extern "system" fn EncodeScriptHostFile, Impl: IActiveScriptHostEncode_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrinfile: ::core::mem::ManuallyDrop, pbstroutfile: *mut super::super::super::Foundation::BSTR, cflags: u32, bstrdefaultlang: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn EncodeScriptHostFile, Impl: IActiveScriptHostEncode_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrinfile: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstroutfile: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, cflags: u32, bstrdefaultlang: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.EncodeScriptHostFile(::core::mem::transmute(&bstrinfile), ::core::mem::transmute_copy(&pbstroutfile), ::core::mem::transmute_copy(&cflags), ::core::mem::transmute(&bstrdefaultlang)).into() @@ -692,7 +686,7 @@ impl IActiveScriptHostEncode_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IActiveScriptParse32_Impl: Sized { fn InitNew(&self) -> ::windows::core::Result<()>; - fn AddScriptlet(&self, pstrdefaultname: &::windows::core::PCWSTR, pstrcode: &::windows::core::PCWSTR, pstritemname: &::windows::core::PCWSTR, pstrsubitemname: &::windows::core::PCWSTR, pstreventname: &::windows::core::PCWSTR, pstrdelimiter: &::windows::core::PCWSTR, dwsourcecontextcookie: u32, ulstartinglinenumber: u32, dwflags: u32, pbstrname: *mut super::super::super::Foundation::BSTR, pexcepinfo: *mut super::super::Com::EXCEPINFO) -> ::windows::core::Result<()>; + fn AddScriptlet(&self, pstrdefaultname: &::windows::core::PCWSTR, pstrcode: &::windows::core::PCWSTR, pstritemname: &::windows::core::PCWSTR, pstrsubitemname: &::windows::core::PCWSTR, pstreventname: &::windows::core::PCWSTR, pstrdelimiter: &::windows::core::PCWSTR, dwsourcecontextcookie: u32, ulstartinglinenumber: u32, dwflags: u32, pbstrname: *mut ::windows::core::BSTR, pexcepinfo: *mut super::super::Com::EXCEPINFO) -> ::windows::core::Result<()>; fn ParseScriptText(&self, pstrcode: &::windows::core::PCWSTR, pstritemname: &::windows::core::PCWSTR, punkcontext: &::core::option::Option<::windows::core::IUnknown>, pstrdelimiter: &::windows::core::PCWSTR, dwsourcecontextcookie: u32, ulstartinglinenumber: u32, dwflags: u32, pvarresult: *mut super::super::Com::VARIANT, pexcepinfo: *mut super::super::Com::EXCEPINFO) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -705,7 +699,7 @@ impl IActiveScriptParse32_Vtbl { let this = (*this).get_impl(); this.InitNew().into() } - unsafe extern "system" fn AddScriptlet, Impl: IActiveScriptParse32_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrdefaultname: ::windows::core::PCWSTR, pstrcode: ::windows::core::PCWSTR, pstritemname: ::windows::core::PCWSTR, pstrsubitemname: ::windows::core::PCWSTR, pstreventname: ::windows::core::PCWSTR, pstrdelimiter: ::windows::core::PCWSTR, dwsourcecontextcookie: u32, ulstartinglinenumber: u32, dwflags: u32, pbstrname: *mut super::super::super::Foundation::BSTR, pexcepinfo: *mut super::super::Com::EXCEPINFO) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddScriptlet, Impl: IActiveScriptParse32_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrdefaultname: ::windows::core::PCWSTR, pstrcode: ::windows::core::PCWSTR, pstritemname: ::windows::core::PCWSTR, pstrsubitemname: ::windows::core::PCWSTR, pstreventname: ::windows::core::PCWSTR, pstrdelimiter: ::windows::core::PCWSTR, dwsourcecontextcookie: u32, ulstartinglinenumber: u32, dwflags: u32, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pexcepinfo: *mut super::super::Com::EXCEPINFO) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddScriptlet(::core::mem::transmute(&pstrdefaultname), ::core::mem::transmute(&pstrcode), ::core::mem::transmute(&pstritemname), ::core::mem::transmute(&pstrsubitemname), ::core::mem::transmute(&pstreventname), ::core::mem::transmute(&pstrdelimiter), ::core::mem::transmute_copy(&dwsourcecontextcookie), ::core::mem::transmute_copy(&ulstartinglinenumber), ::core::mem::transmute_copy(&dwflags), ::core::mem::transmute_copy(&pbstrname), ::core::mem::transmute_copy(&pexcepinfo)) @@ -730,7 +724,7 @@ impl IActiveScriptParse32_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IActiveScriptParse64_Impl: Sized { fn InitNew(&self) -> ::windows::core::Result<()>; - fn AddScriptlet(&self, pstrdefaultname: &::windows::core::PCWSTR, pstrcode: &::windows::core::PCWSTR, pstritemname: &::windows::core::PCWSTR, pstrsubitemname: &::windows::core::PCWSTR, pstreventname: &::windows::core::PCWSTR, pstrdelimiter: &::windows::core::PCWSTR, dwsourcecontextcookie: u64, ulstartinglinenumber: u32, dwflags: u32, pbstrname: *mut super::super::super::Foundation::BSTR, pexcepinfo: *mut super::super::Com::EXCEPINFO) -> ::windows::core::Result<()>; + fn AddScriptlet(&self, pstrdefaultname: &::windows::core::PCWSTR, pstrcode: &::windows::core::PCWSTR, pstritemname: &::windows::core::PCWSTR, pstrsubitemname: &::windows::core::PCWSTR, pstreventname: &::windows::core::PCWSTR, pstrdelimiter: &::windows::core::PCWSTR, dwsourcecontextcookie: u64, ulstartinglinenumber: u32, dwflags: u32, pbstrname: *mut ::windows::core::BSTR, pexcepinfo: *mut super::super::Com::EXCEPINFO) -> ::windows::core::Result<()>; fn ParseScriptText(&self, pstrcode: &::windows::core::PCWSTR, pstritemname: &::windows::core::PCWSTR, punkcontext: &::core::option::Option<::windows::core::IUnknown>, pstrdelimiter: &::windows::core::PCWSTR, dwsourcecontextcookie: u64, ulstartinglinenumber: u32, dwflags: u32, pvarresult: *mut super::super::Com::VARIANT, pexcepinfo: *mut super::super::Com::EXCEPINFO) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -743,7 +737,7 @@ impl IActiveScriptParse64_Vtbl { let this = (*this).get_impl(); this.InitNew().into() } - unsafe extern "system" fn AddScriptlet, Impl: IActiveScriptParse64_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrdefaultname: ::windows::core::PCWSTR, pstrcode: ::windows::core::PCWSTR, pstritemname: ::windows::core::PCWSTR, pstrsubitemname: ::windows::core::PCWSTR, pstreventname: ::windows::core::PCWSTR, pstrdelimiter: ::windows::core::PCWSTR, dwsourcecontextcookie: u64, ulstartinglinenumber: u32, dwflags: u32, pbstrname: *mut super::super::super::Foundation::BSTR, pexcepinfo: *mut super::super::Com::EXCEPINFO) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddScriptlet, Impl: IActiveScriptParse64_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrdefaultname: ::windows::core::PCWSTR, pstrcode: ::windows::core::PCWSTR, pstritemname: ::windows::core::PCWSTR, pstrsubitemname: ::windows::core::PCWSTR, pstreventname: ::windows::core::PCWSTR, pstrdelimiter: ::windows::core::PCWSTR, dwsourcecontextcookie: u64, ulstartinglinenumber: u32, dwflags: u32, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pexcepinfo: *mut super::super::Com::EXCEPINFO) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddScriptlet(::core::mem::transmute(&pstrdefaultname), ::core::mem::transmute(&pstrcode), ::core::mem::transmute(&pstritemname), ::core::mem::transmute(&pstrsubitemname), ::core::mem::transmute(&pstreventname), ::core::mem::transmute(&pstrdelimiter), ::core::mem::transmute_copy(&dwsourcecontextcookie), ::core::mem::transmute_copy(&ulstartinglinenumber), ::core::mem::transmute_copy(&dwflags), ::core::mem::transmute_copy(&pbstrname), ::core::mem::transmute_copy(&pexcepinfo)) @@ -1118,16 +1112,13 @@ impl IActiveScriptProfilerControl5_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IActiveScriptProfilerHeapEnum_Impl: Sized { fn Next(&self, celt: u32, heapobjects: *mut *mut PROFILER_HEAP_OBJECT, pceltfetched: *mut u32) -> ::windows::core::Result<()>; fn GetOptionalInfo(&self, heapobject: *const PROFILER_HEAP_OBJECT, celt: u32, optionalinfo: *mut PROFILER_HEAP_OBJECT_OPTIONAL_INFO) -> ::windows::core::Result<()>; fn FreeObjectAndOptionalInfo(&self, celt: u32, heapobjects: *const *const PROFILER_HEAP_OBJECT) -> ::windows::core::Result<()>; fn GetNameIdMap(&self, pnamelist: *mut *mut *mut ::windows::core::PWSTR, pcelt: *mut u32) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IActiveScriptProfilerHeapEnum {} -#[cfg(feature = "Win32_Foundation")] impl IActiveScriptProfilerHeapEnum_Vtbl { pub const fn new, Impl: IActiveScriptProfilerHeapEnum_Impl, const OFFSET: isize>() -> IActiveScriptProfilerHeapEnum_Vtbl { unsafe extern "system" fn Next, Impl: IActiveScriptProfilerHeapEnum_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, celt: u32, heapobjects: *mut *mut PROFILER_HEAP_OBJECT, pceltfetched: *mut u32) -> ::windows::core::HRESULT { @@ -1225,7 +1216,7 @@ impl IActiveScriptSIPInfo_Vtbl { pub trait IActiveScriptSite_Impl: Sized { fn GetLCID(&self) -> ::windows::core::Result; fn GetItemInfo(&self, pstrname: &::windows::core::PCWSTR, dwreturnmask: u32, ppiunkitem: *mut ::core::option::Option<::windows::core::IUnknown>, ppti: *mut ::core::option::Option) -> ::windows::core::Result<()>; - fn GetDocVersionString(&self) -> ::windows::core::Result; + fn GetDocVersionString(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn OnScriptTerminate(&self, pvarresult: *const super::super::Com::VARIANT, pexcepinfo: *const super::super::Com::EXCEPINFO) -> ::windows::core::Result<()>; fn OnStateChange(&self, ssscriptstate: SCRIPTSTATE) -> ::windows::core::Result<()>; fn OnScriptError(&self, pscripterror: &::core::option::Option) -> ::windows::core::Result<()>; @@ -1253,7 +1244,7 @@ impl IActiveScriptSite_Vtbl { let this = (*this).get_impl(); this.GetItemInfo(::core::mem::transmute(&pstrname), ::core::mem::transmute_copy(&dwreturnmask), ::core::mem::transmute_copy(&ppiunkitem), ::core::mem::transmute_copy(&ppti)).into() } - unsafe extern "system" fn GetDocVersionString, Impl: IActiveScriptSite_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrversion: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDocVersionString, Impl: IActiveScriptSite_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrversion: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDocVersionString() { @@ -1585,16 +1576,13 @@ impl IActiveScriptStats_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IActiveScriptStringCompare_Impl: Sized { - fn StrComp(&self, bszstr1: &super::super::super::Foundation::BSTR, bszstr2: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; + fn StrComp(&self, bszstr1: &::windows::core::BSTR, bszstr2: &::windows::core::BSTR) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IActiveScriptStringCompare {} -#[cfg(feature = "Win32_Foundation")] impl IActiveScriptStringCompare_Vtbl { pub const fn new, Impl: IActiveScriptStringCompare_Impl, const OFFSET: isize>() -> IActiveScriptStringCompare_Vtbl { - unsafe extern "system" fn StrComp, Impl: IActiveScriptStringCompare_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bszstr1: ::core::mem::ManuallyDrop, bszstr2: ::core::mem::ManuallyDrop, iret: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn StrComp, Impl: IActiveScriptStringCompare_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bszstr1: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bszstr2: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iret: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.StrComp(::core::mem::transmute(&bszstr1), ::core::mem::transmute(&bszstr2)) { @@ -1638,18 +1626,18 @@ impl IActiveScriptTraceInfo_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IActiveScriptWinRTErrorDebug_Impl: Sized + IActiveScriptError_Impl { - fn GetRestrictedErrorString(&self) -> ::windows::core::Result; - fn GetRestrictedErrorReference(&self) -> ::windows::core::Result; - fn GetCapabilitySid(&self) -> ::windows::core::Result; + fn GetRestrictedErrorString(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetRestrictedErrorReference(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetCapabilitySid(&self) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IActiveScriptWinRTErrorDebug {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IActiveScriptWinRTErrorDebug_Vtbl { pub const fn new, Impl: IActiveScriptWinRTErrorDebug_Impl, const OFFSET: isize>() -> IActiveScriptWinRTErrorDebug_Vtbl { - unsafe extern "system" fn GetRestrictedErrorString, Impl: IActiveScriptWinRTErrorDebug_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, errorstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetRestrictedErrorString, Impl: IActiveScriptWinRTErrorDebug_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, errorstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetRestrictedErrorString() { @@ -1660,7 +1648,7 @@ impl IActiveScriptWinRTErrorDebug_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetRestrictedErrorReference, Impl: IActiveScriptWinRTErrorDebug_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, referencestring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetRestrictedErrorReference, Impl: IActiveScriptWinRTErrorDebug_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, referencestring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetRestrictedErrorReference() { @@ -1671,7 +1659,7 @@ impl IActiveScriptWinRTErrorDebug_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetCapabilitySid, Impl: IActiveScriptWinRTErrorDebug_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, capabilitysid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCapabilitySid, Impl: IActiveScriptWinRTErrorDebug_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, capabilitysid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCapabilitySid() { @@ -1847,14 +1835,11 @@ impl IComparableConcept_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDataModelConcept_Impl: Sized { fn InitializeObject(&self, modelobject: &::core::option::Option, matchingtypesignature: &::core::option::Option, wildcardmatches: &::core::option::Option) -> ::windows::core::Result<()>; - fn GetName(&self) -> ::windows::core::Result; + fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDataModelConcept {} -#[cfg(feature = "Win32_Foundation")] impl IDataModelConcept_Vtbl { pub const fn new, Impl: IDataModelConcept_Impl, const OFFSET: isize>() -> IDataModelConcept_Vtbl { unsafe extern "system" fn InitializeObject, Impl: IDataModelConcept_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, modelobject: *mut ::core::ffi::c_void, matchingtypesignature: *mut ::core::ffi::c_void, wildcardmatches: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -1862,7 +1847,7 @@ impl IDataModelConcept_Vtbl { let this = (*this).get_impl(); this.InitializeObject(::core::mem::transmute(&modelobject), ::core::mem::transmute(&matchingtypesignature), ::core::mem::transmute(&wildcardmatches)).into() } - unsafe extern "system" fn GetName, Impl: IDataModelConcept_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, modelname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetName, Impl: IDataModelConcept_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, modelname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetName() { @@ -2206,9 +2191,9 @@ impl IDataModelNameBinder_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IDataModelScript_Impl: Sized { - fn GetName(&self) -> ::windows::core::Result; + fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Rename(&self, scriptname: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn Populate(&self, contentstream: &::core::option::Option) -> ::windows::core::Result<()>; fn Execute(&self, client: &::core::option::Option) -> ::windows::core::Result<()>; @@ -2216,12 +2201,12 @@ pub trait IDataModelScript_Impl: Sized { fn IsInvocable(&self) -> ::windows::core::Result; fn InvokeMain(&self, client: &::core::option::Option) -> ::windows::core::Result<()>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IDataModelScript {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IDataModelScript_Vtbl { pub const fn new, Impl: IDataModelScript_Impl, const OFFSET: isize>() -> IDataModelScript_Vtbl { - unsafe extern "system" fn GetName, Impl: IDataModelScript_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, scriptname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetName, Impl: IDataModelScript_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, scriptname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetName() { @@ -2300,10 +2285,9 @@ impl IDataModelScriptClient_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDataModelScriptDebug_Impl: Sized { fn GetDebugState(&self) -> ScriptDebugState; - fn GetCurrentPosition(&self, currentposition: *mut ScriptDebugPosition, positionspanend: *mut ScriptDebugPosition, linetext: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetCurrentPosition(&self, currentposition: *mut ScriptDebugPosition, positionspanend: *mut ScriptDebugPosition, linetext: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetStack(&self) -> ::windows::core::Result; fn SetBreakpoint(&self, lineposition: u32, columnposition: u32) -> ::windows::core::Result; fn FindBreakpointById(&self, breakpointid: u64) -> ::windows::core::Result; @@ -2313,9 +2297,7 @@ pub trait IDataModelScriptDebug_Impl: Sized { fn StartDebugging(&self, debugclient: &::core::option::Option) -> ::windows::core::Result<()>; fn StopDebugging(&self, debugclient: &::core::option::Option) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDataModelScriptDebug {} -#[cfg(feature = "Win32_Foundation")] impl IDataModelScriptDebug_Vtbl { pub const fn new, Impl: IDataModelScriptDebug_Impl, const OFFSET: isize>() -> IDataModelScriptDebug_Vtbl { unsafe extern "system" fn GetDebugState, Impl: IDataModelScriptDebug_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ScriptDebugState { @@ -2323,7 +2305,7 @@ impl IDataModelScriptDebug_Vtbl { let this = (*this).get_impl(); this.GetDebugState() } - unsafe extern "system" fn GetCurrentPosition, Impl: IDataModelScriptDebug_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, currentposition: *mut ScriptDebugPosition, positionspanend: *mut ScriptDebugPosition, linetext: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCurrentPosition, Impl: IDataModelScriptDebug_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, currentposition: *mut ScriptDebugPosition, positionspanend: *mut ScriptDebugPosition, linetext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetCurrentPosition(::core::mem::transmute_copy(¤tposition), ::core::mem::transmute_copy(&positionspanend), ::core::mem::transmute_copy(&linetext)).into() @@ -2416,13 +2398,10 @@ impl IDataModelScriptDebug_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDataModelScriptDebug2_Impl: Sized + IDataModelScriptDebug_Impl { fn SetBreakpointAtFunction(&self, functionname: &::windows::core::PCWSTR) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDataModelScriptDebug2 {} -#[cfg(feature = "Win32_Foundation")] impl IDataModelScriptDebug2_Vtbl { pub const fn new, Impl: IDataModelScriptDebug2_Impl, const OFFSET: isize>() -> IDataModelScriptDebug2_Vtbl { unsafe extern "system" fn SetBreakpointAtFunction, Impl: IDataModelScriptDebug2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, functionname: ::windows::core::PCWSTR, breakpoint: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -2442,18 +2421,15 @@ impl IDataModelScriptDebug2_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDataModelScriptDebugBreakpoint_Impl: Sized { fn GetId(&self) -> u64; fn IsEnabled(&self) -> bool; fn Enable(&self); fn Disable(&self); fn Remove(&self); - fn GetPosition(&self, position: *mut ScriptDebugPosition, positionspanend: *mut ScriptDebugPosition, linetext: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetPosition(&self, position: *mut ScriptDebugPosition, positionspanend: *mut ScriptDebugPosition, linetext: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDataModelScriptDebugBreakpoint {} -#[cfg(feature = "Win32_Foundation")] impl IDataModelScriptDebugBreakpoint_Vtbl { pub const fn new, Impl: IDataModelScriptDebugBreakpoint_Impl, const OFFSET: isize>() -> IDataModelScriptDebugBreakpoint_Vtbl { unsafe extern "system" fn GetId, Impl: IDataModelScriptDebugBreakpoint_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> u64 { @@ -2481,7 +2457,7 @@ impl IDataModelScriptDebugBreakpoint_Vtbl { let this = (*this).get_impl(); this.Remove() } - unsafe extern "system" fn GetPosition, Impl: IDataModelScriptDebugBreakpoint_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, position: *mut ScriptDebugPosition, positionspanend: *mut ScriptDebugPosition, linetext: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPosition, Impl: IDataModelScriptDebugBreakpoint_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, position: *mut ScriptDebugPosition, positionspanend: *mut ScriptDebugPosition, linetext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetPosition(::core::mem::transmute_copy(&position), ::core::mem::transmute_copy(&positionspanend), ::core::mem::transmute_copy(&linetext)).into() @@ -2583,22 +2559,19 @@ impl IDataModelScriptDebugStack_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDataModelScriptDebugStackFrame_Impl: Sized { - fn GetName(&self) -> ::windows::core::Result; - fn GetPosition(&self, position: *mut ScriptDebugPosition, positionspanend: *mut ScriptDebugPosition, linetext: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetPosition(&self, position: *mut ScriptDebugPosition, positionspanend: *mut ScriptDebugPosition, linetext: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn IsTransitionPoint(&self) -> ::windows::core::Result; fn GetTransition(&self, transitionscript: *mut ::core::option::Option, istransitioncontiguous: *mut bool) -> ::windows::core::Result<()>; fn Evaluate(&self, pwszexpression: &::windows::core::PCWSTR) -> ::windows::core::Result; fn EnumerateLocals(&self) -> ::windows::core::Result; fn EnumerateArguments(&self) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDataModelScriptDebugStackFrame {} -#[cfg(feature = "Win32_Foundation")] impl IDataModelScriptDebugStackFrame_Vtbl { pub const fn new, Impl: IDataModelScriptDebugStackFrame_Impl, const OFFSET: isize>() -> IDataModelScriptDebugStackFrame_Vtbl { - unsafe extern "system" fn GetName, Impl: IDataModelScriptDebugStackFrame_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetName, Impl: IDataModelScriptDebugStackFrame_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetName() { @@ -2609,7 +2582,7 @@ impl IDataModelScriptDebugStackFrame_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetPosition, Impl: IDataModelScriptDebugStackFrame_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, position: *mut ScriptDebugPosition, positionspanend: *mut ScriptDebugPosition, linetext: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPosition, Impl: IDataModelScriptDebugStackFrame_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, position: *mut ScriptDebugPosition, positionspanend: *mut ScriptDebugPosition, linetext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetPosition(::core::mem::transmute_copy(&position), ::core::mem::transmute_copy(&positionspanend), ::core::mem::transmute_copy(&linetext)).into() @@ -2678,14 +2651,11 @@ impl IDataModelScriptDebugStackFrame_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDataModelScriptDebugVariableSetEnumerator_Impl: Sized { fn Reset(&self) -> ::windows::core::Result<()>; - fn GetNext(&self, variablename: *mut super::super::super::Foundation::BSTR, variablevalue: *mut ::core::option::Option, variablemetadata: *mut ::core::option::Option) -> ::windows::core::Result<()>; + fn GetNext(&self, variablename: *mut ::windows::core::BSTR, variablevalue: *mut ::core::option::Option, variablemetadata: *mut ::core::option::Option) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDataModelScriptDebugVariableSetEnumerator {} -#[cfg(feature = "Win32_Foundation")] impl IDataModelScriptDebugVariableSetEnumerator_Vtbl { pub const fn new, Impl: IDataModelScriptDebugVariableSetEnumerator_Impl, const OFFSET: isize>() -> IDataModelScriptDebugVariableSetEnumerator_Vtbl { unsafe extern "system" fn Reset, Impl: IDataModelScriptDebugVariableSetEnumerator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -2693,7 +2663,7 @@ impl IDataModelScriptDebugVariableSetEnumerator_Vtbl { let this = (*this).get_impl(); this.Reset().into() } - unsafe extern "system" fn GetNext, Impl: IDataModelScriptDebugVariableSetEnumerator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, variablename: *mut super::super::super::Foundation::BSTR, variablevalue: *mut *mut ::core::ffi::c_void, variablemetadata: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetNext, Impl: IDataModelScriptDebugVariableSetEnumerator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, variablename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, variablevalue: *mut *mut ::core::ffi::c_void, variablemetadata: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetNext(::core::mem::transmute_copy(&variablename), ::core::mem::transmute_copy(&variablevalue), ::core::mem::transmute_copy(&variablemetadata)).into() @@ -2820,20 +2790,17 @@ impl IDataModelScriptManager_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDataModelScriptProvider_Impl: Sized { - fn GetName(&self) -> ::windows::core::Result; - fn GetExtension(&self) -> ::windows::core::Result; + fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetExtension(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CreateScript(&self) -> ::windows::core::Result; fn GetDefaultTemplateContent(&self) -> ::windows::core::Result; fn EnumerateTemplates(&self) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDataModelScriptProvider {} -#[cfg(feature = "Win32_Foundation")] impl IDataModelScriptProvider_Vtbl { pub const fn new, Impl: IDataModelScriptProvider_Impl, const OFFSET: isize>() -> IDataModelScriptProvider_Vtbl { - unsafe extern "system" fn GetName, Impl: IDataModelScriptProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetName, Impl: IDataModelScriptProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetName() { @@ -2844,7 +2811,7 @@ impl IDataModelScriptProvider_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetExtension, Impl: IDataModelScriptProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, extension: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetExtension, Impl: IDataModelScriptProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, extension: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetExtension() { @@ -2934,18 +2901,18 @@ impl IDataModelScriptProviderEnumerator_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IDataModelScriptTemplate_Impl: Sized { - fn GetName(&self) -> ::windows::core::Result; - fn GetDescription(&self) -> ::windows::core::Result; + fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetDescription(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetContent(&self) -> ::windows::core::Result; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IDataModelScriptTemplate {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IDataModelScriptTemplate_Vtbl { pub const fn new, Impl: IDataModelScriptTemplate_Impl, const OFFSET: isize>() -> IDataModelScriptTemplate_Vtbl { - unsafe extern "system" fn GetName, Impl: IDataModelScriptTemplate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, templatename: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetName, Impl: IDataModelScriptTemplate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, templatename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetName() { @@ -2956,7 +2923,7 @@ impl IDataModelScriptTemplate_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetDescription, Impl: IDataModelScriptTemplate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, templatedescription: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDescription, Impl: IDataModelScriptTemplate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, templatedescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDescription() { @@ -3754,7 +3721,6 @@ impl IDebugApplication64_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDebugApplicationNode_Impl: Sized + IDebugDocumentInfo_Impl + IDebugDocumentProvider_Impl { fn EnumChildren(&self) -> ::windows::core::Result; fn GetParent(&self) -> ::windows::core::Result; @@ -3763,9 +3729,7 @@ pub trait IDebugApplicationNode_Impl: Sized + IDebugDocumentInfo_Impl + IDebugDo fn Attach(&self, pdanparent: &::core::option::Option) -> ::windows::core::Result<()>; fn Detach(&self) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDebugApplicationNode {} -#[cfg(feature = "Win32_Foundation")] impl IDebugApplicationNode_Vtbl { pub const fn new, Impl: IDebugApplicationNode_Impl, const OFFSET: isize>() -> IDebugApplicationNode_Vtbl { unsafe extern "system" fn EnumChildren, Impl: IDebugApplicationNode_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pperddp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -3905,7 +3869,6 @@ impl IDebugApplicationNodeEvents_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDebugApplicationThread_Impl: Sized + IRemoteDebugApplicationThread_Impl { fn SynchronousCallIntoThread32(&self, pstcb: &::core::option::Option, dwparam1: u32, dwparam2: u32, dwparam3: u32) -> ::windows::core::Result<()>; fn QueryIsCurrentThread(&self) -> ::windows::core::Result<()>; @@ -3913,9 +3876,7 @@ pub trait IDebugApplicationThread_Impl: Sized + IRemoteDebugApplicationThread_Im fn SetDescription(&self, pstrdescription: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn SetStateString(&self, pstrstate: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDebugApplicationThread {} -#[cfg(feature = "Win32_Foundation")] impl IDebugApplicationThread_Vtbl { pub const fn new, Impl: IDebugApplicationThread_Impl, const OFFSET: isize>() -> IDebugApplicationThread_Vtbl { unsafe extern "system" fn SynchronousCallIntoThread32, Impl: IDebugApplicationThread_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstcb: *mut ::core::ffi::c_void, dwparam1: u32, dwparam2: u32, dwparam3: u32) -> ::windows::core::HRESULT { @@ -4080,13 +4041,10 @@ impl IDebugApplicationThread11064_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDebugApplicationThread64_Impl: Sized + IRemoteDebugApplicationThread_Impl + IDebugApplicationThread_Impl { fn SynchronousCallIntoThread64(&self, pstcb: &::core::option::Option, dwparam1: u64, dwparam2: u64, dwparam3: u64) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDebugApplicationThread64 {} -#[cfg(feature = "Win32_Foundation")] impl IDebugApplicationThread64_Vtbl { pub const fn new, Impl: IDebugApplicationThread64_Impl, const OFFSET: isize>() -> IDebugApplicationThread64_Vtbl { unsafe extern "system" fn SynchronousCallIntoThread64, Impl: IDebugApplicationThread64_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstcb: *mut ::core::ffi::c_void, dwparam1: u64, dwparam2: u64, dwparam3: u64) -> ::windows::core::HRESULT { @@ -19871,11 +19829,8 @@ impl IDebugDataSpaces4_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDebugDocument_Impl: Sized + IDebugDocumentInfo_Impl {} -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDebugDocument {} -#[cfg(feature = "Win32_Foundation")] impl IDebugDocument_Vtbl { pub const fn new, Impl: IDebugDocument_Impl, const OFFSET: isize>() -> IDebugDocument_Vtbl { Self { base__: IDebugDocumentInfo_Vtbl::new::() } @@ -20248,8 +20203,8 @@ pub trait IDebugDocumentHost_Impl: Sized { fn GetDeferredText(&self, dwtextstartcookie: u32, pchartext: &::windows::core::PWSTR, pstatextattr: *mut u16, pcnumchars: *mut u32, cmaxchars: u32) -> ::windows::core::Result<()>; fn GetScriptTextAttributes(&self, pstrcode: &::windows::core::PCWSTR, unumcodechars: u32, pstrdelimiter: &::windows::core::PCWSTR, dwflags: u32, pattr: *mut u16) -> ::windows::core::Result<()>; fn OnCreateDocumentContext(&self) -> ::windows::core::Result<::windows::core::IUnknown>; - fn GetPathName(&self, pbstrlongname: *mut super::super::super::Foundation::BSTR, pfisoriginalfile: *mut super::super::super::Foundation::BOOL) -> ::windows::core::Result<()>; - fn GetFileName(&self) -> ::windows::core::Result; + fn GetPathName(&self, pbstrlongname: *mut ::windows::core::BSTR, pfisoriginalfile: *mut super::super::super::Foundation::BOOL) -> ::windows::core::Result<()>; + fn GetFileName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn NotifyChanged(&self) -> ::windows::core::Result<()>; } #[cfg(feature = "Win32_Foundation")] @@ -20278,12 +20233,12 @@ impl IDebugDocumentHost_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetPathName, Impl: IDebugDocumentHost_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrlongname: *mut super::super::super::Foundation::BSTR, pfisoriginalfile: *mut super::super::super::Foundation::BOOL) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPathName, Impl: IDebugDocumentHost_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrlongname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfisoriginalfile: *mut super::super::super::Foundation::BOOL) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetPathName(::core::mem::transmute_copy(&pbstrlongname), ::core::mem::transmute_copy(&pfisoriginalfile)).into() } - unsafe extern "system" fn GetFileName, Impl: IDebugDocumentHost_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrshortname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFileName, Impl: IDebugDocumentHost_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrshortname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetFileName() { @@ -20313,17 +20268,14 @@ impl IDebugDocumentHost_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDebugDocumentInfo_Impl: Sized { - fn GetName(&self, dnt: DOCUMENTNAMETYPE) -> ::windows::core::Result; + fn GetName(&self, dnt: DOCUMENTNAMETYPE) -> ::windows::core::Result<::windows::core::BSTR>; fn GetDocumentClassId(&self) -> ::windows::core::Result<::windows::core::GUID>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDebugDocumentInfo {} -#[cfg(feature = "Win32_Foundation")] impl IDebugDocumentInfo_Vtbl { pub const fn new, Impl: IDebugDocumentInfo_Impl, const OFFSET: isize>() -> IDebugDocumentInfo_Vtbl { - unsafe extern "system" fn GetName, Impl: IDebugDocumentInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dnt: DOCUMENTNAMETYPE, pbstrname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetName, Impl: IDebugDocumentInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dnt: DOCUMENTNAMETYPE, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetName(::core::mem::transmute_copy(&dnt)) { @@ -20355,13 +20307,10 @@ impl IDebugDocumentInfo_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDebugDocumentProvider_Impl: Sized + IDebugDocumentInfo_Impl { fn GetDocument(&self) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDebugDocumentProvider {} -#[cfg(feature = "Win32_Foundation")] impl IDebugDocumentProvider_Vtbl { pub const fn new, Impl: IDebugDocumentProvider_Impl, const OFFSET: isize>() -> IDebugDocumentProvider_Vtbl { unsafe extern "system" fn GetDocument, Impl: IDebugDocumentProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppssd: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -20381,7 +20330,6 @@ impl IDebugDocumentProvider_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDebugDocumentText_Impl: Sized + IDebugDocumentInfo_Impl + IDebugDocument_Impl { fn GetDocumentAttributes(&self) -> ::windows::core::Result; fn GetSize(&self, pcnumlines: *mut u32, pcnumchars: *mut u32) -> ::windows::core::Result<()>; @@ -20391,9 +20339,7 @@ pub trait IDebugDocumentText_Impl: Sized + IDebugDocumentInfo_Impl + IDebugDocum fn GetPositionOfContext(&self, psc: &::core::option::Option, pccharacterposition: *mut u32, cnumchars: *mut u32) -> ::windows::core::Result<()>; fn GetContextOfPosition(&self, ccharacterposition: u32, cnumchars: u32) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDebugDocumentText {} -#[cfg(feature = "Win32_Foundation")] impl IDebugDocumentText_Vtbl { pub const fn new, Impl: IDebugDocumentText_Impl, const OFFSET: isize>() -> IDebugDocumentText_Vtbl { unsafe extern "system" fn GetDocumentAttributes, Impl: IDebugDocumentText_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ptextdocattr: *mut u32) -> ::windows::core::HRESULT { @@ -20464,15 +20410,12 @@ impl IDebugDocumentText_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDebugDocumentTextAuthor_Impl: Sized + IDebugDocumentInfo_Impl + IDebugDocument_Impl + IDebugDocumentText_Impl { fn InsertText(&self, ccharacterposition: u32, cnumtoinsert: u32, pchartext: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn RemoveText(&self, ccharacterposition: u32, cnumtoremove: u32) -> ::windows::core::Result<()>; fn ReplaceText(&self, ccharacterposition: u32, cnumtoreplace: u32, pchartext: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDebugDocumentTextAuthor {} -#[cfg(feature = "Win32_Foundation")] impl IDebugDocumentTextAuthor_Vtbl { pub const fn new, Impl: IDebugDocumentTextAuthor_Impl, const OFFSET: isize>() -> IDebugDocumentTextAuthor_Vtbl { unsafe extern "system" fn InsertText, Impl: IDebugDocumentTextAuthor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ccharacterposition: u32, cnumtoinsert: u32, pchartext: ::windows::core::PCWSTR) -> ::windows::core::HRESULT { @@ -20558,8 +20501,8 @@ impl IDebugDocumentTextEvents_Vtbl { } #[cfg(feature = "Win32_Foundation")] pub trait IDebugDocumentTextExternalAuthor_Impl: Sized { - fn GetPathName(&self, pbstrlongname: *mut super::super::super::Foundation::BSTR, pfisoriginalfile: *mut super::super::super::Foundation::BOOL) -> ::windows::core::Result<()>; - fn GetFileName(&self) -> ::windows::core::Result; + fn GetPathName(&self, pbstrlongname: *mut ::windows::core::BSTR, pfisoriginalfile: *mut super::super::super::Foundation::BOOL) -> ::windows::core::Result<()>; + fn GetFileName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn NotifyChanged(&self) -> ::windows::core::Result<()>; } #[cfg(feature = "Win32_Foundation")] @@ -20567,12 +20510,12 @@ impl ::windows::core::RuntimeName for IDebugDocumentTextExternalAuthor {} #[cfg(feature = "Win32_Foundation")] impl IDebugDocumentTextExternalAuthor_Vtbl { pub const fn new, Impl: IDebugDocumentTextExternalAuthor_Impl, const OFFSET: isize>() -> IDebugDocumentTextExternalAuthor_Vtbl { - unsafe extern "system" fn GetPathName, Impl: IDebugDocumentTextExternalAuthor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrlongname: *mut super::super::super::Foundation::BSTR, pfisoriginalfile: *mut super::super::super::Foundation::BOOL) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPathName, Impl: IDebugDocumentTextExternalAuthor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrlongname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfisoriginalfile: *mut super::super::super::Foundation::BOOL) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetPathName(::core::mem::transmute_copy(&pbstrlongname), ::core::mem::transmute_copy(&pfisoriginalfile)).into() } - unsafe extern "system" fn GetFileName, Impl: IDebugDocumentTextExternalAuthor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrshortname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFileName, Impl: IDebugDocumentTextExternalAuthor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrshortname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetFileName() { @@ -20976,17 +20919,14 @@ impl IDebugEventContextCallbacks_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDebugExpression_Impl: Sized { fn Start(&self, pdecb: &::core::option::Option) -> ::windows::core::Result<()>; fn Abort(&self) -> ::windows::core::Result<()>; fn QueryIsComplete(&self) -> ::windows::core::Result<()>; - fn GetResultAsString(&self, phrresult: *mut ::windows::core::HRESULT, pbstrresult: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetResultAsString(&self, phrresult: *mut ::windows::core::HRESULT, pbstrresult: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetResultAsDebugProperty(&self, phrresult: *mut ::windows::core::HRESULT, ppdp: *mut ::core::option::Option) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDebugExpression {} -#[cfg(feature = "Win32_Foundation")] impl IDebugExpression_Vtbl { pub const fn new, Impl: IDebugExpression_Impl, const OFFSET: isize>() -> IDebugExpression_Vtbl { unsafe extern "system" fn Start, Impl: IDebugExpression_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdecb: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -21004,7 +20944,7 @@ impl IDebugExpression_Vtbl { let this = (*this).get_impl(); this.QueryIsComplete().into() } - unsafe extern "system" fn GetResultAsString, Impl: IDebugExpression_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, phrresult: *mut ::windows::core::HRESULT, pbstrresult: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetResultAsString, Impl: IDebugExpression_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, phrresult: *mut ::windows::core::HRESULT, pbstrresult: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetResultAsString(::core::mem::transmute_copy(&phrresult), ::core::mem::transmute_copy(&pbstrresult)).into() @@ -21044,14 +20984,11 @@ impl IDebugExpressionCallBack_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDebugExpressionContext_Impl: Sized { fn ParseLanguageText(&self, pstrcode: &::windows::core::PCWSTR, nradix: u32, pstrdelimiter: &::windows::core::PCWSTR, dwflags: u32) -> ::windows::core::Result; - fn GetLanguageInfo(&self, pbstrlanguagename: *mut super::super::super::Foundation::BSTR, planguageid: *mut ::windows::core::GUID) -> ::windows::core::Result<()>; + fn GetLanguageInfo(&self, pbstrlanguagename: *mut ::windows::core::BSTR, planguageid: *mut ::windows::core::GUID) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDebugExpressionContext {} -#[cfg(feature = "Win32_Foundation")] impl IDebugExpressionContext_Vtbl { pub const fn new, Impl: IDebugExpressionContext_Impl, const OFFSET: isize>() -> IDebugExpressionContext_Vtbl { unsafe extern "system" fn ParseLanguageText, Impl: IDebugExpressionContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrcode: ::windows::core::PCWSTR, nradix: u32, pstrdelimiter: ::windows::core::PCWSTR, dwflags: u32, ppe: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -21065,7 +21002,7 @@ impl IDebugExpressionContext_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetLanguageInfo, Impl: IDebugExpressionContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrlanguagename: *mut super::super::super::Foundation::BSTR, planguageid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetLanguageInfo, Impl: IDebugExpressionContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrlanguagename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, planguageid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetLanguageInfo(::core::mem::transmute_copy(&pbstrlanguagename), ::core::mem::transmute_copy(&planguageid)).into() @@ -21124,16 +21061,16 @@ impl IDebugExtendedProperty_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IDebugFormatter_Impl: Sized { - fn GetStringForVariant(&self, pvar: *const super::super::Com::VARIANT, nradix: u32) -> ::windows::core::Result; + fn GetStringForVariant(&self, pvar: *const super::super::Com::VARIANT, nradix: u32) -> ::windows::core::Result<::windows::core::BSTR>; fn GetVariantForString(&self, pwstrvalue: &::windows::core::PCWSTR) -> ::windows::core::Result; - fn GetStringForVarType(&self, vt: super::super::Com::VARENUM, ptdescarraytype: *const super::super::Com::TYPEDESC) -> ::windows::core::Result; + fn GetStringForVarType(&self, vt: super::super::Com::VARENUM, ptdescarraytype: *const super::super::Com::TYPEDESC) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IDebugFormatter {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IDebugFormatter_Vtbl { pub const fn new, Impl: IDebugFormatter_Impl, const OFFSET: isize>() -> IDebugFormatter_Vtbl { - unsafe extern "system" fn GetStringForVariant, Impl: IDebugFormatter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvar: *const super::super::Com::VARIANT, nradix: u32, pbstrvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetStringForVariant, Impl: IDebugFormatter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvar: *const super::super::Com::VARIANT, nradix: u32, pbstrvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetStringForVariant(::core::mem::transmute_copy(&pvar), ::core::mem::transmute_copy(&nradix)) { @@ -21155,7 +21092,7 @@ impl IDebugFormatter_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetStringForVarType, Impl: IDebugFormatter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, vt: super::super::Com::VARENUM, ptdescarraytype: *const super::super::Com::TYPEDESC, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetStringForVarType, Impl: IDebugFormatter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, vt: super::super::Com::VARENUM, ptdescarraytype: *const super::super::Com::TYPEDESC, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetStringForVarType(::core::mem::transmute_copy(&vt), ::core::mem::transmute_copy(&ptdescarraytype)) { @@ -21284,13 +21221,10 @@ impl IDebugHost_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDebugHostBaseClass_Impl: Sized + IDebugHostSymbol_Impl { fn GetOffset(&self) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDebugHostBaseClass {} -#[cfg(feature = "Win32_Foundation")] impl IDebugHostBaseClass_Vtbl { pub const fn new, Impl: IDebugHostBaseClass_Impl, const OFFSET: isize>() -> IDebugHostBaseClass_Vtbl { unsafe extern "system" fn GetOffset, Impl: IDebugHostBaseClass_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, offset: *mut u64) -> ::windows::core::HRESULT { @@ -21570,17 +21504,14 @@ impl IDebugHostField_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDebugHostMemory_Impl: Sized { fn ReadBytes(&self, context: &::core::option::Option, location: &Location, buffer: *mut ::core::ffi::c_void, buffersize: u64, bytesread: *mut u64) -> ::windows::core::Result<()>; fn WriteBytes(&self, context: &::core::option::Option, location: &Location, buffer: *const ::core::ffi::c_void, buffersize: u64) -> ::windows::core::Result; fn ReadPointers(&self, context: &::core::option::Option, location: &Location, count: u64, pointers: *mut u64) -> ::windows::core::Result<()>; fn WritePointers(&self, context: &::core::option::Option, location: &Location, count: u64, pointers: *const u64) -> ::windows::core::Result<()>; - fn GetDisplayStringForLocation(&self, context: &::core::option::Option, location: &Location, verbose: u8) -> ::windows::core::Result; + fn GetDisplayStringForLocation(&self, context: &::core::option::Option, location: &Location, verbose: u8) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDebugHostMemory {} -#[cfg(feature = "Win32_Foundation")] impl IDebugHostMemory_Vtbl { pub const fn new, Impl: IDebugHostMemory_Impl, const OFFSET: isize>() -> IDebugHostMemory_Vtbl { unsafe extern "system" fn ReadBytes, Impl: IDebugHostMemory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, location: Location, buffer: *mut ::core::ffi::c_void, buffersize: u64, bytesread: *mut u64) -> ::windows::core::HRESULT { @@ -21609,7 +21540,7 @@ impl IDebugHostMemory_Vtbl { let this = (*this).get_impl(); this.WritePointers(::core::mem::transmute(&context), ::core::mem::transmute(&location), ::core::mem::transmute_copy(&count), ::core::mem::transmute_copy(&pointers)).into() } - unsafe extern "system" fn GetDisplayStringForLocation, Impl: IDebugHostMemory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, location: Location, verbose: u8, locationname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDisplayStringForLocation, Impl: IDebugHostMemory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, location: Location, verbose: u8, locationname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDisplayStringForLocation(::core::mem::transmute(&context), ::core::mem::transmute(&location), ::core::mem::transmute_copy(&verbose)) { @@ -21633,13 +21564,10 @@ impl IDebugHostMemory_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDebugHostMemory2_Impl: Sized + IDebugHostMemory_Impl { fn LinearizeLocation(&self, context: &::core::option::Option, location: &Location) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDebugHostMemory2 {} -#[cfg(feature = "Win32_Foundation")] impl IDebugHostMemory2_Vtbl { pub const fn new, Impl: IDebugHostMemory2_Impl, const OFFSET: isize>() -> IDebugHostMemory2_Vtbl { unsafe extern "system" fn LinearizeLocation, Impl: IDebugHostMemory2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, location: Location, plinearizedlocation: *mut Location) -> ::windows::core::HRESULT { @@ -21659,21 +21587,18 @@ impl IDebugHostMemory2_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDebugHostModule_Impl: Sized + IDebugHostSymbol_Impl { - fn GetImageName(&self, allowpath: u8) -> ::windows::core::Result; + fn GetImageName(&self, allowpath: u8) -> ::windows::core::Result<::windows::core::BSTR>; fn GetBaseLocation(&self) -> ::windows::core::Result; fn GetVersion(&self, fileversion: *mut u64, productversion: *mut u64) -> ::windows::core::Result<()>; fn FindTypeByName(&self, typename: &::windows::core::PCWSTR) -> ::windows::core::Result; fn FindSymbolByRVA(&self, rva: u64) -> ::windows::core::Result; fn FindSymbolByName(&self, symbolname: &::windows::core::PCWSTR) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDebugHostModule {} -#[cfg(feature = "Win32_Foundation")] impl IDebugHostModule_Vtbl { pub const fn new, Impl: IDebugHostModule_Impl, const OFFSET: isize>() -> IDebugHostModule_Vtbl { - unsafe extern "system" fn GetImageName, Impl: IDebugHostModule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, allowpath: u8, imagename: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetImageName, Impl: IDebugHostModule_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, allowpath: u8, imagename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetImageName(::core::mem::transmute_copy(&allowpath)) { @@ -21747,13 +21672,10 @@ impl IDebugHostModule_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDebugHostModule2_Impl: Sized + IDebugHostSymbol_Impl + IDebugHostModule_Impl { fn FindContainingSymbolByRVA(&self, rva: u64, symbol: *mut ::core::option::Option, offset: *mut u64) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDebugHostModule2 {} -#[cfg(feature = "Win32_Foundation")] impl IDebugHostModule2_Vtbl { pub const fn new, Impl: IDebugHostModule2_Impl, const OFFSET: isize>() -> IDebugHostModule2_Vtbl { unsafe extern "system" fn FindContainingSymbolByRVA, Impl: IDebugHostModule2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, rva: u64, symbol: *mut *mut ::core::ffi::c_void, offset: *mut u64) -> ::windows::core::HRESULT { @@ -21790,14 +21712,11 @@ impl IDebugHostModuleSignature_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDebugHostPublic_Impl: Sized + IDebugHostSymbol_Impl { fn GetLocationKind(&self) -> ::windows::core::Result; fn GetLocation(&self) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDebugHostPublic {} -#[cfg(feature = "Win32_Foundation")] impl IDebugHostPublic_Vtbl { pub const fn new, Impl: IDebugHostPublic_Impl, const OFFSET: isize>() -> IDebugHostPublic_Vtbl { unsafe extern "system" fn GetLocationKind, Impl: IDebugHostPublic_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, locationkind: *mut LocationKind) -> ::windows::core::HRESULT { @@ -21878,19 +21797,16 @@ impl IDebugHostStatus_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDebugHostSymbol_Impl: Sized { fn GetContext(&self) -> ::windows::core::Result; fn EnumerateChildren(&self, kind: SymbolKind, name: &::windows::core::PCWSTR) -> ::windows::core::Result; fn GetSymbolKind(&self) -> ::windows::core::Result; - fn GetName(&self) -> ::windows::core::Result; + fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetType(&self) -> ::windows::core::Result; fn GetContainingModule(&self) -> ::windows::core::Result; fn CompareAgainst(&self, pcomparisonsymbol: &::core::option::Option, comparisonflags: u32) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDebugHostSymbol {} -#[cfg(feature = "Win32_Foundation")] impl IDebugHostSymbol_Vtbl { pub const fn new, Impl: IDebugHostSymbol_Impl, const OFFSET: isize>() -> IDebugHostSymbol_Vtbl { unsafe extern "system" fn GetContext, Impl: IDebugHostSymbol_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -21926,7 +21842,7 @@ impl IDebugHostSymbol_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetName, Impl: IDebugHostSymbol_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, symbolname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetName, Impl: IDebugHostSymbol_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, symbolname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetName() { @@ -21985,13 +21901,10 @@ impl IDebugHostSymbol_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDebugHostSymbol2_Impl: Sized + IDebugHostSymbol_Impl { fn GetLanguage(&self) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDebugHostSymbol2 {} -#[cfg(feature = "Win32_Foundation")] impl IDebugHostSymbol2_Vtbl { pub const fn new, Impl: IDebugHostSymbol2_Impl, const OFFSET: isize>() -> IDebugHostSymbol2_Vtbl { unsafe extern "system" fn GetLanguage, Impl: IDebugHostSymbol2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pkind: *mut LanguageKind) -> ::windows::core::HRESULT { @@ -22142,7 +22055,6 @@ impl IDebugHostSymbols_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDebugHostType_Impl: Sized + IDebugHostSymbol_Impl { fn GetTypeKind(&self) -> ::windows::core::Result; fn GetSize(&self) -> ::windows::core::Result; @@ -22164,9 +22076,7 @@ pub trait IDebugHostType_Impl: Sized + IDebugHostSymbol_Impl { fn GetGenericArgumentCount(&self) -> ::windows::core::Result; fn GetGenericArgumentAt(&self, i: u64) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDebugHostType {} -#[cfg(feature = "Win32_Foundation")] impl IDebugHostType_Vtbl { pub const fn new, Impl: IDebugHostType_Impl, const OFFSET: isize>() -> IDebugHostType_Vtbl { unsafe extern "system" fn GetTypeKind, Impl: IDebugHostType_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, kind: *mut TypeKind) -> ::windows::core::HRESULT { @@ -22387,7 +22297,6 @@ impl IDebugHostType_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDebugHostType2_Impl: Sized + IDebugHostSymbol_Impl + IDebugHostType_Impl { fn IsTypedef(&self) -> ::windows::core::Result; fn GetTypedefBaseType(&self) -> ::windows::core::Result; @@ -22395,9 +22304,7 @@ pub trait IDebugHostType2_Impl: Sized + IDebugHostSymbol_Impl + IDebugHostType_I fn GetFunctionVarArgsKind(&self) -> ::windows::core::Result; fn GetFunctionInstancePointerType(&self) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDebugHostType2 {} -#[cfg(feature = "Win32_Foundation")] impl IDebugHostType2_Vtbl { pub const fn new, Impl: IDebugHostType2_Impl, const OFFSET: isize>() -> IDebugHostType2_Vtbl { unsafe extern "system" fn IsTypedef, Impl: IDebugHostType2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, istypedef: *mut bool) -> ::windows::core::HRESULT { @@ -22838,16 +22745,13 @@ impl IDebugProperty_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDebugPropertyEnumType_All_Impl: Sized { - fn GetName(&self) -> ::windows::core::Result; + fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDebugPropertyEnumType_All {} -#[cfg(feature = "Win32_Foundation")] impl IDebugPropertyEnumType_All_Vtbl { pub const fn new, Impl: IDebugPropertyEnumType_All_Impl, const OFFSET: isize>() -> IDebugPropertyEnumType_All_Vtbl { - unsafe extern "system" fn GetName, Impl: IDebugPropertyEnumType_All_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, __midl__idebugpropertyenumtype_all0000: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetName, Impl: IDebugPropertyEnumType_All_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, __midl__idebugpropertyenumtype_all0000: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetName() { @@ -22864,11 +22768,8 @@ impl IDebugPropertyEnumType_All_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDebugPropertyEnumType_Arguments_Impl: Sized + IDebugPropertyEnumType_All_Impl {} -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDebugPropertyEnumType_Arguments {} -#[cfg(feature = "Win32_Foundation")] impl IDebugPropertyEnumType_Arguments_Vtbl { pub const fn new, Impl: IDebugPropertyEnumType_Arguments_Impl, const OFFSET: isize>() -> IDebugPropertyEnumType_Arguments_Vtbl { Self { base__: IDebugPropertyEnumType_All_Vtbl::new::() } @@ -22877,11 +22778,8 @@ impl IDebugPropertyEnumType_Arguments_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDebugPropertyEnumType_Locals_Impl: Sized + IDebugPropertyEnumType_All_Impl {} -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDebugPropertyEnumType_Locals {} -#[cfg(feature = "Win32_Foundation")] impl IDebugPropertyEnumType_Locals_Vtbl { pub const fn new, Impl: IDebugPropertyEnumType_Locals_Impl, const OFFSET: isize>() -> IDebugPropertyEnumType_Locals_Vtbl { Self { base__: IDebugPropertyEnumType_All_Vtbl::new::() } @@ -22890,11 +22788,8 @@ impl IDebugPropertyEnumType_Locals_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDebugPropertyEnumType_LocalsPlusArgs_Impl: Sized + IDebugPropertyEnumType_All_Impl {} -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDebugPropertyEnumType_LocalsPlusArgs {} -#[cfg(feature = "Win32_Foundation")] impl IDebugPropertyEnumType_LocalsPlusArgs_Vtbl { pub const fn new, Impl: IDebugPropertyEnumType_LocalsPlusArgs_Impl, const OFFSET: isize>() -> IDebugPropertyEnumType_LocalsPlusArgs_Vtbl { Self { base__: IDebugPropertyEnumType_All_Vtbl::new::() } @@ -22903,11 +22798,8 @@ impl IDebugPropertyEnumType_LocalsPlusArgs_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDebugPropertyEnumType_Registers_Impl: Sized + IDebugPropertyEnumType_All_Impl {} -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDebugPropertyEnumType_Registers {} -#[cfg(feature = "Win32_Foundation")] impl IDebugPropertyEnumType_Registers_Vtbl { pub const fn new, Impl: IDebugPropertyEnumType_Registers_Impl, const OFFSET: isize>() -> IDebugPropertyEnumType_Registers_Vtbl { Self { base__: IDebugPropertyEnumType_All_Vtbl::new::() } @@ -23341,8 +23233,8 @@ impl IDebugSessionProvider_Vtbl { #[cfg(feature = "Win32_Foundation")] pub trait IDebugStackFrame_Impl: Sized { fn GetCodeContext(&self) -> ::windows::core::Result; - fn GetDescriptionString(&self, flong: super::super::super::Foundation::BOOL) -> ::windows::core::Result; - fn GetLanguageString(&self, flong: super::super::super::Foundation::BOOL) -> ::windows::core::Result; + fn GetDescriptionString(&self, flong: super::super::super::Foundation::BOOL) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetLanguageString(&self, flong: super::super::super::Foundation::BOOL) -> ::windows::core::Result<::windows::core::BSTR>; fn GetThread(&self) -> ::windows::core::Result; fn GetDebugProperty(&self) -> ::windows::core::Result; } @@ -23362,7 +23254,7 @@ impl IDebugStackFrame_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetDescriptionString, Impl: IDebugStackFrame_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flong: super::super::super::Foundation::BOOL, pbstrdescription: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDescriptionString, Impl: IDebugStackFrame_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flong: super::super::super::Foundation::BOOL, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDescriptionString(::core::mem::transmute_copy(&flong)) { @@ -23373,7 +23265,7 @@ impl IDebugStackFrame_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetLanguageString, Impl: IDebugStackFrame_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flong: super::super::super::Foundation::BOOL, pbstrlanguage: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetLanguageString, Impl: IDebugStackFrame_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flong: super::super::super::Foundation::BOOL, pbstrlanguage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetLanguageString(::core::mem::transmute_copy(&flong)) { @@ -30248,7 +30140,6 @@ impl IEnumDebugExtendedPropertyInfo_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IEnumDebugPropertyInfo_Impl: Sized { fn Next(&self, celt: u32, pi: *mut DebugPropertyInfo, pceltsfetched: *mut u32) -> ::windows::core::Result<()>; fn Skip(&self, celt: u32) -> ::windows::core::Result<()>; @@ -30256,9 +30147,7 @@ pub trait IEnumDebugPropertyInfo_Impl: Sized { fn Clone(&self) -> ::windows::core::Result; fn GetCount(&self) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IEnumDebugPropertyInfo {} -#[cfg(feature = "Win32_Foundation")] impl IEnumDebugPropertyInfo_Vtbl { pub const fn new, Impl: IEnumDebugPropertyInfo_Impl, const OFFSET: isize>() -> IEnumDebugPropertyInfo_Vtbl { unsafe extern "system" fn Next, Impl: IEnumDebugPropertyInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, celt: u32, pi: *mut DebugPropertyInfo, pceltsfetched: *mut u32) -> ::windows::core::HRESULT { @@ -30697,21 +30586,18 @@ impl IJsDebugBreakPoint_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IJsDebugDataTarget_Impl: Sized { fn ReadMemory(&self, address: u64, flags: JsDebugReadMemoryFlags, pbuffer: *mut u8, size: u32, pbytesread: *mut u32) -> ::windows::core::Result<()>; fn WriteMemory(&self, address: u64, pmemory: *const u8, size: u32) -> ::windows::core::Result<()>; fn AllocateVirtualMemory(&self, address: u64, size: u32, allocationtype: u32, pageprotection: u32) -> ::windows::core::Result; fn FreeVirtualMemory(&self, address: u64, size: u32, freetype: u32) -> ::windows::core::Result<()>; fn GetTlsValue(&self, threadid: u32, tlsindex: u32) -> ::windows::core::Result; - fn ReadBSTR(&self, address: u64) -> ::windows::core::Result; - fn ReadNullTerminatedString(&self, address: u64, charactersize: u16, maxcharacters: u32) -> ::windows::core::Result; + fn ReadBSTR(&self, address: u64) -> ::windows::core::Result<::windows::core::BSTR>; + fn ReadNullTerminatedString(&self, address: u64, charactersize: u16, maxcharacters: u32) -> ::windows::core::Result<::windows::core::BSTR>; fn CreateStackFrameEnumerator(&self, threadid: u32) -> ::windows::core::Result; fn GetThreadContext(&self, threadid: u32, contextflags: u32, contextsize: u32, pcontext: *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IJsDebugDataTarget {} -#[cfg(feature = "Win32_Foundation")] impl IJsDebugDataTarget_Vtbl { pub const fn new, Impl: IJsDebugDataTarget_Impl, const OFFSET: isize>() -> IJsDebugDataTarget_Vtbl { unsafe extern "system" fn ReadMemory, Impl: IJsDebugDataTarget_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, address: u64, flags: JsDebugReadMemoryFlags, pbuffer: *mut u8, size: u32, pbytesread: *mut u32) -> ::windows::core::HRESULT { @@ -30751,7 +30637,7 @@ impl IJsDebugDataTarget_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ReadBSTR, Impl: IJsDebugDataTarget_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, address: u64, pstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ReadBSTR, Impl: IJsDebugDataTarget_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, address: u64, pstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ReadBSTR(::core::mem::transmute_copy(&address)) { @@ -30762,7 +30648,7 @@ impl IJsDebugDataTarget_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ReadNullTerminatedString, Impl: IJsDebugDataTarget_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, address: u64, charactersize: u16, maxcharacters: u32, pstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ReadNullTerminatedString, Impl: IJsDebugDataTarget_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, address: u64, charactersize: u16, maxcharacters: u32, pstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ReadNullTerminatedString(::core::mem::transmute_copy(&address), ::core::mem::transmute_copy(&charactersize), ::core::mem::transmute_copy(&maxcharacters)) { @@ -30806,19 +30692,16 @@ impl IJsDebugDataTarget_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IJsDebugFrame_Impl: Sized { fn GetStackRange(&self, pstart: *mut u64, pend: *mut u64) -> ::windows::core::Result<()>; - fn GetName(&self) -> ::windows::core::Result; + fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetDocumentPositionWithId(&self, pdocumentid: *mut u64, pcharacteroffset: *mut u32, pstatementcharcount: *mut u32) -> ::windows::core::Result<()>; - fn GetDocumentPositionWithName(&self, pdocumentname: *mut super::super::super::Foundation::BSTR, pline: *mut u32, pcolumn: *mut u32) -> ::windows::core::Result<()>; + fn GetDocumentPositionWithName(&self, pdocumentname: *mut ::windows::core::BSTR, pline: *mut u32, pcolumn: *mut u32) -> ::windows::core::Result<()>; fn GetDebugProperty(&self) -> ::windows::core::Result; fn GetReturnAddress(&self) -> ::windows::core::Result; - fn Evaluate(&self, pexpressiontext: &::windows::core::PCWSTR, ppdebugproperty: *mut ::core::option::Option, perror: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Evaluate(&self, pexpressiontext: &::windows::core::PCWSTR, ppdebugproperty: *mut ::core::option::Option, perror: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IJsDebugFrame {} -#[cfg(feature = "Win32_Foundation")] impl IJsDebugFrame_Vtbl { pub const fn new, Impl: IJsDebugFrame_Impl, const OFFSET: isize>() -> IJsDebugFrame_Vtbl { unsafe extern "system" fn GetStackRange, Impl: IJsDebugFrame_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstart: *mut u64, pend: *mut u64) -> ::windows::core::HRESULT { @@ -30826,7 +30709,7 @@ impl IJsDebugFrame_Vtbl { let this = (*this).get_impl(); this.GetStackRange(::core::mem::transmute_copy(&pstart), ::core::mem::transmute_copy(&pend)).into() } - unsafe extern "system" fn GetName, Impl: IJsDebugFrame_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetName, Impl: IJsDebugFrame_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetName() { @@ -30842,7 +30725,7 @@ impl IJsDebugFrame_Vtbl { let this = (*this).get_impl(); this.GetDocumentPositionWithId(::core::mem::transmute_copy(&pdocumentid), ::core::mem::transmute_copy(&pcharacteroffset), ::core::mem::transmute_copy(&pstatementcharcount)).into() } - unsafe extern "system" fn GetDocumentPositionWithName, Impl: IJsDebugFrame_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdocumentname: *mut super::super::super::Foundation::BSTR, pline: *mut u32, pcolumn: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDocumentPositionWithName, Impl: IJsDebugFrame_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdocumentname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pline: *mut u32, pcolumn: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetDocumentPositionWithName(::core::mem::transmute_copy(&pdocumentname), ::core::mem::transmute_copy(&pline), ::core::mem::transmute_copy(&pcolumn)).into() @@ -30869,7 +30752,7 @@ impl IJsDebugFrame_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Evaluate, Impl: IJsDebugFrame_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pexpressiontext: ::windows::core::PCWSTR, ppdebugproperty: *mut *mut ::core::ffi::c_void, perror: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Evaluate, Impl: IJsDebugFrame_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pexpressiontext: ::windows::core::PCWSTR, ppdebugproperty: *mut *mut ::core::ffi::c_void, perror: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Evaluate(::core::mem::transmute(&pexpressiontext), ::core::mem::transmute_copy(&ppdebugproperty), ::core::mem::transmute_copy(&perror)).into() @@ -30951,14 +30834,11 @@ impl IJsDebugProcess_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IJsDebugProperty_Impl: Sized { fn GetPropertyInfo(&self, nradix: u32) -> ::windows::core::Result; fn GetMembers(&self, members: JS_PROPERTY_MEMBERS) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IJsDebugProperty {} -#[cfg(feature = "Win32_Foundation")] impl IJsDebugProperty_Vtbl { pub const fn new, Impl: IJsDebugProperty_Impl, const OFFSET: isize>() -> IJsDebugProperty_Vtbl { unsafe extern "system" fn GetPropertyInfo, Impl: IJsDebugProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, nradix: u32, ppropertyinfo: *mut JsDebugPropertyInfo) -> ::windows::core::HRESULT { @@ -31049,14 +30929,11 @@ impl IJsEnumDebugProperty_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IKeyEnumerator_Impl: Sized { fn Reset(&self) -> ::windows::core::Result<()>; - fn GetNext(&self, key: *mut super::super::super::Foundation::BSTR, value: *mut ::core::option::Option, metadata: *mut ::core::option::Option) -> ::windows::core::Result<()>; + fn GetNext(&self, key: *mut ::windows::core::BSTR, value: *mut ::core::option::Option, metadata: *mut ::core::option::Option) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IKeyEnumerator {} -#[cfg(feature = "Win32_Foundation")] impl IKeyEnumerator_Vtbl { pub const fn new, Impl: IKeyEnumerator_Impl, const OFFSET: isize>() -> IKeyEnumerator_Vtbl { unsafe extern "system" fn Reset, Impl: IKeyEnumerator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -31064,7 +30941,7 @@ impl IKeyEnumerator_Vtbl { let this = (*this).get_impl(); this.Reset().into() } - unsafe extern "system" fn GetNext, Impl: IKeyEnumerator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, key: *mut super::super::super::Foundation::BSTR, value: *mut *mut ::core::ffi::c_void, metadata: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetNext, Impl: IKeyEnumerator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, key: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: *mut *mut ::core::ffi::c_void, metadata: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetNext(::core::mem::transmute_copy(&key), ::core::mem::transmute_copy(&value), ::core::mem::transmute_copy(&metadata)).into() @@ -31273,9 +31150,8 @@ impl IModelIterator_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IModelKeyReference_Impl: Sized { - fn GetKeyName(&self) -> ::windows::core::Result; + fn GetKeyName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetOriginalObject(&self) -> ::windows::core::Result; fn GetContextObject(&self) -> ::windows::core::Result; fn GetKey(&self, object: *mut ::core::option::Option, metadata: *mut ::core::option::Option) -> ::windows::core::Result<()>; @@ -31283,12 +31159,10 @@ pub trait IModelKeyReference_Impl: Sized { fn SetKey(&self, object: &::core::option::Option, metadata: &::core::option::Option) -> ::windows::core::Result<()>; fn SetKeyValue(&self, object: &::core::option::Option) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IModelKeyReference {} -#[cfg(feature = "Win32_Foundation")] impl IModelKeyReference_Vtbl { pub const fn new, Impl: IModelKeyReference_Impl, const OFFSET: isize>() -> IModelKeyReference_Vtbl { - unsafe extern "system" fn GetKeyName, Impl: IModelKeyReference_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, keyname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetKeyName, Impl: IModelKeyReference_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, keyname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetKeyName() { @@ -31356,13 +31230,10 @@ impl IModelKeyReference_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IModelKeyReference2_Impl: Sized + IModelKeyReference_Impl { fn OverrideContextObject(&self, newcontextobject: &::core::option::Option) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IModelKeyReference2 {} -#[cfg(feature = "Win32_Foundation")] impl IModelKeyReference2_Vtbl { pub const fn new, Impl: IModelKeyReference2_Impl, const OFFSET: isize>() -> IModelKeyReference2_Vtbl { unsafe extern "system" fn OverrideContextObject, Impl: IModelKeyReference2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newcontextobject: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -31814,19 +31685,19 @@ impl IObjectSafety_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] +#[cfg(feature = "Win32_System_Ole")] pub trait IPerPropertyBrowsing2_Impl: Sized { - fn GetDisplayString(&self, dispid: i32) -> ::windows::core::Result; + fn GetDisplayString(&self, dispid: i32) -> ::windows::core::Result<::windows::core::BSTR>; fn MapPropertyToPage(&self, dispid: i32) -> ::windows::core::Result<::windows::core::GUID>; fn GetPredefinedStrings(&self, dispid: i32, pcastrings: *mut super::super::Ole::CALPOLESTR, pcacookies: *mut super::super::Ole::CADWORD) -> ::windows::core::Result<()>; fn SetPredefinedValue(&self, dispid: i32, dwcookie: u32) -> ::windows::core::Result<()>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] +#[cfg(feature = "Win32_System_Ole")] impl ::windows::core::RuntimeName for IPerPropertyBrowsing2 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] +#[cfg(feature = "Win32_System_Ole")] impl IPerPropertyBrowsing2_Vtbl { pub const fn new, Impl: IPerPropertyBrowsing2_Impl, const OFFSET: isize>() -> IPerPropertyBrowsing2_Vtbl { - unsafe extern "system" fn GetDisplayString, Impl: IPerPropertyBrowsing2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dispid: i32, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDisplayString, Impl: IPerPropertyBrowsing2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dispid: i32, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDisplayString(::core::mem::transmute_copy(&dispid)) { @@ -32063,14 +31934,11 @@ impl IProvideExpressionContexts_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IRawEnumerator_Impl: Sized { fn Reset(&self) -> ::windows::core::Result<()>; - fn GetNext(&self, name: *mut super::super::super::Foundation::BSTR, kind: *mut SymbolKind, value: *mut ::core::option::Option) -> ::windows::core::Result<()>; + fn GetNext(&self, name: *mut ::windows::core::BSTR, kind: *mut SymbolKind, value: *mut ::core::option::Option) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IRawEnumerator {} -#[cfg(feature = "Win32_Foundation")] impl IRawEnumerator_Vtbl { pub const fn new, Impl: IRawEnumerator_Impl, const OFFSET: isize>() -> IRawEnumerator_Vtbl { unsafe extern "system" fn Reset, Impl: IRawEnumerator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -32078,7 +31946,7 @@ impl IRawEnumerator_Vtbl { let this = (*this).get_impl(); this.Reset().into() } - unsafe extern "system" fn GetNext, Impl: IRawEnumerator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::super::Foundation::BSTR, kind: *mut SymbolKind, value: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetNext, Impl: IRawEnumerator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, kind: *mut SymbolKind, value: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetNext(::core::mem::transmute_copy(&name), ::core::mem::transmute_copy(&kind), ::core::mem::transmute_copy(&value)).into() @@ -32093,7 +31961,6 @@ impl IRawEnumerator_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IRemoteDebugApplication_Impl: Sized { fn ResumeFromBreakPoint(&self, prptfocus: &::core::option::Option, bra: BREAKRESUME_ACTION, era: ERRORRESUMEACTION) -> ::windows::core::Result<()>; fn CauseBreak(&self) -> ::windows::core::Result<()>; @@ -32103,13 +31970,11 @@ pub trait IRemoteDebugApplication_Impl: Sized { fn CreateInstanceAtApplication(&self, rclsid: *const ::windows::core::GUID, punkouter: &::core::option::Option<::windows::core::IUnknown>, dwclscontext: u32, riid: *const ::windows::core::GUID) -> ::windows::core::Result<::windows::core::IUnknown>; fn QueryAlive(&self) -> ::windows::core::Result<()>; fn EnumThreads(&self) -> ::windows::core::Result; - fn GetName(&self) -> ::windows::core::Result; + fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetRootNode(&self) -> ::windows::core::Result; fn EnumGlobalExpressionContexts(&self) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IRemoteDebugApplication {} -#[cfg(feature = "Win32_Foundation")] impl IRemoteDebugApplication_Vtbl { pub const fn new, Impl: IRemoteDebugApplication_Impl, const OFFSET: isize>() -> IRemoteDebugApplication_Vtbl { unsafe extern "system" fn ResumeFromBreakPoint, Impl: IRemoteDebugApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, prptfocus: *mut ::core::ffi::c_void, bra: BREAKRESUME_ACTION, era: ERRORRESUMEACTION) -> ::windows::core::HRESULT { @@ -32170,7 +32035,7 @@ impl IRemoteDebugApplication_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetName, Impl: IRemoteDebugApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetName, Impl: IRemoteDebugApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetName() { @@ -32351,21 +32216,18 @@ impl IRemoteDebugApplicationEvents_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IRemoteDebugApplicationThread_Impl: Sized { fn GetSystemThreadId(&self) -> ::windows::core::Result; fn GetApplication(&self) -> ::windows::core::Result; fn EnumStackFrames(&self) -> ::windows::core::Result; - fn GetDescription(&self, pbstrdescription: *mut super::super::super::Foundation::BSTR, pbstrstate: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetDescription(&self, pbstrdescription: *mut ::windows::core::BSTR, pbstrstate: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn SetNextStatement(&self, pstackframe: &::core::option::Option, pcodecontext: &::core::option::Option) -> ::windows::core::Result<()>; fn GetState(&self) -> ::windows::core::Result; fn Suspend(&self) -> ::windows::core::Result; fn Resume(&self) -> ::windows::core::Result; fn GetSuspendCount(&self) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IRemoteDebugApplicationThread {} -#[cfg(feature = "Win32_Foundation")] impl IRemoteDebugApplicationThread_Vtbl { pub const fn new, Impl: IRemoteDebugApplicationThread_Impl, const OFFSET: isize>() -> IRemoteDebugApplicationThread_Vtbl { unsafe extern "system" fn GetSystemThreadId, Impl: IRemoteDebugApplicationThread_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwthreadid: *mut u32) -> ::windows::core::HRESULT { @@ -32401,7 +32263,7 @@ impl IRemoteDebugApplicationThread_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetDescription, Impl: IRemoteDebugApplicationThread_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::super::Foundation::BSTR, pbstrstate: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDescription, Impl: IRemoteDebugApplicationThread_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrstate: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetDescription(::core::mem::transmute_copy(&pbstrdescription), ::core::mem::transmute_copy(&pbstrstate)).into() @@ -32472,16 +32334,13 @@ impl IRemoteDebugApplicationThread_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IRemoteDebugCriticalErrorEvent110_Impl: Sized { - fn GetErrorInfo(&self, pbstrsource: *mut super::super::super::Foundation::BSTR, pmessageid: *mut i32, pbstrmessage: *mut super::super::super::Foundation::BSTR, pplocation: *mut ::core::option::Option) -> ::windows::core::Result<()>; + fn GetErrorInfo(&self, pbstrsource: *mut ::windows::core::BSTR, pmessageid: *mut i32, pbstrmessage: *mut ::windows::core::BSTR, pplocation: *mut ::core::option::Option) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IRemoteDebugCriticalErrorEvent110 {} -#[cfg(feature = "Win32_Foundation")] impl IRemoteDebugCriticalErrorEvent110_Vtbl { pub const fn new, Impl: IRemoteDebugCriticalErrorEvent110_Impl, const OFFSET: isize>() -> IRemoteDebugCriticalErrorEvent110_Vtbl { - unsafe extern "system" fn GetErrorInfo, Impl: IRemoteDebugCriticalErrorEvent110_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsource: *mut super::super::super::Foundation::BSTR, pmessageid: *mut i32, pbstrmessage: *mut super::super::super::Foundation::BSTR, pplocation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetErrorInfo, Impl: IRemoteDebugCriticalErrorEvent110_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsource: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pmessageid: *mut i32, pbstrmessage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pplocation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetErrorInfo(::core::mem::transmute_copy(&pbstrsource), ::core::mem::transmute_copy(&pmessageid), ::core::mem::transmute_copy(&pbstrmessage), ::core::mem::transmute_copy(&pplocation)).into() @@ -32492,16 +32351,13 @@ impl IRemoteDebugCriticalErrorEvent110_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IRemoteDebugInfoEvent110_Impl: Sized { - fn GetEventInfo(&self, pmessagetype: *mut DEBUG_EVENT_INFO_TYPE, pbstrmessage: *mut super::super::super::Foundation::BSTR, pbstrurl: *mut super::super::super::Foundation::BSTR, pplocation: *mut ::core::option::Option) -> ::windows::core::Result<()>; + fn GetEventInfo(&self, pmessagetype: *mut DEBUG_EVENT_INFO_TYPE, pbstrmessage: *mut ::windows::core::BSTR, pbstrurl: *mut ::windows::core::BSTR, pplocation: *mut ::core::option::Option) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IRemoteDebugInfoEvent110 {} -#[cfg(feature = "Win32_Foundation")] impl IRemoteDebugInfoEvent110_Vtbl { pub const fn new, Impl: IRemoteDebugInfoEvent110_Impl, const OFFSET: isize>() -> IRemoteDebugInfoEvent110_Vtbl { - unsafe extern "system" fn GetEventInfo, Impl: IRemoteDebugInfoEvent110_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pmessagetype: *mut DEBUG_EVENT_INFO_TYPE, pbstrmessage: *mut super::super::super::Foundation::BSTR, pbstrurl: *mut super::super::super::Foundation::BSTR, pplocation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetEventInfo, Impl: IRemoteDebugInfoEvent110_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pmessagetype: *mut DEBUG_EVENT_INFO_TYPE, pbstrmessage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pplocation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetEventInfo(::core::mem::transmute_copy(&pmessagetype), ::core::mem::transmute_copy(&pbstrmessage), ::core::mem::transmute_copy(&pbstrurl), ::core::mem::transmute_copy(&pplocation)).into() @@ -32512,26 +32368,26 @@ impl IRemoteDebugInfoEvent110_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IScriptEntry_Impl: Sized + IScriptNode_Impl { - fn GetText(&self) -> ::windows::core::Result; + fn GetText(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn SetText(&self, psz: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; - fn GetBody(&self) -> ::windows::core::Result; + fn GetBody(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn SetBody(&self, psz: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; - fn GetName(&self) -> ::windows::core::Result; + fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn SetName(&self, psz: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; - fn GetItemName(&self) -> ::windows::core::Result; + fn GetItemName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn SetItemName(&self, psz: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn GetSignature(&self, ppti: *mut ::core::option::Option, pimethod: *mut u32) -> ::windows::core::Result<()>; fn SetSignature(&self, pti: &::core::option::Option, imethod: u32) -> ::windows::core::Result<()>; fn GetRange(&self, pichmin: *mut u32, pcch: *mut u32) -> ::windows::core::Result<()>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IScriptEntry {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IScriptEntry_Vtbl { pub const fn new, Impl: IScriptEntry_Impl, const OFFSET: isize>() -> IScriptEntry_Vtbl { - unsafe extern "system" fn GetText, Impl: IScriptEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetText, Impl: IScriptEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetText() { @@ -32547,7 +32403,7 @@ impl IScriptEntry_Vtbl { let this = (*this).get_impl(); this.SetText(::core::mem::transmute(&psz)).into() } - unsafe extern "system" fn GetBody, Impl: IScriptEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetBody, Impl: IScriptEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetBody() { @@ -32563,7 +32419,7 @@ impl IScriptEntry_Vtbl { let this = (*this).get_impl(); this.SetBody(::core::mem::transmute(&psz)).into() } - unsafe extern "system" fn GetName, Impl: IScriptEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetName, Impl: IScriptEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetName() { @@ -32579,7 +32435,7 @@ impl IScriptEntry_Vtbl { let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&psz)).into() } - unsafe extern "system" fn GetItemName, Impl: IScriptEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetItemName, Impl: IScriptEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetItemName() { @@ -32629,15 +32485,12 @@ impl IScriptEntry_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IScriptInvocationContext_Impl: Sized { fn GetContextType(&self) -> ::windows::core::Result; - fn GetContextDescription(&self) -> ::windows::core::Result; + fn GetContextDescription(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetContextObject(&self) -> ::windows::core::Result<::windows::core::IUnknown>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IScriptInvocationContext {} -#[cfg(feature = "Win32_Foundation")] impl IScriptInvocationContext_Vtbl { pub const fn new, Impl: IScriptInvocationContext_Impl, const OFFSET: isize>() -> IScriptInvocationContext_Vtbl { unsafe extern "system" fn GetContextType, Impl: IScriptInvocationContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pinvocationcontexttype: *mut SCRIPT_INVOCATION_CONTEXT_TYPE) -> ::windows::core::HRESULT { @@ -32651,7 +32504,7 @@ impl IScriptInvocationContext_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetContextDescription, Impl: IScriptInvocationContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdescription: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetContextDescription, Impl: IScriptInvocationContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetContextDescription() { @@ -32684,7 +32537,7 @@ impl IScriptInvocationContext_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IScriptNode_Impl: Sized { fn Alive(&self) -> ::windows::core::Result<()>; fn Delete(&self) -> ::windows::core::Result<()>; @@ -32693,13 +32546,13 @@ pub trait IScriptNode_Impl: Sized { fn GetCookie(&self) -> ::windows::core::Result; fn GetNumberOfChildren(&self) -> ::windows::core::Result; fn GetChild(&self, isn: u32) -> ::windows::core::Result; - fn GetLanguage(&self) -> ::windows::core::Result; + fn GetLanguage(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CreateChildEntry(&self, isn: u32, dwcookie: u32, pszdelimiter: &::windows::core::PCWSTR) -> ::windows::core::Result; fn CreateChildHandler(&self, pszdefaultname: &::windows::core::PCWSTR, prgpsznames: *const ::windows::core::PWSTR, cpsznames: u32, pszevent: &::windows::core::PCWSTR, pszdelimiter: &::windows::core::PCWSTR, ptisignature: &::core::option::Option, imethodsignature: u32, isn: u32, dwcookie: u32) -> ::windows::core::Result; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IScriptNode {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IScriptNode_Vtbl { pub const fn new, Impl: IScriptNode_Impl, const OFFSET: isize>() -> IScriptNode_Vtbl { unsafe extern "system" fn Alive, Impl: IScriptNode_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -32767,7 +32620,7 @@ impl IScriptNode_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetLanguage, Impl: IScriptNode_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetLanguage, Impl: IScriptNode_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetLanguage() { @@ -32818,21 +32671,21 @@ impl IScriptNode_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IScriptScriptlet_Impl: Sized + IScriptNode_Impl + IScriptEntry_Impl { - fn GetSubItemName(&self) -> ::windows::core::Result; + fn GetSubItemName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn SetSubItemName(&self, psz: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; - fn GetEventName(&self) -> ::windows::core::Result; + fn GetEventName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn SetEventName(&self, psz: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; - fn GetSimpleEventName(&self) -> ::windows::core::Result; + fn GetSimpleEventName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn SetSimpleEventName(&self, psz: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IScriptScriptlet {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IScriptScriptlet_Vtbl { pub const fn new, Impl: IScriptScriptlet_Impl, const OFFSET: isize>() -> IScriptScriptlet_Vtbl { - unsafe extern "system" fn GetSubItemName, Impl: IScriptScriptlet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSubItemName, Impl: IScriptScriptlet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetSubItemName() { @@ -32848,7 +32701,7 @@ impl IScriptScriptlet_Vtbl { let this = (*this).get_impl(); this.SetSubItemName(::core::mem::transmute(&psz)).into() } - unsafe extern "system" fn GetEventName, Impl: IScriptScriptlet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetEventName, Impl: IScriptScriptlet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetEventName() { @@ -32864,7 +32717,7 @@ impl IScriptScriptlet_Vtbl { let this = (*this).get_impl(); this.SetEventName(::core::mem::transmute(&psz)).into() } - unsafe extern "system" fn GetSimpleEventName, Impl: IScriptScriptlet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSimpleEventName, Impl: IScriptScriptlet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetSimpleEventName() { @@ -32894,16 +32747,16 @@ impl IScriptScriptlet_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait ISimpleConnectionPoint_Impl: Sized { fn GetEventCount(&self) -> ::windows::core::Result; - fn DescribeEvents(&self, ievent: u32, cevents: u32, prgid: *mut i32, prgbstr: *mut super::super::super::Foundation::BSTR, pceventsfetched: *mut u32) -> ::windows::core::Result<()>; + fn DescribeEvents(&self, ievent: u32, cevents: u32, prgid: *mut i32, prgbstr: *mut ::windows::core::BSTR, pceventsfetched: *mut u32) -> ::windows::core::Result<()>; fn Advise(&self, pdisp: &::core::option::Option) -> ::windows::core::Result; fn Unadvise(&self, dwcookie: u32) -> ::windows::core::Result<()>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for ISimpleConnectionPoint {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ISimpleConnectionPoint_Vtbl { pub const fn new, Impl: ISimpleConnectionPoint_Impl, const OFFSET: isize>() -> ISimpleConnectionPoint_Vtbl { unsafe extern "system" fn GetEventCount, Impl: ISimpleConnectionPoint_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pulcount: *mut u32) -> ::windows::core::HRESULT { @@ -32917,7 +32770,7 @@ impl ISimpleConnectionPoint_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DescribeEvents, Impl: ISimpleConnectionPoint_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ievent: u32, cevents: u32, prgid: *mut i32, prgbstr: *mut super::super::super::Foundation::BSTR, pceventsfetched: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn DescribeEvents, Impl: ISimpleConnectionPoint_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ievent: u32, cevents: u32, prgid: *mut i32, prgbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pceventsfetched: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DescribeEvents(::core::mem::transmute_copy(&ievent), ::core::mem::transmute_copy(&cevents), ::core::mem::transmute_copy(&prgid), ::core::mem::transmute_copy(&prgbstr), ::core::mem::transmute_copy(&pceventsfetched)).into() @@ -32950,16 +32803,13 @@ impl ISimpleConnectionPoint_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IStringDisplayableConcept_Impl: Sized { - fn ToDisplayString(&self, contextobject: &::core::option::Option, metadata: &::core::option::Option) -> ::windows::core::Result; + fn ToDisplayString(&self, contextobject: &::core::option::Option, metadata: &::core::option::Option) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IStringDisplayableConcept {} -#[cfg(feature = "Win32_Foundation")] impl IStringDisplayableConcept_Vtbl { pub const fn new, Impl: IStringDisplayableConcept_Impl, const OFFSET: isize>() -> IStringDisplayableConcept_Vtbl { - unsafe extern "system" fn ToDisplayString, Impl: IStringDisplayableConcept_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, contextobject: *mut ::core::ffi::c_void, metadata: *mut ::core::ffi::c_void, displaystring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ToDisplayString, Impl: IStringDisplayableConcept_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, contextobject: *mut ::core::ffi::c_void, metadata: *mut ::core::ffi::c_void, displaystring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ToDisplayString(::core::mem::transmute(&contextobject), ::core::mem::transmute(&metadata)) { diff --git a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/mod.rs index ba3821173e..d09e38b2e2 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/mod.rs @@ -4549,8 +4549,8 @@ impl IActiveScript { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetScriptThreadState)(::windows::core::Interface::as_raw(self), stidthread, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] pub unsafe fn InterruptScriptThread(&self, stidthread: u32, pexcepinfo: &super::super::Com::EXCEPINFO, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).InterruptScriptThread)(::windows::core::Interface::as_raw(self), stidthread, ::core::mem::transmute(pexcepinfo), dwflags).ok() } @@ -4612,9 +4612,9 @@ pub struct IActiveScript_Vtbl { pub GetCurrentScriptThreadID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstidthread: *mut u32) -> ::windows::core::HRESULT, pub GetScriptThreadID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwwin32threadid: u32, pstidthread: *mut u32) -> ::windows::core::HRESULT, pub GetScriptThreadState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stidthread: u32, pstsstate: *mut SCRIPTTHREADSTATE) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] + #[cfg(feature = "Win32_System_Com")] pub InterruptScriptThread: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stidthread: u32, pexcepinfo: *const super::super::Com::EXCEPINFO, dwflags: u32) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(not(feature = "Win32_System_Com"))] InterruptScriptThread: usize, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppscript: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } @@ -4694,11 +4694,9 @@ impl IActiveScriptAuthor { pub unsafe fn RemoveTypeLib(&self, rguidtypelib: &::windows::core::GUID, dwmajor: u32, dwminor: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RemoveTypeLib)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(rguidtypelib), dwmajor, dwminor).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetChars(&self, frequestedlist: u32) -> ::windows::core::Result { + pub unsafe fn GetChars(&self, frequestedlist: u32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetChars)(::windows::core::Interface::as_raw(self), frequestedlist, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetChars)(::windows::core::Interface::as_raw(self), frequestedlist, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetInfoFromContext<'a, P0>(&self, pszcode: P0, cchcode: u32, ichcurrentposition: u32, dwlisttypesrequested: u32, pdwlisttypesprovided: &mut u32, pichlistanchorposition: &mut u32, pichfuncanchorposition: &mut u32, pmemid: &mut i32, picurrentparameter: &mut i32, ppunk: &mut ::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result<()> where @@ -4769,10 +4767,7 @@ pub struct IActiveScriptAuthor_Vtbl { pub RemoveNamedItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszname: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, pub AddTypeLib: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rguidtypelib: *const ::windows::core::GUID, dwmajor: u32, dwminor: u32, dwflags: u32) -> ::windows::core::HRESULT, pub RemoveTypeLib: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rguidtypelib: *const ::windows::core::GUID, dwmajor: u32, dwminor: u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetChars: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, frequestedlist: u32, pbstrchars: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetChars: usize, + pub GetChars: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, frequestedlist: u32, pbstrchars: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetInfoFromContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszcode: ::windows::core::PCWSTR, cchcode: u32, ichcurrentposition: u32, dwlisttypesrequested: u32, pdwlisttypesprovided: *mut u32, pichlistanchorposition: *mut u32, pichfuncanchorposition: *mut u32, pmemid: *mut i32, picurrentparameter: *mut i32, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub IsCommitChar: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ch: u16, pfcommit: *mut super::super::super::Foundation::BOOL) -> ::windows::core::HRESULT, @@ -4985,9 +4980,7 @@ impl IActiveScriptEncode { { (::windows::core::Interface::vtable(self).DecodeScript)(::windows::core::Interface::as_raw(self), pchin.into(), cchin, ::core::mem::transmute(pchout), cchout, ::core::mem::transmute(pcchret)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetEncodeProgId(&self, pbstrout: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetEncodeProgId(&self, pbstrout: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetEncodeProgId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrout)).ok() } } @@ -5032,17 +5025,14 @@ pub struct IActiveScriptEncode_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub EncodeSection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pchin: ::windows::core::PCWSTR, cchin: u32, pchout: ::windows::core::PWSTR, cchout: u32, pcchret: *mut u32) -> ::windows::core::HRESULT, pub DecodeScript: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pchin: ::windows::core::PCWSTR, cchin: u32, pchout: ::windows::core::PWSTR, cchout: u32, pcchret: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetEncodeProgId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrout: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetEncodeProgId: usize, + pub GetEncodeProgId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] #[repr(transparent)] pub struct IActiveScriptError(::windows::core::IUnknown); impl IActiveScriptError { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetExceptionInfo(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetExceptionInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) @@ -5050,11 +5040,9 @@ impl IActiveScriptError { pub unsafe fn GetSourcePosition(&self, pdwsourcecontext: &mut u32, pullinenumber: &mut u32, plcharacterposition: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetSourcePosition)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdwsourcecontext), ::core::mem::transmute(pullinenumber), ::core::mem::transmute(plcharacterposition)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetSourceLineText(&self) -> ::windows::core::Result { + pub unsafe fn GetSourceLineText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetSourceLineText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetSourceLineText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -5096,22 +5084,19 @@ unsafe impl ::windows::core::Interface for IActiveScriptError { #[doc(hidden)] pub struct IActiveScriptError_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] + #[cfg(feature = "Win32_System_Com")] pub GetExceptionInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pexcepinfo: *mut super::super::Com::EXCEPINFO) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(not(feature = "Win32_System_Com"))] GetExceptionInfo: usize, pub GetSourcePosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwsourcecontext: *mut u32, pullinenumber: *mut u32, plcharacterposition: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetSourceLineText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsourceline: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetSourceLineText: usize, + pub GetSourceLineText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsourceline: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] #[repr(transparent)] pub struct IActiveScriptError64(::windows::core::IUnknown); impl IActiveScriptError64 { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetExceptionInfo(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetExceptionInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) @@ -5119,11 +5104,9 @@ impl IActiveScriptError64 { pub unsafe fn GetSourcePosition(&self, pdwsourcecontext: &mut u32, pullinenumber: &mut u32, plcharacterposition: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetSourcePosition)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdwsourcecontext), ::core::mem::transmute(pullinenumber), ::core::mem::transmute(plcharacterposition)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetSourceLineText(&self) -> ::windows::core::Result { + pub unsafe fn GetSourceLineText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetSourceLineText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetSourceLineText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetSourcePosition64(&self, pdwsourcecontext: &mut u64, pullinenumber: &mut u32, plcharacterposition: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetSourcePosition64)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdwsourcecontext), ::core::mem::transmute(pullinenumber), ::core::mem::transmute(plcharacterposition)).ok() @@ -5189,8 +5172,8 @@ pub struct IActiveScriptError64_Vtbl { #[repr(transparent)] pub struct IActiveScriptErrorDebug(::windows::core::IUnknown); impl IActiveScriptErrorDebug { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetExceptionInfo(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetExceptionInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) @@ -5198,11 +5181,9 @@ impl IActiveScriptErrorDebug { pub unsafe fn GetSourcePosition(&self, pdwsourcecontext: &mut u32, pullinenumber: &mut u32, plcharacterposition: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetSourcePosition)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdwsourcecontext), ::core::mem::transmute(pullinenumber), ::core::mem::transmute(plcharacterposition)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetSourceLineText(&self) -> ::windows::core::Result { + pub unsafe fn GetSourceLineText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetSourceLineText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetSourceLineText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetDocumentContext(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5373,14 +5354,8 @@ pub struct IActiveScriptGarbageCollector_Vtbl { #[repr(transparent)] pub struct IActiveScriptHostEncode(::windows::core::IUnknown); impl IActiveScriptHostEncode { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EncodeScriptHostFile<'a, P0, P1>(&self, bstrinfile: P0, pbstroutfile: &mut super::super::super::Foundation::BSTR, cflags: u32, bstrdefaultlang: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).EncodeScriptHostFile)(::windows::core::Interface::as_raw(self), bstrinfile.into().abi(), ::core::mem::transmute(pbstroutfile), cflags, bstrdefaultlang.into().abi()).ok() + pub unsafe fn EncodeScriptHostFile(&self, bstrinfile: &::windows::core::BSTR, pbstroutfile: &mut ::windows::core::BSTR, cflags: u32, bstrdefaultlang: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).EncodeScriptHostFile)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrinfile), ::core::mem::transmute(pbstroutfile), cflags, ::core::mem::transmute_copy(bstrdefaultlang)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -5422,10 +5397,7 @@ unsafe impl ::windows::core::Interface for IActiveScriptHostEncode { #[doc(hidden)] pub struct IActiveScriptHostEncode_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub EncodeScriptHostFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinfile: ::core::mem::ManuallyDrop, pbstroutfile: *mut super::super::super::Foundation::BSTR, cflags: u32, bstrdefaultlang: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EncodeScriptHostFile: usize, + pub EncodeScriptHostFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinfile: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstroutfile: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, cflags: u32, bstrdefaultlang: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] #[repr(transparent)] @@ -5434,9 +5406,9 @@ impl IActiveScriptParse32 { pub unsafe fn InitNew(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).InitNew)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn AddScriptlet<'a, P0, P1, P2, P3, P4, P5>(&self, pstrdefaultname: P0, pstrcode: P1, pstritemname: P2, pstrsubitemname: P3, pstreventname: P4, pstrdelimiter: P5, dwsourcecontextcookie: u32, ulstartinglinenumber: u32, dwflags: u32, pbstrname: &mut super::super::super::Foundation::BSTR, pexcepinfo: &mut super::super::Com::EXCEPINFO) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn AddScriptlet<'a, P0, P1, P2, P3, P4, P5>(&self, pstrdefaultname: P0, pstrcode: P1, pstritemname: P2, pstrsubitemname: P3, pstreventname: P4, pstrdelimiter: P5, dwsourcecontextcookie: u32, ulstartinglinenumber: u32, dwflags: u32, pbstrname: &mut ::windows::core::BSTR, pexcepinfo: &mut super::super::Com::EXCEPINFO) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into<::windows::core::PCWSTR>, @@ -5499,9 +5471,9 @@ unsafe impl ::windows::core::Interface for IActiveScriptParse32 { pub struct IActiveScriptParse32_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub InitNew: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub AddScriptlet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrdefaultname: ::windows::core::PCWSTR, pstrcode: ::windows::core::PCWSTR, pstritemname: ::windows::core::PCWSTR, pstrsubitemname: ::windows::core::PCWSTR, pstreventname: ::windows::core::PCWSTR, pstrdelimiter: ::windows::core::PCWSTR, dwsourcecontextcookie: u32, ulstartinglinenumber: u32, dwflags: u32, pbstrname: *mut super::super::super::Foundation::BSTR, pexcepinfo: *mut super::super::Com::EXCEPINFO) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub AddScriptlet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrdefaultname: ::windows::core::PCWSTR, pstrcode: ::windows::core::PCWSTR, pstritemname: ::windows::core::PCWSTR, pstrsubitemname: ::windows::core::PCWSTR, pstreventname: ::windows::core::PCWSTR, pstrdelimiter: ::windows::core::PCWSTR, dwsourcecontextcookie: u32, ulstartinglinenumber: u32, dwflags: u32, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pexcepinfo: *mut super::super::Com::EXCEPINFO) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] AddScriptlet: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub ParseScriptText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrcode: ::windows::core::PCWSTR, pstritemname: ::windows::core::PCWSTR, punkcontext: *mut ::core::ffi::c_void, pstrdelimiter: ::windows::core::PCWSTR, dwsourcecontextcookie: u32, ulstartinglinenumber: u32, dwflags: u32, pvarresult: *mut super::super::Com::VARIANT, pexcepinfo: *mut super::super::Com::EXCEPINFO) -> ::windows::core::HRESULT, @@ -5515,9 +5487,9 @@ impl IActiveScriptParse64 { pub unsafe fn InitNew(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).InitNew)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn AddScriptlet<'a, P0, P1, P2, P3, P4, P5>(&self, pstrdefaultname: P0, pstrcode: P1, pstritemname: P2, pstrsubitemname: P3, pstreventname: P4, pstrdelimiter: P5, dwsourcecontextcookie: u64, ulstartinglinenumber: u32, dwflags: u32, pbstrname: &mut super::super::super::Foundation::BSTR, pexcepinfo: &mut super::super::Com::EXCEPINFO) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn AddScriptlet<'a, P0, P1, P2, P3, P4, P5>(&self, pstrdefaultname: P0, pstrcode: P1, pstritemname: P2, pstrsubitemname: P3, pstreventname: P4, pstrdelimiter: P5, dwsourcecontextcookie: u64, ulstartinglinenumber: u32, dwflags: u32, pbstrname: &mut ::windows::core::BSTR, pexcepinfo: &mut super::super::Com::EXCEPINFO) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into<::windows::core::PCWSTR>, @@ -5580,9 +5552,9 @@ unsafe impl ::windows::core::Interface for IActiveScriptParse64 { pub struct IActiveScriptParse64_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub InitNew: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub AddScriptlet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrdefaultname: ::windows::core::PCWSTR, pstrcode: ::windows::core::PCWSTR, pstritemname: ::windows::core::PCWSTR, pstrsubitemname: ::windows::core::PCWSTR, pstreventname: ::windows::core::PCWSTR, pstrdelimiter: ::windows::core::PCWSTR, dwsourcecontextcookie: u64, ulstartinglinenumber: u32, dwflags: u32, pbstrname: *mut super::super::super::Foundation::BSTR, pexcepinfo: *mut super::super::Com::EXCEPINFO) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub AddScriptlet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrdefaultname: ::windows::core::PCWSTR, pstrcode: ::windows::core::PCWSTR, pstritemname: ::windows::core::PCWSTR, pstrsubitemname: ::windows::core::PCWSTR, pstreventname: ::windows::core::PCWSTR, pstrdelimiter: ::windows::core::PCWSTR, dwsourcecontextcookie: u64, ulstartinglinenumber: u32, dwflags: u32, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pexcepinfo: *mut super::super::Com::EXCEPINFO) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] AddScriptlet: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub ParseScriptText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrcode: ::windows::core::PCWSTR, pstritemname: ::windows::core::PCWSTR, punkcontext: *mut ::core::ffi::c_void, pstrdelimiter: ::windows::core::PCWSTR, dwsourcecontextcookie: u64, ulstartinglinenumber: u32, dwflags: u32, pvarresult: *mut super::super::Com::VARIANT, pexcepinfo: *mut super::super::Com::EXCEPINFO) -> ::windows::core::HRESULT, @@ -6762,8 +6734,6 @@ impl IActiveScriptProfilerHeapEnum { pub unsafe fn Next(&self, heapobjects: &mut [*mut PROFILER_HEAP_OBJECT], pceltfetched: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Next)(::windows::core::Interface::as_raw(self), heapobjects.len() as _, ::core::mem::transmute(heapobjects.as_ptr()), ::core::mem::transmute(pceltfetched)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetOptionalInfo(&self, heapobject: &PROFILER_HEAP_OBJECT, optionalinfo: &mut [PROFILER_HEAP_OBJECT_OPTIONAL_INFO]) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetOptionalInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(heapobject), optionalinfo.len() as _, ::core::mem::transmute(optionalinfo.as_ptr())).ok() } @@ -6814,10 +6784,7 @@ unsafe impl ::windows::core::Interface for IActiveScriptProfilerHeapEnum { pub struct IActiveScriptProfilerHeapEnum_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32, heapobjects: *mut *mut PROFILER_HEAP_OBJECT, pceltfetched: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] pub GetOptionalInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, heapobject: *const PROFILER_HEAP_OBJECT, celt: u32, optionalinfo: *mut PROFILER_HEAP_OBJECT_OPTIONAL_INFO) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetOptionalInfo: usize, pub FreeObjectAndOptionalInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32, heapobjects: *const *const PROFILER_HEAP_OBJECT) -> ::windows::core::HRESULT, pub GetNameIdMap: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnamelist: *mut *mut *mut ::windows::core::PWSTR, pcelt: *mut u32) -> ::windows::core::HRESULT, } @@ -6951,11 +6918,9 @@ impl IActiveScriptSite { { (::windows::core::Interface::vtable(self).GetItemInfo)(::windows::core::Interface::as_raw(self), pstrname.into(), dwreturnmask, ::core::mem::transmute(ppiunkitem), ::core::mem::transmute(ppti)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDocVersionString(&self) -> ::windows::core::Result { + pub unsafe fn GetDocVersionString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDocVersionString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDocVersionString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -7022,10 +6987,7 @@ pub struct IActiveScriptSite_Vtbl { pub GetItemInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrname: ::windows::core::PCWSTR, dwreturnmask: u32, ppiunkitem: *mut *mut ::core::ffi::c_void, ppti: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetItemInfo: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetDocVersionString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrversion: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDocVersionString: usize, + pub GetDocVersionString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrversion: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub OnScriptTerminate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvarresult: *const super::super::Com::VARIANT, pexcepinfo: *const super::super::Com::EXCEPINFO) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -7513,15 +7475,9 @@ pub struct IActiveScriptStats_Vtbl { #[repr(transparent)] pub struct IActiveScriptStringCompare(::windows::core::IUnknown); impl IActiveScriptStringCompare { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StrComp<'a, P0, P1>(&self, bszstr1: P0, bszstr2: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn StrComp(&self, bszstr1: &::windows::core::BSTR, bszstr2: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).StrComp)(::windows::core::Interface::as_raw(self), bszstr1.into().abi(), bszstr2.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).StrComp)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bszstr1), ::core::mem::transmute_copy(bszstr2), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -7563,10 +7519,7 @@ unsafe impl ::windows::core::Interface for IActiveScriptStringCompare { #[doc(hidden)] pub struct IActiveScriptStringCompare_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub StrComp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bszstr1: ::core::mem::ManuallyDrop, bszstr2: ::core::mem::ManuallyDrop, iret: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - StrComp: usize, + pub StrComp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bszstr1: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bszstr2: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iret: *mut i32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] #[repr(transparent)] @@ -7628,8 +7581,8 @@ pub struct IActiveScriptTraceInfo_Vtbl { #[repr(transparent)] pub struct IActiveScriptWinRTErrorDebug(::windows::core::IUnknown); impl IActiveScriptWinRTErrorDebug { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetExceptionInfo(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetExceptionInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) @@ -7637,29 +7590,21 @@ impl IActiveScriptWinRTErrorDebug { pub unsafe fn GetSourcePosition(&self, pdwsourcecontext: &mut u32, pullinenumber: &mut u32, plcharacterposition: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetSourcePosition)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdwsourcecontext), ::core::mem::transmute(pullinenumber), ::core::mem::transmute(plcharacterposition)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetSourceLineText(&self) -> ::windows::core::Result { + pub unsafe fn GetSourceLineText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetSourceLineText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetSourceLineText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetRestrictedErrorString(&self) -> ::windows::core::Result { + pub unsafe fn GetRestrictedErrorString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetRestrictedErrorString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetRestrictedErrorString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetRestrictedErrorReference(&self) -> ::windows::core::Result { + pub unsafe fn GetRestrictedErrorReference(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetRestrictedErrorReference)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetRestrictedErrorReference)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCapabilitySid(&self) -> ::windows::core::Result { + pub unsafe fn GetCapabilitySid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetCapabilitySid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetCapabilitySid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -7716,18 +7661,9 @@ unsafe impl ::windows::core::Interface for IActiveScriptWinRTErrorDebug { #[doc(hidden)] pub struct IActiveScriptWinRTErrorDebug_Vtbl { pub base__: IActiveScriptError_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetRestrictedErrorString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, errorstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetRestrictedErrorString: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetRestrictedErrorReference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, referencestring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetRestrictedErrorReference: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetCapabilitySid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, capabilitysid: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetCapabilitySid: usize, + pub GetRestrictedErrorString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, errorstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetRestrictedErrorReference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, referencestring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetCapabilitySid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, capabilitysid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] #[repr(transparent)] @@ -8048,11 +7984,9 @@ impl IDataModelConcept { { (::windows::core::Interface::vtable(self).InitializeObject)(::windows::core::Interface::as_raw(self), modelobject.into().abi(), matchingtypesignature.into().abi(), wildcardmatches.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self) -> ::windows::core::Result { + pub unsafe fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -8095,10 +8029,7 @@ unsafe impl ::windows::core::Interface for IDataModelConcept { pub struct IDataModelConcept_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub InitializeObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, modelobject: *mut ::core::ffi::c_void, matchingtypesignature: *mut ::core::ffi::c_void, wildcardmatches: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, modelname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetName: usize, + pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, modelname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] #[repr(transparent)] @@ -8599,11 +8530,9 @@ pub struct IDataModelNameBinder_Vtbl { #[repr(transparent)] pub struct IDataModelScript(::windows::core::IUnknown); impl IDataModelScript { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self) -> ::windows::core::Result { + pub unsafe fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Rename<'a, P0>(&self, scriptname: P0) -> ::windows::core::Result<()> where @@ -8678,10 +8607,7 @@ unsafe impl ::windows::core::Interface for IDataModelScript { #[doc(hidden)] pub struct IDataModelScript_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scriptname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetName: usize, + pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scriptname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Rename: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scriptname: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Populate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contentstream: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -8751,9 +8677,7 @@ impl IDataModelScriptDebug { pub unsafe fn GetDebugState(&self) -> ScriptDebugState { (::windows::core::Interface::vtable(self).GetDebugState)(::windows::core::Interface::as_raw(self)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCurrentPosition(&self, currentposition: &mut ScriptDebugPosition, positionspanend: ::core::option::Option<&mut ScriptDebugPosition>, linetext: ::core::option::Option<&mut super::super::super::Foundation::BSTR>) -> ::windows::core::Result<()> { + pub unsafe fn GetCurrentPosition(&self, currentposition: &mut ScriptDebugPosition, positionspanend: ::core::option::Option<&mut ScriptDebugPosition>, linetext: ::core::option::Option<&mut ::windows::core::BSTR>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetCurrentPosition)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(currentposition), ::core::mem::transmute(positionspanend), ::core::mem::transmute(linetext)).ok() } pub unsafe fn GetStack(&self) -> ::windows::core::Result { @@ -8832,10 +8756,7 @@ unsafe impl ::windows::core::Interface for IDataModelScriptDebug { pub struct IDataModelScriptDebug_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub GetDebugState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ScriptDebugState, - #[cfg(feature = "Win32_Foundation")] - pub GetCurrentPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, currentposition: *mut ScriptDebugPosition, positionspanend: *mut ScriptDebugPosition, linetext: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetCurrentPosition: usize, + pub GetCurrentPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, currentposition: *mut ScriptDebugPosition, positionspanend: *mut ScriptDebugPosition, linetext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetStack: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stack: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub SetBreakpoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lineposition: u32, columnposition: u32, breakpoint: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub FindBreakpointById: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, breakpointid: u64, breakpoint: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -8852,9 +8773,7 @@ impl IDataModelScriptDebug2 { pub unsafe fn GetDebugState(&self) -> ScriptDebugState { (::windows::core::Interface::vtable(self).base__.GetDebugState)(::windows::core::Interface::as_raw(self)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCurrentPosition(&self, currentposition: &mut ScriptDebugPosition, positionspanend: ::core::option::Option<&mut ScriptDebugPosition>, linetext: ::core::option::Option<&mut super::super::super::Foundation::BSTR>) -> ::windows::core::Result<()> { + pub unsafe fn GetCurrentPosition(&self, currentposition: &mut ScriptDebugPosition, positionspanend: ::core::option::Option<&mut ScriptDebugPosition>, linetext: ::core::option::Option<&mut ::windows::core::BSTR>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetCurrentPosition)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(currentposition), ::core::mem::transmute(positionspanend), ::core::mem::transmute(linetext)).ok() } pub unsafe fn GetStack(&self) -> ::windows::core::Result { @@ -8975,9 +8894,7 @@ impl IDataModelScriptDebugBreakpoint { pub unsafe fn Remove(&self) { (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self)) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPosition(&self, position: &mut ScriptDebugPosition, positionspanend: ::core::option::Option<&mut ScriptDebugPosition>, linetext: ::core::option::Option<&mut super::super::super::Foundation::BSTR>) -> ::windows::core::Result<()> { + pub unsafe fn GetPosition(&self, position: &mut ScriptDebugPosition, positionspanend: ::core::option::Option<&mut ScriptDebugPosition>, linetext: ::core::option::Option<&mut ::windows::core::BSTR>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetPosition)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(position), ::core::mem::transmute(positionspanend), ::core::mem::transmute(linetext)).ok() } } @@ -9025,10 +8942,7 @@ pub struct IDataModelScriptDebugBreakpoint_Vtbl { pub Enable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), pub Disable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), - #[cfg(feature = "Win32_Foundation")] - pub GetPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, position: *mut ScriptDebugPosition, positionspanend: *mut ScriptDebugPosition, linetext: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPosition: usize, + pub GetPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, position: *mut ScriptDebugPosition, positionspanend: *mut ScriptDebugPosition, linetext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] #[repr(transparent)] @@ -9195,15 +9109,11 @@ pub struct IDataModelScriptDebugStack_Vtbl { #[repr(transparent)] pub struct IDataModelScriptDebugStackFrame(::windows::core::IUnknown); impl IDataModelScriptDebugStackFrame { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self) -> ::windows::core::Result { + pub unsafe fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPosition(&self, position: &mut ScriptDebugPosition, positionspanend: ::core::option::Option<&mut ScriptDebugPosition>, linetext: ::core::option::Option<&mut super::super::super::Foundation::BSTR>) -> ::windows::core::Result<()> { + pub unsafe fn GetPosition(&self, position: &mut ScriptDebugPosition, positionspanend: ::core::option::Option<&mut ScriptDebugPosition>, linetext: ::core::option::Option<&mut ::windows::core::BSTR>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetPosition)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(position), ::core::mem::transmute(positionspanend), ::core::mem::transmute(linetext)).ok() } pub unsafe fn IsTransitionPoint(&self) -> ::windows::core::Result { @@ -9268,14 +9178,8 @@ unsafe impl ::windows::core::Interface for IDataModelScriptDebugStackFrame { #[doc(hidden)] pub struct IDataModelScriptDebugStackFrame_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetName: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, position: *mut ScriptDebugPosition, positionspanend: *mut ScriptDebugPosition, linetext: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPosition: usize, + pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, position: *mut ScriptDebugPosition, positionspanend: *mut ScriptDebugPosition, linetext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub IsTransitionPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, istransitionpoint: *mut bool) -> ::windows::core::HRESULT, pub GetTransition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, transitionscript: *mut *mut ::core::ffi::c_void, istransitioncontiguous: *mut bool) -> ::windows::core::HRESULT, pub Evaluate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwszexpression: ::windows::core::PCWSTR, ppresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -9289,9 +9193,7 @@ impl IDataModelScriptDebugVariableSetEnumerator { pub unsafe fn Reset(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Reset)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetNext(&self, variablename: &mut super::super::super::Foundation::BSTR, variablevalue: ::core::option::Option<&mut ::core::option::Option>, variablemetadata: ::core::option::Option<&mut ::core::option::Option>) -> ::windows::core::Result<()> { + pub unsafe fn GetNext(&self, variablename: &mut ::windows::core::BSTR, variablevalue: ::core::option::Option<&mut ::core::option::Option>, variablemetadata: ::core::option::Option<&mut ::core::option::Option>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetNext)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(variablename), ::core::mem::transmute(variablevalue), ::core::mem::transmute(variablemetadata)).ok() } } @@ -9335,10 +9237,7 @@ unsafe impl ::windows::core::Interface for IDataModelScriptDebugVariableSetEnume pub struct IDataModelScriptDebugVariableSetEnumerator_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, variablename: *mut super::super::super::Foundation::BSTR, variablevalue: *mut *mut ::core::ffi::c_void, variablemetadata: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetNext: usize, + pub GetNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, variablename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, variablevalue: *mut *mut ::core::ffi::c_void, variablemetadata: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] #[repr(transparent)] @@ -9486,17 +9385,13 @@ pub struct IDataModelScriptManager_Vtbl { #[repr(transparent)] pub struct IDataModelScriptProvider(::windows::core::IUnknown); impl IDataModelScriptProvider { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self) -> ::windows::core::Result { + pub unsafe fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetExtension(&self) -> ::windows::core::Result { + pub unsafe fn GetExtension(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetExtension)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetExtension)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CreateScript(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -9550,14 +9445,8 @@ unsafe impl ::windows::core::Interface for IDataModelScriptProvider { #[doc(hidden)] pub struct IDataModelScriptProvider_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetName: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, extension: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetExtension: usize, + pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, extension: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub CreateScript: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, script: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetDefaultTemplateContent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, templatecontent: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub EnumerateTemplates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enumerator: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -9620,17 +9509,13 @@ pub struct IDataModelScriptProviderEnumerator_Vtbl { #[repr(transparent)] pub struct IDataModelScriptTemplate(::windows::core::IUnknown); impl IDataModelScriptTemplate { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self) -> ::windows::core::Result { + pub unsafe fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDescription(&self) -> ::windows::core::Result { + pub unsafe fn GetDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9678,14 +9563,8 @@ unsafe impl ::windows::core::Interface for IDataModelScriptTemplate { #[doc(hidden)] pub struct IDataModelScriptTemplate_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, templatename: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetName: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, templatedescription: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDescription: usize, + pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, templatename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, templatedescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub GetContent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contentstream: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -10305,11 +10184,9 @@ impl IDebugApplication32 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.EnumThreads)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self) -> ::windows::core::Result { + pub unsafe fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetRootNode(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -10541,11 +10418,9 @@ impl IDebugApplication64 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.EnumThreads)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self) -> ::windows::core::Result { + pub unsafe fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetRootNode(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -10741,11 +10616,9 @@ pub struct IDebugApplication64_Vtbl { #[repr(transparent)] pub struct IDebugApplicationNode(::windows::core::IUnknown); impl IDebugApplicationNode { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self, dnt: DOCUMENTNAMETYPE) -> ::windows::core::Result { + pub unsafe fn GetName(&self, dnt: DOCUMENTNAMETYPE) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetName)(::windows::core::Interface::as_raw(self), dnt, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetName)(::windows::core::Interface::as_raw(self), dnt, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetDocumentClassId(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -11005,9 +10878,7 @@ impl IDebugApplicationThread { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.EnumStackFrames)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDescription(&self, pbstrdescription: &mut super::super::super::Foundation::BSTR, pbstrstate: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetDescription(&self, pbstrdescription: &mut ::windows::core::BSTR, pbstrstate: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrdescription), ::core::mem::transmute(pbstrstate)).ok() } pub unsafe fn SetNextStatement<'a, P0, P1>(&self, pstackframe: P0, pcodecontext: P1) -> ::windows::core::Result<()> @@ -11288,9 +11159,7 @@ impl IDebugApplicationThread64 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.EnumStackFrames)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDescription(&self, pbstrdescription: &mut super::super::super::Foundation::BSTR, pbstrstate: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetDescription(&self, pbstrdescription: &mut ::windows::core::BSTR, pbstrstate: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrdescription), ::core::mem::transmute(pbstrstate)).ok() } pub unsafe fn SetNextStatement<'a, P0, P1>(&self, pstackframe: P0, pcodecontext: P1) -> ::windows::core::Result<()> @@ -22924,11 +22793,9 @@ pub struct IDebugDataSpaces4_Vtbl { #[repr(transparent)] pub struct IDebugDocument(::windows::core::IUnknown); impl IDebugDocument { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self, dnt: DOCUMENTNAMETYPE) -> ::windows::core::Result { + pub unsafe fn GetName(&self, dnt: DOCUMENTNAMETYPE) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), dnt, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), dnt, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetDocumentClassId(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -23374,14 +23241,12 @@ impl IDebugDocumentHost { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPathName(&self, pbstrlongname: &mut super::super::super::Foundation::BSTR, pfisoriginalfile: &mut super::super::super::Foundation::BOOL) -> ::windows::core::Result<()> { + pub unsafe fn GetPathName(&self, pbstrlongname: &mut ::windows::core::BSTR, pfisoriginalfile: &mut super::super::super::Foundation::BOOL) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetPathName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrlongname), ::core::mem::transmute(pfisoriginalfile)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetFileName(&self) -> ::windows::core::Result { + pub unsafe fn GetFileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn NotifyChanged(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).NotifyChanged)(::windows::core::Interface::as_raw(self)).ok() @@ -23430,24 +23295,19 @@ pub struct IDebugDocumentHost_Vtbl { pub GetScriptTextAttributes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrcode: ::windows::core::PCWSTR, unumcodechars: u32, pstrdelimiter: ::windows::core::PCWSTR, dwflags: u32, pattr: *mut u16) -> ::windows::core::HRESULT, pub OnCreateDocumentContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunkouter: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub GetPathName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrlongname: *mut super::super::super::Foundation::BSTR, pfisoriginalfile: *mut super::super::super::Foundation::BOOL) -> ::windows::core::HRESULT, + pub GetPathName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrlongname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfisoriginalfile: *mut super::super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] GetPathName: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrshortname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetFileName: usize, + pub GetFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrshortname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub NotifyChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] #[repr(transparent)] pub struct IDebugDocumentInfo(::windows::core::IUnknown); impl IDebugDocumentInfo { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self, dnt: DOCUMENTNAMETYPE) -> ::windows::core::Result { + pub unsafe fn GetName(&self, dnt: DOCUMENTNAMETYPE) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), dnt, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), dnt, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetDocumentClassId(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -23493,21 +23353,16 @@ unsafe impl ::windows::core::Interface for IDebugDocumentInfo { #[doc(hidden)] pub struct IDebugDocumentInfo_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dnt: DOCUMENTNAMETYPE, pbstrname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetName: usize, + pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dnt: DOCUMENTNAMETYPE, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetDocumentClassId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pclsiddocument: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] #[repr(transparent)] pub struct IDebugDocumentProvider(::windows::core::IUnknown); impl IDebugDocumentProvider { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self, dnt: DOCUMENTNAMETYPE) -> ::windows::core::Result { + pub unsafe fn GetName(&self, dnt: DOCUMENTNAMETYPE) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), dnt, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), dnt, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetDocumentClassId(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -23578,11 +23433,9 @@ pub struct IDebugDocumentProvider_Vtbl { #[repr(transparent)] pub struct IDebugDocumentText(::windows::core::IUnknown); impl IDebugDocumentText { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self, dnt: DOCUMENTNAMETYPE) -> ::windows::core::Result { + pub unsafe fn GetName(&self, dnt: DOCUMENTNAMETYPE) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetName)(::windows::core::Interface::as_raw(self), dnt, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetName)(::windows::core::Interface::as_raw(self), dnt, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetDocumentClassId(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -23697,11 +23550,9 @@ pub struct IDebugDocumentText_Vtbl { #[repr(transparent)] pub struct IDebugDocumentTextAuthor(::windows::core::IUnknown); impl IDebugDocumentTextAuthor { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self, dnt: DOCUMENTNAMETYPE) -> ::windows::core::Result { + pub unsafe fn GetName(&self, dnt: DOCUMENTNAMETYPE) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.GetName)(::windows::core::Interface::as_raw(self), dnt, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.GetName)(::windows::core::Interface::as_raw(self), dnt, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetDocumentClassId(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -23907,14 +23758,12 @@ pub struct IDebugDocumentTextExternalAuthor(::windows::core::IUnknown); impl IDebugDocumentTextExternalAuthor { #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPathName(&self, pbstrlongname: &mut super::super::super::Foundation::BSTR, pfisoriginalfile: &mut super::super::super::Foundation::BOOL) -> ::windows::core::Result<()> { + pub unsafe fn GetPathName(&self, pbstrlongname: &mut ::windows::core::BSTR, pfisoriginalfile: &mut super::super::super::Foundation::BOOL) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetPathName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrlongname), ::core::mem::transmute(pfisoriginalfile)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetFileName(&self) -> ::windows::core::Result { + pub unsafe fn GetFileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn NotifyChanged(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).NotifyChanged)(::windows::core::Interface::as_raw(self)).ok() @@ -23960,13 +23809,10 @@ unsafe impl ::windows::core::Interface for IDebugDocumentTextExternalAuthor { pub struct IDebugDocumentTextExternalAuthor_Vtbl { pub base__: ::windows::core::IUnknownVtbl, #[cfg(feature = "Win32_Foundation")] - pub GetPathName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrlongname: *mut super::super::super::Foundation::BSTR, pfisoriginalfile: *mut super::super::super::Foundation::BOOL) -> ::windows::core::HRESULT, + pub GetPathName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrlongname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfisoriginalfile: *mut super::super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] GetPathName: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrshortname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetFileName: usize, + pub GetFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrshortname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub NotifyChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] @@ -24348,9 +24194,7 @@ impl IDebugExpression { pub unsafe fn QueryIsComplete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).QueryIsComplete)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetResultAsString(&self, phrresult: &mut ::windows::core::HRESULT, pbstrresult: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetResultAsString(&self, phrresult: &mut ::windows::core::HRESULT, pbstrresult: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetResultAsString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(phrresult), ::core::mem::transmute(pbstrresult)).ok() } pub unsafe fn GetResultAsDebugProperty(&self, phrresult: &mut ::windows::core::HRESULT, ppdp: &mut ::core::option::Option) -> ::windows::core::Result<()> { @@ -24399,10 +24243,7 @@ pub struct IDebugExpression_Vtbl { pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdecb: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Abort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub QueryIsComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetResultAsString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phrresult: *mut ::windows::core::HRESULT, pbstrresult: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetResultAsString: usize, + pub GetResultAsString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phrresult: *mut ::windows::core::HRESULT, pbstrresult: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetResultAsDebugProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phrresult: *mut ::windows::core::HRESULT, ppdp: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] @@ -24466,9 +24307,7 @@ impl IDebugExpressionContext { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ParseLanguageText)(::windows::core::Interface::as_raw(self), pstrcode.into(), nradix, pstrdelimiter.into(), dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetLanguageInfo(&self, pbstrlanguagename: &mut super::super::super::Foundation::BSTR, planguageid: &mut ::windows::core::GUID) -> ::windows::core::Result<()> { + pub unsafe fn GetLanguageInfo(&self, pbstrlanguagename: &mut ::windows::core::BSTR, planguageid: &mut ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetLanguageInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrlanguagename), ::core::mem::transmute(planguageid)).ok() } } @@ -24512,17 +24351,12 @@ unsafe impl ::windows::core::Interface for IDebugExpressionContext { pub struct IDebugExpressionContext_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub ParseLanguageText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrcode: ::windows::core::PCWSTR, nradix: u32, pstrdelimiter: ::windows::core::PCWSTR, dwflags: u32, ppe: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetLanguageInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrlanguagename: *mut super::super::super::Foundation::BSTR, planguageid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetLanguageInfo: usize, + pub GetLanguageInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrlanguagename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, planguageid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] #[repr(transparent)] pub struct IDebugExtendedProperty(::windows::core::IUnknown); impl IDebugExtendedProperty { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetPropertyInfo(&self, dwfieldspec: u32, nradix: u32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetPropertyInfo)(::windows::core::Interface::as_raw(self), dwfieldspec, nradix, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) @@ -24623,9 +24457,9 @@ pub struct IDebugFormatter(::windows::core::IUnknown); impl IDebugFormatter { #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetStringForVariant(&self, pvar: &super::super::Com::VARIANT, nradix: u32) -> ::windows::core::Result { + pub unsafe fn GetStringForVariant(&self, pvar: &super::super::Com::VARIANT, nradix: u32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetStringForVariant)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pvar), nradix, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetStringForVariant)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pvar), nradix, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -24636,11 +24470,11 @@ impl IDebugFormatter { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetVariantForString)(::windows::core::Interface::as_raw(self), pwstrvalue.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetStringForVarType(&self, vt: super::super::Com::VARENUM, ptdescarraytype: &super::super::Com::TYPEDESC) -> ::windows::core::Result { + #[doc = "*Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] + #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] + pub unsafe fn GetStringForVarType(&self, vt: super::super::Com::VARENUM, ptdescarraytype: &super::super::Com::TYPEDESC) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetStringForVarType)(::windows::core::Interface::as_raw(self), vt, ::core::mem::transmute(ptdescarraytype), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetStringForVarType)(::windows::core::Interface::as_raw(self), vt, ::core::mem::transmute(ptdescarraytype), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -24683,16 +24517,16 @@ unsafe impl ::windows::core::Interface for IDebugFormatter { pub struct IDebugFormatter_Vtbl { pub base__: ::windows::core::IUnknownVtbl, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetStringForVariant: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvar: *const super::super::Com::VARIANT, nradix: u32, pbstrvalue: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub GetStringForVariant: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvar: *const super::super::Com::VARIANT, nradix: u32, pbstrvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetStringForVariant: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub GetVariantForString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwstrvalue: ::windows::core::PCWSTR, pvar: *mut super::super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetVariantForString: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetStringForVarType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vt: super::super::Com::VARENUM, ptdescarraytype: *const super::super::Com::TYPEDESC, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] + #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] + pub GetStringForVarType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vt: super::super::Com::VARENUM, ptdescarraytype: *const super::super::Com::TYPEDESC, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetStringForVarType: usize, } #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] @@ -24861,11 +24695,9 @@ impl IDebugHostBaseClass { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetSymbolKind)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self) -> ::windows::core::Result { + pub unsafe fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -24962,11 +24794,9 @@ impl IDebugHostConstant { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetSymbolKind)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self) -> ::windows::core::Result { + pub unsafe fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -25121,11 +24951,9 @@ impl IDebugHostData { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetSymbolKind)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self) -> ::windows::core::Result { + pub unsafe fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -25496,11 +25324,9 @@ impl IDebugHostField { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetSymbolKind)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self) -> ::windows::core::Result { + pub unsafe fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -25627,14 +25453,12 @@ impl IDebugHostMemory { { (::windows::core::Interface::vtable(self).WritePointers)(::windows::core::Interface::as_raw(self), context.into().abi(), ::core::mem::transmute(location), pointers.len() as _, ::core::mem::transmute(pointers.as_ptr())).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDisplayStringForLocation<'a, P0>(&self, context: P0, location: Location, verbose: u8) -> ::windows::core::Result + pub unsafe fn GetDisplayStringForLocation<'a, P0>(&self, context: P0, location: Location, verbose: u8) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, IDebugHostContext>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDisplayStringForLocation)(::windows::core::Interface::as_raw(self), context.into().abi(), ::core::mem::transmute(location), verbose, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDisplayStringForLocation)(::windows::core::Interface::as_raw(self), context.into().abi(), ::core::mem::transmute(location), verbose, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -25680,10 +25504,7 @@ pub struct IDebugHostMemory_Vtbl { pub WriteBytes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, location: Location, buffer: *const ::core::ffi::c_void, buffersize: u64, byteswritten: *mut u64) -> ::windows::core::HRESULT, pub ReadPointers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, location: Location, count: u64, pointers: *mut u64) -> ::windows::core::HRESULT, pub WritePointers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, location: Location, count: u64, pointers: *const u64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetDisplayStringForLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, location: Location, verbose: u8, locationname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDisplayStringForLocation: usize, + pub GetDisplayStringForLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, location: Location, verbose: u8, locationname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] #[repr(transparent)] @@ -25714,14 +25535,12 @@ impl IDebugHostMemory2 { { (::windows::core::Interface::vtable(self).base__.WritePointers)(::windows::core::Interface::as_raw(self), context.into().abi(), ::core::mem::transmute(location), pointers.len() as _, ::core::mem::transmute(pointers.as_ptr())).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDisplayStringForLocation<'a, P0>(&self, context: P0, location: Location, verbose: u8) -> ::windows::core::Result + pub unsafe fn GetDisplayStringForLocation<'a, P0>(&self, context: P0, location: Location, verbose: u8) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, IDebugHostContext>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetDisplayStringForLocation)(::windows::core::Interface::as_raw(self), context.into().abi(), ::core::mem::transmute(location), verbose, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetDisplayStringForLocation)(::windows::core::Interface::as_raw(self), context.into().abi(), ::core::mem::transmute(location), verbose, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn LinearizeLocation<'a, P0>(&self, context: P0, location: Location) -> ::windows::core::Result where @@ -25806,11 +25625,9 @@ impl IDebugHostModule { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetSymbolKind)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self) -> ::windows::core::Result { + pub unsafe fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -25827,11 +25644,9 @@ impl IDebugHostModule { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.CompareAgainst)(::windows::core::Interface::as_raw(self), pcomparisonsymbol.into().abi(), comparisonflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetImageName(&self, allowpath: u8) -> ::windows::core::Result { + pub unsafe fn GetImageName(&self, allowpath: u8) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetImageName)(::windows::core::Interface::as_raw(self), allowpath, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetImageName)(::windows::core::Interface::as_raw(self), allowpath, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetBaseLocation(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -25913,10 +25728,7 @@ unsafe impl ::windows::core::Interface for IDebugHostModule { #[doc(hidden)] pub struct IDebugHostModule_Vtbl { pub base__: IDebugHostSymbol_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetImageName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, allowpath: u8, imagename: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetImageName: usize, + pub GetImageName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, allowpath: u8, imagename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetBaseLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, modulebaselocation: *mut Location) -> ::windows::core::HRESULT, pub GetVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fileversion: *mut u64, productversion: *mut u64) -> ::windows::core::HRESULT, pub FindTypeByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, typename: ::windows::core::PCWSTR, r#type: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -25942,11 +25754,9 @@ impl IDebugHostModule2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.GetSymbolKind)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self) -> ::windows::core::Result { + pub unsafe fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -25963,11 +25773,9 @@ impl IDebugHostModule2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.CompareAgainst)(::windows::core::Interface::as_raw(self), pcomparisonsymbol.into().abi(), comparisonflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetImageName(&self, allowpath: u8) -> ::windows::core::Result { + pub unsafe fn GetImageName(&self, allowpath: u8) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetImageName)(::windows::core::Interface::as_raw(self), allowpath, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetImageName)(::windows::core::Interface::as_raw(self), allowpath, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetBaseLocation(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -26141,11 +25949,9 @@ impl IDebugHostPublic { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetSymbolKind)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self) -> ::windows::core::Result { + pub unsafe fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -26350,11 +26156,9 @@ impl IDebugHostSymbol { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetSymbolKind)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self) -> ::windows::core::Result { + pub unsafe fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -26414,10 +26218,7 @@ pub struct IDebugHostSymbol_Vtbl { pub GetContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub EnumerateChildren: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, kind: SymbolKind, name: ::windows::core::PCWSTR, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetSymbolKind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, kind: *mut SymbolKind) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, symbolname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetName: usize, + pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, symbolname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetContainingModule: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, containingmodule: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub CompareAgainst: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcomparisonsymbol: *mut ::core::ffi::c_void, comparisonflags: u32, pmatches: *mut bool) -> ::windows::core::HRESULT, @@ -26441,11 +26242,9 @@ impl IDebugHostSymbol2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetSymbolKind)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self) -> ::windows::core::Result { + pub unsafe fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -26704,11 +26503,9 @@ impl IDebugHostType { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetSymbolKind)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self) -> ::windows::core::Result { + pub unsafe fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -26892,11 +26689,9 @@ impl IDebugHostType2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.GetSymbolKind)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self) -> ::windows::core::Result { + pub unsafe fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -27669,8 +27464,6 @@ pub struct IDebugPlmClient3_Vtbl { #[repr(transparent)] pub struct IDebugProperty(::windows::core::IUnknown); impl IDebugProperty { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetPropertyInfo(&self, dwfieldspec: u32, nradix: u32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetPropertyInfo)(::windows::core::Interface::as_raw(self), dwfieldspec, nradix, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) @@ -27734,10 +27527,7 @@ unsafe impl ::windows::core::Interface for IDebugProperty { #[doc(hidden)] pub struct IDebugProperty_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] pub GetPropertyInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwfieldspec: u32, nradix: u32, ppropertyinfo: *mut DebugPropertyInfo) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPropertyInfo: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub GetExtendedInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cinfos: u32, rgguidextendedinfo: *const ::windows::core::GUID, rgvar: *mut super::super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -27750,11 +27540,9 @@ pub struct IDebugProperty_Vtbl { #[repr(transparent)] pub struct IDebugPropertyEnumType_All(::windows::core::IUnknown); impl IDebugPropertyEnumType_All { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self) -> ::windows::core::Result { + pub unsafe fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -27796,20 +27584,15 @@ unsafe impl ::windows::core::Interface for IDebugPropertyEnumType_All { #[doc(hidden)] pub struct IDebugPropertyEnumType_All_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__idebugpropertyenumtype_all0000: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetName: usize, + pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, __midl__idebugpropertyenumtype_all0000: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] #[repr(transparent)] pub struct IDebugPropertyEnumType_Arguments(::windows::core::IUnknown); impl IDebugPropertyEnumType_Arguments { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self) -> ::windows::core::Result { + pub unsafe fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -27871,11 +27654,9 @@ pub struct IDebugPropertyEnumType_Arguments_Vtbl { #[repr(transparent)] pub struct IDebugPropertyEnumType_Locals(::windows::core::IUnknown); impl IDebugPropertyEnumType_Locals { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self) -> ::windows::core::Result { + pub unsafe fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -27937,11 +27718,9 @@ pub struct IDebugPropertyEnumType_Locals_Vtbl { #[repr(transparent)] pub struct IDebugPropertyEnumType_LocalsPlusArgs(::windows::core::IUnknown); impl IDebugPropertyEnumType_LocalsPlusArgs { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self) -> ::windows::core::Result { + pub unsafe fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -28003,11 +27782,9 @@ pub struct IDebugPropertyEnumType_LocalsPlusArgs_Vtbl { #[repr(transparent)] pub struct IDebugPropertyEnumType_Registers(::windows::core::IUnknown); impl IDebugPropertyEnumType_Registers { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self) -> ::windows::core::Result { + pub unsafe fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -28459,21 +28236,21 @@ impl IDebugStackFrame { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDescriptionString<'a, P0>(&self, flong: P0) -> ::windows::core::Result + pub unsafe fn GetDescriptionString<'a, P0>(&self, flong: P0) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDescriptionString)(::windows::core::Interface::as_raw(self), flong.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDescriptionString)(::windows::core::Interface::as_raw(self), flong.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetLanguageString<'a, P0>(&self, flong: P0) -> ::windows::core::Result + pub unsafe fn GetLanguageString<'a, P0>(&self, flong: P0) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetLanguageString)(::windows::core::Interface::as_raw(self), flong.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetLanguageString)(::windows::core::Interface::as_raw(self), flong.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetThread(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -28525,11 +28302,11 @@ pub struct IDebugStackFrame_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub GetCodeContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcc: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub GetDescriptionString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flong: super::super::super::Foundation::BOOL, pbstrdescription: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub GetDescriptionString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flong: super::super::super::Foundation::BOOL, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] GetDescriptionString: usize, #[cfg(feature = "Win32_Foundation")] - pub GetLanguageString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flong: super::super::super::Foundation::BOOL, pbstrlanguage: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub GetLanguageString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flong: super::super::super::Foundation::BOOL, pbstrlanguage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] GetLanguageString: usize, pub GetThread: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppat: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -28545,21 +28322,21 @@ impl IDebugStackFrame110 { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDescriptionString<'a, P0>(&self, flong: P0) -> ::windows::core::Result + pub unsafe fn GetDescriptionString<'a, P0>(&self, flong: P0) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetDescriptionString)(::windows::core::Interface::as_raw(self), flong.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetDescriptionString)(::windows::core::Interface::as_raw(self), flong.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetLanguageString<'a, P0>(&self, flong: P0) -> ::windows::core::Result + pub unsafe fn GetLanguageString<'a, P0>(&self, flong: P0) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetLanguageString)(::windows::core::Interface::as_raw(self), flong.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetLanguageString)(::windows::core::Interface::as_raw(self), flong.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetThread(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -33578,8 +33355,6 @@ pub struct IEnumDebugExtendedPropertyInfo_Vtbl { #[repr(transparent)] pub struct IEnumDebugPropertyInfo(::windows::core::IUnknown); impl IEnumDebugPropertyInfo { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn Next(&self, pi: &mut [DebugPropertyInfo], pceltsfetched: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Next)(::windows::core::Interface::as_raw(self), pi.len() as _, ::core::mem::transmute(pi.as_ptr()), ::core::mem::transmute(pceltsfetched)).ok() } @@ -33637,10 +33412,7 @@ unsafe impl ::windows::core::Interface for IEnumDebugPropertyInfo { #[doc(hidden)] pub struct IEnumDebugPropertyInfo_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32, pi: *mut DebugPropertyInfo, pceltsfetched: *mut u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Next: usize, pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, celt: u32) -> ::windows::core::HRESULT, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppepi: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -34351,17 +34123,13 @@ impl IJsDebugDataTarget { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetTlsValue)(::windows::core::Interface::as_raw(self), threadid, tlsindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ReadBSTR(&self, address: u64) -> ::windows::core::Result { + pub unsafe fn ReadBSTR(&self, address: u64) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ReadBSTR)(::windows::core::Interface::as_raw(self), address, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ReadBSTR)(::windows::core::Interface::as_raw(self), address, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ReadNullTerminatedString(&self, address: u64, charactersize: u16, maxcharacters: u32) -> ::windows::core::Result { + pub unsafe fn ReadNullTerminatedString(&self, address: u64, charactersize: u16, maxcharacters: u32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ReadNullTerminatedString)(::windows::core::Interface::as_raw(self), address, charactersize, maxcharacters, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ReadNullTerminatedString)(::windows::core::Interface::as_raw(self), address, charactersize, maxcharacters, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CreateStackFrameEnumerator(&self, threadid: u32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -34415,14 +34183,8 @@ pub struct IJsDebugDataTarget_Vtbl { pub AllocateVirtualMemory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, address: u64, size: u32, allocationtype: u32, pageprotection: u32, pallocatedaddress: *mut u64) -> ::windows::core::HRESULT, pub FreeVirtualMemory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, address: u64, size: u32, freetype: u32) -> ::windows::core::HRESULT, pub GetTlsValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, threadid: u32, tlsindex: u32, pvalue: *mut u64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ReadBSTR: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, address: u64, pstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ReadBSTR: usize, - #[cfg(feature = "Win32_Foundation")] - pub ReadNullTerminatedString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, address: u64, charactersize: u16, maxcharacters: u32, pstring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ReadNullTerminatedString: usize, + pub ReadBSTR: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, address: u64, pstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ReadNullTerminatedString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, address: u64, charactersize: u16, maxcharacters: u32, pstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub CreateStackFrameEnumerator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, threadid: u32, ppenumerator: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetThreadContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, threadid: u32, contextflags: u32, contextsize: u32, pcontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } @@ -34433,18 +34195,14 @@ impl IJsDebugFrame { pub unsafe fn GetStackRange(&self, pstart: &mut u64, pend: &mut u64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetStackRange)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pstart), ::core::mem::transmute(pend)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self) -> ::windows::core::Result { + pub unsafe fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetDocumentPositionWithId(&self, pdocumentid: &mut u64, pcharacteroffset: &mut u32, pstatementcharcount: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetDocumentPositionWithId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdocumentid), ::core::mem::transmute(pcharacteroffset), ::core::mem::transmute(pstatementcharcount)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDocumentPositionWithName(&self, pdocumentname: &mut super::super::super::Foundation::BSTR, pline: &mut u32, pcolumn: &mut u32) -> ::windows::core::Result<()> { + pub unsafe fn GetDocumentPositionWithName(&self, pdocumentname: &mut ::windows::core::BSTR, pline: &mut u32, pcolumn: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetDocumentPositionWithName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdocumentname), ::core::mem::transmute(pline), ::core::mem::transmute(pcolumn)).ok() } pub unsafe fn GetDebugProperty(&self) -> ::windows::core::Result { @@ -34455,9 +34213,7 @@ impl IJsDebugFrame { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetReturnAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Evaluate<'a, P0>(&self, pexpressiontext: P0, ppdebugproperty: &mut ::core::option::Option, perror: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> + pub unsafe fn Evaluate<'a, P0>(&self, pexpressiontext: P0, ppdebugproperty: &mut ::core::option::Option, perror: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::PCWSTR>, { @@ -34504,21 +34260,12 @@ unsafe impl ::windows::core::Interface for IJsDebugFrame { pub struct IJsDebugFrame_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub GetStackRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstart: *mut u64, pend: *mut u64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetName: usize, + pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetDocumentPositionWithId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdocumentid: *mut u64, pcharacteroffset: *mut u32, pstatementcharcount: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetDocumentPositionWithName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdocumentname: *mut super::super::super::Foundation::BSTR, pline: *mut u32, pcolumn: *mut u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDocumentPositionWithName: usize, + pub GetDocumentPositionWithName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdocumentname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pline: *mut u32, pcolumn: *mut u32) -> ::windows::core::HRESULT, pub GetDebugProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdebugproperty: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetReturnAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, preturnaddress: *mut u64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Evaluate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pexpressiontext: ::windows::core::PCWSTR, ppdebugproperty: *mut *mut ::core::ffi::c_void, perror: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Evaluate: usize, + pub Evaluate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pexpressiontext: ::windows::core::PCWSTR, ppdebugproperty: *mut *mut ::core::ffi::c_void, perror: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] #[repr(transparent)] @@ -34596,8 +34343,6 @@ pub struct IJsDebugProcess_Vtbl { #[repr(transparent)] pub struct IJsDebugProperty(::windows::core::IUnknown); impl IJsDebugProperty { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetPropertyInfo(&self, nradix: u32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetPropertyInfo)(::windows::core::Interface::as_raw(self), nradix, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) @@ -34646,10 +34391,7 @@ unsafe impl ::windows::core::Interface for IJsDebugProperty { #[doc(hidden)] pub struct IJsDebugProperty_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] pub GetPropertyInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, nradix: u32, ppropertyinfo: *mut JsDebugPropertyInfo) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPropertyInfo: usize, pub GetMembers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, members: JS_PROPERTY_MEMBERS, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] @@ -34763,9 +34505,7 @@ impl IKeyEnumerator { pub unsafe fn Reset(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Reset)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetNext(&self, key: &mut super::super::super::Foundation::BSTR, value: ::core::option::Option<&mut ::core::option::Option>, metadata: ::core::option::Option<&mut ::core::option::Option>) -> ::windows::core::Result<()> { + pub unsafe fn GetNext(&self, key: &mut ::windows::core::BSTR, value: ::core::option::Option<&mut ::core::option::Option>, metadata: ::core::option::Option<&mut ::core::option::Option>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetNext)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(key), ::core::mem::transmute(value), ::core::mem::transmute(metadata)).ok() } } @@ -34809,10 +34549,7 @@ unsafe impl ::windows::core::Interface for IKeyEnumerator { pub struct IKeyEnumerator_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, key: *mut super::super::super::Foundation::BSTR, value: *mut *mut ::core::ffi::c_void, metadata: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetNext: usize, + pub GetNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, key: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: *mut *mut ::core::ffi::c_void, metadata: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] #[repr(transparent)] @@ -35134,11 +34871,9 @@ pub struct IModelIterator_Vtbl { #[repr(transparent)] pub struct IModelKeyReference(::windows::core::IUnknown); impl IModelKeyReference { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetKeyName(&self) -> ::windows::core::Result { + pub unsafe fn GetKeyName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetKeyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetKeyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetOriginalObject(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -35207,10 +34942,7 @@ unsafe impl ::windows::core::Interface for IModelKeyReference { #[doc(hidden)] pub struct IModelKeyReference_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetKeyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, keyname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetKeyName: usize, + pub GetKeyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, keyname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetOriginalObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, originalobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetContextObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, containingobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, object: *mut *mut ::core::ffi::c_void, metadata: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -35222,11 +34954,9 @@ pub struct IModelKeyReference_Vtbl { #[repr(transparent)] pub struct IModelKeyReference2(::windows::core::IUnknown); impl IModelKeyReference2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetKeyName(&self) -> ::windows::core::Result { + pub unsafe fn GetKeyName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetKeyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetKeyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetOriginalObject(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -35744,11 +35474,9 @@ pub struct IObjectSafety_Vtbl { #[repr(transparent)] pub struct IPerPropertyBrowsing2(::windows::core::IUnknown); impl IPerPropertyBrowsing2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDisplayString(&self, dispid: i32) -> ::windows::core::Result { + pub unsafe fn GetDisplayString(&self, dispid: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDisplayString)(::windows::core::Interface::as_raw(self), dispid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDisplayString)(::windows::core::Interface::as_raw(self), dispid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn MapPropertyToPage(&self, dispid: i32) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -35802,10 +35530,7 @@ unsafe impl ::windows::core::Interface for IPerPropertyBrowsing2 { #[doc(hidden)] pub struct IPerPropertyBrowsing2_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetDisplayString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dispid: i32, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDisplayString: usize, + pub GetDisplayString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dispid: i32, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub MapPropertyToPage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dispid: i32, pclsidproppage: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Ole")] pub GetPredefinedStrings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dispid: i32, pcastrings: *mut super::super::Ole::CALPOLESTR, pcacookies: *mut super::super::Ole::CADWORD) -> ::windows::core::HRESULT, @@ -36073,9 +35798,7 @@ impl IRawEnumerator { pub unsafe fn Reset(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Reset)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetNext(&self, name: ::core::option::Option<&mut super::super::super::Foundation::BSTR>, kind: ::core::option::Option<&mut SymbolKind>, value: ::core::option::Option<&mut ::core::option::Option>) -> ::windows::core::Result<()> { + pub unsafe fn GetNext(&self, name: ::core::option::Option<&mut ::windows::core::BSTR>, kind: ::core::option::Option<&mut SymbolKind>, value: ::core::option::Option<&mut ::core::option::Option>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetNext)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(name), ::core::mem::transmute(kind), ::core::mem::transmute(value)).ok() } } @@ -36119,10 +35842,7 @@ unsafe impl ::windows::core::Interface for IRawEnumerator { pub struct IRawEnumerator_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::super::Foundation::BSTR, kind: *mut SymbolKind, value: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetNext: usize, + pub GetNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, kind: *mut SymbolKind, value: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] #[repr(transparent)] @@ -36164,11 +35884,9 @@ impl IRemoteDebugApplication { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).EnumThreads)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self) -> ::windows::core::Result { + pub unsafe fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetRootNode(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -36226,10 +35944,7 @@ pub struct IRemoteDebugApplication_Vtbl { pub CreateInstanceAtApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rclsid: *const ::windows::core::GUID, punkouter: *mut ::core::ffi::c_void, dwclscontext: u32, riid: *const ::windows::core::GUID, ppvobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub QueryAlive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub EnumThreads: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pperdat: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetName: usize, + pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetRootNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdanroot: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub EnumGlobalExpressionContexts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppedec: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } @@ -36417,9 +36132,7 @@ impl IRemoteDebugApplicationThread { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).EnumStackFrames)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDescription(&self, pbstrdescription: &mut super::super::super::Foundation::BSTR, pbstrstate: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetDescription(&self, pbstrdescription: &mut ::windows::core::BSTR, pbstrstate: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrdescription), ::core::mem::transmute(pbstrstate)).ok() } pub unsafe fn SetNextStatement<'a, P0, P1>(&self, pstackframe: P0, pcodecontext: P1) -> ::windows::core::Result<()> @@ -36488,10 +36201,7 @@ pub struct IRemoteDebugApplicationThread_Vtbl { pub GetSystemThreadId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwthreadid: *mut u32) -> ::windows::core::HRESULT, pub GetApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprda: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub EnumStackFrames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppedsf: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::super::Foundation::BSTR, pbstrstate: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDescription: usize, + pub GetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrstate: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetNextStatement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstackframe: *mut ::core::ffi::c_void, pcodecontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstate: *mut u32) -> ::windows::core::HRESULT, pub Suspend: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwcount: *mut u32) -> ::windows::core::HRESULT, @@ -36502,9 +36212,7 @@ pub struct IRemoteDebugApplicationThread_Vtbl { #[repr(transparent)] pub struct IRemoteDebugCriticalErrorEvent110(::windows::core::IUnknown); impl IRemoteDebugCriticalErrorEvent110 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetErrorInfo(&self, pbstrsource: &mut super::super::super::Foundation::BSTR, pmessageid: &mut i32, pbstrmessage: &mut super::super::super::Foundation::BSTR, pplocation: &mut ::core::option::Option) -> ::windows::core::Result<()> { + pub unsafe fn GetErrorInfo(&self, pbstrsource: &mut ::windows::core::BSTR, pmessageid: &mut i32, pbstrmessage: &mut ::windows::core::BSTR, pplocation: &mut ::core::option::Option) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetErrorInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrsource), ::core::mem::transmute(pmessageid), ::core::mem::transmute(pbstrmessage), ::core::mem::transmute(pplocation)).ok() } } @@ -36547,18 +36255,13 @@ unsafe impl ::windows::core::Interface for IRemoteDebugCriticalErrorEvent110 { #[doc(hidden)] pub struct IRemoteDebugCriticalErrorEvent110_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetErrorInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsource: *mut super::super::super::Foundation::BSTR, pmessageid: *mut i32, pbstrmessage: *mut super::super::super::Foundation::BSTR, pplocation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetErrorInfo: usize, + pub GetErrorInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsource: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pmessageid: *mut i32, pbstrmessage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pplocation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] #[repr(transparent)] pub struct IRemoteDebugInfoEvent110(::windows::core::IUnknown); impl IRemoteDebugInfoEvent110 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetEventInfo(&self, pmessagetype: &mut DEBUG_EVENT_INFO_TYPE, pbstrmessage: &mut super::super::super::Foundation::BSTR, pbstrurl: &mut super::super::super::Foundation::BSTR, pplocation: &mut ::core::option::Option) -> ::windows::core::Result<()> { + pub unsafe fn GetEventInfo(&self, pmessagetype: &mut DEBUG_EVENT_INFO_TYPE, pbstrmessage: &mut ::windows::core::BSTR, pbstrurl: &mut ::windows::core::BSTR, pplocation: &mut ::core::option::Option) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetEventInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pmessagetype), ::core::mem::transmute(pbstrmessage), ::core::mem::transmute(pbstrurl), ::core::mem::transmute(pplocation)).ok() } } @@ -36601,10 +36304,7 @@ unsafe impl ::windows::core::Interface for IRemoteDebugInfoEvent110 { #[doc(hidden)] pub struct IRemoteDebugInfoEvent110_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetEventInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmessagetype: *mut DEBUG_EVENT_INFO_TYPE, pbstrmessage: *mut super::super::super::Foundation::BSTR, pbstrurl: *mut super::super::super::Foundation::BSTR, pplocation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetEventInfo: usize, + pub GetEventInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmessagetype: *mut DEBUG_EVENT_INFO_TYPE, pbstrmessage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pplocation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] #[repr(transparent)] @@ -36636,11 +36336,9 @@ impl IScriptEntry { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetChild)(::windows::core::Interface::as_raw(self), isn, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetLanguage(&self) -> ::windows::core::Result { + pub unsafe fn GetLanguage(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetLanguage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetLanguage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CreateChildEntry<'a, P0>(&self, isn: u32, dwcookie: u32, pszdelimiter: P0) -> ::windows::core::Result where @@ -36661,11 +36359,9 @@ impl IScriptEntry { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.CreateChildHandler)(::windows::core::Interface::as_raw(self), pszdefaultname.into(), ::core::mem::transmute(prgpsznames.as_ptr()), prgpsznames.len() as _, pszevent.into(), pszdelimiter.into(), ptisignature.into().abi(), imethodsignature, isn, dwcookie, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetText(&self) -> ::windows::core::Result { + pub unsafe fn GetText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetText<'a, P0>(&self, psz: P0) -> ::windows::core::Result<()> where @@ -36673,11 +36369,9 @@ impl IScriptEntry { { (::windows::core::Interface::vtable(self).SetText)(::windows::core::Interface::as_raw(self), psz.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetBody(&self) -> ::windows::core::Result { + pub unsafe fn GetBody(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetBody)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetBody)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetBody<'a, P0>(&self, psz: P0) -> ::windows::core::Result<()> where @@ -36685,11 +36379,9 @@ impl IScriptEntry { { (::windows::core::Interface::vtable(self).SetBody)(::windows::core::Interface::as_raw(self), psz.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self) -> ::windows::core::Result { + pub unsafe fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetName<'a, P0>(&self, psz: P0) -> ::windows::core::Result<()> where @@ -36697,11 +36389,9 @@ impl IScriptEntry { { (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), psz.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetItemName(&self) -> ::windows::core::Result { + pub unsafe fn GetItemName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetItemName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetItemName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetItemName<'a, P0>(&self, psz: P0) -> ::windows::core::Result<()> where @@ -36780,25 +36470,13 @@ unsafe impl ::windows::core::Interface for IScriptEntry { #[doc(hidden)] pub struct IScriptEntry_Vtbl { pub base__: IScriptNode_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetText: usize, + pub GetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psz: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetBody: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetBody: usize, + pub GetBody: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetBody: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psz: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetName: usize, + pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psz: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetItemName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetItemName: usize, + pub GetItemName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetItemName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psz: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub GetSignature: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppti: *mut *mut ::core::ffi::c_void, pimethod: *mut u32) -> ::windows::core::HRESULT, @@ -36818,11 +36496,9 @@ impl IScriptInvocationContext { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetContextType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetContextDescription(&self) -> ::windows::core::Result { + pub unsafe fn GetContextDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetContextDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetContextDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetContextObject(&self) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -36869,10 +36545,7 @@ unsafe impl ::windows::core::Interface for IScriptInvocationContext { pub struct IScriptInvocationContext_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub GetContextType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinvocationcontexttype: *mut SCRIPT_INVOCATION_CONTEXT_TYPE) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetContextDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdescription: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetContextDescription: usize, + pub GetContextDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetContextObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcontextobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] @@ -36905,11 +36578,9 @@ impl IScriptNode { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetChild)(::windows::core::Interface::as_raw(self), isn, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetLanguage(&self) -> ::windows::core::Result { + pub unsafe fn GetLanguage(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetLanguage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetLanguage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CreateChildEntry<'a, P0>(&self, isn: u32, dwcookie: u32, pszdelimiter: P0) -> ::windows::core::Result where @@ -36977,10 +36648,7 @@ pub struct IScriptNode_Vtbl { pub GetCookie: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwcookie: *mut u32) -> ::windows::core::HRESULT, pub GetNumberOfChildren: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcsn: *mut u32) -> ::windows::core::HRESULT, pub GetChild: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, isn: u32, ppsn: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetLanguage: usize, + pub GetLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub CreateChildEntry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, isn: u32, dwcookie: u32, pszdelimiter: ::windows::core::PCWSTR, ppse: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub CreateChildHandler: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszdefaultname: ::windows::core::PCWSTR, prgpsznames: *const ::windows::core::PWSTR, cpsznames: u32, pszevent: ::windows::core::PCWSTR, pszdelimiter: ::windows::core::PCWSTR, ptisignature: *mut ::core::ffi::c_void, imethodsignature: u32, isn: u32, dwcookie: u32, ppse: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -37017,11 +36685,9 @@ impl IScriptScriptlet { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.GetChild)(::windows::core::Interface::as_raw(self), isn, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetLanguage(&self) -> ::windows::core::Result { + pub unsafe fn GetLanguage(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetLanguage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetLanguage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CreateChildEntry<'a, P0>(&self, isn: u32, dwcookie: u32, pszdelimiter: P0) -> ::windows::core::Result where @@ -37042,11 +36708,9 @@ impl IScriptScriptlet { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.CreateChildHandler)(::windows::core::Interface::as_raw(self), pszdefaultname.into(), ::core::mem::transmute(prgpsznames.as_ptr()), prgpsznames.len() as _, pszevent.into(), pszdelimiter.into(), ptisignature.into().abi(), imethodsignature, isn, dwcookie, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetText(&self) -> ::windows::core::Result { + pub unsafe fn GetText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetText<'a, P0>(&self, psz: P0) -> ::windows::core::Result<()> where @@ -37054,11 +36718,9 @@ impl IScriptScriptlet { { (::windows::core::Interface::vtable(self).base__.SetText)(::windows::core::Interface::as_raw(self), psz.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetBody(&self) -> ::windows::core::Result { + pub unsafe fn GetBody(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetBody)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetBody)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetBody<'a, P0>(&self, psz: P0) -> ::windows::core::Result<()> where @@ -37066,11 +36728,9 @@ impl IScriptScriptlet { { (::windows::core::Interface::vtable(self).base__.SetBody)(::windows::core::Interface::as_raw(self), psz.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self) -> ::windows::core::Result { + pub unsafe fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetName<'a, P0>(&self, psz: P0) -> ::windows::core::Result<()> where @@ -37078,11 +36738,9 @@ impl IScriptScriptlet { { (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), psz.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetItemName(&self) -> ::windows::core::Result { + pub unsafe fn GetItemName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetItemName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetItemName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetItemName<'a, P0>(&self, psz: P0) -> ::windows::core::Result<()> where @@ -37106,11 +36764,9 @@ impl IScriptScriptlet { pub unsafe fn GetRange(&self, pichmin: &mut u32, pcch: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetRange)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pichmin), ::core::mem::transmute(pcch)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetSubItemName(&self) -> ::windows::core::Result { + pub unsafe fn GetSubItemName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetSubItemName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetSubItemName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetSubItemName<'a, P0>(&self, psz: P0) -> ::windows::core::Result<()> where @@ -37118,11 +36774,9 @@ impl IScriptScriptlet { { (::windows::core::Interface::vtable(self).SetSubItemName)(::windows::core::Interface::as_raw(self), psz.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetEventName(&self) -> ::windows::core::Result { + pub unsafe fn GetEventName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetEventName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetEventName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetEventName<'a, P0>(&self, psz: P0) -> ::windows::core::Result<()> where @@ -37130,11 +36784,9 @@ impl IScriptScriptlet { { (::windows::core::Interface::vtable(self).SetEventName)(::windows::core::Interface::as_raw(self), psz.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetSimpleEventName(&self) -> ::windows::core::Result { + pub unsafe fn GetSimpleEventName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetSimpleEventName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetSimpleEventName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetSimpleEventName<'a, P0>(&self, psz: P0) -> ::windows::core::Result<()> where @@ -37212,20 +36864,11 @@ unsafe impl ::windows::core::Interface for IScriptScriptlet { #[doc(hidden)] pub struct IScriptScriptlet_Vtbl { pub base__: IScriptEntry_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetSubItemName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetSubItemName: usize, + pub GetSubItemName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetSubItemName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psz: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetEventName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetEventName: usize, + pub GetEventName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetEventName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psz: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetSimpleEventName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetSimpleEventName: usize, + pub GetSimpleEventName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetSimpleEventName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psz: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] @@ -37236,9 +36879,7 @@ impl ISimpleConnectionPoint { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetEventCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DescribeEvents(&self, ievent: u32, cevents: u32, prgid: *mut i32, prgbstr: *mut super::super::super::Foundation::BSTR, pceventsfetched: &mut u32) -> ::windows::core::Result<()> { + pub unsafe fn DescribeEvents(&self, ievent: u32, cevents: u32, prgid: *mut i32, prgbstr: *mut ::windows::core::BSTR, pceventsfetched: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).DescribeEvents)(::windows::core::Interface::as_raw(self), ievent, ::core::mem::transmute(cevents), ::core::mem::transmute(prgid), ::core::mem::transmute(prgbstr), ::core::mem::transmute(pceventsfetched)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] @@ -37294,10 +36935,7 @@ unsafe impl ::windows::core::Interface for ISimpleConnectionPoint { pub struct ISimpleConnectionPoint_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub GetEventCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulcount: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub DescribeEvents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ievent: u32, cevents: u32, prgid: *mut i32, prgbstr: *mut super::super::super::Foundation::BSTR, pceventsfetched: *mut u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DescribeEvents: usize, + pub DescribeEvents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ievent: u32, cevents: u32, prgid: *mut i32, prgbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pceventsfetched: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Advise: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdisp: *mut ::core::ffi::c_void, pdwcookie: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -37308,15 +36946,13 @@ pub struct ISimpleConnectionPoint_Vtbl { #[repr(transparent)] pub struct IStringDisplayableConcept(::windows::core::IUnknown); impl IStringDisplayableConcept { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ToDisplayString<'a, P0, P1>(&self, contextobject: P0, metadata: P1) -> ::windows::core::Result + pub unsafe fn ToDisplayString<'a, P0, P1>(&self, contextobject: P0, metadata: P1) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, IModelObject>>, P1: ::std::convert::Into<::windows::core::InParam<'a, IKeyStore>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ToDisplayString)(::windows::core::Interface::as_raw(self), contextobject.into().abi(), metadata.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ToDisplayString)(::windows::core::Interface::as_raw(self), contextobject.into().abi(), metadata.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -37358,10 +36994,7 @@ unsafe impl ::windows::core::Interface for IStringDisplayableConcept { #[doc(hidden)] pub struct IStringDisplayableConcept_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub ToDisplayString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contextobject: *mut ::core::ffi::c_void, metadata: *mut ::core::ffi::c_void, displaystring: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ToDisplayString: usize, + pub ToDisplayString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contextobject: *mut ::core::ffi::c_void, metadata: *mut ::core::ffi::c_void, displaystring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] #[repr(transparent)] @@ -49474,18 +49107,16 @@ impl ::core::default::Default for DUMP_HEADER64_0 { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct DebugPropertyInfo { pub m_dwValidFields: u32, - pub m_bstrName: super::super::super::Foundation::BSTR, - pub m_bstrType: super::super::super::Foundation::BSTR, - pub m_bstrValue: super::super::super::Foundation::BSTR, - pub m_bstrFullName: super::super::super::Foundation::BSTR, + pub m_bstrName: ::windows::core::BSTR, + pub m_bstrType: ::windows::core::BSTR, + pub m_bstrValue: ::windows::core::BSTR, + pub m_bstrFullName: ::windows::core::BSTR, pub m_dwAttrib: u32, pub m_pDebugProp: ::core::option::Option, } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for DebugPropertyInfo { fn clone(&self) -> Self { Self { @@ -49499,25 +49130,20 @@ impl ::core::clone::Clone for DebugPropertyInfo { } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for DebugPropertyInfo { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("DebugPropertyInfo").field("m_dwValidFields", &self.m_dwValidFields).field("m_bstrName", &self.m_bstrName).field("m_bstrType", &self.m_bstrType).field("m_bstrValue", &self.m_bstrValue).field("m_bstrFullName", &self.m_bstrFullName).field("m_dwAttrib", &self.m_dwAttrib).field("m_pDebugProp", &self.m_pDebugProp).finish() } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for DebugPropertyInfo { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for DebugPropertyInfo { fn eq(&self, other: &Self) -> bool { self.m_dwValidFields == other.m_dwValidFields && self.m_bstrName == other.m_bstrName && self.m_bstrType == other.m_bstrType && self.m_bstrValue == other.m_bstrValue && self.m_bstrFullName == other.m_bstrFullName && self.m_dwAttrib == other.m_dwAttrib && self.m_pDebugProp == other.m_pDebugProp } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for DebugPropertyInfo {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for DebugPropertyInfo { fn default() -> Self { unsafe { ::core::mem::zeroed() } @@ -53391,40 +53017,33 @@ impl ::core::default::Default for JS_NATIVE_FRAME { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct JsDebugPropertyInfo { - pub name: super::super::super::Foundation::BSTR, - pub r#type: super::super::super::Foundation::BSTR, - pub value: super::super::super::Foundation::BSTR, - pub fullName: super::super::super::Foundation::BSTR, + pub name: ::windows::core::BSTR, + pub r#type: ::windows::core::BSTR, + pub value: ::windows::core::BSTR, + pub fullName: ::windows::core::BSTR, pub attr: JS_PROPERTY_ATTRIBUTES, } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for JsDebugPropertyInfo { fn clone(&self) -> Self { Self { name: self.name.clone(), r#type: self.r#type.clone(), value: self.value.clone(), fullName: self.fullName.clone(), attr: self.attr } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for JsDebugPropertyInfo { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("JsDebugPropertyInfo").field("name", &self.name).field("type", &self.r#type).field("value", &self.value).field("fullName", &self.fullName).field("attr", &self.attr).finish() } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for JsDebugPropertyInfo { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for JsDebugPropertyInfo { fn eq(&self, other: &Self) -> bool { self.name == other.name && self.r#type == other.r#type && self.value == other.value && self.fullName == other.fullName && self.attr == other.attr } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for JsDebugPropertyInfo {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for JsDebugPropertyInfo { fn default() -> Self { unsafe { ::core::mem::zeroed() } @@ -58181,41 +57800,33 @@ impl ::core::default::Default for PROFILER_HEAP_OBJECT_0 { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct PROFILER_HEAP_OBJECT_OPTIONAL_INFO { pub infoType: PROFILER_HEAP_OBJECT_OPTIONAL_INFO_TYPE, pub Anonymous: PROFILER_HEAP_OBJECT_OPTIONAL_INFO_0, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for PROFILER_HEAP_OBJECT_OPTIONAL_INFO {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for PROFILER_HEAP_OBJECT_OPTIONAL_INFO { fn clone(&self) -> Self { *self } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for PROFILER_HEAP_OBJECT_OPTIONAL_INFO { type Abi = Self; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for PROFILER_HEAP_OBJECT_OPTIONAL_INFO { fn eq(&self, other: &Self) -> bool { unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for PROFILER_HEAP_OBJECT_OPTIONAL_INFO {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for PROFILER_HEAP_OBJECT_OPTIONAL_INFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub union PROFILER_HEAP_OBJECT_OPTIONAL_INFO_0 { pub prototype: usize, pub functionName: ::windows::core::PCWSTR, @@ -58231,125 +57842,101 @@ pub union PROFILER_HEAP_OBJECT_OPTIONAL_INFO_0 { pub mapCollectionList: *mut PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST, pub setCollectionList: *mut PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for PROFILER_HEAP_OBJECT_OPTIONAL_INFO_0 {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for PROFILER_HEAP_OBJECT_OPTIONAL_INFO_0 { fn clone(&self) -> Self { *self } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for PROFILER_HEAP_OBJECT_OPTIONAL_INFO_0 { type Abi = Self; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for PROFILER_HEAP_OBJECT_OPTIONAL_INFO_0 { fn eq(&self, other: &Self) -> bool { unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for PROFILER_HEAP_OBJECT_OPTIONAL_INFO_0 {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for PROFILER_HEAP_OBJECT_OPTIONAL_INFO_0 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct PROFILER_HEAP_OBJECT_RELATIONSHIP { pub relationshipId: u32, pub relationshipInfo: PROFILER_RELATIONSHIP_INFO, pub Anonymous: PROFILER_HEAP_OBJECT_RELATIONSHIP_0, } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for PROFILER_HEAP_OBJECT_RELATIONSHIP { fn clone(&self) -> Self { Self { relationshipId: self.relationshipId, relationshipInfo: self.relationshipInfo, Anonymous: self.Anonymous.clone() } } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for PROFILER_HEAP_OBJECT_RELATIONSHIP { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for PROFILER_HEAP_OBJECT_RELATIONSHIP { fn eq(&self, other: &Self) -> bool { self.relationshipId == other.relationshipId && self.relationshipInfo == other.relationshipInfo && self.Anonymous == other.Anonymous } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for PROFILER_HEAP_OBJECT_RELATIONSHIP {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for PROFILER_HEAP_OBJECT_RELATIONSHIP { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub union PROFILER_HEAP_OBJECT_RELATIONSHIP_0 { pub numberValue: f64, pub stringValue: ::windows::core::PCWSTR, - pub bstrValue: ::core::mem::ManuallyDrop, + pub bstrValue: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pub objectId: usize, pub externalObjectAddress: *mut ::core::ffi::c_void, pub subString: *mut PROFILER_PROPERTY_TYPE_SUBSTRING_INFO, } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for PROFILER_HEAP_OBJECT_RELATIONSHIP_0 { fn clone(&self) -> Self { unsafe { ::core::mem::transmute_copy(self) } } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for PROFILER_HEAP_OBJECT_RELATIONSHIP_0 { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for PROFILER_HEAP_OBJECT_RELATIONSHIP_0 { fn eq(&self, other: &Self) -> bool { unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for PROFILER_HEAP_OBJECT_RELATIONSHIP_0 {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for PROFILER_HEAP_OBJECT_RELATIONSHIP_0 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`*"] pub struct PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST { pub count: u32, pub elements: [PROFILER_HEAP_OBJECT_RELATIONSHIP; 1], } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST { fn clone(&self) -> Self { Self { count: self.count, elements: self.elements.clone() } } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST { fn eq(&self, other: &Self) -> bool { self.count == other.count && self.elements == other.elements } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST { fn default() -> Self { unsafe { ::core::mem::zeroed() } diff --git a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Etw/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Etw/impl.rs index 4dbdbbb412..4e9b58aa11 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Etw/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Etw/impl.rs @@ -149,13 +149,13 @@ impl ITraceEventCallback_Vtbl { } #[cfg(feature = "Win32_Foundation")] pub trait ITraceRelogger_Impl: Sized { - fn AddLogfileTraceStream(&self, logfilename: &super::super::super::Foundation::BSTR, usercontext: *const ::core::ffi::c_void) -> ::windows::core::Result; - fn AddRealtimeTraceStream(&self, loggername: &super::super::super::Foundation::BSTR, usercontext: *const ::core::ffi::c_void) -> ::windows::core::Result; + fn AddLogfileTraceStream(&self, logfilename: &::windows::core::BSTR, usercontext: *const ::core::ffi::c_void) -> ::windows::core::Result; + fn AddRealtimeTraceStream(&self, loggername: &::windows::core::BSTR, usercontext: *const ::core::ffi::c_void) -> ::windows::core::Result; fn RegisterCallback(&self, callback: &::core::option::Option) -> ::windows::core::Result<()>; fn Inject(&self, event: &::core::option::Option) -> ::windows::core::Result<()>; fn CreateEventInstance(&self, tracehandle: RELOGSTREAM_HANDLE, flags: u32) -> ::windows::core::Result; fn ProcessTrace(&self) -> ::windows::core::Result<()>; - fn SetOutputFilename(&self, logfilename: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetOutputFilename(&self, logfilename: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SetCompressionMode(&self, compressionmode: super::super::super::Foundation::BOOLEAN) -> ::windows::core::Result<()>; fn Cancel(&self) -> ::windows::core::Result<()>; } @@ -164,7 +164,7 @@ impl ::windows::core::RuntimeName for ITraceRelogger {} #[cfg(feature = "Win32_Foundation")] impl ITraceRelogger_Vtbl { pub const fn new, Impl: ITraceRelogger_Impl, const OFFSET: isize>() -> ITraceRelogger_Vtbl { - unsafe extern "system" fn AddLogfileTraceStream, Impl: ITraceRelogger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, logfilename: ::core::mem::ManuallyDrop, usercontext: *const ::core::ffi::c_void, tracehandle: *mut RELOGSTREAM_HANDLE) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddLogfileTraceStream, Impl: ITraceRelogger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, logfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, usercontext: *const ::core::ffi::c_void, tracehandle: *mut RELOGSTREAM_HANDLE) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AddLogfileTraceStream(::core::mem::transmute(&logfilename), ::core::mem::transmute_copy(&usercontext)) { @@ -175,7 +175,7 @@ impl ITraceRelogger_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AddRealtimeTraceStream, Impl: ITraceRelogger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, loggername: ::core::mem::ManuallyDrop, usercontext: *const ::core::ffi::c_void, tracehandle: *mut RELOGSTREAM_HANDLE) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddRealtimeTraceStream, Impl: ITraceRelogger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, loggername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, usercontext: *const ::core::ffi::c_void, tracehandle: *mut RELOGSTREAM_HANDLE) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AddRealtimeTraceStream(::core::mem::transmute(&loggername), ::core::mem::transmute_copy(&usercontext)) { @@ -212,7 +212,7 @@ impl ITraceRelogger_Vtbl { let this = (*this).get_impl(); this.ProcessTrace().into() } - unsafe extern "system" fn SetOutputFilename, Impl: ITraceRelogger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, logfilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetOutputFilename, Impl: ITraceRelogger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, logfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetOutputFilename(::core::mem::transmute(&logfilename)).into() diff --git a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Etw/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Etw/mod.rs index ef7309cc4b..d0ddbf779e 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Etw/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Etw/mod.rs @@ -1047,23 +1047,13 @@ pub struct ITraceEventCallback_Vtbl { #[repr(transparent)] pub struct ITraceRelogger(::windows::core::IUnknown); impl ITraceRelogger { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddLogfileTraceStream<'a, P0>(&self, logfilename: P0, usercontext: *const ::core::ffi::c_void) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn AddLogfileTraceStream(&self, logfilename: &::windows::core::BSTR, usercontext: *const ::core::ffi::c_void) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AddLogfileTraceStream)(::windows::core::Interface::as_raw(self), logfilename.into().abi(), ::core::mem::transmute(usercontext), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AddLogfileTraceStream)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(logfilename), ::core::mem::transmute(usercontext), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddRealtimeTraceStream<'a, P0>(&self, loggername: P0, usercontext: *const ::core::ffi::c_void) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn AddRealtimeTraceStream(&self, loggername: &::windows::core::BSTR, usercontext: *const ::core::ffi::c_void) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AddRealtimeTraceStream)(::windows::core::Interface::as_raw(self), loggername.into().abi(), ::core::mem::transmute(usercontext), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AddRealtimeTraceStream)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(loggername), ::core::mem::transmute(usercontext), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn RegisterCallback<'a, P0>(&self, callback: P0) -> ::windows::core::Result<()> where @@ -1087,13 +1077,8 @@ impl ITraceRelogger { pub unsafe fn ProcessTrace(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ProcessTrace)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetOutputFilename<'a, P0>(&self, logfilename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetOutputFilename)(::windows::core::Interface::as_raw(self), logfilename.into().abi()).ok() + pub unsafe fn SetOutputFilename(&self, logfilename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetOutputFilename)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(logfilename)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -1146,22 +1131,13 @@ unsafe impl ::windows::core::Interface for ITraceRelogger { #[doc(hidden)] pub struct ITraceRelogger_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub AddLogfileTraceStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, logfilename: ::core::mem::ManuallyDrop, usercontext: *const ::core::ffi::c_void, tracehandle: *mut RELOGSTREAM_HANDLE) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddLogfileTraceStream: usize, - #[cfg(feature = "Win32_Foundation")] - pub AddRealtimeTraceStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, loggername: ::core::mem::ManuallyDrop, usercontext: *const ::core::ffi::c_void, tracehandle: *mut RELOGSTREAM_HANDLE) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddRealtimeTraceStream: usize, + pub AddLogfileTraceStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, logfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, usercontext: *const ::core::ffi::c_void, tracehandle: *mut RELOGSTREAM_HANDLE) -> ::windows::core::HRESULT, + pub AddRealtimeTraceStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, loggername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, usercontext: *const ::core::ffi::c_void, tracehandle: *mut RELOGSTREAM_HANDLE) -> ::windows::core::HRESULT, pub RegisterCallback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, callback: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Inject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, event: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub CreateEventInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tracehandle: RELOGSTREAM_HANDLE, flags: u32, event: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub ProcessTrace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetOutputFilename: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, logfilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetOutputFilename: usize, + pub SetOutputFilename: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, logfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub SetCompressionMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, compressionmode: super::super::super::Foundation::BOOLEAN) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] diff --git a/crates/libs/windows/src/Windows/Win32/System/EventNotificationService/impl.rs b/crates/libs/windows/src/Windows/Win32/System/EventNotificationService/impl.rs index 5a4a242fe8..1952a85d68 100644 --- a/crates/libs/windows/src/Windows/Win32/System/EventNotificationService/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/EventNotificationService/impl.rs @@ -1,49 +1,49 @@ #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISensLogon_Impl: Sized + super::Com::IDispatch_Impl { - fn Logon(&self, bstrusername: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Logoff(&self, bstrusername: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn StartShell(&self, bstrusername: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn DisplayLock(&self, bstrusername: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn DisplayUnlock(&self, bstrusername: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn StartScreenSaver(&self, bstrusername: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn StopScreenSaver(&self, bstrusername: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Logon(&self, bstrusername: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Logoff(&self, bstrusername: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn StartShell(&self, bstrusername: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn DisplayLock(&self, bstrusername: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn DisplayUnlock(&self, bstrusername: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn StartScreenSaver(&self, bstrusername: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn StopScreenSaver(&self, bstrusername: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ISensLogon {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ISensLogon_Vtbl { pub const fn new, Impl: ISensLogon_Impl, const OFFSET: isize>() -> ISensLogon_Vtbl { - unsafe extern "system" fn Logon, Impl: ISensLogon_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Logon, Impl: ISensLogon_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Logon(::core::mem::transmute(&bstrusername)).into() } - unsafe extern "system" fn Logoff, Impl: ISensLogon_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Logoff, Impl: ISensLogon_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Logoff(::core::mem::transmute(&bstrusername)).into() } - unsafe extern "system" fn StartShell, Impl: ISensLogon_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn StartShell, Impl: ISensLogon_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.StartShell(::core::mem::transmute(&bstrusername)).into() } - unsafe extern "system" fn DisplayLock, Impl: ISensLogon_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DisplayLock, Impl: ISensLogon_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DisplayLock(::core::mem::transmute(&bstrusername)).into() } - unsafe extern "system" fn DisplayUnlock, Impl: ISensLogon_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DisplayUnlock, Impl: ISensLogon_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DisplayUnlock(::core::mem::transmute(&bstrusername)).into() } - unsafe extern "system" fn StartScreenSaver, Impl: ISensLogon_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn StartScreenSaver, Impl: ISensLogon_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.StartScreenSaver(::core::mem::transmute(&bstrusername)).into() } - unsafe extern "system" fn StopScreenSaver, Impl: ISensLogon_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn StopScreenSaver, Impl: ISensLogon_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.StopScreenSaver(::core::mem::transmute(&bstrusername)).into() @@ -65,38 +65,38 @@ impl ISensLogon_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISensLogon2_Impl: Sized + super::Com::IDispatch_Impl { - fn Logon(&self, bstrusername: &super::super::Foundation::BSTR, dwsessionid: u32) -> ::windows::core::Result<()>; - fn Logoff(&self, bstrusername: &super::super::Foundation::BSTR, dwsessionid: u32) -> ::windows::core::Result<()>; - fn SessionDisconnect(&self, bstrusername: &super::super::Foundation::BSTR, dwsessionid: u32) -> ::windows::core::Result<()>; - fn SessionReconnect(&self, bstrusername: &super::super::Foundation::BSTR, dwsessionid: u32) -> ::windows::core::Result<()>; - fn PostShell(&self, bstrusername: &super::super::Foundation::BSTR, dwsessionid: u32) -> ::windows::core::Result<()>; + fn Logon(&self, bstrusername: &::windows::core::BSTR, dwsessionid: u32) -> ::windows::core::Result<()>; + fn Logoff(&self, bstrusername: &::windows::core::BSTR, dwsessionid: u32) -> ::windows::core::Result<()>; + fn SessionDisconnect(&self, bstrusername: &::windows::core::BSTR, dwsessionid: u32) -> ::windows::core::Result<()>; + fn SessionReconnect(&self, bstrusername: &::windows::core::BSTR, dwsessionid: u32) -> ::windows::core::Result<()>; + fn PostShell(&self, bstrusername: &::windows::core::BSTR, dwsessionid: u32) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ISensLogon2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ISensLogon2_Vtbl { pub const fn new, Impl: ISensLogon2_Impl, const OFFSET: isize>() -> ISensLogon2_Vtbl { - unsafe extern "system" fn Logon, Impl: ISensLogon2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop, dwsessionid: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn Logon, Impl: ISensLogon2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwsessionid: u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Logon(::core::mem::transmute(&bstrusername), ::core::mem::transmute_copy(&dwsessionid)).into() } - unsafe extern "system" fn Logoff, Impl: ISensLogon2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop, dwsessionid: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn Logoff, Impl: ISensLogon2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwsessionid: u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Logoff(::core::mem::transmute(&bstrusername), ::core::mem::transmute_copy(&dwsessionid)).into() } - unsafe extern "system" fn SessionDisconnect, Impl: ISensLogon2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop, dwsessionid: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn SessionDisconnect, Impl: ISensLogon2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwsessionid: u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SessionDisconnect(::core::mem::transmute(&bstrusername), ::core::mem::transmute_copy(&dwsessionid)).into() } - unsafe extern "system" fn SessionReconnect, Impl: ISensLogon2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop, dwsessionid: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn SessionReconnect, Impl: ISensLogon2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwsessionid: u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SessionReconnect(::core::mem::transmute(&bstrusername), ::core::mem::transmute_copy(&dwsessionid)).into() } - unsafe extern "system" fn PostShell, Impl: ISensLogon2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop, dwsessionid: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn PostShell, Impl: ISensLogon2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwsessionid: u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.PostShell(::core::mem::transmute(&bstrusername), ::core::mem::transmute_copy(&dwsessionid)).into() @@ -116,38 +116,38 @@ impl ISensLogon2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISensNetwork_Impl: Sized + super::Com::IDispatch_Impl { - fn ConnectionMade(&self, bstrconnection: &super::super::Foundation::BSTR, ultype: u32, lpqocinfo: *const SENS_QOCINFO) -> ::windows::core::Result<()>; - fn ConnectionMadeNoQOCInfo(&self, bstrconnection: &super::super::Foundation::BSTR, ultype: u32) -> ::windows::core::Result<()>; - fn ConnectionLost(&self, bstrconnection: &super::super::Foundation::BSTR, ultype: SENS_CONNECTION_TYPE) -> ::windows::core::Result<()>; - fn DestinationReachable(&self, bstrdestination: &super::super::Foundation::BSTR, bstrconnection: &super::super::Foundation::BSTR, ultype: u32, lpqocinfo: *const SENS_QOCINFO) -> ::windows::core::Result<()>; - fn DestinationReachableNoQOCInfo(&self, bstrdestination: &super::super::Foundation::BSTR, bstrconnection: &super::super::Foundation::BSTR, ultype: u32) -> ::windows::core::Result<()>; + fn ConnectionMade(&self, bstrconnection: &::windows::core::BSTR, ultype: u32, lpqocinfo: *const SENS_QOCINFO) -> ::windows::core::Result<()>; + fn ConnectionMadeNoQOCInfo(&self, bstrconnection: &::windows::core::BSTR, ultype: u32) -> ::windows::core::Result<()>; + fn ConnectionLost(&self, bstrconnection: &::windows::core::BSTR, ultype: SENS_CONNECTION_TYPE) -> ::windows::core::Result<()>; + fn DestinationReachable(&self, bstrdestination: &::windows::core::BSTR, bstrconnection: &::windows::core::BSTR, ultype: u32, lpqocinfo: *const SENS_QOCINFO) -> ::windows::core::Result<()>; + fn DestinationReachableNoQOCInfo(&self, bstrdestination: &::windows::core::BSTR, bstrconnection: &::windows::core::BSTR, ultype: u32) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ISensNetwork {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ISensNetwork_Vtbl { pub const fn new, Impl: ISensNetwork_Impl, const OFFSET: isize>() -> ISensNetwork_Vtbl { - unsafe extern "system" fn ConnectionMade, Impl: ISensNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrconnection: ::core::mem::ManuallyDrop, ultype: u32, lpqocinfo: *const SENS_QOCINFO) -> ::windows::core::HRESULT { + unsafe extern "system" fn ConnectionMade, Impl: ISensNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrconnection: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ultype: u32, lpqocinfo: *const SENS_QOCINFO) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ConnectionMade(::core::mem::transmute(&bstrconnection), ::core::mem::transmute_copy(&ultype), ::core::mem::transmute_copy(&lpqocinfo)).into() } - unsafe extern "system" fn ConnectionMadeNoQOCInfo, Impl: ISensNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrconnection: ::core::mem::ManuallyDrop, ultype: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn ConnectionMadeNoQOCInfo, Impl: ISensNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrconnection: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ultype: u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ConnectionMadeNoQOCInfo(::core::mem::transmute(&bstrconnection), ::core::mem::transmute_copy(&ultype)).into() } - unsafe extern "system" fn ConnectionLost, Impl: ISensNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrconnection: ::core::mem::ManuallyDrop, ultype: SENS_CONNECTION_TYPE) -> ::windows::core::HRESULT { + unsafe extern "system" fn ConnectionLost, Impl: ISensNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrconnection: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ultype: SENS_CONNECTION_TYPE) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ConnectionLost(::core::mem::transmute(&bstrconnection), ::core::mem::transmute_copy(&ultype)).into() } - unsafe extern "system" fn DestinationReachable, Impl: ISensNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdestination: ::core::mem::ManuallyDrop, bstrconnection: ::core::mem::ManuallyDrop, ultype: u32, lpqocinfo: *const SENS_QOCINFO) -> ::windows::core::HRESULT { + unsafe extern "system" fn DestinationReachable, Impl: ISensNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdestination: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrconnection: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ultype: u32, lpqocinfo: *const SENS_QOCINFO) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DestinationReachable(::core::mem::transmute(&bstrdestination), ::core::mem::transmute(&bstrconnection), ::core::mem::transmute_copy(&ultype), ::core::mem::transmute_copy(&lpqocinfo)).into() } - unsafe extern "system" fn DestinationReachableNoQOCInfo, Impl: ISensNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdestination: ::core::mem::ManuallyDrop, bstrconnection: ::core::mem::ManuallyDrop, ultype: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn DestinationReachableNoQOCInfo, Impl: ISensNetwork_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdestination: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrconnection: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ultype: u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DestinationReachableNoQOCInfo(::core::mem::transmute(&bstrdestination), ::core::mem::transmute(&bstrconnection), ::core::mem::transmute_copy(&ultype)).into() diff --git a/crates/libs/windows/src/Windows/Win32/System/EventNotificationService/mod.rs b/crates/libs/windows/src/Windows/Win32/System/EventNotificationService/mod.rs index 1d82c50e77..ff97fb0153 100644 --- a/crates/libs/windows/src/Windows/Win32/System/EventNotificationService/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/EventNotificationService/mod.rs @@ -40,61 +40,26 @@ pub unsafe fn IsNetworkAlive(lpdwflags: &mut u32) -> super::super::Foundation::B pub struct ISensLogon(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ISensLogon { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Logon<'a, P0>(&self, bstrusername: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Logon)(::windows::core::Interface::as_raw(self), bstrusername.into().abi()).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Logoff<'a, P0>(&self, bstrusername: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Logoff)(::windows::core::Interface::as_raw(self), bstrusername.into().abi()).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StartShell<'a, P0>(&self, bstrusername: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).StartShell)(::windows::core::Interface::as_raw(self), bstrusername.into().abi()).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisplayLock<'a, P0>(&self, bstrusername: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DisplayLock)(::windows::core::Interface::as_raw(self), bstrusername.into().abi()).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisplayUnlock<'a, P0>(&self, bstrusername: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DisplayUnlock)(::windows::core::Interface::as_raw(self), bstrusername.into().abi()).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StartScreenSaver<'a, P0>(&self, bstrusername: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).StartScreenSaver)(::windows::core::Interface::as_raw(self), bstrusername.into().abi()).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StopScreenSaver<'a, P0>(&self, bstrusername: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).StopScreenSaver)(::windows::core::Interface::as_raw(self), bstrusername.into().abi()).ok() + pub unsafe fn Logon(&self, bstrusername: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Logon)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrusername)).ok() + } + pub unsafe fn Logoff(&self, bstrusername: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Logoff)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrusername)).ok() + } + pub unsafe fn StartShell(&self, bstrusername: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).StartShell)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrusername)).ok() + } + pub unsafe fn DisplayLock(&self, bstrusername: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DisplayLock)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrusername)).ok() + } + pub unsafe fn DisplayUnlock(&self, bstrusername: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DisplayUnlock)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrusername)).ok() + } + pub unsafe fn StartScreenSaver(&self, bstrusername: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).StartScreenSaver)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrusername)).ok() + } + pub unsafe fn StopScreenSaver(&self, bstrusername: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).StopScreenSaver)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrusername)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -163,34 +128,13 @@ unsafe impl ::windows::core::Interface for ISensLogon { #[doc(hidden)] pub struct ISensLogon_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Logon: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Logon: usize, - #[cfg(feature = "Win32_Foundation")] - pub Logoff: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Logoff: usize, - #[cfg(feature = "Win32_Foundation")] - pub StartShell: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - StartShell: usize, - #[cfg(feature = "Win32_Foundation")] - pub DisplayLock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DisplayLock: usize, - #[cfg(feature = "Win32_Foundation")] - pub DisplayUnlock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DisplayUnlock: usize, - #[cfg(feature = "Win32_Foundation")] - pub StartScreenSaver: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - StartScreenSaver: usize, - #[cfg(feature = "Win32_Foundation")] - pub StopScreenSaver: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - StopScreenSaver: usize, + pub Logon: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Logoff: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub StartShell: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DisplayLock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DisplayUnlock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub StartScreenSaver: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub StopScreenSaver: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_EventNotificationService\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -198,45 +142,20 @@ pub struct ISensLogon_Vtbl { pub struct ISensLogon2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ISensLogon2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Logon<'a, P0>(&self, bstrusername: P0, dwsessionid: u32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Logon)(::windows::core::Interface::as_raw(self), bstrusername.into().abi(), dwsessionid).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Logoff<'a, P0>(&self, bstrusername: P0, dwsessionid: u32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Logoff)(::windows::core::Interface::as_raw(self), bstrusername.into().abi(), dwsessionid).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SessionDisconnect<'a, P0>(&self, bstrusername: P0, dwsessionid: u32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SessionDisconnect)(::windows::core::Interface::as_raw(self), bstrusername.into().abi(), dwsessionid).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SessionReconnect<'a, P0>(&self, bstrusername: P0, dwsessionid: u32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SessionReconnect)(::windows::core::Interface::as_raw(self), bstrusername.into().abi(), dwsessionid).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PostShell<'a, P0>(&self, bstrusername: P0, dwsessionid: u32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).PostShell)(::windows::core::Interface::as_raw(self), bstrusername.into().abi(), dwsessionid).ok() + pub unsafe fn Logon(&self, bstrusername: &::windows::core::BSTR, dwsessionid: u32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Logon)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrusername), dwsessionid).ok() + } + pub unsafe fn Logoff(&self, bstrusername: &::windows::core::BSTR, dwsessionid: u32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Logoff)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrusername), dwsessionid).ok() + } + pub unsafe fn SessionDisconnect(&self, bstrusername: &::windows::core::BSTR, dwsessionid: u32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SessionDisconnect)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrusername), dwsessionid).ok() + } + pub unsafe fn SessionReconnect(&self, bstrusername: &::windows::core::BSTR, dwsessionid: u32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SessionReconnect)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrusername), dwsessionid).ok() + } + pub unsafe fn PostShell(&self, bstrusername: &::windows::core::BSTR, dwsessionid: u32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).PostShell)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrusername), dwsessionid).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -305,26 +224,11 @@ unsafe impl ::windows::core::Interface for ISensLogon2 { #[doc(hidden)] pub struct ISensLogon2_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Logon: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop, dwsessionid: u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Logon: usize, - #[cfg(feature = "Win32_Foundation")] - pub Logoff: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop, dwsessionid: u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Logoff: usize, - #[cfg(feature = "Win32_Foundation")] - pub SessionDisconnect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop, dwsessionid: u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SessionDisconnect: usize, - #[cfg(feature = "Win32_Foundation")] - pub SessionReconnect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop, dwsessionid: u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SessionReconnect: usize, - #[cfg(feature = "Win32_Foundation")] - pub PostShell: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop, dwsessionid: u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PostShell: usize, + pub Logon: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwsessionid: u32) -> ::windows::core::HRESULT, + pub Logoff: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwsessionid: u32) -> ::windows::core::HRESULT, + pub SessionDisconnect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwsessionid: u32) -> ::windows::core::HRESULT, + pub SessionReconnect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwsessionid: u32) -> ::windows::core::HRESULT, + pub PostShell: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwsessionid: u32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_EventNotificationService\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -332,47 +236,20 @@ pub struct ISensLogon2_Vtbl { pub struct ISensNetwork(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ISensNetwork { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ConnectionMade<'a, P0>(&self, bstrconnection: P0, ultype: u32, lpqocinfo: &SENS_QOCINFO) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ConnectionMade)(::windows::core::Interface::as_raw(self), bstrconnection.into().abi(), ultype, ::core::mem::transmute(lpqocinfo)).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ConnectionMadeNoQOCInfo<'a, P0>(&self, bstrconnection: P0, ultype: u32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ConnectionMadeNoQOCInfo)(::windows::core::Interface::as_raw(self), bstrconnection.into().abi(), ultype).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ConnectionLost<'a, P0>(&self, bstrconnection: P0, ultype: SENS_CONNECTION_TYPE) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ConnectionLost)(::windows::core::Interface::as_raw(self), bstrconnection.into().abi(), ultype).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DestinationReachable<'a, P0, P1>(&self, bstrdestination: P0, bstrconnection: P1, ultype: u32, lpqocinfo: &SENS_QOCINFO) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DestinationReachable)(::windows::core::Interface::as_raw(self), bstrdestination.into().abi(), bstrconnection.into().abi(), ultype, ::core::mem::transmute(lpqocinfo)).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DestinationReachableNoQOCInfo<'a, P0, P1>(&self, bstrdestination: P0, bstrconnection: P1, ultype: u32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DestinationReachableNoQOCInfo)(::windows::core::Interface::as_raw(self), bstrdestination.into().abi(), bstrconnection.into().abi(), ultype).ok() + pub unsafe fn ConnectionMade(&self, bstrconnection: &::windows::core::BSTR, ultype: u32, lpqocinfo: &SENS_QOCINFO) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ConnectionMade)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrconnection), ultype, ::core::mem::transmute(lpqocinfo)).ok() + } + pub unsafe fn ConnectionMadeNoQOCInfo(&self, bstrconnection: &::windows::core::BSTR, ultype: u32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ConnectionMadeNoQOCInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrconnection), ultype).ok() + } + pub unsafe fn ConnectionLost(&self, bstrconnection: &::windows::core::BSTR, ultype: SENS_CONNECTION_TYPE) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ConnectionLost)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrconnection), ultype).ok() + } + pub unsafe fn DestinationReachable(&self, bstrdestination: &::windows::core::BSTR, bstrconnection: &::windows::core::BSTR, ultype: u32, lpqocinfo: &SENS_QOCINFO) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DestinationReachable)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdestination), ::core::mem::transmute_copy(bstrconnection), ultype, ::core::mem::transmute(lpqocinfo)).ok() + } + pub unsafe fn DestinationReachableNoQOCInfo(&self, bstrdestination: &::windows::core::BSTR, bstrconnection: &::windows::core::BSTR, ultype: u32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DestinationReachableNoQOCInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdestination), ::core::mem::transmute_copy(bstrconnection), ultype).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -441,26 +318,11 @@ unsafe impl ::windows::core::Interface for ISensNetwork { #[doc(hidden)] pub struct ISensNetwork_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub ConnectionMade: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrconnection: ::core::mem::ManuallyDrop, ultype: u32, lpqocinfo: *const SENS_QOCINFO) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ConnectionMade: usize, - #[cfg(feature = "Win32_Foundation")] - pub ConnectionMadeNoQOCInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrconnection: ::core::mem::ManuallyDrop, ultype: u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ConnectionMadeNoQOCInfo: usize, - #[cfg(feature = "Win32_Foundation")] - pub ConnectionLost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrconnection: ::core::mem::ManuallyDrop, ultype: SENS_CONNECTION_TYPE) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ConnectionLost: usize, - #[cfg(feature = "Win32_Foundation")] - pub DestinationReachable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdestination: ::core::mem::ManuallyDrop, bstrconnection: ::core::mem::ManuallyDrop, ultype: u32, lpqocinfo: *const SENS_QOCINFO) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DestinationReachable: usize, - #[cfg(feature = "Win32_Foundation")] - pub DestinationReachableNoQOCInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdestination: ::core::mem::ManuallyDrop, bstrconnection: ::core::mem::ManuallyDrop, ultype: u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DestinationReachableNoQOCInfo: usize, + pub ConnectionMade: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrconnection: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ultype: u32, lpqocinfo: *const SENS_QOCINFO) -> ::windows::core::HRESULT, + pub ConnectionMadeNoQOCInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrconnection: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ultype: u32) -> ::windows::core::HRESULT, + pub ConnectionLost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrconnection: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ultype: SENS_CONNECTION_TYPE) -> ::windows::core::HRESULT, + pub DestinationReachable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdestination: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrconnection: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ultype: u32, lpqocinfo: *const SENS_QOCINFO) -> ::windows::core::HRESULT, + pub DestinationReachableNoQOCInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdestination: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrconnection: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ultype: u32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_EventNotificationService\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] diff --git a/crates/libs/windows/src/Windows/Win32/System/GroupPolicy/impl.rs b/crates/libs/windows/src/Windows/Win32/System/GroupPolicy/impl.rs index 9468a65640..503e85eac7 100644 --- a/crates/libs/windows/src/Windows/Win32/System/GroupPolicy/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/GroupPolicy/impl.rs @@ -79,25 +79,25 @@ impl IGPEInformation_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IGPM_Impl: Sized + super::Com::IDispatch_Impl { - fn GetDomain(&self, bstrdomain: &super::super::Foundation::BSTR, bstrdomaincontroller: &super::super::Foundation::BSTR, ldcflags: i32) -> ::windows::core::Result; - fn GetBackupDir(&self, bstrbackupdir: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetSitesContainer(&self, bstrforest: &super::super::Foundation::BSTR, bstrdomain: &super::super::Foundation::BSTR, bstrdomaincontroller: &super::super::Foundation::BSTR, ldcflags: i32) -> ::windows::core::Result; - fn GetRSOP(&self, gpmrsopmode: GPMRSOPMode, bstrnamespace: &super::super::Foundation::BSTR, lflags: i32) -> ::windows::core::Result; - fn CreatePermission(&self, bstrtrustee: &super::super::Foundation::BSTR, perm: GPMPermissionType, binheritable: i16) -> ::windows::core::Result; + fn GetDomain(&self, bstrdomain: &::windows::core::BSTR, bstrdomaincontroller: &::windows::core::BSTR, ldcflags: i32) -> ::windows::core::Result; + fn GetBackupDir(&self, bstrbackupdir: &::windows::core::BSTR) -> ::windows::core::Result; + fn GetSitesContainer(&self, bstrforest: &::windows::core::BSTR, bstrdomain: &::windows::core::BSTR, bstrdomaincontroller: &::windows::core::BSTR, ldcflags: i32) -> ::windows::core::Result; + fn GetRSOP(&self, gpmrsopmode: GPMRSOPMode, bstrnamespace: &::windows::core::BSTR, lflags: i32) -> ::windows::core::Result; + fn CreatePermission(&self, bstrtrustee: &::windows::core::BSTR, perm: GPMPermissionType, binheritable: i16) -> ::windows::core::Result; fn CreateSearchCriteria(&self) -> ::windows::core::Result; - fn CreateTrustee(&self, bstrtrustee: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn CreateTrustee(&self, bstrtrustee: &::windows::core::BSTR) -> ::windows::core::Result; fn GetClientSideExtensions(&self) -> ::windows::core::Result; fn GetConstants(&self) -> ::windows::core::Result; - fn GetMigrationTable(&self, bstrmigrationtablepath: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetMigrationTable(&self, bstrmigrationtablepath: &::windows::core::BSTR) -> ::windows::core::Result; fn CreateMigrationTable(&self) -> ::windows::core::Result; - fn InitializeReporting(&self, bstradmpath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn InitializeReporting(&self, bstradmpath: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IGPM {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IGPM_Vtbl { pub const fn new, Impl: IGPM_Impl, const OFFSET: isize>() -> IGPM_Vtbl { - unsafe extern "system" fn GetDomain, Impl: IGPM_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdomain: ::core::mem::ManuallyDrop, bstrdomaincontroller: ::core::mem::ManuallyDrop, ldcflags: i32, pigpmdomain: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDomain, Impl: IGPM_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdomain: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdomaincontroller: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ldcflags: i32, pigpmdomain: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDomain(::core::mem::transmute(&bstrdomain), ::core::mem::transmute(&bstrdomaincontroller), ::core::mem::transmute_copy(&ldcflags)) { @@ -108,7 +108,7 @@ impl IGPM_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetBackupDir, Impl: IGPM_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrbackupdir: ::core::mem::ManuallyDrop, pigpmbackupdir: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetBackupDir, Impl: IGPM_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrbackupdir: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pigpmbackupdir: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetBackupDir(::core::mem::transmute(&bstrbackupdir)) { @@ -119,7 +119,7 @@ impl IGPM_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetSitesContainer, Impl: IGPM_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrforest: ::core::mem::ManuallyDrop, bstrdomain: ::core::mem::ManuallyDrop, bstrdomaincontroller: ::core::mem::ManuallyDrop, ldcflags: i32, ppigpmsitescontainer: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSitesContainer, Impl: IGPM_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrforest: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdomain: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdomaincontroller: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ldcflags: i32, ppigpmsitescontainer: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetSitesContainer(::core::mem::transmute(&bstrforest), ::core::mem::transmute(&bstrdomain), ::core::mem::transmute(&bstrdomaincontroller), ::core::mem::transmute_copy(&ldcflags)) { @@ -130,7 +130,7 @@ impl IGPM_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetRSOP, Impl: IGPM_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, gpmrsopmode: GPMRSOPMode, bstrnamespace: ::core::mem::ManuallyDrop, lflags: i32, ppigpmrsop: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetRSOP, Impl: IGPM_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, gpmrsopmode: GPMRSOPMode, bstrnamespace: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, ppigpmrsop: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetRSOP(::core::mem::transmute_copy(&gpmrsopmode), ::core::mem::transmute(&bstrnamespace), ::core::mem::transmute_copy(&lflags)) { @@ -141,7 +141,7 @@ impl IGPM_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreatePermission, Impl: IGPM_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtrustee: ::core::mem::ManuallyDrop, perm: GPMPermissionType, binheritable: i16, ppperm: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreatePermission, Impl: IGPM_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtrustee: ::core::mem::ManuallyDrop<::windows::core::BSTR>, perm: GPMPermissionType, binheritable: i16, ppperm: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreatePermission(::core::mem::transmute(&bstrtrustee), ::core::mem::transmute_copy(&perm), ::core::mem::transmute_copy(&binheritable)) { @@ -163,7 +163,7 @@ impl IGPM_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateTrustee, Impl: IGPM_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtrustee: ::core::mem::ManuallyDrop, ppigpmtrustee: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateTrustee, Impl: IGPM_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtrustee: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppigpmtrustee: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateTrustee(::core::mem::transmute(&bstrtrustee)) { @@ -196,7 +196,7 @@ impl IGPM_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetMigrationTable, Impl: IGPM_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmigrationtablepath: ::core::mem::ManuallyDrop, ppmigrationtable: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetMigrationTable, Impl: IGPM_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmigrationtablepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppmigrationtable: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetMigrationTable(::core::mem::transmute(&bstrmigrationtablepath)) { @@ -218,7 +218,7 @@ impl IGPM_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn InitializeReporting, Impl: IGPM_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstradmpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeReporting, Impl: IGPM_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstradmpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeReporting(::core::mem::transmute(&bstradmpath)).into() @@ -245,15 +245,15 @@ impl IGPM_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IGPM2_Impl: Sized + super::Com::IDispatch_Impl + IGPM_Impl { - fn GetBackupDirEx(&self, bstrbackupdir: &super::super::Foundation::BSTR, backupdirtype: GPMBackupType) -> ::windows::core::Result; - fn InitializeReportingEx(&self, bstradmpath: &super::super::Foundation::BSTR, reportingoptions: i32) -> ::windows::core::Result<()>; + fn GetBackupDirEx(&self, bstrbackupdir: &::windows::core::BSTR, backupdirtype: GPMBackupType) -> ::windows::core::Result; + fn InitializeReportingEx(&self, bstradmpath: &::windows::core::BSTR, reportingoptions: i32) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IGPM2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IGPM2_Vtbl { pub const fn new, Impl: IGPM2_Impl, const OFFSET: isize>() -> IGPM2_Vtbl { - unsafe extern "system" fn GetBackupDirEx, Impl: IGPM2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrbackupdir: ::core::mem::ManuallyDrop, backupdirtype: GPMBackupType, ppigpmbackupdirex: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetBackupDirEx, Impl: IGPM2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrbackupdir: ::core::mem::ManuallyDrop<::windows::core::BSTR>, backupdirtype: GPMBackupType, ppigpmbackupdirex: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetBackupDirEx(::core::mem::transmute(&bstrbackupdir), ::core::mem::transmute_copy(&backupdirtype)) { @@ -264,7 +264,7 @@ impl IGPM2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn InitializeReportingEx, Impl: IGPM2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstradmpath: ::core::mem::ManuallyDrop, reportingoptions: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitializeReportingEx, Impl: IGPM2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstradmpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, reportingoptions: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InitializeReportingEx(::core::mem::transmute(&bstradmpath), ::core::mem::transmute_copy(&reportingoptions)).into() @@ -321,23 +321,23 @@ impl IGPMAsyncProgress_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IGPMBackup_Impl: Sized + super::Com::IDispatch_Impl { - fn ID(&self) -> ::windows::core::Result; - fn GPOID(&self) -> ::windows::core::Result; - fn GPODomain(&self) -> ::windows::core::Result; - fn GPODisplayName(&self) -> ::windows::core::Result; + fn ID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GPOID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GPODomain(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GPODisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Timestamp(&self) -> ::windows::core::Result; - fn Comment(&self) -> ::windows::core::Result; - fn BackupDir(&self) -> ::windows::core::Result; + fn Comment(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn BackupDir(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Delete(&self) -> ::windows::core::Result<()>; fn GenerateReport(&self, gpmreporttype: GPMReportType, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option) -> ::windows::core::Result<()>; - fn GenerateReportToFile(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GenerateReportToFile(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IGPMBackup {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IGPMBackup_Vtbl { pub const fn new, Impl: IGPMBackup_Impl, const OFFSET: isize>() -> IGPMBackup_Vtbl { - unsafe extern "system" fn ID, Impl: IGPMBackup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ID, Impl: IGPMBackup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ID() { @@ -348,7 +348,7 @@ impl IGPMBackup_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GPOID, Impl: IGPMBackup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GPOID, Impl: IGPMBackup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GPOID() { @@ -359,7 +359,7 @@ impl IGPMBackup_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GPODomain, Impl: IGPMBackup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GPODomain, Impl: IGPMBackup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GPODomain() { @@ -370,7 +370,7 @@ impl IGPMBackup_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GPODisplayName, Impl: IGPMBackup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GPODisplayName, Impl: IGPMBackup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GPODisplayName() { @@ -392,7 +392,7 @@ impl IGPMBackup_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Comment, Impl: IGPMBackup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Comment, Impl: IGPMBackup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Comment() { @@ -403,7 +403,7 @@ impl IGPMBackup_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn BackupDir, Impl: IGPMBackup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn BackupDir, Impl: IGPMBackup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BackupDir() { @@ -424,7 +424,7 @@ impl IGPMBackup_Vtbl { let this = (*this).get_impl(); this.GenerateReport(::core::mem::transmute_copy(&gpmreporttype), ::core::mem::transmute_copy(&pvargpmprogress), ::core::mem::transmute_copy(&pvargpmcancel), ::core::mem::transmute_copy(&ppigpmresult)).into() } - unsafe extern "system" fn GenerateReportToFile, Impl: IGPMBackup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, gpmreporttype: GPMReportType, bstrtargetfilepath: ::core::mem::ManuallyDrop, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GenerateReportToFile, Impl: IGPMBackup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, gpmreporttype: GPMReportType, bstrtargetfilepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GenerateReportToFile(::core::mem::transmute_copy(&gpmreporttype), ::core::mem::transmute(&bstrtargetfilepath)) { @@ -510,8 +510,8 @@ impl IGPMBackupCollection_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IGPMBackupDir_Impl: Sized + super::Com::IDispatch_Impl { - fn BackupDirectory(&self) -> ::windows::core::Result; - fn GetBackup(&self, bstrid: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn BackupDirectory(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetBackup(&self, bstrid: &::windows::core::BSTR) -> ::windows::core::Result; fn SearchBackups(&self, pigpmsearchcriteria: &::core::option::Option) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -519,7 +519,7 @@ impl ::windows::core::RuntimeName for IGPMBackupDir {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IGPMBackupDir_Vtbl { pub const fn new, Impl: IGPMBackupDir_Impl, const OFFSET: isize>() -> IGPMBackupDir_Vtbl { - unsafe extern "system" fn BackupDirectory, Impl: IGPMBackupDir_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn BackupDirectory, Impl: IGPMBackupDir_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BackupDirectory() { @@ -530,7 +530,7 @@ impl IGPMBackupDir_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetBackup, Impl: IGPMBackupDir_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrid: ::core::mem::ManuallyDrop, ppbackup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetBackup, Impl: IGPMBackupDir_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppbackup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetBackup(::core::mem::transmute(&bstrid)) { @@ -565,9 +565,9 @@ impl IGPMBackupDir_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IGPMBackupDirEx_Impl: Sized + super::Com::IDispatch_Impl { - fn BackupDir(&self) -> ::windows::core::Result; + fn BackupDir(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn BackupType(&self) -> ::windows::core::Result; - fn GetBackup(&self, bstrid: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetBackup(&self, bstrid: &::windows::core::BSTR) -> ::windows::core::Result; fn SearchBackups(&self, pigpmsearchcriteria: &::core::option::Option) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -575,7 +575,7 @@ impl ::windows::core::RuntimeName for IGPMBackupDirEx {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IGPMBackupDirEx_Vtbl { pub const fn new, Impl: IGPMBackupDirEx_Impl, const OFFSET: isize>() -> IGPMBackupDirEx_Vtbl { - unsafe extern "system" fn BackupDir, Impl: IGPMBackupDirEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrbackupdir: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn BackupDir, Impl: IGPMBackupDirEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrbackupdir: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BackupDir() { @@ -597,7 +597,7 @@ impl IGPMBackupDirEx_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetBackup, Impl: IGPMBackupDirEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrid: ::core::mem::ManuallyDrop, pvarbackup: *mut super::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetBackup, Impl: IGPMBackupDirEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarbackup: *mut super::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetBackup(::core::mem::transmute(&bstrid)) { @@ -688,8 +688,8 @@ impl IGPMCSECollection_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IGPMClientSideExtension_Impl: Sized + super::Com::IDispatch_Impl { - fn ID(&self) -> ::windows::core::Result; - fn DisplayName(&self) -> ::windows::core::Result; + fn ID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn IsUserEnabled(&self) -> ::windows::core::Result; fn IsComputerEnabled(&self) -> ::windows::core::Result; } @@ -698,7 +698,7 @@ impl ::windows::core::RuntimeName for IGPMClientSideExtension {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IGPMClientSideExtension_Vtbl { pub const fn new, Impl: IGPMClientSideExtension_Impl, const OFFSET: isize>() -> IGPMClientSideExtension_Vtbl { - unsafe extern "system" fn ID, Impl: IGPMClientSideExtension_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ID, Impl: IGPMClientSideExtension_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ID() { @@ -709,7 +709,7 @@ impl IGPMClientSideExtension_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DisplayName, Impl: IGPMClientSideExtension_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DisplayName, Impl: IGPMClientSideExtension_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DisplayName() { @@ -1763,15 +1763,15 @@ impl IGPMConstants2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IGPMDomain_Impl: Sized + super::Com::IDispatch_Impl { - fn DomainController(&self) -> ::windows::core::Result; - fn Domain(&self) -> ::windows::core::Result; + fn DomainController(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Domain(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CreateGPO(&self) -> ::windows::core::Result; - fn GetGPO(&self, bstrguid: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetGPO(&self, bstrguid: &::windows::core::BSTR) -> ::windows::core::Result; fn SearchGPOs(&self, pigpmsearchcriteria: &::core::option::Option) -> ::windows::core::Result; fn RestoreGPO(&self, pigpmbackup: &::core::option::Option, ldcflags: i32, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option) -> ::windows::core::Result<()>; - fn GetSOM(&self, bstrpath: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetSOM(&self, bstrpath: &::windows::core::BSTR) -> ::windows::core::Result; fn SearchSOMs(&self, pigpmsearchcriteria: &::core::option::Option) -> ::windows::core::Result; - fn GetWMIFilter(&self, bstrpath: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetWMIFilter(&self, bstrpath: &::windows::core::BSTR) -> ::windows::core::Result; fn SearchWMIFilters(&self, pigpmsearchcriteria: &::core::option::Option) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -1779,7 +1779,7 @@ impl ::windows::core::RuntimeName for IGPMDomain {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IGPMDomain_Vtbl { pub const fn new, Impl: IGPMDomain_Impl, const OFFSET: isize>() -> IGPMDomain_Vtbl { - unsafe extern "system" fn DomainController, Impl: IGPMDomain_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DomainController, Impl: IGPMDomain_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DomainController() { @@ -1790,7 +1790,7 @@ impl IGPMDomain_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Domain, Impl: IGPMDomain_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Domain, Impl: IGPMDomain_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Domain() { @@ -1812,7 +1812,7 @@ impl IGPMDomain_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetGPO, Impl: IGPMDomain_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrguid: ::core::mem::ManuallyDrop, ppgpo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetGPO, Impl: IGPMDomain_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppgpo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetGPO(::core::mem::transmute(&bstrguid)) { @@ -1839,7 +1839,7 @@ impl IGPMDomain_Vtbl { let this = (*this).get_impl(); this.RestoreGPO(::core::mem::transmute(&pigpmbackup), ::core::mem::transmute_copy(&ldcflags), ::core::mem::transmute_copy(&pvargpmprogress), ::core::mem::transmute_copy(&pvargpmcancel), ::core::mem::transmute_copy(&ppigpmresult)).into() } - unsafe extern "system" fn GetSOM, Impl: IGPMDomain_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpath: ::core::mem::ManuallyDrop, ppsom: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSOM, Impl: IGPMDomain_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppsom: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetSOM(::core::mem::transmute(&bstrpath)) { @@ -1861,7 +1861,7 @@ impl IGPMDomain_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetWMIFilter, Impl: IGPMDomain_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpath: ::core::mem::ManuallyDrop, ppwmifilter: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetWMIFilter, Impl: IGPMDomain_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppwmifilter: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetWMIFilter(::core::mem::transmute(&bstrpath)) { @@ -1905,9 +1905,9 @@ impl IGPMDomain_Vtbl { pub trait IGPMDomain2_Impl: Sized + super::Com::IDispatch_Impl + IGPMDomain_Impl { fn CreateStarterGPO(&self) -> ::windows::core::Result; fn CreateGPOFromStarterGPO(&self, pgpotemplate: &::core::option::Option) -> ::windows::core::Result; - fn GetStarterGPO(&self, bstrguid: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetStarterGPO(&self, bstrguid: &::windows::core::BSTR) -> ::windows::core::Result; fn SearchStarterGPOs(&self, pigpmsearchcriteria: &::core::option::Option) -> ::windows::core::Result; - fn LoadStarterGPO(&self, bstrloadfile: &super::super::Foundation::BSTR, boverwrite: i16, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option) -> ::windows::core::Result<()>; + fn LoadStarterGPO(&self, bstrloadfile: &::windows::core::BSTR, boverwrite: i16, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option) -> ::windows::core::Result<()>; fn RestoreStarterGPO(&self, pigpmtmplbackup: &::core::option::Option, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -1937,7 +1937,7 @@ impl IGPMDomain2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetStarterGPO, Impl: IGPMDomain2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrguid: ::core::mem::ManuallyDrop, pptemplate: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetStarterGPO, Impl: IGPMDomain2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pptemplate: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetStarterGPO(::core::mem::transmute(&bstrguid)) { @@ -1959,7 +1959,7 @@ impl IGPMDomain2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn LoadStarterGPO, Impl: IGPMDomain2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrloadfile: ::core::mem::ManuallyDrop, boverwrite: i16, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn LoadStarterGPO, Impl: IGPMDomain2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrloadfile: ::core::mem::ManuallyDrop<::windows::core::BSTR>, boverwrite: i16, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.LoadStarterGPO(::core::mem::transmute(&bstrloadfile), ::core::mem::transmute_copy(&boverwrite), ::core::mem::transmute_copy(&pvargpmprogress), ::core::mem::transmute_copy(&pvargpmcancel), ::core::mem::transmute_copy(&ppigpmresult)).into() @@ -1986,8 +1986,8 @@ impl IGPMDomain2_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IGPMDomain3_Impl: Sized + super::Com::IDispatch_Impl + IGPMDomain_Impl + IGPMDomain2_Impl { fn GenerateReport(&self, gpmreporttype: GPMReportType, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option) -> ::windows::core::Result<()>; - fn InfrastructureDC(&self) -> ::windows::core::Result; - fn SetInfrastructureDC(&self, newval: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn InfrastructureDC(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetInfrastructureDC(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SetInfrastructureFlags(&self, dwflags: u32) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2000,7 +2000,7 @@ impl IGPMDomain3_Vtbl { let this = (*this).get_impl(); this.GenerateReport(::core::mem::transmute_copy(&gpmreporttype), ::core::mem::transmute_copy(&pvargpmprogress), ::core::mem::transmute_copy(&pvargpmcancel), ::core::mem::transmute_copy(&ppigpmresult)).into() } - unsafe extern "system" fn InfrastructureDC, Impl: IGPMDomain3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn InfrastructureDC, Impl: IGPMDomain3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.InfrastructureDC() { @@ -2011,7 +2011,7 @@ impl IGPMDomain3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetInfrastructureDC, Impl: IGPMDomain3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetInfrastructureDC, Impl: IGPMDomain3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetInfrastructureDC(::core::mem::transmute(&newval)).into() @@ -2035,11 +2035,11 @@ impl IGPMDomain3_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IGPMGPO_Impl: Sized + super::Com::IDispatch_Impl { - fn DisplayName(&self) -> ::windows::core::Result; - fn SetDisplayName(&self, newval: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Path(&self) -> ::windows::core::Result; - fn ID(&self) -> ::windows::core::Result; - fn DomainName(&self) -> ::windows::core::Result; + fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDisplayName(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn DomainName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CreationTime(&self) -> ::windows::core::Result; fn ModificationTime(&self) -> ::windows::core::Result; fn UserDSVersionNumber(&self) -> ::windows::core::Result; @@ -2055,10 +2055,10 @@ pub trait IGPMGPO_Impl: Sized + super::Com::IDispatch_Impl { fn GetSecurityInfo(&self) -> ::windows::core::Result; fn SetSecurityInfo(&self, psecurityinfo: &::core::option::Option) -> ::windows::core::Result<()>; fn Delete(&self) -> ::windows::core::Result<()>; - fn Backup(&self, bstrbackupdir: &super::super::Foundation::BSTR, bstrcomment: &super::super::Foundation::BSTR, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option) -> ::windows::core::Result<()>; + fn Backup(&self, bstrbackupdir: &::windows::core::BSTR, bstrcomment: &::windows::core::BSTR, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option) -> ::windows::core::Result<()>; fn Import(&self, lflags: i32, pigpmbackup: &::core::option::Option, pvarmigrationtable: *const super::Com::VARIANT, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option) -> ::windows::core::Result<()>; fn GenerateReport(&self, gpmreporttype: GPMReportType, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option) -> ::windows::core::Result<()>; - fn GenerateReportToFile(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GenerateReportToFile(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: &::windows::core::BSTR) -> ::windows::core::Result; fn CopyTo(&self, lflags: i32, pigpmdomain: &::core::option::Option, pvarnewdisplayname: *const super::Com::VARIANT, pvarmigrationtable: *const super::Com::VARIANT, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option) -> ::windows::core::Result<()>; fn SetSecurityDescriptor(&self, lflags: i32, psd: &::core::option::Option) -> ::windows::core::Result<()>; fn GetSecurityDescriptor(&self, lflags: i32) -> ::windows::core::Result; @@ -2070,7 +2070,7 @@ impl ::windows::core::RuntimeName for IGPMGPO {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IGPMGPO_Vtbl { pub const fn new, Impl: IGPMGPO_Impl, const OFFSET: isize>() -> IGPMGPO_Vtbl { - unsafe extern "system" fn DisplayName, Impl: IGPMGPO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DisplayName, Impl: IGPMGPO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DisplayName() { @@ -2081,12 +2081,12 @@ impl IGPMGPO_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDisplayName, Impl: IGPMGPO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDisplayName, Impl: IGPMGPO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDisplayName(::core::mem::transmute(&newval)).into() } - unsafe extern "system" fn Path, Impl: IGPMGPO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Path, Impl: IGPMGPO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Path() { @@ -2097,7 +2097,7 @@ impl IGPMGPO_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ID, Impl: IGPMGPO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ID, Impl: IGPMGPO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ID() { @@ -2108,7 +2108,7 @@ impl IGPMGPO_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DomainName, Impl: IGPMGPO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DomainName, Impl: IGPMGPO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DomainName() { @@ -2254,7 +2254,7 @@ impl IGPMGPO_Vtbl { let this = (*this).get_impl(); this.Delete().into() } - unsafe extern "system" fn Backup, Impl: IGPMGPO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrbackupdir: ::core::mem::ManuallyDrop, bstrcomment: ::core::mem::ManuallyDrop, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Backup, Impl: IGPMGPO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrbackupdir: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrcomment: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Backup(::core::mem::transmute(&bstrbackupdir), ::core::mem::transmute(&bstrcomment), ::core::mem::transmute_copy(&pvargpmprogress), ::core::mem::transmute_copy(&pvargpmcancel), ::core::mem::transmute_copy(&ppigpmresult)).into() @@ -2269,7 +2269,7 @@ impl IGPMGPO_Vtbl { let this = (*this).get_impl(); this.GenerateReport(::core::mem::transmute_copy(&gpmreporttype), ::core::mem::transmute_copy(&pvargpmprogress), ::core::mem::transmute_copy(&pvargpmcancel), ::core::mem::transmute_copy(&ppigpmresult)).into() } - unsafe extern "system" fn GenerateReportToFile, Impl: IGPMGPO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, gpmreporttype: GPMReportType, bstrtargetfilepath: ::core::mem::ManuallyDrop, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GenerateReportToFile, Impl: IGPMGPO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, gpmreporttype: GPMReportType, bstrtargetfilepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GenerateReportToFile(::core::mem::transmute_copy(&gpmreporttype), ::core::mem::transmute(&bstrtargetfilepath)) { @@ -2356,15 +2356,15 @@ impl IGPMGPO_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IGPMGPO2_Impl: Sized + super::Com::IDispatch_Impl + IGPMGPO_Impl { - fn Description(&self) -> ::windows::core::Result; - fn SetDescription(&self, newval: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDescription(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IGPMGPO2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IGPMGPO2_Vtbl { pub const fn new, Impl: IGPMGPO2_Impl, const OFFSET: isize>() -> IGPMGPO2_Vtbl { - unsafe extern "system" fn Description, Impl: IGPMGPO2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IGPMGPO2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -2375,7 +2375,7 @@ impl IGPMGPO2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription, Impl: IGPMGPO2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDescription, Impl: IGPMGPO2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDescription(::core::mem::transmute(&newval)).into() @@ -2392,8 +2392,8 @@ impl IGPMGPO2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IGPMGPO3_Impl: Sized + super::Com::IDispatch_Impl + IGPMGPO_Impl + IGPMGPO2_Impl { - fn InfrastructureDC(&self) -> ::windows::core::Result; - fn SetInfrastructureDC(&self, newval: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn InfrastructureDC(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetInfrastructureDC(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SetInfrastructureFlags(&self, dwflags: u32) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2401,7 +2401,7 @@ impl ::windows::core::RuntimeName for IGPMGPO3 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IGPMGPO3_Vtbl { pub const fn new, Impl: IGPMGPO3_Impl, const OFFSET: isize>() -> IGPMGPO3_Vtbl { - unsafe extern "system" fn InfrastructureDC, Impl: IGPMGPO3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn InfrastructureDC, Impl: IGPMGPO3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.InfrastructureDC() { @@ -2412,7 +2412,7 @@ impl IGPMGPO3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetInfrastructureDC, Impl: IGPMGPO3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetInfrastructureDC, Impl: IGPMGPO3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetInfrastructureDC(::core::mem::transmute(&newval)).into() @@ -2490,8 +2490,8 @@ impl IGPMGPOCollection_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IGPMGPOLink_Impl: Sized + super::Com::IDispatch_Impl { - fn GPOID(&self) -> ::windows::core::Result; - fn GPODomain(&self) -> ::windows::core::Result; + fn GPOID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GPODomain(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Enabled(&self) -> ::windows::core::Result; fn SetEnabled(&self, newval: i16) -> ::windows::core::Result<()>; fn Enforced(&self) -> ::windows::core::Result; @@ -2505,7 +2505,7 @@ impl ::windows::core::RuntimeName for IGPMGPOLink {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IGPMGPOLink_Vtbl { pub const fn new, Impl: IGPMGPOLink_Impl, const OFFSET: isize>() -> IGPMGPOLink_Vtbl { - unsafe extern "system" fn GPOID, Impl: IGPMGPOLink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GPOID, Impl: IGPMGPOLink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GPOID() { @@ -2516,7 +2516,7 @@ impl IGPMGPOLink_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GPODomain, Impl: IGPMGPOLink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GPODomain, Impl: IGPMGPOLink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GPODomain() { @@ -2660,8 +2660,8 @@ impl IGPMGPOLinksCollection_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IGPMMapEntry_Impl: Sized + super::Com::IDispatch_Impl { - fn Source(&self) -> ::windows::core::Result; - fn Destination(&self) -> ::windows::core::Result; + fn Source(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Destination(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn DestinationOption(&self) -> ::windows::core::Result; fn EntryType(&self) -> ::windows::core::Result; } @@ -2670,7 +2670,7 @@ impl ::windows::core::RuntimeName for IGPMMapEntry {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IGPMMapEntry_Vtbl { pub const fn new, Impl: IGPMMapEntry_Impl, const OFFSET: isize>() -> IGPMMapEntry_Vtbl { - unsafe extern "system" fn Source, Impl: IGPMMapEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsource: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Source, Impl: IGPMMapEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsource: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Source() { @@ -2681,7 +2681,7 @@ impl IGPMMapEntry_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Destination, Impl: IGPMMapEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdestination: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Destination, Impl: IGPMMapEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdestination: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Destination() { @@ -2783,12 +2783,12 @@ impl IGPMMapEntryCollection_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IGPMMigrationTable_Impl: Sized + super::Com::IDispatch_Impl { - fn Save(&self, bstrmigrationtablepath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Save(&self, bstrmigrationtablepath: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Add(&self, lflags: i32, var: &super::Com::VARIANT) -> ::windows::core::Result<()>; - fn AddEntry(&self, bstrsource: &super::super::Foundation::BSTR, gpmentrytype: GPMEntryType, pvardestination: *const super::Com::VARIANT) -> ::windows::core::Result; - fn GetEntry(&self, bstrsource: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn DeleteEntry(&self, bstrsource: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn UpdateDestination(&self, bstrsource: &super::super::Foundation::BSTR, pvardestination: *const super::Com::VARIANT) -> ::windows::core::Result; + fn AddEntry(&self, bstrsource: &::windows::core::BSTR, gpmentrytype: GPMEntryType, pvardestination: *const super::Com::VARIANT) -> ::windows::core::Result; + fn GetEntry(&self, bstrsource: &::windows::core::BSTR) -> ::windows::core::Result; + fn DeleteEntry(&self, bstrsource: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn UpdateDestination(&self, bstrsource: &::windows::core::BSTR, pvardestination: *const super::Com::VARIANT) -> ::windows::core::Result; fn Validate(&self) -> ::windows::core::Result; fn GetEntries(&self) -> ::windows::core::Result; } @@ -2797,7 +2797,7 @@ impl ::windows::core::RuntimeName for IGPMMigrationTable {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IGPMMigrationTable_Vtbl { pub const fn new, Impl: IGPMMigrationTable_Impl, const OFFSET: isize>() -> IGPMMigrationTable_Vtbl { - unsafe extern "system" fn Save, Impl: IGPMMigrationTable_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmigrationtablepath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Save, Impl: IGPMMigrationTable_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmigrationtablepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Save(::core::mem::transmute(&bstrmigrationtablepath)).into() @@ -2807,7 +2807,7 @@ impl IGPMMigrationTable_Vtbl { let this = (*this).get_impl(); this.Add(::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&var)).into() } - unsafe extern "system" fn AddEntry, Impl: IGPMMigrationTable_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsource: ::core::mem::ManuallyDrop, gpmentrytype: GPMEntryType, pvardestination: *const super::Com::VARIANT, ppentry: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddEntry, Impl: IGPMMigrationTable_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsource: ::core::mem::ManuallyDrop<::windows::core::BSTR>, gpmentrytype: GPMEntryType, pvardestination: *const super::Com::VARIANT, ppentry: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AddEntry(::core::mem::transmute(&bstrsource), ::core::mem::transmute_copy(&gpmentrytype), ::core::mem::transmute_copy(&pvardestination)) { @@ -2818,7 +2818,7 @@ impl IGPMMigrationTable_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetEntry, Impl: IGPMMigrationTable_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsource: ::core::mem::ManuallyDrop, ppentry: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetEntry, Impl: IGPMMigrationTable_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsource: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppentry: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetEntry(::core::mem::transmute(&bstrsource)) { @@ -2829,12 +2829,12 @@ impl IGPMMigrationTable_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DeleteEntry, Impl: IGPMMigrationTable_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsource: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteEntry, Impl: IGPMMigrationTable_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsource: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteEntry(::core::mem::transmute(&bstrsource)).into() } - unsafe extern "system" fn UpdateDestination, Impl: IGPMMigrationTable_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsource: ::core::mem::ManuallyDrop, pvardestination: *const super::Com::VARIANT, ppentry: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn UpdateDestination, Impl: IGPMMigrationTable_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsource: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvardestination: *const super::Com::VARIANT, ppentry: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UpdateDestination(::core::mem::transmute(&bstrsource), ::core::mem::transmute_copy(&pvardestination)) { @@ -2967,31 +2967,31 @@ impl IGPMPermission_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IGPMRSOP_Impl: Sized + super::Com::IDispatch_Impl { fn Mode(&self) -> ::windows::core::Result; - fn Namespace(&self) -> ::windows::core::Result; - fn SetLoggingComputer(&self, bstrval: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn LoggingComputer(&self) -> ::windows::core::Result; - fn SetLoggingUser(&self, bstrval: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn LoggingUser(&self) -> ::windows::core::Result; + fn Namespace(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetLoggingComputer(&self, bstrval: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn LoggingComputer(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetLoggingUser(&self, bstrval: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn LoggingUser(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn SetLoggingFlags(&self, lval: i32) -> ::windows::core::Result<()>; fn LoggingFlags(&self) -> ::windows::core::Result; fn SetPlanningFlags(&self, lval: i32) -> ::windows::core::Result<()>; fn PlanningFlags(&self) -> ::windows::core::Result; - fn SetPlanningDomainController(&self, bstrval: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn PlanningDomainController(&self) -> ::windows::core::Result; - fn SetPlanningSiteName(&self, bstrval: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn PlanningSiteName(&self) -> ::windows::core::Result; - fn SetPlanningUser(&self, bstrval: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn PlanningUser(&self) -> ::windows::core::Result; - fn SetPlanningUserSOM(&self, bstrval: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn PlanningUserSOM(&self) -> ::windows::core::Result; + fn SetPlanningDomainController(&self, bstrval: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn PlanningDomainController(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetPlanningSiteName(&self, bstrval: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn PlanningSiteName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetPlanningUser(&self, bstrval: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn PlanningUser(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetPlanningUserSOM(&self, bstrval: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn PlanningUserSOM(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn SetPlanningUserWMIFilters(&self, varval: &super::Com::VARIANT) -> ::windows::core::Result<()>; fn PlanningUserWMIFilters(&self) -> ::windows::core::Result; fn SetPlanningUserSecurityGroups(&self, varval: &super::Com::VARIANT) -> ::windows::core::Result<()>; fn PlanningUserSecurityGroups(&self) -> ::windows::core::Result; - fn SetPlanningComputer(&self, bstrval: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn PlanningComputer(&self) -> ::windows::core::Result; - fn SetPlanningComputerSOM(&self, bstrval: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn PlanningComputerSOM(&self) -> ::windows::core::Result; + fn SetPlanningComputer(&self, bstrval: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn PlanningComputer(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetPlanningComputerSOM(&self, bstrval: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn PlanningComputerSOM(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn SetPlanningComputerWMIFilters(&self, varval: &super::Com::VARIANT) -> ::windows::core::Result<()>; fn PlanningComputerWMIFilters(&self) -> ::windows::core::Result; fn SetPlanningComputerSecurityGroups(&self, varval: &super::Com::VARIANT) -> ::windows::core::Result<()>; @@ -3000,7 +3000,7 @@ pub trait IGPMRSOP_Impl: Sized + super::Com::IDispatch_Impl { fn CreateQueryResults(&self) -> ::windows::core::Result<()>; fn ReleaseQueryResults(&self) -> ::windows::core::Result<()>; fn GenerateReport(&self, gpmreporttype: GPMReportType, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option) -> ::windows::core::Result<()>; - fn GenerateReportToFile(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GenerateReportToFile(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IGPMRSOP {} @@ -3018,7 +3018,7 @@ impl IGPMRSOP_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Namespace, Impl: IGPMRSOP_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Namespace, Impl: IGPMRSOP_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Namespace() { @@ -3029,12 +3029,12 @@ impl IGPMRSOP_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetLoggingComputer, Impl: IGPMRSOP_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetLoggingComputer, Impl: IGPMRSOP_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetLoggingComputer(::core::mem::transmute(&bstrval)).into() } - unsafe extern "system" fn LoggingComputer, Impl: IGPMRSOP_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LoggingComputer, Impl: IGPMRSOP_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LoggingComputer() { @@ -3045,12 +3045,12 @@ impl IGPMRSOP_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetLoggingUser, Impl: IGPMRSOP_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetLoggingUser, Impl: IGPMRSOP_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetLoggingUser(::core::mem::transmute(&bstrval)).into() } - unsafe extern "system" fn LoggingUser, Impl: IGPMRSOP_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LoggingUser, Impl: IGPMRSOP_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LoggingUser() { @@ -3093,12 +3093,12 @@ impl IGPMRSOP_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPlanningDomainController, Impl: IGPMRSOP_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPlanningDomainController, Impl: IGPMRSOP_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPlanningDomainController(::core::mem::transmute(&bstrval)).into() } - unsafe extern "system" fn PlanningDomainController, Impl: IGPMRSOP_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PlanningDomainController, Impl: IGPMRSOP_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PlanningDomainController() { @@ -3109,12 +3109,12 @@ impl IGPMRSOP_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPlanningSiteName, Impl: IGPMRSOP_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPlanningSiteName, Impl: IGPMRSOP_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPlanningSiteName(::core::mem::transmute(&bstrval)).into() } - unsafe extern "system" fn PlanningSiteName, Impl: IGPMRSOP_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PlanningSiteName, Impl: IGPMRSOP_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PlanningSiteName() { @@ -3125,12 +3125,12 @@ impl IGPMRSOP_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPlanningUser, Impl: IGPMRSOP_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPlanningUser, Impl: IGPMRSOP_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPlanningUser(::core::mem::transmute(&bstrval)).into() } - unsafe extern "system" fn PlanningUser, Impl: IGPMRSOP_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PlanningUser, Impl: IGPMRSOP_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PlanningUser() { @@ -3141,12 +3141,12 @@ impl IGPMRSOP_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPlanningUserSOM, Impl: IGPMRSOP_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPlanningUserSOM, Impl: IGPMRSOP_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPlanningUserSOM(::core::mem::transmute(&bstrval)).into() } - unsafe extern "system" fn PlanningUserSOM, Impl: IGPMRSOP_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PlanningUserSOM, Impl: IGPMRSOP_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PlanningUserSOM() { @@ -3189,12 +3189,12 @@ impl IGPMRSOP_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPlanningComputer, Impl: IGPMRSOP_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPlanningComputer, Impl: IGPMRSOP_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPlanningComputer(::core::mem::transmute(&bstrval)).into() } - unsafe extern "system" fn PlanningComputer, Impl: IGPMRSOP_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PlanningComputer, Impl: IGPMRSOP_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PlanningComputer() { @@ -3205,12 +3205,12 @@ impl IGPMRSOP_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPlanningComputerSOM, Impl: IGPMRSOP_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPlanningComputerSOM, Impl: IGPMRSOP_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPlanningComputerSOM(::core::mem::transmute(&bstrval)).into() } - unsafe extern "system" fn PlanningComputerSOM, Impl: IGPMRSOP_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PlanningComputerSOM, Impl: IGPMRSOP_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PlanningComputerSOM() { @@ -3279,7 +3279,7 @@ impl IGPMRSOP_Vtbl { let this = (*this).get_impl(); this.GenerateReport(::core::mem::transmute_copy(&gpmreporttype), ::core::mem::transmute_copy(&pvargpmprogress), ::core::mem::transmute_copy(&pvargpmcancel), ::core::mem::transmute_copy(&ppigpmresult)).into() } - unsafe extern "system" fn GenerateReportToFile, Impl: IGPMRSOP_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, gpmreporttype: GPMReportType, bstrtargetfilepath: ::core::mem::ManuallyDrop, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GenerateReportToFile, Impl: IGPMRSOP_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, gpmreporttype: GPMReportType, bstrtargetfilepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GenerateReportToFile(::core::mem::transmute_copy(&gpmreporttype), ::core::mem::transmute(&bstrtargetfilepath)) { @@ -3386,8 +3386,8 @@ impl IGPMResult_Vtbl { pub trait IGPMSOM_Impl: Sized + super::Com::IDispatch_Impl { fn GPOInheritanceBlocked(&self) -> ::windows::core::Result; fn SetGPOInheritanceBlocked(&self, newval: i16) -> ::windows::core::Result<()>; - fn Name(&self) -> ::windows::core::Result; - fn Path(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CreateGPOLink(&self, llinkpos: i32, pgpo: &::core::option::Option) -> ::windows::core::Result; fn Type(&self) -> ::windows::core::Result; fn GetGPOLinks(&self) -> ::windows::core::Result; @@ -3416,7 +3416,7 @@ impl IGPMSOM_Vtbl { let this = (*this).get_impl(); this.SetGPOInheritanceBlocked(::core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn Name, Impl: IGPMSOM_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IGPMSOM_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -3427,7 +3427,7 @@ impl IGPMSOM_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Path, Impl: IGPMSOM_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Path, Impl: IGPMSOM_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Path() { @@ -3598,7 +3598,7 @@ pub trait IGPMSecurityInfo_Impl: Sized + super::Com::IDispatch_Impl { fn _NewEnum(&self) -> ::windows::core::Result; fn Add(&self, pperm: &::core::option::Option) -> ::windows::core::Result<()>; fn Remove(&self, pperm: &::core::option::Option) -> ::windows::core::Result<()>; - fn RemoveTrustee(&self, bstrtrustee: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn RemoveTrustee(&self, bstrtrustee: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IGPMSecurityInfo {} @@ -3648,7 +3648,7 @@ impl IGPMSecurityInfo_Vtbl { let this = (*this).get_impl(); this.Remove(::core::mem::transmute(&pperm)).into() } - unsafe extern "system" fn RemoveTrustee, Impl: IGPMSecurityInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtrustee: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn RemoveTrustee, Impl: IGPMSecurityInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrtrustee: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RemoveTrustee(::core::mem::transmute(&bstrtrustee)).into() @@ -3669,10 +3669,10 @@ impl IGPMSecurityInfo_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IGPMSitesContainer_Impl: Sized + super::Com::IDispatch_Impl { - fn DomainController(&self) -> ::windows::core::Result; - fn Domain(&self) -> ::windows::core::Result; - fn Forest(&self) -> ::windows::core::Result; - fn GetSite(&self, bstrsitename: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn DomainController(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Domain(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Forest(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetSite(&self, bstrsitename: &::windows::core::BSTR) -> ::windows::core::Result; fn SearchSites(&self, pigpmsearchcriteria: &::core::option::Option) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3680,7 +3680,7 @@ impl ::windows::core::RuntimeName for IGPMSitesContainer {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IGPMSitesContainer_Vtbl { pub const fn new, Impl: IGPMSitesContainer_Impl, const OFFSET: isize>() -> IGPMSitesContainer_Vtbl { - unsafe extern "system" fn DomainController, Impl: IGPMSitesContainer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DomainController, Impl: IGPMSitesContainer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DomainController() { @@ -3691,7 +3691,7 @@ impl IGPMSitesContainer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Domain, Impl: IGPMSitesContainer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Domain, Impl: IGPMSitesContainer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Domain() { @@ -3702,7 +3702,7 @@ impl IGPMSitesContainer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Forest, Impl: IGPMSitesContainer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Forest, Impl: IGPMSitesContainer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Forest() { @@ -3713,7 +3713,7 @@ impl IGPMSitesContainer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetSite, Impl: IGPMSitesContainer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsitename: ::core::mem::ManuallyDrop, ppsom: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSite, Impl: IGPMSitesContainer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsitename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppsom: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetSite(::core::mem::transmute(&bstrsitename)) { @@ -3750,25 +3750,25 @@ impl IGPMSitesContainer_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IGPMStarterGPO_Impl: Sized + super::Com::IDispatch_Impl { - fn DisplayName(&self) -> ::windows::core::Result; - fn SetDisplayName(&self, newval: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Description(&self) -> ::windows::core::Result; - fn SetDescription(&self, newval: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Author(&self) -> ::windows::core::Result; - fn Product(&self) -> ::windows::core::Result; + fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDisplayName(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDescription(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Author(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Product(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CreationTime(&self) -> ::windows::core::Result; - fn ID(&self) -> ::windows::core::Result; + fn ID(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn ModifiedTime(&self) -> ::windows::core::Result; fn Type(&self) -> ::windows::core::Result; fn ComputerVersion(&self) -> ::windows::core::Result; fn UserVersion(&self) -> ::windows::core::Result; - fn StarterGPOVersion(&self) -> ::windows::core::Result; + fn StarterGPOVersion(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Delete(&self) -> ::windows::core::Result<()>; - fn Save(&self, bstrsavefile: &super::super::Foundation::BSTR, boverwrite: i16, bsaveassystem: i16, bstrlanguage: *const super::Com::VARIANT, bstrauthor: *const super::Com::VARIANT, bstrproduct: *const super::Com::VARIANT, bstruniqueid: *const super::Com::VARIANT, bstrversion: *const super::Com::VARIANT, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option) -> ::windows::core::Result<()>; - fn Backup(&self, bstrbackupdir: &super::super::Foundation::BSTR, bstrcomment: &super::super::Foundation::BSTR, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option) -> ::windows::core::Result<()>; + fn Save(&self, bstrsavefile: &::windows::core::BSTR, boverwrite: i16, bsaveassystem: i16, bstrlanguage: *const super::Com::VARIANT, bstrauthor: *const super::Com::VARIANT, bstrproduct: *const super::Com::VARIANT, bstruniqueid: *const super::Com::VARIANT, bstrversion: *const super::Com::VARIANT, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option) -> ::windows::core::Result<()>; + fn Backup(&self, bstrbackupdir: &::windows::core::BSTR, bstrcomment: &::windows::core::BSTR, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option) -> ::windows::core::Result<()>; fn CopyTo(&self, pvarnewdisplayname: *const super::Com::VARIANT, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *const super::Com::VARIANT) -> ::windows::core::Result; fn GenerateReport(&self, gpmreporttype: GPMReportType, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *const super::Com::VARIANT) -> ::windows::core::Result; - fn GenerateReportToFile(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GenerateReportToFile(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: &::windows::core::BSTR) -> ::windows::core::Result; fn GetSecurityInfo(&self) -> ::windows::core::Result; fn SetSecurityInfo(&self, psecurityinfo: &::core::option::Option) -> ::windows::core::Result<()>; } @@ -3777,7 +3777,7 @@ impl ::windows::core::RuntimeName for IGPMStarterGPO {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IGPMStarterGPO_Vtbl { pub const fn new, Impl: IGPMStarterGPO_Impl, const OFFSET: isize>() -> IGPMStarterGPO_Vtbl { - unsafe extern "system" fn DisplayName, Impl: IGPMStarterGPO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DisplayName, Impl: IGPMStarterGPO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DisplayName() { @@ -3788,12 +3788,12 @@ impl IGPMStarterGPO_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDisplayName, Impl: IGPMStarterGPO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDisplayName, Impl: IGPMStarterGPO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDisplayName(::core::mem::transmute(&newval)).into() } - unsafe extern "system" fn Description, Impl: IGPMStarterGPO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IGPMStarterGPO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -3804,12 +3804,12 @@ impl IGPMStarterGPO_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription, Impl: IGPMStarterGPO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDescription, Impl: IGPMStarterGPO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDescription(::core::mem::transmute(&newval)).into() } - unsafe extern "system" fn Author, Impl: IGPMStarterGPO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Author, Impl: IGPMStarterGPO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Author() { @@ -3820,7 +3820,7 @@ impl IGPMStarterGPO_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Product, Impl: IGPMStarterGPO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Product, Impl: IGPMStarterGPO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Product() { @@ -3842,7 +3842,7 @@ impl IGPMStarterGPO_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ID, Impl: IGPMStarterGPO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ID, Impl: IGPMStarterGPO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ID() { @@ -3897,7 +3897,7 @@ impl IGPMStarterGPO_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn StarterGPOVersion, Impl: IGPMStarterGPO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn StarterGPOVersion, Impl: IGPMStarterGPO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.StarterGPOVersion() { @@ -3913,13 +3913,13 @@ impl IGPMStarterGPO_Vtbl { let this = (*this).get_impl(); this.Delete().into() } - unsafe extern "system" fn Save, Impl: IGPMStarterGPO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsavefile: ::core::mem::ManuallyDrop, boverwrite: i16, bsaveassystem: i16, bstrlanguage: *const super::Com::VARIANT, bstrauthor: *const super::Com::VARIANT, bstrproduct: *const super::Com::VARIANT, bstruniqueid: *const super::Com::VARIANT, bstrversion: *const super::Com::VARIANT, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Save, Impl: IGPMStarterGPO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsavefile: ::core::mem::ManuallyDrop<::windows::core::BSTR>, boverwrite: i16, bsaveassystem: i16, bstrlanguage: *const super::Com::VARIANT, bstrauthor: *const super::Com::VARIANT, bstrproduct: *const super::Com::VARIANT, bstruniqueid: *const super::Com::VARIANT, bstrversion: *const super::Com::VARIANT, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Save(::core::mem::transmute(&bstrsavefile), ::core::mem::transmute_copy(&boverwrite), ::core::mem::transmute_copy(&bsaveassystem), ::core::mem::transmute_copy(&bstrlanguage), ::core::mem::transmute_copy(&bstrauthor), ::core::mem::transmute_copy(&bstrproduct), ::core::mem::transmute_copy(&bstruniqueid), ::core::mem::transmute_copy(&bstrversion), ::core::mem::transmute_copy(&pvargpmprogress), ::core::mem::transmute_copy(&pvargpmcancel), ::core::mem::transmute_copy(&ppigpmresult)) .into() } - unsafe extern "system" fn Backup, Impl: IGPMStarterGPO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrbackupdir: ::core::mem::ManuallyDrop, bstrcomment: ::core::mem::ManuallyDrop, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Backup, Impl: IGPMStarterGPO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrbackupdir: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrcomment: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Backup(::core::mem::transmute(&bstrbackupdir), ::core::mem::transmute(&bstrcomment), ::core::mem::transmute_copy(&pvargpmprogress), ::core::mem::transmute_copy(&pvargpmcancel), ::core::mem::transmute_copy(&ppigpmresult)).into() @@ -3946,7 +3946,7 @@ impl IGPMStarterGPO_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GenerateReportToFile, Impl: IGPMStarterGPO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, gpmreporttype: GPMReportType, bstrtargetfilepath: ::core::mem::ManuallyDrop, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GenerateReportToFile, Impl: IGPMStarterGPO_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, gpmreporttype: GPMReportType, bstrtargetfilepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GenerateReportToFile(::core::mem::transmute_copy(&gpmreporttype), ::core::mem::transmute(&bstrtargetfilepath)) { @@ -4004,24 +4004,24 @@ impl IGPMStarterGPO_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IGPMStarterGPOBackup_Impl: Sized + super::Com::IDispatch_Impl { - fn BackupDir(&self) -> ::windows::core::Result; - fn Comment(&self) -> ::windows::core::Result; - fn DisplayName(&self) -> ::windows::core::Result; - fn Domain(&self) -> ::windows::core::Result; - fn StarterGPOID(&self) -> ::windows::core::Result; - fn ID(&self) -> ::windows::core::Result; + fn BackupDir(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Comment(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Domain(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn StarterGPOID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ID(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Timestamp(&self) -> ::windows::core::Result; fn Type(&self) -> ::windows::core::Result; fn Delete(&self) -> ::windows::core::Result<()>; fn GenerateReport(&self, gpmreporttype: GPMReportType, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut ::core::option::Option) -> ::windows::core::Result<()>; - fn GenerateReportToFile(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GenerateReportToFile(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IGPMStarterGPOBackup {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IGPMStarterGPOBackup_Vtbl { pub const fn new, Impl: IGPMStarterGPOBackup_Impl, const OFFSET: isize>() -> IGPMStarterGPOBackup_Vtbl { - unsafe extern "system" fn BackupDir, Impl: IGPMStarterGPOBackup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrbackupdir: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn BackupDir, Impl: IGPMStarterGPOBackup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrbackupdir: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BackupDir() { @@ -4032,7 +4032,7 @@ impl IGPMStarterGPOBackup_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Comment, Impl: IGPMStarterGPOBackup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcomment: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Comment, Impl: IGPMStarterGPOBackup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcomment: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Comment() { @@ -4043,7 +4043,7 @@ impl IGPMStarterGPOBackup_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DisplayName, Impl: IGPMStarterGPOBackup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdisplayname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DisplayName, Impl: IGPMStarterGPOBackup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdisplayname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DisplayName() { @@ -4054,7 +4054,7 @@ impl IGPMStarterGPOBackup_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Domain, Impl: IGPMStarterGPOBackup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtemplatedomain: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Domain, Impl: IGPMStarterGPOBackup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtemplatedomain: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Domain() { @@ -4065,7 +4065,7 @@ impl IGPMStarterGPOBackup_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn StarterGPOID, Impl: IGPMStarterGPOBackup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtemplateid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn StarterGPOID, Impl: IGPMStarterGPOBackup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtemplateid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.StarterGPOID() { @@ -4076,7 +4076,7 @@ impl IGPMStarterGPOBackup_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ID, Impl: IGPMStarterGPOBackup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ID, Impl: IGPMStarterGPOBackup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ID() { @@ -4119,7 +4119,7 @@ impl IGPMStarterGPOBackup_Vtbl { let this = (*this).get_impl(); this.GenerateReport(::core::mem::transmute_copy(&gpmreporttype), ::core::mem::transmute_copy(&pvargpmprogress), ::core::mem::transmute_copy(&pvargpmcancel), ::core::mem::transmute_copy(&ppigpmresult)).into() } - unsafe extern "system" fn GenerateReportToFile, Impl: IGPMStarterGPOBackup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, gpmreporttype: GPMReportType, bstrtargetfilepath: ::core::mem::ManuallyDrop, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GenerateReportToFile, Impl: IGPMStarterGPOBackup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, gpmreporttype: GPMReportType, bstrtargetfilepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GenerateReportToFile(::core::mem::transmute_copy(&gpmreporttype), ::core::mem::transmute(&bstrtargetfilepath)) { @@ -4261,19 +4261,19 @@ impl IGPMStarterGPOCollection_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IGPMStatusMessage_Impl: Sized + super::Com::IDispatch_Impl { - fn ObjectPath(&self) -> ::windows::core::Result; + fn ObjectPath(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn ErrorCode(&self) -> ::windows::core::Result<()>; - fn ExtensionName(&self) -> ::windows::core::Result; - fn SettingsName(&self) -> ::windows::core::Result; + fn ExtensionName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SettingsName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn OperationCode(&self) -> ::windows::core::Result<()>; - fn Message(&self) -> ::windows::core::Result; + fn Message(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IGPMStatusMessage {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IGPMStatusMessage_Vtbl { pub const fn new, Impl: IGPMStatusMessage_Impl, const OFFSET: isize>() -> IGPMStatusMessage_Vtbl { - unsafe extern "system" fn ObjectPath, Impl: IGPMStatusMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ObjectPath, Impl: IGPMStatusMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ObjectPath() { @@ -4289,7 +4289,7 @@ impl IGPMStatusMessage_Vtbl { let this = (*this).get_impl(); this.ErrorCode().into() } - unsafe extern "system" fn ExtensionName, Impl: IGPMStatusMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExtensionName, Impl: IGPMStatusMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ExtensionName() { @@ -4300,7 +4300,7 @@ impl IGPMStatusMessage_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SettingsName, Impl: IGPMStatusMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SettingsName, Impl: IGPMStatusMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SettingsName() { @@ -4316,7 +4316,7 @@ impl IGPMStatusMessage_Vtbl { let this = (*this).get_impl(); this.OperationCode().into() } - unsafe extern "system" fn Message, Impl: IGPMStatusMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Message, Impl: IGPMStatusMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Message() { @@ -4398,10 +4398,10 @@ impl IGPMStatusMsgCollection_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IGPMTrustee_Impl: Sized + super::Com::IDispatch_Impl { - fn TrusteeSid(&self) -> ::windows::core::Result; - fn TrusteeName(&self) -> ::windows::core::Result; - fn TrusteeDomain(&self) -> ::windows::core::Result; - fn TrusteeDSPath(&self) -> ::windows::core::Result; + fn TrusteeSid(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn TrusteeName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn TrusteeDomain(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn TrusteeDSPath(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn TrusteeType(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -4409,7 +4409,7 @@ impl ::windows::core::RuntimeName for IGPMTrustee {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IGPMTrustee_Vtbl { pub const fn new, Impl: IGPMTrustee_Impl, const OFFSET: isize>() -> IGPMTrustee_Vtbl { - unsafe extern "system" fn TrusteeSid, Impl: IGPMTrustee_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TrusteeSid, Impl: IGPMTrustee_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TrusteeSid() { @@ -4420,7 +4420,7 @@ impl IGPMTrustee_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn TrusteeName, Impl: IGPMTrustee_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TrusteeName, Impl: IGPMTrustee_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TrusteeName() { @@ -4431,7 +4431,7 @@ impl IGPMTrustee_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn TrusteeDomain, Impl: IGPMTrustee_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TrusteeDomain, Impl: IGPMTrustee_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TrusteeDomain() { @@ -4442,7 +4442,7 @@ impl IGPMTrustee_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn TrusteeDSPath, Impl: IGPMTrustee_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TrusteeDSPath, Impl: IGPMTrustee_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TrusteeDSPath() { @@ -4479,11 +4479,11 @@ impl IGPMTrustee_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IGPMWMIFilter_Impl: Sized + super::Com::IDispatch_Impl { - fn Path(&self) -> ::windows::core::Result; - fn SetName(&self, newval: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Name(&self) -> ::windows::core::Result; - fn SetDescription(&self, newval: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Description(&self) -> ::windows::core::Result; + fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetName(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDescription(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetQueryList(&self) -> ::windows::core::Result; fn GetSecurityInfo(&self) -> ::windows::core::Result; fn SetSecurityInfo(&self, psecurityinfo: &::core::option::Option) -> ::windows::core::Result<()>; @@ -4493,7 +4493,7 @@ impl ::windows::core::RuntimeName for IGPMWMIFilter {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IGPMWMIFilter_Vtbl { pub const fn new, Impl: IGPMWMIFilter_Impl, const OFFSET: isize>() -> IGPMWMIFilter_Vtbl { - unsafe extern "system" fn Path, Impl: IGPMWMIFilter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Path, Impl: IGPMWMIFilter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Path() { @@ -4504,12 +4504,12 @@ impl IGPMWMIFilter_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetName, Impl: IGPMWMIFilter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: IGPMWMIFilter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&newval)).into() } - unsafe extern "system" fn Name, Impl: IGPMWMIFilter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IGPMWMIFilter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -4520,12 +4520,12 @@ impl IGPMWMIFilter_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription, Impl: IGPMWMIFilter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDescription, Impl: IGPMWMIFilter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDescription(::core::mem::transmute(&newval)).into() } - unsafe extern "system" fn Description, Impl: IGPMWMIFilter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IGPMWMIFilter_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { diff --git a/crates/libs/windows/src/Windows/Win32/System/GroupPolicy/mod.rs b/crates/libs/windows/src/Windows/Win32/System/GroupPolicy/mod.rs index 218b28df77..3fea6ba330 100644 --- a/crates/libs/windows/src/Windows/Win32/System/GroupPolicy/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/GroupPolicy/mod.rs @@ -512,53 +512,35 @@ pub struct IGPEInformation_Vtbl { pub struct IGPM(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IGPM { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetDomain<'a, P0, P1>(&self, bstrdomain: P0, bstrdomaincontroller: P1, ldcflags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetDomain(&self, bstrdomain: &::windows::core::BSTR, bstrdomaincontroller: &::windows::core::BSTR, ldcflags: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDomain)(::windows::core::Interface::as_raw(self), bstrdomain.into().abi(), bstrdomaincontroller.into().abi(), ldcflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDomain)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdomain), ::core::mem::transmute_copy(bstrdomaincontroller), ldcflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetBackupDir<'a, P0>(&self, bstrbackupdir: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetBackupDir(&self, bstrbackupdir: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetBackupDir)(::windows::core::Interface::as_raw(self), bstrbackupdir.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetBackupDir)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrbackupdir), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetSitesContainer<'a, P0, P1, P2>(&self, bstrforest: P0, bstrdomain: P1, bstrdomaincontroller: P2, ldcflags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetSitesContainer(&self, bstrforest: &::windows::core::BSTR, bstrdomain: &::windows::core::BSTR, bstrdomaincontroller: &::windows::core::BSTR, ldcflags: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetSitesContainer)(::windows::core::Interface::as_raw(self), bstrforest.into().abi(), bstrdomain.into().abi(), bstrdomaincontroller.into().abi(), ldcflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetSitesContainer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrforest), ::core::mem::transmute_copy(bstrdomain), ::core::mem::transmute_copy(bstrdomaincontroller), ldcflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetRSOP<'a, P0>(&self, gpmrsopmode: GPMRSOPMode, bstrnamespace: P0, lflags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetRSOP(&self, gpmrsopmode: GPMRSOPMode, bstrnamespace: &::windows::core::BSTR, lflags: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetRSOP)(::windows::core::Interface::as_raw(self), gpmrsopmode, bstrnamespace.into().abi(), lflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetRSOP)(::windows::core::Interface::as_raw(self), gpmrsopmode, ::core::mem::transmute_copy(bstrnamespace), lflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreatePermission<'a, P0>(&self, bstrtrustee: P0, perm: GPMPermissionType, binheritable: i16) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreatePermission(&self, bstrtrustee: &::windows::core::BSTR, perm: GPMPermissionType, binheritable: i16) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreatePermission)(::windows::core::Interface::as_raw(self), bstrtrustee.into().abi(), perm, binheritable, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreatePermission)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtrustee), perm, binheritable, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -566,14 +548,11 @@ impl IGPM { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CreateSearchCriteria)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateTrustee<'a, P0>(&self, bstrtrustee: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateTrustee(&self, bstrtrustee: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateTrustee)(::windows::core::Interface::as_raw(self), bstrtrustee.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateTrustee)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtrustee), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -587,14 +566,11 @@ impl IGPM { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetConstants)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetMigrationTable<'a, P0>(&self, bstrmigrationtablepath: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetMigrationTable(&self, bstrmigrationtablepath: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetMigrationTable)(::windows::core::Interface::as_raw(self), bstrmigrationtablepath.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetMigrationTable)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrmigrationtablepath), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -602,13 +578,8 @@ impl IGPM { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CreateMigrationTable)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeReporting<'a, P0>(&self, bstradmpath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeReporting)(::windows::core::Interface::as_raw(self), bstradmpath.into().abi()).ok() + pub unsafe fn InitializeReporting(&self, bstradmpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeReporting)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstradmpath)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -677,33 +648,33 @@ unsafe impl ::windows::core::Interface for IGPM { #[doc(hidden)] pub struct IGPM_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetDomain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdomain: ::core::mem::ManuallyDrop, bstrdomaincontroller: ::core::mem::ManuallyDrop, ldcflags: i32, pigpmdomain: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetDomain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdomain: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdomaincontroller: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ldcflags: i32, pigpmdomain: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetDomain: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetBackupDir: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrbackupdir: ::core::mem::ManuallyDrop, pigpmbackupdir: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetBackupDir: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrbackupdir: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pigpmbackupdir: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetBackupDir: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetSitesContainer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrforest: ::core::mem::ManuallyDrop, bstrdomain: ::core::mem::ManuallyDrop, bstrdomaincontroller: ::core::mem::ManuallyDrop, ldcflags: i32, ppigpmsitescontainer: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetSitesContainer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrforest: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdomain: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdomaincontroller: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ldcflags: i32, ppigpmsitescontainer: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetSitesContainer: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetRSOP: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, gpmrsopmode: GPMRSOPMode, bstrnamespace: ::core::mem::ManuallyDrop, lflags: i32, ppigpmrsop: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetRSOP: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, gpmrsopmode: GPMRSOPMode, bstrnamespace: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, ppigpmrsop: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetRSOP: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreatePermission: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtrustee: ::core::mem::ManuallyDrop, perm: GPMPermissionType, binheritable: i16, ppperm: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreatePermission: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtrustee: ::core::mem::ManuallyDrop<::windows::core::BSTR>, perm: GPMPermissionType, binheritable: i16, ppperm: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreatePermission: usize, #[cfg(feature = "Win32_System_Com")] pub CreateSearchCriteria: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppigpmsearchcriteria: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] CreateSearchCriteria: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreateTrustee: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtrustee: ::core::mem::ManuallyDrop, ppigpmtrustee: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreateTrustee: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtrustee: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppigpmtrustee: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreateTrustee: usize, #[cfg(feature = "Win32_System_Com")] pub GetClientSideExtensions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppigpmcsecollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -713,18 +684,15 @@ pub struct IGPM_Vtbl { pub GetConstants: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppigpmconstants: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetConstants: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetMigrationTable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmigrationtablepath: ::core::mem::ManuallyDrop, ppmigrationtable: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetMigrationTable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmigrationtablepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppmigrationtable: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetMigrationTable: usize, #[cfg(feature = "Win32_System_Com")] pub CreateMigrationTable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppmigrationtable: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] CreateMigrationTable: usize, - #[cfg(feature = "Win32_Foundation")] - pub InitializeReporting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstradmpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeReporting: usize, + pub InitializeReporting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstradmpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_GroupPolicy\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -732,53 +700,35 @@ pub struct IGPM_Vtbl { pub struct IGPM2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IGPM2 { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetDomain<'a, P0, P1>(&self, bstrdomain: P0, bstrdomaincontroller: P1, ldcflags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetDomain(&self, bstrdomain: &::windows::core::BSTR, bstrdomaincontroller: &::windows::core::BSTR, ldcflags: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetDomain)(::windows::core::Interface::as_raw(self), bstrdomain.into().abi(), bstrdomaincontroller.into().abi(), ldcflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetDomain)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdomain), ::core::mem::transmute_copy(bstrdomaincontroller), ldcflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetBackupDir<'a, P0>(&self, bstrbackupdir: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetBackupDir(&self, bstrbackupdir: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetBackupDir)(::windows::core::Interface::as_raw(self), bstrbackupdir.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetBackupDir)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrbackupdir), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetSitesContainer<'a, P0, P1, P2>(&self, bstrforest: P0, bstrdomain: P1, bstrdomaincontroller: P2, ldcflags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetSitesContainer(&self, bstrforest: &::windows::core::BSTR, bstrdomain: &::windows::core::BSTR, bstrdomaincontroller: &::windows::core::BSTR, ldcflags: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetSitesContainer)(::windows::core::Interface::as_raw(self), bstrforest.into().abi(), bstrdomain.into().abi(), bstrdomaincontroller.into().abi(), ldcflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetSitesContainer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrforest), ::core::mem::transmute_copy(bstrdomain), ::core::mem::transmute_copy(bstrdomaincontroller), ldcflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetRSOP<'a, P0>(&self, gpmrsopmode: GPMRSOPMode, bstrnamespace: P0, lflags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetRSOP(&self, gpmrsopmode: GPMRSOPMode, bstrnamespace: &::windows::core::BSTR, lflags: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetRSOP)(::windows::core::Interface::as_raw(self), gpmrsopmode, bstrnamespace.into().abi(), lflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetRSOP)(::windows::core::Interface::as_raw(self), gpmrsopmode, ::core::mem::transmute_copy(bstrnamespace), lflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreatePermission<'a, P0>(&self, bstrtrustee: P0, perm: GPMPermissionType, binheritable: i16) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreatePermission(&self, bstrtrustee: &::windows::core::BSTR, perm: GPMPermissionType, binheritable: i16) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CreatePermission)(::windows::core::Interface::as_raw(self), bstrtrustee.into().abi(), perm, binheritable, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CreatePermission)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtrustee), perm, binheritable, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -786,14 +736,11 @@ impl IGPM2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.CreateSearchCriteria)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateTrustee<'a, P0>(&self, bstrtrustee: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateTrustee(&self, bstrtrustee: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CreateTrustee)(::windows::core::Interface::as_raw(self), bstrtrustee.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CreateTrustee)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtrustee), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -807,14 +754,11 @@ impl IGPM2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetConstants)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetMigrationTable<'a, P0>(&self, bstrmigrationtablepath: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetMigrationTable(&self, bstrmigrationtablepath: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetMigrationTable)(::windows::core::Interface::as_raw(self), bstrmigrationtablepath.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetMigrationTable)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrmigrationtablepath), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -822,30 +766,17 @@ impl IGPM2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.CreateMigrationTable)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeReporting<'a, P0>(&self, bstradmpath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InitializeReporting)(::windows::core::Interface::as_raw(self), bstradmpath.into().abi()).ok() + pub unsafe fn InitializeReporting(&self, bstradmpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InitializeReporting)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstradmpath)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetBackupDirEx<'a, P0>(&self, bstrbackupdir: P0, backupdirtype: GPMBackupType) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetBackupDirEx(&self, bstrbackupdir: &::windows::core::BSTR, backupdirtype: GPMBackupType) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetBackupDirEx)(::windows::core::Interface::as_raw(self), bstrbackupdir.into().abi(), backupdirtype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetBackupDirEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrbackupdir), backupdirtype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitializeReportingEx<'a, P0>(&self, bstradmpath: P0, reportingoptions: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InitializeReportingEx)(::windows::core::Interface::as_raw(self), bstradmpath.into().abi(), reportingoptions).ok() + pub unsafe fn InitializeReportingEx(&self, bstradmpath: &::windows::core::BSTR, reportingoptions: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InitializeReportingEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstradmpath), reportingoptions).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -932,14 +863,11 @@ unsafe impl ::windows::core::Interface for IGPM2 { #[doc(hidden)] pub struct IGPM2_Vtbl { pub base__: IGPM_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetBackupDirEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrbackupdir: ::core::mem::ManuallyDrop, backupdirtype: GPMBackupType, ppigpmbackupdirex: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetBackupDirEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrbackupdir: ::core::mem::ManuallyDrop<::windows::core::BSTR>, backupdirtype: GPMBackupType, ppigpmbackupdirex: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetBackupDirEx: usize, - #[cfg(feature = "Win32_Foundation")] - pub InitializeReportingEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstradmpath: ::core::mem::ManuallyDrop, reportingoptions: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitializeReportingEx: usize, + pub InitializeReportingEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstradmpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, reportingoptions: i32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_GroupPolicy\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1111,45 +1039,33 @@ pub struct IGPMAsyncProgress_Vtbl { pub struct IGPMBackup(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IGPMBackup { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ID(&self) -> ::windows::core::Result { + pub unsafe fn ID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GPOID(&self) -> ::windows::core::Result { + pub unsafe fn GPOID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GPOID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GPOID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GPODomain(&self) -> ::windows::core::Result { + pub unsafe fn GPODomain(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GPODomain)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GPODomain)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GPODisplayName(&self) -> ::windows::core::Result { + pub unsafe fn GPODisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GPODisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GPODisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Timestamp(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Timestamp)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Comment(&self) -> ::windows::core::Result { + pub unsafe fn Comment(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Comment)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Comment)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BackupDir(&self) -> ::windows::core::Result { + pub unsafe fn BackupDir(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).BackupDir)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).BackupDir)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Delete)(::windows::core::Interface::as_raw(self)).ok() @@ -1159,14 +1075,11 @@ impl IGPMBackup { pub unsafe fn GenerateReport(&self, gpmreporttype: GPMReportType, pvargpmprogress: &super::Com::VARIANT, pvargpmcancel: &mut super::Com::VARIANT, ppigpmresult: &mut ::core::option::Option) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GenerateReport)(::windows::core::Interface::as_raw(self), gpmreporttype, ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GenerateReportToFile<'a, P0>(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GenerateReportToFile(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GenerateReportToFile)(::windows::core::Interface::as_raw(self), gpmreporttype, bstrtargetfilepath.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GenerateReportToFile)(::windows::core::Interface::as_raw(self), gpmreporttype, ::core::mem::transmute_copy(bstrtargetfilepath), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1235,39 +1148,21 @@ unsafe impl ::windows::core::Interface for IGPMBackup { #[doc(hidden)] pub struct IGPMBackup_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub ID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ID: usize, - #[cfg(feature = "Win32_Foundation")] - pub GPOID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GPOID: usize, - #[cfg(feature = "Win32_Foundation")] - pub GPODomain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GPODomain: usize, - #[cfg(feature = "Win32_Foundation")] - pub GPODisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GPODisplayName: usize, + pub ID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GPOID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GPODomain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GPODisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Timestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Comment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Comment: usize, - #[cfg(feature = "Win32_Foundation")] - pub BackupDir: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BackupDir: usize, + pub Comment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub BackupDir: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub GenerateReport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, gpmreporttype: GPMReportType, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GenerateReport: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GenerateReportToFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, gpmreporttype: GPMReportType, bstrtargetfilepath: ::core::mem::ManuallyDrop, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GenerateReportToFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, gpmreporttype: GPMReportType, bstrtargetfilepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GenerateReportToFile: usize, } #[doc = "*Required features: `\"Win32_System_GroupPolicy\"`, `\"Win32_System_Com\"`*"] @@ -1375,20 +1270,15 @@ pub struct IGPMBackupCollection_Vtbl { pub struct IGPMBackupDir(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IGPMBackupDir { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BackupDirectory(&self) -> ::windows::core::Result { + pub unsafe fn BackupDirectory(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).BackupDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).BackupDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetBackup<'a, P0>(&self, bstrid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetBackup(&self, bstrid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetBackup)(::windows::core::Interface::as_raw(self), bstrid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetBackup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1466,13 +1356,10 @@ unsafe impl ::windows::core::Interface for IGPMBackupDir { #[doc(hidden)] pub struct IGPMBackupDir_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub BackupDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BackupDirectory: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetBackup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrid: ::core::mem::ManuallyDrop, ppbackup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub BackupDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub GetBackup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppbackup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetBackup: usize, #[cfg(feature = "Win32_System_Com")] pub SearchBackups: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pigpmsearchcriteria: *mut ::core::ffi::c_void, ppigpmbackupcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -1485,11 +1372,9 @@ pub struct IGPMBackupDir_Vtbl { pub struct IGPMBackupDirEx(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IGPMBackupDirEx { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BackupDir(&self) -> ::windows::core::Result { + pub unsafe fn BackupDir(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).BackupDir)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).BackupDir)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn BackupType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1497,12 +1382,9 @@ impl IGPMBackupDirEx { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetBackup<'a, P0>(&self, bstrid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetBackup(&self, bstrid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetBackup)(::windows::core::Interface::as_raw(self), bstrid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetBackup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -1580,13 +1462,10 @@ unsafe impl ::windows::core::Interface for IGPMBackupDirEx { #[doc(hidden)] pub struct IGPMBackupDirEx_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub BackupDir: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbackupdir: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BackupDir: usize, + pub BackupDir: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbackupdir: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub BackupType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pgpmbackuptype: *mut GPMBackupType) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetBackup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrid: ::core::mem::ManuallyDrop, pvarbackup: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetBackup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarbackup: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetBackup: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -1699,17 +1578,13 @@ pub struct IGPMCSECollection_Vtbl { pub struct IGPMClientSideExtension(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IGPMClientSideExtension { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ID(&self) -> ::windows::core::Result { + pub unsafe fn ID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisplayName(&self) -> ::windows::core::Result { + pub unsafe fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn IsUserEnabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1786,14 +1661,8 @@ unsafe impl ::windows::core::Interface for IGPMClientSideExtension { #[doc(hidden)] pub struct IGPMClientSideExtension_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub ID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ID: usize, - #[cfg(feature = "Win32_Foundation")] - pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DisplayName: usize, + pub ID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub IsUserEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvbenabled: *mut i16) -> ::windows::core::HRESULT, pub IsComputerEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvbenabled: *mut i16) -> ::windows::core::HRESULT, } @@ -2584,17 +2453,13 @@ pub struct IGPMConstants2_Vtbl { pub struct IGPMDomain(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IGPMDomain { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DomainController(&self) -> ::windows::core::Result { + pub unsafe fn DomainController(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DomainController)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DomainController)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Domain(&self) -> ::windows::core::Result { + pub unsafe fn Domain(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Domain)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Domain)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2602,14 +2467,11 @@ impl IGPMDomain { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CreateGPO)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetGPO<'a, P0>(&self, bstrguid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetGPO(&self, bstrguid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetGPO)(::windows::core::Interface::as_raw(self), bstrguid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetGPO)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrguid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2628,14 +2490,11 @@ impl IGPMDomain { { (::windows::core::Interface::vtable(self).RestoreGPO)(::windows::core::Interface::as_raw(self), pigpmbackup.into().abi(), ldcflags, ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetSOM<'a, P0>(&self, bstrpath: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetSOM(&self, bstrpath: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetSOM)(::windows::core::Interface::as_raw(self), bstrpath.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetSOM)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpath), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2646,14 +2505,11 @@ impl IGPMDomain { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).SearchSOMs)(::windows::core::Interface::as_raw(self), pigpmsearchcriteria.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetWMIFilter<'a, P0>(&self, bstrpath: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetWMIFilter(&self, bstrpath: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetWMIFilter)(::windows::core::Interface::as_raw(self), bstrpath.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetWMIFilter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpath), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2731,21 +2587,15 @@ unsafe impl ::windows::core::Interface for IGPMDomain { #[doc(hidden)] pub struct IGPMDomain_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub DomainController: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DomainController: usize, - #[cfg(feature = "Win32_Foundation")] - pub Domain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Domain: usize, + pub DomainController: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Domain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub CreateGPO: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppnewgpo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] CreateGPO: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetGPO: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrguid: ::core::mem::ManuallyDrop, ppgpo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetGPO: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppgpo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetGPO: usize, #[cfg(feature = "Win32_System_Com")] pub SearchGPOs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pigpmsearchcriteria: *mut ::core::ffi::c_void, ppigpmgpocollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -2755,17 +2605,17 @@ pub struct IGPMDomain_Vtbl { pub RestoreGPO: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pigpmbackup: *mut ::core::ffi::c_void, ldcflags: i32, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] RestoreGPO: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetSOM: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpath: ::core::mem::ManuallyDrop, ppsom: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetSOM: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppsom: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetSOM: usize, #[cfg(feature = "Win32_System_Com")] pub SearchSOMs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pigpmsearchcriteria: *mut ::core::ffi::c_void, ppigpmsomcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] SearchSOMs: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetWMIFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpath: ::core::mem::ManuallyDrop, ppwmifilter: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetWMIFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppwmifilter: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetWMIFilter: usize, #[cfg(feature = "Win32_System_Com")] pub SearchWMIFilters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pigpmsearchcriteria: *mut ::core::ffi::c_void, ppigpmwmifiltercollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -2778,17 +2628,13 @@ pub struct IGPMDomain_Vtbl { pub struct IGPMDomain2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IGPMDomain2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DomainController(&self) -> ::windows::core::Result { + pub unsafe fn DomainController(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.DomainController)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.DomainController)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Domain(&self) -> ::windows::core::Result { + pub unsafe fn Domain(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Domain)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Domain)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2796,14 +2642,11 @@ impl IGPMDomain2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.CreateGPO)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetGPO<'a, P0>(&self, bstrguid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetGPO(&self, bstrguid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetGPO)(::windows::core::Interface::as_raw(self), bstrguid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetGPO)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrguid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2822,14 +2665,11 @@ impl IGPMDomain2 { { (::windows::core::Interface::vtable(self).base__.RestoreGPO)(::windows::core::Interface::as_raw(self), pigpmbackup.into().abi(), ldcflags, ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetSOM<'a, P0>(&self, bstrpath: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetSOM(&self, bstrpath: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetSOM)(::windows::core::Interface::as_raw(self), bstrpath.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetSOM)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpath), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2840,14 +2680,11 @@ impl IGPMDomain2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.SearchSOMs)(::windows::core::Interface::as_raw(self), pigpmsearchcriteria.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetWMIFilter<'a, P0>(&self, bstrpath: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetWMIFilter(&self, bstrpath: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetWMIFilter)(::windows::core::Interface::as_raw(self), bstrpath.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetWMIFilter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpath), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2873,14 +2710,11 @@ impl IGPMDomain2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CreateGPOFromStarterGPO)(::windows::core::Interface::as_raw(self), pgpotemplate.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetStarterGPO<'a, P0>(&self, bstrguid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetStarterGPO(&self, bstrguid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetStarterGPO)(::windows::core::Interface::as_raw(self), bstrguid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetStarterGPO)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrguid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2893,11 +2727,8 @@ impl IGPMDomain2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn LoadStarterGPO<'a, P0>(&self, bstrloadfile: P0, boverwrite: i16, pvargpmprogress: &super::Com::VARIANT, pvargpmcancel: &mut super::Com::VARIANT, ppigpmresult: &mut ::core::option::Option) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).LoadStarterGPO)(::windows::core::Interface::as_raw(self), bstrloadfile.into().abi(), boverwrite, ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() + pub unsafe fn LoadStarterGPO(&self, bstrloadfile: &::windows::core::BSTR, boverwrite: i16, pvargpmprogress: &super::Com::VARIANT, pvargpmcancel: &mut super::Com::VARIANT, ppigpmresult: &mut ::core::option::Option) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).LoadStarterGPO)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrloadfile), boverwrite, ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3000,16 +2831,16 @@ pub struct IGPMDomain2_Vtbl { pub CreateGPOFromStarterGPO: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pgpotemplate: *mut ::core::ffi::c_void, ppnewgpo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] CreateGPOFromStarterGPO: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetStarterGPO: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrguid: ::core::mem::ManuallyDrop, pptemplate: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetStarterGPO: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pptemplate: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetStarterGPO: usize, #[cfg(feature = "Win32_System_Com")] pub SearchStarterGPOs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pigpmsearchcriteria: *mut ::core::ffi::c_void, ppigpmtemplatecollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] SearchStarterGPOs: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub LoadStarterGPO: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrloadfile: ::core::mem::ManuallyDrop, boverwrite: i16, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub LoadStarterGPO: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrloadfile: ::core::mem::ManuallyDrop<::windows::core::BSTR>, boverwrite: i16, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] LoadStarterGPO: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3023,17 +2854,13 @@ pub struct IGPMDomain2_Vtbl { pub struct IGPMDomain3(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IGPMDomain3 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DomainController(&self) -> ::windows::core::Result { + pub unsafe fn DomainController(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.DomainController)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.DomainController)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Domain(&self) -> ::windows::core::Result { + pub unsafe fn Domain(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Domain)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Domain)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3041,14 +2868,11 @@ impl IGPMDomain3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.CreateGPO)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetGPO<'a, P0>(&self, bstrguid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetGPO(&self, bstrguid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetGPO)(::windows::core::Interface::as_raw(self), bstrguid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetGPO)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrguid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3067,14 +2891,11 @@ impl IGPMDomain3 { { (::windows::core::Interface::vtable(self).base__.base__.RestoreGPO)(::windows::core::Interface::as_raw(self), pigpmbackup.into().abi(), ldcflags, ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetSOM<'a, P0>(&self, bstrpath: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetSOM(&self, bstrpath: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetSOM)(::windows::core::Interface::as_raw(self), bstrpath.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetSOM)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpath), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3085,14 +2906,11 @@ impl IGPMDomain3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.SearchSOMs)(::windows::core::Interface::as_raw(self), pigpmsearchcriteria.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetWMIFilter<'a, P0>(&self, bstrpath: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetWMIFilter(&self, bstrpath: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetWMIFilter)(::windows::core::Interface::as_raw(self), bstrpath.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetWMIFilter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpath), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3118,14 +2936,11 @@ impl IGPMDomain3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.CreateGPOFromStarterGPO)(::windows::core::Interface::as_raw(self), pgpotemplate.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetStarterGPO<'a, P0>(&self, bstrguid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetStarterGPO(&self, bstrguid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetStarterGPO)(::windows::core::Interface::as_raw(self), bstrguid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetStarterGPO)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrguid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3138,11 +2953,8 @@ impl IGPMDomain3 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn LoadStarterGPO<'a, P0>(&self, bstrloadfile: P0, boverwrite: i16, pvargpmprogress: &super::Com::VARIANT, pvargpmcancel: &mut super::Com::VARIANT, ppigpmresult: &mut ::core::option::Option) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.LoadStarterGPO)(::windows::core::Interface::as_raw(self), bstrloadfile.into().abi(), boverwrite, ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() + pub unsafe fn LoadStarterGPO(&self, bstrloadfile: &::windows::core::BSTR, boverwrite: i16, pvargpmprogress: &super::Com::VARIANT, pvargpmcancel: &mut super::Com::VARIANT, ppigpmresult: &mut ::core::option::Option) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.LoadStarterGPO)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrloadfile), boverwrite, ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3157,19 +2969,12 @@ impl IGPMDomain3 { pub unsafe fn GenerateReport(&self, gpmreporttype: GPMReportType, pvargpmprogress: &super::Com::VARIANT, pvargpmcancel: &mut super::Com::VARIANT, ppigpmresult: &mut ::core::option::Option) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GenerateReport)(::windows::core::Interface::as_raw(self), gpmreporttype, ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InfrastructureDC(&self) -> ::windows::core::Result { + pub unsafe fn InfrastructureDC(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).InfrastructureDC)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).InfrastructureDC)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetInfrastructureDC<'a, P0>(&self, newval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetInfrastructureDC)(::windows::core::Interface::as_raw(self), newval.into().abi()).ok() + pub unsafe fn SetInfrastructureDC(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetInfrastructureDC)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(newval)).ok() } pub unsafe fn SetInfrastructureFlags(&self, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetInfrastructureFlags)(::windows::core::Interface::as_raw(self), dwflags).ok() @@ -3281,14 +3086,8 @@ pub struct IGPMDomain3_Vtbl { pub GenerateReport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, gpmreporttype: GPMReportType, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GenerateReport: usize, - #[cfg(feature = "Win32_Foundation")] - pub InfrastructureDC: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InfrastructureDC: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetInfrastructureDC: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetInfrastructureDC: usize, + pub InfrastructureDC: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetInfrastructureDC: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetInfrastructureFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_GroupPolicy\"`, `\"Win32_System_Com\"`*"] @@ -3297,37 +3096,24 @@ pub struct IGPMDomain3_Vtbl { pub struct IGPMGPO(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IGPMGPO { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisplayName(&self) -> ::windows::core::Result { + pub unsafe fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDisplayName<'a, P0>(&self, newval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDisplayName)(::windows::core::Interface::as_raw(self), newval.into().abi()).ok() + pub unsafe fn SetDisplayName(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(newval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Path(&self) -> ::windows::core::Result { + pub unsafe fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ID(&self) -> ::windows::core::Result { + pub unsafe fn ID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DomainName(&self) -> ::windows::core::Result { + pub unsafe fn DomainName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DomainName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DomainName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CreationTime(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3400,12 +3186,8 @@ impl IGPMGPO { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Backup<'a, P0, P1>(&self, bstrbackupdir: P0, bstrcomment: P1, pvargpmprogress: &super::Com::VARIANT, pvargpmcancel: &mut super::Com::VARIANT, ppigpmresult: &mut ::core::option::Option) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Backup)(::windows::core::Interface::as_raw(self), bstrbackupdir.into().abi(), bstrcomment.into().abi(), ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() + pub unsafe fn Backup(&self, bstrbackupdir: &::windows::core::BSTR, bstrcomment: &::windows::core::BSTR, pvargpmprogress: &super::Com::VARIANT, pvargpmcancel: &mut super::Com::VARIANT, ppigpmresult: &mut ::core::option::Option) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Backup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrbackupdir), ::core::mem::transmute_copy(bstrcomment), ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3420,14 +3202,11 @@ impl IGPMGPO { pub unsafe fn GenerateReport(&self, gpmreporttype: GPMReportType, pvargpmprogress: &super::Com::VARIANT, pvargpmcancel: &mut super::Com::VARIANT, ppigpmresult: &mut ::core::option::Option) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GenerateReport)(::windows::core::Interface::as_raw(self), gpmreporttype, ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GenerateReportToFile<'a, P0>(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GenerateReportToFile(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GenerateReportToFile)(::windows::core::Interface::as_raw(self), gpmreporttype, bstrtargetfilepath.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GenerateReportToFile)(::windows::core::Interface::as_raw(self), gpmreporttype, ::core::mem::transmute_copy(bstrtargetfilepath), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3525,26 +3304,11 @@ unsafe impl ::windows::core::Interface for IGPMGPO { #[doc(hidden)] pub struct IGPMGPO_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DisplayName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDisplayName: usize, - #[cfg(feature = "Win32_Foundation")] - pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Path: usize, - #[cfg(feature = "Win32_Foundation")] - pub ID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ID: usize, - #[cfg(feature = "Win32_Foundation")] - pub DomainName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DomainName: usize, + pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DomainName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub CreationTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdate: *mut f64) -> ::windows::core::HRESULT, pub ModificationTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdate: *mut f64) -> ::windows::core::HRESULT, pub UserDSVersionNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows::core::HRESULT, @@ -3573,7 +3337,7 @@ pub struct IGPMGPO_Vtbl { SetSecurityInfo: usize, pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub Backup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrbackupdir: ::core::mem::ManuallyDrop, bstrcomment: ::core::mem::ManuallyDrop, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub Backup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrbackupdir: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrcomment: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Backup: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3584,9 +3348,9 @@ pub struct IGPMGPO_Vtbl { pub GenerateReport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, gpmreporttype: GPMReportType, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GenerateReport: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GenerateReportToFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, gpmreporttype: GPMReportType, bstrtargetfilepath: ::core::mem::ManuallyDrop, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GenerateReportToFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, gpmreporttype: GPMReportType, bstrtargetfilepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GenerateReportToFile: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub CopyTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, pigpmdomain: *mut ::core::ffi::c_void, pvarnewdisplayname: *const super::Com::VARIANT, pvarmigrationtable: *const super::Com::VARIANT, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -3609,37 +3373,24 @@ pub struct IGPMGPO_Vtbl { pub struct IGPMGPO2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IGPMGPO2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisplayName(&self) -> ::windows::core::Result { + pub unsafe fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDisplayName<'a, P0>(&self, newval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetDisplayName)(::windows::core::Interface::as_raw(self), newval.into().abi()).ok() + pub unsafe fn SetDisplayName(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(newval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Path(&self) -> ::windows::core::Result { + pub unsafe fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ID(&self) -> ::windows::core::Result { + pub unsafe fn ID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DomainName(&self) -> ::windows::core::Result { + pub unsafe fn DomainName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.DomainName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.DomainName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CreationTime(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3712,12 +3463,8 @@ impl IGPMGPO2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Backup<'a, P0, P1>(&self, bstrbackupdir: P0, bstrcomment: P1, pvargpmprogress: &super::Com::VARIANT, pvargpmcancel: &mut super::Com::VARIANT, ppigpmresult: &mut ::core::option::Option) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.Backup)(::windows::core::Interface::as_raw(self), bstrbackupdir.into().abi(), bstrcomment.into().abi(), ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() + pub unsafe fn Backup(&self, bstrbackupdir: &::windows::core::BSTR, bstrcomment: &::windows::core::BSTR, pvargpmprogress: &super::Com::VARIANT, pvargpmcancel: &mut super::Com::VARIANT, ppigpmresult: &mut ::core::option::Option) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.Backup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrbackupdir), ::core::mem::transmute_copy(bstrcomment), ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3732,14 +3479,11 @@ impl IGPMGPO2 { pub unsafe fn GenerateReport(&self, gpmreporttype: GPMReportType, pvargpmprogress: &super::Com::VARIANT, pvargpmcancel: &mut super::Com::VARIANT, ppigpmresult: &mut ::core::option::Option) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GenerateReport)(::windows::core::Interface::as_raw(self), gpmreporttype, ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GenerateReportToFile<'a, P0>(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GenerateReportToFile(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GenerateReportToFile)(::windows::core::Interface::as_raw(self), gpmreporttype, bstrtargetfilepath.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GenerateReportToFile)(::windows::core::Interface::as_raw(self), gpmreporttype, ::core::mem::transmute_copy(bstrtargetfilepath), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3770,19 +3514,12 @@ impl IGPMGPO2 { pub unsafe fn MakeACLConsistent(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.MakeACLConsistent)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, newval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), newval.into().abi()).ok() + pub unsafe fn SetDescription(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(newval)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3869,14 +3606,8 @@ unsafe impl ::windows::core::Interface for IGPMGPO2 { #[doc(hidden)] pub struct IGPMGPO2_Vtbl { pub base__: IGPMGPO_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDescription: usize, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_GroupPolicy\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3884,37 +3615,24 @@ pub struct IGPMGPO2_Vtbl { pub struct IGPMGPO3(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IGPMGPO3 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisplayName(&self) -> ::windows::core::Result { + pub unsafe fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDisplayName<'a, P0>(&self, newval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetDisplayName)(::windows::core::Interface::as_raw(self), newval.into().abi()).ok() + pub unsafe fn SetDisplayName(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(newval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Path(&self) -> ::windows::core::Result { + pub unsafe fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ID(&self) -> ::windows::core::Result { + pub unsafe fn ID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.ID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.ID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DomainName(&self) -> ::windows::core::Result { + pub unsafe fn DomainName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.DomainName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.DomainName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CreationTime(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3987,12 +3705,8 @@ impl IGPMGPO3 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Backup<'a, P0, P1>(&self, bstrbackupdir: P0, bstrcomment: P1, pvargpmprogress: &super::Com::VARIANT, pvargpmcancel: &mut super::Com::VARIANT, ppigpmresult: &mut ::core::option::Option) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.Backup)(::windows::core::Interface::as_raw(self), bstrbackupdir.into().abi(), bstrcomment.into().abi(), ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() + pub unsafe fn Backup(&self, bstrbackupdir: &::windows::core::BSTR, bstrcomment: &::windows::core::BSTR, pvargpmprogress: &super::Com::VARIANT, pvargpmcancel: &mut super::Com::VARIANT, ppigpmresult: &mut ::core::option::Option) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.Backup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrbackupdir), ::core::mem::transmute_copy(bstrcomment), ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -4007,14 +3721,11 @@ impl IGPMGPO3 { pub unsafe fn GenerateReport(&self, gpmreporttype: GPMReportType, pvargpmprogress: &super::Com::VARIANT, pvargpmcancel: &mut super::Com::VARIANT, ppigpmresult: &mut ::core::option::Option) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.GenerateReport)(::windows::core::Interface::as_raw(self), gpmreporttype, ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GenerateReportToFile<'a, P0>(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GenerateReportToFile(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GenerateReportToFile)(::windows::core::Interface::as_raw(self), gpmreporttype, bstrtargetfilepath.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GenerateReportToFile)(::windows::core::Interface::as_raw(self), gpmreporttype, ::core::mem::transmute_copy(bstrtargetfilepath), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -4045,33 +3756,19 @@ impl IGPMGPO3 { pub unsafe fn MakeACLConsistent(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.MakeACLConsistent)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, newval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), newval.into().abi()).ok() + pub unsafe fn SetDescription(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(newval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InfrastructureDC(&self) -> ::windows::core::Result { + pub unsafe fn InfrastructureDC(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).InfrastructureDC)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).InfrastructureDC)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetInfrastructureDC<'a, P0>(&self, newval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetInfrastructureDC)(::windows::core::Interface::as_raw(self), newval.into().abi()).ok() + pub unsafe fn SetInfrastructureDC(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetInfrastructureDC)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(newval)).ok() } pub unsafe fn SetInfrastructureFlags(&self, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetInfrastructureFlags)(::windows::core::Interface::as_raw(self), dwflags).ok() @@ -4179,14 +3876,8 @@ unsafe impl ::windows::core::Interface for IGPMGPO3 { #[doc(hidden)] pub struct IGPMGPO3_Vtbl { pub base__: IGPMGPO2_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub InfrastructureDC: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InfrastructureDC: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetInfrastructureDC: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetInfrastructureDC: usize, + pub InfrastructureDC: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetInfrastructureDC: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetInfrastructureFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_GroupPolicy\"`, `\"Win32_System_Com\"`*"] @@ -4294,17 +3985,13 @@ pub struct IGPMGPOCollection_Vtbl { pub struct IGPMGPOLink(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IGPMGPOLink { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GPOID(&self) -> ::windows::core::Result { + pub unsafe fn GPOID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GPOID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GPOID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GPODomain(&self) -> ::windows::core::Result { + pub unsafe fn GPODomain(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GPODomain)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GPODomain)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Enabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4400,14 +4087,8 @@ unsafe impl ::windows::core::Interface for IGPMGPOLink { #[doc(hidden)] pub struct IGPMGPOLink_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub GPOID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GPOID: usize, - #[cfg(feature = "Win32_Foundation")] - pub GPODomain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GPODomain: usize, + pub GPOID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GPODomain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Enabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i16) -> ::windows::core::HRESULT, pub SetEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: i16) -> ::windows::core::HRESULT, pub Enforced: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i16) -> ::windows::core::HRESULT, @@ -4524,17 +4205,13 @@ pub struct IGPMGPOLinksCollection_Vtbl { pub struct IGPMMapEntry(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IGPMMapEntry { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Source(&self) -> ::windows::core::Result { + pub unsafe fn Source(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Source)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Source)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Destination(&self) -> ::windows::core::Result { + pub unsafe fn Destination(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Destination)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Destination)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn DestinationOption(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4611,14 +4288,8 @@ unsafe impl ::windows::core::Interface for IGPMMapEntry { #[doc(hidden)] pub struct IGPMMapEntry_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Source: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsource: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Source: usize, - #[cfg(feature = "Win32_Foundation")] - pub Destination: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdestination: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Destination: usize, + pub Source: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsource: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Destination: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdestination: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub DestinationOption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pgpmdestoption: *mut GPMDestinationOption) -> ::windows::core::HRESULT, pub EntryType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pgpmentrytype: *mut GPMEntryType) -> ::windows::core::HRESULT, } @@ -4727,13 +4398,8 @@ pub struct IGPMMapEntryCollection_Vtbl { pub struct IGPMMigrationTable(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IGPMMigrationTable { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Save<'a, P0>(&self, bstrmigrationtablepath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Save)(::windows::core::Interface::as_raw(self), bstrmigrationtablepath.into().abi()).ok() + pub unsafe fn Save(&self, bstrmigrationtablepath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Save)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrmigrationtablepath)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -4745,38 +4411,24 @@ impl IGPMMigrationTable { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddEntry<'a, P0>(&self, bstrsource: P0, gpmentrytype: GPMEntryType, pvardestination: &super::Com::VARIANT) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn AddEntry(&self, bstrsource: &::windows::core::BSTR, gpmentrytype: GPMEntryType, pvardestination: &super::Com::VARIANT) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AddEntry)(::windows::core::Interface::as_raw(self), bstrsource.into().abi(), gpmentrytype, ::core::mem::transmute(pvardestination), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AddEntry)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsource), gpmentrytype, ::core::mem::transmute(pvardestination), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetEntry<'a, P0>(&self, bstrsource: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetEntry(&self, bstrsource: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetEntry)(::windows::core::Interface::as_raw(self), bstrsource.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetEntry)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsource), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeleteEntry<'a, P0>(&self, bstrsource: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DeleteEntry)(::windows::core::Interface::as_raw(self), bstrsource.into().abi()).ok() + pub unsafe fn DeleteEntry(&self, bstrsource: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DeleteEntry)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsource)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn UpdateDestination<'a, P0>(&self, bstrsource: P0, pvardestination: &super::Com::VARIANT) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn UpdateDestination(&self, bstrsource: &::windows::core::BSTR, pvardestination: &super::Com::VARIANT) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UpdateDestination)(::windows::core::Interface::as_raw(self), bstrsource.into().abi(), ::core::mem::transmute(pvardestination), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UpdateDestination)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsource), ::core::mem::transmute(pvardestination), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4857,28 +4509,22 @@ unsafe impl ::windows::core::Interface for IGPMMigrationTable { #[doc(hidden)] pub struct IGPMMigrationTable_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Save: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmigrationtablepath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Save: usize, + pub Save: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmigrationtablepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, var: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Add: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddEntry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsource: ::core::mem::ManuallyDrop, gpmentrytype: GPMEntryType, pvardestination: *const super::Com::VARIANT, ppentry: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub AddEntry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsource: ::core::mem::ManuallyDrop<::windows::core::BSTR>, gpmentrytype: GPMEntryType, pvardestination: *const super::Com::VARIANT, ppentry: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddEntry: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetEntry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsource: ::core::mem::ManuallyDrop, ppentry: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetEntry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsource: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppentry: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetEntry: usize, - #[cfg(feature = "Win32_Foundation")] - pub DeleteEntry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsource: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeleteEntry: usize, + pub DeleteEntry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsource: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub UpdateDestination: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsource: ::core::mem::ManuallyDrop, pvardestination: *const super::Com::VARIANT, ppentry: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub UpdateDestination: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsource: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvardestination: *const super::Com::VARIANT, ppentry: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] UpdateDestination: usize, #[cfg(feature = "Win32_System_Com")] @@ -5004,39 +4650,23 @@ impl IGPMRSOP { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Mode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Namespace(&self) -> ::windows::core::Result { + pub unsafe fn Namespace(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Namespace)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Namespace)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLoggingComputer<'a, P0>(&self, bstrval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetLoggingComputer)(::windows::core::Interface::as_raw(self), bstrval.into().abi()).ok() + pub unsafe fn SetLoggingComputer(&self, bstrval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetLoggingComputer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LoggingComputer(&self) -> ::windows::core::Result { + pub unsafe fn LoggingComputer(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LoggingComputer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LoggingComputer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLoggingUser<'a, P0>(&self, bstrval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetLoggingUser)(::windows::core::Interface::as_raw(self), bstrval.into().abi()).ok() + pub unsafe fn SetLoggingUser(&self, bstrval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetLoggingUser)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LoggingUser(&self) -> ::windows::core::Result { + pub unsafe fn LoggingUser(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LoggingUser)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LoggingUser)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetLoggingFlags(&self, lval: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetLoggingFlags)(::windows::core::Interface::as_raw(self), lval).ok() @@ -5052,61 +4682,33 @@ impl IGPMRSOP { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).PlanningFlags)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPlanningDomainController<'a, P0>(&self, bstrval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPlanningDomainController)(::windows::core::Interface::as_raw(self), bstrval.into().abi()).ok() + pub unsafe fn SetPlanningDomainController(&self, bstrval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPlanningDomainController)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PlanningDomainController(&self) -> ::windows::core::Result { + pub unsafe fn PlanningDomainController(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PlanningDomainController)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PlanningDomainController)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPlanningSiteName<'a, P0>(&self, bstrval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPlanningSiteName)(::windows::core::Interface::as_raw(self), bstrval.into().abi()).ok() + pub unsafe fn SetPlanningSiteName(&self, bstrval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPlanningSiteName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PlanningSiteName(&self) -> ::windows::core::Result { + pub unsafe fn PlanningSiteName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PlanningSiteName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PlanningSiteName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPlanningUser<'a, P0>(&self, bstrval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPlanningUser)(::windows::core::Interface::as_raw(self), bstrval.into().abi()).ok() + pub unsafe fn SetPlanningUser(&self, bstrval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPlanningUser)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PlanningUser(&self) -> ::windows::core::Result { + pub unsafe fn PlanningUser(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PlanningUser)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PlanningUser)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPlanningUserSOM<'a, P0>(&self, bstrval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPlanningUserSOM)(::windows::core::Interface::as_raw(self), bstrval.into().abi()).ok() + pub unsafe fn SetPlanningUserSOM(&self, bstrval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPlanningUserSOM)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PlanningUserSOM(&self) -> ::windows::core::Result { + pub unsafe fn PlanningUserSOM(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PlanningUserSOM)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PlanningUserSOM)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -5136,33 +4738,19 @@ impl IGPMRSOP { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).PlanningUserSecurityGroups)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPlanningComputer<'a, P0>(&self, bstrval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPlanningComputer)(::windows::core::Interface::as_raw(self), bstrval.into().abi()).ok() + pub unsafe fn SetPlanningComputer(&self, bstrval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPlanningComputer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PlanningComputer(&self) -> ::windows::core::Result { + pub unsafe fn PlanningComputer(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PlanningComputer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PlanningComputer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPlanningComputerSOM<'a, P0>(&self, bstrval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPlanningComputerSOM)(::windows::core::Interface::as_raw(self), bstrval.into().abi()).ok() + pub unsafe fn SetPlanningComputerSOM(&self, bstrval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPlanningComputerSOM)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PlanningComputerSOM(&self) -> ::windows::core::Result { + pub unsafe fn PlanningComputerSOM(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PlanningComputerSOM)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PlanningComputerSOM)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -5209,14 +4797,11 @@ impl IGPMRSOP { pub unsafe fn GenerateReport(&self, gpmreporttype: GPMReportType, pvargpmprogress: &super::Com::VARIANT, pvargpmcancel: &mut super::Com::VARIANT, ppigpmresult: &mut ::core::option::Option) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GenerateReport)(::windows::core::Interface::as_raw(self), gpmreporttype, ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GenerateReportToFile<'a, P0>(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GenerateReportToFile(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GenerateReportToFile)(::windows::core::Interface::as_raw(self), gpmreporttype, bstrtargetfilepath.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GenerateReportToFile)(::windows::core::Interface::as_raw(self), gpmreporttype, ::core::mem::transmute_copy(bstrtargetfilepath), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -5286,62 +4871,23 @@ unsafe impl ::windows::core::Interface for IGPMRSOP { pub struct IGPMRSOP_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub Mode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut GPMRSOPMode) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Namespace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Namespace: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetLoggingComputer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetLoggingComputer: usize, - #[cfg(feature = "Win32_Foundation")] - pub LoggingComputer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LoggingComputer: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetLoggingUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetLoggingUser: usize, - #[cfg(feature = "Win32_Foundation")] - pub LoggingUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LoggingUser: usize, + pub Namespace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetLoggingComputer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub LoggingComputer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetLoggingUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub LoggingUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetLoggingFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lval: i32) -> ::windows::core::HRESULT, pub LoggingFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lval: *mut i32) -> ::windows::core::HRESULT, pub SetPlanningFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lval: i32) -> ::windows::core::HRESULT, pub PlanningFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetPlanningDomainController: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPlanningDomainController: usize, - #[cfg(feature = "Win32_Foundation")] - pub PlanningDomainController: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PlanningDomainController: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPlanningSiteName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPlanningSiteName: usize, - #[cfg(feature = "Win32_Foundation")] - pub PlanningSiteName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PlanningSiteName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPlanningUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPlanningUser: usize, - #[cfg(feature = "Win32_Foundation")] - pub PlanningUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PlanningUser: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPlanningUserSOM: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPlanningUserSOM: usize, - #[cfg(feature = "Win32_Foundation")] - pub PlanningUserSOM: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PlanningUserSOM: usize, + pub SetPlanningDomainController: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub PlanningDomainController: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetPlanningSiteName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub PlanningSiteName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetPlanningUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub PlanningUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetPlanningUserSOM: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub PlanningUserSOM: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub SetPlanningUserWMIFilters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -5358,22 +4904,10 @@ pub struct IGPMRSOP_Vtbl { pub PlanningUserSecurityGroups: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varval: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] PlanningUserSecurityGroups: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPlanningComputer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPlanningComputer: usize, - #[cfg(feature = "Win32_Foundation")] - pub PlanningComputer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PlanningComputer: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPlanningComputerSOM: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPlanningComputerSOM: usize, - #[cfg(feature = "Win32_Foundation")] - pub PlanningComputerSOM: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PlanningComputerSOM: usize, + pub SetPlanningComputer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub PlanningComputer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetPlanningComputerSOM: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub PlanningComputerSOM: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub SetPlanningComputerWMIFilters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -5400,9 +4934,9 @@ pub struct IGPMRSOP_Vtbl { pub GenerateReport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, gpmreporttype: GPMReportType, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GenerateReport: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GenerateReportToFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, gpmreporttype: GPMReportType, bstrtargetfilepath: ::core::mem::ManuallyDrop, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GenerateReportToFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, gpmreporttype: GPMReportType, bstrtargetfilepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GenerateReportToFile: usize, } #[doc = "*Required features: `\"Win32_System_GroupPolicy\"`, `\"Win32_System_Com\"`*"] @@ -5516,17 +5050,13 @@ impl IGPMSOM { pub unsafe fn SetGPOInheritanceBlocked(&self, newval: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetGPOInheritanceBlocked)(::windows::core::Interface::as_raw(self), newval).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Path(&self) -> ::windows::core::Result { + pub unsafe fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5636,14 +5166,8 @@ pub struct IGPMSOM_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub GPOInheritanceBlocked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i16) -> ::windows::core::HRESULT, pub SetGPOInheritanceBlocked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Path: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub CreateGPOLink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, llinkpos: i32, pgpo: *mut ::core::ffi::c_void, ppnewgpolink: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -5889,13 +5413,8 @@ impl IGPMSecurityInfo { { (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), pperm.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoveTrustee<'a, P0>(&self, bstrtrustee: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).RemoveTrustee)(::windows::core::Interface::as_raw(self), bstrtrustee.into().abi()).ok() + pub unsafe fn RemoveTrustee(&self, bstrtrustee: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).RemoveTrustee)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrtrustee)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5981,10 +5500,7 @@ pub struct IGPMSecurityInfo_Vtbl { pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pperm: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Remove: usize, - #[cfg(feature = "Win32_Foundation")] - pub RemoveTrustee: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtrustee: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RemoveTrustee: usize, + pub RemoveTrustee: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrtrustee: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_GroupPolicy\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5992,32 +5508,23 @@ pub struct IGPMSecurityInfo_Vtbl { pub struct IGPMSitesContainer(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IGPMSitesContainer { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DomainController(&self) -> ::windows::core::Result { + pub unsafe fn DomainController(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DomainController)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DomainController)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Domain(&self) -> ::windows::core::Result { + pub unsafe fn Domain(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Domain)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Domain)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Forest(&self) -> ::windows::core::Result { + pub unsafe fn Forest(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Forest)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Forest)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetSite<'a, P0>(&self, bstrsitename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetSite(&self, bstrsitename: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetSite)(::windows::core::Interface::as_raw(self), bstrsitename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetSite)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsitename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6095,21 +5602,12 @@ unsafe impl ::windows::core::Interface for IGPMSitesContainer { #[doc(hidden)] pub struct IGPMSitesContainer_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub DomainController: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DomainController: usize, - #[cfg(feature = "Win32_Foundation")] - pub Domain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Domain: usize, - #[cfg(feature = "Win32_Foundation")] - pub Forest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Forest: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetSite: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsitename: ::core::mem::ManuallyDrop, ppsom: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub DomainController: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Domain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Forest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub GetSite: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsitename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppsom: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetSite: usize, #[cfg(feature = "Win32_System_Com")] pub SearchSites: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pigpmsearchcriteria: *mut ::core::ffi::c_void, ppigpmsomcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -6122,55 +5620,35 @@ pub struct IGPMSitesContainer_Vtbl { pub struct IGPMStarterGPO(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IGPMStarterGPO { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisplayName(&self) -> ::windows::core::Result { + pub unsafe fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDisplayName<'a, P0>(&self, newval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDisplayName)(::windows::core::Interface::as_raw(self), newval.into().abi()).ok() + pub unsafe fn SetDisplayName(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(newval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, newval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), newval.into().abi()).ok() + pub unsafe fn SetDescription(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(newval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Author(&self) -> ::windows::core::Result { + pub unsafe fn Author(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Author)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Author)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Product(&self) -> ::windows::core::Result { + pub unsafe fn Product(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Product)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Product)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CreationTime(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CreationTime)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ID(&self) -> ::windows::core::Result { + pub unsafe fn ID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn ModifiedTime(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6188,31 +5666,22 @@ impl IGPMStarterGPO { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).UserVersion)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StarterGPOVersion(&self) -> ::windows::core::Result { + pub unsafe fn StarterGPOVersion(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).StarterGPOVersion)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).StarterGPOVersion)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Delete)(::windows::core::Interface::as_raw(self)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Save<'a, P0>(&self, bstrsavefile: P0, boverwrite: i16, bsaveassystem: i16, bstrlanguage: &super::Com::VARIANT, bstrauthor: &super::Com::VARIANT, bstrproduct: &super::Com::VARIANT, bstruniqueid: &super::Com::VARIANT, bstrversion: &super::Com::VARIANT, pvargpmprogress: &super::Com::VARIANT, pvargpmcancel: &mut super::Com::VARIANT, ppigpmresult: &mut ::core::option::Option) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Save)(::windows::core::Interface::as_raw(self), bstrsavefile.into().abi(), boverwrite, bsaveassystem, ::core::mem::transmute(bstrlanguage), ::core::mem::transmute(bstrauthor), ::core::mem::transmute(bstrproduct), ::core::mem::transmute(bstruniqueid), ::core::mem::transmute(bstrversion), ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() + pub unsafe fn Save(&self, bstrsavefile: &::windows::core::BSTR, boverwrite: i16, bsaveassystem: i16, bstrlanguage: &super::Com::VARIANT, bstrauthor: &super::Com::VARIANT, bstrproduct: &super::Com::VARIANT, bstruniqueid: &super::Com::VARIANT, bstrversion: &super::Com::VARIANT, pvargpmprogress: &super::Com::VARIANT, pvargpmcancel: &mut super::Com::VARIANT, ppigpmresult: &mut ::core::option::Option) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Save)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsavefile), boverwrite, bsaveassystem, ::core::mem::transmute(bstrlanguage), ::core::mem::transmute(bstrauthor), ::core::mem::transmute(bstrproduct), ::core::mem::transmute(bstruniqueid), ::core::mem::transmute(bstrversion), ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Backup<'a, P0, P1>(&self, bstrbackupdir: P0, bstrcomment: P1, pvargpmprogress: &super::Com::VARIANT, pvargpmcancel: &mut super::Com::VARIANT, ppigpmresult: &mut ::core::option::Option) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Backup)(::windows::core::Interface::as_raw(self), bstrbackupdir.into().abi(), bstrcomment.into().abi(), ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() + pub unsafe fn Backup(&self, bstrbackupdir: &::windows::core::BSTR, bstrcomment: &::windows::core::BSTR, pvargpmprogress: &super::Com::VARIANT, pvargpmcancel: &mut super::Com::VARIANT, ppigpmresult: &mut ::core::option::Option) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Backup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrbackupdir), ::core::mem::transmute_copy(bstrcomment), ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -6226,14 +5695,11 @@ impl IGPMStarterGPO { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GenerateReport)(::windows::core::Interface::as_raw(self), gpmreporttype, ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GenerateReportToFile<'a, P0>(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GenerateReportToFile(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GenerateReportToFile)(::windows::core::Interface::as_raw(self), gpmreporttype, bstrtargetfilepath.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GenerateReportToFile)(::windows::core::Interface::as_raw(self), gpmreporttype, ::core::mem::transmute_copy(bstrtargetfilepath), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6316,50 +5782,26 @@ unsafe impl ::windows::core::Interface for IGPMStarterGPO { #[doc(hidden)] pub struct IGPMStarterGPO_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DisplayName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDisplayName: usize, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDescription: usize, - #[cfg(feature = "Win32_Foundation")] - pub Author: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Author: usize, - #[cfg(feature = "Win32_Foundation")] - pub Product: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Product: usize, + pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Author: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Product: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub CreationTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ID: usize, + pub ID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ModifiedTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut f64) -> ::windows::core::HRESULT, pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut GPMStarterGPOType) -> ::windows::core::HRESULT, pub ComputerVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut u16) -> ::windows::core::HRESULT, pub UserVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut u16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub StarterGPOVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - StarterGPOVersion: usize, + pub StarterGPOVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub Save: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsavefile: ::core::mem::ManuallyDrop, boverwrite: i16, bsaveassystem: i16, bstrlanguage: *const super::Com::VARIANT, bstrauthor: *const super::Com::VARIANT, bstrproduct: *const super::Com::VARIANT, bstruniqueid: *const super::Com::VARIANT, bstrversion: *const super::Com::VARIANT, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub Save: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsavefile: ::core::mem::ManuallyDrop<::windows::core::BSTR>, boverwrite: i16, bsaveassystem: i16, bstrlanguage: *const super::Com::VARIANT, bstrauthor: *const super::Com::VARIANT, bstrproduct: *const super::Com::VARIANT, bstruniqueid: *const super::Com::VARIANT, bstrversion: *const super::Com::VARIANT, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Save: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub Backup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrbackupdir: ::core::mem::ManuallyDrop, bstrcomment: ::core::mem::ManuallyDrop, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub Backup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrbackupdir: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrcomment: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Backup: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -6370,9 +5812,9 @@ pub struct IGPMStarterGPO_Vtbl { pub GenerateReport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, gpmreporttype: GPMReportType, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *const super::Com::VARIANT, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GenerateReport: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GenerateReportToFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, gpmreporttype: GPMReportType, bstrtargetfilepath: ::core::mem::ManuallyDrop, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GenerateReportToFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, gpmreporttype: GPMReportType, bstrtargetfilepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GenerateReportToFile: usize, #[cfg(feature = "Win32_System_Com")] pub GetSecurityInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsecurityinfo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -6389,41 +5831,29 @@ pub struct IGPMStarterGPO_Vtbl { pub struct IGPMStarterGPOBackup(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IGPMStarterGPOBackup { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BackupDir(&self) -> ::windows::core::Result { + pub unsafe fn BackupDir(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).BackupDir)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).BackupDir)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Comment(&self) -> ::windows::core::Result { + pub unsafe fn Comment(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Comment)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Comment)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisplayName(&self) -> ::windows::core::Result { + pub unsafe fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Domain(&self) -> ::windows::core::Result { + pub unsafe fn Domain(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Domain)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Domain)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StarterGPOID(&self) -> ::windows::core::Result { + pub unsafe fn StarterGPOID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).StarterGPOID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).StarterGPOID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ID(&self) -> ::windows::core::Result { + pub unsafe fn ID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Timestamp(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6441,14 +5871,11 @@ impl IGPMStarterGPOBackup { pub unsafe fn GenerateReport(&self, gpmreporttype: GPMReportType, pvargpmprogress: &super::Com::VARIANT, pvargpmcancel: &mut super::Com::VARIANT, ppigpmresult: &mut ::core::option::Option) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GenerateReport)(::windows::core::Interface::as_raw(self), gpmreporttype, ::core::mem::transmute(pvargpmprogress), ::core::mem::transmute(pvargpmcancel), ::core::mem::transmute(ppigpmresult)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GenerateReportToFile<'a, P0>(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GenerateReportToFile(&self, gpmreporttype: GPMReportType, bstrtargetfilepath: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GenerateReportToFile)(::windows::core::Interface::as_raw(self), gpmreporttype, bstrtargetfilepath.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GenerateReportToFile)(::windows::core::Interface::as_raw(self), gpmreporttype, ::core::mem::transmute_copy(bstrtargetfilepath), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -6517,30 +5944,12 @@ unsafe impl ::windows::core::Interface for IGPMStarterGPOBackup { #[doc(hidden)] pub struct IGPMStarterGPOBackup_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub BackupDir: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbackupdir: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BackupDir: usize, - #[cfg(feature = "Win32_Foundation")] - pub Comment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcomment: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Comment: usize, - #[cfg(feature = "Win32_Foundation")] - pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdisplayname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DisplayName: usize, - #[cfg(feature = "Win32_Foundation")] - pub Domain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtemplatedomain: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Domain: usize, - #[cfg(feature = "Win32_Foundation")] - pub StarterGPOID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtemplateid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - StarterGPOID: usize, - #[cfg(feature = "Win32_Foundation")] - pub ID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ID: usize, + pub BackupDir: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrbackupdir: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Comment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcomment: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdisplayname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Domain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtemplatedomain: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub StarterGPOID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtemplateid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Timestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptimestamp: *mut f64) -> ::windows::core::HRESULT, pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptype: *mut GPMStarterGPOType) -> ::windows::core::HRESULT, pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -6548,9 +5957,9 @@ pub struct IGPMStarterGPOBackup_Vtbl { pub GenerateReport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, gpmreporttype: GPMReportType, pvargpmprogress: *const super::Com::VARIANT, pvargpmcancel: *mut super::Com::VARIANT, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GenerateReport: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GenerateReportToFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, gpmreporttype: GPMReportType, bstrtargetfilepath: ::core::mem::ManuallyDrop, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GenerateReportToFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, gpmreporttype: GPMReportType, bstrtargetfilepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppigpmresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GenerateReportToFile: usize, } #[doc = "*Required features: `\"Win32_System_GroupPolicy\"`, `\"Win32_System_Com\"`*"] @@ -6757,35 +6166,27 @@ pub struct IGPMStarterGPOCollection_Vtbl { pub struct IGPMStatusMessage(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IGPMStatusMessage { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ObjectPath(&self) -> ::windows::core::Result { + pub unsafe fn ObjectPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ObjectPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ObjectPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn ErrorCode(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ErrorCode)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExtensionName(&self) -> ::windows::core::Result { + pub unsafe fn ExtensionName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ExtensionName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ExtensionName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SettingsName(&self) -> ::windows::core::Result { + pub unsafe fn SettingsName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SettingsName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SettingsName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn OperationCode(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).OperationCode)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Message(&self) -> ::windows::core::Result { + pub unsafe fn Message(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Message)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Message)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -6854,24 +6255,12 @@ unsafe impl ::windows::core::Interface for IGPMStatusMessage { #[doc(hidden)] pub struct IGPMStatusMessage_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub ObjectPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ObjectPath: usize, + pub ObjectPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ErrorCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ExtensionName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ExtensionName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SettingsName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SettingsName: usize, + pub ExtensionName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SettingsName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub OperationCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Message: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Message: usize, + pub Message: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_GroupPolicy\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6978,29 +6367,21 @@ pub struct IGPMStatusMsgCollection_Vtbl { pub struct IGPMTrustee(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IGPMTrustee { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TrusteeSid(&self) -> ::windows::core::Result { + pub unsafe fn TrusteeSid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TrusteeSid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TrusteeSid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TrusteeName(&self) -> ::windows::core::Result { + pub unsafe fn TrusteeName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TrusteeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TrusteeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TrusteeDomain(&self) -> ::windows::core::Result { + pub unsafe fn TrusteeDomain(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TrusteeDomain)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TrusteeDomain)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TrusteeDSPath(&self) -> ::windows::core::Result { + pub unsafe fn TrusteeDSPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TrusteeDSPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TrusteeDSPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn TrusteeType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7073,22 +6454,10 @@ unsafe impl ::windows::core::Interface for IGPMTrustee { #[doc(hidden)] pub struct IGPMTrustee_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub TrusteeSid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TrusteeSid: usize, - #[cfg(feature = "Win32_Foundation")] - pub TrusteeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TrusteeName: usize, - #[cfg(feature = "Win32_Foundation")] - pub TrusteeDomain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TrusteeDomain: usize, - #[cfg(feature = "Win32_Foundation")] - pub TrusteeDSPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TrusteeDSPath: usize, + pub TrusteeSid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub TrusteeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub TrusteeDomain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub TrusteeDSPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub TrusteeType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lval: *mut i32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_GroupPolicy\"`, `\"Win32_System_Com\"`*"] @@ -7097,39 +6466,23 @@ pub struct IGPMTrustee_Vtbl { pub struct IGPMWMIFilter(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IGPMWMIFilter { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Path(&self) -> ::windows::core::Result { + pub unsafe fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, newval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), newval.into().abi()).ok() + pub unsafe fn SetName(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(newval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, newval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), newval.into().abi()).ok() + pub unsafe fn SetDescription(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(newval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -7218,26 +6571,11 @@ unsafe impl ::windows::core::Interface for IGPMWMIFilter { #[doc(hidden)] pub struct IGPMWMIFilter_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Path: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDescription: usize, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, + pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub GetQueryList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pqrylist: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] diff --git a/crates/libs/windows/src/Windows/Win32/System/Iis/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Iis/mod.rs index 440acddca9..d5313e53e6 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Iis/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Iis/mod.rs @@ -4119,37 +4119,30 @@ impl ::core::default::Default for CERT_CONTEXT_EX { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_Iis\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Iis\"`*"] pub struct CONFIGURATION_ENTRY { - pub bstrKey: super::super::Foundation::BSTR, - pub bstrValue: super::super::Foundation::BSTR, + pub bstrKey: ::windows::core::BSTR, + pub bstrValue: ::windows::core::BSTR, } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for CONFIGURATION_ENTRY { fn clone(&self) -> Self { Self { bstrKey: self.bstrKey.clone(), bstrValue: self.bstrValue.clone() } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for CONFIGURATION_ENTRY { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("CONFIGURATION_ENTRY").field("bstrKey", &self.bstrKey).field("bstrValue", &self.bstrValue).finish() } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for CONFIGURATION_ENTRY { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for CONFIGURATION_ENTRY { fn eq(&self, other: &Self) -> bool { self.bstrKey == other.bstrKey && self.bstrValue == other.bstrValue } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for CONFIGURATION_ENTRY {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for CONFIGURATION_ENTRY { fn default() -> Self { unsafe { ::core::mem::zeroed() } diff --git a/crates/libs/windows/src/Windows/Win32/System/MessageQueuing/impl.rs b/crates/libs/windows/src/Windows/Win32/System/MessageQueuing/impl.rs index 65682f675b..b73d9968ec 100644 --- a/crates/libs/windows/src/Windows/Win32/System/MessageQueuing/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/MessageQueuing/impl.rs @@ -1,13 +1,13 @@ #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IMSMQApplication_Impl: Sized + super::Com::IDispatch_Impl { - fn MachineIdOfMachineName(&self, machinename: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn MachineIdOfMachineName(&self, machinename: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IMSMQApplication {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IMSMQApplication_Vtbl { pub const fn new, Impl: IMSMQApplication_Impl, const OFFSET: isize>() -> IMSMQApplication_Vtbl { - unsafe extern "system" fn MachineIdOfMachineName, Impl: IMSMQApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, machinename: ::core::mem::ManuallyDrop, pbstrguid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn MachineIdOfMachineName, Impl: IMSMQApplication_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, machinename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrguid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.MachineIdOfMachineName(::core::mem::transmute(&machinename)) { @@ -27,7 +27,7 @@ impl IMSMQApplication_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IMSMQApplication2_Impl: Sized + super::Com::IDispatch_Impl + IMSMQApplication_Impl { fn RegisterCertificate(&self, flags: *const super::Com::VARIANT, externalcertificate: *const super::Com::VARIANT) -> ::windows::core::Result<()>; - fn MachineNameOfMachineId(&self, bstrguid: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn MachineNameOfMachineId(&self, bstrguid: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; fn MSMQVersionMajor(&self) -> ::windows::core::Result; fn MSMQVersionMinor(&self) -> ::windows::core::Result; fn MSMQVersionBuild(&self) -> ::windows::core::Result; @@ -44,7 +44,7 @@ impl IMSMQApplication2_Vtbl { let this = (*this).get_impl(); this.RegisterCertificate(::core::mem::transmute_copy(&flags), ::core::mem::transmute_copy(&externalcertificate)).into() } - unsafe extern "system" fn MachineNameOfMachineId, Impl: IMSMQApplication2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrguid: ::core::mem::ManuallyDrop, pbstrmachinename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn MachineNameOfMachineId, Impl: IMSMQApplication2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrmachinename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.MachineNameOfMachineId(::core::mem::transmute(&bstrguid)) { @@ -129,11 +129,11 @@ impl IMSMQApplication2_Vtbl { pub trait IMSMQApplication3_Impl: Sized + super::Com::IDispatch_Impl + IMSMQApplication_Impl + IMSMQApplication2_Impl { fn ActiveQueues(&self) -> ::windows::core::Result; fn PrivateQueues(&self) -> ::windows::core::Result; - fn DirectoryServiceServer(&self) -> ::windows::core::Result; + fn DirectoryServiceServer(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn IsConnected(&self) -> ::windows::core::Result; fn BytesInAllQueues(&self) -> ::windows::core::Result; - fn SetMachine(&self, bstrmachine: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Machine(&self) -> ::windows::core::Result; + fn SetMachine(&self, bstrmachine: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Machine(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Connect(&self) -> ::windows::core::Result<()>; fn Disconnect(&self) -> ::windows::core::Result<()>; fn Tidy(&self) -> ::windows::core::Result<()>; @@ -165,7 +165,7 @@ impl IMSMQApplication3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DirectoryServiceServer, Impl: IMSMQApplication3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdirectoryserviceserver: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DirectoryServiceServer, Impl: IMSMQApplication3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdirectoryserviceserver: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DirectoryServiceServer() { @@ -198,12 +198,12 @@ impl IMSMQApplication3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetMachine, Impl: IMSMQApplication3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmachine: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetMachine, Impl: IMSMQApplication3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmachine: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetMachine(::core::mem::transmute(&bstrmachine)).into() } - unsafe extern "system" fn Machine, Impl: IMSMQApplication3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrmachine: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Machine, Impl: IMSMQApplication3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrmachine: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Machine() { @@ -419,12 +419,12 @@ pub trait IMSMQDestination_Impl: Sized + super::Com::IDispatch_Impl { fn IsOpen(&self) -> ::windows::core::Result; fn IADs(&self) -> ::windows::core::Result; fn putref_IADs(&self, piads: &::core::option::Option) -> ::windows::core::Result<()>; - fn ADsPath(&self) -> ::windows::core::Result; - fn SetADsPath(&self, bstradspath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn PathName(&self) -> ::windows::core::Result; - fn SetPathName(&self, bstrpathname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn FormatName(&self) -> ::windows::core::Result; - fn SetFormatName(&self, bstrformatname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ADsPath(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetADsPath(&self, bstradspath: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn PathName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetPathName(&self, bstrpathname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn FormatName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetFormatName(&self, bstrformatname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Destinations(&self) -> ::windows::core::Result; fn putref_Destinations(&self, pdestinations: &::core::option::Option) -> ::windows::core::Result<()>; fn Properties(&self) -> ::windows::core::Result; @@ -471,7 +471,7 @@ impl IMSMQDestination_Vtbl { let this = (*this).get_impl(); this.putref_IADs(::core::mem::transmute(&piads)).into() } - unsafe extern "system" fn ADsPath, Impl: IMSMQDestination_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstradspath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ADsPath, Impl: IMSMQDestination_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstradspath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ADsPath() { @@ -482,12 +482,12 @@ impl IMSMQDestination_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetADsPath, Impl: IMSMQDestination_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstradspath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetADsPath, Impl: IMSMQDestination_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstradspath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetADsPath(::core::mem::transmute(&bstradspath)).into() } - unsafe extern "system" fn PathName, Impl: IMSMQDestination_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpathname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PathName, Impl: IMSMQDestination_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpathname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PathName() { @@ -498,12 +498,12 @@ impl IMSMQDestination_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPathName, Impl: IMSMQDestination_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpathname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPathName, Impl: IMSMQDestination_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpathname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPathName(::core::mem::transmute(&bstrpathname)).into() } - unsafe extern "system" fn FormatName, Impl: IMSMQDestination_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrformatname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FormatName, Impl: IMSMQDestination_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrformatname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FormatName() { @@ -514,7 +514,7 @@ impl IMSMQDestination_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetFormatName, Impl: IMSMQDestination_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrformatname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetFormatName, Impl: IMSMQDestination_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrformatname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetFormatName(::core::mem::transmute(&bstrformatname)).into() @@ -623,8 +623,8 @@ impl IMSMQEvent3_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IMSMQManagement_Impl: Sized + super::Com::IDispatch_Impl { fn Init(&self, machine: *const super::Com::VARIANT, pathname: *const super::Com::VARIANT, formatname: *const super::Com::VARIANT) -> ::windows::core::Result<()>; - fn FormatName(&self) -> ::windows::core::Result; - fn Machine(&self) -> ::windows::core::Result; + fn FormatName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Machine(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn MessageCount(&self) -> ::windows::core::Result; fn ForeignStatus(&self) -> ::windows::core::Result; fn QueueType(&self) -> ::windows::core::Result; @@ -642,7 +642,7 @@ impl IMSMQManagement_Vtbl { let this = (*this).get_impl(); this.Init(::core::mem::transmute_copy(&machine), ::core::mem::transmute_copy(&pathname), ::core::mem::transmute_copy(&formatname)).into() } - unsafe extern "system" fn FormatName, Impl: IMSMQManagement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrformatname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FormatName, Impl: IMSMQManagement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrformatname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FormatName() { @@ -653,7 +653,7 @@ impl IMSMQManagement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Machine, Impl: IMSMQManagement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrmachine: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Machine, Impl: IMSMQManagement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrmachine: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Machine() { @@ -767,7 +767,7 @@ pub trait IMSMQMessage_Impl: Sized + super::Com::IDispatch_Impl { fn putref_ResponseQueueInfo(&self, pqinforesponse: &::core::option::Option) -> ::windows::core::Result<()>; fn AppSpecific(&self) -> ::windows::core::Result; fn SetAppSpecific(&self, lappspecific: i32) -> ::windows::core::Result<()>; - fn SourceMachineGuid(&self) -> ::windows::core::Result; + fn SourceMachineGuid(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn BodyLength(&self) -> ::windows::core::Result; fn Body(&self) -> ::windows::core::Result; fn SetBody(&self, varbody: &super::Com::VARIANT) -> ::windows::core::Result<()>; @@ -778,8 +778,8 @@ pub trait IMSMQMessage_Impl: Sized + super::Com::IDispatch_Impl { fn SetCorrelationId(&self, varmsgid: &super::Com::VARIANT) -> ::windows::core::Result<()>; fn Ack(&self) -> ::windows::core::Result; fn SetAck(&self, lack: i32) -> ::windows::core::Result<()>; - fn Label(&self) -> ::windows::core::Result; - fn SetLabel(&self, bstrlabel: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Label(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetLabel(&self, bstrlabel: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn MaxTimeToReachQueue(&self) -> ::windows::core::Result; fn SetMaxTimeToReachQueue(&self, lmaxtimetoreachqueue: i32) -> ::windows::core::Result<()>; fn MaxTimeToReceive(&self) -> ::windows::core::Result; @@ -954,7 +954,7 @@ impl IMSMQMessage_Vtbl { let this = (*this).get_impl(); this.SetAppSpecific(::core::mem::transmute_copy(&lappspecific)).into() } - unsafe extern "system" fn SourceMachineGuid, Impl: IMSMQMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrguidsrcmachine: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SourceMachineGuid, Impl: IMSMQMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrguidsrcmachine: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SourceMachineGuid() { @@ -1051,7 +1051,7 @@ impl IMSMQMessage_Vtbl { let this = (*this).get_impl(); this.SetAck(::core::mem::transmute_copy(&lack)).into() } - unsafe extern "system" fn Label, Impl: IMSMQMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrlabel: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Label, Impl: IMSMQMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrlabel: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Label() { @@ -1062,7 +1062,7 @@ impl IMSMQMessage_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetLabel, Impl: IMSMQMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrlabel: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetLabel, Impl: IMSMQMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrlabel: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetLabel(::core::mem::transmute(&bstrlabel)).into() @@ -1294,7 +1294,7 @@ pub trait IMSMQMessage2_Impl: Sized + super::Com::IDispatch_Impl { fn putref_ResponseQueueInfo_v1(&self, pqinforesponse: &::core::option::Option) -> ::windows::core::Result<()>; fn AppSpecific(&self) -> ::windows::core::Result; fn SetAppSpecific(&self, lappspecific: i32) -> ::windows::core::Result<()>; - fn SourceMachineGuid(&self) -> ::windows::core::Result; + fn SourceMachineGuid(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn BodyLength(&self) -> ::windows::core::Result; fn Body(&self) -> ::windows::core::Result; fn SetBody(&self, varbody: &super::Com::VARIANT) -> ::windows::core::Result<()>; @@ -1305,8 +1305,8 @@ pub trait IMSMQMessage2_Impl: Sized + super::Com::IDispatch_Impl { fn SetCorrelationId(&self, varmsgid: &super::Com::VARIANT) -> ::windows::core::Result<()>; fn Ack(&self) -> ::windows::core::Result; fn SetAck(&self, lack: i32) -> ::windows::core::Result<()>; - fn Label(&self) -> ::windows::core::Result; - fn SetLabel(&self, bstrlabel: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Label(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetLabel(&self, bstrlabel: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn MaxTimeToReachQueue(&self) -> ::windows::core::Result; fn SetMaxTimeToReachQueue(&self, lmaxtimetoreachqueue: i32) -> ::windows::core::Result<()>; fn MaxTimeToReceive(&self) -> ::windows::core::Result; @@ -1328,8 +1328,8 @@ pub trait IMSMQMessage2_Impl: Sized + super::Com::IDispatch_Impl { fn SenderVersion(&self) -> ::windows::core::Result; fn Extension(&self) -> ::windows::core::Result; fn SetExtension(&self, varextension: &super::Com::VARIANT) -> ::windows::core::Result<()>; - fn ConnectorTypeGuid(&self) -> ::windows::core::Result; - fn SetConnectorTypeGuid(&self, bstrguidconnectortype: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ConnectorTypeGuid(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetConnectorTypeGuid(&self, bstrguidconnectortype: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn TransactionStatusQueueInfo(&self) -> ::windows::core::Result; fn DestinationSymmetricKey(&self) -> ::windows::core::Result; fn SetDestinationSymmetricKey(&self, vardestsymmkey: &super::Com::VARIANT) -> ::windows::core::Result<()>; @@ -1337,8 +1337,8 @@ pub trait IMSMQMessage2_Impl: Sized + super::Com::IDispatch_Impl { fn SetSignature(&self, varsignature: &super::Com::VARIANT) -> ::windows::core::Result<()>; fn AuthenticationProviderType(&self) -> ::windows::core::Result; fn SetAuthenticationProviderType(&self, lauthprovtype: i32) -> ::windows::core::Result<()>; - fn AuthenticationProviderName(&self) -> ::windows::core::Result; - fn SetAuthenticationProviderName(&self, bstrauthprovname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn AuthenticationProviderName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetAuthenticationProviderName(&self, bstrauthprovname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SetSenderId(&self, varsenderid: &super::Com::VARIANT) -> ::windows::core::Result<()>; fn MsgClass(&self) -> ::windows::core::Result; fn SetMsgClass(&self, lmsgclass: i32) -> ::windows::core::Result<()>; @@ -1507,7 +1507,7 @@ impl IMSMQMessage2_Vtbl { let this = (*this).get_impl(); this.SetAppSpecific(::core::mem::transmute_copy(&lappspecific)).into() } - unsafe extern "system" fn SourceMachineGuid, Impl: IMSMQMessage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrguidsrcmachine: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SourceMachineGuid, Impl: IMSMQMessage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrguidsrcmachine: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SourceMachineGuid() { @@ -1604,7 +1604,7 @@ impl IMSMQMessage2_Vtbl { let this = (*this).get_impl(); this.SetAck(::core::mem::transmute_copy(&lack)).into() } - unsafe extern "system" fn Label, Impl: IMSMQMessage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrlabel: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Label, Impl: IMSMQMessage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrlabel: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Label() { @@ -1615,7 +1615,7 @@ impl IMSMQMessage2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetLabel, Impl: IMSMQMessage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrlabel: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetLabel, Impl: IMSMQMessage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrlabel: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetLabel(::core::mem::transmute(&bstrlabel)).into() @@ -1797,7 +1797,7 @@ impl IMSMQMessage2_Vtbl { let this = (*this).get_impl(); this.SetExtension(::core::mem::transmute(&varextension)).into() } - unsafe extern "system" fn ConnectorTypeGuid, Impl: IMSMQMessage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrguidconnectortype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ConnectorTypeGuid, Impl: IMSMQMessage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrguidconnectortype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ConnectorTypeGuid() { @@ -1808,7 +1808,7 @@ impl IMSMQMessage2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetConnectorTypeGuid, Impl: IMSMQMessage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrguidconnectortype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetConnectorTypeGuid, Impl: IMSMQMessage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrguidconnectortype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetConnectorTypeGuid(::core::mem::transmute(&bstrguidconnectortype)).into() @@ -1872,7 +1872,7 @@ impl IMSMQMessage2_Vtbl { let this = (*this).get_impl(); this.SetAuthenticationProviderType(::core::mem::transmute_copy(&lauthprovtype)).into() } - unsafe extern "system" fn AuthenticationProviderName, Impl: IMSMQMessage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrauthprovname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn AuthenticationProviderName, Impl: IMSMQMessage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrauthprovname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AuthenticationProviderName() { @@ -1883,7 +1883,7 @@ impl IMSMQMessage2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetAuthenticationProviderName, Impl: IMSMQMessage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrauthprovname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetAuthenticationProviderName, Impl: IMSMQMessage2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrauthprovname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetAuthenticationProviderName(::core::mem::transmute(&bstrauthprovname)).into() @@ -2099,7 +2099,7 @@ pub trait IMSMQMessage3_Impl: Sized + super::Com::IDispatch_Impl { fn putref_ResponseQueueInfo_v1(&self, pqinforesponse: &::core::option::Option) -> ::windows::core::Result<()>; fn AppSpecific(&self) -> ::windows::core::Result; fn SetAppSpecific(&self, lappspecific: i32) -> ::windows::core::Result<()>; - fn SourceMachineGuid(&self) -> ::windows::core::Result; + fn SourceMachineGuid(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn BodyLength(&self) -> ::windows::core::Result; fn Body(&self) -> ::windows::core::Result; fn SetBody(&self, varbody: &super::Com::VARIANT) -> ::windows::core::Result<()>; @@ -2110,8 +2110,8 @@ pub trait IMSMQMessage3_Impl: Sized + super::Com::IDispatch_Impl { fn SetCorrelationId(&self, varmsgid: &super::Com::VARIANT) -> ::windows::core::Result<()>; fn Ack(&self) -> ::windows::core::Result; fn SetAck(&self, lack: i32) -> ::windows::core::Result<()>; - fn Label(&self) -> ::windows::core::Result; - fn SetLabel(&self, bstrlabel: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Label(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetLabel(&self, bstrlabel: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn MaxTimeToReachQueue(&self) -> ::windows::core::Result; fn SetMaxTimeToReachQueue(&self, lmaxtimetoreachqueue: i32) -> ::windows::core::Result<()>; fn MaxTimeToReceive(&self) -> ::windows::core::Result; @@ -2133,8 +2133,8 @@ pub trait IMSMQMessage3_Impl: Sized + super::Com::IDispatch_Impl { fn SenderVersion(&self) -> ::windows::core::Result; fn Extension(&self) -> ::windows::core::Result; fn SetExtension(&self, varextension: &super::Com::VARIANT) -> ::windows::core::Result<()>; - fn ConnectorTypeGuid(&self) -> ::windows::core::Result; - fn SetConnectorTypeGuid(&self, bstrguidconnectortype: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ConnectorTypeGuid(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetConnectorTypeGuid(&self, bstrguidconnectortype: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn TransactionStatusQueueInfo(&self) -> ::windows::core::Result; fn DestinationSymmetricKey(&self) -> ::windows::core::Result; fn SetDestinationSymmetricKey(&self, vardestsymmkey: &super::Com::VARIANT) -> ::windows::core::Result<()>; @@ -2142,8 +2142,8 @@ pub trait IMSMQMessage3_Impl: Sized + super::Com::IDispatch_Impl { fn SetSignature(&self, varsignature: &super::Com::VARIANT) -> ::windows::core::Result<()>; fn AuthenticationProviderType(&self) -> ::windows::core::Result; fn SetAuthenticationProviderType(&self, lauthprovtype: i32) -> ::windows::core::Result<()>; - fn AuthenticationProviderName(&self) -> ::windows::core::Result; - fn SetAuthenticationProviderName(&self, bstrauthprovname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn AuthenticationProviderName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetAuthenticationProviderName(&self, bstrauthprovname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SetSenderId(&self, varsenderid: &super::Com::VARIANT) -> ::windows::core::Result<()>; fn MsgClass(&self) -> ::windows::core::Result; fn SetMsgClass(&self, lmsgclass: i32) -> ::windows::core::Result<()>; @@ -2168,10 +2168,10 @@ pub trait IMSMQMessage3_Impl: Sized + super::Com::IDispatch_Impl { fn IsFirstInTransaction2(&self) -> ::windows::core::Result; fn IsLastInTransaction2(&self) -> ::windows::core::Result; fn AttachCurrentSecurityContext2(&self) -> ::windows::core::Result<()>; - fn SoapEnvelope(&self) -> ::windows::core::Result; + fn SoapEnvelope(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CompoundMessage(&self) -> ::windows::core::Result; - fn SetSoapHeader(&self, bstrsoapheader: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetSoapBody(&self, bstrsoapbody: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetSoapHeader(&self, bstrsoapheader: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetSoapBody(&self, bstrsoapbody: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IMSMQMessage3 {} @@ -2328,7 +2328,7 @@ impl IMSMQMessage3_Vtbl { let this = (*this).get_impl(); this.SetAppSpecific(::core::mem::transmute_copy(&lappspecific)).into() } - unsafe extern "system" fn SourceMachineGuid, Impl: IMSMQMessage3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrguidsrcmachine: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SourceMachineGuid, Impl: IMSMQMessage3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrguidsrcmachine: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SourceMachineGuid() { @@ -2425,7 +2425,7 @@ impl IMSMQMessage3_Vtbl { let this = (*this).get_impl(); this.SetAck(::core::mem::transmute_copy(&lack)).into() } - unsafe extern "system" fn Label, Impl: IMSMQMessage3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrlabel: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Label, Impl: IMSMQMessage3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrlabel: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Label() { @@ -2436,7 +2436,7 @@ impl IMSMQMessage3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetLabel, Impl: IMSMQMessage3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrlabel: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetLabel, Impl: IMSMQMessage3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrlabel: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetLabel(::core::mem::transmute(&bstrlabel)).into() @@ -2618,7 +2618,7 @@ impl IMSMQMessage3_Vtbl { let this = (*this).get_impl(); this.SetExtension(::core::mem::transmute(&varextension)).into() } - unsafe extern "system" fn ConnectorTypeGuid, Impl: IMSMQMessage3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrguidconnectortype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ConnectorTypeGuid, Impl: IMSMQMessage3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrguidconnectortype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ConnectorTypeGuid() { @@ -2629,7 +2629,7 @@ impl IMSMQMessage3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetConnectorTypeGuid, Impl: IMSMQMessage3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrguidconnectortype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetConnectorTypeGuid, Impl: IMSMQMessage3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrguidconnectortype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetConnectorTypeGuid(::core::mem::transmute(&bstrguidconnectortype)).into() @@ -2693,7 +2693,7 @@ impl IMSMQMessage3_Vtbl { let this = (*this).get_impl(); this.SetAuthenticationProviderType(::core::mem::transmute_copy(&lauthprovtype)).into() } - unsafe extern "system" fn AuthenticationProviderName, Impl: IMSMQMessage3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrauthprovname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn AuthenticationProviderName, Impl: IMSMQMessage3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrauthprovname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AuthenticationProviderName() { @@ -2704,7 +2704,7 @@ impl IMSMQMessage3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetAuthenticationProviderName, Impl: IMSMQMessage3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrauthprovname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetAuthenticationProviderName, Impl: IMSMQMessage3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrauthprovname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetAuthenticationProviderName(::core::mem::transmute(&bstrauthprovname)).into() @@ -2925,7 +2925,7 @@ impl IMSMQMessage3_Vtbl { let this = (*this).get_impl(); this.AttachCurrentSecurityContext2().into() } - unsafe extern "system" fn SoapEnvelope, Impl: IMSMQMessage3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsoapenvelope: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SoapEnvelope, Impl: IMSMQMessage3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsoapenvelope: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SoapEnvelope() { @@ -2947,12 +2947,12 @@ impl IMSMQMessage3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSoapHeader, Impl: IMSMQMessage3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsoapheader: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSoapHeader, Impl: IMSMQMessage3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsoapheader: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSoapHeader(::core::mem::transmute(&bstrsoapheader)).into() } - unsafe extern "system" fn SetSoapBody, Impl: IMSMQMessage3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsoapbody: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSoapBody, Impl: IMSMQMessage3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsoapbody: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSoapBody(::core::mem::transmute(&bstrsoapbody)).into() @@ -3076,7 +3076,7 @@ pub trait IMSMQMessage4_Impl: Sized + super::Com::IDispatch_Impl { fn putref_ResponseQueueInfo_v1(&self, pqinforesponse: &::core::option::Option) -> ::windows::core::Result<()>; fn AppSpecific(&self) -> ::windows::core::Result; fn SetAppSpecific(&self, lappspecific: i32) -> ::windows::core::Result<()>; - fn SourceMachineGuid(&self) -> ::windows::core::Result; + fn SourceMachineGuid(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn BodyLength(&self) -> ::windows::core::Result; fn Body(&self) -> ::windows::core::Result; fn SetBody(&self, varbody: &super::Com::VARIANT) -> ::windows::core::Result<()>; @@ -3087,8 +3087,8 @@ pub trait IMSMQMessage4_Impl: Sized + super::Com::IDispatch_Impl { fn SetCorrelationId(&self, varmsgid: &super::Com::VARIANT) -> ::windows::core::Result<()>; fn Ack(&self) -> ::windows::core::Result; fn SetAck(&self, lack: i32) -> ::windows::core::Result<()>; - fn Label(&self) -> ::windows::core::Result; - fn SetLabel(&self, bstrlabel: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Label(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetLabel(&self, bstrlabel: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn MaxTimeToReachQueue(&self) -> ::windows::core::Result; fn SetMaxTimeToReachQueue(&self, lmaxtimetoreachqueue: i32) -> ::windows::core::Result<()>; fn MaxTimeToReceive(&self) -> ::windows::core::Result; @@ -3110,8 +3110,8 @@ pub trait IMSMQMessage4_Impl: Sized + super::Com::IDispatch_Impl { fn SenderVersion(&self) -> ::windows::core::Result; fn Extension(&self) -> ::windows::core::Result; fn SetExtension(&self, varextension: &super::Com::VARIANT) -> ::windows::core::Result<()>; - fn ConnectorTypeGuid(&self) -> ::windows::core::Result; - fn SetConnectorTypeGuid(&self, bstrguidconnectortype: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ConnectorTypeGuid(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetConnectorTypeGuid(&self, bstrguidconnectortype: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn TransactionStatusQueueInfo(&self) -> ::windows::core::Result; fn DestinationSymmetricKey(&self) -> ::windows::core::Result; fn SetDestinationSymmetricKey(&self, vardestsymmkey: &super::Com::VARIANT) -> ::windows::core::Result<()>; @@ -3119,8 +3119,8 @@ pub trait IMSMQMessage4_Impl: Sized + super::Com::IDispatch_Impl { fn SetSignature(&self, varsignature: &super::Com::VARIANT) -> ::windows::core::Result<()>; fn AuthenticationProviderType(&self) -> ::windows::core::Result; fn SetAuthenticationProviderType(&self, lauthprovtype: i32) -> ::windows::core::Result<()>; - fn AuthenticationProviderName(&self) -> ::windows::core::Result; - fn SetAuthenticationProviderName(&self, bstrauthprovname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn AuthenticationProviderName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetAuthenticationProviderName(&self, bstrauthprovname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SetSenderId(&self, varsenderid: &super::Com::VARIANT) -> ::windows::core::Result<()>; fn MsgClass(&self) -> ::windows::core::Result; fn SetMsgClass(&self, lmsgclass: i32) -> ::windows::core::Result<()>; @@ -3145,10 +3145,10 @@ pub trait IMSMQMessage4_Impl: Sized + super::Com::IDispatch_Impl { fn IsFirstInTransaction2(&self) -> ::windows::core::Result; fn IsLastInTransaction2(&self) -> ::windows::core::Result; fn AttachCurrentSecurityContext2(&self) -> ::windows::core::Result<()>; - fn SoapEnvelope(&self) -> ::windows::core::Result; + fn SoapEnvelope(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CompoundMessage(&self) -> ::windows::core::Result; - fn SetSoapHeader(&self, bstrsoapheader: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetSoapBody(&self, bstrsoapbody: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetSoapHeader(&self, bstrsoapheader: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetSoapBody(&self, bstrsoapbody: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IMSMQMessage4 {} @@ -3305,7 +3305,7 @@ impl IMSMQMessage4_Vtbl { let this = (*this).get_impl(); this.SetAppSpecific(::core::mem::transmute_copy(&lappspecific)).into() } - unsafe extern "system" fn SourceMachineGuid, Impl: IMSMQMessage4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrguidsrcmachine: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SourceMachineGuid, Impl: IMSMQMessage4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrguidsrcmachine: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SourceMachineGuid() { @@ -3402,7 +3402,7 @@ impl IMSMQMessage4_Vtbl { let this = (*this).get_impl(); this.SetAck(::core::mem::transmute_copy(&lack)).into() } - unsafe extern "system" fn Label, Impl: IMSMQMessage4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrlabel: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Label, Impl: IMSMQMessage4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrlabel: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Label() { @@ -3413,7 +3413,7 @@ impl IMSMQMessage4_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetLabel, Impl: IMSMQMessage4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrlabel: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetLabel, Impl: IMSMQMessage4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrlabel: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetLabel(::core::mem::transmute(&bstrlabel)).into() @@ -3595,7 +3595,7 @@ impl IMSMQMessage4_Vtbl { let this = (*this).get_impl(); this.SetExtension(::core::mem::transmute(&varextension)).into() } - unsafe extern "system" fn ConnectorTypeGuid, Impl: IMSMQMessage4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrguidconnectortype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ConnectorTypeGuid, Impl: IMSMQMessage4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrguidconnectortype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ConnectorTypeGuid() { @@ -3606,7 +3606,7 @@ impl IMSMQMessage4_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetConnectorTypeGuid, Impl: IMSMQMessage4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrguidconnectortype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetConnectorTypeGuid, Impl: IMSMQMessage4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrguidconnectortype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetConnectorTypeGuid(::core::mem::transmute(&bstrguidconnectortype)).into() @@ -3670,7 +3670,7 @@ impl IMSMQMessage4_Vtbl { let this = (*this).get_impl(); this.SetAuthenticationProviderType(::core::mem::transmute_copy(&lauthprovtype)).into() } - unsafe extern "system" fn AuthenticationProviderName, Impl: IMSMQMessage4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrauthprovname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn AuthenticationProviderName, Impl: IMSMQMessage4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrauthprovname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AuthenticationProviderName() { @@ -3681,7 +3681,7 @@ impl IMSMQMessage4_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetAuthenticationProviderName, Impl: IMSMQMessage4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrauthprovname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetAuthenticationProviderName, Impl: IMSMQMessage4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrauthprovname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetAuthenticationProviderName(::core::mem::transmute(&bstrauthprovname)).into() @@ -3902,7 +3902,7 @@ impl IMSMQMessage4_Vtbl { let this = (*this).get_impl(); this.AttachCurrentSecurityContext2().into() } - unsafe extern "system" fn SoapEnvelope, Impl: IMSMQMessage4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsoapenvelope: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SoapEnvelope, Impl: IMSMQMessage4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsoapenvelope: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SoapEnvelope() { @@ -3924,12 +3924,12 @@ impl IMSMQMessage4_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSoapHeader, Impl: IMSMQMessage4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsoapheader: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSoapHeader, Impl: IMSMQMessage4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsoapheader: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSoapHeader(::core::mem::transmute(&bstrsoapheader)).into() } - unsafe extern "system" fn SetSoapBody, Impl: IMSMQMessage4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsoapbody: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSoapBody, Impl: IMSMQMessage4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsoapbody: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSoapBody(::core::mem::transmute(&bstrsoapbody)).into() @@ -5633,15 +5633,15 @@ impl IMSMQQueue4_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IMSMQQueueInfo_Impl: Sized + super::Com::IDispatch_Impl { - fn QueueGuid(&self) -> ::windows::core::Result; - fn ServiceTypeGuid(&self) -> ::windows::core::Result; - fn SetServiceTypeGuid(&self, bstrguidservicetype: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Label(&self) -> ::windows::core::Result; - fn SetLabel(&self, bstrlabel: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn PathName(&self) -> ::windows::core::Result; - fn SetPathName(&self, bstrpathname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn FormatName(&self) -> ::windows::core::Result; - fn SetFormatName(&self, bstrformatname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn QueueGuid(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ServiceTypeGuid(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetServiceTypeGuid(&self, bstrguidservicetype: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Label(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetLabel(&self, bstrlabel: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn PathName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetPathName(&self, bstrpathname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn FormatName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetFormatName(&self, bstrformatname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn IsTransactional(&self) -> ::windows::core::Result; fn PrivLevel(&self) -> ::windows::core::Result; fn SetPrivLevel(&self, lprivlevel: i32) -> ::windows::core::Result<()>; @@ -5669,7 +5669,7 @@ impl ::windows::core::RuntimeName for IMSMQQueueInfo {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IMSMQQueueInfo_Vtbl { pub const fn new, Impl: IMSMQQueueInfo_Impl, const OFFSET: isize>() -> IMSMQQueueInfo_Vtbl { - unsafe extern "system" fn QueueGuid, Impl: IMSMQQueueInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrguidqueue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn QueueGuid, Impl: IMSMQQueueInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrguidqueue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.QueueGuid() { @@ -5680,7 +5680,7 @@ impl IMSMQQueueInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ServiceTypeGuid, Impl: IMSMQQueueInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrguidservicetype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ServiceTypeGuid, Impl: IMSMQQueueInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrguidservicetype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ServiceTypeGuid() { @@ -5691,12 +5691,12 @@ impl IMSMQQueueInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetServiceTypeGuid, Impl: IMSMQQueueInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrguidservicetype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetServiceTypeGuid, Impl: IMSMQQueueInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrguidservicetype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetServiceTypeGuid(::core::mem::transmute(&bstrguidservicetype)).into() } - unsafe extern "system" fn Label, Impl: IMSMQQueueInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrlabel: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Label, Impl: IMSMQQueueInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrlabel: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Label() { @@ -5707,12 +5707,12 @@ impl IMSMQQueueInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetLabel, Impl: IMSMQQueueInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrlabel: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetLabel, Impl: IMSMQQueueInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrlabel: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetLabel(::core::mem::transmute(&bstrlabel)).into() } - unsafe extern "system" fn PathName, Impl: IMSMQQueueInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpathname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PathName, Impl: IMSMQQueueInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpathname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PathName() { @@ -5723,12 +5723,12 @@ impl IMSMQQueueInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPathName, Impl: IMSMQQueueInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpathname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPathName, Impl: IMSMQQueueInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpathname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPathName(::core::mem::transmute(&bstrpathname)).into() } - unsafe extern "system" fn FormatName, Impl: IMSMQQueueInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrformatname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FormatName, Impl: IMSMQQueueInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrformatname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FormatName() { @@ -5739,7 +5739,7 @@ impl IMSMQQueueInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetFormatName, Impl: IMSMQQueueInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrformatname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetFormatName, Impl: IMSMQQueueInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrformatname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetFormatName(::core::mem::transmute(&bstrformatname)).into() @@ -5955,15 +5955,15 @@ impl IMSMQQueueInfo_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IMSMQQueueInfo2_Impl: Sized + super::Com::IDispatch_Impl { - fn QueueGuid(&self) -> ::windows::core::Result; - fn ServiceTypeGuid(&self) -> ::windows::core::Result; - fn SetServiceTypeGuid(&self, bstrguidservicetype: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Label(&self) -> ::windows::core::Result; - fn SetLabel(&self, bstrlabel: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn PathName(&self) -> ::windows::core::Result; - fn SetPathName(&self, bstrpathname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn FormatName(&self) -> ::windows::core::Result; - fn SetFormatName(&self, bstrformatname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn QueueGuid(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ServiceTypeGuid(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetServiceTypeGuid(&self, bstrguidservicetype: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Label(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetLabel(&self, bstrlabel: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn PathName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetPathName(&self, bstrpathname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn FormatName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetFormatName(&self, bstrformatname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn IsTransactional(&self) -> ::windows::core::Result; fn PrivLevel(&self) -> ::windows::core::Result; fn SetPrivLevel(&self, lprivlevel: i32) -> ::windows::core::Result<()>; @@ -5985,7 +5985,7 @@ pub trait IMSMQQueueInfo2_Impl: Sized + super::Com::IDispatch_Impl { fn Open(&self, access: i32, sharemode: i32) -> ::windows::core::Result; fn Refresh(&self) -> ::windows::core::Result<()>; fn Update(&self) -> ::windows::core::Result<()>; - fn PathNameDNS(&self) -> ::windows::core::Result; + fn PathNameDNS(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Properties(&self) -> ::windows::core::Result; fn Security(&self) -> ::windows::core::Result; fn SetSecurity(&self, varsecurity: &super::Com::VARIANT) -> ::windows::core::Result<()>; @@ -5995,7 +5995,7 @@ impl ::windows::core::RuntimeName for IMSMQQueueInfo2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IMSMQQueueInfo2_Vtbl { pub const fn new, Impl: IMSMQQueueInfo2_Impl, const OFFSET: isize>() -> IMSMQQueueInfo2_Vtbl { - unsafe extern "system" fn QueueGuid, Impl: IMSMQQueueInfo2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrguidqueue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn QueueGuid, Impl: IMSMQQueueInfo2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrguidqueue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.QueueGuid() { @@ -6006,7 +6006,7 @@ impl IMSMQQueueInfo2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ServiceTypeGuid, Impl: IMSMQQueueInfo2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrguidservicetype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ServiceTypeGuid, Impl: IMSMQQueueInfo2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrguidservicetype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ServiceTypeGuid() { @@ -6017,12 +6017,12 @@ impl IMSMQQueueInfo2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetServiceTypeGuid, Impl: IMSMQQueueInfo2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrguidservicetype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetServiceTypeGuid, Impl: IMSMQQueueInfo2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrguidservicetype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetServiceTypeGuid(::core::mem::transmute(&bstrguidservicetype)).into() } - unsafe extern "system" fn Label, Impl: IMSMQQueueInfo2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrlabel: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Label, Impl: IMSMQQueueInfo2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrlabel: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Label() { @@ -6033,12 +6033,12 @@ impl IMSMQQueueInfo2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetLabel, Impl: IMSMQQueueInfo2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrlabel: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetLabel, Impl: IMSMQQueueInfo2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrlabel: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetLabel(::core::mem::transmute(&bstrlabel)).into() } - unsafe extern "system" fn PathName, Impl: IMSMQQueueInfo2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpathname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PathName, Impl: IMSMQQueueInfo2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpathname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PathName() { @@ -6049,12 +6049,12 @@ impl IMSMQQueueInfo2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPathName, Impl: IMSMQQueueInfo2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpathname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPathName, Impl: IMSMQQueueInfo2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpathname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPathName(::core::mem::transmute(&bstrpathname)).into() } - unsafe extern "system" fn FormatName, Impl: IMSMQQueueInfo2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrformatname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FormatName, Impl: IMSMQQueueInfo2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrformatname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FormatName() { @@ -6065,7 +6065,7 @@ impl IMSMQQueueInfo2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetFormatName, Impl: IMSMQQueueInfo2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrformatname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetFormatName, Impl: IMSMQQueueInfo2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrformatname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetFormatName(::core::mem::transmute(&bstrformatname)).into() @@ -6241,7 +6241,7 @@ impl IMSMQQueueInfo2_Vtbl { let this = (*this).get_impl(); this.Update().into() } - unsafe extern "system" fn PathNameDNS, Impl: IMSMQQueueInfo2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpathnamedns: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PathNameDNS, Impl: IMSMQQueueInfo2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpathnamedns: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PathNameDNS() { @@ -6323,15 +6323,15 @@ impl IMSMQQueueInfo2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IMSMQQueueInfo3_Impl: Sized + super::Com::IDispatch_Impl { - fn QueueGuid(&self) -> ::windows::core::Result; - fn ServiceTypeGuid(&self) -> ::windows::core::Result; - fn SetServiceTypeGuid(&self, bstrguidservicetype: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Label(&self) -> ::windows::core::Result; - fn SetLabel(&self, bstrlabel: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn PathName(&self) -> ::windows::core::Result; - fn SetPathName(&self, bstrpathname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn FormatName(&self) -> ::windows::core::Result; - fn SetFormatName(&self, bstrformatname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn QueueGuid(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ServiceTypeGuid(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetServiceTypeGuid(&self, bstrguidservicetype: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Label(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetLabel(&self, bstrlabel: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn PathName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetPathName(&self, bstrpathname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn FormatName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetFormatName(&self, bstrformatname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn IsTransactional(&self) -> ::windows::core::Result; fn PrivLevel(&self) -> ::windows::core::Result; fn SetPrivLevel(&self, lprivlevel: i32) -> ::windows::core::Result<()>; @@ -6353,22 +6353,22 @@ pub trait IMSMQQueueInfo3_Impl: Sized + super::Com::IDispatch_Impl { fn Open(&self, access: i32, sharemode: i32) -> ::windows::core::Result; fn Refresh(&self) -> ::windows::core::Result<()>; fn Update(&self) -> ::windows::core::Result<()>; - fn PathNameDNS(&self) -> ::windows::core::Result; + fn PathNameDNS(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Properties(&self) -> ::windows::core::Result; fn Security(&self) -> ::windows::core::Result; fn SetSecurity(&self, varsecurity: &super::Com::VARIANT) -> ::windows::core::Result<()>; fn IsTransactional2(&self) -> ::windows::core::Result; fn IsWorldReadable2(&self) -> ::windows::core::Result; - fn MulticastAddress(&self) -> ::windows::core::Result; - fn SetMulticastAddress(&self, bstrmulticastaddress: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ADsPath(&self) -> ::windows::core::Result; + fn MulticastAddress(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetMulticastAddress(&self, bstrmulticastaddress: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ADsPath(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IMSMQQueueInfo3 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IMSMQQueueInfo3_Vtbl { pub const fn new, Impl: IMSMQQueueInfo3_Impl, const OFFSET: isize>() -> IMSMQQueueInfo3_Vtbl { - unsafe extern "system" fn QueueGuid, Impl: IMSMQQueueInfo3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrguidqueue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn QueueGuid, Impl: IMSMQQueueInfo3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrguidqueue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.QueueGuid() { @@ -6379,7 +6379,7 @@ impl IMSMQQueueInfo3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ServiceTypeGuid, Impl: IMSMQQueueInfo3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrguidservicetype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ServiceTypeGuid, Impl: IMSMQQueueInfo3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrguidservicetype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ServiceTypeGuid() { @@ -6390,12 +6390,12 @@ impl IMSMQQueueInfo3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetServiceTypeGuid, Impl: IMSMQQueueInfo3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrguidservicetype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetServiceTypeGuid, Impl: IMSMQQueueInfo3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrguidservicetype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetServiceTypeGuid(::core::mem::transmute(&bstrguidservicetype)).into() } - unsafe extern "system" fn Label, Impl: IMSMQQueueInfo3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrlabel: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Label, Impl: IMSMQQueueInfo3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrlabel: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Label() { @@ -6406,12 +6406,12 @@ impl IMSMQQueueInfo3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetLabel, Impl: IMSMQQueueInfo3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrlabel: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetLabel, Impl: IMSMQQueueInfo3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrlabel: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetLabel(::core::mem::transmute(&bstrlabel)).into() } - unsafe extern "system" fn PathName, Impl: IMSMQQueueInfo3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpathname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PathName, Impl: IMSMQQueueInfo3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpathname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PathName() { @@ -6422,12 +6422,12 @@ impl IMSMQQueueInfo3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPathName, Impl: IMSMQQueueInfo3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpathname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPathName, Impl: IMSMQQueueInfo3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpathname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPathName(::core::mem::transmute(&bstrpathname)).into() } - unsafe extern "system" fn FormatName, Impl: IMSMQQueueInfo3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrformatname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FormatName, Impl: IMSMQQueueInfo3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrformatname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FormatName() { @@ -6438,7 +6438,7 @@ impl IMSMQQueueInfo3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetFormatName, Impl: IMSMQQueueInfo3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrformatname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetFormatName, Impl: IMSMQQueueInfo3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrformatname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetFormatName(::core::mem::transmute(&bstrformatname)).into() @@ -6614,7 +6614,7 @@ impl IMSMQQueueInfo3_Vtbl { let this = (*this).get_impl(); this.Update().into() } - unsafe extern "system" fn PathNameDNS, Impl: IMSMQQueueInfo3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpathnamedns: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PathNameDNS, Impl: IMSMQQueueInfo3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpathnamedns: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PathNameDNS() { @@ -6674,7 +6674,7 @@ impl IMSMQQueueInfo3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn MulticastAddress, Impl: IMSMQQueueInfo3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrmulticastaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn MulticastAddress, Impl: IMSMQQueueInfo3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrmulticastaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.MulticastAddress() { @@ -6685,12 +6685,12 @@ impl IMSMQQueueInfo3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetMulticastAddress, Impl: IMSMQQueueInfo3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmulticastaddress: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetMulticastAddress, Impl: IMSMQQueueInfo3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmulticastaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetMulticastAddress(::core::mem::transmute(&bstrmulticastaddress)).into() } - unsafe extern "system" fn ADsPath, Impl: IMSMQQueueInfo3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstradspath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ADsPath, Impl: IMSMQQueueInfo3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstradspath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ADsPath() { @@ -6750,15 +6750,15 @@ impl IMSMQQueueInfo3_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IMSMQQueueInfo4_Impl: Sized + super::Com::IDispatch_Impl { - fn QueueGuid(&self) -> ::windows::core::Result; - fn ServiceTypeGuid(&self) -> ::windows::core::Result; - fn SetServiceTypeGuid(&self, bstrguidservicetype: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Label(&self) -> ::windows::core::Result; - fn SetLabel(&self, bstrlabel: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn PathName(&self) -> ::windows::core::Result; - fn SetPathName(&self, bstrpathname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn FormatName(&self) -> ::windows::core::Result; - fn SetFormatName(&self, bstrformatname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn QueueGuid(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ServiceTypeGuid(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetServiceTypeGuid(&self, bstrguidservicetype: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Label(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetLabel(&self, bstrlabel: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn PathName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetPathName(&self, bstrpathname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn FormatName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetFormatName(&self, bstrformatname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn IsTransactional(&self) -> ::windows::core::Result; fn PrivLevel(&self) -> ::windows::core::Result; fn SetPrivLevel(&self, lprivlevel: i32) -> ::windows::core::Result<()>; @@ -6780,22 +6780,22 @@ pub trait IMSMQQueueInfo4_Impl: Sized + super::Com::IDispatch_Impl { fn Open(&self, access: i32, sharemode: i32) -> ::windows::core::Result; fn Refresh(&self) -> ::windows::core::Result<()>; fn Update(&self) -> ::windows::core::Result<()>; - fn PathNameDNS(&self) -> ::windows::core::Result; + fn PathNameDNS(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Properties(&self) -> ::windows::core::Result; fn Security(&self) -> ::windows::core::Result; fn SetSecurity(&self, varsecurity: &super::Com::VARIANT) -> ::windows::core::Result<()>; fn IsTransactional2(&self) -> ::windows::core::Result; fn IsWorldReadable2(&self) -> ::windows::core::Result; - fn MulticastAddress(&self) -> ::windows::core::Result; - fn SetMulticastAddress(&self, bstrmulticastaddress: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ADsPath(&self) -> ::windows::core::Result; + fn MulticastAddress(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetMulticastAddress(&self, bstrmulticastaddress: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ADsPath(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IMSMQQueueInfo4 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IMSMQQueueInfo4_Vtbl { pub const fn new, Impl: IMSMQQueueInfo4_Impl, const OFFSET: isize>() -> IMSMQQueueInfo4_Vtbl { - unsafe extern "system" fn QueueGuid, Impl: IMSMQQueueInfo4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrguidqueue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn QueueGuid, Impl: IMSMQQueueInfo4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrguidqueue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.QueueGuid() { @@ -6806,7 +6806,7 @@ impl IMSMQQueueInfo4_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ServiceTypeGuid, Impl: IMSMQQueueInfo4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrguidservicetype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ServiceTypeGuid, Impl: IMSMQQueueInfo4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrguidservicetype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ServiceTypeGuid() { @@ -6817,12 +6817,12 @@ impl IMSMQQueueInfo4_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetServiceTypeGuid, Impl: IMSMQQueueInfo4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrguidservicetype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetServiceTypeGuid, Impl: IMSMQQueueInfo4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrguidservicetype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetServiceTypeGuid(::core::mem::transmute(&bstrguidservicetype)).into() } - unsafe extern "system" fn Label, Impl: IMSMQQueueInfo4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrlabel: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Label, Impl: IMSMQQueueInfo4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrlabel: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Label() { @@ -6833,12 +6833,12 @@ impl IMSMQQueueInfo4_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetLabel, Impl: IMSMQQueueInfo4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrlabel: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetLabel, Impl: IMSMQQueueInfo4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrlabel: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetLabel(::core::mem::transmute(&bstrlabel)).into() } - unsafe extern "system" fn PathName, Impl: IMSMQQueueInfo4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpathname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PathName, Impl: IMSMQQueueInfo4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpathname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PathName() { @@ -6849,12 +6849,12 @@ impl IMSMQQueueInfo4_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPathName, Impl: IMSMQQueueInfo4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpathname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPathName, Impl: IMSMQQueueInfo4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpathname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPathName(::core::mem::transmute(&bstrpathname)).into() } - unsafe extern "system" fn FormatName, Impl: IMSMQQueueInfo4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrformatname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FormatName, Impl: IMSMQQueueInfo4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrformatname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FormatName() { @@ -6865,7 +6865,7 @@ impl IMSMQQueueInfo4_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetFormatName, Impl: IMSMQQueueInfo4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrformatname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetFormatName, Impl: IMSMQQueueInfo4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrformatname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetFormatName(::core::mem::transmute(&bstrformatname)).into() @@ -7041,7 +7041,7 @@ impl IMSMQQueueInfo4_Vtbl { let this = (*this).get_impl(); this.Update().into() } - unsafe extern "system" fn PathNameDNS, Impl: IMSMQQueueInfo4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpathnamedns: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PathNameDNS, Impl: IMSMQQueueInfo4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpathnamedns: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PathNameDNS() { @@ -7101,7 +7101,7 @@ impl IMSMQQueueInfo4_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn MulticastAddress, Impl: IMSMQQueueInfo4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrmulticastaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn MulticastAddress, Impl: IMSMQQueueInfo4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrmulticastaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.MulticastAddress() { @@ -7112,12 +7112,12 @@ impl IMSMQQueueInfo4_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetMulticastAddress, Impl: IMSMQQueueInfo4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmulticastaddress: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetMulticastAddress, Impl: IMSMQQueueInfo4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmulticastaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetMulticastAddress(::core::mem::transmute(&bstrmulticastaddress)).into() } - unsafe extern "system" fn ADsPath, Impl: IMSMQQueueInfo4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstradspath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ADsPath, Impl: IMSMQQueueInfo4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstradspath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ADsPath() { diff --git a/crates/libs/windows/src/Windows/Win32/System/MessageQueuing/mod.rs b/crates/libs/windows/src/Windows/Win32/System/MessageQueuing/mod.rs index 0e0402c3e6..1d743799b4 100644 --- a/crates/libs/windows/src/Windows/Win32/System/MessageQueuing/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/MessageQueuing/mod.rs @@ -4,14 +4,9 @@ pub struct IMSMQApplication(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSMQApplication { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MachineIdOfMachineName<'a, P0>(&self, machinename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn MachineIdOfMachineName(&self, machinename: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).MachineIdOfMachineName)(::windows::core::Interface::as_raw(self), machinename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).MachineIdOfMachineName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(machinename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -80,10 +75,7 @@ unsafe impl ::windows::core::Interface for IMSMQApplication { #[doc(hidden)] pub struct IMSMQApplication_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub MachineIdOfMachineName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, machinename: ::core::mem::ManuallyDrop, pbstrguid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MachineIdOfMachineName: usize, + pub MachineIdOfMachineName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, machinename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrguid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_MessageQueuing\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -91,28 +83,18 @@ pub struct IMSMQApplication_Vtbl { pub struct IMSMQApplication2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSMQApplication2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MachineIdOfMachineName<'a, P0>(&self, machinename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn MachineIdOfMachineName(&self, machinename: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.MachineIdOfMachineName)(::windows::core::Interface::as_raw(self), machinename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.MachineIdOfMachineName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(machinename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn RegisterCertificate(&self, flags: &super::Com::VARIANT, externalcertificate: &super::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RegisterCertificate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(flags), ::core::mem::transmute(externalcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MachineNameOfMachineId<'a, P0>(&self, bstrguid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn MachineNameOfMachineId(&self, bstrguid: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).MachineNameOfMachineId)(::windows::core::Interface::as_raw(self), bstrguid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).MachineNameOfMachineId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrguid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn MSMQVersionMajor(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -225,10 +207,7 @@ pub struct IMSMQApplication2_Vtbl { pub RegisterCertificate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: *const super::Com::VARIANT, externalcertificate: *const super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] RegisterCertificate: usize, - #[cfg(feature = "Win32_Foundation")] - pub MachineNameOfMachineId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrguid: ::core::mem::ManuallyDrop, pbstrmachinename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MachineNameOfMachineId: usize, + pub MachineNameOfMachineId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrmachinename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub MSMQVersionMajor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psmsmqversionmajor: *mut i16) -> ::windows::core::HRESULT, pub MSMQVersionMinor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psmsmqversionminor: *mut i16) -> ::windows::core::HRESULT, pub MSMQVersionBuild: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psmsmqversionbuild: *mut i16) -> ::windows::core::HRESULT, @@ -244,28 +223,18 @@ pub struct IMSMQApplication2_Vtbl { pub struct IMSMQApplication3(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSMQApplication3 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MachineIdOfMachineName<'a, P0>(&self, machinename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn MachineIdOfMachineName(&self, machinename: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.MachineIdOfMachineName)(::windows::core::Interface::as_raw(self), machinename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.MachineIdOfMachineName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(machinename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub unsafe fn RegisterCertificate(&self, flags: &super::Com::VARIANT, externalcertificate: &super::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.RegisterCertificate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(flags), ::core::mem::transmute(externalcertificate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MachineNameOfMachineId<'a, P0>(&self, bstrguid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn MachineNameOfMachineId(&self, bstrguid: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.MachineNameOfMachineId)(::windows::core::Interface::as_raw(self), bstrguid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.MachineNameOfMachineId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrguid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn MSMQVersionMajor(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -301,11 +270,9 @@ impl IMSMQApplication3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).PrivateQueues)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DirectoryServiceServer(&self) -> ::windows::core::Result { + pub unsafe fn DirectoryServiceServer(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DirectoryServiceServer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DirectoryServiceServer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn IsConnected(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -317,19 +284,12 @@ impl IMSMQApplication3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).BytesInAllQueues)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMachine<'a, P0>(&self, bstrmachine: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetMachine)(::windows::core::Interface::as_raw(self), bstrmachine.into().abi()).ok() + pub unsafe fn SetMachine(&self, bstrmachine: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetMachine)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrmachine)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Machine(&self) -> ::windows::core::Result { + pub unsafe fn Machine(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Machine)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Machine)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Connect(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Connect)(::windows::core::Interface::as_raw(self)).ok() @@ -451,23 +411,14 @@ pub struct IMSMQApplication3_Vtbl { pub PrivateQueues: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvprivatequeues: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] PrivateQueues: usize, - #[cfg(feature = "Win32_Foundation")] - pub DirectoryServiceServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdirectoryserviceserver: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DirectoryServiceServer: usize, + pub DirectoryServiceServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdirectoryserviceserver: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub IsConnected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfisconnected: *mut i16) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub BytesInAllQueues: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvbytesinallqueues: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] BytesInAllQueues: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetMachine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmachine: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetMachine: usize, - #[cfg(feature = "Win32_Foundation")] - pub Machine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmachine: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Machine: usize, + pub SetMachine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmachine: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Machine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmachine: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Connect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Disconnect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Tidy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -868,47 +819,26 @@ impl IMSMQDestination { { (::windows::core::Interface::vtable(self).putref_IADs)(::windows::core::Interface::as_raw(self), piads.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ADsPath(&self) -> ::windows::core::Result { + pub unsafe fn ADsPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetADsPath<'a, P0>(&self, bstradspath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetADsPath)(::windows::core::Interface::as_raw(self), bstradspath.into().abi()).ok() + pub unsafe fn SetADsPath(&self, bstradspath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstradspath)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PathName(&self) -> ::windows::core::Result { + pub unsafe fn PathName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PathName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PathName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPathName<'a, P0>(&self, bstrpathname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPathName)(::windows::core::Interface::as_raw(self), bstrpathname.into().abi()).ok() + pub unsafe fn SetPathName(&self, bstrpathname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPathName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpathname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FormatName(&self) -> ::windows::core::Result { + pub unsafe fn FormatName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FormatName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FormatName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFormatName<'a, P0>(&self, bstrformatname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetFormatName)(::windows::core::Interface::as_raw(self), bstrformatname.into().abi()).ok() + pub unsafe fn SetFormatName(&self, bstrformatname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetFormatName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrformatname)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1008,30 +938,12 @@ pub struct IMSMQDestination_Vtbl { pub putref_IADs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, piads: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] putref_IADs: usize, - #[cfg(feature = "Win32_Foundation")] - pub ADsPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstradspath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ADsPath: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetADsPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstradspath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetADsPath: usize, - #[cfg(feature = "Win32_Foundation")] - pub PathName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpathname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PathName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPathName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpathname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPathName: usize, - #[cfg(feature = "Win32_Foundation")] - pub FormatName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrformatname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FormatName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetFormatName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrformatname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetFormatName: usize, + pub ADsPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstradspath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetADsPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstradspath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub PathName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpathname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetPathName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpathname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FormatName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrformatname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetFormatName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrformatname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Destinations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdestinations: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -1347,17 +1259,13 @@ impl IMSMQManagement { pub unsafe fn Init(&self, machine: &super::Com::VARIANT, pathname: &super::Com::VARIANT, formatname: &super::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Init)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(machine), ::core::mem::transmute(pathname), ::core::mem::transmute(formatname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FormatName(&self) -> ::windows::core::Result { + pub unsafe fn FormatName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FormatName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FormatName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Machine(&self) -> ::windows::core::Result { + pub unsafe fn Machine(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Machine)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Machine)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn MessageCount(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1456,14 +1364,8 @@ pub struct IMSMQManagement_Vtbl { pub Init: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, machine: *const super::Com::VARIANT, pathname: *const super::Com::VARIANT, formatname: *const super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Init: usize, - #[cfg(feature = "Win32_Foundation")] - pub FormatName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrformatname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FormatName: usize, - #[cfg(feature = "Win32_Foundation")] - pub Machine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmachine: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Machine: usize, + pub FormatName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrformatname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Machine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmachine: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub MessageCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plmessagecount: *mut i32) -> ::windows::core::HRESULT, pub ForeignStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plforeignstatus: *mut i32) -> ::windows::core::HRESULT, pub QueueType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plqueuetype: *mut i32) -> ::windows::core::HRESULT, @@ -1551,11 +1453,9 @@ impl IMSMQMessage { pub unsafe fn SetAppSpecific(&self, lappspecific: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetAppSpecific)(::windows::core::Interface::as_raw(self), lappspecific).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SourceMachineGuid(&self) -> ::windows::core::Result { + pub unsafe fn SourceMachineGuid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SourceMachineGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SourceMachineGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn BodyLength(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1616,19 +1516,12 @@ impl IMSMQMessage { pub unsafe fn SetAck(&self, lack: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetAck)(::windows::core::Interface::as_raw(self), lack).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Label(&self) -> ::windows::core::Result { + pub unsafe fn Label(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Label)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Label)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLabel<'a, P0>(&self, bstrlabel: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetLabel)(::windows::core::Interface::as_raw(self), bstrlabel.into().abi()).ok() + pub unsafe fn SetLabel(&self, bstrlabel: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetLabel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrlabel)).ok() } pub unsafe fn MaxTimeToReachQueue(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1805,10 +1698,7 @@ pub struct IMSMQMessage_Vtbl { putref_ResponseQueueInfo: usize, pub AppSpecific: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plappspecific: *mut i32) -> ::windows::core::HRESULT, pub SetAppSpecific: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lappspecific: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SourceMachineGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrguidsrcmachine: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SourceMachineGuid: usize, + pub SourceMachineGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrguidsrcmachine: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub BodyLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcbbody: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub Body: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvarbody: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, @@ -1840,14 +1730,8 @@ pub struct IMSMQMessage_Vtbl { SetCorrelationId: usize, pub Ack: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plack: *mut i32) -> ::windows::core::HRESULT, pub SetAck: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lack: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Label: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrlabel: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Label: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrlabel: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetLabel: usize, + pub Label: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrlabel: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrlabel: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub MaxTimeToReachQueue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plmaxtimetoreachqueue: *mut i32) -> ::windows::core::HRESULT, pub SetMaxTimeToReachQueue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lmaxtimetoreachqueue: i32) -> ::windows::core::HRESULT, pub MaxTimeToReceive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plmaxtimetoreceive: *mut i32) -> ::windows::core::HRESULT, @@ -1965,11 +1849,9 @@ impl IMSMQMessage2 { pub unsafe fn SetAppSpecific(&self, lappspecific: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetAppSpecific)(::windows::core::Interface::as_raw(self), lappspecific).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SourceMachineGuid(&self) -> ::windows::core::Result { + pub unsafe fn SourceMachineGuid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SourceMachineGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SourceMachineGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn BodyLength(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2030,19 +1912,12 @@ impl IMSMQMessage2 { pub unsafe fn SetAck(&self, lack: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetAck)(::windows::core::Interface::as_raw(self), lack).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Label(&self) -> ::windows::core::Result { + pub unsafe fn Label(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Label)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Label)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLabel<'a, P0>(&self, bstrlabel: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetLabel)(::windows::core::Interface::as_raw(self), bstrlabel.into().abi()).ok() + pub unsafe fn SetLabel(&self, bstrlabel: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetLabel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrlabel)).ok() } pub unsafe fn MaxTimeToReachQueue(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2146,19 +2021,12 @@ impl IMSMQMessage2 { { (::windows::core::Interface::vtable(self).SetExtension)(::windows::core::Interface::as_raw(self), varextension.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ConnectorTypeGuid(&self) -> ::windows::core::Result { + pub unsafe fn ConnectorTypeGuid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ConnectorTypeGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ConnectorTypeGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetConnectorTypeGuid<'a, P0>(&self, bstrguidconnectortype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetConnectorTypeGuid)(::windows::core::Interface::as_raw(self), bstrguidconnectortype.into().abi()).ok() + pub unsafe fn SetConnectorTypeGuid(&self, bstrguidconnectortype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetConnectorTypeGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrguidconnectortype)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2201,19 +2069,12 @@ impl IMSMQMessage2 { pub unsafe fn SetAuthenticationProviderType(&self, lauthprovtype: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetAuthenticationProviderType)(::windows::core::Interface::as_raw(self), lauthprovtype).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AuthenticationProviderName(&self) -> ::windows::core::Result { + pub unsafe fn AuthenticationProviderName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AuthenticationProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AuthenticationProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetAuthenticationProviderName<'a, P0>(&self, bstrauthprovname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetAuthenticationProviderName)(::windows::core::Interface::as_raw(self), bstrauthprovname.into().abi()).ok() + pub unsafe fn SetAuthenticationProviderName(&self, bstrauthprovname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetAuthenticationProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrauthprovname)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2373,10 +2234,7 @@ pub struct IMSMQMessage2_Vtbl { putref_ResponseQueueInfo_v1: usize, pub AppSpecific: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plappspecific: *mut i32) -> ::windows::core::HRESULT, pub SetAppSpecific: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lappspecific: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SourceMachineGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrguidsrcmachine: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SourceMachineGuid: usize, + pub SourceMachineGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrguidsrcmachine: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub BodyLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcbbody: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub Body: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvarbody: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, @@ -2408,14 +2266,8 @@ pub struct IMSMQMessage2_Vtbl { SetCorrelationId: usize, pub Ack: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plack: *mut i32) -> ::windows::core::HRESULT, pub SetAck: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lack: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Label: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrlabel: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Label: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrlabel: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetLabel: usize, + pub Label: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrlabel: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrlabel: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub MaxTimeToReachQueue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plmaxtimetoreachqueue: *mut i32) -> ::windows::core::HRESULT, pub SetMaxTimeToReachQueue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lmaxtimetoreachqueue: i32) -> ::windows::core::HRESULT, pub MaxTimeToReceive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plmaxtimetoreceive: *mut i32) -> ::windows::core::HRESULT, @@ -2464,14 +2316,8 @@ pub struct IMSMQMessage2_Vtbl { pub SetExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varextension: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SetExtension: usize, - #[cfg(feature = "Win32_Foundation")] - pub ConnectorTypeGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrguidconnectortype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ConnectorTypeGuid: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetConnectorTypeGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrguidconnectortype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetConnectorTypeGuid: usize, + pub ConnectorTypeGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrguidconnectortype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetConnectorTypeGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrguidconnectortype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub TransactionStatusQueueInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppqinfoxactstatus: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -2494,14 +2340,8 @@ pub struct IMSMQMessage2_Vtbl { SetSignature: usize, pub AuthenticationProviderType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plauthprovtype: *mut i32) -> ::windows::core::HRESULT, pub SetAuthenticationProviderType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lauthprovtype: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub AuthenticationProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrauthprovname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AuthenticationProviderName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetAuthenticationProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrauthprovname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetAuthenticationProviderName: usize, + pub AuthenticationProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrauthprovname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetAuthenticationProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrauthprovname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub SetSenderId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varsenderid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -2613,11 +2453,9 @@ impl IMSMQMessage3 { pub unsafe fn SetAppSpecific(&self, lappspecific: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetAppSpecific)(::windows::core::Interface::as_raw(self), lappspecific).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SourceMachineGuid(&self) -> ::windows::core::Result { + pub unsafe fn SourceMachineGuid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SourceMachineGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SourceMachineGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn BodyLength(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2678,19 +2516,12 @@ impl IMSMQMessage3 { pub unsafe fn SetAck(&self, lack: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetAck)(::windows::core::Interface::as_raw(self), lack).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Label(&self) -> ::windows::core::Result { + pub unsafe fn Label(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Label)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Label)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLabel<'a, P0>(&self, bstrlabel: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetLabel)(::windows::core::Interface::as_raw(self), bstrlabel.into().abi()).ok() + pub unsafe fn SetLabel(&self, bstrlabel: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetLabel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrlabel)).ok() } pub unsafe fn MaxTimeToReachQueue(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2794,19 +2625,12 @@ impl IMSMQMessage3 { { (::windows::core::Interface::vtable(self).SetExtension)(::windows::core::Interface::as_raw(self), varextension.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ConnectorTypeGuid(&self) -> ::windows::core::Result { + pub unsafe fn ConnectorTypeGuid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ConnectorTypeGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ConnectorTypeGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetConnectorTypeGuid<'a, P0>(&self, bstrguidconnectortype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetConnectorTypeGuid)(::windows::core::Interface::as_raw(self), bstrguidconnectortype.into().abi()).ok() + pub unsafe fn SetConnectorTypeGuid(&self, bstrguidconnectortype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetConnectorTypeGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrguidconnectortype)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2849,19 +2673,12 @@ impl IMSMQMessage3 { pub unsafe fn SetAuthenticationProviderType(&self, lauthprovtype: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetAuthenticationProviderType)(::windows::core::Interface::as_raw(self), lauthprovtype).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AuthenticationProviderName(&self) -> ::windows::core::Result { + pub unsafe fn AuthenticationProviderName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AuthenticationProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AuthenticationProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetAuthenticationProviderName<'a, P0>(&self, bstrauthprovname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetAuthenticationProviderName)(::windows::core::Interface::as_raw(self), bstrauthprovname.into().abi()).ok() + pub unsafe fn SetAuthenticationProviderName(&self, bstrauthprovname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetAuthenticationProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrauthprovname)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2999,11 +2816,9 @@ impl IMSMQMessage3 { pub unsafe fn AttachCurrentSecurityContext2(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).AttachCurrentSecurityContext2)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SoapEnvelope(&self) -> ::windows::core::Result { + pub unsafe fn SoapEnvelope(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SoapEnvelope)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SoapEnvelope)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3011,21 +2826,11 @@ impl IMSMQMessage3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CompoundMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSoapHeader<'a, P0>(&self, bstrsoapheader: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSoapHeader)(::windows::core::Interface::as_raw(self), bstrsoapheader.into().abi()).ok() + pub unsafe fn SetSoapHeader(&self, bstrsoapheader: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSoapHeader)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsoapheader)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSoapBody<'a, P0>(&self, bstrsoapbody: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSoapBody)(::windows::core::Interface::as_raw(self), bstrsoapbody.into().abi()).ok() + pub unsafe fn SetSoapBody(&self, bstrsoapbody: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSoapBody)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsoapbody)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3118,10 +2923,7 @@ pub struct IMSMQMessage3_Vtbl { putref_ResponseQueueInfo_v1: usize, pub AppSpecific: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plappspecific: *mut i32) -> ::windows::core::HRESULT, pub SetAppSpecific: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lappspecific: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SourceMachineGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrguidsrcmachine: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SourceMachineGuid: usize, + pub SourceMachineGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrguidsrcmachine: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub BodyLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcbbody: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub Body: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvarbody: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, @@ -3153,14 +2955,8 @@ pub struct IMSMQMessage3_Vtbl { SetCorrelationId: usize, pub Ack: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plack: *mut i32) -> ::windows::core::HRESULT, pub SetAck: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lack: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Label: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrlabel: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Label: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrlabel: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetLabel: usize, + pub Label: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrlabel: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrlabel: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub MaxTimeToReachQueue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plmaxtimetoreachqueue: *mut i32) -> ::windows::core::HRESULT, pub SetMaxTimeToReachQueue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lmaxtimetoreachqueue: i32) -> ::windows::core::HRESULT, pub MaxTimeToReceive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plmaxtimetoreceive: *mut i32) -> ::windows::core::HRESULT, @@ -3209,14 +3005,8 @@ pub struct IMSMQMessage3_Vtbl { pub SetExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varextension: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SetExtension: usize, - #[cfg(feature = "Win32_Foundation")] - pub ConnectorTypeGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrguidconnectortype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ConnectorTypeGuid: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetConnectorTypeGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrguidconnectortype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetConnectorTypeGuid: usize, + pub ConnectorTypeGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrguidconnectortype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetConnectorTypeGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrguidconnectortype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub TransactionStatusQueueInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppqinfoxactstatus: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -3239,14 +3029,8 @@ pub struct IMSMQMessage3_Vtbl { SetSignature: usize, pub AuthenticationProviderType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plauthprovtype: *mut i32) -> ::windows::core::HRESULT, pub SetAuthenticationProviderType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lauthprovtype: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub AuthenticationProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrauthprovname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AuthenticationProviderName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetAuthenticationProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrauthprovname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetAuthenticationProviderName: usize, + pub AuthenticationProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrauthprovname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetAuthenticationProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrauthprovname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub SetSenderId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varsenderid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -3316,22 +3100,13 @@ pub struct IMSMQMessage3_Vtbl { pub IsFirstInTransaction2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pisfirstinxact: *mut i16) -> ::windows::core::HRESULT, pub IsLastInTransaction2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pislastinxact: *mut i16) -> ::windows::core::HRESULT, pub AttachCurrentSecurityContext2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SoapEnvelope: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsoapenvelope: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SoapEnvelope: usize, + pub SoapEnvelope: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsoapenvelope: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub CompoundMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvarcompoundmessage: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] CompoundMessage: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSoapHeader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsoapheader: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSoapHeader: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSoapBody: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsoapbody: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSoapBody: usize, + pub SetSoapHeader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsoapheader: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSoapBody: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsoapbody: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_MessageQueuing\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3410,11 +3185,9 @@ impl IMSMQMessage4 { pub unsafe fn SetAppSpecific(&self, lappspecific: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetAppSpecific)(::windows::core::Interface::as_raw(self), lappspecific).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SourceMachineGuid(&self) -> ::windows::core::Result { + pub unsafe fn SourceMachineGuid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SourceMachineGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SourceMachineGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn BodyLength(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3475,19 +3248,12 @@ impl IMSMQMessage4 { pub unsafe fn SetAck(&self, lack: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetAck)(::windows::core::Interface::as_raw(self), lack).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Label(&self) -> ::windows::core::Result { + pub unsafe fn Label(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Label)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Label)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLabel<'a, P0>(&self, bstrlabel: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetLabel)(::windows::core::Interface::as_raw(self), bstrlabel.into().abi()).ok() + pub unsafe fn SetLabel(&self, bstrlabel: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetLabel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrlabel)).ok() } pub unsafe fn MaxTimeToReachQueue(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3591,19 +3357,12 @@ impl IMSMQMessage4 { { (::windows::core::Interface::vtable(self).SetExtension)(::windows::core::Interface::as_raw(self), varextension.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ConnectorTypeGuid(&self) -> ::windows::core::Result { + pub unsafe fn ConnectorTypeGuid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ConnectorTypeGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ConnectorTypeGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetConnectorTypeGuid<'a, P0>(&self, bstrguidconnectortype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetConnectorTypeGuid)(::windows::core::Interface::as_raw(self), bstrguidconnectortype.into().abi()).ok() + pub unsafe fn SetConnectorTypeGuid(&self, bstrguidconnectortype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetConnectorTypeGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrguidconnectortype)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3646,19 +3405,12 @@ impl IMSMQMessage4 { pub unsafe fn SetAuthenticationProviderType(&self, lauthprovtype: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetAuthenticationProviderType)(::windows::core::Interface::as_raw(self), lauthprovtype).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AuthenticationProviderName(&self) -> ::windows::core::Result { + pub unsafe fn AuthenticationProviderName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AuthenticationProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AuthenticationProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetAuthenticationProviderName<'a, P0>(&self, bstrauthprovname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetAuthenticationProviderName)(::windows::core::Interface::as_raw(self), bstrauthprovname.into().abi()).ok() + pub unsafe fn SetAuthenticationProviderName(&self, bstrauthprovname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetAuthenticationProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrauthprovname)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3796,11 +3548,9 @@ impl IMSMQMessage4 { pub unsafe fn AttachCurrentSecurityContext2(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).AttachCurrentSecurityContext2)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SoapEnvelope(&self) -> ::windows::core::Result { + pub unsafe fn SoapEnvelope(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SoapEnvelope)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SoapEnvelope)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3808,21 +3558,11 @@ impl IMSMQMessage4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CompoundMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSoapHeader<'a, P0>(&self, bstrsoapheader: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSoapHeader)(::windows::core::Interface::as_raw(self), bstrsoapheader.into().abi()).ok() + pub unsafe fn SetSoapHeader(&self, bstrsoapheader: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSoapHeader)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsoapheader)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSoapBody<'a, P0>(&self, bstrsoapbody: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSoapBody)(::windows::core::Interface::as_raw(self), bstrsoapbody.into().abi()).ok() + pub unsafe fn SetSoapBody(&self, bstrsoapbody: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSoapBody)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsoapbody)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3915,10 +3655,7 @@ pub struct IMSMQMessage4_Vtbl { putref_ResponseQueueInfo_v1: usize, pub AppSpecific: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plappspecific: *mut i32) -> ::windows::core::HRESULT, pub SetAppSpecific: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lappspecific: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SourceMachineGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrguidsrcmachine: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SourceMachineGuid: usize, + pub SourceMachineGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrguidsrcmachine: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub BodyLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcbbody: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub Body: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvarbody: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, @@ -3950,14 +3687,8 @@ pub struct IMSMQMessage4_Vtbl { SetCorrelationId: usize, pub Ack: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plack: *mut i32) -> ::windows::core::HRESULT, pub SetAck: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lack: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Label: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrlabel: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Label: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrlabel: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetLabel: usize, + pub Label: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrlabel: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrlabel: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub MaxTimeToReachQueue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plmaxtimetoreachqueue: *mut i32) -> ::windows::core::HRESULT, pub SetMaxTimeToReachQueue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lmaxtimetoreachqueue: i32) -> ::windows::core::HRESULT, pub MaxTimeToReceive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plmaxtimetoreceive: *mut i32) -> ::windows::core::HRESULT, @@ -4006,14 +3737,8 @@ pub struct IMSMQMessage4_Vtbl { pub SetExtension: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varextension: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SetExtension: usize, - #[cfg(feature = "Win32_Foundation")] - pub ConnectorTypeGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrguidconnectortype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ConnectorTypeGuid: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetConnectorTypeGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrguidconnectortype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetConnectorTypeGuid: usize, + pub ConnectorTypeGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrguidconnectortype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetConnectorTypeGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrguidconnectortype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub TransactionStatusQueueInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppqinfoxactstatus: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -4036,14 +3761,8 @@ pub struct IMSMQMessage4_Vtbl { SetSignature: usize, pub AuthenticationProviderType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plauthprovtype: *mut i32) -> ::windows::core::HRESULT, pub SetAuthenticationProviderType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lauthprovtype: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub AuthenticationProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrauthprovname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AuthenticationProviderName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetAuthenticationProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrauthprovname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetAuthenticationProviderName: usize, + pub AuthenticationProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrauthprovname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetAuthenticationProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrauthprovname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub SetSenderId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varsenderid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -4113,22 +3832,13 @@ pub struct IMSMQMessage4_Vtbl { pub IsFirstInTransaction2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pisfirstinxact: *mut i16) -> ::windows::core::HRESULT, pub IsLastInTransaction2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pislastinxact: *mut i16) -> ::windows::core::HRESULT, pub AttachCurrentSecurityContext2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SoapEnvelope: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsoapenvelope: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SoapEnvelope: usize, + pub SoapEnvelope: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsoapenvelope: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub CompoundMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvarcompoundmessage: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] CompoundMessage: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSoapHeader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsoapheader: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSoapHeader: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSoapBody: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsoapbody: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSoapBody: usize, + pub SetSoapHeader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsoapheader: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSoapBody: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsoapbody: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_MessageQueuing\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4141,17 +3851,13 @@ impl IMSMQOutgoingQueueManagement { pub unsafe fn Init(&self, machine: &super::Com::VARIANT, pathname: &super::Com::VARIANT, formatname: &super::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Init)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(machine), ::core::mem::transmute(pathname), ::core::mem::transmute(formatname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FormatName(&self) -> ::windows::core::Result { + pub unsafe fn FormatName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FormatName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.FormatName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Machine(&self) -> ::windows::core::Result { + pub unsafe fn Machine(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Machine)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Machine)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn MessageCount(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6086,67 +5792,37 @@ pub struct IMSMQQueue4_Vtbl { pub struct IMSMQQueueInfo(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSMQQueueInfo { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn QueueGuid(&self) -> ::windows::core::Result { + pub unsafe fn QueueGuid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).QueueGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).QueueGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ServiceTypeGuid(&self) -> ::windows::core::Result { + pub unsafe fn ServiceTypeGuid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ServiceTypeGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ServiceTypeGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetServiceTypeGuid<'a, P0>(&self, bstrguidservicetype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetServiceTypeGuid)(::windows::core::Interface::as_raw(self), bstrguidservicetype.into().abi()).ok() + pub unsafe fn SetServiceTypeGuid(&self, bstrguidservicetype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetServiceTypeGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrguidservicetype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Label(&self) -> ::windows::core::Result { + pub unsafe fn Label(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Label)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Label)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLabel<'a, P0>(&self, bstrlabel: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetLabel)(::windows::core::Interface::as_raw(self), bstrlabel.into().abi()).ok() + pub unsafe fn SetLabel(&self, bstrlabel: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetLabel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrlabel)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PathName(&self) -> ::windows::core::Result { + pub unsafe fn PathName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PathName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PathName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPathName<'a, P0>(&self, bstrpathname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPathName)(::windows::core::Interface::as_raw(self), bstrpathname.into().abi()).ok() + pub unsafe fn SetPathName(&self, bstrpathname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPathName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpathname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FormatName(&self) -> ::windows::core::Result { + pub unsafe fn FormatName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FormatName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FormatName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFormatName<'a, P0>(&self, bstrformatname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetFormatName)(::windows::core::Interface::as_raw(self), bstrformatname.into().abi()).ok() + pub unsafe fn SetFormatName(&self, bstrformatname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetFormatName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrformatname)).ok() } pub unsafe fn IsTransactional(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6297,42 +5973,15 @@ unsafe impl ::windows::core::Interface for IMSMQQueueInfo { #[doc(hidden)] pub struct IMSMQQueueInfo_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub QueueGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrguidqueue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - QueueGuid: usize, - #[cfg(feature = "Win32_Foundation")] - pub ServiceTypeGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrguidservicetype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ServiceTypeGuid: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetServiceTypeGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrguidservicetype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetServiceTypeGuid: usize, - #[cfg(feature = "Win32_Foundation")] - pub Label: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrlabel: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Label: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrlabel: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetLabel: usize, - #[cfg(feature = "Win32_Foundation")] - pub PathName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpathname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PathName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPathName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpathname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPathName: usize, - #[cfg(feature = "Win32_Foundation")] - pub FormatName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrformatname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FormatName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetFormatName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrformatname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetFormatName: usize, + pub QueueGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrguidqueue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ServiceTypeGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrguidservicetype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetServiceTypeGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrguidservicetype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Label: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrlabel: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrlabel: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub PathName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpathname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetPathName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpathname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FormatName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrformatname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetFormatName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrformatname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub IsTransactional: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pistransactional: *mut i16) -> ::windows::core::HRESULT, pub PrivLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plprivlevel: *mut i32) -> ::windows::core::HRESULT, pub SetPrivLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lprivlevel: i32) -> ::windows::core::HRESULT, @@ -6373,67 +6022,37 @@ pub struct IMSMQQueueInfo_Vtbl { pub struct IMSMQQueueInfo2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSMQQueueInfo2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn QueueGuid(&self) -> ::windows::core::Result { + pub unsafe fn QueueGuid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).QueueGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).QueueGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ServiceTypeGuid(&self) -> ::windows::core::Result { + pub unsafe fn ServiceTypeGuid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ServiceTypeGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ServiceTypeGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetServiceTypeGuid<'a, P0>(&self, bstrguidservicetype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetServiceTypeGuid)(::windows::core::Interface::as_raw(self), bstrguidservicetype.into().abi()).ok() + pub unsafe fn SetServiceTypeGuid(&self, bstrguidservicetype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetServiceTypeGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrguidservicetype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Label(&self) -> ::windows::core::Result { + pub unsafe fn Label(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Label)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Label)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLabel<'a, P0>(&self, bstrlabel: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetLabel)(::windows::core::Interface::as_raw(self), bstrlabel.into().abi()).ok() + pub unsafe fn SetLabel(&self, bstrlabel: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetLabel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrlabel)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PathName(&self) -> ::windows::core::Result { + pub unsafe fn PathName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PathName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PathName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPathName<'a, P0>(&self, bstrpathname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPathName)(::windows::core::Interface::as_raw(self), bstrpathname.into().abi()).ok() + pub unsafe fn SetPathName(&self, bstrpathname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPathName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpathname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FormatName(&self) -> ::windows::core::Result { + pub unsafe fn FormatName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FormatName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FormatName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFormatName<'a, P0>(&self, bstrformatname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetFormatName)(::windows::core::Interface::as_raw(self), bstrformatname.into().abi()).ok() + pub unsafe fn SetFormatName(&self, bstrformatname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetFormatName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrformatname)).ok() } pub unsafe fn IsTransactional(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6517,11 +6136,9 @@ impl IMSMQQueueInfo2 { pub unsafe fn Update(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Update)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PathNameDNS(&self) -> ::windows::core::Result { + pub unsafe fn PathNameDNS(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PathNameDNS)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PathNameDNS)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6610,42 +6227,15 @@ unsafe impl ::windows::core::Interface for IMSMQQueueInfo2 { #[doc(hidden)] pub struct IMSMQQueueInfo2_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub QueueGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrguidqueue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - QueueGuid: usize, - #[cfg(feature = "Win32_Foundation")] - pub ServiceTypeGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrguidservicetype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ServiceTypeGuid: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetServiceTypeGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrguidservicetype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetServiceTypeGuid: usize, - #[cfg(feature = "Win32_Foundation")] - pub Label: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrlabel: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Label: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrlabel: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetLabel: usize, - #[cfg(feature = "Win32_Foundation")] - pub PathName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpathname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PathName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPathName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpathname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPathName: usize, - #[cfg(feature = "Win32_Foundation")] - pub FormatName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrformatname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FormatName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetFormatName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrformatname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetFormatName: usize, + pub QueueGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrguidqueue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ServiceTypeGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrguidservicetype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetServiceTypeGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrguidservicetype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Label: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrlabel: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrlabel: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub PathName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpathname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetPathName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpathname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FormatName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrformatname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetFormatName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrformatname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub IsTransactional: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pistransactional: *mut i16) -> ::windows::core::HRESULT, pub PrivLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plprivlevel: *mut i32) -> ::windows::core::HRESULT, pub SetPrivLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lprivlevel: i32) -> ::windows::core::HRESULT, @@ -6679,10 +6269,7 @@ pub struct IMSMQQueueInfo2_Vtbl { Open: usize, pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Update: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub PathNameDNS: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpathnamedns: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PathNameDNS: usize, + pub PathNameDNS: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpathnamedns: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Properties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcolproperties: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -6702,67 +6289,37 @@ pub struct IMSMQQueueInfo2_Vtbl { pub struct IMSMQQueueInfo3(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSMQQueueInfo3 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn QueueGuid(&self) -> ::windows::core::Result { + pub unsafe fn QueueGuid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).QueueGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).QueueGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ServiceTypeGuid(&self) -> ::windows::core::Result { + pub unsafe fn ServiceTypeGuid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ServiceTypeGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ServiceTypeGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetServiceTypeGuid<'a, P0>(&self, bstrguidservicetype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetServiceTypeGuid)(::windows::core::Interface::as_raw(self), bstrguidservicetype.into().abi()).ok() + pub unsafe fn SetServiceTypeGuid(&self, bstrguidservicetype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetServiceTypeGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrguidservicetype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Label(&self) -> ::windows::core::Result { + pub unsafe fn Label(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Label)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Label)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLabel<'a, P0>(&self, bstrlabel: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetLabel)(::windows::core::Interface::as_raw(self), bstrlabel.into().abi()).ok() + pub unsafe fn SetLabel(&self, bstrlabel: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetLabel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrlabel)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PathName(&self) -> ::windows::core::Result { + pub unsafe fn PathName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PathName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PathName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPathName<'a, P0>(&self, bstrpathname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPathName)(::windows::core::Interface::as_raw(self), bstrpathname.into().abi()).ok() + pub unsafe fn SetPathName(&self, bstrpathname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPathName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpathname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FormatName(&self) -> ::windows::core::Result { + pub unsafe fn FormatName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FormatName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FormatName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFormatName<'a, P0>(&self, bstrformatname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetFormatName)(::windows::core::Interface::as_raw(self), bstrformatname.into().abi()).ok() + pub unsafe fn SetFormatName(&self, bstrformatname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetFormatName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrformatname)).ok() } pub unsafe fn IsTransactional(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6846,11 +6403,9 @@ impl IMSMQQueueInfo3 { pub unsafe fn Update(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Update)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PathNameDNS(&self) -> ::windows::core::Result { + pub unsafe fn PathNameDNS(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PathNameDNS)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PathNameDNS)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6880,25 +6435,16 @@ impl IMSMQQueueInfo3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).IsWorldReadable2)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MulticastAddress(&self) -> ::windows::core::Result { + pub unsafe fn MulticastAddress(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).MulticastAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).MulticastAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMulticastAddress<'a, P0>(&self, bstrmulticastaddress: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetMulticastAddress)(::windows::core::Interface::as_raw(self), bstrmulticastaddress.into().abi()).ok() + pub unsafe fn SetMulticastAddress(&self, bstrmulticastaddress: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetMulticastAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrmulticastaddress)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ADsPath(&self) -> ::windows::core::Result { + pub unsafe fn ADsPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -6967,42 +6513,15 @@ unsafe impl ::windows::core::Interface for IMSMQQueueInfo3 { #[doc(hidden)] pub struct IMSMQQueueInfo3_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub QueueGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrguidqueue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - QueueGuid: usize, - #[cfg(feature = "Win32_Foundation")] - pub ServiceTypeGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrguidservicetype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ServiceTypeGuid: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetServiceTypeGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrguidservicetype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetServiceTypeGuid: usize, - #[cfg(feature = "Win32_Foundation")] - pub Label: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrlabel: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Label: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrlabel: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetLabel: usize, - #[cfg(feature = "Win32_Foundation")] - pub PathName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpathname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PathName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPathName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpathname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPathName: usize, - #[cfg(feature = "Win32_Foundation")] - pub FormatName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrformatname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FormatName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetFormatName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrformatname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetFormatName: usize, + pub QueueGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrguidqueue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ServiceTypeGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrguidservicetype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetServiceTypeGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrguidservicetype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Label: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrlabel: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrlabel: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub PathName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpathname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetPathName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpathname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FormatName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrformatname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetFormatName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrformatname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub IsTransactional: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pistransactional: *mut i16) -> ::windows::core::HRESULT, pub PrivLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plprivlevel: *mut i32) -> ::windows::core::HRESULT, pub SetPrivLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lprivlevel: i32) -> ::windows::core::HRESULT, @@ -7036,10 +6555,7 @@ pub struct IMSMQQueueInfo3_Vtbl { Open: usize, pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Update: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub PathNameDNS: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpathnamedns: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PathNameDNS: usize, + pub PathNameDNS: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpathnamedns: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Properties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcolproperties: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -7054,18 +6570,9 @@ pub struct IMSMQQueueInfo3_Vtbl { SetSecurity: usize, pub IsTransactional2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pistransactional: *mut i16) -> ::windows::core::HRESULT, pub IsWorldReadable2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pisworldreadable: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub MulticastAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmulticastaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MulticastAddress: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetMulticastAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmulticastaddress: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetMulticastAddress: usize, - #[cfg(feature = "Win32_Foundation")] - pub ADsPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstradspath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ADsPath: usize, + pub MulticastAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmulticastaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetMulticastAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmulticastaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ADsPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstradspath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_MessageQueuing\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7073,67 +6580,37 @@ pub struct IMSMQQueueInfo3_Vtbl { pub struct IMSMQQueueInfo4(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMSMQQueueInfo4 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn QueueGuid(&self) -> ::windows::core::Result { + pub unsafe fn QueueGuid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).QueueGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).QueueGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ServiceTypeGuid(&self) -> ::windows::core::Result { + pub unsafe fn ServiceTypeGuid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ServiceTypeGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ServiceTypeGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetServiceTypeGuid<'a, P0>(&self, bstrguidservicetype: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetServiceTypeGuid)(::windows::core::Interface::as_raw(self), bstrguidservicetype.into().abi()).ok() + pub unsafe fn SetServiceTypeGuid(&self, bstrguidservicetype: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetServiceTypeGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrguidservicetype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Label(&self) -> ::windows::core::Result { + pub unsafe fn Label(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Label)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Label)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLabel<'a, P0>(&self, bstrlabel: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetLabel)(::windows::core::Interface::as_raw(self), bstrlabel.into().abi()).ok() + pub unsafe fn SetLabel(&self, bstrlabel: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetLabel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrlabel)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PathName(&self) -> ::windows::core::Result { + pub unsafe fn PathName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PathName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PathName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPathName<'a, P0>(&self, bstrpathname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPathName)(::windows::core::Interface::as_raw(self), bstrpathname.into().abi()).ok() + pub unsafe fn SetPathName(&self, bstrpathname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPathName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpathname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FormatName(&self) -> ::windows::core::Result { + pub unsafe fn FormatName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FormatName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FormatName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFormatName<'a, P0>(&self, bstrformatname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetFormatName)(::windows::core::Interface::as_raw(self), bstrformatname.into().abi()).ok() + pub unsafe fn SetFormatName(&self, bstrformatname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetFormatName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrformatname)).ok() } pub unsafe fn IsTransactional(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7217,11 +6694,9 @@ impl IMSMQQueueInfo4 { pub unsafe fn Update(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Update)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PathNameDNS(&self) -> ::windows::core::Result { + pub unsafe fn PathNameDNS(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PathNameDNS)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PathNameDNS)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7251,25 +6726,16 @@ impl IMSMQQueueInfo4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).IsWorldReadable2)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MulticastAddress(&self) -> ::windows::core::Result { + pub unsafe fn MulticastAddress(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).MulticastAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).MulticastAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMulticastAddress<'a, P0>(&self, bstrmulticastaddress: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetMulticastAddress)(::windows::core::Interface::as_raw(self), bstrmulticastaddress.into().abi()).ok() + pub unsafe fn SetMulticastAddress(&self, bstrmulticastaddress: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetMulticastAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrmulticastaddress)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ADsPath(&self) -> ::windows::core::Result { + pub unsafe fn ADsPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ADsPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -7338,42 +6804,15 @@ unsafe impl ::windows::core::Interface for IMSMQQueueInfo4 { #[doc(hidden)] pub struct IMSMQQueueInfo4_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub QueueGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrguidqueue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - QueueGuid: usize, - #[cfg(feature = "Win32_Foundation")] - pub ServiceTypeGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrguidservicetype: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ServiceTypeGuid: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetServiceTypeGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrguidservicetype: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetServiceTypeGuid: usize, - #[cfg(feature = "Win32_Foundation")] - pub Label: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrlabel: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Label: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrlabel: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetLabel: usize, - #[cfg(feature = "Win32_Foundation")] - pub PathName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpathname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PathName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPathName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpathname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPathName: usize, - #[cfg(feature = "Win32_Foundation")] - pub FormatName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrformatname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FormatName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetFormatName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrformatname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetFormatName: usize, + pub QueueGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrguidqueue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ServiceTypeGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrguidservicetype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetServiceTypeGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrguidservicetype: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Label: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrlabel: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrlabel: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub PathName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpathname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetPathName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpathname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FormatName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrformatname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetFormatName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrformatname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub IsTransactional: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pistransactional: *mut i16) -> ::windows::core::HRESULT, pub PrivLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plprivlevel: *mut i32) -> ::windows::core::HRESULT, pub SetPrivLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lprivlevel: i32) -> ::windows::core::HRESULT, @@ -7407,10 +6846,7 @@ pub struct IMSMQQueueInfo4_Vtbl { Open: usize, pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Update: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub PathNameDNS: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpathnamedns: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PathNameDNS: usize, + pub PathNameDNS: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpathnamedns: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Properties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcolproperties: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -7425,18 +6861,9 @@ pub struct IMSMQQueueInfo4_Vtbl { SetSecurity: usize, pub IsTransactional2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pistransactional: *mut i16) -> ::windows::core::HRESULT, pub IsWorldReadable2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pisworldreadable: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub MulticastAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmulticastaddress: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MulticastAddress: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetMulticastAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmulticastaddress: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetMulticastAddress: usize, - #[cfg(feature = "Win32_Foundation")] - pub ADsPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstradspath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ADsPath: usize, + pub MulticastAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmulticastaddress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetMulticastAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmulticastaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ADsPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstradspath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_MessageQueuing\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7831,17 +7258,13 @@ impl IMSMQQueueManagement { pub unsafe fn Init(&self, machine: &super::Com::VARIANT, pathname: &super::Com::VARIANT, formatname: &super::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Init)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(machine), ::core::mem::transmute(pathname), ::core::mem::transmute(formatname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FormatName(&self) -> ::windows::core::Result { + pub unsafe fn FormatName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FormatName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.FormatName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Machine(&self) -> ::windows::core::Result { + pub unsafe fn Machine(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Machine)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Machine)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn MessageCount(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); diff --git a/crates/libs/windows/src/Windows/Win32/System/Mmc/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Mmc/impl.rs index 911aaa13bd..52c7fd6bbc 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Mmc/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Mmc/impl.rs @@ -13,7 +13,7 @@ impl AppEvents_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait Column_Impl: Sized + super::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Width(&self) -> ::windows::core::Result; fn SetWidth(&self, width: i32) -> ::windows::core::Result<()>; fn DisplayPosition(&self) -> ::windows::core::Result; @@ -28,7 +28,7 @@ impl ::windows::core::RuntimeName for Column {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl Column_Vtbl { pub const fn new, Impl: Column_Impl, const OFFSET: isize>() -> Column_Vtbl { - unsafe extern "system" fn Name, Impl: Column_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: Column_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -233,13 +233,13 @@ impl ContextMenu_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait Document_Impl: Sized + super::Com::IDispatch_Impl { fn Save(&self) -> ::windows::core::Result<()>; - fn SaveAs(&self, filename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SaveAs(&self, filename: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Close(&self, savechanges: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn Views(&self) -> ::windows::core::Result; fn SnapIns(&self) -> ::windows::core::Result; fn ActiveView(&self) -> ::windows::core::Result; fn Name(&self) -> ::windows::core::Result<*mut u16>; - fn SetName(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Location(&self) -> ::windows::core::Result<*mut u16>; fn IsSaved(&self) -> ::windows::core::Result; fn Mode(&self) -> ::windows::core::Result<_DocumentMode>; @@ -259,7 +259,7 @@ impl Document_Vtbl { let this = (*this).get_impl(); this.Save().into() } - unsafe extern "system" fn SaveAs, Impl: Document_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SaveAs, Impl: Document_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SaveAs(::core::mem::transmute(&filename)).into() @@ -313,7 +313,7 @@ impl Document_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetName, Impl: Document_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: Document_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&name)).into() @@ -1983,16 +1983,16 @@ impl IMessageView_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait INodeProperties_Impl: Sized { - fn GetProperty(&self, pdataobject: &::core::option::Option, szpropertyname: &super::super::Foundation::BSTR) -> ::windows::core::Result<*mut u16>; + fn GetProperty(&self, pdataobject: &::core::option::Option, szpropertyname: &::windows::core::BSTR) -> ::windows::core::Result<*mut u16>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for INodeProperties {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl INodeProperties_Vtbl { pub const fn new, Impl: INodeProperties_Impl, const OFFSET: isize>() -> INodeProperties_Vtbl { - unsafe extern "system" fn GetProperty, Impl: INodeProperties_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdataobject: *mut ::core::ffi::c_void, szpropertyname: ::core::mem::ManuallyDrop, pbstrproperty: *mut *mut u16) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetProperty, Impl: INodeProperties_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdataobject: *mut ::core::ffi::c_void, szpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrproperty: *mut *mut u16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetProperty(::core::mem::transmute(&pdataobject), ::core::mem::transmute(&szpropertyname)) { @@ -2817,7 +2817,7 @@ impl MenuItem_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait Node_Impl: Sized + super::Com::IDispatch_Impl { fn Name(&self) -> ::windows::core::Result<*mut u16>; - fn get_Property(&self, propertyname: &super::super::Foundation::BSTR) -> ::windows::core::Result<*mut u16>; + fn get_Property(&self, propertyname: &::windows::core::BSTR) -> ::windows::core::Result<*mut u16>; fn Bookmark(&self) -> ::windows::core::Result<*mut u16>; fn IsScopeNode(&self) -> ::windows::core::Result; fn Nodetype(&self) -> ::windows::core::Result<*mut u16>; @@ -2838,7 +2838,7 @@ impl Node_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_Property, Impl: Node_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop, propertyvalue: *mut *mut u16) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Property, Impl: Node_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyvalue: *mut *mut u16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_Property(::core::mem::transmute(&propertyname)) { @@ -2953,9 +2953,9 @@ impl Nodes_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait Properties_Impl: Sized + super::Com::IDispatch_Impl { fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; - fn Item(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn Item(&self, name: &::windows::core::BSTR) -> ::windows::core::Result; fn Count(&self) -> ::windows::core::Result; - fn Remove(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Remove(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for Properties {} @@ -2973,7 +2973,7 @@ impl Properties_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Item, Impl: Properties_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, property: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Item, Impl: Properties_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, property: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Item(::core::mem::transmute(&name)) { @@ -2995,7 +2995,7 @@ impl Properties_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Remove, Impl: Properties_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Remove, Impl: Properties_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Remove(::core::mem::transmute(&name)).into() @@ -3242,7 +3242,7 @@ pub trait SnapIns_Impl: Sized + super::Com::IDispatch_Impl { fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; fn Item(&self, index: i32) -> ::windows::core::Result; fn Count(&self) -> ::windows::core::Result; - fn Add(&self, snapinnameorclsid: &super::super::Foundation::BSTR, parentsnapin: &super::Com::VARIANT, properties: &super::Com::VARIANT) -> ::windows::core::Result; + fn Add(&self, snapinnameorclsid: &::windows::core::BSTR, parentsnapin: &super::Com::VARIANT, properties: &super::Com::VARIANT) -> ::windows::core::Result; fn Remove(&self, snapin: &::core::option::Option) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3283,7 +3283,7 @@ impl SnapIns_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Add, Impl: SnapIns_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, snapinnameorclsid: ::core::mem::ManuallyDrop, parentsnapin: ::core::mem::ManuallyDrop, properties: ::core::mem::ManuallyDrop, snapin: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Add, Impl: SnapIns_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, snapinnameorclsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, parentsnapin: ::core::mem::ManuallyDrop, properties: ::core::mem::ManuallyDrop, snapin: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Add(::core::mem::transmute(&snapinnameorclsid), ::core::mem::transmute(&parentsnapin), ::core::mem::transmute(&properties)) { @@ -3332,27 +3332,27 @@ pub trait View_Impl: Sized + super::Com::IDispatch_Impl { fn CopySelection(&self) -> ::windows::core::Result<()>; fn DeleteScopeNode(&self, scopenode: &super::Com::VARIANT) -> ::windows::core::Result<()>; fn DeleteSelection(&self) -> ::windows::core::Result<()>; - fn RenameScopeNode(&self, newname: &super::super::Foundation::BSTR, scopenode: &super::Com::VARIANT) -> ::windows::core::Result<()>; - fn RenameSelectedItem(&self, newname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn RenameScopeNode(&self, newname: &::windows::core::BSTR, scopenode: &super::Com::VARIANT) -> ::windows::core::Result<()>; + fn RenameSelectedItem(&self, newname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn get_ScopeNodeContextMenu(&self, scopenode: &super::Com::VARIANT) -> ::windows::core::Result; fn SelectionContextMenu(&self) -> ::windows::core::Result; fn RefreshScopeNode(&self, scopenode: &super::Com::VARIANT) -> ::windows::core::Result<()>; fn RefreshSelection(&self) -> ::windows::core::Result<()>; - fn ExecuteSelectionMenuItem(&self, menuitempath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ExecuteScopeNodeMenuItem(&self, menuitempath: &super::super::Foundation::BSTR, scopenode: &super::Com::VARIANT) -> ::windows::core::Result<()>; - fn ExecuteShellCommand(&self, command: &super::super::Foundation::BSTR, directory: &super::super::Foundation::BSTR, parameters: &super::super::Foundation::BSTR, windowstate: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ExecuteSelectionMenuItem(&self, menuitempath: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ExecuteScopeNodeMenuItem(&self, menuitempath: &::windows::core::BSTR, scopenode: &super::Com::VARIANT) -> ::windows::core::Result<()>; + fn ExecuteShellCommand(&self, command: &::windows::core::BSTR, directory: &::windows::core::BSTR, parameters: &::windows::core::BSTR, windowstate: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Frame(&self) -> ::windows::core::Result; fn Close(&self) -> ::windows::core::Result<()>; fn ScopeTreeVisible(&self) -> ::windows::core::Result; fn SetScopeTreeVisible(&self, visible: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn Back(&self) -> ::windows::core::Result<()>; fn Forward(&self) -> ::windows::core::Result<()>; - fn SetStatusBarText(&self, statusbartext: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetStatusBarText(&self, statusbartext: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Memento(&self) -> ::windows::core::Result<*mut u16>; - fn ViewMemento(&self, memento: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ViewMemento(&self, memento: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Columns(&self) -> ::windows::core::Result; fn get_CellContents(&self, node: &::core::option::Option, column: i32) -> ::windows::core::Result<*mut u16>; - fn ExportList(&self, file: &super::super::Foundation::BSTR, exportoptions: _ExportListOptions) -> ::windows::core::Result<()>; + fn ExportList(&self, file: &::windows::core::BSTR, exportoptions: _ExportListOptions) -> ::windows::core::Result<()>; fn ListViewMode(&self) -> ::windows::core::Result<_ListViewMode>; fn SetListViewMode(&self, mode: _ListViewMode) -> ::windows::core::Result<()>; fn ControlObject(&self) -> ::windows::core::Result; @@ -3500,12 +3500,12 @@ impl View_Vtbl { let this = (*this).get_impl(); this.DeleteSelection().into() } - unsafe extern "system" fn RenameScopeNode, Impl: View_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newname: ::core::mem::ManuallyDrop, scopenode: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn RenameScopeNode, Impl: View_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, scopenode: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RenameScopeNode(::core::mem::transmute(&newname), ::core::mem::transmute(&scopenode)).into() } - unsafe extern "system" fn RenameSelectedItem, Impl: View_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn RenameSelectedItem, Impl: View_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RenameSelectedItem(::core::mem::transmute(&newname)).into() @@ -3542,17 +3542,17 @@ impl View_Vtbl { let this = (*this).get_impl(); this.RefreshSelection().into() } - unsafe extern "system" fn ExecuteSelectionMenuItem, Impl: View_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, menuitempath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExecuteSelectionMenuItem, Impl: View_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, menuitempath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ExecuteSelectionMenuItem(::core::mem::transmute(&menuitempath)).into() } - unsafe extern "system" fn ExecuteScopeNodeMenuItem, Impl: View_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, menuitempath: ::core::mem::ManuallyDrop, scopenode: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExecuteScopeNodeMenuItem, Impl: View_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, menuitempath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, scopenode: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ExecuteScopeNodeMenuItem(::core::mem::transmute(&menuitempath), ::core::mem::transmute(&scopenode)).into() } - unsafe extern "system" fn ExecuteShellCommand, Impl: View_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, command: ::core::mem::ManuallyDrop, directory: ::core::mem::ManuallyDrop, parameters: ::core::mem::ManuallyDrop, windowstate: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExecuteShellCommand, Impl: View_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, command: ::core::mem::ManuallyDrop<::windows::core::BSTR>, directory: ::core::mem::ManuallyDrop<::windows::core::BSTR>, parameters: ::core::mem::ManuallyDrop<::windows::core::BSTR>, windowstate: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ExecuteShellCommand(::core::mem::transmute(&command), ::core::mem::transmute(&directory), ::core::mem::transmute(¶meters), ::core::mem::transmute(&windowstate)).into() @@ -3599,7 +3599,7 @@ impl View_Vtbl { let this = (*this).get_impl(); this.Forward().into() } - unsafe extern "system" fn SetStatusBarText, Impl: View_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, statusbartext: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetStatusBarText, Impl: View_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, statusbartext: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetStatusBarText(::core::mem::transmute(&statusbartext)).into() @@ -3615,7 +3615,7 @@ impl View_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ViewMemento, Impl: View_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, memento: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ViewMemento, Impl: View_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, memento: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ViewMemento(::core::mem::transmute(&memento)).into() @@ -3642,7 +3642,7 @@ impl View_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ExportList, Impl: View_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, file: ::core::mem::ManuallyDrop, exportoptions: _ExportListOptions) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExportList, Impl: View_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, file: ::core::mem::ManuallyDrop<::windows::core::BSTR>, exportoptions: _ExportListOptions) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ExportList(::core::mem::transmute(&file), ::core::mem::transmute_copy(&exportoptions)).into() @@ -3891,7 +3891,7 @@ pub trait _Application_Impl: Sized + super::Com::IDispatch_Impl { fn Help(&self); fn Quit(&self); fn Document(&self) -> ::windows::core::Result; - fn Load(&self, filename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Load(&self, filename: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Frame(&self) -> ::windows::core::Result; fn Visible(&self) -> ::windows::core::Result; fn Show(&self) -> ::windows::core::Result<()>; @@ -3927,7 +3927,7 @@ impl _Application_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Load, Impl: _Application_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Load, Impl: _Application_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Load(::core::mem::transmute(&filename)).into() diff --git a/crates/libs/windows/src/Windows/Win32/System/Mmc/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Mmc/mod.rs index ac2b105141..9fe99361f1 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Mmc/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Mmc/mod.rs @@ -77,11 +77,9 @@ pub struct AppEvents_Vtbl { pub struct Column(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl Column { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Width(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -187,10 +185,7 @@ unsafe impl ::windows::core::Interface for Column { #[doc(hidden)] pub struct Column_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Width: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, width: *mut i32) -> ::windows::core::HRESULT, pub SetWidth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, width: i32) -> ::windows::core::HRESULT, pub DisplayPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, displayposition: *mut i32) -> ::windows::core::HRESULT, @@ -409,13 +404,8 @@ impl Document { pub unsafe fn Save(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Save)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SaveAs<'a, P0>(&self, filename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SaveAs)(::windows::core::Interface::as_raw(self), filename.into().abi()).ok() + pub unsafe fn SaveAs(&self, filename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SaveAs)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(filename)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -447,13 +437,8 @@ impl Document { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut u16>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } pub unsafe fn Location(&self) -> ::windows::core::Result<*mut u16> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -564,10 +549,7 @@ unsafe impl ::windows::core::Interface for Document { pub struct Document_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub Save: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SaveAs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SaveAs: usize, + pub SaveAs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, savechanges: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -585,10 +567,7 @@ pub struct Document_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] ActiveView: usize, pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut *mut u16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Location: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, location: *mut *mut u16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub IsSaved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, issaved: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, @@ -3516,15 +3495,14 @@ pub struct IMessageView_Vtbl { #[repr(transparent)] pub struct INodeProperties(::windows::core::IUnknown); impl INodeProperties { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetProperty<'a, P0, P1>(&self, pdataobject: P0, szpropertyname: P1) -> ::windows::core::Result<*mut u16> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetProperty<'a, P0>(&self, pdataobject: P0, szpropertyname: &::windows::core::BSTR) -> ::windows::core::Result<*mut u16> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDataObject>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetProperty)(::windows::core::Interface::as_raw(self), pdataobject.into().abi(), szpropertyname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut u16>(result__) + (::windows::core::Interface::vtable(self).GetProperty)(::windows::core::Interface::as_raw(self), pdataobject.into().abi(), ::core::mem::transmute_copy(szpropertyname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut u16>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -3566,9 +3544,9 @@ unsafe impl ::windows::core::Interface for INodeProperties { #[doc(hidden)] pub struct INodeProperties_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdataobject: *mut ::core::ffi::c_void, szpropertyname: ::core::mem::ManuallyDrop, pbstrproperty: *mut *mut u16) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdataobject: *mut ::core::ffi::c_void, szpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrproperty: *mut *mut u16) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetProperty: usize, } #[doc = "*Required features: `\"Win32_System_Mmc\"`*"] @@ -4924,14 +4902,9 @@ impl Node { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut u16>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_Property<'a, P0>(&self, propertyname: P0) -> ::windows::core::Result<*mut u16> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn get_Property(&self, propertyname: &::windows::core::BSTR) -> ::windows::core::Result<*mut u16> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_Property)(::windows::core::Interface::as_raw(self), propertyname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut u16>(result__) + (::windows::core::Interface::vtable(self).get_Property)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(propertyname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut u16>(result__) } pub unsafe fn Bookmark(&self) -> ::windows::core::Result<*mut u16> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5015,10 +4988,7 @@ unsafe impl ::windows::core::Interface for Node { pub struct Node_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut *mut u16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub get_Property: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop, propertyvalue: *mut *mut u16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_Property: usize, + pub get_Property: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyvalue: *mut *mut u16) -> ::windows::core::HRESULT, pub Bookmark: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bookmark: *mut *mut u16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub IsScopeNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, isscopenode: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, @@ -5130,26 +5100,18 @@ impl Properties { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self)._NewEnum)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Item<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Item(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Item)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Item)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn Count(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Count)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Remove<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn Remove(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5219,15 +5181,12 @@ unsafe impl ::windows::core::Interface for Properties { pub struct Properties_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, property: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, property: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Item: usize, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Remove: usize, + pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Mmc\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5613,14 +5572,13 @@ impl SnapIns { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Add<'a, P0, P1, P2>(&self, snapinnameorclsid: P0, parentsnapin: P1, properties: P2) -> ::windows::core::Result + pub unsafe fn Add<'a, P0, P1>(&self, snapinnameorclsid: &::windows::core::BSTR, parentsnapin: P0, properties: P1) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), snapinnameorclsid.into().abi(), parentsnapin.into().abi(), properties.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(snapinnameorclsid), parentsnapin.into().abi(), properties.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5704,7 +5662,7 @@ pub struct SnapIns_Vtbl { Item: usize, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, count: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, snapinnameorclsid: ::core::mem::ManuallyDrop, parentsnapin: ::core::mem::ManuallyDrop, properties: ::core::mem::ManuallyDrop, snapin: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, snapinnameorclsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, parentsnapin: ::core::mem::ManuallyDrop, properties: ::core::mem::ManuallyDrop, snapin: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Add: usize, #[cfg(feature = "Win32_System_Com")] @@ -5837,20 +5795,14 @@ impl View { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn RenameScopeNode<'a, P0, P1>(&self, newname: P0, scopenode: P1) -> ::windows::core::Result<()> + pub unsafe fn RenameScopeNode<'a, P0>(&self, newname: &::windows::core::BSTR, scopenode: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).RenameScopeNode)(::windows::core::Interface::as_raw(self), newname.into().abi(), scopenode.into().abi()).ok() + (::windows::core::Interface::vtable(self).RenameScopeNode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(newname), scopenode.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RenameSelectedItem<'a, P0>(&self, newname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).RenameSelectedItem)(::windows::core::Interface::as_raw(self), newname.into().abi()).ok() + pub unsafe fn RenameSelectedItem(&self, newname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).RenameSelectedItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(newname)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -5878,33 +5830,19 @@ impl View { pub unsafe fn RefreshSelection(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RefreshSelection)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExecuteSelectionMenuItem<'a, P0>(&self, menuitempath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ExecuteSelectionMenuItem)(::windows::core::Interface::as_raw(self), menuitempath.into().abi()).ok() + pub unsafe fn ExecuteSelectionMenuItem(&self, menuitempath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ExecuteSelectionMenuItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(menuitempath)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ExecuteScopeNodeMenuItem<'a, P0, P1>(&self, menuitempath: P0, scopenode: P1) -> ::windows::core::Result<()> + pub unsafe fn ExecuteScopeNodeMenuItem<'a, P0>(&self, menuitempath: &::windows::core::BSTR, scopenode: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).ExecuteScopeNodeMenuItem)(::windows::core::Interface::as_raw(self), menuitempath.into().abi(), scopenode.into().abi()).ok() + (::windows::core::Interface::vtable(self).ExecuteScopeNodeMenuItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(menuitempath), scopenode.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExecuteShellCommand<'a, P0, P1, P2, P3>(&self, command: P0, directory: P1, parameters: P2, windowstate: P3) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ExecuteShellCommand)(::windows::core::Interface::as_raw(self), command.into().abi(), directory.into().abi(), parameters.into().abi(), windowstate.into().abi()).ok() + pub unsafe fn ExecuteShellCommand(&self, command: &::windows::core::BSTR, directory: &::windows::core::BSTR, parameters: &::windows::core::BSTR, windowstate: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ExecuteShellCommand)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(command), ::core::mem::transmute_copy(directory), ::core::mem::transmute_copy(parameters), ::core::mem::transmute_copy(windowstate)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5935,25 +5873,15 @@ impl View { pub unsafe fn Forward(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Forward)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetStatusBarText<'a, P0>(&self, statusbartext: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetStatusBarText)(::windows::core::Interface::as_raw(self), statusbartext.into().abi()).ok() + pub unsafe fn SetStatusBarText(&self, statusbartext: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetStatusBarText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(statusbartext)).ok() } pub unsafe fn Memento(&self) -> ::windows::core::Result<*mut u16> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Memento)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut u16>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ViewMemento<'a, P0>(&self, memento: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ViewMemento)(::windows::core::Interface::as_raw(self), memento.into().abi()).ok() + pub unsafe fn ViewMemento(&self, memento: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ViewMemento)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(memento)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5970,13 +5898,8 @@ impl View { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).get_CellContents)(::windows::core::Interface::as_raw(self), node.into().abi(), column, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut u16>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExportList<'a, P0>(&self, file: P0, exportoptions: _ExportListOptions) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ExportList)(::windows::core::Interface::as_raw(self), file.into().abi(), exportoptions).ok() + pub unsafe fn ExportList(&self, file: &::windows::core::BSTR, exportoptions: _ExportListOptions) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ExportList)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(file), exportoptions).ok() } pub unsafe fn ListViewMode(&self) -> ::windows::core::Result<_ListViewMode> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6119,13 +6042,10 @@ pub struct View_Vtbl { DeleteScopeNode: usize, pub DeleteSelection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub RenameScopeNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newname: ::core::mem::ManuallyDrop, scopenode: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub RenameScopeNode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, scopenode: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] RenameScopeNode: usize, - #[cfg(feature = "Win32_Foundation")] - pub RenameSelectedItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RenameSelectedItem: usize, + pub RenameSelectedItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub get_ScopeNodeContextMenu: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scopenode: ::core::mem::ManuallyDrop, contextmenu: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -6139,18 +6059,12 @@ pub struct View_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] RefreshScopeNode: usize, pub RefreshSelection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ExecuteSelectionMenuItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, menuitempath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ExecuteSelectionMenuItem: usize, + pub ExecuteSelectionMenuItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, menuitempath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub ExecuteScopeNodeMenuItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, menuitempath: ::core::mem::ManuallyDrop, scopenode: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub ExecuteScopeNodeMenuItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, menuitempath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, scopenode: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] ExecuteScopeNodeMenuItem: usize, - #[cfg(feature = "Win32_Foundation")] - pub ExecuteShellCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, command: ::core::mem::ManuallyDrop, directory: ::core::mem::ManuallyDrop, parameters: ::core::mem::ManuallyDrop, windowstate: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ExecuteShellCommand: usize, + pub ExecuteShellCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, command: ::core::mem::ManuallyDrop<::windows::core::BSTR>, directory: ::core::mem::ManuallyDrop<::windows::core::BSTR>, parameters: ::core::mem::ManuallyDrop<::windows::core::BSTR>, windowstate: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Frame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, frame: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -6166,15 +6080,9 @@ pub struct View_Vtbl { SetScopeTreeVisible: usize, pub Back: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Forward: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetStatusBarText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, statusbartext: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetStatusBarText: usize, + pub SetStatusBarText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, statusbartext: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Memento: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, memento: *mut *mut u16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ViewMemento: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, memento: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ViewMemento: usize, + pub ViewMemento: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, memento: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Columns: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, columns: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -6183,10 +6091,7 @@ pub struct View_Vtbl { pub get_CellContents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, node: *mut ::core::ffi::c_void, column: i32, cellcontents: *mut *mut u16) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] get_CellContents: usize, - #[cfg(feature = "Win32_Foundation")] - pub ExportList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, file: ::core::mem::ManuallyDrop, exportoptions: _ExportListOptions) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ExportList: usize, + pub ExportList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, file: ::core::mem::ManuallyDrop<::windows::core::BSTR>, exportoptions: _ExportListOptions) -> ::windows::core::HRESULT, pub ListViewMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mode: *mut _ListViewMode) -> ::windows::core::HRESULT, pub SetListViewMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mode: _ListViewMode) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] @@ -6533,13 +6438,8 @@ impl _Application { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Document)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Load<'a, P0>(&self, filename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Load)(::windows::core::Interface::as_raw(self), filename.into().abi()).ok() + pub unsafe fn Load(&self, filename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Load)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(filename)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6654,10 +6554,7 @@ pub struct _Application_Vtbl { pub Document: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, document: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Document: usize, - #[cfg(feature = "Win32_Foundation")] - pub Load: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Load: usize, + pub Load: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Frame: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, frame: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] diff --git a/crates/libs/windows/src/Windows/Win32/System/Ole/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Ole/impl.rs index b77e990879..ec4f3fece5 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Ole/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Ole/impl.rs @@ -41,8 +41,8 @@ impl ICanHandleException_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub trait IClassFactory2_Impl: Sized + super::Com::IClassFactory_Impl { fn GetLicInfo(&self, plicinfo: *mut LICINFO) -> ::windows::core::Result<()>; - fn RequestLicKey(&self, dwreserved: u32) -> ::windows::core::Result; - fn CreateInstanceLic(&self, punkouter: &::core::option::Option<::windows::core::IUnknown>, punkreserved: &::core::option::Option<::windows::core::IUnknown>, riid: *const ::windows::core::GUID, bstrkey: &super::super::Foundation::BSTR, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; + fn RequestLicKey(&self, dwreserved: u32) -> ::windows::core::Result<::windows::core::BSTR>; + fn CreateInstanceLic(&self, punkouter: &::core::option::Option<::windows::core::IUnknown>, punkreserved: &::core::option::Option<::windows::core::IUnknown>, riid: *const ::windows::core::GUID, bstrkey: &::windows::core::BSTR, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] impl ::windows::core::RuntimeName for IClassFactory2 {} @@ -54,7 +54,7 @@ impl IClassFactory2_Vtbl { let this = (*this).get_impl(); this.GetLicInfo(::core::mem::transmute_copy(&plicinfo)).into() } - unsafe extern "system" fn RequestLicKey, Impl: IClassFactory2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwreserved: u32, pbstrkey: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RequestLicKey, Impl: IClassFactory2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwreserved: u32, pbstrkey: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RequestLicKey(::core::mem::transmute_copy(&dwreserved)) { @@ -65,7 +65,7 @@ impl IClassFactory2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateInstanceLic, Impl: IClassFactory2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, punkouter: *mut ::core::ffi::c_void, punkreserved: *mut ::core::ffi::c_void, riid: *const ::windows::core::GUID, bstrkey: ::core::mem::ManuallyDrop, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateInstanceLic, Impl: IClassFactory2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, punkouter: *mut ::core::ffi::c_void, punkreserved: *mut ::core::ffi::c_void, riid: *const ::windows::core::GUID, bstrkey: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CreateInstanceLic(::core::mem::transmute(&punkouter), ::core::mem::transmute(&punkreserved), ::core::mem::transmute_copy(&riid), ::core::mem::transmute(&bstrkey), ::core::mem::transmute_copy(&ppvobj)).into() @@ -195,7 +195,7 @@ pub trait ICreateTypeInfo_Impl: Sized { fn SetVarDocString(&self, index: u32, szdocstring: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn SetFuncHelpContext(&self, index: u32, dwhelpcontext: u32) -> ::windows::core::Result<()>; fn SetVarHelpContext(&self, index: u32, dwhelpcontext: u32) -> ::windows::core::Result<()>; - fn SetMops(&self, index: u32, bstrmops: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetMops(&self, index: u32, bstrmops: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SetTypeIdldesc(&self, pidldesc: *const super::Com::IDLDESC) -> ::windows::core::Result<()>; fn LayOut(&self) -> ::windows::core::Result<()>; } @@ -304,7 +304,7 @@ impl ICreateTypeInfo_Vtbl { let this = (*this).get_impl(); this.SetVarHelpContext(::core::mem::transmute_copy(&index), ::core::mem::transmute_copy(&dwhelpcontext)).into() } - unsafe extern "system" fn SetMops, Impl: ICreateTypeInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: u32, bstrmops: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetMops, Impl: ICreateTypeInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: u32, bstrmops: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetMops(::core::mem::transmute_copy(&index), ::core::mem::transmute(&bstrmops)).into() @@ -607,18 +607,15 @@ impl ICreateTypeLib2_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IDispError_Impl: Sized { fn QueryErrorInfo(&self, guiderrortype: &::windows::core::GUID) -> ::windows::core::Result; fn GetNext(&self) -> ::windows::core::Result; fn GetHresult(&self) -> ::windows::core::Result<::windows::core::HRESULT>; - fn GetSource(&self) -> ::windows::core::Result; - fn GetHelpInfo(&self, pbstrfilename: *mut super::super::Foundation::BSTR, pdwcontext: *mut u32) -> ::windows::core::Result<()>; - fn GetDescription(&self) -> ::windows::core::Result; + fn GetSource(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetHelpInfo(&self, pbstrfilename: *mut ::windows::core::BSTR, pdwcontext: *mut u32) -> ::windows::core::Result<()>; + fn GetDescription(&self) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IDispError {} -#[cfg(feature = "Win32_Foundation")] impl IDispError_Vtbl { pub const fn new, Impl: IDispError_Impl, const OFFSET: isize>() -> IDispError_Vtbl { unsafe extern "system" fn QueryErrorInfo, Impl: IDispError_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, guiderrortype: ::windows::core::GUID, ppde: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -654,7 +651,7 @@ impl IDispError_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetSource, Impl: IDispError_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsource: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSource, Impl: IDispError_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsource: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetSource() { @@ -665,12 +662,12 @@ impl IDispError_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetHelpInfo, Impl: IDispError_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfilename: *mut super::super::Foundation::BSTR, pdwcontext: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetHelpInfo, Impl: IDispError_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfilename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwcontext: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetHelpInfo(::core::mem::transmute_copy(&pbstrfilename), ::core::mem::transmute_copy(&pdwcontext)).into() } - unsafe extern "system" fn GetDescription, Impl: IDispError_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDescription, Impl: IDispError_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDescription() { @@ -697,12 +694,12 @@ impl IDispError_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub trait IDispatchEx_Impl: Sized + super::Com::IDispatch_Impl { - fn GetDispID(&self, bstrname: &super::super::Foundation::BSTR, grfdex: u32) -> ::windows::core::Result; + fn GetDispID(&self, bstrname: &::windows::core::BSTR, grfdex: u32) -> ::windows::core::Result; fn InvokeEx(&self, id: i32, lcid: u32, wflags: u16, pdp: *const super::Com::DISPPARAMS, pvarres: *mut super::Com::VARIANT, pei: *mut super::Com::EXCEPINFO, pspcaller: &::core::option::Option) -> ::windows::core::Result<()>; - fn DeleteMemberByName(&self, bstrname: &super::super::Foundation::BSTR, grfdex: u32) -> ::windows::core::Result<()>; + fn DeleteMemberByName(&self, bstrname: &::windows::core::BSTR, grfdex: u32) -> ::windows::core::Result<()>; fn DeleteMemberByDispID(&self, id: i32) -> ::windows::core::Result<()>; fn GetMemberProperties(&self, id: i32, grfdexfetch: u32) -> ::windows::core::Result; - fn GetMemberName(&self, id: i32) -> ::windows::core::Result; + fn GetMemberName(&self, id: i32) -> ::windows::core::Result<::windows::core::BSTR>; fn GetNextDispID(&self, grfdex: u32, id: i32) -> ::windows::core::Result; fn GetNameSpaceParent(&self) -> ::windows::core::Result<::windows::core::IUnknown>; } @@ -711,7 +708,7 @@ impl ::windows::core::RuntimeName for IDispatchEx {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] impl IDispatchEx_Vtbl { pub const fn new, Impl: IDispatchEx_Impl, const OFFSET: isize>() -> IDispatchEx_Vtbl { - unsafe extern "system" fn GetDispID, Impl: IDispatchEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, grfdex: u32, pid: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDispID, Impl: IDispatchEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, grfdex: u32, pid: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDispID(::core::mem::transmute(&bstrname), ::core::mem::transmute_copy(&grfdex)) { @@ -727,7 +724,7 @@ impl IDispatchEx_Vtbl { let this = (*this).get_impl(); this.InvokeEx(::core::mem::transmute_copy(&id), ::core::mem::transmute_copy(&lcid), ::core::mem::transmute_copy(&wflags), ::core::mem::transmute_copy(&pdp), ::core::mem::transmute_copy(&pvarres), ::core::mem::transmute_copy(&pei), ::core::mem::transmute(&pspcaller)).into() } - unsafe extern "system" fn DeleteMemberByName, Impl: IDispatchEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, grfdex: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteMemberByName, Impl: IDispatchEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, grfdex: u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteMemberByName(::core::mem::transmute(&bstrname), ::core::mem::transmute_copy(&grfdex)).into() @@ -748,7 +745,7 @@ impl IDispatchEx_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetMemberName, Impl: IDispatchEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, id: i32, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetMemberName, Impl: IDispatchEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, id: i32, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetMemberName(::core::mem::transmute_copy(&id)) { @@ -1130,8 +1127,8 @@ impl IEnumVARIANT_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] pub trait IFont_Impl: Sized { - fn Name(&self) -> ::windows::core::Result; - fn SetName(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Size(&self) -> ::windows::core::Result; fn SetSize(&self, size: &super::Com::CY) -> ::windows::core::Result<()>; fn Bold(&self) -> ::windows::core::Result; @@ -1160,7 +1157,7 @@ impl ::windows::core::RuntimeName for IFont {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] impl IFont_Vtbl { pub const fn new, Impl: IFont_Impl, const OFFSET: isize>() -> IFont_Vtbl { - unsafe extern "system" fn Name, Impl: IFont_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IFont_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -1171,7 +1168,7 @@ impl IFont_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetName, Impl: IFont_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: IFont_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&name)).into() @@ -3358,8 +3355,8 @@ pub trait IOleUndoManager_Impl: Sized { fn RedoTo(&self, puu: &::core::option::Option) -> ::windows::core::Result<()>; fn EnumUndoable(&self) -> ::windows::core::Result; fn EnumRedoable(&self) -> ::windows::core::Result; - fn GetLastUndoDescription(&self) -> ::windows::core::Result; - fn GetLastRedoDescription(&self) -> ::windows::core::Result; + fn GetLastUndoDescription(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetLastRedoDescription(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Enable(&self, fenable: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; } #[cfg(feature = "Win32_Foundation")] @@ -3430,7 +3427,7 @@ impl IOleUndoManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetLastUndoDescription, Impl: IOleUndoManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetLastUndoDescription, Impl: IOleUndoManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetLastUndoDescription() { @@ -3441,7 +3438,7 @@ impl IOleUndoManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetLastRedoDescription, Impl: IOleUndoManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetLastRedoDescription, Impl: IOleUndoManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetLastRedoDescription() { @@ -3477,16 +3474,13 @@ impl IOleUndoManager_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IOleUndoUnit_Impl: Sized { fn Do(&self, pundomanager: &::core::option::Option) -> ::windows::core::Result<()>; - fn GetDescription(&self) -> ::windows::core::Result; + fn GetDescription(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetUnitType(&self, pclsid: *mut ::windows::core::GUID, plid: *mut i32) -> ::windows::core::Result<()>; fn OnNextAdd(&self) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IOleUndoUnit {} -#[cfg(feature = "Win32_Foundation")] impl IOleUndoUnit_Vtbl { pub const fn new, Impl: IOleUndoUnit_Impl, const OFFSET: isize>() -> IOleUndoUnit_Vtbl { unsafe extern "system" fn Do, Impl: IOleUndoUnit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pundomanager: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -3494,7 +3488,7 @@ impl IOleUndoUnit_Vtbl { let this = (*this).get_impl(); this.Do(::core::mem::transmute(&pundomanager)).into() } - unsafe extern "system" fn GetDescription, Impl: IOleUndoUnit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDescription, Impl: IOleUndoUnit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDescription() { @@ -3585,7 +3579,7 @@ impl IParseDisplayName_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub trait IPerPropertyBrowsing_Impl: Sized { - fn GetDisplayString(&self, dispid: i32) -> ::windows::core::Result; + fn GetDisplayString(&self, dispid: i32) -> ::windows::core::Result<::windows::core::BSTR>; fn MapPropertyToPage(&self, dispid: i32) -> ::windows::core::Result<::windows::core::GUID>; fn GetPredefinedStrings(&self, dispid: i32, pcastringsout: *mut CALPOLESTR, pcacookiesout: *mut CADWORD) -> ::windows::core::Result<()>; fn GetPredefinedValue(&self, dispid: i32, dwcookie: u32) -> ::windows::core::Result; @@ -3595,7 +3589,7 @@ impl ::windows::core::RuntimeName for IPerPropertyBrowsing {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] impl IPerPropertyBrowsing_Vtbl { pub const fn new, Impl: IPerPropertyBrowsing_Impl, const OFFSET: isize>() -> IPerPropertyBrowsing_Vtbl { - unsafe extern "system" fn GetDisplayString, Impl: IPerPropertyBrowsing_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dispid: i32, pbstr: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDisplayString, Impl: IPerPropertyBrowsing_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dispid: i32, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDisplayString(::core::mem::transmute_copy(&dispid)) { @@ -4592,14 +4586,14 @@ pub trait IRecordInfo_Impl: Sized { fn RecordClear(&self, pvexisting: *const ::core::ffi::c_void) -> ::windows::core::Result<()>; fn RecordCopy(&self, pvexisting: *const ::core::ffi::c_void, pvnew: *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; fn GetGuid(&self) -> ::windows::core::Result<::windows::core::GUID>; - fn GetName(&self) -> ::windows::core::Result; + fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetSize(&self) -> ::windows::core::Result; fn GetTypeInfo(&self) -> ::windows::core::Result; fn GetField(&self, pvdata: *const ::core::ffi::c_void, szfieldname: &::windows::core::PCWSTR) -> ::windows::core::Result; fn GetFieldNoCopy(&self, pvdata: *const ::core::ffi::c_void, szfieldname: &::windows::core::PCWSTR, pvarfield: *mut super::Com::VARIANT, ppvdatacarray: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; fn PutField(&self, wflags: u32, pvdata: *mut ::core::ffi::c_void, szfieldname: &::windows::core::PCWSTR, pvarfield: *const super::Com::VARIANT) -> ::windows::core::Result<()>; fn PutFieldNoCopy(&self, wflags: u32, pvdata: *mut ::core::ffi::c_void, szfieldname: &::windows::core::PCWSTR, pvarfield: *const super::Com::VARIANT) -> ::windows::core::Result<()>; - fn GetFieldNames(&self, pcnames: *mut u32, rgbstrnames: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetFieldNames(&self, pcnames: *mut u32, rgbstrnames: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn IsMatchingType(&self, precordinfo: &::core::option::Option) -> super::super::Foundation::BOOL; fn RecordCreate(&self) -> *mut ::core::ffi::c_void; fn RecordCreateCopy(&self, pvsource: *const ::core::ffi::c_void, ppvdest: *mut *mut ::core::ffi::c_void) -> ::windows::core::Result<()>; @@ -4636,7 +4630,7 @@ impl IRecordInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetName, Impl: IRecordInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetName, Impl: IRecordInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetName() { @@ -4695,7 +4689,7 @@ impl IRecordInfo_Vtbl { let this = (*this).get_impl(); this.PutFieldNoCopy(::core::mem::transmute_copy(&wflags), ::core::mem::transmute_copy(&pvdata), ::core::mem::transmute(&szfieldname), ::core::mem::transmute_copy(&pvarfield)).into() } - unsafe extern "system" fn GetFieldNames, Impl: IRecordInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcnames: *mut u32, rgbstrnames: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFieldNames, Impl: IRecordInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcnames: *mut u32, rgbstrnames: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetFieldNames(::core::mem::transmute_copy(&pcnames), ::core::mem::transmute_copy(&rgbstrnames)).into() @@ -4908,14 +4902,14 @@ impl ITypeMarshal_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub trait IVBFormat_Impl: Sized { - fn Format(&self, vdata: *mut super::Com::VARIANT, bstrformat: &super::super::Foundation::BSTR, lpbuffer: *mut ::core::ffi::c_void, cb: u16, lcid: i32, sfirstdayofweek: i16, sfirstweekofyear: u16, rcb: *mut u16) -> ::windows::core::Result<()>; + fn Format(&self, vdata: *mut super::Com::VARIANT, bstrformat: &::windows::core::BSTR, lpbuffer: *mut ::core::ffi::c_void, cb: u16, lcid: i32, sfirstdayofweek: i16, sfirstweekofyear: u16, rcb: *mut u16) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] impl ::windows::core::RuntimeName for IVBFormat {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] impl IVBFormat_Vtbl { pub const fn new, Impl: IVBFormat_Impl, const OFFSET: isize>() -> IVBFormat_Vtbl { - unsafe extern "system" fn Format, Impl: IVBFormat_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, vdata: *mut super::Com::VARIANT, bstrformat: ::core::mem::ManuallyDrop, lpbuffer: *mut ::core::ffi::c_void, cb: u16, lcid: i32, sfirstdayofweek: i16, sfirstweekofyear: u16, rcb: *mut u16) -> ::windows::core::HRESULT { + unsafe extern "system" fn Format, Impl: IVBFormat_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, vdata: *mut super::Com::VARIANT, bstrformat: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lpbuffer: *mut ::core::ffi::c_void, cb: u16, lcid: i32, sfirstdayofweek: i16, sfirstweekofyear: u16, rcb: *mut u16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Format(::core::mem::transmute_copy(&vdata), ::core::mem::transmute(&bstrformat), ::core::mem::transmute_copy(&lpbuffer), ::core::mem::transmute_copy(&cb), ::core::mem::transmute_copy(&lcid), ::core::mem::transmute_copy(&sfirstdayofweek), ::core::mem::transmute_copy(&sfirstweekofyear), ::core::mem::transmute_copy(&rcb)).into() diff --git a/crates/libs/windows/src/Windows/Win32/System/Ole/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Ole/mod.rs index 3b0595c95a..be9226d49b 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Ole/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Ole/mod.rs @@ -24,16 +24,16 @@ where } OleUIPromptUserW(ntemplate, hwndparent.into()) } -#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Com\"`*"] +#[cfg(feature = "Win32_System_Com")] #[inline] -pub unsafe fn BstrFromVector(psa: &super::Com::SAFEARRAY) -> ::windows::core::Result { +pub unsafe fn BstrFromVector(psa: &super::Com::SAFEARRAY) -> ::windows::core::Result<::windows::core::BSTR> { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn BstrFromVector(psa: *const super::Com::SAFEARRAY, pbstr: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn BstrFromVector(psa: *const super::Com::SAFEARRAY, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); - BstrFromVector(::core::mem::transmute(psa), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + BstrFromVector(::core::mem::transmute(psa), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] @@ -1101,19 +1101,18 @@ where } OleSave(pps.into().abi(), pstg.into().abi(), fsameasload.into()).ok() } -#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Com\"`*"] +#[cfg(feature = "Win32_System_Com")] #[inline] -pub unsafe fn OleSavePictureFile<'a, P0, P1>(lpdisppicture: P0, bstrfilename: P1) -> ::windows::core::Result<()> +pub unsafe fn OleSavePictureFile<'a, P0>(lpdisppicture: P0, bstrfilename: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn OleSavePictureFile(lpdisppicture: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT; + fn OleSavePictureFile(lpdisppicture: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } - OleSavePictureFile(lpdisppicture.into().abi(), bstrfilename.into().abi()).ok() + OleSavePictureFile(lpdisppicture.into().abi(), ::core::mem::transmute_copy(bstrfilename)).ok() } #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2105,205 +2104,184 @@ pub unsafe fn VarBoolFromUI8(i64in: u64) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); VarBoolFromUI8(i64in, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } -#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] #[inline] -pub unsafe fn VarBstrCat<'a, P0, P1>(bstrleft: P0, bstrright: P1) -> ::windows::core::Result<*mut u16> -where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, -{ +pub unsafe fn VarBstrCat(bstrleft: &::windows::core::BSTR, bstrright: &::windows::core::BSTR) -> ::windows::core::Result<*mut u16> { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn VarBstrCat(bstrleft: ::core::mem::ManuallyDrop, bstrright: ::core::mem::ManuallyDrop, pbstrresult: *mut *mut u16) -> ::windows::core::HRESULT; + fn VarBstrCat(bstrleft: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrright: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrresult: *mut *mut u16) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); - VarBstrCat(bstrleft.into().abi(), bstrright.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut u16>(result__) + VarBstrCat(::core::mem::transmute_copy(bstrleft), ::core::mem::transmute_copy(bstrright), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut u16>(result__) } -#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] #[inline] -pub unsafe fn VarBstrCmp<'a, P0, P1>(bstrleft: P0, bstrright: P1, lcid: u32, dwflags: u32) -> ::windows::core::Result<()> -where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, -{ +pub unsafe fn VarBstrCmp(bstrleft: &::windows::core::BSTR, bstrright: &::windows::core::BSTR, lcid: u32, dwflags: u32) -> ::windows::core::Result<()> { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn VarBstrCmp(bstrleft: ::core::mem::ManuallyDrop, bstrright: ::core::mem::ManuallyDrop, lcid: u32, dwflags: u32) -> ::windows::core::HRESULT; + fn VarBstrCmp(bstrleft: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrright: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lcid: u32, dwflags: u32) -> ::windows::core::HRESULT; } - VarBstrCmp(bstrleft.into().abi(), bstrright.into().abi(), lcid, dwflags).ok() + VarBstrCmp(::core::mem::transmute_copy(bstrleft), ::core::mem::transmute_copy(bstrright), lcid, dwflags).ok() } -#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] #[inline] -pub unsafe fn VarBstrFromBool(boolin: i16, lcid: u32, dwflags: u32) -> ::windows::core::Result { +pub unsafe fn VarBstrFromBool(boolin: i16, lcid: u32, dwflags: u32) -> ::windows::core::Result<::windows::core::BSTR> { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn VarBstrFromBool(boolin: i16, lcid: u32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn VarBstrFromBool(boolin: i16, lcid: u32, dwflags: u32, pbstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); - VarBstrFromBool(boolin, lcid, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + VarBstrFromBool(boolin, lcid, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } -#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Com\"`*"] +#[cfg(feature = "Win32_System_Com")] #[inline] -pub unsafe fn VarBstrFromCy(cyin: super::Com::CY, lcid: u32, dwflags: u32) -> ::windows::core::Result { +pub unsafe fn VarBstrFromCy(cyin: super::Com::CY, lcid: u32, dwflags: u32) -> ::windows::core::Result<::windows::core::BSTR> { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn VarBstrFromCy(cyin: super::Com::CY, lcid: u32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn VarBstrFromCy(cyin: super::Com::CY, lcid: u32, dwflags: u32, pbstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); - VarBstrFromCy(::core::mem::transmute(cyin), lcid, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + VarBstrFromCy(::core::mem::transmute(cyin), lcid, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } -#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] #[inline] -pub unsafe fn VarBstrFromDate(datein: f64, lcid: u32, dwflags: u32) -> ::windows::core::Result { +pub unsafe fn VarBstrFromDate(datein: f64, lcid: u32, dwflags: u32) -> ::windows::core::Result<::windows::core::BSTR> { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn VarBstrFromDate(datein: f64, lcid: u32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn VarBstrFromDate(datein: f64, lcid: u32, dwflags: u32, pbstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); - VarBstrFromDate(datein, lcid, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + VarBstrFromDate(datein, lcid, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn VarBstrFromDec(pdecin: &super::super::Foundation::DECIMAL, lcid: u32, dwflags: u32) -> ::windows::core::Result { +pub unsafe fn VarBstrFromDec(pdecin: &super::super::Foundation::DECIMAL, lcid: u32, dwflags: u32) -> ::windows::core::Result<::windows::core::BSTR> { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn VarBstrFromDec(pdecin: *const super::super::Foundation::DECIMAL, lcid: u32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn VarBstrFromDec(pdecin: *const super::super::Foundation::DECIMAL, lcid: u32, dwflags: u32, pbstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); - VarBstrFromDec(::core::mem::transmute(pdecin), lcid, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + VarBstrFromDec(::core::mem::transmute(pdecin), lcid, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } -#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Com\"`*"] +#[cfg(feature = "Win32_System_Com")] #[inline] -pub unsafe fn VarBstrFromDisp<'a, P0>(pdispin: P0, lcid: u32, dwflags: u32) -> ::windows::core::Result +pub unsafe fn VarBstrFromDisp<'a, P0>(pdispin: P0, lcid: u32, dwflags: u32) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn VarBstrFromDisp(pdispin: *mut ::core::ffi::c_void, lcid: u32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn VarBstrFromDisp(pdispin: *mut ::core::ffi::c_void, lcid: u32, dwflags: u32, pbstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); - VarBstrFromDisp(pdispin.into().abi(), lcid, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + VarBstrFromDisp(pdispin.into().abi(), lcid, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn VarBstrFromI1<'a, P0>(cin: P0, lcid: u32, dwflags: u32) -> ::windows::core::Result +pub unsafe fn VarBstrFromI1<'a, P0>(cin: P0, lcid: u32, dwflags: u32) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn VarBstrFromI1(cin: super::super::Foundation::CHAR, lcid: u32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn VarBstrFromI1(cin: super::super::Foundation::CHAR, lcid: u32, dwflags: u32, pbstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); - VarBstrFromI1(cin.into(), lcid, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + VarBstrFromI1(cin.into(), lcid, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } -#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] #[inline] -pub unsafe fn VarBstrFromI2(ival: i16, lcid: u32, dwflags: u32) -> ::windows::core::Result { +pub unsafe fn VarBstrFromI2(ival: i16, lcid: u32, dwflags: u32) -> ::windows::core::Result<::windows::core::BSTR> { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn VarBstrFromI2(ival: i16, lcid: u32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn VarBstrFromI2(ival: i16, lcid: u32, dwflags: u32, pbstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); - VarBstrFromI2(ival, lcid, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + VarBstrFromI2(ival, lcid, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } -#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] #[inline] -pub unsafe fn VarBstrFromI4(lin: i32, lcid: u32, dwflags: u32) -> ::windows::core::Result { +pub unsafe fn VarBstrFromI4(lin: i32, lcid: u32, dwflags: u32) -> ::windows::core::Result<::windows::core::BSTR> { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn VarBstrFromI4(lin: i32, lcid: u32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn VarBstrFromI4(lin: i32, lcid: u32, dwflags: u32, pbstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); - VarBstrFromI4(lin, lcid, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + VarBstrFromI4(lin, lcid, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } -#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] #[inline] -pub unsafe fn VarBstrFromI8(i64in: i64, lcid: u32, dwflags: u32) -> ::windows::core::Result { +pub unsafe fn VarBstrFromI8(i64in: i64, lcid: u32, dwflags: u32) -> ::windows::core::Result<::windows::core::BSTR> { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn VarBstrFromI8(i64in: i64, lcid: u32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn VarBstrFromI8(i64in: i64, lcid: u32, dwflags: u32, pbstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); - VarBstrFromI8(i64in, lcid, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + VarBstrFromI8(i64in, lcid, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } -#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] #[inline] -pub unsafe fn VarBstrFromR4(fltin: f32, lcid: u32, dwflags: u32) -> ::windows::core::Result { +pub unsafe fn VarBstrFromR4(fltin: f32, lcid: u32, dwflags: u32) -> ::windows::core::Result<::windows::core::BSTR> { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn VarBstrFromR4(fltin: f32, lcid: u32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn VarBstrFromR4(fltin: f32, lcid: u32, dwflags: u32, pbstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); - VarBstrFromR4(fltin, lcid, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + VarBstrFromR4(fltin, lcid, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } -#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] #[inline] -pub unsafe fn VarBstrFromR8(dblin: f64, lcid: u32, dwflags: u32) -> ::windows::core::Result { +pub unsafe fn VarBstrFromR8(dblin: f64, lcid: u32, dwflags: u32) -> ::windows::core::Result<::windows::core::BSTR> { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn VarBstrFromR8(dblin: f64, lcid: u32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn VarBstrFromR8(dblin: f64, lcid: u32, dwflags: u32, pbstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); - VarBstrFromR8(dblin, lcid, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + VarBstrFromR8(dblin, lcid, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } -#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] #[inline] -pub unsafe fn VarBstrFromUI1(bval: u8, lcid: u32, dwflags: u32) -> ::windows::core::Result { +pub unsafe fn VarBstrFromUI1(bval: u8, lcid: u32, dwflags: u32) -> ::windows::core::Result<::windows::core::BSTR> { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn VarBstrFromUI1(bval: u8, lcid: u32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn VarBstrFromUI1(bval: u8, lcid: u32, dwflags: u32, pbstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); - VarBstrFromUI1(bval, lcid, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + VarBstrFromUI1(bval, lcid, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } -#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] #[inline] -pub unsafe fn VarBstrFromUI2(uiin: u16, lcid: u32, dwflags: u32) -> ::windows::core::Result { +pub unsafe fn VarBstrFromUI2(uiin: u16, lcid: u32, dwflags: u32) -> ::windows::core::Result<::windows::core::BSTR> { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn VarBstrFromUI2(uiin: u16, lcid: u32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn VarBstrFromUI2(uiin: u16, lcid: u32, dwflags: u32, pbstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); - VarBstrFromUI2(uiin, lcid, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + VarBstrFromUI2(uiin, lcid, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } -#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] #[inline] -pub unsafe fn VarBstrFromUI4(ulin: u32, lcid: u32, dwflags: u32) -> ::windows::core::Result { +pub unsafe fn VarBstrFromUI4(ulin: u32, lcid: u32, dwflags: u32) -> ::windows::core::Result<::windows::core::BSTR> { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn VarBstrFromUI4(ulin: u32, lcid: u32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn VarBstrFromUI4(ulin: u32, lcid: u32, dwflags: u32, pbstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); - VarBstrFromUI4(ulin, lcid, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + VarBstrFromUI4(ulin, lcid, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } -#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] #[inline] -pub unsafe fn VarBstrFromUI8(ui64in: u64, lcid: u32, dwflags: u32) -> ::windows::core::Result { +pub unsafe fn VarBstrFromUI8(ui64in: u64, lcid: u32, dwflags: u32) -> ::windows::core::Result<::windows::core::BSTR> { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn VarBstrFromUI8(ui64in: u64, lcid: u32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn VarBstrFromUI8(ui64in: u64, lcid: u32, dwflags: u32, pbstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); - VarBstrFromUI8(ui64in, lcid, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + VarBstrFromUI8(ui64in, lcid, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] @@ -3144,73 +3122,73 @@ pub unsafe fn VarFix(pvarin: &super::Com::VARIANT) -> ::windows::core::Result(pvarin: &super::Com::VARIANT, pstrformat: P0, ifirstday: i32, ifirstweek: i32, dwflags: u32) -> ::windows::core::Result +pub unsafe fn VarFormat<'a, P0>(pvarin: &super::Com::VARIANT, pstrformat: P0, ifirstday: i32, ifirstweek: i32, dwflags: u32) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn VarFormat(pvarin: *const super::Com::VARIANT, pstrformat: ::windows::core::PCWSTR, ifirstday: i32, ifirstweek: i32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn VarFormat(pvarin: *const super::Com::VARIANT, pstrformat: ::windows::core::PCWSTR, ifirstday: i32, ifirstweek: i32, dwflags: u32, pbstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); - VarFormat(::core::mem::transmute(pvarin), pstrformat.into(), ifirstday, ifirstweek, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + VarFormat(::core::mem::transmute(pvarin), pstrformat.into(), ifirstday, ifirstweek, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] #[inline] -pub unsafe fn VarFormatCurrency(pvarin: &super::Com::VARIANT, inumdig: i32, iinclead: i32, iuseparens: i32, igroup: i32, dwflags: u32) -> ::windows::core::Result { +pub unsafe fn VarFormatCurrency(pvarin: &super::Com::VARIANT, inumdig: i32, iinclead: i32, iuseparens: i32, igroup: i32, dwflags: u32) -> ::windows::core::Result<::windows::core::BSTR> { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn VarFormatCurrency(pvarin: *const super::Com::VARIANT, inumdig: i32, iinclead: i32, iuseparens: i32, igroup: i32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn VarFormatCurrency(pvarin: *const super::Com::VARIANT, inumdig: i32, iinclead: i32, iuseparens: i32, igroup: i32, dwflags: u32, pbstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); - VarFormatCurrency(::core::mem::transmute(pvarin), inumdig, iinclead, iuseparens, igroup, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + VarFormatCurrency(::core::mem::transmute(pvarin), inumdig, iinclead, iuseparens, igroup, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] #[inline] -pub unsafe fn VarFormatDateTime(pvarin: &super::Com::VARIANT, inamedformat: i32, dwflags: u32) -> ::windows::core::Result { +pub unsafe fn VarFormatDateTime(pvarin: &super::Com::VARIANT, inamedformat: i32, dwflags: u32) -> ::windows::core::Result<::windows::core::BSTR> { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn VarFormatDateTime(pvarin: *const super::Com::VARIANT, inamedformat: i32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn VarFormatDateTime(pvarin: *const super::Com::VARIANT, inamedformat: i32, dwflags: u32, pbstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); - VarFormatDateTime(::core::mem::transmute(pvarin), inamedformat, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + VarFormatDateTime(::core::mem::transmute(pvarin), inamedformat, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] #[inline] -pub unsafe fn VarFormatFromTokens<'a, P0>(pvarin: &super::Com::VARIANT, pstrformat: P0, pbtokcur: &u8, dwflags: u32, pbstrout: &mut super::super::Foundation::BSTR, lcid: u32) -> ::windows::core::Result<()> +pub unsafe fn VarFormatFromTokens<'a, P0>(pvarin: &super::Com::VARIANT, pstrformat: P0, pbtokcur: &u8, dwflags: u32, pbstrout: &mut ::windows::core::BSTR, lcid: u32) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn VarFormatFromTokens(pvarin: *const super::Com::VARIANT, pstrformat: ::windows::core::PCWSTR, pbtokcur: *const u8, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR, lcid: u32) -> ::windows::core::HRESULT; + fn VarFormatFromTokens(pvarin: *const super::Com::VARIANT, pstrformat: ::windows::core::PCWSTR, pbtokcur: *const u8, dwflags: u32, pbstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, lcid: u32) -> ::windows::core::HRESULT; } VarFormatFromTokens(::core::mem::transmute(pvarin), pstrformat.into(), ::core::mem::transmute(pbtokcur), dwflags, ::core::mem::transmute(pbstrout), lcid).ok() } #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] #[inline] -pub unsafe fn VarFormatNumber(pvarin: &super::Com::VARIANT, inumdig: i32, iinclead: i32, iuseparens: i32, igroup: i32, dwflags: u32) -> ::windows::core::Result { +pub unsafe fn VarFormatNumber(pvarin: &super::Com::VARIANT, inumdig: i32, iinclead: i32, iuseparens: i32, igroup: i32, dwflags: u32) -> ::windows::core::Result<::windows::core::BSTR> { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn VarFormatNumber(pvarin: *const super::Com::VARIANT, inumdig: i32, iinclead: i32, iuseparens: i32, igroup: i32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn VarFormatNumber(pvarin: *const super::Com::VARIANT, inumdig: i32, iinclead: i32, iuseparens: i32, igroup: i32, dwflags: u32, pbstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); - VarFormatNumber(::core::mem::transmute(pvarin), inumdig, iinclead, iuseparens, igroup, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + VarFormatNumber(::core::mem::transmute(pvarin), inumdig, iinclead, iuseparens, igroup, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] #[inline] -pub unsafe fn VarFormatPercent(pvarin: &super::Com::VARIANT, inumdig: i32, iinclead: i32, iuseparens: i32, igroup: i32, dwflags: u32) -> ::windows::core::Result { +pub unsafe fn VarFormatPercent(pvarin: &super::Com::VARIANT, inumdig: i32, iinclead: i32, iuseparens: i32, igroup: i32, dwflags: u32) -> ::windows::core::Result<::windows::core::BSTR> { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn VarFormatPercent(pvarin: *const super::Com::VARIANT, inumdig: i32, iinclead: i32, iuseparens: i32, igroup: i32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn VarFormatPercent(pvarin: *const super::Com::VARIANT, inumdig: i32, iinclead: i32, iuseparens: i32, igroup: i32, dwflags: u32, pbstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); - VarFormatPercent(::core::mem::transmute(pvarin), inumdig, iinclead, iuseparens, igroup, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + VarFormatPercent(::core::mem::transmute(pvarin), inumdig, iinclead, iuseparens, igroup, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Ole\"`*"] #[inline] @@ -3878,16 +3856,15 @@ pub unsafe fn VarMod(pvarleft: &super::Com::VARIANT, pvarright: &super::Com::VAR let mut result__ = ::core::mem::MaybeUninit::zeroed(); VarMod(::core::mem::transmute(pvarleft), ::core::mem::transmute(pvarright), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } -#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] #[inline] -pub unsafe fn VarMonthName(imonth: i32, fabbrev: i32, dwflags: u32) -> ::windows::core::Result { +pub unsafe fn VarMonthName(imonth: i32, fabbrev: i32, dwflags: u32) -> ::windows::core::Result<::windows::core::BSTR> { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn VarMonthName(imonth: i32, fabbrev: i32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn VarMonthName(imonth: i32, fabbrev: i32, dwflags: u32, pbstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); - VarMonthName(imonth, fabbrev, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + VarMonthName(imonth, fabbrev, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] @@ -5005,16 +4982,15 @@ pub unsafe fn VarUdateFromDate(datein: f64, dwflags: u32) -> ::windows::core::Re let mut result__ = ::core::mem::MaybeUninit::zeroed(); VarUdateFromDate(datein, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } -#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_Ole\"`*"] #[inline] -pub unsafe fn VarWeekdayName(iweekday: i32, fabbrev: i32, ifirstday: i32, dwflags: u32) -> ::windows::core::Result { +pub unsafe fn VarWeekdayName(iweekday: i32, fabbrev: i32, ifirstday: i32, dwflags: u32) -> ::windows::core::Result<::windows::core::BSTR> { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn VarWeekdayName(iweekday: i32, fabbrev: i32, ifirstday: i32, dwflags: u32, pbstrout: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn VarWeekdayName(iweekday: i32, fabbrev: i32, ifirstday: i32, dwflags: u32, pbstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); - VarWeekdayName(iweekday, fabbrev, ifirstday, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + VarWeekdayName(iweekday, fabbrev, ifirstday, dwflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] @@ -5106,19 +5082,16 @@ pub unsafe fn VariantTimeToSystemTime(vtime: f64, lpsystemtime: &mut super::supe } VariantTimeToSystemTime(vtime, ::core::mem::transmute(lpsystemtime)) } -#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Com\"`*"] +#[cfg(feature = "Win32_System_Com")] #[inline] -pub unsafe fn VectorFromBstr<'a, P0>(bstr: P0) -> ::windows::core::Result<*mut super::Com::SAFEARRAY> -where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, -{ +pub unsafe fn VectorFromBstr(bstr: &::windows::core::BSTR) -> ::windows::core::Result<*mut super::Com::SAFEARRAY> { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn VectorFromBstr(bstr: ::core::mem::ManuallyDrop, ppsa: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT; + fn VectorFromBstr(bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppsa: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); - VectorFromBstr(bstr.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut super::Com::SAFEARRAY>(result__) + VectorFromBstr(::core::mem::transmute_copy(bstr), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut super::Com::SAFEARRAY>(result__) } #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5309,23 +5282,18 @@ impl IClassFactory2 { pub unsafe fn GetLicInfo(&self, plicinfo: &mut LICINFO) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetLicInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(plicinfo)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RequestLicKey(&self, dwreserved: u32) -> ::windows::core::Result { + pub unsafe fn RequestLicKey(&self, dwreserved: u32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RequestLicKey)(::windows::core::Interface::as_raw(self), dwreserved, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RequestLicKey)(::windows::core::Interface::as_raw(self), dwreserved, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateInstanceLic<'a, P0, P1, P2, T>(&self, punkouter: P0, punkreserved: P1, bstrkey: P2) -> ::windows::core::Result + pub unsafe fn CreateInstanceLic<'a, P0, P1, T>(&self, punkouter: P0, punkreserved: P1, bstrkey: &::windows::core::BSTR) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, P1: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, T: ::windows::core::Interface, { let mut result__ = ::core::option::Option::None; - (::windows::core::Interface::vtable(self).CreateInstanceLic)(::windows::core::Interface::as_raw(self), punkouter.into().abi(), punkreserved.into().abi(), &::IID, bstrkey.into().abi(), &mut result__ as *mut _ as *mut _).and_some(result__) + (::windows::core::Interface::vtable(self).CreateInstanceLic)(::windows::core::Interface::as_raw(self), punkouter.into().abi(), punkreserved.into().abi(), &::IID, ::core::mem::transmute_copy(bstrkey), &mut result__ as *mut _ as *mut _).and_some(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -5398,14 +5366,8 @@ pub struct IClassFactory2_Vtbl { pub GetLicInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plicinfo: *mut LICINFO) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] GetLicInfo: usize, - #[cfg(feature = "Win32_Foundation")] - pub RequestLicKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwreserved: u32, pbstrkey: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RequestLicKey: usize, - #[cfg(feature = "Win32_Foundation")] - pub CreateInstanceLic: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkouter: *mut ::core::ffi::c_void, punkreserved: *mut ::core::ffi::c_void, riid: *const ::windows::core::GUID, bstrkey: ::core::mem::ManuallyDrop, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CreateInstanceLic: usize, + pub RequestLicKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwreserved: u32, pbstrkey: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CreateInstanceLic: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punkouter: *mut ::core::ffi::c_void, punkreserved: *mut ::core::ffi::c_void, riid: *const ::windows::core::GUID, bstrkey: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppvobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Ole\"`*"] #[repr(transparent)] @@ -5680,13 +5642,8 @@ impl ICreateTypeInfo { pub unsafe fn SetVarHelpContext(&self, index: u32, dwhelpcontext: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetVarHelpContext)(::windows::core::Interface::as_raw(self), index, dwhelpcontext).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMops<'a, P0>(&self, index: u32, bstrmops: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetMops)(::windows::core::Interface::as_raw(self), index, bstrmops.into().abi()).ok() + pub unsafe fn SetMops(&self, index: u32, bstrmops: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetMops)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute_copy(bstrmops)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5768,10 +5725,7 @@ pub struct ICreateTypeInfo_Vtbl { pub SetVarDocString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, szdocstring: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, pub SetFuncHelpContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, dwhelpcontext: u32) -> ::windows::core::HRESULT, pub SetVarHelpContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, dwhelpcontext: u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetMops: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, bstrmops: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetMops: usize, + pub SetMops: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32, bstrmops: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub SetTypeIdldesc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pidldesc: *const super::Com::IDLDESC) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -5872,13 +5826,8 @@ impl ICreateTypeInfo2 { pub unsafe fn SetVarHelpContext(&self, index: u32, dwhelpcontext: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetVarHelpContext)(::windows::core::Interface::as_raw(self), index, dwhelpcontext).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMops<'a, P0>(&self, index: u32, bstrmops: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetMops)(::windows::core::Interface::as_raw(self), index, bstrmops.into().abi()).ok() + pub unsafe fn SetMops(&self, index: u32, bstrmops: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetMops)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute_copy(bstrmops)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6288,22 +6237,16 @@ impl IDispError { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetHresult)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::HRESULT>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetSource(&self) -> ::windows::core::Result { + pub unsafe fn GetSource(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetSource)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetSource)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetHelpInfo(&self, pbstrfilename: &mut super::super::Foundation::BSTR, pdwcontext: &mut u32) -> ::windows::core::Result<()> { + pub unsafe fn GetHelpInfo(&self, pbstrfilename: &mut ::windows::core::BSTR, pdwcontext: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetHelpInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrfilename), ::core::mem::transmute(pdwcontext)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDescription(&self) -> ::windows::core::Result { + pub unsafe fn GetDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -6348,18 +6291,9 @@ pub struct IDispError_Vtbl { pub QueryErrorInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guiderrortype: ::windows::core::GUID, ppde: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppde: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetHresult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phr: *mut ::windows::core::HRESULT) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsource: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetSource: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetHelpInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfilename: *mut super::super::Foundation::BSTR, pdwcontext: *mut u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetHelpInfo: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDescription: usize, + pub GetSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsource: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetHelpInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfilename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwcontext: *mut u32) -> ::windows::core::HRESULT, + pub GetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Ole\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6367,14 +6301,9 @@ pub struct IDispError_Vtbl { pub struct IDispatchEx(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IDispatchEx { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDispID<'a, P0>(&self, bstrname: P0, grfdex: u32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetDispID(&self, bstrname: &::windows::core::BSTR, grfdex: u32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDispID)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), grfdex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDispID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), grfdex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] @@ -6384,13 +6313,8 @@ impl IDispatchEx { { (::windows::core::Interface::vtable(self).InvokeEx)(::windows::core::Interface::as_raw(self), id, lcid, wflags, ::core::mem::transmute(pdp), ::core::mem::transmute(pvarres), ::core::mem::transmute(pei), pspcaller.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeleteMemberByName<'a, P0>(&self, bstrname: P0, grfdex: u32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DeleteMemberByName)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), grfdex).ok() + pub unsafe fn DeleteMemberByName(&self, bstrname: &::windows::core::BSTR, grfdex: u32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DeleteMemberByName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), grfdex).ok() } pub unsafe fn DeleteMemberByDispID(&self, id: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).DeleteMemberByDispID)(::windows::core::Interface::as_raw(self), id).ok() @@ -6399,11 +6323,9 @@ impl IDispatchEx { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetMemberProperties)(::windows::core::Interface::as_raw(self), id, grfdexfetch, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetMemberName(&self, id: i32) -> ::windows::core::Result { + pub unsafe fn GetMemberName(&self, id: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetMemberName)(::windows::core::Interface::as_raw(self), id, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetMemberName)(::windows::core::Interface::as_raw(self), id, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetNextDispID(&self, grfdex: u32, id: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6480,24 +6402,15 @@ unsafe impl ::windows::core::Interface for IDispatchEx { #[doc(hidden)] pub struct IDispatchEx_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetDispID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, grfdex: u32, pid: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDispID: usize, + pub GetDispID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, grfdex: u32, pid: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub InvokeEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: i32, lcid: u32, wflags: u16, pdp: *const super::Com::DISPPARAMS, pvarres: *mut super::Com::VARIANT, pei: *mut super::Com::EXCEPINFO, pspcaller: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] InvokeEx: usize, - #[cfg(feature = "Win32_Foundation")] - pub DeleteMemberByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, grfdex: u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeleteMemberByName: usize, + pub DeleteMemberByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, grfdex: u32) -> ::windows::core::HRESULT, pub DeleteMemberByDispID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: i32) -> ::windows::core::HRESULT, pub GetMemberProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: i32, grfdexfetch: u32, pgrfdex: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetMemberName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: i32, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetMemberName: usize, + pub GetMemberName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: i32, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetNextDispID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, grfdex: u32, id: i32, pid: *mut i32) -> ::windows::core::HRESULT, pub GetNameSpaceParent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } @@ -7024,19 +6937,12 @@ pub struct IEnumVARIANT_Vtbl { #[repr(transparent)] pub struct IFont(::windows::core::IUnknown); impl IFont { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7208,14 +7114,8 @@ unsafe impl ::windows::core::Interface for IFont { #[doc(hidden)] pub struct IFont_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Size: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psize: *mut super::Com::CY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -10368,11 +10268,9 @@ impl IOleParentUndoUnit { { (::windows::core::Interface::vtable(self).base__.Do)(::windows::core::Interface::as_raw(self), pundomanager.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDescription(&self) -> ::windows::core::Result { + pub unsafe fn GetDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetUnitType(&self, pclsid: &mut ::windows::core::GUID, plid: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetUnitType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pclsid), ::core::mem::transmute(plid)).ok() @@ -11096,17 +10994,13 @@ impl IOleUndoManager { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).EnumRedoable)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetLastUndoDescription(&self) -> ::windows::core::Result { + pub unsafe fn GetLastUndoDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetLastUndoDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetLastUndoDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetLastRedoDescription(&self) -> ::windows::core::Result { + pub unsafe fn GetLastRedoDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetLastRedoDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetLastRedoDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -11168,14 +11062,8 @@ pub struct IOleUndoManager_Vtbl { pub RedoTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puu: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub EnumUndoable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub EnumRedoable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetLastUndoDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetLastUndoDescription: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetLastRedoDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetLastRedoDescription: usize, + pub GetLastUndoDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetLastRedoDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub Enable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fenable: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -11191,11 +11079,9 @@ impl IOleUndoUnit { { (::windows::core::Interface::vtable(self).Do)(::windows::core::Interface::as_raw(self), pundomanager.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDescription(&self) -> ::windows::core::Result { + pub unsafe fn GetDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetUnitType(&self, pclsid: &mut ::windows::core::GUID, plid: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetUnitType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pclsid), ::core::mem::transmute(plid)).ok() @@ -11244,10 +11130,7 @@ unsafe impl ::windows::core::Interface for IOleUndoUnit { pub struct IOleUndoUnit_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub Do: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pundomanager: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDescription: usize, + pub GetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetUnitType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pclsid: *mut ::windows::core::GUID, plid: *mut i32) -> ::windows::core::HRESULT, pub OnNextAdd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } @@ -11380,11 +11263,9 @@ pub struct IParseDisplayName_Vtbl { #[repr(transparent)] pub struct IPerPropertyBrowsing(::windows::core::IUnknown); impl IPerPropertyBrowsing { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDisplayString(&self, dispid: i32) -> ::windows::core::Result { + pub unsafe fn GetDisplayString(&self, dispid: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDisplayString)(::windows::core::Interface::as_raw(self), dispid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDisplayString)(::windows::core::Interface::as_raw(self), dispid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn MapPropertyToPage(&self, dispid: i32) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -11439,10 +11320,7 @@ unsafe impl ::windows::core::Interface for IPerPropertyBrowsing { #[doc(hidden)] pub struct IPerPropertyBrowsing_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetDisplayString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dispid: i32, pbstr: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDisplayString: usize, + pub GetDisplayString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dispid: i32, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub MapPropertyToPage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dispid: i32, pclsid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, pub GetPredefinedStrings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dispid: i32, pcastringsout: *mut CALPOLESTR, pcacookiesout: *mut CADWORD) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] @@ -13049,11 +12927,9 @@ impl IRecordInfo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self) -> ::windows::core::Result { + pub unsafe fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetSize(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -13098,9 +12974,7 @@ impl IRecordInfo { { (::windows::core::Interface::vtable(self).PutFieldNoCopy)(::windows::core::Interface::as_raw(self), wflags, ::core::mem::transmute(pvdata), szfieldname.into(), ::core::mem::transmute(pvarfield)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetFieldNames(&self, pcnames: &mut u32, rgbstrnames: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetFieldNames(&self, pcnames: &mut u32, rgbstrnames: *mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetFieldNames)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pcnames), ::core::mem::transmute(rgbstrnames)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] @@ -13164,10 +13038,7 @@ pub struct IRecordInfo_Vtbl { pub RecordClear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvexisting: *const ::core::ffi::c_void) -> ::windows::core::HRESULT, pub RecordCopy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvexisting: *const ::core::ffi::c_void, pvnew: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetName: usize, + pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcbsize: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub GetTypeInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pptypeinfo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -13189,10 +13060,7 @@ pub struct IRecordInfo_Vtbl { pub PutFieldNoCopy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wflags: u32, pvdata: *mut ::core::ffi::c_void, szfieldname: ::windows::core::PCWSTR, pvarfield: *const super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] PutFieldNoCopy: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetFieldNames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcnames: *mut u32, rgbstrnames: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetFieldNames: usize, + pub GetFieldNames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcnames: *mut u32, rgbstrnames: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub IsMatchingType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, precordinfo: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL, #[cfg(not(feature = "Win32_Foundation"))] @@ -13522,11 +13390,8 @@ pub struct IVBFormat(::windows::core::IUnknown); impl IVBFormat { #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Format<'a, P0>(&self, vdata: &mut super::Com::VARIANT, bstrformat: P0, lpbuffer: *mut ::core::ffi::c_void, cb: u16, lcid: i32, sfirstdayofweek: i16, sfirstweekofyear: u16, rcb: &mut u16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Format)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(vdata), bstrformat.into().abi(), ::core::mem::transmute(lpbuffer), cb, lcid, sfirstdayofweek, sfirstweekofyear, ::core::mem::transmute(rcb)).ok() + pub unsafe fn Format(&self, vdata: &mut super::Com::VARIANT, bstrformat: &::windows::core::BSTR, lpbuffer: *mut ::core::ffi::c_void, cb: u16, lcid: i32, sfirstdayofweek: i16, sfirstweekofyear: u16, rcb: &mut u16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Format)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(vdata), ::core::mem::transmute_copy(bstrformat), ::core::mem::transmute(lpbuffer), cb, lcid, sfirstdayofweek, sfirstweekofyear, ::core::mem::transmute(rcb)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -13569,7 +13434,7 @@ unsafe impl ::windows::core::Interface for IVBFormat { pub struct IVBFormat_Vtbl { pub base__: ::windows::core::IUnknownVtbl, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Format: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vdata: *mut super::Com::VARIANT, bstrformat: ::core::mem::ManuallyDrop, lpbuffer: *mut ::core::ffi::c_void, cb: u16, lcid: i32, sfirstdayofweek: i16, sfirstweekofyear: u16, rcb: *mut u16) -> ::windows::core::HRESULT, + pub Format: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vdata: *mut super::Com::VARIANT, bstrformat: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lpbuffer: *mut ::core::ffi::c_void, cb: u16, lcid: i32, sfirstdayofweek: i16, sfirstweekofyear: u16, rcb: *mut u16) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] Format: usize, } diff --git a/crates/libs/windows/src/Windows/Win32/System/ParentalControls/impl.rs b/crates/libs/windows/src/Windows/Win32/System/ParentalControls/impl.rs index 39a909f6b9..c48f60f694 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ParentalControls/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ParentalControls/impl.rs @@ -26,16 +26,16 @@ impl IWPCGamesSettings_Vtbl { } #[cfg(feature = "Win32_Foundation")] pub trait IWPCProviderConfig_Impl: Sized { - fn GetUserSummary(&self, bstrsid: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn Configure(&self, hwnd: super::super::Foundation::HWND, bstrsid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn RequestOverride(&self, hwnd: super::super::Foundation::HWND, bstrpath: &super::super::Foundation::BSTR, dwflags: WPCFLAG_RESTRICTION) -> ::windows::core::Result<()>; + fn GetUserSummary(&self, bstrsid: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; + fn Configure(&self, hwnd: super::super::Foundation::HWND, bstrsid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn RequestOverride(&self, hwnd: super::super::Foundation::HWND, bstrpath: &::windows::core::BSTR, dwflags: WPCFLAG_RESTRICTION) -> ::windows::core::Result<()>; } #[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IWPCProviderConfig {} #[cfg(feature = "Win32_Foundation")] impl IWPCProviderConfig_Vtbl { pub const fn new, Impl: IWPCProviderConfig_Impl, const OFFSET: isize>() -> IWPCProviderConfig_Vtbl { - unsafe extern "system" fn GetUserSummary, Impl: IWPCProviderConfig_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsid: ::core::mem::ManuallyDrop, pbstrusersummary: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetUserSummary, Impl: IWPCProviderConfig_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrusersummary: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetUserSummary(::core::mem::transmute(&bstrsid)) { @@ -46,12 +46,12 @@ impl IWPCProviderConfig_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Configure, Impl: IWPCProviderConfig_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND, bstrsid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Configure, Impl: IWPCProviderConfig_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND, bstrsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Configure(::core::mem::transmute_copy(&hwnd), ::core::mem::transmute(&bstrsid)).into() } - unsafe extern "system" fn RequestOverride, Impl: IWPCProviderConfig_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND, bstrpath: ::core::mem::ManuallyDrop, dwflags: WPCFLAG_RESTRICTION) -> ::windows::core::HRESULT { + unsafe extern "system" fn RequestOverride, Impl: IWPCProviderConfig_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND, bstrpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwflags: WPCFLAG_RESTRICTION) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RequestOverride(::core::mem::transmute_copy(&hwnd), ::core::mem::transmute(&bstrpath), ::core::mem::transmute_copy(&dwflags)).into() diff --git a/crates/libs/windows/src/Windows/Win32/System/ParentalControls/mod.rs b/crates/libs/windows/src/Windows/Win32/System/ParentalControls/mod.rs index 54cf2f665c..7f4986f320 100644 --- a/crates/libs/windows/src/Windows/Win32/System/ParentalControls/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/ParentalControls/mod.rs @@ -83,32 +83,25 @@ pub struct IWPCGamesSettings_Vtbl { #[repr(transparent)] pub struct IWPCProviderConfig(::windows::core::IUnknown); impl IWPCProviderConfig { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetUserSummary<'a, P0>(&self, bstrsid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetUserSummary(&self, bstrsid: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetUserSummary)(::windows::core::Interface::as_raw(self), bstrsid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetUserSummary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Configure<'a, P0, P1>(&self, hwnd: P0, bstrsid: P1) -> ::windows::core::Result<()> + pub unsafe fn Configure<'a, P0>(&self, hwnd: P0, bstrsid: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).Configure)(::windows::core::Interface::as_raw(self), hwnd.into(), bstrsid.into().abi()).ok() + (::windows::core::Interface::vtable(self).Configure)(::windows::core::Interface::as_raw(self), hwnd.into(), ::core::mem::transmute_copy(bstrsid)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RequestOverride<'a, P0, P1>(&self, hwnd: P0, bstrpath: P1, dwflags: WPCFLAG_RESTRICTION) -> ::windows::core::Result<()> + pub unsafe fn RequestOverride<'a, P0>(&self, hwnd: P0, bstrpath: &::windows::core::BSTR, dwflags: WPCFLAG_RESTRICTION) -> ::windows::core::Result<()> where P0: ::std::convert::Into, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).RequestOverride)(::windows::core::Interface::as_raw(self), hwnd.into(), bstrpath.into().abi(), dwflags).ok() + (::windows::core::Interface::vtable(self).RequestOverride)(::windows::core::Interface::as_raw(self), hwnd.into(), ::core::mem::transmute_copy(bstrpath), dwflags).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -150,16 +143,13 @@ unsafe impl ::windows::core::Interface for IWPCProviderConfig { #[doc(hidden)] pub struct IWPCProviderConfig_Vtbl { pub base__: ::windows::core::IUnknownVtbl, + pub GetUserSummary: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrusersummary: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub GetUserSummary: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsid: ::core::mem::ManuallyDrop, pbstrusersummary: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetUserSummary: usize, - #[cfg(feature = "Win32_Foundation")] - pub Configure: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND, bstrsid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub Configure: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND, bstrsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] Configure: usize, #[cfg(feature = "Win32_Foundation")] - pub RequestOverride: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND, bstrpath: ::core::mem::ManuallyDrop, dwflags: WPCFLAG_RESTRICTION) -> ::windows::core::HRESULT, + pub RequestOverride: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND, bstrpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwflags: WPCFLAG_RESTRICTION) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] RequestOverride: usize, } diff --git a/crates/libs/windows/src/Windows/Win32/System/Performance/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Performance/impl.rs index d9c06c5bf8..f4696d5c28 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Performance/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Performance/impl.rs @@ -71,16 +71,16 @@ pub trait IAlertDataCollector_Impl: Sized + super::Com::IDispatch_Impl + IDataCo fn SetEventLog(&self, log: i16) -> ::windows::core::Result<()>; fn SampleInterval(&self) -> ::windows::core::Result; fn SetSampleInterval(&self, interval: u32) -> ::windows::core::Result<()>; - fn Task(&self) -> ::windows::core::Result; - fn SetTask(&self, task: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Task(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetTask(&self, task: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn TaskRunAsSelf(&self) -> ::windows::core::Result; fn SetTaskRunAsSelf(&self, runasself: i16) -> ::windows::core::Result<()>; - fn TaskArguments(&self) -> ::windows::core::Result; - fn SetTaskArguments(&self, task: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn TaskUserTextArguments(&self) -> ::windows::core::Result; - fn SetTaskUserTextArguments(&self, task: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn TriggerDataCollectorSet(&self) -> ::windows::core::Result; - fn SetTriggerDataCollectorSet(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn TaskArguments(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetTaskArguments(&self, task: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn TaskUserTextArguments(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetTaskUserTextArguments(&self, task: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn TriggerDataCollectorSet(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetTriggerDataCollectorSet(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IAlertDataCollector {} @@ -135,7 +135,7 @@ impl IAlertDataCollector_Vtbl { let this = (*this).get_impl(); this.SetSampleInterval(::core::mem::transmute_copy(&interval)).into() } - unsafe extern "system" fn Task, Impl: IAlertDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, task: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Task, Impl: IAlertDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, task: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Task() { @@ -146,7 +146,7 @@ impl IAlertDataCollector_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetTask, Impl: IAlertDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, task: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetTask, Impl: IAlertDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, task: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetTask(::core::mem::transmute(&task)).into() @@ -167,7 +167,7 @@ impl IAlertDataCollector_Vtbl { let this = (*this).get_impl(); this.SetTaskRunAsSelf(::core::mem::transmute_copy(&runasself)).into() } - unsafe extern "system" fn TaskArguments, Impl: IAlertDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, task: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TaskArguments, Impl: IAlertDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, task: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TaskArguments() { @@ -178,12 +178,12 @@ impl IAlertDataCollector_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetTaskArguments, Impl: IAlertDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, task: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetTaskArguments, Impl: IAlertDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, task: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetTaskArguments(::core::mem::transmute(&task)).into() } - unsafe extern "system" fn TaskUserTextArguments, Impl: IAlertDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, task: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TaskUserTextArguments, Impl: IAlertDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, task: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TaskUserTextArguments() { @@ -194,12 +194,12 @@ impl IAlertDataCollector_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetTaskUserTextArguments, Impl: IAlertDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, task: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetTaskUserTextArguments, Impl: IAlertDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, task: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetTaskUserTextArguments(::core::mem::transmute(&task)).into() } - unsafe extern "system" fn TriggerDataCollectorSet, Impl: IAlertDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TriggerDataCollectorSet, Impl: IAlertDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TriggerDataCollectorSet() { @@ -210,7 +210,7 @@ impl IAlertDataCollector_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetTriggerDataCollectorSet, Impl: IAlertDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetTriggerDataCollectorSet, Impl: IAlertDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetTriggerDataCollectorSet(::core::mem::transmute(&name)).into() @@ -245,10 +245,10 @@ pub trait IApiTracingDataCollector_Impl: Sized + super::Com::IDispatch_Impl + ID fn SetLogApiNamesOnly(&self, logapinames: i16) -> ::windows::core::Result<()>; fn LogApisRecursively(&self) -> ::windows::core::Result; fn SetLogApisRecursively(&self, logrecursively: i16) -> ::windows::core::Result<()>; - fn ExePath(&self) -> ::windows::core::Result; - fn SetExePath(&self, exepath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn LogFilePath(&self) -> ::windows::core::Result; - fn SetLogFilePath(&self, logfilepath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ExePath(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetExePath(&self, exepath: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn LogFilePath(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetLogFilePath(&self, logfilepath: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn IncludeModules(&self) -> ::windows::core::Result<*mut super::Com::SAFEARRAY>; fn SetIncludeModules(&self, includemodules: *const super::Com::SAFEARRAY) -> ::windows::core::Result<()>; fn IncludeApis(&self) -> ::windows::core::Result<*mut super::Com::SAFEARRAY>; @@ -293,7 +293,7 @@ impl IApiTracingDataCollector_Vtbl { let this = (*this).get_impl(); this.SetLogApisRecursively(::core::mem::transmute_copy(&logrecursively)).into() } - unsafe extern "system" fn ExePath, Impl: IApiTracingDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, exepath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExePath, Impl: IApiTracingDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, exepath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ExePath() { @@ -304,12 +304,12 @@ impl IApiTracingDataCollector_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetExePath, Impl: IApiTracingDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, exepath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetExePath, Impl: IApiTracingDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, exepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetExePath(::core::mem::transmute(&exepath)).into() } - unsafe extern "system" fn LogFilePath, Impl: IApiTracingDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, logfilepath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LogFilePath, Impl: IApiTracingDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, logfilepath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LogFilePath() { @@ -320,7 +320,7 @@ impl IApiTracingDataCollector_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetLogFilePath, Impl: IApiTracingDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, logfilepath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetLogFilePath, Impl: IApiTracingDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, logfilepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetLogFilePath(::core::mem::transmute(&logfilepath)).into() @@ -413,8 +413,8 @@ pub trait IConfigurationDataCollector_Impl: Sized + super::Com::IDispatch_Impl + fn SetRegistryKeys(&self, query: *const super::Com::SAFEARRAY) -> ::windows::core::Result<()>; fn RegistryMaxRecursiveDepth(&self) -> ::windows::core::Result; fn SetRegistryMaxRecursiveDepth(&self, depth: u32) -> ::windows::core::Result<()>; - fn SystemStateFile(&self) -> ::windows::core::Result; - fn SetSystemStateFile(&self, filename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SystemStateFile(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetSystemStateFile(&self, filename: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IConfigurationDataCollector {} @@ -549,7 +549,7 @@ impl IConfigurationDataCollector_Vtbl { let this = (*this).get_impl(); this.SetRegistryMaxRecursiveDepth(::core::mem::transmute_copy(&depth)).into() } - unsafe extern "system" fn SystemStateFile, Impl: IConfigurationDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SystemStateFile, Impl: IConfigurationDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SystemStateFile() { @@ -560,7 +560,7 @@ impl IConfigurationDataCollector_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSystemStateFile, Impl: IConfigurationDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSystemStateFile, Impl: IConfigurationDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSystemStateFile(::core::mem::transmute(&filename)).into() @@ -591,7 +591,6 @@ impl IConfigurationDataCollector_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait ICounterItem_Impl: Sized { fn Value(&self) -> ::windows::core::Result; fn SetColor(&self, color: u32) -> ::windows::core::Result<()>; @@ -602,13 +601,11 @@ pub trait ICounterItem_Impl: Sized { fn LineStyle(&self) -> ::windows::core::Result; fn SetScaleFactor(&self, iscale: i32) -> ::windows::core::Result<()>; fn ScaleFactor(&self) -> ::windows::core::Result; - fn Path(&self) -> ::windows::core::Result; + fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetValue(&self, value: *mut f64, status: *mut i32) -> ::windows::core::Result<()>; fn GetStatistics(&self, max: *mut f64, min: *mut f64, avg: *mut f64, status: *mut i32) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ICounterItem {} -#[cfg(feature = "Win32_Foundation")] impl ICounterItem_Vtbl { pub const fn new, Impl: ICounterItem_Impl, const OFFSET: isize>() -> ICounterItem_Vtbl { unsafe extern "system" fn Value, Impl: ICounterItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdblvalue: *mut f64) -> ::windows::core::HRESULT { @@ -686,7 +683,7 @@ impl ICounterItem_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Path, Impl: ICounterItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Path, Impl: ICounterItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Path() { @@ -801,7 +798,7 @@ pub trait ICounters_Impl: Sized + super::Com::IDispatch_Impl { fn Count(&self) -> ::windows::core::Result; fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; fn get_Item(&self, index: &super::Com::VARIANT) -> ::windows::core::Result; - fn Add(&self, pathname: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn Add(&self, pathname: &::windows::core::BSTR) -> ::windows::core::Result; fn Remove(&self, index: &super::Com::VARIANT) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -842,7 +839,7 @@ impl ICounters_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Add, Impl: ICounters_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pathname: ::core::mem::ManuallyDrop, ppi: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Add, Impl: ICounters_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pathname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppi: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Add(::core::mem::transmute(&pathname)) { @@ -876,28 +873,28 @@ pub trait IDataCollector_Impl: Sized + super::Com::IDispatch_Impl { fn DataCollectorSet(&self) -> ::windows::core::Result; fn SetDataCollectorSet(&self, group: &::core::option::Option) -> ::windows::core::Result<()>; fn DataCollectorType(&self) -> ::windows::core::Result; - fn FileName(&self) -> ::windows::core::Result; - fn SetFileName(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn FileName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetFileName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn FileNameFormat(&self) -> ::windows::core::Result; fn SetFileNameFormat(&self, format: AutoPathFormat) -> ::windows::core::Result<()>; - fn FileNameFormatPattern(&self) -> ::windows::core::Result; - fn SetFileNameFormatPattern(&self, pattern: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn LatestOutputLocation(&self) -> ::windows::core::Result; - fn SetLatestOutputLocation(&self, path: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn FileNameFormatPattern(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetFileNameFormatPattern(&self, pattern: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn LatestOutputLocation(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetLatestOutputLocation(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn LogAppend(&self) -> ::windows::core::Result; fn SetLogAppend(&self, append: i16) -> ::windows::core::Result<()>; fn LogCircular(&self) -> ::windows::core::Result; fn SetLogCircular(&self, circular: i16) -> ::windows::core::Result<()>; fn LogOverwrite(&self) -> ::windows::core::Result; fn SetLogOverwrite(&self, overwrite: i16) -> ::windows::core::Result<()>; - fn Name(&self) -> ::windows::core::Result; - fn SetName(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn OutputLocation(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn OutputLocation(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Index(&self) -> ::windows::core::Result; fn SetIndex(&self, index: i32) -> ::windows::core::Result<()>; - fn Xml(&self) -> ::windows::core::Result; - fn SetXml(&self, xml: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn CreateOutputLocation(&self, latest: i16) -> ::windows::core::Result; + fn Xml(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetXml(&self, xml: &::windows::core::BSTR) -> ::windows::core::Result; + fn CreateOutputLocation(&self, latest: i16) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IDataCollector {} @@ -931,7 +928,7 @@ impl IDataCollector_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn FileName, Impl: IDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FileName, Impl: IDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FileName() { @@ -942,7 +939,7 @@ impl IDataCollector_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetFileName, Impl: IDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetFileName, Impl: IDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetFileName(::core::mem::transmute(&name)).into() @@ -963,7 +960,7 @@ impl IDataCollector_Vtbl { let this = (*this).get_impl(); this.SetFileNameFormat(::core::mem::transmute_copy(&format)).into() } - unsafe extern "system" fn FileNameFormatPattern, Impl: IDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pattern: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FileNameFormatPattern, Impl: IDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pattern: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FileNameFormatPattern() { @@ -974,12 +971,12 @@ impl IDataCollector_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetFileNameFormatPattern, Impl: IDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pattern: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetFileNameFormatPattern, Impl: IDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pattern: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetFileNameFormatPattern(::core::mem::transmute(&pattern)).into() } - unsafe extern "system" fn LatestOutputLocation, Impl: IDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LatestOutputLocation, Impl: IDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LatestOutputLocation() { @@ -990,7 +987,7 @@ impl IDataCollector_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetLatestOutputLocation, Impl: IDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetLatestOutputLocation, Impl: IDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetLatestOutputLocation(::core::mem::transmute(&path)).into() @@ -1043,7 +1040,7 @@ impl IDataCollector_Vtbl { let this = (*this).get_impl(); this.SetLogOverwrite(::core::mem::transmute_copy(&overwrite)).into() } - unsafe extern "system" fn Name, Impl: IDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -1054,12 +1051,12 @@ impl IDataCollector_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetName, Impl: IDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: IDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&name)).into() } - unsafe extern "system" fn OutputLocation, Impl: IDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn OutputLocation, Impl: IDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OutputLocation() { @@ -1086,7 +1083,7 @@ impl IDataCollector_Vtbl { let this = (*this).get_impl(); this.SetIndex(::core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn Xml, Impl: IDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, xml: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Xml, Impl: IDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, xml: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Xml() { @@ -1097,7 +1094,7 @@ impl IDataCollector_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetXml, Impl: IDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, xml: ::core::mem::ManuallyDrop, validation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetXml, Impl: IDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, xml: ::core::mem::ManuallyDrop<::windows::core::BSTR>, validation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SetXml(::core::mem::transmute(&xml)) { @@ -1108,7 +1105,7 @@ impl IDataCollector_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateOutputLocation, Impl: IDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, latest: i16, location: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateOutputLocation, Impl: IDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, latest: i16, location: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateOutputLocation(::core::mem::transmute_copy(&latest)) { @@ -1161,7 +1158,7 @@ pub trait IDataCollectorCollection_Impl: Sized + super::Com::IDispatch_Impl { fn Remove(&self, collector: &super::Com::VARIANT) -> ::windows::core::Result<()>; fn Clear(&self) -> ::windows::core::Result<()>; fn AddRange(&self, collectors: &::core::option::Option) -> ::windows::core::Result<()>; - fn CreateDataCollectorFromXml(&self, bstrxml: &super::super::Foundation::BSTR, pvalidation: *mut ::core::option::Option, pcollector: *mut ::core::option::Option) -> ::windows::core::Result<()>; + fn CreateDataCollectorFromXml(&self, bstrxml: &::windows::core::BSTR, pvalidation: *mut ::core::option::Option, pcollector: *mut ::core::option::Option) -> ::windows::core::Result<()>; fn CreateDataCollector(&self, r#type: DataCollectorType) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -1222,7 +1219,7 @@ impl IDataCollectorCollection_Vtbl { let this = (*this).get_impl(); this.AddRange(::core::mem::transmute(&collectors)).into() } - unsafe extern "system" fn CreateDataCollectorFromXml, Impl: IDataCollectorCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrxml: ::core::mem::ManuallyDrop, pvalidation: *mut *mut ::core::ffi::c_void, pcollector: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateDataCollectorFromXml, Impl: IDataCollectorCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrxml: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvalidation: *mut *mut ::core::ffi::c_void, pcollector: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CreateDataCollectorFromXml(::core::mem::transmute(&bstrxml), ::core::mem::transmute_copy(&pvalidation), ::core::mem::transmute_copy(&pcollector)).into() @@ -1260,20 +1257,20 @@ pub trait IDataCollectorSet_Impl: Sized + super::Com::IDispatch_Impl { fn DataCollectors(&self) -> ::windows::core::Result; fn Duration(&self) -> ::windows::core::Result; fn SetDuration(&self, seconds: u32) -> ::windows::core::Result<()>; - fn Description(&self) -> ::windows::core::Result; - fn SetDescription(&self, description: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn DescriptionUnresolved(&self) -> ::windows::core::Result; - fn DisplayName(&self) -> ::windows::core::Result; - fn SetDisplayName(&self, displayname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn DisplayNameUnresolved(&self) -> ::windows::core::Result; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn DescriptionUnresolved(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDisplayName(&self, displayname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn DisplayNameUnresolved(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Keywords(&self) -> ::windows::core::Result<*mut super::Com::SAFEARRAY>; fn SetKeywords(&self, keywords: *const super::Com::SAFEARRAY) -> ::windows::core::Result<()>; - fn LatestOutputLocation(&self) -> ::windows::core::Result; - fn SetLatestOutputLocation(&self, path: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Name(&self) -> ::windows::core::Result; - fn OutputLocation(&self) -> ::windows::core::Result; - fn RootPath(&self) -> ::windows::core::Result; - fn SetRootPath(&self, folder: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn LatestOutputLocation(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetLatestOutputLocation(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn OutputLocation(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn RootPath(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetRootPath(&self, folder: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Segment(&self) -> ::windows::core::Result; fn SetSegment(&self, segment: i16) -> ::windows::core::Result<()>; fn SegmentMaxDuration(&self) -> ::windows::core::Result; @@ -1282,41 +1279,41 @@ pub trait IDataCollectorSet_Impl: Sized + super::Com::IDispatch_Impl { fn SetSegmentMaxSize(&self, size: u32) -> ::windows::core::Result<()>; fn SerialNumber(&self) -> ::windows::core::Result; fn SetSerialNumber(&self, index: u32) -> ::windows::core::Result<()>; - fn Server(&self) -> ::windows::core::Result; + fn Server(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Status(&self) -> ::windows::core::Result; - fn Subdirectory(&self) -> ::windows::core::Result; - fn SetSubdirectory(&self, folder: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Subdirectory(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetSubdirectory(&self, folder: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SubdirectoryFormat(&self) -> ::windows::core::Result; fn SetSubdirectoryFormat(&self, format: AutoPathFormat) -> ::windows::core::Result<()>; - fn SubdirectoryFormatPattern(&self) -> ::windows::core::Result; - fn SetSubdirectoryFormatPattern(&self, pattern: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Task(&self) -> ::windows::core::Result; - fn SetTask(&self, task: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SubdirectoryFormatPattern(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetSubdirectoryFormatPattern(&self, pattern: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Task(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetTask(&self, task: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn TaskRunAsSelf(&self) -> ::windows::core::Result; fn SetTaskRunAsSelf(&self, runasself: i16) -> ::windows::core::Result<()>; - fn TaskArguments(&self) -> ::windows::core::Result; - fn SetTaskArguments(&self, task: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn TaskUserTextArguments(&self) -> ::windows::core::Result; - fn SetTaskUserTextArguments(&self, usertext: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn TaskArguments(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetTaskArguments(&self, task: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn TaskUserTextArguments(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetTaskUserTextArguments(&self, usertext: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Schedules(&self) -> ::windows::core::Result; fn SchedulesEnabled(&self) -> ::windows::core::Result; fn SetSchedulesEnabled(&self, enabled: i16) -> ::windows::core::Result<()>; - fn UserAccount(&self) -> ::windows::core::Result; - fn Xml(&self) -> ::windows::core::Result; - fn Security(&self) -> ::windows::core::Result; - fn SetSecurity(&self, bstrsecurity: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn UserAccount(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Xml(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Security(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetSecurity(&self, bstrsecurity: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn StopOnCompletion(&self) -> ::windows::core::Result; fn SetStopOnCompletion(&self, stop: i16) -> ::windows::core::Result<()>; fn DataManager(&self) -> ::windows::core::Result; - fn SetCredentials(&self, user: &super::super::Foundation::BSTR, password: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Query(&self, name: &super::super::Foundation::BSTR, server: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Commit(&self, name: &super::super::Foundation::BSTR, server: &super::super::Foundation::BSTR, mode: CommitMode) -> ::windows::core::Result; + fn SetCredentials(&self, user: &::windows::core::BSTR, password: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Query(&self, name: &::windows::core::BSTR, server: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Commit(&self, name: &::windows::core::BSTR, server: &::windows::core::BSTR, mode: CommitMode) -> ::windows::core::Result; fn Delete(&self) -> ::windows::core::Result<()>; fn Start(&self, synchronous: i16) -> ::windows::core::Result<()>; fn Stop(&self, synchronous: i16) -> ::windows::core::Result<()>; - fn SetXml(&self, xml: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn SetValue(&self, key: &super::super::Foundation::BSTR, value: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetValue(&self, key: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn SetXml(&self, xml: &::windows::core::BSTR) -> ::windows::core::Result; + fn SetValue(&self, key: &::windows::core::BSTR, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetValue(&self, key: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IDataCollectorSet {} @@ -1350,7 +1347,7 @@ impl IDataCollectorSet_Vtbl { let this = (*this).get_impl(); this.SetDuration(::core::mem::transmute_copy(&seconds)).into() } - unsafe extern "system" fn Description, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -1361,12 +1358,12 @@ impl IDataCollectorSet_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDescription, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDescription(::core::mem::transmute(&description)).into() } - unsafe extern "system" fn DescriptionUnresolved, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, descr: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DescriptionUnresolved, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, descr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DescriptionUnresolved() { @@ -1377,7 +1374,7 @@ impl IDataCollectorSet_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DisplayName, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, displayname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DisplayName, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, displayname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DisplayName() { @@ -1388,12 +1385,12 @@ impl IDataCollectorSet_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDisplayName, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, displayname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDisplayName, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, displayname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDisplayName(::core::mem::transmute(&displayname)).into() } - unsafe extern "system" fn DisplayNameUnresolved, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DisplayNameUnresolved, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DisplayNameUnresolved() { @@ -1420,7 +1417,7 @@ impl IDataCollectorSet_Vtbl { let this = (*this).get_impl(); this.SetKeywords(::core::mem::transmute_copy(&keywords)).into() } - unsafe extern "system" fn LatestOutputLocation, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LatestOutputLocation, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LatestOutputLocation() { @@ -1431,12 +1428,12 @@ impl IDataCollectorSet_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetLatestOutputLocation, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetLatestOutputLocation, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetLatestOutputLocation(::core::mem::transmute(&path)).into() } - unsafe extern "system" fn Name, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -1447,7 +1444,7 @@ impl IDataCollectorSet_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn OutputLocation, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn OutputLocation, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OutputLocation() { @@ -1458,7 +1455,7 @@ impl IDataCollectorSet_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RootPath, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, folder: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RootPath, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, folder: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RootPath() { @@ -1469,7 +1466,7 @@ impl IDataCollectorSet_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetRootPath, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, folder: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetRootPath, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, folder: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetRootPath(::core::mem::transmute(&folder)).into() @@ -1538,7 +1535,7 @@ impl IDataCollectorSet_Vtbl { let this = (*this).get_impl(); this.SetSerialNumber(::core::mem::transmute_copy(&index)).into() } - unsafe extern "system" fn Server, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, server: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Server, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, server: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Server() { @@ -1560,7 +1557,7 @@ impl IDataCollectorSet_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Subdirectory, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, folder: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Subdirectory, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, folder: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Subdirectory() { @@ -1571,7 +1568,7 @@ impl IDataCollectorSet_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSubdirectory, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, folder: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSubdirectory, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, folder: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSubdirectory(::core::mem::transmute(&folder)).into() @@ -1592,7 +1589,7 @@ impl IDataCollectorSet_Vtbl { let this = (*this).get_impl(); this.SetSubdirectoryFormat(::core::mem::transmute_copy(&format)).into() } - unsafe extern "system" fn SubdirectoryFormatPattern, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pattern: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SubdirectoryFormatPattern, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pattern: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SubdirectoryFormatPattern() { @@ -1603,12 +1600,12 @@ impl IDataCollectorSet_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSubdirectoryFormatPattern, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pattern: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSubdirectoryFormatPattern, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pattern: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSubdirectoryFormatPattern(::core::mem::transmute(&pattern)).into() } - unsafe extern "system" fn Task, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, task: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Task, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, task: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Task() { @@ -1619,7 +1616,7 @@ impl IDataCollectorSet_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetTask, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, task: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetTask, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, task: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetTask(::core::mem::transmute(&task)).into() @@ -1640,7 +1637,7 @@ impl IDataCollectorSet_Vtbl { let this = (*this).get_impl(); this.SetTaskRunAsSelf(::core::mem::transmute_copy(&runasself)).into() } - unsafe extern "system" fn TaskArguments, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, task: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TaskArguments, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, task: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TaskArguments() { @@ -1651,12 +1648,12 @@ impl IDataCollectorSet_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetTaskArguments, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, task: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetTaskArguments, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, task: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetTaskArguments(::core::mem::transmute(&task)).into() } - unsafe extern "system" fn TaskUserTextArguments, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, usertext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TaskUserTextArguments, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, usertext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TaskUserTextArguments() { @@ -1667,7 +1664,7 @@ impl IDataCollectorSet_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetTaskUserTextArguments, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, usertext: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetTaskUserTextArguments, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, usertext: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetTaskUserTextArguments(::core::mem::transmute(&usertext)).into() @@ -1699,7 +1696,7 @@ impl IDataCollectorSet_Vtbl { let this = (*this).get_impl(); this.SetSchedulesEnabled(::core::mem::transmute_copy(&enabled)).into() } - unsafe extern "system" fn UserAccount, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, user: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UserAccount, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, user: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UserAccount() { @@ -1710,7 +1707,7 @@ impl IDataCollectorSet_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Xml, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, xml: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Xml, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, xml: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Xml() { @@ -1721,7 +1718,7 @@ impl IDataCollectorSet_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Security, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsecurity: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Security, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsecurity: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Security() { @@ -1732,7 +1729,7 @@ impl IDataCollectorSet_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSecurity, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsecurity: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSecurity, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsecurity: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSecurity(::core::mem::transmute(&bstrsecurity)).into() @@ -1764,17 +1761,17 @@ impl IDataCollectorSet_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetCredentials, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, user: ::core::mem::ManuallyDrop, password: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCredentials, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, user: ::core::mem::ManuallyDrop<::windows::core::BSTR>, password: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCredentials(::core::mem::transmute(&user), ::core::mem::transmute(&password)).into() } - unsafe extern "system" fn Query, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, server: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Query, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, server: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Query(::core::mem::transmute(&name), ::core::mem::transmute(&server)).into() } - unsafe extern "system" fn Commit, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, server: ::core::mem::ManuallyDrop, mode: CommitMode, validation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Commit, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, server: ::core::mem::ManuallyDrop<::windows::core::BSTR>, mode: CommitMode, validation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Commit(::core::mem::transmute(&name), ::core::mem::transmute(&server), ::core::mem::transmute_copy(&mode)) { @@ -1800,7 +1797,7 @@ impl IDataCollectorSet_Vtbl { let this = (*this).get_impl(); this.Stop(::core::mem::transmute_copy(&synchronous)).into() } - unsafe extern "system" fn SetXml, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, xml: ::core::mem::ManuallyDrop, validation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetXml, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, xml: ::core::mem::ManuallyDrop<::windows::core::BSTR>, validation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SetXml(::core::mem::transmute(&xml)) { @@ -1811,12 +1808,12 @@ impl IDataCollectorSet_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetValue, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, key: ::core::mem::ManuallyDrop, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetValue, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, key: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetValue(::core::mem::transmute(&key), ::core::mem::transmute(&value)).into() } - unsafe extern "system" fn GetValue, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, key: ::core::mem::ManuallyDrop, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetValue, Impl: IDataCollectorSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, key: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetValue(::core::mem::transmute(&key)) { @@ -1904,7 +1901,7 @@ pub trait IDataCollectorSetCollection_Impl: Sized + super::Com::IDispatch_Impl { fn Remove(&self, set: &super::Com::VARIANT) -> ::windows::core::Result<()>; fn Clear(&self) -> ::windows::core::Result<()>; fn AddRange(&self, sets: &::core::option::Option) -> ::windows::core::Result<()>; - fn GetDataCollectorSets(&self, server: &super::super::Foundation::BSTR, filter: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetDataCollectorSets(&self, server: &::windows::core::BSTR, filter: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IDataCollectorSetCollection {} @@ -1964,7 +1961,7 @@ impl IDataCollectorSetCollection_Vtbl { let this = (*this).get_impl(); this.AddRange(::core::mem::transmute(&sets)).into() } - unsafe extern "system" fn GetDataCollectorSets, Impl: IDataCollectorSetCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, server: ::core::mem::ManuallyDrop, filter: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDataCollectorSets, Impl: IDataCollectorSetCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, server: ::core::mem::ManuallyDrop<::windows::core::BSTR>, filter: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetDataCollectorSets(::core::mem::transmute(&server), ::core::mem::transmute(&filter)).into() @@ -2000,18 +1997,18 @@ pub trait IDataManager_Impl: Sized + super::Com::IDispatch_Impl { fn ResourcePolicy(&self) -> ::windows::core::Result; fn SetResourcePolicy(&self, policy: ResourcePolicy) -> ::windows::core::Result<()>; fn FolderActions(&self) -> ::windows::core::Result; - fn ReportSchema(&self) -> ::windows::core::Result; - fn SetReportSchema(&self, reportschema: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ReportFileName(&self) -> ::windows::core::Result; - fn SetReportFileName(&self, pbstrfilename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn RuleTargetFileName(&self) -> ::windows::core::Result; - fn SetRuleTargetFileName(&self, filename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn EventsFileName(&self) -> ::windows::core::Result; - fn SetEventsFileName(&self, pbstrfilename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Rules(&self) -> ::windows::core::Result; - fn SetRules(&self, bstrxml: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Run(&self, steps: DataManagerSteps, bstrfolder: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn Extract(&self, cabfilename: &super::super::Foundation::BSTR, destinationpath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ReportSchema(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetReportSchema(&self, reportschema: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ReportFileName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetReportFileName(&self, pbstrfilename: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn RuleTargetFileName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetRuleTargetFileName(&self, filename: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn EventsFileName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetEventsFileName(&self, pbstrfilename: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Rules(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetRules(&self, bstrxml: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Run(&self, steps: DataManagerSteps, bstrfolder: &::windows::core::BSTR) -> ::windows::core::Result; + fn Extract(&self, cabfilename: &::windows::core::BSTR, destinationpath: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IDataManager {} @@ -2125,7 +2122,7 @@ impl IDataManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ReportSchema, Impl: IDataManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, reportschema: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ReportSchema, Impl: IDataManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, reportschema: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ReportSchema() { @@ -2136,12 +2133,12 @@ impl IDataManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetReportSchema, Impl: IDataManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, reportschema: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetReportSchema, Impl: IDataManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, reportschema: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetReportSchema(::core::mem::transmute(&reportschema)).into() } - unsafe extern "system" fn ReportFileName, Impl: IDataManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfilename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ReportFileName, Impl: IDataManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfilename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ReportFileName() { @@ -2152,12 +2149,12 @@ impl IDataManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetReportFileName, Impl: IDataManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetReportFileName, Impl: IDataManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetReportFileName(::core::mem::transmute(&pbstrfilename)).into() } - unsafe extern "system" fn RuleTargetFileName, Impl: IDataManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RuleTargetFileName, Impl: IDataManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RuleTargetFileName() { @@ -2168,12 +2165,12 @@ impl IDataManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetRuleTargetFileName, Impl: IDataManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetRuleTargetFileName, Impl: IDataManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetRuleTargetFileName(::core::mem::transmute(&filename)).into() } - unsafe extern "system" fn EventsFileName, Impl: IDataManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfilename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn EventsFileName, Impl: IDataManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfilename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EventsFileName() { @@ -2184,12 +2181,12 @@ impl IDataManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetEventsFileName, Impl: IDataManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetEventsFileName, Impl: IDataManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetEventsFileName(::core::mem::transmute(&pbstrfilename)).into() } - unsafe extern "system" fn Rules, Impl: IDataManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrxml: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Rules, Impl: IDataManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrxml: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Rules() { @@ -2200,12 +2197,12 @@ impl IDataManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetRules, Impl: IDataManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrxml: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetRules, Impl: IDataManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrxml: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetRules(::core::mem::transmute(&bstrxml)).into() } - unsafe extern "system" fn Run, Impl: IDataManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, steps: DataManagerSteps, bstrfolder: ::core::mem::ManuallyDrop, errors: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Run, Impl: IDataManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, steps: DataManagerSteps, bstrfolder: ::core::mem::ManuallyDrop<::windows::core::BSTR>, errors: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Run(::core::mem::transmute_copy(&steps), ::core::mem::transmute(&bstrfolder)) { @@ -2216,7 +2213,7 @@ impl IDataManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Extract, Impl: IDataManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, cabfilename: ::core::mem::ManuallyDrop, destinationpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Extract, Impl: IDataManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, cabfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, destinationpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Extract(::core::mem::transmute(&cabfilename), ::core::mem::transmute(&destinationpath)).into() @@ -2262,8 +2259,8 @@ pub trait IFolderAction_Impl: Sized + super::Com::IDispatch_Impl { fn SetSize(&self, ulage: u32) -> ::windows::core::Result<()>; fn Actions(&self) -> ::windows::core::Result; fn SetActions(&self, steps: FolderActionSteps) -> ::windows::core::Result<()>; - fn SendCabTo(&self) -> ::windows::core::Result; - fn SetSendCabTo(&self, bstrdestination: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SendCabTo(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetSendCabTo(&self, bstrdestination: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IFolderAction {} @@ -2318,7 +2315,7 @@ impl IFolderAction_Vtbl { let this = (*this).get_impl(); this.SetActions(::core::mem::transmute_copy(&steps)).into() } - unsafe extern "system" fn SendCabTo, Impl: IFolderAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdestination: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SendCabTo, Impl: IFolderAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdestination: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SendCabTo() { @@ -2329,7 +2326,7 @@ impl IFolderAction_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSendCabTo, Impl: IFolderAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdestination: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSendCabTo, Impl: IFolderAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdestination: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSendCabTo(::core::mem::transmute(&bstrdestination)).into() @@ -2446,16 +2443,13 @@ impl IFolderActionCollection_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait ILogFileItem_Impl: Sized { - fn Path(&self) -> ::windows::core::Result; + fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ILogFileItem {} -#[cfg(feature = "Win32_Foundation")] impl ILogFileItem_Vtbl { pub const fn new, Impl: ILogFileItem_Impl, const OFFSET: isize>() -> ILogFileItem_Vtbl { - unsafe extern "system" fn Path, Impl: ILogFileItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Path, Impl: ILogFileItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Path() { @@ -2477,7 +2471,7 @@ pub trait ILogFiles_Impl: Sized + super::Com::IDispatch_Impl { fn Count(&self) -> ::windows::core::Result; fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; fn get_Item(&self, index: &super::Com::VARIANT) -> ::windows::core::Result; - fn Add(&self, pathname: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn Add(&self, pathname: &::windows::core::BSTR) -> ::windows::core::Result; fn Remove(&self, index: &super::Com::VARIANT) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2518,7 +2512,7 @@ impl ILogFiles_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Add, Impl: ILogFiles_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pathname: ::core::mem::ManuallyDrop, ppi: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Add, Impl: ILogFiles_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pathname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppi: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Add(::core::mem::transmute(&pathname)) { @@ -2549,8 +2543,8 @@ impl ILogFiles_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IPerformanceCounterDataCollector_Impl: Sized + super::Com::IDispatch_Impl + IDataCollector_Impl { - fn DataSourceName(&self) -> ::windows::core::Result; - fn SetDataSourceName(&self, dsn: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn DataSourceName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDataSourceName(&self, dsn: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn PerformanceCounters(&self) -> ::windows::core::Result<*mut super::Com::SAFEARRAY>; fn SetPerformanceCounters(&self, counters: *const super::Com::SAFEARRAY) -> ::windows::core::Result<()>; fn LogFileFormat(&self) -> ::windows::core::Result; @@ -2565,7 +2559,7 @@ impl ::windows::core::RuntimeName for IPerformanceCounterDataCollector {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IPerformanceCounterDataCollector_Vtbl { pub const fn new, Impl: IPerformanceCounterDataCollector_Impl, const OFFSET: isize>() -> IPerformanceCounterDataCollector_Vtbl { - unsafe extern "system" fn DataSourceName, Impl: IPerformanceCounterDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dsn: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DataSourceName, Impl: IPerformanceCounterDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dsn: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DataSourceName() { @@ -2576,7 +2570,7 @@ impl IPerformanceCounterDataCollector_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDataSourceName, Impl: IPerformanceCounterDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dsn: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDataSourceName, Impl: IPerformanceCounterDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dsn: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDataSourceName(::core::mem::transmute(&dsn)).into() @@ -2855,7 +2849,7 @@ impl IScheduleCollection_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] +#[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISystemMonitor_Impl: Sized { fn Appearance(&self) -> ::windows::core::Result; fn SetAppearance(&self, iappearance: i32) -> ::windows::core::Result<()>; @@ -2888,21 +2882,21 @@ pub trait ISystemMonitor_Impl: Sized { fn DisplayType(&self) -> ::windows::core::Result; fn SetManualUpdate(&self, bstate: i16) -> ::windows::core::Result<()>; fn ManualUpdate(&self) -> ::windows::core::Result; - fn SetGraphTitle(&self, bstitle: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GraphTitle(&self) -> ::windows::core::Result; - fn SetYAxisLabel(&self, bstitle: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn YAxisLabel(&self) -> ::windows::core::Result; + fn SetGraphTitle(&self, bstitle: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GraphTitle(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetYAxisLabel(&self, bstitle: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn YAxisLabel(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CollectSample(&self) -> ::windows::core::Result<()>; fn UpdateGraph(&self) -> ::windows::core::Result<()>; fn BrowseCounters(&self) -> ::windows::core::Result<()>; fn DisplayProperties(&self) -> ::windows::core::Result<()>; fn Counter(&self, iindex: i32) -> ::windows::core::Result; - fn AddCounter(&self, bspath: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn AddCounter(&self, bspath: &::windows::core::BSTR) -> ::windows::core::Result; fn DeleteCounter(&self, pctr: &::core::option::Option) -> ::windows::core::Result<()>; fn BackColorCtl(&self) -> ::windows::core::Result; fn SetBackColorCtl(&self, color: u32) -> ::windows::core::Result<()>; - fn SetLogFileName(&self, bsfilename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn LogFileName(&self) -> ::windows::core::Result; + fn SetLogFileName(&self, bsfilename: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn LogFileName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn SetLogViewStart(&self, starttime: f64) -> ::windows::core::Result<()>; fn LogViewStart(&self) -> ::windows::core::Result; fn SetLogViewStop(&self, stoptime: f64) -> ::windows::core::Result<()>; @@ -2929,14 +2923,14 @@ pub trait ISystemMonitor_Impl: Sized { fn LogFiles(&self) -> ::windows::core::Result; fn SetDataSourceType(&self, edatasourcetype: DataSourceTypeConstants) -> ::windows::core::Result<()>; fn DataSourceType(&self) -> ::windows::core::Result; - fn SetSqlDsnName(&self, bssqldsnname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SqlDsnName(&self) -> ::windows::core::Result; - fn SetSqlLogSetName(&self, bssqllogsetname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SqlLogSetName(&self) -> ::windows::core::Result; + fn SetSqlDsnName(&self, bssqldsnname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SqlDsnName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetSqlLogSetName(&self, bssqllogsetname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SqlLogSetName(&self) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] +#[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ISystemMonitor {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] +#[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ISystemMonitor_Vtbl { pub const fn new, Impl: ISystemMonitor_Impl, const OFFSET: isize>() -> ISystemMonitor_Vtbl { unsafe extern "system" fn Appearance, Impl: ISystemMonitor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, iappearance: *mut i32) -> ::windows::core::HRESULT { @@ -3190,12 +3184,12 @@ impl ISystemMonitor_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetGraphTitle, Impl: ISystemMonitor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstitle: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetGraphTitle, Impl: ISystemMonitor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstitle: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetGraphTitle(::core::mem::transmute(&bstitle)).into() } - unsafe extern "system" fn GraphTitle, Impl: ISystemMonitor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstitle: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GraphTitle, Impl: ISystemMonitor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstitle: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GraphTitle() { @@ -3206,12 +3200,12 @@ impl ISystemMonitor_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetYAxisLabel, Impl: ISystemMonitor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstitle: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetYAxisLabel, Impl: ISystemMonitor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstitle: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetYAxisLabel(::core::mem::transmute(&bstitle)).into() } - unsafe extern "system" fn YAxisLabel, Impl: ISystemMonitor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstitle: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn YAxisLabel, Impl: ISystemMonitor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstitle: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.YAxisLabel() { @@ -3253,7 +3247,7 @@ impl ISystemMonitor_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AddCounter, Impl: ISystemMonitor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bspath: ::core::mem::ManuallyDrop, ppicounter: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddCounter, Impl: ISystemMonitor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bspath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppicounter: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AddCounter(::core::mem::transmute(&bspath)) { @@ -3285,12 +3279,12 @@ impl ISystemMonitor_Vtbl { let this = (*this).get_impl(); this.SetBackColorCtl(::core::mem::transmute_copy(&color)).into() } - unsafe extern "system" fn SetLogFileName, Impl: ISystemMonitor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bsfilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetLogFileName, Impl: ISystemMonitor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bsfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetLogFileName(::core::mem::transmute(&bsfilename)).into() } - unsafe extern "system" fn LogFileName, Impl: ISystemMonitor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bsfilename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LogFileName, Impl: ISystemMonitor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bsfilename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LogFileName() { @@ -3503,12 +3497,12 @@ impl ISystemMonitor_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSqlDsnName, Impl: ISystemMonitor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bssqldsnname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSqlDsnName, Impl: ISystemMonitor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bssqldsnname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSqlDsnName(::core::mem::transmute(&bssqldsnname)).into() } - unsafe extern "system" fn SqlDsnName, Impl: ISystemMonitor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bssqldsnname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SqlDsnName, Impl: ISystemMonitor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bssqldsnname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SqlDsnName() { @@ -3519,12 +3513,12 @@ impl ISystemMonitor_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSqlLogSetName, Impl: ISystemMonitor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bssqllogsetname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSqlLogSetName, Impl: ISystemMonitor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bssqllogsetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSqlLogSetName(::core::mem::transmute(&bssqllogsetname)).into() } - unsafe extern "system" fn SqlLogSetName, Impl: ISystemMonitor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bssqllogsetname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SqlLogSetName, Impl: ISystemMonitor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bssqllogsetname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SqlLogSetName() { @@ -3619,7 +3613,7 @@ impl ISystemMonitor_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] +#[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISystemMonitor2_Impl: Sized + ISystemMonitor_Impl { fn SetEnableDigitGrouping(&self, bstate: i16) -> ::windows::core::Result<()>; fn EnableDigitGrouping(&self) -> ::windows::core::Result; @@ -3632,19 +3626,19 @@ pub trait ISystemMonitor2_Impl: Sized + ISystemMonitor_Impl { fn SetDataPointCount(&self, inewcount: i32) -> ::windows::core::Result<()>; fn DataPointCount(&self) -> ::windows::core::Result; fn ScaleToFit(&self, bselectedcountersonly: i16) -> ::windows::core::Result<()>; - fn SaveAs(&self, bstrfilename: &super::super::Foundation::BSTR, esysmonfiletype: SysmonFileType) -> ::windows::core::Result<()>; - fn Relog(&self, bstrfilename: &super::super::Foundation::BSTR, esysmonfiletype: SysmonFileType, ifilter: i32) -> ::windows::core::Result<()>; + fn SaveAs(&self, bstrfilename: &::windows::core::BSTR, esysmonfiletype: SysmonFileType) -> ::windows::core::Result<()>; + fn Relog(&self, bstrfilename: &::windows::core::BSTR, esysmonfiletype: SysmonFileType, ifilter: i32) -> ::windows::core::Result<()>; fn ClearData(&self) -> ::windows::core::Result<()>; fn LogSourceStartTime(&self) -> ::windows::core::Result; fn LogSourceStopTime(&self) -> ::windows::core::Result; fn SetLogViewRange(&self, starttime: f64, stoptime: f64) -> ::windows::core::Result<()>; fn GetLogViewRange(&self, starttime: *mut f64, stoptime: *mut f64) -> ::windows::core::Result<()>; fn BatchingLock(&self, flock: i16, ebatchreason: SysmonBatchReason) -> ::windows::core::Result<()>; - fn LoadSettings(&self, bstrsettingfilename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn LoadSettings(&self, bstrsettingfilename: &::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] +#[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ISystemMonitor2 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] +#[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ISystemMonitor2_Vtbl { pub const fn new, Impl: ISystemMonitor2_Impl, const OFFSET: isize>() -> ISystemMonitor2_Vtbl { unsafe extern "system" fn SetEnableDigitGrouping, Impl: ISystemMonitor2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstate: i16) -> ::windows::core::HRESULT { @@ -3732,12 +3726,12 @@ impl ISystemMonitor2_Vtbl { let this = (*this).get_impl(); this.ScaleToFit(::core::mem::transmute_copy(&bselectedcountersonly)).into() } - unsafe extern "system" fn SaveAs, Impl: ISystemMonitor2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop, esysmonfiletype: SysmonFileType) -> ::windows::core::HRESULT { + unsafe extern "system" fn SaveAs, Impl: ISystemMonitor2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, esysmonfiletype: SysmonFileType) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SaveAs(::core::mem::transmute(&bstrfilename), ::core::mem::transmute_copy(&esysmonfiletype)).into() } - unsafe extern "system" fn Relog, Impl: ISystemMonitor2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop, esysmonfiletype: SysmonFileType, ifilter: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn Relog, Impl: ISystemMonitor2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, esysmonfiletype: SysmonFileType, ifilter: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Relog(::core::mem::transmute(&bstrfilename), ::core::mem::transmute_copy(&esysmonfiletype), ::core::mem::transmute_copy(&ifilter)).into() @@ -3784,7 +3778,7 @@ impl ISystemMonitor2_Vtbl { let this = (*this).get_impl(); this.BatchingLock(::core::mem::transmute_copy(&flock), ::core::mem::transmute_copy(&ebatchreason)).into() } - unsafe extern "system" fn LoadSettings, Impl: ISystemMonitor2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsettingfilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn LoadSettings, Impl: ISystemMonitor2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsettingfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.LoadSettings(::core::mem::transmute(&bstrsettingfilename)).into() @@ -3900,8 +3894,8 @@ pub trait ITraceDataCollector_Impl: Sized + super::Com::IDispatch_Impl + IDataCo fn SetRealTimeBuffersLost(&self, buffers: u32) -> ::windows::core::Result<()>; fn SessionId(&self) -> ::windows::core::Result; fn SetSessionId(&self, id: u64) -> ::windows::core::Result<()>; - fn SessionName(&self) -> ::windows::core::Result; - fn SetSessionName(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SessionName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetSessionName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SessionThreadId(&self) -> ::windows::core::Result; fn SetSessionThreadId(&self, tid: u32) -> ::windows::core::Result<()>; fn StreamMode(&self) -> ::windows::core::Result; @@ -4180,7 +4174,7 @@ impl ITraceDataCollector_Vtbl { let this = (*this).get_impl(); this.SetSessionId(::core::mem::transmute_copy(&id)).into() } - unsafe extern "system" fn SessionName, Impl: ITraceDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SessionName, Impl: ITraceDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SessionName() { @@ -4191,7 +4185,7 @@ impl ITraceDataCollector_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSessionName, Impl: ITraceDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSessionName, Impl: ITraceDataCollector_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSessionName(::core::mem::transmute(&name)).into() @@ -4289,8 +4283,8 @@ impl ITraceDataCollector_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ITraceDataProvider_Impl: Sized + super::Com::IDispatch_Impl { - fn DisplayName(&self) -> ::windows::core::Result; - fn SetDisplayName(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDisplayName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Guid(&self) -> ::windows::core::Result<::windows::core::GUID>; fn SetGuid(&self, guid: &::windows::core::GUID) -> ::windows::core::Result<()>; fn Level(&self) -> ::windows::core::Result; @@ -4303,10 +4297,10 @@ pub trait ITraceDataProvider_Impl: Sized + super::Com::IDispatch_Impl { fn SetFilterType(&self, ultype: u32) -> ::windows::core::Result<()>; fn FilterData(&self) -> ::windows::core::Result<*mut super::Com::SAFEARRAY>; fn SetFilterData(&self, pdata: *const super::Com::SAFEARRAY) -> ::windows::core::Result<()>; - fn Query(&self, bstrname: &super::super::Foundation::BSTR, bstrserver: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Query(&self, bstrname: &::windows::core::BSTR, bstrserver: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Resolve(&self, pfrom: &::core::option::Option) -> ::windows::core::Result<()>; - fn SetSecurity(&self, sddl: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetSecurity(&self, securityinfo: u32) -> ::windows::core::Result; + fn SetSecurity(&self, sddl: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetSecurity(&self, securityinfo: u32) -> ::windows::core::Result<::windows::core::BSTR>; fn GetRegisteredProcesses(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -4314,7 +4308,7 @@ impl ::windows::core::RuntimeName for ITraceDataProvider {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ITraceDataProvider_Vtbl { pub const fn new, Impl: ITraceDataProvider_Impl, const OFFSET: isize>() -> ITraceDataProvider_Vtbl { - unsafe extern "system" fn DisplayName, Impl: ITraceDataProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DisplayName, Impl: ITraceDataProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DisplayName() { @@ -4325,7 +4319,7 @@ impl ITraceDataProvider_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDisplayName, Impl: ITraceDataProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDisplayName, Impl: ITraceDataProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDisplayName(::core::mem::transmute(&name)).into() @@ -4438,7 +4432,7 @@ impl ITraceDataProvider_Vtbl { let this = (*this).get_impl(); this.SetFilterData(::core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn Query, Impl: ITraceDataProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, bstrserver: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Query, Impl: ITraceDataProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrserver: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Query(::core::mem::transmute(&bstrname), ::core::mem::transmute(&bstrserver)).into() @@ -4448,12 +4442,12 @@ impl ITraceDataProvider_Vtbl { let this = (*this).get_impl(); this.Resolve(::core::mem::transmute(&pfrom)).into() } - unsafe extern "system" fn SetSecurity, Impl: ITraceDataProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sddl: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSecurity, Impl: ITraceDataProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sddl: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSecurity(::core::mem::transmute(&sddl)).into() } - unsafe extern "system" fn GetSecurity, Impl: ITraceDataProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, securityinfo: u32, sddl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSecurity, Impl: ITraceDataProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, securityinfo: u32, sddl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetSecurity(::core::mem::transmute_copy(&securityinfo)) { @@ -4512,8 +4506,8 @@ pub trait ITraceDataProviderCollection_Impl: Sized + super::Com::IDispatch_Impl fn Clear(&self) -> ::windows::core::Result<()>; fn AddRange(&self, providers: &::core::option::Option) -> ::windows::core::Result<()>; fn CreateTraceDataProvider(&self) -> ::windows::core::Result; - fn GetTraceDataProviders(&self, server: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetTraceDataProvidersByProcess(&self, server: &super::super::Foundation::BSTR, pid: u32) -> ::windows::core::Result<()>; + fn GetTraceDataProviders(&self, server: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetTraceDataProvidersByProcess(&self, server: &::windows::core::BSTR, pid: u32) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ITraceDataProviderCollection {} @@ -4584,12 +4578,12 @@ impl ITraceDataProviderCollection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetTraceDataProviders, Impl: ITraceDataProviderCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, server: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetTraceDataProviders, Impl: ITraceDataProviderCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, server: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetTraceDataProviders(::core::mem::transmute(&server)).into() } - unsafe extern "system" fn GetTraceDataProvidersByProcess, Impl: ITraceDataProviderCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, server: ::core::mem::ManuallyDrop, pid: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetTraceDataProvidersByProcess, Impl: ITraceDataProviderCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, server: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pid: u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetTraceDataProvidersByProcess(::core::mem::transmute(&server), ::core::mem::transmute_copy(&pid)).into() @@ -4617,8 +4611,8 @@ pub trait IValueMap_Impl: Sized + super::Com::IDispatch_Impl { fn Count(&self) -> ::windows::core::Result; fn get_Item(&self, index: &super::Com::VARIANT) -> ::windows::core::Result; fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; - fn Description(&self) -> ::windows::core::Result; - fn SetDescription(&self, description: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Value(&self) -> ::windows::core::Result; fn SetValue(&self, value: &super::Com::VARIANT) -> ::windows::core::Result<()>; fn ValueMapType(&self) -> ::windows::core::Result; @@ -4667,7 +4661,7 @@ impl IValueMap_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Description, Impl: IValueMap_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IValueMap_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -4678,7 +4672,7 @@ impl IValueMap_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription, Impl: IValueMap_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDescription, Impl: IValueMap_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDescription(::core::mem::transmute(&description)).into() @@ -4770,12 +4764,12 @@ impl IValueMap_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IValueMapItem_Impl: Sized + super::Com::IDispatch_Impl { - fn Description(&self) -> ::windows::core::Result; - fn SetDescription(&self, description: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Enabled(&self) -> ::windows::core::Result; fn SetEnabled(&self, enabled: i16) -> ::windows::core::Result<()>; - fn Key(&self) -> ::windows::core::Result; - fn SetKey(&self, key: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Key(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetKey(&self, key: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Value(&self) -> ::windows::core::Result; fn SetValue(&self, value: &super::Com::VARIANT) -> ::windows::core::Result<()>; fn ValueMapType(&self) -> ::windows::core::Result; @@ -4786,7 +4780,7 @@ impl ::windows::core::RuntimeName for IValueMapItem {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IValueMapItem_Vtbl { pub const fn new, Impl: IValueMapItem_Impl, const OFFSET: isize>() -> IValueMapItem_Vtbl { - unsafe extern "system" fn Description, Impl: IValueMapItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IValueMapItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -4797,7 +4791,7 @@ impl IValueMapItem_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription, Impl: IValueMapItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDescription, Impl: IValueMapItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDescription(::core::mem::transmute(&description)).into() @@ -4818,7 +4812,7 @@ impl IValueMapItem_Vtbl { let this = (*this).get_impl(); this.SetEnabled(::core::mem::transmute_copy(&enabled)).into() } - unsafe extern "system" fn Key, Impl: IValueMapItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, key: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Key, Impl: IValueMapItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, key: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Key() { @@ -4829,7 +4823,7 @@ impl IValueMapItem_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetKey, Impl: IValueMapItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, key: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetKey, Impl: IValueMapItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, key: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetKey(::core::mem::transmute(&key)).into() @@ -4895,7 +4889,7 @@ pub trait _ICounterItemUnion_Impl: Sized { fn LineStyle(&self) -> ::windows::core::Result; fn SetScaleFactor(&self, iscale: i32) -> ::windows::core::Result<()>; fn ScaleFactor(&self) -> ::windows::core::Result; - fn Path(&self) -> ::windows::core::Result; + fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetValue(&self, value: *mut f64, status: *mut i32) -> ::windows::core::Result<()>; fn GetStatistics(&self, max: *mut f64, min: *mut f64, avg: *mut f64, status: *mut i32) -> ::windows::core::Result<()>; fn SetSelected(&self, bstate: i16) -> ::windows::core::Result<()>; @@ -4984,7 +4978,7 @@ impl _ICounterItemUnion_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Path, Impl: _ICounterItemUnion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Path, Impl: _ICounterItemUnion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstrvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Path() { @@ -5073,7 +5067,7 @@ impl _ICounterItemUnion_Vtbl { iid == &<_ICounterItemUnion as ::windows::core::Interface>::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] +#[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait _ISystemMonitorUnion_Impl: Sized { fn Appearance(&self) -> ::windows::core::Result; fn SetAppearance(&self, iappearance: i32) -> ::windows::core::Result<()>; @@ -5106,21 +5100,21 @@ pub trait _ISystemMonitorUnion_Impl: Sized { fn DisplayType(&self) -> ::windows::core::Result; fn SetManualUpdate(&self, bstate: i16) -> ::windows::core::Result<()>; fn ManualUpdate(&self) -> ::windows::core::Result; - fn SetGraphTitle(&self, bstitle: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GraphTitle(&self) -> ::windows::core::Result; - fn SetYAxisLabel(&self, bstitle: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn YAxisLabel(&self) -> ::windows::core::Result; + fn SetGraphTitle(&self, bstitle: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GraphTitle(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetYAxisLabel(&self, bstitle: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn YAxisLabel(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CollectSample(&self) -> ::windows::core::Result<()>; fn UpdateGraph(&self) -> ::windows::core::Result<()>; fn BrowseCounters(&self) -> ::windows::core::Result<()>; fn DisplayProperties(&self) -> ::windows::core::Result<()>; fn Counter(&self, iindex: i32) -> ::windows::core::Result; - fn AddCounter(&self, bspath: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn AddCounter(&self, bspath: &::windows::core::BSTR) -> ::windows::core::Result; fn DeleteCounter(&self, pctr: &::core::option::Option) -> ::windows::core::Result<()>; fn BackColorCtl(&self) -> ::windows::core::Result; fn SetBackColorCtl(&self, color: u32) -> ::windows::core::Result<()>; - fn SetLogFileName(&self, bsfilename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn LogFileName(&self) -> ::windows::core::Result; + fn SetLogFileName(&self, bsfilename: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn LogFileName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn SetLogViewStart(&self, starttime: f64) -> ::windows::core::Result<()>; fn LogViewStart(&self) -> ::windows::core::Result; fn SetLogViewStop(&self, stoptime: f64) -> ::windows::core::Result<()>; @@ -5147,10 +5141,10 @@ pub trait _ISystemMonitorUnion_Impl: Sized { fn LogFiles(&self) -> ::windows::core::Result; fn SetDataSourceType(&self, edatasourcetype: DataSourceTypeConstants) -> ::windows::core::Result<()>; fn DataSourceType(&self) -> ::windows::core::Result; - fn SetSqlDsnName(&self, bssqldsnname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SqlDsnName(&self) -> ::windows::core::Result; - fn SetSqlLogSetName(&self, bssqllogsetname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SqlLogSetName(&self) -> ::windows::core::Result; + fn SetSqlDsnName(&self, bssqldsnname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SqlDsnName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetSqlLogSetName(&self, bssqllogsetname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SqlLogSetName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn SetEnableDigitGrouping(&self, bstate: i16) -> ::windows::core::Result<()>; fn EnableDigitGrouping(&self) -> ::windows::core::Result; fn SetEnableToolTips(&self, bstate: i16) -> ::windows::core::Result<()>; @@ -5162,19 +5156,19 @@ pub trait _ISystemMonitorUnion_Impl: Sized { fn SetDataPointCount(&self, inewcount: i32) -> ::windows::core::Result<()>; fn DataPointCount(&self) -> ::windows::core::Result; fn ScaleToFit(&self, bselectedcountersonly: i16) -> ::windows::core::Result<()>; - fn SaveAs(&self, bstrfilename: &super::super::Foundation::BSTR, esysmonfiletype: SysmonFileType) -> ::windows::core::Result<()>; - fn Relog(&self, bstrfilename: &super::super::Foundation::BSTR, esysmonfiletype: SysmonFileType, ifilter: i32) -> ::windows::core::Result<()>; + fn SaveAs(&self, bstrfilename: &::windows::core::BSTR, esysmonfiletype: SysmonFileType) -> ::windows::core::Result<()>; + fn Relog(&self, bstrfilename: &::windows::core::BSTR, esysmonfiletype: SysmonFileType, ifilter: i32) -> ::windows::core::Result<()>; fn ClearData(&self) -> ::windows::core::Result<()>; fn LogSourceStartTime(&self) -> ::windows::core::Result; fn LogSourceStopTime(&self) -> ::windows::core::Result; fn SetLogViewRange(&self, starttime: f64, stoptime: f64) -> ::windows::core::Result<()>; fn GetLogViewRange(&self, starttime: *mut f64, stoptime: *mut f64) -> ::windows::core::Result<()>; fn BatchingLock(&self, flock: i16, ebatchreason: SysmonBatchReason) -> ::windows::core::Result<()>; - fn LoadSettings(&self, bstrsettingfilename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn LoadSettings(&self, bstrsettingfilename: &::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] +#[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for _ISystemMonitorUnion {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] +#[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl _ISystemMonitorUnion_Vtbl { pub const fn new, Impl: _ISystemMonitorUnion_Impl, const OFFSET: isize>() -> _ISystemMonitorUnion_Vtbl { unsafe extern "system" fn Appearance, Impl: _ISystemMonitorUnion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, iappearance: *mut i32) -> ::windows::core::HRESULT { @@ -5428,12 +5422,12 @@ impl _ISystemMonitorUnion_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetGraphTitle, Impl: _ISystemMonitorUnion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstitle: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetGraphTitle, Impl: _ISystemMonitorUnion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstitle: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetGraphTitle(::core::mem::transmute(&bstitle)).into() } - unsafe extern "system" fn GraphTitle, Impl: _ISystemMonitorUnion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstitle: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GraphTitle, Impl: _ISystemMonitorUnion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstitle: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GraphTitle() { @@ -5444,12 +5438,12 @@ impl _ISystemMonitorUnion_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetYAxisLabel, Impl: _ISystemMonitorUnion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstitle: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetYAxisLabel, Impl: _ISystemMonitorUnion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstitle: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetYAxisLabel(::core::mem::transmute(&bstitle)).into() } - unsafe extern "system" fn YAxisLabel, Impl: _ISystemMonitorUnion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstitle: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn YAxisLabel, Impl: _ISystemMonitorUnion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstitle: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.YAxisLabel() { @@ -5491,7 +5485,7 @@ impl _ISystemMonitorUnion_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AddCounter, Impl: _ISystemMonitorUnion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bspath: ::core::mem::ManuallyDrop, ppicounter: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddCounter, Impl: _ISystemMonitorUnion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bspath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppicounter: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AddCounter(::core::mem::transmute(&bspath)) { @@ -5523,12 +5517,12 @@ impl _ISystemMonitorUnion_Vtbl { let this = (*this).get_impl(); this.SetBackColorCtl(::core::mem::transmute_copy(&color)).into() } - unsafe extern "system" fn SetLogFileName, Impl: _ISystemMonitorUnion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bsfilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetLogFileName, Impl: _ISystemMonitorUnion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bsfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetLogFileName(::core::mem::transmute(&bsfilename)).into() } - unsafe extern "system" fn LogFileName, Impl: _ISystemMonitorUnion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bsfilename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LogFileName, Impl: _ISystemMonitorUnion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bsfilename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LogFileName() { @@ -5741,12 +5735,12 @@ impl _ISystemMonitorUnion_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSqlDsnName, Impl: _ISystemMonitorUnion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bssqldsnname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSqlDsnName, Impl: _ISystemMonitorUnion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bssqldsnname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSqlDsnName(::core::mem::transmute(&bssqldsnname)).into() } - unsafe extern "system" fn SqlDsnName, Impl: _ISystemMonitorUnion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bssqldsnname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SqlDsnName, Impl: _ISystemMonitorUnion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bssqldsnname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SqlDsnName() { @@ -5757,12 +5751,12 @@ impl _ISystemMonitorUnion_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSqlLogSetName, Impl: _ISystemMonitorUnion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bssqllogsetname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSqlLogSetName, Impl: _ISystemMonitorUnion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bssqllogsetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSqlLogSetName(::core::mem::transmute(&bssqllogsetname)).into() } - unsafe extern "system" fn SqlLogSetName, Impl: _ISystemMonitorUnion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bssqllogsetname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SqlLogSetName, Impl: _ISystemMonitorUnion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bssqllogsetname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SqlLogSetName() { @@ -5858,12 +5852,12 @@ impl _ISystemMonitorUnion_Vtbl { let this = (*this).get_impl(); this.ScaleToFit(::core::mem::transmute_copy(&bselectedcountersonly)).into() } - unsafe extern "system" fn SaveAs, Impl: _ISystemMonitorUnion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop, esysmonfiletype: SysmonFileType) -> ::windows::core::HRESULT { + unsafe extern "system" fn SaveAs, Impl: _ISystemMonitorUnion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, esysmonfiletype: SysmonFileType) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SaveAs(::core::mem::transmute(&bstrfilename), ::core::mem::transmute_copy(&esysmonfiletype)).into() } - unsafe extern "system" fn Relog, Impl: _ISystemMonitorUnion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop, esysmonfiletype: SysmonFileType, ifilter: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn Relog, Impl: _ISystemMonitorUnion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, esysmonfiletype: SysmonFileType, ifilter: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Relog(::core::mem::transmute(&bstrfilename), ::core::mem::transmute_copy(&esysmonfiletype), ::core::mem::transmute_copy(&ifilter)).into() @@ -5910,7 +5904,7 @@ impl _ISystemMonitorUnion_Vtbl { let this = (*this).get_impl(); this.BatchingLock(::core::mem::transmute_copy(&flock), ::core::mem::transmute_copy(&ebatchreason)).into() } - unsafe extern "system" fn LoadSettings, Impl: _ISystemMonitorUnion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsettingfilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn LoadSettings, Impl: _ISystemMonitorUnion_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsettingfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.LoadSettings(::core::mem::transmute(&bstrsettingfilename)).into() diff --git a/crates/libs/windows/src/Windows/Win32/System/Performance/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Performance/mod.rs index ece7a8da0d..01b69d72bc 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Performance/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Performance/mod.rs @@ -1972,19 +1972,12 @@ impl IAlertDataCollector { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.DataCollectorType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FileName(&self) -> ::windows::core::Result { + pub unsafe fn FileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.FileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFileName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetFileName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetFileName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } pub unsafe fn FileNameFormat(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1993,33 +1986,19 @@ impl IAlertDataCollector { pub unsafe fn SetFileNameFormat(&self, format: AutoPathFormat) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetFileNameFormat)(::windows::core::Interface::as_raw(self), format).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FileNameFormatPattern(&self) -> ::windows::core::Result { + pub unsafe fn FileNameFormatPattern(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FileNameFormatPattern)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.FileNameFormatPattern)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFileNameFormatPattern<'a, P0>(&self, pattern: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetFileNameFormatPattern)(::windows::core::Interface::as_raw(self), pattern.into().abi()).ok() + pub unsafe fn SetFileNameFormatPattern(&self, pattern: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetFileNameFormatPattern)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pattern)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LatestOutputLocation(&self) -> ::windows::core::Result { + pub unsafe fn LatestOutputLocation(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.LatestOutputLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.LatestOutputLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLatestOutputLocation<'a, P0>(&self, path: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetLatestOutputLocation)(::windows::core::Interface::as_raw(self), path.into().abi()).ok() + pub unsafe fn SetLatestOutputLocation(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetLatestOutputLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path)).ok() } pub unsafe fn LogAppend(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2042,25 +2021,16 @@ impl IAlertDataCollector { pub unsafe fn SetLogOverwrite(&self, overwrite: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetLogOverwrite)(::windows::core::Interface::as_raw(self), overwrite).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OutputLocation(&self) -> ::windows::core::Result { + pub unsafe fn OutputLocation(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.OutputLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.OutputLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Index(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2069,26 +2039,19 @@ impl IAlertDataCollector { pub unsafe fn SetIndex(&self, index: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetIndex)(::windows::core::Interface::as_raw(self), index).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Xml(&self) -> ::windows::core::Result { + pub unsafe fn Xml(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Xml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Xml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn SetXml<'a, P0>(&self, xml: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn SetXml(&self, xml: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.SetXml)(::windows::core::Interface::as_raw(self), xml.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.SetXml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(xml), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateOutputLocation(&self, latest: i16) -> ::windows::core::Result { + pub unsafe fn CreateOutputLocation(&self, latest: i16) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CreateOutputLocation)(::windows::core::Interface::as_raw(self), latest, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CreateOutputLocation)(::windows::core::Interface::as_raw(self), latest, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2115,19 +2078,12 @@ impl IAlertDataCollector { pub unsafe fn SetSampleInterval(&self, interval: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetSampleInterval)(::windows::core::Interface::as_raw(self), interval).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Task(&self) -> ::windows::core::Result { + pub unsafe fn Task(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Task)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Task)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetTask<'a, P0>(&self, task: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetTask)(::windows::core::Interface::as_raw(self), task.into().abi()).ok() + pub unsafe fn SetTask(&self, task: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetTask)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(task)).ok() } pub unsafe fn TaskRunAsSelf(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2136,47 +2092,26 @@ impl IAlertDataCollector { pub unsafe fn SetTaskRunAsSelf(&self, runasself: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetTaskRunAsSelf)(::windows::core::Interface::as_raw(self), runasself).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TaskArguments(&self) -> ::windows::core::Result { + pub unsafe fn TaskArguments(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TaskArguments)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TaskArguments)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetTaskArguments<'a, P0>(&self, task: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetTaskArguments)(::windows::core::Interface::as_raw(self), task.into().abi()).ok() + pub unsafe fn SetTaskArguments(&self, task: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetTaskArguments)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(task)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TaskUserTextArguments(&self) -> ::windows::core::Result { + pub unsafe fn TaskUserTextArguments(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TaskUserTextArguments)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TaskUserTextArguments)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetTaskUserTextArguments<'a, P0>(&self, task: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetTaskUserTextArguments)(::windows::core::Interface::as_raw(self), task.into().abi()).ok() + pub unsafe fn SetTaskUserTextArguments(&self, task: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetTaskUserTextArguments)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(task)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TriggerDataCollectorSet(&self) -> ::windows::core::Result { + pub unsafe fn TriggerDataCollectorSet(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TriggerDataCollectorSet)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TriggerDataCollectorSet)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetTriggerDataCollectorSet<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetTriggerDataCollectorSet)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetTriggerDataCollectorSet(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetTriggerDataCollectorSet)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2275,40 +2210,16 @@ pub struct IAlertDataCollector_Vtbl { pub SetEventLog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, log: i16) -> ::windows::core::HRESULT, pub SampleInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, interval: *mut u32) -> ::windows::core::HRESULT, pub SetSampleInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, interval: u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Task: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, task: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Task: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, task: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetTask: usize, + pub Task: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, task: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, task: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub TaskRunAsSelf: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, runasself: *mut i16) -> ::windows::core::HRESULT, pub SetTaskRunAsSelf: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, runasself: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub TaskArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, task: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TaskArguments: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetTaskArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, task: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetTaskArguments: usize, - #[cfg(feature = "Win32_Foundation")] - pub TaskUserTextArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, task: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TaskUserTextArguments: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetTaskUserTextArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, task: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetTaskUserTextArguments: usize, - #[cfg(feature = "Win32_Foundation")] - pub TriggerDataCollectorSet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TriggerDataCollectorSet: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetTriggerDataCollectorSet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetTriggerDataCollectorSet: usize, + pub TaskArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, task: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetTaskArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, task: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub TaskUserTextArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, task: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetTaskUserTextArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, task: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub TriggerDataCollectorSet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetTriggerDataCollectorSet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2334,19 +2245,12 @@ impl IApiTracingDataCollector { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.DataCollectorType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FileName(&self) -> ::windows::core::Result { + pub unsafe fn FileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.FileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFileName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetFileName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetFileName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } pub unsafe fn FileNameFormat(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2355,33 +2259,19 @@ impl IApiTracingDataCollector { pub unsafe fn SetFileNameFormat(&self, format: AutoPathFormat) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetFileNameFormat)(::windows::core::Interface::as_raw(self), format).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FileNameFormatPattern(&self) -> ::windows::core::Result { + pub unsafe fn FileNameFormatPattern(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FileNameFormatPattern)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.FileNameFormatPattern)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFileNameFormatPattern<'a, P0>(&self, pattern: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetFileNameFormatPattern)(::windows::core::Interface::as_raw(self), pattern.into().abi()).ok() + pub unsafe fn SetFileNameFormatPattern(&self, pattern: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetFileNameFormatPattern)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pattern)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LatestOutputLocation(&self) -> ::windows::core::Result { + pub unsafe fn LatestOutputLocation(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.LatestOutputLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.LatestOutputLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLatestOutputLocation<'a, P0>(&self, path: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetLatestOutputLocation)(::windows::core::Interface::as_raw(self), path.into().abi()).ok() + pub unsafe fn SetLatestOutputLocation(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetLatestOutputLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path)).ok() } pub unsafe fn LogAppend(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2404,25 +2294,16 @@ impl IApiTracingDataCollector { pub unsafe fn SetLogOverwrite(&self, overwrite: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetLogOverwrite)(::windows::core::Interface::as_raw(self), overwrite).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OutputLocation(&self) -> ::windows::core::Result { + pub unsafe fn OutputLocation(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.OutputLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.OutputLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Index(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2431,26 +2312,19 @@ impl IApiTracingDataCollector { pub unsafe fn SetIndex(&self, index: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetIndex)(::windows::core::Interface::as_raw(self), index).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Xml(&self) -> ::windows::core::Result { + pub unsafe fn Xml(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Xml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Xml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn SetXml<'a, P0>(&self, xml: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn SetXml(&self, xml: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.SetXml)(::windows::core::Interface::as_raw(self), xml.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.SetXml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(xml), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateOutputLocation(&self, latest: i16) -> ::windows::core::Result { + pub unsafe fn CreateOutputLocation(&self, latest: i16) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CreateOutputLocation)(::windows::core::Interface::as_raw(self), latest, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CreateOutputLocation)(::windows::core::Interface::as_raw(self), latest, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn LogApiNamesOnly(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2466,33 +2340,19 @@ impl IApiTracingDataCollector { pub unsafe fn SetLogApisRecursively(&self, logrecursively: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetLogApisRecursively)(::windows::core::Interface::as_raw(self), logrecursively).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExePath(&self) -> ::windows::core::Result { + pub unsafe fn ExePath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ExePath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ExePath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetExePath<'a, P0>(&self, exepath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetExePath)(::windows::core::Interface::as_raw(self), exepath.into().abi()).ok() + pub unsafe fn SetExePath(&self, exepath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetExePath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(exepath)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LogFilePath(&self) -> ::windows::core::Result { + pub unsafe fn LogFilePath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LogFilePath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LogFilePath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLogFilePath<'a, P0>(&self, logfilepath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetLogFilePath)(::windows::core::Interface::as_raw(self), logfilepath.into().abi()).ok() + pub unsafe fn SetLogFilePath(&self, logfilepath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetLogFilePath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(logfilepath)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2616,22 +2476,10 @@ pub struct IApiTracingDataCollector_Vtbl { pub SetLogApiNamesOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, logapinames: i16) -> ::windows::core::HRESULT, pub LogApisRecursively: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, logrecursively: *mut i16) -> ::windows::core::HRESULT, pub SetLogApisRecursively: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, logrecursively: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ExePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, exepath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ExePath: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetExePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, exepath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetExePath: usize, - #[cfg(feature = "Win32_Foundation")] - pub LogFilePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, logfilepath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LogFilePath: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetLogFilePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, logfilepath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetLogFilePath: usize, + pub ExePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, exepath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetExePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, exepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub LogFilePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, logfilepath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetLogFilePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, logfilepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub IncludeModules: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, includemodules: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -2681,19 +2529,12 @@ impl IConfigurationDataCollector { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.DataCollectorType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FileName(&self) -> ::windows::core::Result { + pub unsafe fn FileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.FileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFileName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetFileName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetFileName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } pub unsafe fn FileNameFormat(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2702,33 +2543,19 @@ impl IConfigurationDataCollector { pub unsafe fn SetFileNameFormat(&self, format: AutoPathFormat) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetFileNameFormat)(::windows::core::Interface::as_raw(self), format).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FileNameFormatPattern(&self) -> ::windows::core::Result { + pub unsafe fn FileNameFormatPattern(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FileNameFormatPattern)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.FileNameFormatPattern)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFileNameFormatPattern<'a, P0>(&self, pattern: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetFileNameFormatPattern)(::windows::core::Interface::as_raw(self), pattern.into().abi()).ok() + pub unsafe fn SetFileNameFormatPattern(&self, pattern: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetFileNameFormatPattern)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pattern)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LatestOutputLocation(&self) -> ::windows::core::Result { + pub unsafe fn LatestOutputLocation(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.LatestOutputLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.LatestOutputLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLatestOutputLocation<'a, P0>(&self, path: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetLatestOutputLocation)(::windows::core::Interface::as_raw(self), path.into().abi()).ok() + pub unsafe fn SetLatestOutputLocation(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetLatestOutputLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path)).ok() } pub unsafe fn LogAppend(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2751,25 +2578,16 @@ impl IConfigurationDataCollector { pub unsafe fn SetLogOverwrite(&self, overwrite: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetLogOverwrite)(::windows::core::Interface::as_raw(self), overwrite).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OutputLocation(&self) -> ::windows::core::Result { + pub unsafe fn OutputLocation(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.OutputLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.OutputLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Index(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2778,26 +2596,19 @@ impl IConfigurationDataCollector { pub unsafe fn SetIndex(&self, index: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetIndex)(::windows::core::Interface::as_raw(self), index).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Xml(&self) -> ::windows::core::Result { + pub unsafe fn Xml(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Xml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Xml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn SetXml<'a, P0>(&self, xml: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn SetXml(&self, xml: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.SetXml)(::windows::core::Interface::as_raw(self), xml.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.SetXml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(xml), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateOutputLocation(&self, latest: i16) -> ::windows::core::Result { + pub unsafe fn CreateOutputLocation(&self, latest: i16) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CreateOutputLocation)(::windows::core::Interface::as_raw(self), latest, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CreateOutputLocation)(::windows::core::Interface::as_raw(self), latest, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn FileMaxCount(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2867,19 +2678,12 @@ impl IConfigurationDataCollector { pub unsafe fn SetRegistryMaxRecursiveDepth(&self, depth: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetRegistryMaxRecursiveDepth)(::windows::core::Interface::as_raw(self), depth).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SystemStateFile(&self) -> ::windows::core::Result { + pub unsafe fn SystemStateFile(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SystemStateFile)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SystemStateFile)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSystemStateFile<'a, P0>(&self, filename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSystemStateFile)(::windows::core::Interface::as_raw(self), filename.into().abi()).ok() + pub unsafe fn SetSystemStateFile(&self, filename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSystemStateFile)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(filename)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3000,14 +2804,8 @@ pub struct IConfigurationDataCollector_Vtbl { SetRegistryKeys: usize, pub RegistryMaxRecursiveDepth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, depth: *mut u32) -> ::windows::core::HRESULT, pub SetRegistryMaxRecursiveDepth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, depth: u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SystemStateFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SystemStateFile: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSystemStateFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSystemStateFile: usize, + pub SystemStateFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSystemStateFile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Performance\"`*"] #[repr(transparent)] @@ -3045,11 +2843,9 @@ impl ICounterItem { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ScaleFactor)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Path(&self) -> ::windows::core::Result { + pub unsafe fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetValue(&self, value: &mut f64, status: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(value), ::core::mem::transmute(status)).ok() @@ -3106,10 +2902,7 @@ pub struct ICounterItem_Vtbl { pub LineStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pivalue: *mut i32) -> ::windows::core::HRESULT, pub SetScaleFactor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iscale: i32) -> ::windows::core::HRESULT, pub ScaleFactor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pivalue: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Path: usize, + pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut f64, status: *mut i32) -> ::windows::core::HRESULT, pub GetStatistics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, max: *mut f64, min: *mut f64, avg: *mut f64, status: *mut i32) -> ::windows::core::HRESULT, } @@ -3149,11 +2942,9 @@ impl ICounterItem2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.ScaleFactor)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Path(&self) -> ::windows::core::Result { + pub unsafe fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetValue(&self, value: &mut f64, status: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(value), ::core::mem::transmute(status)).ok() @@ -3268,14 +3059,11 @@ impl ICounters { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), index.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Add<'a, P0>(&self, pathname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Add(&self, pathname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), pathname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pathname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3358,9 +3146,9 @@ pub struct ICounters_Vtbl { pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: ::core::mem::ManuallyDrop, ppi: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_Item: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pathname: ::core::mem::ManuallyDrop, ppi: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pathname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppi: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Add: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, @@ -3391,19 +3179,12 @@ impl IDataCollector { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).DataCollectorType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FileName(&self) -> ::windows::core::Result { + pub unsafe fn FileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFileName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetFileName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetFileName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } pub unsafe fn FileNameFormat(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3412,33 +3193,19 @@ impl IDataCollector { pub unsafe fn SetFileNameFormat(&self, format: AutoPathFormat) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetFileNameFormat)(::windows::core::Interface::as_raw(self), format).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FileNameFormatPattern(&self) -> ::windows::core::Result { + pub unsafe fn FileNameFormatPattern(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FileNameFormatPattern)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FileNameFormatPattern)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFileNameFormatPattern<'a, P0>(&self, pattern: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetFileNameFormatPattern)(::windows::core::Interface::as_raw(self), pattern.into().abi()).ok() + pub unsafe fn SetFileNameFormatPattern(&self, pattern: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetFileNameFormatPattern)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pattern)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LatestOutputLocation(&self) -> ::windows::core::Result { + pub unsafe fn LatestOutputLocation(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LatestOutputLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LatestOutputLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLatestOutputLocation<'a, P0>(&self, path: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetLatestOutputLocation)(::windows::core::Interface::as_raw(self), path.into().abi()).ok() + pub unsafe fn SetLatestOutputLocation(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetLatestOutputLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path)).ok() } pub unsafe fn LogAppend(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3461,25 +3228,16 @@ impl IDataCollector { pub unsafe fn SetLogOverwrite(&self, overwrite: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetLogOverwrite)(::windows::core::Interface::as_raw(self), overwrite).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OutputLocation(&self) -> ::windows::core::Result { + pub unsafe fn OutputLocation(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).OutputLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).OutputLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Index(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3488,26 +3246,19 @@ impl IDataCollector { pub unsafe fn SetIndex(&self, index: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetIndex)(::windows::core::Interface::as_raw(self), index).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Xml(&self) -> ::windows::core::Result { + pub unsafe fn Xml(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Xml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Xml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn SetXml<'a, P0>(&self, xml: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn SetXml(&self, xml: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SetXml)(::windows::core::Interface::as_raw(self), xml.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SetXml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(xml), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateOutputLocation(&self, latest: i16) -> ::windows::core::Result { + pub unsafe fn CreateOutputLocation(&self, latest: i16) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateOutputLocation)(::windows::core::Interface::as_raw(self), latest, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateOutputLocation)(::windows::core::Interface::as_raw(self), latest, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -3585,64 +3336,31 @@ pub struct IDataCollector_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetDataCollectorSet: usize, pub DataCollectorType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: *mut DataCollectorType) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub FileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FileName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetFileName: usize, + pub FileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub FileNameFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, format: *mut AutoPathFormat) -> ::windows::core::HRESULT, pub SetFileNameFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, format: AutoPathFormat) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub FileNameFormatPattern: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pattern: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FileNameFormatPattern: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetFileNameFormatPattern: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pattern: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetFileNameFormatPattern: usize, - #[cfg(feature = "Win32_Foundation")] - pub LatestOutputLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LatestOutputLocation: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetLatestOutputLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetLatestOutputLocation: usize, + pub FileNameFormatPattern: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pattern: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetFileNameFormatPattern: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pattern: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub LatestOutputLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetLatestOutputLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub LogAppend: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, append: *mut i16) -> ::windows::core::HRESULT, pub SetLogAppend: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, append: i16) -> ::windows::core::HRESULT, pub LogCircular: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, circular: *mut i16) -> ::windows::core::HRESULT, pub SetLogCircular: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, circular: i16) -> ::windows::core::HRESULT, pub LogOverwrite: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, overwrite: *mut i16) -> ::windows::core::HRESULT, pub SetLogOverwrite: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, overwrite: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, - #[cfg(feature = "Win32_Foundation")] - pub OutputLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OutputLocation: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub OutputLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Index: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: *mut i32) -> ::windows::core::HRESULT, pub SetIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Xml: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, xml: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Xml: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub SetXml: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, xml: ::core::mem::ManuallyDrop, validation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub Xml: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, xml: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub SetXml: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, xml: ::core::mem::ManuallyDrop<::windows::core::BSTR>, validation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] SetXml: usize, - #[cfg(feature = "Win32_Foundation")] - pub CreateOutputLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, latest: i16, location: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CreateOutputLocation: usize, + pub CreateOutputLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, latest: i16, location: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3694,13 +3412,10 @@ impl IDataCollectorCollection { { (::windows::core::Interface::vtable(self).AddRange)(::windows::core::Interface::as_raw(self), collectors.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateDataCollectorFromXml<'a, P0>(&self, bstrxml: P0, pvalidation: &mut ::core::option::Option, pcollector: &mut ::core::option::Option) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).CreateDataCollectorFromXml)(::windows::core::Interface::as_raw(self), bstrxml.into().abi(), ::core::mem::transmute(pvalidation), ::core::mem::transmute(pcollector)).ok() + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateDataCollectorFromXml(&self, bstrxml: &::windows::core::BSTR, pvalidation: &mut ::core::option::Option, pcollector: &mut ::core::option::Option) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).CreateDataCollectorFromXml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrxml), ::core::mem::transmute(pvalidation), ::core::mem::transmute(pcollector)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3794,9 +3509,9 @@ pub struct IDataCollectorCollection_Vtbl { pub AddRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, collectors: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] AddRange: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreateDataCollectorFromXml: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrxml: ::core::mem::ManuallyDrop, pvalidation: *mut *mut ::core::ffi::c_void, pcollector: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreateDataCollectorFromXml: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrxml: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvalidation: *mut *mut ::core::ffi::c_void, pcollector: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreateDataCollectorFromXml: usize, #[cfg(feature = "Win32_System_Com")] pub CreateDataCollector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: DataCollectorType, collector: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -3822,45 +3537,27 @@ impl IDataCollectorSet { pub unsafe fn SetDuration(&self, seconds: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetDuration)(::windows::core::Interface::as_raw(self), seconds).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, description: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), description.into().abi()).ok() + pub unsafe fn SetDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(description)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DescriptionUnresolved(&self) -> ::windows::core::Result { + pub unsafe fn DescriptionUnresolved(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DescriptionUnresolved)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DescriptionUnresolved)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisplayName(&self) -> ::windows::core::Result { + pub unsafe fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDisplayName<'a, P0>(&self, displayname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDisplayName)(::windows::core::Interface::as_raw(self), displayname.into().abi()).ok() + pub unsafe fn SetDisplayName(&self, displayname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(displayname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisplayNameUnresolved(&self) -> ::windows::core::Result { + pub unsafe fn DisplayNameUnresolved(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DisplayNameUnresolved)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DisplayNameUnresolved)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3873,45 +3570,27 @@ impl IDataCollectorSet { pub unsafe fn SetKeywords(&self, keywords: &super::Com::SAFEARRAY) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetKeywords)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(keywords)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LatestOutputLocation(&self) -> ::windows::core::Result { + pub unsafe fn LatestOutputLocation(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LatestOutputLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LatestOutputLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLatestOutputLocation<'a, P0>(&self, path: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetLatestOutputLocation)(::windows::core::Interface::as_raw(self), path.into().abi()).ok() + pub unsafe fn SetLatestOutputLocation(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetLatestOutputLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OutputLocation(&self) -> ::windows::core::Result { + pub unsafe fn OutputLocation(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).OutputLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).OutputLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RootPath(&self) -> ::windows::core::Result { + pub unsafe fn RootPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RootPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RootPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRootPath<'a, P0>(&self, folder: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetRootPath)(::windows::core::Interface::as_raw(self), folder.into().abi()).ok() + pub unsafe fn SetRootPath(&self, folder: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetRootPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(folder)).ok() } pub unsafe fn Segment(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3941,29 +3620,20 @@ impl IDataCollectorSet { pub unsafe fn SetSerialNumber(&self, index: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetSerialNumber)(::windows::core::Interface::as_raw(self), index).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Server(&self) -> ::windows::core::Result { + pub unsafe fn Server(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Server)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Server)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Status(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Status)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Subdirectory(&self) -> ::windows::core::Result { + pub unsafe fn Subdirectory(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Subdirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Subdirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSubdirectory<'a, P0>(&self, folder: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSubdirectory)(::windows::core::Interface::as_raw(self), folder.into().abi()).ok() + pub unsafe fn SetSubdirectory(&self, folder: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSubdirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(folder)).ok() } pub unsafe fn SubdirectoryFormat(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3972,33 +3642,19 @@ impl IDataCollectorSet { pub unsafe fn SetSubdirectoryFormat(&self, format: AutoPathFormat) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetSubdirectoryFormat)(::windows::core::Interface::as_raw(self), format).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SubdirectoryFormatPattern(&self) -> ::windows::core::Result { + pub unsafe fn SubdirectoryFormatPattern(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SubdirectoryFormatPattern)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SubdirectoryFormatPattern)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSubdirectoryFormatPattern<'a, P0>(&self, pattern: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSubdirectoryFormatPattern)(::windows::core::Interface::as_raw(self), pattern.into().abi()).ok() + pub unsafe fn SetSubdirectoryFormatPattern(&self, pattern: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSubdirectoryFormatPattern)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pattern)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Task(&self) -> ::windows::core::Result { + pub unsafe fn Task(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Task)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Task)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetTask<'a, P0>(&self, task: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetTask)(::windows::core::Interface::as_raw(self), task.into().abi()).ok() + pub unsafe fn SetTask(&self, task: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetTask)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(task)).ok() } pub unsafe fn TaskRunAsSelf(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4007,33 +3663,19 @@ impl IDataCollectorSet { pub unsafe fn SetTaskRunAsSelf(&self, runasself: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetTaskRunAsSelf)(::windows::core::Interface::as_raw(self), runasself).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TaskArguments(&self) -> ::windows::core::Result { + pub unsafe fn TaskArguments(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TaskArguments)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TaskArguments)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetTaskArguments<'a, P0>(&self, task: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetTaskArguments)(::windows::core::Interface::as_raw(self), task.into().abi()).ok() + pub unsafe fn SetTaskArguments(&self, task: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetTaskArguments)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(task)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TaskUserTextArguments(&self) -> ::windows::core::Result { + pub unsafe fn TaskUserTextArguments(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TaskUserTextArguments)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TaskUserTextArguments)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetTaskUserTextArguments<'a, P0>(&self, usertext: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetTaskUserTextArguments)(::windows::core::Interface::as_raw(self), usertext.into().abi()).ok() + pub unsafe fn SetTaskUserTextArguments(&self, usertext: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetTaskUserTextArguments)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(usertext)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4048,31 +3690,20 @@ impl IDataCollectorSet { pub unsafe fn SetSchedulesEnabled(&self, enabled: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetSchedulesEnabled)(::windows::core::Interface::as_raw(self), enabled).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserAccount(&self) -> ::windows::core::Result { + pub unsafe fn UserAccount(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UserAccount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UserAccount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Xml(&self) -> ::windows::core::Result { + pub unsafe fn Xml(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Xml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Xml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Security(&self) -> ::windows::core::Result { + pub unsafe fn Security(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Security)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Security)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSecurity<'a, P0>(&self, bstrsecurity: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSecurity)(::windows::core::Interface::as_raw(self), bstrsecurity.into().abi()).ok() + pub unsafe fn SetSecurity(&self, bstrsecurity: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSecurity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsecurity)).ok() } pub unsafe fn StopOnCompletion(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4087,33 +3718,17 @@ impl IDataCollectorSet { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).DataManager)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCredentials<'a, P0, P1>(&self, user: P0, password: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetCredentials)(::windows::core::Interface::as_raw(self), user.into().abi(), password.into().abi()).ok() + pub unsafe fn SetCredentials(&self, user: &::windows::core::BSTR, password: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetCredentials)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(user), ::core::mem::transmute_copy(password)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Query<'a, P0, P1>(&self, name: P0, server: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Query)(::windows::core::Interface::as_raw(self), name.into().abi(), server.into().abi()).ok() + pub unsafe fn Query(&self, name: &::windows::core::BSTR, server: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Query)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute_copy(server)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Commit<'a, P0, P1>(&self, name: P0, server: P1, mode: CommitMode) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Commit(&self, name: &::windows::core::BSTR, server: &::windows::core::BSTR, mode: CommitMode) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Commit)(::windows::core::Interface::as_raw(self), name.into().abi(), server.into().abi(), mode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Commit)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute_copy(server), mode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn Delete(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Delete)(::windows::core::Interface::as_raw(self)).ok() @@ -4124,32 +3739,18 @@ impl IDataCollectorSet { pub unsafe fn Stop(&self, synchronous: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Stop)(::windows::core::Interface::as_raw(self), synchronous).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn SetXml<'a, P0>(&self, xml: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn SetXml(&self, xml: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SetXml)(::windows::core::Interface::as_raw(self), xml.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SetXml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(xml), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetValue<'a, P0, P1>(&self, key: P0, value: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetValue)(::windows::core::Interface::as_raw(self), key.into().abi(), value.into().abi()).ok() + pub unsafe fn SetValue(&self, key: &::windows::core::BSTR, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(key), ::core::mem::transmute_copy(value)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetValue<'a, P0>(&self, key: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetValue(&self, key: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetValue)(::windows::core::Interface::as_raw(self), key.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(key), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -4224,30 +3825,12 @@ pub struct IDataCollectorSet_Vtbl { DataCollectors: usize, pub Duration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, seconds: *mut u32) -> ::windows::core::HRESULT, pub SetDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, seconds: u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDescription: usize, - #[cfg(feature = "Win32_Foundation")] - pub DescriptionUnresolved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, descr: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DescriptionUnresolved: usize, - #[cfg(feature = "Win32_Foundation")] - pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, displayname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DisplayName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, displayname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDisplayName: usize, - #[cfg(feature = "Win32_Foundation")] - pub DisplayNameUnresolved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DisplayNameUnresolved: usize, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DescriptionUnresolved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, descr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, displayname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, displayname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DisplayNameUnresolved: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Keywords: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, keywords: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -4256,30 +3839,12 @@ pub struct IDataCollectorSet_Vtbl { pub SetKeywords: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, keywords: *const super::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] SetKeywords: usize, - #[cfg(feature = "Win32_Foundation")] - pub LatestOutputLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LatestOutputLocation: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetLatestOutputLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetLatestOutputLocation: usize, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub OutputLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OutputLocation: usize, - #[cfg(feature = "Win32_Foundation")] - pub RootPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, folder: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RootPath: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetRootPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, folder: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetRootPath: usize, + pub LatestOutputLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetLatestOutputLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub OutputLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub RootPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, folder: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetRootPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, folder: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Segment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, segment: *mut i16) -> ::windows::core::HRESULT, pub SetSegment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, segment: i16) -> ::windows::core::HRESULT, pub SegmentMaxDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, seconds: *mut u32) -> ::windows::core::HRESULT, @@ -4288,110 +3853,53 @@ pub struct IDataCollectorSet_Vtbl { pub SetSegmentMaxSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, size: u32) -> ::windows::core::HRESULT, pub SerialNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: *mut u32) -> ::windows::core::HRESULT, pub SetSerialNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Server: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, server: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Server: usize, + pub Server: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, server: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, status: *mut DataCollectorSetStatus) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Subdirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, folder: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Subdirectory: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSubdirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, folder: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSubdirectory: usize, + pub Subdirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, folder: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSubdirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, folder: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SubdirectoryFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, format: *mut AutoPathFormat) -> ::windows::core::HRESULT, pub SetSubdirectoryFormat: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, format: AutoPathFormat) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SubdirectoryFormatPattern: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pattern: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SubdirectoryFormatPattern: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSubdirectoryFormatPattern: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pattern: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSubdirectoryFormatPattern: usize, - #[cfg(feature = "Win32_Foundation")] - pub Task: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, task: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Task: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, task: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetTask: usize, + pub SubdirectoryFormatPattern: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pattern: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSubdirectoryFormatPattern: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pattern: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Task: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, task: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, task: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub TaskRunAsSelf: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, runasself: *mut i16) -> ::windows::core::HRESULT, pub SetTaskRunAsSelf: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, runasself: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub TaskArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, task: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TaskArguments: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetTaskArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, task: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetTaskArguments: usize, - #[cfg(feature = "Win32_Foundation")] - pub TaskUserTextArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, usertext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TaskUserTextArguments: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetTaskUserTextArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, usertext: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetTaskUserTextArguments: usize, + pub TaskArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, task: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetTaskArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, task: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub TaskUserTextArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, usertext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetTaskUserTextArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, usertext: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Schedules: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppschedules: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Schedules: usize, pub SchedulesEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enabled: *mut i16) -> ::windows::core::HRESULT, pub SetSchedulesEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enabled: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub UserAccount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, user: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UserAccount: usize, - #[cfg(feature = "Win32_Foundation")] - pub Xml: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, xml: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Xml: usize, - #[cfg(feature = "Win32_Foundation")] - pub Security: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsecurity: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Security: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSecurity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsecurity: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSecurity: usize, + pub UserAccount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, user: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Xml: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, xml: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Security: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsecurity: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSecurity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsecurity: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub StopOnCompletion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stop: *mut i16) -> ::windows::core::HRESULT, pub SetStopOnCompletion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stop: i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub DataManager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, datamanager: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] DataManager: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetCredentials: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, user: ::core::mem::ManuallyDrop, password: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetCredentials: usize, - #[cfg(feature = "Win32_Foundation")] - pub Query: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, server: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Query: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Commit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, server: ::core::mem::ManuallyDrop, mode: CommitMode, validation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub SetCredentials: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, user: ::core::mem::ManuallyDrop<::windows::core::BSTR>, password: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Query: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, server: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub Commit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, server: ::core::mem::ManuallyDrop<::windows::core::BSTR>, mode: CommitMode, validation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Commit: usize, pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, synchronous: i16) -> ::windows::core::HRESULT, pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, synchronous: i16) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub SetXml: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, xml: ::core::mem::ManuallyDrop, validation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub SetXml: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, xml: ::core::mem::ManuallyDrop<::windows::core::BSTR>, validation: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] SetXml: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, key: ::core::mem::ManuallyDrop, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetValue: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, key: ::core::mem::ManuallyDrop, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetValue: usize, + pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, key: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, key: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4443,14 +3951,8 @@ impl IDataCollectorSetCollection { { (::windows::core::Interface::vtable(self).AddRange)(::windows::core::Interface::as_raw(self), sets.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDataCollectorSets<'a, P0, P1>(&self, server: P0, filter: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetDataCollectorSets)(::windows::core::Interface::as_raw(self), server.into().abi(), filter.into().abi()).ok() + pub unsafe fn GetDataCollectorSets(&self, server: &::windows::core::BSTR, filter: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetDataCollectorSets)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(server), ::core::mem::transmute_copy(filter)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4538,10 +4040,7 @@ pub struct IDataCollectorSetCollection_Vtbl { pub AddRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sets: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] AddRange: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetDataCollectorSets: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, server: ::core::mem::ManuallyDrop, filter: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDataCollectorSets: usize, + pub GetDataCollectorSets: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, server: ::core::mem::ManuallyDrop<::windows::core::BSTR>, filter: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4597,93 +4096,49 @@ impl IDataManager { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).FolderActions)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ReportSchema(&self) -> ::windows::core::Result { + pub unsafe fn ReportSchema(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ReportSchema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ReportSchema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetReportSchema<'a, P0>(&self, reportschema: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetReportSchema)(::windows::core::Interface::as_raw(self), reportschema.into().abi()).ok() + pub unsafe fn SetReportSchema(&self, reportschema: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetReportSchema)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(reportschema)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ReportFileName(&self) -> ::windows::core::Result { + pub unsafe fn ReportFileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ReportFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ReportFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetReportFileName<'a, P0>(&self, pbstrfilename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetReportFileName)(::windows::core::Interface::as_raw(self), pbstrfilename.into().abi()).ok() + pub unsafe fn SetReportFileName(&self, pbstrfilename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetReportFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pbstrfilename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RuleTargetFileName(&self) -> ::windows::core::Result { + pub unsafe fn RuleTargetFileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RuleTargetFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RuleTargetFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRuleTargetFileName<'a, P0>(&self, filename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetRuleTargetFileName)(::windows::core::Interface::as_raw(self), filename.into().abi()).ok() + pub unsafe fn SetRuleTargetFileName(&self, filename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetRuleTargetFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(filename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EventsFileName(&self) -> ::windows::core::Result { + pub unsafe fn EventsFileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).EventsFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).EventsFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetEventsFileName<'a, P0>(&self, pbstrfilename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetEventsFileName)(::windows::core::Interface::as_raw(self), pbstrfilename.into().abi()).ok() + pub unsafe fn SetEventsFileName(&self, pbstrfilename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetEventsFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pbstrfilename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Rules(&self) -> ::windows::core::Result { + pub unsafe fn Rules(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Rules)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Rules)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRules<'a, P0>(&self, bstrxml: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetRules)(::windows::core::Interface::as_raw(self), bstrxml.into().abi()).ok() + pub unsafe fn SetRules(&self, bstrxml: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetRules)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrxml)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Run<'a, P0>(&self, steps: DataManagerSteps, bstrfolder: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Run(&self, steps: DataManagerSteps, bstrfolder: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Run)(::windows::core::Interface::as_raw(self), steps, bstrfolder.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Run)(::windows::core::Interface::as_raw(self), steps, ::core::mem::transmute_copy(bstrfolder), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Extract<'a, P0, P1>(&self, cabfilename: P0, destinationpath: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Extract)(::windows::core::Interface::as_raw(self), cabfilename.into().abi(), destinationpath.into().abi()).ok() + pub unsafe fn Extract(&self, cabfilename: &::windows::core::BSTR, destinationpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Extract)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(cabfilename), ::core::mem::transmute_copy(destinationpath)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4768,54 +4223,21 @@ pub struct IDataManager_Vtbl { pub FolderActions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, actions: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] FolderActions: usize, - #[cfg(feature = "Win32_Foundation")] - pub ReportSchema: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reportschema: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ReportSchema: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetReportSchema: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reportschema: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetReportSchema: usize, - #[cfg(feature = "Win32_Foundation")] - pub ReportFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfilename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ReportFileName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetReportFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetReportFileName: usize, - #[cfg(feature = "Win32_Foundation")] - pub RuleTargetFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RuleTargetFileName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetRuleTargetFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetRuleTargetFileName: usize, - #[cfg(feature = "Win32_Foundation")] - pub EventsFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfilename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EventsFileName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetEventsFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetEventsFileName: usize, - #[cfg(feature = "Win32_Foundation")] - pub Rules: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrxml: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Rules: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetRules: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrxml: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetRules: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Run: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, steps: DataManagerSteps, bstrfolder: ::core::mem::ManuallyDrop, errors: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub ReportSchema: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reportschema: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetReportSchema: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reportschema: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ReportFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfilename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetReportFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub RuleTargetFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetRuleTargetFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, filename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub EventsFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfilename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetEventsFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Rules: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrxml: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetRules: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrxml: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub Run: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, steps: DataManagerSteps, bstrfolder: ::core::mem::ManuallyDrop<::windows::core::BSTR>, errors: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Run: usize, - #[cfg(feature = "Win32_Foundation")] - pub Extract: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cabfilename: ::core::mem::ManuallyDrop, destinationpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Extract: usize, + pub Extract: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cabfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, destinationpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4844,19 +4266,12 @@ impl IFolderAction { pub unsafe fn SetActions(&self, steps: FolderActionSteps) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetActions)(::windows::core::Interface::as_raw(self), steps).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SendCabTo(&self) -> ::windows::core::Result { + pub unsafe fn SendCabTo(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SendCabTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SendCabTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSendCabTo<'a, P0>(&self, bstrdestination: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSendCabTo)(::windows::core::Interface::as_raw(self), bstrdestination.into().abi()).ok() + pub unsafe fn SetSendCabTo(&self, bstrdestination: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSendCabTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdestination)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4931,14 +4346,8 @@ pub struct IFolderAction_Vtbl { pub SetSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulage: u32) -> ::windows::core::HRESULT, pub Actions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, steps: *mut FolderActionSteps) -> ::windows::core::HRESULT, pub SetActions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, steps: FolderActionSteps) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SendCabTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdestination: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SendCabTo: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSendCabTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdestination: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSendCabTo: usize, + pub SendCabTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdestination: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSendCabTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdestination: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5091,11 +4500,9 @@ pub struct IFolderActionCollection_Vtbl { #[repr(transparent)] pub struct ILogFileItem(::windows::core::IUnknown); impl ILogFileItem { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Path(&self) -> ::windows::core::Result { + pub unsafe fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -5137,10 +4544,7 @@ unsafe impl ::windows::core::Interface for ILogFileItem { #[doc(hidden)] pub struct ILogFileItem_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Path: usize, + pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5165,14 +4569,11 @@ impl ILogFiles { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), index.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Add<'a, P0>(&self, pathname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Add(&self, pathname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), pathname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pathname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -5255,9 +4656,9 @@ pub struct ILogFiles_Vtbl { pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: ::core::mem::ManuallyDrop, ppi: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_Item: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pathname: ::core::mem::ManuallyDrop, ppi: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pathname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppi: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Add: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, @@ -5288,19 +4689,12 @@ impl IPerformanceCounterDataCollector { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.DataCollectorType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FileName(&self) -> ::windows::core::Result { + pub unsafe fn FileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.FileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFileName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetFileName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetFileName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } pub unsafe fn FileNameFormat(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5309,33 +4703,19 @@ impl IPerformanceCounterDataCollector { pub unsafe fn SetFileNameFormat(&self, format: AutoPathFormat) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetFileNameFormat)(::windows::core::Interface::as_raw(self), format).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FileNameFormatPattern(&self) -> ::windows::core::Result { + pub unsafe fn FileNameFormatPattern(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FileNameFormatPattern)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.FileNameFormatPattern)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFileNameFormatPattern<'a, P0>(&self, pattern: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetFileNameFormatPattern)(::windows::core::Interface::as_raw(self), pattern.into().abi()).ok() + pub unsafe fn SetFileNameFormatPattern(&self, pattern: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetFileNameFormatPattern)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pattern)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LatestOutputLocation(&self) -> ::windows::core::Result { + pub unsafe fn LatestOutputLocation(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.LatestOutputLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.LatestOutputLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLatestOutputLocation<'a, P0>(&self, path: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetLatestOutputLocation)(::windows::core::Interface::as_raw(self), path.into().abi()).ok() + pub unsafe fn SetLatestOutputLocation(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetLatestOutputLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path)).ok() } pub unsafe fn LogAppend(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5358,25 +4738,16 @@ impl IPerformanceCounterDataCollector { pub unsafe fn SetLogOverwrite(&self, overwrite: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetLogOverwrite)(::windows::core::Interface::as_raw(self), overwrite).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OutputLocation(&self) -> ::windows::core::Result { + pub unsafe fn OutputLocation(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.OutputLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.OutputLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Index(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5385,40 +4756,26 @@ impl IPerformanceCounterDataCollector { pub unsafe fn SetIndex(&self, index: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetIndex)(::windows::core::Interface::as_raw(self), index).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Xml(&self) -> ::windows::core::Result { + pub unsafe fn Xml(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Xml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Xml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn SetXml<'a, P0>(&self, xml: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn SetXml(&self, xml: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.SetXml)(::windows::core::Interface::as_raw(self), xml.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.SetXml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(xml), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateOutputLocation(&self, latest: i16) -> ::windows::core::Result { + pub unsafe fn CreateOutputLocation(&self, latest: i16) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CreateOutputLocation)(::windows::core::Interface::as_raw(self), latest, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CreateOutputLocation)(::windows::core::Interface::as_raw(self), latest, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DataSourceName(&self) -> ::windows::core::Result { + pub unsafe fn DataSourceName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DataSourceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DataSourceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDataSourceName<'a, P0>(&self, dsn: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDataSourceName)(::windows::core::Interface::as_raw(self), dsn.into().abi()).ok() + pub unsafe fn SetDataSourceName(&self, dsn: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDataSourceName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(dsn)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5537,14 +4894,8 @@ unsafe impl ::windows::core::Interface for IPerformanceCounterDataCollector { #[doc(hidden)] pub struct IPerformanceCounterDataCollector_Vtbl { pub base__: IDataCollector_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub DataSourceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dsn: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DataSourceName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDataSourceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dsn: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDataSourceName: usize, + pub DataSourceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dsn: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDataSourceName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dsn: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub PerformanceCounters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, counters: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -5978,33 +5329,19 @@ impl ISystemMonitor { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ManualUpdate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetGraphTitle<'a, P0>(&self, bstitle: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetGraphTitle)(::windows::core::Interface::as_raw(self), bstitle.into().abi()).ok() + pub unsafe fn SetGraphTitle(&self, bstitle: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetGraphTitle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstitle)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GraphTitle(&self) -> ::windows::core::Result { + pub unsafe fn GraphTitle(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GraphTitle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GraphTitle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetYAxisLabel<'a, P0>(&self, bstitle: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetYAxisLabel)(::windows::core::Interface::as_raw(self), bstitle.into().abi()).ok() + pub unsafe fn SetYAxisLabel(&self, bstitle: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetYAxisLabel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstitle)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn YAxisLabel(&self) -> ::windows::core::Result { + pub unsafe fn YAxisLabel(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).YAxisLabel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).YAxisLabel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CollectSample(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).CollectSample)(::windows::core::Interface::as_raw(self)).ok() @@ -6022,14 +5359,9 @@ impl ISystemMonitor { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Counter)(::windows::core::Interface::as_raw(self), iindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddCounter<'a, P0>(&self, bspath: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn AddCounter(&self, bspath: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AddCounter)(::windows::core::Interface::as_raw(self), bspath.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AddCounter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bspath), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn DeleteCounter<'a, P0>(&self, pctr: P0) -> ::windows::core::Result<()> where @@ -6044,19 +5376,12 @@ impl ISystemMonitor { pub unsafe fn SetBackColorCtl(&self, color: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetBackColorCtl)(::windows::core::Interface::as_raw(self), color).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLogFileName<'a, P0>(&self, bsfilename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetLogFileName)(::windows::core::Interface::as_raw(self), bsfilename.into().abi()).ok() + pub unsafe fn SetLogFileName(&self, bsfilename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetLogFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bsfilename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LogFileName(&self) -> ::windows::core::Result { + pub unsafe fn LogFileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LogFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LogFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetLogViewStart(&self, starttime: f64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetLogViewStart)(::windows::core::Interface::as_raw(self), starttime).ok() @@ -6150,33 +5475,19 @@ impl ISystemMonitor { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).DataSourceType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSqlDsnName<'a, P0>(&self, bssqldsnname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSqlDsnName)(::windows::core::Interface::as_raw(self), bssqldsnname.into().abi()).ok() + pub unsafe fn SetSqlDsnName(&self, bssqldsnname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSqlDsnName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bssqldsnname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SqlDsnName(&self) -> ::windows::core::Result { + pub unsafe fn SqlDsnName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SqlDsnName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SqlDsnName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSqlLogSetName<'a, P0>(&self, bssqllogsetname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSqlLogSetName)(::windows::core::Interface::as_raw(self), bssqllogsetname.into().abi()).ok() + pub unsafe fn SetSqlLogSetName(&self, bssqllogsetname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSqlLogSetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bssqllogsetname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SqlLogSetName(&self) -> ::windows::core::Result { + pub unsafe fn SqlLogSetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SqlLogSetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SqlLogSetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -6258,42 +5569,21 @@ pub struct ISystemMonitor_Vtbl { pub DisplayType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pedisplaytype: *mut DisplayTypeConstants) -> ::windows::core::HRESULT, pub SetManualUpdate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstate: i16) -> ::windows::core::HRESULT, pub ManualUpdate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstate: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetGraphTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstitle: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetGraphTitle: usize, - #[cfg(feature = "Win32_Foundation")] - pub GraphTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstitle: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GraphTitle: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetYAxisLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstitle: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetYAxisLabel: usize, - #[cfg(feature = "Win32_Foundation")] - pub YAxisLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstitle: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - YAxisLabel: usize, + pub SetGraphTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstitle: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GraphTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstitle: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetYAxisLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstitle: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub YAxisLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstitle: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub CollectSample: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub UpdateGraph: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub BrowseCounters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub DisplayProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Counter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iindex: i32, ppicounter: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub AddCounter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bspath: ::core::mem::ManuallyDrop, ppicounter: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddCounter: usize, + pub AddCounter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bspath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppicounter: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub DeleteCounter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pctr: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub BackColorCtl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcolor: *mut u32) -> ::windows::core::HRESULT, pub SetBackColorCtl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, color: u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetLogFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bsfilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetLogFileName: usize, - #[cfg(feature = "Win32_Foundation")] - pub LogFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bsfilename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LogFileName: usize, + pub SetLogFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bsfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub LogFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bsfilename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetLogViewStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, starttime: f64) -> ::windows::core::HRESULT, pub LogViewStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, starttime: *mut f64) -> ::windows::core::HRESULT, pub SetLogViewStop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stoptime: f64) -> ::windows::core::HRESULT, @@ -6323,22 +5613,10 @@ pub struct ISystemMonitor_Vtbl { LogFiles: usize, pub SetDataSourceType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, edatasourcetype: DataSourceTypeConstants) -> ::windows::core::HRESULT, pub DataSourceType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pedatasourcetype: *mut DataSourceTypeConstants) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetSqlDsnName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bssqldsnname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSqlDsnName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SqlDsnName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bssqldsnname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SqlDsnName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSqlLogSetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bssqllogsetname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSqlLogSetName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SqlLogSetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bssqllogsetname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SqlLogSetName: usize, + pub SetSqlDsnName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bssqldsnname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SqlDsnName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bssqldsnname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSqlLogSetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bssqllogsetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SqlLogSetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bssqllogsetname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Performance\"`*"] #[repr(transparent)] @@ -6462,33 +5740,19 @@ impl ISystemMonitor2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.ManualUpdate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetGraphTitle<'a, P0>(&self, bstitle: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetGraphTitle)(::windows::core::Interface::as_raw(self), bstitle.into().abi()).ok() + pub unsafe fn SetGraphTitle(&self, bstitle: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetGraphTitle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstitle)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GraphTitle(&self) -> ::windows::core::Result { + pub unsafe fn GraphTitle(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GraphTitle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GraphTitle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetYAxisLabel<'a, P0>(&self, bstitle: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetYAxisLabel)(::windows::core::Interface::as_raw(self), bstitle.into().abi()).ok() + pub unsafe fn SetYAxisLabel(&self, bstitle: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetYAxisLabel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstitle)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn YAxisLabel(&self) -> ::windows::core::Result { + pub unsafe fn YAxisLabel(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.YAxisLabel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.YAxisLabel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CollectSample(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.CollectSample)(::windows::core::Interface::as_raw(self)).ok() @@ -6506,14 +5770,9 @@ impl ISystemMonitor2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Counter)(::windows::core::Interface::as_raw(self), iindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddCounter<'a, P0>(&self, bspath: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn AddCounter(&self, bspath: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.AddCounter)(::windows::core::Interface::as_raw(self), bspath.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.AddCounter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bspath), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn DeleteCounter<'a, P0>(&self, pctr: P0) -> ::windows::core::Result<()> where @@ -6528,19 +5787,12 @@ impl ISystemMonitor2 { pub unsafe fn SetBackColorCtl(&self, color: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetBackColorCtl)(::windows::core::Interface::as_raw(self), color).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLogFileName<'a, P0>(&self, bsfilename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetLogFileName)(::windows::core::Interface::as_raw(self), bsfilename.into().abi()).ok() + pub unsafe fn SetLogFileName(&self, bsfilename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetLogFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bsfilename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LogFileName(&self) -> ::windows::core::Result { + pub unsafe fn LogFileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.LogFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.LogFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetLogViewStart(&self, starttime: f64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetLogViewStart)(::windows::core::Interface::as_raw(self), starttime).ok() @@ -6634,33 +5886,19 @@ impl ISystemMonitor2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.DataSourceType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSqlDsnName<'a, P0>(&self, bssqldsnname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetSqlDsnName)(::windows::core::Interface::as_raw(self), bssqldsnname.into().abi()).ok() + pub unsafe fn SetSqlDsnName(&self, bssqldsnname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetSqlDsnName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bssqldsnname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SqlDsnName(&self) -> ::windows::core::Result { + pub unsafe fn SqlDsnName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.SqlDsnName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.SqlDsnName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSqlLogSetName<'a, P0>(&self, bssqllogsetname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetSqlLogSetName)(::windows::core::Interface::as_raw(self), bssqllogsetname.into().abi()).ok() + pub unsafe fn SetSqlLogSetName(&self, bssqllogsetname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetSqlLogSetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bssqllogsetname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SqlLogSetName(&self) -> ::windows::core::Result { + pub unsafe fn SqlLogSetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.SqlLogSetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.SqlLogSetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetEnableDigitGrouping(&self, bstate: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetEnableDigitGrouping)(::windows::core::Interface::as_raw(self), bstate).ok() @@ -6700,21 +5938,11 @@ impl ISystemMonitor2 { pub unsafe fn ScaleToFit(&self, bselectedcountersonly: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ScaleToFit)(::windows::core::Interface::as_raw(self), bselectedcountersonly).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SaveAs<'a, P0>(&self, bstrfilename: P0, esysmonfiletype: SysmonFileType) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SaveAs)(::windows::core::Interface::as_raw(self), bstrfilename.into().abi(), esysmonfiletype).ok() + pub unsafe fn SaveAs(&self, bstrfilename: &::windows::core::BSTR, esysmonfiletype: SysmonFileType) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SaveAs)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrfilename), esysmonfiletype).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Relog<'a, P0>(&self, bstrfilename: P0, esysmonfiletype: SysmonFileType, ifilter: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Relog)(::windows::core::Interface::as_raw(self), bstrfilename.into().abi(), esysmonfiletype, ifilter).ok() + pub unsafe fn Relog(&self, bstrfilename: &::windows::core::BSTR, esysmonfiletype: SysmonFileType, ifilter: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Relog)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrfilename), esysmonfiletype, ifilter).ok() } pub unsafe fn ClearData(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ClearData)(::windows::core::Interface::as_raw(self)).ok() @@ -6736,13 +5964,8 @@ impl ISystemMonitor2 { pub unsafe fn BatchingLock(&self, flock: i16, ebatchreason: SysmonBatchReason) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).BatchingLock)(::windows::core::Interface::as_raw(self), flock, ebatchreason).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LoadSettings<'a, P0>(&self, bstrsettingfilename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).LoadSettings)(::windows::core::Interface::as_raw(self), bstrsettingfilename.into().abi()).ok() + pub unsafe fn LoadSettings(&self, bstrsettingfilename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).LoadSettings)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsettingfilename)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -6810,24 +6033,15 @@ pub struct ISystemMonitor2_Vtbl { pub SetDataPointCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, inewcount: i32) -> ::windows::core::HRESULT, pub DataPointCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pidatapointcount: *mut i32) -> ::windows::core::HRESULT, pub ScaleToFit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bselectedcountersonly: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SaveAs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop, esysmonfiletype: SysmonFileType) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SaveAs: usize, - #[cfg(feature = "Win32_Foundation")] - pub Relog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop, esysmonfiletype: SysmonFileType, ifilter: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Relog: usize, + pub SaveAs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, esysmonfiletype: SysmonFileType) -> ::windows::core::HRESULT, + pub Relog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, esysmonfiletype: SysmonFileType, ifilter: i32) -> ::windows::core::HRESULT, pub ClearData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub LogSourceStartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdate: *mut f64) -> ::windows::core::HRESULT, pub LogSourceStopTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdate: *mut f64) -> ::windows::core::HRESULT, pub SetLogViewRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, starttime: f64, stoptime: f64) -> ::windows::core::HRESULT, pub GetLogViewRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, starttime: *mut f64, stoptime: *mut f64) -> ::windows::core::HRESULT, pub BatchingLock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flock: i16, ebatchreason: SysmonBatchReason) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub LoadSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsettingfilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LoadSettings: usize, + pub LoadSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsettingfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Performance\"`*"] #[repr(transparent)] @@ -6918,19 +6132,12 @@ impl ITraceDataCollector { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.DataCollectorType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FileName(&self) -> ::windows::core::Result { + pub unsafe fn FileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.FileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFileName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetFileName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetFileName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } pub unsafe fn FileNameFormat(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6939,33 +6146,19 @@ impl ITraceDataCollector { pub unsafe fn SetFileNameFormat(&self, format: AutoPathFormat) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetFileNameFormat)(::windows::core::Interface::as_raw(self), format).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FileNameFormatPattern(&self) -> ::windows::core::Result { + pub unsafe fn FileNameFormatPattern(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FileNameFormatPattern)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.FileNameFormatPattern)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFileNameFormatPattern<'a, P0>(&self, pattern: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetFileNameFormatPattern)(::windows::core::Interface::as_raw(self), pattern.into().abi()).ok() + pub unsafe fn SetFileNameFormatPattern(&self, pattern: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetFileNameFormatPattern)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pattern)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LatestOutputLocation(&self) -> ::windows::core::Result { + pub unsafe fn LatestOutputLocation(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.LatestOutputLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.LatestOutputLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLatestOutputLocation<'a, P0>(&self, path: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetLatestOutputLocation)(::windows::core::Interface::as_raw(self), path.into().abi()).ok() + pub unsafe fn SetLatestOutputLocation(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetLatestOutputLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path)).ok() } pub unsafe fn LogAppend(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6988,25 +6181,16 @@ impl ITraceDataCollector { pub unsafe fn SetLogOverwrite(&self, overwrite: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetLogOverwrite)(::windows::core::Interface::as_raw(self), overwrite).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OutputLocation(&self) -> ::windows::core::Result { + pub unsafe fn OutputLocation(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.OutputLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.OutputLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Index(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7015,26 +6199,19 @@ impl ITraceDataCollector { pub unsafe fn SetIndex(&self, index: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetIndex)(::windows::core::Interface::as_raw(self), index).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Xml(&self) -> ::windows::core::Result { + pub unsafe fn Xml(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Xml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Xml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn SetXml<'a, P0>(&self, xml: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn SetXml(&self, xml: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.SetXml)(::windows::core::Interface::as_raw(self), xml.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.SetXml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(xml), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateOutputLocation(&self, latest: i16) -> ::windows::core::Result { + pub unsafe fn CreateOutputLocation(&self, latest: i16) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CreateOutputLocation)(::windows::core::Interface::as_raw(self), latest, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CreateOutputLocation)(::windows::core::Interface::as_raw(self), latest, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn BufferSize(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7152,19 +6329,12 @@ impl ITraceDataCollector { pub unsafe fn SetSessionId(&self, id: u64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetSessionId)(::windows::core::Interface::as_raw(self), id).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SessionName(&self) -> ::windows::core::Result { + pub unsafe fn SessionName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SessionName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SessionName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSessionName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSessionName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetSessionName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSessionName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } pub unsafe fn SessionThreadId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7304,14 +6474,8 @@ pub struct ITraceDataCollector_Vtbl { pub SetRealTimeBuffersLost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, buffers: u32) -> ::windows::core::HRESULT, pub SessionId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: *mut u64) -> ::windows::core::HRESULT, pub SetSessionId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: u64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SessionName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SessionName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSessionName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSessionName: usize, + pub SessionName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSessionName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SessionThreadId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tid: *mut u32) -> ::windows::core::HRESULT, pub SetSessionThreadId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tid: u32) -> ::windows::core::HRESULT, pub StreamMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mode: *mut StreamMode) -> ::windows::core::HRESULT, @@ -7327,19 +6491,12 @@ pub struct ITraceDataCollector_Vtbl { pub struct ITraceDataProvider(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ITraceDataProvider { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisplayName(&self) -> ::windows::core::Result { + pub unsafe fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDisplayName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDisplayName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetDisplayName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } pub unsafe fn Guid(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7397,14 +6554,8 @@ impl ITraceDataProvider { pub unsafe fn SetFilterData(&self, pdata: &super::Com::SAFEARRAY) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetFilterData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdata)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Query<'a, P0, P1>(&self, bstrname: P0, bstrserver: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Query)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), bstrserver.into().abi()).ok() + pub unsafe fn Query(&self, bstrname: &::windows::core::BSTR, bstrserver: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Query)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute_copy(bstrserver)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7414,19 +6565,12 @@ impl ITraceDataProvider { { (::windows::core::Interface::vtable(self).Resolve)(::windows::core::Interface::as_raw(self), pfrom.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSecurity<'a, P0>(&self, sddl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSecurity)(::windows::core::Interface::as_raw(self), sddl.into().abi()).ok() + pub unsafe fn SetSecurity(&self, sddl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSecurity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(sddl)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetSecurity(&self, securityinfo: u32) -> ::windows::core::Result { + pub unsafe fn GetSecurity(&self, securityinfo: u32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetSecurity)(::windows::core::Interface::as_raw(self), securityinfo, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetSecurity)(::windows::core::Interface::as_raw(self), securityinfo, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7501,14 +6645,8 @@ unsafe impl ::windows::core::Interface for ITraceDataProvider { #[doc(hidden)] pub struct ITraceDataProvider_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DisplayName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDisplayName: usize, + pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Guid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, pub SetGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: ::windows::core::GUID) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] @@ -7539,22 +6677,13 @@ pub struct ITraceDataProvider_Vtbl { pub SetFilterData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdata: *const super::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] SetFilterData: usize, - #[cfg(feature = "Win32_Foundation")] - pub Query: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, bstrserver: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Query: usize, + pub Query: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrserver: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Resolve: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfrom: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Resolve: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSecurity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sddl: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSecurity: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetSecurity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, securityinfo: u32, sddl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetSecurity: usize, + pub SetSecurity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sddl: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetSecurity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, securityinfo: u32, sddl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub GetRegisteredProcesses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, processes: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -7616,21 +6745,11 @@ impl ITraceDataProviderCollection { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CreateTraceDataProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetTraceDataProviders<'a, P0>(&self, server: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetTraceDataProviders)(::windows::core::Interface::as_raw(self), server.into().abi()).ok() + pub unsafe fn GetTraceDataProviders(&self, server: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetTraceDataProviders)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(server)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetTraceDataProvidersByProcess<'a, P0>(&self, server: P0, pid: u32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetTraceDataProvidersByProcess)(::windows::core::Interface::as_raw(self), server.into().abi(), pid).ok() + pub unsafe fn GetTraceDataProvidersByProcess(&self, server: &::windows::core::BSTR, pid: u32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetTraceDataProvidersByProcess)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(server), pid).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -7722,14 +6841,8 @@ pub struct ITraceDataProviderCollection_Vtbl { pub CreateTraceDataProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, provider: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] CreateTraceDataProvider: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetTraceDataProviders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, server: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetTraceDataProviders: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetTraceDataProvidersByProcess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, server: ::core::mem::ManuallyDrop, pid: u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetTraceDataProvidersByProcess: usize, + pub GetTraceDataProviders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, server: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetTraceDataProvidersByProcess: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, server: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pid: u32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Performance\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7754,19 +6867,12 @@ impl IValueMap { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self)._NewEnum)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, description: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), description.into().abi()).ok() + pub unsafe fn SetDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(description)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -7895,14 +7001,8 @@ pub struct IValueMap_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_Item: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDescription: usize, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -7937,19 +7037,12 @@ pub struct IValueMap_Vtbl { pub struct IValueMapItem(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IValueMapItem { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, description: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), description.into().abi()).ok() + pub unsafe fn SetDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(description)).ok() } pub unsafe fn Enabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7958,19 +7051,12 @@ impl IValueMapItem { pub unsafe fn SetEnabled(&self, enabled: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetEnabled)(::windows::core::Interface::as_raw(self), enabled).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Key(&self) -> ::windows::core::Result { + pub unsafe fn Key(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Key)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Key)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetKey<'a, P0>(&self, key: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetKey)(::windows::core::Interface::as_raw(self), key.into().abi()).ok() + pub unsafe fn SetKey(&self, key: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(key)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -8060,24 +7146,12 @@ unsafe impl ::windows::core::Interface for IValueMapItem { #[doc(hidden)] pub struct IValueMapItem_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDescription: usize, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Enabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enabled: *mut i16) -> ::windows::core::HRESULT, pub SetEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enabled: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Key: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, key: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Key: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, key: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetKey: usize, + pub Key: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, key: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, key: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -8125,11 +7199,9 @@ impl _ICounterItemUnion { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ScaleFactor)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Path(&self) -> ::windows::core::Result { + pub unsafe fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetValue(&self, value: &mut f64, status: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(value), ::core::mem::transmute(status)).ok() @@ -8206,10 +7278,7 @@ pub struct _ICounterItemUnion_Vtbl { pub LineStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pivalue: *mut i32) -> ::windows::core::HRESULT, pub SetScaleFactor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iscale: i32) -> ::windows::core::HRESULT, pub ScaleFactor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pivalue: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Path: usize, + pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstrvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut f64, status: *mut i32) -> ::windows::core::HRESULT, pub GetStatistics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, max: *mut f64, min: *mut f64, avg: *mut f64, status: *mut i32) -> ::windows::core::HRESULT, pub SetSelected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstate: i16) -> ::windows::core::HRESULT, @@ -8343,33 +7412,19 @@ impl _ISystemMonitorUnion { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ManualUpdate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetGraphTitle<'a, P0>(&self, bstitle: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetGraphTitle)(::windows::core::Interface::as_raw(self), bstitle.into().abi()).ok() + pub unsafe fn SetGraphTitle(&self, bstitle: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetGraphTitle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstitle)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GraphTitle(&self) -> ::windows::core::Result { + pub unsafe fn GraphTitle(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GraphTitle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GraphTitle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetYAxisLabel<'a, P0>(&self, bstitle: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetYAxisLabel)(::windows::core::Interface::as_raw(self), bstitle.into().abi()).ok() + pub unsafe fn SetYAxisLabel(&self, bstitle: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetYAxisLabel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstitle)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn YAxisLabel(&self) -> ::windows::core::Result { + pub unsafe fn YAxisLabel(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).YAxisLabel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).YAxisLabel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CollectSample(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).CollectSample)(::windows::core::Interface::as_raw(self)).ok() @@ -8387,14 +7442,9 @@ impl _ISystemMonitorUnion { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Counter)(::windows::core::Interface::as_raw(self), iindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddCounter<'a, P0>(&self, bspath: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn AddCounter(&self, bspath: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AddCounter)(::windows::core::Interface::as_raw(self), bspath.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AddCounter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bspath), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn DeleteCounter<'a, P0>(&self, pctr: P0) -> ::windows::core::Result<()> where @@ -8409,19 +7459,12 @@ impl _ISystemMonitorUnion { pub unsafe fn SetBackColorCtl(&self, color: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetBackColorCtl)(::windows::core::Interface::as_raw(self), color).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLogFileName<'a, P0>(&self, bsfilename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetLogFileName)(::windows::core::Interface::as_raw(self), bsfilename.into().abi()).ok() + pub unsafe fn SetLogFileName(&self, bsfilename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetLogFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bsfilename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LogFileName(&self) -> ::windows::core::Result { + pub unsafe fn LogFileName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LogFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LogFileName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetLogViewStart(&self, starttime: f64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetLogViewStart)(::windows::core::Interface::as_raw(self), starttime).ok() @@ -8515,33 +7558,19 @@ impl _ISystemMonitorUnion { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).DataSourceType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSqlDsnName<'a, P0>(&self, bssqldsnname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSqlDsnName)(::windows::core::Interface::as_raw(self), bssqldsnname.into().abi()).ok() + pub unsafe fn SetSqlDsnName(&self, bssqldsnname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSqlDsnName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bssqldsnname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SqlDsnName(&self) -> ::windows::core::Result { + pub unsafe fn SqlDsnName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SqlDsnName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SqlDsnName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSqlLogSetName<'a, P0>(&self, bssqllogsetname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSqlLogSetName)(::windows::core::Interface::as_raw(self), bssqllogsetname.into().abi()).ok() + pub unsafe fn SetSqlLogSetName(&self, bssqllogsetname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSqlLogSetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bssqllogsetname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SqlLogSetName(&self) -> ::windows::core::Result { + pub unsafe fn SqlLogSetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SqlLogSetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SqlLogSetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetEnableDigitGrouping(&self, bstate: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetEnableDigitGrouping)(::windows::core::Interface::as_raw(self), bstate).ok() @@ -8581,21 +7610,11 @@ impl _ISystemMonitorUnion { pub unsafe fn ScaleToFit(&self, bselectedcountersonly: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ScaleToFit)(::windows::core::Interface::as_raw(self), bselectedcountersonly).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SaveAs<'a, P0>(&self, bstrfilename: P0, esysmonfiletype: SysmonFileType) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SaveAs)(::windows::core::Interface::as_raw(self), bstrfilename.into().abi(), esysmonfiletype).ok() + pub unsafe fn SaveAs(&self, bstrfilename: &::windows::core::BSTR, esysmonfiletype: SysmonFileType) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SaveAs)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrfilename), esysmonfiletype).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Relog<'a, P0>(&self, bstrfilename: P0, esysmonfiletype: SysmonFileType, ifilter: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Relog)(::windows::core::Interface::as_raw(self), bstrfilename.into().abi(), esysmonfiletype, ifilter).ok() + pub unsafe fn Relog(&self, bstrfilename: &::windows::core::BSTR, esysmonfiletype: SysmonFileType, ifilter: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Relog)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrfilename), esysmonfiletype, ifilter).ok() } pub unsafe fn ClearData(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ClearData)(::windows::core::Interface::as_raw(self)).ok() @@ -8617,13 +7636,8 @@ impl _ISystemMonitorUnion { pub unsafe fn BatchingLock(&self, flock: i16, ebatchreason: SysmonBatchReason) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).BatchingLock)(::windows::core::Interface::as_raw(self), flock, ebatchreason).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LoadSettings<'a, P0>(&self, bstrsettingfilename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).LoadSettings)(::windows::core::Interface::as_raw(self), bstrsettingfilename.into().abi()).ok() + pub unsafe fn LoadSettings(&self, bstrsettingfilename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).LoadSettings)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsettingfilename)).ok() } } impl ::core::convert::From<_ISystemMonitorUnion> for ::windows::core::IUnknown { @@ -8705,42 +7719,21 @@ pub struct _ISystemMonitorUnion_Vtbl { pub DisplayType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pedisplaytype: *mut DisplayTypeConstants) -> ::windows::core::HRESULT, pub SetManualUpdate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstate: i16) -> ::windows::core::HRESULT, pub ManualUpdate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstate: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetGraphTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstitle: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetGraphTitle: usize, - #[cfg(feature = "Win32_Foundation")] - pub GraphTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstitle: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GraphTitle: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetYAxisLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstitle: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetYAxisLabel: usize, - #[cfg(feature = "Win32_Foundation")] - pub YAxisLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstitle: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - YAxisLabel: usize, + pub SetGraphTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstitle: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GraphTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstitle: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetYAxisLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstitle: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub YAxisLabel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstitle: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub CollectSample: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub UpdateGraph: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub BrowseCounters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub DisplayProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Counter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iindex: i32, ppicounter: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub AddCounter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bspath: ::core::mem::ManuallyDrop, ppicounter: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddCounter: usize, + pub AddCounter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bspath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppicounter: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub DeleteCounter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pctr: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub BackColorCtl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcolor: *mut u32) -> ::windows::core::HRESULT, pub SetBackColorCtl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, color: u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetLogFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bsfilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetLogFileName: usize, - #[cfg(feature = "Win32_Foundation")] - pub LogFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bsfilename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LogFileName: usize, + pub SetLogFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bsfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub LogFileName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bsfilename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetLogViewStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, starttime: f64) -> ::windows::core::HRESULT, pub LogViewStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, starttime: *mut f64) -> ::windows::core::HRESULT, pub SetLogViewStop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stoptime: f64) -> ::windows::core::HRESULT, @@ -8770,22 +7763,10 @@ pub struct _ISystemMonitorUnion_Vtbl { LogFiles: usize, pub SetDataSourceType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, edatasourcetype: DataSourceTypeConstants) -> ::windows::core::HRESULT, pub DataSourceType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pedatasourcetype: *mut DataSourceTypeConstants) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetSqlDsnName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bssqldsnname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSqlDsnName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SqlDsnName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bssqldsnname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SqlDsnName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSqlLogSetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bssqllogsetname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSqlLogSetName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SqlLogSetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bssqllogsetname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SqlLogSetName: usize, + pub SetSqlDsnName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bssqldsnname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SqlDsnName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bssqldsnname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSqlLogSetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bssqllogsetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SqlLogSetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bssqllogsetname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetEnableDigitGrouping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstate: i16) -> ::windows::core::HRESULT, pub EnableDigitGrouping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstate: *mut i16) -> ::windows::core::HRESULT, pub SetEnableToolTips: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstate: i16) -> ::windows::core::HRESULT, @@ -8797,24 +7778,15 @@ pub struct _ISystemMonitorUnion_Vtbl { pub SetDataPointCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, inewcount: i32) -> ::windows::core::HRESULT, pub DataPointCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pidatapointcount: *mut i32) -> ::windows::core::HRESULT, pub ScaleToFit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bselectedcountersonly: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SaveAs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop, esysmonfiletype: SysmonFileType) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SaveAs: usize, - #[cfg(feature = "Win32_Foundation")] - pub Relog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop, esysmonfiletype: SysmonFileType, ifilter: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Relog: usize, + pub SaveAs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, esysmonfiletype: SysmonFileType) -> ::windows::core::HRESULT, + pub Relog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, esysmonfiletype: SysmonFileType, ifilter: i32) -> ::windows::core::HRESULT, pub ClearData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub LogSourceStartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdate: *mut f64) -> ::windows::core::HRESULT, pub LogSourceStopTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdate: *mut f64) -> ::windows::core::HRESULT, pub SetLogViewRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, starttime: f64, stoptime: f64) -> ::windows::core::HRESULT, pub GetLogViewRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, starttime: *mut f64, stoptime: *mut f64) -> ::windows::core::HRESULT, pub BatchingLock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flock: i16, ebatchreason: SysmonBatchReason) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub LoadSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsettingfilename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LoadSettings: usize, + pub LoadSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsettingfilename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } pub const AppearPropPage: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe49741e9_93a8_4ab1_8e96_bf4482282e9c); pub const BootTraceSession: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x03837538_098b_11d8_9414_505054503030); diff --git a/crates/libs/windows/src/Windows/Win32/System/RealTimeCommunications/impl.rs b/crates/libs/windows/src/Windows/Win32/System/RealTimeCommunications/impl.rs index c37cbde657..d58a21dea6 100644 --- a/crates/libs/windows/src/Windows/Win32/System/RealTimeCommunications/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/RealTimeCommunications/impl.rs @@ -55,14 +55,11 @@ impl INotificationTransportSync_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IRTCBuddy_Impl: Sized + IRTCPresenceContact_Impl { fn Status(&self) -> ::windows::core::Result; - fn Notes(&self) -> ::windows::core::Result; + fn Notes(&self) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IRTCBuddy {} -#[cfg(feature = "Win32_Foundation")] impl IRTCBuddy_Vtbl { pub const fn new, Impl: IRTCBuddy_Impl, const OFFSET: isize>() -> IRTCBuddy_Vtbl { unsafe extern "system" fn Status, Impl: IRTCBuddy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, penstatus: *mut RTC_PRESENCE_STATUS) -> ::windows::core::HRESULT { @@ -76,7 +73,7 @@ impl IRTCBuddy_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Notes, Impl: IRTCBuddy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrnotes: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Notes, Impl: IRTCBuddy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrnotes: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Notes() { @@ -97,20 +94,20 @@ impl IRTCBuddy_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IRTCBuddy2_Impl: Sized + IRTCPresenceContact_Impl + IRTCBuddy_Impl { fn Profile(&self) -> ::windows::core::Result; fn Refresh(&self) -> ::windows::core::Result<()>; fn EnumerateGroups(&self) -> ::windows::core::Result; fn Groups(&self) -> ::windows::core::Result; - fn get_PresenceProperty(&self, enproperty: RTC_PRESENCE_PROPERTY) -> ::windows::core::Result; + fn get_PresenceProperty(&self, enproperty: RTC_PRESENCE_PROPERTY) -> ::windows::core::Result<::windows::core::BSTR>; fn EnumeratePresenceDevices(&self) -> ::windows::core::Result; fn PresenceDevices(&self) -> ::windows::core::Result; fn SubscriptionType(&self) -> ::windows::core::Result; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IRTCBuddy2 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IRTCBuddy2_Vtbl { pub const fn new, Impl: IRTCBuddy2_Impl, const OFFSET: isize>() -> IRTCBuddy2_Vtbl { unsafe extern "system" fn Profile, Impl: IRTCBuddy2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppprofile: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -151,7 +148,7 @@ impl IRTCBuddy2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_PresenceProperty, Impl: IRTCBuddy2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, enproperty: RTC_PRESENCE_PROPERTY, pbstrproperty: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_PresenceProperty, Impl: IRTCBuddy2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, enproperty: RTC_PRESENCE_PROPERTY, pbstrproperty: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_PresenceProperty(::core::mem::transmute_copy(&enproperty)) { @@ -241,7 +238,7 @@ impl IRTCBuddyEvent_Vtbl { pub trait IRTCBuddyEvent2_Impl: Sized + super::Com::IDispatch_Impl + IRTCBuddyEvent_Impl { fn EventType(&self) -> ::windows::core::Result; fn StatusCode(&self) -> ::windows::core::Result; - fn StatusText(&self) -> ::windows::core::Result; + fn StatusText(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IRTCBuddyEvent2 {} @@ -270,7 +267,7 @@ impl IRTCBuddyEvent2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn StatusText, Impl: IRTCBuddyEvent2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn StatusText, Impl: IRTCBuddyEvent2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.StatusText() { @@ -292,24 +289,24 @@ impl IRTCBuddyEvent2_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IRTCBuddyGroup_Impl: Sized { - fn Name(&self) -> ::windows::core::Result; - fn SetName(&self, bstrgroupname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetName(&self, bstrgroupname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn AddBuddy(&self, pbuddy: &::core::option::Option) -> ::windows::core::Result<()>; fn RemoveBuddy(&self, pbuddy: &::core::option::Option) -> ::windows::core::Result<()>; fn EnumerateBuddies(&self) -> ::windows::core::Result; fn Buddies(&self) -> ::windows::core::Result; - fn Data(&self) -> ::windows::core::Result; - fn SetData(&self, bstrdata: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Data(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetData(&self, bstrdata: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Profile(&self) -> ::windows::core::Result; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IRTCBuddyGroup {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IRTCBuddyGroup_Vtbl { pub const fn new, Impl: IRTCBuddyGroup_Impl, const OFFSET: isize>() -> IRTCBuddyGroup_Vtbl { - unsafe extern "system" fn Name, Impl: IRTCBuddyGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrgroupname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IRTCBuddyGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrgroupname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -320,7 +317,7 @@ impl IRTCBuddyGroup_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetName, Impl: IRTCBuddyGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: IRTCBuddyGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&bstrgroupname)).into() @@ -357,7 +354,7 @@ impl IRTCBuddyGroup_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Data, Impl: IRTCBuddyGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Data, Impl: IRTCBuddyGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Data() { @@ -368,7 +365,7 @@ impl IRTCBuddyGroup_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetData, Impl: IRTCBuddyGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetData, Impl: IRTCBuddyGroup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetData(::core::mem::transmute(&bstrdata)).into() @@ -479,7 +476,7 @@ pub trait IRTCClient_Impl: Sized { fn SetPreferredMediaTypes(&self, lmediatypes: i32, fpersistent: i16) -> ::windows::core::Result<()>; fn PreferredMediaTypes(&self) -> ::windows::core::Result; fn MediaCapabilities(&self) -> ::windows::core::Result; - fn CreateSession(&self, entype: RTC_SESSION_TYPE, bstrlocalphoneuri: &super::super::Foundation::BSTR, pprofile: &::core::option::Option, lflags: i32) -> ::windows::core::Result; + fn CreateSession(&self, entype: RTC_SESSION_TYPE, bstrlocalphoneuri: &::windows::core::BSTR, pprofile: &::core::option::Option, lflags: i32) -> ::windows::core::Result; fn SetListenForIncomingSessions(&self, enlisten: RTC_LISTEN_MODE) -> ::windows::core::Result<()>; fn ListenForIncomingSessions(&self) -> ::windows::core::Result; fn get_NetworkAddresses(&self, ftcp: i16, fexternal: i16) -> ::windows::core::Result; @@ -488,14 +485,14 @@ pub trait IRTCClient_Impl: Sized { fn put_AudioMuted(&self, endevice: RTC_AUDIO_DEVICE, fmuted: i16) -> ::windows::core::Result<()>; fn get_AudioMuted(&self, endevice: RTC_AUDIO_DEVICE) -> ::windows::core::Result; fn get_IVideoWindow(&self, endevice: RTC_VIDEO_DEVICE) -> ::windows::core::Result; - fn put_PreferredAudioDevice(&self, endevice: RTC_AUDIO_DEVICE, bstrdevicename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn get_PreferredAudioDevice(&self, endevice: RTC_AUDIO_DEVICE) -> ::windows::core::Result; + fn put_PreferredAudioDevice(&self, endevice: RTC_AUDIO_DEVICE, bstrdevicename: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn get_PreferredAudioDevice(&self, endevice: RTC_AUDIO_DEVICE) -> ::windows::core::Result<::windows::core::BSTR>; fn put_PreferredVolume(&self, endevice: RTC_AUDIO_DEVICE, lvolume: i32) -> ::windows::core::Result<()>; fn get_PreferredVolume(&self, endevice: RTC_AUDIO_DEVICE) -> ::windows::core::Result; fn SetPreferredAEC(&self, benable: i16) -> ::windows::core::Result<()>; fn PreferredAEC(&self) -> ::windows::core::Result; - fn SetPreferredVideoDevice(&self, bstrdevicename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn PreferredVideoDevice(&self) -> ::windows::core::Result; + fn SetPreferredVideoDevice(&self, bstrdevicename: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn PreferredVideoDevice(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn ActiveMedia(&self) -> ::windows::core::Result; fn SetMaxBitrate(&self, lmaxbitrate: i32) -> ::windows::core::Result<()>; fn MaxBitrate(&self) -> ::windows::core::Result; @@ -505,10 +502,10 @@ pub trait IRTCClient_Impl: Sized { fn StartT120Applet(&self, enapplet: RTC_T120_APPLET) -> ::windows::core::Result<()>; fn StopT120Applets(&self) -> ::windows::core::Result<()>; fn get_IsT120AppletRunning(&self, enapplet: RTC_T120_APPLET) -> ::windows::core::Result; - fn LocalUserURI(&self) -> ::windows::core::Result; - fn SetLocalUserURI(&self, bstruseruri: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn LocalUserName(&self) -> ::windows::core::Result; - fn SetLocalUserName(&self, bstrusername: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn LocalUserURI(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetLocalUserURI(&self, bstruseruri: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn LocalUserName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetLocalUserName(&self, bstrusername: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn PlayRing(&self, entype: RTC_RING_TYPE, bplay: i16) -> ::windows::core::Result<()>; fn SendDTMF(&self, endtmf: RTC_DTMF) -> ::windows::core::Result<()>; fn InvokeTuningWizard(&self, hwndparent: isize) -> ::windows::core::Result<()>; @@ -577,7 +574,7 @@ impl IRTCClient_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateSession, Impl: IRTCClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, entype: RTC_SESSION_TYPE, bstrlocalphoneuri: ::core::mem::ManuallyDrop, pprofile: *mut ::core::ffi::c_void, lflags: i32, ppsession: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateSession, Impl: IRTCClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, entype: RTC_SESSION_TYPE, bstrlocalphoneuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pprofile: *mut ::core::ffi::c_void, lflags: i32, ppsession: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateSession(::core::mem::transmute_copy(&entype), ::core::mem::transmute(&bstrlocalphoneuri), ::core::mem::transmute(&pprofile), ::core::mem::transmute_copy(&lflags)) { @@ -658,12 +655,12 @@ impl IRTCClient_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn put_PreferredAudioDevice, Impl: IRTCClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, endevice: RTC_AUDIO_DEVICE, bstrdevicename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn put_PreferredAudioDevice, Impl: IRTCClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, endevice: RTC_AUDIO_DEVICE, bstrdevicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.put_PreferredAudioDevice(::core::mem::transmute_copy(&endevice), ::core::mem::transmute(&bstrdevicename)).into() } - unsafe extern "system" fn get_PreferredAudioDevice, Impl: IRTCClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, endevice: RTC_AUDIO_DEVICE, pbstrdevicename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_PreferredAudioDevice, Impl: IRTCClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, endevice: RTC_AUDIO_DEVICE, pbstrdevicename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_PreferredAudioDevice(::core::mem::transmute_copy(&endevice)) { @@ -706,12 +703,12 @@ impl IRTCClient_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPreferredVideoDevice, Impl: IRTCClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdevicename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPreferredVideoDevice, Impl: IRTCClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdevicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPreferredVideoDevice(::core::mem::transmute(&bstrdevicename)).into() } - unsafe extern "system" fn PreferredVideoDevice, Impl: IRTCClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdevicename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PreferredVideoDevice, Impl: IRTCClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdevicename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PreferredVideoDevice() { @@ -797,7 +794,7 @@ impl IRTCClient_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn LocalUserURI, Impl: IRTCClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstruseruri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LocalUserURI, Impl: IRTCClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstruseruri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LocalUserURI() { @@ -808,12 +805,12 @@ impl IRTCClient_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetLocalUserURI, Impl: IRTCClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstruseruri: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetLocalUserURI, Impl: IRTCClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstruseruri: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetLocalUserURI(::core::mem::transmute(&bstruseruri)).into() } - unsafe extern "system" fn LocalUserName, Impl: IRTCClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrusername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LocalUserName, Impl: IRTCClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrusername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LocalUserName() { @@ -824,7 +821,7 @@ impl IRTCClient_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetLocalUserName, Impl: IRTCClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetLocalUserName, Impl: IRTCClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetLocalUserName(::core::mem::transmute(&bstrusername)).into() @@ -911,10 +908,10 @@ pub trait IRTCClient2_Impl: Sized + IRTCClient_Impl { fn get_AnswerMode(&self, entype: RTC_SESSION_TYPE) -> ::windows::core::Result; fn InvokeTuningWizardEx(&self, hwndparent: isize, fallowaudio: i16, fallowvideo: i16) -> ::windows::core::Result<()>; fn Version(&self) -> ::windows::core::Result; - fn SetClientName(&self, bstrclientname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetClientCurVer(&self, bstrclientcurver: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetClientName(&self, bstrclientname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetClientCurVer(&self, bstrclientcurver: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn InitializeEx(&self, lflags: i32) -> ::windows::core::Result<()>; - fn CreateSessionWithDescription(&self, bstrcontenttype: &super::super::Foundation::BSTR, bstrsessiondescription: &super::super::Foundation::BSTR, pprofile: &::core::option::Option, lflags: i32) -> ::windows::core::Result; + fn CreateSessionWithDescription(&self, bstrcontenttype: &::windows::core::BSTR, bstrsessiondescription: &::windows::core::BSTR, pprofile: &::core::option::Option, lflags: i32) -> ::windows::core::Result; fn SetSessionDescriptionManager(&self, psessiondescriptionmanager: &::core::option::Option) -> ::windows::core::Result<()>; fn put_PreferredSecurityLevel(&self, ensecuritytype: RTC_SECURITY_TYPE, ensecuritylevel: RTC_SECURITY_LEVEL) -> ::windows::core::Result<()>; fn get_PreferredSecurityLevel(&self, ensecuritytype: RTC_SECURITY_TYPE) -> ::windows::core::Result; @@ -958,12 +955,12 @@ impl IRTCClient2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetClientName, Impl: IRTCClient2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrclientname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetClientName, Impl: IRTCClient2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrclientname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetClientName(::core::mem::transmute(&bstrclientname)).into() } - unsafe extern "system" fn SetClientCurVer, Impl: IRTCClient2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrclientcurver: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetClientCurVer, Impl: IRTCClient2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrclientcurver: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetClientCurVer(::core::mem::transmute(&bstrclientcurver)).into() @@ -973,7 +970,7 @@ impl IRTCClient2_Vtbl { let this = (*this).get_impl(); this.InitializeEx(::core::mem::transmute_copy(&lflags)).into() } - unsafe extern "system" fn CreateSessionWithDescription, Impl: IRTCClient2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcontenttype: ::core::mem::ManuallyDrop, bstrsessiondescription: ::core::mem::ManuallyDrop, pprofile: *mut ::core::ffi::c_void, lflags: i32, ppsession2: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateSessionWithDescription, Impl: IRTCClient2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcontenttype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrsessiondescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pprofile: *mut ::core::ffi::c_void, lflags: i32, ppsession2: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateSessionWithDescription(::core::mem::transmute(&bstrcontenttype), ::core::mem::transmute(&bstrsessiondescription), ::core::mem::transmute(&pprofile), ::core::mem::transmute_copy(&lflags)) { @@ -1084,23 +1081,20 @@ impl IRTCClientEvent_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IRTCClientPortManagement_Impl: Sized { - fn StartListenAddressAndPort(&self, bstrinternallocaladdress: &super::super::Foundation::BSTR, linternallocalport: i32) -> ::windows::core::Result<()>; - fn StopListenAddressAndPort(&self, bstrinternallocaladdress: &super::super::Foundation::BSTR, linternallocalport: i32) -> ::windows::core::Result<()>; + fn StartListenAddressAndPort(&self, bstrinternallocaladdress: &::windows::core::BSTR, linternallocalport: i32) -> ::windows::core::Result<()>; + fn StopListenAddressAndPort(&self, bstrinternallocaladdress: &::windows::core::BSTR, linternallocalport: i32) -> ::windows::core::Result<()>; fn GetPortRange(&self, enporttype: RTC_PORT_TYPE, plminvalue: *mut i32, plmaxvalue: *mut i32) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IRTCClientPortManagement {} -#[cfg(feature = "Win32_Foundation")] impl IRTCClientPortManagement_Vtbl { pub const fn new, Impl: IRTCClientPortManagement_Impl, const OFFSET: isize>() -> IRTCClientPortManagement_Vtbl { - unsafe extern "system" fn StartListenAddressAndPort, Impl: IRTCClientPortManagement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrinternallocaladdress: ::core::mem::ManuallyDrop, linternallocalport: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn StartListenAddressAndPort, Impl: IRTCClientPortManagement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrinternallocaladdress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, linternallocalport: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.StartListenAddressAndPort(::core::mem::transmute(&bstrinternallocaladdress), ::core::mem::transmute_copy(&linternallocalport)).into() } - unsafe extern "system" fn StopListenAddressAndPort, Impl: IRTCClientPortManagement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrinternallocaladdress: ::core::mem::ManuallyDrop, linternallocalport: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn StopListenAddressAndPort, Impl: IRTCClientPortManagement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrinternallocaladdress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, linternallocalport: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.StopListenAddressAndPort(::core::mem::transmute(&bstrinternallocaladdress), ::core::mem::transmute_copy(&linternallocalport)).into() @@ -1128,15 +1122,15 @@ pub trait IRTCClientPresence_Impl: Sized { fn Import(&self, varstorage: &super::Com::VARIANT, freplaceall: i16) -> ::windows::core::Result<()>; fn EnumerateBuddies(&self) -> ::windows::core::Result; fn Buddies(&self) -> ::windows::core::Result; - fn get_Buddy(&self, bstrpresentityuri: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn AddBuddy(&self, bstrpresentityuri: &super::super::Foundation::BSTR, bstrusername: &super::super::Foundation::BSTR, bstrdata: &super::super::Foundation::BSTR, fpersistent: i16, pprofile: &::core::option::Option, lflags: i32) -> ::windows::core::Result; + fn get_Buddy(&self, bstrpresentityuri: &::windows::core::BSTR) -> ::windows::core::Result; + fn AddBuddy(&self, bstrpresentityuri: &::windows::core::BSTR, bstrusername: &::windows::core::BSTR, bstrdata: &::windows::core::BSTR, fpersistent: i16, pprofile: &::core::option::Option, lflags: i32) -> ::windows::core::Result; fn RemoveBuddy(&self, pbuddy: &::core::option::Option) -> ::windows::core::Result<()>; fn EnumerateWatchers(&self) -> ::windows::core::Result; fn Watchers(&self) -> ::windows::core::Result; - fn get_Watcher(&self, bstrpresentityuri: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn AddWatcher(&self, bstrpresentityuri: &super::super::Foundation::BSTR, bstrusername: &super::super::Foundation::BSTR, bstrdata: &super::super::Foundation::BSTR, fblocked: i16, fpersistent: i16) -> ::windows::core::Result; + fn get_Watcher(&self, bstrpresentityuri: &::windows::core::BSTR) -> ::windows::core::Result; + fn AddWatcher(&self, bstrpresentityuri: &::windows::core::BSTR, bstrusername: &::windows::core::BSTR, bstrdata: &::windows::core::BSTR, fblocked: i16, fpersistent: i16) -> ::windows::core::Result; fn RemoveWatcher(&self, pwatcher: &::core::option::Option) -> ::windows::core::Result<()>; - fn SetLocalPresenceInfo(&self, enstatus: RTC_PRESENCE_STATUS, bstrnotes: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetLocalPresenceInfo(&self, enstatus: RTC_PRESENCE_STATUS, bstrnotes: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn OfferWatcherMode(&self) -> ::windows::core::Result; fn SetOfferWatcherMode(&self, enmode: RTC_OFFER_WATCHER_MODE) -> ::windows::core::Result<()>; fn PrivacyMode(&self) -> ::windows::core::Result; @@ -1184,7 +1178,7 @@ impl IRTCClientPresence_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_Buddy, Impl: IRTCClientPresence_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpresentityuri: ::core::mem::ManuallyDrop, ppbuddy: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Buddy, Impl: IRTCClientPresence_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpresentityuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppbuddy: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_Buddy(::core::mem::transmute(&bstrpresentityuri)) { @@ -1195,7 +1189,7 @@ impl IRTCClientPresence_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AddBuddy, Impl: IRTCClientPresence_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpresentityuri: ::core::mem::ManuallyDrop, bstrusername: ::core::mem::ManuallyDrop, bstrdata: ::core::mem::ManuallyDrop, fpersistent: i16, pprofile: *mut ::core::ffi::c_void, lflags: i32, ppbuddy: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddBuddy, Impl: IRTCClientPresence_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpresentityuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fpersistent: i16, pprofile: *mut ::core::ffi::c_void, lflags: i32, ppbuddy: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AddBuddy(::core::mem::transmute(&bstrpresentityuri), ::core::mem::transmute(&bstrusername), ::core::mem::transmute(&bstrdata), ::core::mem::transmute_copy(&fpersistent), ::core::mem::transmute(&pprofile), ::core::mem::transmute_copy(&lflags)) { @@ -1233,7 +1227,7 @@ impl IRTCClientPresence_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_Watcher, Impl: IRTCClientPresence_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpresentityuri: ::core::mem::ManuallyDrop, ppwatcher: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Watcher, Impl: IRTCClientPresence_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpresentityuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppwatcher: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_Watcher(::core::mem::transmute(&bstrpresentityuri)) { @@ -1244,7 +1238,7 @@ impl IRTCClientPresence_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AddWatcher, Impl: IRTCClientPresence_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpresentityuri: ::core::mem::ManuallyDrop, bstrusername: ::core::mem::ManuallyDrop, bstrdata: ::core::mem::ManuallyDrop, fblocked: i16, fpersistent: i16, ppwatcher: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddWatcher, Impl: IRTCClientPresence_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpresentityuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fblocked: i16, fpersistent: i16, ppwatcher: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AddWatcher(::core::mem::transmute(&bstrpresentityuri), ::core::mem::transmute(&bstrusername), ::core::mem::transmute(&bstrdata), ::core::mem::transmute_copy(&fblocked), ::core::mem::transmute_copy(&fpersistent)) { @@ -1260,7 +1254,7 @@ impl IRTCClientPresence_Vtbl { let this = (*this).get_impl(); this.RemoveWatcher(::core::mem::transmute(&pwatcher)).into() } - unsafe extern "system" fn SetLocalPresenceInfo, Impl: IRTCClientPresence_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, enstatus: RTC_PRESENCE_STATUS, bstrnotes: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetLocalPresenceInfo, Impl: IRTCClientPresence_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, enstatus: RTC_PRESENCE_STATUS, bstrnotes: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetLocalPresenceInfo(::core::mem::transmute_copy(&enstatus), ::core::mem::transmute(&bstrnotes)).into() @@ -1327,19 +1321,19 @@ impl IRTCClientPresence_Vtbl { pub trait IRTCClientPresence2_Impl: Sized + IRTCClientPresence_Impl { fn EnablePresenceEx(&self, pprofile: &::core::option::Option, varstorage: &super::Com::VARIANT, lflags: i32) -> ::windows::core::Result<()>; fn DisablePresence(&self) -> ::windows::core::Result<()>; - fn AddGroup(&self, bstrgroupname: &super::super::Foundation::BSTR, bstrdata: &super::super::Foundation::BSTR, pprofile: &::core::option::Option, lflags: i32) -> ::windows::core::Result; + fn AddGroup(&self, bstrgroupname: &::windows::core::BSTR, bstrdata: &::windows::core::BSTR, pprofile: &::core::option::Option, lflags: i32) -> ::windows::core::Result; fn RemoveGroup(&self, pgroup: &::core::option::Option) -> ::windows::core::Result<()>; fn EnumerateGroups(&self) -> ::windows::core::Result; fn Groups(&self) -> ::windows::core::Result; - fn get_Group(&self, bstrgroupname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn AddWatcherEx(&self, bstrpresentityuri: &super::super::Foundation::BSTR, bstrusername: &super::super::Foundation::BSTR, bstrdata: &super::super::Foundation::BSTR, enstate: RTC_WATCHER_STATE, fpersistent: i16, enscope: RTC_ACE_SCOPE, pprofile: &::core::option::Option, lflags: i32) -> ::windows::core::Result; - fn get_WatcherEx(&self, enmode: RTC_WATCHER_MATCH_MODE, bstrpresentityuri: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn put_PresenceProperty(&self, enproperty: RTC_PRESENCE_PROPERTY, bstrproperty: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn get_PresenceProperty(&self, enproperty: RTC_PRESENCE_PROPERTY) -> ::windows::core::Result; - fn SetPresenceData(&self, bstrnamespace: &super::super::Foundation::BSTR, bstrdata: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetPresenceData(&self, pbstrnamespace: *mut super::super::Foundation::BSTR, pbstrdata: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetLocalPresenceInfo(&self, penstatus: *mut RTC_PRESENCE_STATUS, pbstrnotes: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn AddBuddyEx(&self, bstrpresentityuri: &super::super::Foundation::BSTR, bstrusername: &super::super::Foundation::BSTR, bstrdata: &super::super::Foundation::BSTR, fpersistent: i16, ensubscriptiontype: RTC_BUDDY_SUBSCRIPTION_TYPE, pprofile: &::core::option::Option, lflags: i32) -> ::windows::core::Result; + fn get_Group(&self, bstrgroupname: &::windows::core::BSTR) -> ::windows::core::Result; + fn AddWatcherEx(&self, bstrpresentityuri: &::windows::core::BSTR, bstrusername: &::windows::core::BSTR, bstrdata: &::windows::core::BSTR, enstate: RTC_WATCHER_STATE, fpersistent: i16, enscope: RTC_ACE_SCOPE, pprofile: &::core::option::Option, lflags: i32) -> ::windows::core::Result; + fn get_WatcherEx(&self, enmode: RTC_WATCHER_MATCH_MODE, bstrpresentityuri: &::windows::core::BSTR) -> ::windows::core::Result; + fn put_PresenceProperty(&self, enproperty: RTC_PRESENCE_PROPERTY, bstrproperty: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn get_PresenceProperty(&self, enproperty: RTC_PRESENCE_PROPERTY) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetPresenceData(&self, bstrnamespace: &::windows::core::BSTR, bstrdata: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetPresenceData(&self, pbstrnamespace: *mut ::windows::core::BSTR, pbstrdata: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetLocalPresenceInfo(&self, penstatus: *mut RTC_PRESENCE_STATUS, pbstrnotes: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn AddBuddyEx(&self, bstrpresentityuri: &::windows::core::BSTR, bstrusername: &::windows::core::BSTR, bstrdata: &::windows::core::BSTR, fpersistent: i16, ensubscriptiontype: RTC_BUDDY_SUBSCRIPTION_TYPE, pprofile: &::core::option::Option, lflags: i32) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IRTCClientPresence2 {} @@ -1356,7 +1350,7 @@ impl IRTCClientPresence2_Vtbl { let this = (*this).get_impl(); this.DisablePresence().into() } - unsafe extern "system" fn AddGroup, Impl: IRTCClientPresence2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop, bstrdata: ::core::mem::ManuallyDrop, pprofile: *mut ::core::ffi::c_void, lflags: i32, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddGroup, Impl: IRTCClientPresence2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pprofile: *mut ::core::ffi::c_void, lflags: i32, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AddGroup(::core::mem::transmute(&bstrgroupname), ::core::mem::transmute(&bstrdata), ::core::mem::transmute(&pprofile), ::core::mem::transmute_copy(&lflags)) { @@ -1394,7 +1388,7 @@ impl IRTCClientPresence2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_Group, Impl: IRTCClientPresence2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Group, Impl: IRTCClientPresence2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_Group(::core::mem::transmute(&bstrgroupname)) { @@ -1405,7 +1399,7 @@ impl IRTCClientPresence2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AddWatcherEx, Impl: IRTCClientPresence2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpresentityuri: ::core::mem::ManuallyDrop, bstrusername: ::core::mem::ManuallyDrop, bstrdata: ::core::mem::ManuallyDrop, enstate: RTC_WATCHER_STATE, fpersistent: i16, enscope: RTC_ACE_SCOPE, pprofile: *mut ::core::ffi::c_void, lflags: i32, ppwatcher: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddWatcherEx, Impl: IRTCClientPresence2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpresentityuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>, enstate: RTC_WATCHER_STATE, fpersistent: i16, enscope: RTC_ACE_SCOPE, pprofile: *mut ::core::ffi::c_void, lflags: i32, ppwatcher: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AddWatcherEx(::core::mem::transmute(&bstrpresentityuri), ::core::mem::transmute(&bstrusername), ::core::mem::transmute(&bstrdata), ::core::mem::transmute_copy(&enstate), ::core::mem::transmute_copy(&fpersistent), ::core::mem::transmute_copy(&enscope), ::core::mem::transmute(&pprofile), ::core::mem::transmute_copy(&lflags)) { @@ -1416,7 +1410,7 @@ impl IRTCClientPresence2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_WatcherEx, Impl: IRTCClientPresence2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, enmode: RTC_WATCHER_MATCH_MODE, bstrpresentityuri: ::core::mem::ManuallyDrop, ppwatcher: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_WatcherEx, Impl: IRTCClientPresence2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, enmode: RTC_WATCHER_MATCH_MODE, bstrpresentityuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppwatcher: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_WatcherEx(::core::mem::transmute_copy(&enmode), ::core::mem::transmute(&bstrpresentityuri)) { @@ -1427,12 +1421,12 @@ impl IRTCClientPresence2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn put_PresenceProperty, Impl: IRTCClientPresence2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, enproperty: RTC_PRESENCE_PROPERTY, bstrproperty: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn put_PresenceProperty, Impl: IRTCClientPresence2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, enproperty: RTC_PRESENCE_PROPERTY, bstrproperty: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.put_PresenceProperty(::core::mem::transmute_copy(&enproperty), ::core::mem::transmute(&bstrproperty)).into() } - unsafe extern "system" fn get_PresenceProperty, Impl: IRTCClientPresence2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, enproperty: RTC_PRESENCE_PROPERTY, pbstrproperty: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_PresenceProperty, Impl: IRTCClientPresence2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, enproperty: RTC_PRESENCE_PROPERTY, pbstrproperty: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_PresenceProperty(::core::mem::transmute_copy(&enproperty)) { @@ -1443,22 +1437,22 @@ impl IRTCClientPresence2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPresenceData, Impl: IRTCClientPresence2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrnamespace: ::core::mem::ManuallyDrop, bstrdata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPresenceData, Impl: IRTCClientPresence2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrnamespace: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPresenceData(::core::mem::transmute(&bstrnamespace), ::core::mem::transmute(&bstrdata)).into() } - unsafe extern "system" fn GetPresenceData, Impl: IRTCClientPresence2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrnamespace: *mut super::super::Foundation::BSTR, pbstrdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPresenceData, Impl: IRTCClientPresence2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrnamespace: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetPresenceData(::core::mem::transmute_copy(&pbstrnamespace), ::core::mem::transmute_copy(&pbstrdata)).into() } - unsafe extern "system" fn GetLocalPresenceInfo, Impl: IRTCClientPresence2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, penstatus: *mut RTC_PRESENCE_STATUS, pbstrnotes: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetLocalPresenceInfo, Impl: IRTCClientPresence2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, penstatus: *mut RTC_PRESENCE_STATUS, pbstrnotes: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetLocalPresenceInfo(::core::mem::transmute_copy(&penstatus), ::core::mem::transmute_copy(&pbstrnotes)).into() } - unsafe extern "system" fn AddBuddyEx, Impl: IRTCClientPresence2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpresentityuri: ::core::mem::ManuallyDrop, bstrusername: ::core::mem::ManuallyDrop, bstrdata: ::core::mem::ManuallyDrop, fpersistent: i16, ensubscriptiontype: RTC_BUDDY_SUBSCRIPTION_TYPE, pprofile: *mut ::core::ffi::c_void, lflags: i32, ppbuddy: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddBuddyEx, Impl: IRTCClientPresence2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpresentityuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fpersistent: i16, ensubscriptiontype: RTC_BUDDY_SUBSCRIPTION_TYPE, pprofile: *mut ::core::ffi::c_void, lflags: i32, ppbuddy: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AddBuddyEx(::core::mem::transmute(&bstrpresentityuri), ::core::mem::transmute(&bstrusername), ::core::mem::transmute(&bstrdata), ::core::mem::transmute_copy(&fpersistent), ::core::mem::transmute_copy(&ensubscriptiontype), ::core::mem::transmute(&pprofile), ::core::mem::transmute_copy(&lflags)) { @@ -1492,22 +1486,22 @@ impl IRTCClientPresence2_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IRTCClientProvisioning_Impl: Sized { - fn CreateProfile(&self, bstrprofilexml: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn CreateProfile(&self, bstrprofilexml: &::windows::core::BSTR) -> ::windows::core::Result; fn EnableProfile(&self, pprofile: &::core::option::Option, lregisterflags: i32) -> ::windows::core::Result<()>; fn DisableProfile(&self, pprofile: &::core::option::Option) -> ::windows::core::Result<()>; fn EnumerateProfiles(&self) -> ::windows::core::Result; fn Profiles(&self) -> ::windows::core::Result; - fn GetProfile(&self, bstruseraccount: &super::super::Foundation::BSTR, bstruserpassword: &super::super::Foundation::BSTR, bstruseruri: &super::super::Foundation::BSTR, bstrserver: &super::super::Foundation::BSTR, ltransport: i32, lcookie: isize) -> ::windows::core::Result<()>; + fn GetProfile(&self, bstruseraccount: &::windows::core::BSTR, bstruserpassword: &::windows::core::BSTR, bstruseruri: &::windows::core::BSTR, bstrserver: &::windows::core::BSTR, ltransport: i32, lcookie: isize) -> ::windows::core::Result<()>; fn SessionCapabilities(&self) -> ::windows::core::Result; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IRTCClientProvisioning {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IRTCClientProvisioning_Vtbl { pub const fn new, Impl: IRTCClientProvisioning_Impl, const OFFSET: isize>() -> IRTCClientProvisioning_Vtbl { - unsafe extern "system" fn CreateProfile, Impl: IRTCClientProvisioning_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprofilexml: ::core::mem::ManuallyDrop, ppprofile: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateProfile, Impl: IRTCClientProvisioning_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprofilexml: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppprofile: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateProfile(::core::mem::transmute(&bstrprofilexml)) { @@ -1550,7 +1544,7 @@ impl IRTCClientProvisioning_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetProfile, Impl: IRTCClientProvisioning_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstruseraccount: ::core::mem::ManuallyDrop, bstruserpassword: ::core::mem::ManuallyDrop, bstruseruri: ::core::mem::ManuallyDrop, bstrserver: ::core::mem::ManuallyDrop, ltransport: i32, lcookie: isize) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetProfile, Impl: IRTCClientProvisioning_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstruseraccount: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstruserpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstruseruri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrserver: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ltransport: i32, lcookie: isize) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetProfile(::core::mem::transmute(&bstruseraccount), ::core::mem::transmute(&bstruserpassword), ::core::mem::transmute(&bstruseruri), ::core::mem::transmute(&bstrserver), ::core::mem::transmute_copy(<ransport), ::core::mem::transmute_copy(&lcookie)).into() @@ -1581,13 +1575,13 @@ impl IRTCClientProvisioning_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IRTCClientProvisioning2_Impl: Sized + IRTCClientProvisioning_Impl { fn EnableProfileEx(&self, pprofile: &::core::option::Option, lregisterflags: i32, lroamingflags: i32) -> ::windows::core::Result<()>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IRTCClientProvisioning2 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IRTCClientProvisioning2_Vtbl { pub const fn new, Impl: IRTCClientProvisioning2_Impl, const OFFSET: isize>() -> IRTCClientProvisioning2_Vtbl { unsafe extern "system" fn EnableProfileEx, Impl: IRTCClientProvisioning2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pprofile: *mut ::core::ffi::c_void, lregisterflags: i32, lroamingflags: i32) -> ::windows::core::HRESULT { @@ -2022,8 +2016,8 @@ impl IRTCEventNotification_Vtbl { pub trait IRTCInfoEvent_Impl: Sized + super::Com::IDispatch_Impl { fn Session(&self) -> ::windows::core::Result; fn Participant(&self) -> ::windows::core::Result; - fn Info(&self) -> ::windows::core::Result; - fn InfoHeader(&self) -> ::windows::core::Result; + fn Info(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn InfoHeader(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IRTCInfoEvent {} @@ -2052,7 +2046,7 @@ impl IRTCInfoEvent_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Info, Impl: IRTCInfoEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrinfo: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Info, Impl: IRTCInfoEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrinfo: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Info() { @@ -2063,7 +2057,7 @@ impl IRTCInfoEvent_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn InfoHeader, Impl: IRTCInfoEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrinfoheader: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn InfoHeader, Impl: IRTCInfoEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrinfoheader: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.InfoHeader() { @@ -2309,8 +2303,8 @@ pub trait IRTCMessagingEvent_Impl: Sized + super::Com::IDispatch_Impl { fn Session(&self) -> ::windows::core::Result; fn Participant(&self) -> ::windows::core::Result; fn EventType(&self) -> ::windows::core::Result; - fn Message(&self) -> ::windows::core::Result; - fn MessageHeader(&self) -> ::windows::core::Result; + fn Message(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn MessageHeader(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn UserStatus(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2351,7 +2345,7 @@ impl IRTCMessagingEvent_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Message, Impl: IRTCMessagingEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrmessage: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Message, Impl: IRTCMessagingEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrmessage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Message() { @@ -2362,7 +2356,7 @@ impl IRTCMessagingEvent_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn MessageHeader, Impl: IRTCMessagingEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrmessageheader: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn MessageHeader, Impl: IRTCMessagingEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrmessageheader: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.MessageHeader() { @@ -2398,20 +2392,17 @@ impl IRTCMessagingEvent_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IRTCParticipant_Impl: Sized { - fn UserURI(&self) -> ::windows::core::Result; - fn Name(&self) -> ::windows::core::Result; + fn UserURI(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Removable(&self) -> ::windows::core::Result; fn State(&self) -> ::windows::core::Result; fn Session(&self) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IRTCParticipant {} -#[cfg(feature = "Win32_Foundation")] impl IRTCParticipant_Vtbl { pub const fn new, Impl: IRTCParticipant_Impl, const OFFSET: isize>() -> IRTCParticipant_Vtbl { - unsafe extern "system" fn UserURI, Impl: IRTCParticipant_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstruseruri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UserURI, Impl: IRTCParticipant_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstruseruri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UserURI() { @@ -2422,7 +2413,7 @@ impl IRTCParticipant_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Name, Impl: IRTCParticipant_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IRTCParticipant_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -2534,28 +2525,25 @@ impl IRTCParticipantStateChangeEvent_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IRTCPortManager_Impl: Sized { - fn GetMapping(&self, bstrremoteaddress: &super::super::Foundation::BSTR, enporttype: RTC_PORT_TYPE, pbstrinternallocaladdress: *mut super::super::Foundation::BSTR, plinternallocalport: *mut i32, pbstrexternallocaladdress: *mut super::super::Foundation::BSTR, plexternallocalport: *mut i32) -> ::windows::core::Result<()>; - fn UpdateRemoteAddress(&self, bstrremoteaddress: &super::super::Foundation::BSTR, bstrinternallocaladdress: &super::super::Foundation::BSTR, linternallocalport: i32, bstrexternallocaladdress: &super::super::Foundation::BSTR, lexternallocalport: i32) -> ::windows::core::Result<()>; - fn ReleaseMapping(&self, bstrinternallocaladdress: &super::super::Foundation::BSTR, linternallocalport: i32, bstrexternallocaladdress: &super::super::Foundation::BSTR, lexternallocaladdress: i32) -> ::windows::core::Result<()>; + fn GetMapping(&self, bstrremoteaddress: &::windows::core::BSTR, enporttype: RTC_PORT_TYPE, pbstrinternallocaladdress: *mut ::windows::core::BSTR, plinternallocalport: *mut i32, pbstrexternallocaladdress: *mut ::windows::core::BSTR, plexternallocalport: *mut i32) -> ::windows::core::Result<()>; + fn UpdateRemoteAddress(&self, bstrremoteaddress: &::windows::core::BSTR, bstrinternallocaladdress: &::windows::core::BSTR, linternallocalport: i32, bstrexternallocaladdress: &::windows::core::BSTR, lexternallocalport: i32) -> ::windows::core::Result<()>; + fn ReleaseMapping(&self, bstrinternallocaladdress: &::windows::core::BSTR, linternallocalport: i32, bstrexternallocaladdress: &::windows::core::BSTR, lexternallocaladdress: i32) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IRTCPortManager {} -#[cfg(feature = "Win32_Foundation")] impl IRTCPortManager_Vtbl { pub const fn new, Impl: IRTCPortManager_Impl, const OFFSET: isize>() -> IRTCPortManager_Vtbl { - unsafe extern "system" fn GetMapping, Impl: IRTCPortManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrremoteaddress: ::core::mem::ManuallyDrop, enporttype: RTC_PORT_TYPE, pbstrinternallocaladdress: *mut super::super::Foundation::BSTR, plinternallocalport: *mut i32, pbstrexternallocaladdress: *mut super::super::Foundation::BSTR, plexternallocalport: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetMapping, Impl: IRTCPortManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrremoteaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, enporttype: RTC_PORT_TYPE, pbstrinternallocaladdress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, plinternallocalport: *mut i32, pbstrexternallocaladdress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, plexternallocalport: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetMapping(::core::mem::transmute(&bstrremoteaddress), ::core::mem::transmute_copy(&enporttype), ::core::mem::transmute_copy(&pbstrinternallocaladdress), ::core::mem::transmute_copy(&plinternallocalport), ::core::mem::transmute_copy(&pbstrexternallocaladdress), ::core::mem::transmute_copy(&plexternallocalport)).into() } - unsafe extern "system" fn UpdateRemoteAddress, Impl: IRTCPortManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrremoteaddress: ::core::mem::ManuallyDrop, bstrinternallocaladdress: ::core::mem::ManuallyDrop, linternallocalport: i32, bstrexternallocaladdress: ::core::mem::ManuallyDrop, lexternallocalport: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn UpdateRemoteAddress, Impl: IRTCPortManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrremoteaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrinternallocaladdress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, linternallocalport: i32, bstrexternallocaladdress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lexternallocalport: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.UpdateRemoteAddress(::core::mem::transmute(&bstrremoteaddress), ::core::mem::transmute(&bstrinternallocaladdress), ::core::mem::transmute_copy(&linternallocalport), ::core::mem::transmute(&bstrexternallocaladdress), ::core::mem::transmute_copy(&lexternallocalport)).into() } - unsafe extern "system" fn ReleaseMapping, Impl: IRTCPortManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrinternallocaladdress: ::core::mem::ManuallyDrop, linternallocalport: i32, bstrexternallocaladdress: ::core::mem::ManuallyDrop, lexternallocaladdress: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn ReleaseMapping, Impl: IRTCPortManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrinternallocaladdress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, linternallocalport: i32, bstrexternallocaladdress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lexternallocaladdress: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ReleaseMapping(::core::mem::transmute(&bstrinternallocaladdress), ::core::mem::transmute_copy(&linternallocalport), ::core::mem::transmute(&bstrexternallocaladdress), ::core::mem::transmute_copy(&lexternallocaladdress)).into() @@ -2571,23 +2559,20 @@ impl IRTCPortManager_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IRTCPresenceContact_Impl: Sized { - fn PresentityURI(&self) -> ::windows::core::Result; - fn SetPresentityURI(&self, bstrpresentityuri: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Name(&self) -> ::windows::core::Result; - fn SetName(&self, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Data(&self) -> ::windows::core::Result; - fn SetData(&self, bstrdata: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn PresentityURI(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetPresentityURI(&self, bstrpresentityuri: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Data(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetData(&self, bstrdata: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Persistent(&self) -> ::windows::core::Result; fn SetPersistent(&self, fpersistent: i16) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IRTCPresenceContact {} -#[cfg(feature = "Win32_Foundation")] impl IRTCPresenceContact_Vtbl { pub const fn new, Impl: IRTCPresenceContact_Impl, const OFFSET: isize>() -> IRTCPresenceContact_Vtbl { - unsafe extern "system" fn PresentityURI, Impl: IRTCPresenceContact_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpresentityuri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PresentityURI, Impl: IRTCPresenceContact_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrpresentityuri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PresentityURI() { @@ -2598,12 +2583,12 @@ impl IRTCPresenceContact_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPresentityURI, Impl: IRTCPresenceContact_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpresentityuri: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPresentityURI, Impl: IRTCPresenceContact_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpresentityuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPresentityURI(::core::mem::transmute(&bstrpresentityuri)).into() } - unsafe extern "system" fn Name, Impl: IRTCPresenceContact_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IRTCPresenceContact_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -2614,12 +2599,12 @@ impl IRTCPresenceContact_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetName, Impl: IRTCPresenceContact_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: IRTCPresenceContact_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&bstrname)).into() } - unsafe extern "system" fn Data, Impl: IRTCPresenceContact_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Data, Impl: IRTCPresenceContact_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Data() { @@ -2630,7 +2615,7 @@ impl IRTCPresenceContact_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetData, Impl: IRTCPresenceContact_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetData, Impl: IRTCPresenceContact_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetData(::core::mem::transmute(&bstrdata)).into() @@ -2670,8 +2655,8 @@ impl IRTCPresenceContact_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IRTCPresenceDataEvent_Impl: Sized + super::Com::IDispatch_Impl { fn StatusCode(&self) -> ::windows::core::Result; - fn StatusText(&self) -> ::windows::core::Result; - fn GetPresenceData(&self, pbstrnamespace: *mut super::super::Foundation::BSTR, pbstrdata: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn StatusText(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetPresenceData(&self, pbstrnamespace: *mut ::windows::core::BSTR, pbstrdata: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IRTCPresenceDataEvent {} @@ -2689,7 +2674,7 @@ impl IRTCPresenceDataEvent_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn StatusText, Impl: IRTCPresenceDataEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn StatusText, Impl: IRTCPresenceDataEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.StatusText() { @@ -2700,7 +2685,7 @@ impl IRTCPresenceDataEvent_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetPresenceData, Impl: IRTCPresenceDataEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrnamespace: *mut super::super::Foundation::BSTR, pbstrdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPresenceData, Impl: IRTCPresenceDataEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrnamespace: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetPresenceData(::core::mem::transmute_copy(&pbstrnamespace), ::core::mem::transmute_copy(&pbstrdata)).into() @@ -2716,16 +2701,13 @@ impl IRTCPresenceDataEvent_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IRTCPresenceDevice_Impl: Sized { fn Status(&self) -> ::windows::core::Result; - fn Notes(&self) -> ::windows::core::Result; - fn get_PresenceProperty(&self, enproperty: RTC_PRESENCE_PROPERTY) -> ::windows::core::Result; - fn GetPresenceData(&self, pbstrnamespace: *mut super::super::Foundation::BSTR, pbstrdata: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Notes(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn get_PresenceProperty(&self, enproperty: RTC_PRESENCE_PROPERTY) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetPresenceData(&self, pbstrnamespace: *mut ::windows::core::BSTR, pbstrdata: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IRTCPresenceDevice {} -#[cfg(feature = "Win32_Foundation")] impl IRTCPresenceDevice_Vtbl { pub const fn new, Impl: IRTCPresenceDevice_Impl, const OFFSET: isize>() -> IRTCPresenceDevice_Vtbl { unsafe extern "system" fn Status, Impl: IRTCPresenceDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, penstatus: *mut RTC_PRESENCE_STATUS) -> ::windows::core::HRESULT { @@ -2739,7 +2721,7 @@ impl IRTCPresenceDevice_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Notes, Impl: IRTCPresenceDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrnotes: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Notes, Impl: IRTCPresenceDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrnotes: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Notes() { @@ -2750,7 +2732,7 @@ impl IRTCPresenceDevice_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_PresenceProperty, Impl: IRTCPresenceDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, enproperty: RTC_PRESENCE_PROPERTY, pbstrproperty: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_PresenceProperty, Impl: IRTCPresenceDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, enproperty: RTC_PRESENCE_PROPERTY, pbstrproperty: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_PresenceProperty(::core::mem::transmute_copy(&enproperty)) { @@ -2761,7 +2743,7 @@ impl IRTCPresenceDevice_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetPresenceData, Impl: IRTCPresenceDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrnamespace: *mut super::super::Foundation::BSTR, pbstrdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPresenceData, Impl: IRTCPresenceDevice_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrnamespace: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetPresenceData(::core::mem::transmute_copy(&pbstrnamespace), ::core::mem::transmute_copy(&pbstrdata)).into() @@ -2781,9 +2763,9 @@ impl IRTCPresenceDevice_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IRTCPresencePropertyEvent_Impl: Sized + super::Com::IDispatch_Impl { fn StatusCode(&self) -> ::windows::core::Result; - fn StatusText(&self) -> ::windows::core::Result; + fn StatusText(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn PresenceProperty(&self) -> ::windows::core::Result; - fn Value(&self) -> ::windows::core::Result; + fn Value(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IRTCPresencePropertyEvent {} @@ -2801,7 +2783,7 @@ impl IRTCPresencePropertyEvent_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn StatusText, Impl: IRTCPresencePropertyEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn StatusText, Impl: IRTCPresencePropertyEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.StatusText() { @@ -2823,7 +2805,7 @@ impl IRTCPresencePropertyEvent_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Value, Impl: IRTCPresencePropertyEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Value, Impl: IRTCPresencePropertyEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Value() { @@ -2849,8 +2831,8 @@ impl IRTCPresencePropertyEvent_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IRTCPresenceStatusEvent_Impl: Sized + super::Com::IDispatch_Impl { fn StatusCode(&self) -> ::windows::core::Result; - fn StatusText(&self) -> ::windows::core::Result; - fn GetLocalPresenceInfo(&self, penstatus: *mut RTC_PRESENCE_STATUS, pbstrnotes: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn StatusText(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetLocalPresenceInfo(&self, penstatus: *mut RTC_PRESENCE_STATUS, pbstrnotes: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IRTCPresenceStatusEvent {} @@ -2868,7 +2850,7 @@ impl IRTCPresenceStatusEvent_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn StatusText, Impl: IRTCPresenceStatusEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn StatusText, Impl: IRTCPresenceStatusEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.StatusText() { @@ -2879,7 +2861,7 @@ impl IRTCPresenceStatusEvent_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetLocalPresenceInfo, Impl: IRTCPresenceStatusEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, penstatus: *mut RTC_PRESENCE_STATUS, pbstrnotes: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetLocalPresenceInfo, Impl: IRTCPresenceStatusEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, penstatus: *mut RTC_PRESENCE_STATUS, pbstrnotes: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetLocalPresenceInfo(::core::mem::transmute_copy(&penstatus), ::core::mem::transmute_copy(&pbstrnotes)).into() @@ -2895,33 +2877,30 @@ impl IRTCPresenceStatusEvent_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IRTCProfile_Impl: Sized { - fn Key(&self) -> ::windows::core::Result; - fn Name(&self) -> ::windows::core::Result; - fn XML(&self) -> ::windows::core::Result; - fn ProviderName(&self) -> ::windows::core::Result; - fn get_ProviderURI(&self, enuri: RTC_PROVIDER_URI) -> ::windows::core::Result; - fn ProviderData(&self) -> ::windows::core::Result; - fn ClientName(&self) -> ::windows::core::Result; + fn Key(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn XML(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ProviderName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn get_ProviderURI(&self, enuri: RTC_PROVIDER_URI) -> ::windows::core::Result<::windows::core::BSTR>; + fn ProviderData(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ClientName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn ClientBanner(&self) -> ::windows::core::Result; - fn ClientMinVer(&self) -> ::windows::core::Result; - fn ClientCurVer(&self) -> ::windows::core::Result; - fn ClientUpdateURI(&self) -> ::windows::core::Result; - fn ClientData(&self) -> ::windows::core::Result; - fn UserURI(&self) -> ::windows::core::Result; - fn UserName(&self) -> ::windows::core::Result; - fn UserAccount(&self) -> ::windows::core::Result; - fn SetCredentials(&self, bstruseruri: &super::super::Foundation::BSTR, bstruseraccount: &super::super::Foundation::BSTR, bstrpassword: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ClientMinVer(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ClientCurVer(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ClientUpdateURI(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ClientData(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn UserURI(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn UserName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn UserAccount(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetCredentials(&self, bstruseruri: &::windows::core::BSTR, bstruseraccount: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SessionCapabilities(&self) -> ::windows::core::Result; fn State(&self) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IRTCProfile {} -#[cfg(feature = "Win32_Foundation")] impl IRTCProfile_Vtbl { pub const fn new, Impl: IRTCProfile_Impl, const OFFSET: isize>() -> IRTCProfile_Vtbl { - unsafe extern "system" fn Key, Impl: IRTCProfile_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrkey: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Key, Impl: IRTCProfile_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrkey: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Key() { @@ -2932,7 +2911,7 @@ impl IRTCProfile_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Name, Impl: IRTCProfile_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IRTCProfile_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -2943,7 +2922,7 @@ impl IRTCProfile_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn XML, Impl: IRTCProfile_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrxml: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn XML, Impl: IRTCProfile_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrxml: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.XML() { @@ -2954,7 +2933,7 @@ impl IRTCProfile_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ProviderName, Impl: IRTCProfile_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ProviderName, Impl: IRTCProfile_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ProviderName() { @@ -2965,7 +2944,7 @@ impl IRTCProfile_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_ProviderURI, Impl: IRTCProfile_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, enuri: RTC_PROVIDER_URI, pbstruri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_ProviderURI, Impl: IRTCProfile_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, enuri: RTC_PROVIDER_URI, pbstruri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_ProviderURI(::core::mem::transmute_copy(&enuri)) { @@ -2976,7 +2955,7 @@ impl IRTCProfile_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ProviderData, Impl: IRTCProfile_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ProviderData, Impl: IRTCProfile_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ProviderData() { @@ -2987,7 +2966,7 @@ impl IRTCProfile_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ClientName, Impl: IRTCProfile_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ClientName, Impl: IRTCProfile_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ClientName() { @@ -3009,7 +2988,7 @@ impl IRTCProfile_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ClientMinVer, Impl: IRTCProfile_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrminver: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ClientMinVer, Impl: IRTCProfile_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrminver: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ClientMinVer() { @@ -3020,7 +2999,7 @@ impl IRTCProfile_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ClientCurVer, Impl: IRTCProfile_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcurver: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ClientCurVer, Impl: IRTCProfile_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcurver: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ClientCurVer() { @@ -3031,7 +3010,7 @@ impl IRTCProfile_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ClientUpdateURI, Impl: IRTCProfile_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrupdateuri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ClientUpdateURI, Impl: IRTCProfile_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrupdateuri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ClientUpdateURI() { @@ -3042,7 +3021,7 @@ impl IRTCProfile_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ClientData, Impl: IRTCProfile_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ClientData, Impl: IRTCProfile_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ClientData() { @@ -3053,7 +3032,7 @@ impl IRTCProfile_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn UserURI, Impl: IRTCProfile_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstruseruri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UserURI, Impl: IRTCProfile_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstruseruri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UserURI() { @@ -3064,7 +3043,7 @@ impl IRTCProfile_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn UserName, Impl: IRTCProfile_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrusername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UserName, Impl: IRTCProfile_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrusername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UserName() { @@ -3075,7 +3054,7 @@ impl IRTCProfile_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn UserAccount, Impl: IRTCProfile_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstruseraccount: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UserAccount, Impl: IRTCProfile_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstruseraccount: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UserAccount() { @@ -3086,7 +3065,7 @@ impl IRTCProfile_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetCredentials, Impl: IRTCProfile_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstruseruri: ::core::mem::ManuallyDrop, bstruseraccount: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCredentials, Impl: IRTCProfile_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstruseruri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstruseraccount: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCredentials(::core::mem::transmute(&bstruseruri), ::core::mem::transmute(&bstruseraccount), ::core::mem::transmute(&bstrpassword)).into() @@ -3139,19 +3118,16 @@ impl IRTCProfile_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IRTCProfile2_Impl: Sized + IRTCProfile_Impl { - fn Realm(&self) -> ::windows::core::Result; - fn SetRealm(&self, bstrrealm: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Realm(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetRealm(&self, bstrrealm: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn AllowedAuth(&self) -> ::windows::core::Result; fn SetAllowedAuth(&self, lallowedauth: i32) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IRTCProfile2 {} -#[cfg(feature = "Win32_Foundation")] impl IRTCProfile2_Vtbl { pub const fn new, Impl: IRTCProfile2_Impl, const OFFSET: isize>() -> IRTCProfile2_Vtbl { - unsafe extern "system" fn Realm, Impl: IRTCProfile2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrrealm: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Realm, Impl: IRTCProfile2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrrealm: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Realm() { @@ -3162,7 +3138,7 @@ impl IRTCProfile2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetRealm, Impl: IRTCProfile2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrealm: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetRealm, Impl: IRTCProfile2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrealm: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetRealm(::core::mem::transmute(&bstrrealm)).into() @@ -3279,10 +3255,10 @@ impl IRTCProfileEvent2_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IRTCReInviteEvent_Impl: Sized + super::Com::IDispatch_Impl { fn Session(&self) -> ::windows::core::Result; - fn Accept(&self, bstrcontenttype: &super::super::Foundation::BSTR, bstrsessiondescription: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Accept(&self, bstrcontenttype: &::windows::core::BSTR, bstrsessiondescription: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Reject(&self) -> ::windows::core::Result<()>; fn State(&self) -> ::windows::core::Result; - fn GetRemoteSessionDescription(&self, pbstrcontenttype: *mut super::super::Foundation::BSTR, pbstrsessiondescription: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetRemoteSessionDescription(&self, pbstrcontenttype: *mut ::windows::core::BSTR, pbstrsessiondescription: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IRTCReInviteEvent {} @@ -3300,7 +3276,7 @@ impl IRTCReInviteEvent_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Accept, Impl: IRTCReInviteEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcontenttype: ::core::mem::ManuallyDrop, bstrsessiondescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Accept, Impl: IRTCReInviteEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcontenttype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrsessiondescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Accept(::core::mem::transmute(&bstrcontenttype), ::core::mem::transmute(&bstrsessiondescription)).into() @@ -3321,7 +3297,7 @@ impl IRTCReInviteEvent_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetRemoteSessionDescription, Impl: IRTCReInviteEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcontenttype: *mut super::super::Foundation::BSTR, pbstrsessiondescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetRemoteSessionDescription, Impl: IRTCReInviteEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcontenttype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrsessiondescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetRemoteSessionDescription(::core::mem::transmute_copy(&pbstrcontenttype), ::core::mem::transmute_copy(&pbstrsessiondescription)).into() @@ -3344,7 +3320,7 @@ pub trait IRTCRegistrationStateChangeEvent_Impl: Sized + super::Com::IDispatch_I fn Profile(&self) -> ::windows::core::Result; fn State(&self) -> ::windows::core::Result; fn StatusCode(&self) -> ::windows::core::Result; - fn StatusText(&self) -> ::windows::core::Result; + fn StatusText(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IRTCRegistrationStateChangeEvent {} @@ -3384,7 +3360,7 @@ impl IRTCRegistrationStateChangeEvent_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn StatusText, Impl: IRTCRegistrationStateChangeEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn StatusText, Impl: IRTCRegistrationStateChangeEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.StatusText() { @@ -3412,7 +3388,7 @@ pub trait IRTCRoamingEvent_Impl: Sized + super::Com::IDispatch_Impl { fn EventType(&self) -> ::windows::core::Result; fn Profile(&self) -> ::windows::core::Result; fn StatusCode(&self) -> ::windows::core::Result; - fn StatusText(&self) -> ::windows::core::Result; + fn StatusText(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IRTCRoamingEvent {} @@ -3452,7 +3428,7 @@ impl IRTCRoamingEvent_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn StatusText, Impl: IRTCRoamingEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn StatusText, Impl: IRTCRoamingEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.StatusText() { @@ -3475,7 +3451,7 @@ impl IRTCRoamingEvent_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IRTCSession_Impl: Sized { fn Client(&self) -> ::windows::core::Result; fn State(&self) -> ::windows::core::Result; @@ -3484,23 +3460,23 @@ pub trait IRTCSession_Impl: Sized { fn Participants(&self) -> ::windows::core::Result; fn Answer(&self) -> ::windows::core::Result<()>; fn Terminate(&self, enreason: RTC_TERMINATE_REASON) -> ::windows::core::Result<()>; - fn Redirect(&self, entype: RTC_SESSION_TYPE, bstrlocalphoneuri: &super::super::Foundation::BSTR, pprofile: &::core::option::Option, lflags: i32) -> ::windows::core::Result<()>; - fn AddParticipant(&self, bstraddress: &super::super::Foundation::BSTR, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn Redirect(&self, entype: RTC_SESSION_TYPE, bstrlocalphoneuri: &::windows::core::BSTR, pprofile: &::core::option::Option, lflags: i32) -> ::windows::core::Result<()>; + fn AddParticipant(&self, bstraddress: &::windows::core::BSTR, bstrname: &::windows::core::BSTR) -> ::windows::core::Result; fn RemoveParticipant(&self, pparticipant: &::core::option::Option) -> ::windows::core::Result<()>; fn EnumerateParticipants(&self) -> ::windows::core::Result; fn CanAddParticipants(&self) -> ::windows::core::Result; - fn RedirectedUserURI(&self) -> ::windows::core::Result; - fn RedirectedUserName(&self) -> ::windows::core::Result; + fn RedirectedUserURI(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn RedirectedUserName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn NextRedirectedUser(&self) -> ::windows::core::Result<()>; - fn SendMessage(&self, bstrmessageheader: &super::super::Foundation::BSTR, bstrmessage: &super::super::Foundation::BSTR, lcookie: isize) -> ::windows::core::Result<()>; + fn SendMessage(&self, bstrmessageheader: &::windows::core::BSTR, bstrmessage: &::windows::core::BSTR, lcookie: isize) -> ::windows::core::Result<()>; fn SendMessageStatus(&self, enuserstatus: RTC_MESSAGING_USER_STATUS, lcookie: isize) -> ::windows::core::Result<()>; fn AddStream(&self, lmediatype: i32, lcookie: isize) -> ::windows::core::Result<()>; fn RemoveStream(&self, lmediatype: i32, lcookie: isize) -> ::windows::core::Result<()>; - fn put_EncryptionKey(&self, lmediatype: i32, encryptionkey: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn put_EncryptionKey(&self, lmediatype: i32, encryptionkey: &::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IRTCSession {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IRTCSession_Vtbl { pub const fn new, Impl: IRTCSession_Impl, const OFFSET: isize>() -> IRTCSession_Vtbl { unsafe extern "system" fn Client, Impl: IRTCSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppclient: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -3568,12 +3544,12 @@ impl IRTCSession_Vtbl { let this = (*this).get_impl(); this.Terminate(::core::mem::transmute_copy(&enreason)).into() } - unsafe extern "system" fn Redirect, Impl: IRTCSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, entype: RTC_SESSION_TYPE, bstrlocalphoneuri: ::core::mem::ManuallyDrop, pprofile: *mut ::core::ffi::c_void, lflags: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn Redirect, Impl: IRTCSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, entype: RTC_SESSION_TYPE, bstrlocalphoneuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pprofile: *mut ::core::ffi::c_void, lflags: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Redirect(::core::mem::transmute_copy(&entype), ::core::mem::transmute(&bstrlocalphoneuri), ::core::mem::transmute(&pprofile), ::core::mem::transmute_copy(&lflags)).into() } - unsafe extern "system" fn AddParticipant, Impl: IRTCSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstraddress: ::core::mem::ManuallyDrop, bstrname: ::core::mem::ManuallyDrop, ppparticipant: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddParticipant, Impl: IRTCSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstraddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppparticipant: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AddParticipant(::core::mem::transmute(&bstraddress), ::core::mem::transmute(&bstrname)) { @@ -3611,7 +3587,7 @@ impl IRTCSession_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RedirectedUserURI, Impl: IRTCSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstruseruri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RedirectedUserURI, Impl: IRTCSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstruseruri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RedirectedUserURI() { @@ -3622,7 +3598,7 @@ impl IRTCSession_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RedirectedUserName, Impl: IRTCSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrusername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RedirectedUserName, Impl: IRTCSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrusername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RedirectedUserName() { @@ -3638,7 +3614,7 @@ impl IRTCSession_Vtbl { let this = (*this).get_impl(); this.NextRedirectedUser().into() } - unsafe extern "system" fn SendMessage, Impl: IRTCSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmessageheader: ::core::mem::ManuallyDrop, bstrmessage: ::core::mem::ManuallyDrop, lcookie: isize) -> ::windows::core::HRESULT { + unsafe extern "system" fn SendMessage, Impl: IRTCSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmessageheader: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrmessage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lcookie: isize) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SendMessage(::core::mem::transmute(&bstrmessageheader), ::core::mem::transmute(&bstrmessage), ::core::mem::transmute_copy(&lcookie)).into() @@ -3658,7 +3634,7 @@ impl IRTCSession_Vtbl { let this = (*this).get_impl(); this.RemoveStream(::core::mem::transmute_copy(&lmediatype), ::core::mem::transmute_copy(&lcookie)).into() } - unsafe extern "system" fn put_EncryptionKey, Impl: IRTCSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lmediatype: i32, encryptionkey: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn put_EncryptionKey, Impl: IRTCSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lmediatype: i32, encryptionkey: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.put_EncryptionKey(::core::mem::transmute_copy(&lmediatype), ::core::mem::transmute(&encryptionkey)).into() @@ -3691,21 +3667,21 @@ impl IRTCSession_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IRTCSession2_Impl: Sized + IRTCSession_Impl { - fn SendInfo(&self, bstrinfoheader: &super::super::Foundation::BSTR, bstrinfo: &super::super::Foundation::BSTR, lcookie: isize) -> ::windows::core::Result<()>; + fn SendInfo(&self, bstrinfoheader: &::windows::core::BSTR, bstrinfo: &::windows::core::BSTR, lcookie: isize) -> ::windows::core::Result<()>; fn put_PreferredSecurityLevel(&self, ensecuritytype: RTC_SECURITY_TYPE, ensecuritylevel: RTC_SECURITY_LEVEL) -> ::windows::core::Result<()>; fn get_PreferredSecurityLevel(&self, ensecuritytype: RTC_SECURITY_TYPE) -> ::windows::core::Result; fn IsSecurityEnabled(&self, ensecuritytype: RTC_SECURITY_TYPE) -> ::windows::core::Result; - fn AnswerWithSessionDescription(&self, bstrcontenttype: &super::super::Foundation::BSTR, bstrsessiondescription: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ReInviteWithSessionDescription(&self, bstrcontenttype: &super::super::Foundation::BSTR, bstrsessiondescription: &super::super::Foundation::BSTR, lcookie: isize) -> ::windows::core::Result<()>; + fn AnswerWithSessionDescription(&self, bstrcontenttype: &::windows::core::BSTR, bstrsessiondescription: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ReInviteWithSessionDescription(&self, bstrcontenttype: &::windows::core::BSTR, bstrsessiondescription: &::windows::core::BSTR, lcookie: isize) -> ::windows::core::Result<()>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IRTCSession2 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IRTCSession2_Vtbl { pub const fn new, Impl: IRTCSession2_Impl, const OFFSET: isize>() -> IRTCSession2_Vtbl { - unsafe extern "system" fn SendInfo, Impl: IRTCSession2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrinfoheader: ::core::mem::ManuallyDrop, bstrinfo: ::core::mem::ManuallyDrop, lcookie: isize) -> ::windows::core::HRESULT { + unsafe extern "system" fn SendInfo, Impl: IRTCSession2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrinfoheader: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrinfo: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lcookie: isize) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SendInfo(::core::mem::transmute(&bstrinfoheader), ::core::mem::transmute(&bstrinfo), ::core::mem::transmute_copy(&lcookie)).into() @@ -3737,12 +3713,12 @@ impl IRTCSession2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AnswerWithSessionDescription, Impl: IRTCSession2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcontenttype: ::core::mem::ManuallyDrop, bstrsessiondescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AnswerWithSessionDescription, Impl: IRTCSession2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcontenttype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrsessiondescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AnswerWithSessionDescription(::core::mem::transmute(&bstrcontenttype), ::core::mem::transmute(&bstrsessiondescription)).into() } - unsafe extern "system" fn ReInviteWithSessionDescription, Impl: IRTCSession2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcontenttype: ::core::mem::ManuallyDrop, bstrsessiondescription: ::core::mem::ManuallyDrop, lcookie: isize) -> ::windows::core::HRESULT { + unsafe extern "system" fn ReInviteWithSessionDescription, Impl: IRTCSession2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcontenttype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrsessiondescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lcookie: isize) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ReInviteWithSessionDescription(::core::mem::transmute(&bstrcontenttype), ::core::mem::transmute(&bstrsessiondescription), ::core::mem::transmute_copy(&lcookie)).into() @@ -3761,21 +3737,18 @@ impl IRTCSession2_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IRTCSessionCallControl_Impl: Sized { fn Hold(&self, lcookie: isize) -> ::windows::core::Result<()>; fn UnHold(&self, lcookie: isize) -> ::windows::core::Result<()>; - fn Forward(&self, bstrforwardtouri: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Refer(&self, bstrrefertouri: &super::super::Foundation::BSTR, bstrrefercookie: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetReferredByURI(&self, bstrreferredbyuri: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ReferredByURI(&self) -> ::windows::core::Result; - fn SetReferCookie(&self, bstrrefercookie: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ReferCookie(&self) -> ::windows::core::Result; + fn Forward(&self, bstrforwardtouri: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Refer(&self, bstrrefertouri: &::windows::core::BSTR, bstrrefercookie: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetReferredByURI(&self, bstrreferredbyuri: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ReferredByURI(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetReferCookie(&self, bstrrefercookie: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ReferCookie(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn IsReferred(&self) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IRTCSessionCallControl {} -#[cfg(feature = "Win32_Foundation")] impl IRTCSessionCallControl_Vtbl { pub const fn new, Impl: IRTCSessionCallControl_Impl, const OFFSET: isize>() -> IRTCSessionCallControl_Vtbl { unsafe extern "system" fn Hold, Impl: IRTCSessionCallControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lcookie: isize) -> ::windows::core::HRESULT { @@ -3788,22 +3761,22 @@ impl IRTCSessionCallControl_Vtbl { let this = (*this).get_impl(); this.UnHold(::core::mem::transmute_copy(&lcookie)).into() } - unsafe extern "system" fn Forward, Impl: IRTCSessionCallControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrforwardtouri: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Forward, Impl: IRTCSessionCallControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrforwardtouri: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Forward(::core::mem::transmute(&bstrforwardtouri)).into() } - unsafe extern "system" fn Refer, Impl: IRTCSessionCallControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrefertouri: ::core::mem::ManuallyDrop, bstrrefercookie: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Refer, Impl: IRTCSessionCallControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrefertouri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrrefercookie: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Refer(::core::mem::transmute(&bstrrefertouri), ::core::mem::transmute(&bstrrefercookie)).into() } - unsafe extern "system" fn SetReferredByURI, Impl: IRTCSessionCallControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrreferredbyuri: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetReferredByURI, Impl: IRTCSessionCallControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrreferredbyuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetReferredByURI(::core::mem::transmute(&bstrreferredbyuri)).into() } - unsafe extern "system" fn ReferredByURI, Impl: IRTCSessionCallControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrreferredbyuri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ReferredByURI, Impl: IRTCSessionCallControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrreferredbyuri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ReferredByURI() { @@ -3814,12 +3787,12 @@ impl IRTCSessionCallControl_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetReferCookie, Impl: IRTCSessionCallControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrefercookie: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetReferCookie, Impl: IRTCSessionCallControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrefercookie: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetReferCookie(::core::mem::transmute(&bstrrefercookie)).into() } - unsafe extern "system" fn ReferCookie, Impl: IRTCSessionCallControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrrefercookie: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ReferCookie, Impl: IRTCSessionCallControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrrefercookie: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ReferCookie() { @@ -3858,16 +3831,13 @@ impl IRTCSessionCallControl_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IRTCSessionDescriptionManager_Impl: Sized { - fn EvaluateSessionDescription(&self, bstrcontenttype: &super::super::Foundation::BSTR, bstrsessiondescription: &super::super::Foundation::BSTR, pfapplicationsession: *mut i16) -> ::windows::core::Result<()>; + fn EvaluateSessionDescription(&self, bstrcontenttype: &::windows::core::BSTR, bstrsessiondescription: &::windows::core::BSTR, pfapplicationsession: *mut i16) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IRTCSessionDescriptionManager {} -#[cfg(feature = "Win32_Foundation")] impl IRTCSessionDescriptionManager_Vtbl { pub const fn new, Impl: IRTCSessionDescriptionManager_Impl, const OFFSET: isize>() -> IRTCSessionDescriptionManager_Vtbl { - unsafe extern "system" fn EvaluateSessionDescription, Impl: IRTCSessionDescriptionManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcontenttype: ::core::mem::ManuallyDrop, bstrsessiondescription: ::core::mem::ManuallyDrop, pfapplicationsession: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn EvaluateSessionDescription, Impl: IRTCSessionDescriptionManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcontenttype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrsessiondescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfapplicationsession: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.EvaluateSessionDescription(::core::mem::transmute(&bstrcontenttype), ::core::mem::transmute(&bstrsessiondescription), ::core::mem::transmute_copy(&pfapplicationsession)).into() @@ -3886,7 +3856,7 @@ pub trait IRTCSessionOperationCompleteEvent_Impl: Sized + super::Com::IDispatch_ fn Session(&self) -> ::windows::core::Result; fn Cookie(&self) -> ::windows::core::Result; fn StatusCode(&self) -> ::windows::core::Result; - fn StatusText(&self) -> ::windows::core::Result; + fn StatusText(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IRTCSessionOperationCompleteEvent {} @@ -3926,7 +3896,7 @@ impl IRTCSessionOperationCompleteEvent_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn StatusText, Impl: IRTCSessionOperationCompleteEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn StatusText, Impl: IRTCSessionOperationCompleteEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.StatusText() { @@ -3952,7 +3922,7 @@ impl IRTCSessionOperationCompleteEvent_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IRTCSessionOperationCompleteEvent2_Impl: Sized + super::Com::IDispatch_Impl + IRTCSessionOperationCompleteEvent_Impl { fn Participant(&self) -> ::windows::core::Result; - fn GetRemoteSessionDescription(&self, pbstrcontenttype: *mut super::super::Foundation::BSTR, pbstrsessiondescription: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetRemoteSessionDescription(&self, pbstrcontenttype: *mut ::windows::core::BSTR, pbstrsessiondescription: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IRTCSessionOperationCompleteEvent2 {} @@ -3970,7 +3940,7 @@ impl IRTCSessionOperationCompleteEvent2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetRemoteSessionDescription, Impl: IRTCSessionOperationCompleteEvent2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcontenttype: *mut super::super::Foundation::BSTR, pbstrsessiondescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetRemoteSessionDescription, Impl: IRTCSessionOperationCompleteEvent2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcontenttype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrsessiondescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetRemoteSessionDescription(::core::mem::transmute_copy(&pbstrcontenttype), ::core::mem::transmute_copy(&pbstrsessiondescription)).into() @@ -4007,7 +3977,7 @@ pub trait IRTCSessionReferStatusEvent_Impl: Sized + super::Com::IDispatch_Impl { fn Session(&self) -> ::windows::core::Result; fn ReferStatus(&self) -> ::windows::core::Result; fn StatusCode(&self) -> ::windows::core::Result; - fn StatusText(&self) -> ::windows::core::Result; + fn StatusText(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IRTCSessionReferStatusEvent {} @@ -4047,7 +4017,7 @@ impl IRTCSessionReferStatusEvent_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn StatusText, Impl: IRTCSessionReferStatusEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn StatusText, Impl: IRTCSessionReferStatusEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.StatusText() { @@ -4073,9 +4043,9 @@ impl IRTCSessionReferStatusEvent_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IRTCSessionReferredEvent_Impl: Sized + super::Com::IDispatch_Impl { fn Session(&self) -> ::windows::core::Result; - fn ReferredByURI(&self) -> ::windows::core::Result; - fn ReferToURI(&self) -> ::windows::core::Result; - fn ReferCookie(&self) -> ::windows::core::Result; + fn ReferredByURI(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ReferToURI(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ReferCookie(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Accept(&self) -> ::windows::core::Result<()>; fn Reject(&self) -> ::windows::core::Result<()>; fn SetReferredSessionState(&self, enstate: RTC_SESSION_STATE) -> ::windows::core::Result<()>; @@ -4096,7 +4066,7 @@ impl IRTCSessionReferredEvent_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ReferredByURI, Impl: IRTCSessionReferredEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrreferredbyuri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ReferredByURI, Impl: IRTCSessionReferredEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrreferredbyuri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ReferredByURI() { @@ -4107,7 +4077,7 @@ impl IRTCSessionReferredEvent_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ReferToURI, Impl: IRTCSessionReferredEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrreferouri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ReferToURI, Impl: IRTCSessionReferredEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrreferouri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ReferToURI() { @@ -4118,7 +4088,7 @@ impl IRTCSessionReferredEvent_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ReferCookie, Impl: IRTCSessionReferredEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrrefercookie: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ReferCookie, Impl: IRTCSessionReferredEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrrefercookie: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ReferCookie() { @@ -4164,7 +4134,7 @@ pub trait IRTCSessionStateChangeEvent_Impl: Sized + super::Com::IDispatch_Impl { fn Session(&self) -> ::windows::core::Result; fn State(&self) -> ::windows::core::Result; fn StatusCode(&self) -> ::windows::core::Result; - fn StatusText(&self) -> ::windows::core::Result; + fn StatusText(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IRTCSessionStateChangeEvent {} @@ -4204,7 +4174,7 @@ impl IRTCSessionStateChangeEvent_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn StatusText, Impl: IRTCSessionStateChangeEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn StatusText, Impl: IRTCSessionStateChangeEvent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.StatusText() { @@ -4232,7 +4202,7 @@ pub trait IRTCSessionStateChangeEvent2_Impl: Sized + super::Com::IDispatch_Impl fn MediaTypes(&self) -> ::windows::core::Result; fn get_RemotePreferredSecurityLevel(&self, ensecuritytype: RTC_SECURITY_TYPE) -> ::windows::core::Result; fn IsForked(&self) -> ::windows::core::Result; - fn GetRemoteSessionDescription(&self, pbstrcontenttype: *mut super::super::Foundation::BSTR, pbstrsessiondescription: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetRemoteSessionDescription(&self, pbstrcontenttype: *mut ::windows::core::BSTR, pbstrsessiondescription: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IRTCSessionStateChangeEvent2 {} @@ -4272,7 +4242,7 @@ impl IRTCSessionStateChangeEvent2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetRemoteSessionDescription, Impl: IRTCSessionStateChangeEvent2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcontenttype: *mut super::super::Foundation::BSTR, pbstrsessiondescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetRemoteSessionDescription, Impl: IRTCSessionStateChangeEvent2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcontenttype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrsessiondescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetRemoteSessionDescription(::core::mem::transmute_copy(&pbstrcontenttype), ::core::mem::transmute_copy(&pbstrsessiondescription)).into() @@ -4322,27 +4292,24 @@ impl IRTCUserSearch_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IRTCUserSearchQuery_Impl: Sized { - fn put_SearchTerm(&self, bstrname: &super::super::Foundation::BSTR, bstrvalue: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn get_SearchTerm(&self, bstrname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn SearchTerms(&self) -> ::windows::core::Result; + fn put_SearchTerm(&self, bstrname: &::windows::core::BSTR, bstrvalue: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn get_SearchTerm(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; + fn SearchTerms(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn put_SearchPreference(&self, enpreference: RTC_USER_SEARCH_PREFERENCE, lvalue: i32) -> ::windows::core::Result<()>; fn get_SearchPreference(&self, enpreference: RTC_USER_SEARCH_PREFERENCE) -> ::windows::core::Result; - fn SetSearchDomain(&self, bstrdomain: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SearchDomain(&self) -> ::windows::core::Result; + fn SetSearchDomain(&self, bstrdomain: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SearchDomain(&self) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IRTCUserSearchQuery {} -#[cfg(feature = "Win32_Foundation")] impl IRTCUserSearchQuery_Vtbl { pub const fn new, Impl: IRTCUserSearchQuery_Impl, const OFFSET: isize>() -> IRTCUserSearchQuery_Vtbl { - unsafe extern "system" fn put_SearchTerm, Impl: IRTCUserSearchQuery_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, bstrvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn put_SearchTerm, Impl: IRTCUserSearchQuery_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.put_SearchTerm(::core::mem::transmute(&bstrname), ::core::mem::transmute(&bstrvalue)).into() } - unsafe extern "system" fn get_SearchTerm, Impl: IRTCUserSearchQuery_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, pbstrvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_SearchTerm, Impl: IRTCUserSearchQuery_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_SearchTerm(::core::mem::transmute(&bstrname)) { @@ -4353,7 +4320,7 @@ impl IRTCUserSearchQuery_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SearchTerms, Impl: IRTCUserSearchQuery_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrnames: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SearchTerms, Impl: IRTCUserSearchQuery_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrnames: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SearchTerms() { @@ -4380,12 +4347,12 @@ impl IRTCUserSearchQuery_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSearchDomain, Impl: IRTCUserSearchQuery_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdomain: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSearchDomain, Impl: IRTCUserSearchQuery_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdomain: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSearchDomain(::core::mem::transmute(&bstrdomain)).into() } - unsafe extern "system" fn SearchDomain, Impl: IRTCUserSearchQuery_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdomain: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SearchDomain, Impl: IRTCUserSearchQuery_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdomain: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SearchDomain() { @@ -4411,16 +4378,13 @@ impl IRTCUserSearchQuery_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IRTCUserSearchResult_Impl: Sized { - fn get_Value(&self, encolumn: RTC_USER_SEARCH_COLUMN) -> ::windows::core::Result; + fn get_Value(&self, encolumn: RTC_USER_SEARCH_COLUMN) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IRTCUserSearchResult {} -#[cfg(feature = "Win32_Foundation")] impl IRTCUserSearchResult_Vtbl { pub const fn new, Impl: IRTCUserSearchResult_Impl, const OFFSET: isize>() -> IRTCUserSearchResult_Vtbl { - unsafe extern "system" fn get_Value, Impl: IRTCUserSearchResult_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encolumn: RTC_USER_SEARCH_COLUMN, pbstrvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Value, Impl: IRTCUserSearchResult_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, encolumn: RTC_USER_SEARCH_COLUMN, pbstrvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_Value(::core::mem::transmute_copy(&encolumn)) { @@ -4544,14 +4508,11 @@ impl IRTCUserSearchResultsEvent_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IRTCWatcher_Impl: Sized + IRTCPresenceContact_Impl { fn State(&self) -> ::windows::core::Result; fn SetState(&self, enstate: RTC_WATCHER_STATE) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IRTCWatcher {} -#[cfg(feature = "Win32_Foundation")] impl IRTCWatcher_Vtbl { pub const fn new, Impl: IRTCWatcher_Impl, const OFFSET: isize>() -> IRTCWatcher_Vtbl { unsafe extern "system" fn State, Impl: IRTCWatcher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, penstate: *mut RTC_WATCHER_STATE) -> ::windows::core::HRESULT { @@ -4580,14 +4541,11 @@ impl IRTCWatcher_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IRTCWatcher2_Impl: Sized + IRTCPresenceContact_Impl + IRTCWatcher_Impl { fn Profile(&self) -> ::windows::core::Result; fn Scope(&self) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IRTCWatcher2 {} -#[cfg(feature = "Win32_Foundation")] impl IRTCWatcher2_Vtbl { pub const fn new, Impl: IRTCWatcher2_Impl, const OFFSET: isize>() -> IRTCWatcher2_Vtbl { unsafe extern "system" fn Profile, Impl: IRTCWatcher2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppprofile: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { diff --git a/crates/libs/windows/src/Windows/Win32/System/RealTimeCommunications/mod.rs b/crates/libs/windows/src/Windows/Win32/System/RealTimeCommunications/mod.rs index fa064ab2f0..d1dc4797fb 100644 --- a/crates/libs/windows/src/Windows/Win32/System/RealTimeCommunications/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/RealTimeCommunications/mod.rs @@ -118,47 +118,26 @@ pub struct INotificationTransportSync_Vtbl { #[repr(transparent)] pub struct IRTCBuddy(::windows::core::IUnknown); impl IRTCBuddy { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PresentityURI(&self) -> ::windows::core::Result { + pub unsafe fn PresentityURI(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.PresentityURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.PresentityURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPresentityURI<'a, P0>(&self, bstrpresentityuri: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetPresentityURI)(::windows::core::Interface::as_raw(self), bstrpresentityuri.into().abi()).ok() + pub unsafe fn SetPresentityURI(&self, bstrpresentityuri: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetPresentityURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpresentityuri)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Data(&self) -> ::windows::core::Result { + pub unsafe fn Data(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Data)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Data)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetData<'a, P0>(&self, bstrdata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetData)(::windows::core::Interface::as_raw(self), bstrdata.into().abi()).ok() + pub unsafe fn SetData(&self, bstrdata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdata)).ok() } pub unsafe fn Persistent(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -171,11 +150,9 @@ impl IRTCBuddy { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Status)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Notes(&self) -> ::windows::core::Result { + pub unsafe fn Notes(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Notes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Notes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -233,56 +210,32 @@ unsafe impl ::windows::core::Interface for IRTCBuddy { pub struct IRTCBuddy_Vtbl { pub base__: IRTCPresenceContact_Vtbl, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penstatus: *mut RTC_PRESENCE_STATUS) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Notes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrnotes: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Notes: usize, + pub Notes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrnotes: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RealTimeCommunications\"`*"] #[repr(transparent)] pub struct IRTCBuddy2(::windows::core::IUnknown); impl IRTCBuddy2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PresentityURI(&self) -> ::windows::core::Result { + pub unsafe fn PresentityURI(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.PresentityURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.PresentityURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPresentityURI<'a, P0>(&self, bstrpresentityuri: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetPresentityURI)(::windows::core::Interface::as_raw(self), bstrpresentityuri.into().abi()).ok() + pub unsafe fn SetPresentityURI(&self, bstrpresentityuri: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetPresentityURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpresentityuri)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Data(&self) -> ::windows::core::Result { + pub unsafe fn Data(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Data)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Data)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetData<'a, P0>(&self, bstrdata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetData)(::windows::core::Interface::as_raw(self), bstrdata.into().abi()).ok() + pub unsafe fn SetData(&self, bstrdata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdata)).ok() } pub unsafe fn Persistent(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -295,11 +248,9 @@ impl IRTCBuddy2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Status)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Notes(&self) -> ::windows::core::Result { + pub unsafe fn Notes(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Notes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Notes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Profile(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -318,11 +269,9 @@ impl IRTCBuddy2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Groups)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_PresenceProperty(&self, enproperty: RTC_PRESENCE_PROPERTY) -> ::windows::core::Result { + pub unsafe fn get_PresenceProperty(&self, enproperty: RTC_PRESENCE_PROPERTY) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_PresenceProperty)(::windows::core::Interface::as_raw(self), enproperty, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_PresenceProperty)(::windows::core::Interface::as_raw(self), enproperty, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn EnumeratePresenceDevices(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -415,10 +364,7 @@ pub struct IRTCBuddy2_Vtbl { pub Groups: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Groups: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_PresenceProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enproperty: RTC_PRESENCE_PROPERTY, pbstrproperty: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_PresenceProperty: usize, + pub get_PresenceProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enproperty: RTC_PRESENCE_PROPERTY, pbstrproperty: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub EnumeratePresenceDevices: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenumdevices: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub PresenceDevices: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdevicescollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -523,11 +469,9 @@ impl IRTCBuddyEvent2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).StatusCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StatusText(&self) -> ::windows::core::Result { + pub unsafe fn StatusText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).StatusText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).StatusText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -616,28 +560,18 @@ pub struct IRTCBuddyEvent2_Vtbl { pub base__: IRTCBuddyEvent_Vtbl, pub EventType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, peventtype: *mut RTC_BUDDY_EVENT_TYPE) -> ::windows::core::HRESULT, pub StatusCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plstatuscode: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub StatusText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - StatusText: usize, + pub StatusText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RealTimeCommunications\"`*"] #[repr(transparent)] pub struct IRTCBuddyGroup(::windows::core::IUnknown); impl IRTCBuddyGroup { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, bstrgroupname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), bstrgroupname.into().abi()).ok() + pub unsafe fn SetName(&self, bstrgroupname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrgroupname)).ok() } pub unsafe fn AddBuddy<'a, P0>(&self, pbuddy: P0) -> ::windows::core::Result<()> where @@ -661,19 +595,12 @@ impl IRTCBuddyGroup { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Buddies)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Data(&self) -> ::windows::core::Result { + pub unsafe fn Data(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Data)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Data)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetData<'a, P0>(&self, bstrdata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetData)(::windows::core::Interface::as_raw(self), bstrdata.into().abi()).ok() + pub unsafe fn SetData(&self, bstrdata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdata)).ok() } pub unsafe fn Profile(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -719,14 +646,8 @@ unsafe impl ::windows::core::Interface for IRTCBuddyGroup { #[doc(hidden)] pub struct IRTCBuddyGroup_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrgroupname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrgroupname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub AddBuddy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbuddy: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub RemoveBuddy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbuddy: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub EnumerateBuddies: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -734,14 +655,8 @@ pub struct IRTCBuddyGroup_Vtbl { pub Buddies: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Buddies: usize, - #[cfg(feature = "Win32_Foundation")] - pub Data: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Data: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetData: usize, + pub Data: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Profile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppprofile: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RealTimeCommunications\"`, `\"Win32_System_Com\"`*"] @@ -869,15 +784,12 @@ impl IRTCClient { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).MediaCapabilities)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateSession<'a, P0, P1>(&self, entype: RTC_SESSION_TYPE, bstrlocalphoneuri: P0, pprofile: P1, lflags: i32) -> ::windows::core::Result + pub unsafe fn CreateSession<'a, P0>(&self, entype: RTC_SESSION_TYPE, bstrlocalphoneuri: &::windows::core::BSTR, pprofile: P0, lflags: i32) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IRTCProfile>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IRTCProfile>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateSession)(::windows::core::Interface::as_raw(self), entype, bstrlocalphoneuri.into().abi(), pprofile.into().abi(), lflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateSession)(::windows::core::Interface::as_raw(self), entype, ::core::mem::transmute_copy(bstrlocalphoneuri), pprofile.into().abi(), lflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn SetListenForIncomingSessions(&self, enlisten: RTC_LISTEN_MODE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetListenForIncomingSessions)(::windows::core::Interface::as_raw(self), enlisten).ok() @@ -912,19 +824,12 @@ impl IRTCClient { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).get_IVideoWindow)(::windows::core::Interface::as_raw(self), endevice, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_PreferredAudioDevice<'a, P0>(&self, endevice: RTC_AUDIO_DEVICE, bstrdevicename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).put_PreferredAudioDevice)(::windows::core::Interface::as_raw(self), endevice, bstrdevicename.into().abi()).ok() + pub unsafe fn put_PreferredAudioDevice(&self, endevice: RTC_AUDIO_DEVICE, bstrdevicename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).put_PreferredAudioDevice)(::windows::core::Interface::as_raw(self), endevice, ::core::mem::transmute_copy(bstrdevicename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_PreferredAudioDevice(&self, endevice: RTC_AUDIO_DEVICE) -> ::windows::core::Result { + pub unsafe fn get_PreferredAudioDevice(&self, endevice: RTC_AUDIO_DEVICE) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_PreferredAudioDevice)(::windows::core::Interface::as_raw(self), endevice, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_PreferredAudioDevice)(::windows::core::Interface::as_raw(self), endevice, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn put_PreferredVolume(&self, endevice: RTC_AUDIO_DEVICE, lvolume: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).put_PreferredVolume)(::windows::core::Interface::as_raw(self), endevice, lvolume).ok() @@ -940,19 +845,12 @@ impl IRTCClient { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).PreferredAEC)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPreferredVideoDevice<'a, P0>(&self, bstrdevicename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPreferredVideoDevice)(::windows::core::Interface::as_raw(self), bstrdevicename.into().abi()).ok() + pub unsafe fn SetPreferredVideoDevice(&self, bstrdevicename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPreferredVideoDevice)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdevicename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PreferredVideoDevice(&self) -> ::windows::core::Result { + pub unsafe fn PreferredVideoDevice(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PreferredVideoDevice)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PreferredVideoDevice)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn ActiveMedia(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -986,33 +884,19 @@ impl IRTCClient { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).get_IsT120AppletRunning)(::windows::core::Interface::as_raw(self), enapplet, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LocalUserURI(&self) -> ::windows::core::Result { + pub unsafe fn LocalUserURI(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LocalUserURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LocalUserURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLocalUserURI<'a, P0>(&self, bstruseruri: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetLocalUserURI)(::windows::core::Interface::as_raw(self), bstruseruri.into().abi()).ok() + pub unsafe fn SetLocalUserURI(&self, bstruseruri: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetLocalUserURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstruseruri)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LocalUserName(&self) -> ::windows::core::Result { + pub unsafe fn LocalUserName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LocalUserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LocalUserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLocalUserName<'a, P0>(&self, bstrusername: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetLocalUserName)(::windows::core::Interface::as_raw(self), bstrusername.into().abi()).ok() + pub unsafe fn SetLocalUserName(&self, bstrusername: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetLocalUserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrusername)).ok() } pub unsafe fn PlayRing(&self, entype: RTC_RING_TYPE, bplay: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).PlayRing)(::windows::core::Interface::as_raw(self), entype, bplay).ok() @@ -1075,10 +959,7 @@ pub struct IRTCClient_Vtbl { pub SetPreferredMediaTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lmediatypes: i32, fpersistent: i16) -> ::windows::core::HRESULT, pub PreferredMediaTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plmediatypes: *mut i32) -> ::windows::core::HRESULT, pub MediaCapabilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plmediatypes: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CreateSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, entype: RTC_SESSION_TYPE, bstrlocalphoneuri: ::core::mem::ManuallyDrop, pprofile: *mut ::core::ffi::c_void, lflags: i32, ppsession: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CreateSession: usize, + pub CreateSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, entype: RTC_SESSION_TYPE, bstrlocalphoneuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pprofile: *mut ::core::ffi::c_void, lflags: i32, ppsession: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub SetListenForIncomingSessions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enlisten: RTC_LISTEN_MODE) -> ::windows::core::HRESULT, pub ListenForIncomingSessions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penlisten: *mut RTC_LISTEN_MODE) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -1093,26 +974,14 @@ pub struct IRTCClient_Vtbl { pub get_IVideoWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, endevice: RTC_VIDEO_DEVICE, ppivideowindow: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Media_DirectShow", feature = "Win32_System_Com")))] get_IVideoWindow: usize, - #[cfg(feature = "Win32_Foundation")] - pub put_PreferredAudioDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, endevice: RTC_AUDIO_DEVICE, bstrdevicename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - put_PreferredAudioDevice: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_PreferredAudioDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, endevice: RTC_AUDIO_DEVICE, pbstrdevicename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_PreferredAudioDevice: usize, + pub put_PreferredAudioDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, endevice: RTC_AUDIO_DEVICE, bstrdevicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub get_PreferredAudioDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, endevice: RTC_AUDIO_DEVICE, pbstrdevicename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub put_PreferredVolume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, endevice: RTC_AUDIO_DEVICE, lvolume: i32) -> ::windows::core::HRESULT, pub get_PreferredVolume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, endevice: RTC_AUDIO_DEVICE, plvolume: *mut i32) -> ::windows::core::HRESULT, pub SetPreferredAEC: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, benable: i16) -> ::windows::core::HRESULT, pub PreferredAEC: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbenabled: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetPreferredVideoDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdevicename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPreferredVideoDevice: usize, - #[cfg(feature = "Win32_Foundation")] - pub PreferredVideoDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdevicename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PreferredVideoDevice: usize, + pub SetPreferredVideoDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdevicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub PreferredVideoDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdevicename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ActiveMedia: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plmediatype: *mut i32) -> ::windows::core::HRESULT, pub SetMaxBitrate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lmaxbitrate: i32) -> ::windows::core::HRESULT, pub MaxBitrate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plmaxbitrate: *mut i32) -> ::windows::core::HRESULT, @@ -1122,22 +991,10 @@ pub struct IRTCClient_Vtbl { pub StartT120Applet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enapplet: RTC_T120_APPLET) -> ::windows::core::HRESULT, pub StopT120Applets: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub get_IsT120AppletRunning: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enapplet: RTC_T120_APPLET, pfrunning: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub LocalUserURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstruseruri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LocalUserURI: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetLocalUserURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstruseruri: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetLocalUserURI: usize, - #[cfg(feature = "Win32_Foundation")] - pub LocalUserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrusername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LocalUserName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetLocalUserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetLocalUserName: usize, + pub LocalUserURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstruseruri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetLocalUserURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstruseruri: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub LocalUserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrusername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetLocalUserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub PlayRing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, entype: RTC_RING_TYPE, bplay: i16) -> ::windows::core::HRESULT, pub SendDTMF: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, endtmf: RTC_DTMF) -> ::windows::core::HRESULT, pub InvokeTuningWizard: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: isize) -> ::windows::core::HRESULT, @@ -1174,15 +1031,12 @@ impl IRTCClient2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.MediaCapabilities)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateSession<'a, P0, P1>(&self, entype: RTC_SESSION_TYPE, bstrlocalphoneuri: P0, pprofile: P1, lflags: i32) -> ::windows::core::Result + pub unsafe fn CreateSession<'a, P0>(&self, entype: RTC_SESSION_TYPE, bstrlocalphoneuri: &::windows::core::BSTR, pprofile: P0, lflags: i32) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IRTCProfile>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IRTCProfile>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CreateSession)(::windows::core::Interface::as_raw(self), entype, bstrlocalphoneuri.into().abi(), pprofile.into().abi(), lflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CreateSession)(::windows::core::Interface::as_raw(self), entype, ::core::mem::transmute_copy(bstrlocalphoneuri), pprofile.into().abi(), lflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn SetListenForIncomingSessions(&self, enlisten: RTC_LISTEN_MODE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetListenForIncomingSessions)(::windows::core::Interface::as_raw(self), enlisten).ok() @@ -1217,19 +1071,12 @@ impl IRTCClient2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.get_IVideoWindow)(::windows::core::Interface::as_raw(self), endevice, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_PreferredAudioDevice<'a, P0>(&self, endevice: RTC_AUDIO_DEVICE, bstrdevicename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.put_PreferredAudioDevice)(::windows::core::Interface::as_raw(self), endevice, bstrdevicename.into().abi()).ok() + pub unsafe fn put_PreferredAudioDevice(&self, endevice: RTC_AUDIO_DEVICE, bstrdevicename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.put_PreferredAudioDevice)(::windows::core::Interface::as_raw(self), endevice, ::core::mem::transmute_copy(bstrdevicename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_PreferredAudioDevice(&self, endevice: RTC_AUDIO_DEVICE) -> ::windows::core::Result { + pub unsafe fn get_PreferredAudioDevice(&self, endevice: RTC_AUDIO_DEVICE) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_PreferredAudioDevice)(::windows::core::Interface::as_raw(self), endevice, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_PreferredAudioDevice)(::windows::core::Interface::as_raw(self), endevice, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn put_PreferredVolume(&self, endevice: RTC_AUDIO_DEVICE, lvolume: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.put_PreferredVolume)(::windows::core::Interface::as_raw(self), endevice, lvolume).ok() @@ -1245,19 +1092,12 @@ impl IRTCClient2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.PreferredAEC)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPreferredVideoDevice<'a, P0>(&self, bstrdevicename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetPreferredVideoDevice)(::windows::core::Interface::as_raw(self), bstrdevicename.into().abi()).ok() + pub unsafe fn SetPreferredVideoDevice(&self, bstrdevicename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetPreferredVideoDevice)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdevicename)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PreferredVideoDevice(&self) -> ::windows::core::Result { + pub unsafe fn PreferredVideoDevice(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.PreferredVideoDevice)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.PreferredVideoDevice)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn ActiveMedia(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1291,33 +1131,19 @@ impl IRTCClient2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.get_IsT120AppletRunning)(::windows::core::Interface::as_raw(self), enapplet, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LocalUserURI(&self) -> ::windows::core::Result { + pub unsafe fn LocalUserURI(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.LocalUserURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.LocalUserURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLocalUserURI<'a, P0>(&self, bstruseruri: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetLocalUserURI)(::windows::core::Interface::as_raw(self), bstruseruri.into().abi()).ok() + pub unsafe fn SetLocalUserURI(&self, bstruseruri: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetLocalUserURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstruseruri)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LocalUserName(&self) -> ::windows::core::Result { + pub unsafe fn LocalUserName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.LocalUserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.LocalUserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLocalUserName<'a, P0>(&self, bstrusername: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetLocalUserName)(::windows::core::Interface::as_raw(self), bstrusername.into().abi()).ok() + pub unsafe fn SetLocalUserName(&self, bstrusername: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetLocalUserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrusername)).ok() } pub unsafe fn PlayRing(&self, entype: RTC_RING_TYPE, bplay: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.PlayRing)(::windows::core::Interface::as_raw(self), entype, bplay).ok() @@ -1346,35 +1172,21 @@ impl IRTCClient2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Version)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetClientName<'a, P0>(&self, bstrclientname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetClientName)(::windows::core::Interface::as_raw(self), bstrclientname.into().abi()).ok() + pub unsafe fn SetClientName(&self, bstrclientname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetClientName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrclientname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetClientCurVer<'a, P0>(&self, bstrclientcurver: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetClientCurVer)(::windows::core::Interface::as_raw(self), bstrclientcurver.into().abi()).ok() + pub unsafe fn SetClientCurVer(&self, bstrclientcurver: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetClientCurVer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrclientcurver)).ok() } pub unsafe fn InitializeEx(&self, lflags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).InitializeEx)(::windows::core::Interface::as_raw(self), lflags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateSessionWithDescription<'a, P0, P1, P2>(&self, bstrcontenttype: P0, bstrsessiondescription: P1, pprofile: P2, lflags: i32) -> ::windows::core::Result + pub unsafe fn CreateSessionWithDescription<'a, P0>(&self, bstrcontenttype: &::windows::core::BSTR, bstrsessiondescription: &::windows::core::BSTR, pprofile: P0, lflags: i32) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IRTCProfile>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IRTCProfile>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateSessionWithDescription)(::windows::core::Interface::as_raw(self), bstrcontenttype.into().abi(), bstrsessiondescription.into().abi(), pprofile.into().abi(), lflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateSessionWithDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcontenttype), ::core::mem::transmute_copy(bstrsessiondescription), pprofile.into().abi(), lflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn SetSessionDescriptionManager<'a, P0>(&self, psessiondescriptionmanager: P0) -> ::windows::core::Result<()> where @@ -1455,19 +1267,10 @@ pub struct IRTCClient2_Vtbl { pub get_AnswerMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, entype: RTC_SESSION_TYPE, penmode: *mut RTC_ANSWER_MODE) -> ::windows::core::HRESULT, pub InvokeTuningWizardEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: isize, fallowaudio: i16, fallowvideo: i16) -> ::windows::core::HRESULT, pub Version: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plversion: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetClientName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrclientname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetClientName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetClientCurVer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrclientcurver: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetClientCurVer: usize, + pub SetClientName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrclientname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetClientCurVer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrclientcurver: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub InitializeEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CreateSessionWithDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcontenttype: ::core::mem::ManuallyDrop, bstrsessiondescription: ::core::mem::ManuallyDrop, pprofile: *mut ::core::ffi::c_void, lflags: i32, ppsession2: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CreateSessionWithDescription: usize, + pub CreateSessionWithDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcontenttype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrsessiondescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pprofile: *mut ::core::ffi::c_void, lflags: i32, ppsession2: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub SetSessionDescriptionManager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psessiondescriptionmanager: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub put_PreferredSecurityLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ensecuritytype: RTC_SECURITY_TYPE, ensecuritylevel: RTC_SECURITY_LEVEL) -> ::windows::core::HRESULT, pub get_PreferredSecurityLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ensecuritytype: RTC_SECURITY_TYPE, pensecuritylevel: *mut RTC_SECURITY_LEVEL) -> ::windows::core::HRESULT, @@ -1562,21 +1365,11 @@ pub struct IRTCClientEvent_Vtbl { #[repr(transparent)] pub struct IRTCClientPortManagement(::windows::core::IUnknown); impl IRTCClientPortManagement { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StartListenAddressAndPort<'a, P0>(&self, bstrinternallocaladdress: P0, linternallocalport: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).StartListenAddressAndPort)(::windows::core::Interface::as_raw(self), bstrinternallocaladdress.into().abi(), linternallocalport).ok() + pub unsafe fn StartListenAddressAndPort(&self, bstrinternallocaladdress: &::windows::core::BSTR, linternallocalport: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).StartListenAddressAndPort)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrinternallocaladdress), linternallocalport).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StopListenAddressAndPort<'a, P0>(&self, bstrinternallocaladdress: P0, linternallocalport: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).StopListenAddressAndPort)(::windows::core::Interface::as_raw(self), bstrinternallocaladdress.into().abi(), linternallocalport).ok() + pub unsafe fn StopListenAddressAndPort(&self, bstrinternallocaladdress: &::windows::core::BSTR, linternallocalport: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).StopListenAddressAndPort)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrinternallocaladdress), linternallocalport).ok() } pub unsafe fn GetPortRange(&self, enporttype: RTC_PORT_TYPE, plminvalue: &mut i32, plmaxvalue: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetPortRange)(::windows::core::Interface::as_raw(self), enporttype, ::core::mem::transmute(plminvalue), ::core::mem::transmute(plmaxvalue)).ok() @@ -1621,14 +1414,8 @@ unsafe impl ::windows::core::Interface for IRTCClientPortManagement { #[doc(hidden)] pub struct IRTCClientPortManagement_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub StartListenAddressAndPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinternallocaladdress: ::core::mem::ManuallyDrop, linternallocalport: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - StartListenAddressAndPort: usize, - #[cfg(feature = "Win32_Foundation")] - pub StopListenAddressAndPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinternallocaladdress: ::core::mem::ManuallyDrop, linternallocalport: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - StopListenAddressAndPort: usize, + pub StartListenAddressAndPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinternallocaladdress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, linternallocalport: i32) -> ::windows::core::HRESULT, + pub StopListenAddressAndPort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinternallocaladdress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, linternallocalport: i32) -> ::windows::core::HRESULT, pub GetPortRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enporttype: RTC_PORT_TYPE, plminvalue: *mut i32, plmaxvalue: *mut i32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RealTimeCommunications\"`*"] @@ -1669,26 +1456,16 @@ impl IRTCClientPresence { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Buddies)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_Buddy<'a, P0>(&self, bstrpresentityuri: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn get_Buddy(&self, bstrpresentityuri: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_Buddy)(::windows::core::Interface::as_raw(self), bstrpresentityuri.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_Buddy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpresentityuri), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddBuddy<'a, P0, P1, P2, P3>(&self, bstrpresentityuri: P0, bstrusername: P1, bstrdata: P2, fpersistent: i16, pprofile: P3, lflags: i32) -> ::windows::core::Result + pub unsafe fn AddBuddy<'a, P0>(&self, bstrpresentityuri: &::windows::core::BSTR, bstrusername: &::windows::core::BSTR, bstrdata: &::windows::core::BSTR, fpersistent: i16, pprofile: P0, lflags: i32) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, IRTCProfile>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IRTCProfile>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AddBuddy)(::windows::core::Interface::as_raw(self), bstrpresentityuri.into().abi(), bstrusername.into().abi(), bstrdata.into().abi(), fpersistent, pprofile.into().abi(), lflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AddBuddy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpresentityuri), ::core::mem::transmute_copy(bstrusername), ::core::mem::transmute_copy(bstrdata), fpersistent, pprofile.into().abi(), lflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn RemoveBuddy<'a, P0>(&self, pbuddy: P0) -> ::windows::core::Result<()> where @@ -1706,25 +1483,13 @@ impl IRTCClientPresence { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Watchers)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_Watcher<'a, P0>(&self, bstrpresentityuri: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn get_Watcher(&self, bstrpresentityuri: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_Watcher)(::windows::core::Interface::as_raw(self), bstrpresentityuri.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_Watcher)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpresentityuri), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddWatcher<'a, P0, P1, P2>(&self, bstrpresentityuri: P0, bstrusername: P1, bstrdata: P2, fblocked: i16, fpersistent: i16) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn AddWatcher(&self, bstrpresentityuri: &::windows::core::BSTR, bstrusername: &::windows::core::BSTR, bstrdata: &::windows::core::BSTR, fblocked: i16, fpersistent: i16) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AddWatcher)(::windows::core::Interface::as_raw(self), bstrpresentityuri.into().abi(), bstrusername.into().abi(), bstrdata.into().abi(), fblocked, fpersistent, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AddWatcher)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpresentityuri), ::core::mem::transmute_copy(bstrusername), ::core::mem::transmute_copy(bstrdata), fblocked, fpersistent, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn RemoveWatcher<'a, P0>(&self, pwatcher: P0) -> ::windows::core::Result<()> where @@ -1732,13 +1497,8 @@ impl IRTCClientPresence { { (::windows::core::Interface::vtable(self).RemoveWatcher)(::windows::core::Interface::as_raw(self), pwatcher.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLocalPresenceInfo<'a, P0>(&self, enstatus: RTC_PRESENCE_STATUS, bstrnotes: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetLocalPresenceInfo)(::windows::core::Interface::as_raw(self), enstatus, bstrnotes.into().abi()).ok() + pub unsafe fn SetLocalPresenceInfo(&self, enstatus: RTC_PRESENCE_STATUS, bstrnotes: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetLocalPresenceInfo)(::windows::core::Interface::as_raw(self), enstatus, ::core::mem::transmute_copy(bstrnotes)).ok() } pub unsafe fn OfferWatcherMode(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1811,33 +1571,18 @@ pub struct IRTCClientPresence_Vtbl { pub Buddies: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Buddies: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_Buddy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpresentityuri: ::core::mem::ManuallyDrop, ppbuddy: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_Buddy: usize, - #[cfg(feature = "Win32_Foundation")] - pub AddBuddy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpresentityuri: ::core::mem::ManuallyDrop, bstrusername: ::core::mem::ManuallyDrop, bstrdata: ::core::mem::ManuallyDrop, fpersistent: i16, pprofile: *mut ::core::ffi::c_void, lflags: i32, ppbuddy: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddBuddy: usize, + pub get_Buddy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpresentityuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppbuddy: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub AddBuddy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpresentityuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fpersistent: i16, pprofile: *mut ::core::ffi::c_void, lflags: i32, ppbuddy: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub RemoveBuddy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbuddy: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub EnumerateWatchers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Watchers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Watchers: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_Watcher: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpresentityuri: ::core::mem::ManuallyDrop, ppwatcher: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_Watcher: usize, - #[cfg(feature = "Win32_Foundation")] - pub AddWatcher: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpresentityuri: ::core::mem::ManuallyDrop, bstrusername: ::core::mem::ManuallyDrop, bstrdata: ::core::mem::ManuallyDrop, fblocked: i16, fpersistent: i16, ppwatcher: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddWatcher: usize, + pub get_Watcher: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpresentityuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppwatcher: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub AddWatcher: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpresentityuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fblocked: i16, fpersistent: i16, ppwatcher: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub RemoveWatcher: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwatcher: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetLocalPresenceInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enstatus: RTC_PRESENCE_STATUS, bstrnotes: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetLocalPresenceInfo: usize, + pub SetLocalPresenceInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enstatus: RTC_PRESENCE_STATUS, bstrnotes: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub OfferWatcherMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penmode: *mut RTC_OFFER_WATCHER_MODE) -> ::windows::core::HRESULT, pub SetOfferWatcherMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enmode: RTC_OFFER_WATCHER_MODE) -> ::windows::core::HRESULT, pub PrivacyMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penmode: *mut RTC_PRIVACY_MODE) -> ::windows::core::HRESULT, @@ -1881,26 +1626,16 @@ impl IRTCClientPresence2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Buddies)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_Buddy<'a, P0>(&self, bstrpresentityuri: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn get_Buddy(&self, bstrpresentityuri: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_Buddy)(::windows::core::Interface::as_raw(self), bstrpresentityuri.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_Buddy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpresentityuri), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddBuddy<'a, P0, P1, P2, P3>(&self, bstrpresentityuri: P0, bstrusername: P1, bstrdata: P2, fpersistent: i16, pprofile: P3, lflags: i32) -> ::windows::core::Result + pub unsafe fn AddBuddy<'a, P0>(&self, bstrpresentityuri: &::windows::core::BSTR, bstrusername: &::windows::core::BSTR, bstrdata: &::windows::core::BSTR, fpersistent: i16, pprofile: P0, lflags: i32) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, IRTCProfile>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IRTCProfile>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.AddBuddy)(::windows::core::Interface::as_raw(self), bstrpresentityuri.into().abi(), bstrusername.into().abi(), bstrdata.into().abi(), fpersistent, pprofile.into().abi(), lflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.AddBuddy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpresentityuri), ::core::mem::transmute_copy(bstrusername), ::core::mem::transmute_copy(bstrdata), fpersistent, pprofile.into().abi(), lflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn RemoveBuddy<'a, P0>(&self, pbuddy: P0) -> ::windows::core::Result<()> where @@ -1918,25 +1653,13 @@ impl IRTCClientPresence2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Watchers)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_Watcher<'a, P0>(&self, bstrpresentityuri: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn get_Watcher(&self, bstrpresentityuri: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_Watcher)(::windows::core::Interface::as_raw(self), bstrpresentityuri.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_Watcher)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpresentityuri), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddWatcher<'a, P0, P1, P2>(&self, bstrpresentityuri: P0, bstrusername: P1, bstrdata: P2, fblocked: i16, fpersistent: i16) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn AddWatcher(&self, bstrpresentityuri: &::windows::core::BSTR, bstrusername: &::windows::core::BSTR, bstrdata: &::windows::core::BSTR, fblocked: i16, fpersistent: i16) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.AddWatcher)(::windows::core::Interface::as_raw(self), bstrpresentityuri.into().abi(), bstrusername.into().abi(), bstrdata.into().abi(), fblocked, fpersistent, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.AddWatcher)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpresentityuri), ::core::mem::transmute_copy(bstrusername), ::core::mem::transmute_copy(bstrdata), fblocked, fpersistent, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn RemoveWatcher<'a, P0>(&self, pwatcher: P0) -> ::windows::core::Result<()> where @@ -1944,13 +1667,8 @@ impl IRTCClientPresence2 { { (::windows::core::Interface::vtable(self).base__.RemoveWatcher)(::windows::core::Interface::as_raw(self), pwatcher.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLocalPresenceInfo<'a, P0>(&self, enstatus: RTC_PRESENCE_STATUS, bstrnotes: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetLocalPresenceInfo)(::windows::core::Interface::as_raw(self), enstatus, bstrnotes.into().abi()).ok() + pub unsafe fn SetLocalPresenceInfo(&self, enstatus: RTC_PRESENCE_STATUS, bstrnotes: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetLocalPresenceInfo)(::windows::core::Interface::as_raw(self), enstatus, ::core::mem::transmute_copy(bstrnotes)).ok() } pub unsafe fn OfferWatcherMode(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1978,16 +1696,12 @@ impl IRTCClientPresence2 { pub unsafe fn DisablePresence(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).DisablePresence)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddGroup<'a, P0, P1, P2>(&self, bstrgroupname: P0, bstrdata: P1, pprofile: P2, lflags: i32) -> ::windows::core::Result + pub unsafe fn AddGroup<'a, P0>(&self, bstrgroupname: &::windows::core::BSTR, bstrdata: &::windows::core::BSTR, pprofile: P0, lflags: i32) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IRTCProfile>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IRTCProfile>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AddGroup)(::windows::core::Interface::as_raw(self), bstrgroupname.into().abi(), bstrdata.into().abi(), pprofile.into().abi(), lflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AddGroup)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrgroupname), ::core::mem::transmute_copy(bstrdata), pprofile.into().abi(), lflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn RemoveGroup<'a, P0>(&self, pgroup: P0) -> ::windows::core::Result<()> where @@ -2005,80 +1719,43 @@ impl IRTCClientPresence2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Groups)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_Group<'a, P0>(&self, bstrgroupname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn get_Group(&self, bstrgroupname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_Group)(::windows::core::Interface::as_raw(self), bstrgroupname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_Group)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrgroupname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddWatcherEx<'a, P0, P1, P2, P3>(&self, bstrpresentityuri: P0, bstrusername: P1, bstrdata: P2, enstate: RTC_WATCHER_STATE, fpersistent: i16, enscope: RTC_ACE_SCOPE, pprofile: P3, lflags: i32) -> ::windows::core::Result + pub unsafe fn AddWatcherEx<'a, P0>(&self, bstrpresentityuri: &::windows::core::BSTR, bstrusername: &::windows::core::BSTR, bstrdata: &::windows::core::BSTR, enstate: RTC_WATCHER_STATE, fpersistent: i16, enscope: RTC_ACE_SCOPE, pprofile: P0, lflags: i32) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, IRTCProfile>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IRTCProfile>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AddWatcherEx)(::windows::core::Interface::as_raw(self), bstrpresentityuri.into().abi(), bstrusername.into().abi(), bstrdata.into().abi(), enstate, fpersistent, enscope, pprofile.into().abi(), lflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AddWatcherEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpresentityuri), ::core::mem::transmute_copy(bstrusername), ::core::mem::transmute_copy(bstrdata), enstate, fpersistent, enscope, pprofile.into().abi(), lflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_WatcherEx<'a, P0>(&self, enmode: RTC_WATCHER_MATCH_MODE, bstrpresentityuri: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn get_WatcherEx(&self, enmode: RTC_WATCHER_MATCH_MODE, bstrpresentityuri: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_WatcherEx)(::windows::core::Interface::as_raw(self), enmode, bstrpresentityuri.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_WatcherEx)(::windows::core::Interface::as_raw(self), enmode, ::core::mem::transmute_copy(bstrpresentityuri), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_PresenceProperty<'a, P0>(&self, enproperty: RTC_PRESENCE_PROPERTY, bstrproperty: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).put_PresenceProperty)(::windows::core::Interface::as_raw(self), enproperty, bstrproperty.into().abi()).ok() + pub unsafe fn put_PresenceProperty(&self, enproperty: RTC_PRESENCE_PROPERTY, bstrproperty: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).put_PresenceProperty)(::windows::core::Interface::as_raw(self), enproperty, ::core::mem::transmute_copy(bstrproperty)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_PresenceProperty(&self, enproperty: RTC_PRESENCE_PROPERTY) -> ::windows::core::Result { + pub unsafe fn get_PresenceProperty(&self, enproperty: RTC_PRESENCE_PROPERTY) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_PresenceProperty)(::windows::core::Interface::as_raw(self), enproperty, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_PresenceProperty)(::windows::core::Interface::as_raw(self), enproperty, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPresenceData<'a, P0, P1>(&self, bstrnamespace: P0, bstrdata: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPresenceData)(::windows::core::Interface::as_raw(self), bstrnamespace.into().abi(), bstrdata.into().abi()).ok() + pub unsafe fn SetPresenceData(&self, bstrnamespace: &::windows::core::BSTR, bstrdata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPresenceData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrnamespace), ::core::mem::transmute_copy(bstrdata)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPresenceData(&self, pbstrnamespace: &mut super::super::Foundation::BSTR, pbstrdata: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetPresenceData(&self, pbstrnamespace: &mut ::windows::core::BSTR, pbstrdata: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetPresenceData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrnamespace), ::core::mem::transmute(pbstrdata)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetLocalPresenceInfo(&self, penstatus: &mut RTC_PRESENCE_STATUS, pbstrnotes: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetLocalPresenceInfo(&self, penstatus: &mut RTC_PRESENCE_STATUS, pbstrnotes: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetLocalPresenceInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(penstatus), ::core::mem::transmute(pbstrnotes)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddBuddyEx<'a, P0, P1, P2, P3>(&self, bstrpresentityuri: P0, bstrusername: P1, bstrdata: P2, fpersistent: i16, ensubscriptiontype: RTC_BUDDY_SUBSCRIPTION_TYPE, pprofile: P3, lflags: i32) -> ::windows::core::Result + pub unsafe fn AddBuddyEx<'a, P0>(&self, bstrpresentityuri: &::windows::core::BSTR, bstrusername: &::windows::core::BSTR, bstrdata: &::windows::core::BSTR, fpersistent: i16, ensubscriptiontype: RTC_BUDDY_SUBSCRIPTION_TYPE, pprofile: P0, lflags: i32) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, IRTCProfile>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IRTCProfile>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AddBuddyEx)(::windows::core::Interface::as_raw(self), bstrpresentityuri.into().abi(), bstrusername.into().abi(), bstrdata.into().abi(), fpersistent, ensubscriptiontype, pprofile.into().abi(), lflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AddBuddyEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpresentityuri), ::core::mem::transmute_copy(bstrusername), ::core::mem::transmute_copy(bstrdata), fpersistent, ensubscriptiontype, pprofile.into().abi(), lflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -2140,65 +1817,30 @@ pub struct IRTCClientPresence2_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] EnablePresenceEx: usize, pub DisablePresence: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub AddGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop, bstrdata: ::core::mem::ManuallyDrop, pprofile: *mut ::core::ffi::c_void, lflags: i32, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddGroup: usize, + pub AddGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pprofile: *mut ::core::ffi::c_void, lflags: i32, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub RemoveGroup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pgroup: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub EnumerateGroups: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Groups: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Groups: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_Group: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_Group: usize, - #[cfg(feature = "Win32_Foundation")] - pub AddWatcherEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpresentityuri: ::core::mem::ManuallyDrop, bstrusername: ::core::mem::ManuallyDrop, bstrdata: ::core::mem::ManuallyDrop, enstate: RTC_WATCHER_STATE, fpersistent: i16, enscope: RTC_ACE_SCOPE, pprofile: *mut ::core::ffi::c_void, lflags: i32, ppwatcher: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddWatcherEx: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_WatcherEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enmode: RTC_WATCHER_MATCH_MODE, bstrpresentityuri: ::core::mem::ManuallyDrop, ppwatcher: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_WatcherEx: usize, - #[cfg(feature = "Win32_Foundation")] - pub put_PresenceProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enproperty: RTC_PRESENCE_PROPERTY, bstrproperty: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - put_PresenceProperty: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_PresenceProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enproperty: RTC_PRESENCE_PROPERTY, pbstrproperty: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_PresenceProperty: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPresenceData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrnamespace: ::core::mem::ManuallyDrop, bstrdata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPresenceData: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetPresenceData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrnamespace: *mut super::super::Foundation::BSTR, pbstrdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPresenceData: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetLocalPresenceInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penstatus: *mut RTC_PRESENCE_STATUS, pbstrnotes: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetLocalPresenceInfo: usize, - #[cfg(feature = "Win32_Foundation")] - pub AddBuddyEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpresentityuri: ::core::mem::ManuallyDrop, bstrusername: ::core::mem::ManuallyDrop, bstrdata: ::core::mem::ManuallyDrop, fpersistent: i16, ensubscriptiontype: RTC_BUDDY_SUBSCRIPTION_TYPE, pprofile: *mut ::core::ffi::c_void, lflags: i32, ppbuddy: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddBuddyEx: usize, + pub get_Group: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgroupname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppgroup: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub AddWatcherEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpresentityuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>, enstate: RTC_WATCHER_STATE, fpersistent: i16, enscope: RTC_ACE_SCOPE, pprofile: *mut ::core::ffi::c_void, lflags: i32, ppwatcher: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub get_WatcherEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enmode: RTC_WATCHER_MATCH_MODE, bstrpresentityuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppwatcher: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub put_PresenceProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enproperty: RTC_PRESENCE_PROPERTY, bstrproperty: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub get_PresenceProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enproperty: RTC_PRESENCE_PROPERTY, pbstrproperty: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetPresenceData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrnamespace: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetPresenceData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrnamespace: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetLocalPresenceInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penstatus: *mut RTC_PRESENCE_STATUS, pbstrnotes: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub AddBuddyEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpresentityuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>, fpersistent: i16, ensubscriptiontype: RTC_BUDDY_SUBSCRIPTION_TYPE, pprofile: *mut ::core::ffi::c_void, lflags: i32, ppbuddy: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RealTimeCommunications\"`*"] #[repr(transparent)] pub struct IRTCClientProvisioning(::windows::core::IUnknown); impl IRTCClientProvisioning { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateProfile<'a, P0>(&self, bstrprofilexml: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn CreateProfile(&self, bstrprofilexml: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateProfile)(::windows::core::Interface::as_raw(self), bstrprofilexml.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateProfile)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprofilexml), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn EnableProfile<'a, P0>(&self, pprofile: P0, lregisterflags: i32) -> ::windows::core::Result<()> where @@ -2222,16 +1864,8 @@ impl IRTCClientProvisioning { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Profiles)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetProfile<'a, P0, P1, P2, P3>(&self, bstruseraccount: P0, bstruserpassword: P1, bstruseruri: P2, bstrserver: P3, ltransport: i32, lcookie: isize) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetProfile)(::windows::core::Interface::as_raw(self), bstruseraccount.into().abi(), bstruserpassword.into().abi(), bstruseruri.into().abi(), bstrserver.into().abi(), ltransport, lcookie).ok() + pub unsafe fn GetProfile(&self, bstruseraccount: &::windows::core::BSTR, bstruserpassword: &::windows::core::BSTR, bstruseruri: &::windows::core::BSTR, bstrserver: &::windows::core::BSTR, ltransport: i32, lcookie: isize) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetProfile)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstruseraccount), ::core::mem::transmute_copy(bstruserpassword), ::core::mem::transmute_copy(bstruseruri), ::core::mem::transmute_copy(bstrserver), ltransport, lcookie).ok() } pub unsafe fn SessionCapabilities(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2277,10 +1911,7 @@ unsafe impl ::windows::core::Interface for IRTCClientProvisioning { #[doc(hidden)] pub struct IRTCClientProvisioning_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub CreateProfile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprofilexml: ::core::mem::ManuallyDrop, ppprofile: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CreateProfile: usize, + pub CreateProfile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprofilexml: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppprofile: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub EnableProfile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprofile: *mut ::core::ffi::c_void, lregisterflags: i32) -> ::windows::core::HRESULT, pub DisableProfile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprofile: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub EnumerateProfiles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -2288,24 +1919,16 @@ pub struct IRTCClientProvisioning_Vtbl { pub Profiles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Profiles: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetProfile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstruseraccount: ::core::mem::ManuallyDrop, bstruserpassword: ::core::mem::ManuallyDrop, bstruseruri: ::core::mem::ManuallyDrop, bstrserver: ::core::mem::ManuallyDrop, ltransport: i32, lcookie: isize) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetProfile: usize, + pub GetProfile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstruseraccount: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstruserpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstruseruri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrserver: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ltransport: i32, lcookie: isize) -> ::windows::core::HRESULT, pub SessionCapabilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plsupportedsessions: *mut i32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RealTimeCommunications\"`*"] #[repr(transparent)] pub struct IRTCClientProvisioning2(::windows::core::IUnknown); impl IRTCClientProvisioning2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateProfile<'a, P0>(&self, bstrprofilexml: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn CreateProfile(&self, bstrprofilexml: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CreateProfile)(::windows::core::Interface::as_raw(self), bstrprofilexml.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CreateProfile)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprofilexml), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn EnableProfile<'a, P0>(&self, pprofile: P0, lregisterflags: i32) -> ::windows::core::Result<()> where @@ -2329,16 +1952,8 @@ impl IRTCClientProvisioning2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Profiles)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetProfile<'a, P0, P1, P2, P3>(&self, bstruseraccount: P0, bstruserpassword: P1, bstruseruri: P2, bstrserver: P3, ltransport: i32, lcookie: isize) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.GetProfile)(::windows::core::Interface::as_raw(self), bstruseraccount.into().abi(), bstruserpassword.into().abi(), bstruseruri.into().abi(), bstrserver.into().abi(), ltransport, lcookie).ok() + pub unsafe fn GetProfile(&self, bstruseraccount: &::windows::core::BSTR, bstruserpassword: &::windows::core::BSTR, bstruseruri: &::windows::core::BSTR, bstrserver: &::windows::core::BSTR, ltransport: i32, lcookie: isize) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.GetProfile)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstruseraccount), ::core::mem::transmute_copy(bstruserpassword), ::core::mem::transmute_copy(bstruseruri), ::core::mem::transmute_copy(bstrserver), ltransport, lcookie).ok() } pub unsafe fn SessionCapabilities(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3079,17 +2694,13 @@ impl IRTCInfoEvent { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Participant)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Info(&self) -> ::windows::core::Result { + pub unsafe fn Info(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Info)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Info)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InfoHeader(&self) -> ::windows::core::Result { + pub unsafe fn InfoHeader(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).InfoHeader)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).InfoHeader)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -3160,14 +2771,8 @@ pub struct IRTCInfoEvent_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub Session: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsession: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Participant: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppparticipant: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Info: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrinfo: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Info: usize, - #[cfg(feature = "Win32_Foundation")] - pub InfoHeader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrinfoheader: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InfoHeader: usize, + pub Info: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrinfo: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub InfoHeader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrinfoheader: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RealTimeCommunications\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3477,17 +3082,13 @@ impl IRTCMessagingEvent { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).EventType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Message(&self) -> ::windows::core::Result { + pub unsafe fn Message(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Message)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Message)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MessageHeader(&self) -> ::windows::core::Result { + pub unsafe fn MessageHeader(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).MessageHeader)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).MessageHeader)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn UserStatus(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3563,31 +3164,21 @@ pub struct IRTCMessagingEvent_Vtbl { pub Session: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsession: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Participant: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppparticipant: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub EventType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, peneventtype: *mut RTC_MESSAGING_EVENT_TYPE) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Message: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmessage: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Message: usize, - #[cfg(feature = "Win32_Foundation")] - pub MessageHeader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmessageheader: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MessageHeader: usize, + pub Message: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmessage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub MessageHeader: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrmessageheader: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub UserStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penuserstatus: *mut RTC_MESSAGING_USER_STATUS) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RealTimeCommunications\"`*"] #[repr(transparent)] pub struct IRTCParticipant(::windows::core::IUnknown); impl IRTCParticipant { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserURI(&self) -> ::windows::core::Result { + pub unsafe fn UserURI(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UserURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UserURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Removable(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3641,14 +3232,8 @@ unsafe impl ::windows::core::Interface for IRTCParticipant { #[doc(hidden)] pub struct IRTCParticipant_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub UserURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstruseruri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UserURI: usize, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub UserURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstruseruri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Removable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfremovable: *mut i16) -> ::windows::core::HRESULT, pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penstate: *mut RTC_PARTICIPANT_STATE) -> ::windows::core::HRESULT, pub Session: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsession: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -3746,32 +3331,14 @@ pub struct IRTCParticipantStateChangeEvent_Vtbl { #[repr(transparent)] pub struct IRTCPortManager(::windows::core::IUnknown); impl IRTCPortManager { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetMapping<'a, P0>(&self, bstrremoteaddress: P0, enporttype: RTC_PORT_TYPE, pbstrinternallocaladdress: &mut super::super::Foundation::BSTR, plinternallocalport: &mut i32, pbstrexternallocaladdress: &mut super::super::Foundation::BSTR, plexternallocalport: &mut i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetMapping)(::windows::core::Interface::as_raw(self), bstrremoteaddress.into().abi(), enporttype, ::core::mem::transmute(pbstrinternallocaladdress), ::core::mem::transmute(plinternallocalport), ::core::mem::transmute(pbstrexternallocaladdress), ::core::mem::transmute(plexternallocalport)).ok() + pub unsafe fn GetMapping(&self, bstrremoteaddress: &::windows::core::BSTR, enporttype: RTC_PORT_TYPE, pbstrinternallocaladdress: &mut ::windows::core::BSTR, plinternallocalport: &mut i32, pbstrexternallocaladdress: &mut ::windows::core::BSTR, plexternallocalport: &mut i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrremoteaddress), enporttype, ::core::mem::transmute(pbstrinternallocaladdress), ::core::mem::transmute(plinternallocalport), ::core::mem::transmute(pbstrexternallocaladdress), ::core::mem::transmute(plexternallocalport)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UpdateRemoteAddress<'a, P0, P1, P2>(&self, bstrremoteaddress: P0, bstrinternallocaladdress: P1, linternallocalport: i32, bstrexternallocaladdress: P2, lexternallocalport: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).UpdateRemoteAddress)(::windows::core::Interface::as_raw(self), bstrremoteaddress.into().abi(), bstrinternallocaladdress.into().abi(), linternallocalport, bstrexternallocaladdress.into().abi(), lexternallocalport).ok() + pub unsafe fn UpdateRemoteAddress(&self, bstrremoteaddress: &::windows::core::BSTR, bstrinternallocaladdress: &::windows::core::BSTR, linternallocalport: i32, bstrexternallocaladdress: &::windows::core::BSTR, lexternallocalport: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).UpdateRemoteAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrremoteaddress), ::core::mem::transmute_copy(bstrinternallocaladdress), linternallocalport, ::core::mem::transmute_copy(bstrexternallocaladdress), lexternallocalport).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ReleaseMapping<'a, P0, P1>(&self, bstrinternallocaladdress: P0, linternallocalport: i32, bstrexternallocaladdress: P1, lexternallocaladdress: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ReleaseMapping)(::windows::core::Interface::as_raw(self), bstrinternallocaladdress.into().abi(), linternallocalport, bstrexternallocaladdress.into().abi(), lexternallocaladdress).ok() + pub unsafe fn ReleaseMapping(&self, bstrinternallocaladdress: &::windows::core::BSTR, linternallocalport: i32, bstrexternallocaladdress: &::windows::core::BSTR, lexternallocaladdress: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ReleaseMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrinternallocaladdress), linternallocalport, ::core::mem::transmute_copy(bstrexternallocaladdress), lexternallocaladdress).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -3813,64 +3380,34 @@ unsafe impl ::windows::core::Interface for IRTCPortManager { #[doc(hidden)] pub struct IRTCPortManager_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetMapping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrremoteaddress: ::core::mem::ManuallyDrop, enporttype: RTC_PORT_TYPE, pbstrinternallocaladdress: *mut super::super::Foundation::BSTR, plinternallocalport: *mut i32, pbstrexternallocaladdress: *mut super::super::Foundation::BSTR, plexternallocalport: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetMapping: usize, - #[cfg(feature = "Win32_Foundation")] - pub UpdateRemoteAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrremoteaddress: ::core::mem::ManuallyDrop, bstrinternallocaladdress: ::core::mem::ManuallyDrop, linternallocalport: i32, bstrexternallocaladdress: ::core::mem::ManuallyDrop, lexternallocalport: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UpdateRemoteAddress: usize, - #[cfg(feature = "Win32_Foundation")] - pub ReleaseMapping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinternallocaladdress: ::core::mem::ManuallyDrop, linternallocalport: i32, bstrexternallocaladdress: ::core::mem::ManuallyDrop, lexternallocaladdress: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ReleaseMapping: usize, + pub GetMapping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrremoteaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, enporttype: RTC_PORT_TYPE, pbstrinternallocaladdress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, plinternallocalport: *mut i32, pbstrexternallocaladdress: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, plexternallocalport: *mut i32) -> ::windows::core::HRESULT, + pub UpdateRemoteAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrremoteaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrinternallocaladdress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, linternallocalport: i32, bstrexternallocaladdress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lexternallocalport: i32) -> ::windows::core::HRESULT, + pub ReleaseMapping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinternallocaladdress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, linternallocalport: i32, bstrexternallocaladdress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lexternallocaladdress: i32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RealTimeCommunications\"`*"] #[repr(transparent)] pub struct IRTCPresenceContact(::windows::core::IUnknown); impl IRTCPresenceContact { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PresentityURI(&self) -> ::windows::core::Result { + pub unsafe fn PresentityURI(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PresentityURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PresentityURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPresentityURI<'a, P0>(&self, bstrpresentityuri: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPresentityURI)(::windows::core::Interface::as_raw(self), bstrpresentityuri.into().abi()).ok() + pub unsafe fn SetPresentityURI(&self, bstrpresentityuri: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPresentityURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpresentityuri)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Data(&self) -> ::windows::core::Result { + pub unsafe fn Data(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Data)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Data)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetData<'a, P0>(&self, bstrdata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetData)(::windows::core::Interface::as_raw(self), bstrdata.into().abi()).ok() + pub unsafe fn SetData(&self, bstrdata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdata)).ok() } pub unsafe fn Persistent(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3919,30 +3456,12 @@ unsafe impl ::windows::core::Interface for IRTCPresenceContact { #[doc(hidden)] pub struct IRTCPresenceContact_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub PresentityURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpresentityuri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PresentityURI: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPresentityURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpresentityuri: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPresentityURI: usize, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, - #[cfg(feature = "Win32_Foundation")] - pub Data: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Data: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetData: usize, + pub PresentityURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrpresentityuri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetPresentityURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpresentityuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Data: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Persistent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfpersistent: *mut i16) -> ::windows::core::HRESULT, pub SetPersistent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fpersistent: i16) -> ::windows::core::HRESULT, } @@ -3956,15 +3475,11 @@ impl IRTCPresenceDataEvent { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).StatusCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StatusText(&self) -> ::windows::core::Result { + pub unsafe fn StatusText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).StatusText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).StatusText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPresenceData(&self, pbstrnamespace: &mut super::super::Foundation::BSTR, pbstrdata: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetPresenceData(&self, pbstrnamespace: &mut ::windows::core::BSTR, pbstrdata: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetPresenceData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrnamespace), ::core::mem::transmute(pbstrdata)).ok() } } @@ -4035,14 +3550,8 @@ unsafe impl ::windows::core::Interface for IRTCPresenceDataEvent { pub struct IRTCPresenceDataEvent_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub StatusCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plstatuscode: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub StatusText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - StatusText: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetPresenceData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrnamespace: *mut super::super::Foundation::BSTR, pbstrdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPresenceData: usize, + pub StatusText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetPresenceData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrnamespace: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RealTimeCommunications\"`*"] #[repr(transparent)] @@ -4052,21 +3561,15 @@ impl IRTCPresenceDevice { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Status)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Notes(&self) -> ::windows::core::Result { + pub unsafe fn Notes(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Notes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Notes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_PresenceProperty(&self, enproperty: RTC_PRESENCE_PROPERTY) -> ::windows::core::Result { + pub unsafe fn get_PresenceProperty(&self, enproperty: RTC_PRESENCE_PROPERTY) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_PresenceProperty)(::windows::core::Interface::as_raw(self), enproperty, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_PresenceProperty)(::windows::core::Interface::as_raw(self), enproperty, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPresenceData(&self, pbstrnamespace: &mut super::super::Foundation::BSTR, pbstrdata: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetPresenceData(&self, pbstrnamespace: &mut ::windows::core::BSTR, pbstrdata: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetPresenceData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrnamespace), ::core::mem::transmute(pbstrdata)).ok() } } @@ -4110,18 +3613,9 @@ unsafe impl ::windows::core::Interface for IRTCPresenceDevice { pub struct IRTCPresenceDevice_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penstatus: *mut RTC_PRESENCE_STATUS) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Notes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrnotes: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Notes: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_PresenceProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enproperty: RTC_PRESENCE_PROPERTY, pbstrproperty: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_PresenceProperty: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetPresenceData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrnamespace: *mut super::super::Foundation::BSTR, pbstrdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPresenceData: usize, + pub Notes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrnotes: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub get_PresenceProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enproperty: RTC_PRESENCE_PROPERTY, pbstrproperty: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetPresenceData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrnamespace: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RealTimeCommunications\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4133,21 +3627,17 @@ impl IRTCPresencePropertyEvent { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).StatusCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StatusText(&self) -> ::windows::core::Result { + pub unsafe fn StatusText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).StatusText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).StatusText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn PresenceProperty(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).PresenceProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Value(&self) -> ::windows::core::Result { + pub unsafe fn Value(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Value)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Value)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -4217,15 +3707,9 @@ unsafe impl ::windows::core::Interface for IRTCPresencePropertyEvent { pub struct IRTCPresencePropertyEvent_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub StatusCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plstatuscode: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub StatusText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - StatusText: usize, + pub StatusText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub PresenceProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penpresprop: *mut RTC_PRESENCE_PROPERTY) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Value: usize, + pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RealTimeCommunications\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4237,15 +3721,11 @@ impl IRTCPresenceStatusEvent { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).StatusCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StatusText(&self) -> ::windows::core::Result { + pub unsafe fn StatusText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).StatusText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).StatusText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetLocalPresenceInfo(&self, penstatus: &mut RTC_PRESENCE_STATUS, pbstrnotes: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetLocalPresenceInfo(&self, penstatus: &mut RTC_PRESENCE_STATUS, pbstrnotes: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetLocalPresenceInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(penstatus), ::core::mem::transmute(pbstrnotes)).ok() } } @@ -4316,116 +3796,75 @@ unsafe impl ::windows::core::Interface for IRTCPresenceStatusEvent { pub struct IRTCPresenceStatusEvent_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub StatusCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plstatuscode: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub StatusText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - StatusText: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetLocalPresenceInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penstatus: *mut RTC_PRESENCE_STATUS, pbstrnotes: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetLocalPresenceInfo: usize, + pub StatusText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetLocalPresenceInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penstatus: *mut RTC_PRESENCE_STATUS, pbstrnotes: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RealTimeCommunications\"`*"] #[repr(transparent)] pub struct IRTCProfile(::windows::core::IUnknown); impl IRTCProfile { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Key(&self) -> ::windows::core::Result { + pub unsafe fn Key(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Key)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Key)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn XML(&self) -> ::windows::core::Result { + pub unsafe fn XML(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).XML)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).XML)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ProviderName(&self) -> ::windows::core::Result { + pub unsafe fn ProviderName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_ProviderURI(&self, enuri: RTC_PROVIDER_URI) -> ::windows::core::Result { + pub unsafe fn get_ProviderURI(&self, enuri: RTC_PROVIDER_URI) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_ProviderURI)(::windows::core::Interface::as_raw(self), enuri, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_ProviderURI)(::windows::core::Interface::as_raw(self), enuri, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ProviderData(&self) -> ::windows::core::Result { + pub unsafe fn ProviderData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ProviderData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ProviderData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClientName(&self) -> ::windows::core::Result { + pub unsafe fn ClientName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ClientName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ClientName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn ClientBanner(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ClientBanner)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClientMinVer(&self) -> ::windows::core::Result { + pub unsafe fn ClientMinVer(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ClientMinVer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ClientMinVer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClientCurVer(&self) -> ::windows::core::Result { + pub unsafe fn ClientCurVer(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ClientCurVer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ClientCurVer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClientUpdateURI(&self) -> ::windows::core::Result { + pub unsafe fn ClientUpdateURI(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ClientUpdateURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ClientUpdateURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClientData(&self) -> ::windows::core::Result { + pub unsafe fn ClientData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ClientData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ClientData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserURI(&self) -> ::windows::core::Result { + pub unsafe fn UserURI(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UserURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UserURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserName(&self) -> ::windows::core::Result { + pub unsafe fn UserName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserAccount(&self) -> ::windows::core::Result { + pub unsafe fn UserAccount(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UserAccount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UserAccount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCredentials<'a, P0, P1, P2>(&self, bstruseruri: P0, bstruseraccount: P1, bstrpassword: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetCredentials)(::windows::core::Interface::as_raw(self), bstruseruri.into().abi(), bstruseraccount.into().abi(), bstrpassword.into().abi()).ok() + pub unsafe fn SetCredentials(&self, bstruseruri: &::windows::core::BSTR, bstruseraccount: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetCredentials)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstruseruri), ::core::mem::transmute_copy(bstruseraccount), ::core::mem::transmute_copy(bstrpassword)).ok() } pub unsafe fn SessionCapabilities(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4475,67 +3914,22 @@ unsafe impl ::windows::core::Interface for IRTCProfile { #[doc(hidden)] pub struct IRTCProfile_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub Key: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrkey: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Key: usize, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub XML: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrxml: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - XML: usize, - #[cfg(feature = "Win32_Foundation")] - pub ProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ProviderName: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_ProviderURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enuri: RTC_PROVIDER_URI, pbstruri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_ProviderURI: usize, - #[cfg(feature = "Win32_Foundation")] - pub ProviderData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ProviderData: usize, - #[cfg(feature = "Win32_Foundation")] - pub ClientName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ClientName: usize, + pub Key: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrkey: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub XML: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrxml: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ProviderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub get_ProviderURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enuri: RTC_PROVIDER_URI, pbstruri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ProviderData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ClientName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ClientBanner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfbanner: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ClientMinVer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrminver: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ClientMinVer: usize, - #[cfg(feature = "Win32_Foundation")] - pub ClientCurVer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcurver: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ClientCurVer: usize, - #[cfg(feature = "Win32_Foundation")] - pub ClientUpdateURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrupdateuri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ClientUpdateURI: usize, - #[cfg(feature = "Win32_Foundation")] - pub ClientData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ClientData: usize, - #[cfg(feature = "Win32_Foundation")] - pub UserURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstruseruri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UserURI: usize, - #[cfg(feature = "Win32_Foundation")] - pub UserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrusername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UserName: usize, - #[cfg(feature = "Win32_Foundation")] - pub UserAccount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstruseraccount: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UserAccount: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetCredentials: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstruseruri: ::core::mem::ManuallyDrop, bstruseraccount: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetCredentials: usize, + pub ClientMinVer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrminver: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ClientCurVer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcurver: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ClientUpdateURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrupdateuri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ClientData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub UserURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstruseruri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub UserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrusername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub UserAccount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstruseraccount: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetCredentials: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstruseruri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstruseraccount: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SessionCapabilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plsupportedsessions: *mut i32) -> ::windows::core::HRESULT, pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penstate: *mut RTC_REGISTRATION_STATE) -> ::windows::core::HRESULT, } @@ -4543,103 +3937,68 @@ pub struct IRTCProfile_Vtbl { #[repr(transparent)] pub struct IRTCProfile2(::windows::core::IUnknown); impl IRTCProfile2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Key(&self) -> ::windows::core::Result { + pub unsafe fn Key(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Key)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Key)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn XML(&self) -> ::windows::core::Result { + pub unsafe fn XML(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.XML)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.XML)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ProviderName(&self) -> ::windows::core::Result { + pub unsafe fn ProviderName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ProviderName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_ProviderURI(&self, enuri: RTC_PROVIDER_URI) -> ::windows::core::Result { + pub unsafe fn get_ProviderURI(&self, enuri: RTC_PROVIDER_URI) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_ProviderURI)(::windows::core::Interface::as_raw(self), enuri, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_ProviderURI)(::windows::core::Interface::as_raw(self), enuri, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ProviderData(&self) -> ::windows::core::Result { + pub unsafe fn ProviderData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ProviderData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ProviderData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClientName(&self) -> ::windows::core::Result { + pub unsafe fn ClientName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ClientName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ClientName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn ClientBanner(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.ClientBanner)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClientMinVer(&self) -> ::windows::core::Result { + pub unsafe fn ClientMinVer(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ClientMinVer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ClientMinVer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClientCurVer(&self) -> ::windows::core::Result { + pub unsafe fn ClientCurVer(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ClientCurVer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ClientCurVer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClientUpdateURI(&self) -> ::windows::core::Result { + pub unsafe fn ClientUpdateURI(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ClientUpdateURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ClientUpdateURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClientData(&self) -> ::windows::core::Result { + pub unsafe fn ClientData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ClientData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ClientData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserURI(&self) -> ::windows::core::Result { + pub unsafe fn UserURI(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.UserURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.UserURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserName(&self) -> ::windows::core::Result { + pub unsafe fn UserName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.UserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.UserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserAccount(&self) -> ::windows::core::Result { + pub unsafe fn UserAccount(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.UserAccount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.UserAccount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCredentials<'a, P0, P1, P2>(&self, bstruseruri: P0, bstruseraccount: P1, bstrpassword: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetCredentials)(::windows::core::Interface::as_raw(self), bstruseruri.into().abi(), bstruseraccount.into().abi(), bstrpassword.into().abi()).ok() + pub unsafe fn SetCredentials(&self, bstruseruri: &::windows::core::BSTR, bstruseraccount: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetCredentials)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstruseruri), ::core::mem::transmute_copy(bstruseraccount), ::core::mem::transmute_copy(bstrpassword)).ok() } pub unsafe fn SessionCapabilities(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4649,19 +4008,12 @@ impl IRTCProfile2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.State)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Realm(&self) -> ::windows::core::Result { + pub unsafe fn Realm(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Realm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Realm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRealm<'a, P0>(&self, bstrrealm: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetRealm)(::windows::core::Interface::as_raw(self), bstrrealm.into().abi()).ok() + pub unsafe fn SetRealm(&self, bstrrealm: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetRealm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrealm)).ok() } pub unsafe fn AllowedAuth(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4725,14 +4077,8 @@ unsafe impl ::windows::core::Interface for IRTCProfile2 { #[doc(hidden)] pub struct IRTCProfile2_Vtbl { pub base__: IRTCProfile_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Realm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrrealm: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Realm: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetRealm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrealm: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetRealm: usize, + pub Realm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrrealm: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetRealm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrealm: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub AllowedAuth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plallowedauth: *mut i32) -> ::windows::core::HRESULT, pub SetAllowedAuth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lallowedauth: i32) -> ::windows::core::HRESULT, } @@ -4944,14 +4290,8 @@ impl IRTCReInviteEvent { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Session)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Accept<'a, P0, P1>(&self, bstrcontenttype: P0, bstrsessiondescription: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Accept)(::windows::core::Interface::as_raw(self), bstrcontenttype.into().abi(), bstrsessiondescription.into().abi()).ok() + pub unsafe fn Accept(&self, bstrcontenttype: &::windows::core::BSTR, bstrsessiondescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Accept)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcontenttype), ::core::mem::transmute_copy(bstrsessiondescription)).ok() } pub unsafe fn Reject(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Reject)(::windows::core::Interface::as_raw(self)).ok() @@ -4960,9 +4300,7 @@ impl IRTCReInviteEvent { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).State)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetRemoteSessionDescription(&self, pbstrcontenttype: &mut super::super::Foundation::BSTR, pbstrsessiondescription: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetRemoteSessionDescription(&self, pbstrcontenttype: &mut ::windows::core::BSTR, pbstrsessiondescription: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetRemoteSessionDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrcontenttype), ::core::mem::transmute(pbstrsessiondescription)).ok() } } @@ -5033,16 +4371,10 @@ unsafe impl ::windows::core::Interface for IRTCReInviteEvent { pub struct IRTCReInviteEvent_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub Session: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsession2: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Accept: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcontenttype: ::core::mem::ManuallyDrop, bstrsessiondescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Accept: usize, + pub Accept: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcontenttype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrsessiondescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Reject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstate: *mut RTC_REINVITE_STATE) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetRemoteSessionDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcontenttype: *mut super::super::Foundation::BSTR, pbstrsessiondescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetRemoteSessionDescription: usize, + pub GetRemoteSessionDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcontenttype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrsessiondescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RealTimeCommunications\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5062,11 +4394,9 @@ impl IRTCRegistrationStateChangeEvent { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).StatusCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StatusText(&self) -> ::windows::core::Result { + pub unsafe fn StatusText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).StatusText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).StatusText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -5138,10 +4468,7 @@ pub struct IRTCRegistrationStateChangeEvent_Vtbl { pub Profile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppprofile: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penstate: *mut RTC_REGISTRATION_STATE) -> ::windows::core::HRESULT, pub StatusCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plstatuscode: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub StatusText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - StatusText: usize, + pub StatusText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RealTimeCommunications\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5161,11 +4488,9 @@ impl IRTCRoamingEvent { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).StatusCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StatusText(&self) -> ::windows::core::Result { + pub unsafe fn StatusText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).StatusText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).StatusText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -5237,10 +4562,7 @@ pub struct IRTCRoamingEvent_Vtbl { pub EventType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, peventtype: *mut RTC_ROAMING_EVENT_TYPE) -> ::windows::core::HRESULT, pub Profile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppprofile: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub StatusCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plstatuscode: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub StatusText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - StatusText: usize, + pub StatusText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RealTimeCommunications\"`*"] #[repr(transparent)] @@ -5274,24 +4596,15 @@ impl IRTCSession { pub unsafe fn Terminate(&self, enreason: RTC_TERMINATE_REASON) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Terminate)(::windows::core::Interface::as_raw(self), enreason).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Redirect<'a, P0, P1>(&self, entype: RTC_SESSION_TYPE, bstrlocalphoneuri: P0, pprofile: P1, lflags: i32) -> ::windows::core::Result<()> + pub unsafe fn Redirect<'a, P0>(&self, entype: RTC_SESSION_TYPE, bstrlocalphoneuri: &::windows::core::BSTR, pprofile: P0, lflags: i32) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IRTCProfile>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IRTCProfile>>, { - (::windows::core::Interface::vtable(self).Redirect)(::windows::core::Interface::as_raw(self), entype, bstrlocalphoneuri.into().abi(), pprofile.into().abi(), lflags).ok() + (::windows::core::Interface::vtable(self).Redirect)(::windows::core::Interface::as_raw(self), entype, ::core::mem::transmute_copy(bstrlocalphoneuri), pprofile.into().abi(), lflags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddParticipant<'a, P0, P1>(&self, bstraddress: P0, bstrname: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn AddParticipant(&self, bstraddress: &::windows::core::BSTR, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AddParticipant)(::windows::core::Interface::as_raw(self), bstraddress.into().abi(), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AddParticipant)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstraddress), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn RemoveParticipant<'a, P0>(&self, pparticipant: P0) -> ::windows::core::Result<()> where @@ -5307,29 +4620,19 @@ impl IRTCSession { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CanAddParticipants)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RedirectedUserURI(&self) -> ::windows::core::Result { + pub unsafe fn RedirectedUserURI(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RedirectedUserURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RedirectedUserURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RedirectedUserName(&self) -> ::windows::core::Result { + pub unsafe fn RedirectedUserName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RedirectedUserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RedirectedUserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn NextRedirectedUser(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).NextRedirectedUser)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SendMessage<'a, P0, P1>(&self, bstrmessageheader: P0, bstrmessage: P1, lcookie: isize) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SendMessage)(::windows::core::Interface::as_raw(self), bstrmessageheader.into().abi(), bstrmessage.into().abi(), lcookie).ok() + pub unsafe fn SendMessage(&self, bstrmessageheader: &::windows::core::BSTR, bstrmessage: &::windows::core::BSTR, lcookie: isize) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SendMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrmessageheader), ::core::mem::transmute_copy(bstrmessage), lcookie).ok() } pub unsafe fn SendMessageStatus(&self, enuserstatus: RTC_MESSAGING_USER_STATUS, lcookie: isize) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SendMessageStatus)(::windows::core::Interface::as_raw(self), enuserstatus, lcookie).ok() @@ -5340,13 +4643,8 @@ impl IRTCSession { pub unsafe fn RemoveStream(&self, lmediatype: i32, lcookie: isize) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RemoveStream)(::windows::core::Interface::as_raw(self), lmediatype, lcookie).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_EncryptionKey<'a, P0>(&self, lmediatype: i32, encryptionkey: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).put_EncryptionKey)(::windows::core::Interface::as_raw(self), lmediatype, encryptionkey.into().abi()).ok() + pub unsafe fn put_EncryptionKey(&self, lmediatype: i32, encryptionkey: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).put_EncryptionKey)(::windows::core::Interface::as_raw(self), lmediatype, ::core::mem::transmute_copy(encryptionkey)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -5398,37 +4696,19 @@ pub struct IRTCSession_Vtbl { Participants: usize, pub Answer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Terminate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enreason: RTC_TERMINATE_REASON) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Redirect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, entype: RTC_SESSION_TYPE, bstrlocalphoneuri: ::core::mem::ManuallyDrop, pprofile: *mut ::core::ffi::c_void, lflags: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Redirect: usize, - #[cfg(feature = "Win32_Foundation")] - pub AddParticipant: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstraddress: ::core::mem::ManuallyDrop, bstrname: ::core::mem::ManuallyDrop, ppparticipant: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddParticipant: usize, + pub Redirect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, entype: RTC_SESSION_TYPE, bstrlocalphoneuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pprofile: *mut ::core::ffi::c_void, lflags: i32) -> ::windows::core::HRESULT, + pub AddParticipant: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstraddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppparticipant: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub RemoveParticipant: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pparticipant: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub EnumerateParticipants: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub CanAddParticipants: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfcanadd: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub RedirectedUserURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstruseruri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RedirectedUserURI: usize, - #[cfg(feature = "Win32_Foundation")] - pub RedirectedUserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrusername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RedirectedUserName: usize, + pub RedirectedUserURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstruseruri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub RedirectedUserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrusername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub NextRedirectedUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SendMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmessageheader: ::core::mem::ManuallyDrop, bstrmessage: ::core::mem::ManuallyDrop, lcookie: isize) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SendMessage: usize, + pub SendMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmessageheader: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrmessage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lcookie: isize) -> ::windows::core::HRESULT, pub SendMessageStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enuserstatus: RTC_MESSAGING_USER_STATUS, lcookie: isize) -> ::windows::core::HRESULT, pub AddStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lmediatype: i32, lcookie: isize) -> ::windows::core::HRESULT, pub RemoveStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lmediatype: i32, lcookie: isize) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub put_EncryptionKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lmediatype: i32, encryptionkey: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - put_EncryptionKey: usize, + pub put_EncryptionKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lmediatype: i32, encryptionkey: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RealTimeCommunications\"`*"] #[repr(transparent)] @@ -5462,24 +4742,15 @@ impl IRTCSession2 { pub unsafe fn Terminate(&self, enreason: RTC_TERMINATE_REASON) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Terminate)(::windows::core::Interface::as_raw(self), enreason).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Redirect<'a, P0, P1>(&self, entype: RTC_SESSION_TYPE, bstrlocalphoneuri: P0, pprofile: P1, lflags: i32) -> ::windows::core::Result<()> + pub unsafe fn Redirect<'a, P0>(&self, entype: RTC_SESSION_TYPE, bstrlocalphoneuri: &::windows::core::BSTR, pprofile: P0, lflags: i32) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IRTCProfile>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IRTCProfile>>, { - (::windows::core::Interface::vtable(self).base__.Redirect)(::windows::core::Interface::as_raw(self), entype, bstrlocalphoneuri.into().abi(), pprofile.into().abi(), lflags).ok() + (::windows::core::Interface::vtable(self).base__.Redirect)(::windows::core::Interface::as_raw(self), entype, ::core::mem::transmute_copy(bstrlocalphoneuri), pprofile.into().abi(), lflags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddParticipant<'a, P0, P1>(&self, bstraddress: P0, bstrname: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn AddParticipant(&self, bstraddress: &::windows::core::BSTR, bstrname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.AddParticipant)(::windows::core::Interface::as_raw(self), bstraddress.into().abi(), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.AddParticipant)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstraddress), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn RemoveParticipant<'a, P0>(&self, pparticipant: P0) -> ::windows::core::Result<()> where @@ -5495,29 +4766,19 @@ impl IRTCSession2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.CanAddParticipants)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RedirectedUserURI(&self) -> ::windows::core::Result { + pub unsafe fn RedirectedUserURI(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.RedirectedUserURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.RedirectedUserURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RedirectedUserName(&self) -> ::windows::core::Result { + pub unsafe fn RedirectedUserName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.RedirectedUserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.RedirectedUserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn NextRedirectedUser(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.NextRedirectedUser)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SendMessage<'a, P0, P1>(&self, bstrmessageheader: P0, bstrmessage: P1, lcookie: isize) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SendMessage)(::windows::core::Interface::as_raw(self), bstrmessageheader.into().abi(), bstrmessage.into().abi(), lcookie).ok() + pub unsafe fn SendMessage(&self, bstrmessageheader: &::windows::core::BSTR, bstrmessage: &::windows::core::BSTR, lcookie: isize) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SendMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrmessageheader), ::core::mem::transmute_copy(bstrmessage), lcookie).ok() } pub unsafe fn SendMessageStatus(&self, enuserstatus: RTC_MESSAGING_USER_STATUS, lcookie: isize) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SendMessageStatus)(::windows::core::Interface::as_raw(self), enuserstatus, lcookie).ok() @@ -5528,22 +4789,11 @@ impl IRTCSession2 { pub unsafe fn RemoveStream(&self, lmediatype: i32, lcookie: isize) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.RemoveStream)(::windows::core::Interface::as_raw(self), lmediatype, lcookie).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_EncryptionKey<'a, P0>(&self, lmediatype: i32, encryptionkey: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.put_EncryptionKey)(::windows::core::Interface::as_raw(self), lmediatype, encryptionkey.into().abi()).ok() + pub unsafe fn put_EncryptionKey(&self, lmediatype: i32, encryptionkey: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.put_EncryptionKey)(::windows::core::Interface::as_raw(self), lmediatype, ::core::mem::transmute_copy(encryptionkey)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SendInfo<'a, P0, P1>(&self, bstrinfoheader: P0, bstrinfo: P1, lcookie: isize) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SendInfo)(::windows::core::Interface::as_raw(self), bstrinfoheader.into().abi(), bstrinfo.into().abi(), lcookie).ok() + pub unsafe fn SendInfo(&self, bstrinfoheader: &::windows::core::BSTR, bstrinfo: &::windows::core::BSTR, lcookie: isize) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SendInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrinfoheader), ::core::mem::transmute_copy(bstrinfo), lcookie).ok() } pub unsafe fn put_PreferredSecurityLevel(&self, ensecuritytype: RTC_SECURITY_TYPE, ensecuritylevel: RTC_SECURITY_LEVEL) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).put_PreferredSecurityLevel)(::windows::core::Interface::as_raw(self), ensecuritytype, ensecuritylevel).ok() @@ -5556,23 +4806,11 @@ impl IRTCSession2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).IsSecurityEnabled)(::windows::core::Interface::as_raw(self), ensecuritytype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AnswerWithSessionDescription<'a, P0, P1>(&self, bstrcontenttype: P0, bstrsessiondescription: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AnswerWithSessionDescription)(::windows::core::Interface::as_raw(self), bstrcontenttype.into().abi(), bstrsessiondescription.into().abi()).ok() + pub unsafe fn AnswerWithSessionDescription(&self, bstrcontenttype: &::windows::core::BSTR, bstrsessiondescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AnswerWithSessionDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcontenttype), ::core::mem::transmute_copy(bstrsessiondescription)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ReInviteWithSessionDescription<'a, P0, P1>(&self, bstrcontenttype: P0, bstrsessiondescription: P1, lcookie: isize) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ReInviteWithSessionDescription)(::windows::core::Interface::as_raw(self), bstrcontenttype.into().abi(), bstrsessiondescription.into().abi(), lcookie).ok() + pub unsafe fn ReInviteWithSessionDescription(&self, bstrcontenttype: &::windows::core::BSTR, bstrsessiondescription: &::windows::core::BSTR, lcookie: isize) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ReInviteWithSessionDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcontenttype), ::core::mem::transmute_copy(bstrsessiondescription), lcookie).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -5629,21 +4867,12 @@ unsafe impl ::windows::core::Interface for IRTCSession2 { #[doc(hidden)] pub struct IRTCSession2_Vtbl { pub base__: IRTCSession_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub SendInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinfoheader: ::core::mem::ManuallyDrop, bstrinfo: ::core::mem::ManuallyDrop, lcookie: isize) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SendInfo: usize, + pub SendInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrinfoheader: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrinfo: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lcookie: isize) -> ::windows::core::HRESULT, pub put_PreferredSecurityLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ensecuritytype: RTC_SECURITY_TYPE, ensecuritylevel: RTC_SECURITY_LEVEL) -> ::windows::core::HRESULT, pub get_PreferredSecurityLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ensecuritytype: RTC_SECURITY_TYPE, pensecuritylevel: *mut RTC_SECURITY_LEVEL) -> ::windows::core::HRESULT, pub IsSecurityEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ensecuritytype: RTC_SECURITY_TYPE, pfsecurityenabled: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub AnswerWithSessionDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcontenttype: ::core::mem::ManuallyDrop, bstrsessiondescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AnswerWithSessionDescription: usize, - #[cfg(feature = "Win32_Foundation")] - pub ReInviteWithSessionDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcontenttype: ::core::mem::ManuallyDrop, bstrsessiondescription: ::core::mem::ManuallyDrop, lcookie: isize) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ReInviteWithSessionDescription: usize, + pub AnswerWithSessionDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcontenttype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrsessiondescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ReInviteWithSessionDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcontenttype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrsessiondescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lcookie: isize) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RealTimeCommunications\"`*"] #[repr(transparent)] @@ -5655,50 +4884,25 @@ impl IRTCSessionCallControl { pub unsafe fn UnHold(&self, lcookie: isize) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).UnHold)(::windows::core::Interface::as_raw(self), lcookie).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Forward<'a, P0>(&self, bstrforwardtouri: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Forward)(::windows::core::Interface::as_raw(self), bstrforwardtouri.into().abi()).ok() + pub unsafe fn Forward(&self, bstrforwardtouri: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Forward)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrforwardtouri)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Refer<'a, P0, P1>(&self, bstrrefertouri: P0, bstrrefercookie: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Refer)(::windows::core::Interface::as_raw(self), bstrrefertouri.into().abi(), bstrrefercookie.into().abi()).ok() + pub unsafe fn Refer(&self, bstrrefertouri: &::windows::core::BSTR, bstrrefercookie: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Refer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrefertouri), ::core::mem::transmute_copy(bstrrefercookie)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetReferredByURI<'a, P0>(&self, bstrreferredbyuri: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetReferredByURI)(::windows::core::Interface::as_raw(self), bstrreferredbyuri.into().abi()).ok() + pub unsafe fn SetReferredByURI(&self, bstrreferredbyuri: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetReferredByURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrreferredbyuri)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ReferredByURI(&self) -> ::windows::core::Result { + pub unsafe fn ReferredByURI(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ReferredByURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ReferredByURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetReferCookie<'a, P0>(&self, bstrrefercookie: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetReferCookie)(::windows::core::Interface::as_raw(self), bstrrefercookie.into().abi()).ok() + pub unsafe fn SetReferCookie(&self, bstrrefercookie: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetReferCookie)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrefercookie)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ReferCookie(&self) -> ::windows::core::Result { + pub unsafe fn ReferCookie(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ReferCookie)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ReferCookie)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn IsReferred(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5746,44 +4950,20 @@ pub struct IRTCSessionCallControl_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub Hold: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lcookie: isize) -> ::windows::core::HRESULT, pub UnHold: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lcookie: isize) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Forward: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrforwardtouri: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Forward: usize, - #[cfg(feature = "Win32_Foundation")] - pub Refer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrefertouri: ::core::mem::ManuallyDrop, bstrrefercookie: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Refer: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetReferredByURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrreferredbyuri: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetReferredByURI: usize, - #[cfg(feature = "Win32_Foundation")] - pub ReferredByURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrreferredbyuri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ReferredByURI: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetReferCookie: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrefercookie: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetReferCookie: usize, - #[cfg(feature = "Win32_Foundation")] - pub ReferCookie: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrrefercookie: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ReferCookie: usize, + pub Forward: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrforwardtouri: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Refer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrefertouri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrrefercookie: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetReferredByURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrreferredbyuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ReferredByURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrreferredbyuri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetReferCookie: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrefercookie: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ReferCookie: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrrefercookie: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub IsReferred: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfisreferred: *mut i16) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RealTimeCommunications\"`*"] #[repr(transparent)] pub struct IRTCSessionDescriptionManager(::windows::core::IUnknown); impl IRTCSessionDescriptionManager { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EvaluateSessionDescription<'a, P0, P1>(&self, bstrcontenttype: P0, bstrsessiondescription: P1, pfapplicationsession: &mut i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).EvaluateSessionDescription)(::windows::core::Interface::as_raw(self), bstrcontenttype.into().abi(), bstrsessiondescription.into().abi(), ::core::mem::transmute(pfapplicationsession)).ok() + pub unsafe fn EvaluateSessionDescription(&self, bstrcontenttype: &::windows::core::BSTR, bstrsessiondescription: &::windows::core::BSTR, pfapplicationsession: &mut i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).EvaluateSessionDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcontenttype), ::core::mem::transmute_copy(bstrsessiondescription), ::core::mem::transmute(pfapplicationsession)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -5825,10 +5005,7 @@ unsafe impl ::windows::core::Interface for IRTCSessionDescriptionManager { #[doc(hidden)] pub struct IRTCSessionDescriptionManager_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub EvaluateSessionDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcontenttype: ::core::mem::ManuallyDrop, bstrsessiondescription: ::core::mem::ManuallyDrop, pfapplicationsession: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EvaluateSessionDescription: usize, + pub EvaluateSessionDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcontenttype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrsessiondescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pfapplicationsession: *mut i16) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RealTimeCommunications\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5848,11 +5025,9 @@ impl IRTCSessionOperationCompleteEvent { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).StatusCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StatusText(&self) -> ::windows::core::Result { + pub unsafe fn StatusText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).StatusText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).StatusText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -5924,10 +5099,7 @@ pub struct IRTCSessionOperationCompleteEvent_Vtbl { pub Session: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsession: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Cookie: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcookie: *mut isize) -> ::windows::core::HRESULT, pub StatusCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plstatuscode: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub StatusText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - StatusText: usize, + pub StatusText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RealTimeCommunications\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5947,19 +5119,15 @@ impl IRTCSessionOperationCompleteEvent2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.StatusCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StatusText(&self) -> ::windows::core::Result { + pub unsafe fn StatusText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.StatusText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.StatusText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Participant(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Participant)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetRemoteSessionDescription(&self, pbstrcontenttype: &mut super::super::Foundation::BSTR, pbstrsessiondescription: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetRemoteSessionDescription(&self, pbstrcontenttype: &mut ::windows::core::BSTR, pbstrsessiondescription: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetRemoteSessionDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrcontenttype), ::core::mem::transmute(pbstrsessiondescription)).ok() } } @@ -6048,10 +5216,7 @@ unsafe impl ::windows::core::Interface for IRTCSessionOperationCompleteEvent2 { pub struct IRTCSessionOperationCompleteEvent2_Vtbl { pub base__: IRTCSessionOperationCompleteEvent_Vtbl, pub Participant: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppparticipant: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetRemoteSessionDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcontenttype: *mut super::super::Foundation::BSTR, pbstrsessiondescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetRemoteSessionDescription: usize, + pub GetRemoteSessionDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcontenttype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrsessiondescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RealTimeCommunications\"`*"] #[repr(transparent)] @@ -6123,11 +5288,9 @@ impl IRTCSessionReferStatusEvent { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).StatusCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StatusText(&self) -> ::windows::core::Result { + pub unsafe fn StatusText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).StatusText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).StatusText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -6199,10 +5362,7 @@ pub struct IRTCSessionReferStatusEvent_Vtbl { pub Session: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsession: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub ReferStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penreferstatus: *mut RTC_SESSION_REFER_STATUS) -> ::windows::core::HRESULT, pub StatusCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plstatuscode: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub StatusText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - StatusText: usize, + pub StatusText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RealTimeCommunications\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6214,23 +5374,17 @@ impl IRTCSessionReferredEvent { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Session)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ReferredByURI(&self) -> ::windows::core::Result { + pub unsafe fn ReferredByURI(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ReferredByURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ReferredByURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ReferToURI(&self) -> ::windows::core::Result { + pub unsafe fn ReferToURI(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ReferToURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ReferToURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ReferCookie(&self) -> ::windows::core::Result { + pub unsafe fn ReferCookie(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ReferCookie)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ReferCookie)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Accept(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Accept)(::windows::core::Interface::as_raw(self)).ok() @@ -6309,18 +5463,9 @@ unsafe impl ::windows::core::Interface for IRTCSessionReferredEvent { pub struct IRTCSessionReferredEvent_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub Session: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsession: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ReferredByURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrreferredbyuri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ReferredByURI: usize, - #[cfg(feature = "Win32_Foundation")] - pub ReferToURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrreferouri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ReferToURI: usize, - #[cfg(feature = "Win32_Foundation")] - pub ReferCookie: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrrefercookie: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ReferCookie: usize, + pub ReferredByURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrreferredbyuri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ReferToURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrreferouri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ReferCookie: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrrefercookie: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Accept: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Reject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub SetReferredSessionState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enstate: RTC_SESSION_STATE) -> ::windows::core::HRESULT, @@ -6343,11 +5488,9 @@ impl IRTCSessionStateChangeEvent { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).StatusCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StatusText(&self) -> ::windows::core::Result { + pub unsafe fn StatusText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).StatusText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).StatusText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -6419,10 +5562,7 @@ pub struct IRTCSessionStateChangeEvent_Vtbl { pub Session: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsession: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penstate: *mut RTC_SESSION_STATE) -> ::windows::core::HRESULT, pub StatusCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plstatuscode: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub StatusText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - StatusText: usize, + pub StatusText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrstatustext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RealTimeCommunications\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6442,11 +5582,9 @@ impl IRTCSessionStateChangeEvent2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.StatusCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StatusText(&self) -> ::windows::core::Result { + pub unsafe fn StatusText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.StatusText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.StatusText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn MediaTypes(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6460,9 +5598,7 @@ impl IRTCSessionStateChangeEvent2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).IsForked)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetRemoteSessionDescription(&self, pbstrcontenttype: &mut super::super::Foundation::BSTR, pbstrsessiondescription: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetRemoteSessionDescription(&self, pbstrcontenttype: &mut ::windows::core::BSTR, pbstrsessiondescription: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetRemoteSessionDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrcontenttype), ::core::mem::transmute(pbstrsessiondescription)).ok() } } @@ -6553,10 +5689,7 @@ pub struct IRTCSessionStateChangeEvent2_Vtbl { pub MediaTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmediatypes: *mut i32) -> ::windows::core::HRESULT, pub get_RemotePreferredSecurityLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ensecuritytype: RTC_SECURITY_TYPE, pensecuritylevel: *mut RTC_SECURITY_LEVEL) -> ::windows::core::HRESULT, pub IsForked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfisforked: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetRemoteSessionDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcontenttype: *mut super::super::Foundation::BSTR, pbstrsessiondescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetRemoteSessionDescription: usize, + pub GetRemoteSessionDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcontenttype: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrsessiondescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RealTimeCommunications\"`*"] #[repr(transparent)] @@ -6620,29 +5753,16 @@ pub struct IRTCUserSearch_Vtbl { #[repr(transparent)] pub struct IRTCUserSearchQuery(::windows::core::IUnknown); impl IRTCUserSearchQuery { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_SearchTerm<'a, P0, P1>(&self, bstrname: P0, bstrvalue: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).put_SearchTerm)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), bstrvalue.into().abi()).ok() + pub unsafe fn put_SearchTerm(&self, bstrname: &::windows::core::BSTR, bstrvalue: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).put_SearchTerm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute_copy(bstrvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_SearchTerm<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn get_SearchTerm(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_SearchTerm)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_SearchTerm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SearchTerms(&self) -> ::windows::core::Result { + pub unsafe fn SearchTerms(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SearchTerms)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SearchTerms)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn put_SearchPreference(&self, enpreference: RTC_USER_SEARCH_PREFERENCE, lvalue: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).put_SearchPreference)(::windows::core::Interface::as_raw(self), enpreference, lvalue).ok() @@ -6651,19 +5771,12 @@ impl IRTCUserSearchQuery { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).get_SearchPreference)(::windows::core::Interface::as_raw(self), enpreference, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSearchDomain<'a, P0>(&self, bstrdomain: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSearchDomain)(::windows::core::Interface::as_raw(self), bstrdomain.into().abi()).ok() + pub unsafe fn SetSearchDomain(&self, bstrdomain: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSearchDomain)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdomain)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SearchDomain(&self) -> ::windows::core::Result { + pub unsafe fn SearchDomain(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SearchDomain)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SearchDomain)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -6705,38 +5818,21 @@ unsafe impl ::windows::core::Interface for IRTCUserSearchQuery { #[doc(hidden)] pub struct IRTCUserSearchQuery_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub put_SearchTerm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, bstrvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - put_SearchTerm: usize, - #[cfg(feature = "Win32_Foundation")] - pub get_SearchTerm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, pbstrvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_SearchTerm: usize, - #[cfg(feature = "Win32_Foundation")] - pub SearchTerms: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrnames: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SearchTerms: usize, + pub put_SearchTerm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub get_SearchTerm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SearchTerms: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrnames: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub put_SearchPreference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enpreference: RTC_USER_SEARCH_PREFERENCE, lvalue: i32) -> ::windows::core::HRESULT, pub get_SearchPreference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enpreference: RTC_USER_SEARCH_PREFERENCE, plvalue: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetSearchDomain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdomain: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSearchDomain: usize, - #[cfg(feature = "Win32_Foundation")] - pub SearchDomain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdomain: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SearchDomain: usize, + pub SetSearchDomain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdomain: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SearchDomain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdomain: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RealTimeCommunications\"`*"] #[repr(transparent)] pub struct IRTCUserSearchResult(::windows::core::IUnknown); impl IRTCUserSearchResult { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_Value(&self, encolumn: RTC_USER_SEARCH_COLUMN) -> ::windows::core::Result { + pub unsafe fn get_Value(&self, encolumn: RTC_USER_SEARCH_COLUMN) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_Value)(::windows::core::Interface::as_raw(self), encolumn, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_Value)(::windows::core::Interface::as_raw(self), encolumn, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -6778,10 +5874,7 @@ unsafe impl ::windows::core::Interface for IRTCUserSearchResult { #[doc(hidden)] pub struct IRTCUserSearchResult_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub get_Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encolumn: RTC_USER_SEARCH_COLUMN, pbstrvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_Value: usize, + pub get_Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, encolumn: RTC_USER_SEARCH_COLUMN, pbstrvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RealTimeCommunications\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6901,47 +5994,26 @@ pub struct IRTCUserSearchResultsEvent_Vtbl { #[repr(transparent)] pub struct IRTCWatcher(::windows::core::IUnknown); impl IRTCWatcher { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PresentityURI(&self) -> ::windows::core::Result { + pub unsafe fn PresentityURI(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.PresentityURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.PresentityURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPresentityURI<'a, P0>(&self, bstrpresentityuri: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetPresentityURI)(::windows::core::Interface::as_raw(self), bstrpresentityuri.into().abi()).ok() + pub unsafe fn SetPresentityURI(&self, bstrpresentityuri: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetPresentityURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpresentityuri)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Data(&self) -> ::windows::core::Result { + pub unsafe fn Data(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Data)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Data)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetData<'a, P0>(&self, bstrdata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetData)(::windows::core::Interface::as_raw(self), bstrdata.into().abi()).ok() + pub unsafe fn SetData(&self, bstrdata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdata)).ok() } pub unsafe fn Persistent(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7019,47 +6091,26 @@ pub struct IRTCWatcher_Vtbl { #[repr(transparent)] pub struct IRTCWatcher2(::windows::core::IUnknown); impl IRTCWatcher2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PresentityURI(&self) -> ::windows::core::Result { + pub unsafe fn PresentityURI(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.PresentityURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.PresentityURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPresentityURI<'a, P0>(&self, bstrpresentityuri: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetPresentityURI)(::windows::core::Interface::as_raw(self), bstrpresentityuri.into().abi()).ok() + pub unsafe fn SetPresentityURI(&self, bstrpresentityuri: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetPresentityURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpresentityuri)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, bstrname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetName)(::windows::core::Interface::as_raw(self), bstrname.into().abi()).ok() + pub unsafe fn SetName(&self, bstrname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Data(&self) -> ::windows::core::Result { + pub unsafe fn Data(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Data)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Data)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetData<'a, P0>(&self, bstrdata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetData)(::windows::core::Interface::as_raw(self), bstrdata.into().abi()).ok() + pub unsafe fn SetData(&self, bstrdata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdata)).ok() } pub unsafe fn Persistent(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); diff --git a/crates/libs/windows/src/Windows/Win32/System/RemoteAssistance/impl.rs b/crates/libs/windows/src/Windows/Win32/System/RemoteAssistance/impl.rs index b9ae793593..f28097f67c 100644 --- a/crates/libs/windows/src/Windows/Win32/System/RemoteAssistance/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/RemoteAssistance/impl.rs @@ -28,17 +28,14 @@ impl IRendezvousApplication_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IRendezvousSession_Impl: Sized { fn State(&self) -> ::windows::core::Result; - fn RemoteUser(&self) -> ::windows::core::Result; + fn RemoteUser(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Flags(&self) -> ::windows::core::Result; - fn SendContextData(&self, bstrdata: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Terminate(&self, hr: ::windows::core::HRESULT, bstrappdata: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SendContextData(&self, bstrdata: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Terminate(&self, hr: ::windows::core::HRESULT, bstrappdata: &::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IRendezvousSession {} -#[cfg(feature = "Win32_Foundation")] impl IRendezvousSession_Vtbl { pub const fn new, Impl: IRendezvousSession_Impl, const OFFSET: isize>() -> IRendezvousSession_Vtbl { unsafe extern "system" fn State, Impl: IRendezvousSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, psessionstate: *mut RENDEZVOUS_SESSION_STATE) -> ::windows::core::HRESULT { @@ -52,7 +49,7 @@ impl IRendezvousSession_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RemoteUser, Impl: IRendezvousSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RemoteUser, Impl: IRendezvousSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrusername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RemoteUser() { @@ -74,12 +71,12 @@ impl IRendezvousSession_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SendContextData, Impl: IRendezvousSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SendContextData, Impl: IRendezvousSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SendContextData(::core::mem::transmute(&bstrdata)).into() } - unsafe extern "system" fn Terminate, Impl: IRendezvousSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hr: ::windows::core::HRESULT, bstrappdata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Terminate, Impl: IRendezvousSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hr: ::windows::core::HRESULT, bstrappdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Terminate(::core::mem::transmute_copy(&hr), ::core::mem::transmute(&bstrappdata)).into() diff --git a/crates/libs/windows/src/Windows/Win32/System/RemoteAssistance/mod.rs b/crates/libs/windows/src/Windows/Win32/System/RemoteAssistance/mod.rs index 3333ed7ce6..c0df639c9b 100644 --- a/crates/libs/windows/src/Windows/Win32/System/RemoteAssistance/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/RemoteAssistance/mod.rs @@ -131,31 +131,19 @@ impl IRendezvousSession { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).State)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoteUser(&self) -> ::windows::core::Result { + pub unsafe fn RemoteUser(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RemoteUser)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RemoteUser)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Flags(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Flags)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SendContextData<'a, P0>(&self, bstrdata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SendContextData)(::windows::core::Interface::as_raw(self), bstrdata.into().abi()).ok() + pub unsafe fn SendContextData(&self, bstrdata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SendContextData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdata)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Terminate<'a, P0>(&self, hr: ::windows::core::HRESULT, bstrappdata: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Terminate)(::windows::core::Interface::as_raw(self), hr, bstrappdata.into().abi()).ok() + pub unsafe fn Terminate(&self, hr: ::windows::core::HRESULT, bstrappdata: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Terminate)(::windows::core::Interface::as_raw(self), hr, ::core::mem::transmute_copy(bstrappdata)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -198,19 +186,10 @@ unsafe impl ::windows::core::Interface for IRendezvousSession { pub struct IRendezvousSession_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psessionstate: *mut RENDEZVOUS_SESSION_STATE) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub RemoteUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RemoteUser: usize, + pub RemoteUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrusername: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Flags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pflags: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SendContextData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SendContextData: usize, - #[cfg(feature = "Win32_Foundation")] - pub Terminate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hr: ::windows::core::HRESULT, bstrappdata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Terminate: usize, + pub SendContextData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Terminate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hr: ::windows::core::HRESULT, bstrappdata: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RemoteAssistance\"`*"] pub const DISPID_EVENT_ON_CONTEXT_DATA: u32 = 7u32; diff --git a/crates/libs/windows/src/Windows/Win32/System/RemoteDesktop/impl.rs b/crates/libs/windows/src/Windows/Win32/System/RemoteDesktop/impl.rs index 1bb0c07025..bd70eb92c3 100644 --- a/crates/libs/windows/src/Windows/Win32/System/RemoteDesktop/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/RemoteDesktop/impl.rs @@ -1,11 +1,11 @@ #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IADsTSUserEx_Impl: Sized + super::Com::IDispatch_Impl { - fn TerminalServicesProfilePath(&self) -> ::windows::core::Result; - fn SetTerminalServicesProfilePath(&self, pnewval: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn TerminalServicesHomeDirectory(&self) -> ::windows::core::Result; - fn SetTerminalServicesHomeDirectory(&self, pnewval: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn TerminalServicesHomeDrive(&self) -> ::windows::core::Result; - fn SetTerminalServicesHomeDrive(&self, pnewval: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn TerminalServicesProfilePath(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetTerminalServicesProfilePath(&self, pnewval: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn TerminalServicesHomeDirectory(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetTerminalServicesHomeDirectory(&self, pnewval: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn TerminalServicesHomeDrive(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetTerminalServicesHomeDrive(&self, pnewval: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn AllowLogon(&self) -> ::windows::core::Result; fn SetAllowLogon(&self, newval: i32) -> ::windows::core::Result<()>; fn EnableRemoteControl(&self) -> ::windows::core::Result; @@ -26,17 +26,17 @@ pub trait IADsTSUserEx_Impl: Sized + super::Com::IDispatch_Impl { fn SetConnectClientPrintersAtLogon(&self, newval: i32) -> ::windows::core::Result<()>; fn DefaultToMainPrinter(&self) -> ::windows::core::Result; fn SetDefaultToMainPrinter(&self, newval: i32) -> ::windows::core::Result<()>; - fn TerminalServicesWorkDirectory(&self) -> ::windows::core::Result; - fn SetTerminalServicesWorkDirectory(&self, pnewval: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn TerminalServicesInitialProgram(&self) -> ::windows::core::Result; - fn SetTerminalServicesInitialProgram(&self, pnewval: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn TerminalServicesWorkDirectory(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetTerminalServicesWorkDirectory(&self, pnewval: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn TerminalServicesInitialProgram(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetTerminalServicesInitialProgram(&self, pnewval: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IADsTSUserEx {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IADsTSUserEx_Vtbl { pub const fn new, Impl: IADsTSUserEx_Impl, const OFFSET: isize>() -> IADsTSUserEx_Vtbl { - unsafe extern "system" fn TerminalServicesProfilePath, Impl: IADsTSUserEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TerminalServicesProfilePath, Impl: IADsTSUserEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TerminalServicesProfilePath() { @@ -47,12 +47,12 @@ impl IADsTSUserEx_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetTerminalServicesProfilePath, Impl: IADsTSUserEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pnewval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetTerminalServicesProfilePath, Impl: IADsTSUserEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pnewval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetTerminalServicesProfilePath(::core::mem::transmute(&pnewval)).into() } - unsafe extern "system" fn TerminalServicesHomeDirectory, Impl: IADsTSUserEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TerminalServicesHomeDirectory, Impl: IADsTSUserEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TerminalServicesHomeDirectory() { @@ -63,12 +63,12 @@ impl IADsTSUserEx_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetTerminalServicesHomeDirectory, Impl: IADsTSUserEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pnewval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetTerminalServicesHomeDirectory, Impl: IADsTSUserEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pnewval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetTerminalServicesHomeDirectory(::core::mem::transmute(&pnewval)).into() } - unsafe extern "system" fn TerminalServicesHomeDrive, Impl: IADsTSUserEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TerminalServicesHomeDrive, Impl: IADsTSUserEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TerminalServicesHomeDrive() { @@ -79,7 +79,7 @@ impl IADsTSUserEx_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetTerminalServicesHomeDrive, Impl: IADsTSUserEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pnewval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetTerminalServicesHomeDrive, Impl: IADsTSUserEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pnewval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetTerminalServicesHomeDrive(::core::mem::transmute(&pnewval)).into() @@ -244,7 +244,7 @@ impl IADsTSUserEx_Vtbl { let this = (*this).get_impl(); this.SetDefaultToMainPrinter(::core::mem::transmute_copy(&newval)).into() } - unsafe extern "system" fn TerminalServicesWorkDirectory, Impl: IADsTSUserEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TerminalServicesWorkDirectory, Impl: IADsTSUserEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TerminalServicesWorkDirectory() { @@ -255,12 +255,12 @@ impl IADsTSUserEx_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetTerminalServicesWorkDirectory, Impl: IADsTSUserEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pnewval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetTerminalServicesWorkDirectory, Impl: IADsTSUserEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pnewval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetTerminalServicesWorkDirectory(::core::mem::transmute(&pnewval)).into() } - unsafe extern "system" fn TerminalServicesInitialProgram, Impl: IADsTSUserEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TerminalServicesInitialProgram, Impl: IADsTSUserEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TerminalServicesInitialProgram() { @@ -271,7 +271,7 @@ impl IADsTSUserEx_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetTerminalServicesInitialProgram, Impl: IADsTSUserEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pnewval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetTerminalServicesInitialProgram, Impl: IADsTSUserEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pnewval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetTerminalServicesInitialProgram(::core::mem::transmute(&pnewval)).into() @@ -596,10 +596,10 @@ pub trait IRemoteDesktopClient_Impl: Sized + super::Com::IDispatch_Impl { fn Settings(&self) -> ::windows::core::Result; fn Actions(&self) -> ::windows::core::Result; fn TouchPointer(&self) -> ::windows::core::Result; - fn DeleteSavedCredentials(&self, servername: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn DeleteSavedCredentials(&self, servername: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn UpdateSessionDisplaySettings(&self, width: u32, height: u32) -> ::windows::core::Result<()>; - fn attachEvent(&self, eventname: &super::super::Foundation::BSTR, callback: &::core::option::Option) -> ::windows::core::Result<()>; - fn detachEvent(&self, eventname: &super::super::Foundation::BSTR, callback: &::core::option::Option) -> ::windows::core::Result<()>; + fn attachEvent(&self, eventname: &::windows::core::BSTR, callback: &::core::option::Option) -> ::windows::core::Result<()>; + fn detachEvent(&self, eventname: &::windows::core::BSTR, callback: &::core::option::Option) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IRemoteDesktopClient {} @@ -654,7 +654,7 @@ impl IRemoteDesktopClient_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DeleteSavedCredentials, Impl: IRemoteDesktopClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, servername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteSavedCredentials, Impl: IRemoteDesktopClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, servername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteSavedCredentials(::core::mem::transmute(&servername)).into() @@ -664,12 +664,12 @@ impl IRemoteDesktopClient_Vtbl { let this = (*this).get_impl(); this.UpdateSessionDisplaySettings(::core::mem::transmute_copy(&width), ::core::mem::transmute_copy(&height)).into() } - unsafe extern "system" fn attachEvent, Impl: IRemoteDesktopClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, eventname: ::core::mem::ManuallyDrop, callback: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn attachEvent, Impl: IRemoteDesktopClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, eventname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, callback: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.attachEvent(::core::mem::transmute(&eventname), ::core::mem::transmute(&callback)).into() } - unsafe extern "system" fn detachEvent, Impl: IRemoteDesktopClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, eventname: ::core::mem::ManuallyDrop, callback: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn detachEvent, Impl: IRemoteDesktopClient_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, eventname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, callback: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.detachEvent(::core::mem::transmute(&eventname), ::core::mem::transmute(&callback)).into() @@ -697,7 +697,7 @@ pub trait IRemoteDesktopClientActions_Impl: Sized + super::Com::IDispatch_Impl { fn SuspendScreenUpdates(&self) -> ::windows::core::Result<()>; fn ResumeScreenUpdates(&self) -> ::windows::core::Result<()>; fn ExecuteRemoteAction(&self, remoteaction: RemoteActionType) -> ::windows::core::Result<()>; - fn GetSnapshot(&self, snapshotencoding: SnapshotEncodingType, snapshotformat: SnapshotFormatType, snapshotwidth: u32, snapshotheight: u32) -> ::windows::core::Result; + fn GetSnapshot(&self, snapshotencoding: SnapshotEncodingType, snapshotformat: SnapshotFormatType, snapshotwidth: u32, snapshotheight: u32) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IRemoteDesktopClientActions {} @@ -719,7 +719,7 @@ impl IRemoteDesktopClientActions_Vtbl { let this = (*this).get_impl(); this.ExecuteRemoteAction(::core::mem::transmute_copy(&remoteaction)).into() } - unsafe extern "system" fn GetSnapshot, Impl: IRemoteDesktopClientActions_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, snapshotencoding: SnapshotEncodingType, snapshotformat: SnapshotFormatType, snapshotwidth: u32, snapshotheight: u32, snapshotdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSnapshot, Impl: IRemoteDesktopClientActions_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, snapshotencoding: SnapshotEncodingType, snapshotformat: SnapshotFormatType, snapshotwidth: u32, snapshotheight: u32, snapshotdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetSnapshot(::core::mem::transmute_copy(&snapshotencoding), ::core::mem::transmute_copy(&snapshotformat), ::core::mem::transmute_copy(&snapshotwidth), ::core::mem::transmute_copy(&snapshotheight)) { @@ -744,22 +744,22 @@ impl IRemoteDesktopClientActions_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IRemoteDesktopClientSettings_Impl: Sized + super::Com::IDispatch_Impl { - fn ApplySettings(&self, rdpfilecontents: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn RetrieveSettings(&self) -> ::windows::core::Result; - fn GetRdpProperty(&self, propertyname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn SetRdpProperty(&self, propertyname: &super::super::Foundation::BSTR, value: &super::Com::VARIANT) -> ::windows::core::Result<()>; + fn ApplySettings(&self, rdpfilecontents: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn RetrieveSettings(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetRdpProperty(&self, propertyname: &::windows::core::BSTR) -> ::windows::core::Result; + fn SetRdpProperty(&self, propertyname: &::windows::core::BSTR, value: &super::Com::VARIANT) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IRemoteDesktopClientSettings {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IRemoteDesktopClientSettings_Vtbl { pub const fn new, Impl: IRemoteDesktopClientSettings_Impl, const OFFSET: isize>() -> IRemoteDesktopClientSettings_Vtbl { - unsafe extern "system" fn ApplySettings, Impl: IRemoteDesktopClientSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, rdpfilecontents: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ApplySettings, Impl: IRemoteDesktopClientSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, rdpfilecontents: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ApplySettings(::core::mem::transmute(&rdpfilecontents)).into() } - unsafe extern "system" fn RetrieveSettings, Impl: IRemoteDesktopClientSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, rdpfilecontents: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RetrieveSettings, Impl: IRemoteDesktopClientSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, rdpfilecontents: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RetrieveSettings() { @@ -770,7 +770,7 @@ impl IRemoteDesktopClientSettings_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetRdpProperty, Impl: IRemoteDesktopClientSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop, value: *mut super::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetRdpProperty, Impl: IRemoteDesktopClientSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: *mut super::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetRdpProperty(::core::mem::transmute(&propertyname)) { @@ -781,7 +781,7 @@ impl IRemoteDesktopClientSettings_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetRdpProperty, Impl: IRemoteDesktopClientSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetRdpProperty, Impl: IRemoteDesktopClientSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetRdpProperty(::core::mem::transmute(&propertyname), ::core::mem::transmute(&value)).into() @@ -891,13 +891,10 @@ impl IRemoteSystemAdditionalInfoProvider_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait ITSGAccountingEngine_Impl: Sized { fn DoAccounting(&self, accountingdatatype: AAAccountingDataType, accountingdata: &AAAccountingData) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ITSGAccountingEngine {} -#[cfg(feature = "Win32_Foundation")] impl ITSGAccountingEngine_Vtbl { pub const fn new, Impl: ITSGAccountingEngine_Impl, const OFFSET: isize>() -> ITSGAccountingEngine_Vtbl { unsafe extern "system" fn DoAccounting, Impl: ITSGAccountingEngine_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, accountingdatatype: AAAccountingDataType, accountingdata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { @@ -913,7 +910,7 @@ impl ITSGAccountingEngine_Vtbl { } #[cfg(feature = "Win32_Foundation")] pub trait ITSGAuthenticateUserSink_Impl: Sized { - fn OnUserAuthenticated(&self, username: &super::super::Foundation::BSTR, userdomain: &super::super::Foundation::BSTR, context: usize, usertoken: super::super::Foundation::HANDLE_PTR) -> ::windows::core::Result<()>; + fn OnUserAuthenticated(&self, username: &::windows::core::BSTR, userdomain: &::windows::core::BSTR, context: usize, usertoken: super::super::Foundation::HANDLE_PTR) -> ::windows::core::Result<()>; fn OnUserAuthenticationFailed(&self, context: usize, genericerrorcode: ::windows::core::HRESULT, specificerrorcode: ::windows::core::HRESULT) -> ::windows::core::Result<()>; fn ReauthenticateUser(&self, context: usize) -> ::windows::core::Result<()>; fn DisconnectUser(&self, context: usize) -> ::windows::core::Result<()>; @@ -923,7 +920,7 @@ impl ::windows::core::RuntimeName for ITSGAuthenticateUserSink {} #[cfg(feature = "Win32_Foundation")] impl ITSGAuthenticateUserSink_Vtbl { pub const fn new, Impl: ITSGAuthenticateUserSink_Impl, const OFFSET: isize>() -> ITSGAuthenticateUserSink_Vtbl { - unsafe extern "system" fn OnUserAuthenticated, Impl: ITSGAuthenticateUserSink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, username: ::core::mem::ManuallyDrop, userdomain: ::core::mem::ManuallyDrop, context: usize, usertoken: super::super::Foundation::HANDLE_PTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnUserAuthenticated, Impl: ITSGAuthenticateUserSink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, username: ::core::mem::ManuallyDrop<::windows::core::BSTR>, userdomain: ::core::mem::ManuallyDrop<::windows::core::BSTR>, context: usize, usertoken: super::super::Foundation::HANDLE_PTR) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnUserAuthenticated(::core::mem::transmute(&username), ::core::mem::transmute(&userdomain), ::core::mem::transmute_copy(&context), ::core::mem::transmute_copy(&usertoken)).into() @@ -999,16 +996,13 @@ impl ITSGAuthorizeConnectionSink_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait ITSGAuthorizeResourceSink_Impl: Sized { - fn OnChannelAuthorized(&self, hrin: ::windows::core::HRESULT, mainsessionid: &::windows::core::GUID, subsessionid: i32, allowedresourcenames: *const super::super::Foundation::BSTR, numallowedresourcenames: u32, failedresourcenames: *const super::super::Foundation::BSTR, numfailedresourcenames: u32) -> ::windows::core::Result<()>; + fn OnChannelAuthorized(&self, hrin: ::windows::core::HRESULT, mainsessionid: &::windows::core::GUID, subsessionid: i32, allowedresourcenames: *const ::windows::core::BSTR, numallowedresourcenames: u32, failedresourcenames: *const ::windows::core::BSTR, numfailedresourcenames: u32) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ITSGAuthorizeResourceSink {} -#[cfg(feature = "Win32_Foundation")] impl ITSGAuthorizeResourceSink_Vtbl { pub const fn new, Impl: ITSGAuthorizeResourceSink_Impl, const OFFSET: isize>() -> ITSGAuthorizeResourceSink_Vtbl { - unsafe extern "system" fn OnChannelAuthorized, Impl: ITSGAuthorizeResourceSink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hrin: ::windows::core::HRESULT, mainsessionid: ::windows::core::GUID, subsessionid: i32, allowedresourcenames: *const super::super::Foundation::BSTR, numallowedresourcenames: u32, failedresourcenames: *const super::super::Foundation::BSTR, numfailedresourcenames: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnChannelAuthorized, Impl: ITSGAuthorizeResourceSink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hrin: ::windows::core::HRESULT, mainsessionid: ::windows::core::GUID, subsessionid: i32, allowedresourcenames: *const ::core::mem::ManuallyDrop<::windows::core::BSTR>, numallowedresourcenames: u32, failedresourcenames: *const ::core::mem::ManuallyDrop<::windows::core::BSTR>, numfailedresourcenames: u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnChannelAuthorized(::core::mem::transmute_copy(&hrin), ::core::mem::transmute(&mainsessionid), ::core::mem::transmute_copy(&subsessionid), ::core::mem::transmute_copy(&allowedresourcenames), ::core::mem::transmute_copy(&numallowedresourcenames), ::core::mem::transmute_copy(&failedresourcenames), ::core::mem::transmute_copy(&numfailedresourcenames)).into() @@ -1021,8 +1015,8 @@ impl ITSGAuthorizeResourceSink_Vtbl { } #[cfg(feature = "Win32_Foundation")] pub trait ITSGPolicyEngine_Impl: Sized { - fn AuthorizeConnection(&self, mainsessionid: &::windows::core::GUID, username: &super::super::Foundation::BSTR, authtype: AAAuthSchemes, clientmachineip: &super::super::Foundation::BSTR, clientmachinename: &super::super::Foundation::BSTR, sohdata: *const u8, numsohbytes: u32, cookiedata: *const u8, numcookiebytes: u32, usertoken: super::super::Foundation::HANDLE_PTR, psink: &::core::option::Option) -> ::windows::core::Result<()>; - fn AuthorizeResource(&self, mainsessionid: &::windows::core::GUID, subsessionid: i32, username: &super::super::Foundation::BSTR, resourcenames: *const super::super::Foundation::BSTR, numresources: u32, alternateresourcenames: *const super::super::Foundation::BSTR, numalternateresourcename: u32, portnumber: u32, operation: &super::super::Foundation::BSTR, cookie: *const u8, numbytesincookie: u32, psink: &::core::option::Option) -> ::windows::core::Result<()>; + fn AuthorizeConnection(&self, mainsessionid: &::windows::core::GUID, username: &::windows::core::BSTR, authtype: AAAuthSchemes, clientmachineip: &::windows::core::BSTR, clientmachinename: &::windows::core::BSTR, sohdata: *const u8, numsohbytes: u32, cookiedata: *const u8, numcookiebytes: u32, usertoken: super::super::Foundation::HANDLE_PTR, psink: &::core::option::Option) -> ::windows::core::Result<()>; + fn AuthorizeResource(&self, mainsessionid: &::windows::core::GUID, subsessionid: i32, username: &::windows::core::BSTR, resourcenames: *const ::windows::core::BSTR, numresources: u32, alternateresourcenames: *const ::windows::core::BSTR, numalternateresourcename: u32, portnumber: u32, operation: &::windows::core::BSTR, cookie: *const u8, numbytesincookie: u32, psink: &::core::option::Option) -> ::windows::core::Result<()>; fn Refresh(&self) -> ::windows::core::Result<()>; fn IsQuarantineEnabled(&self) -> ::windows::core::Result; } @@ -1031,12 +1025,12 @@ impl ::windows::core::RuntimeName for ITSGPolicyEngine {} #[cfg(feature = "Win32_Foundation")] impl ITSGPolicyEngine_Vtbl { pub const fn new, Impl: ITSGPolicyEngine_Impl, const OFFSET: isize>() -> ITSGPolicyEngine_Vtbl { - unsafe extern "system" fn AuthorizeConnection, Impl: ITSGPolicyEngine_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mainsessionid: ::windows::core::GUID, username: ::core::mem::ManuallyDrop, authtype: AAAuthSchemes, clientmachineip: ::core::mem::ManuallyDrop, clientmachinename: ::core::mem::ManuallyDrop, sohdata: *const u8, numsohbytes: u32, cookiedata: *const u8, numcookiebytes: u32, usertoken: super::super::Foundation::HANDLE_PTR, psink: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn AuthorizeConnection, Impl: ITSGPolicyEngine_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mainsessionid: ::windows::core::GUID, username: ::core::mem::ManuallyDrop<::windows::core::BSTR>, authtype: AAAuthSchemes, clientmachineip: ::core::mem::ManuallyDrop<::windows::core::BSTR>, clientmachinename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, sohdata: *const u8, numsohbytes: u32, cookiedata: *const u8, numcookiebytes: u32, usertoken: super::super::Foundation::HANDLE_PTR, psink: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AuthorizeConnection(::core::mem::transmute(&mainsessionid), ::core::mem::transmute(&username), ::core::mem::transmute_copy(&authtype), ::core::mem::transmute(&clientmachineip), ::core::mem::transmute(&clientmachinename), ::core::mem::transmute_copy(&sohdata), ::core::mem::transmute_copy(&numsohbytes), ::core::mem::transmute_copy(&cookiedata), ::core::mem::transmute_copy(&numcookiebytes), ::core::mem::transmute_copy(&usertoken), ::core::mem::transmute(&psink)).into() } - unsafe extern "system" fn AuthorizeResource, Impl: ITSGPolicyEngine_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mainsessionid: ::windows::core::GUID, subsessionid: i32, username: ::core::mem::ManuallyDrop, resourcenames: *const super::super::Foundation::BSTR, numresources: u32, alternateresourcenames: *const super::super::Foundation::BSTR, numalternateresourcename: u32, portnumber: u32, operation: ::core::mem::ManuallyDrop, cookie: *const u8, numbytesincookie: u32, psink: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn AuthorizeResource, Impl: ITSGPolicyEngine_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, mainsessionid: ::windows::core::GUID, subsessionid: i32, username: ::core::mem::ManuallyDrop<::windows::core::BSTR>, resourcenames: *const ::core::mem::ManuallyDrop<::windows::core::BSTR>, numresources: u32, alternateresourcenames: *const ::core::mem::ManuallyDrop<::windows::core::BSTR>, numalternateresourcename: u32, portnumber: u32, operation: ::core::mem::ManuallyDrop<::windows::core::BSTR>, cookie: *const u8, numbytesincookie: u32, psink: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AuthorizeResource( @@ -1112,16 +1106,16 @@ impl ITsSbBaseNotifySink_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Ole"))] pub trait ITsSbClientConnection_Impl: Sized { - fn UserName(&self) -> ::windows::core::Result; - fn Domain(&self) -> ::windows::core::Result; - fn InitialProgram(&self) -> ::windows::core::Result; + fn UserName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Domain(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn InitialProgram(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn LoadBalanceResult(&self) -> ::windows::core::Result; - fn FarmName(&self) -> ::windows::core::Result; - fn PutContext(&self, contextid: &super::super::Foundation::BSTR, context: &super::Com::VARIANT) -> ::windows::core::Result; - fn GetContext(&self, contextid: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn FarmName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn PutContext(&self, contextid: &::windows::core::BSTR, context: &super::Com::VARIANT) -> ::windows::core::Result; + fn GetContext(&self, contextid: &::windows::core::BSTR) -> ::windows::core::Result; fn Environment(&self) -> ::windows::core::Result; fn get_ConnectionError(&self) -> ::windows::core::Result<()>; - fn SamUserAccount(&self) -> ::windows::core::Result; + fn SamUserAccount(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn ClientConnectionPropertySet(&self) -> ::windows::core::Result; fn IsFirstAssignment(&self) -> ::windows::core::Result; fn RdFarmType(&self) -> ::windows::core::Result; @@ -1133,7 +1127,7 @@ impl ::windows::core::RuntimeName for ITsSbClientConnection {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage", feature = "Win32_System_Ole"))] impl ITsSbClientConnection_Vtbl { pub const fn new, Impl: ITsSbClientConnection_Impl, const OFFSET: isize>() -> ITsSbClientConnection_Vtbl { - unsafe extern "system" fn UserName, Impl: ITsSbClientConnection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UserName, Impl: ITsSbClientConnection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UserName() { @@ -1144,7 +1138,7 @@ impl ITsSbClientConnection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Domain, Impl: ITsSbClientConnection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Domain, Impl: ITsSbClientConnection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Domain() { @@ -1155,7 +1149,7 @@ impl ITsSbClientConnection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn InitialProgram, Impl: ITsSbClientConnection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitialProgram, Impl: ITsSbClientConnection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.InitialProgram() { @@ -1177,7 +1171,7 @@ impl ITsSbClientConnection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn FarmName, Impl: ITsSbClientConnection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FarmName, Impl: ITsSbClientConnection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FarmName() { @@ -1188,7 +1182,7 @@ impl ITsSbClientConnection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn PutContext, Impl: ITsSbClientConnection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, contextid: ::core::mem::ManuallyDrop, context: ::core::mem::ManuallyDrop, existingcontext: *mut super::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn PutContext, Impl: ITsSbClientConnection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, contextid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, context: ::core::mem::ManuallyDrop, existingcontext: *mut super::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PutContext(::core::mem::transmute(&contextid), ::core::mem::transmute(&context)) { @@ -1199,7 +1193,7 @@ impl ITsSbClientConnection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetContext, Impl: ITsSbClientConnection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, contextid: ::core::mem::ManuallyDrop, context: *mut super::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetContext, Impl: ITsSbClientConnection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, contextid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, context: *mut super::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetContext(::core::mem::transmute(&contextid)) { @@ -1226,7 +1220,7 @@ impl ITsSbClientConnection_Vtbl { let this = (*this).get_impl(); this.get_ConnectionError().into() } - unsafe extern "system" fn SamUserAccount, Impl: ITsSbClientConnection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SamUserAccount, Impl: ITsSbClientConnection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SamUserAccount() { @@ -1328,19 +1322,19 @@ impl ITsSbClientConnectionPropertySet_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] +#[cfg(feature = "Win32_System_Com_StructuredStorage")] pub trait ITsSbEnvironment_Impl: Sized { - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn ServerWeight(&self) -> ::windows::core::Result; fn EnvironmentPropertySet(&self) -> ::windows::core::Result; fn SetEnvironmentPropertySet(&self, pval: &::core::option::Option) -> ::windows::core::Result<()>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] +#[cfg(feature = "Win32_System_Com_StructuredStorage")] impl ::windows::core::RuntimeName for ITsSbEnvironment {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] +#[cfg(feature = "Win32_System_Com_StructuredStorage")] impl ITsSbEnvironment_Vtbl { pub const fn new, Impl: ITsSbEnvironment_Impl, const OFFSET: isize>() -> ITsSbEnvironment_Vtbl { - unsafe extern "system" fn Name, Impl: ITsSbEnvironment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: ITsSbEnvironment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -1403,15 +1397,15 @@ impl ITsSbEnvironmentPropertySet_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] +#[cfg(feature = "Win32_System_Com_StructuredStorage")] pub trait ITsSbFilterPluginStore_Impl: Sized { fn SaveProperties(&self, ppropertyset: &::core::option::Option) -> ::windows::core::Result<()>; fn EnumerateProperties(&self) -> ::windows::core::Result; - fn DeleteProperties(&self, propertyname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn DeleteProperties(&self, propertyname: &::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] +#[cfg(feature = "Win32_System_Com_StructuredStorage")] impl ::windows::core::RuntimeName for ITsSbFilterPluginStore {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] +#[cfg(feature = "Win32_System_Com_StructuredStorage")] impl ITsSbFilterPluginStore_Vtbl { pub const fn new, Impl: ITsSbFilterPluginStore_Impl, const OFFSET: isize>() -> ITsSbFilterPluginStore_Vtbl { unsafe extern "system" fn SaveProperties, Impl: ITsSbFilterPluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppropertyset: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -1430,7 +1424,7 @@ impl ITsSbFilterPluginStore_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DeleteProperties, Impl: ITsSbFilterPluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteProperties, Impl: ITsSbFilterPluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteProperties(::core::mem::transmute(&propertyname)).into() @@ -1484,20 +1478,20 @@ impl ITsSbGenericNotifySink_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ITsSbGlobalStore_Impl: Sized { - fn QueryTarget(&self, providername: &super::super::Foundation::BSTR, targetname: &super::super::Foundation::BSTR, farmname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn QuerySessionBySessionId(&self, providername: &super::super::Foundation::BSTR, dwsessionid: u32, targetname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn EnumerateFarms(&self, providername: &super::super::Foundation::BSTR, pdwcount: *mut u32, pval: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::Result<()>; - fn EnumerateTargets(&self, providername: &super::super::Foundation::BSTR, farmname: &super::super::Foundation::BSTR, envname: &super::super::Foundation::BSTR, pdwcount: *mut u32, pval: *mut *mut ::core::option::Option) -> ::windows::core::Result<()>; - fn EnumerateEnvironmentsByProvider(&self, providername: &super::super::Foundation::BSTR, pdwcount: *mut u32, ppval: *mut *mut ::core::option::Option) -> ::windows::core::Result<()>; - fn EnumerateSessions(&self, providername: &super::super::Foundation::BSTR, targetname: &super::super::Foundation::BSTR, username: &super::super::Foundation::BSTR, userdomain: &super::super::Foundation::BSTR, poolname: &super::super::Foundation::BSTR, initialprogram: &super::super::Foundation::BSTR, psessionstate: *const TSSESSION_STATE, pdwcount: *mut u32, ppval: *mut *mut ::core::option::Option) -> ::windows::core::Result<()>; - fn GetFarmProperty(&self, farmname: &super::super::Foundation::BSTR, propertyname: &super::super::Foundation::BSTR, pvarvalue: *const super::Com::VARIANT) -> ::windows::core::Result<()>; + fn QueryTarget(&self, providername: &::windows::core::BSTR, targetname: &::windows::core::BSTR, farmname: &::windows::core::BSTR) -> ::windows::core::Result; + fn QuerySessionBySessionId(&self, providername: &::windows::core::BSTR, dwsessionid: u32, targetname: &::windows::core::BSTR) -> ::windows::core::Result; + fn EnumerateFarms(&self, providername: &::windows::core::BSTR, pdwcount: *mut u32, pval: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::Result<()>; + fn EnumerateTargets(&self, providername: &::windows::core::BSTR, farmname: &::windows::core::BSTR, envname: &::windows::core::BSTR, pdwcount: *mut u32, pval: *mut *mut ::core::option::Option) -> ::windows::core::Result<()>; + fn EnumerateEnvironmentsByProvider(&self, providername: &::windows::core::BSTR, pdwcount: *mut u32, ppval: *mut *mut ::core::option::Option) -> ::windows::core::Result<()>; + fn EnumerateSessions(&self, providername: &::windows::core::BSTR, targetname: &::windows::core::BSTR, username: &::windows::core::BSTR, userdomain: &::windows::core::BSTR, poolname: &::windows::core::BSTR, initialprogram: &::windows::core::BSTR, psessionstate: *const TSSESSION_STATE, pdwcount: *mut u32, ppval: *mut *mut ::core::option::Option) -> ::windows::core::Result<()>; + fn GetFarmProperty(&self, farmname: &::windows::core::BSTR, propertyname: &::windows::core::BSTR, pvarvalue: *const super::Com::VARIANT) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ITsSbGlobalStore {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ITsSbGlobalStore_Vtbl { pub const fn new, Impl: ITsSbGlobalStore_Impl, const OFFSET: isize>() -> ITsSbGlobalStore_Vtbl { - unsafe extern "system" fn QueryTarget, Impl: ITsSbGlobalStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, providername: ::core::mem::ManuallyDrop, targetname: ::core::mem::ManuallyDrop, farmname: ::core::mem::ManuallyDrop, pptarget: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn QueryTarget, Impl: ITsSbGlobalStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, providername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, targetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, farmname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pptarget: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.QueryTarget(::core::mem::transmute(&providername), ::core::mem::transmute(&targetname), ::core::mem::transmute(&farmname)) { @@ -1508,7 +1502,7 @@ impl ITsSbGlobalStore_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn QuerySessionBySessionId, Impl: ITsSbGlobalStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, providername: ::core::mem::ManuallyDrop, dwsessionid: u32, targetname: ::core::mem::ManuallyDrop, ppsession: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn QuerySessionBySessionId, Impl: ITsSbGlobalStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, providername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwsessionid: u32, targetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppsession: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.QuerySessionBySessionId(::core::mem::transmute(&providername), ::core::mem::transmute_copy(&dwsessionid), ::core::mem::transmute(&targetname)) { @@ -1519,27 +1513,27 @@ impl ITsSbGlobalStore_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn EnumerateFarms, Impl: ITsSbGlobalStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, providername: ::core::mem::ManuallyDrop, pdwcount: *mut u32, pval: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT { + unsafe extern "system" fn EnumerateFarms, Impl: ITsSbGlobalStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, providername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwcount: *mut u32, pval: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.EnumerateFarms(::core::mem::transmute(&providername), ::core::mem::transmute_copy(&pdwcount), ::core::mem::transmute_copy(&pval)).into() } - unsafe extern "system" fn EnumerateTargets, Impl: ITsSbGlobalStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, providername: ::core::mem::ManuallyDrop, farmname: ::core::mem::ManuallyDrop, envname: ::core::mem::ManuallyDrop, pdwcount: *mut u32, pval: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn EnumerateTargets, Impl: ITsSbGlobalStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, providername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, farmname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, envname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwcount: *mut u32, pval: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.EnumerateTargets(::core::mem::transmute(&providername), ::core::mem::transmute(&farmname), ::core::mem::transmute(&envname), ::core::mem::transmute_copy(&pdwcount), ::core::mem::transmute_copy(&pval)).into() } - unsafe extern "system" fn EnumerateEnvironmentsByProvider, Impl: ITsSbGlobalStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, providername: ::core::mem::ManuallyDrop, pdwcount: *mut u32, ppval: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn EnumerateEnvironmentsByProvider, Impl: ITsSbGlobalStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, providername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwcount: *mut u32, ppval: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.EnumerateEnvironmentsByProvider(::core::mem::transmute(&providername), ::core::mem::transmute_copy(&pdwcount), ::core::mem::transmute_copy(&ppval)).into() } - unsafe extern "system" fn EnumerateSessions, Impl: ITsSbGlobalStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, providername: ::core::mem::ManuallyDrop, targetname: ::core::mem::ManuallyDrop, username: ::core::mem::ManuallyDrop, userdomain: ::core::mem::ManuallyDrop, poolname: ::core::mem::ManuallyDrop, initialprogram: ::core::mem::ManuallyDrop, psessionstate: *const TSSESSION_STATE, pdwcount: *mut u32, ppval: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn EnumerateSessions, Impl: ITsSbGlobalStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, providername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, targetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, username: ::core::mem::ManuallyDrop<::windows::core::BSTR>, userdomain: ::core::mem::ManuallyDrop<::windows::core::BSTR>, poolname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, initialprogram: ::core::mem::ManuallyDrop<::windows::core::BSTR>, psessionstate: *const TSSESSION_STATE, pdwcount: *mut u32, ppval: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.EnumerateSessions(::core::mem::transmute(&providername), ::core::mem::transmute(&targetname), ::core::mem::transmute(&username), ::core::mem::transmute(&userdomain), ::core::mem::transmute(&poolname), ::core::mem::transmute(&initialprogram), ::core::mem::transmute_copy(&psessionstate), ::core::mem::transmute_copy(&pdwcount), ::core::mem::transmute_copy(&ppval)).into() } - unsafe extern "system" fn GetFarmProperty, Impl: ITsSbGlobalStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, farmname: ::core::mem::ManuallyDrop, propertyname: ::core::mem::ManuallyDrop, pvarvalue: *const super::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFarmProperty, Impl: ITsSbGlobalStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, farmname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarvalue: *const super::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetFarmProperty(::core::mem::transmute(&farmname), ::core::mem::transmute(&propertyname), ::core::mem::transmute_copy(&pvarvalue)).into() @@ -1559,16 +1553,13 @@ impl ITsSbGlobalStore_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait ITsSbLoadBalanceResult_Impl: Sized { - fn TargetName(&self) -> ::windows::core::Result; + fn TargetName(&self) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ITsSbLoadBalanceResult {} -#[cfg(feature = "Win32_Foundation")] impl ITsSbLoadBalanceResult_Vtbl { pub const fn new, Impl: ITsSbLoadBalanceResult_Impl, const OFFSET: isize>() -> ITsSbLoadBalanceResult_Vtbl { - unsafe extern "system" fn TargetName, Impl: ITsSbLoadBalanceResult_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TargetName, Impl: ITsSbLoadBalanceResult_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TargetName() { @@ -1785,27 +1776,27 @@ impl ITsSbPropertySet_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] +#[cfg(feature = "Win32_System_Com_StructuredStorage")] pub trait ITsSbProvider_Impl: Sized { - fn CreateTargetObject(&self, targetname: &super::super::Foundation::BSTR, environmentname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn CreateLoadBalanceResultObject(&self, targetname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn CreateSessionObject(&self, targetname: &super::super::Foundation::BSTR, username: &super::super::Foundation::BSTR, domain: &super::super::Foundation::BSTR, sessionid: u32) -> ::windows::core::Result; + fn CreateTargetObject(&self, targetname: &::windows::core::BSTR, environmentname: &::windows::core::BSTR) -> ::windows::core::Result; + fn CreateLoadBalanceResultObject(&self, targetname: &::windows::core::BSTR) -> ::windows::core::Result; + fn CreateSessionObject(&self, targetname: &::windows::core::BSTR, username: &::windows::core::BSTR, domain: &::windows::core::BSTR, sessionid: u32) -> ::windows::core::Result; fn CreatePluginPropertySet(&self) -> ::windows::core::Result; fn CreateTargetPropertySetObject(&self) -> ::windows::core::Result; - fn CreateEnvironmentObject(&self, name: &super::super::Foundation::BSTR, serverweight: u32) -> ::windows::core::Result; + fn CreateEnvironmentObject(&self, name: &::windows::core::BSTR, serverweight: u32) -> ::windows::core::Result; fn GetResourcePluginStore(&self) -> ::windows::core::Result; fn GetFilterPluginStore(&self) -> ::windows::core::Result; - fn RegisterForNotification(&self, notificationtype: u32, resourcetomonitor: &super::super::Foundation::BSTR, ppluginnotification: &::core::option::Option) -> ::windows::core::Result<()>; - fn UnRegisterForNotification(&self, notificationtype: u32, resourcetomonitor: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn RegisterForNotification(&self, notificationtype: u32, resourcetomonitor: &::windows::core::BSTR, ppluginnotification: &::core::option::Option) -> ::windows::core::Result<()>; + fn UnRegisterForNotification(&self, notificationtype: u32, resourcetomonitor: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetInstanceOfGlobalStore(&self) -> ::windows::core::Result; fn CreateEnvironmentPropertySetObject(&self) -> ::windows::core::Result; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] +#[cfg(feature = "Win32_System_Com_StructuredStorage")] impl ::windows::core::RuntimeName for ITsSbProvider {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] +#[cfg(feature = "Win32_System_Com_StructuredStorage")] impl ITsSbProvider_Vtbl { pub const fn new, Impl: ITsSbProvider_Impl, const OFFSET: isize>() -> ITsSbProvider_Vtbl { - unsafe extern "system" fn CreateTargetObject, Impl: ITsSbProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop, environmentname: ::core::mem::ManuallyDrop, pptarget: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateTargetObject, Impl: ITsSbProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, environmentname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pptarget: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateTargetObject(::core::mem::transmute(&targetname), ::core::mem::transmute(&environmentname)) { @@ -1816,7 +1807,7 @@ impl ITsSbProvider_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateLoadBalanceResultObject, Impl: ITsSbProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop, pplbresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateLoadBalanceResultObject, Impl: ITsSbProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pplbresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateLoadBalanceResultObject(::core::mem::transmute(&targetname)) { @@ -1827,7 +1818,7 @@ impl ITsSbProvider_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateSessionObject, Impl: ITsSbProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop, username: ::core::mem::ManuallyDrop, domain: ::core::mem::ManuallyDrop, sessionid: u32, ppsession: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateSessionObject, Impl: ITsSbProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, username: ::core::mem::ManuallyDrop<::windows::core::BSTR>, domain: ::core::mem::ManuallyDrop<::windows::core::BSTR>, sessionid: u32, ppsession: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateSessionObject(::core::mem::transmute(&targetname), ::core::mem::transmute(&username), ::core::mem::transmute(&domain), ::core::mem::transmute_copy(&sessionid)) { @@ -1860,7 +1851,7 @@ impl ITsSbProvider_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateEnvironmentObject, Impl: ITsSbProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, serverweight: u32, ppenvironment: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateEnvironmentObject, Impl: ITsSbProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, serverweight: u32, ppenvironment: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateEnvironmentObject(::core::mem::transmute(&name), ::core::mem::transmute_copy(&serverweight)) { @@ -1893,12 +1884,12 @@ impl ITsSbProvider_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RegisterForNotification, Impl: ITsSbProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, notificationtype: u32, resourcetomonitor: ::core::mem::ManuallyDrop, ppluginnotification: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn RegisterForNotification, Impl: ITsSbProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, notificationtype: u32, resourcetomonitor: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppluginnotification: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RegisterForNotification(::core::mem::transmute_copy(¬ificationtype), ::core::mem::transmute(&resourcetomonitor), ::core::mem::transmute(&ppluginnotification)).into() } - unsafe extern "system" fn UnRegisterForNotification, Impl: ITsSbProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, notificationtype: u32, resourcetomonitor: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn UnRegisterForNotification, Impl: ITsSbProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, notificationtype: u32, resourcetomonitor: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.UnRegisterForNotification(::core::mem::transmute_copy(¬ificationtype), ::core::mem::transmute(&resourcetomonitor)).into() @@ -1945,34 +1936,34 @@ impl ITsSbProvider_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] +#[cfg(feature = "Win32_System_Com_StructuredStorage")] pub trait ITsSbProvisioning_Impl: Sized + ITsSbPlugin_Impl { - fn CreateVirtualMachines(&self, jobxmlstring: &super::super::Foundation::BSTR, jobguid: &super::super::Foundation::BSTR, psink: &::core::option::Option) -> ::windows::core::Result<()>; - fn PatchVirtualMachines(&self, jobxmlstring: &super::super::Foundation::BSTR, jobguid: &super::super::Foundation::BSTR, psink: &::core::option::Option, pvmpatchinfo: *const VM_PATCH_INFO) -> ::windows::core::Result<()>; - fn DeleteVirtualMachines(&self, jobxmlstring: &super::super::Foundation::BSTR, jobguid: &super::super::Foundation::BSTR, psink: &::core::option::Option) -> ::windows::core::Result<()>; - fn CancelJob(&self, jobguid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn CreateVirtualMachines(&self, jobxmlstring: &::windows::core::BSTR, jobguid: &::windows::core::BSTR, psink: &::core::option::Option) -> ::windows::core::Result<()>; + fn PatchVirtualMachines(&self, jobxmlstring: &::windows::core::BSTR, jobguid: &::windows::core::BSTR, psink: &::core::option::Option, pvmpatchinfo: *const VM_PATCH_INFO) -> ::windows::core::Result<()>; + fn DeleteVirtualMachines(&self, jobxmlstring: &::windows::core::BSTR, jobguid: &::windows::core::BSTR, psink: &::core::option::Option) -> ::windows::core::Result<()>; + fn CancelJob(&self, jobguid: &::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] +#[cfg(feature = "Win32_System_Com_StructuredStorage")] impl ::windows::core::RuntimeName for ITsSbProvisioning {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] +#[cfg(feature = "Win32_System_Com_StructuredStorage")] impl ITsSbProvisioning_Vtbl { pub const fn new, Impl: ITsSbProvisioning_Impl, const OFFSET: isize>() -> ITsSbProvisioning_Vtbl { - unsafe extern "system" fn CreateVirtualMachines, Impl: ITsSbProvisioning_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, jobxmlstring: ::core::mem::ManuallyDrop, jobguid: ::core::mem::ManuallyDrop, psink: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateVirtualMachines, Impl: ITsSbProvisioning_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, jobxmlstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, jobguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, psink: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CreateVirtualMachines(::core::mem::transmute(&jobxmlstring), ::core::mem::transmute(&jobguid), ::core::mem::transmute(&psink)).into() } - unsafe extern "system" fn PatchVirtualMachines, Impl: ITsSbProvisioning_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, jobxmlstring: ::core::mem::ManuallyDrop, jobguid: ::core::mem::ManuallyDrop, psink: *mut ::core::ffi::c_void, pvmpatchinfo: *const VM_PATCH_INFO) -> ::windows::core::HRESULT { + unsafe extern "system" fn PatchVirtualMachines, Impl: ITsSbProvisioning_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, jobxmlstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, jobguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, psink: *mut ::core::ffi::c_void, pvmpatchinfo: *const VM_PATCH_INFO) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.PatchVirtualMachines(::core::mem::transmute(&jobxmlstring), ::core::mem::transmute(&jobguid), ::core::mem::transmute(&psink), ::core::mem::transmute_copy(&pvmpatchinfo)).into() } - unsafe extern "system" fn DeleteVirtualMachines, Impl: ITsSbProvisioning_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, jobxmlstring: ::core::mem::ManuallyDrop, jobguid: ::core::mem::ManuallyDrop, psink: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteVirtualMachines, Impl: ITsSbProvisioning_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, jobxmlstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, jobguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, psink: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteVirtualMachines(::core::mem::transmute(&jobxmlstring), ::core::mem::transmute(&jobguid), ::core::mem::transmute(&psink)).into() } - unsafe extern "system" fn CancelJob, Impl: ITsSbProvisioning_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, jobguid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn CancelJob, Impl: ITsSbProvisioning_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, jobguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CancelJob(::core::mem::transmute(&jobguid)).into() @@ -1989,18 +1980,15 @@ impl ITsSbProvisioning_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait ITsSbProvisioningPluginNotifySink_Impl: Sized { fn OnJobCreated(&self, pvmnotifyinfo: *const VM_NOTIFY_INFO) -> ::windows::core::Result<()>; - fn OnVirtualMachineStatusChanged(&self, pvmnotifyentry: *const VM_NOTIFY_ENTRY, vmnotifystatus: VM_NOTIFY_STATUS, errorcode: ::windows::core::HRESULT, errordescr: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn OnJobCompleted(&self, resultcode: ::windows::core::HRESULT, resultdescription: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn OnVirtualMachineStatusChanged(&self, pvmnotifyentry: *const VM_NOTIFY_ENTRY, vmnotifystatus: VM_NOTIFY_STATUS, errorcode: ::windows::core::HRESULT, errordescr: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn OnJobCompleted(&self, resultcode: ::windows::core::HRESULT, resultdescription: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn OnJobCancelled(&self) -> ::windows::core::Result<()>; fn LockVirtualMachine(&self, pvmnotifyentry: *const VM_NOTIFY_ENTRY) -> ::windows::core::Result<()>; - fn OnVirtualMachineHostStatusChanged(&self, vmhost: &super::super::Foundation::BSTR, vmhostnotifystatus: VM_HOST_NOTIFY_STATUS, errorcode: ::windows::core::HRESULT, errordescr: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn OnVirtualMachineHostStatusChanged(&self, vmhost: &::windows::core::BSTR, vmhostnotifystatus: VM_HOST_NOTIFY_STATUS, errorcode: ::windows::core::HRESULT, errordescr: &::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ITsSbProvisioningPluginNotifySink {} -#[cfg(feature = "Win32_Foundation")] impl ITsSbProvisioningPluginNotifySink_Vtbl { pub const fn new, Impl: ITsSbProvisioningPluginNotifySink_Impl, const OFFSET: isize>() -> ITsSbProvisioningPluginNotifySink_Vtbl { unsafe extern "system" fn OnJobCreated, Impl: ITsSbProvisioningPluginNotifySink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvmnotifyinfo: *const VM_NOTIFY_INFO) -> ::windows::core::HRESULT { @@ -2008,12 +1996,12 @@ impl ITsSbProvisioningPluginNotifySink_Vtbl { let this = (*this).get_impl(); this.OnJobCreated(::core::mem::transmute_copy(&pvmnotifyinfo)).into() } - unsafe extern "system" fn OnVirtualMachineStatusChanged, Impl: ITsSbProvisioningPluginNotifySink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvmnotifyentry: *const VM_NOTIFY_ENTRY, vmnotifystatus: VM_NOTIFY_STATUS, errorcode: ::windows::core::HRESULT, errordescr: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnVirtualMachineStatusChanged, Impl: ITsSbProvisioningPluginNotifySink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvmnotifyentry: *const VM_NOTIFY_ENTRY, vmnotifystatus: VM_NOTIFY_STATUS, errorcode: ::windows::core::HRESULT, errordescr: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnVirtualMachineStatusChanged(::core::mem::transmute_copy(&pvmnotifyentry), ::core::mem::transmute_copy(&vmnotifystatus), ::core::mem::transmute_copy(&errorcode), ::core::mem::transmute(&errordescr)).into() } - unsafe extern "system" fn OnJobCompleted, Impl: ITsSbProvisioningPluginNotifySink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, resultcode: ::windows::core::HRESULT, resultdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnJobCompleted, Impl: ITsSbProvisioningPluginNotifySink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, resultcode: ::windows::core::HRESULT, resultdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnJobCompleted(::core::mem::transmute_copy(&resultcode), ::core::mem::transmute(&resultdescription)).into() @@ -2028,7 +2016,7 @@ impl ITsSbProvisioningPluginNotifySink_Vtbl { let this = (*this).get_impl(); this.LockVirtualMachine(::core::mem::transmute_copy(&pvmnotifyentry)).into() } - unsafe extern "system" fn OnVirtualMachineHostStatusChanged, Impl: ITsSbProvisioningPluginNotifySink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, vmhost: ::core::mem::ManuallyDrop, vmhostnotifystatus: VM_HOST_NOTIFY_STATUS, errorcode: ::windows::core::HRESULT, errordescr: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnVirtualMachineHostStatusChanged, Impl: ITsSbProvisioningPluginNotifySink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, vmhost: ::core::mem::ManuallyDrop<::windows::core::BSTR>, vmhostnotifystatus: VM_HOST_NOTIFY_STATUS, errorcode: ::windows::core::HRESULT, errordescr: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnVirtualMachineHostStatusChanged(::core::mem::transmute(&vmhost), ::core::mem::transmute_copy(&vmhostnotifystatus), ::core::mem::transmute_copy(&errorcode), ::core::mem::transmute(&errordescr)).into() @@ -2081,28 +2069,25 @@ impl ITsSbResourceNotification_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait ITsSbResourceNotificationEx_Impl: Sized { - fn NotifySessionChangeEx(&self, targetname: &super::super::Foundation::BSTR, username: &super::super::Foundation::BSTR, domain: &super::super::Foundation::BSTR, sessionid: u32, sessionstate: TSSESSION_STATE) -> ::windows::core::Result<()>; - fn NotifyTargetChangeEx(&self, targetname: &super::super::Foundation::BSTR, targetchangetype: u32) -> ::windows::core::Result<()>; - fn NotifyClientConnectionStateChangeEx(&self, username: &super::super::Foundation::BSTR, domain: &super::super::Foundation::BSTR, initialprogram: &super::super::Foundation::BSTR, poolname: &super::super::Foundation::BSTR, targetname: &super::super::Foundation::BSTR, connectionchangetype: CONNECTION_CHANGE_NOTIFICATION) -> ::windows::core::Result<()>; + fn NotifySessionChangeEx(&self, targetname: &::windows::core::BSTR, username: &::windows::core::BSTR, domain: &::windows::core::BSTR, sessionid: u32, sessionstate: TSSESSION_STATE) -> ::windows::core::Result<()>; + fn NotifyTargetChangeEx(&self, targetname: &::windows::core::BSTR, targetchangetype: u32) -> ::windows::core::Result<()>; + fn NotifyClientConnectionStateChangeEx(&self, username: &::windows::core::BSTR, domain: &::windows::core::BSTR, initialprogram: &::windows::core::BSTR, poolname: &::windows::core::BSTR, targetname: &::windows::core::BSTR, connectionchangetype: CONNECTION_CHANGE_NOTIFICATION) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ITsSbResourceNotificationEx {} -#[cfg(feature = "Win32_Foundation")] impl ITsSbResourceNotificationEx_Vtbl { pub const fn new, Impl: ITsSbResourceNotificationEx_Impl, const OFFSET: isize>() -> ITsSbResourceNotificationEx_Vtbl { - unsafe extern "system" fn NotifySessionChangeEx, Impl: ITsSbResourceNotificationEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop, username: ::core::mem::ManuallyDrop, domain: ::core::mem::ManuallyDrop, sessionid: u32, sessionstate: TSSESSION_STATE) -> ::windows::core::HRESULT { + unsafe extern "system" fn NotifySessionChangeEx, Impl: ITsSbResourceNotificationEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, username: ::core::mem::ManuallyDrop<::windows::core::BSTR>, domain: ::core::mem::ManuallyDrop<::windows::core::BSTR>, sessionid: u32, sessionstate: TSSESSION_STATE) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.NotifySessionChangeEx(::core::mem::transmute(&targetname), ::core::mem::transmute(&username), ::core::mem::transmute(&domain), ::core::mem::transmute_copy(&sessionid), ::core::mem::transmute_copy(&sessionstate)).into() } - unsafe extern "system" fn NotifyTargetChangeEx, Impl: ITsSbResourceNotificationEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop, targetchangetype: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn NotifyTargetChangeEx, Impl: ITsSbResourceNotificationEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, targetchangetype: u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.NotifyTargetChangeEx(::core::mem::transmute(&targetname), ::core::mem::transmute_copy(&targetchangetype)).into() } - unsafe extern "system" fn NotifyClientConnectionStateChangeEx, Impl: ITsSbResourceNotificationEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, username: ::core::mem::ManuallyDrop, domain: ::core::mem::ManuallyDrop, initialprogram: ::core::mem::ManuallyDrop, poolname: ::core::mem::ManuallyDrop, targetname: ::core::mem::ManuallyDrop, connectionchangetype: CONNECTION_CHANGE_NOTIFICATION) -> ::windows::core::HRESULT { + unsafe extern "system" fn NotifyClientConnectionStateChangeEx, Impl: ITsSbResourceNotificationEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, username: ::core::mem::ManuallyDrop<::windows::core::BSTR>, domain: ::core::mem::ManuallyDrop<::windows::core::BSTR>, initialprogram: ::core::mem::ManuallyDrop<::windows::core::BSTR>, poolname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, targetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, connectionchangetype: CONNECTION_CHANGE_NOTIFICATION) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.NotifyClientConnectionStateChangeEx(::core::mem::transmute(&username), ::core::mem::transmute(&domain), ::core::mem::transmute(&initialprogram), ::core::mem::transmute(&poolname), ::core::mem::transmute(&targetname), ::core::mem::transmute_copy(&connectionchangetype)).into() @@ -2133,41 +2118,41 @@ impl ITsSbResourcePlugin_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ITsSbResourcePluginStore_Impl: Sized { - fn QueryTarget(&self, targetname: &super::super::Foundation::BSTR, farmname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn QuerySessionBySessionId(&self, dwsessionid: u32, targetname: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn QueryTarget(&self, targetname: &::windows::core::BSTR, farmname: &::windows::core::BSTR) -> ::windows::core::Result; + fn QuerySessionBySessionId(&self, dwsessionid: u32, targetname: &::windows::core::BSTR) -> ::windows::core::Result; fn AddTargetToStore(&self, ptarget: &::core::option::Option) -> ::windows::core::Result<()>; fn AddSessionToStore(&self, psession: &::core::option::Option) -> ::windows::core::Result<()>; fn AddEnvironmentToStore(&self, penvironment: &::core::option::Option) -> ::windows::core::Result<()>; - fn RemoveEnvironmentFromStore(&self, environmentname: &super::super::Foundation::BSTR, bignoreowner: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; + fn RemoveEnvironmentFromStore(&self, environmentname: &::windows::core::BSTR, bignoreowner: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn EnumerateFarms(&self, pdwcount: *mut u32, pval: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::Result<()>; - fn QueryEnvironment(&self, environmentname: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn QueryEnvironment(&self, environmentname: &::windows::core::BSTR) -> ::windows::core::Result; fn EnumerateEnvironments(&self, pdwcount: *mut u32, pval: *mut *mut ::core::option::Option) -> ::windows::core::Result<()>; fn SaveTarget(&self, ptarget: &::core::option::Option, bforcewrite: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn SaveEnvironment(&self, penvironment: &::core::option::Option, bforcewrite: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn SaveSession(&self, psession: &::core::option::Option) -> ::windows::core::Result<()>; - fn SetTargetProperty(&self, targetname: &super::super::Foundation::BSTR, propertyname: &super::super::Foundation::BSTR, pproperty: *const super::Com::VARIANT) -> ::windows::core::Result<()>; - fn SetEnvironmentProperty(&self, environmentname: &super::super::Foundation::BSTR, propertyname: &super::super::Foundation::BSTR, pproperty: *const super::Com::VARIANT) -> ::windows::core::Result<()>; - fn SetTargetState(&self, targetname: &super::super::Foundation::BSTR, newstate: TARGET_STATE) -> ::windows::core::Result; + fn SetTargetProperty(&self, targetname: &::windows::core::BSTR, propertyname: &::windows::core::BSTR, pproperty: *const super::Com::VARIANT) -> ::windows::core::Result<()>; + fn SetEnvironmentProperty(&self, environmentname: &::windows::core::BSTR, propertyname: &::windows::core::BSTR, pproperty: *const super::Com::VARIANT) -> ::windows::core::Result<()>; + fn SetTargetState(&self, targetname: &::windows::core::BSTR, newstate: TARGET_STATE) -> ::windows::core::Result; fn SetSessionState(&self, sbsession: &::core::option::Option) -> ::windows::core::Result<()>; - fn EnumerateTargets(&self, farmname: &super::super::Foundation::BSTR, envname: &super::super::Foundation::BSTR, sortbyfieldid: TS_SB_SORT_BY, sortybypropname: &super::super::Foundation::BSTR, pdwcount: *mut u32, pval: *mut *mut ::core::option::Option) -> ::windows::core::Result<()>; - fn EnumerateSessions(&self, targetname: &super::super::Foundation::BSTR, username: &super::super::Foundation::BSTR, userdomain: &super::super::Foundation::BSTR, poolname: &super::super::Foundation::BSTR, initialprogram: &super::super::Foundation::BSTR, psessionstate: *const TSSESSION_STATE, pdwcount: *mut u32, ppval: *mut *mut ::core::option::Option) -> ::windows::core::Result<()>; - fn GetFarmProperty(&self, farmname: &super::super::Foundation::BSTR, propertyname: &super::super::Foundation::BSTR, pvarvalue: *const super::Com::VARIANT) -> ::windows::core::Result<()>; - fn DeleteTarget(&self, targetname: &super::super::Foundation::BSTR, hostname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetTargetPropertyWithVersionCheck(&self, ptarget: &::core::option::Option, propertyname: &super::super::Foundation::BSTR, pproperty: *const super::Com::VARIANT) -> ::windows::core::Result<()>; - fn SetEnvironmentPropertyWithVersionCheck(&self, penvironment: &::core::option::Option, propertyname: &super::super::Foundation::BSTR, pproperty: *const super::Com::VARIANT) -> ::windows::core::Result<()>; - fn AcquireTargetLock(&self, targetname: &super::super::Foundation::BSTR, dwtimeout: u32) -> ::windows::core::Result<::windows::core::IUnknown>; + fn EnumerateTargets(&self, farmname: &::windows::core::BSTR, envname: &::windows::core::BSTR, sortbyfieldid: TS_SB_SORT_BY, sortybypropname: &::windows::core::BSTR, pdwcount: *mut u32, pval: *mut *mut ::core::option::Option) -> ::windows::core::Result<()>; + fn EnumerateSessions(&self, targetname: &::windows::core::BSTR, username: &::windows::core::BSTR, userdomain: &::windows::core::BSTR, poolname: &::windows::core::BSTR, initialprogram: &::windows::core::BSTR, psessionstate: *const TSSESSION_STATE, pdwcount: *mut u32, ppval: *mut *mut ::core::option::Option) -> ::windows::core::Result<()>; + fn GetFarmProperty(&self, farmname: &::windows::core::BSTR, propertyname: &::windows::core::BSTR, pvarvalue: *const super::Com::VARIANT) -> ::windows::core::Result<()>; + fn DeleteTarget(&self, targetname: &::windows::core::BSTR, hostname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetTargetPropertyWithVersionCheck(&self, ptarget: &::core::option::Option, propertyname: &::windows::core::BSTR, pproperty: *const super::Com::VARIANT) -> ::windows::core::Result<()>; + fn SetEnvironmentPropertyWithVersionCheck(&self, penvironment: &::core::option::Option, propertyname: &::windows::core::BSTR, pproperty: *const super::Com::VARIANT) -> ::windows::core::Result<()>; + fn AcquireTargetLock(&self, targetname: &::windows::core::BSTR, dwtimeout: u32) -> ::windows::core::Result<::windows::core::IUnknown>; fn ReleaseTargetLock(&self, pcontext: &::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result<()>; - fn TestAndSetServerState(&self, poolname: &super::super::Foundation::BSTR, serverfqdn: &super::super::Foundation::BSTR, newstate: TARGET_STATE, teststate: TARGET_STATE) -> ::windows::core::Result; - fn SetServerWaitingToStart(&self, poolname: &super::super::Foundation::BSTR, servername: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetServerState(&self, poolname: &super::super::Foundation::BSTR, serverfqdn: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn SetServerDrainMode(&self, serverfqdn: &super::super::Foundation::BSTR, drainmode: u32) -> ::windows::core::Result<()>; + fn TestAndSetServerState(&self, poolname: &::windows::core::BSTR, serverfqdn: &::windows::core::BSTR, newstate: TARGET_STATE, teststate: TARGET_STATE) -> ::windows::core::Result; + fn SetServerWaitingToStart(&self, poolname: &::windows::core::BSTR, servername: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetServerState(&self, poolname: &::windows::core::BSTR, serverfqdn: &::windows::core::BSTR) -> ::windows::core::Result; + fn SetServerDrainMode(&self, serverfqdn: &::windows::core::BSTR, drainmode: u32) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ITsSbResourcePluginStore {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ITsSbResourcePluginStore_Vtbl { pub const fn new, Impl: ITsSbResourcePluginStore_Impl, const OFFSET: isize>() -> ITsSbResourcePluginStore_Vtbl { - unsafe extern "system" fn QueryTarget, Impl: ITsSbResourcePluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop, farmname: ::core::mem::ManuallyDrop, pptarget: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn QueryTarget, Impl: ITsSbResourcePluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, farmname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pptarget: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.QueryTarget(::core::mem::transmute(&targetname), ::core::mem::transmute(&farmname)) { @@ -2178,7 +2163,7 @@ impl ITsSbResourcePluginStore_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn QuerySessionBySessionId, Impl: ITsSbResourcePluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwsessionid: u32, targetname: ::core::mem::ManuallyDrop, ppsession: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn QuerySessionBySessionId, Impl: ITsSbResourcePluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dwsessionid: u32, targetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppsession: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.QuerySessionBySessionId(::core::mem::transmute_copy(&dwsessionid), ::core::mem::transmute(&targetname)) { @@ -2204,7 +2189,7 @@ impl ITsSbResourcePluginStore_Vtbl { let this = (*this).get_impl(); this.AddEnvironmentToStore(::core::mem::transmute(&penvironment)).into() } - unsafe extern "system" fn RemoveEnvironmentFromStore, Impl: ITsSbResourcePluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, environmentname: ::core::mem::ManuallyDrop, bignoreowner: super::super::Foundation::BOOL) -> ::windows::core::HRESULT { + unsafe extern "system" fn RemoveEnvironmentFromStore, Impl: ITsSbResourcePluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, environmentname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bignoreowner: super::super::Foundation::BOOL) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RemoveEnvironmentFromStore(::core::mem::transmute(&environmentname), ::core::mem::transmute_copy(&bignoreowner)).into() @@ -2214,7 +2199,7 @@ impl ITsSbResourcePluginStore_Vtbl { let this = (*this).get_impl(); this.EnumerateFarms(::core::mem::transmute_copy(&pdwcount), ::core::mem::transmute_copy(&pval)).into() } - unsafe extern "system" fn QueryEnvironment, Impl: ITsSbResourcePluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, environmentname: ::core::mem::ManuallyDrop, ppenvironment: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn QueryEnvironment, Impl: ITsSbResourcePluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, environmentname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppenvironment: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.QueryEnvironment(::core::mem::transmute(&environmentname)) { @@ -2245,17 +2230,17 @@ impl ITsSbResourcePluginStore_Vtbl { let this = (*this).get_impl(); this.SaveSession(::core::mem::transmute(&psession)).into() } - unsafe extern "system" fn SetTargetProperty, Impl: ITsSbResourcePluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop, propertyname: ::core::mem::ManuallyDrop, pproperty: *const super::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetTargetProperty, Impl: ITsSbResourcePluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pproperty: *const super::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetTargetProperty(::core::mem::transmute(&targetname), ::core::mem::transmute(&propertyname), ::core::mem::transmute_copy(&pproperty)).into() } - unsafe extern "system" fn SetEnvironmentProperty, Impl: ITsSbResourcePluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, environmentname: ::core::mem::ManuallyDrop, propertyname: ::core::mem::ManuallyDrop, pproperty: *const super::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetEnvironmentProperty, Impl: ITsSbResourcePluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, environmentname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pproperty: *const super::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetEnvironmentProperty(::core::mem::transmute(&environmentname), ::core::mem::transmute(&propertyname), ::core::mem::transmute_copy(&pproperty)).into() } - unsafe extern "system" fn SetTargetState, Impl: ITsSbResourcePluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop, newstate: TARGET_STATE, poldstate: *mut TARGET_STATE) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetTargetState, Impl: ITsSbResourcePluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, newstate: TARGET_STATE, poldstate: *mut TARGET_STATE) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SetTargetState(::core::mem::transmute(&targetname), ::core::mem::transmute_copy(&newstate)) { @@ -2271,37 +2256,37 @@ impl ITsSbResourcePluginStore_Vtbl { let this = (*this).get_impl(); this.SetSessionState(::core::mem::transmute(&sbsession)).into() } - unsafe extern "system" fn EnumerateTargets, Impl: ITsSbResourcePluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, farmname: ::core::mem::ManuallyDrop, envname: ::core::mem::ManuallyDrop, sortbyfieldid: TS_SB_SORT_BY, sortybypropname: ::core::mem::ManuallyDrop, pdwcount: *mut u32, pval: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn EnumerateTargets, Impl: ITsSbResourcePluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, farmname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, envname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, sortbyfieldid: TS_SB_SORT_BY, sortybypropname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwcount: *mut u32, pval: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.EnumerateTargets(::core::mem::transmute(&farmname), ::core::mem::transmute(&envname), ::core::mem::transmute_copy(&sortbyfieldid), ::core::mem::transmute(&sortybypropname), ::core::mem::transmute_copy(&pdwcount), ::core::mem::transmute_copy(&pval)).into() } - unsafe extern "system" fn EnumerateSessions, Impl: ITsSbResourcePluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop, username: ::core::mem::ManuallyDrop, userdomain: ::core::mem::ManuallyDrop, poolname: ::core::mem::ManuallyDrop, initialprogram: ::core::mem::ManuallyDrop, psessionstate: *const TSSESSION_STATE, pdwcount: *mut u32, ppval: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn EnumerateSessions, Impl: ITsSbResourcePluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, username: ::core::mem::ManuallyDrop<::windows::core::BSTR>, userdomain: ::core::mem::ManuallyDrop<::windows::core::BSTR>, poolname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, initialprogram: ::core::mem::ManuallyDrop<::windows::core::BSTR>, psessionstate: *const TSSESSION_STATE, pdwcount: *mut u32, ppval: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.EnumerateSessions(::core::mem::transmute(&targetname), ::core::mem::transmute(&username), ::core::mem::transmute(&userdomain), ::core::mem::transmute(&poolname), ::core::mem::transmute(&initialprogram), ::core::mem::transmute_copy(&psessionstate), ::core::mem::transmute_copy(&pdwcount), ::core::mem::transmute_copy(&ppval)).into() } - unsafe extern "system" fn GetFarmProperty, Impl: ITsSbResourcePluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, farmname: ::core::mem::ManuallyDrop, propertyname: ::core::mem::ManuallyDrop, pvarvalue: *const super::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFarmProperty, Impl: ITsSbResourcePluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, farmname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarvalue: *const super::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetFarmProperty(::core::mem::transmute(&farmname), ::core::mem::transmute(&propertyname), ::core::mem::transmute_copy(&pvarvalue)).into() } - unsafe extern "system" fn DeleteTarget, Impl: ITsSbResourcePluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop, hostname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteTarget, Impl: ITsSbResourcePluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, hostname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteTarget(::core::mem::transmute(&targetname), ::core::mem::transmute(&hostname)).into() } - unsafe extern "system" fn SetTargetPropertyWithVersionCheck, Impl: ITsSbResourcePluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ptarget: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop, pproperty: *const super::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetTargetPropertyWithVersionCheck, Impl: ITsSbResourcePluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ptarget: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pproperty: *const super::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetTargetPropertyWithVersionCheck(::core::mem::transmute(&ptarget), ::core::mem::transmute(&propertyname), ::core::mem::transmute_copy(&pproperty)).into() } - unsafe extern "system" fn SetEnvironmentPropertyWithVersionCheck, Impl: ITsSbResourcePluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, penvironment: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop, pproperty: *const super::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetEnvironmentPropertyWithVersionCheck, Impl: ITsSbResourcePluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, penvironment: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pproperty: *const super::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetEnvironmentPropertyWithVersionCheck(::core::mem::transmute(&penvironment), ::core::mem::transmute(&propertyname), ::core::mem::transmute_copy(&pproperty)).into() } - unsafe extern "system" fn AcquireTargetLock, Impl: ITsSbResourcePluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop, dwtimeout: u32, ppcontext: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn AcquireTargetLock, Impl: ITsSbResourcePluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwtimeout: u32, ppcontext: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AcquireTargetLock(::core::mem::transmute(&targetname), ::core::mem::transmute_copy(&dwtimeout)) { @@ -2317,7 +2302,7 @@ impl ITsSbResourcePluginStore_Vtbl { let this = (*this).get_impl(); this.ReleaseTargetLock(::core::mem::transmute(&pcontext)).into() } - unsafe extern "system" fn TestAndSetServerState, Impl: ITsSbResourcePluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, poolname: ::core::mem::ManuallyDrop, serverfqdn: ::core::mem::ManuallyDrop, newstate: TARGET_STATE, teststate: TARGET_STATE, pinitstate: *mut TARGET_STATE) -> ::windows::core::HRESULT { + unsafe extern "system" fn TestAndSetServerState, Impl: ITsSbResourcePluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, poolname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, serverfqdn: ::core::mem::ManuallyDrop<::windows::core::BSTR>, newstate: TARGET_STATE, teststate: TARGET_STATE, pinitstate: *mut TARGET_STATE) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TestAndSetServerState(::core::mem::transmute(&poolname), ::core::mem::transmute(&serverfqdn), ::core::mem::transmute_copy(&newstate), ::core::mem::transmute_copy(&teststate)) { @@ -2328,12 +2313,12 @@ impl ITsSbResourcePluginStore_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetServerWaitingToStart, Impl: ITsSbResourcePluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, poolname: ::core::mem::ManuallyDrop, servername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetServerWaitingToStart, Impl: ITsSbResourcePluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, poolname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, servername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetServerWaitingToStart(::core::mem::transmute(&poolname), ::core::mem::transmute(&servername)).into() } - unsafe extern "system" fn GetServerState, Impl: ITsSbResourcePluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, poolname: ::core::mem::ManuallyDrop, serverfqdn: ::core::mem::ManuallyDrop, pstate: *mut TARGET_STATE) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetServerState, Impl: ITsSbResourcePluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, poolname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, serverfqdn: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pstate: *mut TARGET_STATE) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetServerState(::core::mem::transmute(&poolname), ::core::mem::transmute(&serverfqdn)) { @@ -2344,7 +2329,7 @@ impl ITsSbResourcePluginStore_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetServerDrainMode, Impl: ITsSbResourcePluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, serverfqdn: ::core::mem::ManuallyDrop, drainmode: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetServerDrainMode, Impl: ITsSbResourcePluginStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, serverfqdn: ::core::mem::ManuallyDrop<::windows::core::BSTR>, drainmode: u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetServerDrainMode(::core::mem::transmute(&serverfqdn), ::core::mem::transmute_copy(&drainmode)).into() @@ -2415,18 +2400,18 @@ impl ITsSbServiceNotification_Vtbl { #[cfg(feature = "Win32_Foundation")] pub trait ITsSbSession_Impl: Sized { fn SessionId(&self) -> ::windows::core::Result; - fn TargetName(&self) -> ::windows::core::Result; - fn SetTargetName(&self, targetname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Username(&self) -> ::windows::core::Result; - fn Domain(&self) -> ::windows::core::Result; + fn TargetName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetTargetName(&self, targetname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Username(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Domain(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn State(&self) -> ::windows::core::Result; fn SetState(&self, state: TSSESSION_STATE) -> ::windows::core::Result<()>; fn CreateTime(&self) -> ::windows::core::Result; fn SetCreateTime(&self, time: &super::super::Foundation::FILETIME) -> ::windows::core::Result<()>; fn DisconnectTime(&self) -> ::windows::core::Result; fn SetDisconnectTime(&self, time: &super::super::Foundation::FILETIME) -> ::windows::core::Result<()>; - fn InitialProgram(&self) -> ::windows::core::Result; - fn SetInitialProgram(&self, application: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn InitialProgram(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetInitialProgram(&self, application: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn ClientDisplay(&self) -> ::windows::core::Result; fn SetClientDisplay(&self, pclientdisplay: &CLIENT_DISPLAY) -> ::windows::core::Result<()>; fn ProtocolType(&self) -> ::windows::core::Result; @@ -2448,7 +2433,7 @@ impl ITsSbSession_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn TargetName, Impl: ITsSbSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targetname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TargetName, Impl: ITsSbSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targetname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TargetName() { @@ -2459,12 +2444,12 @@ impl ITsSbSession_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetTargetName, Impl: ITsSbSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetTargetName, Impl: ITsSbSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetTargetName(::core::mem::transmute(&targetname)).into() } - unsafe extern "system" fn Username, Impl: ITsSbSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, username: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Username, Impl: ITsSbSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, username: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Username() { @@ -2475,7 +2460,7 @@ impl ITsSbSession_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Domain, Impl: ITsSbSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, domain: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Domain, Impl: ITsSbSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, domain: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Domain() { @@ -2534,7 +2519,7 @@ impl ITsSbSession_Vtbl { let this = (*this).get_impl(); this.SetDisconnectTime(::core::mem::transmute(&time)).into() } - unsafe extern "system" fn InitialProgram, Impl: ITsSbSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, app: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn InitialProgram, Impl: ITsSbSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, app: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.InitialProgram() { @@ -2545,7 +2530,7 @@ impl ITsSbSession_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetInitialProgram, Impl: ITsSbSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, application: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetInitialProgram, Impl: ITsSbSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, application: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetInitialProgram(::core::mem::transmute(&application)).into() @@ -2607,34 +2592,34 @@ impl ITsSbSession_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] +#[cfg(feature = "Win32_System_Com_StructuredStorage")] pub trait ITsSbTarget_Impl: Sized { - fn TargetName(&self) -> ::windows::core::Result; - fn SetTargetName(&self, val: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn FarmName(&self) -> ::windows::core::Result; - fn SetFarmName(&self, val: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn TargetFQDN(&self) -> ::windows::core::Result; - fn SetTargetFQDN(&self, val: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn TargetNetbios(&self) -> ::windows::core::Result; - fn SetTargetNetbios(&self, val: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn TargetName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetTargetName(&self, val: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn FarmName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetFarmName(&self, val: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn TargetFQDN(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetTargetFQDN(&self, val: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn TargetNetbios(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetTargetNetbios(&self, val: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn get_IpAddresses(&self, sockaddr: *mut TSSD_ConnectionPoint, numaddresses: *mut u32) -> ::windows::core::Result<()>; fn put_IpAddresses(&self, sockaddr: *const TSSD_ConnectionPoint, numaddresses: u32) -> ::windows::core::Result<()>; fn TargetState(&self) -> ::windows::core::Result; fn SetTargetState(&self, state: TARGET_STATE) -> ::windows::core::Result<()>; fn TargetPropertySet(&self) -> ::windows::core::Result; fn SetTargetPropertySet(&self, pval: &::core::option::Option) -> ::windows::core::Result<()>; - fn EnvironmentName(&self) -> ::windows::core::Result; - fn SetEnvironmentName(&self, val: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn EnvironmentName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetEnvironmentName(&self, val: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn NumSessions(&self) -> ::windows::core::Result; fn NumPendingConnections(&self) -> ::windows::core::Result; fn TargetLoad(&self) -> ::windows::core::Result; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] +#[cfg(feature = "Win32_System_Com_StructuredStorage")] impl ::windows::core::RuntimeName for ITsSbTarget {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] +#[cfg(feature = "Win32_System_Com_StructuredStorage")] impl ITsSbTarget_Vtbl { pub const fn new, Impl: ITsSbTarget_Impl, const OFFSET: isize>() -> ITsSbTarget_Vtbl { - unsafe extern "system" fn TargetName, Impl: ITsSbTarget_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TargetName, Impl: ITsSbTarget_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TargetName() { @@ -2645,12 +2630,12 @@ impl ITsSbTarget_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetTargetName, Impl: ITsSbTarget_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, val: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetTargetName, Impl: ITsSbTarget_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, val: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetTargetName(::core::mem::transmute(&val)).into() } - unsafe extern "system" fn FarmName, Impl: ITsSbTarget_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FarmName, Impl: ITsSbTarget_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FarmName() { @@ -2661,12 +2646,12 @@ impl ITsSbTarget_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetFarmName, Impl: ITsSbTarget_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, val: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetFarmName, Impl: ITsSbTarget_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, val: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetFarmName(::core::mem::transmute(&val)).into() } - unsafe extern "system" fn TargetFQDN, Impl: ITsSbTarget_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targetfqdnname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TargetFQDN, Impl: ITsSbTarget_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targetfqdnname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TargetFQDN() { @@ -2677,12 +2662,12 @@ impl ITsSbTarget_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetTargetFQDN, Impl: ITsSbTarget_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, val: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetTargetFQDN, Impl: ITsSbTarget_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, val: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetTargetFQDN(::core::mem::transmute(&val)).into() } - unsafe extern "system" fn TargetNetbios, Impl: ITsSbTarget_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targetnetbiosname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TargetNetbios, Impl: ITsSbTarget_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targetnetbiosname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TargetNetbios() { @@ -2693,7 +2678,7 @@ impl ITsSbTarget_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetTargetNetbios, Impl: ITsSbTarget_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, val: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetTargetNetbios, Impl: ITsSbTarget_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, val: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetTargetNetbios(::core::mem::transmute(&val)).into() @@ -2740,7 +2725,7 @@ impl ITsSbTarget_Vtbl { let this = (*this).get_impl(); this.SetTargetPropertySet(::core::mem::transmute(&pval)).into() } - unsafe extern "system" fn EnvironmentName, Impl: ITsSbTarget_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn EnvironmentName, Impl: ITsSbTarget_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EnvironmentName() { @@ -2751,7 +2736,7 @@ impl ITsSbTarget_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetEnvironmentName, Impl: ITsSbTarget_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, val: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetEnvironmentName, Impl: ITsSbTarget_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, val: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetEnvironmentName(::core::mem::transmute(&val)).into() @@ -2831,14 +2816,14 @@ impl ITsSbTargetPropertySet_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub trait ITsSbTaskInfo_Impl: Sized { - fn TargetId(&self) -> ::windows::core::Result; + fn TargetId(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn StartTime(&self) -> ::windows::core::Result; fn EndTime(&self) -> ::windows::core::Result; fn Deadline(&self) -> ::windows::core::Result; - fn Identifier(&self) -> ::windows::core::Result; - fn Label(&self) -> ::windows::core::Result; + fn Identifier(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Label(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Context(&self) -> ::windows::core::Result<*mut super::Com::SAFEARRAY>; - fn Plugin(&self) -> ::windows::core::Result; + fn Plugin(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Status(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] @@ -2846,7 +2831,7 @@ impl ::windows::core::RuntimeName for ITsSbTaskInfo {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] impl ITsSbTaskInfo_Vtbl { pub const fn new, Impl: ITsSbTaskInfo_Impl, const OFFSET: isize>() -> ITsSbTaskInfo_Vtbl { - unsafe extern "system" fn TargetId, Impl: ITsSbTaskInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TargetId, Impl: ITsSbTaskInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TargetId() { @@ -2890,7 +2875,7 @@ impl ITsSbTaskInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Identifier, Impl: ITsSbTaskInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pidentifier: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Identifier, Impl: ITsSbTaskInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pidentifier: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Identifier() { @@ -2901,7 +2886,7 @@ impl ITsSbTaskInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Label, Impl: ITsSbTaskInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, plabel: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Label, Impl: ITsSbTaskInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, plabel: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Label() { @@ -2923,7 +2908,7 @@ impl ITsSbTaskInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Plugin, Impl: ITsSbTaskInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pplugin: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Plugin, Impl: ITsSbTaskInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pplugin: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Plugin() { @@ -2962,14 +2947,14 @@ impl ITsSbTaskInfo_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] +#[cfg(feature = "Win32_System_Com_StructuredStorage")] pub trait ITsSbTaskPlugin_Impl: Sized + ITsSbPlugin_Impl { fn InitializeTaskPlugin(&self, pitssbtaskpluginnotifysink: &::core::option::Option) -> ::windows::core::Result<()>; - fn SetTaskQueue(&self, pszhostname: &super::super::Foundation::BSTR, sbtaskinfosize: u32, pitssbtaskinfo: *const ::core::option::Option) -> ::windows::core::Result<()>; + fn SetTaskQueue(&self, pszhostname: &::windows::core::BSTR, sbtaskinfosize: u32, pitssbtaskinfo: *const ::core::option::Option) -> ::windows::core::Result<()>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] +#[cfg(feature = "Win32_System_Com_StructuredStorage")] impl ::windows::core::RuntimeName for ITsSbTaskPlugin {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] +#[cfg(feature = "Win32_System_Com_StructuredStorage")] impl ITsSbTaskPlugin_Vtbl { pub const fn new, Impl: ITsSbTaskPlugin_Impl, const OFFSET: isize>() -> ITsSbTaskPlugin_Vtbl { unsafe extern "system" fn InitializeTaskPlugin, Impl: ITsSbTaskPlugin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pitssbtaskpluginnotifysink: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -2977,7 +2962,7 @@ impl ITsSbTaskPlugin_Vtbl { let this = (*this).get_impl(); this.InitializeTaskPlugin(::core::mem::transmute(&pitssbtaskpluginnotifysink)).into() } - unsafe extern "system" fn SetTaskQueue, Impl: ITsSbTaskPlugin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszhostname: ::core::mem::ManuallyDrop, sbtaskinfosize: u32, pitssbtaskinfo: *const *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetTaskQueue, Impl: ITsSbTaskPlugin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszhostname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, sbtaskinfosize: u32, pitssbtaskinfo: *const *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetTaskQueue(::core::mem::transmute(&pszhostname), ::core::mem::transmute_copy(&sbtaskinfosize), ::core::mem::transmute_copy(&pitssbtaskinfo)).into() @@ -2994,32 +2979,32 @@ impl ITsSbTaskPlugin_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub trait ITsSbTaskPluginNotifySink_Impl: Sized + ITsSbBaseNotifySink_Impl { - fn OnSetTaskTime(&self, sztargetname: &super::super::Foundation::BSTR, taskstarttime: &super::super::Foundation::FILETIME, taskendtime: &super::super::Foundation::FILETIME, taskdeadline: &super::super::Foundation::FILETIME, sztasklabel: &super::super::Foundation::BSTR, sztaskidentifier: &super::super::Foundation::BSTR, sztaskplugin: &super::super::Foundation::BSTR, dwtaskstatus: u32, sacontext: *const super::Com::SAFEARRAY) -> ::windows::core::Result<()>; - fn OnDeleteTaskTime(&self, sztargetname: &super::super::Foundation::BSTR, sztaskidentifier: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn OnUpdateTaskStatus(&self, sztargetname: &super::super::Foundation::BSTR, taskidentifier: &super::super::Foundation::BSTR, taskstatus: RDV_TASK_STATUS) -> ::windows::core::Result<()>; - fn OnReportTasks(&self, szhostname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn OnSetTaskTime(&self, sztargetname: &::windows::core::BSTR, taskstarttime: &super::super::Foundation::FILETIME, taskendtime: &super::super::Foundation::FILETIME, taskdeadline: &super::super::Foundation::FILETIME, sztasklabel: &::windows::core::BSTR, sztaskidentifier: &::windows::core::BSTR, sztaskplugin: &::windows::core::BSTR, dwtaskstatus: u32, sacontext: *const super::Com::SAFEARRAY) -> ::windows::core::Result<()>; + fn OnDeleteTaskTime(&self, sztargetname: &::windows::core::BSTR, sztaskidentifier: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn OnUpdateTaskStatus(&self, sztargetname: &::windows::core::BSTR, taskidentifier: &::windows::core::BSTR, taskstatus: RDV_TASK_STATUS) -> ::windows::core::Result<()>; + fn OnReportTasks(&self, szhostname: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] impl ::windows::core::RuntimeName for ITsSbTaskPluginNotifySink {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] impl ITsSbTaskPluginNotifySink_Vtbl { pub const fn new, Impl: ITsSbTaskPluginNotifySink_Impl, const OFFSET: isize>() -> ITsSbTaskPluginNotifySink_Vtbl { - unsafe extern "system" fn OnSetTaskTime, Impl: ITsSbTaskPluginNotifySink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sztargetname: ::core::mem::ManuallyDrop, taskstarttime: super::super::Foundation::FILETIME, taskendtime: super::super::Foundation::FILETIME, taskdeadline: super::super::Foundation::FILETIME, sztasklabel: ::core::mem::ManuallyDrop, sztaskidentifier: ::core::mem::ManuallyDrop, sztaskplugin: ::core::mem::ManuallyDrop, dwtaskstatus: u32, sacontext: *const super::Com::SAFEARRAY) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnSetTaskTime, Impl: ITsSbTaskPluginNotifySink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sztargetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, taskstarttime: super::super::Foundation::FILETIME, taskendtime: super::super::Foundation::FILETIME, taskdeadline: super::super::Foundation::FILETIME, sztasklabel: ::core::mem::ManuallyDrop<::windows::core::BSTR>, sztaskidentifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, sztaskplugin: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwtaskstatus: u32, sacontext: *const super::Com::SAFEARRAY) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnSetTaskTime(::core::mem::transmute(&sztargetname), ::core::mem::transmute(&taskstarttime), ::core::mem::transmute(&taskendtime), ::core::mem::transmute(&taskdeadline), ::core::mem::transmute(&sztasklabel), ::core::mem::transmute(&sztaskidentifier), ::core::mem::transmute(&sztaskplugin), ::core::mem::transmute_copy(&dwtaskstatus), ::core::mem::transmute_copy(&sacontext)).into() } - unsafe extern "system" fn OnDeleteTaskTime, Impl: ITsSbTaskPluginNotifySink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sztargetname: ::core::mem::ManuallyDrop, sztaskidentifier: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnDeleteTaskTime, Impl: ITsSbTaskPluginNotifySink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sztargetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, sztaskidentifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnDeleteTaskTime(::core::mem::transmute(&sztargetname), ::core::mem::transmute(&sztaskidentifier)).into() } - unsafe extern "system" fn OnUpdateTaskStatus, Impl: ITsSbTaskPluginNotifySink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sztargetname: ::core::mem::ManuallyDrop, taskidentifier: ::core::mem::ManuallyDrop, taskstatus: RDV_TASK_STATUS) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnUpdateTaskStatus, Impl: ITsSbTaskPluginNotifySink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sztargetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, taskidentifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, taskstatus: RDV_TASK_STATUS) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnUpdateTaskStatus(::core::mem::transmute(&sztargetname), ::core::mem::transmute(&taskidentifier), ::core::mem::transmute_copy(&taskstatus)).into() } - unsafe extern "system" fn OnReportTasks, Impl: ITsSbTaskPluginNotifySink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, szhostname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnReportTasks, Impl: ITsSbTaskPluginNotifySink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, szhostname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnReportTasks(::core::mem::transmute(&szhostname)).into() @@ -4001,14 +3986,14 @@ impl IWTSListener_Vtbl { } #[cfg(feature = "Win32_Foundation")] pub trait IWTSListenerCallback_Impl: Sized { - fn OnNewChannelConnection(&self, pchannel: &::core::option::Option, data: &super::super::Foundation::BSTR, pbaccept: *mut super::super::Foundation::BOOL, ppcallback: *mut ::core::option::Option) -> ::windows::core::Result<()>; + fn OnNewChannelConnection(&self, pchannel: &::core::option::Option, data: &::windows::core::BSTR, pbaccept: *mut super::super::Foundation::BOOL, ppcallback: *mut ::core::option::Option) -> ::windows::core::Result<()>; } #[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IWTSListenerCallback {} #[cfg(feature = "Win32_Foundation")] impl IWTSListenerCallback_Vtbl { pub const fn new, Impl: IWTSListenerCallback_Impl, const OFFSET: isize>() -> IWTSListenerCallback_Vtbl { - unsafe extern "system" fn OnNewChannelConnection, Impl: IWTSListenerCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pchannel: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop, pbaccept: *mut super::super::Foundation::BOOL, ppcallback: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnNewChannelConnection, Impl: IWTSListenerCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pchannel: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbaccept: *mut super::super::Foundation::BOOL, ppcallback: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnNewChannelConnection(::core::mem::transmute(&pchannel), ::core::mem::transmute(&data), ::core::mem::transmute_copy(&pbaccept), ::core::mem::transmute_copy(&ppcallback)).into() @@ -4768,15 +4753,15 @@ impl IWTSVirtualChannelManager_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IWorkspace_Impl: Sized { fn GetWorkspaceNames(&self) -> ::windows::core::Result<*mut super::Com::SAFEARRAY>; - fn StartRemoteApplication(&self, bstrworkspaceid: &super::super::Foundation::BSTR, psaparams: *const super::Com::SAFEARRAY) -> ::windows::core::Result<()>; + fn StartRemoteApplication(&self, bstrworkspaceid: &::windows::core::BSTR, psaparams: *const super::Com::SAFEARRAY) -> ::windows::core::Result<()>; fn GetProcessId(&self) -> ::windows::core::Result; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IWorkspace {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IWorkspace_Vtbl { pub const fn new, Impl: IWorkspace_Impl, const OFFSET: isize>() -> IWorkspace_Vtbl { unsafe extern "system" fn GetWorkspaceNames, Impl: IWorkspace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, psawkspnames: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT { @@ -4790,7 +4775,7 @@ impl IWorkspace_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn StartRemoteApplication, Impl: IWorkspace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop, psaparams: *const super::Com::SAFEARRAY) -> ::windows::core::HRESULT { + unsafe extern "system" fn StartRemoteApplication, Impl: IWorkspace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, psaparams: *const super::Com::SAFEARRAY) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.StartRemoteApplication(::core::mem::transmute(&bstrworkspaceid), ::core::mem::transmute_copy(&psaparams)).into() @@ -4817,16 +4802,16 @@ impl IWorkspace_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IWorkspace2_Impl: Sized + IWorkspace_Impl { - fn StartRemoteApplicationEx(&self, bstrworkspaceid: &super::super::Foundation::BSTR, bstrrequestingappid: &super::super::Foundation::BSTR, bstrrequestingappfamilyname: &super::super::Foundation::BSTR, blaunchintoimmersiveclient: i16, bstrimmersiveclientactivationcontext: &super::super::Foundation::BSTR, psaparams: *const super::Com::SAFEARRAY) -> ::windows::core::Result<()>; + fn StartRemoteApplicationEx(&self, bstrworkspaceid: &::windows::core::BSTR, bstrrequestingappid: &::windows::core::BSTR, bstrrequestingappfamilyname: &::windows::core::BSTR, blaunchintoimmersiveclient: i16, bstrimmersiveclientactivationcontext: &::windows::core::BSTR, psaparams: *const super::Com::SAFEARRAY) -> ::windows::core::Result<()>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IWorkspace2 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IWorkspace2_Vtbl { pub const fn new, Impl: IWorkspace2_Impl, const OFFSET: isize>() -> IWorkspace2_Vtbl { - unsafe extern "system" fn StartRemoteApplicationEx, Impl: IWorkspace2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop, bstrrequestingappid: ::core::mem::ManuallyDrop, bstrrequestingappfamilyname: ::core::mem::ManuallyDrop, blaunchintoimmersiveclient: i16, bstrimmersiveclientactivationcontext: ::core::mem::ManuallyDrop, psaparams: *const super::Com::SAFEARRAY) -> ::windows::core::HRESULT { + unsafe extern "system" fn StartRemoteApplicationEx, Impl: IWorkspace2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrrequestingappid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrrequestingappfamilyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, blaunchintoimmersiveclient: i16, bstrimmersiveclientactivationcontext: ::core::mem::ManuallyDrop<::windows::core::BSTR>, psaparams: *const super::Com::SAFEARRAY) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.StartRemoteApplicationEx(::core::mem::transmute(&bstrworkspaceid), ::core::mem::transmute(&bstrrequestingappid), ::core::mem::transmute(&bstrrequestingappfamilyname), ::core::mem::transmute_copy(&blaunchintoimmersiveclient), ::core::mem::transmute(&bstrimmersiveclientactivationcontext), ::core::mem::transmute_copy(&psaparams)).into() @@ -4839,15 +4824,15 @@ impl IWorkspace2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub trait IWorkspace3_Impl: Sized + IWorkspace_Impl + IWorkspace2_Impl { - fn GetClaimsToken2(&self, bstrclaimshint: &super::super::Foundation::BSTR, bstruserhint: &super::super::Foundation::BSTR, claimcookie: u32, hwndcreduiparent: u32, rectcreduiparent: &super::super::Foundation::RECT) -> ::windows::core::Result; - fn SetClaimsToken(&self, bstraccesstoken: &super::super::Foundation::BSTR, ullaccesstokenexpiration: u64, bstrrefreshtoken: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetClaimsToken2(&self, bstrclaimshint: &::windows::core::BSTR, bstruserhint: &::windows::core::BSTR, claimcookie: u32, hwndcreduiparent: u32, rectcreduiparent: &super::super::Foundation::RECT) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetClaimsToken(&self, bstraccesstoken: &::windows::core::BSTR, ullaccesstokenexpiration: u64, bstrrefreshtoken: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] impl ::windows::core::RuntimeName for IWorkspace3 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] impl IWorkspace3_Vtbl { pub const fn new, Impl: IWorkspace3_Impl, const OFFSET: isize>() -> IWorkspace3_Vtbl { - unsafe extern "system" fn GetClaimsToken2, Impl: IWorkspace3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrclaimshint: ::core::mem::ManuallyDrop, bstruserhint: ::core::mem::ManuallyDrop, claimcookie: u32, hwndcreduiparent: u32, rectcreduiparent: super::super::Foundation::RECT, pbstraccesstoken: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetClaimsToken2, Impl: IWorkspace3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrclaimshint: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstruserhint: ::core::mem::ManuallyDrop<::windows::core::BSTR>, claimcookie: u32, hwndcreduiparent: u32, rectcreduiparent: super::super::Foundation::RECT, pbstraccesstoken: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetClaimsToken2(::core::mem::transmute(&bstrclaimshint), ::core::mem::transmute(&bstruserhint), ::core::mem::transmute_copy(&claimcookie), ::core::mem::transmute_copy(&hwndcreduiparent), ::core::mem::transmute(&rectcreduiparent)) { @@ -4858,7 +4843,7 @@ impl IWorkspace3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetClaimsToken, Impl: IWorkspace3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstraccesstoken: ::core::mem::ManuallyDrop, ullaccesstokenexpiration: u64, bstrrefreshtoken: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetClaimsToken, Impl: IWorkspace3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstraccesstoken: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ullaccesstokenexpiration: u64, bstrrefreshtoken: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetClaimsToken(::core::mem::transmute(&bstraccesstoken), ::core::mem::transmute_copy(&ullaccesstokenexpiration), ::core::mem::transmute(&bstrrefreshtoken)).into() @@ -4873,18 +4858,15 @@ impl IWorkspace3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IWorkspaceClientExt_Impl: Sized { - fn GetResourceId(&self) -> ::windows::core::Result; - fn GetResourceDisplayName(&self) -> ::windows::core::Result; + fn GetResourceId(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetResourceDisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn IssueDisconnect(&self) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IWorkspaceClientExt {} -#[cfg(feature = "Win32_Foundation")] impl IWorkspaceClientExt_Vtbl { pub const fn new, Impl: IWorkspaceClientExt_Impl, const OFFSET: isize>() -> IWorkspaceClientExt_Vtbl { - unsafe extern "system" fn GetResourceId, Impl: IWorkspaceClientExt_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrworkspaceid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetResourceId, Impl: IWorkspaceClientExt_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrworkspaceid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetResourceId() { @@ -4895,7 +4877,7 @@ impl IWorkspaceClientExt_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetResourceDisplayName, Impl: IWorkspaceClientExt_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrworkspacedisplayname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetResourceDisplayName, Impl: IWorkspaceClientExt_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrworkspacedisplayname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetResourceDisplayName() { @@ -4955,17 +4937,14 @@ impl IWorkspaceRegistration_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IWorkspaceRegistration2_Impl: Sized + IWorkspaceRegistration_Impl { - fn AddResourceEx(&self, punk: &::core::option::Option, bstreventloguploadaddress: &super::super::Foundation::BSTR, pdwcookie: *mut u32, correlationid: &::windows::core::GUID) -> ::windows::core::Result<()>; + fn AddResourceEx(&self, punk: &::core::option::Option, bstreventloguploadaddress: &::windows::core::BSTR, pdwcookie: *mut u32, correlationid: &::windows::core::GUID) -> ::windows::core::Result<()>; fn RemoveResourceEx(&self, dwcookieconnection: u32, correlationid: &::windows::core::GUID) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IWorkspaceRegistration2 {} -#[cfg(feature = "Win32_Foundation")] impl IWorkspaceRegistration2_Vtbl { pub const fn new, Impl: IWorkspaceRegistration2_Impl, const OFFSET: isize>() -> IWorkspaceRegistration2_Vtbl { - unsafe extern "system" fn AddResourceEx, Impl: IWorkspaceRegistration2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, punk: *mut ::core::ffi::c_void, bstreventloguploadaddress: ::core::mem::ManuallyDrop, pdwcookie: *mut u32, correlationid: ::windows::core::GUID) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddResourceEx, Impl: IWorkspaceRegistration2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, punk: *mut ::core::ffi::c_void, bstreventloguploadaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwcookie: *mut u32, correlationid: ::windows::core::GUID) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddResourceEx(::core::mem::transmute(&punk), ::core::mem::transmute(&bstreventloguploadaddress), ::core::mem::transmute_copy(&pdwcookie), ::core::mem::transmute(&correlationid)).into() @@ -4985,23 +4964,20 @@ impl IWorkspaceRegistration2_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IWorkspaceReportMessage_Impl: Sized { - fn RegisterErrorLogMessage(&self, bstrmessage: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn IsErrorMessageRegistered(&self, bstrwkspid: &super::super::Foundation::BSTR, dwerrortype: u32, bstrerrormessagetype: &super::super::Foundation::BSTR, dwerrorcode: u32) -> ::windows::core::Result; - fn RegisterErrorEvent(&self, bstrwkspid: &super::super::Foundation::BSTR, dwerrortype: u32, bstrerrormessagetype: &super::super::Foundation::BSTR, dwerrorcode: u32) -> ::windows::core::Result<()>; + fn RegisterErrorLogMessage(&self, bstrmessage: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn IsErrorMessageRegistered(&self, bstrwkspid: &::windows::core::BSTR, dwerrortype: u32, bstrerrormessagetype: &::windows::core::BSTR, dwerrorcode: u32) -> ::windows::core::Result; + fn RegisterErrorEvent(&self, bstrwkspid: &::windows::core::BSTR, dwerrortype: u32, bstrerrormessagetype: &::windows::core::BSTR, dwerrorcode: u32) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IWorkspaceReportMessage {} -#[cfg(feature = "Win32_Foundation")] impl IWorkspaceReportMessage_Vtbl { pub const fn new, Impl: IWorkspaceReportMessage_Impl, const OFFSET: isize>() -> IWorkspaceReportMessage_Vtbl { - unsafe extern "system" fn RegisterErrorLogMessage, Impl: IWorkspaceReportMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmessage: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn RegisterErrorLogMessage, Impl: IWorkspaceReportMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmessage: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RegisterErrorLogMessage(::core::mem::transmute(&bstrmessage)).into() } - unsafe extern "system" fn IsErrorMessageRegistered, Impl: IWorkspaceReportMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrwkspid: ::core::mem::ManuallyDrop, dwerrortype: u32, bstrerrormessagetype: ::core::mem::ManuallyDrop, dwerrorcode: u32, pferrorexist: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn IsErrorMessageRegistered, Impl: IWorkspaceReportMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrwkspid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwerrortype: u32, bstrerrormessagetype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwerrorcode: u32, pferrorexist: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.IsErrorMessageRegistered(::core::mem::transmute(&bstrwkspid), ::core::mem::transmute_copy(&dwerrortype), ::core::mem::transmute(&bstrerrormessagetype), ::core::mem::transmute_copy(&dwerrorcode)) { @@ -5012,7 +4988,7 @@ impl IWorkspaceReportMessage_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RegisterErrorEvent, Impl: IWorkspaceReportMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrwkspid: ::core::mem::ManuallyDrop, dwerrortype: u32, bstrerrormessagetype: ::core::mem::ManuallyDrop, dwerrorcode: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn RegisterErrorEvent, Impl: IWorkspaceReportMessage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrwkspid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwerrortype: u32, bstrerrormessagetype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwerrorcode: u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RegisterErrorEvent(::core::mem::transmute(&bstrwkspid), ::core::mem::transmute_copy(&dwerrortype), ::core::mem::transmute(&bstrerrormessagetype), ::core::mem::transmute_copy(&dwerrorcode)).into() @@ -5030,23 +5006,23 @@ impl IWorkspaceReportMessage_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWorkspaceResTypeRegistry_Impl: Sized + super::Com::IDispatch_Impl { - fn AddResourceType(&self, fmachinewide: i16, bstrfileextension: &super::super::Foundation::BSTR, bstrlauncher: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn DeleteResourceType(&self, fmachinewide: i16, bstrfileextension: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn AddResourceType(&self, fmachinewide: i16, bstrfileextension: &::windows::core::BSTR, bstrlauncher: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn DeleteResourceType(&self, fmachinewide: i16, bstrfileextension: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetRegisteredFileExtensions(&self, fmachinewide: i16) -> ::windows::core::Result<*mut super::Com::SAFEARRAY>; - fn GetResourceTypeInfo(&self, fmachinewide: i16, bstrfileextension: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn ModifyResourceType(&self, fmachinewide: i16, bstrfileextension: &super::super::Foundation::BSTR, bstrlauncher: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetResourceTypeInfo(&self, fmachinewide: i16, bstrfileextension: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; + fn ModifyResourceType(&self, fmachinewide: i16, bstrfileextension: &::windows::core::BSTR, bstrlauncher: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWorkspaceResTypeRegistry {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWorkspaceResTypeRegistry_Vtbl { pub const fn new, Impl: IWorkspaceResTypeRegistry_Impl, const OFFSET: isize>() -> IWorkspaceResTypeRegistry_Vtbl { - unsafe extern "system" fn AddResourceType, Impl: IWorkspaceResTypeRegistry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, fmachinewide: i16, bstrfileextension: ::core::mem::ManuallyDrop, bstrlauncher: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddResourceType, Impl: IWorkspaceResTypeRegistry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, fmachinewide: i16, bstrfileextension: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrlauncher: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddResourceType(::core::mem::transmute_copy(&fmachinewide), ::core::mem::transmute(&bstrfileextension), ::core::mem::transmute(&bstrlauncher)).into() } - unsafe extern "system" fn DeleteResourceType, Impl: IWorkspaceResTypeRegistry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, fmachinewide: i16, bstrfileextension: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteResourceType, Impl: IWorkspaceResTypeRegistry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, fmachinewide: i16, bstrfileextension: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteResourceType(::core::mem::transmute_copy(&fmachinewide), ::core::mem::transmute(&bstrfileextension)).into() @@ -5062,7 +5038,7 @@ impl IWorkspaceResTypeRegistry_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetResourceTypeInfo, Impl: IWorkspaceResTypeRegistry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, fmachinewide: i16, bstrfileextension: ::core::mem::ManuallyDrop, pbstrlauncher: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetResourceTypeInfo, Impl: IWorkspaceResTypeRegistry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, fmachinewide: i16, bstrfileextension: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrlauncher: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetResourceTypeInfo(::core::mem::transmute_copy(&fmachinewide), ::core::mem::transmute(&bstrfileextension)) { @@ -5073,7 +5049,7 @@ impl IWorkspaceResTypeRegistry_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ModifyResourceType, Impl: IWorkspaceResTypeRegistry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, fmachinewide: i16, bstrfileextension: ::core::mem::ManuallyDrop, bstrlauncher: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ModifyResourceType, Impl: IWorkspaceResTypeRegistry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, fmachinewide: i16, bstrfileextension: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrlauncher: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ModifyResourceType(::core::mem::transmute_copy(&fmachinewide), ::core::mem::transmute(&bstrfileextension), ::core::mem::transmute(&bstrlauncher)).into() @@ -5093,30 +5069,30 @@ impl IWorkspaceResTypeRegistry_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWorkspaceScriptable_Impl: Sized + super::Com::IDispatch_Impl { - fn DisconnectWorkspace(&self, bstrworkspaceid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn StartWorkspace(&self, bstrworkspaceid: &super::super::Foundation::BSTR, bstrusername: &super::super::Foundation::BSTR, bstrpassword: &super::super::Foundation::BSTR, bstrworkspaceparams: &super::super::Foundation::BSTR, ltimeout: i32, lflags: i32) -> ::windows::core::Result<()>; - fn IsWorkspaceCredentialSpecified(&self, bstrworkspaceid: &super::super::Foundation::BSTR, bcountunauthenticatedcredentials: i16) -> ::windows::core::Result; + fn DisconnectWorkspace(&self, bstrworkspaceid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn StartWorkspace(&self, bstrworkspaceid: &::windows::core::BSTR, bstrusername: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR, bstrworkspaceparams: &::windows::core::BSTR, ltimeout: i32, lflags: i32) -> ::windows::core::Result<()>; + fn IsWorkspaceCredentialSpecified(&self, bstrworkspaceid: &::windows::core::BSTR, bcountunauthenticatedcredentials: i16) -> ::windows::core::Result; fn IsWorkspaceSSOEnabled(&self) -> ::windows::core::Result; - fn ClearWorkspaceCredential(&self, bstrworkspaceid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn OnAuthenticated(&self, bstrworkspaceid: &super::super::Foundation::BSTR, bstrusername: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn DisconnectWorkspaceByFriendlyName(&self, bstrworkspacefriendlyname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ClearWorkspaceCredential(&self, bstrworkspaceid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn OnAuthenticated(&self, bstrworkspaceid: &::windows::core::BSTR, bstrusername: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn DisconnectWorkspaceByFriendlyName(&self, bstrworkspacefriendlyname: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWorkspaceScriptable {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWorkspaceScriptable_Vtbl { pub const fn new, Impl: IWorkspaceScriptable_Impl, const OFFSET: isize>() -> IWorkspaceScriptable_Vtbl { - unsafe extern "system" fn DisconnectWorkspace, Impl: IWorkspaceScriptable_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DisconnectWorkspace, Impl: IWorkspaceScriptable_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DisconnectWorkspace(::core::mem::transmute(&bstrworkspaceid)).into() } - unsafe extern "system" fn StartWorkspace, Impl: IWorkspaceScriptable_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop, bstrusername: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop, bstrworkspaceparams: ::core::mem::ManuallyDrop, ltimeout: i32, lflags: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn StartWorkspace, Impl: IWorkspaceScriptable_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrworkspaceparams: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ltimeout: i32, lflags: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.StartWorkspace(::core::mem::transmute(&bstrworkspaceid), ::core::mem::transmute(&bstrusername), ::core::mem::transmute(&bstrpassword), ::core::mem::transmute(&bstrworkspaceparams), ::core::mem::transmute_copy(<imeout), ::core::mem::transmute_copy(&lflags)).into() } - unsafe extern "system" fn IsWorkspaceCredentialSpecified, Impl: IWorkspaceScriptable_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop, bcountunauthenticatedcredentials: i16, pbcredexist: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn IsWorkspaceCredentialSpecified, Impl: IWorkspaceScriptable_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bcountunauthenticatedcredentials: i16, pbcredexist: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.IsWorkspaceCredentialSpecified(::core::mem::transmute(&bstrworkspaceid), ::core::mem::transmute_copy(&bcountunauthenticatedcredentials)) { @@ -5138,17 +5114,17 @@ impl IWorkspaceScriptable_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ClearWorkspaceCredential, Impl: IWorkspaceScriptable_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ClearWorkspaceCredential, Impl: IWorkspaceScriptable_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ClearWorkspaceCredential(::core::mem::transmute(&bstrworkspaceid)).into() } - unsafe extern "system" fn OnAuthenticated, Impl: IWorkspaceScriptable_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop, bstrusername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnAuthenticated, Impl: IWorkspaceScriptable_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnAuthenticated(::core::mem::transmute(&bstrworkspaceid), ::core::mem::transmute(&bstrusername)).into() } - unsafe extern "system" fn DisconnectWorkspaceByFriendlyName, Impl: IWorkspaceScriptable_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrworkspacefriendlyname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DisconnectWorkspaceByFriendlyName, Impl: IWorkspaceScriptable_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrworkspacefriendlyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DisconnectWorkspaceByFriendlyName(::core::mem::transmute(&bstrworkspacefriendlyname)).into() @@ -5170,20 +5146,20 @@ impl IWorkspaceScriptable_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWorkspaceScriptable2_Impl: Sized + super::Com::IDispatch_Impl + IWorkspaceScriptable_Impl { - fn StartWorkspaceEx(&self, bstrworkspaceid: &super::super::Foundation::BSTR, bstrworkspacefriendlyname: &super::super::Foundation::BSTR, bstrredirectorname: &super::super::Foundation::BSTR, bstrusername: &super::super::Foundation::BSTR, bstrpassword: &super::super::Foundation::BSTR, bstrappcontainer: &super::super::Foundation::BSTR, bstrworkspaceparams: &super::super::Foundation::BSTR, ltimeout: i32, lflags: i32) -> ::windows::core::Result<()>; - fn ResourceDismissed(&self, bstrworkspaceid: &super::super::Foundation::BSTR, bstrworkspacefriendlyname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn StartWorkspaceEx(&self, bstrworkspaceid: &::windows::core::BSTR, bstrworkspacefriendlyname: &::windows::core::BSTR, bstrredirectorname: &::windows::core::BSTR, bstrusername: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR, bstrappcontainer: &::windows::core::BSTR, bstrworkspaceparams: &::windows::core::BSTR, ltimeout: i32, lflags: i32) -> ::windows::core::Result<()>; + fn ResourceDismissed(&self, bstrworkspaceid: &::windows::core::BSTR, bstrworkspacefriendlyname: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWorkspaceScriptable2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWorkspaceScriptable2_Vtbl { pub const fn new, Impl: IWorkspaceScriptable2_Impl, const OFFSET: isize>() -> IWorkspaceScriptable2_Vtbl { - unsafe extern "system" fn StartWorkspaceEx, Impl: IWorkspaceScriptable2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop, bstrworkspacefriendlyname: ::core::mem::ManuallyDrop, bstrredirectorname: ::core::mem::ManuallyDrop, bstrusername: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop, bstrappcontainer: ::core::mem::ManuallyDrop, bstrworkspaceparams: ::core::mem::ManuallyDrop, ltimeout: i32, lflags: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn StartWorkspaceEx, Impl: IWorkspaceScriptable2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrworkspacefriendlyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrredirectorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrappcontainer: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrworkspaceparams: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ltimeout: i32, lflags: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.StartWorkspaceEx(::core::mem::transmute(&bstrworkspaceid), ::core::mem::transmute(&bstrworkspacefriendlyname), ::core::mem::transmute(&bstrredirectorname), ::core::mem::transmute(&bstrusername), ::core::mem::transmute(&bstrpassword), ::core::mem::transmute(&bstrappcontainer), ::core::mem::transmute(&bstrworkspaceparams), ::core::mem::transmute_copy(<imeout), ::core::mem::transmute_copy(&lflags)).into() } - unsafe extern "system" fn ResourceDismissed, Impl: IWorkspaceScriptable2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop, bstrworkspacefriendlyname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ResourceDismissed, Impl: IWorkspaceScriptable2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrworkspacefriendlyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ResourceDismissed(::core::mem::transmute(&bstrworkspaceid), ::core::mem::transmute(&bstrworkspacefriendlyname)).into() @@ -5200,7 +5176,7 @@ impl IWorkspaceScriptable2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWorkspaceScriptable3_Impl: Sized + super::Com::IDispatch_Impl + IWorkspaceScriptable_Impl + IWorkspaceScriptable2_Impl { - fn StartWorkspaceEx2(&self, bstrworkspaceid: &super::super::Foundation::BSTR, bstrworkspacefriendlyname: &super::super::Foundation::BSTR, bstrredirectorname: &super::super::Foundation::BSTR, bstrusername: &super::super::Foundation::BSTR, bstrpassword: &super::super::Foundation::BSTR, bstrappcontainer: &super::super::Foundation::BSTR, bstrworkspaceparams: &super::super::Foundation::BSTR, ltimeout: i32, lflags: i32, bstreventloguploadaddress: &super::super::Foundation::BSTR, correlationid: &::windows::core::GUID) -> ::windows::core::Result<()>; + fn StartWorkspaceEx2(&self, bstrworkspaceid: &::windows::core::BSTR, bstrworkspacefriendlyname: &::windows::core::BSTR, bstrredirectorname: &::windows::core::BSTR, bstrusername: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR, bstrappcontainer: &::windows::core::BSTR, bstrworkspaceparams: &::windows::core::BSTR, ltimeout: i32, lflags: i32, bstreventloguploadaddress: &::windows::core::BSTR, correlationid: &::windows::core::GUID) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWorkspaceScriptable3 {} @@ -5209,16 +5185,16 @@ impl IWorkspaceScriptable3_Vtbl { pub const fn new, Impl: IWorkspaceScriptable3_Impl, const OFFSET: isize>() -> IWorkspaceScriptable3_Vtbl { unsafe extern "system" fn StartWorkspaceEx2, Impl: IWorkspaceScriptable3_Impl, const OFFSET: isize>( this: *mut ::core::ffi::c_void, - bstrworkspaceid: ::core::mem::ManuallyDrop, - bstrworkspacefriendlyname: ::core::mem::ManuallyDrop, - bstrredirectorname: ::core::mem::ManuallyDrop, - bstrusername: ::core::mem::ManuallyDrop, - bstrpassword: ::core::mem::ManuallyDrop, - bstrappcontainer: ::core::mem::ManuallyDrop, - bstrworkspaceparams: ::core::mem::ManuallyDrop, + bstrworkspaceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, + bstrworkspacefriendlyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, + bstrredirectorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, + bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, + bstrpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, + bstrappcontainer: ::core::mem::ManuallyDrop<::windows::core::BSTR>, + bstrworkspaceparams: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ltimeout: i32, lflags: i32, - bstreventloguploadaddress: ::core::mem::ManuallyDrop, + bstreventloguploadaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, correlationid: ::windows::core::GUID, ) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; @@ -5232,18 +5208,15 @@ impl IWorkspaceScriptable3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait ItsPubPlugin_Impl: Sized { fn GetResourceList(&self, userid: &::windows::core::PCWSTR, pceapplistsize: *mut i32, resourcelist: *mut *mut pluginResource) -> ::windows::core::Result<()>; fn GetResource(&self, alias: &::windows::core::PCWSTR, flags: i32) -> ::windows::core::Result; fn GetCacheLastUpdateTime(&self) -> ::windows::core::Result; - fn pluginName(&self) -> ::windows::core::Result; - fn pluginVersion(&self) -> ::windows::core::Result; + fn pluginName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn pluginVersion(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn ResolveResource(&self, resourcetype: *mut u32, resourcelocation: ::windows::core::PWSTR, endpointname: ::windows::core::PWSTR, userid: &::windows::core::PCWSTR, alias: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ItsPubPlugin {} -#[cfg(feature = "Win32_Foundation")] impl ItsPubPlugin_Vtbl { pub const fn new, Impl: ItsPubPlugin_Impl, const OFFSET: isize>() -> ItsPubPlugin_Vtbl { unsafe extern "system" fn GetResourceList, Impl: ItsPubPlugin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, userid: ::windows::core::PCWSTR, pceapplistsize: *mut i32, resourcelist: *mut *mut pluginResource) -> ::windows::core::HRESULT { @@ -5273,7 +5246,7 @@ impl ItsPubPlugin_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn pluginName, Impl: ItsPubPlugin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn pluginName, Impl: ItsPubPlugin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.pluginName() { @@ -5284,7 +5257,7 @@ impl ItsPubPlugin_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn pluginVersion, Impl: ItsPubPlugin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn pluginVersion, Impl: ItsPubPlugin_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.pluginVersion() { @@ -5314,16 +5287,13 @@ impl ItsPubPlugin_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait ItsPubPlugin2_Impl: Sized + ItsPubPlugin_Impl { fn GetResource2List(&self, userid: &::windows::core::PCWSTR, pceapplistsize: *mut i32, resourcelist: *mut *mut pluginResource2) -> ::windows::core::Result<()>; fn GetResource2(&self, alias: &::windows::core::PCWSTR, flags: i32) -> ::windows::core::Result; fn ResolvePersonalDesktop(&self, userid: &::windows::core::PCWSTR, poolid: &::windows::core::PCWSTR, epdresolutiontype: TSPUB_PLUGIN_PD_RESOLUTION_TYPE, ppdassignmenttype: *mut TSPUB_PLUGIN_PD_ASSIGNMENT_TYPE, endpointname: ::windows::core::PWSTR) -> ::windows::core::Result<()>; fn DeletePersonalDesktopAssignment(&self, userid: &::windows::core::PCWSTR, poolid: &::windows::core::PCWSTR, endpointname: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ItsPubPlugin2 {} -#[cfg(feature = "Win32_Foundation")] impl ItsPubPlugin2_Vtbl { pub const fn new, Impl: ItsPubPlugin2_Impl, const OFFSET: isize>() -> ItsPubPlugin2_Vtbl { unsafe extern "system" fn GetResource2List, Impl: ItsPubPlugin2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, userid: ::windows::core::PCWSTR, pceapplistsize: *mut i32, resourcelist: *mut *mut pluginResource2) -> ::windows::core::HRESULT { diff --git a/crates/libs/windows/src/Windows/Win32/System/RemoteDesktop/mod.rs b/crates/libs/windows/src/Windows/Win32/System/RemoteDesktop/mod.rs index 3c55acebee..cac60432c2 100644 --- a/crates/libs/windows/src/Windows/Win32/System/RemoteDesktop/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/RemoteDesktop/mod.rs @@ -844,47 +844,26 @@ where pub struct IADsTSUserEx(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IADsTSUserEx { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TerminalServicesProfilePath(&self) -> ::windows::core::Result { + pub unsafe fn TerminalServicesProfilePath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TerminalServicesProfilePath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TerminalServicesProfilePath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetTerminalServicesProfilePath<'a, P0>(&self, pnewval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetTerminalServicesProfilePath)(::windows::core::Interface::as_raw(self), pnewval.into().abi()).ok() + pub unsafe fn SetTerminalServicesProfilePath(&self, pnewval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetTerminalServicesProfilePath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pnewval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TerminalServicesHomeDirectory(&self) -> ::windows::core::Result { + pub unsafe fn TerminalServicesHomeDirectory(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TerminalServicesHomeDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TerminalServicesHomeDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetTerminalServicesHomeDirectory<'a, P0>(&self, pnewval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetTerminalServicesHomeDirectory)(::windows::core::Interface::as_raw(self), pnewval.into().abi()).ok() + pub unsafe fn SetTerminalServicesHomeDirectory(&self, pnewval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetTerminalServicesHomeDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pnewval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TerminalServicesHomeDrive(&self) -> ::windows::core::Result { + pub unsafe fn TerminalServicesHomeDrive(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TerminalServicesHomeDrive)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TerminalServicesHomeDrive)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetTerminalServicesHomeDrive<'a, P0>(&self, pnewval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetTerminalServicesHomeDrive)(::windows::core::Interface::as_raw(self), pnewval.into().abi()).ok() + pub unsafe fn SetTerminalServicesHomeDrive(&self, pnewval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetTerminalServicesHomeDrive)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pnewval)).ok() } pub unsafe fn AllowLogon(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -956,33 +935,19 @@ impl IADsTSUserEx { pub unsafe fn SetDefaultToMainPrinter(&self, newval: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetDefaultToMainPrinter)(::windows::core::Interface::as_raw(self), newval).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TerminalServicesWorkDirectory(&self) -> ::windows::core::Result { + pub unsafe fn TerminalServicesWorkDirectory(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TerminalServicesWorkDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TerminalServicesWorkDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetTerminalServicesWorkDirectory<'a, P0>(&self, pnewval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetTerminalServicesWorkDirectory)(::windows::core::Interface::as_raw(self), pnewval.into().abi()).ok() + pub unsafe fn SetTerminalServicesWorkDirectory(&self, pnewval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetTerminalServicesWorkDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pnewval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TerminalServicesInitialProgram(&self) -> ::windows::core::Result { + pub unsafe fn TerminalServicesInitialProgram(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TerminalServicesInitialProgram)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TerminalServicesInitialProgram)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetTerminalServicesInitialProgram<'a, P0>(&self, pnewval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetTerminalServicesInitialProgram)(::windows::core::Interface::as_raw(self), pnewval.into().abi()).ok() + pub unsafe fn SetTerminalServicesInitialProgram(&self, pnewval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetTerminalServicesInitialProgram)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pnewval)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1051,30 +1016,12 @@ unsafe impl ::windows::core::Interface for IADsTSUserEx { #[doc(hidden)] pub struct IADsTSUserEx_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub TerminalServicesProfilePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TerminalServicesProfilePath: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetTerminalServicesProfilePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnewval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetTerminalServicesProfilePath: usize, - #[cfg(feature = "Win32_Foundation")] - pub TerminalServicesHomeDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TerminalServicesHomeDirectory: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetTerminalServicesHomeDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnewval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetTerminalServicesHomeDirectory: usize, - #[cfg(feature = "Win32_Foundation")] - pub TerminalServicesHomeDrive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TerminalServicesHomeDrive: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetTerminalServicesHomeDrive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnewval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetTerminalServicesHomeDrive: usize, + pub TerminalServicesProfilePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetTerminalServicesProfilePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnewval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub TerminalServicesHomeDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetTerminalServicesHomeDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnewval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub TerminalServicesHomeDrive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetTerminalServicesHomeDrive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnewval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub AllowLogon: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows::core::HRESULT, pub SetAllowLogon: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: i32) -> ::windows::core::HRESULT, pub EnableRemoteControl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows::core::HRESULT, @@ -1095,22 +1042,10 @@ pub struct IADsTSUserEx_Vtbl { pub SetConnectClientPrintersAtLogon: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: i32) -> ::windows::core::HRESULT, pub DefaultToMainPrinter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut i32) -> ::windows::core::HRESULT, pub SetDefaultToMainPrinter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub TerminalServicesWorkDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TerminalServicesWorkDirectory: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetTerminalServicesWorkDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnewval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetTerminalServicesWorkDirectory: usize, - #[cfg(feature = "Win32_Foundation")] - pub TerminalServicesInitialProgram: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TerminalServicesInitialProgram: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetTerminalServicesInitialProgram: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnewval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetTerminalServicesInitialProgram: usize, + pub TerminalServicesWorkDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetTerminalServicesWorkDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnewval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub TerminalServicesInitialProgram: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetTerminalServicesInitialProgram: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnewval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`*"] #[repr(transparent)] @@ -1541,34 +1476,27 @@ impl IRemoteDesktopClient { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).TouchPointer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeleteSavedCredentials<'a, P0>(&self, servername: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DeleteSavedCredentials)(::windows::core::Interface::as_raw(self), servername.into().abi()).ok() + pub unsafe fn DeleteSavedCredentials(&self, servername: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DeleteSavedCredentials)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(servername)).ok() } pub unsafe fn UpdateSessionDisplaySettings(&self, width: u32, height: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).UpdateSessionDisplaySettings)(::windows::core::Interface::as_raw(self), width, height).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn attachEvent<'a, P0, P1>(&self, eventname: P0, callback: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn attachEvent<'a, P0>(&self, eventname: &::windows::core::BSTR, callback: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { - (::windows::core::Interface::vtable(self).attachEvent)(::windows::core::Interface::as_raw(self), eventname.into().abi(), callback.into().abi()).ok() + (::windows::core::Interface::vtable(self).attachEvent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(eventname), callback.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn detachEvent<'a, P0, P1>(&self, eventname: P0, callback: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn detachEvent<'a, P0>(&self, eventname: &::windows::core::BSTR, callback: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { - (::windows::core::Interface::vtable(self).detachEvent)(::windows::core::Interface::as_raw(self), eventname.into().abi(), callback.into().abi()).ok() + (::windows::core::Interface::vtable(self).detachEvent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(eventname), callback.into().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1652,18 +1580,15 @@ pub struct IRemoteDesktopClient_Vtbl { pub TouchPointer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, touchpointer: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] TouchPointer: usize, - #[cfg(feature = "Win32_Foundation")] - pub DeleteSavedCredentials: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, servername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeleteSavedCredentials: usize, + pub DeleteSavedCredentials: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, servername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub UpdateSessionDisplaySettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, width: u32, height: u32) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub attachEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventname: ::core::mem::ManuallyDrop, callback: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub attachEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, callback: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] attachEvent: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub detachEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventname: ::core::mem::ManuallyDrop, callback: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub detachEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, callback: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] detachEvent: usize, } #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_System_Com\"`*"] @@ -1681,11 +1606,9 @@ impl IRemoteDesktopClientActions { pub unsafe fn ExecuteRemoteAction(&self, remoteaction: RemoteActionType) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ExecuteRemoteAction)(::windows::core::Interface::as_raw(self), remoteaction).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetSnapshot(&self, snapshotencoding: SnapshotEncodingType, snapshotformat: SnapshotFormatType, snapshotwidth: u32, snapshotheight: u32) -> ::windows::core::Result { + pub unsafe fn GetSnapshot(&self, snapshotencoding: SnapshotEncodingType, snapshotformat: SnapshotFormatType, snapshotwidth: u32, snapshotheight: u32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetSnapshot)(::windows::core::Interface::as_raw(self), snapshotencoding, snapshotformat, snapshotwidth, snapshotheight, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetSnapshot)(::windows::core::Interface::as_raw(self), snapshotencoding, snapshotformat, snapshotwidth, snapshotheight, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1757,10 +1680,7 @@ pub struct IRemoteDesktopClientActions_Vtbl { pub SuspendScreenUpdates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub ResumeScreenUpdates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub ExecuteRemoteAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, remoteaction: RemoteActionType) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetSnapshot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, snapshotencoding: SnapshotEncodingType, snapshotformat: SnapshotFormatType, snapshotwidth: u32, snapshotheight: u32, snapshotdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetSnapshot: usize, + pub GetSnapshot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, snapshotencoding: SnapshotEncodingType, snapshotformat: SnapshotFormatType, snapshotwidth: u32, snapshotheight: u32, snapshotdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1768,37 +1688,26 @@ pub struct IRemoteDesktopClientActions_Vtbl { pub struct IRemoteDesktopClientSettings(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IRemoteDesktopClientSettings { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ApplySettings<'a, P0>(&self, rdpfilecontents: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ApplySettings)(::windows::core::Interface::as_raw(self), rdpfilecontents.into().abi()).ok() + pub unsafe fn ApplySettings(&self, rdpfilecontents: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ApplySettings)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(rdpfilecontents)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RetrieveSettings(&self) -> ::windows::core::Result { + pub unsafe fn RetrieveSettings(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RetrieveSettings)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RetrieveSettings)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetRdpProperty<'a, P0>(&self, propertyname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetRdpProperty(&self, propertyname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetRdpProperty)(::windows::core::Interface::as_raw(self), propertyname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetRdpProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(propertyname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn SetRdpProperty<'a, P0, P1>(&self, propertyname: P0, value: P1) -> ::windows::core::Result<()> + pub unsafe fn SetRdpProperty<'a, P0>(&self, propertyname: &::windows::core::BSTR, value: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).SetRdpProperty)(::windows::core::Interface::as_raw(self), propertyname.into().abi(), value.into().abi()).ok() + (::windows::core::Interface::vtable(self).SetRdpProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(propertyname), value.into().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1867,20 +1776,14 @@ unsafe impl ::windows::core::Interface for IRemoteDesktopClientSettings { #[doc(hidden)] pub struct IRemoteDesktopClientSettings_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub ApplySettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rdpfilecontents: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ApplySettings: usize, - #[cfg(feature = "Win32_Foundation")] - pub RetrieveSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rdpfilecontents: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RetrieveSettings: usize, + pub ApplySettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rdpfilecontents: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub RetrieveSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rdpfilecontents: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetRdpProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop, value: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetRdpProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetRdpProperty: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub SetRdpProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub SetRdpProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SetRdpProperty: usize, } @@ -2042,8 +1945,6 @@ pub struct IRemoteSystemAdditionalInfoProvider_Vtbl { #[repr(transparent)] pub struct ITSGAccountingEngine(::windows::core::IUnknown); impl ITSGAccountingEngine { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn DoAccounting<'a, P0>(&self, accountingdatatype: AAAccountingDataType, accountingdata: P0) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, AAAccountingData>>, @@ -2090,10 +1991,7 @@ unsafe impl ::windows::core::Interface for ITSGAccountingEngine { #[doc(hidden)] pub struct ITSGAccountingEngine_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] pub DoAccounting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, accountingdatatype: AAAccountingDataType, accountingdata: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DoAccounting: usize, } #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`*"] #[repr(transparent)] @@ -2101,13 +1999,11 @@ pub struct ITSGAuthenticateUserSink(::windows::core::IUnknown); impl ITSGAuthenticateUserSink { #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OnUserAuthenticated<'a, P0, P1, P2>(&self, username: P0, userdomain: P1, context: usize, usertoken: P2) -> ::windows::core::Result<()> + pub unsafe fn OnUserAuthenticated<'a, P0>(&self, username: &::windows::core::BSTR, userdomain: &::windows::core::BSTR, context: usize, usertoken: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into, + P0: ::std::convert::Into, { - (::windows::core::Interface::vtable(self).OnUserAuthenticated)(::windows::core::Interface::as_raw(self), username.into().abi(), userdomain.into().abi(), context, usertoken.into()).ok() + (::windows::core::Interface::vtable(self).OnUserAuthenticated)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(username), ::core::mem::transmute_copy(userdomain), context, usertoken.into()).ok() } pub unsafe fn OnUserAuthenticationFailed(&self, context: usize, genericerrorcode: ::windows::core::HRESULT, specificerrorcode: ::windows::core::HRESULT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).OnUserAuthenticationFailed)(::windows::core::Interface::as_raw(self), context, genericerrorcode, specificerrorcode).ok() @@ -2159,7 +2055,7 @@ unsafe impl ::windows::core::Interface for ITSGAuthenticateUserSink { pub struct ITSGAuthenticateUserSink_Vtbl { pub base__: ::windows::core::IUnknownVtbl, #[cfg(feature = "Win32_Foundation")] - pub OnUserAuthenticated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, username: ::core::mem::ManuallyDrop, userdomain: ::core::mem::ManuallyDrop, context: usize, usertoken: super::super::Foundation::HANDLE_PTR) -> ::windows::core::HRESULT, + pub OnUserAuthenticated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, username: ::core::mem::ManuallyDrop<::windows::core::BSTR>, userdomain: ::core::mem::ManuallyDrop<::windows::core::BSTR>, context: usize, usertoken: super::super::Foundation::HANDLE_PTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] OnUserAuthenticated: usize, pub OnUserAuthenticationFailed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: usize, genericerrorcode: ::windows::core::HRESULT, specificerrorcode: ::windows::core::HRESULT) -> ::windows::core::HRESULT, @@ -2275,9 +2171,7 @@ pub struct ITSGAuthorizeConnectionSink_Vtbl { #[repr(transparent)] pub struct ITSGAuthorizeResourceSink(::windows::core::IUnknown); impl ITSGAuthorizeResourceSink { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OnChannelAuthorized(&self, hrin: ::windows::core::HRESULT, mainsessionid: ::windows::core::GUID, subsessionid: i32, allowedresourcenames: &[super::super::Foundation::BSTR], failedresourcenames: &[super::super::Foundation::BSTR]) -> ::windows::core::Result<()> { + pub unsafe fn OnChannelAuthorized(&self, hrin: ::windows::core::HRESULT, mainsessionid: ::windows::core::GUID, subsessionid: i32, allowedresourcenames: &[::windows::core::BSTR], failedresourcenames: &[::windows::core::BSTR]) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).OnChannelAuthorized)(::windows::core::Interface::as_raw(self), hrin, ::core::mem::transmute(mainsessionid), subsessionid, ::core::mem::transmute(allowedresourcenames.as_ptr()), allowedresourcenames.len() as _, ::core::mem::transmute(failedresourcenames.as_ptr()), failedresourcenames.len() as _).ok() } } @@ -2320,10 +2214,7 @@ unsafe impl ::windows::core::Interface for ITSGAuthorizeResourceSink { #[doc(hidden)] pub struct ITSGAuthorizeResourceSink_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub OnChannelAuthorized: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrin: ::windows::core::HRESULT, mainsessionid: ::windows::core::GUID, subsessionid: i32, allowedresourcenames: *const super::super::Foundation::BSTR, numallowedresourcenames: u32, failedresourcenames: *const super::super::Foundation::BSTR, numfailedresourcenames: u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OnChannelAuthorized: usize, + pub OnChannelAuthorized: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrin: ::windows::core::HRESULT, mainsessionid: ::windows::core::GUID, subsessionid: i32, allowedresourcenames: *const ::core::mem::ManuallyDrop<::windows::core::BSTR>, numallowedresourcenames: u32, failedresourcenames: *const ::core::mem::ManuallyDrop<::windows::core::BSTR>, numfailedresourcenames: u32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`*"] #[repr(transparent)] @@ -2331,25 +2222,18 @@ pub struct ITSGPolicyEngine(::windows::core::IUnknown); impl ITSGPolicyEngine { #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AuthorizeConnection<'a, P0, P1, P2, P3, P4>(&self, mainsessionid: ::windows::core::GUID, username: P0, authtype: AAAuthSchemes, clientmachineip: P1, clientmachinename: P2, sohdata: &[u8], cookiedata: &[u8], usertoken: P3, psink: P4) -> ::windows::core::Result<()> + pub unsafe fn AuthorizeConnection<'a, P0, P1>(&self, mainsessionid: ::windows::core::GUID, username: &::windows::core::BSTR, authtype: AAAuthSchemes, clientmachineip: &::windows::core::BSTR, clientmachinename: &::windows::core::BSTR, sohdata: &[u8], cookiedata: &[u8], usertoken: P0, psink: P1) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into, - P4: ::std::convert::Into<::windows::core::InParam<'a, ITSGAuthorizeConnectionSink>>, + P0: ::std::convert::Into, + P1: ::std::convert::Into<::windows::core::InParam<'a, ITSGAuthorizeConnectionSink>>, { - (::windows::core::Interface::vtable(self).AuthorizeConnection)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(mainsessionid), username.into().abi(), authtype, clientmachineip.into().abi(), clientmachinename.into().abi(), ::core::mem::transmute(sohdata.as_ptr()), sohdata.len() as _, ::core::mem::transmute(cookiedata.as_ptr()), cookiedata.len() as _, usertoken.into(), psink.into().abi()).ok() + (::windows::core::Interface::vtable(self).AuthorizeConnection)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(mainsessionid), ::core::mem::transmute_copy(username), authtype, ::core::mem::transmute_copy(clientmachineip), ::core::mem::transmute_copy(clientmachinename), ::core::mem::transmute(sohdata.as_ptr()), sohdata.len() as _, ::core::mem::transmute(cookiedata.as_ptr()), cookiedata.len() as _, usertoken.into(), psink.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AuthorizeResource<'a, P0, P1, P2>(&self, mainsessionid: ::windows::core::GUID, subsessionid: i32, username: P0, resourcenames: &[super::super::Foundation::BSTR], alternateresourcenames: &[super::super::Foundation::BSTR], portnumber: u32, operation: P1, cookie: &[u8], psink: P2) -> ::windows::core::Result<()> + pub unsafe fn AuthorizeResource<'a, P0>(&self, mainsessionid: ::windows::core::GUID, subsessionid: i32, username: &::windows::core::BSTR, resourcenames: &[::windows::core::BSTR], alternateresourcenames: &[::windows::core::BSTR], portnumber: u32, operation: &::windows::core::BSTR, cookie: &[u8], psink: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, ITSGAuthorizeResourceSink>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, ITSGAuthorizeResourceSink>>, { - (::windows::core::Interface::vtable(self).AuthorizeResource)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(mainsessionid), subsessionid, username.into().abi(), ::core::mem::transmute(resourcenames.as_ptr()), resourcenames.len() as _, ::core::mem::transmute(alternateresourcenames.as_ptr()), alternateresourcenames.len() as _, portnumber, operation.into().abi(), ::core::mem::transmute(cookie.as_ptr()), cookie.len() as _, psink.into().abi()).ok() + (::windows::core::Interface::vtable(self).AuthorizeResource)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(mainsessionid), subsessionid, ::core::mem::transmute_copy(username), ::core::mem::transmute(resourcenames.as_ptr()), resourcenames.len() as _, ::core::mem::transmute(alternateresourcenames.as_ptr()), alternateresourcenames.len() as _, portnumber, ::core::mem::transmute_copy(operation), ::core::mem::transmute(cookie.as_ptr()), cookie.len() as _, psink.into().abi()).ok() } pub unsafe fn Refresh(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Refresh)(::windows::core::Interface::as_raw(self)).ok() @@ -2401,13 +2285,10 @@ unsafe impl ::windows::core::Interface for ITSGPolicyEngine { pub struct ITSGPolicyEngine_Vtbl { pub base__: ::windows::core::IUnknownVtbl, #[cfg(feature = "Win32_Foundation")] - pub AuthorizeConnection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mainsessionid: ::windows::core::GUID, username: ::core::mem::ManuallyDrop, authtype: AAAuthSchemes, clientmachineip: ::core::mem::ManuallyDrop, clientmachinename: ::core::mem::ManuallyDrop, sohdata: *const u8, numsohbytes: u32, cookiedata: *const u8, numcookiebytes: u32, usertoken: super::super::Foundation::HANDLE_PTR, psink: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub AuthorizeConnection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mainsessionid: ::windows::core::GUID, username: ::core::mem::ManuallyDrop<::windows::core::BSTR>, authtype: AAAuthSchemes, clientmachineip: ::core::mem::ManuallyDrop<::windows::core::BSTR>, clientmachinename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, sohdata: *const u8, numsohbytes: u32, cookiedata: *const u8, numcookiebytes: u32, usertoken: super::super::Foundation::HANDLE_PTR, psink: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] AuthorizeConnection: usize, - #[cfg(feature = "Win32_Foundation")] - pub AuthorizeResource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mainsessionid: ::windows::core::GUID, subsessionid: i32, username: ::core::mem::ManuallyDrop, resourcenames: *const super::super::Foundation::BSTR, numresources: u32, alternateresourcenames: *const super::super::Foundation::BSTR, numalternateresourcename: u32, portnumber: u32, operation: ::core::mem::ManuallyDrop, cookie: *const u8, numbytesincookie: u32, psink: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AuthorizeResource: usize, + pub AuthorizeResource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mainsessionid: ::windows::core::GUID, subsessionid: i32, username: ::core::mem::ManuallyDrop<::windows::core::BSTR>, resourcenames: *const ::core::mem::ManuallyDrop<::windows::core::BSTR>, numresources: u32, alternateresourcenames: *const ::core::mem::ManuallyDrop<::windows::core::BSTR>, numalternateresourcename: u32, portnumber: u32, operation: ::core::mem::ManuallyDrop<::windows::core::BSTR>, cookie: *const u8, numbytesincookie: u32, psink: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub IsQuarantineEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, quarantineenabled: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, @@ -2471,52 +2352,40 @@ pub struct ITsSbBaseNotifySink_Vtbl { #[repr(transparent)] pub struct ITsSbClientConnection(::windows::core::IUnknown); impl ITsSbClientConnection { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserName(&self) -> ::windows::core::Result { + pub unsafe fn UserName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Domain(&self) -> ::windows::core::Result { + pub unsafe fn Domain(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Domain)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Domain)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitialProgram(&self) -> ::windows::core::Result { + pub unsafe fn InitialProgram(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).InitialProgram)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).InitialProgram)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn LoadBalanceResult(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).LoadBalanceResult)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FarmName(&self) -> ::windows::core::Result { + pub unsafe fn FarmName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FarmName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FarmName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn PutContext<'a, P0, P1>(&self, contextid: P0, context: P1) -> ::windows::core::Result + pub unsafe fn PutContext<'a, P0>(&self, contextid: &::windows::core::BSTR, context: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PutContext)(::windows::core::Interface::as_raw(self), contextid.into().abi(), context.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PutContext)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(contextid), context.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetContext<'a, P0>(&self, contextid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetContext(&self, contextid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetContext)(::windows::core::Interface::as_raw(self), contextid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetContext)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(contextid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn Environment(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2525,11 +2394,9 @@ impl ITsSbClientConnection { pub unsafe fn get_ConnectionError(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).get_ConnectionError)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SamUserAccount(&self) -> ::windows::core::Result { + pub unsafe fn SamUserAccount(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SamUserAccount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SamUserAccount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -2595,37 +2462,22 @@ unsafe impl ::windows::core::Interface for ITsSbClientConnection { #[doc(hidden)] pub struct ITsSbClientConnection_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub UserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UserName: usize, - #[cfg(feature = "Win32_Foundation")] - pub Domain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Domain: usize, - #[cfg(feature = "Win32_Foundation")] - pub InitialProgram: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitialProgram: usize, + pub UserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Domain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub InitialProgram: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub LoadBalanceResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub FarmName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FarmName: usize, + pub FarmName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub PutContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contextid: ::core::mem::ManuallyDrop, context: ::core::mem::ManuallyDrop, existingcontext: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, + pub PutContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contextid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, context: ::core::mem::ManuallyDrop, existingcontext: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] PutContext: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contextid: ::core::mem::ManuallyDrop, context: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, contextid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, context: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetContext: usize, pub Environment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenvironment: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub get_ConnectionError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SamUserAccount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SamUserAccount: usize, + pub SamUserAccount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub ClientConnectionPropertySet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pppropertyset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com_StructuredStorage"))] @@ -2751,11 +2603,9 @@ pub struct ITsSbClientConnectionPropertySet_Vtbl { #[repr(transparent)] pub struct ITsSbEnvironment(::windows::core::IUnknown); impl ITsSbEnvironment { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn ServerWeight(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2815,10 +2665,7 @@ unsafe impl ::windows::core::Interface for ITsSbEnvironment { #[doc(hidden)] pub struct ITsSbEnvironment_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ServerWeight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub EnvironmentPropertySet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pppropertyset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -2956,13 +2803,8 @@ impl ITsSbFilterPluginStore { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).EnumerateProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeleteProperties<'a, P0>(&self, propertyname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DeleteProperties)(::windows::core::Interface::as_raw(self), propertyname.into().abi()).ok() + pub unsafe fn DeleteProperties(&self, propertyname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DeleteProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(propertyname)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -3012,10 +2854,7 @@ pub struct ITsSbFilterPluginStore_Vtbl { pub EnumerateProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pppropertyset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com_StructuredStorage"))] EnumerateProperties: usize, - #[cfg(feature = "Win32_Foundation")] - pub DeleteProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeleteProperties: usize, + pub DeleteProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`*"] #[repr(transparent)] @@ -3080,74 +2919,32 @@ pub struct ITsSbGenericNotifySink_Vtbl { #[repr(transparent)] pub struct ITsSbGlobalStore(::windows::core::IUnknown); impl ITsSbGlobalStore { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn QueryTarget<'a, P0, P1, P2>(&self, providername: P0, targetname: P1, farmname: P2) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn QueryTarget(&self, providername: &::windows::core::BSTR, targetname: &::windows::core::BSTR, farmname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).QueryTarget)(::windows::core::Interface::as_raw(self), providername.into().abi(), targetname.into().abi(), farmname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).QueryTarget)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(providername), ::core::mem::transmute_copy(targetname), ::core::mem::transmute_copy(farmname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn QuerySessionBySessionId<'a, P0, P1>(&self, providername: P0, dwsessionid: u32, targetname: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn QuerySessionBySessionId(&self, providername: &::windows::core::BSTR, dwsessionid: u32, targetname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).QuerySessionBySessionId)(::windows::core::Interface::as_raw(self), providername.into().abi(), dwsessionid, targetname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).QuerySessionBySessionId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(providername), dwsessionid, ::core::mem::transmute_copy(targetname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn EnumerateFarms<'a, P0>(&self, providername: P0, pdwcount: &mut u32, pval: &mut *mut super::Com::SAFEARRAY) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).EnumerateFarms)(::windows::core::Interface::as_raw(self), providername.into().abi(), ::core::mem::transmute(pdwcount), ::core::mem::transmute(pval)).ok() + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn EnumerateFarms(&self, providername: &::windows::core::BSTR, pdwcount: &mut u32, pval: &mut *mut super::Com::SAFEARRAY) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).EnumerateFarms)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(providername), ::core::mem::transmute(pdwcount), ::core::mem::transmute(pval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EnumerateTargets<'a, P0, P1, P2>(&self, providername: P0, farmname: P1, envname: P2, pdwcount: &mut u32, pval: *mut *mut ::core::option::Option) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).EnumerateTargets)(::windows::core::Interface::as_raw(self), providername.into().abi(), farmname.into().abi(), envname.into().abi(), ::core::mem::transmute(pdwcount), ::core::mem::transmute(pval)).ok() + pub unsafe fn EnumerateTargets(&self, providername: &::windows::core::BSTR, farmname: &::windows::core::BSTR, envname: &::windows::core::BSTR, pdwcount: &mut u32, pval: *mut *mut ::core::option::Option) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).EnumerateTargets)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(providername), ::core::mem::transmute_copy(farmname), ::core::mem::transmute_copy(envname), ::core::mem::transmute(pdwcount), ::core::mem::transmute(pval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EnumerateEnvironmentsByProvider<'a, P0>(&self, providername: P0, pdwcount: &mut u32, ppval: *mut *mut ::core::option::Option) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).EnumerateEnvironmentsByProvider)(::windows::core::Interface::as_raw(self), providername.into().abi(), ::core::mem::transmute(pdwcount), ::core::mem::transmute(ppval)).ok() + pub unsafe fn EnumerateEnvironmentsByProvider(&self, providername: &::windows::core::BSTR, pdwcount: &mut u32, ppval: *mut *mut ::core::option::Option) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).EnumerateEnvironmentsByProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(providername), ::core::mem::transmute(pdwcount), ::core::mem::transmute(ppval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EnumerateSessions<'a, P0, P1, P2, P3, P4, P5>(&self, providername: P0, targetname: P1, username: P2, userdomain: P3, poolname: P4, initialprogram: P5, psessionstate: &TSSESSION_STATE, pdwcount: &mut u32, ppval: *mut *mut ::core::option::Option) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P5: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).EnumerateSessions)(::windows::core::Interface::as_raw(self), providername.into().abi(), targetname.into().abi(), username.into().abi(), userdomain.into().abi(), poolname.into().abi(), initialprogram.into().abi(), ::core::mem::transmute(psessionstate), ::core::mem::transmute(pdwcount), ::core::mem::transmute(ppval)).ok() + pub unsafe fn EnumerateSessions(&self, providername: &::windows::core::BSTR, targetname: &::windows::core::BSTR, username: &::windows::core::BSTR, userdomain: &::windows::core::BSTR, poolname: &::windows::core::BSTR, initialprogram: &::windows::core::BSTR, psessionstate: &TSSESSION_STATE, pdwcount: &mut u32, ppval: *mut *mut ::core::option::Option) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).EnumerateSessions)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(providername), ::core::mem::transmute_copy(targetname), ::core::mem::transmute_copy(username), ::core::mem::transmute_copy(userdomain), ::core::mem::transmute_copy(poolname), ::core::mem::transmute_copy(initialprogram), ::core::mem::transmute(psessionstate), ::core::mem::transmute(pdwcount), ::core::mem::transmute(ppval)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetFarmProperty<'a, P0, P1>(&self, farmname: P0, propertyname: P1, pvarvalue: &super::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetFarmProperty)(::windows::core::Interface::as_raw(self), farmname.into().abi(), propertyname.into().abi(), ::core::mem::transmute(pvarvalue)).ok() + pub unsafe fn GetFarmProperty(&self, farmname: &::windows::core::BSTR, propertyname: &::windows::core::BSTR, pvarvalue: &super::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetFarmProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(farmname), ::core::mem::transmute_copy(propertyname), ::core::mem::transmute(pvarvalue)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -3189,32 +2986,17 @@ unsafe impl ::windows::core::Interface for ITsSbGlobalStore { #[doc(hidden)] pub struct ITsSbGlobalStore_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub QueryTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, providername: ::core::mem::ManuallyDrop, targetname: ::core::mem::ManuallyDrop, farmname: ::core::mem::ManuallyDrop, pptarget: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - QueryTarget: usize, - #[cfg(feature = "Win32_Foundation")] - pub QuerySessionBySessionId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, providername: ::core::mem::ManuallyDrop, dwsessionid: u32, targetname: ::core::mem::ManuallyDrop, ppsession: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - QuerySessionBySessionId: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub EnumerateFarms: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, providername: ::core::mem::ManuallyDrop, pdwcount: *mut u32, pval: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub QueryTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, providername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, targetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, farmname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pptarget: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub QuerySessionBySessionId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, providername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwsessionid: u32, targetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppsession: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub EnumerateFarms: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, providername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwcount: *mut u32, pval: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] EnumerateFarms: usize, - #[cfg(feature = "Win32_Foundation")] - pub EnumerateTargets: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, providername: ::core::mem::ManuallyDrop, farmname: ::core::mem::ManuallyDrop, envname: ::core::mem::ManuallyDrop, pdwcount: *mut u32, pval: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EnumerateTargets: usize, - #[cfg(feature = "Win32_Foundation")] - pub EnumerateEnvironmentsByProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, providername: ::core::mem::ManuallyDrop, pdwcount: *mut u32, ppval: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EnumerateEnvironmentsByProvider: usize, - #[cfg(feature = "Win32_Foundation")] - pub EnumerateSessions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, providername: ::core::mem::ManuallyDrop, targetname: ::core::mem::ManuallyDrop, username: ::core::mem::ManuallyDrop, userdomain: ::core::mem::ManuallyDrop, poolname: ::core::mem::ManuallyDrop, initialprogram: ::core::mem::ManuallyDrop, psessionstate: *const TSSESSION_STATE, pdwcount: *mut u32, ppval: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EnumerateSessions: usize, + pub EnumerateTargets: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, providername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, farmname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, envname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwcount: *mut u32, pval: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub EnumerateEnvironmentsByProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, providername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwcount: *mut u32, ppval: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub EnumerateSessions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, providername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, targetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, username: ::core::mem::ManuallyDrop<::windows::core::BSTR>, userdomain: ::core::mem::ManuallyDrop<::windows::core::BSTR>, poolname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, initialprogram: ::core::mem::ManuallyDrop<::windows::core::BSTR>, psessionstate: *const TSSESSION_STATE, pdwcount: *mut u32, ppval: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetFarmProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, farmname: ::core::mem::ManuallyDrop, propertyname: ::core::mem::ManuallyDrop, pvarvalue: *const super::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetFarmProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, farmname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarvalue: *const super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetFarmProperty: usize, } @@ -3222,11 +3004,9 @@ pub struct ITsSbGlobalStore_Vtbl { #[repr(transparent)] pub struct ITsSbLoadBalanceResult(::windows::core::IUnknown); impl ITsSbLoadBalanceResult { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TargetName(&self) -> ::windows::core::Result { + pub unsafe fn TargetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TargetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TargetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -3268,10 +3048,7 @@ unsafe impl ::windows::core::Interface for ITsSbLoadBalanceResult { #[doc(hidden)] pub struct ITsSbLoadBalanceResult_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub TargetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TargetName: usize, + pub TargetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`*"] #[repr(transparent)] @@ -4082,35 +3859,17 @@ pub struct ITsSbPropertySet_Vtbl { #[repr(transparent)] pub struct ITsSbProvider(::windows::core::IUnknown); impl ITsSbProvider { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateTargetObject<'a, P0, P1>(&self, targetname: P0, environmentname: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn CreateTargetObject(&self, targetname: &::windows::core::BSTR, environmentname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateTargetObject)(::windows::core::Interface::as_raw(self), targetname.into().abi(), environmentname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateTargetObject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(targetname), ::core::mem::transmute_copy(environmentname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateLoadBalanceResultObject<'a, P0>(&self, targetname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn CreateLoadBalanceResultObject(&self, targetname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateLoadBalanceResultObject)(::windows::core::Interface::as_raw(self), targetname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateLoadBalanceResultObject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(targetname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateSessionObject<'a, P0, P1, P2>(&self, targetname: P0, username: P1, domain: P2, sessionid: u32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn CreateSessionObject(&self, targetname: &::windows::core::BSTR, username: &::windows::core::BSTR, domain: &::windows::core::BSTR, sessionid: u32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateSessionObject)(::windows::core::Interface::as_raw(self), targetname.into().abi(), username.into().abi(), domain.into().abi(), sessionid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateSessionObject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(targetname), ::core::mem::transmute_copy(username), ::core::mem::transmute_copy(domain), sessionid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com_StructuredStorage\"`*"] #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -4124,14 +3883,9 @@ impl ITsSbProvider { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CreateTargetPropertySetObject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateEnvironmentObject<'a, P0>(&self, name: P0, serverweight: u32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn CreateEnvironmentObject(&self, name: &::windows::core::BSTR, serverweight: u32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateEnvironmentObject)(::windows::core::Interface::as_raw(self), name.into().abi(), serverweight, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateEnvironmentObject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), serverweight, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn GetResourcePluginStore(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4141,22 +3895,14 @@ impl ITsSbProvider { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetFilterPluginStore)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RegisterForNotification<'a, P0, P1>(&self, notificationtype: u32, resourcetomonitor: P0, ppluginnotification: P1) -> ::windows::core::Result<()> + pub unsafe fn RegisterForNotification<'a, P0>(&self, notificationtype: u32, resourcetomonitor: &::windows::core::BSTR, ppluginnotification: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, ITsSbResourceNotification>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, ITsSbResourceNotification>>, { - (::windows::core::Interface::vtable(self).RegisterForNotification)(::windows::core::Interface::as_raw(self), notificationtype, resourcetomonitor.into().abi(), ppluginnotification.into().abi()).ok() + (::windows::core::Interface::vtable(self).RegisterForNotification)(::windows::core::Interface::as_raw(self), notificationtype, ::core::mem::transmute_copy(resourcetomonitor), ppluginnotification.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UnRegisterForNotification<'a, P0>(&self, notificationtype: u32, resourcetomonitor: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).UnRegisterForNotification)(::windows::core::Interface::as_raw(self), notificationtype, resourcetomonitor.into().abi()).ok() + pub unsafe fn UnRegisterForNotification(&self, notificationtype: u32, resourcetomonitor: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).UnRegisterForNotification)(::windows::core::Interface::as_raw(self), notificationtype, ::core::mem::transmute_copy(resourcetomonitor)).ok() } pub unsafe fn GetInstanceOfGlobalStore(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4208,18 +3954,9 @@ unsafe impl ::windows::core::Interface for ITsSbProvider { #[doc(hidden)] pub struct ITsSbProvider_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub CreateTargetObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop, environmentname: ::core::mem::ManuallyDrop, pptarget: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CreateTargetObject: usize, - #[cfg(feature = "Win32_Foundation")] - pub CreateLoadBalanceResultObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop, pplbresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CreateLoadBalanceResultObject: usize, - #[cfg(feature = "Win32_Foundation")] - pub CreateSessionObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop, username: ::core::mem::ManuallyDrop, domain: ::core::mem::ManuallyDrop, sessionid: u32, ppsession: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CreateSessionObject: usize, + pub CreateTargetObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, environmentname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pptarget: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub CreateLoadBalanceResultObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pplbresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub CreateSessionObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, username: ::core::mem::ManuallyDrop<::windows::core::BSTR>, domain: ::core::mem::ManuallyDrop<::windows::core::BSTR>, sessionid: u32, ppsession: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub CreatePluginPropertySet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pppropertyset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com_StructuredStorage"))] @@ -4228,20 +3965,11 @@ pub struct ITsSbProvider_Vtbl { pub CreateTargetPropertySetObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pppropertyset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com_StructuredStorage"))] CreateTargetPropertySetObject: usize, - #[cfg(feature = "Win32_Foundation")] - pub CreateEnvironmentObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, serverweight: u32, ppenvironment: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CreateEnvironmentObject: usize, + pub CreateEnvironmentObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, serverweight: u32, ppenvironment: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetResourcePluginStore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppstore: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetFilterPluginStore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppstore: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub RegisterForNotification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, notificationtype: u32, resourcetomonitor: ::core::mem::ManuallyDrop, ppluginnotification: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RegisterForNotification: usize, - #[cfg(feature = "Win32_Foundation")] - pub UnRegisterForNotification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, notificationtype: u32, resourcetomonitor: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UnRegisterForNotification: usize, + pub RegisterForNotification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, notificationtype: u32, resourcetomonitor: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppluginnotification: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub UnRegisterForNotification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, notificationtype: u32, resourcetomonitor: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetInstanceOfGlobalStore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppglobalstore: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com_StructuredStorage")] pub CreateEnvironmentPropertySetObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pppropertyset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -4265,43 +3993,26 @@ impl ITsSbProvisioning { pub unsafe fn Terminate(&self, hr: ::windows::core::HRESULT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Terminate)(::windows::core::Interface::as_raw(self), hr).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateVirtualMachines<'a, P0, P1, P2>(&self, jobxmlstring: P0, jobguid: P1, psink: P2) -> ::windows::core::Result<()> + pub unsafe fn CreateVirtualMachines<'a, P0>(&self, jobxmlstring: &::windows::core::BSTR, jobguid: &::windows::core::BSTR, psink: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, ITsSbProvisioningPluginNotifySink>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, ITsSbProvisioningPluginNotifySink>>, { - (::windows::core::Interface::vtable(self).CreateVirtualMachines)(::windows::core::Interface::as_raw(self), jobxmlstring.into().abi(), jobguid.into().abi(), psink.into().abi()).ok() + (::windows::core::Interface::vtable(self).CreateVirtualMachines)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(jobxmlstring), ::core::mem::transmute_copy(jobguid), psink.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PatchVirtualMachines<'a, P0, P1, P2>(&self, jobxmlstring: P0, jobguid: P1, psink: P2, pvmpatchinfo: &VM_PATCH_INFO) -> ::windows::core::Result<()> + pub unsafe fn PatchVirtualMachines<'a, P0>(&self, jobxmlstring: &::windows::core::BSTR, jobguid: &::windows::core::BSTR, psink: P0, pvmpatchinfo: &VM_PATCH_INFO) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, ITsSbProvisioningPluginNotifySink>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, ITsSbProvisioningPluginNotifySink>>, { - (::windows::core::Interface::vtable(self).PatchVirtualMachines)(::windows::core::Interface::as_raw(self), jobxmlstring.into().abi(), jobguid.into().abi(), psink.into().abi(), ::core::mem::transmute(pvmpatchinfo)).ok() + (::windows::core::Interface::vtable(self).PatchVirtualMachines)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(jobxmlstring), ::core::mem::transmute_copy(jobguid), psink.into().abi(), ::core::mem::transmute(pvmpatchinfo)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeleteVirtualMachines<'a, P0, P1, P2>(&self, jobxmlstring: P0, jobguid: P1, psink: P2) -> ::windows::core::Result<()> + pub unsafe fn DeleteVirtualMachines<'a, P0>(&self, jobxmlstring: &::windows::core::BSTR, jobguid: &::windows::core::BSTR, psink: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, ITsSbProvisioningPluginNotifySink>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, ITsSbProvisioningPluginNotifySink>>, { - (::windows::core::Interface::vtable(self).DeleteVirtualMachines)(::windows::core::Interface::as_raw(self), jobxmlstring.into().abi(), jobguid.into().abi(), psink.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeleteVirtualMachines)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(jobxmlstring), ::core::mem::transmute_copy(jobguid), psink.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CancelJob<'a, P0>(&self, jobguid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).CancelJob)(::windows::core::Interface::as_raw(self), jobguid.into().abi()).ok() + pub unsafe fn CancelJob(&self, jobguid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).CancelJob)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(jobguid)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -4358,22 +4069,10 @@ unsafe impl ::windows::core::Interface for ITsSbProvisioning { #[doc(hidden)] pub struct ITsSbProvisioning_Vtbl { pub base__: ITsSbPlugin_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub CreateVirtualMachines: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, jobxmlstring: ::core::mem::ManuallyDrop, jobguid: ::core::mem::ManuallyDrop, psink: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CreateVirtualMachines: usize, - #[cfg(feature = "Win32_Foundation")] - pub PatchVirtualMachines: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, jobxmlstring: ::core::mem::ManuallyDrop, jobguid: ::core::mem::ManuallyDrop, psink: *mut ::core::ffi::c_void, pvmpatchinfo: *const VM_PATCH_INFO) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PatchVirtualMachines: usize, - #[cfg(feature = "Win32_Foundation")] - pub DeleteVirtualMachines: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, jobxmlstring: ::core::mem::ManuallyDrop, jobguid: ::core::mem::ManuallyDrop, psink: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeleteVirtualMachines: usize, - #[cfg(feature = "Win32_Foundation")] - pub CancelJob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, jobguid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CancelJob: usize, + pub CreateVirtualMachines: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, jobxmlstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, jobguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, psink: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub PatchVirtualMachines: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, jobxmlstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, jobguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, psink: *mut ::core::ffi::c_void, pvmpatchinfo: *const VM_PATCH_INFO) -> ::windows::core::HRESULT, + pub DeleteVirtualMachines: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, jobxmlstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, jobguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, psink: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub CancelJob: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, jobguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`*"] #[repr(transparent)] @@ -4382,21 +4081,11 @@ impl ITsSbProvisioningPluginNotifySink { pub unsafe fn OnJobCreated(&self, pvmnotifyinfo: &VM_NOTIFY_INFO) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).OnJobCreated)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pvmnotifyinfo)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OnVirtualMachineStatusChanged<'a, P0>(&self, pvmnotifyentry: &VM_NOTIFY_ENTRY, vmnotifystatus: VM_NOTIFY_STATUS, errorcode: ::windows::core::HRESULT, errordescr: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).OnVirtualMachineStatusChanged)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pvmnotifyentry), vmnotifystatus, errorcode, errordescr.into().abi()).ok() + pub unsafe fn OnVirtualMachineStatusChanged(&self, pvmnotifyentry: &VM_NOTIFY_ENTRY, vmnotifystatus: VM_NOTIFY_STATUS, errorcode: ::windows::core::HRESULT, errordescr: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).OnVirtualMachineStatusChanged)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pvmnotifyentry), vmnotifystatus, errorcode, ::core::mem::transmute_copy(errordescr)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OnJobCompleted<'a, P0>(&self, resultcode: ::windows::core::HRESULT, resultdescription: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).OnJobCompleted)(::windows::core::Interface::as_raw(self), resultcode, resultdescription.into().abi()).ok() + pub unsafe fn OnJobCompleted(&self, resultcode: ::windows::core::HRESULT, resultdescription: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).OnJobCompleted)(::windows::core::Interface::as_raw(self), resultcode, ::core::mem::transmute_copy(resultdescription)).ok() } pub unsafe fn OnJobCancelled(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).OnJobCancelled)(::windows::core::Interface::as_raw(self)).ok() @@ -4404,14 +4093,8 @@ impl ITsSbProvisioningPluginNotifySink { pub unsafe fn LockVirtualMachine(&self, pvmnotifyentry: &VM_NOTIFY_ENTRY) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).LockVirtualMachine)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pvmnotifyentry)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OnVirtualMachineHostStatusChanged<'a, P0, P1>(&self, vmhost: P0, vmhostnotifystatus: VM_HOST_NOTIFY_STATUS, errorcode: ::windows::core::HRESULT, errordescr: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).OnVirtualMachineHostStatusChanged)(::windows::core::Interface::as_raw(self), vmhost.into().abi(), vmhostnotifystatus, errorcode, errordescr.into().abi()).ok() + pub unsafe fn OnVirtualMachineHostStatusChanged(&self, vmhost: &::windows::core::BSTR, vmhostnotifystatus: VM_HOST_NOTIFY_STATUS, errorcode: ::windows::core::HRESULT, errordescr: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).OnVirtualMachineHostStatusChanged)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(vmhost), vmhostnotifystatus, errorcode, ::core::mem::transmute_copy(errordescr)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -4454,20 +4137,11 @@ unsafe impl ::windows::core::Interface for ITsSbProvisioningPluginNotifySink { pub struct ITsSbProvisioningPluginNotifySink_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub OnJobCreated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvmnotifyinfo: *const VM_NOTIFY_INFO) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub OnVirtualMachineStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvmnotifyentry: *const VM_NOTIFY_ENTRY, vmnotifystatus: VM_NOTIFY_STATUS, errorcode: ::windows::core::HRESULT, errordescr: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OnVirtualMachineStatusChanged: usize, - #[cfg(feature = "Win32_Foundation")] - pub OnJobCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, resultcode: ::windows::core::HRESULT, resultdescription: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OnJobCompleted: usize, + pub OnVirtualMachineStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvmnotifyentry: *const VM_NOTIFY_ENTRY, vmnotifystatus: VM_NOTIFY_STATUS, errorcode: ::windows::core::HRESULT, errordescr: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub OnJobCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, resultcode: ::windows::core::HRESULT, resultdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub OnJobCancelled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub LockVirtualMachine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvmnotifyentry: *const VM_NOTIFY_ENTRY) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub OnVirtualMachineHostStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vmhost: ::core::mem::ManuallyDrop, vmhostnotifystatus: VM_HOST_NOTIFY_STATUS, errorcode: ::windows::core::HRESULT, errordescr: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OnVirtualMachineHostStatusChanged: usize, + pub OnVirtualMachineHostStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vmhost: ::core::mem::ManuallyDrop<::windows::core::BSTR>, vmhostnotifystatus: VM_HOST_NOTIFY_STATUS, errorcode: ::windows::core::HRESULT, errordescr: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`*"] #[repr(transparent)] @@ -4539,35 +4213,14 @@ pub struct ITsSbResourceNotification_Vtbl { #[repr(transparent)] pub struct ITsSbResourceNotificationEx(::windows::core::IUnknown); impl ITsSbResourceNotificationEx { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NotifySessionChangeEx<'a, P0, P1, P2>(&self, targetname: P0, username: P1, domain: P2, sessionid: u32, sessionstate: TSSESSION_STATE) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).NotifySessionChangeEx)(::windows::core::Interface::as_raw(self), targetname.into().abi(), username.into().abi(), domain.into().abi(), sessionid, sessionstate).ok() + pub unsafe fn NotifySessionChangeEx(&self, targetname: &::windows::core::BSTR, username: &::windows::core::BSTR, domain: &::windows::core::BSTR, sessionid: u32, sessionstate: TSSESSION_STATE) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).NotifySessionChangeEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(targetname), ::core::mem::transmute_copy(username), ::core::mem::transmute_copy(domain), sessionid, sessionstate).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NotifyTargetChangeEx<'a, P0>(&self, targetname: P0, targetchangetype: u32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).NotifyTargetChangeEx)(::windows::core::Interface::as_raw(self), targetname.into().abi(), targetchangetype).ok() + pub unsafe fn NotifyTargetChangeEx(&self, targetname: &::windows::core::BSTR, targetchangetype: u32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).NotifyTargetChangeEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(targetname), targetchangetype).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NotifyClientConnectionStateChangeEx<'a, P0, P1, P2, P3, P4>(&self, username: P0, domain: P1, initialprogram: P2, poolname: P3, targetname: P4, connectionchangetype: CONNECTION_CHANGE_NOTIFICATION) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).NotifyClientConnectionStateChangeEx)(::windows::core::Interface::as_raw(self), username.into().abi(), domain.into().abi(), initialprogram.into().abi(), poolname.into().abi(), targetname.into().abi(), connectionchangetype).ok() + pub unsafe fn NotifyClientConnectionStateChangeEx(&self, username: &::windows::core::BSTR, domain: &::windows::core::BSTR, initialprogram: &::windows::core::BSTR, poolname: &::windows::core::BSTR, targetname: &::windows::core::BSTR, connectionchangetype: CONNECTION_CHANGE_NOTIFICATION) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).NotifyClientConnectionStateChangeEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(username), ::core::mem::transmute_copy(domain), ::core::mem::transmute_copy(initialprogram), ::core::mem::transmute_copy(poolname), ::core::mem::transmute_copy(targetname), connectionchangetype).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -4609,18 +4262,9 @@ unsafe impl ::windows::core::Interface for ITsSbResourceNotificationEx { #[doc(hidden)] pub struct ITsSbResourceNotificationEx_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub NotifySessionChangeEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop, username: ::core::mem::ManuallyDrop, domain: ::core::mem::ManuallyDrop, sessionid: u32, sessionstate: TSSESSION_STATE) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - NotifySessionChangeEx: usize, - #[cfg(feature = "Win32_Foundation")] - pub NotifyTargetChangeEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop, targetchangetype: u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - NotifyTargetChangeEx: usize, - #[cfg(feature = "Win32_Foundation")] - pub NotifyClientConnectionStateChangeEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, username: ::core::mem::ManuallyDrop, domain: ::core::mem::ManuallyDrop, initialprogram: ::core::mem::ManuallyDrop, poolname: ::core::mem::ManuallyDrop, targetname: ::core::mem::ManuallyDrop, connectionchangetype: CONNECTION_CHANGE_NOTIFICATION) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - NotifyClientConnectionStateChangeEx: usize, + pub NotifySessionChangeEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, username: ::core::mem::ManuallyDrop<::windows::core::BSTR>, domain: ::core::mem::ManuallyDrop<::windows::core::BSTR>, sessionid: u32, sessionstate: TSSESSION_STATE) -> ::windows::core::HRESULT, + pub NotifyTargetChangeEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, targetchangetype: u32) -> ::windows::core::HRESULT, + pub NotifyClientConnectionStateChangeEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, username: ::core::mem::ManuallyDrop<::windows::core::BSTR>, domain: ::core::mem::ManuallyDrop<::windows::core::BSTR>, initialprogram: ::core::mem::ManuallyDrop<::windows::core::BSTR>, poolname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, targetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, connectionchangetype: CONNECTION_CHANGE_NOTIFICATION) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`*"] #[repr(transparent)] @@ -4699,24 +4343,13 @@ pub struct ITsSbResourcePlugin_Vtbl { #[repr(transparent)] pub struct ITsSbResourcePluginStore(::windows::core::IUnknown); impl ITsSbResourcePluginStore { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn QueryTarget<'a, P0, P1>(&self, targetname: P0, farmname: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn QueryTarget(&self, targetname: &::windows::core::BSTR, farmname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).QueryTarget)(::windows::core::Interface::as_raw(self), targetname.into().abi(), farmname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).QueryTarget)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(targetname), ::core::mem::transmute_copy(farmname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn QuerySessionBySessionId<'a, P0>(&self, dwsessionid: u32, targetname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn QuerySessionBySessionId(&self, dwsessionid: u32, targetname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).QuerySessionBySessionId)(::windows::core::Interface::as_raw(self), dwsessionid, targetname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).QuerySessionBySessionId)(::windows::core::Interface::as_raw(self), dwsessionid, ::core::mem::transmute_copy(targetname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn AddTargetToStore<'a, P0>(&self, ptarget: P0) -> ::windows::core::Result<()> where @@ -4738,26 +4371,20 @@ impl ITsSbResourcePluginStore { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoveEnvironmentFromStore<'a, P0, P1>(&self, environmentname: P0, bignoreowner: P1) -> ::windows::core::Result<()> + pub unsafe fn RemoveEnvironmentFromStore<'a, P0>(&self, environmentname: &::windows::core::BSTR, bignoreowner: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into, + P0: ::std::convert::Into, { - (::windows::core::Interface::vtable(self).RemoveEnvironmentFromStore)(::windows::core::Interface::as_raw(self), environmentname.into().abi(), bignoreowner.into()).ok() + (::windows::core::Interface::vtable(self).RemoveEnvironmentFromStore)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(environmentname), bignoreowner.into()).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] pub unsafe fn EnumerateFarms(&self, pdwcount: &mut u32, pval: &mut *mut super::Com::SAFEARRAY) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).EnumerateFarms)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdwcount), ::core::mem::transmute(pval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn QueryEnvironment<'a, P0>(&self, environmentname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn QueryEnvironment(&self, environmentname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).QueryEnvironment)(::windows::core::Interface::as_raw(self), environmentname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).QueryEnvironment)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(environmentname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn EnumerateEnvironments(&self, pdwcount: &mut u32, pval: *mut *mut ::core::option::Option) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).EnumerateEnvironments)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdwcount), ::core::mem::transmute(pval)).ok() @@ -4788,30 +4415,17 @@ impl ITsSbResourcePluginStore { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn SetTargetProperty<'a, P0, P1>(&self, targetname: P0, propertyname: P1, pproperty: &super::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetTargetProperty)(::windows::core::Interface::as_raw(self), targetname.into().abi(), propertyname.into().abi(), ::core::mem::transmute(pproperty)).ok() + pub unsafe fn SetTargetProperty(&self, targetname: &::windows::core::BSTR, propertyname: &::windows::core::BSTR, pproperty: &super::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetTargetProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(targetname), ::core::mem::transmute_copy(propertyname), ::core::mem::transmute(pproperty)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn SetEnvironmentProperty<'a, P0, P1>(&self, environmentname: P0, propertyname: P1, pproperty: &super::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetEnvironmentProperty)(::windows::core::Interface::as_raw(self), environmentname.into().abi(), propertyname.into().abi(), ::core::mem::transmute(pproperty)).ok() + pub unsafe fn SetEnvironmentProperty(&self, environmentname: &::windows::core::BSTR, propertyname: &::windows::core::BSTR, pproperty: &super::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetEnvironmentProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(environmentname), ::core::mem::transmute_copy(propertyname), ::core::mem::transmute(pproperty)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetTargetState<'a, P0>(&self, targetname: P0, newstate: TARGET_STATE) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn SetTargetState(&self, targetname: &::windows::core::BSTR, newstate: TARGET_STATE) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SetTargetState)(::windows::core::Interface::as_raw(self), targetname.into().abi(), newstate, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SetTargetState)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(targetname), newstate, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn SetSessionState<'a, P0>(&self, sbsession: P0) -> ::windows::core::Result<()> where @@ -4819,72 +4433,39 @@ impl ITsSbResourcePluginStore { { (::windows::core::Interface::vtable(self).SetSessionState)(::windows::core::Interface::as_raw(self), sbsession.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EnumerateTargets<'a, P0, P1, P2>(&self, farmname: P0, envname: P1, sortbyfieldid: TS_SB_SORT_BY, sortybypropname: P2, pdwcount: &mut u32, pval: *mut *mut ::core::option::Option) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).EnumerateTargets)(::windows::core::Interface::as_raw(self), farmname.into().abi(), envname.into().abi(), sortbyfieldid, sortybypropname.into().abi(), ::core::mem::transmute(pdwcount), ::core::mem::transmute(pval)).ok() + pub unsafe fn EnumerateTargets(&self, farmname: &::windows::core::BSTR, envname: &::windows::core::BSTR, sortbyfieldid: TS_SB_SORT_BY, sortybypropname: &::windows::core::BSTR, pdwcount: &mut u32, pval: *mut *mut ::core::option::Option) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).EnumerateTargets)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(farmname), ::core::mem::transmute_copy(envname), sortbyfieldid, ::core::mem::transmute_copy(sortybypropname), ::core::mem::transmute(pdwcount), ::core::mem::transmute(pval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EnumerateSessions<'a, P0, P1, P2, P3, P4>(&self, targetname: P0, username: P1, userdomain: P2, poolname: P3, initialprogram: P4, psessionstate: &TSSESSION_STATE, pdwcount: &mut u32, ppval: *mut *mut ::core::option::Option) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).EnumerateSessions)(::windows::core::Interface::as_raw(self), targetname.into().abi(), username.into().abi(), userdomain.into().abi(), poolname.into().abi(), initialprogram.into().abi(), ::core::mem::transmute(psessionstate), ::core::mem::transmute(pdwcount), ::core::mem::transmute(ppval)).ok() + pub unsafe fn EnumerateSessions(&self, targetname: &::windows::core::BSTR, username: &::windows::core::BSTR, userdomain: &::windows::core::BSTR, poolname: &::windows::core::BSTR, initialprogram: &::windows::core::BSTR, psessionstate: &TSSESSION_STATE, pdwcount: &mut u32, ppval: *mut *mut ::core::option::Option) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).EnumerateSessions)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(targetname), ::core::mem::transmute_copy(username), ::core::mem::transmute_copy(userdomain), ::core::mem::transmute_copy(poolname), ::core::mem::transmute_copy(initialprogram), ::core::mem::transmute(psessionstate), ::core::mem::transmute(pdwcount), ::core::mem::transmute(ppval)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetFarmProperty<'a, P0, P1>(&self, farmname: P0, propertyname: P1, pvarvalue: &super::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetFarmProperty)(::windows::core::Interface::as_raw(self), farmname.into().abi(), propertyname.into().abi(), ::core::mem::transmute(pvarvalue)).ok() + pub unsafe fn GetFarmProperty(&self, farmname: &::windows::core::BSTR, propertyname: &::windows::core::BSTR, pvarvalue: &super::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetFarmProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(farmname), ::core::mem::transmute_copy(propertyname), ::core::mem::transmute(pvarvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeleteTarget<'a, P0, P1>(&self, targetname: P0, hostname: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DeleteTarget)(::windows::core::Interface::as_raw(self), targetname.into().abi(), hostname.into().abi()).ok() + pub unsafe fn DeleteTarget(&self, targetname: &::windows::core::BSTR, hostname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DeleteTarget)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(targetname), ::core::mem::transmute_copy(hostname)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn SetTargetPropertyWithVersionCheck<'a, P0, P1>(&self, ptarget: P0, propertyname: P1, pproperty: &super::Com::VARIANT) -> ::windows::core::Result<()> + pub unsafe fn SetTargetPropertyWithVersionCheck<'a, P0>(&self, ptarget: P0, propertyname: &::windows::core::BSTR, pproperty: &super::Com::VARIANT) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, ITsSbTarget>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).SetTargetPropertyWithVersionCheck)(::windows::core::Interface::as_raw(self), ptarget.into().abi(), propertyname.into().abi(), ::core::mem::transmute(pproperty)).ok() + (::windows::core::Interface::vtable(self).SetTargetPropertyWithVersionCheck)(::windows::core::Interface::as_raw(self), ptarget.into().abi(), ::core::mem::transmute_copy(propertyname), ::core::mem::transmute(pproperty)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn SetEnvironmentPropertyWithVersionCheck<'a, P0, P1>(&self, penvironment: P0, propertyname: P1, pproperty: &super::Com::VARIANT) -> ::windows::core::Result<()> + pub unsafe fn SetEnvironmentPropertyWithVersionCheck<'a, P0>(&self, penvironment: P0, propertyname: &::windows::core::BSTR, pproperty: &super::Com::VARIANT) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, ITsSbEnvironment>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).SetEnvironmentPropertyWithVersionCheck)(::windows::core::Interface::as_raw(self), penvironment.into().abi(), propertyname.into().abi(), ::core::mem::transmute(pproperty)).ok() + (::windows::core::Interface::vtable(self).SetEnvironmentPropertyWithVersionCheck)(::windows::core::Interface::as_raw(self), penvironment.into().abi(), ::core::mem::transmute_copy(propertyname), ::core::mem::transmute(pproperty)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AcquireTargetLock<'a, P0>(&self, targetname: P0, dwtimeout: u32) -> ::windows::core::Result<::windows::core::IUnknown> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn AcquireTargetLock(&self, targetname: &::windows::core::BSTR, dwtimeout: u32) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AcquireTargetLock)(::windows::core::Interface::as_raw(self), targetname.into().abi(), dwtimeout, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) + (::windows::core::Interface::vtable(self).AcquireTargetLock)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(targetname), dwtimeout, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } pub unsafe fn ReleaseTargetLock<'a, P0>(&self, pcontext: P0) -> ::windows::core::Result<()> where @@ -4892,42 +4473,19 @@ impl ITsSbResourcePluginStore { { (::windows::core::Interface::vtable(self).ReleaseTargetLock)(::windows::core::Interface::as_raw(self), pcontext.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TestAndSetServerState<'a, P0, P1>(&self, poolname: P0, serverfqdn: P1, newstate: TARGET_STATE, teststate: TARGET_STATE) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn TestAndSetServerState(&self, poolname: &::windows::core::BSTR, serverfqdn: &::windows::core::BSTR, newstate: TARGET_STATE, teststate: TARGET_STATE) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TestAndSetServerState)(::windows::core::Interface::as_raw(self), poolname.into().abi(), serverfqdn.into().abi(), newstate, teststate, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TestAndSetServerState)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(poolname), ::core::mem::transmute_copy(serverfqdn), newstate, teststate, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetServerWaitingToStart<'a, P0, P1>(&self, poolname: P0, servername: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetServerWaitingToStart)(::windows::core::Interface::as_raw(self), poolname.into().abi(), servername.into().abi()).ok() + pub unsafe fn SetServerWaitingToStart(&self, poolname: &::windows::core::BSTR, servername: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetServerWaitingToStart)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(poolname), ::core::mem::transmute_copy(servername)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetServerState<'a, P0, P1>(&self, poolname: P0, serverfqdn: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetServerState(&self, poolname: &::windows::core::BSTR, serverfqdn: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetServerState)(::windows::core::Interface::as_raw(self), poolname.into().abi(), serverfqdn.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetServerState)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(poolname), ::core::mem::transmute_copy(serverfqdn), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetServerDrainMode<'a, P0>(&self, serverfqdn: P0, drainmode: u32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetServerDrainMode)(::windows::core::Interface::as_raw(self), serverfqdn.into().abi(), drainmode).ok() + pub unsafe fn SetServerDrainMode(&self, serverfqdn: &::windows::core::BSTR, drainmode: u32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetServerDrainMode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(serverfqdn), drainmode).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -4969,29 +4527,20 @@ unsafe impl ::windows::core::Interface for ITsSbResourcePluginStore { #[doc(hidden)] pub struct ITsSbResourcePluginStore_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub QueryTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop, farmname: ::core::mem::ManuallyDrop, pptarget: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - QueryTarget: usize, - #[cfg(feature = "Win32_Foundation")] - pub QuerySessionBySessionId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwsessionid: u32, targetname: ::core::mem::ManuallyDrop, ppsession: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - QuerySessionBySessionId: usize, + pub QueryTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, farmname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pptarget: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub QuerySessionBySessionId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwsessionid: u32, targetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppsession: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub AddTargetToStore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptarget: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub AddSessionToStore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psession: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub AddEnvironmentToStore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penvironment: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub RemoveEnvironmentFromStore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, environmentname: ::core::mem::ManuallyDrop, bignoreowner: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, + pub RemoveEnvironmentFromStore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, environmentname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bignoreowner: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] RemoveEnvironmentFromStore: usize, #[cfg(feature = "Win32_System_Com")] pub EnumerateFarms: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwcount: *mut u32, pval: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] EnumerateFarms: usize, - #[cfg(feature = "Win32_Foundation")] - pub QueryEnvironment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, environmentname: ::core::mem::ManuallyDrop, ppenvironment: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - QueryEnvironment: usize, + pub QueryEnvironment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, environmentname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppenvironment: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub EnumerateEnvironments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwcount: *mut u32, pval: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub SaveTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptarget: *mut ::core::ffi::c_void, bforcewrite: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, @@ -5003,63 +4552,36 @@ pub struct ITsSbResourcePluginStore_Vtbl { SaveEnvironment: usize, pub SaveSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psession: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub SetTargetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop, propertyname: ::core::mem::ManuallyDrop, pproperty: *const super::Com::VARIANT) -> ::windows::core::HRESULT, + pub SetTargetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pproperty: *const super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SetTargetProperty: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub SetEnvironmentProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, environmentname: ::core::mem::ManuallyDrop, propertyname: ::core::mem::ManuallyDrop, pproperty: *const super::Com::VARIANT) -> ::windows::core::HRESULT, + pub SetEnvironmentProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, environmentname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pproperty: *const super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SetEnvironmentProperty: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetTargetState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop, newstate: TARGET_STATE, poldstate: *mut TARGET_STATE) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetTargetState: usize, + pub SetTargetState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, newstate: TARGET_STATE, poldstate: *mut TARGET_STATE) -> ::windows::core::HRESULT, pub SetSessionState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sbsession: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub EnumerateTargets: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, farmname: ::core::mem::ManuallyDrop, envname: ::core::mem::ManuallyDrop, sortbyfieldid: TS_SB_SORT_BY, sortybypropname: ::core::mem::ManuallyDrop, pdwcount: *mut u32, pval: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EnumerateTargets: usize, - #[cfg(feature = "Win32_Foundation")] - pub EnumerateSessions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop, username: ::core::mem::ManuallyDrop, userdomain: ::core::mem::ManuallyDrop, poolname: ::core::mem::ManuallyDrop, initialprogram: ::core::mem::ManuallyDrop, psessionstate: *const TSSESSION_STATE, pdwcount: *mut u32, ppval: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EnumerateSessions: usize, + pub EnumerateTargets: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, farmname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, envname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, sortbyfieldid: TS_SB_SORT_BY, sortybypropname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwcount: *mut u32, pval: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub EnumerateSessions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, username: ::core::mem::ManuallyDrop<::windows::core::BSTR>, userdomain: ::core::mem::ManuallyDrop<::windows::core::BSTR>, poolname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, initialprogram: ::core::mem::ManuallyDrop<::windows::core::BSTR>, psessionstate: *const TSSESSION_STATE, pdwcount: *mut u32, ppval: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetFarmProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, farmname: ::core::mem::ManuallyDrop, propertyname: ::core::mem::ManuallyDrop, pvarvalue: *const super::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetFarmProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, farmname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarvalue: *const super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetFarmProperty: usize, - #[cfg(feature = "Win32_Foundation")] - pub DeleteTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop, hostname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeleteTarget: usize, + pub DeleteTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, hostname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub SetTargetPropertyWithVersionCheck: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptarget: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop, pproperty: *const super::Com::VARIANT) -> ::windows::core::HRESULT, + pub SetTargetPropertyWithVersionCheck: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptarget: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pproperty: *const super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SetTargetPropertyWithVersionCheck: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub SetEnvironmentPropertyWithVersionCheck: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penvironment: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop, pproperty: *const super::Com::VARIANT) -> ::windows::core::HRESULT, + pub SetEnvironmentPropertyWithVersionCheck: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penvironment: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pproperty: *const super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SetEnvironmentPropertyWithVersionCheck: usize, - #[cfg(feature = "Win32_Foundation")] - pub AcquireTargetLock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop, dwtimeout: u32, ppcontext: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AcquireTargetLock: usize, + pub AcquireTargetLock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwtimeout: u32, ppcontext: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub ReleaseTargetLock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub TestAndSetServerState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, poolname: ::core::mem::ManuallyDrop, serverfqdn: ::core::mem::ManuallyDrop, newstate: TARGET_STATE, teststate: TARGET_STATE, pinitstate: *mut TARGET_STATE) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TestAndSetServerState: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetServerWaitingToStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, poolname: ::core::mem::ManuallyDrop, servername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetServerWaitingToStart: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetServerState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, poolname: ::core::mem::ManuallyDrop, serverfqdn: ::core::mem::ManuallyDrop, pstate: *mut TARGET_STATE) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetServerState: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetServerDrainMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, serverfqdn: ::core::mem::ManuallyDrop, drainmode: u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetServerDrainMode: usize, + pub TestAndSetServerState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, poolname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, serverfqdn: ::core::mem::ManuallyDrop<::windows::core::BSTR>, newstate: TARGET_STATE, teststate: TARGET_STATE, pinitstate: *mut TARGET_STATE) -> ::windows::core::HRESULT, + pub SetServerWaitingToStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, poolname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, servername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetServerState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, poolname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, serverfqdn: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pstate: *mut TARGET_STATE) -> ::windows::core::HRESULT, + pub SetServerDrainMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, serverfqdn: ::core::mem::ManuallyDrop<::windows::core::BSTR>, drainmode: u32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`*"] #[repr(transparent)] @@ -5122,31 +4644,20 @@ impl ITsSbSession { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).SessionId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TargetName(&self) -> ::windows::core::Result { + pub unsafe fn TargetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TargetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TargetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetTargetName<'a, P0>(&self, targetname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetTargetName)(::windows::core::Interface::as_raw(self), targetname.into().abi()).ok() + pub unsafe fn SetTargetName(&self, targetname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetTargetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(targetname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Username(&self) -> ::windows::core::Result { + pub unsafe fn Username(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Username)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Username)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Domain(&self) -> ::windows::core::Result { + pub unsafe fn Domain(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Domain)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Domain)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn State(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5177,19 +4688,12 @@ impl ITsSbSession { pub unsafe fn SetDisconnectTime(&self, time: super::super::Foundation::FILETIME) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetDisconnectTime)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(time)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InitialProgram(&self) -> ::windows::core::Result { + pub unsafe fn InitialProgram(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).InitialProgram)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).InitialProgram)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetInitialProgram<'a, P0>(&self, application: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetInitialProgram)(::windows::core::Interface::as_raw(self), application.into().abi()).ok() + pub unsafe fn SetInitialProgram(&self, application: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetInitialProgram)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(application)).ok() } pub unsafe fn ClientDisplay(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5246,22 +4750,10 @@ unsafe impl ::windows::core::Interface for ITsSbSession { pub struct ITsSbSession_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub SessionId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub TargetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TargetName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetTargetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetTargetName: usize, - #[cfg(feature = "Win32_Foundation")] - pub Username: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, username: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Username: usize, - #[cfg(feature = "Win32_Foundation")] - pub Domain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, domain: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Domain: usize, + pub TargetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetTargetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Username: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, username: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Domain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, domain: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstate: *mut TSSESSION_STATE) -> ::windows::core::HRESULT, pub SetState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, state: TSSESSION_STATE) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] @@ -5280,14 +4772,8 @@ pub struct ITsSbSession_Vtbl { pub SetDisconnectTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, time: super::super::Foundation::FILETIME) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] SetDisconnectTime: usize, - #[cfg(feature = "Win32_Foundation")] - pub InitialProgram: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, app: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InitialProgram: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetInitialProgram: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, application: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetInitialProgram: usize, + pub InitialProgram: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, app: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetInitialProgram: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, application: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ClientDisplay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pclientdisplay: *mut CLIENT_DISPLAY) -> ::windows::core::HRESULT, pub SetClientDisplay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pclientdisplay: CLIENT_DISPLAY) -> ::windows::core::HRESULT, pub ProtocolType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut u32) -> ::windows::core::HRESULT, @@ -5297,61 +4783,33 @@ pub struct ITsSbSession_Vtbl { #[repr(transparent)] pub struct ITsSbTarget(::windows::core::IUnknown); impl ITsSbTarget { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TargetName(&self) -> ::windows::core::Result { + pub unsafe fn TargetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TargetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TargetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetTargetName<'a, P0>(&self, val: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetTargetName)(::windows::core::Interface::as_raw(self), val.into().abi()).ok() + pub unsafe fn SetTargetName(&self, val: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetTargetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(val)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FarmName(&self) -> ::windows::core::Result { + pub unsafe fn FarmName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FarmName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FarmName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFarmName<'a, P0>(&self, val: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetFarmName)(::windows::core::Interface::as_raw(self), val.into().abi()).ok() + pub unsafe fn SetFarmName(&self, val: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetFarmName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(val)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TargetFQDN(&self) -> ::windows::core::Result { + pub unsafe fn TargetFQDN(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TargetFQDN)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TargetFQDN)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetTargetFQDN<'a, P0>(&self, val: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetTargetFQDN)(::windows::core::Interface::as_raw(self), val.into().abi()).ok() + pub unsafe fn SetTargetFQDN(&self, val: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetTargetFQDN)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(val)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TargetNetbios(&self) -> ::windows::core::Result { + pub unsafe fn TargetNetbios(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TargetNetbios)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TargetNetbios)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetTargetNetbios<'a, P0>(&self, val: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetTargetNetbios)(::windows::core::Interface::as_raw(self), val.into().abi()).ok() + pub unsafe fn SetTargetNetbios(&self, val: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetTargetNetbios)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(val)).ok() } pub unsafe fn get_IpAddresses(&self, sockaddr: *mut TSSD_ConnectionPoint, numaddresses: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).get_IpAddresses)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(sockaddr), ::core::mem::transmute(numaddresses)).ok() @@ -5380,19 +4838,12 @@ impl ITsSbTarget { { (::windows::core::Interface::vtable(self).SetTargetPropertySet)(::windows::core::Interface::as_raw(self), pval.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EnvironmentName(&self) -> ::windows::core::Result { + pub unsafe fn EnvironmentName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).EnvironmentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).EnvironmentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetEnvironmentName<'a, P0>(&self, val: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetEnvironmentName)(::windows::core::Interface::as_raw(self), val.into().abi()).ok() + pub unsafe fn SetEnvironmentName(&self, val: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetEnvironmentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(val)).ok() } pub unsafe fn NumSessions(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5446,38 +4897,14 @@ unsafe impl ::windows::core::Interface for ITsSbTarget { #[doc(hidden)] pub struct ITsSbTarget_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub TargetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TargetName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetTargetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, val: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetTargetName: usize, - #[cfg(feature = "Win32_Foundation")] - pub FarmName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FarmName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetFarmName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, val: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetFarmName: usize, - #[cfg(feature = "Win32_Foundation")] - pub TargetFQDN: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetfqdnname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TargetFQDN: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetTargetFQDN: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, val: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetTargetFQDN: usize, - #[cfg(feature = "Win32_Foundation")] - pub TargetNetbios: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetnetbiosname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TargetNetbios: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetTargetNetbios: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, val: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetTargetNetbios: usize, + pub TargetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetTargetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, val: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FarmName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetFarmName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, val: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub TargetFQDN: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetfqdnname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetTargetFQDN: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, val: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub TargetNetbios: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetnetbiosname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetTargetNetbios: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, val: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub get_IpAddresses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sockaddr: *mut TSSD_ConnectionPoint, numaddresses: *mut u32) -> ::windows::core::HRESULT, pub put_IpAddresses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sockaddr: *const TSSD_ConnectionPoint, numaddresses: u32) -> ::windows::core::HRESULT, pub TargetState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstate: *mut TARGET_STATE) -> ::windows::core::HRESULT, @@ -5490,14 +4917,8 @@ pub struct ITsSbTarget_Vtbl { pub SetTargetPropertySet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com_StructuredStorage"))] SetTargetPropertySet: usize, - #[cfg(feature = "Win32_Foundation")] - pub EnvironmentName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EnvironmentName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetEnvironmentName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, val: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetEnvironmentName: usize, + pub EnvironmentName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetEnvironmentName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, val: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub NumSessions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnumsessions: *mut u32) -> ::windows::core::HRESULT, pub NumPendingConnections: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnumpendingconnections: *mut u32) -> ::windows::core::HRESULT, pub TargetLoad: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptargetload: *mut u32) -> ::windows::core::HRESULT, @@ -5615,11 +5036,9 @@ pub struct ITsSbTargetPropertySet_Vtbl { #[repr(transparent)] pub struct ITsSbTaskInfo(::windows::core::IUnknown); impl ITsSbTaskInfo { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TargetId(&self) -> ::windows::core::Result { + pub unsafe fn TargetId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TargetId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TargetId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -5639,17 +5058,13 @@ impl ITsSbTaskInfo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Deadline)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Identifier(&self) -> ::windows::core::Result { + pub unsafe fn Identifier(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Identifier)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Identifier)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Label(&self) -> ::windows::core::Result { + pub unsafe fn Label(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Label)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Label)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5657,11 +5072,9 @@ impl ITsSbTaskInfo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Context)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut super::Com::SAFEARRAY>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Plugin(&self) -> ::windows::core::Result { + pub unsafe fn Plugin(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Plugin)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Plugin)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Status(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5707,10 +5120,7 @@ unsafe impl ::windows::core::Interface for ITsSbTaskInfo { #[doc(hidden)] pub struct ITsSbTaskInfo_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub TargetId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TargetId: usize, + pub TargetId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub StartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstarttime: *mut super::super::Foundation::FILETIME) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -5723,22 +5133,13 @@ pub struct ITsSbTaskInfo_Vtbl { pub Deadline: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdeadline: *mut super::super::Foundation::FILETIME) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] Deadline: usize, - #[cfg(feature = "Win32_Foundation")] - pub Identifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pidentifier: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Identifier: usize, - #[cfg(feature = "Win32_Foundation")] - pub Label: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plabel: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Label: usize, + pub Identifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pidentifier: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Label: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plabel: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Context: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontext: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Context: usize, - #[cfg(feature = "Win32_Foundation")] - pub Plugin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pplugin: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Plugin: usize, + pub Plugin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pplugin: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Status: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstatus: *mut RDV_TASK_STATUS) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`*"] @@ -5760,17 +5161,12 @@ impl ITsSbTaskPlugin { } pub unsafe fn InitializeTaskPlugin<'a, P0>(&self, pitssbtaskpluginnotifysink: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, ITsSbTaskPluginNotifySink>>, - { - (::windows::core::Interface::vtable(self).InitializeTaskPlugin)(::windows::core::Interface::as_raw(self), pitssbtaskpluginnotifysink.into().abi()).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetTaskQueue<'a, P0>(&self, pszhostname: P0, pitssbtaskinfo: &[::core::option::Option]) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, ITsSbTaskPluginNotifySink>>, { - (::windows::core::Interface::vtable(self).SetTaskQueue)(::windows::core::Interface::as_raw(self), pszhostname.into().abi(), pitssbtaskinfo.len() as _, ::core::mem::transmute(pitssbtaskinfo.as_ptr())).ok() + (::windows::core::Interface::vtable(self).InitializeTaskPlugin)(::windows::core::Interface::as_raw(self), pitssbtaskpluginnotifysink.into().abi()).ok() + } + pub unsafe fn SetTaskQueue(&self, pszhostname: &::windows::core::BSTR, pitssbtaskinfo: &[::core::option::Option]) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetTaskQueue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pszhostname), pitssbtaskinfo.len() as _, ::core::mem::transmute(pitssbtaskinfo.as_ptr())).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -5828,10 +5224,7 @@ unsafe impl ::windows::core::Interface for ITsSbTaskPlugin { pub struct ITsSbTaskPlugin_Vtbl { pub base__: ITsSbPlugin_Vtbl, pub InitializeTaskPlugin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pitssbtaskpluginnotifysink: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetTaskQueue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszhostname: ::core::mem::ManuallyDrop, sbtaskinfosize: u32, pitssbtaskinfo: *const *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetTaskQueue: usize, + pub SetTaskQueue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszhostname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, sbtaskinfosize: u32, pitssbtaskinfo: *const *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`*"] #[repr(transparent)] @@ -5845,40 +5238,17 @@ impl ITsSbTaskPluginNotifySink { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn OnSetTaskTime<'a, P0, P1, P2, P3>(&self, sztargetname: P0, taskstarttime: super::super::Foundation::FILETIME, taskendtime: super::super::Foundation::FILETIME, taskdeadline: super::super::Foundation::FILETIME, sztasklabel: P1, sztaskidentifier: P2, sztaskplugin: P3, dwtaskstatus: u32, sacontext: &super::Com::SAFEARRAY) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).OnSetTaskTime)(::windows::core::Interface::as_raw(self), sztargetname.into().abi(), ::core::mem::transmute(taskstarttime), ::core::mem::transmute(taskendtime), ::core::mem::transmute(taskdeadline), sztasklabel.into().abi(), sztaskidentifier.into().abi(), sztaskplugin.into().abi(), dwtaskstatus, ::core::mem::transmute(sacontext)).ok() + pub unsafe fn OnSetTaskTime(&self, sztargetname: &::windows::core::BSTR, taskstarttime: super::super::Foundation::FILETIME, taskendtime: super::super::Foundation::FILETIME, taskdeadline: super::super::Foundation::FILETIME, sztasklabel: &::windows::core::BSTR, sztaskidentifier: &::windows::core::BSTR, sztaskplugin: &::windows::core::BSTR, dwtaskstatus: u32, sacontext: &super::Com::SAFEARRAY) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).OnSetTaskTime)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(sztargetname), ::core::mem::transmute(taskstarttime), ::core::mem::transmute(taskendtime), ::core::mem::transmute(taskdeadline), ::core::mem::transmute_copy(sztasklabel), ::core::mem::transmute_copy(sztaskidentifier), ::core::mem::transmute_copy(sztaskplugin), dwtaskstatus, ::core::mem::transmute(sacontext)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OnDeleteTaskTime<'a, P0, P1>(&self, sztargetname: P0, sztaskidentifier: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).OnDeleteTaskTime)(::windows::core::Interface::as_raw(self), sztargetname.into().abi(), sztaskidentifier.into().abi()).ok() + pub unsafe fn OnDeleteTaskTime(&self, sztargetname: &::windows::core::BSTR, sztaskidentifier: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).OnDeleteTaskTime)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(sztargetname), ::core::mem::transmute_copy(sztaskidentifier)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OnUpdateTaskStatus<'a, P0, P1>(&self, sztargetname: P0, taskidentifier: P1, taskstatus: RDV_TASK_STATUS) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).OnUpdateTaskStatus)(::windows::core::Interface::as_raw(self), sztargetname.into().abi(), taskidentifier.into().abi(), taskstatus).ok() + pub unsafe fn OnUpdateTaskStatus(&self, sztargetname: &::windows::core::BSTR, taskidentifier: &::windows::core::BSTR, taskstatus: RDV_TASK_STATUS) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).OnUpdateTaskStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(sztargetname), ::core::mem::transmute_copy(taskidentifier), taskstatus).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OnReportTasks<'a, P0>(&self, szhostname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).OnReportTasks)(::windows::core::Interface::as_raw(self), szhostname.into().abi()).ok() + pub unsafe fn OnReportTasks(&self, szhostname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).OnReportTasks)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(szhostname)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -5936,21 +5306,12 @@ unsafe impl ::windows::core::Interface for ITsSbTaskPluginNotifySink { pub struct ITsSbTaskPluginNotifySink_Vtbl { pub base__: ITsSbBaseNotifySink_Vtbl, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub OnSetTaskTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sztargetname: ::core::mem::ManuallyDrop, taskstarttime: super::super::Foundation::FILETIME, taskendtime: super::super::Foundation::FILETIME, taskdeadline: super::super::Foundation::FILETIME, sztasklabel: ::core::mem::ManuallyDrop, sztaskidentifier: ::core::mem::ManuallyDrop, sztaskplugin: ::core::mem::ManuallyDrop, dwtaskstatus: u32, sacontext: *const super::Com::SAFEARRAY) -> ::windows::core::HRESULT, + pub OnSetTaskTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sztargetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, taskstarttime: super::super::Foundation::FILETIME, taskendtime: super::super::Foundation::FILETIME, taskdeadline: super::super::Foundation::FILETIME, sztasklabel: ::core::mem::ManuallyDrop<::windows::core::BSTR>, sztaskidentifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, sztaskplugin: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwtaskstatus: u32, sacontext: *const super::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] OnSetTaskTime: usize, - #[cfg(feature = "Win32_Foundation")] - pub OnDeleteTaskTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sztargetname: ::core::mem::ManuallyDrop, sztaskidentifier: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OnDeleteTaskTime: usize, - #[cfg(feature = "Win32_Foundation")] - pub OnUpdateTaskStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sztargetname: ::core::mem::ManuallyDrop, taskidentifier: ::core::mem::ManuallyDrop, taskstatus: RDV_TASK_STATUS) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OnUpdateTaskStatus: usize, - #[cfg(feature = "Win32_Foundation")] - pub OnReportTasks: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szhostname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OnReportTasks: usize, + pub OnDeleteTaskTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sztargetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, sztaskidentifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub OnUpdateTaskStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sztargetname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, taskidentifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, taskstatus: RDV_TASK_STATUS) -> ::windows::core::HRESULT, + pub OnReportTasks: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szhostname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`*"] #[repr(transparent)] @@ -7367,12 +6728,11 @@ pub struct IWTSListenerCallback(::windows::core::IUnknown); impl IWTSListenerCallback { #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OnNewChannelConnection<'a, P0, P1>(&self, pchannel: P0, data: P1, pbaccept: &mut super::super::Foundation::BOOL, ppcallback: &mut ::core::option::Option) -> ::windows::core::Result<()> + pub unsafe fn OnNewChannelConnection<'a, P0>(&self, pchannel: P0, data: &::windows::core::BSTR, pbaccept: &mut super::super::Foundation::BOOL, ppcallback: &mut ::core::option::Option) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IWTSVirtualChannel>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).OnNewChannelConnection)(::windows::core::Interface::as_raw(self), pchannel.into().abi(), data.into().abi(), ::core::mem::transmute(pbaccept), ::core::mem::transmute(ppcallback)).ok() + (::windows::core::Interface::vtable(self).OnNewChannelConnection)(::windows::core::Interface::as_raw(self), pchannel.into().abi(), ::core::mem::transmute_copy(data), ::core::mem::transmute(pbaccept), ::core::mem::transmute(ppcallback)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -7415,7 +6775,7 @@ unsafe impl ::windows::core::Interface for IWTSListenerCallback { pub struct IWTSListenerCallback_Vtbl { pub base__: ::windows::core::IUnknownVtbl, #[cfg(feature = "Win32_Foundation")] - pub OnNewChannelConnection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pchannel: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop, pbaccept: *mut super::super::Foundation::BOOL, ppcallback: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub OnNewChannelConnection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pchannel: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbaccept: *mut super::super::Foundation::BOOL, ppcallback: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] OnNewChannelConnection: usize, } @@ -8500,13 +7860,10 @@ impl IWorkspace { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetWorkspaceNames)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut super::Com::SAFEARRAY>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn StartRemoteApplication<'a, P0>(&self, bstrworkspaceid: P0, psaparams: &super::Com::SAFEARRAY) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).StartRemoteApplication)(::windows::core::Interface::as_raw(self), bstrworkspaceid.into().abi(), ::core::mem::transmute(psaparams)).ok() + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn StartRemoteApplication(&self, bstrworkspaceid: &::windows::core::BSTR, psaparams: &super::Com::SAFEARRAY) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).StartRemoteApplication)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrworkspaceid), ::core::mem::transmute(psaparams)).ok() } pub unsafe fn GetProcessId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -8556,9 +7913,9 @@ pub struct IWorkspace_Vtbl { pub GetWorkspaceNames: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psawkspnames: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetWorkspaceNames: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub StartRemoteApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop, psaparams: *const super::Com::SAFEARRAY) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub StartRemoteApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, psaparams: *const super::Com::SAFEARRAY) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] StartRemoteApplication: usize, pub GetProcessId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pulprocessid: *mut u32) -> ::windows::core::HRESULT, } @@ -8572,28 +7929,19 @@ impl IWorkspace2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetWorkspaceNames)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut super::Com::SAFEARRAY>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn StartRemoteApplication<'a, P0>(&self, bstrworkspaceid: P0, psaparams: &super::Com::SAFEARRAY) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.StartRemoteApplication)(::windows::core::Interface::as_raw(self), bstrworkspaceid.into().abi(), ::core::mem::transmute(psaparams)).ok() + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn StartRemoteApplication(&self, bstrworkspaceid: &::windows::core::BSTR, psaparams: &super::Com::SAFEARRAY) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.StartRemoteApplication)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrworkspaceid), ::core::mem::transmute(psaparams)).ok() } pub unsafe fn GetProcessId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetProcessId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn StartRemoteApplicationEx<'a, P0, P1, P2, P3>(&self, bstrworkspaceid: P0, bstrrequestingappid: P1, bstrrequestingappfamilyname: P2, blaunchintoimmersiveclient: i16, bstrimmersiveclientactivationcontext: P3, psaparams: &super::Com::SAFEARRAY) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).StartRemoteApplicationEx)(::windows::core::Interface::as_raw(self), bstrworkspaceid.into().abi(), bstrrequestingappid.into().abi(), bstrrequestingappfamilyname.into().abi(), blaunchintoimmersiveclient, bstrimmersiveclientactivationcontext.into().abi(), ::core::mem::transmute(psaparams)).ok() + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn StartRemoteApplicationEx(&self, bstrworkspaceid: &::windows::core::BSTR, bstrrequestingappid: &::windows::core::BSTR, bstrrequestingappfamilyname: &::windows::core::BSTR, blaunchintoimmersiveclient: i16, bstrimmersiveclientactivationcontext: &::windows::core::BSTR, psaparams: &super::Com::SAFEARRAY) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).StartRemoteApplicationEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrworkspaceid), ::core::mem::transmute_copy(bstrrequestingappid), ::core::mem::transmute_copy(bstrrequestingappfamilyname), blaunchintoimmersiveclient, ::core::mem::transmute_copy(bstrimmersiveclientactivationcontext), ::core::mem::transmute(psaparams)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -8650,9 +7998,9 @@ unsafe impl ::windows::core::Interface for IWorkspace2 { #[doc(hidden)] pub struct IWorkspace2_Vtbl { pub base__: IWorkspace_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub StartRemoteApplicationEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop, bstrrequestingappid: ::core::mem::ManuallyDrop, bstrrequestingappfamilyname: ::core::mem::ManuallyDrop, blaunchintoimmersiveclient: i16, bstrimmersiveclientactivationcontext: ::core::mem::ManuallyDrop, psaparams: *const super::Com::SAFEARRAY) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub StartRemoteApplicationEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrrequestingappid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrrequestingappfamilyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, blaunchintoimmersiveclient: i16, bstrimmersiveclientactivationcontext: ::core::mem::ManuallyDrop<::windows::core::BSTR>, psaparams: *const super::Com::SAFEARRAY) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] StartRemoteApplicationEx: usize, } #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`*"] @@ -8665,47 +8013,28 @@ impl IWorkspace3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.GetWorkspaceNames)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut super::Com::SAFEARRAY>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn StartRemoteApplication<'a, P0>(&self, bstrworkspaceid: P0, psaparams: &super::Com::SAFEARRAY) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.StartRemoteApplication)(::windows::core::Interface::as_raw(self), bstrworkspaceid.into().abi(), ::core::mem::transmute(psaparams)).ok() + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn StartRemoteApplication(&self, bstrworkspaceid: &::windows::core::BSTR, psaparams: &super::Com::SAFEARRAY) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.StartRemoteApplication)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrworkspaceid), ::core::mem::transmute(psaparams)).ok() } pub unsafe fn GetProcessId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.GetProcessId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn StartRemoteApplicationEx<'a, P0, P1, P2, P3>(&self, bstrworkspaceid: P0, bstrrequestingappid: P1, bstrrequestingappfamilyname: P2, blaunchintoimmersiveclient: i16, bstrimmersiveclientactivationcontext: P3, psaparams: &super::Com::SAFEARRAY) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.StartRemoteApplicationEx)(::windows::core::Interface::as_raw(self), bstrworkspaceid.into().abi(), bstrrequestingappid.into().abi(), bstrrequestingappfamilyname.into().abi(), blaunchintoimmersiveclient, bstrimmersiveclientactivationcontext.into().abi(), ::core::mem::transmute(psaparams)).ok() + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn StartRemoteApplicationEx(&self, bstrworkspaceid: &::windows::core::BSTR, bstrrequestingappid: &::windows::core::BSTR, bstrrequestingappfamilyname: &::windows::core::BSTR, blaunchintoimmersiveclient: i16, bstrimmersiveclientactivationcontext: &::windows::core::BSTR, psaparams: &super::Com::SAFEARRAY) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.StartRemoteApplicationEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrworkspaceid), ::core::mem::transmute_copy(bstrrequestingappid), ::core::mem::transmute_copy(bstrrequestingappfamilyname), blaunchintoimmersiveclient, ::core::mem::transmute_copy(bstrimmersiveclientactivationcontext), ::core::mem::transmute(psaparams)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetClaimsToken2<'a, P0, P1>(&self, bstrclaimshint: P0, bstruserhint: P1, claimcookie: u32, hwndcreduiparent: u32, rectcreduiparent: super::super::Foundation::RECT) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetClaimsToken2(&self, bstrclaimshint: &::windows::core::BSTR, bstruserhint: &::windows::core::BSTR, claimcookie: u32, hwndcreduiparent: u32, rectcreduiparent: super::super::Foundation::RECT) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetClaimsToken2)(::windows::core::Interface::as_raw(self), bstrclaimshint.into().abi(), bstruserhint.into().abi(), claimcookie, hwndcreduiparent, ::core::mem::transmute(rectcreduiparent), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetClaimsToken2)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrclaimshint), ::core::mem::transmute_copy(bstruserhint), claimcookie, hwndcreduiparent, ::core::mem::transmute(rectcreduiparent), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetClaimsToken<'a, P0, P1>(&self, bstraccesstoken: P0, ullaccesstokenexpiration: u64, bstrrefreshtoken: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetClaimsToken)(::windows::core::Interface::as_raw(self), bstraccesstoken.into().abi(), ullaccesstokenexpiration, bstrrefreshtoken.into().abi()).ok() + pub unsafe fn SetClaimsToken(&self, bstraccesstoken: &::windows::core::BSTR, ullaccesstokenexpiration: u64, bstrrefreshtoken: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetClaimsToken)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstraccesstoken), ullaccesstokenexpiration, ::core::mem::transmute_copy(bstrrefreshtoken)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -8778,29 +8107,22 @@ unsafe impl ::windows::core::Interface for IWorkspace3 { pub struct IWorkspace3_Vtbl { pub base__: IWorkspace2_Vtbl, #[cfg(feature = "Win32_Foundation")] - pub GetClaimsToken2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrclaimshint: ::core::mem::ManuallyDrop, bstruserhint: ::core::mem::ManuallyDrop, claimcookie: u32, hwndcreduiparent: u32, rectcreduiparent: super::super::Foundation::RECT, pbstraccesstoken: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub GetClaimsToken2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrclaimshint: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstruserhint: ::core::mem::ManuallyDrop<::windows::core::BSTR>, claimcookie: u32, hwndcreduiparent: u32, rectcreduiparent: super::super::Foundation::RECT, pbstraccesstoken: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] GetClaimsToken2: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetClaimsToken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstraccesstoken: ::core::mem::ManuallyDrop, ullaccesstokenexpiration: u64, bstrrefreshtoken: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetClaimsToken: usize, + pub SetClaimsToken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstraccesstoken: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ullaccesstokenexpiration: u64, bstrrefreshtoken: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`*"] #[repr(transparent)] pub struct IWorkspaceClientExt(::windows::core::IUnknown); impl IWorkspaceClientExt { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetResourceId(&self) -> ::windows::core::Result { + pub unsafe fn GetResourceId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetResourceId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetResourceId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetResourceDisplayName(&self) -> ::windows::core::Result { + pub unsafe fn GetResourceDisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetResourceDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetResourceDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn IssueDisconnect(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).IssueDisconnect)(::windows::core::Interface::as_raw(self)).ok() @@ -8845,14 +8167,8 @@ unsafe impl ::windows::core::Interface for IWorkspaceClientExt { #[doc(hidden)] pub struct IWorkspaceClientExt_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetResourceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrworkspaceid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetResourceId: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetResourceDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrworkspacedisplayname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetResourceDisplayName: usize, + pub GetResourceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrworkspaceid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetResourceDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrworkspacedisplayname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub IssueDisconnect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`*"] @@ -8926,14 +8242,11 @@ impl IWorkspaceRegistration2 { pub unsafe fn RemoveResource(&self, dwcookieconnection: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.RemoveResource)(::windows::core::Interface::as_raw(self), dwcookieconnection).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddResourceEx<'a, P0, P1>(&self, punk: P0, bstreventloguploadaddress: P1, pdwcookie: &mut u32, correlationid: ::windows::core::GUID) -> ::windows::core::Result<()> + pub unsafe fn AddResourceEx<'a, P0>(&self, punk: P0, bstreventloguploadaddress: &::windows::core::BSTR, pdwcookie: &mut u32, correlationid: ::windows::core::GUID) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IWorkspaceClientExt>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).AddResourceEx)(::windows::core::Interface::as_raw(self), punk.into().abi(), bstreventloguploadaddress.into().abi(), ::core::mem::transmute(pdwcookie), ::core::mem::transmute(correlationid)).ok() + (::windows::core::Interface::vtable(self).AddResourceEx)(::windows::core::Interface::as_raw(self), punk.into().abi(), ::core::mem::transmute_copy(bstreventloguploadaddress), ::core::mem::transmute(pdwcookie), ::core::mem::transmute(correlationid)).ok() } pub unsafe fn RemoveResourceEx(&self, dwcookieconnection: u32, correlationid: ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RemoveResourceEx)(::windows::core::Interface::as_raw(self), dwcookieconnection, ::core::mem::transmute(correlationid)).ok() @@ -8993,42 +8306,22 @@ unsafe impl ::windows::core::Interface for IWorkspaceRegistration2 { #[doc(hidden)] pub struct IWorkspaceRegistration2_Vtbl { pub base__: IWorkspaceRegistration_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub AddResourceEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punk: *mut ::core::ffi::c_void, bstreventloguploadaddress: ::core::mem::ManuallyDrop, pdwcookie: *mut u32, correlationid: ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddResourceEx: usize, + pub AddResourceEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punk: *mut ::core::ffi::c_void, bstreventloguploadaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwcookie: *mut u32, correlationid: ::windows::core::GUID) -> ::windows::core::HRESULT, pub RemoveResourceEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcookieconnection: u32, correlationid: ::windows::core::GUID) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`*"] #[repr(transparent)] pub struct IWorkspaceReportMessage(::windows::core::IUnknown); impl IWorkspaceReportMessage { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RegisterErrorLogMessage<'a, P0>(&self, bstrmessage: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).RegisterErrorLogMessage)(::windows::core::Interface::as_raw(self), bstrmessage.into().abi()).ok() + pub unsafe fn RegisterErrorLogMessage(&self, bstrmessage: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).RegisterErrorLogMessage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrmessage)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsErrorMessageRegistered<'a, P0, P1>(&self, bstrwkspid: P0, dwerrortype: u32, bstrerrormessagetype: P1, dwerrorcode: u32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsErrorMessageRegistered(&self, bstrwkspid: &::windows::core::BSTR, dwerrortype: u32, bstrerrormessagetype: &::windows::core::BSTR, dwerrorcode: u32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).IsErrorMessageRegistered)(::windows::core::Interface::as_raw(self), bstrwkspid.into().abi(), dwerrortype, bstrerrormessagetype.into().abi(), dwerrorcode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).IsErrorMessageRegistered)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrwkspid), dwerrortype, ::core::mem::transmute_copy(bstrerrormessagetype), dwerrorcode, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RegisterErrorEvent<'a, P0, P1>(&self, bstrwkspid: P0, dwerrortype: u32, bstrerrormessagetype: P1, dwerrorcode: u32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).RegisterErrorEvent)(::windows::core::Interface::as_raw(self), bstrwkspid.into().abi(), dwerrortype, bstrerrormessagetype.into().abi(), dwerrorcode).ok() + pub unsafe fn RegisterErrorEvent(&self, bstrwkspid: &::windows::core::BSTR, dwerrortype: u32, bstrerrormessagetype: &::windows::core::BSTR, dwerrorcode: u32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).RegisterErrorEvent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrwkspid), dwerrortype, ::core::mem::transmute_copy(bstrerrormessagetype), dwerrorcode).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -9070,18 +8363,9 @@ unsafe impl ::windows::core::Interface for IWorkspaceReportMessage { #[doc(hidden)] pub struct IWorkspaceReportMessage_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub RegisterErrorLogMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmessage: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RegisterErrorLogMessage: usize, - #[cfg(feature = "Win32_Foundation")] - pub IsErrorMessageRegistered: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrwkspid: ::core::mem::ManuallyDrop, dwerrortype: u32, bstrerrormessagetype: ::core::mem::ManuallyDrop, dwerrorcode: u32, pferrorexist: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - IsErrorMessageRegistered: usize, - #[cfg(feature = "Win32_Foundation")] - pub RegisterErrorEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrwkspid: ::core::mem::ManuallyDrop, dwerrortype: u32, bstrerrormessagetype: ::core::mem::ManuallyDrop, dwerrorcode: u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RegisterErrorEvent: usize, + pub RegisterErrorLogMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmessage: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub IsErrorMessageRegistered: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrwkspid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwerrortype: u32, bstrerrormessagetype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwerrorcode: u32, pferrorexist: *mut i16) -> ::windows::core::HRESULT, + pub RegisterErrorEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrwkspid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwerrortype: u32, bstrerrormessagetype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwerrorcode: u32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9089,22 +8373,11 @@ pub struct IWorkspaceReportMessage_Vtbl { pub struct IWorkspaceResTypeRegistry(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWorkspaceResTypeRegistry { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddResourceType<'a, P0, P1>(&self, fmachinewide: i16, bstrfileextension: P0, bstrlauncher: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AddResourceType)(::windows::core::Interface::as_raw(self), fmachinewide, bstrfileextension.into().abi(), bstrlauncher.into().abi()).ok() + pub unsafe fn AddResourceType(&self, fmachinewide: i16, bstrfileextension: &::windows::core::BSTR, bstrlauncher: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AddResourceType)(::windows::core::Interface::as_raw(self), fmachinewide, ::core::mem::transmute_copy(bstrfileextension), ::core::mem::transmute_copy(bstrlauncher)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeleteResourceType<'a, P0>(&self, fmachinewide: i16, bstrfileextension: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DeleteResourceType)(::windows::core::Interface::as_raw(self), fmachinewide, bstrfileextension.into().abi()).ok() + pub unsafe fn DeleteResourceType(&self, fmachinewide: i16, bstrfileextension: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DeleteResourceType)(::windows::core::Interface::as_raw(self), fmachinewide, ::core::mem::transmute_copy(bstrfileextension)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9112,23 +8385,12 @@ impl IWorkspaceResTypeRegistry { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetRegisteredFileExtensions)(::windows::core::Interface::as_raw(self), fmachinewide, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut super::Com::SAFEARRAY>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetResourceTypeInfo<'a, P0>(&self, fmachinewide: i16, bstrfileextension: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetResourceTypeInfo(&self, fmachinewide: i16, bstrfileextension: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetResourceTypeInfo)(::windows::core::Interface::as_raw(self), fmachinewide, bstrfileextension.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetResourceTypeInfo)(::windows::core::Interface::as_raw(self), fmachinewide, ::core::mem::transmute_copy(bstrfileextension), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ModifyResourceType<'a, P0, P1>(&self, fmachinewide: i16, bstrfileextension: P0, bstrlauncher: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ModifyResourceType)(::windows::core::Interface::as_raw(self), fmachinewide, bstrfileextension.into().abi(), bstrlauncher.into().abi()).ok() + pub unsafe fn ModifyResourceType(&self, fmachinewide: i16, bstrfileextension: &::windows::core::BSTR, bstrlauncher: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ModifyResourceType)(::windows::core::Interface::as_raw(self), fmachinewide, ::core::mem::transmute_copy(bstrfileextension), ::core::mem::transmute_copy(bstrlauncher)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -9197,26 +8459,14 @@ unsafe impl ::windows::core::Interface for IWorkspaceResTypeRegistry { #[doc(hidden)] pub struct IWorkspaceResTypeRegistry_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub AddResourceType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fmachinewide: i16, bstrfileextension: ::core::mem::ManuallyDrop, bstrlauncher: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddResourceType: usize, - #[cfg(feature = "Win32_Foundation")] - pub DeleteResourceType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fmachinewide: i16, bstrfileextension: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeleteResourceType: usize, + pub AddResourceType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fmachinewide: i16, bstrfileextension: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrlauncher: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DeleteResourceType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fmachinewide: i16, bstrfileextension: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub GetRegisteredFileExtensions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fmachinewide: i16, psafileextensions: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetRegisteredFileExtensions: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetResourceTypeInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fmachinewide: i16, bstrfileextension: ::core::mem::ManuallyDrop, pbstrlauncher: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetResourceTypeInfo: usize, - #[cfg(feature = "Win32_Foundation")] - pub ModifyResourceType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fmachinewide: i16, bstrfileextension: ::core::mem::ManuallyDrop, bstrlauncher: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ModifyResourceType: usize, + pub GetResourceTypeInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fmachinewide: i16, bstrfileextension: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrlauncher: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ModifyResourceType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fmachinewide: i16, bstrfileextension: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrlauncher: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9224,62 +8474,28 @@ pub struct IWorkspaceResTypeRegistry_Vtbl { pub struct IWorkspaceScriptable(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWorkspaceScriptable { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisconnectWorkspace<'a, P0>(&self, bstrworkspaceid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DisconnectWorkspace)(::windows::core::Interface::as_raw(self), bstrworkspaceid.into().abi()).ok() + pub unsafe fn DisconnectWorkspace(&self, bstrworkspaceid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DisconnectWorkspace)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrworkspaceid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StartWorkspace<'a, P0, P1, P2, P3>(&self, bstrworkspaceid: P0, bstrusername: P1, bstrpassword: P2, bstrworkspaceparams: P3, ltimeout: i32, lflags: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).StartWorkspace)(::windows::core::Interface::as_raw(self), bstrworkspaceid.into().abi(), bstrusername.into().abi(), bstrpassword.into().abi(), bstrworkspaceparams.into().abi(), ltimeout, lflags).ok() + pub unsafe fn StartWorkspace(&self, bstrworkspaceid: &::windows::core::BSTR, bstrusername: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR, bstrworkspaceparams: &::windows::core::BSTR, ltimeout: i32, lflags: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).StartWorkspace)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrworkspaceid), ::core::mem::transmute_copy(bstrusername), ::core::mem::transmute_copy(bstrpassword), ::core::mem::transmute_copy(bstrworkspaceparams), ltimeout, lflags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsWorkspaceCredentialSpecified<'a, P0>(&self, bstrworkspaceid: P0, bcountunauthenticatedcredentials: i16) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsWorkspaceCredentialSpecified(&self, bstrworkspaceid: &::windows::core::BSTR, bcountunauthenticatedcredentials: i16) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).IsWorkspaceCredentialSpecified)(::windows::core::Interface::as_raw(self), bstrworkspaceid.into().abi(), bcountunauthenticatedcredentials, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).IsWorkspaceCredentialSpecified)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrworkspaceid), bcountunauthenticatedcredentials, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn IsWorkspaceSSOEnabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).IsWorkspaceSSOEnabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClearWorkspaceCredential<'a, P0>(&self, bstrworkspaceid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ClearWorkspaceCredential)(::windows::core::Interface::as_raw(self), bstrworkspaceid.into().abi()).ok() + pub unsafe fn ClearWorkspaceCredential(&self, bstrworkspaceid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ClearWorkspaceCredential)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrworkspaceid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OnAuthenticated<'a, P0, P1>(&self, bstrworkspaceid: P0, bstrusername: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).OnAuthenticated)(::windows::core::Interface::as_raw(self), bstrworkspaceid.into().abi(), bstrusername.into().abi()).ok() + pub unsafe fn OnAuthenticated(&self, bstrworkspaceid: &::windows::core::BSTR, bstrusername: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).OnAuthenticated)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrworkspaceid), ::core::mem::transmute_copy(bstrusername)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisconnectWorkspaceByFriendlyName<'a, P0>(&self, bstrworkspacefriendlyname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DisconnectWorkspaceByFriendlyName)(::windows::core::Interface::as_raw(self), bstrworkspacefriendlyname.into().abi()).ok() + pub unsafe fn DisconnectWorkspaceByFriendlyName(&self, bstrworkspacefriendlyname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DisconnectWorkspaceByFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrworkspacefriendlyname)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -9348,31 +8564,13 @@ unsafe impl ::windows::core::Interface for IWorkspaceScriptable { #[doc(hidden)] pub struct IWorkspaceScriptable_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub DisconnectWorkspace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DisconnectWorkspace: usize, - #[cfg(feature = "Win32_Foundation")] - pub StartWorkspace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop, bstrusername: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop, bstrworkspaceparams: ::core::mem::ManuallyDrop, ltimeout: i32, lflags: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - StartWorkspace: usize, - #[cfg(feature = "Win32_Foundation")] - pub IsWorkspaceCredentialSpecified: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop, bcountunauthenticatedcredentials: i16, pbcredexist: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - IsWorkspaceCredentialSpecified: usize, + pub DisconnectWorkspace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub StartWorkspace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrworkspaceparams: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ltimeout: i32, lflags: i32) -> ::windows::core::HRESULT, + pub IsWorkspaceCredentialSpecified: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bcountunauthenticatedcredentials: i16, pbcredexist: *mut i16) -> ::windows::core::HRESULT, pub IsWorkspaceSSOEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbssoenabled: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ClearWorkspaceCredential: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ClearWorkspaceCredential: usize, - #[cfg(feature = "Win32_Foundation")] - pub OnAuthenticated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop, bstrusername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OnAuthenticated: usize, - #[cfg(feature = "Win32_Foundation")] - pub DisconnectWorkspaceByFriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrworkspacefriendlyname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DisconnectWorkspaceByFriendlyName: usize, + pub ClearWorkspaceCredential: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub OnAuthenticated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DisconnectWorkspaceByFriendlyName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrworkspacefriendlyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9380,85 +8578,34 @@ pub struct IWorkspaceScriptable_Vtbl { pub struct IWorkspaceScriptable2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWorkspaceScriptable2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisconnectWorkspace<'a, P0>(&self, bstrworkspaceid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.DisconnectWorkspace)(::windows::core::Interface::as_raw(self), bstrworkspaceid.into().abi()).ok() + pub unsafe fn DisconnectWorkspace(&self, bstrworkspaceid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.DisconnectWorkspace)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrworkspaceid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StartWorkspace<'a, P0, P1, P2, P3>(&self, bstrworkspaceid: P0, bstrusername: P1, bstrpassword: P2, bstrworkspaceparams: P3, ltimeout: i32, lflags: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.StartWorkspace)(::windows::core::Interface::as_raw(self), bstrworkspaceid.into().abi(), bstrusername.into().abi(), bstrpassword.into().abi(), bstrworkspaceparams.into().abi(), ltimeout, lflags).ok() + pub unsafe fn StartWorkspace(&self, bstrworkspaceid: &::windows::core::BSTR, bstrusername: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR, bstrworkspaceparams: &::windows::core::BSTR, ltimeout: i32, lflags: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.StartWorkspace)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrworkspaceid), ::core::mem::transmute_copy(bstrusername), ::core::mem::transmute_copy(bstrpassword), ::core::mem::transmute_copy(bstrworkspaceparams), ltimeout, lflags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsWorkspaceCredentialSpecified<'a, P0>(&self, bstrworkspaceid: P0, bcountunauthenticatedcredentials: i16) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsWorkspaceCredentialSpecified(&self, bstrworkspaceid: &::windows::core::BSTR, bcountunauthenticatedcredentials: i16) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.IsWorkspaceCredentialSpecified)(::windows::core::Interface::as_raw(self), bstrworkspaceid.into().abi(), bcountunauthenticatedcredentials, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.IsWorkspaceCredentialSpecified)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrworkspaceid), bcountunauthenticatedcredentials, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn IsWorkspaceSSOEnabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.IsWorkspaceSSOEnabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClearWorkspaceCredential<'a, P0>(&self, bstrworkspaceid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.ClearWorkspaceCredential)(::windows::core::Interface::as_raw(self), bstrworkspaceid.into().abi()).ok() + pub unsafe fn ClearWorkspaceCredential(&self, bstrworkspaceid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.ClearWorkspaceCredential)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrworkspaceid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OnAuthenticated<'a, P0, P1>(&self, bstrworkspaceid: P0, bstrusername: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.OnAuthenticated)(::windows::core::Interface::as_raw(self), bstrworkspaceid.into().abi(), bstrusername.into().abi()).ok() + pub unsafe fn OnAuthenticated(&self, bstrworkspaceid: &::windows::core::BSTR, bstrusername: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.OnAuthenticated)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrworkspaceid), ::core::mem::transmute_copy(bstrusername)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisconnectWorkspaceByFriendlyName<'a, P0>(&self, bstrworkspacefriendlyname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.DisconnectWorkspaceByFriendlyName)(::windows::core::Interface::as_raw(self), bstrworkspacefriendlyname.into().abi()).ok() + pub unsafe fn DisconnectWorkspaceByFriendlyName(&self, bstrworkspacefriendlyname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.DisconnectWorkspaceByFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrworkspacefriendlyname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StartWorkspaceEx<'a, P0, P1, P2, P3, P4, P5, P6>(&self, bstrworkspaceid: P0, bstrworkspacefriendlyname: P1, bstrredirectorname: P2, bstrusername: P3, bstrpassword: P4, bstrappcontainer: P5, bstrworkspaceparams: P6, ltimeout: i32, lflags: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P5: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P6: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).StartWorkspaceEx)(::windows::core::Interface::as_raw(self), bstrworkspaceid.into().abi(), bstrworkspacefriendlyname.into().abi(), bstrredirectorname.into().abi(), bstrusername.into().abi(), bstrpassword.into().abi(), bstrappcontainer.into().abi(), bstrworkspaceparams.into().abi(), ltimeout, lflags).ok() + pub unsafe fn StartWorkspaceEx(&self, bstrworkspaceid: &::windows::core::BSTR, bstrworkspacefriendlyname: &::windows::core::BSTR, bstrredirectorname: &::windows::core::BSTR, bstrusername: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR, bstrappcontainer: &::windows::core::BSTR, bstrworkspaceparams: &::windows::core::BSTR, ltimeout: i32, lflags: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).StartWorkspaceEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrworkspaceid), ::core::mem::transmute_copy(bstrworkspacefriendlyname), ::core::mem::transmute_copy(bstrredirectorname), ::core::mem::transmute_copy(bstrusername), ::core::mem::transmute_copy(bstrpassword), ::core::mem::transmute_copy(bstrappcontainer), ::core::mem::transmute_copy(bstrworkspaceparams), ltimeout, lflags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ResourceDismissed<'a, P0, P1>(&self, bstrworkspaceid: P0, bstrworkspacefriendlyname: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ResourceDismissed)(::windows::core::Interface::as_raw(self), bstrworkspaceid.into().abi(), bstrworkspacefriendlyname.into().abi()).ok() + pub unsafe fn ResourceDismissed(&self, bstrworkspaceid: &::windows::core::BSTR, bstrworkspacefriendlyname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ResourceDismissed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrworkspaceid), ::core::mem::transmute_copy(bstrworkspacefriendlyname)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -9545,14 +8692,8 @@ unsafe impl ::windows::core::Interface for IWorkspaceScriptable2 { #[doc(hidden)] pub struct IWorkspaceScriptable2_Vtbl { pub base__: IWorkspaceScriptable_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub StartWorkspaceEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop, bstrworkspacefriendlyname: ::core::mem::ManuallyDrop, bstrredirectorname: ::core::mem::ManuallyDrop, bstrusername: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop, bstrappcontainer: ::core::mem::ManuallyDrop, bstrworkspaceparams: ::core::mem::ManuallyDrop, ltimeout: i32, lflags: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - StartWorkspaceEx: usize, - #[cfg(feature = "Win32_Foundation")] - pub ResourceDismissed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop, bstrworkspacefriendlyname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ResourceDismissed: usize, + pub StartWorkspaceEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrworkspacefriendlyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrredirectorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrappcontainer: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrworkspaceparams: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ltimeout: i32, lflags: i32) -> ::windows::core::HRESULT, + pub ResourceDismissed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrworkspacefriendlyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9560,100 +8701,51 @@ pub struct IWorkspaceScriptable2_Vtbl { pub struct IWorkspaceScriptable3(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWorkspaceScriptable3 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisconnectWorkspace<'a, P0>(&self, bstrworkspaceid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.DisconnectWorkspace)(::windows::core::Interface::as_raw(self), bstrworkspaceid.into().abi()).ok() + pub unsafe fn DisconnectWorkspace(&self, bstrworkspaceid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.DisconnectWorkspace)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrworkspaceid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StartWorkspace<'a, P0, P1, P2, P3>(&self, bstrworkspaceid: P0, bstrusername: P1, bstrpassword: P2, bstrworkspaceparams: P3, ltimeout: i32, lflags: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.StartWorkspace)(::windows::core::Interface::as_raw(self), bstrworkspaceid.into().abi(), bstrusername.into().abi(), bstrpassword.into().abi(), bstrworkspaceparams.into().abi(), ltimeout, lflags).ok() + pub unsafe fn StartWorkspace(&self, bstrworkspaceid: &::windows::core::BSTR, bstrusername: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR, bstrworkspaceparams: &::windows::core::BSTR, ltimeout: i32, lflags: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.StartWorkspace)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrworkspaceid), ::core::mem::transmute_copy(bstrusername), ::core::mem::transmute_copy(bstrpassword), ::core::mem::transmute_copy(bstrworkspaceparams), ltimeout, lflags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsWorkspaceCredentialSpecified<'a, P0>(&self, bstrworkspaceid: P0, bcountunauthenticatedcredentials: i16) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsWorkspaceCredentialSpecified(&self, bstrworkspaceid: &::windows::core::BSTR, bcountunauthenticatedcredentials: i16) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.IsWorkspaceCredentialSpecified)(::windows::core::Interface::as_raw(self), bstrworkspaceid.into().abi(), bcountunauthenticatedcredentials, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.IsWorkspaceCredentialSpecified)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrworkspaceid), bcountunauthenticatedcredentials, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn IsWorkspaceSSOEnabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.IsWorkspaceSSOEnabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClearWorkspaceCredential<'a, P0>(&self, bstrworkspaceid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.ClearWorkspaceCredential)(::windows::core::Interface::as_raw(self), bstrworkspaceid.into().abi()).ok() + pub unsafe fn ClearWorkspaceCredential(&self, bstrworkspaceid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.ClearWorkspaceCredential)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrworkspaceid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OnAuthenticated<'a, P0, P1>(&self, bstrworkspaceid: P0, bstrusername: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.OnAuthenticated)(::windows::core::Interface::as_raw(self), bstrworkspaceid.into().abi(), bstrusername.into().abi()).ok() + pub unsafe fn OnAuthenticated(&self, bstrworkspaceid: &::windows::core::BSTR, bstrusername: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.OnAuthenticated)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrworkspaceid), ::core::mem::transmute_copy(bstrusername)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisconnectWorkspaceByFriendlyName<'a, P0>(&self, bstrworkspacefriendlyname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.DisconnectWorkspaceByFriendlyName)(::windows::core::Interface::as_raw(self), bstrworkspacefriendlyname.into().abi()).ok() + pub unsafe fn DisconnectWorkspaceByFriendlyName(&self, bstrworkspacefriendlyname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.DisconnectWorkspaceByFriendlyName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrworkspacefriendlyname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StartWorkspaceEx<'a, P0, P1, P2, P3, P4, P5, P6>(&self, bstrworkspaceid: P0, bstrworkspacefriendlyname: P1, bstrredirectorname: P2, bstrusername: P3, bstrpassword: P4, bstrappcontainer: P5, bstrworkspaceparams: P6, ltimeout: i32, lflags: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P5: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P6: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.StartWorkspaceEx)(::windows::core::Interface::as_raw(self), bstrworkspaceid.into().abi(), bstrworkspacefriendlyname.into().abi(), bstrredirectorname.into().abi(), bstrusername.into().abi(), bstrpassword.into().abi(), bstrappcontainer.into().abi(), bstrworkspaceparams.into().abi(), ltimeout, lflags).ok() + pub unsafe fn StartWorkspaceEx(&self, bstrworkspaceid: &::windows::core::BSTR, bstrworkspacefriendlyname: &::windows::core::BSTR, bstrredirectorname: &::windows::core::BSTR, bstrusername: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR, bstrappcontainer: &::windows::core::BSTR, bstrworkspaceparams: &::windows::core::BSTR, ltimeout: i32, lflags: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.StartWorkspaceEx)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrworkspaceid), ::core::mem::transmute_copy(bstrworkspacefriendlyname), ::core::mem::transmute_copy(bstrredirectorname), ::core::mem::transmute_copy(bstrusername), ::core::mem::transmute_copy(bstrpassword), ::core::mem::transmute_copy(bstrappcontainer), ::core::mem::transmute_copy(bstrworkspaceparams), ltimeout, lflags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ResourceDismissed<'a, P0, P1>(&self, bstrworkspaceid: P0, bstrworkspacefriendlyname: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.ResourceDismissed)(::windows::core::Interface::as_raw(self), bstrworkspaceid.into().abi(), bstrworkspacefriendlyname.into().abi()).ok() + pub unsafe fn ResourceDismissed(&self, bstrworkspaceid: &::windows::core::BSTR, bstrworkspacefriendlyname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.ResourceDismissed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrworkspaceid), ::core::mem::transmute_copy(bstrworkspacefriendlyname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StartWorkspaceEx2<'a, P0, P1, P2, P3, P4, P5, P6, P7>(&self, bstrworkspaceid: P0, bstrworkspacefriendlyname: P1, bstrredirectorname: P2, bstrusername: P3, bstrpassword: P4, bstrappcontainer: P5, bstrworkspaceparams: P6, ltimeout: i32, lflags: i32, bstreventloguploadaddress: P7, correlationid: ::windows::core::GUID) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P5: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P6: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P7: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).StartWorkspaceEx2)(::windows::core::Interface::as_raw(self), bstrworkspaceid.into().abi(), bstrworkspacefriendlyname.into().abi(), bstrredirectorname.into().abi(), bstrusername.into().abi(), bstrpassword.into().abi(), bstrappcontainer.into().abi(), bstrworkspaceparams.into().abi(), ltimeout, lflags, bstreventloguploadaddress.into().abi(), ::core::mem::transmute(correlationid)).ok() + pub unsafe fn StartWorkspaceEx2(&self, bstrworkspaceid: &::windows::core::BSTR, bstrworkspacefriendlyname: &::windows::core::BSTR, bstrredirectorname: &::windows::core::BSTR, bstrusername: &::windows::core::BSTR, bstrpassword: &::windows::core::BSTR, bstrappcontainer: &::windows::core::BSTR, bstrworkspaceparams: &::windows::core::BSTR, ltimeout: i32, lflags: i32, bstreventloguploadaddress: &::windows::core::BSTR, correlationid: ::windows::core::GUID) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).StartWorkspaceEx2)( + ::windows::core::Interface::as_raw(self), + ::core::mem::transmute_copy(bstrworkspaceid), + ::core::mem::transmute_copy(bstrworkspacefriendlyname), + ::core::mem::transmute_copy(bstrredirectorname), + ::core::mem::transmute_copy(bstrusername), + ::core::mem::transmute_copy(bstrpassword), + ::core::mem::transmute_copy(bstrappcontainer), + ::core::mem::transmute_copy(bstrworkspaceparams), + ltimeout, + lflags, + ::core::mem::transmute_copy(bstreventloguploadaddress), + ::core::mem::transmute(correlationid), + ) + .ok() } } #[cfg(feature = "Win32_System_Com")] @@ -9758,11 +8850,7 @@ unsafe impl ::windows::core::Interface for IWorkspaceScriptable3 { #[doc(hidden)] pub struct IWorkspaceScriptable3_Vtbl { pub base__: IWorkspaceScriptable2_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub StartWorkspaceEx2: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop, bstrworkspacefriendlyname: ::core::mem::ManuallyDrop, bstrredirectorname: ::core::mem::ManuallyDrop, bstrusername: ::core::mem::ManuallyDrop, bstrpassword: ::core::mem::ManuallyDrop, bstrappcontainer: ::core::mem::ManuallyDrop, bstrworkspaceparams: ::core::mem::ManuallyDrop, ltimeout: i32, lflags: i32, bstreventloguploadaddress: ::core::mem::ManuallyDrop, correlationid: ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - StartWorkspaceEx2: usize, + pub StartWorkspaceEx2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrworkspaceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrworkspacefriendlyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrredirectorname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrusername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrappcontainer: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrworkspaceparams: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ltimeout: i32, lflags: i32, bstreventloguploadaddress: ::core::mem::ManuallyDrop<::windows::core::BSTR>, correlationid: ::windows::core::GUID) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`*"] #[repr(transparent)] @@ -9785,17 +8873,13 @@ impl ItsPubPlugin { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetCacheLastUpdateTime)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn pluginName(&self) -> ::windows::core::Result { + pub unsafe fn pluginName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).pluginName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).pluginName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn pluginVersion(&self) -> ::windows::core::Result { + pub unsafe fn pluginVersion(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).pluginVersion)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).pluginVersion)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn ResolveResource<'a, P0, P1>(&self, resourcetype: &mut u32, resourcelocation: ::windows::core::PWSTR, endpointname: ::windows::core::PWSTR, userid: P0, alias: P1) -> ::windows::core::Result<()> where @@ -9847,14 +8931,8 @@ pub struct ItsPubPlugin_Vtbl { pub GetResourceList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, userid: ::windows::core::PCWSTR, pceapplistsize: *mut i32, resourcelist: *mut *mut pluginResource) -> ::windows::core::HRESULT, pub GetResource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, alias: ::windows::core::PCWSTR, flags: i32, resource: *mut pluginResource) -> ::windows::core::HRESULT, pub GetCacheLastUpdateTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lastupdatetime: *mut u64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub pluginName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - pluginName: usize, - #[cfg(feature = "Win32_Foundation")] - pub pluginVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - pluginVersion: usize, + pub pluginName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub pluginVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ResolveResource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, resourcetype: *mut u32, resourcelocation: ::windows::core::PWSTR, endpointname: ::windows::core::PWSTR, userid: ::windows::core::PCWSTR, alias: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`*"] @@ -9878,17 +8956,13 @@ impl ItsPubPlugin2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetCacheLastUpdateTime)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn pluginName(&self) -> ::windows::core::Result { + pub unsafe fn pluginName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.pluginName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.pluginName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn pluginVersion(&self) -> ::windows::core::Result { + pub unsafe fn pluginVersion(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.pluginVersion)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.pluginVersion)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn ResolveResource<'a, P0, P1>(&self, resourcetype: &mut u32, resourcelocation: ::windows::core::PWSTR, endpointname: ::windows::core::PWSTR, userid: P0, alias: P1) -> ::windows::core::Result<()> where @@ -12289,22 +11363,20 @@ impl ::core::fmt::Debug for WTS_VIRTUAL_CLASS { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_System_RemoteDesktop\"`*"] pub struct AAAccountingData { - pub userName: super::super::Foundation::BSTR, - pub clientName: super::super::Foundation::BSTR, + pub userName: ::windows::core::BSTR, + pub clientName: ::windows::core::BSTR, pub authType: AAAuthSchemes, - pub resourceName: super::super::Foundation::BSTR, + pub resourceName: ::windows::core::BSTR, pub portNumber: i32, - pub protocolName: super::super::Foundation::BSTR, + pub protocolName: ::windows::core::BSTR, pub numberOfBytesReceived: i32, pub numberOfBytesTransfered: i32, - pub reasonForDisconnect: super::super::Foundation::BSTR, + pub reasonForDisconnect: ::windows::core::BSTR, pub mainSessionId: ::windows::core::GUID, pub subSessionId: i32, } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for AAAccountingData { fn clone(&self) -> Self { Self { @@ -12322,7 +11394,6 @@ impl ::core::clone::Clone for AAAccountingData { } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for AAAccountingData { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("AAAccountingData") @@ -12340,19 +11411,15 @@ impl ::core::fmt::Debug for AAAccountingData { .finish() } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for AAAccountingData { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for AAAccountingData { fn eq(&self, other: &Self) -> bool { self.userName == other.userName && self.clientName == other.clientName && self.authType == other.authType && self.resourceName == other.resourceName && self.portNumber == other.portNumber && self.protocolName == other.protocolName && self.numberOfBytesReceived == other.numberOfBytesReceived && self.numberOfBytesTransfered == other.numberOfBytesTransfered && self.reasonForDisconnect == other.reasonForDisconnect && self.mainSessionId == other.mainSessionId && self.subSessionId == other.subSessionId } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for AAAccountingData {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for AAAccountingData { fn default() -> Self { unsafe { ::core::mem::zeroed() } diff --git a/crates/libs/windows/src/Windows/Win32/System/RemoteManagement/impl.rs b/crates/libs/windows/src/Windows/Win32/System/RemoteManagement/impl.rs index 99ee061f64..0dcb401b7e 100644 --- a/crates/libs/windows/src/Windows/Win32/System/RemoteManagement/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/RemoteManagement/impl.rs @@ -1,16 +1,16 @@ #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWSMan_Impl: Sized + super::Com::IDispatch_Impl { - fn CreateSession(&self, connection: &super::super::Foundation::BSTR, flags: i32, connectionoptions: &::core::option::Option) -> ::windows::core::Result; + fn CreateSession(&self, connection: &::windows::core::BSTR, flags: i32, connectionoptions: &::core::option::Option) -> ::windows::core::Result; fn CreateConnectionOptions(&self) -> ::windows::core::Result; - fn CommandLine(&self) -> ::windows::core::Result; - fn Error(&self) -> ::windows::core::Result; + fn CommandLine(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Error(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWSMan {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWSMan_Vtbl { pub const fn new, Impl: IWSMan_Impl, const OFFSET: isize>() -> IWSMan_Vtbl { - unsafe extern "system" fn CreateSession, Impl: IWSMan_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, connection: ::core::mem::ManuallyDrop, flags: i32, connectionoptions: *mut ::core::ffi::c_void, session: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateSession, Impl: IWSMan_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, connection: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: i32, connectionoptions: *mut ::core::ffi::c_void, session: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateSession(::core::mem::transmute(&connection), ::core::mem::transmute_copy(&flags), ::core::mem::transmute(&connectionoptions)) { @@ -32,7 +32,7 @@ impl IWSMan_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CommandLine, Impl: IWSMan_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CommandLine, Impl: IWSMan_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CommandLine() { @@ -43,7 +43,7 @@ impl IWSMan_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Error, Impl: IWSMan_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Error, Impl: IWSMan_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Error() { @@ -68,16 +68,16 @@ impl IWSMan_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWSManConnectionOptions_Impl: Sized + super::Com::IDispatch_Impl { - fn UserName(&self) -> ::windows::core::Result; - fn SetUserName(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetPassword(&self, password: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn UserName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetUserName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetPassword(&self, password: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWSManConnectionOptions {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWSManConnectionOptions_Vtbl { pub const fn new, Impl: IWSManConnectionOptions_Impl, const OFFSET: isize>() -> IWSManConnectionOptions_Vtbl { - unsafe extern "system" fn UserName, Impl: IWSManConnectionOptions_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UserName, Impl: IWSManConnectionOptions_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UserName() { @@ -88,12 +88,12 @@ impl IWSManConnectionOptions_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetUserName, Impl: IWSManConnectionOptions_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetUserName, Impl: IWSManConnectionOptions_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetUserName(::core::mem::transmute(&name)).into() } - unsafe extern "system" fn SetPassword, Impl: IWSManConnectionOptions_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, password: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPassword, Impl: IWSManConnectionOptions_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, password: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPassword(::core::mem::transmute(&password)).into() @@ -111,15 +111,15 @@ impl IWSManConnectionOptions_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWSManConnectionOptionsEx_Impl: Sized + super::Com::IDispatch_Impl + IWSManConnectionOptions_Impl { - fn CertificateThumbprint(&self) -> ::windows::core::Result; - fn SetCertificateThumbprint(&self, thumbprint: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn CertificateThumbprint(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetCertificateThumbprint(&self, thumbprint: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWSManConnectionOptionsEx {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWSManConnectionOptionsEx_Vtbl { pub const fn new, Impl: IWSManConnectionOptionsEx_Impl, const OFFSET: isize>() -> IWSManConnectionOptionsEx_Vtbl { - unsafe extern "system" fn CertificateThumbprint, Impl: IWSManConnectionOptionsEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, thumbprint: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CertificateThumbprint, Impl: IWSManConnectionOptionsEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, thumbprint: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CertificateThumbprint() { @@ -130,7 +130,7 @@ impl IWSManConnectionOptionsEx_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetCertificateThumbprint, Impl: IWSManConnectionOptionsEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, thumbprint: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCertificateThumbprint, Impl: IWSManConnectionOptionsEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, thumbprint: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCertificateThumbprint(::core::mem::transmute(&thumbprint)).into() @@ -147,7 +147,7 @@ impl IWSManConnectionOptionsEx_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWSManConnectionOptionsEx2_Impl: Sized + super::Com::IDispatch_Impl + IWSManConnectionOptions_Impl + IWSManConnectionOptionsEx_Impl { - fn SetProxy(&self, accesstype: i32, authenticationmechanism: i32, username: &super::super::Foundation::BSTR, password: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetProxy(&self, accesstype: i32, authenticationmechanism: i32, username: &::windows::core::BSTR, password: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn ProxyIEConfig(&self) -> ::windows::core::Result; fn ProxyWinHttpConfig(&self) -> ::windows::core::Result; fn ProxyAutoDetect(&self) -> ::windows::core::Result; @@ -161,7 +161,7 @@ impl ::windows::core::RuntimeName for IWSManConnectionOptionsEx2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWSManConnectionOptionsEx2_Vtbl { pub const fn new, Impl: IWSManConnectionOptionsEx2_Impl, const OFFSET: isize>() -> IWSManConnectionOptionsEx2_Vtbl { - unsafe extern "system" fn SetProxy, Impl: IWSManConnectionOptionsEx2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, accesstype: i32, authenticationmechanism: i32, username: ::core::mem::ManuallyDrop, password: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetProxy, Impl: IWSManConnectionOptionsEx2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, accesstype: i32, authenticationmechanism: i32, username: ::core::mem::ManuallyDrop<::windows::core::BSTR>, password: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetProxy(::core::mem::transmute_copy(&accesstype), ::core::mem::transmute_copy(&authenticationmechanism), ::core::mem::transmute(&username), ::core::mem::transmute(&password)).into() @@ -261,16 +261,16 @@ impl IWSManConnectionOptionsEx2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWSManEnumerator_Impl: Sized + super::Com::IDispatch_Impl { - fn ReadItem(&self) -> ::windows::core::Result; + fn ReadItem(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn AtEndOfStream(&self) -> ::windows::core::Result; - fn Error(&self) -> ::windows::core::Result; + fn Error(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWSManEnumerator {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWSManEnumerator_Vtbl { pub const fn new, Impl: IWSManEnumerator_Impl, const OFFSET: isize>() -> IWSManEnumerator_Vtbl { - unsafe extern "system" fn ReadItem, Impl: IWSManEnumerator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, resource: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ReadItem, Impl: IWSManEnumerator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, resource: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ReadItem() { @@ -292,7 +292,7 @@ impl IWSManEnumerator_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Error, Impl: IWSManEnumerator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Error, Impl: IWSManEnumerator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Error() { @@ -316,7 +316,7 @@ impl IWSManEnumerator_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWSManEx_Impl: Sized + super::Com::IDispatch_Impl + IWSMan_Impl { - fn CreateResourceLocator(&self, strresourcelocator: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn CreateResourceLocator(&self, strresourcelocator: &::windows::core::BSTR) -> ::windows::core::Result; fn SessionFlagUTF8(&self) -> ::windows::core::Result; fn SessionFlagCredUsernamePassword(&self) -> ::windows::core::Result; fn SessionFlagSkipCACheck(&self) -> ::windows::core::Result; @@ -331,7 +331,7 @@ pub trait IWSManEx_Impl: Sized + super::Com::IDispatch_Impl + IWSMan_Impl { fn EnumerationFlagNonXmlText(&self) -> ::windows::core::Result; fn EnumerationFlagReturnEPR(&self) -> ::windows::core::Result; fn EnumerationFlagReturnObjectAndEPR(&self) -> ::windows::core::Result; - fn GetErrorMessage(&self, errornumber: u32) -> ::windows::core::Result; + fn GetErrorMessage(&self, errornumber: u32) -> ::windows::core::Result<::windows::core::BSTR>; fn EnumerationFlagHierarchyDeep(&self) -> ::windows::core::Result; fn EnumerationFlagHierarchyShallow(&self) -> ::windows::core::Result; fn EnumerationFlagHierarchyDeepBasePropsOnly(&self) -> ::windows::core::Result; @@ -342,7 +342,7 @@ impl ::windows::core::RuntimeName for IWSManEx {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWSManEx_Vtbl { pub const fn new, Impl: IWSManEx_Impl, const OFFSET: isize>() -> IWSManEx_Vtbl { - unsafe extern "system" fn CreateResourceLocator, Impl: IWSManEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strresourcelocator: ::core::mem::ManuallyDrop, newresourcelocator: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateResourceLocator, Impl: IWSManEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strresourcelocator: ::core::mem::ManuallyDrop<::windows::core::BSTR>, newresourcelocator: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateResourceLocator(::core::mem::transmute(&strresourcelocator)) { @@ -507,7 +507,7 @@ impl IWSManEx_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetErrorMessage, Impl: IWSManEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, errornumber: u32, errormessage: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetErrorMessage, Impl: IWSManEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, errornumber: u32, errormessage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetErrorMessage(::core::mem::transmute_copy(&errornumber)) { @@ -728,14 +728,14 @@ impl IWSManEx3_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWSManInternal_Impl: Sized + super::Com::IDispatch_Impl { - fn ConfigSDDL(&self, session: &::core::option::Option, resourceuri: &super::Com::VARIANT, flags: i32) -> ::windows::core::Result; + fn ConfigSDDL(&self, session: &::core::option::Option, resourceuri: &super::Com::VARIANT, flags: i32) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWSManInternal {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWSManInternal_Vtbl { pub const fn new, Impl: IWSManInternal_Impl, const OFFSET: isize>() -> IWSManInternal_Vtbl { - unsafe extern "system" fn ConfigSDDL, Impl: IWSManInternal_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, session: *mut ::core::ffi::c_void, resourceuri: ::core::mem::ManuallyDrop, flags: i32, resource: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ConfigSDDL, Impl: IWSManInternal_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, session: *mut ::core::ffi::c_void, resourceuri: ::core::mem::ManuallyDrop, flags: i32, resource: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ConfigSDDL(::core::mem::transmute(&session), ::core::mem::transmute(&resourceuri), ::core::mem::transmute_copy(&flags)) { @@ -754,31 +754,31 @@ impl IWSManInternal_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWSManResourceLocator_Impl: Sized + super::Com::IDispatch_Impl { - fn SetResourceURI(&self, uri: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ResourceURI(&self) -> ::windows::core::Result; - fn AddSelector(&self, resourceselname: &super::super::Foundation::BSTR, selvalue: &super::Com::VARIANT) -> ::windows::core::Result<()>; + fn SetResourceURI(&self, uri: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ResourceURI(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn AddSelector(&self, resourceselname: &::windows::core::BSTR, selvalue: &super::Com::VARIANT) -> ::windows::core::Result<()>; fn ClearSelectors(&self) -> ::windows::core::Result<()>; - fn FragmentPath(&self) -> ::windows::core::Result; - fn SetFragmentPath(&self, text: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn FragmentDialect(&self) -> ::windows::core::Result; - fn SetFragmentDialect(&self, text: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn AddOption(&self, optionname: &super::super::Foundation::BSTR, optionvalue: &super::Com::VARIANT, mustcomply: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; + fn FragmentPath(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetFragmentPath(&self, text: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn FragmentDialect(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetFragmentDialect(&self, text: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn AddOption(&self, optionname: &::windows::core::BSTR, optionvalue: &super::Com::VARIANT, mustcomply: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn SetMustUnderstandOptions(&self, mustunderstand: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn MustUnderstandOptions(&self) -> ::windows::core::Result; fn ClearOptions(&self) -> ::windows::core::Result<()>; - fn Error(&self) -> ::windows::core::Result; + fn Error(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWSManResourceLocator {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWSManResourceLocator_Vtbl { pub const fn new, Impl: IWSManResourceLocator_Impl, const OFFSET: isize>() -> IWSManResourceLocator_Vtbl { - unsafe extern "system" fn SetResourceURI, Impl: IWSManResourceLocator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uri: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetResourceURI, Impl: IWSManResourceLocator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uri: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetResourceURI(::core::mem::transmute(&uri)).into() } - unsafe extern "system" fn ResourceURI, Impl: IWSManResourceLocator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ResourceURI, Impl: IWSManResourceLocator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ResourceURI() { @@ -789,7 +789,7 @@ impl IWSManResourceLocator_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AddSelector, Impl: IWSManResourceLocator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, resourceselname: ::core::mem::ManuallyDrop, selvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddSelector, Impl: IWSManResourceLocator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, resourceselname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, selvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddSelector(::core::mem::transmute(&resourceselname), ::core::mem::transmute(&selvalue)).into() @@ -799,7 +799,7 @@ impl IWSManResourceLocator_Vtbl { let this = (*this).get_impl(); this.ClearSelectors().into() } - unsafe extern "system" fn FragmentPath, Impl: IWSManResourceLocator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, text: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FragmentPath, Impl: IWSManResourceLocator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, text: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FragmentPath() { @@ -810,12 +810,12 @@ impl IWSManResourceLocator_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetFragmentPath, Impl: IWSManResourceLocator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetFragmentPath, Impl: IWSManResourceLocator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetFragmentPath(::core::mem::transmute(&text)).into() } - unsafe extern "system" fn FragmentDialect, Impl: IWSManResourceLocator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, text: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FragmentDialect, Impl: IWSManResourceLocator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, text: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FragmentDialect() { @@ -826,12 +826,12 @@ impl IWSManResourceLocator_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetFragmentDialect, Impl: IWSManResourceLocator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetFragmentDialect, Impl: IWSManResourceLocator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetFragmentDialect(::core::mem::transmute(&text)).into() } - unsafe extern "system" fn AddOption, Impl: IWSManResourceLocator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, optionname: ::core::mem::ManuallyDrop, optionvalue: ::core::mem::ManuallyDrop, mustcomply: super::super::Foundation::BOOL) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddOption, Impl: IWSManResourceLocator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, optionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, optionvalue: ::core::mem::ManuallyDrop, mustcomply: super::super::Foundation::BOOL) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddOption(::core::mem::transmute(&optionname), ::core::mem::transmute(&optionvalue), ::core::mem::transmute_copy(&mustcomply)).into() @@ -857,7 +857,7 @@ impl IWSManResourceLocator_Vtbl { let this = (*this).get_impl(); this.ClearOptions().into() } - unsafe extern "system" fn Error, Impl: IWSManResourceLocator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Error, Impl: IWSManResourceLocator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Error() { @@ -901,14 +901,14 @@ impl IWSManResourceLocatorInternal_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWSManSession_Impl: Sized + super::Com::IDispatch_Impl { - fn Get(&self, resourceuri: &super::Com::VARIANT, flags: i32) -> ::windows::core::Result; - fn Put(&self, resourceuri: &super::Com::VARIANT, resource: &super::super::Foundation::BSTR, flags: i32) -> ::windows::core::Result; - fn Create(&self, resourceuri: &super::Com::VARIANT, resource: &super::super::Foundation::BSTR, flags: i32) -> ::windows::core::Result; + fn Get(&self, resourceuri: &super::Com::VARIANT, flags: i32) -> ::windows::core::Result<::windows::core::BSTR>; + fn Put(&self, resourceuri: &super::Com::VARIANT, resource: &::windows::core::BSTR, flags: i32) -> ::windows::core::Result<::windows::core::BSTR>; + fn Create(&self, resourceuri: &super::Com::VARIANT, resource: &::windows::core::BSTR, flags: i32) -> ::windows::core::Result<::windows::core::BSTR>; fn Delete(&self, resourceuri: &super::Com::VARIANT, flags: i32) -> ::windows::core::Result<()>; - fn Invoke2(&self, actionuri: &super::super::Foundation::BSTR, resourceuri: &super::Com::VARIANT, parameters: &super::super::Foundation::BSTR, flags: i32) -> ::windows::core::Result; - fn Enumerate(&self, resourceuri: &super::Com::VARIANT, filter: &super::super::Foundation::BSTR, dialect: &super::super::Foundation::BSTR, flags: i32) -> ::windows::core::Result; - fn Identify(&self, flags: i32) -> ::windows::core::Result; - fn Error(&self) -> ::windows::core::Result; + fn Invoke2(&self, actionuri: &::windows::core::BSTR, resourceuri: &super::Com::VARIANT, parameters: &::windows::core::BSTR, flags: i32) -> ::windows::core::Result<::windows::core::BSTR>; + fn Enumerate(&self, resourceuri: &super::Com::VARIANT, filter: &::windows::core::BSTR, dialect: &::windows::core::BSTR, flags: i32) -> ::windows::core::Result; + fn Identify(&self, flags: i32) -> ::windows::core::Result<::windows::core::BSTR>; + fn Error(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn BatchItems(&self) -> ::windows::core::Result; fn SetBatchItems(&self, value: i32) -> ::windows::core::Result<()>; fn Timeout(&self) -> ::windows::core::Result; @@ -919,7 +919,7 @@ impl ::windows::core::RuntimeName for IWSManSession {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWSManSession_Vtbl { pub const fn new, Impl: IWSManSession_Impl, const OFFSET: isize>() -> IWSManSession_Vtbl { - unsafe extern "system" fn Get, Impl: IWSManSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, resourceuri: ::core::mem::ManuallyDrop, flags: i32, resource: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Get, Impl: IWSManSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, resourceuri: ::core::mem::ManuallyDrop, flags: i32, resource: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Get(::core::mem::transmute(&resourceuri), ::core::mem::transmute_copy(&flags)) { @@ -930,7 +930,7 @@ impl IWSManSession_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Put, Impl: IWSManSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, resourceuri: ::core::mem::ManuallyDrop, resource: ::core::mem::ManuallyDrop, flags: i32, resultresource: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Put, Impl: IWSManSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, resourceuri: ::core::mem::ManuallyDrop, resource: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: i32, resultresource: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Put(::core::mem::transmute(&resourceuri), ::core::mem::transmute(&resource), ::core::mem::transmute_copy(&flags)) { @@ -941,7 +941,7 @@ impl IWSManSession_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Create, Impl: IWSManSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, resourceuri: ::core::mem::ManuallyDrop, resource: ::core::mem::ManuallyDrop, flags: i32, newuri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Create, Impl: IWSManSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, resourceuri: ::core::mem::ManuallyDrop, resource: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: i32, newuri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Create(::core::mem::transmute(&resourceuri), ::core::mem::transmute(&resource), ::core::mem::transmute_copy(&flags)) { @@ -957,7 +957,7 @@ impl IWSManSession_Vtbl { let this = (*this).get_impl(); this.Delete(::core::mem::transmute(&resourceuri), ::core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn Invoke2, Impl: IWSManSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, actionuri: ::core::mem::ManuallyDrop, resourceuri: ::core::mem::ManuallyDrop, parameters: ::core::mem::ManuallyDrop, flags: i32, result: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Invoke2, Impl: IWSManSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, actionuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, resourceuri: ::core::mem::ManuallyDrop, parameters: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: i32, result: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Invoke2(::core::mem::transmute(&actionuri), ::core::mem::transmute(&resourceuri), ::core::mem::transmute(¶meters), ::core::mem::transmute_copy(&flags)) { @@ -968,7 +968,7 @@ impl IWSManSession_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Enumerate, Impl: IWSManSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, resourceuri: ::core::mem::ManuallyDrop, filter: ::core::mem::ManuallyDrop, dialect: ::core::mem::ManuallyDrop, flags: i32, resultset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Enumerate, Impl: IWSManSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, resourceuri: ::core::mem::ManuallyDrop, filter: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dialect: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: i32, resultset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Enumerate(::core::mem::transmute(&resourceuri), ::core::mem::transmute(&filter), ::core::mem::transmute(&dialect), ::core::mem::transmute_copy(&flags)) { @@ -979,7 +979,7 @@ impl IWSManSession_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Identify, Impl: IWSManSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flags: i32, result: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Identify, Impl: IWSManSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flags: i32, result: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Identify(::core::mem::transmute_copy(&flags)) { @@ -990,7 +990,7 @@ impl IWSManSession_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Error, Impl: IWSManSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Error, Impl: IWSManSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Error() { diff --git a/crates/libs/windows/src/Windows/Win32/System/RemoteManagement/mod.rs b/crates/libs/windows/src/Windows/Win32/System/RemoteManagement/mod.rs index 6e5eff594d..a1bd64d124 100644 --- a/crates/libs/windows/src/Windows/Win32/System/RemoteManagement/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/RemoteManagement/mod.rs @@ -368,15 +368,14 @@ where pub struct IWSMan(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWSMan { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateSession<'a, P0, P1>(&self, connection: P0, flags: i32, connectionoptions: P1) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateSession<'a, P0>(&self, connection: &::windows::core::BSTR, flags: i32, connectionoptions: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateSession)(::windows::core::Interface::as_raw(self), connection.into().abi(), flags, connectionoptions.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateSession)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(connection), flags, connectionoptions.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -384,17 +383,13 @@ impl IWSMan { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CreateConnectionOptions)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CommandLine(&self) -> ::windows::core::Result { + pub unsafe fn CommandLine(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CommandLine)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CommandLine)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Error(&self) -> ::windows::core::Result { + pub unsafe fn Error(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Error)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Error)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -463,22 +458,16 @@ unsafe impl ::windows::core::Interface for IWSMan { #[doc(hidden)] pub struct IWSMan_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreateSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, connection: ::core::mem::ManuallyDrop, flags: i32, connectionoptions: *mut ::core::ffi::c_void, session: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreateSession: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, connection: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: i32, connectionoptions: *mut ::core::ffi::c_void, session: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreateSession: usize, #[cfg(feature = "Win32_System_Com")] pub CreateConnectionOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, connectionoptions: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] CreateConnectionOptions: usize, - #[cfg(feature = "Win32_Foundation")] - pub CommandLine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CommandLine: usize, - #[cfg(feature = "Win32_Foundation")] - pub Error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Error: usize, + pub CommandLine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RemoteManagement\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -486,27 +475,15 @@ pub struct IWSMan_Vtbl { pub struct IWSManConnectionOptions(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWSManConnectionOptions { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserName(&self) -> ::windows::core::Result { + pub unsafe fn UserName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetUserName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetUserName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetUserName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetUserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPassword<'a, P0>(&self, password: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPassword)(::windows::core::Interface::as_raw(self), password.into().abi()).ok() + pub unsafe fn SetPassword(&self, password: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPassword)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(password)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -575,18 +552,9 @@ unsafe impl ::windows::core::Interface for IWSManConnectionOptions { #[doc(hidden)] pub struct IWSManConnectionOptions_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub UserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UserName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetUserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetUserName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, password: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPassword: usize, + pub UserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetUserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetPassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, password: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RemoteManagement\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -594,41 +562,22 @@ pub struct IWSManConnectionOptions_Vtbl { pub struct IWSManConnectionOptionsEx(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWSManConnectionOptionsEx { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserName(&self) -> ::windows::core::Result { + pub unsafe fn UserName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.UserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.UserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetUserName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetUserName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetUserName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetUserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPassword<'a, P0>(&self, password: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetPassword)(::windows::core::Interface::as_raw(self), password.into().abi()).ok() + pub unsafe fn SetPassword(&self, password: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetPassword)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(password)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CertificateThumbprint(&self) -> ::windows::core::Result { + pub unsafe fn CertificateThumbprint(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CertificateThumbprint)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CertificateThumbprint)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCertificateThumbprint<'a, P0>(&self, thumbprint: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetCertificateThumbprint)(::windows::core::Interface::as_raw(self), thumbprint.into().abi()).ok() + pub unsafe fn SetCertificateThumbprint(&self, thumbprint: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetCertificateThumbprint)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(thumbprint)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -715,14 +664,8 @@ unsafe impl ::windows::core::Interface for IWSManConnectionOptionsEx { #[doc(hidden)] pub struct IWSManConnectionOptionsEx_Vtbl { pub base__: IWSManConnectionOptions_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub CertificateThumbprint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, thumbprint: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CertificateThumbprint: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetCertificateThumbprint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, thumbprint: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetCertificateThumbprint: usize, + pub CertificateThumbprint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, thumbprint: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetCertificateThumbprint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, thumbprint: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RemoteManagement\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -730,50 +673,25 @@ pub struct IWSManConnectionOptionsEx_Vtbl { pub struct IWSManConnectionOptionsEx2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWSManConnectionOptionsEx2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserName(&self) -> ::windows::core::Result { + pub unsafe fn UserName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.UserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.UserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetUserName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetUserName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetUserName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetUserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPassword<'a, P0>(&self, password: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetPassword)(::windows::core::Interface::as_raw(self), password.into().abi()).ok() + pub unsafe fn SetPassword(&self, password: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetPassword)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(password)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CertificateThumbprint(&self) -> ::windows::core::Result { + pub unsafe fn CertificateThumbprint(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CertificateThumbprint)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CertificateThumbprint)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCertificateThumbprint<'a, P0>(&self, thumbprint: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetCertificateThumbprint)(::windows::core::Interface::as_raw(self), thumbprint.into().abi()).ok() + pub unsafe fn SetCertificateThumbprint(&self, thumbprint: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetCertificateThumbprint)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(thumbprint)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetProxy<'a, P0, P1>(&self, accesstype: i32, authenticationmechanism: i32, username: P0, password: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetProxy)(::windows::core::Interface::as_raw(self), accesstype, authenticationmechanism, username.into().abi(), password.into().abi()).ok() + pub unsafe fn SetProxy(&self, accesstype: i32, authenticationmechanism: i32, username: &::windows::core::BSTR, password: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetProxy)(::windows::core::Interface::as_raw(self), accesstype, authenticationmechanism, ::core::mem::transmute_copy(username), ::core::mem::transmute_copy(password)).ok() } pub unsafe fn ProxyIEConfig(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -906,10 +824,7 @@ unsafe impl ::windows::core::Interface for IWSManConnectionOptionsEx2 { #[doc(hidden)] pub struct IWSManConnectionOptionsEx2_Vtbl { pub base__: IWSManConnectionOptionsEx_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub SetProxy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, accesstype: i32, authenticationmechanism: i32, username: ::core::mem::ManuallyDrop, password: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetProxy: usize, + pub SetProxy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, accesstype: i32, authenticationmechanism: i32, username: ::core::mem::ManuallyDrop<::windows::core::BSTR>, password: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ProxyIEConfig: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i32) -> ::windows::core::HRESULT, pub ProxyWinHttpConfig: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i32) -> ::windows::core::HRESULT, pub ProxyAutoDetect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i32) -> ::windows::core::HRESULT, @@ -924,21 +839,17 @@ pub struct IWSManConnectionOptionsEx2_Vtbl { pub struct IWSManEnumerator(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWSManEnumerator { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ReadItem(&self) -> ::windows::core::Result { + pub unsafe fn ReadItem(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ReadItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ReadItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn AtEndOfStream(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).AtEndOfStream)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Error(&self) -> ::windows::core::Result { + pub unsafe fn Error(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Error)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Error)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1007,15 +918,9 @@ unsafe impl ::windows::core::Interface for IWSManEnumerator { #[doc(hidden)] pub struct IWSManEnumerator_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub ReadItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, resource: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ReadItem: usize, + pub ReadItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, resource: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub AtEndOfStream: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eos: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Error: usize, + pub Error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RemoteManagement\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1023,15 +928,14 @@ pub struct IWSManEnumerator_Vtbl { pub struct IWSManEx(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWSManEx { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateSession<'a, P0, P1>(&self, connection: P0, flags: i32, connectionoptions: P1) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateSession<'a, P0>(&self, connection: &::windows::core::BSTR, flags: i32, connectionoptions: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CreateSession)(::windows::core::Interface::as_raw(self), connection.into().abi(), flags, connectionoptions.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CreateSession)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(connection), flags, connectionoptions.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1039,26 +943,19 @@ impl IWSManEx { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.CreateConnectionOptions)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CommandLine(&self) -> ::windows::core::Result { + pub unsafe fn CommandLine(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CommandLine)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CommandLine)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Error(&self) -> ::windows::core::Result { + pub unsafe fn Error(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Error)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Error)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateResourceLocator<'a, P0>(&self, strresourcelocator: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateResourceLocator(&self, strresourcelocator: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateResourceLocator)(::windows::core::Interface::as_raw(self), strresourcelocator.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateResourceLocator)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strresourcelocator), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn SessionFlagUTF8(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1116,11 +1013,9 @@ impl IWSManEx { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).EnumerationFlagReturnObjectAndEPR)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetErrorMessage(&self, errornumber: u32) -> ::windows::core::Result { + pub unsafe fn GetErrorMessage(&self, errornumber: u32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetErrorMessage)(::windows::core::Interface::as_raw(self), errornumber, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetErrorMessage)(::windows::core::Interface::as_raw(self), errornumber, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn EnumerationFlagHierarchyDeep(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1223,9 +1118,9 @@ unsafe impl ::windows::core::Interface for IWSManEx { #[doc(hidden)] pub struct IWSManEx_Vtbl { pub base__: IWSMan_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub CreateResourceLocator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strresourcelocator: ::core::mem::ManuallyDrop, newresourcelocator: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub CreateResourceLocator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strresourcelocator: ::core::mem::ManuallyDrop<::windows::core::BSTR>, newresourcelocator: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] CreateResourceLocator: usize, pub SessionFlagUTF8: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: *mut i32) -> ::windows::core::HRESULT, pub SessionFlagCredUsernamePassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: *mut i32) -> ::windows::core::HRESULT, @@ -1241,10 +1136,7 @@ pub struct IWSManEx_Vtbl { pub EnumerationFlagNonXmlText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: *mut i32) -> ::windows::core::HRESULT, pub EnumerationFlagReturnEPR: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: *mut i32) -> ::windows::core::HRESULT, pub EnumerationFlagReturnObjectAndEPR: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetErrorMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, errornumber: u32, errormessage: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetErrorMessage: usize, + pub GetErrorMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, errornumber: u32, errormessage: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub EnumerationFlagHierarchyDeep: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: *mut i32) -> ::windows::core::HRESULT, pub EnumerationFlagHierarchyShallow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: *mut i32) -> ::windows::core::HRESULT, pub EnumerationFlagHierarchyDeepBasePropsOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: *mut i32) -> ::windows::core::HRESULT, @@ -1256,15 +1148,14 @@ pub struct IWSManEx_Vtbl { pub struct IWSManEx2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWSManEx2 { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateSession<'a, P0, P1>(&self, connection: P0, flags: i32, connectionoptions: P1) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateSession<'a, P0>(&self, connection: &::windows::core::BSTR, flags: i32, connectionoptions: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CreateSession)(::windows::core::Interface::as_raw(self), connection.into().abi(), flags, connectionoptions.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CreateSession)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(connection), flags, connectionoptions.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1272,26 +1163,19 @@ impl IWSManEx2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.CreateConnectionOptions)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CommandLine(&self) -> ::windows::core::Result { + pub unsafe fn CommandLine(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CommandLine)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CommandLine)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Error(&self) -> ::windows::core::Result { + pub unsafe fn Error(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Error)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Error)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateResourceLocator<'a, P0>(&self, strresourcelocator: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateResourceLocator(&self, strresourcelocator: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CreateResourceLocator)(::windows::core::Interface::as_raw(self), strresourcelocator.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CreateResourceLocator)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strresourcelocator), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn SessionFlagUTF8(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1349,11 +1233,9 @@ impl IWSManEx2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.EnumerationFlagReturnObjectAndEPR)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetErrorMessage(&self, errornumber: u32) -> ::windows::core::Result { + pub unsafe fn GetErrorMessage(&self, errornumber: u32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetErrorMessage)(::windows::core::Interface::as_raw(self), errornumber, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetErrorMessage)(::windows::core::Interface::as_raw(self), errornumber, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn EnumerationFlagHierarchyDeep(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1486,15 +1368,14 @@ pub struct IWSManEx2_Vtbl { pub struct IWSManEx3(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWSManEx3 { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateSession<'a, P0, P1>(&self, connection: P0, flags: i32, connectionoptions: P1) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateSession<'a, P0>(&self, connection: &::windows::core::BSTR, flags: i32, connectionoptions: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.CreateSession)(::windows::core::Interface::as_raw(self), connection.into().abi(), flags, connectionoptions.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.CreateSession)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(connection), flags, connectionoptions.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1502,26 +1383,19 @@ impl IWSManEx3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.CreateConnectionOptions)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CommandLine(&self) -> ::windows::core::Result { + pub unsafe fn CommandLine(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.CommandLine)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.CommandLine)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Error(&self) -> ::windows::core::Result { + pub unsafe fn Error(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.Error)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.Error)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn CreateResourceLocator<'a, P0>(&self, strresourcelocator: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn CreateResourceLocator(&self, strresourcelocator: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CreateResourceLocator)(::windows::core::Interface::as_raw(self), strresourcelocator.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CreateResourceLocator)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strresourcelocator), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn SessionFlagUTF8(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1579,11 +1453,9 @@ impl IWSManEx3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.EnumerationFlagReturnObjectAndEPR)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetErrorMessage(&self, errornumber: u32) -> ::windows::core::Result { + pub unsafe fn GetErrorMessage(&self, errornumber: u32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetErrorMessage)(::windows::core::Interface::as_raw(self), errornumber, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetErrorMessage)(::windows::core::Interface::as_raw(self), errornumber, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn EnumerationFlagHierarchyDeep(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1770,13 +1642,13 @@ pub struct IWSManInternal(::windows::core::IUnknown); impl IWSManInternal { #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ConfigSDDL<'a, P0, P1>(&self, session: P0, resourceuri: P1, flags: i32) -> ::windows::core::Result + pub unsafe fn ConfigSDDL<'a, P0, P1>(&self, session: P0, resourceuri: P1, flags: i32) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ConfigSDDL)(::windows::core::Interface::as_raw(self), session.into().abi(), resourceuri.into().abi(), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ConfigSDDL)(::windows::core::Interface::as_raw(self), session.into().abi(), resourceuri.into().abi(), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1846,7 +1718,7 @@ unsafe impl ::windows::core::Interface for IWSManInternal { pub struct IWSManInternal_Vtbl { pub base__: super::Com::IDispatch_Vtbl, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub ConfigSDDL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, session: *mut ::core::ffi::c_void, resourceuri: ::core::mem::ManuallyDrop, flags: i32, resource: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub ConfigSDDL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, session: *mut ::core::ffi::c_void, resourceuri: ::core::mem::ManuallyDrop, flags: i32, resource: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] ConfigSDDL: usize, } @@ -1856,69 +1728,46 @@ pub struct IWSManInternal_Vtbl { pub struct IWSManResourceLocator(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWSManResourceLocator { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetResourceURI<'a, P0>(&self, uri: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetResourceURI)(::windows::core::Interface::as_raw(self), uri.into().abi()).ok() + pub unsafe fn SetResourceURI(&self, uri: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetResourceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(uri)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ResourceURI(&self) -> ::windows::core::Result { + pub unsafe fn ResourceURI(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ResourceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ResourceURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddSelector<'a, P0, P1>(&self, resourceselname: P0, selvalue: P1) -> ::windows::core::Result<()> + pub unsafe fn AddSelector<'a, P0>(&self, resourceselname: &::windows::core::BSTR, selvalue: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).AddSelector)(::windows::core::Interface::as_raw(self), resourceselname.into().abi(), selvalue.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddSelector)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(resourceselname), selvalue.into().abi()).ok() } pub unsafe fn ClearSelectors(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ClearSelectors)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FragmentPath(&self) -> ::windows::core::Result { + pub unsafe fn FragmentPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FragmentPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FragmentPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFragmentPath<'a, P0>(&self, text: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetFragmentPath)(::windows::core::Interface::as_raw(self), text.into().abi()).ok() + pub unsafe fn SetFragmentPath(&self, text: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetFragmentPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(text)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FragmentDialect(&self) -> ::windows::core::Result { + pub unsafe fn FragmentDialect(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FragmentDialect)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FragmentDialect)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFragmentDialect<'a, P0>(&self, text: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetFragmentDialect)(::windows::core::Interface::as_raw(self), text.into().abi()).ok() + pub unsafe fn SetFragmentDialect(&self, text: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetFragmentDialect)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(text)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddOption<'a, P0, P1, P2>(&self, optionname: P0, optionvalue: P1, mustcomply: P2) -> ::windows::core::Result<()> + pub unsafe fn AddOption<'a, P0, P1>(&self, optionname: &::windows::core::BSTR, optionvalue: P0, mustcomply: P1) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, - P2: ::std::convert::Into, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, + P1: ::std::convert::Into, { - (::windows::core::Interface::vtable(self).AddOption)(::windows::core::Interface::as_raw(self), optionname.into().abi(), optionvalue.into().abi(), mustcomply.into()).ok() + (::windows::core::Interface::vtable(self).AddOption)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(optionname), optionvalue.into().abi(), mustcomply.into()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -1937,11 +1786,9 @@ impl IWSManResourceLocator { pub unsafe fn ClearOptions(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ClearOptions)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Error(&self) -> ::windows::core::Result { + pub unsafe fn Error(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Error)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Error)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -2010,37 +1857,19 @@ unsafe impl ::windows::core::Interface for IWSManResourceLocator { #[doc(hidden)] pub struct IWSManResourceLocator_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub SetResourceURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uri: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetResourceURI: usize, - #[cfg(feature = "Win32_Foundation")] - pub ResourceURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ResourceURI: usize, + pub SetResourceURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uri: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ResourceURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddSelector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, resourceselname: ::core::mem::ManuallyDrop, selvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub AddSelector: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, resourceselname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, selvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddSelector: usize, pub ClearSelectors: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub FragmentPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FragmentPath: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetFragmentPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetFragmentPath: usize, - #[cfg(feature = "Win32_Foundation")] - pub FragmentDialect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FragmentDialect: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetFragmentDialect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetFragmentDialect: usize, + pub FragmentPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetFragmentPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub FragmentDialect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetFragmentDialect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddOption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, optionname: ::core::mem::ManuallyDrop, optionvalue: ::core::mem::ManuallyDrop, mustcomply: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, + pub AddOption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, optionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, optionvalue: ::core::mem::ManuallyDrop, mustcomply: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddOption: usize, #[cfg(feature = "Win32_Foundation")] @@ -2052,10 +1881,7 @@ pub struct IWSManResourceLocator_Vtbl { #[cfg(not(feature = "Win32_Foundation"))] MustUnderstandOptions: usize, pub ClearOptions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Error: usize, + pub Error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_RemoteManagement\"`*"] #[repr(transparent)] @@ -2109,32 +1935,30 @@ pub struct IWSManSession(::windows::core::IUnknown); impl IWSManSession { #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Get<'a, P0>(&self, resourceuri: P0, flags: i32) -> ::windows::core::Result + pub unsafe fn Get<'a, P0>(&self, resourceuri: P0, flags: i32) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Get)(::windows::core::Interface::as_raw(self), resourceuri.into().abi(), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Get)(::windows::core::Interface::as_raw(self), resourceuri.into().abi(), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Put<'a, P0, P1>(&self, resourceuri: P0, resource: P1, flags: i32) -> ::windows::core::Result + pub unsafe fn Put<'a, P0>(&self, resourceuri: P0, resource: &::windows::core::BSTR, flags: i32) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Put)(::windows::core::Interface::as_raw(self), resourceuri.into().abi(), resource.into().abi(), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Put)(::windows::core::Interface::as_raw(self), resourceuri.into().abi(), ::core::mem::transmute_copy(resource), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Create<'a, P0, P1>(&self, resourceuri: P0, resource: P1, flags: i32) -> ::windows::core::Result + pub unsafe fn Create<'a, P0>(&self, resourceuri: P0, resource: &::windows::core::BSTR, flags: i32) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Create)(::windows::core::Interface::as_raw(self), resourceuri.into().abi(), resource.into().abi(), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Create)(::windows::core::Interface::as_raw(self), resourceuri.into().abi(), ::core::mem::transmute_copy(resource), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2146,37 +1970,29 @@ impl IWSManSession { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Invoke2<'a, P0, P1, P2>(&self, actionuri: P0, resourceuri: P1, parameters: P2, flags: i32) -> ::windows::core::Result + pub unsafe fn Invoke2<'a, P0>(&self, actionuri: &::windows::core::BSTR, resourceuri: P0, parameters: &::windows::core::BSTR, flags: i32) -> ::windows::core::Result<::windows::core::BSTR> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Invoke2)(::windows::core::Interface::as_raw(self), actionuri.into().abi(), resourceuri.into().abi(), parameters.into().abi(), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Invoke2)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(actionuri), resourceuri.into().abi(), ::core::mem::transmute_copy(parameters), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Enumerate<'a, P0, P1, P2>(&self, resourceuri: P0, filter: P1, dialect: P2, flags: i32) -> ::windows::core::Result + pub unsafe fn Enumerate<'a, P0>(&self, resourceuri: P0, filter: &::windows::core::BSTR, dialect: &::windows::core::BSTR, flags: i32) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Enumerate)(::windows::core::Interface::as_raw(self), resourceuri.into().abi(), filter.into().abi(), dialect.into().abi(), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Enumerate)(::windows::core::Interface::as_raw(self), resourceuri.into().abi(), ::core::mem::transmute_copy(filter), ::core::mem::transmute_copy(dialect), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Identify(&self, flags: i32) -> ::windows::core::Result { + pub unsafe fn Identify(&self, flags: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Identify)(::windows::core::Interface::as_raw(self), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Identify)(::windows::core::Interface::as_raw(self), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Error(&self) -> ::windows::core::Result { + pub unsafe fn Error(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Error)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Error)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn BatchItems(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2260,15 +2076,15 @@ unsafe impl ::windows::core::Interface for IWSManSession { pub struct IWSManSession_Vtbl { pub base__: super::Com::IDispatch_Vtbl, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub Get: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, resourceuri: ::core::mem::ManuallyDrop, flags: i32, resource: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub Get: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, resourceuri: ::core::mem::ManuallyDrop, flags: i32, resource: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Get: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub Put: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, resourceuri: ::core::mem::ManuallyDrop, resource: ::core::mem::ManuallyDrop, flags: i32, resultresource: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub Put: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, resourceuri: ::core::mem::ManuallyDrop, resource: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: i32, resultresource: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Put: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, resourceuri: ::core::mem::ManuallyDrop, resource: ::core::mem::ManuallyDrop, flags: i32, newuri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, resourceuri: ::core::mem::ManuallyDrop, resource: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: i32, newuri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Create: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2276,21 +2092,15 @@ pub struct IWSManSession_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Delete: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub Invoke2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, actionuri: ::core::mem::ManuallyDrop, resourceuri: ::core::mem::ManuallyDrop, parameters: ::core::mem::ManuallyDrop, flags: i32, result: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub Invoke2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, actionuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, resourceuri: ::core::mem::ManuallyDrop, parameters: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: i32, result: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Invoke2: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub Enumerate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, resourceuri: ::core::mem::ManuallyDrop, filter: ::core::mem::ManuallyDrop, dialect: ::core::mem::ManuallyDrop, flags: i32, resultset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub Enumerate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, resourceuri: ::core::mem::ManuallyDrop, filter: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dialect: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: i32, resultset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Enumerate: usize, - #[cfg(feature = "Win32_Foundation")] - pub Identify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32, result: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Identify: usize, - #[cfg(feature = "Win32_Foundation")] - pub Error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Error: usize, + pub Identify: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32, result: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Error: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub BatchItems: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i32) -> ::windows::core::HRESULT, pub SetBatchItems: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, pub Timeout: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i32) -> ::windows::core::HRESULT, diff --git a/crates/libs/windows/src/Windows/Win32/System/Search/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Search/impl.rs index a880bb5f5b..21d0604e61 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Search/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Search/impl.rs @@ -2008,8 +2008,8 @@ impl IEnumSubscription_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IErrorLookup_Impl: Sized { - fn GetErrorDescription(&self, hrerror: ::windows::core::HRESULT, dwlookupid: u32, pdispparams: *const super::Com::DISPPARAMS, lcid: u32, pbstrsource: *mut super::super::Foundation::BSTR, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetHelpInfo(&self, hrerror: ::windows::core::HRESULT, dwlookupid: u32, lcid: u32, pbstrhelpfile: *mut super::super::Foundation::BSTR, pdwhelpcontext: *mut u32) -> ::windows::core::Result<()>; + fn GetErrorDescription(&self, hrerror: ::windows::core::HRESULT, dwlookupid: u32, pdispparams: *const super::Com::DISPPARAMS, lcid: u32, pbstrsource: *mut ::windows::core::BSTR, pbstrdescription: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetHelpInfo(&self, hrerror: ::windows::core::HRESULT, dwlookupid: u32, lcid: u32, pbstrhelpfile: *mut ::windows::core::BSTR, pdwhelpcontext: *mut u32) -> ::windows::core::Result<()>; fn ReleaseErrors(&self, dwdynamicerrorid: u32) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2017,12 +2017,12 @@ impl ::windows::core::RuntimeName for IErrorLookup {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IErrorLookup_Vtbl { pub const fn new, Impl: IErrorLookup_Impl, const OFFSET: isize>() -> IErrorLookup_Vtbl { - unsafe extern "system" fn GetErrorDescription, Impl: IErrorLookup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hrerror: ::windows::core::HRESULT, dwlookupid: u32, pdispparams: *const super::Com::DISPPARAMS, lcid: u32, pbstrsource: *mut super::super::Foundation::BSTR, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetErrorDescription, Impl: IErrorLookup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hrerror: ::windows::core::HRESULT, dwlookupid: u32, pdispparams: *const super::Com::DISPPARAMS, lcid: u32, pbstrsource: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetErrorDescription(::core::mem::transmute_copy(&hrerror), ::core::mem::transmute_copy(&dwlookupid), ::core::mem::transmute_copy(&pdispparams), ::core::mem::transmute_copy(&lcid), ::core::mem::transmute_copy(&pbstrsource), ::core::mem::transmute_copy(&pbstrdescription)).into() } - unsafe extern "system" fn GetHelpInfo, Impl: IErrorLookup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hrerror: ::windows::core::HRESULT, dwlookupid: u32, lcid: u32, pbstrhelpfile: *mut super::super::Foundation::BSTR, pdwhelpcontext: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetHelpInfo, Impl: IErrorLookup_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hrerror: ::windows::core::HRESULT, dwlookupid: u32, lcid: u32, pbstrhelpfile: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwhelpcontext: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetHelpInfo(::core::mem::transmute_copy(&hrerror), ::core::mem::transmute_copy(&dwlookupid), ::core::mem::transmute_copy(&lcid), ::core::mem::transmute_copy(&pbstrhelpfile), ::core::mem::transmute_copy(&pdwhelpcontext)).into() @@ -4178,16 +4178,13 @@ impl IRowsetWithParameters_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait ISQLErrorInfo_Impl: Sized { - fn GetSQLInfo(&self, pbstrsqlstate: *mut super::super::Foundation::BSTR, plnativeerror: *mut i32) -> ::windows::core::Result<()>; + fn GetSQLInfo(&self, pbstrsqlstate: *mut ::windows::core::BSTR, plnativeerror: *mut i32) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ISQLErrorInfo {} -#[cfg(feature = "Win32_Foundation")] impl ISQLErrorInfo_Vtbl { pub const fn new, Impl: ISQLErrorInfo_Impl, const OFFSET: isize>() -> ISQLErrorInfo_Vtbl { - unsafe extern "system" fn GetSQLInfo, Impl: ISQLErrorInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsqlstate: *mut super::super::Foundation::BSTR, plnativeerror: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSQLInfo, Impl: ISQLErrorInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsqlstate: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, plnativeerror: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetSQLInfo(::core::mem::transmute_copy(&pbstrsqlstate), ::core::mem::transmute_copy(&plnativeerror)).into() @@ -7334,7 +7331,7 @@ pub trait OLEDBSimpleProvider_Impl: Sized { fn getRWStatus(&self, irow: isize, icolumn: isize) -> ::windows::core::Result; fn getVariant(&self, irow: isize, icolumn: isize, format: OSPFORMAT) -> ::windows::core::Result; fn setVariant(&self, irow: isize, icolumn: isize, format: OSPFORMAT, var: &super::Com::VARIANT) -> ::windows::core::Result<()>; - fn getLocale(&self) -> ::windows::core::Result; + fn getLocale(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn deleteRows(&self, irow: isize, crows: isize) -> ::windows::core::Result; fn insertRows(&self, irow: isize, crows: isize) -> ::windows::core::Result; fn find(&self, irowstart: isize, icolumn: isize, val: &super::Com::VARIANT, findflags: OSPFIND, comptype: OSPCOMP) -> ::windows::core::Result; @@ -7398,7 +7395,7 @@ impl OLEDBSimpleProvider_Vtbl { let this = (*this).get_impl(); this.setVariant(::core::mem::transmute_copy(&irow), ::core::mem::transmute_copy(&icolumn), ::core::mem::transmute_copy(&format), ::core::mem::transmute(&var)).into() } - unsafe extern "system" fn getLocale, Impl: OLEDBSimpleProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrlocale: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn getLocale, Impl: OLEDBSimpleProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrlocale: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getLocale() { diff --git a/crates/libs/windows/src/Windows/Win32/System/Search/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Search/mod.rs index 3faf10658a..1c3bfc4566 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Search/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Search/mod.rs @@ -6113,12 +6113,10 @@ pub struct IErrorLookup(::windows::core::IUnknown); impl IErrorLookup { #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetErrorDescription(&self, hrerror: ::windows::core::HRESULT, dwlookupid: u32, pdispparams: &super::Com::DISPPARAMS, lcid: u32, pbstrsource: ::core::option::Option<&mut super::super::Foundation::BSTR>, pbstrdescription: ::core::option::Option<&mut super::super::Foundation::BSTR>) -> ::windows::core::Result<()> { + pub unsafe fn GetErrorDescription(&self, hrerror: ::windows::core::HRESULT, dwlookupid: u32, pdispparams: &super::Com::DISPPARAMS, lcid: u32, pbstrsource: ::core::option::Option<&mut ::windows::core::BSTR>, pbstrdescription: ::core::option::Option<&mut ::windows::core::BSTR>) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetErrorDescription)(::windows::core::Interface::as_raw(self), hrerror, dwlookupid, ::core::mem::transmute(pdispparams), lcid, ::core::mem::transmute(pbstrsource), ::core::mem::transmute(pbstrdescription)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetHelpInfo(&self, hrerror: ::windows::core::HRESULT, dwlookupid: u32, lcid: u32, pbstrhelpfile: ::core::option::Option<&mut super::super::Foundation::BSTR>, pdwhelpcontext: &mut u32) -> ::windows::core::Result<()> { + pub unsafe fn GetHelpInfo(&self, hrerror: ::windows::core::HRESULT, dwlookupid: u32, lcid: u32, pbstrhelpfile: ::core::option::Option<&mut ::windows::core::BSTR>, pdwhelpcontext: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetHelpInfo)(::windows::core::Interface::as_raw(self), hrerror, dwlookupid, lcid, ::core::mem::transmute(pbstrhelpfile), ::core::mem::transmute(pdwhelpcontext)).ok() } pub unsafe fn ReleaseErrors(&self, dwdynamicerrorid: u32) -> ::windows::core::Result<()> { @@ -6165,13 +6163,10 @@ unsafe impl ::windows::core::Interface for IErrorLookup { pub struct IErrorLookup_Vtbl { pub base__: ::windows::core::IUnknownVtbl, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetErrorDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrerror: ::windows::core::HRESULT, dwlookupid: u32, pdispparams: *const super::Com::DISPPARAMS, lcid: u32, pbstrsource: *mut super::super::Foundation::BSTR, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub GetErrorDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrerror: ::windows::core::HRESULT, dwlookupid: u32, pdispparams: *const super::Com::DISPPARAMS, lcid: u32, pbstrsource: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetErrorDescription: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetHelpInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrerror: ::windows::core::HRESULT, dwlookupid: u32, lcid: u32, pbstrhelpfile: *mut super::super::Foundation::BSTR, pdwhelpcontext: *mut u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetHelpInfo: usize, + pub GetHelpInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrerror: ::windows::core::HRESULT, dwlookupid: u32, lcid: u32, pbstrhelpfile: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwhelpcontext: *mut u32) -> ::windows::core::HRESULT, pub ReleaseErrors: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwdynamicerrorid: u32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Search\"`*"] @@ -10401,9 +10396,7 @@ pub struct IRowsetWithParameters_Vtbl { #[repr(transparent)] pub struct ISQLErrorInfo(::windows::core::IUnknown); impl ISQLErrorInfo { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetSQLInfo(&self, pbstrsqlstate: &mut super::super::Foundation::BSTR, plnativeerror: &mut i32) -> ::windows::core::Result<()> { + pub unsafe fn GetSQLInfo(&self, pbstrsqlstate: &mut ::windows::core::BSTR, plnativeerror: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetSQLInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrsqlstate), ::core::mem::transmute(plnativeerror)).ok() } } @@ -10446,10 +10439,7 @@ unsafe impl ::windows::core::Interface for ISQLErrorInfo { #[doc(hidden)] pub struct ISQLErrorInfo_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetSQLInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsqlstate: *mut super::super::Foundation::BSTR, plnativeerror: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetSQLInfo: usize, + pub GetSQLInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsqlstate: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, plnativeerror: *mut i32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Search\"`*"] #[repr(transparent)] @@ -15869,11 +15859,9 @@ impl OLEDBSimpleProvider { { (::windows::core::Interface::vtable(self).setVariant)(::windows::core::Interface::as_raw(self), irow, icolumn, format, var.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getLocale(&self) -> ::windows::core::Result { + pub unsafe fn getLocale(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getLocale)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getLocale)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn deleteRows(&self, irow: isize, crows: isize) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -15968,10 +15956,7 @@ pub struct OLEDBSimpleProvider_Vtbl { pub setVariant: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, irow: isize, icolumn: isize, format: OSPFORMAT, var: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] setVariant: usize, - #[cfg(feature = "Win32_Foundation")] - pub getLocale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrlocale: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getLocale: usize, + pub getLocale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrlocale: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub deleteRows: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, irow: isize, crows: isize, pcrowsdeleted: *mut isize) -> ::windows::core::HRESULT, pub insertRows: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, irow: isize, crows: isize, pcrowsinserted: *mut isize) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -30681,7 +30666,7 @@ pub struct RMTPACK { pub pISeqStream: ::core::option::Option, pub cbData: u32, pub cBSTR: u32, - pub rgBSTR: *mut super::super::Foundation::BSTR, + pub rgBSTR: *mut ::windows::core::BSTR, pub cVARIANT: u32, pub rgVARIANT: *mut super::Com::VARIANT, pub cIDISPATCH: u32, @@ -30745,7 +30730,7 @@ pub struct RMTPACK { pub pISeqStream: ::core::option::Option, pub cbData: u32, pub cBSTR: u32, - pub rgBSTR: *mut super::super::Foundation::BSTR, + pub rgBSTR: *mut ::windows::core::BSTR, pub cVARIANT: u32, pub rgVARIANT: *mut super::Com::VARIANT, pub cIDISPATCH: u32, @@ -31527,9 +31512,9 @@ pub struct SUBSCRIPTIONINFO { pub bChangesOnly: super::super::Foundation::BOOL, pub bNeedPassword: super::super::Foundation::BOOL, pub fChannelFlags: u32, - pub bstrUserName: super::super::Foundation::BSTR, - pub bstrPassword: super::super::Foundation::BSTR, - pub bstrFriendlyName: super::super::Foundation::BSTR, + pub bstrUserName: ::windows::core::BSTR, + pub bstrPassword: ::windows::core::BSTR, + pub bstrFriendlyName: ::windows::core::BSTR, pub dwMaxSizeKB: u32, pub subType: SUBSCRIPTIONTYPE, pub fTaskFlags: u32, diff --git a/crates/libs/windows/src/Windows/Win32/System/SecurityCenter/impl.rs b/crates/libs/windows/src/Windows/Win32/System/SecurityCenter/impl.rs index 87d64e39bb..09b9bbe530 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SecurityCenter/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SecurityCenter/impl.rs @@ -1,13 +1,13 @@ #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWSCDefaultProduct_Impl: Sized + super::Com::IDispatch_Impl { - fn SetDefaultProduct(&self, etype: SECURITY_PRODUCT_TYPE, pguid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetDefaultProduct(&self, etype: SECURITY_PRODUCT_TYPE, pguid: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWSCDefaultProduct {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWSCDefaultProduct_Vtbl { pub const fn new, Impl: IWSCDefaultProduct_Impl, const OFFSET: isize>() -> IWSCDefaultProduct_Vtbl { - unsafe extern "system" fn SetDefaultProduct, Impl: IWSCDefaultProduct_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, etype: SECURITY_PRODUCT_TYPE, pguid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDefaultProduct, Impl: IWSCDefaultProduct_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, etype: SECURITY_PRODUCT_TYPE, pguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDefaultProduct(::core::mem::transmute_copy(&etype), ::core::mem::transmute(&pguid)).into() @@ -69,12 +69,12 @@ impl IWSCProductList_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWscProduct_Impl: Sized + super::Com::IDispatch_Impl { - fn ProductName(&self) -> ::windows::core::Result; + fn ProductName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn ProductState(&self) -> ::windows::core::Result; fn SignatureStatus(&self) -> ::windows::core::Result; - fn RemediationPath(&self) -> ::windows::core::Result; - fn ProductStateTimestamp(&self) -> ::windows::core::Result; - fn ProductGuid(&self) -> ::windows::core::Result; + fn RemediationPath(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ProductStateTimestamp(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ProductGuid(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn ProductIsDefault(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -82,7 +82,7 @@ impl ::windows::core::RuntimeName for IWscProduct {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWscProduct_Vtbl { pub const fn new, Impl: IWscProduct_Impl, const OFFSET: isize>() -> IWscProduct_Vtbl { - unsafe extern "system" fn ProductName, Impl: IWscProduct_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ProductName, Impl: IWscProduct_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ProductName() { @@ -115,7 +115,7 @@ impl IWscProduct_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RemediationPath, Impl: IWscProduct_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RemediationPath, Impl: IWscProduct_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RemediationPath() { @@ -126,7 +126,7 @@ impl IWscProduct_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ProductStateTimestamp, Impl: IWscProduct_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ProductStateTimestamp, Impl: IWscProduct_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ProductStateTimestamp() { @@ -137,7 +137,7 @@ impl IWscProduct_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ProductGuid, Impl: IWscProduct_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ProductGuid, Impl: IWscProduct_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ProductGuid() { diff --git a/crates/libs/windows/src/Windows/Win32/System/SecurityCenter/mod.rs b/crates/libs/windows/src/Windows/Win32/System/SecurityCenter/mod.rs index 9118dd0801..72fab162a7 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SecurityCenter/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SecurityCenter/mod.rs @@ -64,13 +64,8 @@ where pub struct IWSCDefaultProduct(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWSCDefaultProduct { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDefaultProduct<'a, P0>(&self, etype: SECURITY_PRODUCT_TYPE, pguid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDefaultProduct)(::windows::core::Interface::as_raw(self), etype, pguid.into().abi()).ok() + pub unsafe fn SetDefaultProduct(&self, etype: SECURITY_PRODUCT_TYPE, pguid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDefaultProduct)(::windows::core::Interface::as_raw(self), etype, ::core::mem::transmute_copy(pguid)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -139,10 +134,7 @@ unsafe impl ::windows::core::Interface for IWSCDefaultProduct { #[doc(hidden)] pub struct IWSCDefaultProduct_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub SetDefaultProduct: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, etype: SECURITY_PRODUCT_TYPE, pguid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDefaultProduct: usize, + pub SetDefaultProduct: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, etype: SECURITY_PRODUCT_TYPE, pguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_SecurityCenter\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -243,11 +235,9 @@ pub struct IWSCProductList_Vtbl { pub struct IWscProduct(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWscProduct { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ProductName(&self) -> ::windows::core::Result { + pub unsafe fn ProductName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ProductName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ProductName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn ProductState(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -257,23 +247,17 @@ impl IWscProduct { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).SignatureStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemediationPath(&self) -> ::windows::core::Result { + pub unsafe fn RemediationPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RemediationPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RemediationPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ProductStateTimestamp(&self) -> ::windows::core::Result { + pub unsafe fn ProductStateTimestamp(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ProductStateTimestamp)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ProductStateTimestamp)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ProductGuid(&self) -> ::windows::core::Result { + pub unsafe fn ProductGuid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ProductGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ProductGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -348,24 +332,12 @@ unsafe impl ::windows::core::Interface for IWscProduct { #[doc(hidden)] pub struct IWscProduct_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub ProductName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ProductName: usize, + pub ProductName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ProductState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut WSC_SECURITY_PRODUCT_STATE) -> ::windows::core::HRESULT, pub SignatureStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut WSC_SECURITY_SIGNATURE_STATUS) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub RemediationPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RemediationPath: usize, - #[cfg(feature = "Win32_Foundation")] - pub ProductStateTimestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ProductStateTimestamp: usize, - #[cfg(feature = "Win32_Foundation")] - pub ProductGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ProductGuid: usize, + pub RemediationPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ProductStateTimestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ProductGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub ProductIsDefault: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -377,11 +349,9 @@ pub struct IWscProduct_Vtbl { pub struct IWscProduct2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWscProduct2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ProductName(&self) -> ::windows::core::Result { + pub unsafe fn ProductName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ProductName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ProductName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn ProductState(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -391,23 +361,17 @@ impl IWscProduct2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.SignatureStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemediationPath(&self) -> ::windows::core::Result { + pub unsafe fn RemediationPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.RemediationPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.RemediationPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ProductStateTimestamp(&self) -> ::windows::core::Result { + pub unsafe fn ProductStateTimestamp(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ProductStateTimestamp)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ProductStateTimestamp)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ProductGuid(&self) -> ::windows::core::Result { + pub unsafe fn ProductGuid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ProductGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ProductGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -537,11 +501,9 @@ pub struct IWscProduct2_Vtbl { pub struct IWscProduct3(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWscProduct3 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ProductName(&self) -> ::windows::core::Result { + pub unsafe fn ProductName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.ProductName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.ProductName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn ProductState(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -551,23 +513,17 @@ impl IWscProduct3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.SignatureStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemediationPath(&self) -> ::windows::core::Result { + pub unsafe fn RemediationPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.RemediationPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.RemediationPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ProductStateTimestamp(&self) -> ::windows::core::Result { + pub unsafe fn ProductStateTimestamp(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.ProductStateTimestamp)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.ProductStateTimestamp)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ProductGuid(&self) -> ::windows::core::Result { + pub unsafe fn ProductGuid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.ProductGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.ProductGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] diff --git a/crates/libs/windows/src/Windows/Win32/System/SettingsManagementInfrastructure/impl.rs b/crates/libs/windows/src/Windows/Win32/System/SettingsManagementInfrastructure/impl.rs index c767f67889..c713198f4b 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SettingsManagementInfrastructure/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SettingsManagementInfrastructure/impl.rs @@ -128,7 +128,7 @@ impl ISettingsContext_Vtbl { pub trait ISettingsEngine_Impl: Sized { fn GetNamespaces(&self, flags: WcmNamespaceEnumerationFlags, reserved: *const ::core::ffi::c_void) -> ::windows::core::Result; fn GetNamespace(&self, settingsid: &::core::option::Option, access: WcmNamespaceAccess, reserved: *const ::core::ffi::c_void) -> ::windows::core::Result; - fn GetErrorDescription(&self, hresult: i32) -> ::windows::core::Result; + fn GetErrorDescription(&self, hresult: i32) -> ::windows::core::Result<::windows::core::BSTR>; fn CreateSettingsIdentity(&self) -> ::windows::core::Result; fn GetStoreStatus(&self, reserved: *const ::core::ffi::c_void) -> ::windows::core::Result; fn LoadStore(&self, flags: u32) -> ::windows::core::Result<()>; @@ -170,7 +170,7 @@ impl ISettingsEngine_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetErrorDescription, Impl: ISettingsEngine_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hresult: i32, message: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetErrorDescription, Impl: ISettingsEngine_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hresult: i32, message: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetErrorDescription(::core::mem::transmute_copy(&hresult)) { @@ -312,19 +312,16 @@ impl ISettingsEngine_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait ISettingsIdentity_Impl: Sized { - fn GetAttribute(&self, reserved: *const ::core::ffi::c_void, name: &::windows::core::PCWSTR) -> ::windows::core::Result; + fn GetAttribute(&self, reserved: *const ::core::ffi::c_void, name: &::windows::core::PCWSTR) -> ::windows::core::Result<::windows::core::BSTR>; fn SetAttribute(&self, reserved: *const ::core::ffi::c_void, name: &::windows::core::PCWSTR, value: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn GetFlags(&self) -> ::windows::core::Result; fn SetFlags(&self, flags: u32) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ISettingsIdentity {} -#[cfg(feature = "Win32_Foundation")] impl ISettingsIdentity_Vtbl { pub const fn new, Impl: ISettingsIdentity_Impl, const OFFSET: isize>() -> ISettingsIdentity_Vtbl { - unsafe extern "system" fn GetAttribute, Impl: ISettingsIdentity_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, reserved: *const ::core::ffi::c_void, name: ::windows::core::PCWSTR, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetAttribute, Impl: ISettingsIdentity_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, reserved: *const ::core::ffi::c_void, name: ::windows::core::PCWSTR, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetAttribute(::core::mem::transmute_copy(&reserved), ::core::mem::transmute(&name)) { @@ -370,7 +367,7 @@ impl ISettingsIdentity_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISettingsItem_Impl: Sized { - fn GetName(&self) -> ::windows::core::Result; + fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetValue(&self) -> ::windows::core::Result; fn SetValue(&self, value: *const super::Com::VARIANT) -> ::windows::core::Result<()>; fn GetSettingType(&self) -> ::windows::core::Result; @@ -383,12 +380,12 @@ pub trait ISettingsItem_Impl: Sized { fn GetSettingByPath(&self, path: &::windows::core::PCWSTR) -> ::windows::core::Result; fn CreateSettingByPath(&self, path: &::windows::core::PCWSTR) -> ::windows::core::Result; fn RemoveSettingByPath(&self, path: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; - fn GetListKeyInformation(&self, keyname: *mut super::super::Foundation::BSTR, datatype: *mut WcmDataType) -> ::windows::core::Result<()>; + fn GetListKeyInformation(&self, keyname: *mut ::windows::core::BSTR, datatype: *mut WcmDataType) -> ::windows::core::Result<()>; fn CreateListElement(&self, keydata: *const super::Com::VARIANT) -> ::windows::core::Result; fn RemoveListElement(&self, elementname: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn Attributes(&self) -> ::windows::core::Result; fn GetAttribute(&self, name: &::windows::core::PCWSTR) -> ::windows::core::Result; - fn GetPath(&self) -> ::windows::core::Result; + fn GetPath(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetRestrictionFacets(&self) -> ::windows::core::Result; fn GetRestriction(&self, restrictionfacet: WcmRestrictionFacets) -> ::windows::core::Result; fn GetKeyValue(&self) -> ::windows::core::Result; @@ -398,7 +395,7 @@ impl ::windows::core::RuntimeName for ISettingsItem {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ISettingsItem_Vtbl { pub const fn new, Impl: ISettingsItem_Impl, const OFFSET: isize>() -> ISettingsItem_Vtbl { - unsafe extern "system" fn GetName, Impl: ISettingsItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetName, Impl: ISettingsItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetName() { @@ -517,7 +514,7 @@ impl ISettingsItem_Vtbl { let this = (*this).get_impl(); this.RemoveSettingByPath(::core::mem::transmute(&path)).into() } - unsafe extern "system" fn GetListKeyInformation, Impl: ISettingsItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, keyname: *mut super::super::Foundation::BSTR, datatype: *mut WcmDataType) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetListKeyInformation, Impl: ISettingsItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, keyname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, datatype: *mut WcmDataType) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetListKeyInformation(::core::mem::transmute_copy(&keyname), ::core::mem::transmute_copy(&datatype)).into() @@ -560,7 +557,7 @@ impl ISettingsItem_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetPath, Impl: ISettingsItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPath, Impl: ISettingsItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetPath() { @@ -735,21 +732,18 @@ impl ISettingsNamespace_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait ISettingsResult_Impl: Sized { - fn GetDescription(&self) -> ::windows::core::Result; + fn GetDescription(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetErrorCode(&self) -> ::windows::core::Result<::windows::core::HRESULT>; - fn GetContextDescription(&self) -> ::windows::core::Result; + fn GetContextDescription(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetLine(&self) -> ::windows::core::Result; fn GetColumn(&self) -> ::windows::core::Result; - fn GetSource(&self) -> ::windows::core::Result; + fn GetSource(&self) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ISettingsResult {} -#[cfg(feature = "Win32_Foundation")] impl ISettingsResult_Vtbl { pub const fn new, Impl: ISettingsResult_Impl, const OFFSET: isize>() -> ISettingsResult_Vtbl { - unsafe extern "system" fn GetDescription, Impl: ISettingsResult_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDescription, Impl: ISettingsResult_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDescription() { @@ -771,7 +765,7 @@ impl ISettingsResult_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetContextDescription, Impl: ISettingsResult_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetContextDescription, Impl: ISettingsResult_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetContextDescription() { @@ -804,7 +798,7 @@ impl ISettingsResult_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetSource, Impl: ISettingsResult_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, file: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSource, Impl: ISettingsResult_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, file: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetSource() { @@ -833,25 +827,25 @@ impl ISettingsResult_Vtbl { pub trait ITargetInfo_Impl: Sized { fn GetTargetMode(&self) -> ::windows::core::Result; fn SetTargetMode(&self, targetmode: WcmTargetMode) -> ::windows::core::Result<()>; - fn GetTemporaryStoreLocation(&self) -> ::windows::core::Result; + fn GetTemporaryStoreLocation(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn SetTemporaryStoreLocation(&self, temporarystorelocation: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; - fn GetTargetID(&self) -> ::windows::core::Result; + fn GetTargetID(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn SetTargetID(&self, targetid: &::windows::core::GUID) -> ::windows::core::Result<()>; - fn GetTargetProcessorArchitecture(&self) -> ::windows::core::Result; + fn GetTargetProcessorArchitecture(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn SetTargetProcessorArchitecture(&self, processorarchitecture: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; - fn GetProperty(&self, offline: super::super::Foundation::BOOL, property: &::windows::core::PCWSTR) -> ::windows::core::Result; + fn GetProperty(&self, offline: super::super::Foundation::BOOL, property: &::windows::core::PCWSTR) -> ::windows::core::Result<::windows::core::BSTR>; fn SetProperty(&self, offline: super::super::Foundation::BOOL, property: &::windows::core::PCWSTR, value: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn GetEnumerator(&self) -> ::windows::core::Result; - fn ExpandTarget(&self, offline: super::super::Foundation::BOOL, location: &::windows::core::PCWSTR) -> ::windows::core::Result; - fn ExpandTargetPath(&self, offline: super::super::Foundation::BOOL, location: &::windows::core::PCWSTR) -> ::windows::core::Result; + fn ExpandTarget(&self, offline: super::super::Foundation::BOOL, location: &::windows::core::PCWSTR) -> ::windows::core::Result<::windows::core::BSTR>; + fn ExpandTargetPath(&self, offline: super::super::Foundation::BOOL, location: &::windows::core::PCWSTR) -> ::windows::core::Result<::windows::core::BSTR>; fn SetModulePath(&self, module: &::windows::core::PCWSTR, path: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn LoadModule(&self, module: &::windows::core::PCWSTR) -> ::windows::core::Result; fn SetWow64Context(&self, installermodule: &::windows::core::PCWSTR, wow64context: *const u8) -> ::windows::core::Result<()>; - fn TranslateWow64(&self, clientarchitecture: &::windows::core::PCWSTR, value: &::windows::core::PCWSTR) -> ::windows::core::Result; + fn TranslateWow64(&self, clientarchitecture: &::windows::core::PCWSTR, value: &::windows::core::PCWSTR) -> ::windows::core::Result<::windows::core::BSTR>; fn SetSchemaHiveLocation(&self, pwzhivedir: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; - fn GetSchemaHiveLocation(&self) -> ::windows::core::Result; + fn GetSchemaHiveLocation(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn SetSchemaHiveMountName(&self, pwzmountname: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; - fn GetSchemaHiveMountName(&self) -> ::windows::core::Result; + fn GetSchemaHiveMountName(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ITargetInfo {} @@ -874,7 +868,7 @@ impl ITargetInfo_Vtbl { let this = (*this).get_impl(); this.SetTargetMode(::core::mem::transmute_copy(&targetmode)).into() } - unsafe extern "system" fn GetTemporaryStoreLocation, Impl: ITargetInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, temporarystorelocation: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetTemporaryStoreLocation, Impl: ITargetInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, temporarystorelocation: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetTemporaryStoreLocation() { @@ -890,7 +884,7 @@ impl ITargetInfo_Vtbl { let this = (*this).get_impl(); this.SetTemporaryStoreLocation(::core::mem::transmute(&temporarystorelocation)).into() } - unsafe extern "system" fn GetTargetID, Impl: ITargetInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targetid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetTargetID, Impl: ITargetInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, targetid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetTargetID() { @@ -906,7 +900,7 @@ impl ITargetInfo_Vtbl { let this = (*this).get_impl(); this.SetTargetID(::core::mem::transmute(&targetid)).into() } - unsafe extern "system" fn GetTargetProcessorArchitecture, Impl: ITargetInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, processorarchitecture: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetTargetProcessorArchitecture, Impl: ITargetInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, processorarchitecture: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetTargetProcessorArchitecture() { @@ -922,7 +916,7 @@ impl ITargetInfo_Vtbl { let this = (*this).get_impl(); this.SetTargetProcessorArchitecture(::core::mem::transmute(&processorarchitecture)).into() } - unsafe extern "system" fn GetProperty, Impl: ITargetInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, offline: super::super::Foundation::BOOL, property: ::windows::core::PCWSTR, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetProperty, Impl: ITargetInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, offline: super::super::Foundation::BOOL, property: ::windows::core::PCWSTR, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetProperty(::core::mem::transmute_copy(&offline), ::core::mem::transmute(&property)) { @@ -949,7 +943,7 @@ impl ITargetInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ExpandTarget, Impl: ITargetInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, offline: super::super::Foundation::BOOL, location: ::windows::core::PCWSTR, expandedlocation: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExpandTarget, Impl: ITargetInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, offline: super::super::Foundation::BOOL, location: ::windows::core::PCWSTR, expandedlocation: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ExpandTarget(::core::mem::transmute_copy(&offline), ::core::mem::transmute(&location)) { @@ -960,7 +954,7 @@ impl ITargetInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ExpandTargetPath, Impl: ITargetInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, offline: super::super::Foundation::BOOL, location: ::windows::core::PCWSTR, expandedlocation: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExpandTargetPath, Impl: ITargetInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, offline: super::super::Foundation::BOOL, location: ::windows::core::PCWSTR, expandedlocation: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ExpandTargetPath(::core::mem::transmute_copy(&offline), ::core::mem::transmute(&location)) { @@ -992,7 +986,7 @@ impl ITargetInfo_Vtbl { let this = (*this).get_impl(); this.SetWow64Context(::core::mem::transmute(&installermodule), ::core::mem::transmute_copy(&wow64context)).into() } - unsafe extern "system" fn TranslateWow64, Impl: ITargetInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, clientarchitecture: ::windows::core::PCWSTR, value: ::windows::core::PCWSTR, translatedvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TranslateWow64, Impl: ITargetInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, clientarchitecture: ::windows::core::PCWSTR, value: ::windows::core::PCWSTR, translatedvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TranslateWow64(::core::mem::transmute(&clientarchitecture), ::core::mem::transmute(&value)) { @@ -1008,7 +1002,7 @@ impl ITargetInfo_Vtbl { let this = (*this).get_impl(); this.SetSchemaHiveLocation(::core::mem::transmute(&pwzhivedir)).into() } - unsafe extern "system" fn GetSchemaHiveLocation, Impl: ITargetInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, phivelocation: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSchemaHiveLocation, Impl: ITargetInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, phivelocation: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetSchemaHiveLocation() { @@ -1024,7 +1018,7 @@ impl ITargetInfo_Vtbl { let this = (*this).get_impl(); this.SetSchemaHiveMountName(::core::mem::transmute(&pwzmountname)).into() } - unsafe extern "system" fn GetSchemaHiveMountName, Impl: ITargetInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pmountname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSchemaHiveMountName, Impl: ITargetInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pmountname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetSchemaHiveMountName() { diff --git a/crates/libs/windows/src/Windows/Win32/System/SettingsManagementInfrastructure/mod.rs b/crates/libs/windows/src/Windows/Win32/System/SettingsManagementInfrastructure/mod.rs index 3116667caf..2474dae564 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SettingsManagementInfrastructure/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SettingsManagementInfrastructure/mod.rs @@ -182,11 +182,9 @@ impl ISettingsEngine { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetNamespace)(::windows::core::Interface::as_raw(self), settingsid.into().abi(), access, ::core::mem::transmute(reserved), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetErrorDescription(&self, hresult: i32) -> ::windows::core::Result { + pub unsafe fn GetErrorDescription(&self, hresult: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetErrorDescription)(::windows::core::Interface::as_raw(self), hresult, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetErrorDescription)(::windows::core::Interface::as_raw(self), hresult, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CreateSettingsIdentity(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -298,10 +296,7 @@ pub struct ISettingsEngine_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub GetNamespaces: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: WcmNamespaceEnumerationFlags, reserved: *const ::core::ffi::c_void, namespaces: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetNamespace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, settingsid: *mut ::core::ffi::c_void, access: WcmNamespaceAccess, reserved: *const ::core::ffi::c_void, namespaceitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetErrorDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hresult: i32, message: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetErrorDescription: usize, + pub GetErrorDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hresult: i32, message: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub CreateSettingsIdentity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, settingsid: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetStoreStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reserved: *const ::core::ffi::c_void, status: *mut WcmUserStatus) -> ::windows::core::HRESULT, pub LoadStore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: u32) -> ::windows::core::HRESULT, @@ -326,14 +321,12 @@ pub struct ISettingsEngine_Vtbl { #[repr(transparent)] pub struct ISettingsIdentity(::windows::core::IUnknown); impl ISettingsIdentity { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetAttribute<'a, P0>(&self, reserved: *const ::core::ffi::c_void, name: P0) -> ::windows::core::Result + pub unsafe fn GetAttribute<'a, P0>(&self, reserved: *const ::core::ffi::c_void, name: P0) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::PCWSTR>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetAttribute)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(reserved), name.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetAttribute)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(reserved), name.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetAttribute<'a, P0, P1>(&self, reserved: *const ::core::ffi::c_void, name: P0, value: P1) -> ::windows::core::Result<()> where @@ -389,10 +382,7 @@ unsafe impl ::windows::core::Interface for ISettingsIdentity { #[doc(hidden)] pub struct ISettingsIdentity_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reserved: *const ::core::ffi::c_void, name: ::windows::core::PCWSTR, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetAttribute: usize, + pub GetAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reserved: *const ::core::ffi::c_void, name: ::windows::core::PCWSTR, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reserved: *const ::core::ffi::c_void, name: ::windows::core::PCWSTR, value: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, pub GetFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: *mut u32) -> ::windows::core::HRESULT, pub SetFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: u32) -> ::windows::core::HRESULT, @@ -401,11 +391,9 @@ pub struct ISettingsIdentity_Vtbl { #[repr(transparent)] pub struct ISettingsItem(::windows::core::IUnknown); impl ISettingsItem { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self) -> ::windows::core::Result { + pub unsafe fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -469,9 +457,7 @@ impl ISettingsItem { { (::windows::core::Interface::vtable(self).RemoveSettingByPath)(::windows::core::Interface::as_raw(self), path.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetListKeyInformation(&self, keyname: &mut super::super::Foundation::BSTR, datatype: &mut WcmDataType) -> ::windows::core::Result<()> { + pub unsafe fn GetListKeyInformation(&self, keyname: &mut ::windows::core::BSTR, datatype: &mut WcmDataType) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetListKeyInformation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(keyname), ::core::mem::transmute(datatype)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] @@ -499,11 +485,9 @@ impl ISettingsItem { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetAttribute)(::windows::core::Interface::as_raw(self), name.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPath(&self) -> ::windows::core::Result { + pub unsafe fn GetPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetRestrictionFacets(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -561,10 +545,7 @@ unsafe impl ::windows::core::Interface for ISettingsItem { #[doc(hidden)] pub struct ISettingsItem_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetName: usize, + pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub GetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -586,10 +567,7 @@ pub struct ISettingsItem_Vtbl { pub GetSettingByPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::windows::core::PCWSTR, setting: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub CreateSettingByPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::windows::core::PCWSTR, setting: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub RemoveSettingByPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetListKeyInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, keyname: *mut super::super::Foundation::BSTR, datatype: *mut WcmDataType) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetListKeyInformation: usize, + pub GetListKeyInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, keyname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, datatype: *mut WcmDataType) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub CreateListElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, keydata: *const super::Com::VARIANT, child: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -600,10 +578,7 @@ pub struct ISettingsItem_Vtbl { pub GetAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::windows::core::PCWSTR, value: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetAttribute: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPath: usize, + pub GetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetRestrictionFacets: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, restrictionfacets: *mut WcmRestrictionFacets) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub GetRestriction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, restrictionfacet: WcmRestrictionFacets, facetdata: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, @@ -722,21 +697,17 @@ pub struct ISettingsNamespace_Vtbl { #[repr(transparent)] pub struct ISettingsResult(::windows::core::IUnknown); impl ISettingsResult { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDescription(&self) -> ::windows::core::Result { + pub unsafe fn GetDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetErrorCode(&self) -> ::windows::core::Result<::windows::core::HRESULT> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetErrorCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::HRESULT>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetContextDescription(&self) -> ::windows::core::Result { + pub unsafe fn GetContextDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetContextDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetContextDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetLine(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -746,11 +717,9 @@ impl ISettingsResult { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetColumn)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetSource(&self) -> ::windows::core::Result { + pub unsafe fn GetSource(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetSource)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetSource)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -792,21 +761,12 @@ unsafe impl ::windows::core::Interface for ISettingsResult { #[doc(hidden)] pub struct ISettingsResult_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDescription: usize, + pub GetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetErrorCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hrout: *mut ::windows::core::HRESULT) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetContextDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetContextDescription: usize, + pub GetContextDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetLine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwline: *mut u32) -> ::windows::core::HRESULT, pub GetColumn: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwcolumn: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, file: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetSource: usize, + pub GetSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, file: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_SettingsManagementInfrastructure\"`*"] #[repr(transparent)] @@ -819,11 +779,9 @@ impl ITargetInfo { pub unsafe fn SetTargetMode(&self, targetmode: WcmTargetMode) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetTargetMode)(::windows::core::Interface::as_raw(self), targetmode).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetTemporaryStoreLocation(&self) -> ::windows::core::Result { + pub unsafe fn GetTemporaryStoreLocation(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetTemporaryStoreLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetTemporaryStoreLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetTemporaryStoreLocation<'a, P0>(&self, temporarystorelocation: P0) -> ::windows::core::Result<()> where @@ -831,20 +789,16 @@ impl ITargetInfo { { (::windows::core::Interface::vtable(self).SetTemporaryStoreLocation)(::windows::core::Interface::as_raw(self), temporarystorelocation.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetTargetID(&self) -> ::windows::core::Result { + pub unsafe fn GetTargetID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetTargetID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetTargetID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetTargetID(&self, targetid: ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetTargetID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(targetid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetTargetProcessorArchitecture(&self) -> ::windows::core::Result { + pub unsafe fn GetTargetProcessorArchitecture(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetTargetProcessorArchitecture)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetTargetProcessorArchitecture)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetTargetProcessorArchitecture<'a, P0>(&self, processorarchitecture: P0) -> ::windows::core::Result<()> where @@ -854,13 +808,13 @@ impl ITargetInfo { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetProperty<'a, P0, P1>(&self, offline: P0, property: P1) -> ::windows::core::Result + pub unsafe fn GetProperty<'a, P0, P1>(&self, offline: P0, property: P1) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into, P1: ::std::convert::Into<::windows::core::PCWSTR>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetProperty)(::windows::core::Interface::as_raw(self), offline.into(), property.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetProperty)(::windows::core::Interface::as_raw(self), offline.into(), property.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -878,23 +832,23 @@ impl ITargetInfo { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExpandTarget<'a, P0, P1>(&self, offline: P0, location: P1) -> ::windows::core::Result + pub unsafe fn ExpandTarget<'a, P0, P1>(&self, offline: P0, location: P1) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into, P1: ::std::convert::Into<::windows::core::PCWSTR>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ExpandTarget)(::windows::core::Interface::as_raw(self), offline.into(), location.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ExpandTarget)(::windows::core::Interface::as_raw(self), offline.into(), location.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExpandTargetPath<'a, P0, P1>(&self, offline: P0, location: P1) -> ::windows::core::Result + pub unsafe fn ExpandTargetPath<'a, P0, P1>(&self, offline: P0, location: P1) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into, P1: ::std::convert::Into<::windows::core::PCWSTR>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ExpandTargetPath)(::windows::core::Interface::as_raw(self), offline.into(), location.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ExpandTargetPath)(::windows::core::Interface::as_raw(self), offline.into(), location.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetModulePath<'a, P0, P1>(&self, module: P0, path: P1) -> ::windows::core::Result<()> where @@ -918,15 +872,13 @@ impl ITargetInfo { { (::windows::core::Interface::vtable(self).SetWow64Context)(::windows::core::Interface::as_raw(self), installermodule.into(), ::core::mem::transmute(wow64context)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TranslateWow64<'a, P0, P1>(&self, clientarchitecture: P0, value: P1) -> ::windows::core::Result + pub unsafe fn TranslateWow64<'a, P0, P1>(&self, clientarchitecture: P0, value: P1) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::PCWSTR>, P1: ::std::convert::Into<::windows::core::PCWSTR>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TranslateWow64)(::windows::core::Interface::as_raw(self), clientarchitecture.into(), value.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TranslateWow64)(::windows::core::Interface::as_raw(self), clientarchitecture.into(), value.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetSchemaHiveLocation<'a, P0>(&self, pwzhivedir: P0) -> ::windows::core::Result<()> where @@ -934,11 +886,9 @@ impl ITargetInfo { { (::windows::core::Interface::vtable(self).SetSchemaHiveLocation)(::windows::core::Interface::as_raw(self), pwzhivedir.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetSchemaHiveLocation(&self) -> ::windows::core::Result { + pub unsafe fn GetSchemaHiveLocation(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetSchemaHiveLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetSchemaHiveLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetSchemaHiveMountName<'a, P0>(&self, pwzmountname: P0) -> ::windows::core::Result<()> where @@ -946,11 +896,9 @@ impl ITargetInfo { { (::windows::core::Interface::vtable(self).SetSchemaHiveMountName)(::windows::core::Interface::as_raw(self), pwzmountname.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetSchemaHiveMountName(&self) -> ::windows::core::Result { + pub unsafe fn GetSchemaHiveMountName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetSchemaHiveMountName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetSchemaHiveMountName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -994,23 +942,14 @@ pub struct ITargetInfo_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub GetTargetMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetmode: *mut WcmTargetMode) -> ::windows::core::HRESULT, pub SetTargetMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetmode: WcmTargetMode) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetTemporaryStoreLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, temporarystorelocation: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetTemporaryStoreLocation: usize, + pub GetTemporaryStoreLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, temporarystorelocation: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetTemporaryStoreLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, temporarystorelocation: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetTargetID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetTargetID: usize, + pub GetTargetID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetTargetID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, targetid: ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetTargetProcessorArchitecture: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, processorarchitecture: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetTargetProcessorArchitecture: usize, + pub GetTargetProcessorArchitecture: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, processorarchitecture: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetTargetProcessorArchitecture: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, processorarchitecture: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub GetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offline: super::super::Foundation::BOOL, property: ::windows::core::PCWSTR, value: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub GetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offline: super::super::Foundation::BOOL, property: ::windows::core::PCWSTR, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] GetProperty: usize, #[cfg(feature = "Win32_Foundation")] @@ -1019,11 +958,11 @@ pub struct ITargetInfo_Vtbl { SetProperty: usize, pub GetEnumerator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enumerator: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub ExpandTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offline: super::super::Foundation::BOOL, location: ::windows::core::PCWSTR, expandedlocation: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub ExpandTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offline: super::super::Foundation::BOOL, location: ::windows::core::PCWSTR, expandedlocation: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] ExpandTarget: usize, #[cfg(feature = "Win32_Foundation")] - pub ExpandTargetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offline: super::super::Foundation::BOOL, location: ::windows::core::PCWSTR, expandedlocation: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub ExpandTargetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offline: super::super::Foundation::BOOL, location: ::windows::core::PCWSTR, expandedlocation: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] ExpandTargetPath: usize, pub SetModulePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, module: ::windows::core::PCWSTR, path: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, @@ -1032,20 +971,11 @@ pub struct ITargetInfo_Vtbl { #[cfg(not(feature = "Win32_Foundation"))] LoadModule: usize, pub SetWow64Context: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, installermodule: ::windows::core::PCWSTR, wow64context: *const u8) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub TranslateWow64: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clientarchitecture: ::windows::core::PCWSTR, value: ::windows::core::PCWSTR, translatedvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TranslateWow64: usize, + pub TranslateWow64: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clientarchitecture: ::windows::core::PCWSTR, value: ::windows::core::PCWSTR, translatedvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetSchemaHiveLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwzhivedir: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetSchemaHiveLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phivelocation: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetSchemaHiveLocation: usize, + pub GetSchemaHiveLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phivelocation: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetSchemaHiveMountName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pwzmountname: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetSchemaHiveMountName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmountname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetSchemaHiveMountName: usize, + pub GetSchemaHiveMountName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmountname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_SettingsManagementInfrastructure\"`*"] pub const LIMITED_VALIDATION_MODE: u32 = 1u32; diff --git a/crates/libs/windows/src/Windows/Win32/System/TaskScheduler/impl.rs b/crates/libs/windows/src/Windows/Win32/System/TaskScheduler/impl.rs index 68b2d327f1..94426e85c2 100644 --- a/crates/libs/windows/src/Windows/Win32/System/TaskScheduler/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/TaskScheduler/impl.rs @@ -1,7 +1,7 @@ #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IAction_Impl: Sized + super::Com::IDispatch_Impl { - fn Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetId(&self, id: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Id(&self, pid: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetId(&self, id: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Type(&self, ptype: *mut TASK_ACTION_TYPE) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -9,12 +9,12 @@ impl ::windows::core::RuntimeName for IAction {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IAction_Vtbl { pub const fn new, Impl: IAction_Impl, const OFFSET: isize>() -> IAction_Vtbl { - unsafe extern "system" fn Id, Impl: IAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Id, Impl: IAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Id(::core::mem::transmute_copy(&pid)).into() } - unsafe extern "system" fn SetId, Impl: IAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, id: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetId, Impl: IAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, id: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetId(::core::mem::transmute(&id)).into() @@ -40,13 +40,13 @@ pub trait IActionCollection_Impl: Sized + super::Com::IDispatch_Impl { fn Count(&self, pcount: *mut i32) -> ::windows::core::Result<()>; fn get_Item(&self, index: i32) -> ::windows::core::Result; fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; - fn XmlText(&self, ptext: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetXmlText(&self, text: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn XmlText(&self, ptext: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetXmlText(&self, text: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Create(&self, r#type: TASK_ACTION_TYPE) -> ::windows::core::Result; fn Remove(&self, index: &super::Com::VARIANT) -> ::windows::core::Result<()>; fn Clear(&self) -> ::windows::core::Result<()>; - fn Context(&self, pcontext: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetContext(&self, context: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Context(&self, pcontext: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetContext(&self, context: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IActionCollection {} @@ -80,12 +80,12 @@ impl IActionCollection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn XmlText, Impl: IActionCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ptext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn XmlText, Impl: IActionCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ptext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.XmlText(::core::mem::transmute_copy(&ptext)).into() } - unsafe extern "system" fn SetXmlText, Impl: IActionCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetXmlText, Impl: IActionCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetXmlText(::core::mem::transmute(&text)).into() @@ -111,12 +111,12 @@ impl IActionCollection_Vtbl { let this = (*this).get_impl(); this.Clear().into() } - unsafe extern "system" fn Context, Impl: IActionCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcontext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Context, Impl: IActionCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcontext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Context(::core::mem::transmute_copy(&pcontext)).into() } - unsafe extern "system" fn SetContext, Impl: IActionCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, context: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetContext, Impl: IActionCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, context: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetContext(::core::mem::transmute(&context)).into() @@ -141,20 +141,20 @@ impl IActionCollection_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IBootTrigger_Impl: Sized + super::Com::IDispatch_Impl + ITrigger_Impl { - fn Delay(&self, pdelay: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetDelay(&self, delay: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Delay(&self, pdelay: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetDelay(&self, delay: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IBootTrigger {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IBootTrigger_Vtbl { pub const fn new, Impl: IBootTrigger_Impl, const OFFSET: isize>() -> IBootTrigger_Vtbl { - unsafe extern "system" fn Delay, Impl: IBootTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdelay: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Delay, Impl: IBootTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdelay: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Delay(::core::mem::transmute_copy(&pdelay)).into() } - unsafe extern "system" fn SetDelay, Impl: IBootTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, delay: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDelay, Impl: IBootTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, delay: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDelay(::core::mem::transmute(&delay)).into() @@ -167,32 +167,32 @@ impl IBootTrigger_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IComHandlerAction_Impl: Sized + super::Com::IDispatch_Impl + IAction_Impl { - fn ClassId(&self, pclsid: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetClassId(&self, clsid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Data(&self, pdata: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetData(&self, data: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ClassId(&self, pclsid: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetClassId(&self, clsid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Data(&self, pdata: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetData(&self, data: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IComHandlerAction {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IComHandlerAction_Vtbl { pub const fn new, Impl: IComHandlerAction_Impl, const OFFSET: isize>() -> IComHandlerAction_Vtbl { - unsafe extern "system" fn ClassId, Impl: IComHandlerAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pclsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ClassId, Impl: IComHandlerAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pclsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ClassId(::core::mem::transmute_copy(&pclsid)).into() } - unsafe extern "system" fn SetClassId, Impl: IComHandlerAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, clsid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetClassId, Impl: IComHandlerAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, clsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetClassId(::core::mem::transmute(&clsid)).into() } - unsafe extern "system" fn Data, Impl: IComHandlerAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Data, Impl: IComHandlerAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Data(::core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn SetData, Impl: IComHandlerAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetData, Impl: IComHandlerAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetData(::core::mem::transmute(&data)).into() @@ -213,8 +213,8 @@ impl IComHandlerAction_Vtbl { pub trait IDailyTrigger_Impl: Sized + super::Com::IDispatch_Impl + ITrigger_Impl { fn DaysInterval(&self, pdays: *mut i16) -> ::windows::core::Result<()>; fn SetDaysInterval(&self, days: i16) -> ::windows::core::Result<()>; - fn RandomDelay(&self, prandomdelay: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetRandomDelay(&self, randomdelay: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn RandomDelay(&self, prandomdelay: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetRandomDelay(&self, randomdelay: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IDailyTrigger {} @@ -231,12 +231,12 @@ impl IDailyTrigger_Vtbl { let this = (*this).get_impl(); this.SetDaysInterval(::core::mem::transmute_copy(&days)).into() } - unsafe extern "system" fn RandomDelay, Impl: IDailyTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, prandomdelay: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RandomDelay, Impl: IDailyTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, prandomdelay: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RandomDelay(::core::mem::transmute_copy(&prandomdelay)).into() } - unsafe extern "system" fn SetRandomDelay, Impl: IDailyTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, randomdelay: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetRandomDelay, Impl: IDailyTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, randomdelay: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetRandomDelay(::core::mem::transmute(&randomdelay)).into() @@ -255,24 +255,24 @@ impl IDailyTrigger_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IEmailAction_Impl: Sized + super::Com::IDispatch_Impl + IAction_Impl { - fn Server(&self, pserver: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetServer(&self, server: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Subject(&self, psubject: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetSubject(&self, subject: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn To(&self, pto: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetTo(&self, to: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Cc(&self, pcc: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetCc(&self, cc: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Bcc(&self, pbcc: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetBcc(&self, bcc: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ReplyTo(&self, preplyto: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetReplyTo(&self, replyto: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn From(&self, pfrom: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetFrom(&self, from: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Server(&self, pserver: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetServer(&self, server: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Subject(&self, psubject: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetSubject(&self, subject: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn To(&self, pto: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetTo(&self, to: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Cc(&self, pcc: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetCc(&self, cc: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Bcc(&self, pbcc: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetBcc(&self, bcc: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ReplyTo(&self, preplyto: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetReplyTo(&self, replyto: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn From(&self, pfrom: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetFrom(&self, from: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn HeaderFields(&self) -> ::windows::core::Result; fn SetHeaderFields(&self, pheaderfields: &::core::option::Option) -> ::windows::core::Result<()>; - fn Body(&self, pbody: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetBody(&self, body: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Body(&self, pbody: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetBody(&self, body: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Attachments(&self, pattachements: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::Result<()>; fn SetAttachments(&self, pattachements: *mut super::Com::SAFEARRAY) -> ::windows::core::Result<()>; } @@ -281,72 +281,72 @@ impl ::windows::core::RuntimeName for IEmailAction {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IEmailAction_Vtbl { pub const fn new, Impl: IEmailAction_Impl, const OFFSET: isize>() -> IEmailAction_Vtbl { - unsafe extern "system" fn Server, Impl: IEmailAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pserver: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Server, Impl: IEmailAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pserver: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Server(::core::mem::transmute_copy(&pserver)).into() } - unsafe extern "system" fn SetServer, Impl: IEmailAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, server: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetServer, Impl: IEmailAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, server: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetServer(::core::mem::transmute(&server)).into() } - unsafe extern "system" fn Subject, Impl: IEmailAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, psubject: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Subject, Impl: IEmailAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, psubject: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Subject(::core::mem::transmute_copy(&psubject)).into() } - unsafe extern "system" fn SetSubject, Impl: IEmailAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, subject: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSubject, Impl: IEmailAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, subject: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSubject(::core::mem::transmute(&subject)).into() } - unsafe extern "system" fn To, Impl: IEmailAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pto: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn To, Impl: IEmailAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pto: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.To(::core::mem::transmute_copy(&pto)).into() } - unsafe extern "system" fn SetTo, Impl: IEmailAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, to: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetTo, Impl: IEmailAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, to: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetTo(::core::mem::transmute(&to)).into() } - unsafe extern "system" fn Cc, Impl: IEmailAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcc: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Cc, Impl: IEmailAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcc: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Cc(::core::mem::transmute_copy(&pcc)).into() } - unsafe extern "system" fn SetCc, Impl: IEmailAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, cc: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCc, Impl: IEmailAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, cc: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCc(::core::mem::transmute(&cc)).into() } - unsafe extern "system" fn Bcc, Impl: IEmailAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbcc: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Bcc, Impl: IEmailAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbcc: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Bcc(::core::mem::transmute_copy(&pbcc)).into() } - unsafe extern "system" fn SetBcc, Impl: IEmailAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bcc: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetBcc, Impl: IEmailAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bcc: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetBcc(::core::mem::transmute(&bcc)).into() } - unsafe extern "system" fn ReplyTo, Impl: IEmailAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, preplyto: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ReplyTo, Impl: IEmailAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, preplyto: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ReplyTo(::core::mem::transmute_copy(&preplyto)).into() } - unsafe extern "system" fn SetReplyTo, Impl: IEmailAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, replyto: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetReplyTo, Impl: IEmailAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, replyto: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetReplyTo(::core::mem::transmute(&replyto)).into() } - unsafe extern "system" fn From, Impl: IEmailAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfrom: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn From, Impl: IEmailAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfrom: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.From(::core::mem::transmute_copy(&pfrom)).into() } - unsafe extern "system" fn SetFrom, Impl: IEmailAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, from: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetFrom, Impl: IEmailAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, from: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetFrom(::core::mem::transmute(&from)).into() @@ -367,12 +367,12 @@ impl IEmailAction_Vtbl { let this = (*this).get_impl(); this.SetHeaderFields(::core::mem::transmute(&pheaderfields)).into() } - unsafe extern "system" fn Body, Impl: IEmailAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbody: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Body, Impl: IEmailAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbody: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Body(::core::mem::transmute_copy(&pbody)).into() } - unsafe extern "system" fn SetBody, Impl: IEmailAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, body: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetBody, Impl: IEmailAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, body: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetBody(::core::mem::transmute(&body)).into() @@ -464,10 +464,10 @@ impl IEnumWorkItems_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IEventTrigger_Impl: Sized + super::Com::IDispatch_Impl + ITrigger_Impl { - fn Subscription(&self, pquery: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetSubscription(&self, query: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Delay(&self, pdelay: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetDelay(&self, delay: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Subscription(&self, pquery: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetSubscription(&self, query: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Delay(&self, pdelay: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetDelay(&self, delay: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn ValueQueries(&self) -> ::windows::core::Result; fn SetValueQueries(&self, pnamedxpaths: &::core::option::Option) -> ::windows::core::Result<()>; } @@ -476,22 +476,22 @@ impl ::windows::core::RuntimeName for IEventTrigger {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IEventTrigger_Vtbl { pub const fn new, Impl: IEventTrigger_Impl, const OFFSET: isize>() -> IEventTrigger_Vtbl { - unsafe extern "system" fn Subscription, Impl: IEventTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pquery: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Subscription, Impl: IEventTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pquery: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Subscription(::core::mem::transmute_copy(&pquery)).into() } - unsafe extern "system" fn SetSubscription, Impl: IEventTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, query: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSubscription, Impl: IEventTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, query: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSubscription(::core::mem::transmute(&query)).into() } - unsafe extern "system" fn Delay, Impl: IEventTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdelay: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Delay, Impl: IEventTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdelay: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Delay(::core::mem::transmute_copy(&pdelay)).into() } - unsafe extern "system" fn SetDelay, Impl: IEventTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, delay: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDelay, Impl: IEventTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, delay: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDelay(::core::mem::transmute(&delay)).into() @@ -528,44 +528,44 @@ impl IEventTrigger_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IExecAction_Impl: Sized + super::Com::IDispatch_Impl + IAction_Impl { - fn Path(&self, ppath: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetPath(&self, path: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Arguments(&self, pargument: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetArguments(&self, argument: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn WorkingDirectory(&self, pworkingdirectory: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetWorkingDirectory(&self, workingdirectory: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Path(&self, ppath: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetPath(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Arguments(&self, pargument: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetArguments(&self, argument: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn WorkingDirectory(&self, pworkingdirectory: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetWorkingDirectory(&self, workingdirectory: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IExecAction {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IExecAction_Vtbl { pub const fn new, Impl: IExecAction_Impl, const OFFSET: isize>() -> IExecAction_Vtbl { - unsafe extern "system" fn Path, Impl: IExecAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Path, Impl: IExecAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Path(::core::mem::transmute_copy(&ppath)).into() } - unsafe extern "system" fn SetPath, Impl: IExecAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPath, Impl: IExecAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPath(::core::mem::transmute(&path)).into() } - unsafe extern "system" fn Arguments, Impl: IExecAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pargument: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Arguments, Impl: IExecAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pargument: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Arguments(::core::mem::transmute_copy(&pargument)).into() } - unsafe extern "system" fn SetArguments, Impl: IExecAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, argument: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetArguments, Impl: IExecAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, argument: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetArguments(::core::mem::transmute(&argument)).into() } - unsafe extern "system" fn WorkingDirectory, Impl: IExecAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pworkingdirectory: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn WorkingDirectory, Impl: IExecAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pworkingdirectory: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.WorkingDirectory(::core::mem::transmute_copy(&pworkingdirectory)).into() } - unsafe extern "system" fn SetWorkingDirectory, Impl: IExecAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, workingdirectory: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetWorkingDirectory, Impl: IExecAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, workingdirectory: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetWorkingDirectory(::core::mem::transmute(&workingdirectory)).into() @@ -616,10 +616,10 @@ impl IExecAction2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IIdleSettings_Impl: Sized + super::Com::IDispatch_Impl { - fn IdleDuration(&self, pdelay: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetIdleDuration(&self, delay: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn WaitTimeout(&self, ptimeout: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetWaitTimeout(&self, timeout: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn IdleDuration(&self, pdelay: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetIdleDuration(&self, delay: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn WaitTimeout(&self, ptimeout: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetWaitTimeout(&self, timeout: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn StopOnIdleEnd(&self, pstop: *mut i16) -> ::windows::core::Result<()>; fn SetStopOnIdleEnd(&self, stop: i16) -> ::windows::core::Result<()>; fn RestartOnIdle(&self, prestart: *mut i16) -> ::windows::core::Result<()>; @@ -630,22 +630,22 @@ impl ::windows::core::RuntimeName for IIdleSettings {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IIdleSettings_Vtbl { pub const fn new, Impl: IIdleSettings_Impl, const OFFSET: isize>() -> IIdleSettings_Vtbl { - unsafe extern "system" fn IdleDuration, Impl: IIdleSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdelay: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn IdleDuration, Impl: IIdleSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdelay: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.IdleDuration(::core::mem::transmute_copy(&pdelay)).into() } - unsafe extern "system" fn SetIdleDuration, Impl: IIdleSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, delay: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetIdleDuration, Impl: IIdleSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, delay: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetIdleDuration(::core::mem::transmute(&delay)).into() } - unsafe extern "system" fn WaitTimeout, Impl: IIdleSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ptimeout: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn WaitTimeout, Impl: IIdleSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ptimeout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.WaitTimeout(::core::mem::transmute_copy(&ptimeout)).into() } - unsafe extern "system" fn SetWaitTimeout, Impl: IIdleSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, timeout: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetWaitTimeout, Impl: IIdleSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, timeout: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetWaitTimeout(::core::mem::transmute(&timeout)).into() @@ -701,32 +701,32 @@ impl IIdleTrigger_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ILogonTrigger_Impl: Sized + super::Com::IDispatch_Impl + ITrigger_Impl { - fn Delay(&self, pdelay: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetDelay(&self, delay: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn UserId(&self, puser: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetUserId(&self, user: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Delay(&self, pdelay: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetDelay(&self, delay: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn UserId(&self, puser: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetUserId(&self, user: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ILogonTrigger {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ILogonTrigger_Vtbl { pub const fn new, Impl: ILogonTrigger_Impl, const OFFSET: isize>() -> ILogonTrigger_Vtbl { - unsafe extern "system" fn Delay, Impl: ILogonTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdelay: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Delay, Impl: ILogonTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdelay: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Delay(::core::mem::transmute_copy(&pdelay)).into() } - unsafe extern "system" fn SetDelay, Impl: ILogonTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, delay: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDelay, Impl: ILogonTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, delay: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDelay(::core::mem::transmute(&delay)).into() } - unsafe extern "system" fn UserId, Impl: ILogonTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, puser: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UserId, Impl: ILogonTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, puser: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.UserId(::core::mem::transmute_copy(&puser)).into() } - unsafe extern "system" fn SetUserId, Impl: ILogonTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, user: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetUserId, Impl: ILogonTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, user: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetUserId(::core::mem::transmute(&user)).into() @@ -745,10 +745,10 @@ impl ILogonTrigger_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IMaintenanceSettings_Impl: Sized + super::Com::IDispatch_Impl { - fn SetPeriod(&self, value: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Period(&self, target: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetDeadline(&self, value: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Deadline(&self, target: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetPeriod(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Period(&self, target: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetDeadline(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Deadline(&self, target: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn SetExclusive(&self, value: i16) -> ::windows::core::Result<()>; fn Exclusive(&self, target: *mut i16) -> ::windows::core::Result<()>; } @@ -757,22 +757,22 @@ impl ::windows::core::RuntimeName for IMaintenanceSettings {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IMaintenanceSettings_Vtbl { pub const fn new, Impl: IMaintenanceSettings_Impl, const OFFSET: isize>() -> IMaintenanceSettings_Vtbl { - unsafe extern "system" fn SetPeriod, Impl: IMaintenanceSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPeriod, Impl: IMaintenanceSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPeriod(::core::mem::transmute(&value)).into() } - unsafe extern "system" fn Period, Impl: IMaintenanceSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, target: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Period, Impl: IMaintenanceSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, target: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Period(::core::mem::transmute_copy(&target)).into() } - unsafe extern "system" fn SetDeadline, Impl: IMaintenanceSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDeadline, Impl: IMaintenanceSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDeadline(::core::mem::transmute(&value)).into() } - unsafe extern "system" fn Deadline, Impl: IMaintenanceSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, target: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Deadline, Impl: IMaintenanceSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, target: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Deadline(::core::mem::transmute_copy(&target)).into() @@ -811,8 +811,8 @@ pub trait IMonthlyDOWTrigger_Impl: Sized + super::Com::IDispatch_Impl + ITrigger fn SetMonthsOfYear(&self, months: i16) -> ::windows::core::Result<()>; fn RunOnLastWeekOfMonth(&self, plastweek: *mut i16) -> ::windows::core::Result<()>; fn SetRunOnLastWeekOfMonth(&self, lastweek: i16) -> ::windows::core::Result<()>; - fn RandomDelay(&self, prandomdelay: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetRandomDelay(&self, randomdelay: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn RandomDelay(&self, prandomdelay: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetRandomDelay(&self, randomdelay: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IMonthlyDOWTrigger {} @@ -859,12 +859,12 @@ impl IMonthlyDOWTrigger_Vtbl { let this = (*this).get_impl(); this.SetRunOnLastWeekOfMonth(::core::mem::transmute_copy(&lastweek)).into() } - unsafe extern "system" fn RandomDelay, Impl: IMonthlyDOWTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, prandomdelay: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RandomDelay, Impl: IMonthlyDOWTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, prandomdelay: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RandomDelay(::core::mem::transmute_copy(&prandomdelay)).into() } - unsafe extern "system" fn SetRandomDelay, Impl: IMonthlyDOWTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, randomdelay: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetRandomDelay, Impl: IMonthlyDOWTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, randomdelay: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetRandomDelay(::core::mem::transmute(&randomdelay)).into() @@ -895,8 +895,8 @@ pub trait IMonthlyTrigger_Impl: Sized + super::Com::IDispatch_Impl + ITrigger_Im fn SetMonthsOfYear(&self, months: i16) -> ::windows::core::Result<()>; fn RunOnLastDayOfMonth(&self, plastday: *mut i16) -> ::windows::core::Result<()>; fn SetRunOnLastDayOfMonth(&self, lastday: i16) -> ::windows::core::Result<()>; - fn RandomDelay(&self, prandomdelay: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetRandomDelay(&self, randomdelay: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn RandomDelay(&self, prandomdelay: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetRandomDelay(&self, randomdelay: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IMonthlyTrigger {} @@ -933,12 +933,12 @@ impl IMonthlyTrigger_Vtbl { let this = (*this).get_impl(); this.SetRunOnLastDayOfMonth(::core::mem::transmute_copy(&lastday)).into() } - unsafe extern "system" fn RandomDelay, Impl: IMonthlyTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, prandomdelay: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RandomDelay, Impl: IMonthlyTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, prandomdelay: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RandomDelay(::core::mem::transmute_copy(&prandomdelay)).into() } - unsafe extern "system" fn SetRandomDelay, Impl: IMonthlyTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, randomdelay: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetRandomDelay, Impl: IMonthlyTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, randomdelay: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetRandomDelay(::core::mem::transmute(&randomdelay)).into() @@ -961,32 +961,32 @@ impl IMonthlyTrigger_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait INetworkSettings_Impl: Sized + super::Com::IDispatch_Impl { - fn Name(&self, pname: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetName(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetId(&self, id: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Name(&self, pname: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Id(&self, pid: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetId(&self, id: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for INetworkSettings {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl INetworkSettings_Vtbl { pub const fn new, Impl: INetworkSettings_Impl, const OFFSET: isize>() -> INetworkSettings_Vtbl { - unsafe extern "system" fn Name, Impl: INetworkSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: INetworkSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Name(::core::mem::transmute_copy(&pname)).into() } - unsafe extern "system" fn SetName, Impl: INetworkSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: INetworkSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&name)).into() } - unsafe extern "system" fn Id, Impl: INetworkSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Id, Impl: INetworkSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Id(::core::mem::transmute_copy(&pid)).into() } - unsafe extern "system" fn SetId, Impl: INetworkSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, id: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetId, Impl: INetworkSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, id: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetId(::core::mem::transmute(&id)).into() @@ -1005,16 +1005,16 @@ impl INetworkSettings_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IPrincipal_Impl: Sized + super::Com::IDispatch_Impl { - fn Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetId(&self, id: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn DisplayName(&self, pname: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetDisplayName(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn UserId(&self, puser: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetUserId(&self, user: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Id(&self, pid: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetId(&self, id: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn DisplayName(&self, pname: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetDisplayName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn UserId(&self, puser: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetUserId(&self, user: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn LogonType(&self, plogon: *mut TASK_LOGON_TYPE) -> ::windows::core::Result<()>; fn SetLogonType(&self, logon: TASK_LOGON_TYPE) -> ::windows::core::Result<()>; - fn GroupId(&self, pgroup: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetGroupId(&self, group: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GroupId(&self, pgroup: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetGroupId(&self, group: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn RunLevel(&self, prunlevel: *mut TASK_RUNLEVEL_TYPE) -> ::windows::core::Result<()>; fn SetRunLevel(&self, runlevel: TASK_RUNLEVEL_TYPE) -> ::windows::core::Result<()>; } @@ -1023,32 +1023,32 @@ impl ::windows::core::RuntimeName for IPrincipal {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IPrincipal_Vtbl { pub const fn new, Impl: IPrincipal_Impl, const OFFSET: isize>() -> IPrincipal_Vtbl { - unsafe extern "system" fn Id, Impl: IPrincipal_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Id, Impl: IPrincipal_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Id(::core::mem::transmute_copy(&pid)).into() } - unsafe extern "system" fn SetId, Impl: IPrincipal_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, id: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetId, Impl: IPrincipal_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, id: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetId(::core::mem::transmute(&id)).into() } - unsafe extern "system" fn DisplayName, Impl: IPrincipal_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DisplayName, Impl: IPrincipal_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DisplayName(::core::mem::transmute_copy(&pname)).into() } - unsafe extern "system" fn SetDisplayName, Impl: IPrincipal_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDisplayName, Impl: IPrincipal_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDisplayName(::core::mem::transmute(&name)).into() } - unsafe extern "system" fn UserId, Impl: IPrincipal_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, puser: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UserId, Impl: IPrincipal_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, puser: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.UserId(::core::mem::transmute_copy(&puser)).into() } - unsafe extern "system" fn SetUserId, Impl: IPrincipal_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, user: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetUserId, Impl: IPrincipal_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, user: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetUserId(::core::mem::transmute(&user)).into() @@ -1063,12 +1063,12 @@ impl IPrincipal_Vtbl { let this = (*this).get_impl(); this.SetLogonType(::core::mem::transmute_copy(&logon)).into() } - unsafe extern "system" fn GroupId, Impl: IPrincipal_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pgroup: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GroupId, Impl: IPrincipal_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pgroup: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GroupId(::core::mem::transmute_copy(&pgroup)).into() } - unsafe extern "system" fn SetGroupId, Impl: IPrincipal_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, group: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetGroupId, Impl: IPrincipal_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, group: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetGroupId(::core::mem::transmute(&group)).into() @@ -1108,8 +1108,8 @@ pub trait IPrincipal2_Impl: Sized + super::Com::IDispatch_Impl { fn ProcessTokenSidType(&self, pprocesstokensidtype: *mut TASK_PROCESSTOKENSID_TYPE) -> ::windows::core::Result<()>; fn SetProcessTokenSidType(&self, processtokensidtype: TASK_PROCESSTOKENSID_TYPE) -> ::windows::core::Result<()>; fn RequiredPrivilegeCount(&self, pcount: *mut i32) -> ::windows::core::Result<()>; - fn get_RequiredPrivilege(&self, index: i32, pprivilege: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn AddRequiredPrivilege(&self, privilege: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn get_RequiredPrivilege(&self, index: i32, pprivilege: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn AddRequiredPrivilege(&self, privilege: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IPrincipal2 {} @@ -1131,12 +1131,12 @@ impl IPrincipal2_Vtbl { let this = (*this).get_impl(); this.RequiredPrivilegeCount(::core::mem::transmute_copy(&pcount)).into() } - unsafe extern "system" fn get_RequiredPrivilege, Impl: IPrincipal2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: i32, pprivilege: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_RequiredPrivilege, Impl: IPrincipal2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: i32, pprivilege: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_RequiredPrivilege(::core::mem::transmute_copy(&index), ::core::mem::transmute_copy(&pprivilege)).into() } - unsafe extern "system" fn AddRequiredPrivilege, Impl: IPrincipal2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, privilege: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddRequiredPrivilege, Impl: IPrincipal2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, privilege: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddRequiredPrivilege(::core::mem::transmute(&privilege)).into() @@ -1182,22 +1182,22 @@ impl IProvideTaskPage_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IRegisteredTask_Impl: Sized + super::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; - fn Path(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn State(&self) -> ::windows::core::Result; fn Enabled(&self) -> ::windows::core::Result; fn SetEnabled(&self, enabled: i16) -> ::windows::core::Result<()>; fn Run(&self, params: &super::Com::VARIANT) -> ::windows::core::Result; - fn RunEx(&self, params: &super::Com::VARIANT, flags: i32, sessionid: i32, user: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn RunEx(&self, params: &super::Com::VARIANT, flags: i32, sessionid: i32, user: &::windows::core::BSTR) -> ::windows::core::Result; fn GetInstances(&self, flags: i32) -> ::windows::core::Result; fn LastRunTime(&self) -> ::windows::core::Result; fn LastTaskResult(&self) -> ::windows::core::Result; fn NumberOfMissedRuns(&self) -> ::windows::core::Result; fn NextRunTime(&self) -> ::windows::core::Result; fn Definition(&self) -> ::windows::core::Result; - fn Xml(&self) -> ::windows::core::Result; - fn GetSecurityDescriptor(&self, securityinformation: i32) -> ::windows::core::Result; - fn SetSecurityDescriptor(&self, sddl: &super::super::Foundation::BSTR, flags: i32) -> ::windows::core::Result<()>; + fn Xml(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetSecurityDescriptor(&self, securityinformation: i32) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetSecurityDescriptor(&self, sddl: &::windows::core::BSTR, flags: i32) -> ::windows::core::Result<()>; fn Stop(&self, flags: i32) -> ::windows::core::Result<()>; fn GetRunTimes(&self, pststart: *const super::super::Foundation::SYSTEMTIME, pstend: *const super::super::Foundation::SYSTEMTIME, pcount: *mut u32, pruntimes: *mut *mut super::super::Foundation::SYSTEMTIME) -> ::windows::core::Result<()>; } @@ -1206,7 +1206,7 @@ impl ::windows::core::RuntimeName for IRegisteredTask {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IRegisteredTask_Vtbl { pub const fn new, Impl: IRegisteredTask_Impl, const OFFSET: isize>() -> IRegisteredTask_Vtbl { - unsafe extern "system" fn Name, Impl: IRegisteredTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IRegisteredTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -1217,7 +1217,7 @@ impl IRegisteredTask_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Path, Impl: IRegisteredTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Path, Impl: IRegisteredTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Path() { @@ -1266,7 +1266,7 @@ impl IRegisteredTask_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RunEx, Impl: IRegisteredTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, params: ::core::mem::ManuallyDrop, flags: i32, sessionid: i32, user: ::core::mem::ManuallyDrop, pprunningtask: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn RunEx, Impl: IRegisteredTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, params: ::core::mem::ManuallyDrop, flags: i32, sessionid: i32, user: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pprunningtask: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RunEx(::core::mem::transmute(¶ms), ::core::mem::transmute_copy(&flags), ::core::mem::transmute_copy(&sessionid), ::core::mem::transmute(&user)) { @@ -1343,7 +1343,7 @@ impl IRegisteredTask_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Xml, Impl: IRegisteredTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pxml: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Xml, Impl: IRegisteredTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pxml: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Xml() { @@ -1354,7 +1354,7 @@ impl IRegisteredTask_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetSecurityDescriptor, Impl: IRegisteredTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, securityinformation: i32, psddl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSecurityDescriptor, Impl: IRegisteredTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, securityinformation: i32, psddl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetSecurityDescriptor(::core::mem::transmute_copy(&securityinformation)) { @@ -1365,7 +1365,7 @@ impl IRegisteredTask_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSecurityDescriptor, Impl: IRegisteredTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sddl: ::core::mem::ManuallyDrop, flags: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSecurityDescriptor, Impl: IRegisteredTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sddl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSecurityDescriptor(::core::mem::transmute(&sddl), ::core::mem::transmute_copy(&flags)).into() @@ -1463,96 +1463,96 @@ impl IRegisteredTaskCollection_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IRegistrationInfo_Impl: Sized + super::Com::IDispatch_Impl { - fn Description(&self, pdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetDescription(&self, description: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Author(&self, pauthor: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetAuthor(&self, author: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Version(&self, pversion: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetVersion(&self, version: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Date(&self, pdate: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetDate(&self, date: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Documentation(&self, pdocumentation: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetDocumentation(&self, documentation: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn XmlText(&self, ptext: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetXmlText(&self, text: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn URI(&self, puri: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetURI(&self, uri: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Description(&self, pdescription: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Author(&self, pauthor: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetAuthor(&self, author: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Version(&self, pversion: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetVersion(&self, version: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Date(&self, pdate: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetDate(&self, date: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Documentation(&self, pdocumentation: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetDocumentation(&self, documentation: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn XmlText(&self, ptext: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetXmlText(&self, text: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn URI(&self, puri: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetURI(&self, uri: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SecurityDescriptor(&self, psddl: *mut super::Com::VARIANT) -> ::windows::core::Result<()>; fn SetSecurityDescriptor(&self, sddl: &super::Com::VARIANT) -> ::windows::core::Result<()>; - fn Source(&self, psource: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetSource(&self, source: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Source(&self, psource: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetSource(&self, source: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IRegistrationInfo {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IRegistrationInfo_Vtbl { pub const fn new, Impl: IRegistrationInfo_Impl, const OFFSET: isize>() -> IRegistrationInfo_Vtbl { - unsafe extern "system" fn Description, Impl: IRegistrationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IRegistrationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Description(::core::mem::transmute_copy(&pdescription)).into() } - unsafe extern "system" fn SetDescription, Impl: IRegistrationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDescription, Impl: IRegistrationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDescription(::core::mem::transmute(&description)).into() } - unsafe extern "system" fn Author, Impl: IRegistrationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pauthor: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Author, Impl: IRegistrationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pauthor: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Author(::core::mem::transmute_copy(&pauthor)).into() } - unsafe extern "system" fn SetAuthor, Impl: IRegistrationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, author: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetAuthor, Impl: IRegistrationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, author: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetAuthor(::core::mem::transmute(&author)).into() } - unsafe extern "system" fn Version, Impl: IRegistrationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pversion: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Version, Impl: IRegistrationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pversion: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Version(::core::mem::transmute_copy(&pversion)).into() } - unsafe extern "system" fn SetVersion, Impl: IRegistrationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, version: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetVersion, Impl: IRegistrationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, version: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetVersion(::core::mem::transmute(&version)).into() } - unsafe extern "system" fn Date, Impl: IRegistrationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdate: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Date, Impl: IRegistrationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdate: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Date(::core::mem::transmute_copy(&pdate)).into() } - unsafe extern "system" fn SetDate, Impl: IRegistrationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, date: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDate, Impl: IRegistrationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, date: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDate(::core::mem::transmute(&date)).into() } - unsafe extern "system" fn Documentation, Impl: IRegistrationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdocumentation: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Documentation, Impl: IRegistrationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdocumentation: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Documentation(::core::mem::transmute_copy(&pdocumentation)).into() } - unsafe extern "system" fn SetDocumentation, Impl: IRegistrationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, documentation: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDocumentation, Impl: IRegistrationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, documentation: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDocumentation(::core::mem::transmute(&documentation)).into() } - unsafe extern "system" fn XmlText, Impl: IRegistrationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ptext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn XmlText, Impl: IRegistrationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ptext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.XmlText(::core::mem::transmute_copy(&ptext)).into() } - unsafe extern "system" fn SetXmlText, Impl: IRegistrationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetXmlText, Impl: IRegistrationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetXmlText(::core::mem::transmute(&text)).into() } - unsafe extern "system" fn URI, Impl: IRegistrationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, puri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn URI, Impl: IRegistrationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, puri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.URI(::core::mem::transmute_copy(&puri)).into() } - unsafe extern "system" fn SetURI, Impl: IRegistrationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uri: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetURI, Impl: IRegistrationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uri: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetURI(::core::mem::transmute(&uri)).into() @@ -1567,12 +1567,12 @@ impl IRegistrationInfo_Vtbl { let this = (*this).get_impl(); this.SetSecurityDescriptor(::core::mem::transmute(&sddl)).into() } - unsafe extern "system" fn Source, Impl: IRegistrationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, psource: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Source, Impl: IRegistrationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, psource: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Source(::core::mem::transmute_copy(&psource)).into() } - unsafe extern "system" fn SetSource, Impl: IRegistrationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, source: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSource, Impl: IRegistrationInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, source: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSource(::core::mem::transmute(&source)).into() @@ -1605,20 +1605,20 @@ impl IRegistrationInfo_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IRegistrationTrigger_Impl: Sized + super::Com::IDispatch_Impl + ITrigger_Impl { - fn Delay(&self, pdelay: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetDelay(&self, delay: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Delay(&self, pdelay: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetDelay(&self, delay: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IRegistrationTrigger {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IRegistrationTrigger_Vtbl { pub const fn new, Impl: IRegistrationTrigger_Impl, const OFFSET: isize>() -> IRegistrationTrigger_Vtbl { - unsafe extern "system" fn Delay, Impl: IRegistrationTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdelay: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Delay, Impl: IRegistrationTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdelay: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Delay(::core::mem::transmute_copy(&pdelay)).into() } - unsafe extern "system" fn SetDelay, Impl: IRegistrationTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, delay: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDelay, Impl: IRegistrationTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, delay: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDelay(::core::mem::transmute(&delay)).into() @@ -1631,10 +1631,10 @@ impl IRegistrationTrigger_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IRepetitionPattern_Impl: Sized + super::Com::IDispatch_Impl { - fn Interval(&self, pinterval: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetInterval(&self, interval: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Duration(&self, pduration: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetDuration(&self, duration: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Interval(&self, pinterval: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetInterval(&self, interval: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Duration(&self, pduration: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetDuration(&self, duration: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn StopAtDurationEnd(&self, pstop: *mut i16) -> ::windows::core::Result<()>; fn SetStopAtDurationEnd(&self, stop: i16) -> ::windows::core::Result<()>; } @@ -1643,22 +1643,22 @@ impl ::windows::core::RuntimeName for IRepetitionPattern {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IRepetitionPattern_Vtbl { pub const fn new, Impl: IRepetitionPattern_Impl, const OFFSET: isize>() -> IRepetitionPattern_Vtbl { - unsafe extern "system" fn Interval, Impl: IRepetitionPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pinterval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Interval, Impl: IRepetitionPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pinterval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Interval(::core::mem::transmute_copy(&pinterval)).into() } - unsafe extern "system" fn SetInterval, Impl: IRepetitionPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, interval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetInterval, Impl: IRepetitionPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, interval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetInterval(::core::mem::transmute(&interval)).into() } - unsafe extern "system" fn Duration, Impl: IRepetitionPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pduration: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Duration, Impl: IRepetitionPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pduration: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Duration(::core::mem::transmute_copy(&pduration)).into() } - unsafe extern "system" fn SetDuration, Impl: IRepetitionPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, duration: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDuration, Impl: IRepetitionPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, duration: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDuration(::core::mem::transmute(&duration)).into() @@ -1689,11 +1689,11 @@ impl IRepetitionPattern_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IRunningTask_Impl: Sized + super::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; - fn InstanceGuid(&self) -> ::windows::core::Result; - fn Path(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn InstanceGuid(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn State(&self) -> ::windows::core::Result; - fn CurrentAction(&self) -> ::windows::core::Result; + fn CurrentAction(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Stop(&self) -> ::windows::core::Result<()>; fn Refresh(&self) -> ::windows::core::Result<()>; fn EnginePID(&self) -> ::windows::core::Result; @@ -1703,7 +1703,7 @@ impl ::windows::core::RuntimeName for IRunningTask {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IRunningTask_Vtbl { pub const fn new, Impl: IRunningTask_Impl, const OFFSET: isize>() -> IRunningTask_Vtbl { - unsafe extern "system" fn Name, Impl: IRunningTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IRunningTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -1714,7 +1714,7 @@ impl IRunningTask_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn InstanceGuid, Impl: IRunningTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pguid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn InstanceGuid, Impl: IRunningTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pguid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.InstanceGuid() { @@ -1725,7 +1725,7 @@ impl IRunningTask_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Path, Impl: IRunningTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Path, Impl: IRunningTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Path() { @@ -1747,7 +1747,7 @@ impl IRunningTask_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CurrentAction, Impl: IRunningTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CurrentAction, Impl: IRunningTask_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CurrentAction() { @@ -2143,10 +2143,10 @@ impl IScheduledWorkItem_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISessionStateChangeTrigger_Impl: Sized + super::Com::IDispatch_Impl + ITrigger_Impl { - fn Delay(&self, pdelay: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetDelay(&self, delay: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn UserId(&self, puser: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetUserId(&self, user: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Delay(&self, pdelay: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetDelay(&self, delay: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn UserId(&self, puser: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetUserId(&self, user: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn StateChange(&self, ptype: *mut TASK_SESSION_STATE_CHANGE_TYPE) -> ::windows::core::Result<()>; fn SetStateChange(&self, r#type: TASK_SESSION_STATE_CHANGE_TYPE) -> ::windows::core::Result<()>; } @@ -2155,22 +2155,22 @@ impl ::windows::core::RuntimeName for ISessionStateChangeTrigger {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ISessionStateChangeTrigger_Vtbl { pub const fn new, Impl: ISessionStateChangeTrigger_Impl, const OFFSET: isize>() -> ISessionStateChangeTrigger_Vtbl { - unsafe extern "system" fn Delay, Impl: ISessionStateChangeTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdelay: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Delay, Impl: ISessionStateChangeTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdelay: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Delay(::core::mem::transmute_copy(&pdelay)).into() } - unsafe extern "system" fn SetDelay, Impl: ISessionStateChangeTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, delay: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDelay, Impl: ISessionStateChangeTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, delay: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDelay(::core::mem::transmute(&delay)).into() } - unsafe extern "system" fn UserId, Impl: ISessionStateChangeTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, puser: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UserId, Impl: ISessionStateChangeTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, puser: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.UserId(::core::mem::transmute_copy(&puser)).into() } - unsafe extern "system" fn SetUserId, Impl: ISessionStateChangeTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, user: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetUserId, Impl: ISessionStateChangeTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, user: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetUserId(::core::mem::transmute(&user)).into() @@ -2201,32 +2201,32 @@ impl ISessionStateChangeTrigger_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IShowMessageAction_Impl: Sized + super::Com::IDispatch_Impl + IAction_Impl { - fn Title(&self, ptitle: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetTitle(&self, title: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn MessageBody(&self, pmessagebody: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetMessageBody(&self, messagebody: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Title(&self, ptitle: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetTitle(&self, title: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn MessageBody(&self, pmessagebody: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetMessageBody(&self, messagebody: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IShowMessageAction {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IShowMessageAction_Vtbl { pub const fn new, Impl: IShowMessageAction_Impl, const OFFSET: isize>() -> IShowMessageAction_Vtbl { - unsafe extern "system" fn Title, Impl: IShowMessageAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ptitle: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Title, Impl: IShowMessageAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ptitle: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Title(::core::mem::transmute_copy(&ptitle)).into() } - unsafe extern "system" fn SetTitle, Impl: IShowMessageAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, title: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetTitle, Impl: IShowMessageAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, title: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetTitle(::core::mem::transmute(&title)).into() } - unsafe extern "system" fn MessageBody, Impl: IShowMessageAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pmessagebody: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn MessageBody, Impl: IShowMessageAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pmessagebody: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.MessageBody(::core::mem::transmute_copy(&pmessagebody)).into() } - unsafe extern "system" fn SetMessageBody, Impl: IShowMessageAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, messagebody: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetMessageBody, Impl: IShowMessageAction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, messagebody: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetMessageBody(::core::mem::transmute(&messagebody)).into() @@ -2387,14 +2387,14 @@ pub trait ITaskDefinition_Impl: Sized + super::Com::IDispatch_Impl { fn SetTriggers(&self, ptriggers: &::core::option::Option) -> ::windows::core::Result<()>; fn Settings(&self) -> ::windows::core::Result; fn SetSettings(&self, psettings: &::core::option::Option) -> ::windows::core::Result<()>; - fn Data(&self, pdata: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetData(&self, data: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Data(&self, pdata: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetData(&self, data: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Principal(&self) -> ::windows::core::Result; fn SetPrincipal(&self, pprincipal: &::core::option::Option) -> ::windows::core::Result<()>; fn Actions(&self) -> ::windows::core::Result; fn SetActions(&self, pactions: &::core::option::Option) -> ::windows::core::Result<()>; - fn XmlText(&self, pxml: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetXmlText(&self, xml: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn XmlText(&self, pxml: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetXmlText(&self, xml: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ITaskDefinition {} @@ -2449,12 +2449,12 @@ impl ITaskDefinition_Vtbl { let this = (*this).get_impl(); this.SetSettings(::core::mem::transmute(&psettings)).into() } - unsafe extern "system" fn Data, Impl: ITaskDefinition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Data, Impl: ITaskDefinition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Data(::core::mem::transmute_copy(&pdata)).into() } - unsafe extern "system" fn SetData, Impl: ITaskDefinition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetData, Impl: ITaskDefinition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetData(::core::mem::transmute(&data)).into() @@ -2491,12 +2491,12 @@ impl ITaskDefinition_Vtbl { let this = (*this).get_impl(); this.SetActions(::core::mem::transmute(&pactions)).into() } - unsafe extern "system" fn XmlText, Impl: ITaskDefinition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pxml: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn XmlText, Impl: ITaskDefinition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pxml: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.XmlText(::core::mem::transmute_copy(&pxml)).into() } - unsafe extern "system" fn SetXmlText, Impl: ITaskDefinition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, xml: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetXmlText, Impl: ITaskDefinition_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, xml: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetXmlText(::core::mem::transmute(&xml)).into() @@ -2525,26 +2525,26 @@ impl ITaskDefinition_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ITaskFolder_Impl: Sized + super::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; - fn Path(&self) -> ::windows::core::Result; - fn GetFolder(&self, path: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetFolder(&self, path: &::windows::core::BSTR) -> ::windows::core::Result; fn GetFolders(&self, flags: i32) -> ::windows::core::Result; - fn CreateFolder(&self, subfoldername: &super::super::Foundation::BSTR, sddl: &super::Com::VARIANT) -> ::windows::core::Result; - fn DeleteFolder(&self, subfoldername: &super::super::Foundation::BSTR, flags: i32) -> ::windows::core::Result<()>; - fn GetTask(&self, path: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn CreateFolder(&self, subfoldername: &::windows::core::BSTR, sddl: &super::Com::VARIANT) -> ::windows::core::Result; + fn DeleteFolder(&self, subfoldername: &::windows::core::BSTR, flags: i32) -> ::windows::core::Result<()>; + fn GetTask(&self, path: &::windows::core::BSTR) -> ::windows::core::Result; fn GetTasks(&self, flags: i32) -> ::windows::core::Result; - fn DeleteTask(&self, name: &super::super::Foundation::BSTR, flags: i32) -> ::windows::core::Result<()>; - fn RegisterTask(&self, path: &super::super::Foundation::BSTR, xmltext: &super::super::Foundation::BSTR, flags: i32, userid: &super::Com::VARIANT, password: &super::Com::VARIANT, logontype: TASK_LOGON_TYPE, sddl: &super::Com::VARIANT) -> ::windows::core::Result; - fn RegisterTaskDefinition(&self, path: &super::super::Foundation::BSTR, pdefinition: &::core::option::Option, flags: i32, userid: &super::Com::VARIANT, password: &super::Com::VARIANT, logontype: TASK_LOGON_TYPE, sddl: &super::Com::VARIANT) -> ::windows::core::Result; - fn GetSecurityDescriptor(&self, securityinformation: i32) -> ::windows::core::Result; - fn SetSecurityDescriptor(&self, sddl: &super::super::Foundation::BSTR, flags: i32) -> ::windows::core::Result<()>; + fn DeleteTask(&self, name: &::windows::core::BSTR, flags: i32) -> ::windows::core::Result<()>; + fn RegisterTask(&self, path: &::windows::core::BSTR, xmltext: &::windows::core::BSTR, flags: i32, userid: &super::Com::VARIANT, password: &super::Com::VARIANT, logontype: TASK_LOGON_TYPE, sddl: &super::Com::VARIANT) -> ::windows::core::Result; + fn RegisterTaskDefinition(&self, path: &::windows::core::BSTR, pdefinition: &::core::option::Option, flags: i32, userid: &super::Com::VARIANT, password: &super::Com::VARIANT, logontype: TASK_LOGON_TYPE, sddl: &super::Com::VARIANT) -> ::windows::core::Result; + fn GetSecurityDescriptor(&self, securityinformation: i32) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetSecurityDescriptor(&self, sddl: &::windows::core::BSTR, flags: i32) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ITaskFolder {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ITaskFolder_Vtbl { pub const fn new, Impl: ITaskFolder_Impl, const OFFSET: isize>() -> ITaskFolder_Vtbl { - unsafe extern "system" fn Name, Impl: ITaskFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: ITaskFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -2555,7 +2555,7 @@ impl ITaskFolder_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Path, Impl: ITaskFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Path, Impl: ITaskFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Path() { @@ -2566,7 +2566,7 @@ impl ITaskFolder_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetFolder, Impl: ITaskFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, ppfolder: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFolder, Impl: ITaskFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppfolder: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetFolder(::core::mem::transmute(&path)) { @@ -2588,7 +2588,7 @@ impl ITaskFolder_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateFolder, Impl: ITaskFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, subfoldername: ::core::mem::ManuallyDrop, sddl: ::core::mem::ManuallyDrop, ppfolder: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateFolder, Impl: ITaskFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, subfoldername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, sddl: ::core::mem::ManuallyDrop, ppfolder: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateFolder(::core::mem::transmute(&subfoldername), ::core::mem::transmute(&sddl)) { @@ -2599,12 +2599,12 @@ impl ITaskFolder_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DeleteFolder, Impl: ITaskFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, subfoldername: ::core::mem::ManuallyDrop, flags: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteFolder, Impl: ITaskFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, subfoldername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteFolder(::core::mem::transmute(&subfoldername), ::core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn GetTask, Impl: ITaskFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, pptask: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetTask, Impl: ITaskFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pptask: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetTask(::core::mem::transmute(&path)) { @@ -2626,12 +2626,12 @@ impl ITaskFolder_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DeleteTask, Impl: ITaskFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, flags: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteTask, Impl: ITaskFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteTask(::core::mem::transmute(&name), ::core::mem::transmute_copy(&flags)).into() } - unsafe extern "system" fn RegisterTask, Impl: ITaskFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, xmltext: ::core::mem::ManuallyDrop, flags: i32, userid: ::core::mem::ManuallyDrop, password: ::core::mem::ManuallyDrop, logontype: TASK_LOGON_TYPE, sddl: ::core::mem::ManuallyDrop, pptask: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn RegisterTask, Impl: ITaskFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, xmltext: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: i32, userid: ::core::mem::ManuallyDrop, password: ::core::mem::ManuallyDrop, logontype: TASK_LOGON_TYPE, sddl: ::core::mem::ManuallyDrop, pptask: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RegisterTask(::core::mem::transmute(&path), ::core::mem::transmute(&xmltext), ::core::mem::transmute_copy(&flags), ::core::mem::transmute(&userid), ::core::mem::transmute(&password), ::core::mem::transmute_copy(&logontype), ::core::mem::transmute(&sddl)) { @@ -2642,7 +2642,7 @@ impl ITaskFolder_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RegisterTaskDefinition, Impl: ITaskFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, pdefinition: *mut ::core::ffi::c_void, flags: i32, userid: ::core::mem::ManuallyDrop, password: ::core::mem::ManuallyDrop, logontype: TASK_LOGON_TYPE, sddl: ::core::mem::ManuallyDrop, pptask: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn RegisterTaskDefinition, Impl: ITaskFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdefinition: *mut ::core::ffi::c_void, flags: i32, userid: ::core::mem::ManuallyDrop, password: ::core::mem::ManuallyDrop, logontype: TASK_LOGON_TYPE, sddl: ::core::mem::ManuallyDrop, pptask: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RegisterTaskDefinition(::core::mem::transmute(&path), ::core::mem::transmute(&pdefinition), ::core::mem::transmute_copy(&flags), ::core::mem::transmute(&userid), ::core::mem::transmute(&password), ::core::mem::transmute_copy(&logontype), ::core::mem::transmute(&sddl)) { @@ -2653,7 +2653,7 @@ impl ITaskFolder_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetSecurityDescriptor, Impl: ITaskFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, securityinformation: i32, psddl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSecurityDescriptor, Impl: ITaskFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, securityinformation: i32, psddl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetSecurityDescriptor(::core::mem::transmute_copy(&securityinformation)) { @@ -2664,7 +2664,7 @@ impl ITaskFolder_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSecurityDescriptor, Impl: ITaskFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sddl: ::core::mem::ManuallyDrop, flags: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSecurityDescriptor, Impl: ITaskFolder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sddl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSecurityDescriptor(::core::mem::transmute(&sddl), ::core::mem::transmute_copy(&flags)).into() @@ -2745,19 +2745,16 @@ impl ITaskFolderCollection_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait ITaskHandler_Impl: Sized { - fn Start(&self, phandlerservices: &::core::option::Option<::windows::core::IUnknown>, data: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Start(&self, phandlerservices: &::core::option::Option<::windows::core::IUnknown>, data: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Stop(&self) -> ::windows::core::Result<::windows::core::HRESULT>; fn Pause(&self) -> ::windows::core::Result<()>; fn Resume(&self) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ITaskHandler {} -#[cfg(feature = "Win32_Foundation")] impl ITaskHandler_Vtbl { pub const fn new, Impl: ITaskHandler_Impl, const OFFSET: isize>() -> ITaskHandler_Vtbl { - unsafe extern "system" fn Start, Impl: ITaskHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, phandlerservices: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Start, Impl: ITaskHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, phandlerservices: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Start(::core::mem::transmute(&phandlerservices), ::core::mem::transmute(&data)).into() @@ -2795,17 +2792,14 @@ impl ITaskHandler_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait ITaskHandlerStatus_Impl: Sized { - fn UpdateStatus(&self, percentcomplete: i16, statusmessage: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn UpdateStatus(&self, percentcomplete: i16, statusmessage: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn TaskCompleted(&self, taskerrcode: ::windows::core::HRESULT) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ITaskHandlerStatus {} -#[cfg(feature = "Win32_Foundation")] impl ITaskHandlerStatus_Vtbl { pub const fn new, Impl: ITaskHandlerStatus_Impl, const OFFSET: isize>() -> ITaskHandlerStatus_Vtbl { - unsafe extern "system" fn UpdateStatus, Impl: ITaskHandlerStatus_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, percentcomplete: i16, statusmessage: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn UpdateStatus, Impl: ITaskHandlerStatus_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, percentcomplete: i16, statusmessage: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.UpdateStatus(::core::mem::transmute_copy(&percentcomplete), ::core::mem::transmute(&statusmessage)).into() @@ -2830,7 +2824,7 @@ pub trait ITaskNamedValueCollection_Impl: Sized + super::Com::IDispatch_Impl { fn Count(&self, pcount: *mut i32) -> ::windows::core::Result<()>; fn get_Item(&self, index: i32) -> ::windows::core::Result; fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; - fn Create(&self, name: &super::super::Foundation::BSTR, value: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn Create(&self, name: &::windows::core::BSTR, value: &::windows::core::BSTR) -> ::windows::core::Result; fn Remove(&self, index: i32) -> ::windows::core::Result<()>; fn Clear(&self) -> ::windows::core::Result<()>; } @@ -2866,7 +2860,7 @@ impl ITaskNamedValueCollection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Create, Impl: ITaskNamedValueCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, value: ::core::mem::ManuallyDrop, pppair: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Create, Impl: ITaskNamedValueCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pppair: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Create(::core::mem::transmute(&name), ::core::mem::transmute(&value)) { @@ -2903,32 +2897,32 @@ impl ITaskNamedValueCollection_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ITaskNamedValuePair_Impl: Sized + super::Com::IDispatch_Impl { - fn Name(&self, pname: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetName(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Value(&self, pvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetValue(&self, value: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Name(&self, pname: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Value(&self, pvalue: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetValue(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ITaskNamedValuePair {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ITaskNamedValuePair_Vtbl { pub const fn new, Impl: ITaskNamedValuePair_Impl, const OFFSET: isize>() -> ITaskNamedValuePair_Vtbl { - unsafe extern "system" fn Name, Impl: ITaskNamedValuePair_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: ITaskNamedValuePair_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Name(::core::mem::transmute_copy(&pname)).into() } - unsafe extern "system" fn SetName, Impl: ITaskNamedValuePair_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: ITaskNamedValuePair_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&name)).into() } - unsafe extern "system" fn Value, Impl: ITaskNamedValuePair_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Value, Impl: ITaskNamedValuePair_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Value(::core::mem::transmute_copy(&pvalue)).into() } - unsafe extern "system" fn SetValue, Impl: ITaskNamedValuePair_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetValue, Impl: ITaskNamedValuePair_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetValue(::core::mem::transmute(&value)).into() @@ -3040,14 +3034,14 @@ impl ITaskScheduler_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ITaskService_Impl: Sized + super::Com::IDispatch_Impl { - fn GetFolder(&self, path: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetFolder(&self, path: &::windows::core::BSTR) -> ::windows::core::Result; fn GetRunningTasks(&self, flags: i32) -> ::windows::core::Result; fn NewTask(&self, flags: u32) -> ::windows::core::Result; fn Connect(&self, servername: &super::Com::VARIANT, user: &super::Com::VARIANT, domain: &super::Com::VARIANT, password: &super::Com::VARIANT) -> ::windows::core::Result<()>; fn Connected(&self) -> ::windows::core::Result; - fn TargetServer(&self) -> ::windows::core::Result; - fn ConnectedUser(&self) -> ::windows::core::Result; - fn ConnectedDomain(&self) -> ::windows::core::Result; + fn TargetServer(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ConnectedUser(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ConnectedDomain(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn HighestVersion(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3055,7 +3049,7 @@ impl ::windows::core::RuntimeName for ITaskService {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ITaskService_Vtbl { pub const fn new, Impl: ITaskService_Impl, const OFFSET: isize>() -> ITaskService_Vtbl { - unsafe extern "system" fn GetFolder, Impl: ITaskService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, ppfolder: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFolder, Impl: ITaskService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppfolder: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetFolder(::core::mem::transmute(&path)) { @@ -3104,7 +3098,7 @@ impl ITaskService_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn TargetServer, Impl: ITaskService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pserver: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TargetServer, Impl: ITaskService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pserver: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TargetServer() { @@ -3115,7 +3109,7 @@ impl ITaskService_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ConnectedUser, Impl: ITaskService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, puser: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ConnectedUser, Impl: ITaskService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, puser: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ConnectedUser() { @@ -3126,7 +3120,7 @@ impl ITaskService_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ConnectedDomain, Impl: ITaskService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdomain: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ConnectedDomain, Impl: ITaskService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pdomain: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ConnectedDomain() { @@ -3169,8 +3163,8 @@ impl ITaskService_Vtbl { pub trait ITaskSettings_Impl: Sized + super::Com::IDispatch_Impl { fn AllowDemandStart(&self, pallowdemandstart: *mut i16) -> ::windows::core::Result<()>; fn SetAllowDemandStart(&self, allowdemandstart: i16) -> ::windows::core::Result<()>; - fn RestartInterval(&self, prestartinterval: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetRestartInterval(&self, restartinterval: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn RestartInterval(&self, prestartinterval: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetRestartInterval(&self, restartinterval: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn RestartCount(&self, prestartcount: *mut i32) -> ::windows::core::Result<()>; fn SetRestartCount(&self, restartcount: i32) -> ::windows::core::Result<()>; fn MultipleInstances(&self, ppolicy: *mut TASK_INSTANCES_POLICY) -> ::windows::core::Result<()>; @@ -3183,16 +3177,16 @@ pub trait ITaskSettings_Impl: Sized + super::Com::IDispatch_Impl { fn SetAllowHardTerminate(&self, allowhardterminate: i16) -> ::windows::core::Result<()>; fn StartWhenAvailable(&self, pstartwhenavailable: *mut i16) -> ::windows::core::Result<()>; fn SetStartWhenAvailable(&self, startwhenavailable: i16) -> ::windows::core::Result<()>; - fn XmlText(&self, ptext: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetXmlText(&self, text: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn XmlText(&self, ptext: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetXmlText(&self, text: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn RunOnlyIfNetworkAvailable(&self, prunonlyifnetworkavailable: *mut i16) -> ::windows::core::Result<()>; fn SetRunOnlyIfNetworkAvailable(&self, runonlyifnetworkavailable: i16) -> ::windows::core::Result<()>; - fn ExecutionTimeLimit(&self, pexecutiontimelimit: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetExecutionTimeLimit(&self, executiontimelimit: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ExecutionTimeLimit(&self, pexecutiontimelimit: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetExecutionTimeLimit(&self, executiontimelimit: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Enabled(&self, penabled: *mut i16) -> ::windows::core::Result<()>; fn SetEnabled(&self, enabled: i16) -> ::windows::core::Result<()>; - fn DeleteExpiredTaskAfter(&self, pexpirationdelay: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetDeleteExpiredTaskAfter(&self, expirationdelay: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn DeleteExpiredTaskAfter(&self, pexpirationdelay: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetDeleteExpiredTaskAfter(&self, expirationdelay: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Priority(&self, ppriority: *mut i32) -> ::windows::core::Result<()>; fn SetPriority(&self, priority: i32) -> ::windows::core::Result<()>; fn Compatibility(&self, pcompatlevel: *mut TASK_COMPATIBILITY) -> ::windows::core::Result<()>; @@ -3223,12 +3217,12 @@ impl ITaskSettings_Vtbl { let this = (*this).get_impl(); this.SetAllowDemandStart(::core::mem::transmute_copy(&allowdemandstart)).into() } - unsafe extern "system" fn RestartInterval, Impl: ITaskSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, prestartinterval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RestartInterval, Impl: ITaskSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, prestartinterval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RestartInterval(::core::mem::transmute_copy(&prestartinterval)).into() } - unsafe extern "system" fn SetRestartInterval, Impl: ITaskSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, restartinterval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetRestartInterval, Impl: ITaskSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, restartinterval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetRestartInterval(::core::mem::transmute(&restartinterval)).into() @@ -3293,12 +3287,12 @@ impl ITaskSettings_Vtbl { let this = (*this).get_impl(); this.SetStartWhenAvailable(::core::mem::transmute_copy(&startwhenavailable)).into() } - unsafe extern "system" fn XmlText, Impl: ITaskSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ptext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn XmlText, Impl: ITaskSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ptext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.XmlText(::core::mem::transmute_copy(&ptext)).into() } - unsafe extern "system" fn SetXmlText, Impl: ITaskSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetXmlText, Impl: ITaskSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetXmlText(::core::mem::transmute(&text)).into() @@ -3313,12 +3307,12 @@ impl ITaskSettings_Vtbl { let this = (*this).get_impl(); this.SetRunOnlyIfNetworkAvailable(::core::mem::transmute_copy(&runonlyifnetworkavailable)).into() } - unsafe extern "system" fn ExecutionTimeLimit, Impl: ITaskSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pexecutiontimelimit: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExecutionTimeLimit, Impl: ITaskSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pexecutiontimelimit: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ExecutionTimeLimit(::core::mem::transmute_copy(&pexecutiontimelimit)).into() } - unsafe extern "system" fn SetExecutionTimeLimit, Impl: ITaskSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, executiontimelimit: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetExecutionTimeLimit, Impl: ITaskSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, executiontimelimit: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetExecutionTimeLimit(::core::mem::transmute(&executiontimelimit)).into() @@ -3333,12 +3327,12 @@ impl ITaskSettings_Vtbl { let this = (*this).get_impl(); this.SetEnabled(::core::mem::transmute_copy(&enabled)).into() } - unsafe extern "system" fn DeleteExpiredTaskAfter, Impl: ITaskSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pexpirationdelay: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteExpiredTaskAfter, Impl: ITaskSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pexpirationdelay: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteExpiredTaskAfter(::core::mem::transmute_copy(&pexpirationdelay)).into() } - unsafe extern "system" fn SetDeleteExpiredTaskAfter, Impl: ITaskSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, expirationdelay: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDeleteExpiredTaskAfter, Impl: ITaskSettings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, expirationdelay: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDeleteExpiredTaskAfter(::core::mem::transmute(&expirationdelay)).into() @@ -3654,18 +3648,15 @@ impl ITaskTrigger_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait ITaskVariables_Impl: Sized { - fn GetInput(&self) -> ::windows::core::Result; - fn SetOutput(&self, input: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetContext(&self) -> ::windows::core::Result; + fn GetInput(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetOutput(&self, input: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetContext(&self) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ITaskVariables {} -#[cfg(feature = "Win32_Foundation")] impl ITaskVariables_Vtbl { pub const fn new, Impl: ITaskVariables_Impl, const OFFSET: isize>() -> ITaskVariables_Vtbl { - unsafe extern "system" fn GetInput, Impl: ITaskVariables_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pinput: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetInput, Impl: ITaskVariables_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pinput: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetInput() { @@ -3676,12 +3667,12 @@ impl ITaskVariables_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetOutput, Impl: ITaskVariables_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, input: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetOutput, Impl: ITaskVariables_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, input: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetOutput(::core::mem::transmute(&input)).into() } - unsafe extern "system" fn GetContext, Impl: ITaskVariables_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcontext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetContext, Impl: ITaskVariables_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcontext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetContext() { @@ -3705,20 +3696,20 @@ impl ITaskVariables_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ITimeTrigger_Impl: Sized + super::Com::IDispatch_Impl + ITrigger_Impl { - fn RandomDelay(&self, prandomdelay: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetRandomDelay(&self, randomdelay: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn RandomDelay(&self, prandomdelay: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetRandomDelay(&self, randomdelay: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ITimeTrigger {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ITimeTrigger_Vtbl { pub const fn new, Impl: ITimeTrigger_Impl, const OFFSET: isize>() -> ITimeTrigger_Vtbl { - unsafe extern "system" fn RandomDelay, Impl: ITimeTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, prandomdelay: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RandomDelay, Impl: ITimeTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, prandomdelay: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RandomDelay(::core::mem::transmute_copy(&prandomdelay)).into() } - unsafe extern "system" fn SetRandomDelay, Impl: ITimeTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, randomdelay: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetRandomDelay, Impl: ITimeTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, randomdelay: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetRandomDelay(::core::mem::transmute(&randomdelay)).into() @@ -3736,16 +3727,16 @@ impl ITimeTrigger_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ITrigger_Impl: Sized + super::Com::IDispatch_Impl { fn Type(&self, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows::core::Result<()>; - fn Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetId(&self, id: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Id(&self, pid: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetId(&self, id: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Repetition(&self) -> ::windows::core::Result; fn SetRepetition(&self, prepeat: &::core::option::Option) -> ::windows::core::Result<()>; - fn ExecutionTimeLimit(&self, ptimelimit: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetExecutionTimeLimit(&self, timelimit: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn StartBoundary(&self, pstart: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetStartBoundary(&self, start: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn EndBoundary(&self, pend: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetEndBoundary(&self, end: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ExecutionTimeLimit(&self, ptimelimit: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetExecutionTimeLimit(&self, timelimit: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn StartBoundary(&self, pstart: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetStartBoundary(&self, start: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn EndBoundary(&self, pend: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetEndBoundary(&self, end: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Enabled(&self, penabled: *mut i16) -> ::windows::core::Result<()>; fn SetEnabled(&self, enabled: i16) -> ::windows::core::Result<()>; } @@ -3759,12 +3750,12 @@ impl ITrigger_Vtbl { let this = (*this).get_impl(); this.Type(::core::mem::transmute_copy(&ptype)).into() } - unsafe extern "system" fn Id, Impl: ITrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Id, Impl: ITrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Id(::core::mem::transmute_copy(&pid)).into() } - unsafe extern "system" fn SetId, Impl: ITrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, id: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetId, Impl: ITrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, id: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetId(::core::mem::transmute(&id)).into() @@ -3785,32 +3776,32 @@ impl ITrigger_Vtbl { let this = (*this).get_impl(); this.SetRepetition(::core::mem::transmute(&prepeat)).into() } - unsafe extern "system" fn ExecutionTimeLimit, Impl: ITrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ptimelimit: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExecutionTimeLimit, Impl: ITrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ptimelimit: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ExecutionTimeLimit(::core::mem::transmute_copy(&ptimelimit)).into() } - unsafe extern "system" fn SetExecutionTimeLimit, Impl: ITrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, timelimit: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetExecutionTimeLimit, Impl: ITrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, timelimit: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetExecutionTimeLimit(::core::mem::transmute(&timelimit)).into() } - unsafe extern "system" fn StartBoundary, Impl: ITrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstart: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn StartBoundary, Impl: ITrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstart: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.StartBoundary(::core::mem::transmute_copy(&pstart)).into() } - unsafe extern "system" fn SetStartBoundary, Impl: ITrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, start: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetStartBoundary, Impl: ITrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, start: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetStartBoundary(::core::mem::transmute(&start)).into() } - unsafe extern "system" fn EndBoundary, Impl: ITrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pend: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn EndBoundary, Impl: ITrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pend: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.EndBoundary(::core::mem::transmute_copy(&pend)).into() } - unsafe extern "system" fn SetEndBoundary, Impl: ITrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, end: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetEndBoundary, Impl: ITrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, end: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetEndBoundary(::core::mem::transmute(&end)).into() @@ -3928,8 +3919,8 @@ pub trait IWeeklyTrigger_Impl: Sized + super::Com::IDispatch_Impl + ITrigger_Imp fn SetDaysOfWeek(&self, days: i16) -> ::windows::core::Result<()>; fn WeeksInterval(&self, pweeks: *mut i16) -> ::windows::core::Result<()>; fn SetWeeksInterval(&self, weeks: i16) -> ::windows::core::Result<()>; - fn RandomDelay(&self, prandomdelay: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetRandomDelay(&self, randomdelay: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn RandomDelay(&self, prandomdelay: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetRandomDelay(&self, randomdelay: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWeeklyTrigger {} @@ -3956,12 +3947,12 @@ impl IWeeklyTrigger_Vtbl { let this = (*this).get_impl(); this.SetWeeksInterval(::core::mem::transmute_copy(&weeks)).into() } - unsafe extern "system" fn RandomDelay, Impl: IWeeklyTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, prandomdelay: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RandomDelay, Impl: IWeeklyTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, prandomdelay: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RandomDelay(::core::mem::transmute_copy(&prandomdelay)).into() } - unsafe extern "system" fn SetRandomDelay, Impl: IWeeklyTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, randomdelay: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetRandomDelay, Impl: IWeeklyTrigger_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, randomdelay: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetRandomDelay(::core::mem::transmute(&randomdelay)).into() diff --git a/crates/libs/windows/src/Windows/Win32/System/TaskScheduler/mod.rs b/crates/libs/windows/src/Windows/Win32/System/TaskScheduler/mod.rs index 59b38286e2..9ffd03c471 100644 --- a/crates/libs/windows/src/Windows/Win32/System/TaskScheduler/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/TaskScheduler/mod.rs @@ -4,18 +4,11 @@ pub struct IAction(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IAction { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Id(&self, pid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Id(&self, pid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetId<'a, P0>(&self, id: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetId)(::windows::core::Interface::as_raw(self), id.into().abi()).ok() + pub unsafe fn SetId(&self, id: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(id)).ok() } pub unsafe fn Type(&self, ptype: &mut TASK_ACTION_TYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptype)).ok() @@ -87,14 +80,8 @@ unsafe impl ::windows::core::Interface for IAction { #[doc(hidden)] pub struct IAction_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Id: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetId: usize, + pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptype: *mut TASK_ACTION_TYPE) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_TaskScheduler\"`, `\"Win32_System_Com\"`*"] @@ -116,18 +103,11 @@ impl IActionCollection { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self)._NewEnum)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn XmlText(&self, ptext: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn XmlText(&self, ptext: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).XmlText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptext)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetXmlText<'a, P0>(&self, text: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetXmlText)(::windows::core::Interface::as_raw(self), text.into().abi()).ok() + pub unsafe fn SetXmlText(&self, text: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetXmlText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(text)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -146,18 +126,11 @@ impl IActionCollection { pub unsafe fn Clear(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Clear)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Context(&self, pcontext: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Context(&self, pcontext: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Context)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pcontext)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetContext<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetContext)(::windows::core::Interface::as_raw(self), context.into().abi()).ok() + pub unsafe fn SetContext(&self, context: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetContext)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(context)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -232,14 +205,8 @@ pub struct IActionCollection_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] get_Item: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub XmlText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - XmlText: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetXmlText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetXmlText: usize, + pub XmlText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetXmlText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: TASK_ACTION_TYPE, ppaction: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -249,14 +216,8 @@ pub struct IActionCollection_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Remove: usize, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Context: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Context: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetContext: usize, + pub Context: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_TaskScheduler\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -267,18 +228,11 @@ impl IBootTrigger { pub unsafe fn Type(&self, ptype: &mut TASK_TRIGGER_TYPE2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Id(&self, pid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Id(&self, pid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetId<'a, P0>(&self, id: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetId)(::windows::core::Interface::as_raw(self), id.into().abi()).ok() + pub unsafe fn SetId(&self, id: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(id)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -294,44 +248,23 @@ impl IBootTrigger { { (::windows::core::Interface::vtable(self).base__.SetRepetition)(::windows::core::Interface::as_raw(self), prepeat.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.ExecutionTimeLimit)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptimelimit)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetExecutionTimeLimit<'a, P0>(&self, timelimit: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetExecutionTimeLimit)(::windows::core::Interface::as_raw(self), timelimit.into().abi()).ok() + pub unsafe fn SetExecutionTimeLimit(&self, timelimit: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetExecutionTimeLimit)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(timelimit)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StartBoundary(&self, pstart: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn StartBoundary(&self, pstart: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.StartBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pstart)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetStartBoundary<'a, P0>(&self, start: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetStartBoundary)(::windows::core::Interface::as_raw(self), start.into().abi()).ok() + pub unsafe fn SetStartBoundary(&self, start: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetStartBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(start)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EndBoundary(&self, pend: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn EndBoundary(&self, pend: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.EndBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pend)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetEndBoundary<'a, P0>(&self, end: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetEndBoundary)(::windows::core::Interface::as_raw(self), end.into().abi()).ok() + pub unsafe fn SetEndBoundary(&self, end: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetEndBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(end)).ok() } pub unsafe fn Enabled(&self, penabled: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Enabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(penabled)).ok() @@ -339,18 +272,11 @@ impl IBootTrigger { pub unsafe fn SetEnabled(&self, enabled: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetEnabled)(::windows::core::Interface::as_raw(self), enabled).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Delay(&self, pdelay: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Delay(&self, pdelay: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Delay)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdelay)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDelay<'a, P0>(&self, delay: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDelay)(::windows::core::Interface::as_raw(self), delay.into().abi()).ok() + pub unsafe fn SetDelay(&self, delay: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDelay)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(delay)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -437,14 +363,8 @@ unsafe impl ::windows::core::Interface for IBootTrigger { #[doc(hidden)] pub struct IBootTrigger_Vtbl { pub base__: ITrigger_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Delay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdelay: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Delay: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, delay: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDelay: usize, + pub Delay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdelay: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, delay: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_TaskScheduler\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -452,47 +372,26 @@ pub struct IBootTrigger_Vtbl { pub struct IComHandlerAction(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IComHandlerAction { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Id(&self, pid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Id(&self, pid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetId<'a, P0>(&self, id: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetId)(::windows::core::Interface::as_raw(self), id.into().abi()).ok() + pub unsafe fn SetId(&self, id: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(id)).ok() } pub unsafe fn Type(&self, ptype: &mut TASK_ACTION_TYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassId(&self, pclsid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn ClassId(&self, pclsid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ClassId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pclsid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetClassId<'a, P0>(&self, clsid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetClassId)(::windows::core::Interface::as_raw(self), clsid.into().abi()).ok() + pub unsafe fn SetClassId(&self, clsid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetClassId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(clsid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Data(&self, pdata: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Data(&self, pdata: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Data)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdata)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetData<'a, P0>(&self, data: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetData)(::windows::core::Interface::as_raw(self), data.into().abi()).ok() + pub unsafe fn SetData(&self, data: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(data)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -579,22 +478,10 @@ unsafe impl ::windows::core::Interface for IComHandlerAction { #[doc(hidden)] pub struct IComHandlerAction_Vtbl { pub base__: IAction_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub ClassId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pclsid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ClassId: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetClassId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clsid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetClassId: usize, - #[cfg(feature = "Win32_Foundation")] - pub Data: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Data: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetData: usize, + pub ClassId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pclsid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetClassId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Data: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_TaskScheduler\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -605,18 +492,11 @@ impl IDailyTrigger { pub unsafe fn Type(&self, ptype: &mut TASK_TRIGGER_TYPE2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Id(&self, pid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Id(&self, pid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetId<'a, P0>(&self, id: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetId)(::windows::core::Interface::as_raw(self), id.into().abi()).ok() + pub unsafe fn SetId(&self, id: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(id)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -632,44 +512,23 @@ impl IDailyTrigger { { (::windows::core::Interface::vtable(self).base__.SetRepetition)(::windows::core::Interface::as_raw(self), prepeat.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.ExecutionTimeLimit)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptimelimit)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetExecutionTimeLimit<'a, P0>(&self, timelimit: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetExecutionTimeLimit)(::windows::core::Interface::as_raw(self), timelimit.into().abi()).ok() + pub unsafe fn SetExecutionTimeLimit(&self, timelimit: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetExecutionTimeLimit)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(timelimit)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StartBoundary(&self, pstart: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn StartBoundary(&self, pstart: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.StartBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pstart)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetStartBoundary<'a, P0>(&self, start: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetStartBoundary)(::windows::core::Interface::as_raw(self), start.into().abi()).ok() + pub unsafe fn SetStartBoundary(&self, start: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetStartBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(start)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EndBoundary(&self, pend: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn EndBoundary(&self, pend: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.EndBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pend)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetEndBoundary<'a, P0>(&self, end: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetEndBoundary)(::windows::core::Interface::as_raw(self), end.into().abi()).ok() + pub unsafe fn SetEndBoundary(&self, end: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetEndBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(end)).ok() } pub unsafe fn Enabled(&self, penabled: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Enabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(penabled)).ok() @@ -683,18 +542,11 @@ impl IDailyTrigger { pub unsafe fn SetDaysInterval(&self, days: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetDaysInterval)(::windows::core::Interface::as_raw(self), days).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RandomDelay(&self, prandomdelay: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn RandomDelay(&self, prandomdelay: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RandomDelay)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(prandomdelay)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRandomDelay<'a, P0>(&self, randomdelay: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetRandomDelay)(::windows::core::Interface::as_raw(self), randomdelay.into().abi()).ok() + pub unsafe fn SetRandomDelay(&self, randomdelay: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetRandomDelay)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(randomdelay)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -783,14 +635,8 @@ pub struct IDailyTrigger_Vtbl { pub base__: ITrigger_Vtbl, pub DaysInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdays: *mut i16) -> ::windows::core::HRESULT, pub SetDaysInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, days: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub RandomDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prandomdelay: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RandomDelay: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetRandomDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, randomdelay: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetRandomDelay: usize, + pub RandomDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prandomdelay: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetRandomDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, randomdelay: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_TaskScheduler\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -798,112 +644,56 @@ pub struct IDailyTrigger_Vtbl { pub struct IEmailAction(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IEmailAction { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Id(&self, pid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Id(&self, pid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetId<'a, P0>(&self, id: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetId)(::windows::core::Interface::as_raw(self), id.into().abi()).ok() + pub unsafe fn SetId(&self, id: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(id)).ok() } pub unsafe fn Type(&self, ptype: &mut TASK_ACTION_TYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Server(&self, pserver: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Server(&self, pserver: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Server)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pserver)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetServer<'a, P0>(&self, server: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetServer)(::windows::core::Interface::as_raw(self), server.into().abi()).ok() + pub unsafe fn SetServer(&self, server: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetServer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(server)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Subject(&self, psubject: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Subject(&self, psubject: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Subject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(psubject)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSubject<'a, P0>(&self, subject: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSubject)(::windows::core::Interface::as_raw(self), subject.into().abi()).ok() + pub unsafe fn SetSubject(&self, subject: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSubject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(subject)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn To(&self, pto: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn To(&self, pto: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).To)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pto)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetTo<'a, P0>(&self, to: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetTo)(::windows::core::Interface::as_raw(self), to.into().abi()).ok() + pub unsafe fn SetTo(&self, to: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(to)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Cc(&self, pcc: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Cc(&self, pcc: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Cc)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pcc)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCc<'a, P0>(&self, cc: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetCc)(::windows::core::Interface::as_raw(self), cc.into().abi()).ok() + pub unsafe fn SetCc(&self, cc: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetCc)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(cc)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Bcc(&self, pbcc: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Bcc(&self, pbcc: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Bcc)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbcc)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetBcc<'a, P0>(&self, bcc: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetBcc)(::windows::core::Interface::as_raw(self), bcc.into().abi()).ok() + pub unsafe fn SetBcc(&self, bcc: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetBcc)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bcc)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ReplyTo(&self, preplyto: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn ReplyTo(&self, preplyto: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ReplyTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(preplyto)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetReplyTo<'a, P0>(&self, replyto: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetReplyTo)(::windows::core::Interface::as_raw(self), replyto.into().abi()).ok() + pub unsafe fn SetReplyTo(&self, replyto: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetReplyTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(replyto)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn From(&self, pfrom: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn From(&self, pfrom: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).From)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pfrom)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFrom<'a, P0>(&self, from: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetFrom)(::windows::core::Interface::as_raw(self), from.into().abi()).ok() + pub unsafe fn SetFrom(&self, from: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetFrom)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(from)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -919,18 +709,11 @@ impl IEmailAction { { (::windows::core::Interface::vtable(self).SetHeaderFields)(::windows::core::Interface::as_raw(self), pheaderfields.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Body(&self, pbody: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Body(&self, pbody: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Body)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbody)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetBody<'a, P0>(&self, body: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetBody)(::windows::core::Interface::as_raw(self), body.into().abi()).ok() + pub unsafe fn SetBody(&self, body: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetBody)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(body)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1027,62 +810,20 @@ unsafe impl ::windows::core::Interface for IEmailAction { #[doc(hidden)] pub struct IEmailAction_Vtbl { pub base__: IAction_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Server: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pserver: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Server: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, server: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetServer: usize, - #[cfg(feature = "Win32_Foundation")] - pub Subject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psubject: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Subject: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSubject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, subject: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSubject: usize, - #[cfg(feature = "Win32_Foundation")] - pub To: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pto: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - To: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, to: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetTo: usize, - #[cfg(feature = "Win32_Foundation")] - pub Cc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcc: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Cc: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetCc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cc: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetCc: usize, - #[cfg(feature = "Win32_Foundation")] - pub Bcc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbcc: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Bcc: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetBcc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bcc: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetBcc: usize, - #[cfg(feature = "Win32_Foundation")] - pub ReplyTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, preplyto: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ReplyTo: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetReplyTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, replyto: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetReplyTo: usize, - #[cfg(feature = "Win32_Foundation")] - pub From: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfrom: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - From: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetFrom: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, from: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetFrom: usize, + pub Server: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pserver: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, server: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Subject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psubject: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSubject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, subject: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub To: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pto: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, to: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Cc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcc: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetCc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cc: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Bcc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbcc: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetBcc: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bcc: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ReplyTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, preplyto: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetReplyTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, replyto: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub From: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfrom: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetFrom: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, from: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub HeaderFields: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppheaderfields: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -1091,14 +832,8 @@ pub struct IEmailAction_Vtbl { pub SetHeaderFields: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pheaderfields: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] SetHeaderFields: usize, - #[cfg(feature = "Win32_Foundation")] - pub Body: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbody: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Body: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetBody: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, body: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetBody: usize, + pub Body: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbody: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetBody: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, body: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Attachments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pattachements: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -1179,18 +914,11 @@ impl IEventTrigger { pub unsafe fn Type(&self, ptype: &mut TASK_TRIGGER_TYPE2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Id(&self, pid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Id(&self, pid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetId<'a, P0>(&self, id: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetId)(::windows::core::Interface::as_raw(self), id.into().abi()).ok() + pub unsafe fn SetId(&self, id: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(id)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1206,44 +934,23 @@ impl IEventTrigger { { (::windows::core::Interface::vtable(self).base__.SetRepetition)(::windows::core::Interface::as_raw(self), prepeat.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.ExecutionTimeLimit)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptimelimit)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetExecutionTimeLimit<'a, P0>(&self, timelimit: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetExecutionTimeLimit)(::windows::core::Interface::as_raw(self), timelimit.into().abi()).ok() + pub unsafe fn SetExecutionTimeLimit(&self, timelimit: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetExecutionTimeLimit)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(timelimit)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StartBoundary(&self, pstart: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn StartBoundary(&self, pstart: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.StartBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pstart)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetStartBoundary<'a, P0>(&self, start: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetStartBoundary)(::windows::core::Interface::as_raw(self), start.into().abi()).ok() + pub unsafe fn SetStartBoundary(&self, start: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetStartBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(start)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EndBoundary(&self, pend: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn EndBoundary(&self, pend: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.EndBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pend)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetEndBoundary<'a, P0>(&self, end: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetEndBoundary)(::windows::core::Interface::as_raw(self), end.into().abi()).ok() + pub unsafe fn SetEndBoundary(&self, end: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetEndBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(end)).ok() } pub unsafe fn Enabled(&self, penabled: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Enabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(penabled)).ok() @@ -1251,31 +958,17 @@ impl IEventTrigger { pub unsafe fn SetEnabled(&self, enabled: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetEnabled)(::windows::core::Interface::as_raw(self), enabled).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Subscription(&self, pquery: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Subscription(&self, pquery: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Subscription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pquery)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSubscription<'a, P0>(&self, query: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSubscription)(::windows::core::Interface::as_raw(self), query.into().abi()).ok() + pub unsafe fn SetSubscription(&self, query: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSubscription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(query)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Delay(&self, pdelay: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Delay(&self, pdelay: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Delay)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdelay)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDelay<'a, P0>(&self, delay: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDelay)(::windows::core::Interface::as_raw(self), delay.into().abi()).ok() + pub unsafe fn SetDelay(&self, delay: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDelay)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(delay)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1376,22 +1069,10 @@ unsafe impl ::windows::core::Interface for IEventTrigger { #[doc(hidden)] pub struct IEventTrigger_Vtbl { pub base__: ITrigger_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Subscription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pquery: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Subscription: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSubscription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, query: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSubscription: usize, - #[cfg(feature = "Win32_Foundation")] - pub Delay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdelay: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Delay: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, delay: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDelay: usize, + pub Subscription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pquery: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSubscription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, query: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Delay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdelay: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, delay: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub ValueQueries: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppnamedxpaths: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -1407,60 +1088,32 @@ pub struct IEventTrigger_Vtbl { pub struct IExecAction(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IExecAction { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Id(&self, pid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Id(&self, pid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetId<'a, P0>(&self, id: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetId)(::windows::core::Interface::as_raw(self), id.into().abi()).ok() + pub unsafe fn SetId(&self, id: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(id)).ok() } pub unsafe fn Type(&self, ptype: &mut TASK_ACTION_TYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Path(&self, ppath: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Path(&self, ppath: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ppath)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPath<'a, P0>(&self, path: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPath)(::windows::core::Interface::as_raw(self), path.into().abi()).ok() + pub unsafe fn SetPath(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Arguments(&self, pargument: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Arguments(&self, pargument: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Arguments)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pargument)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetArguments<'a, P0>(&self, argument: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetArguments)(::windows::core::Interface::as_raw(self), argument.into().abi()).ok() + pub unsafe fn SetArguments(&self, argument: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetArguments)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(argument)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn WorkingDirectory(&self, pworkingdirectory: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn WorkingDirectory(&self, pworkingdirectory: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).WorkingDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pworkingdirectory)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetWorkingDirectory<'a, P0>(&self, workingdirectory: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetWorkingDirectory)(::windows::core::Interface::as_raw(self), workingdirectory.into().abi()).ok() + pub unsafe fn SetWorkingDirectory(&self, workingdirectory: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetWorkingDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(workingdirectory)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1547,30 +1200,12 @@ unsafe impl ::windows::core::Interface for IExecAction { #[doc(hidden)] pub struct IExecAction_Vtbl { pub base__: IAction_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Path: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPath: usize, - #[cfg(feature = "Win32_Foundation")] - pub Arguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pargument: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Arguments: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, argument: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetArguments: usize, - #[cfg(feature = "Win32_Foundation")] - pub WorkingDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pworkingdirectory: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - WorkingDirectory: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetWorkingDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, workingdirectory: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetWorkingDirectory: usize, + pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Arguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pargument: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, argument: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub WorkingDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pworkingdirectory: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetWorkingDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, workingdirectory: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_TaskScheduler\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1578,60 +1213,32 @@ pub struct IExecAction_Vtbl { pub struct IExecAction2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IExecAction2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Id(&self, pid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Id(&self, pid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetId<'a, P0>(&self, id: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetId)(::windows::core::Interface::as_raw(self), id.into().abi()).ok() + pub unsafe fn SetId(&self, id: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(id)).ok() } pub unsafe fn Type(&self, ptype: &mut TASK_ACTION_TYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Path(&self, ppath: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Path(&self, ppath: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ppath)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPath<'a, P0>(&self, path: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetPath)(::windows::core::Interface::as_raw(self), path.into().abi()).ok() + pub unsafe fn SetPath(&self, path: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Arguments(&self, pargument: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Arguments(&self, pargument: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Arguments)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pargument)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetArguments<'a, P0>(&self, argument: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetArguments)(::windows::core::Interface::as_raw(self), argument.into().abi()).ok() + pub unsafe fn SetArguments(&self, argument: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetArguments)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(argument)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn WorkingDirectory(&self, pworkingdirectory: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn WorkingDirectory(&self, pworkingdirectory: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.WorkingDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pworkingdirectory)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetWorkingDirectory<'a, P0>(&self, workingdirectory: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetWorkingDirectory)(::windows::core::Interface::as_raw(self), workingdirectory.into().abi()).ok() + pub unsafe fn SetWorkingDirectory(&self, workingdirectory: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetWorkingDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(workingdirectory)).ok() } pub unsafe fn HideAppWindow(&self, phideappwindow: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).HideAppWindow)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(phideappwindow)).ok() @@ -1751,31 +1358,17 @@ pub struct IExecAction2_Vtbl { pub struct IIdleSettings(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IIdleSettings { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IdleDuration(&self, pdelay: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn IdleDuration(&self, pdelay: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).IdleDuration)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdelay)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetIdleDuration<'a, P0>(&self, delay: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetIdleDuration)(::windows::core::Interface::as_raw(self), delay.into().abi()).ok() + pub unsafe fn SetIdleDuration(&self, delay: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetIdleDuration)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(delay)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn WaitTimeout(&self, ptimeout: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn WaitTimeout(&self, ptimeout: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).WaitTimeout)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptimeout)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetWaitTimeout<'a, P0>(&self, timeout: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetWaitTimeout)(::windows::core::Interface::as_raw(self), timeout.into().abi()).ok() + pub unsafe fn SetWaitTimeout(&self, timeout: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetWaitTimeout)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(timeout)).ok() } pub unsafe fn StopOnIdleEnd(&self, pstop: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).StopOnIdleEnd)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pstop)).ok() @@ -1856,22 +1449,10 @@ unsafe impl ::windows::core::Interface for IIdleSettings { #[doc(hidden)] pub struct IIdleSettings_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub IdleDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdelay: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - IdleDuration: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetIdleDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, delay: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetIdleDuration: usize, - #[cfg(feature = "Win32_Foundation")] - pub WaitTimeout: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptimeout: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - WaitTimeout: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetWaitTimeout: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, timeout: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetWaitTimeout: usize, + pub IdleDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdelay: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetIdleDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, delay: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub WaitTimeout: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptimeout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetWaitTimeout: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, timeout: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub StopOnIdleEnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstop: *mut i16) -> ::windows::core::HRESULT, pub SetStopOnIdleEnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stop: i16) -> ::windows::core::HRESULT, pub RestartOnIdle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prestart: *mut i16) -> ::windows::core::HRESULT, @@ -1886,18 +1467,11 @@ impl IIdleTrigger { pub unsafe fn Type(&self, ptype: &mut TASK_TRIGGER_TYPE2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Id(&self, pid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Id(&self, pid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetId<'a, P0>(&self, id: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetId)(::windows::core::Interface::as_raw(self), id.into().abi()).ok() + pub unsafe fn SetId(&self, id: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(id)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1913,44 +1487,23 @@ impl IIdleTrigger { { (::windows::core::Interface::vtable(self).base__.SetRepetition)(::windows::core::Interface::as_raw(self), prepeat.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.ExecutionTimeLimit)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptimelimit)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetExecutionTimeLimit<'a, P0>(&self, timelimit: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetExecutionTimeLimit)(::windows::core::Interface::as_raw(self), timelimit.into().abi()).ok() + pub unsafe fn SetExecutionTimeLimit(&self, timelimit: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetExecutionTimeLimit)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(timelimit)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StartBoundary(&self, pstart: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn StartBoundary(&self, pstart: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.StartBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pstart)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetStartBoundary<'a, P0>(&self, start: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetStartBoundary)(::windows::core::Interface::as_raw(self), start.into().abi()).ok() + pub unsafe fn SetStartBoundary(&self, start: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetStartBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(start)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EndBoundary(&self, pend: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn EndBoundary(&self, pend: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.EndBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pend)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetEndBoundary<'a, P0>(&self, end: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetEndBoundary)(::windows::core::Interface::as_raw(self), end.into().abi()).ok() + pub unsafe fn SetEndBoundary(&self, end: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetEndBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(end)).ok() } pub unsafe fn Enabled(&self, penabled: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Enabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(penabled)).ok() @@ -2053,18 +1606,11 @@ impl ILogonTrigger { pub unsafe fn Type(&self, ptype: &mut TASK_TRIGGER_TYPE2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Id(&self, pid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Id(&self, pid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetId<'a, P0>(&self, id: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetId)(::windows::core::Interface::as_raw(self), id.into().abi()).ok() + pub unsafe fn SetId(&self, id: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(id)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2080,44 +1626,23 @@ impl ILogonTrigger { { (::windows::core::Interface::vtable(self).base__.SetRepetition)(::windows::core::Interface::as_raw(self), prepeat.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.ExecutionTimeLimit)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptimelimit)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetExecutionTimeLimit<'a, P0>(&self, timelimit: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetExecutionTimeLimit)(::windows::core::Interface::as_raw(self), timelimit.into().abi()).ok() + pub unsafe fn SetExecutionTimeLimit(&self, timelimit: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetExecutionTimeLimit)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(timelimit)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StartBoundary(&self, pstart: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn StartBoundary(&self, pstart: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.StartBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pstart)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetStartBoundary<'a, P0>(&self, start: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetStartBoundary)(::windows::core::Interface::as_raw(self), start.into().abi()).ok() + pub unsafe fn SetStartBoundary(&self, start: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetStartBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(start)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EndBoundary(&self, pend: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn EndBoundary(&self, pend: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.EndBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pend)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetEndBoundary<'a, P0>(&self, end: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetEndBoundary)(::windows::core::Interface::as_raw(self), end.into().abi()).ok() + pub unsafe fn SetEndBoundary(&self, end: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetEndBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(end)).ok() } pub unsafe fn Enabled(&self, penabled: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Enabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(penabled)).ok() @@ -2125,31 +1650,17 @@ impl ILogonTrigger { pub unsafe fn SetEnabled(&self, enabled: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetEnabled)(::windows::core::Interface::as_raw(self), enabled).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Delay(&self, pdelay: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Delay(&self, pdelay: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Delay)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdelay)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDelay<'a, P0>(&self, delay: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDelay)(::windows::core::Interface::as_raw(self), delay.into().abi()).ok() + pub unsafe fn SetDelay(&self, delay: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDelay)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(delay)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserId(&self, puser: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn UserId(&self, puser: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).UserId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(puser)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetUserId<'a, P0>(&self, user: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetUserId)(::windows::core::Interface::as_raw(self), user.into().abi()).ok() + pub unsafe fn SetUserId(&self, user: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetUserId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(user)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2236,22 +1747,10 @@ unsafe impl ::windows::core::Interface for ILogonTrigger { #[doc(hidden)] pub struct ILogonTrigger_Vtbl { pub base__: ITrigger_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Delay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdelay: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Delay: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, delay: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDelay: usize, - #[cfg(feature = "Win32_Foundation")] - pub UserId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puser: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UserId: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetUserId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, user: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetUserId: usize, + pub Delay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdelay: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, delay: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub UserId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puser: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetUserId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, user: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_TaskScheduler\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2259,30 +1758,16 @@ pub struct ILogonTrigger_Vtbl { pub struct IMaintenanceSettings(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IMaintenanceSettings { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPeriod<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPeriod)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetPeriod(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPeriod)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Period(&self, target: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Period(&self, target: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Period)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(target)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDeadline<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDeadline)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetDeadline(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDeadline)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Deadline(&self, target: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Deadline(&self, target: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Deadline)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(target)).ok() } pub unsafe fn SetExclusive(&self, value: i16) -> ::windows::core::Result<()> { @@ -2358,22 +1843,10 @@ unsafe impl ::windows::core::Interface for IMaintenanceSettings { #[doc(hidden)] pub struct IMaintenanceSettings_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub SetPeriod: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPeriod: usize, - #[cfg(feature = "Win32_Foundation")] - pub Period: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, target: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Period: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDeadline: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDeadline: usize, - #[cfg(feature = "Win32_Foundation")] - pub Deadline: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, target: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Deadline: usize, + pub SetPeriod: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Period: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, target: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDeadline: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Deadline: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, target: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetExclusive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i16) -> ::windows::core::HRESULT, pub Exclusive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, target: *mut i16) -> ::windows::core::HRESULT, } @@ -2386,18 +1859,11 @@ impl IMonthlyDOWTrigger { pub unsafe fn Type(&self, ptype: &mut TASK_TRIGGER_TYPE2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Id(&self, pid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Id(&self, pid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetId<'a, P0>(&self, id: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetId)(::windows::core::Interface::as_raw(self), id.into().abi()).ok() + pub unsafe fn SetId(&self, id: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(id)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2413,44 +1879,23 @@ impl IMonthlyDOWTrigger { { (::windows::core::Interface::vtable(self).base__.SetRepetition)(::windows::core::Interface::as_raw(self), prepeat.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.ExecutionTimeLimit)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptimelimit)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetExecutionTimeLimit<'a, P0>(&self, timelimit: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetExecutionTimeLimit)(::windows::core::Interface::as_raw(self), timelimit.into().abi()).ok() + pub unsafe fn SetExecutionTimeLimit(&self, timelimit: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetExecutionTimeLimit)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(timelimit)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StartBoundary(&self, pstart: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn StartBoundary(&self, pstart: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.StartBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pstart)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetStartBoundary<'a, P0>(&self, start: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetStartBoundary)(::windows::core::Interface::as_raw(self), start.into().abi()).ok() + pub unsafe fn SetStartBoundary(&self, start: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetStartBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(start)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EndBoundary(&self, pend: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn EndBoundary(&self, pend: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.EndBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pend)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetEndBoundary<'a, P0>(&self, end: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetEndBoundary)(::windows::core::Interface::as_raw(self), end.into().abi()).ok() + pub unsafe fn SetEndBoundary(&self, end: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetEndBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(end)).ok() } pub unsafe fn Enabled(&self, penabled: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Enabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(penabled)).ok() @@ -2482,18 +1927,11 @@ impl IMonthlyDOWTrigger { pub unsafe fn SetRunOnLastWeekOfMonth(&self, lastweek: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetRunOnLastWeekOfMonth)(::windows::core::Interface::as_raw(self), lastweek).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RandomDelay(&self, prandomdelay: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn RandomDelay(&self, prandomdelay: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RandomDelay)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(prandomdelay)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRandomDelay<'a, P0>(&self, randomdelay: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetRandomDelay)(::windows::core::Interface::as_raw(self), randomdelay.into().abi()).ok() + pub unsafe fn SetRandomDelay(&self, randomdelay: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetRandomDelay)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(randomdelay)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2588,14 +2026,8 @@ pub struct IMonthlyDOWTrigger_Vtbl { pub SetMonthsOfYear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, months: i16) -> ::windows::core::HRESULT, pub RunOnLastWeekOfMonth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plastweek: *mut i16) -> ::windows::core::HRESULT, pub SetRunOnLastWeekOfMonth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lastweek: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub RandomDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prandomdelay: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RandomDelay: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetRandomDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, randomdelay: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetRandomDelay: usize, + pub RandomDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prandomdelay: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetRandomDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, randomdelay: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_TaskScheduler\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2606,18 +2038,11 @@ impl IMonthlyTrigger { pub unsafe fn Type(&self, ptype: &mut TASK_TRIGGER_TYPE2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Id(&self, pid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Id(&self, pid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetId<'a, P0>(&self, id: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetId)(::windows::core::Interface::as_raw(self), id.into().abi()).ok() + pub unsafe fn SetId(&self, id: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(id)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2633,44 +2058,23 @@ impl IMonthlyTrigger { { (::windows::core::Interface::vtable(self).base__.SetRepetition)(::windows::core::Interface::as_raw(self), prepeat.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.ExecutionTimeLimit)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptimelimit)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetExecutionTimeLimit<'a, P0>(&self, timelimit: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetExecutionTimeLimit)(::windows::core::Interface::as_raw(self), timelimit.into().abi()).ok() + pub unsafe fn SetExecutionTimeLimit(&self, timelimit: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetExecutionTimeLimit)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(timelimit)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StartBoundary(&self, pstart: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn StartBoundary(&self, pstart: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.StartBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pstart)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetStartBoundary<'a, P0>(&self, start: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetStartBoundary)(::windows::core::Interface::as_raw(self), start.into().abi()).ok() + pub unsafe fn SetStartBoundary(&self, start: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetStartBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(start)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EndBoundary(&self, pend: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn EndBoundary(&self, pend: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.EndBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pend)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetEndBoundary<'a, P0>(&self, end: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetEndBoundary)(::windows::core::Interface::as_raw(self), end.into().abi()).ok() + pub unsafe fn SetEndBoundary(&self, end: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetEndBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(end)).ok() } pub unsafe fn Enabled(&self, penabled: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Enabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(penabled)).ok() @@ -2696,18 +2100,11 @@ impl IMonthlyTrigger { pub unsafe fn SetRunOnLastDayOfMonth(&self, lastday: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetRunOnLastDayOfMonth)(::windows::core::Interface::as_raw(self), lastday).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RandomDelay(&self, prandomdelay: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn RandomDelay(&self, prandomdelay: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RandomDelay)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(prandomdelay)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRandomDelay<'a, P0>(&self, randomdelay: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetRandomDelay)(::windows::core::Interface::as_raw(self), randomdelay.into().abi()).ok() + pub unsafe fn SetRandomDelay(&self, randomdelay: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetRandomDelay)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(randomdelay)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2800,14 +2197,8 @@ pub struct IMonthlyTrigger_Vtbl { pub SetMonthsOfYear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, months: i16) -> ::windows::core::HRESULT, pub RunOnLastDayOfMonth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plastday: *mut i16) -> ::windows::core::HRESULT, pub SetRunOnLastDayOfMonth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lastday: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub RandomDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prandomdelay: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RandomDelay: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetRandomDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, randomdelay: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetRandomDelay: usize, + pub RandomDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prandomdelay: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetRandomDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, randomdelay: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_TaskScheduler\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2815,31 +2206,17 @@ pub struct IMonthlyTrigger_Vtbl { pub struct INetworkSettings(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl INetworkSettings { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self, pname: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Name(&self, pname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Id(&self, pid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Id(&self, pid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetId<'a, P0>(&self, id: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetId)(::windows::core::Interface::as_raw(self), id.into().abi()).ok() + pub unsafe fn SetId(&self, id: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(id)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2908,22 +2285,10 @@ unsafe impl ::windows::core::Interface for INetworkSettings { #[doc(hidden)] pub struct INetworkSettings_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, - #[cfg(feature = "Win32_Foundation")] - pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Id: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetId: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_TaskScheduler\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2931,44 +2296,23 @@ pub struct INetworkSettings_Vtbl { pub struct IPrincipal(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IPrincipal { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Id(&self, pid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Id(&self, pid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetId<'a, P0>(&self, id: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetId)(::windows::core::Interface::as_raw(self), id.into().abi()).ok() + pub unsafe fn SetId(&self, id: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(id)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisplayName(&self, pname: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn DisplayName(&self, pname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDisplayName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDisplayName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetDisplayName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserId(&self, puser: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn UserId(&self, puser: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).UserId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(puser)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetUserId<'a, P0>(&self, user: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetUserId)(::windows::core::Interface::as_raw(self), user.into().abi()).ok() + pub unsafe fn SetUserId(&self, user: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetUserId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(user)).ok() } pub unsafe fn LogonType(&self, plogon: &mut TASK_LOGON_TYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).LogonType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(plogon)).ok() @@ -2976,18 +2320,11 @@ impl IPrincipal { pub unsafe fn SetLogonType(&self, logon: TASK_LOGON_TYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetLogonType)(::windows::core::Interface::as_raw(self), logon).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GroupId(&self, pgroup: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GroupId(&self, pgroup: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GroupId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pgroup)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetGroupId<'a, P0>(&self, group: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetGroupId)(::windows::core::Interface::as_raw(self), group.into().abi()).ok() + pub unsafe fn SetGroupId(&self, group: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetGroupId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(group)).ok() } pub unsafe fn RunLevel(&self, prunlevel: &mut TASK_RUNLEVEL_TYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RunLevel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(prunlevel)).ok() @@ -3062,40 +2399,16 @@ unsafe impl ::windows::core::Interface for IPrincipal { #[doc(hidden)] pub struct IPrincipal_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Id: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetId: usize, - #[cfg(feature = "Win32_Foundation")] - pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DisplayName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDisplayName: usize, - #[cfg(feature = "Win32_Foundation")] - pub UserId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puser: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UserId: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetUserId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, user: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetUserId: usize, + pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub UserId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puser: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetUserId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, user: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub LogonType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plogon: *mut TASK_LOGON_TYPE) -> ::windows::core::HRESULT, pub SetLogonType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, logon: TASK_LOGON_TYPE) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GroupId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pgroup: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GroupId: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetGroupId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, group: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetGroupId: usize, + pub GroupId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pgroup: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetGroupId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, group: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub RunLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prunlevel: *mut TASK_RUNLEVEL_TYPE) -> ::windows::core::HRESULT, pub SetRunLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, runlevel: TASK_RUNLEVEL_TYPE) -> ::windows::core::HRESULT, } @@ -3114,18 +2427,11 @@ impl IPrincipal2 { pub unsafe fn RequiredPrivilegeCount(&self, pcount: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RequiredPrivilegeCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pcount)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_RequiredPrivilege(&self, index: i32, pprivilege: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn get_RequiredPrivilege(&self, index: i32, pprivilege: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).get_RequiredPrivilege)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(pprivilege)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddRequiredPrivilege<'a, P0>(&self, privilege: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AddRequiredPrivilege)(::windows::core::Interface::as_raw(self), privilege.into().abi()).ok() + pub unsafe fn AddRequiredPrivilege(&self, privilege: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AddRequiredPrivilege)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(privilege)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3197,14 +2503,8 @@ pub struct IPrincipal2_Vtbl { pub ProcessTokenSidType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprocesstokensidtype: *mut TASK_PROCESSTOKENSID_TYPE) -> ::windows::core::HRESULT, pub SetProcessTokenSidType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, processtokensidtype: TASK_PROCESSTOKENSID_TYPE) -> ::windows::core::HRESULT, pub RequiredPrivilegeCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcount: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub get_RequiredPrivilege: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, pprivilege: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_RequiredPrivilege: usize, - #[cfg(feature = "Win32_Foundation")] - pub AddRequiredPrivilege: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, privilege: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddRequiredPrivilege: usize, + pub get_RequiredPrivilege: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, pprivilege: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub AddRequiredPrivilege: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, privilege: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_TaskScheduler\"`*"] #[repr(transparent)] @@ -3270,17 +2570,13 @@ pub struct IProvideTaskPage_Vtbl { pub struct IRegisteredTask(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IRegisteredTask { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Path(&self) -> ::windows::core::Result { + pub unsafe fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn State(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3304,13 +2600,12 @@ impl IRegisteredTask { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn RunEx<'a, P0, P1>(&self, params: P0, flags: i32, sessionid: i32, user: P1) -> ::windows::core::Result + pub unsafe fn RunEx<'a, P0>(&self, params: P0, flags: i32, sessionid: i32, user: &::windows::core::BSTR) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RunEx)(::windows::core::Interface::as_raw(self), params.into().abi(), flags, sessionid, user.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RunEx)(::windows::core::Interface::as_raw(self), params.into().abi(), flags, sessionid, ::core::mem::transmute_copy(user), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3340,25 +2635,16 @@ impl IRegisteredTask { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Definition)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Xml(&self) -> ::windows::core::Result { + pub unsafe fn Xml(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Xml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Xml)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetSecurityDescriptor(&self, securityinformation: i32) -> ::windows::core::Result { + pub unsafe fn GetSecurityDescriptor(&self, securityinformation: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetSecurityDescriptor)(::windows::core::Interface::as_raw(self), securityinformation, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetSecurityDescriptor)(::windows::core::Interface::as_raw(self), securityinformation, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSecurityDescriptor<'a, P0>(&self, sddl: P0, flags: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSecurityDescriptor)(::windows::core::Interface::as_raw(self), sddl.into().abi(), flags).ok() + pub unsafe fn SetSecurityDescriptor(&self, sddl: &::windows::core::BSTR, flags: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSecurityDescriptor)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(sddl), flags).ok() } pub unsafe fn Stop(&self, flags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Stop)(::windows::core::Interface::as_raw(self), flags).ok() @@ -3435,14 +2721,8 @@ unsafe impl ::windows::core::Interface for IRegisteredTask { #[doc(hidden)] pub struct IRegisteredTask_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Path: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstate: *mut TASK_STATE) -> ::windows::core::HRESULT, pub Enabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penabled: *mut i16) -> ::windows::core::HRESULT, pub SetEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enabled: i16) -> ::windows::core::HRESULT, @@ -3451,7 +2731,7 @@ pub struct IRegisteredTask_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Run: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub RunEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, params: ::core::mem::ManuallyDrop, flags: i32, sessionid: i32, user: ::core::mem::ManuallyDrop, pprunningtask: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub RunEx: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, params: ::core::mem::ManuallyDrop, flags: i32, sessionid: i32, user: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pprunningtask: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] RunEx: usize, #[cfg(feature = "Win32_System_Com")] @@ -3466,18 +2746,9 @@ pub struct IRegisteredTask_Vtbl { pub Definition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdefinition: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Definition: usize, - #[cfg(feature = "Win32_Foundation")] - pub Xml: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pxml: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Xml: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetSecurityDescriptor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, securityinformation: i32, psddl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetSecurityDescriptor: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSecurityDescriptor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sddl: ::core::mem::ManuallyDrop, flags: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSecurityDescriptor: usize, + pub Xml: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pxml: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetSecurityDescriptor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, securityinformation: i32, psddl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSecurityDescriptor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sddl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: i32) -> ::windows::core::HRESULT, pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub GetRunTimes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pststart: *const super::super::Foundation::SYSTEMTIME, pstend: *const super::super::Foundation::SYSTEMTIME, pcount: *mut u32, pruntimes: *mut *mut super::super::Foundation::SYSTEMTIME) -> ::windows::core::HRESULT, @@ -3587,96 +2858,47 @@ pub struct IRegisteredTaskCollection_Vtbl { pub struct IRegistrationInfo(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IRegistrationInfo { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self, pdescription: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Description(&self, pdescription: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdescription)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, description: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), description.into().abi()).ok() + pub unsafe fn SetDescription(&self, description: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(description)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Author(&self, pauthor: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Author(&self, pauthor: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Author)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pauthor)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetAuthor<'a, P0>(&self, author: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetAuthor)(::windows::core::Interface::as_raw(self), author.into().abi()).ok() + pub unsafe fn SetAuthor(&self, author: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetAuthor)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(author)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Version(&self, pversion: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Version(&self, pversion: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Version)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pversion)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetVersion<'a, P0>(&self, version: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetVersion)(::windows::core::Interface::as_raw(self), version.into().abi()).ok() + pub unsafe fn SetVersion(&self, version: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetVersion)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(version)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Date(&self, pdate: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Date(&self, pdate: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Date)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdate)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDate<'a, P0>(&self, date: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDate)(::windows::core::Interface::as_raw(self), date.into().abi()).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Documentation(&self, pdocumentation: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn SetDate(&self, date: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(date)).ok() + } + pub unsafe fn Documentation(&self, pdocumentation: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Documentation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdocumentation)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDocumentation<'a, P0>(&self, documentation: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDocumentation)(::windows::core::Interface::as_raw(self), documentation.into().abi()).ok() + pub unsafe fn SetDocumentation(&self, documentation: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDocumentation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(documentation)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn XmlText(&self, ptext: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn XmlText(&self, ptext: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).XmlText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptext)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetXmlText<'a, P0>(&self, text: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetXmlText)(::windows::core::Interface::as_raw(self), text.into().abi()).ok() + pub unsafe fn SetXmlText(&self, text: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetXmlText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(text)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn URI(&self, puri: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn URI(&self, puri: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).URI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(puri)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetURI<'a, P0>(&self, uri: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetURI)(::windows::core::Interface::as_raw(self), uri.into().abi()).ok() + pub unsafe fn SetURI(&self, uri: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetURI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(uri)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3691,18 +2913,11 @@ impl IRegistrationInfo { { (::windows::core::Interface::vtable(self).SetSecurityDescriptor)(::windows::core::Interface::as_raw(self), sddl.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Source(&self, psource: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Source(&self, psource: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Source)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(psource)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSource<'a, P0>(&self, source: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSource)(::windows::core::Interface::as_raw(self), source.into().abi()).ok() + pub unsafe fn SetSource(&self, source: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSource)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(source)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3771,62 +2986,20 @@ unsafe impl ::windows::core::Interface for IRegistrationInfo { #[doc(hidden)] pub struct IRegistrationInfo_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDescription: usize, - #[cfg(feature = "Win32_Foundation")] - pub Author: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pauthor: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Author: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetAuthor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, author: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetAuthor: usize, - #[cfg(feature = "Win32_Foundation")] - pub Version: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pversion: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Version: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, version: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetVersion: usize, - #[cfg(feature = "Win32_Foundation")] - pub Date: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdate: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Date: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, date: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDate: usize, - #[cfg(feature = "Win32_Foundation")] - pub Documentation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdocumentation: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Documentation: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDocumentation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, documentation: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDocumentation: usize, - #[cfg(feature = "Win32_Foundation")] - pub XmlText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - XmlText: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetXmlText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetXmlText: usize, - #[cfg(feature = "Win32_Foundation")] - pub URI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - URI: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uri: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetURI: usize, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Author: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pauthor: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetAuthor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, author: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Version: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pversion: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, version: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Date: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdate: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, date: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Documentation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdocumentation: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDocumentation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, documentation: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub XmlText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetXmlText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub URI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetURI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uri: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub SecurityDescriptor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psddl: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -3835,14 +3008,8 @@ pub struct IRegistrationInfo_Vtbl { pub SetSecurityDescriptor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sddl: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SetSecurityDescriptor: usize, - #[cfg(feature = "Win32_Foundation")] - pub Source: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psource: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Source: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, source: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSource: usize, + pub Source: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psource: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, source: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_TaskScheduler\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3853,18 +3020,11 @@ impl IRegistrationTrigger { pub unsafe fn Type(&self, ptype: &mut TASK_TRIGGER_TYPE2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Id(&self, pid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Id(&self, pid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetId<'a, P0>(&self, id: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetId)(::windows::core::Interface::as_raw(self), id.into().abi()).ok() + pub unsafe fn SetId(&self, id: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(id)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3880,44 +3040,23 @@ impl IRegistrationTrigger { { (::windows::core::Interface::vtable(self).base__.SetRepetition)(::windows::core::Interface::as_raw(self), prepeat.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.ExecutionTimeLimit)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptimelimit)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetExecutionTimeLimit<'a, P0>(&self, timelimit: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetExecutionTimeLimit)(::windows::core::Interface::as_raw(self), timelimit.into().abi()).ok() + pub unsafe fn SetExecutionTimeLimit(&self, timelimit: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetExecutionTimeLimit)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(timelimit)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StartBoundary(&self, pstart: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn StartBoundary(&self, pstart: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.StartBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pstart)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetStartBoundary<'a, P0>(&self, start: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetStartBoundary)(::windows::core::Interface::as_raw(self), start.into().abi()).ok() + pub unsafe fn SetStartBoundary(&self, start: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetStartBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(start)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EndBoundary(&self, pend: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn EndBoundary(&self, pend: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.EndBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pend)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetEndBoundary<'a, P0>(&self, end: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetEndBoundary)(::windows::core::Interface::as_raw(self), end.into().abi()).ok() + pub unsafe fn SetEndBoundary(&self, end: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetEndBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(end)).ok() } pub unsafe fn Enabled(&self, penabled: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Enabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(penabled)).ok() @@ -3925,18 +3064,11 @@ impl IRegistrationTrigger { pub unsafe fn SetEnabled(&self, enabled: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetEnabled)(::windows::core::Interface::as_raw(self), enabled).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Delay(&self, pdelay: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Delay(&self, pdelay: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Delay)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdelay)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDelay<'a, P0>(&self, delay: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDelay)(::windows::core::Interface::as_raw(self), delay.into().abi()).ok() + pub unsafe fn SetDelay(&self, delay: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDelay)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(delay)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4023,14 +3155,8 @@ unsafe impl ::windows::core::Interface for IRegistrationTrigger { #[doc(hidden)] pub struct IRegistrationTrigger_Vtbl { pub base__: ITrigger_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Delay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdelay: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Delay: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, delay: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDelay: usize, + pub Delay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdelay: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, delay: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_TaskScheduler\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4038,31 +3164,17 @@ pub struct IRegistrationTrigger_Vtbl { pub struct IRepetitionPattern(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IRepetitionPattern { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Interval(&self, pinterval: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Interval(&self, pinterval: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Interval)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pinterval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetInterval<'a, P0>(&self, interval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetInterval)(::windows::core::Interface::as_raw(self), interval.into().abi()).ok() + pub unsafe fn SetInterval(&self, interval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetInterval)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(interval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Duration(&self, pduration: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Duration(&self, pduration: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Duration)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pduration)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDuration<'a, P0>(&self, duration: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDuration)(::windows::core::Interface::as_raw(self), duration.into().abi()).ok() + pub unsafe fn SetDuration(&self, duration: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDuration)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(duration)).ok() } pub unsafe fn StopAtDurationEnd(&self, pstop: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).StopAtDurationEnd)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pstop)).ok() @@ -4137,22 +3249,10 @@ unsafe impl ::windows::core::Interface for IRepetitionPattern { #[doc(hidden)] pub struct IRepetitionPattern_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Interval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinterval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Interval: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, interval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetInterval: usize, - #[cfg(feature = "Win32_Foundation")] - pub Duration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pduration: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Duration: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, duration: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDuration: usize, + pub Interval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinterval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, interval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Duration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pduration: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, duration: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub StopAtDurationEnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstop: *mut i16) -> ::windows::core::HRESULT, pub SetStopAtDurationEnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stop: i16) -> ::windows::core::HRESULT, } @@ -4162,33 +3262,25 @@ pub struct IRepetitionPattern_Vtbl { pub struct IRunningTask(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IRunningTask { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InstanceGuid(&self) -> ::windows::core::Result { + pub unsafe fn InstanceGuid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).InstanceGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).InstanceGuid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Path(&self) -> ::windows::core::Result { + pub unsafe fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn State(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).State)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAction(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAction(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CurrentAction)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CurrentAction)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Stop(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Stop)(::windows::core::Interface::as_raw(self)).ok() @@ -4267,23 +3359,11 @@ unsafe impl ::windows::core::Interface for IRunningTask { #[doc(hidden)] pub struct IRunningTask_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub InstanceGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InstanceGuid: usize, - #[cfg(feature = "Win32_Foundation")] - pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Path: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub InstanceGuid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstate: *mut TASK_STATE) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CurrentAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CurrentAction: usize, + pub CurrentAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub EnginePID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppid: *mut u32) -> ::windows::core::HRESULT, @@ -4600,18 +3680,11 @@ impl ISessionStateChangeTrigger { pub unsafe fn Type(&self, ptype: &mut TASK_TRIGGER_TYPE2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Id(&self, pid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Id(&self, pid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetId<'a, P0>(&self, id: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetId)(::windows::core::Interface::as_raw(self), id.into().abi()).ok() + pub unsafe fn SetId(&self, id: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(id)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4627,44 +3700,23 @@ impl ISessionStateChangeTrigger { { (::windows::core::Interface::vtable(self).base__.SetRepetition)(::windows::core::Interface::as_raw(self), prepeat.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.ExecutionTimeLimit)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptimelimit)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetExecutionTimeLimit<'a, P0>(&self, timelimit: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetExecutionTimeLimit)(::windows::core::Interface::as_raw(self), timelimit.into().abi()).ok() + pub unsafe fn SetExecutionTimeLimit(&self, timelimit: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetExecutionTimeLimit)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(timelimit)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StartBoundary(&self, pstart: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn StartBoundary(&self, pstart: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.StartBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pstart)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetStartBoundary<'a, P0>(&self, start: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetStartBoundary)(::windows::core::Interface::as_raw(self), start.into().abi()).ok() + pub unsafe fn SetStartBoundary(&self, start: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetStartBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(start)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EndBoundary(&self, pend: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn EndBoundary(&self, pend: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.EndBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pend)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetEndBoundary<'a, P0>(&self, end: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetEndBoundary)(::windows::core::Interface::as_raw(self), end.into().abi()).ok() + pub unsafe fn SetEndBoundary(&self, end: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetEndBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(end)).ok() } pub unsafe fn Enabled(&self, penabled: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Enabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(penabled)).ok() @@ -4672,31 +3724,17 @@ impl ISessionStateChangeTrigger { pub unsafe fn SetEnabled(&self, enabled: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetEnabled)(::windows::core::Interface::as_raw(self), enabled).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Delay(&self, pdelay: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Delay(&self, pdelay: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Delay)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdelay)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDelay<'a, P0>(&self, delay: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDelay)(::windows::core::Interface::as_raw(self), delay.into().abi()).ok() + pub unsafe fn SetDelay(&self, delay: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDelay)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(delay)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserId(&self, puser: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn UserId(&self, puser: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).UserId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(puser)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetUserId<'a, P0>(&self, user: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetUserId)(::windows::core::Interface::as_raw(self), user.into().abi()).ok() + pub unsafe fn SetUserId(&self, user: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetUserId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(user)).ok() } pub unsafe fn StateChange(&self, ptype: &mut TASK_SESSION_STATE_CHANGE_TYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).StateChange)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptype)).ok() @@ -4789,22 +3827,10 @@ unsafe impl ::windows::core::Interface for ISessionStateChangeTrigger { #[doc(hidden)] pub struct ISessionStateChangeTrigger_Vtbl { pub base__: ITrigger_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Delay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdelay: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Delay: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, delay: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDelay: usize, - #[cfg(feature = "Win32_Foundation")] - pub UserId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puser: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UserId: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetUserId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, user: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetUserId: usize, + pub Delay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdelay: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, delay: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub UserId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puser: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetUserId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, user: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub StateChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptype: *mut TASK_SESSION_STATE_CHANGE_TYPE) -> ::windows::core::HRESULT, pub SetStateChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: TASK_SESSION_STATE_CHANGE_TYPE) -> ::windows::core::HRESULT, } @@ -4814,47 +3840,26 @@ pub struct ISessionStateChangeTrigger_Vtbl { pub struct IShowMessageAction(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IShowMessageAction { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Id(&self, pid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Id(&self, pid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetId<'a, P0>(&self, id: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetId)(::windows::core::Interface::as_raw(self), id.into().abi()).ok() + pub unsafe fn SetId(&self, id: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(id)).ok() } pub unsafe fn Type(&self, ptype: &mut TASK_ACTION_TYPE) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Title(&self, ptitle: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Title(&self, ptitle: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptitle)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetTitle<'a, P0>(&self, title: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetTitle)(::windows::core::Interface::as_raw(self), title.into().abi()).ok() + pub unsafe fn SetTitle(&self, title: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetTitle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(title)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MessageBody(&self, pmessagebody: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn MessageBody(&self, pmessagebody: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).MessageBody)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pmessagebody)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetMessageBody<'a, P0>(&self, messagebody: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetMessageBody)(::windows::core::Interface::as_raw(self), messagebody.into().abi()).ok() + pub unsafe fn SetMessageBody(&self, messagebody: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetMessageBody)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(messagebody)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4941,22 +3946,10 @@ unsafe impl ::windows::core::Interface for IShowMessageAction { #[doc(hidden)] pub struct IShowMessageAction_Vtbl { pub base__: IAction_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Title: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptitle: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Title: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, title: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetTitle: usize, - #[cfg(feature = "Win32_Foundation")] - pub MessageBody: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmessagebody: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MessageBody: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetMessageBody: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, messagebody: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetMessageBody: usize, + pub Title: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptitle: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, title: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub MessageBody: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmessagebody: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetMessageBody: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, messagebody: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_TaskScheduler\"`*"] #[repr(transparent)] @@ -5249,18 +4242,11 @@ impl ITaskDefinition { { (::windows::core::Interface::vtable(self).SetSettings)(::windows::core::Interface::as_raw(self), psettings.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Data(&self, pdata: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Data(&self, pdata: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Data)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdata)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetData<'a, P0>(&self, data: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetData)(::windows::core::Interface::as_raw(self), data.into().abi()).ok() + pub unsafe fn SetData(&self, data: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(data)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5290,18 +4276,11 @@ impl ITaskDefinition { { (::windows::core::Interface::vtable(self).SetActions)(::windows::core::Interface::as_raw(self), pactions.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn XmlText(&self, pxml: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn XmlText(&self, pxml: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).XmlText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pxml)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetXmlText<'a, P0>(&self, xml: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetXmlText)(::windows::core::Interface::as_raw(self), xml.into().abi()).ok() + pub unsafe fn SetXmlText(&self, xml: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetXmlText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(xml)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5394,14 +4373,8 @@ pub struct ITaskDefinition_Vtbl { pub SetSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psettings: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] SetSettings: usize, - #[cfg(feature = "Win32_Foundation")] - pub Data: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdata: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Data: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetData: usize, + pub Data: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Principal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppprincipal: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -5418,14 +4391,8 @@ pub struct ITaskDefinition_Vtbl { pub SetActions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pactions: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] SetActions: usize, - #[cfg(feature = "Win32_Foundation")] - pub XmlText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pxml: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - XmlText: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetXmlText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, xml: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetXmlText: usize, + pub XmlText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pxml: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetXmlText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, xml: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_TaskScheduler\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5433,26 +4400,19 @@ pub struct ITaskDefinition_Vtbl { pub struct ITaskFolder(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ITaskFolder { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Path(&self) -> ::windows::core::Result { + pub unsafe fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetFolder<'a, P0>(&self, path: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetFolder(&self, path: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetFolder)(::windows::core::Interface::as_raw(self), path.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetFolder)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5462,30 +4422,21 @@ impl ITaskFolder { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CreateFolder<'a, P0, P1>(&self, subfoldername: P0, sddl: P1) -> ::windows::core::Result + pub unsafe fn CreateFolder<'a, P0>(&self, subfoldername: &::windows::core::BSTR, sddl: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateFolder)(::windows::core::Interface::as_raw(self), subfoldername.into().abi(), sddl.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateFolder)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(subfoldername), sddl.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeleteFolder<'a, P0>(&self, subfoldername: P0, flags: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DeleteFolder)(::windows::core::Interface::as_raw(self), subfoldername.into().abi(), flags).ok() + pub unsafe fn DeleteFolder(&self, subfoldername: &::windows::core::BSTR, flags: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DeleteFolder)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(subfoldername), flags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetTask<'a, P0>(&self, path: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetTask(&self, path: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetTask)(::windows::core::Interface::as_raw(self), path.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetTask)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5493,53 +4444,38 @@ impl ITaskFolder { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetTasks)(::windows::core::Interface::as_raw(self), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeleteTask<'a, P0>(&self, name: P0, flags: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DeleteTask)(::windows::core::Interface::as_raw(self), name.into().abi(), flags).ok() + pub unsafe fn DeleteTask(&self, name: &::windows::core::BSTR, flags: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DeleteTask)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), flags).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn RegisterTask<'a, P0, P1, P2, P3, P4>(&self, path: P0, xmltext: P1, flags: i32, userid: P2, password: P3, logontype: TASK_LOGON_TYPE, sddl: P4) -> ::windows::core::Result + pub unsafe fn RegisterTask<'a, P0, P1, P2>(&self, path: &::windows::core::BSTR, xmltext: &::windows::core::BSTR, flags: i32, userid: P0, password: P1, logontype: TASK_LOGON_TYPE, sddl: P2) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RegisterTask)(::windows::core::Interface::as_raw(self), path.into().abi(), xmltext.into().abi(), flags, userid.into().abi(), password.into().abi(), logontype, sddl.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RegisterTask)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), ::core::mem::transmute_copy(xmltext), flags, userid.into().abi(), password.into().abi(), logontype, sddl.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn RegisterTaskDefinition<'a, P0, P1, P2, P3, P4>(&self, path: P0, pdefinition: P1, flags: i32, userid: P2, password: P3, logontype: TASK_LOGON_TYPE, sddl: P4) -> ::windows::core::Result + pub unsafe fn RegisterTaskDefinition<'a, P0, P1, P2, P3>(&self, path: &::windows::core::BSTR, pdefinition: P0, flags: i32, userid: P1, password: P2, logontype: TASK_LOGON_TYPE, sddl: P3) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, ITaskDefinition>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, ITaskDefinition>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, P3: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RegisterTaskDefinition)(::windows::core::Interface::as_raw(self), path.into().abi(), pdefinition.into().abi(), flags, userid.into().abi(), password.into().abi(), logontype, sddl.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RegisterTaskDefinition)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), pdefinition.into().abi(), flags, userid.into().abi(), password.into().abi(), logontype, sddl.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetSecurityDescriptor(&self, securityinformation: i32) -> ::windows::core::Result { + pub unsafe fn GetSecurityDescriptor(&self, securityinformation: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetSecurityDescriptor)(::windows::core::Interface::as_raw(self), securityinformation, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetSecurityDescriptor)(::windows::core::Interface::as_raw(self), securityinformation, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSecurityDescriptor<'a, P0>(&self, sddl: P0, flags: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSecurityDescriptor)(::windows::core::Interface::as_raw(self), sddl.into().abi(), flags).ok() + pub unsafe fn SetSecurityDescriptor(&self, sddl: &::windows::core::BSTR, flags: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSecurityDescriptor)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(sddl), flags).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5605,61 +4541,43 @@ unsafe impl ::windows::core::Interface for ITaskFolder { } #[cfg(feature = "Win32_System_Com")] #[repr(C)] -#[doc(hidden)] -pub struct ITaskFolder_Vtbl { - pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Path: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, ppfolder: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] +#[doc(hidden)] +pub struct ITaskFolder_Vtbl { + pub base__: super::Com::IDispatch_Vtbl, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub GetFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppfolder: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetFolder: usize, #[cfg(feature = "Win32_System_Com")] pub GetFolders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32, ppfolders: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetFolders: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub CreateFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, subfoldername: ::core::mem::ManuallyDrop, sddl: ::core::mem::ManuallyDrop, ppfolder: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub CreateFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, subfoldername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, sddl: ::core::mem::ManuallyDrop, ppfolder: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] CreateFolder: usize, - #[cfg(feature = "Win32_Foundation")] - pub DeleteFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, subfoldername: ::core::mem::ManuallyDrop, flags: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeleteFolder: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, pptask: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub DeleteFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, subfoldername: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: i32) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub GetTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pptask: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetTask: usize, #[cfg(feature = "Win32_System_Com")] pub GetTasks: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32, pptasks: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetTasks: usize, - #[cfg(feature = "Win32_Foundation")] - pub DeleteTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, flags: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeleteTask: usize, + pub DeleteTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub RegisterTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, xmltext: ::core::mem::ManuallyDrop, flags: i32, userid: ::core::mem::ManuallyDrop, password: ::core::mem::ManuallyDrop, logontype: TASK_LOGON_TYPE, sddl: ::core::mem::ManuallyDrop, pptask: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub RegisterTask: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, xmltext: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: i32, userid: ::core::mem::ManuallyDrop, password: ::core::mem::ManuallyDrop, logontype: TASK_LOGON_TYPE, sddl: ::core::mem::ManuallyDrop, pptask: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] RegisterTask: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub RegisterTaskDefinition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, pdefinition: *mut ::core::ffi::c_void, flags: i32, userid: ::core::mem::ManuallyDrop, password: ::core::mem::ManuallyDrop, logontype: TASK_LOGON_TYPE, sddl: ::core::mem::ManuallyDrop, pptask: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub RegisterTaskDefinition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdefinition: *mut ::core::ffi::c_void, flags: i32, userid: ::core::mem::ManuallyDrop, password: ::core::mem::ManuallyDrop, logontype: TASK_LOGON_TYPE, sddl: ::core::mem::ManuallyDrop, pptask: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] RegisterTaskDefinition: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetSecurityDescriptor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, securityinformation: i32, psddl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetSecurityDescriptor: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSecurityDescriptor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sddl: ::core::mem::ManuallyDrop, flags: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSecurityDescriptor: usize, + pub GetSecurityDescriptor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, securityinformation: i32, psddl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSecurityDescriptor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sddl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: i32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_TaskScheduler\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5762,14 +4680,11 @@ pub struct ITaskFolderCollection_Vtbl { #[repr(transparent)] pub struct ITaskHandler(::windows::core::IUnknown); impl ITaskHandler { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Start<'a, P0, P1>(&self, phandlerservices: P0, data: P1) -> ::windows::core::Result<()> + pub unsafe fn Start<'a, P0>(&self, phandlerservices: P0, data: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).Start)(::windows::core::Interface::as_raw(self), phandlerservices.into().abi(), data.into().abi()).ok() + (::windows::core::Interface::vtable(self).Start)(::windows::core::Interface::as_raw(self), phandlerservices.into().abi(), ::core::mem::transmute_copy(data)).ok() } pub unsafe fn Stop(&self) -> ::windows::core::Result<::windows::core::HRESULT> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5821,10 +4736,7 @@ unsafe impl ::windows::core::Interface for ITaskHandler { #[doc(hidden)] pub struct ITaskHandler_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phandlerservices: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Start: usize, + pub Start: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phandlerservices: *mut ::core::ffi::c_void, data: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretcode: *mut ::windows::core::HRESULT) -> ::windows::core::HRESULT, pub Pause: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Resume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -5833,13 +4745,8 @@ pub struct ITaskHandler_Vtbl { #[repr(transparent)] pub struct ITaskHandlerStatus(::windows::core::IUnknown); impl ITaskHandlerStatus { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UpdateStatus<'a, P0>(&self, percentcomplete: i16, statusmessage: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).UpdateStatus)(::windows::core::Interface::as_raw(self), percentcomplete, statusmessage.into().abi()).ok() + pub unsafe fn UpdateStatus(&self, percentcomplete: i16, statusmessage: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).UpdateStatus)(::windows::core::Interface::as_raw(self), percentcomplete, ::core::mem::transmute_copy(statusmessage)).ok() } pub unsafe fn TaskCompleted(&self, taskerrcode: ::windows::core::HRESULT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).TaskCompleted)(::windows::core::Interface::as_raw(self), taskerrcode).ok() @@ -5884,10 +4791,7 @@ unsafe impl ::windows::core::Interface for ITaskHandlerStatus { #[doc(hidden)] pub struct ITaskHandlerStatus_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub UpdateStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, percentcomplete: i16, statusmessage: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UpdateStatus: usize, + pub UpdateStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, percentcomplete: i16, statusmessage: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub TaskCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, taskerrcode: ::windows::core::HRESULT) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_TaskScheduler\"`, `\"Win32_System_Com\"`*"] @@ -5909,15 +4813,11 @@ impl ITaskNamedValueCollection { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self)._NewEnum)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Create<'a, P0, P1>(&self, name: P0, value: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Create(&self, name: &::windows::core::BSTR, value: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Create)(::windows::core::Interface::as_raw(self), name.into().abi(), value.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Create)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute_copy(value), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn Remove(&self, index: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), index).ok() @@ -5998,9 +4898,9 @@ pub struct ITaskNamedValueCollection_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] get_Item: usize, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, value: ::core::mem::ManuallyDrop, pppair: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub Create: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pppair: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Create: usize, pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32) -> ::windows::core::HRESULT, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -6011,31 +4911,17 @@ pub struct ITaskNamedValueCollection_Vtbl { pub struct ITaskNamedValuePair(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ITaskNamedValuePair { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self, pname: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Name(&self, pname: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, name: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), name.into().abi()).ok() + pub unsafe fn SetName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Value(&self, pvalue: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Value(&self, pvalue: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Value)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetValue<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetValue)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetValue(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6104,22 +4990,10 @@ unsafe impl ::windows::core::Interface for ITaskNamedValuePair { #[doc(hidden)] pub struct ITaskNamedValuePair_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, - #[cfg(feature = "Win32_Foundation")] - pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Value: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetValue: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_TaskScheduler\"`*"] #[repr(transparent)] @@ -6227,14 +5101,11 @@ pub struct ITaskScheduler_Vtbl { pub struct ITaskService(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ITaskService { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetFolder<'a, P0>(&self, path: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetFolder(&self, path: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetFolder)(::windows::core::Interface::as_raw(self), path.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetFolder)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6263,23 +5134,17 @@ impl ITaskService { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Connected)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TargetServer(&self) -> ::windows::core::Result { + pub unsafe fn TargetServer(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TargetServer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TargetServer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ConnectedUser(&self) -> ::windows::core::Result { + pub unsafe fn ConnectedUser(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ConnectedUser)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ConnectedUser)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ConnectedDomain(&self) -> ::windows::core::Result { + pub unsafe fn ConnectedDomain(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ConnectedDomain)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ConnectedDomain)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn HighestVersion(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6352,9 +5217,9 @@ unsafe impl ::windows::core::Interface for ITaskService { #[doc(hidden)] pub struct ITaskService_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, ppfolder: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppfolder: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetFolder: usize, #[cfg(feature = "Win32_System_Com")] pub GetRunningTasks: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32, pprunningtasks: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -6369,18 +5234,9 @@ pub struct ITaskService_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Connect: usize, pub Connected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pconnected: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub TargetServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pserver: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TargetServer: usize, - #[cfg(feature = "Win32_Foundation")] - pub ConnectedUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puser: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ConnectedUser: usize, - #[cfg(feature = "Win32_Foundation")] - pub ConnectedDomain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdomain: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ConnectedDomain: usize, + pub TargetServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pserver: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ConnectedUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puser: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ConnectedDomain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdomain: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub HighestVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pversion: *mut u32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_TaskScheduler\"`, `\"Win32_System_Com\"`*"] @@ -6395,18 +5251,11 @@ impl ITaskSettings { pub unsafe fn SetAllowDemandStart(&self, allowdemandstart: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetAllowDemandStart)(::windows::core::Interface::as_raw(self), allowdemandstart).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RestartInterval(&self, prestartinterval: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn RestartInterval(&self, prestartinterval: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RestartInterval)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(prestartinterval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRestartInterval<'a, P0>(&self, restartinterval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetRestartInterval)(::windows::core::Interface::as_raw(self), restartinterval.into().abi()).ok() + pub unsafe fn SetRestartInterval(&self, restartinterval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetRestartInterval)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(restartinterval)).ok() } pub unsafe fn RestartCount(&self, prestartcount: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RestartCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(prestartcount)).ok() @@ -6444,18 +5293,11 @@ impl ITaskSettings { pub unsafe fn SetStartWhenAvailable(&self, startwhenavailable: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetStartWhenAvailable)(::windows::core::Interface::as_raw(self), startwhenavailable).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn XmlText(&self, ptext: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn XmlText(&self, ptext: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).XmlText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptext)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetXmlText<'a, P0>(&self, text: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetXmlText)(::windows::core::Interface::as_raw(self), text.into().abi()).ok() + pub unsafe fn SetXmlText(&self, text: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetXmlText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(text)).ok() } pub unsafe fn RunOnlyIfNetworkAvailable(&self, prunonlyifnetworkavailable: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RunOnlyIfNetworkAvailable)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(prunonlyifnetworkavailable)).ok() @@ -6463,18 +5305,11 @@ impl ITaskSettings { pub unsafe fn SetRunOnlyIfNetworkAvailable(&self, runonlyifnetworkavailable: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetRunOnlyIfNetworkAvailable)(::windows::core::Interface::as_raw(self), runonlyifnetworkavailable).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExecutionTimeLimit(&self, pexecutiontimelimit: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn ExecutionTimeLimit(&self, pexecutiontimelimit: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ExecutionTimeLimit)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pexecutiontimelimit)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetExecutionTimeLimit<'a, P0>(&self, executiontimelimit: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetExecutionTimeLimit)(::windows::core::Interface::as_raw(self), executiontimelimit.into().abi()).ok() + pub unsafe fn SetExecutionTimeLimit(&self, executiontimelimit: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetExecutionTimeLimit)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(executiontimelimit)).ok() } pub unsafe fn Enabled(&self, penabled: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Enabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(penabled)).ok() @@ -6482,18 +5317,11 @@ impl ITaskSettings { pub unsafe fn SetEnabled(&self, enabled: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetEnabled)(::windows::core::Interface::as_raw(self), enabled).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeleteExpiredTaskAfter(&self, pexpirationdelay: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn DeleteExpiredTaskAfter(&self, pexpirationdelay: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).DeleteExpiredTaskAfter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pexpirationdelay)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDeleteExpiredTaskAfter<'a, P0>(&self, expirationdelay: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDeleteExpiredTaskAfter)(::windows::core::Interface::as_raw(self), expirationdelay.into().abi()).ok() + pub unsafe fn SetDeleteExpiredTaskAfter(&self, expirationdelay: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDeleteExpiredTaskAfter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(expirationdelay)).ok() } pub unsafe fn Priority(&self, ppriority: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Priority)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ppriority)).ok() @@ -6622,14 +5450,8 @@ pub struct ITaskSettings_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub AllowDemandStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pallowdemandstart: *mut i16) -> ::windows::core::HRESULT, pub SetAllowDemandStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, allowdemandstart: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub RestartInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prestartinterval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RestartInterval: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetRestartInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, restartinterval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetRestartInterval: usize, + pub RestartInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prestartinterval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetRestartInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, restartinterval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub RestartCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prestartcount: *mut i32) -> ::windows::core::HRESULT, pub SetRestartCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, restartcount: i32) -> ::windows::core::HRESULT, pub MultipleInstances: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppolicy: *mut TASK_INSTANCES_POLICY) -> ::windows::core::HRESULT, @@ -6642,34 +5464,16 @@ pub struct ITaskSettings_Vtbl { pub SetAllowHardTerminate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, allowhardterminate: i16) -> ::windows::core::HRESULT, pub StartWhenAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstartwhenavailable: *mut i16) -> ::windows::core::HRESULT, pub SetStartWhenAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, startwhenavailable: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub XmlText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - XmlText: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetXmlText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetXmlText: usize, + pub XmlText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetXmlText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub RunOnlyIfNetworkAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prunonlyifnetworkavailable: *mut i16) -> ::windows::core::HRESULT, pub SetRunOnlyIfNetworkAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, runonlyifnetworkavailable: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ExecutionTimeLimit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pexecutiontimelimit: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ExecutionTimeLimit: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetExecutionTimeLimit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, executiontimelimit: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetExecutionTimeLimit: usize, + pub ExecutionTimeLimit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pexecutiontimelimit: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetExecutionTimeLimit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, executiontimelimit: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Enabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penabled: *mut i16) -> ::windows::core::HRESULT, pub SetEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enabled: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub DeleteExpiredTaskAfter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pexpirationdelay: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeleteExpiredTaskAfter: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDeleteExpiredTaskAfter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, expirationdelay: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDeleteExpiredTaskAfter: usize, + pub DeleteExpiredTaskAfter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pexpirationdelay: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDeleteExpiredTaskAfter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, expirationdelay: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Priority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppriority: *mut i32) -> ::windows::core::HRESULT, pub SetPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, priority: i32) -> ::windows::core::HRESULT, pub Compatibility: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcompatlevel: *mut TASK_COMPATIBILITY) -> ::windows::core::HRESULT, @@ -6799,18 +5603,11 @@ impl ITaskSettings3 { pub unsafe fn SetAllowDemandStart(&self, allowdemandstart: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetAllowDemandStart)(::windows::core::Interface::as_raw(self), allowdemandstart).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RestartInterval(&self, prestartinterval: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn RestartInterval(&self, prestartinterval: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.RestartInterval)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(prestartinterval)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRestartInterval<'a, P0>(&self, restartinterval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetRestartInterval)(::windows::core::Interface::as_raw(self), restartinterval.into().abi()).ok() + pub unsafe fn SetRestartInterval(&self, restartinterval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetRestartInterval)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(restartinterval)).ok() } pub unsafe fn RestartCount(&self, prestartcount: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.RestartCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(prestartcount)).ok() @@ -6848,18 +5645,11 @@ impl ITaskSettings3 { pub unsafe fn SetStartWhenAvailable(&self, startwhenavailable: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetStartWhenAvailable)(::windows::core::Interface::as_raw(self), startwhenavailable).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn XmlText(&self, ptext: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn XmlText(&self, ptext: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.XmlText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptext)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetXmlText<'a, P0>(&self, text: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetXmlText)(::windows::core::Interface::as_raw(self), text.into().abi()).ok() + pub unsafe fn SetXmlText(&self, text: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetXmlText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(text)).ok() } pub unsafe fn RunOnlyIfNetworkAvailable(&self, prunonlyifnetworkavailable: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.RunOnlyIfNetworkAvailable)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(prunonlyifnetworkavailable)).ok() @@ -6867,18 +5657,11 @@ impl ITaskSettings3 { pub unsafe fn SetRunOnlyIfNetworkAvailable(&self, runonlyifnetworkavailable: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetRunOnlyIfNetworkAvailable)(::windows::core::Interface::as_raw(self), runonlyifnetworkavailable).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExecutionTimeLimit(&self, pexecutiontimelimit: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn ExecutionTimeLimit(&self, pexecutiontimelimit: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.ExecutionTimeLimit)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pexecutiontimelimit)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetExecutionTimeLimit<'a, P0>(&self, executiontimelimit: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetExecutionTimeLimit)(::windows::core::Interface::as_raw(self), executiontimelimit.into().abi()).ok() + pub unsafe fn SetExecutionTimeLimit(&self, executiontimelimit: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetExecutionTimeLimit)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(executiontimelimit)).ok() } pub unsafe fn Enabled(&self, penabled: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Enabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(penabled)).ok() @@ -6886,18 +5669,11 @@ impl ITaskSettings3 { pub unsafe fn SetEnabled(&self, enabled: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetEnabled)(::windows::core::Interface::as_raw(self), enabled).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeleteExpiredTaskAfter(&self, pexpirationdelay: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn DeleteExpiredTaskAfter(&self, pexpirationdelay: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.DeleteExpiredTaskAfter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pexpirationdelay)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDeleteExpiredTaskAfter<'a, P0>(&self, expirationdelay: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetDeleteExpiredTaskAfter)(::windows::core::Interface::as_raw(self), expirationdelay.into().abi()).ok() + pub unsafe fn SetDeleteExpiredTaskAfter(&self, expirationdelay: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetDeleteExpiredTaskAfter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(expirationdelay)).ok() } pub unsafe fn Priority(&self, ppriority: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Priority)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ppriority)).ok() @@ -7162,25 +5938,16 @@ pub struct ITaskTrigger_Vtbl { #[repr(transparent)] pub struct ITaskVariables(::windows::core::IUnknown); impl ITaskVariables { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetInput(&self) -> ::windows::core::Result { + pub unsafe fn GetInput(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetInput)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetInput)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetOutput<'a, P0>(&self, input: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetOutput)(::windows::core::Interface::as_raw(self), input.into().abi()).ok() + pub unsafe fn SetOutput(&self, input: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetOutput)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(input)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetContext(&self) -> ::windows::core::Result { + pub unsafe fn GetContext(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetContext)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetContext)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -7222,18 +5989,9 @@ unsafe impl ::windows::core::Interface for ITaskVariables { #[doc(hidden)] pub struct ITaskVariables_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetInput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinput: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetInput: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetOutput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetOutput: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetContext: usize, + pub GetInput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinput: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetOutput: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, input: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_TaskScheduler\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7244,18 +6002,11 @@ impl ITimeTrigger { pub unsafe fn Type(&self, ptype: &mut TASK_TRIGGER_TYPE2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Id(&self, pid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Id(&self, pid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetId<'a, P0>(&self, id: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetId)(::windows::core::Interface::as_raw(self), id.into().abi()).ok() + pub unsafe fn SetId(&self, id: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(id)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7271,44 +6022,23 @@ impl ITimeTrigger { { (::windows::core::Interface::vtable(self).base__.SetRepetition)(::windows::core::Interface::as_raw(self), prepeat.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.ExecutionTimeLimit)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptimelimit)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetExecutionTimeLimit<'a, P0>(&self, timelimit: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetExecutionTimeLimit)(::windows::core::Interface::as_raw(self), timelimit.into().abi()).ok() + pub unsafe fn SetExecutionTimeLimit(&self, timelimit: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetExecutionTimeLimit)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(timelimit)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StartBoundary(&self, pstart: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn StartBoundary(&self, pstart: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.StartBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pstart)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetStartBoundary<'a, P0>(&self, start: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetStartBoundary)(::windows::core::Interface::as_raw(self), start.into().abi()).ok() + pub unsafe fn SetStartBoundary(&self, start: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetStartBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(start)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EndBoundary(&self, pend: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn EndBoundary(&self, pend: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.EndBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pend)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetEndBoundary<'a, P0>(&self, end: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetEndBoundary)(::windows::core::Interface::as_raw(self), end.into().abi()).ok() + pub unsafe fn SetEndBoundary(&self, end: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetEndBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(end)).ok() } pub unsafe fn Enabled(&self, penabled: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Enabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(penabled)).ok() @@ -7316,18 +6046,11 @@ impl ITimeTrigger { pub unsafe fn SetEnabled(&self, enabled: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetEnabled)(::windows::core::Interface::as_raw(self), enabled).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RandomDelay(&self, prandomdelay: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn RandomDelay(&self, prandomdelay: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RandomDelay)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(prandomdelay)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRandomDelay<'a, P0>(&self, randomdelay: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetRandomDelay)(::windows::core::Interface::as_raw(self), randomdelay.into().abi()).ok() + pub unsafe fn SetRandomDelay(&self, randomdelay: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetRandomDelay)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(randomdelay)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -7414,14 +6137,8 @@ unsafe impl ::windows::core::Interface for ITimeTrigger { #[doc(hidden)] pub struct ITimeTrigger_Vtbl { pub base__: ITrigger_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub RandomDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prandomdelay: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RandomDelay: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetRandomDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, randomdelay: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetRandomDelay: usize, + pub RandomDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prandomdelay: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetRandomDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, randomdelay: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_TaskScheduler\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7432,18 +6149,11 @@ impl ITrigger { pub unsafe fn Type(&self, ptype: &mut TASK_TRIGGER_TYPE2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Id(&self, pid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Id(&self, pid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetId<'a, P0>(&self, id: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetId)(::windows::core::Interface::as_raw(self), id.into().abi()).ok() + pub unsafe fn SetId(&self, id: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(id)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7459,44 +6169,23 @@ impl ITrigger { { (::windows::core::Interface::vtable(self).SetRepetition)(::windows::core::Interface::as_raw(self), prepeat.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ExecutionTimeLimit)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptimelimit)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetExecutionTimeLimit<'a, P0>(&self, timelimit: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetExecutionTimeLimit)(::windows::core::Interface::as_raw(self), timelimit.into().abi()).ok() + pub unsafe fn SetExecutionTimeLimit(&self, timelimit: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetExecutionTimeLimit)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(timelimit)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StartBoundary(&self, pstart: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn StartBoundary(&self, pstart: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).StartBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pstart)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetStartBoundary<'a, P0>(&self, start: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetStartBoundary)(::windows::core::Interface::as_raw(self), start.into().abi()).ok() + pub unsafe fn SetStartBoundary(&self, start: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetStartBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(start)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EndBoundary(&self, pend: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn EndBoundary(&self, pend: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).EndBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pend)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetEndBoundary<'a, P0>(&self, end: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetEndBoundary)(::windows::core::Interface::as_raw(self), end.into().abi()).ok() + pub unsafe fn SetEndBoundary(&self, end: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetEndBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(end)).ok() } pub unsafe fn Enabled(&self, penabled: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Enabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(penabled)).ok() @@ -7572,14 +6261,8 @@ unsafe impl ::windows::core::Interface for ITrigger { pub struct ITrigger_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Id: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetId: usize, + pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Repetition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprepeat: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -7588,30 +6271,12 @@ pub struct ITrigger_Vtbl { pub SetRepetition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prepeat: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] SetRepetition: usize, - #[cfg(feature = "Win32_Foundation")] - pub ExecutionTimeLimit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptimelimit: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ExecutionTimeLimit: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetExecutionTimeLimit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, timelimit: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetExecutionTimeLimit: usize, - #[cfg(feature = "Win32_Foundation")] - pub StartBoundary: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstart: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - StartBoundary: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetStartBoundary: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, start: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetStartBoundary: usize, - #[cfg(feature = "Win32_Foundation")] - pub EndBoundary: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pend: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EndBoundary: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetEndBoundary: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, end: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetEndBoundary: usize, + pub ExecutionTimeLimit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ptimelimit: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetExecutionTimeLimit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, timelimit: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub StartBoundary: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstart: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetStartBoundary: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, start: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub EndBoundary: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pend: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetEndBoundary: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, end: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Enabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, penabled: *mut i16) -> ::windows::core::HRESULT, pub SetEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enabled: i16) -> ::windows::core::HRESULT, } @@ -7743,18 +6408,11 @@ impl IWeeklyTrigger { pub unsafe fn Type(&self, ptype: &mut TASK_TRIGGER_TYPE2) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptype)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Id(&self, pid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn Id(&self, pid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetId<'a, P0>(&self, id: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetId)(::windows::core::Interface::as_raw(self), id.into().abi()).ok() + pub unsafe fn SetId(&self, id: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(id)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7770,44 +6428,23 @@ impl IWeeklyTrigger { { (::windows::core::Interface::vtable(self).base__.SetRepetition)(::windows::core::Interface::as_raw(self), prepeat.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.ExecutionTimeLimit)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptimelimit)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetExecutionTimeLimit<'a, P0>(&self, timelimit: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetExecutionTimeLimit)(::windows::core::Interface::as_raw(self), timelimit.into().abi()).ok() + pub unsafe fn SetExecutionTimeLimit(&self, timelimit: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetExecutionTimeLimit)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(timelimit)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StartBoundary(&self, pstart: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn StartBoundary(&self, pstart: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.StartBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pstart)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetStartBoundary<'a, P0>(&self, start: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetStartBoundary)(::windows::core::Interface::as_raw(self), start.into().abi()).ok() + pub unsafe fn SetStartBoundary(&self, start: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetStartBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(start)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EndBoundary(&self, pend: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn EndBoundary(&self, pend: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.EndBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pend)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetEndBoundary<'a, P0>(&self, end: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetEndBoundary)(::windows::core::Interface::as_raw(self), end.into().abi()).ok() + pub unsafe fn SetEndBoundary(&self, end: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetEndBoundary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(end)).ok() } pub unsafe fn Enabled(&self, penabled: &mut i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Enabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(penabled)).ok() @@ -7827,18 +6464,11 @@ impl IWeeklyTrigger { pub unsafe fn SetWeeksInterval(&self, weeks: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetWeeksInterval)(::windows::core::Interface::as_raw(self), weeks).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RandomDelay(&self, prandomdelay: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn RandomDelay(&self, prandomdelay: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RandomDelay)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(prandomdelay)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRandomDelay<'a, P0>(&self, randomdelay: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetRandomDelay)(::windows::core::Interface::as_raw(self), randomdelay.into().abi()).ok() + pub unsafe fn SetRandomDelay(&self, randomdelay: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetRandomDelay)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(randomdelay)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -7929,14 +6559,8 @@ pub struct IWeeklyTrigger_Vtbl { pub SetDaysOfWeek: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, days: i16) -> ::windows::core::HRESULT, pub WeeksInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pweeks: *mut i16) -> ::windows::core::HRESULT, pub SetWeeksInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, weeks: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub RandomDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prandomdelay: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RandomDelay: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetRandomDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, randomdelay: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetRandomDelay: usize, + pub RandomDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prandomdelay: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetRandomDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, randomdelay: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } pub const CLSID_CTask: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x148bd520_a2ab_11ce_b11f_00aa00530503); pub const CLSID_CTaskScheduler: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x148bd52a_a2ab_11ce_b11f_00aa00530503); diff --git a/crates/libs/windows/src/Windows/Win32/System/TransactionServer/impl.rs b/crates/libs/windows/src/Windows/Win32/System/TransactionServer/impl.rs index 8f69f8dec2..f5fcae78ac 100644 --- a/crates/libs/windows/src/Windows/Win32/System/TransactionServer/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/TransactionServer/impl.rs @@ -1,7 +1,7 @@ #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICatalog_Impl: Sized + super::Com::IDispatch_Impl { - fn GetCollection(&self, bstrcollname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn Connect(&self, bstrconnectstring: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetCollection(&self, bstrcollname: &::windows::core::BSTR) -> ::windows::core::Result; + fn Connect(&self, bstrconnectstring: &::windows::core::BSTR) -> ::windows::core::Result; fn MajorVersion(&self, retval: *mut i32) -> ::windows::core::Result<()>; fn MinorVersion(&self, retval: *mut i32) -> ::windows::core::Result<()>; } @@ -10,7 +10,7 @@ impl ::windows::core::RuntimeName for ICatalog {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICatalog_Vtbl { pub const fn new, Impl: ICatalog_Impl, const OFFSET: isize>() -> ICatalog_Vtbl { - unsafe extern "system" fn GetCollection, Impl: ICatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcollname: ::core::mem::ManuallyDrop, ppcatalogcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCollection, Impl: ICatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcollname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppcatalogcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCollection(::core::mem::transmute(&bstrcollname)) { @@ -21,7 +21,7 @@ impl ICatalog_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Connect, Impl: ICatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrconnectstring: ::core::mem::ManuallyDrop, ppcatalogcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Connect, Impl: ICatalog_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrconnectstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppcatalogcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Connect(::core::mem::transmute(&bstrconnectstring)) { @@ -56,32 +56,32 @@ impl ICatalog_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IComponentUtil_Impl: Sized + super::Com::IDispatch_Impl { - fn InstallComponent(&self, bstrdllfile: &super::super::Foundation::BSTR, bstrtypelibfile: &super::super::Foundation::BSTR, bstrproxystubdllfile: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ImportComponent(&self, bstrclsid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ImportComponentByName(&self, bstrprogid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetCLSIDs(&self, bstrdllfile: &super::super::Foundation::BSTR, bstrtypelibfile: &super::super::Foundation::BSTR, aclsids: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::Result<()>; + fn InstallComponent(&self, bstrdllfile: &::windows::core::BSTR, bstrtypelibfile: &::windows::core::BSTR, bstrproxystubdllfile: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ImportComponent(&self, bstrclsid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ImportComponentByName(&self, bstrprogid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetCLSIDs(&self, bstrdllfile: &::windows::core::BSTR, bstrtypelibfile: &::windows::core::BSTR, aclsids: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IComponentUtil {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IComponentUtil_Vtbl { pub const fn new, Impl: IComponentUtil_Impl, const OFFSET: isize>() -> IComponentUtil_Vtbl { - unsafe extern "system" fn InstallComponent, Impl: IComponentUtil_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdllfile: ::core::mem::ManuallyDrop, bstrtypelibfile: ::core::mem::ManuallyDrop, bstrproxystubdllfile: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InstallComponent, Impl: IComponentUtil_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdllfile: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrtypelibfile: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrproxystubdllfile: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InstallComponent(::core::mem::transmute(&bstrdllfile), ::core::mem::transmute(&bstrtypelibfile), ::core::mem::transmute(&bstrproxystubdllfile)).into() } - unsafe extern "system" fn ImportComponent, Impl: IComponentUtil_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrclsid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ImportComponent, Impl: IComponentUtil_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrclsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ImportComponent(::core::mem::transmute(&bstrclsid)).into() } - unsafe extern "system" fn ImportComponentByName, Impl: IComponentUtil_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprogid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ImportComponentByName, Impl: IComponentUtil_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprogid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ImportComponentByName(::core::mem::transmute(&bstrprogid)).into() } - unsafe extern "system" fn GetCLSIDs, Impl: IComponentUtil_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdllfile: ::core::mem::ManuallyDrop, bstrtypelibfile: ::core::mem::ManuallyDrop, aclsids: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCLSIDs, Impl: IComponentUtil_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdllfile: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrtypelibfile: ::core::mem::ManuallyDrop<::windows::core::BSTR>, aclsids: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetCLSIDs(::core::mem::transmute(&bstrdllfile), ::core::mem::transmute(&bstrtypelibfile), ::core::mem::transmute_copy(&aclsids)).into() @@ -100,26 +100,26 @@ impl IComponentUtil_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IPackageUtil_Impl: Sized + super::Com::IDispatch_Impl { - fn InstallPackage(&self, bstrpackagefile: &super::super::Foundation::BSTR, bstrinstallpath: &super::super::Foundation::BSTR, loptions: i32) -> ::windows::core::Result<()>; - fn ExportPackage(&self, bstrpackageid: &super::super::Foundation::BSTR, bstrpackagefile: &super::super::Foundation::BSTR, loptions: i32) -> ::windows::core::Result<()>; - fn ShutdownPackage(&self, bstrpackageid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn InstallPackage(&self, bstrpackagefile: &::windows::core::BSTR, bstrinstallpath: &::windows::core::BSTR, loptions: i32) -> ::windows::core::Result<()>; + fn ExportPackage(&self, bstrpackageid: &::windows::core::BSTR, bstrpackagefile: &::windows::core::BSTR, loptions: i32) -> ::windows::core::Result<()>; + fn ShutdownPackage(&self, bstrpackageid: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IPackageUtil {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IPackageUtil_Vtbl { pub const fn new, Impl: IPackageUtil_Impl, const OFFSET: isize>() -> IPackageUtil_Vtbl { - unsafe extern "system" fn InstallPackage, Impl: IPackageUtil_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpackagefile: ::core::mem::ManuallyDrop, bstrinstallpath: ::core::mem::ManuallyDrop, loptions: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn InstallPackage, Impl: IPackageUtil_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpackagefile: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrinstallpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, loptions: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InstallPackage(::core::mem::transmute(&bstrpackagefile), ::core::mem::transmute(&bstrinstallpath), ::core::mem::transmute_copy(&loptions)).into() } - unsafe extern "system" fn ExportPackage, Impl: IPackageUtil_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpackageid: ::core::mem::ManuallyDrop, bstrpackagefile: ::core::mem::ManuallyDrop, loptions: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExportPackage, Impl: IPackageUtil_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpackageid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpackagefile: ::core::mem::ManuallyDrop<::windows::core::BSTR>, loptions: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ExportPackage(::core::mem::transmute(&bstrpackageid), ::core::mem::transmute(&bstrpackagefile), ::core::mem::transmute_copy(&loptions)).into() } - unsafe extern "system" fn ShutdownPackage, Impl: IPackageUtil_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpackageid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ShutdownPackage, Impl: IPackageUtil_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpackageid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ShutdownPackage(::core::mem::transmute(&bstrpackageid)).into() @@ -137,20 +137,20 @@ impl IPackageUtil_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IRemoteComponentUtil_Impl: Sized + super::Com::IDispatch_Impl { - fn InstallRemoteComponent(&self, bstrserver: &super::super::Foundation::BSTR, bstrpackageid: &super::super::Foundation::BSTR, bstrclsid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn InstallRemoteComponentByName(&self, bstrserver: &super::super::Foundation::BSTR, bstrpackagename: &super::super::Foundation::BSTR, bstrprogid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn InstallRemoteComponent(&self, bstrserver: &::windows::core::BSTR, bstrpackageid: &::windows::core::BSTR, bstrclsid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn InstallRemoteComponentByName(&self, bstrserver: &::windows::core::BSTR, bstrpackagename: &::windows::core::BSTR, bstrprogid: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IRemoteComponentUtil {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IRemoteComponentUtil_Vtbl { pub const fn new, Impl: IRemoteComponentUtil_Impl, const OFFSET: isize>() -> IRemoteComponentUtil_Vtbl { - unsafe extern "system" fn InstallRemoteComponent, Impl: IRemoteComponentUtil_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrserver: ::core::mem::ManuallyDrop, bstrpackageid: ::core::mem::ManuallyDrop, bstrclsid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InstallRemoteComponent, Impl: IRemoteComponentUtil_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrserver: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpackageid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrclsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InstallRemoteComponent(::core::mem::transmute(&bstrserver), ::core::mem::transmute(&bstrpackageid), ::core::mem::transmute(&bstrclsid)).into() } - unsafe extern "system" fn InstallRemoteComponentByName, Impl: IRemoteComponentUtil_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrserver: ::core::mem::ManuallyDrop, bstrpackagename: ::core::mem::ManuallyDrop, bstrprogid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InstallRemoteComponentByName, Impl: IRemoteComponentUtil_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrserver: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpackagename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrprogid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InstallRemoteComponentByName(::core::mem::transmute(&bstrserver), ::core::mem::transmute(&bstrpackagename), ::core::mem::transmute(&bstrprogid)).into() @@ -167,20 +167,20 @@ impl IRemoteComponentUtil_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IRoleAssociationUtil_Impl: Sized + super::Com::IDispatch_Impl { - fn AssociateRole(&self, bstrroleid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn AssociateRoleByName(&self, bstrrolename: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn AssociateRole(&self, bstrroleid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn AssociateRoleByName(&self, bstrrolename: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IRoleAssociationUtil {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IRoleAssociationUtil_Vtbl { pub const fn new, Impl: IRoleAssociationUtil_Impl, const OFFSET: isize>() -> IRoleAssociationUtil_Vtbl { - unsafe extern "system" fn AssociateRole, Impl: IRoleAssociationUtil_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrroleid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AssociateRole, Impl: IRoleAssociationUtil_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrroleid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AssociateRole(::core::mem::transmute(&bstrroleid)).into() } - unsafe extern "system" fn AssociateRoleByName, Impl: IRoleAssociationUtil_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrolename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AssociateRoleByName, Impl: IRoleAssociationUtil_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrolename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AssociateRoleByName(::core::mem::transmute(&bstrrolename)).into() diff --git a/crates/libs/windows/src/Windows/Win32/System/TransactionServer/mod.rs b/crates/libs/windows/src/Windows/Win32/System/TransactionServer/mod.rs index 08ac5a6714..21bfd30222 100644 --- a/crates/libs/windows/src/Windows/Win32/System/TransactionServer/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/TransactionServer/mod.rs @@ -4,23 +4,17 @@ pub struct ICatalog(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICatalog { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetCollection<'a, P0>(&self, bstrcollname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetCollection(&self, bstrcollname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetCollection)(::windows::core::Interface::as_raw(self), bstrcollname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) - } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Connect<'a, P0>(&self, bstrconnectstring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + (::windows::core::Interface::vtable(self).GetCollection)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcollname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + } + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Connect(&self, bstrconnectstring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Connect)(::windows::core::Interface::as_raw(self), bstrconnectstring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Connect)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrconnectstring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn MajorVersion(&self, retval: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).MajorVersion)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(retval)).ok() @@ -95,13 +89,13 @@ unsafe impl ::windows::core::Interface for ICatalog { #[doc(hidden)] pub struct ICatalog_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetCollection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcollname: ::core::mem::ManuallyDrop, ppcatalogcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetCollection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcollname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppcatalogcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetCollection: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Connect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrconnectstring: ::core::mem::ManuallyDrop, ppcatalogcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub Connect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrconnectstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppcatalogcollection: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Connect: usize, pub MajorVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, pub MinorVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, @@ -112,40 +106,19 @@ pub struct ICatalog_Vtbl { pub struct IComponentUtil(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IComponentUtil { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InstallComponent<'a, P0, P1, P2>(&self, bstrdllfile: P0, bstrtypelibfile: P1, bstrproxystubdllfile: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InstallComponent)(::windows::core::Interface::as_raw(self), bstrdllfile.into().abi(), bstrtypelibfile.into().abi(), bstrproxystubdllfile.into().abi()).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ImportComponent<'a, P0>(&self, bstrclsid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ImportComponent)(::windows::core::Interface::as_raw(self), bstrclsid.into().abi()).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ImportComponentByName<'a, P0>(&self, bstrprogid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ImportComponentByName)(::windows::core::Interface::as_raw(self), bstrprogid.into().abi()).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetCLSIDs<'a, P0, P1>(&self, bstrdllfile: P0, bstrtypelibfile: P1, aclsids: &mut *mut super::Com::SAFEARRAY) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetCLSIDs)(::windows::core::Interface::as_raw(self), bstrdllfile.into().abi(), bstrtypelibfile.into().abi(), ::core::mem::transmute(aclsids)).ok() + pub unsafe fn InstallComponent(&self, bstrdllfile: &::windows::core::BSTR, bstrtypelibfile: &::windows::core::BSTR, bstrproxystubdllfile: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InstallComponent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdllfile), ::core::mem::transmute_copy(bstrtypelibfile), ::core::mem::transmute_copy(bstrproxystubdllfile)).ok() + } + pub unsafe fn ImportComponent(&self, bstrclsid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ImportComponent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrclsid)).ok() + } + pub unsafe fn ImportComponentByName(&self, bstrprogid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ImportComponentByName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprogid)).ok() + } + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetCLSIDs(&self, bstrdllfile: &::windows::core::BSTR, bstrtypelibfile: &::windows::core::BSTR, aclsids: &mut *mut super::Com::SAFEARRAY) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetCLSIDs)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdllfile), ::core::mem::transmute_copy(bstrtypelibfile), ::core::mem::transmute(aclsids)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -214,21 +187,12 @@ unsafe impl ::windows::core::Interface for IComponentUtil { #[doc(hidden)] pub struct IComponentUtil_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub InstallComponent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdllfile: ::core::mem::ManuallyDrop, bstrtypelibfile: ::core::mem::ManuallyDrop, bstrproxystubdllfile: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InstallComponent: usize, - #[cfg(feature = "Win32_Foundation")] - pub ImportComponent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrclsid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ImportComponent: usize, - #[cfg(feature = "Win32_Foundation")] - pub ImportComponentByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprogid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ImportComponentByName: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetCLSIDs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdllfile: ::core::mem::ManuallyDrop, bstrtypelibfile: ::core::mem::ManuallyDrop, aclsids: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub InstallComponent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdllfile: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrtypelibfile: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrproxystubdllfile: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ImportComponent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrclsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ImportComponentByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprogid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub GetCLSIDs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdllfile: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrtypelibfile: ::core::mem::ManuallyDrop<::windows::core::BSTR>, aclsids: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetCLSIDs: usize, } #[doc = "*Required features: `\"Win32_System_TransactionServer\"`, `\"Win32_System_Com\"`*"] @@ -237,31 +201,14 @@ pub struct IComponentUtil_Vtbl { pub struct IPackageUtil(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IPackageUtil { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InstallPackage<'a, P0, P1>(&self, bstrpackagefile: P0, bstrinstallpath: P1, loptions: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InstallPackage)(::windows::core::Interface::as_raw(self), bstrpackagefile.into().abi(), bstrinstallpath.into().abi(), loptions).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExportPackage<'a, P0, P1>(&self, bstrpackageid: P0, bstrpackagefile: P1, loptions: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ExportPackage)(::windows::core::Interface::as_raw(self), bstrpackageid.into().abi(), bstrpackagefile.into().abi(), loptions).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ShutdownPackage<'a, P0>(&self, bstrpackageid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ShutdownPackage)(::windows::core::Interface::as_raw(self), bstrpackageid.into().abi()).ok() + pub unsafe fn InstallPackage(&self, bstrpackagefile: &::windows::core::BSTR, bstrinstallpath: &::windows::core::BSTR, loptions: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InstallPackage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpackagefile), ::core::mem::transmute_copy(bstrinstallpath), loptions).ok() + } + pub unsafe fn ExportPackage(&self, bstrpackageid: &::windows::core::BSTR, bstrpackagefile: &::windows::core::BSTR, loptions: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ExportPackage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpackageid), ::core::mem::transmute_copy(bstrpackagefile), loptions).ok() + } + pub unsafe fn ShutdownPackage(&self, bstrpackageid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ShutdownPackage)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpackageid)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -330,18 +277,9 @@ unsafe impl ::windows::core::Interface for IPackageUtil { #[doc(hidden)] pub struct IPackageUtil_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub InstallPackage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpackagefile: ::core::mem::ManuallyDrop, bstrinstallpath: ::core::mem::ManuallyDrop, loptions: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InstallPackage: usize, - #[cfg(feature = "Win32_Foundation")] - pub ExportPackage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpackageid: ::core::mem::ManuallyDrop, bstrpackagefile: ::core::mem::ManuallyDrop, loptions: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ExportPackage: usize, - #[cfg(feature = "Win32_Foundation")] - pub ShutdownPackage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpackageid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ShutdownPackage: usize, + pub InstallPackage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpackagefile: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrinstallpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, loptions: i32) -> ::windows::core::HRESULT, + pub ExportPackage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpackageid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpackagefile: ::core::mem::ManuallyDrop<::windows::core::BSTR>, loptions: i32) -> ::windows::core::HRESULT, + pub ShutdownPackage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpackageid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_TransactionServer\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -349,25 +287,11 @@ pub struct IPackageUtil_Vtbl { pub struct IRemoteComponentUtil(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IRemoteComponentUtil { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InstallRemoteComponent<'a, P0, P1, P2>(&self, bstrserver: P0, bstrpackageid: P1, bstrclsid: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InstallRemoteComponent)(::windows::core::Interface::as_raw(self), bstrserver.into().abi(), bstrpackageid.into().abi(), bstrclsid.into().abi()).ok() - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InstallRemoteComponentByName<'a, P0, P1, P2>(&self, bstrserver: P0, bstrpackagename: P1, bstrprogid: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InstallRemoteComponentByName)(::windows::core::Interface::as_raw(self), bstrserver.into().abi(), bstrpackagename.into().abi(), bstrprogid.into().abi()).ok() + pub unsafe fn InstallRemoteComponent(&self, bstrserver: &::windows::core::BSTR, bstrpackageid: &::windows::core::BSTR, bstrclsid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InstallRemoteComponent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrserver), ::core::mem::transmute_copy(bstrpackageid), ::core::mem::transmute_copy(bstrclsid)).ok() + } + pub unsafe fn InstallRemoteComponentByName(&self, bstrserver: &::windows::core::BSTR, bstrpackagename: &::windows::core::BSTR, bstrprogid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InstallRemoteComponentByName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrserver), ::core::mem::transmute_copy(bstrpackagename), ::core::mem::transmute_copy(bstrprogid)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -436,14 +360,8 @@ unsafe impl ::windows::core::Interface for IRemoteComponentUtil { #[doc(hidden)] pub struct IRemoteComponentUtil_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub InstallRemoteComponent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrserver: ::core::mem::ManuallyDrop, bstrpackageid: ::core::mem::ManuallyDrop, bstrclsid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InstallRemoteComponent: usize, - #[cfg(feature = "Win32_Foundation")] - pub InstallRemoteComponentByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrserver: ::core::mem::ManuallyDrop, bstrpackagename: ::core::mem::ManuallyDrop, bstrprogid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InstallRemoteComponentByName: usize, + pub InstallRemoteComponent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrserver: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpackageid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrclsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub InstallRemoteComponentByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrserver: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrpackagename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrprogid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_TransactionServer\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -451,21 +369,11 @@ pub struct IRemoteComponentUtil_Vtbl { pub struct IRoleAssociationUtil(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IRoleAssociationUtil { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AssociateRole<'a, P0>(&self, bstrroleid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AssociateRole)(::windows::core::Interface::as_raw(self), bstrroleid.into().abi()).ok() + pub unsafe fn AssociateRole(&self, bstrroleid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AssociateRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrroleid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AssociateRoleByName<'a, P0>(&self, bstrrolename: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AssociateRoleByName)(::windows::core::Interface::as_raw(self), bstrrolename.into().abi()).ok() + pub unsafe fn AssociateRoleByName(&self, bstrrolename: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AssociateRoleByName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrolename)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -534,14 +442,8 @@ unsafe impl ::windows::core::Interface for IRoleAssociationUtil { #[doc(hidden)] pub struct IRoleAssociationUtil_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub AssociateRole: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrroleid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AssociateRole: usize, - #[cfg(feature = "Win32_Foundation")] - pub AssociateRoleByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrolename: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AssociateRoleByName: usize, + pub AssociateRole: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrroleid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub AssociateRoleByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrolename: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } pub const Catalog: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6eb22881_8a19_11d0_81b6_00a0c9231c29); pub const CatalogCollection: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6eb22883_8a19_11d0_81b6_00a0c9231c29); diff --git a/crates/libs/windows/src/Windows/Win32/System/UpdateAgent/impl.rs b/crates/libs/windows/src/Windows/Win32/System/UpdateAgent/impl.rs index 6b8501ccb3..e19375d44d 100644 --- a/crates/libs/windows/src/Windows/Win32/System/UpdateAgent/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/UpdateAgent/impl.rs @@ -366,14 +366,14 @@ impl IAutomaticUpdatesSettings3_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ICategory_Impl: Sized + super::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; - fn CategoryID(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CategoryID(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Children(&self) -> ::windows::core::Result; - fn Description(&self) -> ::windows::core::Result; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Image(&self) -> ::windows::core::Result; fn Order(&self) -> ::windows::core::Result; fn Parent(&self) -> ::windows::core::Result; - fn Type(&self) -> ::windows::core::Result; + fn Type(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Updates(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -381,7 +381,7 @@ impl ::windows::core::RuntimeName for ICategory {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ICategory_Vtbl { pub const fn new, Impl: ICategory_Impl, const OFFSET: isize>() -> ICategory_Vtbl { - unsafe extern "system" fn Name, Impl: ICategory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: ICategory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -392,7 +392,7 @@ impl ICategory_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CategoryID, Impl: ICategory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CategoryID, Impl: ICategory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CategoryID() { @@ -414,7 +414,7 @@ impl ICategory_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Description, Impl: ICategory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: ICategory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -458,7 +458,7 @@ impl ICategory_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Type, Impl: ICategory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Type, Impl: ICategory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Type() { @@ -903,9 +903,9 @@ impl IDownloadResult_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IImageInformation_Impl: Sized + super::Com::IDispatch_Impl { - fn AltText(&self) -> ::windows::core::Result; + fn AltText(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Height(&self) -> ::windows::core::Result; - fn Source(&self) -> ::windows::core::Result; + fn Source(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Width(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -913,7 +913,7 @@ impl ::windows::core::RuntimeName for IImageInformation {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IImageInformation_Vtbl { pub const fn new, Impl: IImageInformation_Impl, const OFFSET: isize>() -> IImageInformation_Vtbl { - unsafe extern "system" fn AltText, Impl: IImageInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn AltText, Impl: IImageInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AltText() { @@ -935,7 +935,7 @@ impl IImageInformation_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Source, Impl: IImageInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Source, Impl: IImageInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Source() { @@ -971,14 +971,14 @@ impl IImageInformation_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IInstallationAgent_Impl: Sized + super::Com::IDispatch_Impl { - fn RecordInstallationResult(&self, installationresultcookie: &super::super::Foundation::BSTR, hresult: i32, extendedreportingdata: &::core::option::Option) -> ::windows::core::Result<()>; + fn RecordInstallationResult(&self, installationresultcookie: &::windows::core::BSTR, hresult: i32, extendedreportingdata: &::core::option::Option) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IInstallationAgent {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IInstallationAgent_Vtbl { pub const fn new, Impl: IInstallationAgent_Impl, const OFFSET: isize>() -> IInstallationAgent_Vtbl { - unsafe extern "system" fn RecordInstallationResult, Impl: IInstallationAgent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, installationresultcookie: ::core::mem::ManuallyDrop, hresult: i32, extendedreportingdata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn RecordInstallationResult, Impl: IInstallationAgent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, installationresultcookie: ::core::mem::ManuallyDrop<::windows::core::BSTR>, hresult: i32, extendedreportingdata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RecordInstallationResult(::core::mem::transmute(&installationresultcookie), ::core::mem::transmute_copy(&hresult), ::core::mem::transmute(&extendedreportingdata)).into() @@ -1359,14 +1359,14 @@ impl IInstallationResult_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IInvalidProductLicenseException_Impl: Sized + super::Com::IDispatch_Impl + IUpdateException_Impl { - fn Product(&self) -> ::windows::core::Result; + fn Product(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IInvalidProductLicenseException {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IInvalidProductLicenseException_Vtbl { pub const fn new, Impl: IInvalidProductLicenseException_Impl, const OFFSET: isize>() -> IInvalidProductLicenseException_Vtbl { - unsafe extern "system" fn Product, Impl: IInvalidProductLicenseException_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Product, Impl: IInvalidProductLicenseException_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Product() { @@ -1542,15 +1542,15 @@ impl ISearchResult_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IStringCollection_Impl: Sized + super::Com::IDispatch_Impl { - fn get_Item(&self, index: i32) -> ::windows::core::Result; - fn put_Item(&self, index: i32, value: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn get_Item(&self, index: i32) -> ::windows::core::Result<::windows::core::BSTR>; + fn put_Item(&self, index: i32, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; fn Count(&self) -> ::windows::core::Result; fn ReadOnly(&self) -> ::windows::core::Result; - fn Add(&self, value: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn Add(&self, value: &::windows::core::BSTR) -> ::windows::core::Result; fn Clear(&self) -> ::windows::core::Result<()>; fn Copy(&self) -> ::windows::core::Result; - fn Insert(&self, index: i32, value: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Insert(&self, index: i32, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn RemoveAt(&self, index: i32) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -1558,7 +1558,7 @@ impl ::windows::core::RuntimeName for IStringCollection {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IStringCollection_Vtbl { pub const fn new, Impl: IStringCollection_Impl, const OFFSET: isize>() -> IStringCollection_Vtbl { - unsafe extern "system" fn get_Item, Impl: IStringCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: i32, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Item, Impl: IStringCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: i32, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_Item(::core::mem::transmute_copy(&index)) { @@ -1569,7 +1569,7 @@ impl IStringCollection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn put_Item, Impl: IStringCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: i32, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn put_Item, Impl: IStringCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: i32, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.put_Item(::core::mem::transmute_copy(&index), ::core::mem::transmute(&value)).into() @@ -1607,7 +1607,7 @@ impl IStringCollection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Add, Impl: IStringCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop, retval: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn Add, Impl: IStringCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>, retval: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Add(::core::mem::transmute(&value)) { @@ -1634,7 +1634,7 @@ impl IStringCollection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Insert, Impl: IStringCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: i32, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Insert, Impl: IStringCollection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: i32, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Insert(::core::mem::transmute_copy(&index), ::core::mem::transmute(&value)).into() @@ -1664,7 +1664,7 @@ impl IStringCollection_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISystemInformation_Impl: Sized + super::Com::IDispatch_Impl { - fn OemHardwareSupportLink(&self) -> ::windows::core::Result; + fn OemHardwareSupportLink(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn RebootRequired(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -1672,7 +1672,7 @@ impl ::windows::core::RuntimeName for ISystemInformation {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ISystemInformation_Vtbl { pub const fn new, Impl: ISystemInformation_Impl, const OFFSET: isize>() -> ISystemInformation_Vtbl { - unsafe extern "system" fn OemHardwareSupportLink, Impl: ISystemInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn OemHardwareSupportLink, Impl: ISystemInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OemHardwareSupportLink() { @@ -1706,7 +1706,7 @@ impl ISystemInformation_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IUpdate_Impl: Sized + super::Com::IDispatch_Impl { - fn Title(&self) -> ::windows::core::Result; + fn Title(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn AutoSelectOnWebSites(&self) -> ::windows::core::Result; fn BundledUpdates(&self) -> ::windows::core::Result; fn CanRequireSource(&self) -> ::windows::core::Result; @@ -1714,10 +1714,10 @@ pub trait IUpdate_Impl: Sized + super::Com::IDispatch_Impl { fn Deadline(&self) -> ::windows::core::Result; fn DeltaCompressedContentAvailable(&self) -> ::windows::core::Result; fn DeltaCompressedContentPreferred(&self) -> ::windows::core::Result; - fn Description(&self) -> ::windows::core::Result; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn EulaAccepted(&self) -> ::windows::core::Result; - fn EulaText(&self) -> ::windows::core::Result; - fn HandlerID(&self) -> ::windows::core::Result; + fn EulaText(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn HandlerID(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Identity(&self) -> ::windows::core::Result; fn Image(&self) -> ::windows::core::Result; fn InstallationBehavior(&self) -> ::windows::core::Result; @@ -1733,22 +1733,22 @@ pub trait IUpdate_Impl: Sized + super::Com::IDispatch_Impl { fn MaxDownloadSize(&self) -> ::windows::core::Result; fn MinDownloadSize(&self) -> ::windows::core::Result; fn MoreInfoUrls(&self) -> ::windows::core::Result; - fn MsrcSeverity(&self) -> ::windows::core::Result; + fn MsrcSeverity(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn RecommendedCpuSpeed(&self) -> ::windows::core::Result; fn RecommendedHardDiskSpace(&self) -> ::windows::core::Result; fn RecommendedMemory(&self) -> ::windows::core::Result; - fn ReleaseNotes(&self) -> ::windows::core::Result; + fn ReleaseNotes(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn SecurityBulletinIDs(&self) -> ::windows::core::Result; fn SupersededUpdateIDs(&self) -> ::windows::core::Result; - fn SupportUrl(&self) -> ::windows::core::Result; + fn SupportUrl(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Type(&self) -> ::windows::core::Result; - fn UninstallationNotes(&self) -> ::windows::core::Result; + fn UninstallationNotes(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn UninstallationBehavior(&self) -> ::windows::core::Result; fn UninstallationSteps(&self) -> ::windows::core::Result; fn KBArticleIDs(&self) -> ::windows::core::Result; fn AcceptEula(&self) -> ::windows::core::Result<()>; fn DeploymentAction(&self) -> ::windows::core::Result; - fn CopyFromCache(&self, path: &super::super::Foundation::BSTR, toextractcabfiles: i16) -> ::windows::core::Result<()>; + fn CopyFromCache(&self, path: &::windows::core::BSTR, toextractcabfiles: i16) -> ::windows::core::Result<()>; fn DownloadPriority(&self) -> ::windows::core::Result; fn DownloadContents(&self) -> ::windows::core::Result; } @@ -1757,7 +1757,7 @@ impl ::windows::core::RuntimeName for IUpdate {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IUpdate_Vtbl { pub const fn new, Impl: IUpdate_Impl, const OFFSET: isize>() -> IUpdate_Vtbl { - unsafe extern "system" fn Title, Impl: IUpdate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Title, Impl: IUpdate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Title() { @@ -1845,7 +1845,7 @@ impl IUpdate_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Description, Impl: IUpdate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IUpdate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -1867,7 +1867,7 @@ impl IUpdate_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn EulaText, Impl: IUpdate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn EulaText, Impl: IUpdate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EulaText() { @@ -1878,7 +1878,7 @@ impl IUpdate_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn HandlerID, Impl: IUpdate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn HandlerID, Impl: IUpdate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.HandlerID() { @@ -2048,7 +2048,7 @@ impl IUpdate_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn MsrcSeverity, Impl: IUpdate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn MsrcSeverity, Impl: IUpdate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.MsrcSeverity() { @@ -2092,7 +2092,7 @@ impl IUpdate_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ReleaseNotes, Impl: IUpdate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ReleaseNotes, Impl: IUpdate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ReleaseNotes() { @@ -2125,7 +2125,7 @@ impl IUpdate_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SupportUrl, Impl: IUpdate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SupportUrl, Impl: IUpdate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SupportUrl() { @@ -2147,7 +2147,7 @@ impl IUpdate_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn UninstallationNotes, Impl: IUpdate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UninstallationNotes, Impl: IUpdate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UninstallationNotes() { @@ -2207,7 +2207,7 @@ impl IUpdate_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CopyFromCache, Impl: IUpdate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, toextractcabfiles: i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn CopyFromCache, Impl: IUpdate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, toextractcabfiles: i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CopyFromCache(::core::mem::transmute(&path), ::core::mem::transmute_copy(&toextractcabfiles)).into() @@ -2567,14 +2567,14 @@ impl IUpdateCollection_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IUpdateDownloadContent_Impl: Sized + super::Com::IDispatch_Impl { - fn DownloadUrl(&self) -> ::windows::core::Result; + fn DownloadUrl(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IUpdateDownloadContent {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IUpdateDownloadContent_Vtbl { pub const fn new, Impl: IUpdateDownloadContent_Impl, const OFFSET: isize>() -> IUpdateDownloadContent_Vtbl { - unsafe extern "system" fn DownloadUrl, Impl: IUpdateDownloadContent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DownloadUrl, Impl: IUpdateDownloadContent_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DownloadUrl() { @@ -2719,8 +2719,8 @@ impl IUpdateDownloadResult_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IUpdateDownloader_Impl: Sized + super::Com::IDispatch_Impl { - fn ClientApplicationID(&self) -> ::windows::core::Result; - fn SetClientApplicationID(&self, value: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ClientApplicationID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetClientApplicationID(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn IsForced(&self) -> ::windows::core::Result; fn SetIsForced(&self, value: i16) -> ::windows::core::Result<()>; fn Priority(&self) -> ::windows::core::Result; @@ -2736,7 +2736,7 @@ impl ::windows::core::RuntimeName for IUpdateDownloader {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IUpdateDownloader_Vtbl { pub const fn new, Impl: IUpdateDownloader_Impl, const OFFSET: isize>() -> IUpdateDownloader_Vtbl { - unsafe extern "system" fn ClientApplicationID, Impl: IUpdateDownloader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ClientApplicationID, Impl: IUpdateDownloader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ClientApplicationID() { @@ -2747,7 +2747,7 @@ impl IUpdateDownloader_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetClientApplicationID, Impl: IUpdateDownloader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetClientApplicationID, Impl: IUpdateDownloader_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetClientApplicationID(::core::mem::transmute(&value)).into() @@ -2854,7 +2854,7 @@ impl IUpdateDownloader_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IUpdateException_Impl: Sized + super::Com::IDispatch_Impl { - fn Message(&self) -> ::windows::core::Result; + fn Message(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn HResult(&self) -> ::windows::core::Result; fn Context(&self) -> ::windows::core::Result; } @@ -2863,7 +2863,7 @@ impl ::windows::core::RuntimeName for IUpdateException {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IUpdateException_Vtbl { pub const fn new, Impl: IUpdateException_Impl, const OFFSET: isize>() -> IUpdateException_Vtbl { - unsafe extern "system" fn Message, Impl: IUpdateException_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Message, Impl: IUpdateException_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Message() { @@ -2969,15 +2969,15 @@ pub trait IUpdateHistoryEntry_Impl: Sized + super::Com::IDispatch_Impl { fn HResult(&self) -> ::windows::core::Result; fn Date(&self) -> ::windows::core::Result; fn UpdateIdentity(&self) -> ::windows::core::Result; - fn Title(&self) -> ::windows::core::Result; - fn Description(&self) -> ::windows::core::Result; + fn Title(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn UnmappedResultCode(&self) -> ::windows::core::Result; - fn ClientApplicationID(&self) -> ::windows::core::Result; + fn ClientApplicationID(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn ServerSelection(&self) -> ::windows::core::Result; - fn ServiceID(&self) -> ::windows::core::Result; + fn ServiceID(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn UninstallationSteps(&self) -> ::windows::core::Result; - fn UninstallationNotes(&self) -> ::windows::core::Result; - fn SupportUrl(&self) -> ::windows::core::Result; + fn UninstallationNotes(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SupportUrl(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IUpdateHistoryEntry {} @@ -3039,7 +3039,7 @@ impl IUpdateHistoryEntry_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Title, Impl: IUpdateHistoryEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Title, Impl: IUpdateHistoryEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Title() { @@ -3050,7 +3050,7 @@ impl IUpdateHistoryEntry_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Description, Impl: IUpdateHistoryEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IUpdateHistoryEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -3072,7 +3072,7 @@ impl IUpdateHistoryEntry_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ClientApplicationID, Impl: IUpdateHistoryEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ClientApplicationID, Impl: IUpdateHistoryEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ClientApplicationID() { @@ -3094,7 +3094,7 @@ impl IUpdateHistoryEntry_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ServiceID, Impl: IUpdateHistoryEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ServiceID, Impl: IUpdateHistoryEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ServiceID() { @@ -3116,7 +3116,7 @@ impl IUpdateHistoryEntry_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn UninstallationNotes, Impl: IUpdateHistoryEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UninstallationNotes, Impl: IUpdateHistoryEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UninstallationNotes() { @@ -3127,7 +3127,7 @@ impl IUpdateHistoryEntry_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SupportUrl, Impl: IUpdateHistoryEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SupportUrl, Impl: IUpdateHistoryEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SupportUrl() { @@ -3244,7 +3244,7 @@ impl IUpdateHistoryEntryCollection_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IUpdateIdentity_Impl: Sized + super::Com::IDispatch_Impl { fn RevisionNumber(&self) -> ::windows::core::Result; - fn UpdateID(&self) -> ::windows::core::Result; + fn UpdateID(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IUpdateIdentity {} @@ -3262,7 +3262,7 @@ impl IUpdateIdentity_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn UpdateID, Impl: IUpdateIdentity_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UpdateID, Impl: IUpdateIdentity_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UpdateID() { @@ -3340,8 +3340,8 @@ impl IUpdateInstallationResult_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IUpdateInstaller_Impl: Sized + super::Com::IDispatch_Impl { - fn ClientApplicationID(&self) -> ::windows::core::Result; - fn SetClientApplicationID(&self, value: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ClientApplicationID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetClientApplicationID(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn IsForced(&self) -> ::windows::core::Result; fn SetIsForced(&self, value: i16) -> ::windows::core::Result<()>; fn ParentHwnd(&self) -> ::windows::core::Result; @@ -3355,7 +3355,7 @@ pub trait IUpdateInstaller_Impl: Sized + super::Com::IDispatch_Impl { fn EndInstall(&self, value: &::core::option::Option) -> ::windows::core::Result; fn EndUninstall(&self, value: &::core::option::Option) -> ::windows::core::Result; fn Install(&self) -> ::windows::core::Result; - fn RunWizard(&self, dialogtitle: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn RunWizard(&self, dialogtitle: &::windows::core::BSTR) -> ::windows::core::Result; fn IsBusy(&self) -> ::windows::core::Result; fn Uninstall(&self) -> ::windows::core::Result; fn AllowSourcePrompts(&self) -> ::windows::core::Result; @@ -3367,7 +3367,7 @@ impl ::windows::core::RuntimeName for IUpdateInstaller {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IUpdateInstaller_Vtbl { pub const fn new, Impl: IUpdateInstaller_Impl, const OFFSET: isize>() -> IUpdateInstaller_Vtbl { - unsafe extern "system" fn ClientApplicationID, Impl: IUpdateInstaller_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ClientApplicationID, Impl: IUpdateInstaller_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ClientApplicationID() { @@ -3378,7 +3378,7 @@ impl IUpdateInstaller_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetClientApplicationID, Impl: IUpdateInstaller_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetClientApplicationID, Impl: IUpdateInstaller_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetClientApplicationID(::core::mem::transmute(&value)).into() @@ -3502,7 +3502,7 @@ impl IUpdateInstaller_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RunWizard, Impl: IUpdateInstaller_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dialogtitle: ::core::mem::ManuallyDrop, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn RunWizard, Impl: IUpdateInstaller_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dialogtitle: ::core::mem::ManuallyDrop<::windows::core::BSTR>, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RunWizard(::core::mem::transmute(&dialogtitle)) { @@ -3704,22 +3704,22 @@ impl IUpdateLockdown_Vtbl { pub trait IUpdateSearcher_Impl: Sized + super::Com::IDispatch_Impl { fn CanAutomaticallyUpgradeService(&self) -> ::windows::core::Result; fn SetCanAutomaticallyUpgradeService(&self, value: i16) -> ::windows::core::Result<()>; - fn ClientApplicationID(&self) -> ::windows::core::Result; - fn SetClientApplicationID(&self, value: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ClientApplicationID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetClientApplicationID(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn IncludePotentiallySupersededUpdates(&self) -> ::windows::core::Result; fn SetIncludePotentiallySupersededUpdates(&self, value: i16) -> ::windows::core::Result<()>; fn ServerSelection(&self) -> ::windows::core::Result; fn SetServerSelection(&self, value: ServerSelection) -> ::windows::core::Result<()>; - fn BeginSearch(&self, criteria: &super::super::Foundation::BSTR, oncompleted: &::core::option::Option<::windows::core::IUnknown>, state: &super::Com::VARIANT) -> ::windows::core::Result; + fn BeginSearch(&self, criteria: &::windows::core::BSTR, oncompleted: &::core::option::Option<::windows::core::IUnknown>, state: &super::Com::VARIANT) -> ::windows::core::Result; fn EndSearch(&self, searchjob: &::core::option::Option) -> ::windows::core::Result; - fn EscapeString(&self, unescaped: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn EscapeString(&self, unescaped: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; fn QueryHistory(&self, startindex: i32, count: i32) -> ::windows::core::Result; - fn Search(&self, criteria: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn Search(&self, criteria: &::windows::core::BSTR) -> ::windows::core::Result; fn Online(&self) -> ::windows::core::Result; fn SetOnline(&self, value: i16) -> ::windows::core::Result<()>; fn GetTotalHistoryCount(&self) -> ::windows::core::Result; - fn ServiceID(&self) -> ::windows::core::Result; - fn SetServiceID(&self, value: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ServiceID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetServiceID(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IUpdateSearcher {} @@ -3742,7 +3742,7 @@ impl IUpdateSearcher_Vtbl { let this = (*this).get_impl(); this.SetCanAutomaticallyUpgradeService(::core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn ClientApplicationID, Impl: IUpdateSearcher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ClientApplicationID, Impl: IUpdateSearcher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ClientApplicationID() { @@ -3753,7 +3753,7 @@ impl IUpdateSearcher_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetClientApplicationID, Impl: IUpdateSearcher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetClientApplicationID, Impl: IUpdateSearcher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetClientApplicationID(::core::mem::transmute(&value)).into() @@ -3790,7 +3790,7 @@ impl IUpdateSearcher_Vtbl { let this = (*this).get_impl(); this.SetServerSelection(::core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn BeginSearch, Impl: IUpdateSearcher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, criteria: ::core::mem::ManuallyDrop, oncompleted: *mut ::core::ffi::c_void, state: ::core::mem::ManuallyDrop, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn BeginSearch, Impl: IUpdateSearcher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, criteria: ::core::mem::ManuallyDrop<::windows::core::BSTR>, oncompleted: *mut ::core::ffi::c_void, state: ::core::mem::ManuallyDrop, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginSearch(::core::mem::transmute(&criteria), ::core::mem::transmute(&oncompleted), ::core::mem::transmute(&state)) { @@ -3812,7 +3812,7 @@ impl IUpdateSearcher_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn EscapeString, Impl: IUpdateSearcher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, unescaped: ::core::mem::ManuallyDrop, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn EscapeString, Impl: IUpdateSearcher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, unescaped: ::core::mem::ManuallyDrop<::windows::core::BSTR>, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EscapeString(::core::mem::transmute(&unescaped)) { @@ -3834,7 +3834,7 @@ impl IUpdateSearcher_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Search, Impl: IUpdateSearcher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, criteria: ::core::mem::ManuallyDrop, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Search, Impl: IUpdateSearcher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, criteria: ::core::mem::ManuallyDrop<::windows::core::BSTR>, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Search(::core::mem::transmute(&criteria)) { @@ -3872,7 +3872,7 @@ impl IUpdateSearcher_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ServiceID, Impl: IUpdateSearcher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ServiceID, Impl: IUpdateSearcher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ServiceID() { @@ -3883,7 +3883,7 @@ impl IUpdateSearcher_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetServiceID, Impl: IUpdateSearcher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetServiceID, Impl: IUpdateSearcher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetServiceID(::core::mem::transmute(&value)).into() @@ -3988,7 +3988,7 @@ impl IUpdateSearcher3_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IUpdateService_Impl: Sized + super::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn ContentValidationCert(&self) -> ::windows::core::Result; fn ExpirationDate(&self) -> ::windows::core::Result; fn IsManaged(&self) -> ::windows::core::Result; @@ -3996,18 +3996,18 @@ pub trait IUpdateService_Impl: Sized + super::Com::IDispatch_Impl { fn IssueDate(&self) -> ::windows::core::Result; fn OffersWindowsUpdates(&self) -> ::windows::core::Result; fn RedirectUrls(&self) -> ::windows::core::Result; - fn ServiceID(&self) -> ::windows::core::Result; + fn ServiceID(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn IsScanPackageService(&self) -> ::windows::core::Result; fn CanRegisterWithAU(&self) -> ::windows::core::Result; - fn ServiceUrl(&self) -> ::windows::core::Result; - fn SetupPrefix(&self) -> ::windows::core::Result; + fn ServiceUrl(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetupPrefix(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IUpdateService {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IUpdateService_Vtbl { pub const fn new, Impl: IUpdateService_Impl, const OFFSET: isize>() -> IUpdateService_Vtbl { - unsafe extern "system" fn Name, Impl: IUpdateService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IUpdateService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -4095,7 +4095,7 @@ impl IUpdateService_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ServiceID, Impl: IUpdateService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ServiceID, Impl: IUpdateService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ServiceID() { @@ -4128,7 +4128,7 @@ impl IUpdateService_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ServiceUrl, Impl: IUpdateService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ServiceUrl, Impl: IUpdateService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ServiceUrl() { @@ -4139,7 +4139,7 @@ impl IUpdateService_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetupPrefix, Impl: IUpdateService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetupPrefix, Impl: IUpdateService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SetupPrefix() { @@ -4255,12 +4255,12 @@ impl IUpdateServiceCollection_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IUpdateServiceManager_Impl: Sized + super::Com::IDispatch_Impl { fn Services(&self) -> ::windows::core::Result; - fn AddService(&self, serviceid: &super::super::Foundation::BSTR, authorizationcabpath: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn RegisterServiceWithAU(&self, serviceid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn RemoveService(&self, serviceid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn UnregisterServiceWithAU(&self, serviceid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn AddScanPackageService(&self, servicename: &super::super::Foundation::BSTR, scanfilelocation: &super::super::Foundation::BSTR, flags: i32) -> ::windows::core::Result; - fn SetOption(&self, optionname: &super::super::Foundation::BSTR, optionvalue: &super::Com::VARIANT) -> ::windows::core::Result<()>; + fn AddService(&self, serviceid: &::windows::core::BSTR, authorizationcabpath: &::windows::core::BSTR) -> ::windows::core::Result; + fn RegisterServiceWithAU(&self, serviceid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn RemoveService(&self, serviceid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn UnregisterServiceWithAU(&self, serviceid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn AddScanPackageService(&self, servicename: &::windows::core::BSTR, scanfilelocation: &::windows::core::BSTR, flags: i32) -> ::windows::core::Result; + fn SetOption(&self, optionname: &::windows::core::BSTR, optionvalue: &super::Com::VARIANT) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IUpdateServiceManager {} @@ -4278,7 +4278,7 @@ impl IUpdateServiceManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AddService, Impl: IUpdateServiceManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, serviceid: ::core::mem::ManuallyDrop, authorizationcabpath: ::core::mem::ManuallyDrop, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddService, Impl: IUpdateServiceManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, serviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, authorizationcabpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AddService(::core::mem::transmute(&serviceid), ::core::mem::transmute(&authorizationcabpath)) { @@ -4289,22 +4289,22 @@ impl IUpdateServiceManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RegisterServiceWithAU, Impl: IUpdateServiceManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, serviceid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn RegisterServiceWithAU, Impl: IUpdateServiceManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, serviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RegisterServiceWithAU(::core::mem::transmute(&serviceid)).into() } - unsafe extern "system" fn RemoveService, Impl: IUpdateServiceManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, serviceid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn RemoveService, Impl: IUpdateServiceManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, serviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RemoveService(::core::mem::transmute(&serviceid)).into() } - unsafe extern "system" fn UnregisterServiceWithAU, Impl: IUpdateServiceManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, serviceid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn UnregisterServiceWithAU, Impl: IUpdateServiceManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, serviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.UnregisterServiceWithAU(::core::mem::transmute(&serviceid)).into() } - unsafe extern "system" fn AddScanPackageService, Impl: IUpdateServiceManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, servicename: ::core::mem::ManuallyDrop, scanfilelocation: ::core::mem::ManuallyDrop, flags: i32, ppservice: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddScanPackageService, Impl: IUpdateServiceManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, servicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, scanfilelocation: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: i32, ppservice: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AddScanPackageService(::core::mem::transmute(&servicename), ::core::mem::transmute(&scanfilelocation), ::core::mem::transmute_copy(&flags)) { @@ -4315,7 +4315,7 @@ impl IUpdateServiceManager_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetOption, Impl: IUpdateServiceManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, optionname: ::core::mem::ManuallyDrop, optionvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetOption, Impl: IUpdateServiceManager_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, optionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, optionvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetOption(::core::mem::transmute(&optionname), ::core::mem::transmute(&optionvalue)).into() @@ -4337,17 +4337,17 @@ impl IUpdateServiceManager_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IUpdateServiceManager2_Impl: Sized + super::Com::IDispatch_Impl + IUpdateServiceManager_Impl { - fn ClientApplicationID(&self) -> ::windows::core::Result; - fn SetClientApplicationID(&self, value: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn QueryServiceRegistration(&self, serviceid: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn AddService2(&self, serviceid: &super::super::Foundation::BSTR, flags: i32, authorizationcabpath: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn ClientApplicationID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetClientApplicationID(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn QueryServiceRegistration(&self, serviceid: &::windows::core::BSTR) -> ::windows::core::Result; + fn AddService2(&self, serviceid: &::windows::core::BSTR, flags: i32, authorizationcabpath: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IUpdateServiceManager2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IUpdateServiceManager2_Vtbl { pub const fn new, Impl: IUpdateServiceManager2_Impl, const OFFSET: isize>() -> IUpdateServiceManager2_Vtbl { - unsafe extern "system" fn ClientApplicationID, Impl: IUpdateServiceManager2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ClientApplicationID, Impl: IUpdateServiceManager2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ClientApplicationID() { @@ -4358,12 +4358,12 @@ impl IUpdateServiceManager2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetClientApplicationID, Impl: IUpdateServiceManager2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetClientApplicationID, Impl: IUpdateServiceManager2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetClientApplicationID(::core::mem::transmute(&value)).into() } - unsafe extern "system" fn QueryServiceRegistration, Impl: IUpdateServiceManager2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, serviceid: ::core::mem::ManuallyDrop, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn QueryServiceRegistration, Impl: IUpdateServiceManager2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, serviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.QueryServiceRegistration(::core::mem::transmute(&serviceid)) { @@ -4374,7 +4374,7 @@ impl IUpdateServiceManager2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AddService2, Impl: IUpdateServiceManager2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, serviceid: ::core::mem::ManuallyDrop, flags: i32, authorizationcabpath: ::core::mem::ManuallyDrop, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddService2, Impl: IUpdateServiceManager2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, serviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: i32, authorizationcabpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AddService2(::core::mem::transmute(&serviceid), ::core::mem::transmute_copy(&flags), ::core::mem::transmute(&authorizationcabpath)) { @@ -4400,7 +4400,7 @@ impl IUpdateServiceManager2_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IUpdateServiceRegistration_Impl: Sized + super::Com::IDispatch_Impl { fn RegistrationState(&self) -> ::windows::core::Result; - fn ServiceID(&self) -> ::windows::core::Result; + fn ServiceID(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn IsPendingRegistrationWithAU(&self) -> ::windows::core::Result; fn Service(&self) -> ::windows::core::Result; } @@ -4420,7 +4420,7 @@ impl IUpdateServiceRegistration_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ServiceID, Impl: IUpdateServiceRegistration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ServiceID, Impl: IUpdateServiceRegistration_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ServiceID() { @@ -4467,8 +4467,8 @@ impl IUpdateServiceRegistration_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IUpdateSession_Impl: Sized + super::Com::IDispatch_Impl { - fn ClientApplicationID(&self) -> ::windows::core::Result; - fn SetClientApplicationID(&self, value: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ClientApplicationID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetClientApplicationID(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn ReadOnly(&self) -> ::windows::core::Result; fn WebProxy(&self) -> ::windows::core::Result; fn SetWebProxy(&self, value: &::core::option::Option) -> ::windows::core::Result<()>; @@ -4481,7 +4481,7 @@ impl ::windows::core::RuntimeName for IUpdateSession {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IUpdateSession_Vtbl { pub const fn new, Impl: IUpdateSession_Impl, const OFFSET: isize>() -> IUpdateSession_Vtbl { - unsafe extern "system" fn ClientApplicationID, Impl: IUpdateSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ClientApplicationID, Impl: IUpdateSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ClientApplicationID() { @@ -4492,7 +4492,7 @@ impl IUpdateSession_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetClientApplicationID, Impl: IUpdateSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetClientApplicationID, Impl: IUpdateSession_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetClientApplicationID(::core::mem::transmute(&value)).into() @@ -4612,7 +4612,7 @@ impl IUpdateSession2_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IUpdateSession3_Impl: Sized + super::Com::IDispatch_Impl + IUpdateSession_Impl + IUpdateSession2_Impl { fn CreateUpdateServiceManager(&self) -> ::windows::core::Result; - fn QueryHistory(&self, criteria: &super::super::Foundation::BSTR, startindex: i32, count: i32) -> ::windows::core::Result; + fn QueryHistory(&self, criteria: &::windows::core::BSTR, startindex: i32, count: i32) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IUpdateSession3 {} @@ -4630,7 +4630,7 @@ impl IUpdateSession3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn QueryHistory, Impl: IUpdateSession3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, criteria: ::core::mem::ManuallyDrop, startindex: i32, count: i32, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn QueryHistory, Impl: IUpdateSession3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, criteria: ::core::mem::ManuallyDrop<::windows::core::BSTR>, startindex: i32, count: i32, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.QueryHistory(::core::mem::transmute(&criteria), ::core::mem::transmute_copy(&startindex), ::core::mem::transmute_copy(&count)) { @@ -4653,18 +4653,18 @@ impl IUpdateSession3_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWebProxy_Impl: Sized + super::Com::IDispatch_Impl { - fn Address(&self) -> ::windows::core::Result; - fn SetAddress(&self, value: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Address(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetAddress(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn BypassList(&self) -> ::windows::core::Result; fn SetBypassList(&self, value: &::core::option::Option) -> ::windows::core::Result<()>; fn BypassProxyOnLocal(&self) -> ::windows::core::Result; fn SetBypassProxyOnLocal(&self, value: i16) -> ::windows::core::Result<()>; fn ReadOnly(&self) -> ::windows::core::Result; - fn UserName(&self) -> ::windows::core::Result; - fn SetUserName(&self, value: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SetPassword(&self, value: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn PromptForCredentials(&self, parentwindow: &::core::option::Option<::windows::core::IUnknown>, title: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn PromptForCredentialsFromHwnd(&self, parentwindow: super::super::Foundation::HWND, title: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn UserName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetUserName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SetPassword(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn PromptForCredentials(&self, parentwindow: &::core::option::Option<::windows::core::IUnknown>, title: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn PromptForCredentialsFromHwnd(&self, parentwindow: super::super::Foundation::HWND, title: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn AutoDetect(&self) -> ::windows::core::Result; fn SetAutoDetect(&self, value: i16) -> ::windows::core::Result<()>; } @@ -4673,7 +4673,7 @@ impl ::windows::core::RuntimeName for IWebProxy {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWebProxy_Vtbl { pub const fn new, Impl: IWebProxy_Impl, const OFFSET: isize>() -> IWebProxy_Vtbl { - unsafe extern "system" fn Address, Impl: IWebProxy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Address, Impl: IWebProxy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Address() { @@ -4684,7 +4684,7 @@ impl IWebProxy_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetAddress, Impl: IWebProxy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetAddress, Impl: IWebProxy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetAddress(::core::mem::transmute(&value)).into() @@ -4732,7 +4732,7 @@ impl IWebProxy_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn UserName, Impl: IWebProxy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn UserName, Impl: IWebProxy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.UserName() { @@ -4743,22 +4743,22 @@ impl IWebProxy_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetUserName, Impl: IWebProxy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetUserName, Impl: IWebProxy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetUserName(::core::mem::transmute(&value)).into() } - unsafe extern "system" fn SetPassword, Impl: IWebProxy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPassword, Impl: IWebProxy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPassword(::core::mem::transmute(&value)).into() } - unsafe extern "system" fn PromptForCredentials, Impl: IWebProxy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, parentwindow: *mut ::core::ffi::c_void, title: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn PromptForCredentials, Impl: IWebProxy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, parentwindow: *mut ::core::ffi::c_void, title: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.PromptForCredentials(::core::mem::transmute(&parentwindow), ::core::mem::transmute(&title)).into() } - unsafe extern "system" fn PromptForCredentialsFromHwnd, Impl: IWebProxy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, parentwindow: super::super::Foundation::HWND, title: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn PromptForCredentialsFromHwnd, Impl: IWebProxy_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, parentwindow: super::super::Foundation::HWND, title: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.PromptForCredentialsFromHwnd(::core::mem::transmute_copy(&parentwindow), ::core::mem::transmute(&title)).into() @@ -4803,11 +4803,11 @@ impl IWebProxy_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWindowsDriverUpdate_Impl: Sized + super::Com::IDispatch_Impl + IUpdate_Impl { - fn DriverClass(&self) -> ::windows::core::Result; - fn DriverHardwareID(&self) -> ::windows::core::Result; - fn DriverManufacturer(&self) -> ::windows::core::Result; - fn DriverModel(&self) -> ::windows::core::Result; - fn DriverProvider(&self) -> ::windows::core::Result; + fn DriverClass(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn DriverHardwareID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn DriverManufacturer(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn DriverModel(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn DriverProvider(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn DriverVerDate(&self) -> ::windows::core::Result; fn DeviceProblemNumber(&self) -> ::windows::core::Result; fn DeviceStatus(&self) -> ::windows::core::Result; @@ -4817,7 +4817,7 @@ impl ::windows::core::RuntimeName for IWindowsDriverUpdate {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWindowsDriverUpdate_Vtbl { pub const fn new, Impl: IWindowsDriverUpdate_Impl, const OFFSET: isize>() -> IWindowsDriverUpdate_Vtbl { - unsafe extern "system" fn DriverClass, Impl: IWindowsDriverUpdate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DriverClass, Impl: IWindowsDriverUpdate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DriverClass() { @@ -4828,7 +4828,7 @@ impl IWindowsDriverUpdate_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DriverHardwareID, Impl: IWindowsDriverUpdate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DriverHardwareID, Impl: IWindowsDriverUpdate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DriverHardwareID() { @@ -4839,7 +4839,7 @@ impl IWindowsDriverUpdate_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DriverManufacturer, Impl: IWindowsDriverUpdate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DriverManufacturer, Impl: IWindowsDriverUpdate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DriverManufacturer() { @@ -4850,7 +4850,7 @@ impl IWindowsDriverUpdate_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DriverModel, Impl: IWindowsDriverUpdate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DriverModel, Impl: IWindowsDriverUpdate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DriverModel() { @@ -4861,7 +4861,7 @@ impl IWindowsDriverUpdate_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DriverProvider, Impl: IWindowsDriverUpdate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DriverProvider, Impl: IWindowsDriverUpdate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DriverProvider() { @@ -5095,11 +5095,11 @@ impl IWindowsDriverUpdate5_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWindowsDriverUpdateEntry_Impl: Sized + super::Com::IDispatch_Impl { - fn DriverClass(&self) -> ::windows::core::Result; - fn DriverHardwareID(&self) -> ::windows::core::Result; - fn DriverManufacturer(&self) -> ::windows::core::Result; - fn DriverModel(&self) -> ::windows::core::Result; - fn DriverProvider(&self) -> ::windows::core::Result; + fn DriverClass(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn DriverHardwareID(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn DriverManufacturer(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn DriverModel(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn DriverProvider(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn DriverVerDate(&self) -> ::windows::core::Result; fn DeviceProblemNumber(&self) -> ::windows::core::Result; fn DeviceStatus(&self) -> ::windows::core::Result; @@ -5109,7 +5109,7 @@ impl ::windows::core::RuntimeName for IWindowsDriverUpdateEntry {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWindowsDriverUpdateEntry_Vtbl { pub const fn new, Impl: IWindowsDriverUpdateEntry_Impl, const OFFSET: isize>() -> IWindowsDriverUpdateEntry_Vtbl { - unsafe extern "system" fn DriverClass, Impl: IWindowsDriverUpdateEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DriverClass, Impl: IWindowsDriverUpdateEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DriverClass() { @@ -5120,7 +5120,7 @@ impl IWindowsDriverUpdateEntry_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DriverHardwareID, Impl: IWindowsDriverUpdateEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DriverHardwareID, Impl: IWindowsDriverUpdateEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DriverHardwareID() { @@ -5131,7 +5131,7 @@ impl IWindowsDriverUpdateEntry_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DriverManufacturer, Impl: IWindowsDriverUpdateEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DriverManufacturer, Impl: IWindowsDriverUpdateEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DriverManufacturer() { @@ -5142,7 +5142,7 @@ impl IWindowsDriverUpdateEntry_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DriverModel, Impl: IWindowsDriverUpdateEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DriverModel, Impl: IWindowsDriverUpdateEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DriverModel() { @@ -5153,7 +5153,7 @@ impl IWindowsDriverUpdateEntry_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DriverProvider, Impl: IWindowsDriverUpdateEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DriverProvider, Impl: IWindowsDriverUpdateEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DriverProvider() { diff --git a/crates/libs/windows/src/Windows/Win32/System/UpdateAgent/mod.rs b/crates/libs/windows/src/Windows/Win32/System/UpdateAgent/mod.rs index 6779d64cd2..978b92d4c1 100644 --- a/crates/libs/windows/src/Windows/Win32/System/UpdateAgent/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/UpdateAgent/mod.rs @@ -768,17 +768,13 @@ pub struct IAutomaticUpdatesSettings3_Vtbl { pub struct ICategory(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ICategory { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CategoryID(&self) -> ::windows::core::Result { + pub unsafe fn CategoryID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CategoryID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CategoryID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -786,11 +782,9 @@ impl ICategory { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Children)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -808,11 +802,9 @@ impl ICategory { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Type(&self) -> ::windows::core::Result { + pub unsafe fn Type(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -887,22 +879,13 @@ unsafe impl ::windows::core::Interface for ICategory { #[doc(hidden)] pub struct ICategory_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub CategoryID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CategoryID: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CategoryID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Children: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Children: usize, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Image: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -912,10 +895,7 @@ pub struct ICategory_Vtbl { pub Parent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Parent: usize, - #[cfg(feature = "Win32_Foundation")] - pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Type: usize, + pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Updates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -1649,21 +1629,17 @@ pub struct IDownloadResult_Vtbl { pub struct IImageInformation(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IImageInformation { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AltText(&self) -> ::windows::core::Result { + pub unsafe fn AltText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AltText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AltText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Height(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Height)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Source(&self) -> ::windows::core::Result { + pub unsafe fn Source(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Source)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Source)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Width(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1736,15 +1712,9 @@ unsafe impl ::windows::core::Interface for IImageInformation { #[doc(hidden)] pub struct IImageInformation_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub AltText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AltText: usize, + pub AltText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Height: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Source: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Source: usize, + pub Source: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Width: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_UpdateAgent\"`, `\"Win32_System_Com\"`*"] @@ -1753,14 +1723,13 @@ pub struct IImageInformation_Vtbl { pub struct IInstallationAgent(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IInstallationAgent { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn RecordInstallationResult<'a, P0, P1>(&self, installationresultcookie: P0, hresult: i32, extendedreportingdata: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn RecordInstallationResult<'a, P0>(&self, installationresultcookie: &::windows::core::BSTR, hresult: i32, extendedreportingdata: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IStringCollection>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IStringCollection>>, { - (::windows::core::Interface::vtable(self).RecordInstallationResult)(::windows::core::Interface::as_raw(self), installationresultcookie.into().abi(), hresult, extendedreportingdata.into().abi()).ok() + (::windows::core::Interface::vtable(self).RecordInstallationResult)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(installationresultcookie), hresult, extendedreportingdata.into().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -1829,9 +1798,9 @@ unsafe impl ::windows::core::Interface for IInstallationAgent { #[doc(hidden)] pub struct IInstallationAgent_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub RecordInstallationResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, installationresultcookie: ::core::mem::ManuallyDrop, hresult: i32, extendedreportingdata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub RecordInstallationResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, installationresultcookie: ::core::mem::ManuallyDrop<::windows::core::BSTR>, hresult: i32, extendedreportingdata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] RecordInstallationResult: usize, } #[doc = "*Required features: `\"Win32_System_UpdateAgent\"`, `\"Win32_System_Com\"`*"] @@ -2522,11 +2491,9 @@ pub struct IInstallationResult_Vtbl { pub struct IInvalidProductLicenseException(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IInvalidProductLicenseException { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Message(&self) -> ::windows::core::Result { + pub unsafe fn Message(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Message)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Message)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn HResult(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2536,11 +2503,9 @@ impl IInvalidProductLicenseException { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Context)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Product(&self) -> ::windows::core::Result { + pub unsafe fn Product(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Product)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Product)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -2627,10 +2592,7 @@ unsafe impl ::windows::core::Interface for IInvalidProductLicenseException { #[doc(hidden)] pub struct IInvalidProductLicenseException_Vtbl { pub base__: IUpdateException_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Product: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Product: usize, + pub Product: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_UpdateAgent\"`*"] #[repr(transparent)] @@ -2975,19 +2937,12 @@ pub struct ISearchResult_Vtbl { pub struct IStringCollection(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IStringCollection { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn get_Item(&self, index: i32) -> ::windows::core::Result { + pub unsafe fn get_Item(&self, index: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_Item)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn put_Item<'a, P0>(&self, index: i32, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).put_Item)(::windows::core::Interface::as_raw(self), index, value.into().abi()).ok() + pub unsafe fn put_Item(&self, index: i32, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).put_Item)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute_copy(value)).ok() } pub unsafe fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3001,14 +2956,9 @@ impl IStringCollection { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ReadOnly)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Add<'a, P0>(&self, value: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn Add(&self, value: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), value.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn Clear(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Clear)(::windows::core::Interface::as_raw(self)).ok() @@ -3019,13 +2969,8 @@ impl IStringCollection { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Copy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Insert<'a, P0>(&self, index: i32, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Insert)(::windows::core::Interface::as_raw(self), index, value.into().abi()).ok() + pub unsafe fn Insert(&self, index: i32, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Insert)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute_copy(value)).ok() } pub unsafe fn RemoveAt(&self, index: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RemoveAt)(::windows::core::Interface::as_raw(self), index).ok() @@ -3097,30 +3042,18 @@ unsafe impl ::windows::core::Interface for IStringCollection { #[doc(hidden)] pub struct IStringCollection_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - get_Item: usize, - #[cfg(feature = "Win32_Foundation")] - pub put_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - put_Item: usize, + pub get_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub put_Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, pub ReadOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop, retval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Add: usize, + pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>, retval: *mut i32) -> ::windows::core::HRESULT, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Copy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Copy: usize, - #[cfg(feature = "Win32_Foundation")] - pub Insert: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Insert: usize, + pub Insert: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub RemoveAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_UpdateAgent\"`, `\"Win32_System_Com\"`*"] @@ -3129,11 +3062,9 @@ pub struct IStringCollection_Vtbl { pub struct ISystemInformation(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ISystemInformation { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OemHardwareSupportLink(&self) -> ::windows::core::Result { + pub unsafe fn OemHardwareSupportLink(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).OemHardwareSupportLink)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).OemHardwareSupportLink)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn RebootRequired(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3206,10 +3137,7 @@ unsafe impl ::windows::core::Interface for ISystemInformation { #[doc(hidden)] pub struct ISystemInformation_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub OemHardwareSupportLink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OemHardwareSupportLink: usize, + pub OemHardwareSupportLink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub RebootRequired: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i16) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_UpdateAgent\"`, `\"Win32_System_Com\"`*"] @@ -3218,11 +3146,9 @@ pub struct ISystemInformation_Vtbl { pub struct IUpdate(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IUpdate { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Title(&self) -> ::windows::core::Result { + pub unsafe fn Title(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn AutoSelectOnWebSites(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3258,27 +3184,21 @@ impl IUpdate { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).DeltaCompressedContentPreferred)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn EulaAccepted(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).EulaAccepted)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EulaText(&self) -> ::windows::core::Result { + pub unsafe fn EulaText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).EulaText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).EulaText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn HandlerID(&self) -> ::windows::core::Result { + pub unsafe fn HandlerID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).HandlerID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).HandlerID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3353,11 +3273,9 @@ impl IUpdate { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).MoreInfoUrls)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MsrcSeverity(&self) -> ::windows::core::Result { + pub unsafe fn MsrcSeverity(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).MsrcSeverity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).MsrcSeverity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn RecommendedCpuSpeed(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3371,11 +3289,9 @@ impl IUpdate { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).RecommendedMemory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ReleaseNotes(&self) -> ::windows::core::Result { + pub unsafe fn ReleaseNotes(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ReleaseNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ReleaseNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3389,21 +3305,17 @@ impl IUpdate { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).SupersededUpdateIDs)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SupportUrl(&self) -> ::windows::core::Result { + pub unsafe fn SupportUrl(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SupportUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SupportUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Type(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UninstallationNotes(&self) -> ::windows::core::Result { + pub unsafe fn UninstallationNotes(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UninstallationNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UninstallationNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3430,13 +3342,8 @@ impl IUpdate { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).DeploymentAction)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CopyFromCache<'a, P0>(&self, path: P0, toextractcabfiles: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).CopyFromCache)(::windows::core::Interface::as_raw(self), path.into().abi(), toextractcabfiles).ok() + pub unsafe fn CopyFromCache(&self, path: &::windows::core::BSTR, toextractcabfiles: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).CopyFromCache)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), toextractcabfiles).ok() } pub unsafe fn DownloadPriority(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3515,10 +3422,7 @@ unsafe impl ::windows::core::Interface for IUpdate { #[doc(hidden)] pub struct IUpdate_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Title: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Title: usize, + pub Title: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub AutoSelectOnWebSites: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub BundledUpdates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -3535,19 +3439,10 @@ pub struct IUpdate_Vtbl { Deadline: usize, pub DeltaCompressedContentAvailable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i16) -> ::windows::core::HRESULT, pub DeltaCompressedContentPreferred: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub EulaAccepted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub EulaText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EulaText: usize, - #[cfg(feature = "Win32_Foundation")] - pub HandlerID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - HandlerID: usize, + pub EulaText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub HandlerID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Identity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -3584,17 +3479,11 @@ pub struct IUpdate_Vtbl { pub MoreInfoUrls: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] MoreInfoUrls: usize, - #[cfg(feature = "Win32_Foundation")] - pub MsrcSeverity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - MsrcSeverity: usize, + pub MsrcSeverity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub RecommendedCpuSpeed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, pub RecommendedHardDiskSpace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, pub RecommendedMemory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ReleaseNotes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ReleaseNotes: usize, + pub ReleaseNotes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub SecurityBulletinIDs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -3603,15 +3492,9 @@ pub struct IUpdate_Vtbl { pub SupersededUpdateIDs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] SupersededUpdateIDs: usize, - #[cfg(feature = "Win32_Foundation")] - pub SupportUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SupportUrl: usize, + pub SupportUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut UpdateType) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub UninstallationNotes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UninstallationNotes: usize, + pub UninstallationNotes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub UninstallationBehavior: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -3626,10 +3509,7 @@ pub struct IUpdate_Vtbl { KBArticleIDs: usize, pub AcceptEula: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub DeploymentAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut DeploymentAction) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CopyFromCache: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop, toextractcabfiles: i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CopyFromCache: usize, + pub CopyFromCache: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: ::core::mem::ManuallyDrop<::windows::core::BSTR>, toextractcabfiles: i16) -> ::windows::core::HRESULT, pub DownloadPriority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut DownloadPriority) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub DownloadContents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -3642,11 +3522,9 @@ pub struct IUpdate_Vtbl { pub struct IUpdate2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IUpdate2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Title(&self) -> ::windows::core::Result { + pub unsafe fn Title(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn AutoSelectOnWebSites(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3682,27 +3560,21 @@ impl IUpdate2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.DeltaCompressedContentPreferred)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn EulaAccepted(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.EulaAccepted)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EulaText(&self) -> ::windows::core::Result { + pub unsafe fn EulaText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.EulaText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.EulaText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn HandlerID(&self) -> ::windows::core::Result { + pub unsafe fn HandlerID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.HandlerID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.HandlerID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3777,11 +3649,9 @@ impl IUpdate2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.MoreInfoUrls)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MsrcSeverity(&self) -> ::windows::core::Result { + pub unsafe fn MsrcSeverity(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.MsrcSeverity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.MsrcSeverity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn RecommendedCpuSpeed(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3795,11 +3665,9 @@ impl IUpdate2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.RecommendedMemory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ReleaseNotes(&self) -> ::windows::core::Result { + pub unsafe fn ReleaseNotes(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ReleaseNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ReleaseNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3813,21 +3681,17 @@ impl IUpdate2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.SupersededUpdateIDs)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SupportUrl(&self) -> ::windows::core::Result { + pub unsafe fn SupportUrl(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.SupportUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.SupportUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Type(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UninstallationNotes(&self) -> ::windows::core::Result { + pub unsafe fn UninstallationNotes(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.UninstallationNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.UninstallationNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3854,13 +3718,8 @@ impl IUpdate2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.DeploymentAction)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CopyFromCache<'a, P0>(&self, path: P0, toextractcabfiles: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.CopyFromCache)(::windows::core::Interface::as_raw(self), path.into().abi(), toextractcabfiles).ok() + pub unsafe fn CopyFromCache(&self, path: &::windows::core::BSTR, toextractcabfiles: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.CopyFromCache)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), toextractcabfiles).ok() } pub unsafe fn DownloadPriority(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3996,11 +3855,9 @@ pub struct IUpdate2_Vtbl { pub struct IUpdate3(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IUpdate3 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Title(&self) -> ::windows::core::Result { + pub unsafe fn Title(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn AutoSelectOnWebSites(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4036,27 +3893,21 @@ impl IUpdate3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.DeltaCompressedContentPreferred)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn EulaAccepted(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.EulaAccepted)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EulaText(&self) -> ::windows::core::Result { + pub unsafe fn EulaText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.EulaText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.EulaText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn HandlerID(&self) -> ::windows::core::Result { + pub unsafe fn HandlerID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.HandlerID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.HandlerID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4131,11 +3982,9 @@ impl IUpdate3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.MoreInfoUrls)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MsrcSeverity(&self) -> ::windows::core::Result { + pub unsafe fn MsrcSeverity(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.MsrcSeverity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.MsrcSeverity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn RecommendedCpuSpeed(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4149,11 +3998,9 @@ impl IUpdate3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.RecommendedMemory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ReleaseNotes(&self) -> ::windows::core::Result { + pub unsafe fn ReleaseNotes(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.ReleaseNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.ReleaseNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4167,21 +4014,17 @@ impl IUpdate3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.SupersededUpdateIDs)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SupportUrl(&self) -> ::windows::core::Result { + pub unsafe fn SupportUrl(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.SupportUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.SupportUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Type(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UninstallationNotes(&self) -> ::windows::core::Result { + pub unsafe fn UninstallationNotes(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.UninstallationNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.UninstallationNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4208,13 +4051,8 @@ impl IUpdate3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.DeploymentAction)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CopyFromCache<'a, P0>(&self, path: P0, toextractcabfiles: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.CopyFromCache)(::windows::core::Interface::as_raw(self), path.into().abi(), toextractcabfiles).ok() + pub unsafe fn CopyFromCache(&self, path: &::windows::core::BSTR, toextractcabfiles: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.CopyFromCache)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), toextractcabfiles).ok() } pub unsafe fn DownloadPriority(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4363,11 +4201,9 @@ pub struct IUpdate3_Vtbl { pub struct IUpdate4(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IUpdate4 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Title(&self) -> ::windows::core::Result { + pub unsafe fn Title(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn AutoSelectOnWebSites(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4403,27 +4239,21 @@ impl IUpdate4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.DeltaCompressedContentPreferred)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn EulaAccepted(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.EulaAccepted)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EulaText(&self) -> ::windows::core::Result { + pub unsafe fn EulaText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.EulaText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.EulaText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn HandlerID(&self) -> ::windows::core::Result { + pub unsafe fn HandlerID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.HandlerID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.HandlerID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4498,11 +4328,9 @@ impl IUpdate4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.MoreInfoUrls)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MsrcSeverity(&self) -> ::windows::core::Result { + pub unsafe fn MsrcSeverity(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.MsrcSeverity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.MsrcSeverity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn RecommendedCpuSpeed(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4516,11 +4344,9 @@ impl IUpdate4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.RecommendedMemory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ReleaseNotes(&self) -> ::windows::core::Result { + pub unsafe fn ReleaseNotes(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.ReleaseNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.ReleaseNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4534,21 +4360,17 @@ impl IUpdate4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.SupersededUpdateIDs)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SupportUrl(&self) -> ::windows::core::Result { + pub unsafe fn SupportUrl(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.SupportUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.SupportUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Type(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UninstallationNotes(&self) -> ::windows::core::Result { + pub unsafe fn UninstallationNotes(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.UninstallationNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.UninstallationNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4575,13 +4397,8 @@ impl IUpdate4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.DeploymentAction)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CopyFromCache<'a, P0>(&self, path: P0, toextractcabfiles: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.CopyFromCache)(::windows::core::Interface::as_raw(self), path.into().abi(), toextractcabfiles).ok() + pub unsafe fn CopyFromCache(&self, path: &::windows::core::BSTR, toextractcabfiles: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.CopyFromCache)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), toextractcabfiles).ok() } pub unsafe fn DownloadPriority(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4752,11 +4569,9 @@ pub struct IUpdate4_Vtbl { pub struct IUpdate5(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IUpdate5 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Title(&self) -> ::windows::core::Result { + pub unsafe fn Title(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn AutoSelectOnWebSites(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4792,27 +4607,21 @@ impl IUpdate5 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.DeltaCompressedContentPreferred)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn EulaAccepted(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.EulaAccepted)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EulaText(&self) -> ::windows::core::Result { + pub unsafe fn EulaText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.EulaText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.EulaText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn HandlerID(&self) -> ::windows::core::Result { + pub unsafe fn HandlerID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.HandlerID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.HandlerID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4887,11 +4696,9 @@ impl IUpdate5 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.MoreInfoUrls)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MsrcSeverity(&self) -> ::windows::core::Result { + pub unsafe fn MsrcSeverity(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.MsrcSeverity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.MsrcSeverity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn RecommendedCpuSpeed(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4905,11 +4712,9 @@ impl IUpdate5 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.RecommendedMemory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ReleaseNotes(&self) -> ::windows::core::Result { + pub unsafe fn ReleaseNotes(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.ReleaseNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.ReleaseNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4923,21 +4728,17 @@ impl IUpdate5 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.SupersededUpdateIDs)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SupportUrl(&self) -> ::windows::core::Result { + pub unsafe fn SupportUrl(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.SupportUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.SupportUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Type(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UninstallationNotes(&self) -> ::windows::core::Result { + pub unsafe fn UninstallationNotes(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.UninstallationNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.UninstallationNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4964,13 +4765,8 @@ impl IUpdate5 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.DeploymentAction)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CopyFromCache<'a, P0>(&self, path: P0, toextractcabfiles: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CopyFromCache)(::windows::core::Interface::as_raw(self), path.into().abi(), toextractcabfiles).ok() + pub unsafe fn CopyFromCache(&self, path: &::windows::core::BSTR, toextractcabfiles: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CopyFromCache)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), toextractcabfiles).ok() } pub unsafe fn DownloadPriority(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5322,11 +5118,9 @@ pub struct IUpdateCollection_Vtbl { pub struct IUpdateDownloadContent(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IUpdateDownloadContent { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DownloadUrl(&self) -> ::windows::core::Result { + pub unsafe fn DownloadUrl(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DownloadUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DownloadUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -5395,10 +5189,7 @@ unsafe impl ::windows::core::Interface for IUpdateDownloadContent { #[doc(hidden)] pub struct IUpdateDownloadContent_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub DownloadUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DownloadUrl: usize, + pub DownloadUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_UpdateAgent\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5406,11 +5197,9 @@ pub struct IUpdateDownloadContent_Vtbl { pub struct IUpdateDownloadContent2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IUpdateDownloadContent2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DownloadUrl(&self) -> ::windows::core::Result { + pub unsafe fn DownloadUrl(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.DownloadUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.DownloadUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn IsDeltaCompressedContent(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5687,19 +5476,12 @@ pub struct IUpdateDownloadResult_Vtbl { pub struct IUpdateDownloader(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IUpdateDownloader { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClientApplicationID(&self) -> ::windows::core::Result { + pub unsafe fn ClientApplicationID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetClientApplicationID<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetClientApplicationID)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetClientApplicationID(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } pub unsafe fn IsForced(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5822,14 +5604,8 @@ unsafe impl ::windows::core::Interface for IUpdateDownloader { #[doc(hidden)] pub struct IUpdateDownloader_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub ClientApplicationID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ClientApplicationID: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetClientApplicationID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetClientApplicationID: usize, + pub ClientApplicationID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetClientApplicationID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub IsForced: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i16) -> ::windows::core::HRESULT, pub SetIsForced: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i16) -> ::windows::core::HRESULT, pub Priority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut DownloadPriority) -> ::windows::core::HRESULT, @@ -5861,11 +5637,9 @@ pub struct IUpdateDownloader_Vtbl { pub struct IUpdateException(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IUpdateException { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Message(&self) -> ::windows::core::Result { + pub unsafe fn Message(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Message)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Message)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn HResult(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5942,10 +5716,7 @@ unsafe impl ::windows::core::Interface for IUpdateException { #[doc(hidden)] pub struct IUpdateException_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Message: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Message: usize, + pub Message: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub HResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, pub Context: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut UpdateExceptionContext) -> ::windows::core::HRESULT, } @@ -6071,37 +5842,29 @@ impl IUpdateHistoryEntry { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).UpdateIdentity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Title(&self) -> ::windows::core::Result { + pub unsafe fn Title(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn UnmappedResultCode(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).UnmappedResultCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClientApplicationID(&self) -> ::windows::core::Result { + pub unsafe fn ClientApplicationID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn ServerSelection(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ServerSelection)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ServiceID(&self) -> ::windows::core::Result { + pub unsafe fn ServiceID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ServiceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ServiceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6109,17 +5872,13 @@ impl IUpdateHistoryEntry { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).UninstallationSteps)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UninstallationNotes(&self) -> ::windows::core::Result { + pub unsafe fn UninstallationNotes(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UninstallationNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UninstallationNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SupportUrl(&self) -> ::windows::core::Result { + pub unsafe fn SupportUrl(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SupportUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SupportUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -6196,36 +5955,18 @@ pub struct IUpdateHistoryEntry_Vtbl { pub UpdateIdentity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] UpdateIdentity: usize, - #[cfg(feature = "Win32_Foundation")] - pub Title: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Title: usize, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, + pub Title: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub UnmappedResultCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ClientApplicationID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ClientApplicationID: usize, + pub ClientApplicationID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ServerSelection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ServerSelection) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ServiceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ServiceID: usize, + pub ServiceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub UninstallationSteps: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] UninstallationSteps: usize, - #[cfg(feature = "Win32_Foundation")] - pub UninstallationNotes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UninstallationNotes: usize, - #[cfg(feature = "Win32_Foundation")] - pub SupportUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SupportUrl: usize, + pub UninstallationNotes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SupportUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_UpdateAgent\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6255,37 +5996,29 @@ impl IUpdateHistoryEntry2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.UpdateIdentity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Title(&self) -> ::windows::core::Result { + pub unsafe fn Title(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn UnmappedResultCode(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.UnmappedResultCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClientApplicationID(&self) -> ::windows::core::Result { + pub unsafe fn ClientApplicationID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn ServerSelection(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.ServerSelection)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ServiceID(&self) -> ::windows::core::Result { + pub unsafe fn ServiceID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ServiceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ServiceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6293,17 +6026,13 @@ impl IUpdateHistoryEntry2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.UninstallationSteps)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UninstallationNotes(&self) -> ::windows::core::Result { + pub unsafe fn UninstallationNotes(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.UninstallationNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.UninstallationNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SupportUrl(&self) -> ::windows::core::Result { + pub unsafe fn SupportUrl(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.SupportUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.SupportUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6505,11 +6234,9 @@ impl IUpdateIdentity { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).RevisionNumber)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UpdateID(&self) -> ::windows::core::Result { + pub unsafe fn UpdateID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UpdateID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UpdateID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -6579,10 +6306,7 @@ unsafe impl ::windows::core::Interface for IUpdateIdentity { pub struct IUpdateIdentity_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub RevisionNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub UpdateID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UpdateID: usize, + pub UpdateID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_UpdateAgent\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6679,19 +6403,12 @@ pub struct IUpdateInstallationResult_Vtbl { pub struct IUpdateInstaller(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IUpdateInstaller { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClientApplicationID(&self) -> ::windows::core::Result { + pub unsafe fn ClientApplicationID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetClientApplicationID<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetClientApplicationID)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetClientApplicationID(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } pub unsafe fn IsForced(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6784,14 +6501,11 @@ impl IUpdateInstaller { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Install)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn RunWizard<'a, P0>(&self, dialogtitle: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn RunWizard(&self, dialogtitle: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RunWizard)(::windows::core::Interface::as_raw(self), dialogtitle.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RunWizard)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(dialogtitle), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn IsBusy(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6881,14 +6595,8 @@ unsafe impl ::windows::core::Interface for IUpdateInstaller { #[doc(hidden)] pub struct IUpdateInstaller_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub ClientApplicationID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ClientApplicationID: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetClientApplicationID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetClientApplicationID: usize, + pub ClientApplicationID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetClientApplicationID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub IsForced: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i16) -> ::windows::core::HRESULT, pub SetIsForced: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] @@ -6929,9 +6637,9 @@ pub struct IUpdateInstaller_Vtbl { pub Install: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Install: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub RunWizard: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dialogtitle: ::core::mem::ManuallyDrop, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub RunWizard: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dialogtitle: ::core::mem::ManuallyDrop<::windows::core::BSTR>, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] RunWizard: usize, pub IsBusy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] @@ -6948,19 +6656,12 @@ pub struct IUpdateInstaller_Vtbl { pub struct IUpdateInstaller2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IUpdateInstaller2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClientApplicationID(&self) -> ::windows::core::Result { + pub unsafe fn ClientApplicationID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetClientApplicationID<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetClientApplicationID)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetClientApplicationID(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } pub unsafe fn IsForced(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7053,14 +6754,11 @@ impl IUpdateInstaller2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Install)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn RunWizard<'a, P0>(&self, dialogtitle: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn RunWizard(&self, dialogtitle: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.RunWizard)(::windows::core::Interface::as_raw(self), dialogtitle.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.RunWizard)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(dialogtitle), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn IsBusy(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7184,19 +6882,12 @@ pub struct IUpdateInstaller2_Vtbl { pub struct IUpdateInstaller3(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IUpdateInstaller3 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClientApplicationID(&self) -> ::windows::core::Result { + pub unsafe fn ClientApplicationID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.ClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.ClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetClientApplicationID<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetClientApplicationID)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetClientApplicationID(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } pub unsafe fn IsForced(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7289,14 +6980,11 @@ impl IUpdateInstaller3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.Install)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn RunWizard<'a, P0>(&self, dialogtitle: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn RunWizard(&self, dialogtitle: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.RunWizard)(::windows::core::Interface::as_raw(self), dialogtitle.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.RunWizard)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(dialogtitle), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn IsBusy(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7445,19 +7133,12 @@ pub struct IUpdateInstaller3_Vtbl { pub struct IUpdateInstaller4(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IUpdateInstaller4 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClientApplicationID(&self) -> ::windows::core::Result { + pub unsafe fn ClientApplicationID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.ClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.ClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetClientApplicationID<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.SetClientApplicationID)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetClientApplicationID(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.SetClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } pub unsafe fn IsForced(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7550,14 +7231,11 @@ impl IUpdateInstaller4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.Install)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn RunWizard<'a, P0>(&self, dialogtitle: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn RunWizard(&self, dialogtitle: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.RunWizard)(::windows::core::Interface::as_raw(self), dialogtitle.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.RunWizard)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(dialogtitle), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn IsBusy(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7782,19 +7460,12 @@ impl IUpdateSearcher { pub unsafe fn SetCanAutomaticallyUpgradeService(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetCanAutomaticallyUpgradeService)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClientApplicationID(&self) -> ::windows::core::Result { + pub unsafe fn ClientApplicationID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetClientApplicationID<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetClientApplicationID)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetClientApplicationID(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } pub unsafe fn IncludePotentiallySupersededUpdates(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7812,14 +7483,13 @@ impl IUpdateSearcher { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn BeginSearch<'a, P0, P1, P2>(&self, criteria: P0, oncompleted: P1, state: P2) -> ::windows::core::Result + pub unsafe fn BeginSearch<'a, P0, P1>(&self, criteria: &::windows::core::BSTR, oncompleted: P0, state: P1) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).BeginSearch)(::windows::core::Interface::as_raw(self), criteria.into().abi(), oncompleted.into().abi(), state.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).BeginSearch)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(criteria), oncompleted.into().abi(), state.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7830,14 +7500,9 @@ impl IUpdateSearcher { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).EndSearch)(::windows::core::Interface::as_raw(self), searchjob.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EscapeString<'a, P0>(&self, unescaped: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn EscapeString(&self, unescaped: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).EscapeString)(::windows::core::Interface::as_raw(self), unescaped.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).EscapeString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(unescaped), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7845,14 +7510,11 @@ impl IUpdateSearcher { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).QueryHistory)(::windows::core::Interface::as_raw(self), startindex, count, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Search<'a, P0>(&self, criteria: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Search(&self, criteria: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Search)(::windows::core::Interface::as_raw(self), criteria.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Search)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(criteria), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn Online(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7865,19 +7527,12 @@ impl IUpdateSearcher { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetTotalHistoryCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ServiceID(&self) -> ::windows::core::Result { + pub unsafe fn ServiceID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ServiceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ServiceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetServiceID<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetServiceID)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetServiceID(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetServiceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -7948,49 +7603,34 @@ pub struct IUpdateSearcher_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub CanAutomaticallyUpgradeService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i16) -> ::windows::core::HRESULT, pub SetCanAutomaticallyUpgradeService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ClientApplicationID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ClientApplicationID: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetClientApplicationID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetClientApplicationID: usize, + pub ClientApplicationID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetClientApplicationID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub IncludePotentiallySupersededUpdates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i16) -> ::windows::core::HRESULT, pub SetIncludePotentiallySupersededUpdates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i16) -> ::windows::core::HRESULT, pub ServerSelection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ServerSelection) -> ::windows::core::HRESULT, pub SetServerSelection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ServerSelection) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub BeginSearch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, criteria: ::core::mem::ManuallyDrop, oncompleted: *mut ::core::ffi::c_void, state: ::core::mem::ManuallyDrop, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub BeginSearch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, criteria: ::core::mem::ManuallyDrop<::windows::core::BSTR>, oncompleted: *mut ::core::ffi::c_void, state: ::core::mem::ManuallyDrop, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] BeginSearch: usize, #[cfg(feature = "Win32_System_Com")] pub EndSearch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, searchjob: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] EndSearch: usize, - #[cfg(feature = "Win32_Foundation")] - pub EscapeString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, unescaped: ::core::mem::ManuallyDrop, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - EscapeString: usize, + pub EscapeString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, unescaped: ::core::mem::ManuallyDrop<::windows::core::BSTR>, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub QueryHistory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, startindex: i32, count: i32, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] QueryHistory: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Search: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, criteria: ::core::mem::ManuallyDrop, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub Search: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, criteria: ::core::mem::ManuallyDrop<::windows::core::BSTR>, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Search: usize, pub Online: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i16) -> ::windows::core::HRESULT, pub SetOnline: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i16) -> ::windows::core::HRESULT, pub GetTotalHistoryCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ServiceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ServiceID: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetServiceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetServiceID: usize, + pub ServiceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetServiceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_UpdateAgent\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -8005,19 +7645,12 @@ impl IUpdateSearcher2 { pub unsafe fn SetCanAutomaticallyUpgradeService(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetCanAutomaticallyUpgradeService)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClientApplicationID(&self) -> ::windows::core::Result { + pub unsafe fn ClientApplicationID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetClientApplicationID<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetClientApplicationID)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetClientApplicationID(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } pub unsafe fn IncludePotentiallySupersededUpdates(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -8035,14 +7668,13 @@ impl IUpdateSearcher2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn BeginSearch<'a, P0, P1, P2>(&self, criteria: P0, oncompleted: P1, state: P2) -> ::windows::core::Result + pub unsafe fn BeginSearch<'a, P0, P1>(&self, criteria: &::windows::core::BSTR, oncompleted: P0, state: P1) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.BeginSearch)(::windows::core::Interface::as_raw(self), criteria.into().abi(), oncompleted.into().abi(), state.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.BeginSearch)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(criteria), oncompleted.into().abi(), state.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -8053,14 +7685,9 @@ impl IUpdateSearcher2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.EndSearch)(::windows::core::Interface::as_raw(self), searchjob.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EscapeString<'a, P0>(&self, unescaped: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn EscapeString(&self, unescaped: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.EscapeString)(::windows::core::Interface::as_raw(self), unescaped.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.EscapeString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(unescaped), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -8068,14 +7695,11 @@ impl IUpdateSearcher2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.QueryHistory)(::windows::core::Interface::as_raw(self), startindex, count, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Search<'a, P0>(&self, criteria: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Search(&self, criteria: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Search)(::windows::core::Interface::as_raw(self), criteria.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Search)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(criteria), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn Online(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -8088,19 +7712,12 @@ impl IUpdateSearcher2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetTotalHistoryCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ServiceID(&self) -> ::windows::core::Result { + pub unsafe fn ServiceID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ServiceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ServiceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetServiceID<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetServiceID)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetServiceID(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetServiceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } pub unsafe fn IgnoreDownloadPriority(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -8210,19 +7827,12 @@ impl IUpdateSearcher3 { pub unsafe fn SetCanAutomaticallyUpgradeService(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.SetCanAutomaticallyUpgradeService)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClientApplicationID(&self) -> ::windows::core::Result { + pub unsafe fn ClientApplicationID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.ClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.ClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetClientApplicationID<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetClientApplicationID)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetClientApplicationID(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } pub unsafe fn IncludePotentiallySupersededUpdates(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -8240,14 +7850,13 @@ impl IUpdateSearcher3 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn BeginSearch<'a, P0, P1, P2>(&self, criteria: P0, oncompleted: P1, state: P2) -> ::windows::core::Result + pub unsafe fn BeginSearch<'a, P0, P1>(&self, criteria: &::windows::core::BSTR, oncompleted: P0, state: P1) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.BeginSearch)(::windows::core::Interface::as_raw(self), criteria.into().abi(), oncompleted.into().abi(), state.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.BeginSearch)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(criteria), oncompleted.into().abi(), state.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -8258,14 +7867,9 @@ impl IUpdateSearcher3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.EndSearch)(::windows::core::Interface::as_raw(self), searchjob.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EscapeString<'a, P0>(&self, unescaped: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn EscapeString(&self, unescaped: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.EscapeString)(::windows::core::Interface::as_raw(self), unescaped.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.EscapeString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(unescaped), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -8273,14 +7877,11 @@ impl IUpdateSearcher3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.QueryHistory)(::windows::core::Interface::as_raw(self), startindex, count, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Search<'a, P0>(&self, criteria: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Search(&self, criteria: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Search)(::windows::core::Interface::as_raw(self), criteria.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Search)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(criteria), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn Online(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -8293,19 +7894,12 @@ impl IUpdateSearcher3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.GetTotalHistoryCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ServiceID(&self) -> ::windows::core::Result { + pub unsafe fn ServiceID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.ServiceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.ServiceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetServiceID<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetServiceID)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetServiceID(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetServiceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } pub unsafe fn IgnoreDownloadPriority(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -8433,11 +8027,9 @@ pub struct IUpdateSearcher3_Vtbl { pub struct IUpdateService(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IUpdateService { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -8471,11 +8063,9 @@ impl IUpdateService { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).RedirectUrls)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ServiceID(&self) -> ::windows::core::Result { + pub unsafe fn ServiceID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ServiceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ServiceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn IsScanPackageService(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -8485,17 +8075,13 @@ impl IUpdateService { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CanRegisterWithAU)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ServiceUrl(&self) -> ::windows::core::Result { + pub unsafe fn ServiceUrl(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ServiceUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ServiceUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetupPrefix(&self) -> ::windows::core::Result { + pub unsafe fn SetupPrefix(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SetupPrefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SetupPrefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -8564,10 +8150,7 @@ unsafe impl ::windows::core::Interface for IUpdateService { #[doc(hidden)] pub struct IUpdateService_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub ContentValidationCert: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -8581,20 +8164,11 @@ pub struct IUpdateService_Vtbl { pub RedirectUrls: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] RedirectUrls: usize, - #[cfg(feature = "Win32_Foundation")] - pub ServiceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ServiceID: usize, + pub ServiceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub IsScanPackageService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i16) -> ::windows::core::HRESULT, pub CanRegisterWithAU: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ServiceUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ServiceUrl: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetupPrefix: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetupPrefix: usize, + pub ServiceUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetupPrefix: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_UpdateAgent\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -8602,11 +8176,9 @@ pub struct IUpdateService_Vtbl { pub struct IUpdateService2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IUpdateService2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -8640,11 +8212,9 @@ impl IUpdateService2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.RedirectUrls)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ServiceID(&self) -> ::windows::core::Result { + pub unsafe fn ServiceID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ServiceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ServiceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn IsScanPackageService(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -8654,17 +8224,13 @@ impl IUpdateService2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.CanRegisterWithAU)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ServiceUrl(&self) -> ::windows::core::Result { + pub unsafe fn ServiceUrl(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ServiceUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ServiceUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetupPrefix(&self) -> ::windows::core::Result { + pub unsafe fn SetupPrefix(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.SetupPrefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.SetupPrefix)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn IsDefaultAUService(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -8863,58 +8429,34 @@ impl IUpdateServiceManager { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Services)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn AddService<'a, P0, P1>(&self, serviceid: P0, authorizationcabpath: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn AddService(&self, serviceid: &::windows::core::BSTR, authorizationcabpath: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AddService)(::windows::core::Interface::as_raw(self), serviceid.into().abi(), authorizationcabpath.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AddService)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(serviceid), ::core::mem::transmute_copy(authorizationcabpath), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RegisterServiceWithAU<'a, P0>(&self, serviceid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).RegisterServiceWithAU)(::windows::core::Interface::as_raw(self), serviceid.into().abi()).ok() + pub unsafe fn RegisterServiceWithAU(&self, serviceid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).RegisterServiceWithAU)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(serviceid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoveService<'a, P0>(&self, serviceid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).RemoveService)(::windows::core::Interface::as_raw(self), serviceid.into().abi()).ok() + pub unsafe fn RemoveService(&self, serviceid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).RemoveService)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(serviceid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UnregisterServiceWithAU<'a, P0>(&self, serviceid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).UnregisterServiceWithAU)(::windows::core::Interface::as_raw(self), serviceid.into().abi()).ok() + pub unsafe fn UnregisterServiceWithAU(&self, serviceid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).UnregisterServiceWithAU)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(serviceid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn AddScanPackageService<'a, P0, P1>(&self, servicename: P0, scanfilelocation: P1, flags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn AddScanPackageService(&self, servicename: &::windows::core::BSTR, scanfilelocation: &::windows::core::BSTR, flags: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AddScanPackageService)(::windows::core::Interface::as_raw(self), servicename.into().abi(), scanfilelocation.into().abi(), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AddScanPackageService)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(servicename), ::core::mem::transmute_copy(scanfilelocation), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn SetOption<'a, P0, P1>(&self, optionname: P0, optionvalue: P1) -> ::windows::core::Result<()> + pub unsafe fn SetOption<'a, P0>(&self, optionname: &::windows::core::BSTR, optionvalue: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).SetOption)(::windows::core::Interface::as_raw(self), optionname.into().abi(), optionvalue.into().abi()).ok() + (::windows::core::Interface::vtable(self).SetOption)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(optionname), optionvalue.into().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -8987,28 +8529,19 @@ pub struct IUpdateServiceManager_Vtbl { pub Services: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Services: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub AddService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, serviceid: ::core::mem::ManuallyDrop, authorizationcabpath: ::core::mem::ManuallyDrop, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub AddService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, serviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, authorizationcabpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] AddService: usize, - #[cfg(feature = "Win32_Foundation")] - pub RegisterServiceWithAU: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, serviceid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RegisterServiceWithAU: usize, - #[cfg(feature = "Win32_Foundation")] - pub RemoveService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, serviceid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RemoveService: usize, - #[cfg(feature = "Win32_Foundation")] - pub UnregisterServiceWithAU: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, serviceid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UnregisterServiceWithAU: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub AddScanPackageService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, servicename: ::core::mem::ManuallyDrop, scanfilelocation: ::core::mem::ManuallyDrop, flags: i32, ppservice: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub RegisterServiceWithAU: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, serviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub RemoveService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, serviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub UnregisterServiceWithAU: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, serviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub AddScanPackageService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, servicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, scanfilelocation: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: i32, ppservice: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] AddScanPackageService: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub SetOption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, optionname: ::core::mem::ManuallyDrop, optionvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub SetOption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, optionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, optionvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SetOption: usize, } @@ -9024,91 +8557,53 @@ impl IUpdateServiceManager2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Services)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn AddService<'a, P0, P1>(&self, serviceid: P0, authorizationcabpath: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn AddService(&self, serviceid: &::windows::core::BSTR, authorizationcabpath: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.AddService)(::windows::core::Interface::as_raw(self), serviceid.into().abi(), authorizationcabpath.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.AddService)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(serviceid), ::core::mem::transmute_copy(authorizationcabpath), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RegisterServiceWithAU<'a, P0>(&self, serviceid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.RegisterServiceWithAU)(::windows::core::Interface::as_raw(self), serviceid.into().abi()).ok() + pub unsafe fn RegisterServiceWithAU(&self, serviceid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.RegisterServiceWithAU)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(serviceid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoveService<'a, P0>(&self, serviceid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.RemoveService)(::windows::core::Interface::as_raw(self), serviceid.into().abi()).ok() + pub unsafe fn RemoveService(&self, serviceid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.RemoveService)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(serviceid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UnregisterServiceWithAU<'a, P0>(&self, serviceid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.UnregisterServiceWithAU)(::windows::core::Interface::as_raw(self), serviceid.into().abi()).ok() + pub unsafe fn UnregisterServiceWithAU(&self, serviceid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.UnregisterServiceWithAU)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(serviceid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn AddScanPackageService<'a, P0, P1>(&self, servicename: P0, scanfilelocation: P1, flags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn AddScanPackageService(&self, servicename: &::windows::core::BSTR, scanfilelocation: &::windows::core::BSTR, flags: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.AddScanPackageService)(::windows::core::Interface::as_raw(self), servicename.into().abi(), scanfilelocation.into().abi(), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.AddScanPackageService)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(servicename), ::core::mem::transmute_copy(scanfilelocation), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn SetOption<'a, P0, P1>(&self, optionname: P0, optionvalue: P1) -> ::windows::core::Result<()> + pub unsafe fn SetOption<'a, P0>(&self, optionname: &::windows::core::BSTR, optionvalue: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.SetOption)(::windows::core::Interface::as_raw(self), optionname.into().abi(), optionvalue.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.SetOption)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(optionname), optionvalue.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClientApplicationID(&self) -> ::windows::core::Result { + pub unsafe fn ClientApplicationID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetClientApplicationID<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetClientApplicationID)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetClientApplicationID(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn QueryServiceRegistration<'a, P0>(&self, serviceid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn QueryServiceRegistration(&self, serviceid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).QueryServiceRegistration)(::windows::core::Interface::as_raw(self), serviceid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).QueryServiceRegistration)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(serviceid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn AddService2<'a, P0, P1>(&self, serviceid: P0, flags: i32, authorizationcabpath: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn AddService2(&self, serviceid: &::windows::core::BSTR, flags: i32, authorizationcabpath: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AddService2)(::windows::core::Interface::as_raw(self), serviceid.into().abi(), flags, authorizationcabpath.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AddService2)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(serviceid), flags, ::core::mem::transmute_copy(authorizationcabpath), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -9195,21 +8690,15 @@ unsafe impl ::windows::core::Interface for IUpdateServiceManager2 { #[doc(hidden)] pub struct IUpdateServiceManager2_Vtbl { pub base__: IUpdateServiceManager_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub ClientApplicationID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ClientApplicationID: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetClientApplicationID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetClientApplicationID: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub QueryServiceRegistration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, serviceid: ::core::mem::ManuallyDrop, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + pub ClientApplicationID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetClientApplicationID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(feature = "Win32_System_Com")] + pub QueryServiceRegistration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, serviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] QueryServiceRegistration: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub AddService2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, serviceid: ::core::mem::ManuallyDrop, flags: i32, authorizationcabpath: ::core::mem::ManuallyDrop, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub AddService2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, serviceid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: i32, authorizationcabpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] AddService2: usize, } #[doc = "*Required features: `\"Win32_System_UpdateAgent\"`, `\"Win32_System_Com\"`*"] @@ -9222,11 +8711,9 @@ impl IUpdateServiceRegistration { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).RegistrationState)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ServiceID(&self) -> ::windows::core::Result { + pub unsafe fn ServiceID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ServiceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ServiceID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn IsPendingRegistrationWithAU(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -9306,10 +8793,7 @@ unsafe impl ::windows::core::Interface for IUpdateServiceRegistration { pub struct IUpdateServiceRegistration_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub RegistrationState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut UpdateServiceRegistrationState) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ServiceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ServiceID: usize, + pub ServiceID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub IsPendingRegistrationWithAU: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Service: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -9322,19 +8806,12 @@ pub struct IUpdateServiceRegistration_Vtbl { pub struct IUpdateSession(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IUpdateSession { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClientApplicationID(&self) -> ::windows::core::Result { + pub unsafe fn ClientApplicationID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetClientApplicationID<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetClientApplicationID)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetClientApplicationID(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } pub unsafe fn ReadOnly(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -9439,14 +8916,8 @@ unsafe impl ::windows::core::Interface for IUpdateSession { #[doc(hidden)] pub struct IUpdateSession_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub ClientApplicationID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ClientApplicationID: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetClientApplicationID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetClientApplicationID: usize, + pub ClientApplicationID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetClientApplicationID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ReadOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub WebProxy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -9475,19 +8946,12 @@ pub struct IUpdateSession_Vtbl { pub struct IUpdateSession2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IUpdateSession2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClientApplicationID(&self) -> ::windows::core::Result { + pub unsafe fn ClientApplicationID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetClientApplicationID<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetClientApplicationID)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetClientApplicationID(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } pub unsafe fn ReadOnly(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -9626,19 +9090,12 @@ pub struct IUpdateSession2_Vtbl { pub struct IUpdateSession3(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IUpdateSession3 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClientApplicationID(&self) -> ::windows::core::Result { + pub unsafe fn ClientApplicationID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.ClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.ClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetClientApplicationID<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetClientApplicationID)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetClientApplicationID(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetClientApplicationID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } pub unsafe fn ReadOnly(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -9689,14 +9146,11 @@ impl IUpdateSession3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CreateUpdateServiceManager)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn QueryHistory<'a, P0>(&self, criteria: P0, startindex: i32, count: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn QueryHistory(&self, criteria: &::windows::core::BSTR, startindex: i32, count: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).QueryHistory)(::windows::core::Interface::as_raw(self), criteria.into().abi(), startindex, count, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).QueryHistory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(criteria), startindex, count, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -9805,9 +9259,9 @@ pub struct IUpdateSession3_Vtbl { pub CreateUpdateServiceManager: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] CreateUpdateServiceManager: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub QueryHistory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, criteria: ::core::mem::ManuallyDrop, startindex: i32, count: i32, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub QueryHistory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, criteria: ::core::mem::ManuallyDrop<::windows::core::BSTR>, startindex: i32, count: i32, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] QueryHistory: usize, } #[doc = "*Required features: `\"Win32_System_UpdateAgent\"`, `\"Win32_System_Com\"`*"] @@ -9816,19 +9270,12 @@ pub struct IUpdateSession3_Vtbl { pub struct IWebProxy(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWebProxy { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Address(&self) -> ::windows::core::Result { + pub unsafe fn Address(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Address)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Address)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetAddress<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetAddress)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetAddress(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetAddress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9855,45 +9302,29 @@ impl IWebProxy { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ReadOnly)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UserName(&self) -> ::windows::core::Result { + pub unsafe fn UserName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).UserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).UserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetUserName<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetUserName)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetUserName(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetUserName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPassword<'a, P0>(&self, value: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPassword)(::windows::core::Interface::as_raw(self), value.into().abi()).ok() + pub unsafe fn SetPassword(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPassword)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PromptForCredentials<'a, P0, P1>(&self, parentwindow: P0, title: P1) -> ::windows::core::Result<()> + pub unsafe fn PromptForCredentials<'a, P0>(&self, parentwindow: P0, title: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, ::windows::core::IUnknown>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).PromptForCredentials)(::windows::core::Interface::as_raw(self), parentwindow.into().abi(), title.into().abi()).ok() + (::windows::core::Interface::vtable(self).PromptForCredentials)(::windows::core::Interface::as_raw(self), parentwindow.into().abi(), ::core::mem::transmute_copy(title)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PromptForCredentialsFromHwnd<'a, P0, P1>(&self, parentwindow: P0, title: P1) -> ::windows::core::Result<()> + pub unsafe fn PromptForCredentialsFromHwnd<'a, P0>(&self, parentwindow: P0, title: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).PromptForCredentialsFromHwnd)(::windows::core::Interface::as_raw(self), parentwindow.into(), title.into().abi()).ok() + (::windows::core::Interface::vtable(self).PromptForCredentialsFromHwnd)(::windows::core::Interface::as_raw(self), parentwindow.into(), ::core::mem::transmute_copy(title)).ok() } pub unsafe fn AutoDetect(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -9969,14 +9400,8 @@ unsafe impl ::windows::core::Interface for IWebProxy { #[doc(hidden)] pub struct IWebProxy_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Address: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Address: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetAddress: usize, + pub Address: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub BypassList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -9988,24 +9413,12 @@ pub struct IWebProxy_Vtbl { pub BypassProxyOnLocal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i16) -> ::windows::core::HRESULT, pub SetBypassProxyOnLocal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i16) -> ::windows::core::HRESULT, pub ReadOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i16) -> ::windows::core::HRESULT, + pub UserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetUserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetPassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub PromptForCredentials: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, parentwindow: *mut ::core::ffi::c_void, title: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub UserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UserName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetUserName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetUserName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPassword: usize, - #[cfg(feature = "Win32_Foundation")] - pub PromptForCredentials: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, parentwindow: *mut ::core::ffi::c_void, title: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PromptForCredentials: usize, - #[cfg(feature = "Win32_Foundation")] - pub PromptForCredentialsFromHwnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, parentwindow: super::super::Foundation::HWND, title: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub PromptForCredentialsFromHwnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, parentwindow: super::super::Foundation::HWND, title: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] PromptForCredentialsFromHwnd: usize, pub AutoDetect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i16) -> ::windows::core::HRESULT, @@ -10017,11 +9430,9 @@ pub struct IWebProxy_Vtbl { pub struct IWindowsDriverUpdate(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWindowsDriverUpdate { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Title(&self) -> ::windows::core::Result { + pub unsafe fn Title(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn AutoSelectOnWebSites(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -10057,27 +9468,21 @@ impl IWindowsDriverUpdate { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.DeltaCompressedContentPreferred)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn EulaAccepted(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.EulaAccepted)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EulaText(&self) -> ::windows::core::Result { + pub unsafe fn EulaText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.EulaText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.EulaText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn HandlerID(&self) -> ::windows::core::Result { + pub unsafe fn HandlerID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.HandlerID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.HandlerID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -10152,11 +9557,9 @@ impl IWindowsDriverUpdate { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.MoreInfoUrls)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MsrcSeverity(&self) -> ::windows::core::Result { + pub unsafe fn MsrcSeverity(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.MsrcSeverity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.MsrcSeverity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn RecommendedCpuSpeed(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -10170,11 +9573,9 @@ impl IWindowsDriverUpdate { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.RecommendedMemory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ReleaseNotes(&self) -> ::windows::core::Result { + pub unsafe fn ReleaseNotes(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ReleaseNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ReleaseNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -10188,21 +9589,17 @@ impl IWindowsDriverUpdate { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.SupersededUpdateIDs)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SupportUrl(&self) -> ::windows::core::Result { + pub unsafe fn SupportUrl(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.SupportUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.SupportUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Type(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UninstallationNotes(&self) -> ::windows::core::Result { + pub unsafe fn UninstallationNotes(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.UninstallationNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.UninstallationNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -10229,13 +9626,8 @@ impl IWindowsDriverUpdate { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.DeploymentAction)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CopyFromCache<'a, P0>(&self, path: P0, toextractcabfiles: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.CopyFromCache)(::windows::core::Interface::as_raw(self), path.into().abi(), toextractcabfiles).ok() + pub unsafe fn CopyFromCache(&self, path: &::windows::core::BSTR, toextractcabfiles: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.CopyFromCache)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), toextractcabfiles).ok() } pub unsafe fn DownloadPriority(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -10247,35 +9639,25 @@ impl IWindowsDriverUpdate { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.DownloadContents)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DriverClass(&self) -> ::windows::core::Result { + pub unsafe fn DriverClass(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DriverClass)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DriverClass)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DriverHardwareID(&self) -> ::windows::core::Result { + pub unsafe fn DriverHardwareID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DriverHardwareID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DriverHardwareID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DriverManufacturer(&self) -> ::windows::core::Result { + pub unsafe fn DriverManufacturer(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DriverManufacturer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DriverManufacturer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DriverModel(&self) -> ::windows::core::Result { + pub unsafe fn DriverModel(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DriverModel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DriverModel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DriverProvider(&self) -> ::windows::core::Result { + pub unsafe fn DriverProvider(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DriverProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DriverProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn DriverVerDate(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -10374,26 +9756,11 @@ unsafe impl ::windows::core::Interface for IWindowsDriverUpdate { #[doc(hidden)] pub struct IWindowsDriverUpdate_Vtbl { pub base__: IUpdate_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub DriverClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DriverClass: usize, - #[cfg(feature = "Win32_Foundation")] - pub DriverHardwareID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DriverHardwareID: usize, - #[cfg(feature = "Win32_Foundation")] - pub DriverManufacturer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DriverManufacturer: usize, - #[cfg(feature = "Win32_Foundation")] - pub DriverModel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DriverModel: usize, - #[cfg(feature = "Win32_Foundation")] - pub DriverProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DriverProvider: usize, + pub DriverClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DriverHardwareID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DriverManufacturer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DriverModel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DriverProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub DriverVerDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut f64) -> ::windows::core::HRESULT, pub DeviceProblemNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, pub DeviceStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, @@ -10404,11 +9771,9 @@ pub struct IWindowsDriverUpdate_Vtbl { pub struct IWindowsDriverUpdate2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWindowsDriverUpdate2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Title(&self) -> ::windows::core::Result { + pub unsafe fn Title(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn AutoSelectOnWebSites(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -10444,27 +9809,21 @@ impl IWindowsDriverUpdate2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.DeltaCompressedContentPreferred)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn EulaAccepted(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.EulaAccepted)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EulaText(&self) -> ::windows::core::Result { + pub unsafe fn EulaText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.EulaText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.EulaText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn HandlerID(&self) -> ::windows::core::Result { + pub unsafe fn HandlerID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.HandlerID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.HandlerID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -10539,11 +9898,9 @@ impl IWindowsDriverUpdate2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.MoreInfoUrls)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MsrcSeverity(&self) -> ::windows::core::Result { + pub unsafe fn MsrcSeverity(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.MsrcSeverity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.MsrcSeverity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn RecommendedCpuSpeed(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -10557,11 +9914,9 @@ impl IWindowsDriverUpdate2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.RecommendedMemory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ReleaseNotes(&self) -> ::windows::core::Result { + pub unsafe fn ReleaseNotes(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.ReleaseNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.ReleaseNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -10575,21 +9930,17 @@ impl IWindowsDriverUpdate2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.SupersededUpdateIDs)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SupportUrl(&self) -> ::windows::core::Result { + pub unsafe fn SupportUrl(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.SupportUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.SupportUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Type(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UninstallationNotes(&self) -> ::windows::core::Result { + pub unsafe fn UninstallationNotes(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.UninstallationNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.UninstallationNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -10616,13 +9967,8 @@ impl IWindowsDriverUpdate2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.DeploymentAction)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CopyFromCache<'a, P0>(&self, path: P0, toextractcabfiles: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.CopyFromCache)(::windows::core::Interface::as_raw(self), path.into().abi(), toextractcabfiles).ok() + pub unsafe fn CopyFromCache(&self, path: &::windows::core::BSTR, toextractcabfiles: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.CopyFromCache)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), toextractcabfiles).ok() } pub unsafe fn DownloadPriority(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -10634,35 +9980,25 @@ impl IWindowsDriverUpdate2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.DownloadContents)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DriverClass(&self) -> ::windows::core::Result { + pub unsafe fn DriverClass(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.DriverClass)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.DriverClass)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DriverHardwareID(&self) -> ::windows::core::Result { + pub unsafe fn DriverHardwareID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.DriverHardwareID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.DriverHardwareID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DriverManufacturer(&self) -> ::windows::core::Result { + pub unsafe fn DriverManufacturer(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.DriverManufacturer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.DriverManufacturer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DriverModel(&self) -> ::windows::core::Result { + pub unsafe fn DriverModel(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.DriverModel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.DriverModel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DriverProvider(&self) -> ::windows::core::Result { + pub unsafe fn DriverProvider(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.DriverProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.DriverProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn DriverVerDate(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -10818,11 +10154,9 @@ pub struct IWindowsDriverUpdate2_Vtbl { pub struct IWindowsDriverUpdate3(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWindowsDriverUpdate3 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Title(&self) -> ::windows::core::Result { + pub unsafe fn Title(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn AutoSelectOnWebSites(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -10858,27 +10192,21 @@ impl IWindowsDriverUpdate3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.DeltaCompressedContentPreferred)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn EulaAccepted(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.EulaAccepted)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EulaText(&self) -> ::windows::core::Result { + pub unsafe fn EulaText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.EulaText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.EulaText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn HandlerID(&self) -> ::windows::core::Result { + pub unsafe fn HandlerID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.HandlerID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.HandlerID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -10953,11 +10281,9 @@ impl IWindowsDriverUpdate3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.MoreInfoUrls)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MsrcSeverity(&self) -> ::windows::core::Result { + pub unsafe fn MsrcSeverity(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.MsrcSeverity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.MsrcSeverity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn RecommendedCpuSpeed(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -10971,11 +10297,9 @@ impl IWindowsDriverUpdate3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.RecommendedMemory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ReleaseNotes(&self) -> ::windows::core::Result { + pub unsafe fn ReleaseNotes(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.ReleaseNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.ReleaseNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -10989,21 +10313,17 @@ impl IWindowsDriverUpdate3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.SupersededUpdateIDs)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SupportUrl(&self) -> ::windows::core::Result { + pub unsafe fn SupportUrl(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.SupportUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.SupportUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Type(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UninstallationNotes(&self) -> ::windows::core::Result { + pub unsafe fn UninstallationNotes(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.UninstallationNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.UninstallationNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -11030,13 +10350,8 @@ impl IWindowsDriverUpdate3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.DeploymentAction)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CopyFromCache<'a, P0>(&self, path: P0, toextractcabfiles: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.CopyFromCache)(::windows::core::Interface::as_raw(self), path.into().abi(), toextractcabfiles).ok() + pub unsafe fn CopyFromCache(&self, path: &::windows::core::BSTR, toextractcabfiles: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.CopyFromCache)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), toextractcabfiles).ok() } pub unsafe fn DownloadPriority(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -11048,35 +10363,25 @@ impl IWindowsDriverUpdate3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.DownloadContents)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DriverClass(&self) -> ::windows::core::Result { + pub unsafe fn DriverClass(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.DriverClass)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.DriverClass)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DriverHardwareID(&self) -> ::windows::core::Result { + pub unsafe fn DriverHardwareID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.DriverHardwareID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.DriverHardwareID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DriverManufacturer(&self) -> ::windows::core::Result { + pub unsafe fn DriverManufacturer(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.DriverManufacturer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.DriverManufacturer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DriverModel(&self) -> ::windows::core::Result { + pub unsafe fn DriverModel(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.DriverModel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.DriverModel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DriverProvider(&self) -> ::windows::core::Result { + pub unsafe fn DriverProvider(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.DriverProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.DriverProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn DriverVerDate(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -11245,11 +10550,9 @@ pub struct IWindowsDriverUpdate3_Vtbl { pub struct IWindowsDriverUpdate4(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWindowsDriverUpdate4 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Title(&self) -> ::windows::core::Result { + pub unsafe fn Title(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn AutoSelectOnWebSites(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -11285,27 +10588,21 @@ impl IWindowsDriverUpdate4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.DeltaCompressedContentPreferred)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn EulaAccepted(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.EulaAccepted)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EulaText(&self) -> ::windows::core::Result { + pub unsafe fn EulaText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.EulaText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.EulaText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn HandlerID(&self) -> ::windows::core::Result { + pub unsafe fn HandlerID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.HandlerID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.HandlerID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -11380,11 +10677,9 @@ impl IWindowsDriverUpdate4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.MoreInfoUrls)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MsrcSeverity(&self) -> ::windows::core::Result { + pub unsafe fn MsrcSeverity(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.MsrcSeverity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.MsrcSeverity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn RecommendedCpuSpeed(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -11398,11 +10693,9 @@ impl IWindowsDriverUpdate4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.RecommendedMemory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ReleaseNotes(&self) -> ::windows::core::Result { + pub unsafe fn ReleaseNotes(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.ReleaseNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.ReleaseNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -11416,21 +10709,17 @@ impl IWindowsDriverUpdate4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.SupersededUpdateIDs)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SupportUrl(&self) -> ::windows::core::Result { + pub unsafe fn SupportUrl(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.SupportUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.SupportUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Type(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UninstallationNotes(&self) -> ::windows::core::Result { + pub unsafe fn UninstallationNotes(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.UninstallationNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.UninstallationNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -11457,13 +10746,8 @@ impl IWindowsDriverUpdate4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.DeploymentAction)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CopyFromCache<'a, P0>(&self, path: P0, toextractcabfiles: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CopyFromCache)(::windows::core::Interface::as_raw(self), path.into().abi(), toextractcabfiles).ok() + pub unsafe fn CopyFromCache(&self, path: &::windows::core::BSTR, toextractcabfiles: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CopyFromCache)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), toextractcabfiles).ok() } pub unsafe fn DownloadPriority(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -11475,35 +10759,25 @@ impl IWindowsDriverUpdate4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.DownloadContents)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DriverClass(&self) -> ::windows::core::Result { + pub unsafe fn DriverClass(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.DriverClass)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.DriverClass)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DriverHardwareID(&self) -> ::windows::core::Result { + pub unsafe fn DriverHardwareID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.DriverHardwareID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.DriverHardwareID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DriverManufacturer(&self) -> ::windows::core::Result { + pub unsafe fn DriverManufacturer(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.DriverManufacturer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.DriverManufacturer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DriverModel(&self) -> ::windows::core::Result { + pub unsafe fn DriverModel(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.DriverModel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.DriverModel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DriverProvider(&self) -> ::windows::core::Result { + pub unsafe fn DriverProvider(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.DriverProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.DriverProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn DriverVerDate(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -11704,11 +10978,9 @@ pub struct IWindowsDriverUpdate4_Vtbl { pub struct IWindowsDriverUpdate5(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWindowsDriverUpdate5 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Title(&self) -> ::windows::core::Result { + pub unsafe fn Title(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn AutoSelectOnWebSites(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -11744,27 +11016,21 @@ impl IWindowsDriverUpdate5 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.DeltaCompressedContentPreferred)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn EulaAccepted(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.EulaAccepted)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn EulaText(&self) -> ::windows::core::Result { + pub unsafe fn EulaText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.EulaText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.EulaText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn HandlerID(&self) -> ::windows::core::Result { + pub unsafe fn HandlerID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.HandlerID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.HandlerID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -11839,11 +11105,9 @@ impl IWindowsDriverUpdate5 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.MoreInfoUrls)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn MsrcSeverity(&self) -> ::windows::core::Result { + pub unsafe fn MsrcSeverity(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.MsrcSeverity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.MsrcSeverity)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn RecommendedCpuSpeed(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -11857,11 +11121,9 @@ impl IWindowsDriverUpdate5 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.RecommendedMemory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ReleaseNotes(&self) -> ::windows::core::Result { + pub unsafe fn ReleaseNotes(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.ReleaseNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.ReleaseNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -11875,21 +11137,17 @@ impl IWindowsDriverUpdate5 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.SupersededUpdateIDs)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SupportUrl(&self) -> ::windows::core::Result { + pub unsafe fn SupportUrl(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.SupportUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.SupportUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Type(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UninstallationNotes(&self) -> ::windows::core::Result { + pub unsafe fn UninstallationNotes(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.UninstallationNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.UninstallationNotes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -11916,13 +11174,8 @@ impl IWindowsDriverUpdate5 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.DeploymentAction)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CopyFromCache<'a, P0>(&self, path: P0, toextractcabfiles: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CopyFromCache)(::windows::core::Interface::as_raw(self), path.into().abi(), toextractcabfiles).ok() + pub unsafe fn CopyFromCache(&self, path: &::windows::core::BSTR, toextractcabfiles: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CopyFromCache)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(path), toextractcabfiles).ok() } pub unsafe fn DownloadPriority(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -11934,35 +11187,25 @@ impl IWindowsDriverUpdate5 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.DownloadContents)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DriverClass(&self) -> ::windows::core::Result { + pub unsafe fn DriverClass(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.DriverClass)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.DriverClass)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DriverHardwareID(&self) -> ::windows::core::Result { + pub unsafe fn DriverHardwareID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.DriverHardwareID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.DriverHardwareID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DriverManufacturer(&self) -> ::windows::core::Result { + pub unsafe fn DriverManufacturer(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.DriverManufacturer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.DriverManufacturer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DriverModel(&self) -> ::windows::core::Result { + pub unsafe fn DriverModel(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.DriverModel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.DriverModel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DriverProvider(&self) -> ::windows::core::Result { + pub unsafe fn DriverProvider(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.DriverProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.DriverProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn DriverVerDate(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -12186,35 +11429,25 @@ pub struct IWindowsDriverUpdate5_Vtbl { pub struct IWindowsDriverUpdateEntry(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWindowsDriverUpdateEntry { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DriverClass(&self) -> ::windows::core::Result { + pub unsafe fn DriverClass(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DriverClass)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DriverClass)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DriverHardwareID(&self) -> ::windows::core::Result { + pub unsafe fn DriverHardwareID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DriverHardwareID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DriverHardwareID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DriverManufacturer(&self) -> ::windows::core::Result { + pub unsafe fn DriverManufacturer(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DriverManufacturer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DriverManufacturer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DriverModel(&self) -> ::windows::core::Result { + pub unsafe fn DriverModel(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DriverModel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DriverModel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DriverProvider(&self) -> ::windows::core::Result { + pub unsafe fn DriverProvider(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DriverProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DriverProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn DriverVerDate(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -12295,26 +11528,11 @@ unsafe impl ::windows::core::Interface for IWindowsDriverUpdateEntry { #[doc(hidden)] pub struct IWindowsDriverUpdateEntry_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub DriverClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DriverClass: usize, - #[cfg(feature = "Win32_Foundation")] - pub DriverHardwareID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DriverHardwareID: usize, - #[cfg(feature = "Win32_Foundation")] - pub DriverManufacturer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DriverManufacturer: usize, - #[cfg(feature = "Win32_Foundation")] - pub DriverModel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DriverModel: usize, - #[cfg(feature = "Win32_Foundation")] - pub DriverProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DriverProvider: usize, + pub DriverClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DriverHardwareID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DriverManufacturer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DriverModel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DriverProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub DriverVerDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut f64) -> ::windows::core::HRESULT, pub DeviceProblemNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, pub DeviceStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/impl.rs index 1541374e3f..8c83764e32 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/impl.rs @@ -782,22 +782,19 @@ impl IPlayToManagerInterop_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IRestrictedErrorInfo_Impl: Sized { - fn GetErrorDetails(&self, description: *mut super::super::Foundation::BSTR, error: *mut ::windows::core::HRESULT, restricteddescription: *mut super::super::Foundation::BSTR, capabilitysid: *mut super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetReference(&self) -> ::windows::core::Result; + fn GetErrorDetails(&self, description: *mut ::windows::core::BSTR, error: *mut ::windows::core::HRESULT, restricteddescription: *mut ::windows::core::BSTR, capabilitysid: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetReference(&self) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IRestrictedErrorInfo {} -#[cfg(feature = "Win32_Foundation")] impl IRestrictedErrorInfo_Vtbl { pub const fn new, Impl: IRestrictedErrorInfo_Impl, const OFFSET: isize>() -> IRestrictedErrorInfo_Vtbl { - unsafe extern "system" fn GetErrorDetails, Impl: IRestrictedErrorInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: *mut super::super::Foundation::BSTR, error: *mut ::windows::core::HRESULT, restricteddescription: *mut super::super::Foundation::BSTR, capabilitysid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetErrorDetails, Impl: IRestrictedErrorInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, error: *mut ::windows::core::HRESULT, restricteddescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, capabilitysid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetErrorDetails(::core::mem::transmute_copy(&description), ::core::mem::transmute_copy(&error), ::core::mem::transmute_copy(&restricteddescription), ::core::mem::transmute_copy(&capabilitysid)).into() } - unsafe extern "system" fn GetReference, Impl: IRestrictedErrorInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, reference: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetReference, Impl: IRestrictedErrorInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, reference: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetReference() { diff --git a/crates/libs/windows/src/Windows/Win32/System/WinRT/mod.rs b/crates/libs/windows/src/Windows/Win32/System/WinRT/mod.rs index df2b178dd8..637651da8f 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WinRT/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WinRT/mod.rs @@ -2381,16 +2381,12 @@ pub struct IPlayToManagerInterop_Vtbl { #[repr(transparent)] pub struct IRestrictedErrorInfo(::windows::core::IUnknown); impl IRestrictedErrorInfo { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetErrorDetails(&self, description: &mut super::super::Foundation::BSTR, error: &mut ::windows::core::HRESULT, restricteddescription: &mut super::super::Foundation::BSTR, capabilitysid: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn GetErrorDetails(&self, description: &mut ::windows::core::BSTR, error: &mut ::windows::core::HRESULT, restricteddescription: &mut ::windows::core::BSTR, capabilitysid: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetErrorDetails)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(description), ::core::mem::transmute(error), ::core::mem::transmute(restricteddescription), ::core::mem::transmute(capabilitysid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetReference(&self) -> ::windows::core::Result { + pub unsafe fn GetReference(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetReference)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetReference)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -2434,14 +2430,8 @@ unsafe impl ::windows::core::Interface for IRestrictedErrorInfo { #[doc(hidden)] pub struct IRestrictedErrorInfo_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetErrorDetails: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut super::super::Foundation::BSTR, error: *mut ::windows::core::HRESULT, restricteddescription: *mut super::super::Foundation::BSTR, capabilitysid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetErrorDetails: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetReference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reference: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetReference: usize, + pub GetErrorDetails: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, description: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, error: *mut ::windows::core::HRESULT, restricteddescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, capabilitysid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetReference: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reference: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_WinRT\"`*"] #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Win32/System/WindowsProgramming/impl.rs b/crates/libs/windows/src/Windows/Win32/System/WindowsProgramming/impl.rs index ce02deb273..5336a7fffb 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WindowsProgramming/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WindowsProgramming/impl.rs @@ -5,7 +5,7 @@ pub trait ICameraUIControl_Impl: Sized { fn Suspend(&self) -> ::windows::core::Result; fn Resume(&self) -> ::windows::core::Result<()>; fn GetCurrentViewType(&self) -> ::windows::core::Result; - fn GetActiveItem(&self) -> ::windows::core::Result; + fn GetActiveItem(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetSelectedItems(&self) -> ::windows::core::Result<*mut super::Com::SAFEARRAY>; fn RemoveCapturedItem(&self, pszpath: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; } @@ -51,7 +51,7 @@ impl ICameraUIControl_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetActiveItem, Impl: ICameraUIControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstractiveitempath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetActiveItem, Impl: ICameraUIControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstractiveitempath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetActiveItem() { @@ -142,16 +142,13 @@ impl ICameraUIControlEventCallback_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IClipServiceNotificationHelper_Impl: Sized { - fn ShowToast(&self, titletext: &super::super::Foundation::BSTR, bodytext: &super::super::Foundation::BSTR, packagename: &super::super::Foundation::BSTR, appid: &super::super::Foundation::BSTR, launchcommand: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ShowToast(&self, titletext: &::windows::core::BSTR, bodytext: &::windows::core::BSTR, packagename: &::windows::core::BSTR, appid: &::windows::core::BSTR, launchcommand: &::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IClipServiceNotificationHelper {} -#[cfg(feature = "Win32_Foundation")] impl IClipServiceNotificationHelper_Vtbl { pub const fn new, Impl: IClipServiceNotificationHelper_Impl, const OFFSET: isize>() -> IClipServiceNotificationHelper_Vtbl { - unsafe extern "system" fn ShowToast, Impl: IClipServiceNotificationHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, titletext: ::core::mem::ManuallyDrop, bodytext: ::core::mem::ManuallyDrop, packagename: ::core::mem::ManuallyDrop, appid: ::core::mem::ManuallyDrop, launchcommand: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ShowToast, Impl: IClipServiceNotificationHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, titletext: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bodytext: ::core::mem::ManuallyDrop<::windows::core::BSTR>, packagename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, appid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, launchcommand: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ShowToast(::core::mem::transmute(&titletext), ::core::mem::transmute(&bodytext), ::core::mem::transmute(&packagename), ::core::mem::transmute(&appid), ::core::mem::transmute(&launchcommand)).into() @@ -222,16 +219,13 @@ impl IDeleteBrowsingHistory_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IEditionUpgradeBroker_Impl: Sized { fn InitializeParentWindow(&self, parenthandle: u32) -> ::windows::core::Result<()>; - fn UpdateOperatingSystem(&self, parameter: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn UpdateOperatingSystem(&self, parameter: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn ShowProductKeyUI(&self) -> ::windows::core::Result<()>; fn CanUpgrade(&self) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IEditionUpgradeBroker {} -#[cfg(feature = "Win32_Foundation")] impl IEditionUpgradeBroker_Vtbl { pub const fn new, Impl: IEditionUpgradeBroker_Impl, const OFFSET: isize>() -> IEditionUpgradeBroker_Vtbl { unsafe extern "system" fn InitializeParentWindow, Impl: IEditionUpgradeBroker_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, parenthandle: u32) -> ::windows::core::HRESULT { @@ -239,7 +233,7 @@ impl IEditionUpgradeBroker_Vtbl { let this = (*this).get_impl(); this.InitializeParentWindow(::core::mem::transmute_copy(&parenthandle)).into() } - unsafe extern "system" fn UpdateOperatingSystem, Impl: IEditionUpgradeBroker_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, parameter: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn UpdateOperatingSystem, Impl: IEditionUpgradeBroker_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, parameter: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.UpdateOperatingSystem(::core::mem::transmute(¶meter)).into() diff --git a/crates/libs/windows/src/Windows/Win32/System/WindowsProgramming/mod.rs b/crates/libs/windows/src/Windows/Win32/System/WindowsProgramming/mod.rs index 4cd43caf62..c624023519 100644 --- a/crates/libs/windows/src/Windows/Win32/System/WindowsProgramming/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/WindowsProgramming/mod.rs @@ -2817,11 +2817,9 @@ impl ICameraUIControl { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetCurrentViewType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetActiveItem(&self) -> ::windows::core::Result { + pub unsafe fn GetActiveItem(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetActiveItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetActiveItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2886,10 +2884,7 @@ pub struct ICameraUIControl_Vtbl { Suspend: usize, pub Resume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetCurrentViewType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pviewtype: *mut CameraUIControlViewType) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetActiveItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstractiveitempath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetActiveItem: usize, + pub GetActiveItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstractiveitempath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub GetSelectedItems: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppselecteditempaths: *mut *mut super::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -2971,17 +2966,8 @@ pub struct ICameraUIControlEventCallback_Vtbl { #[repr(transparent)] pub struct IClipServiceNotificationHelper(::windows::core::IUnknown); impl IClipServiceNotificationHelper { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ShowToast<'a, P0, P1, P2, P3, P4>(&self, titletext: P0, bodytext: P1, packagename: P2, appid: P3, launchcommand: P4) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ShowToast)(::windows::core::Interface::as_raw(self), titletext.into().abi(), bodytext.into().abi(), packagename.into().abi(), appid.into().abi(), launchcommand.into().abi()).ok() + pub unsafe fn ShowToast(&self, titletext: &::windows::core::BSTR, bodytext: &::windows::core::BSTR, packagename: &::windows::core::BSTR, appid: &::windows::core::BSTR, launchcommand: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ShowToast)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(titletext), ::core::mem::transmute_copy(bodytext), ::core::mem::transmute_copy(packagename), ::core::mem::transmute_copy(appid), ::core::mem::transmute_copy(launchcommand)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -3023,10 +3009,7 @@ unsafe impl ::windows::core::Interface for IClipServiceNotificationHelper { #[doc(hidden)] pub struct IClipServiceNotificationHelper_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub ShowToast: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, titletext: ::core::mem::ManuallyDrop, bodytext: ::core::mem::ManuallyDrop, packagename: ::core::mem::ManuallyDrop, appid: ::core::mem::ManuallyDrop, launchcommand: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ShowToast: usize, + pub ShowToast: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, titletext: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bodytext: ::core::mem::ManuallyDrop<::windows::core::BSTR>, packagename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, appid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, launchcommand: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"] #[repr(transparent)] @@ -3188,13 +3171,8 @@ impl IEditionUpgradeBroker { pub unsafe fn InitializeParentWindow(&self, parenthandle: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).InitializeParentWindow)(::windows::core::Interface::as_raw(self), parenthandle).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UpdateOperatingSystem<'a, P0>(&self, parameter: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).UpdateOperatingSystem)(::windows::core::Interface::as_raw(self), parameter.into().abi()).ok() + pub unsafe fn UpdateOperatingSystem(&self, parameter: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).UpdateOperatingSystem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(parameter)).ok() } pub unsafe fn ShowProductKeyUI(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ShowProductKeyUI)(::windows::core::Interface::as_raw(self)).ok() @@ -3243,10 +3221,7 @@ unsafe impl ::windows::core::Interface for IEditionUpgradeBroker { pub struct IEditionUpgradeBroker_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub InitializeParentWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, parenthandle: u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub UpdateOperatingSystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, parameter: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UpdateOperatingSystem: usize, + pub UpdateOperatingSystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, parameter: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ShowProductKeyUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub CanUpgrade: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } diff --git a/crates/libs/windows/src/Windows/Win32/System/Wmi/impl.rs b/crates/libs/windows/src/Windows/Win32/System/Wmi/impl.rs index ab70cb6a8f..9c2636b753 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Wmi/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Wmi/impl.rs @@ -88,8 +88,8 @@ impl IMofCompiler_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISWbemDateTime_Impl: Sized + super::Com::IDispatch_Impl { - fn Value(&self) -> ::windows::core::Result; - fn SetValue(&self, strvalue: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Value(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetValue(&self, strvalue: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Year(&self) -> ::windows::core::Result; fn SetYear(&self, iyear: i32) -> ::windows::core::Result<()>; fn YearSpecified(&self) -> ::windows::core::Result; @@ -126,15 +126,15 @@ pub trait ISWbemDateTime_Impl: Sized + super::Com::IDispatch_Impl { fn SetIsInterval(&self, bisinterval: i16) -> ::windows::core::Result<()>; fn GetVarDate(&self, bislocal: i16) -> ::windows::core::Result; fn SetVarDate(&self, dvardate: f64, bislocal: i16) -> ::windows::core::Result<()>; - fn GetFileTime(&self, bislocal: i16) -> ::windows::core::Result; - fn SetFileTime(&self, strfiletime: &super::super::Foundation::BSTR, bislocal: i16) -> ::windows::core::Result<()>; + fn GetFileTime(&self, bislocal: i16) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetFileTime(&self, strfiletime: &::windows::core::BSTR, bislocal: i16) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ISWbemDateTime {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ISWbemDateTime_Vtbl { pub const fn new, Impl: ISWbemDateTime_Impl, const OFFSET: isize>() -> ISWbemDateTime_Vtbl { - unsafe extern "system" fn Value, Impl: ISWbemDateTime_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Value, Impl: ISWbemDateTime_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Value() { @@ -145,7 +145,7 @@ impl ISWbemDateTime_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetValue, Impl: ISWbemDateTime_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetValue, Impl: ISWbemDateTime_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetValue(::core::mem::transmute(&strvalue)).into() @@ -438,7 +438,7 @@ impl ISWbemDateTime_Vtbl { let this = (*this).get_impl(); this.SetVarDate(::core::mem::transmute_copy(&dvardate), ::core::mem::transmute_copy(&bislocal)).into() } - unsafe extern "system" fn GetFileTime, Impl: ISWbemDateTime_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bislocal: i16, strfiletime: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFileTime, Impl: ISWbemDateTime_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bislocal: i16, strfiletime: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetFileTime(::core::mem::transmute_copy(&bislocal)) { @@ -449,7 +449,7 @@ impl ISWbemDateTime_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetFileTime, Impl: ISWbemDateTime_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strfiletime: ::core::mem::ManuallyDrop, bislocal: i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetFileTime, Impl: ISWbemDateTime_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strfiletime: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bislocal: i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetFileTime(::core::mem::transmute(&strfiletime), ::core::mem::transmute_copy(&bislocal)).into() @@ -559,7 +559,7 @@ impl ISWbemLastError_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISWbemLocator_Impl: Sized + super::Com::IDispatch_Impl { - fn ConnectServer(&self, strserver: &super::super::Foundation::BSTR, strnamespace: &super::super::Foundation::BSTR, struser: &super::super::Foundation::BSTR, strpassword: &super::super::Foundation::BSTR, strlocale: &super::super::Foundation::BSTR, strauthority: &super::super::Foundation::BSTR, isecurityflags: i32, objwbemnamedvalueset: &::core::option::Option) -> ::windows::core::Result; + fn ConnectServer(&self, strserver: &::windows::core::BSTR, strnamespace: &::windows::core::BSTR, struser: &::windows::core::BSTR, strpassword: &::windows::core::BSTR, strlocale: &::windows::core::BSTR, strauthority: &::windows::core::BSTR, isecurityflags: i32, objwbemnamedvalueset: &::core::option::Option) -> ::windows::core::Result; fn Security_(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -567,7 +567,7 @@ impl ::windows::core::RuntimeName for ISWbemLocator {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ISWbemLocator_Vtbl { pub const fn new, Impl: ISWbemLocator_Impl, const OFFSET: isize>() -> ISWbemLocator_Vtbl { - unsafe extern "system" fn ConnectServer, Impl: ISWbemLocator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strserver: ::core::mem::ManuallyDrop, strnamespace: ::core::mem::ManuallyDrop, struser: ::core::mem::ManuallyDrop, strpassword: ::core::mem::ManuallyDrop, strlocale: ::core::mem::ManuallyDrop, strauthority: ::core::mem::ManuallyDrop, isecurityflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemservices: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn ConnectServer, Impl: ISWbemLocator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strserver: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strnamespace: ::core::mem::ManuallyDrop<::windows::core::BSTR>, struser: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strlocale: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strauthority: ::core::mem::ManuallyDrop<::windows::core::BSTR>, isecurityflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemservices: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ConnectServer(::core::mem::transmute(&strserver), ::core::mem::transmute(&strnamespace), ::core::mem::transmute(&struser), ::core::mem::transmute(&strpassword), ::core::mem::transmute(&strlocale), ::core::mem::transmute(&strauthority), ::core::mem::transmute_copy(&isecurityflags), ::core::mem::transmute(&objwbemnamedvalueset)) { @@ -601,8 +601,8 @@ impl ISWbemLocator_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISWbemMethod_Impl: Sized + super::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; - fn Origin(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Origin(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn InParameters(&self) -> ::windows::core::Result; fn OutParameters(&self) -> ::windows::core::Result; fn Qualifiers_(&self) -> ::windows::core::Result; @@ -612,7 +612,7 @@ impl ::windows::core::RuntimeName for ISWbemMethod {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ISWbemMethod_Vtbl { pub const fn new, Impl: ISWbemMethod_Impl, const OFFSET: isize>() -> ISWbemMethod_Vtbl { - unsafe extern "system" fn Name, Impl: ISWbemMethod_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: ISWbemMethod_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -623,7 +623,7 @@ impl ISWbemMethod_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Origin, Impl: ISWbemMethod_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strorigin: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Origin, Impl: ISWbemMethod_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strorigin: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Origin() { @@ -683,7 +683,7 @@ impl ISWbemMethod_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISWbemMethodSet_Impl: Sized + super::Com::IDispatch_Impl { fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; - fn Item(&self, strname: &super::super::Foundation::BSTR, iflags: i32) -> ::windows::core::Result; + fn Item(&self, strname: &::windows::core::BSTR, iflags: i32) -> ::windows::core::Result; fn Count(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -702,7 +702,7 @@ impl ISWbemMethodSet_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Item, Impl: ISWbemMethodSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, iflags: i32, objwbemmethod: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Item, Impl: ISWbemMethodSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemmethod: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Item(::core::mem::transmute(&strname), ::core::mem::transmute_copy(&iflags)) { @@ -739,7 +739,7 @@ impl ISWbemMethodSet_Vtbl { pub trait ISWbemNamedValue_Impl: Sized + super::Com::IDispatch_Impl { fn Value(&self) -> ::windows::core::Result; fn SetValue(&self, varvalue: *const super::Com::VARIANT) -> ::windows::core::Result<()>; - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ISWbemNamedValue {} @@ -762,7 +762,7 @@ impl ISWbemNamedValue_Vtbl { let this = (*this).get_impl(); this.SetValue(::core::mem::transmute_copy(&varvalue)).into() } - unsafe extern "system" fn Name, Impl: ISWbemNamedValue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: ISWbemNamedValue_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -787,10 +787,10 @@ impl ISWbemNamedValue_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISWbemNamedValueSet_Impl: Sized + super::Com::IDispatch_Impl { fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; - fn Item(&self, strname: &super::super::Foundation::BSTR, iflags: i32) -> ::windows::core::Result; + fn Item(&self, strname: &::windows::core::BSTR, iflags: i32) -> ::windows::core::Result; fn Count(&self) -> ::windows::core::Result; - fn Add(&self, strname: &super::super::Foundation::BSTR, varvalue: *const super::Com::VARIANT, iflags: i32) -> ::windows::core::Result; - fn Remove(&self, strname: &super::super::Foundation::BSTR, iflags: i32) -> ::windows::core::Result<()>; + fn Add(&self, strname: &::windows::core::BSTR, varvalue: *const super::Com::VARIANT, iflags: i32) -> ::windows::core::Result; + fn Remove(&self, strname: &::windows::core::BSTR, iflags: i32) -> ::windows::core::Result<()>; fn Clone(&self) -> ::windows::core::Result; fn DeleteAll(&self) -> ::windows::core::Result<()>; } @@ -810,7 +810,7 @@ impl ISWbemNamedValueSet_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Item, Impl: ISWbemNamedValueSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Item, Impl: ISWbemNamedValueSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Item(::core::mem::transmute(&strname), ::core::mem::transmute_copy(&iflags)) { @@ -832,7 +832,7 @@ impl ISWbemNamedValueSet_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Add, Impl: ISWbemNamedValueSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, varvalue: *const super::Com::VARIANT, iflags: i32, objwbemnamedvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Add, Impl: ISWbemNamedValueSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varvalue: *const super::Com::VARIANT, iflags: i32, objwbemnamedvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Add(::core::mem::transmute(&strname), ::core::mem::transmute_copy(&varvalue), ::core::mem::transmute_copy(&iflags)) { @@ -843,7 +843,7 @@ impl ISWbemNamedValueSet_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Remove, Impl: ISWbemNamedValueSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, iflags: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn Remove, Impl: ISWbemNamedValueSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Remove(::core::mem::transmute(&strname), ::core::mem::transmute_copy(&iflags)).into() @@ -889,14 +889,14 @@ pub trait ISWbemObject_Impl: Sized + super::Com::IDispatch_Impl { fn InstancesAsync_(&self, objwbemsink: &::core::option::Option, iflags: i32, objwbemnamedvalueset: &::core::option::Option, objwbemasynccontext: &::core::option::Option) -> ::windows::core::Result<()>; fn Subclasses_(&self, iflags: i32, objwbemnamedvalueset: &::core::option::Option) -> ::windows::core::Result; fn SubclassesAsync_(&self, objwbemsink: &::core::option::Option, iflags: i32, objwbemnamedvalueset: &::core::option::Option, objwbemasynccontext: &::core::option::Option) -> ::windows::core::Result<()>; - fn Associators_(&self, strassocclass: &super::super::Foundation::BSTR, strresultclass: &super::super::Foundation::BSTR, strresultrole: &super::super::Foundation::BSTR, strrole: &super::super::Foundation::BSTR, bclassesonly: i16, bschemaonly: i16, strrequiredassocqualifier: &super::super::Foundation::BSTR, strrequiredqualifier: &super::super::Foundation::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option) -> ::windows::core::Result; - fn AssociatorsAsync_(&self, objwbemsink: &::core::option::Option, strassocclass: &super::super::Foundation::BSTR, strresultclass: &super::super::Foundation::BSTR, strresultrole: &super::super::Foundation::BSTR, strrole: &super::super::Foundation::BSTR, bclassesonly: i16, bschemaonly: i16, strrequiredassocqualifier: &super::super::Foundation::BSTR, strrequiredqualifier: &super::super::Foundation::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option, objwbemasynccontext: &::core::option::Option) -> ::windows::core::Result<()>; - fn References_(&self, strresultclass: &super::super::Foundation::BSTR, strrole: &super::super::Foundation::BSTR, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: &super::super::Foundation::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option) -> ::windows::core::Result; - fn ReferencesAsync_(&self, objwbemsink: &::core::option::Option, strresultclass: &super::super::Foundation::BSTR, strrole: &super::super::Foundation::BSTR, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: &super::super::Foundation::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option, objwbemasynccontext: &::core::option::Option) -> ::windows::core::Result<()>; - fn ExecMethod_(&self, strmethodname: &super::super::Foundation::BSTR, objwbeminparameters: &::core::option::Option, iflags: i32, objwbemnamedvalueset: &::core::option::Option) -> ::windows::core::Result; - fn ExecMethodAsync_(&self, objwbemsink: &::core::option::Option, strmethodname: &super::super::Foundation::BSTR, objwbeminparameters: &::core::option::Option, iflags: i32, objwbemnamedvalueset: &::core::option::Option, objwbemasynccontext: &::core::option::Option) -> ::windows::core::Result<()>; + fn Associators_(&self, strassocclass: &::windows::core::BSTR, strresultclass: &::windows::core::BSTR, strresultrole: &::windows::core::BSTR, strrole: &::windows::core::BSTR, bclassesonly: i16, bschemaonly: i16, strrequiredassocqualifier: &::windows::core::BSTR, strrequiredqualifier: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option) -> ::windows::core::Result; + fn AssociatorsAsync_(&self, objwbemsink: &::core::option::Option, strassocclass: &::windows::core::BSTR, strresultclass: &::windows::core::BSTR, strresultrole: &::windows::core::BSTR, strrole: &::windows::core::BSTR, bclassesonly: i16, bschemaonly: i16, strrequiredassocqualifier: &::windows::core::BSTR, strrequiredqualifier: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option, objwbemasynccontext: &::core::option::Option) -> ::windows::core::Result<()>; + fn References_(&self, strresultclass: &::windows::core::BSTR, strrole: &::windows::core::BSTR, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option) -> ::windows::core::Result; + fn ReferencesAsync_(&self, objwbemsink: &::core::option::Option, strresultclass: &::windows::core::BSTR, strrole: &::windows::core::BSTR, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option, objwbemasynccontext: &::core::option::Option) -> ::windows::core::Result<()>; + fn ExecMethod_(&self, strmethodname: &::windows::core::BSTR, objwbeminparameters: &::core::option::Option, iflags: i32, objwbemnamedvalueset: &::core::option::Option) -> ::windows::core::Result; + fn ExecMethodAsync_(&self, objwbemsink: &::core::option::Option, strmethodname: &::windows::core::BSTR, objwbeminparameters: &::core::option::Option, iflags: i32, objwbemnamedvalueset: &::core::option::Option, objwbemasynccontext: &::core::option::Option) -> ::windows::core::Result<()>; fn Clone_(&self) -> ::windows::core::Result; - fn GetObjectText_(&self, iflags: i32) -> ::windows::core::Result; + fn GetObjectText_(&self, iflags: i32) -> ::windows::core::Result<::windows::core::BSTR>; fn SpawnDerivedClass_(&self, iflags: i32) -> ::windows::core::Result; fn SpawnInstance_(&self, iflags: i32) -> ::windows::core::Result; fn CompareTo_(&self, objwbemobject: &::core::option::Option, iflags: i32) -> ::windows::core::Result; @@ -970,20 +970,7 @@ impl ISWbemObject_Vtbl { let this = (*this).get_impl(); this.SubclassesAsync_(::core::mem::transmute(&objwbemsink), ::core::mem::transmute_copy(&iflags), ::core::mem::transmute(&objwbemnamedvalueset), ::core::mem::transmute(&objwbemasynccontext)).into() } - unsafe extern "system" fn Associators_, Impl: ISWbemObject_Impl, const OFFSET: isize>( - this: *mut ::core::ffi::c_void, - strassocclass: ::core::mem::ManuallyDrop, - strresultclass: ::core::mem::ManuallyDrop, - strresultrole: ::core::mem::ManuallyDrop, - strrole: ::core::mem::ManuallyDrop, - bclassesonly: i16, - bschemaonly: i16, - strrequiredassocqualifier: ::core::mem::ManuallyDrop, - strrequiredqualifier: ::core::mem::ManuallyDrop, - iflags: i32, - objwbemnamedvalueset: *mut ::core::ffi::c_void, - objwbemobjectset: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + unsafe extern "system" fn Associators_, Impl: ISWbemObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strassocclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strresultclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strresultrole: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strrole: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bclassesonly: i16, bschemaonly: i16, strrequiredassocqualifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strrequiredqualifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemobjectset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Associators_(::core::mem::transmute(&strassocclass), ::core::mem::transmute(&strresultclass), ::core::mem::transmute(&strresultrole), ::core::mem::transmute(&strrole), ::core::mem::transmute_copy(&bclassesonly), ::core::mem::transmute_copy(&bschemaonly), ::core::mem::transmute(&strrequiredassocqualifier), ::core::mem::transmute(&strrequiredqualifier), ::core::mem::transmute_copy(&iflags), ::core::mem::transmute(&objwbemnamedvalueset)) { @@ -997,14 +984,14 @@ impl ISWbemObject_Vtbl { unsafe extern "system" fn AssociatorsAsync_, Impl: ISWbemObject_Impl, const OFFSET: isize>( this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, - strassocclass: ::core::mem::ManuallyDrop, - strresultclass: ::core::mem::ManuallyDrop, - strresultrole: ::core::mem::ManuallyDrop, - strrole: ::core::mem::ManuallyDrop, + strassocclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, + strresultclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, + strresultrole: ::core::mem::ManuallyDrop<::windows::core::BSTR>, + strrole: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bclassesonly: i16, bschemaonly: i16, - strrequiredassocqualifier: ::core::mem::ManuallyDrop, - strrequiredqualifier: ::core::mem::ManuallyDrop, + strrequiredassocqualifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, + strrequiredqualifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void, @@ -1027,7 +1014,7 @@ impl ISWbemObject_Vtbl { ) .into() } - unsafe extern "system" fn References_, Impl: ISWbemObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strresultclass: ::core::mem::ManuallyDrop, strrole: ::core::mem::ManuallyDrop, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemobjectset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn References_, Impl: ISWbemObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strresultclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strrole: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemobjectset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.References_(::core::mem::transmute(&strresultclass), ::core::mem::transmute(&strrole), ::core::mem::transmute_copy(&bclassesonly), ::core::mem::transmute_copy(&bschemaonly), ::core::mem::transmute(&strrequiredqualifier), ::core::mem::transmute_copy(&iflags), ::core::mem::transmute(&objwbemnamedvalueset)) { @@ -1038,12 +1025,12 @@ impl ISWbemObject_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ReferencesAsync_, Impl: ISWbemObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strresultclass: ::core::mem::ManuallyDrop, strrole: ::core::mem::ManuallyDrop, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn ReferencesAsync_, Impl: ISWbemObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strresultclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strrole: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ReferencesAsync_(::core::mem::transmute(&objwbemsink), ::core::mem::transmute(&strresultclass), ::core::mem::transmute(&strrole), ::core::mem::transmute_copy(&bclassesonly), ::core::mem::transmute_copy(&bschemaonly), ::core::mem::transmute(&strrequiredqualifier), ::core::mem::transmute_copy(&iflags), ::core::mem::transmute(&objwbemnamedvalueset), ::core::mem::transmute(&objwbemasynccontext)).into() } - unsafe extern "system" fn ExecMethod_, Impl: ISWbemObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strmethodname: ::core::mem::ManuallyDrop, objwbeminparameters: *mut ::core::ffi::c_void, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemoutparameters: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExecMethod_, Impl: ISWbemObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strmethodname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, objwbeminparameters: *mut ::core::ffi::c_void, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemoutparameters: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ExecMethod_(::core::mem::transmute(&strmethodname), ::core::mem::transmute(&objwbeminparameters), ::core::mem::transmute_copy(&iflags), ::core::mem::transmute(&objwbemnamedvalueset)) { @@ -1054,7 +1041,7 @@ impl ISWbemObject_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ExecMethodAsync_, Impl: ISWbemObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strmethodname: ::core::mem::ManuallyDrop, objwbeminparameters: *mut ::core::ffi::c_void, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExecMethodAsync_, Impl: ISWbemObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strmethodname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, objwbeminparameters: *mut ::core::ffi::c_void, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ExecMethodAsync_(::core::mem::transmute(&objwbemsink), ::core::mem::transmute(&strmethodname), ::core::mem::transmute(&objwbeminparameters), ::core::mem::transmute_copy(&iflags), ::core::mem::transmute(&objwbemnamedvalueset), ::core::mem::transmute(&objwbemasynccontext)).into() @@ -1070,7 +1057,7 @@ impl ISWbemObject_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetObjectText_, Impl: ISWbemObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, iflags: i32, strobjecttext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetObjectText_, Impl: ISWbemObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, iflags: i32, strobjecttext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetObjectText_(::core::mem::transmute_copy(&iflags)) { @@ -1217,8 +1204,8 @@ impl ISWbemObject_Vtbl { pub trait ISWbemObjectEx_Impl: Sized + super::Com::IDispatch_Impl + ISWbemObject_Impl { fn Refresh_(&self, iflags: i32, objwbemnamedvalueset: &::core::option::Option) -> ::windows::core::Result<()>; fn SystemProperties_(&self) -> ::windows::core::Result; - fn GetText_(&self, iobjecttextformat: WbemObjectTextFormatEnum, iflags: i32, objwbemnamedvalueset: &::core::option::Option) -> ::windows::core::Result; - fn SetFromText_(&self, bstext: &super::super::Foundation::BSTR, iobjecttextformat: WbemObjectTextFormatEnum, iflags: i32, objwbemnamedvalueset: &::core::option::Option) -> ::windows::core::Result<()>; + fn GetText_(&self, iobjecttextformat: WbemObjectTextFormatEnum, iflags: i32, objwbemnamedvalueset: &::core::option::Option) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetFromText_(&self, bstext: &::windows::core::BSTR, iobjecttextformat: WbemObjectTextFormatEnum, iflags: i32, objwbemnamedvalueset: &::core::option::Option) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ISWbemObjectEx {} @@ -1241,7 +1228,7 @@ impl ISWbemObjectEx_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetText_, Impl: ISWbemObjectEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, iobjecttextformat: WbemObjectTextFormatEnum, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, bstext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetText_, Impl: ISWbemObjectEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, iobjecttextformat: WbemObjectTextFormatEnum, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, bstext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetText_(::core::mem::transmute_copy(&iobjecttextformat), ::core::mem::transmute_copy(&iflags), ::core::mem::transmute(&objwbemnamedvalueset)) { @@ -1252,7 +1239,7 @@ impl ISWbemObjectEx_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetFromText_, Impl: ISWbemObjectEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstext: ::core::mem::ManuallyDrop, iobjecttextformat: WbemObjectTextFormatEnum, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetFromText_, Impl: ISWbemObjectEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstext: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iobjecttextformat: WbemObjectTextFormatEnum, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetFromText_(::core::mem::transmute(&bstext), ::core::mem::transmute_copy(&iobjecttextformat), ::core::mem::transmute_copy(&iflags), ::core::mem::transmute(&objwbemnamedvalueset)).into() @@ -1271,36 +1258,36 @@ impl ISWbemObjectEx_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISWbemObjectPath_Impl: Sized + super::Com::IDispatch_Impl { - fn Path(&self) -> ::windows::core::Result; - fn SetPath(&self, strpath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn RelPath(&self) -> ::windows::core::Result; - fn SetRelPath(&self, strrelpath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Server(&self) -> ::windows::core::Result; - fn SetServer(&self, strserver: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Namespace(&self) -> ::windows::core::Result; - fn SetNamespace(&self, strnamespace: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn ParentNamespace(&self) -> ::windows::core::Result; - fn DisplayName(&self) -> ::windows::core::Result; - fn SetDisplayName(&self, strdisplayname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Class(&self) -> ::windows::core::Result; - fn SetClass(&self, strclass: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetPath(&self, strpath: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn RelPath(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetRelPath(&self, strrelpath: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Server(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetServer(&self, strserver: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Namespace(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetNamespace(&self, strnamespace: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn ParentNamespace(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDisplayName(&self, strdisplayname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Class(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetClass(&self, strclass: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn IsClass(&self) -> ::windows::core::Result; fn SetAsClass(&self) -> ::windows::core::Result<()>; fn IsSingleton(&self) -> ::windows::core::Result; fn SetAsSingleton(&self) -> ::windows::core::Result<()>; fn Keys(&self) -> ::windows::core::Result; fn Security_(&self) -> ::windows::core::Result; - fn Locale(&self) -> ::windows::core::Result; - fn SetLocale(&self, strlocale: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Authority(&self) -> ::windows::core::Result; - fn SetAuthority(&self, strauthority: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Locale(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetLocale(&self, strlocale: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Authority(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetAuthority(&self, strauthority: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ISWbemObjectPath {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ISWbemObjectPath_Vtbl { pub const fn new, Impl: ISWbemObjectPath_Impl, const OFFSET: isize>() -> ISWbemObjectPath_Vtbl { - unsafe extern "system" fn Path, Impl: ISWbemObjectPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Path, Impl: ISWbemObjectPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Path() { @@ -1311,12 +1298,12 @@ impl ISWbemObjectPath_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPath, Impl: ISWbemObjectPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPath, Impl: ISWbemObjectPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPath(::core::mem::transmute(&strpath)).into() } - unsafe extern "system" fn RelPath, Impl: ISWbemObjectPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strrelpath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RelPath, Impl: ISWbemObjectPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strrelpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RelPath() { @@ -1327,12 +1314,12 @@ impl ISWbemObjectPath_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetRelPath, Impl: ISWbemObjectPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strrelpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetRelPath, Impl: ISWbemObjectPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strrelpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetRelPath(::core::mem::transmute(&strrelpath)).into() } - unsafe extern "system" fn Server, Impl: ISWbemObjectPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strserver: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Server, Impl: ISWbemObjectPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strserver: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Server() { @@ -1343,12 +1330,12 @@ impl ISWbemObjectPath_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetServer, Impl: ISWbemObjectPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strserver: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetServer, Impl: ISWbemObjectPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strserver: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetServer(::core::mem::transmute(&strserver)).into() } - unsafe extern "system" fn Namespace, Impl: ISWbemObjectPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strnamespace: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Namespace, Impl: ISWbemObjectPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strnamespace: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Namespace() { @@ -1359,12 +1346,12 @@ impl ISWbemObjectPath_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetNamespace, Impl: ISWbemObjectPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strnamespace: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetNamespace, Impl: ISWbemObjectPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strnamespace: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetNamespace(::core::mem::transmute(&strnamespace)).into() } - unsafe extern "system" fn ParentNamespace, Impl: ISWbemObjectPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strparentnamespace: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ParentNamespace, Impl: ISWbemObjectPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strparentnamespace: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ParentNamespace() { @@ -1375,7 +1362,7 @@ impl ISWbemObjectPath_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DisplayName, Impl: ISWbemObjectPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strdisplayname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DisplayName, Impl: ISWbemObjectPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strdisplayname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DisplayName() { @@ -1386,12 +1373,12 @@ impl ISWbemObjectPath_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDisplayName, Impl: ISWbemObjectPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strdisplayname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDisplayName, Impl: ISWbemObjectPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strdisplayname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDisplayName(::core::mem::transmute(&strdisplayname)).into() } - unsafe extern "system" fn Class, Impl: ISWbemObjectPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strclass: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Class, Impl: ISWbemObjectPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strclass: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Class() { @@ -1402,7 +1389,7 @@ impl ISWbemObjectPath_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetClass, Impl: ISWbemObjectPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strclass: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetClass, Impl: ISWbemObjectPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetClass(::core::mem::transmute(&strclass)).into() @@ -1461,7 +1448,7 @@ impl ISWbemObjectPath_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Locale, Impl: ISWbemObjectPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strlocale: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Locale, Impl: ISWbemObjectPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strlocale: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Locale() { @@ -1472,12 +1459,12 @@ impl ISWbemObjectPath_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetLocale, Impl: ISWbemObjectPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strlocale: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetLocale, Impl: ISWbemObjectPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strlocale: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetLocale(::core::mem::transmute(&strlocale)).into() } - unsafe extern "system" fn Authority, Impl: ISWbemObjectPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strauthority: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Authority, Impl: ISWbemObjectPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strauthority: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Authority() { @@ -1488,7 +1475,7 @@ impl ISWbemObjectPath_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetAuthority, Impl: ISWbemObjectPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strauthority: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetAuthority, Impl: ISWbemObjectPath_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strauthority: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetAuthority(::core::mem::transmute(&strauthority)).into() @@ -1527,7 +1514,7 @@ impl ISWbemObjectPath_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISWbemObjectSet_Impl: Sized + super::Com::IDispatch_Impl { fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; - fn Item(&self, strobjectpath: &super::super::Foundation::BSTR, iflags: i32) -> ::windows::core::Result; + fn Item(&self, strobjectpath: &::windows::core::BSTR, iflags: i32) -> ::windows::core::Result; fn Count(&self) -> ::windows::core::Result; fn Security_(&self) -> ::windows::core::Result; fn ItemIndex(&self, lindex: i32) -> ::windows::core::Result; @@ -1548,7 +1535,7 @@ impl ISWbemObjectSet_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Item, Impl: ISWbemObjectSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop, iflags: i32, objwbemobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Item, Impl: ISWbemObjectSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Item(::core::mem::transmute(&strobjectpath), ::core::mem::transmute_copy(&iflags)) { @@ -1609,8 +1596,8 @@ impl ISWbemObjectSet_Vtbl { pub trait ISWbemPrivilege_Impl: Sized + super::Com::IDispatch_Impl { fn IsEnabled(&self) -> ::windows::core::Result; fn SetIsEnabled(&self, bisenabled: i16) -> ::windows::core::Result<()>; - fn Name(&self) -> ::windows::core::Result; - fn DisplayName(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Identifier(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -1634,7 +1621,7 @@ impl ISWbemPrivilege_Vtbl { let this = (*this).get_impl(); this.SetIsEnabled(::core::mem::transmute_copy(&bisenabled)).into() } - unsafe extern "system" fn Name, Impl: ISWbemPrivilege_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strdisplayname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: ISWbemPrivilege_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strdisplayname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -1645,7 +1632,7 @@ impl ISWbemPrivilege_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DisplayName, Impl: ISWbemPrivilege_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strdisplayname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DisplayName, Impl: ISWbemPrivilege_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strdisplayname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DisplayName() { @@ -1688,7 +1675,7 @@ pub trait ISWbemPrivilegeSet_Impl: Sized + super::Com::IDispatch_Impl { fn Add(&self, iprivilege: WbemPrivilegeEnum, bisenabled: i16) -> ::windows::core::Result; fn Remove(&self, iprivilege: WbemPrivilegeEnum) -> ::windows::core::Result<()>; fn DeleteAll(&self) -> ::windows::core::Result<()>; - fn AddAsString(&self, strprivilege: &super::super::Foundation::BSTR, bisenabled: i16) -> ::windows::core::Result; + fn AddAsString(&self, strprivilege: &::windows::core::BSTR, bisenabled: i16) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ISWbemPrivilegeSet {} @@ -1749,7 +1736,7 @@ impl ISWbemPrivilegeSet_Vtbl { let this = (*this).get_impl(); this.DeleteAll().into() } - unsafe extern "system" fn AddAsString, Impl: ISWbemPrivilegeSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strprivilege: ::core::mem::ManuallyDrop, bisenabled: i16, objwbemprivilege: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddAsString, Impl: ISWbemPrivilegeSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strprivilege: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bisenabled: i16, objwbemprivilege: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AddAsString(::core::mem::transmute(&strprivilege), ::core::mem::transmute_copy(&bisenabled)) { @@ -1779,9 +1766,9 @@ impl ISWbemPrivilegeSet_Vtbl { pub trait ISWbemProperty_Impl: Sized + super::Com::IDispatch_Impl { fn Value(&self) -> ::windows::core::Result; fn SetValue(&self, varvalue: *const super::Com::VARIANT) -> ::windows::core::Result<()>; - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn IsLocal(&self) -> ::windows::core::Result; - fn Origin(&self) -> ::windows::core::Result; + fn Origin(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CIMType(&self) -> ::windows::core::Result; fn Qualifiers_(&self) -> ::windows::core::Result; fn IsArray(&self) -> ::windows::core::Result; @@ -1807,7 +1794,7 @@ impl ISWbemProperty_Vtbl { let this = (*this).get_impl(); this.SetValue(::core::mem::transmute_copy(&varvalue)).into() } - unsafe extern "system" fn Name, Impl: ISWbemProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: ISWbemProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -1829,7 +1816,7 @@ impl ISWbemProperty_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Origin, Impl: ISWbemProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strorigin: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Origin, Impl: ISWbemProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strorigin: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Origin() { @@ -1892,10 +1879,10 @@ impl ISWbemProperty_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISWbemPropertySet_Impl: Sized + super::Com::IDispatch_Impl { fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; - fn Item(&self, strname: &super::super::Foundation::BSTR, iflags: i32) -> ::windows::core::Result; + fn Item(&self, strname: &::windows::core::BSTR, iflags: i32) -> ::windows::core::Result; fn Count(&self) -> ::windows::core::Result; - fn Add(&self, strname: &super::super::Foundation::BSTR, icimtype: WbemCimtypeEnum, bisarray: i16, iflags: i32) -> ::windows::core::Result; - fn Remove(&self, strname: &super::super::Foundation::BSTR, iflags: i32) -> ::windows::core::Result<()>; + fn Add(&self, strname: &::windows::core::BSTR, icimtype: WbemCimtypeEnum, bisarray: i16, iflags: i32) -> ::windows::core::Result; + fn Remove(&self, strname: &::windows::core::BSTR, iflags: i32) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ISWbemPropertySet {} @@ -1913,7 +1900,7 @@ impl ISWbemPropertySet_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Item, Impl: ISWbemPropertySet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, iflags: i32, objwbemproperty: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Item, Impl: ISWbemPropertySet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemproperty: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Item(::core::mem::transmute(&strname), ::core::mem::transmute_copy(&iflags)) { @@ -1935,7 +1922,7 @@ impl ISWbemPropertySet_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Add, Impl: ISWbemPropertySet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, icimtype: WbemCimtypeEnum, bisarray: i16, iflags: i32, objwbemproperty: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Add, Impl: ISWbemPropertySet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, icimtype: WbemCimtypeEnum, bisarray: i16, iflags: i32, objwbemproperty: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Add(::core::mem::transmute(&strname), ::core::mem::transmute_copy(&icimtype), ::core::mem::transmute_copy(&bisarray), ::core::mem::transmute_copy(&iflags)) { @@ -1946,7 +1933,7 @@ impl ISWbemPropertySet_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Remove, Impl: ISWbemPropertySet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, iflags: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn Remove, Impl: ISWbemPropertySet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Remove(::core::mem::transmute(&strname), ::core::mem::transmute_copy(&iflags)).into() @@ -1968,7 +1955,7 @@ impl ISWbemPropertySet_Vtbl { pub trait ISWbemQualifier_Impl: Sized + super::Com::IDispatch_Impl { fn Value(&self) -> ::windows::core::Result; fn SetValue(&self, varvalue: *const super::Com::VARIANT) -> ::windows::core::Result<()>; - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn IsLocal(&self) -> ::windows::core::Result; fn PropagatesToSubclass(&self) -> ::windows::core::Result; fn SetPropagatesToSubclass(&self, bpropagatestosubclass: i16) -> ::windows::core::Result<()>; @@ -1999,7 +1986,7 @@ impl ISWbemQualifier_Vtbl { let this = (*this).get_impl(); this.SetValue(::core::mem::transmute_copy(&varvalue)).into() } - unsafe extern "system" fn Name, Impl: ISWbemQualifier_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: ISWbemQualifier_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -2102,10 +2089,10 @@ impl ISWbemQualifier_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISWbemQualifierSet_Impl: Sized + super::Com::IDispatch_Impl { fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; - fn Item(&self, name: &super::super::Foundation::BSTR, iflags: i32) -> ::windows::core::Result; + fn Item(&self, name: &::windows::core::BSTR, iflags: i32) -> ::windows::core::Result; fn Count(&self) -> ::windows::core::Result; - fn Add(&self, strname: &super::super::Foundation::BSTR, varval: *const super::Com::VARIANT, bpropagatestosubclass: i16, bpropagatestoinstance: i16, bisoverridable: i16, iflags: i32) -> ::windows::core::Result; - fn Remove(&self, strname: &super::super::Foundation::BSTR, iflags: i32) -> ::windows::core::Result<()>; + fn Add(&self, strname: &::windows::core::BSTR, varval: *const super::Com::VARIANT, bpropagatestosubclass: i16, bpropagatestoinstance: i16, bisoverridable: i16, iflags: i32) -> ::windows::core::Result; + fn Remove(&self, strname: &::windows::core::BSTR, iflags: i32) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ISWbemQualifierSet {} @@ -2123,7 +2110,7 @@ impl ISWbemQualifierSet_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Item, Impl: ISWbemQualifierSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, iflags: i32, objwbemqualifier: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Item, Impl: ISWbemQualifierSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemqualifier: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Item(::core::mem::transmute(&name), ::core::mem::transmute_copy(&iflags)) { @@ -2145,7 +2132,7 @@ impl ISWbemQualifierSet_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Add, Impl: ISWbemQualifierSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, varval: *const super::Com::VARIANT, bpropagatestosubclass: i16, bpropagatestoinstance: i16, bisoverridable: i16, iflags: i32, objwbemqualifier: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Add, Impl: ISWbemQualifierSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varval: *const super::Com::VARIANT, bpropagatestosubclass: i16, bpropagatestoinstance: i16, bisoverridable: i16, iflags: i32, objwbemqualifier: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Add(::core::mem::transmute(&strname), ::core::mem::transmute_copy(&varval), ::core::mem::transmute_copy(&bpropagatestosubclass), ::core::mem::transmute_copy(&bpropagatestoinstance), ::core::mem::transmute_copy(&bisoverridable), ::core::mem::transmute_copy(&iflags)) { @@ -2156,7 +2143,7 @@ impl ISWbemQualifierSet_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Remove, Impl: ISWbemQualifierSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, iflags: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn Remove, Impl: ISWbemQualifierSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Remove(::core::mem::transmute(&strname), ::core::mem::transmute_copy(&iflags)).into() @@ -2267,8 +2254,8 @@ pub trait ISWbemRefresher_Impl: Sized + super::Com::IDispatch_Impl { fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; fn Item(&self, iindex: i32) -> ::windows::core::Result; fn Count(&self) -> ::windows::core::Result; - fn Add(&self, objwbemservices: &::core::option::Option, bsinstancepath: &super::super::Foundation::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option) -> ::windows::core::Result; - fn AddEnum(&self, objwbemservices: &::core::option::Option, bsclassname: &super::super::Foundation::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option) -> ::windows::core::Result; + fn Add(&self, objwbemservices: &::core::option::Option, bsinstancepath: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option) -> ::windows::core::Result; + fn AddEnum(&self, objwbemservices: &::core::option::Option, bsclassname: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option) -> ::windows::core::Result; fn Remove(&self, iindex: i32, iflags: i32) -> ::windows::core::Result<()>; fn Refresh(&self, iflags: i32) -> ::windows::core::Result<()>; fn AutoReconnect(&self) -> ::windows::core::Result; @@ -2313,7 +2300,7 @@ impl ISWbemRefresher_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Add, Impl: ISWbemRefresher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, objwbemservices: *mut ::core::ffi::c_void, bsinstancepath: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemrefreshableitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Add, Impl: ISWbemRefresher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, objwbemservices: *mut ::core::ffi::c_void, bsinstancepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemrefreshableitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Add(::core::mem::transmute(&objwbemservices), ::core::mem::transmute(&bsinstancepath), ::core::mem::transmute_copy(&iflags), ::core::mem::transmute(&objwbemnamedvalueset)) { @@ -2324,7 +2311,7 @@ impl ISWbemRefresher_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AddEnum, Impl: ISWbemRefresher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, objwbemservices: *mut ::core::ffi::c_void, bsclassname: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemrefreshableitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddEnum, Impl: ISWbemRefresher_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, objwbemservices: *mut ::core::ffi::c_void, bsclassname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemrefreshableitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AddEnum(::core::mem::transmute(&objwbemservices), ::core::mem::transmute(&bsclassname), ::core::mem::transmute_copy(&iflags), ::core::mem::transmute(&objwbemnamedvalueset)) { @@ -2455,24 +2442,24 @@ impl ISWbemSecurity_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ISWbemServices_Impl: Sized + super::Com::IDispatch_Impl { - fn Get(&self, strobjectpath: &super::super::Foundation::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option) -> ::windows::core::Result; - fn GetAsync(&self, objwbemsink: &::core::option::Option, strobjectpath: &super::super::Foundation::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option, objwbemasynccontext: &::core::option::Option) -> ::windows::core::Result<()>; - fn Delete(&self, strobjectpath: &super::super::Foundation::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option) -> ::windows::core::Result<()>; - fn DeleteAsync(&self, objwbemsink: &::core::option::Option, strobjectpath: &super::super::Foundation::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option, objwbemasynccontext: &::core::option::Option) -> ::windows::core::Result<()>; - fn InstancesOf(&self, strclass: &super::super::Foundation::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option) -> ::windows::core::Result; - fn InstancesOfAsync(&self, objwbemsink: &::core::option::Option, strclass: &super::super::Foundation::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option, objwbemasynccontext: &::core::option::Option) -> ::windows::core::Result<()>; - fn SubclassesOf(&self, strsuperclass: &super::super::Foundation::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option) -> ::windows::core::Result; - fn SubclassesOfAsync(&self, objwbemsink: &::core::option::Option, strsuperclass: &super::super::Foundation::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option, objwbemasynccontext: &::core::option::Option) -> ::windows::core::Result<()>; - fn ExecQuery(&self, strquery: &super::super::Foundation::BSTR, strquerylanguage: &super::super::Foundation::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option) -> ::windows::core::Result; - fn ExecQueryAsync(&self, objwbemsink: &::core::option::Option, strquery: &super::super::Foundation::BSTR, strquerylanguage: &super::super::Foundation::BSTR, lflags: i32, objwbemnamedvalueset: &::core::option::Option, objwbemasynccontext: &::core::option::Option) -> ::windows::core::Result<()>; - fn AssociatorsOf(&self, strobjectpath: &super::super::Foundation::BSTR, strassocclass: &super::super::Foundation::BSTR, strresultclass: &super::super::Foundation::BSTR, strresultrole: &super::super::Foundation::BSTR, strrole: &super::super::Foundation::BSTR, bclassesonly: i16, bschemaonly: i16, strrequiredassocqualifier: &super::super::Foundation::BSTR, strrequiredqualifier: &super::super::Foundation::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option) -> ::windows::core::Result; - fn AssociatorsOfAsync(&self, objwbemsink: &::core::option::Option, strobjectpath: &super::super::Foundation::BSTR, strassocclass: &super::super::Foundation::BSTR, strresultclass: &super::super::Foundation::BSTR, strresultrole: &super::super::Foundation::BSTR, strrole: &super::super::Foundation::BSTR, bclassesonly: i16, bschemaonly: i16, strrequiredassocqualifier: &super::super::Foundation::BSTR, strrequiredqualifier: &super::super::Foundation::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option, objwbemasynccontext: &::core::option::Option) -> ::windows::core::Result<()>; - fn ReferencesTo(&self, strobjectpath: &super::super::Foundation::BSTR, strresultclass: &super::super::Foundation::BSTR, strrole: &super::super::Foundation::BSTR, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: &super::super::Foundation::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option) -> ::windows::core::Result; - fn ReferencesToAsync(&self, objwbemsink: &::core::option::Option, strobjectpath: &super::super::Foundation::BSTR, strresultclass: &super::super::Foundation::BSTR, strrole: &super::super::Foundation::BSTR, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: &super::super::Foundation::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option, objwbemasynccontext: &::core::option::Option) -> ::windows::core::Result<()>; - fn ExecNotificationQuery(&self, strquery: &super::super::Foundation::BSTR, strquerylanguage: &super::super::Foundation::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option) -> ::windows::core::Result; - fn ExecNotificationQueryAsync(&self, objwbemsink: &::core::option::Option, strquery: &super::super::Foundation::BSTR, strquerylanguage: &super::super::Foundation::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option, objwbemasynccontext: &::core::option::Option) -> ::windows::core::Result<()>; - fn ExecMethod(&self, strobjectpath: &super::super::Foundation::BSTR, strmethodname: &super::super::Foundation::BSTR, objwbeminparameters: &::core::option::Option, iflags: i32, objwbemnamedvalueset: &::core::option::Option) -> ::windows::core::Result; - fn ExecMethodAsync(&self, objwbemsink: &::core::option::Option, strobjectpath: &super::super::Foundation::BSTR, strmethodname: &super::super::Foundation::BSTR, objwbeminparameters: &::core::option::Option, iflags: i32, objwbemnamedvalueset: &::core::option::Option, objwbemasynccontext: &::core::option::Option) -> ::windows::core::Result<()>; + fn Get(&self, strobjectpath: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option) -> ::windows::core::Result; + fn GetAsync(&self, objwbemsink: &::core::option::Option, strobjectpath: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option, objwbemasynccontext: &::core::option::Option) -> ::windows::core::Result<()>; + fn Delete(&self, strobjectpath: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option) -> ::windows::core::Result<()>; + fn DeleteAsync(&self, objwbemsink: &::core::option::Option, strobjectpath: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option, objwbemasynccontext: &::core::option::Option) -> ::windows::core::Result<()>; + fn InstancesOf(&self, strclass: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option) -> ::windows::core::Result; + fn InstancesOfAsync(&self, objwbemsink: &::core::option::Option, strclass: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option, objwbemasynccontext: &::core::option::Option) -> ::windows::core::Result<()>; + fn SubclassesOf(&self, strsuperclass: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option) -> ::windows::core::Result; + fn SubclassesOfAsync(&self, objwbemsink: &::core::option::Option, strsuperclass: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option, objwbemasynccontext: &::core::option::Option) -> ::windows::core::Result<()>; + fn ExecQuery(&self, strquery: &::windows::core::BSTR, strquerylanguage: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option) -> ::windows::core::Result; + fn ExecQueryAsync(&self, objwbemsink: &::core::option::Option, strquery: &::windows::core::BSTR, strquerylanguage: &::windows::core::BSTR, lflags: i32, objwbemnamedvalueset: &::core::option::Option, objwbemasynccontext: &::core::option::Option) -> ::windows::core::Result<()>; + fn AssociatorsOf(&self, strobjectpath: &::windows::core::BSTR, strassocclass: &::windows::core::BSTR, strresultclass: &::windows::core::BSTR, strresultrole: &::windows::core::BSTR, strrole: &::windows::core::BSTR, bclassesonly: i16, bschemaonly: i16, strrequiredassocqualifier: &::windows::core::BSTR, strrequiredqualifier: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option) -> ::windows::core::Result; + fn AssociatorsOfAsync(&self, objwbemsink: &::core::option::Option, strobjectpath: &::windows::core::BSTR, strassocclass: &::windows::core::BSTR, strresultclass: &::windows::core::BSTR, strresultrole: &::windows::core::BSTR, strrole: &::windows::core::BSTR, bclassesonly: i16, bschemaonly: i16, strrequiredassocqualifier: &::windows::core::BSTR, strrequiredqualifier: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option, objwbemasynccontext: &::core::option::Option) -> ::windows::core::Result<()>; + fn ReferencesTo(&self, strobjectpath: &::windows::core::BSTR, strresultclass: &::windows::core::BSTR, strrole: &::windows::core::BSTR, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option) -> ::windows::core::Result; + fn ReferencesToAsync(&self, objwbemsink: &::core::option::Option, strobjectpath: &::windows::core::BSTR, strresultclass: &::windows::core::BSTR, strrole: &::windows::core::BSTR, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option, objwbemasynccontext: &::core::option::Option) -> ::windows::core::Result<()>; + fn ExecNotificationQuery(&self, strquery: &::windows::core::BSTR, strquerylanguage: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option) -> ::windows::core::Result; + fn ExecNotificationQueryAsync(&self, objwbemsink: &::core::option::Option, strquery: &::windows::core::BSTR, strquerylanguage: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: &::core::option::Option, objwbemasynccontext: &::core::option::Option) -> ::windows::core::Result<()>; + fn ExecMethod(&self, strobjectpath: &::windows::core::BSTR, strmethodname: &::windows::core::BSTR, objwbeminparameters: &::core::option::Option, iflags: i32, objwbemnamedvalueset: &::core::option::Option) -> ::windows::core::Result; + fn ExecMethodAsync(&self, objwbemsink: &::core::option::Option, strobjectpath: &::windows::core::BSTR, strmethodname: &::windows::core::BSTR, objwbeminparameters: &::core::option::Option, iflags: i32, objwbemnamedvalueset: &::core::option::Option, objwbemasynccontext: &::core::option::Option) -> ::windows::core::Result<()>; fn Security_(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2480,7 +2467,7 @@ impl ::windows::core::RuntimeName for ISWbemServices {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ISWbemServices_Vtbl { pub const fn new, Impl: ISWbemServices_Impl, const OFFSET: isize>() -> ISWbemServices_Vtbl { - unsafe extern "system" fn Get, Impl: ISWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Get, Impl: ISWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Get(::core::mem::transmute(&strobjectpath), ::core::mem::transmute_copy(&iflags), ::core::mem::transmute(&objwbemnamedvalueset)) { @@ -2491,22 +2478,22 @@ impl ISWbemServices_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetAsync, Impl: ISWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetAsync, Impl: ISWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetAsync(::core::mem::transmute(&objwbemsink), ::core::mem::transmute(&strobjectpath), ::core::mem::transmute_copy(&iflags), ::core::mem::transmute(&objwbemnamedvalueset), ::core::mem::transmute(&objwbemasynccontext)).into() } - unsafe extern "system" fn Delete, Impl: ISWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Delete, Impl: ISWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Delete(::core::mem::transmute(&strobjectpath), ::core::mem::transmute_copy(&iflags), ::core::mem::transmute(&objwbemnamedvalueset)).into() } - unsafe extern "system" fn DeleteAsync, Impl: ISWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteAsync, Impl: ISWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteAsync(::core::mem::transmute(&objwbemsink), ::core::mem::transmute(&strobjectpath), ::core::mem::transmute_copy(&iflags), ::core::mem::transmute(&objwbemnamedvalueset), ::core::mem::transmute(&objwbemasynccontext)).into() } - unsafe extern "system" fn InstancesOf, Impl: ISWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strclass: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemobjectset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn InstancesOf, Impl: ISWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemobjectset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.InstancesOf(::core::mem::transmute(&strclass), ::core::mem::transmute_copy(&iflags), ::core::mem::transmute(&objwbemnamedvalueset)) { @@ -2517,12 +2504,12 @@ impl ISWbemServices_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn InstancesOfAsync, Impl: ISWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strclass: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn InstancesOfAsync, Impl: ISWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InstancesOfAsync(::core::mem::transmute(&objwbemsink), ::core::mem::transmute(&strclass), ::core::mem::transmute_copy(&iflags), ::core::mem::transmute(&objwbemnamedvalueset), ::core::mem::transmute(&objwbemasynccontext)).into() } - unsafe extern "system" fn SubclassesOf, Impl: ISWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strsuperclass: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemobjectset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn SubclassesOf, Impl: ISWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strsuperclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemobjectset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SubclassesOf(::core::mem::transmute(&strsuperclass), ::core::mem::transmute_copy(&iflags), ::core::mem::transmute(&objwbemnamedvalueset)) { @@ -2533,12 +2520,12 @@ impl ISWbemServices_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SubclassesOfAsync, Impl: ISWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strsuperclass: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn SubclassesOfAsync, Impl: ISWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strsuperclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SubclassesOfAsync(::core::mem::transmute(&objwbemsink), ::core::mem::transmute(&strsuperclass), ::core::mem::transmute_copy(&iflags), ::core::mem::transmute(&objwbemnamedvalueset), ::core::mem::transmute(&objwbemasynccontext)).into() } - unsafe extern "system" fn ExecQuery, Impl: ISWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strquery: ::core::mem::ManuallyDrop, strquerylanguage: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemobjectset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExecQuery, Impl: ISWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strquery: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strquerylanguage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemobjectset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ExecQuery(::core::mem::transmute(&strquery), ::core::mem::transmute(&strquerylanguage), ::core::mem::transmute_copy(&iflags), ::core::mem::transmute(&objwbemnamedvalueset)) { @@ -2549,22 +2536,22 @@ impl ISWbemServices_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ExecQueryAsync, Impl: ISWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strquery: ::core::mem::ManuallyDrop, strquerylanguage: ::core::mem::ManuallyDrop, lflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExecQueryAsync, Impl: ISWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strquery: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strquerylanguage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ExecQueryAsync(::core::mem::transmute(&objwbemsink), ::core::mem::transmute(&strquery), ::core::mem::transmute(&strquerylanguage), ::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&objwbemnamedvalueset), ::core::mem::transmute(&objwbemasynccontext)).into() } unsafe extern "system" fn AssociatorsOf, Impl: ISWbemServices_Impl, const OFFSET: isize>( this: *mut ::core::ffi::c_void, - strobjectpath: ::core::mem::ManuallyDrop, - strassocclass: ::core::mem::ManuallyDrop, - strresultclass: ::core::mem::ManuallyDrop, - strresultrole: ::core::mem::ManuallyDrop, - strrole: ::core::mem::ManuallyDrop, + strobjectpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, + strassocclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, + strresultclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, + strresultrole: ::core::mem::ManuallyDrop<::windows::core::BSTR>, + strrole: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bclassesonly: i16, bschemaonly: i16, - strrequiredassocqualifier: ::core::mem::ManuallyDrop, - strrequiredqualifier: ::core::mem::ManuallyDrop, + strrequiredassocqualifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, + strrequiredqualifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemobjectset: *mut *mut ::core::ffi::c_void, @@ -2582,15 +2569,15 @@ impl ISWbemServices_Vtbl { unsafe extern "system" fn AssociatorsOfAsync, Impl: ISWbemServices_Impl, const OFFSET: isize>( this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, - strobjectpath: ::core::mem::ManuallyDrop, - strassocclass: ::core::mem::ManuallyDrop, - strresultclass: ::core::mem::ManuallyDrop, - strresultrole: ::core::mem::ManuallyDrop, - strrole: ::core::mem::ManuallyDrop, + strobjectpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, + strassocclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, + strresultclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, + strresultrole: ::core::mem::ManuallyDrop<::windows::core::BSTR>, + strrole: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bclassesonly: i16, bschemaonly: i16, - strrequiredassocqualifier: ::core::mem::ManuallyDrop, - strrequiredqualifier: ::core::mem::ManuallyDrop, + strrequiredassocqualifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, + strrequiredqualifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void, @@ -2614,7 +2601,7 @@ impl ISWbemServices_Vtbl { ) .into() } - unsafe extern "system" fn ReferencesTo, Impl: ISWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop, strresultclass: ::core::mem::ManuallyDrop, strrole: ::core::mem::ManuallyDrop, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemobjectset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn ReferencesTo, Impl: ISWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strresultclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strrole: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemobjectset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ReferencesTo(::core::mem::transmute(&strobjectpath), ::core::mem::transmute(&strresultclass), ::core::mem::transmute(&strrole), ::core::mem::transmute_copy(&bclassesonly), ::core::mem::transmute_copy(&bschemaonly), ::core::mem::transmute(&strrequiredqualifier), ::core::mem::transmute_copy(&iflags), ::core::mem::transmute(&objwbemnamedvalueset)) { @@ -2625,12 +2612,12 @@ impl ISWbemServices_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ReferencesToAsync, Impl: ISWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop, strresultclass: ::core::mem::ManuallyDrop, strrole: ::core::mem::ManuallyDrop, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn ReferencesToAsync, Impl: ISWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strresultclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strrole: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ReferencesToAsync(::core::mem::transmute(&objwbemsink), ::core::mem::transmute(&strobjectpath), ::core::mem::transmute(&strresultclass), ::core::mem::transmute(&strrole), ::core::mem::transmute_copy(&bclassesonly), ::core::mem::transmute_copy(&bschemaonly), ::core::mem::transmute(&strrequiredqualifier), ::core::mem::transmute_copy(&iflags), ::core::mem::transmute(&objwbemnamedvalueset), ::core::mem::transmute(&objwbemasynccontext)).into() } - unsafe extern "system" fn ExecNotificationQuery, Impl: ISWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strquery: ::core::mem::ManuallyDrop, strquerylanguage: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemeventsource: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExecNotificationQuery, Impl: ISWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strquery: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strquerylanguage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemeventsource: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ExecNotificationQuery(::core::mem::transmute(&strquery), ::core::mem::transmute(&strquerylanguage), ::core::mem::transmute_copy(&iflags), ::core::mem::transmute(&objwbemnamedvalueset)) { @@ -2641,12 +2628,12 @@ impl ISWbemServices_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ExecNotificationQueryAsync, Impl: ISWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strquery: ::core::mem::ManuallyDrop, strquerylanguage: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExecNotificationQueryAsync, Impl: ISWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strquery: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strquerylanguage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ExecNotificationQueryAsync(::core::mem::transmute(&objwbemsink), ::core::mem::transmute(&strquery), ::core::mem::transmute(&strquerylanguage), ::core::mem::transmute_copy(&iflags), ::core::mem::transmute(&objwbemnamedvalueset), ::core::mem::transmute(&objwbemasynccontext)).into() } - unsafe extern "system" fn ExecMethod, Impl: ISWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop, strmethodname: ::core::mem::ManuallyDrop, objwbeminparameters: *mut ::core::ffi::c_void, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemoutparameters: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExecMethod, Impl: ISWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strmethodname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, objwbeminparameters: *mut ::core::ffi::c_void, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemoutparameters: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ExecMethod(::core::mem::transmute(&strobjectpath), ::core::mem::transmute(&strmethodname), ::core::mem::transmute(&objwbeminparameters), ::core::mem::transmute_copy(&iflags), ::core::mem::transmute(&objwbemnamedvalueset)) { @@ -2657,7 +2644,7 @@ impl ISWbemServices_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ExecMethodAsync, Impl: ISWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop, strmethodname: ::core::mem::ManuallyDrop, objwbeminparameters: *mut ::core::ffi::c_void, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExecMethodAsync, Impl: ISWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strmethodname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, objwbeminparameters: *mut ::core::ffi::c_void, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ExecMethodAsync(::core::mem::transmute(&objwbemsink), ::core::mem::transmute(&strobjectpath), ::core::mem::transmute(&strmethodname), ::core::mem::transmute(&objwbeminparameters), ::core::mem::transmute_copy(&iflags), ::core::mem::transmute(&objwbemnamedvalueset), ::core::mem::transmute(&objwbemasynccontext)).into() @@ -2790,7 +2777,7 @@ impl IUnsecuredApartment_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWMIExtension_Impl: Sized + super::Com::IDispatch_Impl { - fn WMIObjectPath(&self) -> ::windows::core::Result; + fn WMIObjectPath(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetWMIObject(&self) -> ::windows::core::Result; fn GetWMIServices(&self) -> ::windows::core::Result; } @@ -2799,7 +2786,7 @@ impl ::windows::core::RuntimeName for IWMIExtension {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWMIExtension_Vtbl { pub const fn new, Impl: IWMIExtension_Impl, const OFFSET: isize>() -> IWMIExtension_Vtbl { - unsafe extern "system" fn WMIObjectPath, Impl: IWMIExtension_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strwmiobjectpath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn WMIObjectPath, Impl: IWMIExtension_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strwmiobjectpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.WMIObjectPath() { @@ -2914,16 +2901,13 @@ impl IWbemBackupRestoreEx_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IWbemCallResult_Impl: Sized { fn GetResultObject(&self, ltimeout: i32) -> ::windows::core::Result; - fn GetResultString(&self, ltimeout: i32) -> ::windows::core::Result; + fn GetResultString(&self, ltimeout: i32) -> ::windows::core::Result<::windows::core::BSTR>; fn GetResultServices(&self, ltimeout: i32) -> ::windows::core::Result; fn GetCallStatus(&self, ltimeout: i32) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IWbemCallResult {} -#[cfg(feature = "Win32_Foundation")] impl IWbemCallResult_Vtbl { pub const fn new, Impl: IWbemCallResult_Impl, const OFFSET: isize>() -> IWbemCallResult_Vtbl { unsafe extern "system" fn GetResultObject, Impl: IWbemCallResult_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ltimeout: i32, ppresultobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -2937,7 +2921,7 @@ impl IWbemCallResult_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetResultString, Impl: IWbemCallResult_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ltimeout: i32, pstrresultstring: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetResultString, Impl: IWbemCallResult_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ltimeout: i32, pstrresultstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetResultString(::core::mem::transmute_copy(<imeout)) { @@ -2990,24 +2974,24 @@ pub trait IWbemClassObject_Impl: Sized { fn Delete(&self, wszname: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn GetNames(&self, wszqualifiername: &::windows::core::PCWSTR, lflags: i32, pqualifierval: *const super::Com::VARIANT) -> ::windows::core::Result<*mut super::Com::SAFEARRAY>; fn BeginEnumeration(&self, lenumflags: i32) -> ::windows::core::Result<()>; - fn Next(&self, lflags: i32, strname: *mut super::super::Foundation::BSTR, pval: *mut super::Com::VARIANT, ptype: *mut i32, plflavor: *mut i32) -> ::windows::core::Result<()>; + fn Next(&self, lflags: i32, strname: *mut ::windows::core::BSTR, pval: *mut super::Com::VARIANT, ptype: *mut i32, plflavor: *mut i32) -> ::windows::core::Result<()>; fn EndEnumeration(&self) -> ::windows::core::Result<()>; fn GetPropertyQualifierSet(&self, wszproperty: &::windows::core::PCWSTR) -> ::windows::core::Result; fn Clone(&self) -> ::windows::core::Result; - fn GetObjectText(&self, lflags: i32) -> ::windows::core::Result; + fn GetObjectText(&self, lflags: i32) -> ::windows::core::Result<::windows::core::BSTR>; fn SpawnDerivedClass(&self, lflags: i32) -> ::windows::core::Result; fn SpawnInstance(&self, lflags: i32) -> ::windows::core::Result; fn CompareTo(&self, lflags: i32, pcompareto: &::core::option::Option) -> ::windows::core::Result<()>; - fn GetPropertyOrigin(&self, wszname: &::windows::core::PCWSTR) -> ::windows::core::Result; + fn GetPropertyOrigin(&self, wszname: &::windows::core::PCWSTR) -> ::windows::core::Result<::windows::core::BSTR>; fn InheritsFrom(&self, strancestor: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn GetMethod(&self, wszname: &::windows::core::PCWSTR, lflags: i32, ppinsignature: *mut ::core::option::Option, ppoutsignature: *mut ::core::option::Option) -> ::windows::core::Result<()>; fn PutMethod(&self, wszname: &::windows::core::PCWSTR, lflags: i32, pinsignature: &::core::option::Option, poutsignature: &::core::option::Option) -> ::windows::core::Result<()>; fn DeleteMethod(&self, wszname: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn BeginMethodEnumeration(&self, lenumflags: i32) -> ::windows::core::Result<()>; - fn NextMethod(&self, lflags: i32, pstrname: *mut super::super::Foundation::BSTR, ppinsignature: *mut ::core::option::Option, ppoutsignature: *mut ::core::option::Option) -> ::windows::core::Result<()>; + fn NextMethod(&self, lflags: i32, pstrname: *mut ::windows::core::BSTR, ppinsignature: *mut ::core::option::Option, ppoutsignature: *mut ::core::option::Option) -> ::windows::core::Result<()>; fn EndMethodEnumeration(&self) -> ::windows::core::Result<()>; fn GetMethodQualifierSet(&self, wszmethod: &::windows::core::PCWSTR) -> ::windows::core::Result; - fn GetMethodOrigin(&self, wszmethodname: &::windows::core::PCWSTR) -> ::windows::core::Result; + fn GetMethodOrigin(&self, wszmethodname: &::windows::core::PCWSTR) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWbemClassObject {} @@ -3056,7 +3040,7 @@ impl IWbemClassObject_Vtbl { let this = (*this).get_impl(); this.BeginEnumeration(::core::mem::transmute_copy(&lenumflags)).into() } - unsafe extern "system" fn Next, Impl: IWbemClassObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, strname: *mut super::super::Foundation::BSTR, pval: *mut super::Com::VARIANT, ptype: *mut i32, plflavor: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn Next, Impl: IWbemClassObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, strname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pval: *mut super::Com::VARIANT, ptype: *mut i32, plflavor: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Next(::core::mem::transmute_copy(&lflags), ::core::mem::transmute_copy(&strname), ::core::mem::transmute_copy(&pval), ::core::mem::transmute_copy(&ptype), ::core::mem::transmute_copy(&plflavor)).into() @@ -3088,7 +3072,7 @@ impl IWbemClassObject_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetObjectText, Impl: IWbemClassObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, pstrobjecttext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetObjectText, Impl: IWbemClassObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, pstrobjecttext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetObjectText(::core::mem::transmute_copy(&lflags)) { @@ -3126,7 +3110,7 @@ impl IWbemClassObject_Vtbl { let this = (*this).get_impl(); this.CompareTo(::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&pcompareto)).into() } - unsafe extern "system" fn GetPropertyOrigin, Impl: IWbemClassObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wszname: ::windows::core::PCWSTR, pstrclassname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPropertyOrigin, Impl: IWbemClassObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wszname: ::windows::core::PCWSTR, pstrclassname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetPropertyOrigin(::core::mem::transmute(&wszname)) { @@ -3162,7 +3146,7 @@ impl IWbemClassObject_Vtbl { let this = (*this).get_impl(); this.BeginMethodEnumeration(::core::mem::transmute_copy(&lenumflags)).into() } - unsafe extern "system" fn NextMethod, Impl: IWbemClassObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, pstrname: *mut super::super::Foundation::BSTR, ppinsignature: *mut *mut ::core::ffi::c_void, ppoutsignature: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn NextMethod, Impl: IWbemClassObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, pstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppinsignature: *mut *mut ::core::ffi::c_void, ppoutsignature: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.NextMethod(::core::mem::transmute_copy(&lflags), ::core::mem::transmute_copy(&pstrname), ::core::mem::transmute_copy(&ppinsignature), ::core::mem::transmute_copy(&ppoutsignature)).into() @@ -3183,7 +3167,7 @@ impl IWbemClassObject_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetMethodOrigin, Impl: IWbemClassObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wszmethodname: ::windows::core::PCWSTR, pstrclassname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetMethodOrigin, Impl: IWbemClassObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wszmethodname: ::windows::core::PCWSTR, pstrclassname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetMethodOrigin(::core::mem::transmute(&wszmethodname)) { @@ -3226,24 +3210,21 @@ impl IWbemClassObject_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IWbemClientConnectionTransport_Impl: Sized { - fn Open(&self, straddresstype: &super::super::Foundation::BSTR, dwbinaryaddresslength: u32, abbinaryaddress: *const u8, strobject: &super::super::Foundation::BSTR, struser: &super::super::Foundation::BSTR, strpassword: &super::super::Foundation::BSTR, strlocale: &super::super::Foundation::BSTR, lflags: i32, pctx: &::core::option::Option, riid: *const ::windows::core::GUID, pinterface: *mut *mut ::core::ffi::c_void, pcallres: *mut ::core::option::Option) -> ::windows::core::Result<()>; - fn OpenAsync(&self, straddresstype: &super::super::Foundation::BSTR, dwbinaryaddresslength: u32, abbinaryaddress: *const u8, strobject: &super::super::Foundation::BSTR, struser: &super::super::Foundation::BSTR, strpassword: &super::super::Foundation::BSTR, strlocale: &super::super::Foundation::BSTR, lflags: i32, pctx: &::core::option::Option, riid: *const ::windows::core::GUID, presponsehandler: &::core::option::Option) -> ::windows::core::Result<()>; + fn Open(&self, straddresstype: &::windows::core::BSTR, dwbinaryaddresslength: u32, abbinaryaddress: *const u8, strobject: &::windows::core::BSTR, struser: &::windows::core::BSTR, strpassword: &::windows::core::BSTR, strlocale: &::windows::core::BSTR, lflags: i32, pctx: &::core::option::Option, riid: *const ::windows::core::GUID, pinterface: *mut *mut ::core::ffi::c_void, pcallres: *mut ::core::option::Option) -> ::windows::core::Result<()>; + fn OpenAsync(&self, straddresstype: &::windows::core::BSTR, dwbinaryaddresslength: u32, abbinaryaddress: *const u8, strobject: &::windows::core::BSTR, struser: &::windows::core::BSTR, strpassword: &::windows::core::BSTR, strlocale: &::windows::core::BSTR, lflags: i32, pctx: &::core::option::Option, riid: *const ::windows::core::GUID, presponsehandler: &::core::option::Option) -> ::windows::core::Result<()>; fn Cancel(&self, lflags: i32, phandler: &::core::option::Option) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IWbemClientConnectionTransport {} -#[cfg(feature = "Win32_Foundation")] impl IWbemClientConnectionTransport_Vtbl { pub const fn new, Impl: IWbemClientConnectionTransport_Impl, const OFFSET: isize>() -> IWbemClientConnectionTransport_Vtbl { - unsafe extern "system" fn Open, Impl: IWbemClientConnectionTransport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, straddresstype: ::core::mem::ManuallyDrop, dwbinaryaddresslength: u32, abbinaryaddress: *const u8, strobject: ::core::mem::ManuallyDrop, struser: ::core::mem::ManuallyDrop, strpassword: ::core::mem::ManuallyDrop, strlocale: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, riid: *const ::windows::core::GUID, pinterface: *mut *mut ::core::ffi::c_void, pcallres: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Open, Impl: IWbemClientConnectionTransport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, straddresstype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwbinaryaddresslength: u32, abbinaryaddress: *const u8, strobject: ::core::mem::ManuallyDrop<::windows::core::BSTR>, struser: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strlocale: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, riid: *const ::windows::core::GUID, pinterface: *mut *mut ::core::ffi::c_void, pcallres: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Open(::core::mem::transmute(&straddresstype), ::core::mem::transmute_copy(&dwbinaryaddresslength), ::core::mem::transmute_copy(&abbinaryaddress), ::core::mem::transmute(&strobject), ::core::mem::transmute(&struser), ::core::mem::transmute(&strpassword), ::core::mem::transmute(&strlocale), ::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&pctx), ::core::mem::transmute_copy(&riid), ::core::mem::transmute_copy(&pinterface), ::core::mem::transmute_copy(&pcallres)) .into() } - unsafe extern "system" fn OpenAsync, Impl: IWbemClientConnectionTransport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, straddresstype: ::core::mem::ManuallyDrop, dwbinaryaddresslength: u32, abbinaryaddress: *const u8, strobject: ::core::mem::ManuallyDrop, struser: ::core::mem::ManuallyDrop, strpassword: ::core::mem::ManuallyDrop, strlocale: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, riid: *const ::windows::core::GUID, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn OpenAsync, Impl: IWbemClientConnectionTransport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, straddresstype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwbinaryaddresslength: u32, abbinaryaddress: *const u8, strobject: ::core::mem::ManuallyDrop<::windows::core::BSTR>, struser: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strlocale: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, riid: *const ::windows::core::GUID, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OpenAsync(::core::mem::transmute(&straddresstype), ::core::mem::transmute_copy(&dwbinaryaddresslength), ::core::mem::transmute_copy(&abbinaryaddress), ::core::mem::transmute(&strobject), ::core::mem::transmute(&struser), ::core::mem::transmute(&strpassword), ::core::mem::transmute(&strlocale), ::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&pctx), ::core::mem::transmute_copy(&riid), ::core::mem::transmute(&presponsehandler)).into() @@ -3264,29 +3245,13 @@ impl IWbemClientConnectionTransport_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IWbemClientTransport_Impl: Sized { - fn ConnectServer(&self, straddresstype: &super::super::Foundation::BSTR, dwbinaryaddresslength: u32, abbinaryaddress: *const u8, strnetworkresource: &super::super::Foundation::BSTR, struser: &super::super::Foundation::BSTR, strpassword: &super::super::Foundation::BSTR, strlocale: &super::super::Foundation::BSTR, lsecurityflags: i32, strauthority: &super::super::Foundation::BSTR, pctx: &::core::option::Option) -> ::windows::core::Result; + fn ConnectServer(&self, straddresstype: &::windows::core::BSTR, dwbinaryaddresslength: u32, abbinaryaddress: *const u8, strnetworkresource: &::windows::core::BSTR, struser: &::windows::core::BSTR, strpassword: &::windows::core::BSTR, strlocale: &::windows::core::BSTR, lsecurityflags: i32, strauthority: &::windows::core::BSTR, pctx: &::core::option::Option) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IWbemClientTransport {} -#[cfg(feature = "Win32_Foundation")] impl IWbemClientTransport_Vtbl { pub const fn new, Impl: IWbemClientTransport_Impl, const OFFSET: isize>() -> IWbemClientTransport_Vtbl { - unsafe extern "system" fn ConnectServer, Impl: IWbemClientTransport_Impl, const OFFSET: isize>( - this: *mut ::core::ffi::c_void, - straddresstype: ::core::mem::ManuallyDrop, - dwbinaryaddresslength: u32, - abbinaryaddress: *const u8, - strnetworkresource: ::core::mem::ManuallyDrop, - struser: ::core::mem::ManuallyDrop, - strpassword: ::core::mem::ManuallyDrop, - strlocale: ::core::mem::ManuallyDrop, - lsecurityflags: i32, - strauthority: ::core::mem::ManuallyDrop, - pctx: *mut ::core::ffi::c_void, - ppnamespace: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + unsafe extern "system" fn ConnectServer, Impl: IWbemClientTransport_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, straddresstype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwbinaryaddresslength: u32, abbinaryaddress: *const u8, strnetworkresource: ::core::mem::ManuallyDrop<::windows::core::BSTR>, struser: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strlocale: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lsecurityflags: i32, strauthority: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pctx: *mut ::core::ffi::c_void, ppnamespace: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ConnectServer(::core::mem::transmute(&straddresstype), ::core::mem::transmute_copy(&dwbinaryaddresslength), ::core::mem::transmute_copy(&abbinaryaddress), ::core::mem::transmute(&strnetworkresource), ::core::mem::transmute(&struser), ::core::mem::transmute(&strpassword), ::core::mem::transmute(&strlocale), ::core::mem::transmute_copy(&lsecurityflags), ::core::mem::transmute(&strauthority), ::core::mem::transmute(&pctx)) { @@ -3414,7 +3379,7 @@ pub trait IWbemContext_Impl: Sized { fn Clone(&self) -> ::windows::core::Result; fn GetNames(&self, lflags: i32) -> ::windows::core::Result<*mut super::Com::SAFEARRAY>; fn BeginEnumeration(&self, lflags: i32) -> ::windows::core::Result<()>; - fn Next(&self, lflags: i32, pstrname: *mut super::super::Foundation::BSTR, pvalue: *mut super::Com::VARIANT) -> ::windows::core::Result<()>; + fn Next(&self, lflags: i32, pstrname: *mut ::windows::core::BSTR, pvalue: *mut super::Com::VARIANT) -> ::windows::core::Result<()>; fn EndEnumeration(&self) -> ::windows::core::Result<()>; fn SetValue(&self, wszname: &::windows::core::PCWSTR, lflags: i32, pvalue: *const super::Com::VARIANT) -> ::windows::core::Result<()>; fn GetValue(&self, wszname: &::windows::core::PCWSTR, lflags: i32) -> ::windows::core::Result; @@ -3453,7 +3418,7 @@ impl IWbemContext_Vtbl { let this = (*this).get_impl(); this.BeginEnumeration(::core::mem::transmute_copy(&lflags)).into() } - unsafe extern "system" fn Next, Impl: IWbemContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, pstrname: *mut super::super::Foundation::BSTR, pvalue: *mut super::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn Next, Impl: IWbemContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, pstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvalue: *mut super::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Next(::core::mem::transmute_copy(&lflags), ::core::mem::transmute_copy(&pstrname), ::core::mem::transmute_copy(&pvalue)).into() @@ -3656,16 +3621,13 @@ impl IWbemEventProviderSecurity_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IWbemEventSink_Impl: Sized + IWbemObjectSink_Impl { fn SetSinkSecurity(&self, lsdlength: i32, psd: *const u8) -> ::windows::core::Result<()>; fn IsActive(&self) -> ::windows::core::Result<()>; fn GetRestrictedSink(&self, lnumqueries: i32, awszqueries: *const ::windows::core::PWSTR, pcallback: &::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result; fn SetBatchingParameters(&self, lflags: i32, dwmaxbuffersize: u32, dwmaxsendlatency: u32) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IWbemEventSink {} -#[cfg(feature = "Win32_Foundation")] impl IWbemEventSink_Vtbl { pub const fn new, Impl: IWbemEventSink_Impl, const OFFSET: isize>() -> IWbemEventSink_Vtbl { unsafe extern "system" fn SetSinkSecurity, Impl: IWbemEventSink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lsdlength: i32, psd: *const u8) -> ::windows::core::HRESULT { @@ -3879,16 +3841,13 @@ impl IWbemLevel1Login_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IWbemLocator_Impl: Sized { - fn ConnectServer(&self, strnetworkresource: &super::super::Foundation::BSTR, struser: &super::super::Foundation::BSTR, strpassword: &super::super::Foundation::BSTR, strlocale: &super::super::Foundation::BSTR, lsecurityflags: i32, strauthority: &super::super::Foundation::BSTR, pctx: &::core::option::Option) -> ::windows::core::Result; + fn ConnectServer(&self, strnetworkresource: &::windows::core::BSTR, struser: &::windows::core::BSTR, strpassword: &::windows::core::BSTR, strlocale: &::windows::core::BSTR, lsecurityflags: i32, strauthority: &::windows::core::BSTR, pctx: &::core::option::Option) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IWbemLocator {} -#[cfg(feature = "Win32_Foundation")] impl IWbemLocator_Vtbl { pub const fn new, Impl: IWbemLocator_Impl, const OFFSET: isize>() -> IWbemLocator_Vtbl { - unsafe extern "system" fn ConnectServer, Impl: IWbemLocator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strnetworkresource: ::core::mem::ManuallyDrop, struser: ::core::mem::ManuallyDrop, strpassword: ::core::mem::ManuallyDrop, strlocale: ::core::mem::ManuallyDrop, lsecurityflags: i32, strauthority: ::core::mem::ManuallyDrop, pctx: *mut ::core::ffi::c_void, ppnamespace: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn ConnectServer, Impl: IWbemLocator_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strnetworkresource: ::core::mem::ManuallyDrop<::windows::core::BSTR>, struser: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strlocale: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lsecurityflags: i32, strauthority: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pctx: *mut ::core::ffi::c_void, ppnamespace: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ConnectServer(::core::mem::transmute(&strnetworkresource), ::core::mem::transmute(&struser), ::core::mem::transmute(&strpassword), ::core::mem::transmute(&strlocale), ::core::mem::transmute_copy(&lsecurityflags), ::core::mem::transmute(&strauthority), ::core::mem::transmute(&pctx)) { @@ -3914,7 +3873,7 @@ pub trait IWbemObjectAccess_Impl: Sized + IWbemClassObject_Impl { fn WriteDWORD(&self, lhandle: i32, dw: u32) -> ::windows::core::Result<()>; fn ReadQWORD(&self, lhandle: i32) -> ::windows::core::Result; fn WriteQWORD(&self, lhandle: i32, pw: u64) -> ::windows::core::Result<()>; - fn GetPropertyInfoByHandle(&self, lhandle: i32, pstrname: *mut super::super::Foundation::BSTR, ptype: *mut i32) -> ::windows::core::Result<()>; + fn GetPropertyInfoByHandle(&self, lhandle: i32, pstrname: *mut ::windows::core::BSTR, ptype: *mut i32) -> ::windows::core::Result<()>; fn Lock(&self, lflags: i32) -> ::windows::core::Result<()>; fn Unlock(&self, lflags: i32) -> ::windows::core::Result<()>; } @@ -3970,7 +3929,7 @@ impl IWbemObjectAccess_Vtbl { let this = (*this).get_impl(); this.WriteQWORD(::core::mem::transmute_copy(&lhandle), ::core::mem::transmute_copy(&pw)).into() } - unsafe extern "system" fn GetPropertyInfoByHandle, Impl: IWbemObjectAccess_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lhandle: i32, pstrname: *mut super::super::Foundation::BSTR, ptype: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPropertyInfoByHandle, Impl: IWbemObjectAccess_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lhandle: i32, pstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, ptype: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetPropertyInfoByHandle(::core::mem::transmute_copy(&lhandle), ::core::mem::transmute_copy(&pstrname), ::core::mem::transmute_copy(&ptype)).into() @@ -4003,14 +3962,11 @@ impl IWbemObjectAccess_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IWbemObjectSink_Impl: Sized { fn Indicate(&self, lobjectcount: i32, apobjarray: *const ::core::option::Option) -> ::windows::core::Result<()>; - fn SetStatus(&self, lflags: i32, hresult: ::windows::core::HRESULT, strparam: &super::super::Foundation::BSTR, pobjparam: &::core::option::Option) -> ::windows::core::Result<()>; + fn SetStatus(&self, lflags: i32, hresult: ::windows::core::HRESULT, strparam: &::windows::core::BSTR, pobjparam: &::core::option::Option) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IWbemObjectSink {} -#[cfg(feature = "Win32_Foundation")] impl IWbemObjectSink_Vtbl { pub const fn new, Impl: IWbemObjectSink_Impl, const OFFSET: isize>() -> IWbemObjectSink_Vtbl { unsafe extern "system" fn Indicate, Impl: IWbemObjectSink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lobjectcount: i32, apobjarray: *const *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -4018,7 +3974,7 @@ impl IWbemObjectSink_Vtbl { let this = (*this).get_impl(); this.Indicate(::core::mem::transmute_copy(&lobjectcount), ::core::mem::transmute_copy(&apobjarray)).into() } - unsafe extern "system" fn SetStatus, Impl: IWbemObjectSink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, hresult: ::windows::core::HRESULT, strparam: ::core::mem::ManuallyDrop, pobjparam: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetStatus, Impl: IWbemObjectSink_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, hresult: ::windows::core::HRESULT, strparam: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pobjparam: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetStatus(::core::mem::transmute_copy(&lflags), ::core::mem::transmute_copy(&hresult), ::core::mem::transmute(&strparam), ::core::mem::transmute(&pobjparam)).into() @@ -4035,18 +3991,18 @@ impl IWbemObjectSink_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWbemObjectSinkEx_Impl: Sized + IWbemObjectSink_Impl { - fn WriteMessage(&self, uchannel: u32, strmessage: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn WriteMessage(&self, uchannel: u32, strmessage: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn WriteError(&self, pobjerror: &::core::option::Option) -> ::windows::core::Result; - fn PromptUser(&self, strmessage: &super::super::Foundation::BSTR, uprompttype: u8) -> ::windows::core::Result; - fn WriteProgress(&self, stractivity: &super::super::Foundation::BSTR, strcurrentoperation: &super::super::Foundation::BSTR, strstatusdescription: &super::super::Foundation::BSTR, upercentcomplete: u32, usecondsremaining: u32) -> ::windows::core::Result<()>; - fn WriteStreamParameter(&self, strname: &super::super::Foundation::BSTR, vtvalue: *const super::Com::VARIANT, ultype: u32, ulflags: u32) -> ::windows::core::Result<()>; + fn PromptUser(&self, strmessage: &::windows::core::BSTR, uprompttype: u8) -> ::windows::core::Result; + fn WriteProgress(&self, stractivity: &::windows::core::BSTR, strcurrentoperation: &::windows::core::BSTR, strstatusdescription: &::windows::core::BSTR, upercentcomplete: u32, usecondsremaining: u32) -> ::windows::core::Result<()>; + fn WriteStreamParameter(&self, strname: &::windows::core::BSTR, vtvalue: *const super::Com::VARIANT, ultype: u32, ulflags: u32) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWbemObjectSinkEx {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWbemObjectSinkEx_Vtbl { pub const fn new, Impl: IWbemObjectSinkEx_Impl, const OFFSET: isize>() -> IWbemObjectSinkEx_Vtbl { - unsafe extern "system" fn WriteMessage, Impl: IWbemObjectSinkEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uchannel: u32, strmessage: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn WriteMessage, Impl: IWbemObjectSinkEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uchannel: u32, strmessage: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.WriteMessage(::core::mem::transmute_copy(&uchannel), ::core::mem::transmute(&strmessage)).into() @@ -4062,7 +4018,7 @@ impl IWbemObjectSinkEx_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn PromptUser, Impl: IWbemObjectSinkEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strmessage: ::core::mem::ManuallyDrop, uprompttype: u8, pureturned: *mut u8) -> ::windows::core::HRESULT { + unsafe extern "system" fn PromptUser, Impl: IWbemObjectSinkEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strmessage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, uprompttype: u8, pureturned: *mut u8) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PromptUser(::core::mem::transmute(&strmessage), ::core::mem::transmute_copy(&uprompttype)) { @@ -4073,12 +4029,12 @@ impl IWbemObjectSinkEx_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn WriteProgress, Impl: IWbemObjectSinkEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, stractivity: ::core::mem::ManuallyDrop, strcurrentoperation: ::core::mem::ManuallyDrop, strstatusdescription: ::core::mem::ManuallyDrop, upercentcomplete: u32, usecondsremaining: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn WriteProgress, Impl: IWbemObjectSinkEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, stractivity: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strcurrentoperation: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strstatusdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>, upercentcomplete: u32, usecondsremaining: u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.WriteProgress(::core::mem::transmute(&stractivity), ::core::mem::transmute(&strcurrentoperation), ::core::mem::transmute(&strstatusdescription), ::core::mem::transmute_copy(&upercentcomplete), ::core::mem::transmute_copy(&usecondsremaining)).into() } - unsafe extern "system" fn WriteStreamParameter, Impl: IWbemObjectSinkEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, vtvalue: *const super::Com::VARIANT, ultype: u32, ulflags: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn WriteStreamParameter, Impl: IWbemObjectSinkEx_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, vtvalue: *const super::Com::VARIANT, ultype: u32, ulflags: u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.WriteStreamParameter(::core::mem::transmute(&strname), ::core::mem::transmute_copy(&vtvalue), ::core::mem::transmute_copy(&ultype), ::core::mem::transmute_copy(&ulflags)).into() @@ -4096,17 +4052,14 @@ impl IWbemObjectSinkEx_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IWbemObjectTextSrc_Impl: Sized { - fn GetText(&self, lflags: i32, pobj: &::core::option::Option, uobjtextformat: u32, pctx: &::core::option::Option) -> ::windows::core::Result; - fn CreateFromText(&self, lflags: i32, strtext: &super::super::Foundation::BSTR, uobjtextformat: u32, pctx: &::core::option::Option) -> ::windows::core::Result; + fn GetText(&self, lflags: i32, pobj: &::core::option::Option, uobjtextformat: u32, pctx: &::core::option::Option) -> ::windows::core::Result<::windows::core::BSTR>; + fn CreateFromText(&self, lflags: i32, strtext: &::windows::core::BSTR, uobjtextformat: u32, pctx: &::core::option::Option) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IWbemObjectTextSrc {} -#[cfg(feature = "Win32_Foundation")] impl IWbemObjectTextSrc_Vtbl { pub const fn new, Impl: IWbemObjectTextSrc_Impl, const OFFSET: isize>() -> IWbemObjectTextSrc_Vtbl { - unsafe extern "system" fn GetText, Impl: IWbemObjectTextSrc_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, pobj: *mut ::core::ffi::c_void, uobjtextformat: u32, pctx: *mut ::core::ffi::c_void, strtext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetText, Impl: IWbemObjectTextSrc_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, pobj: *mut ::core::ffi::c_void, uobjtextformat: u32, pctx: *mut ::core::ffi::c_void, strtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetText(::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&pobj), ::core::mem::transmute_copy(&uobjtextformat), ::core::mem::transmute(&pctx)) { @@ -4117,7 +4070,7 @@ impl IWbemObjectTextSrc_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateFromText, Impl: IWbemObjectTextSrc_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, strtext: ::core::mem::ManuallyDrop, uobjtextformat: u32, pctx: *mut ::core::ffi::c_void, pnewobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateFromText, Impl: IWbemObjectTextSrc_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, strtext: ::core::mem::ManuallyDrop<::windows::core::BSTR>, uobjtextformat: u32, pctx: *mut ::core::ffi::c_void, pnewobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateFromText(::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&strtext), ::core::mem::transmute_copy(&uobjtextformat), ::core::mem::transmute(&pctx)) { @@ -4460,15 +4413,15 @@ impl IWbemPathKeyList_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWbemPropertyProvider_Impl: Sized { - fn GetProperty(&self, lflags: i32, strlocale: &super::super::Foundation::BSTR, strclassmapping: &super::super::Foundation::BSTR, strinstmapping: &super::super::Foundation::BSTR, strpropmapping: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn PutProperty(&self, lflags: i32, strlocale: &super::super::Foundation::BSTR, strclassmapping: &super::super::Foundation::BSTR, strinstmapping: &super::super::Foundation::BSTR, strpropmapping: &super::super::Foundation::BSTR, pvvalue: *const super::Com::VARIANT) -> ::windows::core::Result<()>; + fn GetProperty(&self, lflags: i32, strlocale: &::windows::core::BSTR, strclassmapping: &::windows::core::BSTR, strinstmapping: &::windows::core::BSTR, strpropmapping: &::windows::core::BSTR) -> ::windows::core::Result; + fn PutProperty(&self, lflags: i32, strlocale: &::windows::core::BSTR, strclassmapping: &::windows::core::BSTR, strinstmapping: &::windows::core::BSTR, strpropmapping: &::windows::core::BSTR, pvvalue: *const super::Com::VARIANT) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWbemPropertyProvider {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWbemPropertyProvider_Vtbl { pub const fn new, Impl: IWbemPropertyProvider_Impl, const OFFSET: isize>() -> IWbemPropertyProvider_Vtbl { - unsafe extern "system" fn GetProperty, Impl: IWbemPropertyProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, strlocale: ::core::mem::ManuallyDrop, strclassmapping: ::core::mem::ManuallyDrop, strinstmapping: ::core::mem::ManuallyDrop, strpropmapping: ::core::mem::ManuallyDrop, pvvalue: *mut super::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetProperty, Impl: IWbemPropertyProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, strlocale: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strclassmapping: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strinstmapping: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpropmapping: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvvalue: *mut super::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetProperty(::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&strlocale), ::core::mem::transmute(&strclassmapping), ::core::mem::transmute(&strinstmapping), ::core::mem::transmute(&strpropmapping)) { @@ -4479,7 +4432,7 @@ impl IWbemPropertyProvider_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn PutProperty, Impl: IWbemPropertyProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, strlocale: ::core::mem::ManuallyDrop, strclassmapping: ::core::mem::ManuallyDrop, strinstmapping: ::core::mem::ManuallyDrop, strpropmapping: ::core::mem::ManuallyDrop, pvvalue: *const super::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn PutProperty, Impl: IWbemPropertyProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, strlocale: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strclassmapping: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strinstmapping: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpropmapping: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvvalue: *const super::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.PutProperty(::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&strlocale), ::core::mem::transmute(&strclassmapping), ::core::mem::transmute(&strinstmapping), ::core::mem::transmute(&strpropmapping), ::core::mem::transmute_copy(&pvvalue)).into() @@ -4552,7 +4505,7 @@ pub trait IWbemQualifierSet_Impl: Sized { fn Delete(&self, wszname: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn GetNames(&self, lflags: i32) -> ::windows::core::Result<*mut super::Com::SAFEARRAY>; fn BeginEnumeration(&self, lflags: i32) -> ::windows::core::Result<()>; - fn Next(&self, lflags: i32, pstrname: *mut super::super::Foundation::BSTR, pval: *mut super::Com::VARIANT, plflavor: *mut i32) -> ::windows::core::Result<()>; + fn Next(&self, lflags: i32, pstrname: *mut ::windows::core::BSTR, pval: *mut super::Com::VARIANT, plflavor: *mut i32) -> ::windows::core::Result<()>; fn EndEnumeration(&self) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -4591,7 +4544,7 @@ impl IWbemQualifierSet_Vtbl { let this = (*this).get_impl(); this.BeginEnumeration(::core::mem::transmute_copy(&lflags)).into() } - unsafe extern "system" fn Next, Impl: IWbemQualifierSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, pstrname: *mut super::super::Foundation::BSTR, pval: *mut super::Com::VARIANT, plflavor: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn Next, Impl: IWbemQualifierSet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, lflags: i32, pstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pval: *mut super::Com::VARIANT, plflavor: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Next(::core::mem::transmute_copy(&lflags), ::core::mem::transmute_copy(&pstrname), ::core::mem::transmute_copy(&pval), ::core::mem::transmute_copy(&plflavor)).into() @@ -4695,38 +4648,35 @@ impl IWbemRefresher_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IWbemServices_Impl: Sized { - fn OpenNamespace(&self, strnamespace: &super::super::Foundation::BSTR, lflags: i32, pctx: &::core::option::Option, ppworkingnamespace: *mut ::core::option::Option, ppresult: *mut ::core::option::Option) -> ::windows::core::Result<()>; + fn OpenNamespace(&self, strnamespace: &::windows::core::BSTR, lflags: i32, pctx: &::core::option::Option, ppworkingnamespace: *mut ::core::option::Option, ppresult: *mut ::core::option::Option) -> ::windows::core::Result<()>; fn CancelAsyncCall(&self, psink: &::core::option::Option) -> ::windows::core::Result<()>; fn QueryObjectSink(&self, lflags: i32) -> ::windows::core::Result; - fn GetObject(&self, strobjectpath: &super::super::Foundation::BSTR, lflags: i32, pctx: &::core::option::Option, ppobject: *mut ::core::option::Option, ppcallresult: *mut ::core::option::Option) -> ::windows::core::Result<()>; - fn GetObjectAsync(&self, strobjectpath: &super::super::Foundation::BSTR, lflags: i32, pctx: &::core::option::Option, presponsehandler: &::core::option::Option) -> ::windows::core::Result<()>; + fn GetObject(&self, strobjectpath: &::windows::core::BSTR, lflags: i32, pctx: &::core::option::Option, ppobject: *mut ::core::option::Option, ppcallresult: *mut ::core::option::Option) -> ::windows::core::Result<()>; + fn GetObjectAsync(&self, strobjectpath: &::windows::core::BSTR, lflags: i32, pctx: &::core::option::Option, presponsehandler: &::core::option::Option) -> ::windows::core::Result<()>; fn PutClass(&self, pobject: &::core::option::Option, lflags: i32, pctx: &::core::option::Option, ppcallresult: *mut ::core::option::Option) -> ::windows::core::Result<()>; fn PutClassAsync(&self, pobject: &::core::option::Option, lflags: i32, pctx: &::core::option::Option, presponsehandler: &::core::option::Option) -> ::windows::core::Result<()>; - fn DeleteClass(&self, strclass: &super::super::Foundation::BSTR, lflags: i32, pctx: &::core::option::Option, ppcallresult: *mut ::core::option::Option) -> ::windows::core::Result<()>; - fn DeleteClassAsync(&self, strclass: &super::super::Foundation::BSTR, lflags: i32, pctx: &::core::option::Option, presponsehandler: &::core::option::Option) -> ::windows::core::Result<()>; - fn CreateClassEnum(&self, strsuperclass: &super::super::Foundation::BSTR, lflags: i32, pctx: &::core::option::Option) -> ::windows::core::Result; - fn CreateClassEnumAsync(&self, strsuperclass: &super::super::Foundation::BSTR, lflags: i32, pctx: &::core::option::Option, presponsehandler: &::core::option::Option) -> ::windows::core::Result<()>; + fn DeleteClass(&self, strclass: &::windows::core::BSTR, lflags: i32, pctx: &::core::option::Option, ppcallresult: *mut ::core::option::Option) -> ::windows::core::Result<()>; + fn DeleteClassAsync(&self, strclass: &::windows::core::BSTR, lflags: i32, pctx: &::core::option::Option, presponsehandler: &::core::option::Option) -> ::windows::core::Result<()>; + fn CreateClassEnum(&self, strsuperclass: &::windows::core::BSTR, lflags: i32, pctx: &::core::option::Option) -> ::windows::core::Result; + fn CreateClassEnumAsync(&self, strsuperclass: &::windows::core::BSTR, lflags: i32, pctx: &::core::option::Option, presponsehandler: &::core::option::Option) -> ::windows::core::Result<()>; fn PutInstance(&self, pinst: &::core::option::Option, lflags: i32, pctx: &::core::option::Option, ppcallresult: *mut ::core::option::Option) -> ::windows::core::Result<()>; fn PutInstanceAsync(&self, pinst: &::core::option::Option, lflags: i32, pctx: &::core::option::Option, presponsehandler: &::core::option::Option) -> ::windows::core::Result<()>; - fn DeleteInstance(&self, strobjectpath: &super::super::Foundation::BSTR, lflags: i32, pctx: &::core::option::Option, ppcallresult: *mut ::core::option::Option) -> ::windows::core::Result<()>; - fn DeleteInstanceAsync(&self, strobjectpath: &super::super::Foundation::BSTR, lflags: i32, pctx: &::core::option::Option, presponsehandler: &::core::option::Option) -> ::windows::core::Result<()>; - fn CreateInstanceEnum(&self, strfilter: &super::super::Foundation::BSTR, lflags: i32, pctx: &::core::option::Option) -> ::windows::core::Result; - fn CreateInstanceEnumAsync(&self, strfilter: &super::super::Foundation::BSTR, lflags: i32, pctx: &::core::option::Option, presponsehandler: &::core::option::Option) -> ::windows::core::Result<()>; - fn ExecQuery(&self, strquerylanguage: &super::super::Foundation::BSTR, strquery: &super::super::Foundation::BSTR, lflags: i32, pctx: &::core::option::Option) -> ::windows::core::Result; - fn ExecQueryAsync(&self, strquerylanguage: &super::super::Foundation::BSTR, strquery: &super::super::Foundation::BSTR, lflags: i32, pctx: &::core::option::Option, presponsehandler: &::core::option::Option) -> ::windows::core::Result<()>; - fn ExecNotificationQuery(&self, strquerylanguage: &super::super::Foundation::BSTR, strquery: &super::super::Foundation::BSTR, lflags: i32, pctx: &::core::option::Option) -> ::windows::core::Result; - fn ExecNotificationQueryAsync(&self, strquerylanguage: &super::super::Foundation::BSTR, strquery: &super::super::Foundation::BSTR, lflags: i32, pctx: &::core::option::Option, presponsehandler: &::core::option::Option) -> ::windows::core::Result<()>; - fn ExecMethod(&self, strobjectpath: &super::super::Foundation::BSTR, strmethodname: &super::super::Foundation::BSTR, lflags: i32, pctx: &::core::option::Option, pinparams: &::core::option::Option, ppoutparams: *mut ::core::option::Option, ppcallresult: *mut ::core::option::Option) -> ::windows::core::Result<()>; - fn ExecMethodAsync(&self, strobjectpath: &super::super::Foundation::BSTR, strmethodname: &super::super::Foundation::BSTR, lflags: i32, pctx: &::core::option::Option, pinparams: &::core::option::Option, presponsehandler: &::core::option::Option) -> ::windows::core::Result<()>; + fn DeleteInstance(&self, strobjectpath: &::windows::core::BSTR, lflags: i32, pctx: &::core::option::Option, ppcallresult: *mut ::core::option::Option) -> ::windows::core::Result<()>; + fn DeleteInstanceAsync(&self, strobjectpath: &::windows::core::BSTR, lflags: i32, pctx: &::core::option::Option, presponsehandler: &::core::option::Option) -> ::windows::core::Result<()>; + fn CreateInstanceEnum(&self, strfilter: &::windows::core::BSTR, lflags: i32, pctx: &::core::option::Option) -> ::windows::core::Result; + fn CreateInstanceEnumAsync(&self, strfilter: &::windows::core::BSTR, lflags: i32, pctx: &::core::option::Option, presponsehandler: &::core::option::Option) -> ::windows::core::Result<()>; + fn ExecQuery(&self, strquerylanguage: &::windows::core::BSTR, strquery: &::windows::core::BSTR, lflags: i32, pctx: &::core::option::Option) -> ::windows::core::Result; + fn ExecQueryAsync(&self, strquerylanguage: &::windows::core::BSTR, strquery: &::windows::core::BSTR, lflags: i32, pctx: &::core::option::Option, presponsehandler: &::core::option::Option) -> ::windows::core::Result<()>; + fn ExecNotificationQuery(&self, strquerylanguage: &::windows::core::BSTR, strquery: &::windows::core::BSTR, lflags: i32, pctx: &::core::option::Option) -> ::windows::core::Result; + fn ExecNotificationQueryAsync(&self, strquerylanguage: &::windows::core::BSTR, strquery: &::windows::core::BSTR, lflags: i32, pctx: &::core::option::Option, presponsehandler: &::core::option::Option) -> ::windows::core::Result<()>; + fn ExecMethod(&self, strobjectpath: &::windows::core::BSTR, strmethodname: &::windows::core::BSTR, lflags: i32, pctx: &::core::option::Option, pinparams: &::core::option::Option, ppoutparams: *mut ::core::option::Option, ppcallresult: *mut ::core::option::Option) -> ::windows::core::Result<()>; + fn ExecMethodAsync(&self, strobjectpath: &::windows::core::BSTR, strmethodname: &::windows::core::BSTR, lflags: i32, pctx: &::core::option::Option, pinparams: &::core::option::Option, presponsehandler: &::core::option::Option) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IWbemServices {} -#[cfg(feature = "Win32_Foundation")] impl IWbemServices_Vtbl { pub const fn new, Impl: IWbemServices_Impl, const OFFSET: isize>() -> IWbemServices_Vtbl { - unsafe extern "system" fn OpenNamespace, Impl: IWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strnamespace: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, ppworkingnamespace: *mut *mut ::core::ffi::c_void, ppresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn OpenNamespace, Impl: IWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strnamespace: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, ppworkingnamespace: *mut *mut ::core::ffi::c_void, ppresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OpenNamespace(::core::mem::transmute(&strnamespace), ::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&pctx), ::core::mem::transmute_copy(&ppworkingnamespace), ::core::mem::transmute_copy(&ppresult)).into() @@ -4747,12 +4697,12 @@ impl IWbemServices_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetObject, Impl: IWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, ppobject: *mut *mut ::core::ffi::c_void, ppcallresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetObject, Impl: IWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, ppobject: *mut *mut ::core::ffi::c_void, ppcallresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetObject(::core::mem::transmute(&strobjectpath), ::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&pctx), ::core::mem::transmute_copy(&ppobject), ::core::mem::transmute_copy(&ppcallresult)).into() } - unsafe extern "system" fn GetObjectAsync, Impl: IWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetObjectAsync, Impl: IWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetObjectAsync(::core::mem::transmute(&strobjectpath), ::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&pctx), ::core::mem::transmute(&presponsehandler)).into() @@ -4767,17 +4717,17 @@ impl IWbemServices_Vtbl { let this = (*this).get_impl(); this.PutClassAsync(::core::mem::transmute(&pobject), ::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&pctx), ::core::mem::transmute(&presponsehandler)).into() } - unsafe extern "system" fn DeleteClass, Impl: IWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strclass: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, ppcallresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteClass, Impl: IWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, ppcallresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteClass(::core::mem::transmute(&strclass), ::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&pctx), ::core::mem::transmute_copy(&ppcallresult)).into() } - unsafe extern "system" fn DeleteClassAsync, Impl: IWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strclass: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteClassAsync, Impl: IWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteClassAsync(::core::mem::transmute(&strclass), ::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&pctx), ::core::mem::transmute(&presponsehandler)).into() } - unsafe extern "system" fn CreateClassEnum, Impl: IWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strsuperclass: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateClassEnum, Impl: IWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strsuperclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateClassEnum(::core::mem::transmute(&strsuperclass), ::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&pctx)) { @@ -4788,7 +4738,7 @@ impl IWbemServices_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateClassEnumAsync, Impl: IWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strsuperclass: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateClassEnumAsync, Impl: IWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strsuperclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CreateClassEnumAsync(::core::mem::transmute(&strsuperclass), ::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&pctx), ::core::mem::transmute(&presponsehandler)).into() @@ -4803,17 +4753,17 @@ impl IWbemServices_Vtbl { let this = (*this).get_impl(); this.PutInstanceAsync(::core::mem::transmute(&pinst), ::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&pctx), ::core::mem::transmute(&presponsehandler)).into() } - unsafe extern "system" fn DeleteInstance, Impl: IWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, ppcallresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteInstance, Impl: IWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, ppcallresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteInstance(::core::mem::transmute(&strobjectpath), ::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&pctx), ::core::mem::transmute_copy(&ppcallresult)).into() } - unsafe extern "system" fn DeleteInstanceAsync, Impl: IWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteInstanceAsync, Impl: IWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteInstanceAsync(::core::mem::transmute(&strobjectpath), ::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&pctx), ::core::mem::transmute(&presponsehandler)).into() } - unsafe extern "system" fn CreateInstanceEnum, Impl: IWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strfilter: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateInstanceEnum, Impl: IWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strfilter: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateInstanceEnum(::core::mem::transmute(&strfilter), ::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&pctx)) { @@ -4824,12 +4774,12 @@ impl IWbemServices_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CreateInstanceEnumAsync, Impl: IWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strfilter: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateInstanceEnumAsync, Impl: IWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strfilter: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CreateInstanceEnumAsync(::core::mem::transmute(&strfilter), ::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&pctx), ::core::mem::transmute(&presponsehandler)).into() } - unsafe extern "system" fn ExecQuery, Impl: IWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strquerylanguage: ::core::mem::ManuallyDrop, strquery: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExecQuery, Impl: IWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strquerylanguage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strquery: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ExecQuery(::core::mem::transmute(&strquerylanguage), ::core::mem::transmute(&strquery), ::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&pctx)) { @@ -4840,12 +4790,12 @@ impl IWbemServices_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ExecQueryAsync, Impl: IWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strquerylanguage: ::core::mem::ManuallyDrop, strquery: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExecQueryAsync, Impl: IWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strquerylanguage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strquery: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ExecQueryAsync(::core::mem::transmute(&strquerylanguage), ::core::mem::transmute(&strquery), ::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&pctx), ::core::mem::transmute(&presponsehandler)).into() } - unsafe extern "system" fn ExecNotificationQuery, Impl: IWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strquerylanguage: ::core::mem::ManuallyDrop, strquery: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExecNotificationQuery, Impl: IWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strquerylanguage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strquery: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ExecNotificationQuery(::core::mem::transmute(&strquerylanguage), ::core::mem::transmute(&strquery), ::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&pctx)) { @@ -4856,17 +4806,17 @@ impl IWbemServices_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ExecNotificationQueryAsync, Impl: IWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strquerylanguage: ::core::mem::ManuallyDrop, strquery: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExecNotificationQueryAsync, Impl: IWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strquerylanguage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strquery: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ExecNotificationQueryAsync(::core::mem::transmute(&strquerylanguage), ::core::mem::transmute(&strquery), ::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&pctx), ::core::mem::transmute(&presponsehandler)).into() } - unsafe extern "system" fn ExecMethod, Impl: IWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop, strmethodname: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, pinparams: *mut ::core::ffi::c_void, ppoutparams: *mut *mut ::core::ffi::c_void, ppcallresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExecMethod, Impl: IWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strmethodname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, pinparams: *mut ::core::ffi::c_void, ppoutparams: *mut *mut ::core::ffi::c_void, ppcallresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ExecMethod(::core::mem::transmute(&strobjectpath), ::core::mem::transmute(&strmethodname), ::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&pctx), ::core::mem::transmute(&pinparams), ::core::mem::transmute_copy(&ppoutparams), ::core::mem::transmute_copy(&ppcallresult)).into() } - unsafe extern "system" fn ExecMethodAsync, Impl: IWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop, strmethodname: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, pinparams: *mut ::core::ffi::c_void, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExecMethodAsync, Impl: IWbemServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strmethodname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, pinparams: *mut ::core::ffi::c_void, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ExecMethodAsync(::core::mem::transmute(&strobjectpath), ::core::mem::transmute(&strmethodname), ::core::mem::transmute_copy(&lflags), ::core::mem::transmute(&pctx), ::core::mem::transmute(&pinparams), ::core::mem::transmute(&presponsehandler)).into() @@ -4919,17 +4869,14 @@ impl IWbemShutdown_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IWbemStatusCodeText_Impl: Sized { - fn GetErrorCodeText(&self, hres: ::windows::core::HRESULT, localeid: u32, lflags: i32) -> ::windows::core::Result; - fn GetFacilityCodeText(&self, hres: ::windows::core::HRESULT, localeid: u32, lflags: i32) -> ::windows::core::Result; + fn GetErrorCodeText(&self, hres: ::windows::core::HRESULT, localeid: u32, lflags: i32) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetFacilityCodeText(&self, hres: ::windows::core::HRESULT, localeid: u32, lflags: i32) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IWbemStatusCodeText {} -#[cfg(feature = "Win32_Foundation")] impl IWbemStatusCodeText_Vtbl { pub const fn new, Impl: IWbemStatusCodeText_Impl, const OFFSET: isize>() -> IWbemStatusCodeText_Vtbl { - unsafe extern "system" fn GetErrorCodeText, Impl: IWbemStatusCodeText_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hres: ::windows::core::HRESULT, localeid: u32, lflags: i32, messagetext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetErrorCodeText, Impl: IWbemStatusCodeText_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hres: ::windows::core::HRESULT, localeid: u32, lflags: i32, messagetext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetErrorCodeText(::core::mem::transmute_copy(&hres), ::core::mem::transmute_copy(&localeid), ::core::mem::transmute_copy(&lflags)) { @@ -4940,7 +4887,7 @@ impl IWbemStatusCodeText_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetFacilityCodeText, Impl: IWbemStatusCodeText_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hres: ::windows::core::HRESULT, localeid: u32, lflags: i32, messagetext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetFacilityCodeText, Impl: IWbemStatusCodeText_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hres: ::windows::core::HRESULT, localeid: u32, lflags: i32, messagetext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetFacilityCodeText(::core::mem::transmute_copy(&hres), ::core::mem::transmute_copy(&localeid), ::core::mem::transmute_copy(&lflags)) { diff --git a/crates/libs/windows/src/Windows/Win32/System/Wmi/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Wmi/mod.rs index da6cdea17a..b4b1e2014e 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Wmi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Wmi/mod.rs @@ -157,19 +157,12 @@ pub struct IMofCompiler_Vtbl { pub struct ISWbemDateTime(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ISWbemDateTime { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Value(&self) -> ::windows::core::Result { + pub unsafe fn Value(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Value)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Value)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetValue<'a, P0>(&self, strvalue: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetValue)(::windows::core::Interface::as_raw(self), strvalue.into().abi()).ok() + pub unsafe fn SetValue(&self, strvalue: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strvalue)).ok() } pub unsafe fn Year(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -297,19 +290,12 @@ impl ISWbemDateTime { pub unsafe fn SetVarDate(&self, dvardate: f64, bislocal: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetVarDate)(::windows::core::Interface::as_raw(self), dvardate, bislocal).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetFileTime(&self, bislocal: i16) -> ::windows::core::Result { + pub unsafe fn GetFileTime(&self, bislocal: i16) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetFileTime)(::windows::core::Interface::as_raw(self), bislocal, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetFileTime)(::windows::core::Interface::as_raw(self), bislocal, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFileTime<'a, P0>(&self, strfiletime: P0, bislocal: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetFileTime)(::windows::core::Interface::as_raw(self), strfiletime.into().abi(), bislocal).ok() + pub unsafe fn SetFileTime(&self, strfiletime: &::windows::core::BSTR, bislocal: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetFileTime)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strfiletime), bislocal).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -378,14 +364,8 @@ unsafe impl ::windows::core::Interface for ISWbemDateTime { #[doc(hidden)] pub struct ISWbemDateTime_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Value: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetValue: usize, + pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Year: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iyear: *mut i32) -> ::windows::core::HRESULT, pub SetYear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iyear: i32) -> ::windows::core::HRESULT, pub YearSpecified: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, byearspecified: *mut i16) -> ::windows::core::HRESULT, @@ -422,14 +402,8 @@ pub struct ISWbemDateTime_Vtbl { pub SetIsInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bisinterval: i16) -> ::windows::core::HRESULT, pub GetVarDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bislocal: i16, dvardate: *mut f64) -> ::windows::core::HRESULT, pub SetVarDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dvardate: f64, bislocal: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetFileTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bislocal: i16, strfiletime: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetFileTime: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetFileTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strfiletime: ::core::mem::ManuallyDrop, bislocal: i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetFileTime: usize, + pub GetFileTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bislocal: i16, strfiletime: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetFileTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strfiletime: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bislocal: i16) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Wmi\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -606,84 +580,64 @@ impl ISWbemLastError { { (::windows::core::Interface::vtable(self).base__.SubclassesAsync_)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Associators_<'a, P0, P1, P2, P3, P4, P5, P6>(&self, strassocclass: P0, strresultclass: P1, strresultrole: P2, strrole: P3, bclassesonly: i16, bschemaonly: i16, strrequiredassocqualifier: P4, strrequiredqualifier: P5, iflags: i32, objwbemnamedvalueset: P6) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Associators_<'a, P0>(&self, strassocclass: &::windows::core::BSTR, strresultclass: &::windows::core::BSTR, strresultrole: &::windows::core::BSTR, strrole: &::windows::core::BSTR, bclassesonly: i16, bschemaonly: i16, strrequiredassocqualifier: &::windows::core::BSTR, strrequiredqualifier: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P5: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P6: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Associators_)(::windows::core::Interface::as_raw(self), strassocclass.into().abi(), strresultclass.into().abi(), strresultrole.into().abi(), strrole.into().abi(), bclassesonly, bschemaonly, strrequiredassocqualifier.into().abi(), strrequiredqualifier.into().abi(), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Associators_)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strassocclass), ::core::mem::transmute_copy(strresultclass), ::core::mem::transmute_copy(strresultrole), ::core::mem::transmute_copy(strrole), bclassesonly, bschemaonly, ::core::mem::transmute_copy(strrequiredassocqualifier), ::core::mem::transmute_copy(strrequiredqualifier), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn AssociatorsAsync_<'a, P0, P1, P2, P3, P4, P5, P6, P7, P8>(&self, objwbemsink: P0, strassocclass: P1, strresultclass: P2, strresultrole: P3, strrole: P4, bclassesonly: i16, bschemaonly: i16, strrequiredassocqualifier: P5, strrequiredqualifier: P6, iflags: i32, objwbemnamedvalueset: P7, objwbemasynccontext: P8) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn AssociatorsAsync_<'a, P0, P1, P2>(&self, objwbemsink: P0, strassocclass: &::windows::core::BSTR, strresultclass: &::windows::core::BSTR, strresultrole: &::windows::core::BSTR, strrole: &::windows::core::BSTR, bclassesonly: i16, bschemaonly: i16, strrequiredassocqualifier: &::windows::core::BSTR, strrequiredqualifier: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P1, objwbemasynccontext: P2) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P5: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P6: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P7: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P8: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { - (::windows::core::Interface::vtable(self).base__.AssociatorsAsync_)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), strassocclass.into().abi(), strresultclass.into().abi(), strresultrole.into().abi(), strrole.into().abi(), bclassesonly, bschemaonly, strrequiredassocqualifier.into().abi(), strrequiredqualifier.into().abi(), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AssociatorsAsync_)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), ::core::mem::transmute_copy(strassocclass), ::core::mem::transmute_copy(strresultclass), ::core::mem::transmute_copy(strresultrole), ::core::mem::transmute_copy(strrole), bclassesonly, bschemaonly, ::core::mem::transmute_copy(strrequiredassocqualifier), ::core::mem::transmute_copy(strrequiredqualifier), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn References_<'a, P0, P1, P2, P3>(&self, strresultclass: P0, strrole: P1, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: P2, iflags: i32, objwbemnamedvalueset: P3) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn References_<'a, P0>(&self, strresultclass: &::windows::core::BSTR, strrole: &::windows::core::BSTR, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.References_)(::windows::core::Interface::as_raw(self), strresultclass.into().abi(), strrole.into().abi(), bclassesonly, bschemaonly, strrequiredqualifier.into().abi(), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.References_)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strresultclass), ::core::mem::transmute_copy(strrole), bclassesonly, bschemaonly, ::core::mem::transmute_copy(strrequiredqualifier), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn ReferencesAsync_<'a, P0, P1, P2, P3, P4, P5>(&self, objwbemsink: P0, strresultclass: P1, strrole: P2, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: P3, iflags: i32, objwbemnamedvalueset: P4, objwbemasynccontext: P5) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn ReferencesAsync_<'a, P0, P1, P2>(&self, objwbemsink: P0, strresultclass: &::windows::core::BSTR, strrole: &::windows::core::BSTR, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P1, objwbemasynccontext: P2) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P5: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { - (::windows::core::Interface::vtable(self).base__.ReferencesAsync_)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), strresultclass.into().abi(), strrole.into().abi(), bclassesonly, bschemaonly, strrequiredqualifier.into().abi(), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.ReferencesAsync_)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), ::core::mem::transmute_copy(strresultclass), ::core::mem::transmute_copy(strrole), bclassesonly, bschemaonly, ::core::mem::transmute_copy(strrequiredqualifier), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn ExecMethod_<'a, P0, P1, P2>(&self, strmethodname: P0, objwbeminparameters: P1, iflags: i32, objwbemnamedvalueset: P2) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn ExecMethod_<'a, P0, P1>(&self, strmethodname: &::windows::core::BSTR, objwbeminparameters: P0, iflags: i32, objwbemnamedvalueset: P1) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ExecMethod_)(::windows::core::Interface::as_raw(self), strmethodname.into().abi(), objwbeminparameters.into().abi(), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ExecMethod_)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strmethodname), objwbeminparameters.into().abi(), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn ExecMethodAsync_<'a, P0, P1, P2, P3, P4>(&self, objwbemsink: P0, strmethodname: P1, objwbeminparameters: P2, iflags: i32, objwbemnamedvalueset: P3, objwbemasynccontext: P4) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn ExecMethodAsync_<'a, P0, P1, P2, P3>(&self, objwbemsink: P0, strmethodname: &::windows::core::BSTR, objwbeminparameters: P1, iflags: i32, objwbemnamedvalueset: P2, objwbemasynccontext: P3) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, P3: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { - (::windows::core::Interface::vtable(self).base__.ExecMethodAsync_)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), strmethodname.into().abi(), objwbeminparameters.into().abi(), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.ExecMethodAsync_)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), ::core::mem::transmute_copy(strmethodname), objwbeminparameters.into().abi(), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -691,11 +645,9 @@ impl ISWbemLastError { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Clone_)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetObjectText_(&self, iflags: i32) -> ::windows::core::Result { + pub unsafe fn GetObjectText_(&self, iflags: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetObjectText_)(::windows::core::Interface::as_raw(self), iflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetObjectText_)(::windows::core::Interface::as_raw(self), iflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -846,20 +798,14 @@ pub struct ISWbemLastError_Vtbl { pub struct ISWbemLocator(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ISWbemLocator { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn ConnectServer<'a, P0, P1, P2, P3, P4, P5, P6>(&self, strserver: P0, strnamespace: P1, struser: P2, strpassword: P3, strlocale: P4, strauthority: P5, isecurityflags: i32, objwbemnamedvalueset: P6) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn ConnectServer<'a, P0>(&self, strserver: &::windows::core::BSTR, strnamespace: &::windows::core::BSTR, struser: &::windows::core::BSTR, strpassword: &::windows::core::BSTR, strlocale: &::windows::core::BSTR, strauthority: &::windows::core::BSTR, isecurityflags: i32, objwbemnamedvalueset: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P5: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P6: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ConnectServer)(::windows::core::Interface::as_raw(self), strserver.into().abi(), strnamespace.into().abi(), struser.into().abi(), strpassword.into().abi(), strlocale.into().abi(), strauthority.into().abi(), isecurityflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ConnectServer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strserver), ::core::mem::transmute_copy(strnamespace), ::core::mem::transmute_copy(struser), ::core::mem::transmute_copy(strpassword), ::core::mem::transmute_copy(strlocale), ::core::mem::transmute_copy(strauthority), isecurityflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -934,9 +880,9 @@ unsafe impl ::windows::core::Interface for ISWbemLocator { #[doc(hidden)] pub struct ISWbemLocator_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub ConnectServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strserver: ::core::mem::ManuallyDrop, strnamespace: ::core::mem::ManuallyDrop, struser: ::core::mem::ManuallyDrop, strpassword: ::core::mem::ManuallyDrop, strlocale: ::core::mem::ManuallyDrop, strauthority: ::core::mem::ManuallyDrop, isecurityflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemservices: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub ConnectServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strserver: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strnamespace: ::core::mem::ManuallyDrop<::windows::core::BSTR>, struser: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strlocale: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strauthority: ::core::mem::ManuallyDrop<::windows::core::BSTR>, isecurityflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemservices: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] ConnectServer: usize, #[cfg(feature = "Win32_System_Com")] pub Security_: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objwbemsecurity: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -949,17 +895,13 @@ pub struct ISWbemLocator_Vtbl { pub struct ISWbemMethod(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ISWbemMethod { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Origin(&self) -> ::windows::core::Result { + pub unsafe fn Origin(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Origin)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Origin)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1046,14 +988,8 @@ unsafe impl ::windows::core::Interface for ISWbemMethod { #[doc(hidden)] pub struct ISWbemMethod_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub Origin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strorigin: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Origin: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Origin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strorigin: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub InParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objwbeminparameters: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -1077,14 +1013,11 @@ impl ISWbemMethodSet { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self)._NewEnum)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Item<'a, P0>(&self, strname: P0, iflags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Item(&self, strname: &::windows::core::BSTR, iflags: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Item)(::windows::core::Interface::as_raw(self), strname.into().abi(), iflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Item)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strname), iflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn Count(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1158,9 +1091,9 @@ unsafe impl ::windows::core::Interface for ISWbemMethodSet { pub struct ISWbemMethodSet_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, iflags: i32, objwbemmethod: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemmethod: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Item: usize, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, icount: *mut i32) -> ::windows::core::HRESULT, } @@ -1181,11 +1114,9 @@ impl ISWbemNamedValue { pub unsafe fn SetValue(&self, varvalue: &super::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(varvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -1262,10 +1193,7 @@ pub struct ISWbemNamedValue_Vtbl { pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varvalue: *const super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SetValue: usize, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Wmi\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1277,14 +1205,11 @@ impl ISWbemNamedValueSet { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self)._NewEnum)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Item<'a, P0>(&self, strname: P0, iflags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Item(&self, strname: &::windows::core::BSTR, iflags: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Item)(::windows::core::Interface::as_raw(self), strname.into().abi(), iflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Item)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strname), iflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn Count(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1292,20 +1217,12 @@ impl ISWbemNamedValueSet { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Add<'a, P0>(&self, strname: P0, varvalue: &super::Com::VARIANT, iflags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn Add(&self, strname: &::windows::core::BSTR, varvalue: &super::Com::VARIANT, iflags: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), strname.into().abi(), ::core::mem::transmute(varvalue), iflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strname), ::core::mem::transmute(varvalue), iflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Remove<'a, P0>(&self, strname: P0, iflags: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), strname.into().abi(), iflags).ok() + pub unsafe fn Remove(&self, strname: &::windows::core::BSTR, iflags: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strname), iflags).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1384,19 +1301,16 @@ unsafe impl ::windows::core::Interface for ISWbemNamedValueSet { pub struct ISWbemNamedValueSet_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Item: usize, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, icount: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, varvalue: *const super::Com::VARIANT, iflags: i32, objwbemnamedvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varvalue: *const super::Com::VARIANT, iflags: i32, objwbemnamedvalue: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Add: usize, - #[cfg(feature = "Win32_Foundation")] - pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, iflags: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Remove: usize, + pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objwbemnamedvalueset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -1484,84 +1398,64 @@ impl ISWbemObject { { (::windows::core::Interface::vtable(self).SubclassesAsync_)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Associators_<'a, P0, P1, P2, P3, P4, P5, P6>(&self, strassocclass: P0, strresultclass: P1, strresultrole: P2, strrole: P3, bclassesonly: i16, bschemaonly: i16, strrequiredassocqualifier: P4, strrequiredqualifier: P5, iflags: i32, objwbemnamedvalueset: P6) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Associators_<'a, P0>(&self, strassocclass: &::windows::core::BSTR, strresultclass: &::windows::core::BSTR, strresultrole: &::windows::core::BSTR, strrole: &::windows::core::BSTR, bclassesonly: i16, bschemaonly: i16, strrequiredassocqualifier: &::windows::core::BSTR, strrequiredqualifier: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P5: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P6: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Associators_)(::windows::core::Interface::as_raw(self), strassocclass.into().abi(), strresultclass.into().abi(), strresultrole.into().abi(), strrole.into().abi(), bclassesonly, bschemaonly, strrequiredassocqualifier.into().abi(), strrequiredqualifier.into().abi(), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Associators_)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strassocclass), ::core::mem::transmute_copy(strresultclass), ::core::mem::transmute_copy(strresultrole), ::core::mem::transmute_copy(strrole), bclassesonly, bschemaonly, ::core::mem::transmute_copy(strrequiredassocqualifier), ::core::mem::transmute_copy(strrequiredqualifier), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn AssociatorsAsync_<'a, P0, P1, P2, P3, P4, P5, P6, P7, P8>(&self, objwbemsink: P0, strassocclass: P1, strresultclass: P2, strresultrole: P3, strrole: P4, bclassesonly: i16, bschemaonly: i16, strrequiredassocqualifier: P5, strrequiredqualifier: P6, iflags: i32, objwbemnamedvalueset: P7, objwbemasynccontext: P8) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn AssociatorsAsync_<'a, P0, P1, P2>(&self, objwbemsink: P0, strassocclass: &::windows::core::BSTR, strresultclass: &::windows::core::BSTR, strresultrole: &::windows::core::BSTR, strrole: &::windows::core::BSTR, bclassesonly: i16, bschemaonly: i16, strrequiredassocqualifier: &::windows::core::BSTR, strrequiredqualifier: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P1, objwbemasynccontext: P2) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P5: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P6: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P7: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P8: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { - (::windows::core::Interface::vtable(self).AssociatorsAsync_)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), strassocclass.into().abi(), strresultclass.into().abi(), strresultrole.into().abi(), strrole.into().abi(), bclassesonly, bschemaonly, strrequiredassocqualifier.into().abi(), strrequiredqualifier.into().abi(), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() + (::windows::core::Interface::vtable(self).AssociatorsAsync_)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), ::core::mem::transmute_copy(strassocclass), ::core::mem::transmute_copy(strresultclass), ::core::mem::transmute_copy(strresultrole), ::core::mem::transmute_copy(strrole), bclassesonly, bschemaonly, ::core::mem::transmute_copy(strrequiredassocqualifier), ::core::mem::transmute_copy(strrequiredqualifier), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn References_<'a, P0, P1, P2, P3>(&self, strresultclass: P0, strrole: P1, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: P2, iflags: i32, objwbemnamedvalueset: P3) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn References_<'a, P0>(&self, strresultclass: &::windows::core::BSTR, strrole: &::windows::core::BSTR, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).References_)(::windows::core::Interface::as_raw(self), strresultclass.into().abi(), strrole.into().abi(), bclassesonly, bschemaonly, strrequiredqualifier.into().abi(), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).References_)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strresultclass), ::core::mem::transmute_copy(strrole), bclassesonly, bschemaonly, ::core::mem::transmute_copy(strrequiredqualifier), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn ReferencesAsync_<'a, P0, P1, P2, P3, P4, P5>(&self, objwbemsink: P0, strresultclass: P1, strrole: P2, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: P3, iflags: i32, objwbemnamedvalueset: P4, objwbemasynccontext: P5) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn ReferencesAsync_<'a, P0, P1, P2>(&self, objwbemsink: P0, strresultclass: &::windows::core::BSTR, strrole: &::windows::core::BSTR, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P1, objwbemasynccontext: P2) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P5: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { - (::windows::core::Interface::vtable(self).ReferencesAsync_)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), strresultclass.into().abi(), strrole.into().abi(), bclassesonly, bschemaonly, strrequiredqualifier.into().abi(), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() + (::windows::core::Interface::vtable(self).ReferencesAsync_)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), ::core::mem::transmute_copy(strresultclass), ::core::mem::transmute_copy(strrole), bclassesonly, bschemaonly, ::core::mem::transmute_copy(strrequiredqualifier), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn ExecMethod_<'a, P0, P1, P2>(&self, strmethodname: P0, objwbeminparameters: P1, iflags: i32, objwbemnamedvalueset: P2) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn ExecMethod_<'a, P0, P1>(&self, strmethodname: &::windows::core::BSTR, objwbeminparameters: P0, iflags: i32, objwbemnamedvalueset: P1) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ExecMethod_)(::windows::core::Interface::as_raw(self), strmethodname.into().abi(), objwbeminparameters.into().abi(), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ExecMethod_)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strmethodname), objwbeminparameters.into().abi(), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn ExecMethodAsync_<'a, P0, P1, P2, P3, P4>(&self, objwbemsink: P0, strmethodname: P1, objwbeminparameters: P2, iflags: i32, objwbemnamedvalueset: P3, objwbemasynccontext: P4) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn ExecMethodAsync_<'a, P0, P1, P2, P3>(&self, objwbemsink: P0, strmethodname: &::windows::core::BSTR, objwbeminparameters: P1, iflags: i32, objwbemnamedvalueset: P2, objwbemasynccontext: P3) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, P3: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { - (::windows::core::Interface::vtable(self).ExecMethodAsync_)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), strmethodname.into().abi(), objwbeminparameters.into().abi(), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() + (::windows::core::Interface::vtable(self).ExecMethodAsync_)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), ::core::mem::transmute_copy(strmethodname), objwbeminparameters.into().abi(), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1569,11 +1463,9 @@ impl ISWbemObject { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Clone_)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetObjectText_(&self, iflags: i32) -> ::windows::core::Result { + pub unsafe fn GetObjectText_(&self, iflags: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetObjectText_)(::windows::core::Interface::as_raw(self), iflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetObjectText_)(::windows::core::Interface::as_raw(self), iflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1731,38 +1623,35 @@ pub struct ISWbemObject_Vtbl { pub SubclassesAsync_: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] SubclassesAsync_: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Associators_: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strassocclass: ::core::mem::ManuallyDrop, strresultclass: ::core::mem::ManuallyDrop, strresultrole: ::core::mem::ManuallyDrop, strrole: ::core::mem::ManuallyDrop, bclassesonly: i16, bschemaonly: i16, strrequiredassocqualifier: ::core::mem::ManuallyDrop, strrequiredqualifier: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemobjectset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub Associators_: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strassocclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strresultclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strresultrole: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strrole: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bclassesonly: i16, bschemaonly: i16, strrequiredassocqualifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strrequiredqualifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemobjectset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Associators_: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub AssociatorsAsync_: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strassocclass: ::core::mem::ManuallyDrop, strresultclass: ::core::mem::ManuallyDrop, strresultrole: ::core::mem::ManuallyDrop, strrole: ::core::mem::ManuallyDrop, bclassesonly: i16, bschemaonly: i16, strrequiredassocqualifier: ::core::mem::ManuallyDrop, strrequiredqualifier: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub AssociatorsAsync_: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strassocclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strresultclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strresultrole: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strrole: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bclassesonly: i16, bschemaonly: i16, strrequiredassocqualifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strrequiredqualifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] AssociatorsAsync_: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub References_: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strresultclass: ::core::mem::ManuallyDrop, strrole: ::core::mem::ManuallyDrop, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemobjectset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub References_: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strresultclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strrole: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemobjectset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] References_: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub ReferencesAsync_: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strresultclass: ::core::mem::ManuallyDrop, strrole: ::core::mem::ManuallyDrop, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub ReferencesAsync_: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strresultclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strrole: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] ReferencesAsync_: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub ExecMethod_: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strmethodname: ::core::mem::ManuallyDrop, objwbeminparameters: *mut ::core::ffi::c_void, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemoutparameters: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub ExecMethod_: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strmethodname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, objwbeminparameters: *mut ::core::ffi::c_void, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemoutparameters: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] ExecMethod_: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub ExecMethodAsync_: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strmethodname: ::core::mem::ManuallyDrop, objwbeminparameters: *mut ::core::ffi::c_void, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub ExecMethodAsync_: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strmethodname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, objwbeminparameters: *mut ::core::ffi::c_void, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] ExecMethodAsync_: usize, #[cfg(feature = "Win32_System_Com")] pub Clone_: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objwbemobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Clone_: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetObjectText_: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iflags: i32, strobjecttext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetObjectText_: usize, + pub GetObjectText_: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iflags: i32, strobjecttext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub SpawnDerivedClass_: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iflags: i32, objwbemobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -1881,84 +1770,64 @@ impl ISWbemObjectEx { { (::windows::core::Interface::vtable(self).base__.SubclassesAsync_)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Associators_<'a, P0, P1, P2, P3, P4, P5, P6>(&self, strassocclass: P0, strresultclass: P1, strresultrole: P2, strrole: P3, bclassesonly: i16, bschemaonly: i16, strrequiredassocqualifier: P4, strrequiredqualifier: P5, iflags: i32, objwbemnamedvalueset: P6) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Associators_<'a, P0>(&self, strassocclass: &::windows::core::BSTR, strresultclass: &::windows::core::BSTR, strresultrole: &::windows::core::BSTR, strrole: &::windows::core::BSTR, bclassesonly: i16, bschemaonly: i16, strrequiredassocqualifier: &::windows::core::BSTR, strrequiredqualifier: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P5: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P6: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Associators_)(::windows::core::Interface::as_raw(self), strassocclass.into().abi(), strresultclass.into().abi(), strresultrole.into().abi(), strrole.into().abi(), bclassesonly, bschemaonly, strrequiredassocqualifier.into().abi(), strrequiredqualifier.into().abi(), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Associators_)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strassocclass), ::core::mem::transmute_copy(strresultclass), ::core::mem::transmute_copy(strresultrole), ::core::mem::transmute_copy(strrole), bclassesonly, bschemaonly, ::core::mem::transmute_copy(strrequiredassocqualifier), ::core::mem::transmute_copy(strrequiredqualifier), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn AssociatorsAsync_<'a, P0, P1, P2, P3, P4, P5, P6, P7, P8>(&self, objwbemsink: P0, strassocclass: P1, strresultclass: P2, strresultrole: P3, strrole: P4, bclassesonly: i16, bschemaonly: i16, strrequiredassocqualifier: P5, strrequiredqualifier: P6, iflags: i32, objwbemnamedvalueset: P7, objwbemasynccontext: P8) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn AssociatorsAsync_<'a, P0, P1, P2>(&self, objwbemsink: P0, strassocclass: &::windows::core::BSTR, strresultclass: &::windows::core::BSTR, strresultrole: &::windows::core::BSTR, strrole: &::windows::core::BSTR, bclassesonly: i16, bschemaonly: i16, strrequiredassocqualifier: &::windows::core::BSTR, strrequiredqualifier: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P1, objwbemasynccontext: P2) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P5: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P6: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P7: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P8: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { - (::windows::core::Interface::vtable(self).base__.AssociatorsAsync_)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), strassocclass.into().abi(), strresultclass.into().abi(), strresultrole.into().abi(), strrole.into().abi(), bclassesonly, bschemaonly, strrequiredassocqualifier.into().abi(), strrequiredqualifier.into().abi(), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AssociatorsAsync_)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), ::core::mem::transmute_copy(strassocclass), ::core::mem::transmute_copy(strresultclass), ::core::mem::transmute_copy(strresultrole), ::core::mem::transmute_copy(strrole), bclassesonly, bschemaonly, ::core::mem::transmute_copy(strrequiredassocqualifier), ::core::mem::transmute_copy(strrequiredqualifier), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn References_<'a, P0, P1, P2, P3>(&self, strresultclass: P0, strrole: P1, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: P2, iflags: i32, objwbemnamedvalueset: P3) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn References_<'a, P0>(&self, strresultclass: &::windows::core::BSTR, strrole: &::windows::core::BSTR, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.References_)(::windows::core::Interface::as_raw(self), strresultclass.into().abi(), strrole.into().abi(), bclassesonly, bschemaonly, strrequiredqualifier.into().abi(), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.References_)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strresultclass), ::core::mem::transmute_copy(strrole), bclassesonly, bschemaonly, ::core::mem::transmute_copy(strrequiredqualifier), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn ReferencesAsync_<'a, P0, P1, P2, P3, P4, P5>(&self, objwbemsink: P0, strresultclass: P1, strrole: P2, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: P3, iflags: i32, objwbemnamedvalueset: P4, objwbemasynccontext: P5) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn ReferencesAsync_<'a, P0, P1, P2>(&self, objwbemsink: P0, strresultclass: &::windows::core::BSTR, strrole: &::windows::core::BSTR, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P1, objwbemasynccontext: P2) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P5: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { - (::windows::core::Interface::vtable(self).base__.ReferencesAsync_)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), strresultclass.into().abi(), strrole.into().abi(), bclassesonly, bschemaonly, strrequiredqualifier.into().abi(), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.ReferencesAsync_)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), ::core::mem::transmute_copy(strresultclass), ::core::mem::transmute_copy(strrole), bclassesonly, bschemaonly, ::core::mem::transmute_copy(strrequiredqualifier), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn ExecMethod_<'a, P0, P1, P2>(&self, strmethodname: P0, objwbeminparameters: P1, iflags: i32, objwbemnamedvalueset: P2) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn ExecMethod_<'a, P0, P1>(&self, strmethodname: &::windows::core::BSTR, objwbeminparameters: P0, iflags: i32, objwbemnamedvalueset: P1) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ExecMethod_)(::windows::core::Interface::as_raw(self), strmethodname.into().abi(), objwbeminparameters.into().abi(), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ExecMethod_)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strmethodname), objwbeminparameters.into().abi(), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn ExecMethodAsync_<'a, P0, P1, P2, P3, P4>(&self, objwbemsink: P0, strmethodname: P1, objwbeminparameters: P2, iflags: i32, objwbemnamedvalueset: P3, objwbemasynccontext: P4) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn ExecMethodAsync_<'a, P0, P1, P2, P3>(&self, objwbemsink: P0, strmethodname: &::windows::core::BSTR, objwbeminparameters: P1, iflags: i32, objwbemnamedvalueset: P2, objwbemasynccontext: P3) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, P3: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { - (::windows::core::Interface::vtable(self).base__.ExecMethodAsync_)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), strmethodname.into().abi(), objwbeminparameters.into().abi(), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.ExecMethodAsync_)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), ::core::mem::transmute_copy(strmethodname), objwbeminparameters.into().abi(), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1966,11 +1835,9 @@ impl ISWbemObjectEx { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Clone_)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetObjectText_(&self, iflags: i32) -> ::windows::core::Result { + pub unsafe fn GetObjectText_(&self, iflags: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetObjectText_)(::windows::core::Interface::as_raw(self), iflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetObjectText_)(::windows::core::Interface::as_raw(self), iflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2043,23 +1910,22 @@ impl ISWbemObjectEx { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).SystemProperties_)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetText_<'a, P0>(&self, iobjecttextformat: WbemObjectTextFormatEnum, iflags: i32, objwbemnamedvalueset: P0) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetText_<'a, P0>(&self, iobjecttextformat: WbemObjectTextFormatEnum, iflags: i32, objwbemnamedvalueset: P0) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetText_)(::windows::core::Interface::as_raw(self), iobjecttextformat, iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetText_)(::windows::core::Interface::as_raw(self), iobjecttextformat, iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn SetFromText_<'a, P0, P1>(&self, bstext: P0, iobjecttextformat: WbemObjectTextFormatEnum, iflags: i32, objwbemnamedvalueset: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn SetFromText_<'a, P0>(&self, bstext: &::windows::core::BSTR, iobjecttextformat: WbemObjectTextFormatEnum, iflags: i32, objwbemnamedvalueset: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { - (::windows::core::Interface::vtable(self).SetFromText_)(::windows::core::Interface::as_raw(self), bstext.into().abi(), iobjecttextformat, iflags, objwbemnamedvalueset.into().abi()).ok() + (::windows::core::Interface::vtable(self).SetFromText_)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstext), iobjecttextformat, iflags, objwbemnamedvalueset.into().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2154,13 +2020,13 @@ pub struct ISWbemObjectEx_Vtbl { pub SystemProperties_: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objwbempropertyset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] SystemProperties_: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetText_: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iobjecttextformat: WbemObjectTextFormatEnum, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, bstext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetText_: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iobjecttextformat: WbemObjectTextFormatEnum, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, bstext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetText_: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub SetFromText_: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstext: ::core::mem::ManuallyDrop, iobjecttextformat: WbemObjectTextFormatEnum, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub SetFromText_: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstext: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iobjecttextformat: WbemObjectTextFormatEnum, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] SetFromText_: usize, } #[doc = "*Required features: `\"Win32_System_Wmi\"`, `\"Win32_System_Com\"`*"] @@ -2169,95 +2035,51 @@ pub struct ISWbemObjectEx_Vtbl { pub struct ISWbemObjectPath(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ISWbemObjectPath { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Path(&self) -> ::windows::core::Result { + pub unsafe fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPath<'a, P0>(&self, strpath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPath)(::windows::core::Interface::as_raw(self), strpath.into().abi()).ok() + pub unsafe fn SetPath(&self, strpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strpath)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RelPath(&self) -> ::windows::core::Result { + pub unsafe fn RelPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RelPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RelPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRelPath<'a, P0>(&self, strrelpath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetRelPath)(::windows::core::Interface::as_raw(self), strrelpath.into().abi()).ok() + pub unsafe fn SetRelPath(&self, strrelpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetRelPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strrelpath)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Server(&self) -> ::windows::core::Result { + pub unsafe fn Server(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Server)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Server)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetServer<'a, P0>(&self, strserver: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetServer)(::windows::core::Interface::as_raw(self), strserver.into().abi()).ok() + pub unsafe fn SetServer(&self, strserver: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetServer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strserver)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Namespace(&self) -> ::windows::core::Result { + pub unsafe fn Namespace(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Namespace)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Namespace)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetNamespace<'a, P0>(&self, strnamespace: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetNamespace)(::windows::core::Interface::as_raw(self), strnamespace.into().abi()).ok() + pub unsafe fn SetNamespace(&self, strnamespace: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetNamespace)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strnamespace)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ParentNamespace(&self) -> ::windows::core::Result { + pub unsafe fn ParentNamespace(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ParentNamespace)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ParentNamespace)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisplayName(&self) -> ::windows::core::Result { + pub unsafe fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDisplayName<'a, P0>(&self, strdisplayname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDisplayName)(::windows::core::Interface::as_raw(self), strdisplayname.into().abi()).ok() + pub unsafe fn SetDisplayName(&self, strdisplayname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strdisplayname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Class(&self) -> ::windows::core::Result { + pub unsafe fn Class(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Class)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetClass<'a, P0>(&self, strclass: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetClass)(::windows::core::Interface::as_raw(self), strclass.into().abi()).ok() + pub unsafe fn SetClass(&self, strclass: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetClass)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strclass)).ok() } pub unsafe fn IsClass(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2285,33 +2107,19 @@ impl ISWbemObjectPath { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Security_)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Locale(&self) -> ::windows::core::Result { + pub unsafe fn Locale(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Locale)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Locale)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetLocale<'a, P0>(&self, strlocale: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetLocale)(::windows::core::Interface::as_raw(self), strlocale.into().abi()).ok() + pub unsafe fn SetLocale(&self, strlocale: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetLocale)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strlocale)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Authority(&self) -> ::windows::core::Result { + pub unsafe fn Authority(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Authority)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Authority)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetAuthority<'a, P0>(&self, strauthority: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetAuthority)(::windows::core::Interface::as_raw(self), strauthority.into().abi()).ok() + pub unsafe fn SetAuthority(&self, strauthority: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetAuthority)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strauthority)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2380,58 +2188,19 @@ unsafe impl ::windows::core::Interface for ISWbemObjectPath { #[doc(hidden)] pub struct ISWbemObjectPath_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Path: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPath: usize, - #[cfg(feature = "Win32_Foundation")] - pub RelPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strrelpath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RelPath: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetRelPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strrelpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetRelPath: usize, - #[cfg(feature = "Win32_Foundation")] - pub Server: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strserver: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Server: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strserver: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetServer: usize, - #[cfg(feature = "Win32_Foundation")] - pub Namespace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strnamespace: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Namespace: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetNamespace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strnamespace: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetNamespace: usize, - #[cfg(feature = "Win32_Foundation")] - pub ParentNamespace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strparentnamespace: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ParentNamespace: usize, - #[cfg(feature = "Win32_Foundation")] - pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strdisplayname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DisplayName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strdisplayname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDisplayName: usize, - #[cfg(feature = "Win32_Foundation")] - pub Class: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strclass: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Class: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strclass: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetClass: usize, + pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub RelPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strrelpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetRelPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strrelpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Server: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strserver: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strserver: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Namespace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strnamespace: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetNamespace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strnamespace: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ParentNamespace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strparentnamespace: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strdisplayname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strdisplayname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Class: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strclass: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub IsClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bisclass: *mut i16) -> ::windows::core::HRESULT, pub SetAsClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub IsSingleton: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bissingleton: *mut i16) -> ::windows::core::HRESULT, @@ -2444,22 +2213,10 @@ pub struct ISWbemObjectPath_Vtbl { pub Security_: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objwbemsecurity: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Security_: usize, - #[cfg(feature = "Win32_Foundation")] - pub Locale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strlocale: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Locale: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetLocale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strlocale: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetLocale: usize, - #[cfg(feature = "Win32_Foundation")] - pub Authority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strauthority: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Authority: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetAuthority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strauthority: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetAuthority: usize, + pub Locale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strlocale: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetLocale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strlocale: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Authority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strauthority: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetAuthority: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strauthority: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Wmi\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2471,14 +2228,11 @@ impl ISWbemObjectSet { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self)._NewEnum)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Item<'a, P0>(&self, strobjectpath: P0, iflags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Item(&self, strobjectpath: &::windows::core::BSTR, iflags: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Item)(::windows::core::Interface::as_raw(self), strobjectpath.into().abi(), iflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Item)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strobjectpath), iflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn Count(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2564,9 +2318,9 @@ unsafe impl ::windows::core::Interface for ISWbemObjectSet { pub struct ISWbemObjectSet_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop, iflags: i32, objwbemobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Item: usize, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, icount: *mut i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] @@ -2591,17 +2345,13 @@ impl ISWbemPrivilege { pub unsafe fn SetIsEnabled(&self, bisenabled: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetIsEnabled)(::windows::core::Interface::as_raw(self), bisenabled).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DisplayName(&self) -> ::windows::core::Result { + pub unsafe fn DisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Identifier(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2676,14 +2426,8 @@ pub struct ISWbemPrivilege_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub IsEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bisenabled: *mut i16) -> ::windows::core::HRESULT, pub SetIsEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bisenabled: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strdisplayname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strdisplayname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DisplayName: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strdisplayname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strdisplayname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Identifier: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iprivilege: *mut WbemPrivilegeEnum) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Wmi\"`, `\"Win32_System_Com\"`*"] @@ -2718,14 +2462,11 @@ impl ISWbemPrivilegeSet { pub unsafe fn DeleteAll(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).DeleteAll)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn AddAsString<'a, P0>(&self, strprivilege: P0, bisenabled: i16) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn AddAsString(&self, strprivilege: &::windows::core::BSTR, bisenabled: i16) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AddAsString)(::windows::core::Interface::as_raw(self), strprivilege.into().abi(), bisenabled, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AddAsString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strprivilege), bisenabled, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -2806,9 +2547,9 @@ pub struct ISWbemPrivilegeSet_Vtbl { Add: usize, pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iprivilege: WbemPrivilegeEnum) -> ::windows::core::HRESULT, pub DeleteAll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub AddAsString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strprivilege: ::core::mem::ManuallyDrop, bisenabled: i16, objwbemprivilege: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub AddAsString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strprivilege: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bisenabled: i16, objwbemprivilege: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] AddAsString: usize, } #[doc = "*Required features: `\"Win32_System_Wmi\"`, `\"Win32_System_Com\"`*"] @@ -2828,21 +2569,17 @@ impl ISWbemProperty { pub unsafe fn SetValue(&self, varvalue: &super::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(varvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn IsLocal(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).IsLocal)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Origin(&self) -> ::windows::core::Result { + pub unsafe fn Origin(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Origin)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Origin)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CIMType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2933,15 +2670,9 @@ pub struct ISWbemProperty_Vtbl { pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varvalue: *const super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SetValue: usize, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub IsLocal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bislocal: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Origin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strorigin: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Origin: usize, + pub Origin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strorigin: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub CIMType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, icimtype: *mut WbemCimtypeEnum) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Qualifiers_: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objwbemqualifierset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -2959,35 +2690,24 @@ impl ISWbemPropertySet { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self)._NewEnum)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Item<'a, P0>(&self, strname: P0, iflags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Item(&self, strname: &::windows::core::BSTR, iflags: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Item)(::windows::core::Interface::as_raw(self), strname.into().abi(), iflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Item)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strname), iflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn Count(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Count)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Add<'a, P0>(&self, strname: P0, icimtype: WbemCimtypeEnum, bisarray: i16, iflags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Add(&self, strname: &::windows::core::BSTR, icimtype: WbemCimtypeEnum, bisarray: i16, iflags: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), strname.into().abi(), icimtype, bisarray, iflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strname), icimtype, bisarray, iflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Remove<'a, P0>(&self, strname: P0, iflags: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), strname.into().abi(), iflags).ok() + pub unsafe fn Remove(&self, strname: &::windows::core::BSTR, iflags: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strname), iflags).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3057,19 +2777,16 @@ unsafe impl ::windows::core::Interface for ISWbemPropertySet { pub struct ISWbemPropertySet_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, iflags: i32, objwbemproperty: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemproperty: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Item: usize, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, icount: *mut i32) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, icimtype: WbemCimtypeEnum, bisarray: i16, iflags: i32, objwbemproperty: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, icimtype: WbemCimtypeEnum, bisarray: i16, iflags: i32, objwbemproperty: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Add: usize, - #[cfg(feature = "Win32_Foundation")] - pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, iflags: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Remove: usize, + pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Wmi\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3088,11 +2805,9 @@ impl ISWbemQualifier { pub unsafe fn SetValue(&self, varvalue: &super::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(varvalue)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn IsLocal(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3198,10 +2913,7 @@ pub struct ISWbemQualifier_Vtbl { pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varvalue: *const super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SetValue: usize, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub IsLocal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bislocal: *mut i16) -> ::windows::core::HRESULT, pub PropagatesToSubclass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bpropagatestosubclass: *mut i16) -> ::windows::core::HRESULT, pub SetPropagatesToSubclass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bpropagatestosubclass: i16) -> ::windows::core::HRESULT, @@ -3221,14 +2933,11 @@ impl ISWbemQualifierSet { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self)._NewEnum)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Item<'a, P0>(&self, name: P0, iflags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Item(&self, name: &::windows::core::BSTR, iflags: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Item)(::windows::core::Interface::as_raw(self), name.into().abi(), iflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Item)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), iflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn Count(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3236,20 +2945,12 @@ impl ISWbemQualifierSet { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Add<'a, P0>(&self, strname: P0, varval: &super::Com::VARIANT, bpropagatestosubclass: i16, bpropagatestoinstance: i16, bisoverridable: i16, iflags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn Add(&self, strname: &::windows::core::BSTR, varval: &super::Com::VARIANT, bpropagatestosubclass: i16, bpropagatestoinstance: i16, bisoverridable: i16, iflags: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), strname.into().abi(), ::core::mem::transmute(varval), bpropagatestosubclass, bpropagatestoinstance, bisoverridable, iflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strname), ::core::mem::transmute(varval), bpropagatestosubclass, bpropagatestoinstance, bisoverridable, iflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Remove<'a, P0>(&self, strname: P0, iflags: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), strname.into().abi(), iflags).ok() + pub unsafe fn Remove(&self, strname: &::windows::core::BSTR, iflags: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strname), iflags).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -3319,19 +3020,16 @@ unsafe impl ::windows::core::Interface for ISWbemQualifierSet { pub struct ISWbemQualifierSet_Vtbl { pub base__: super::Com::IDispatch_Vtbl, pub _NewEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, iflags: i32, objwbemqualifier: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemqualifier: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Item: usize, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, icount: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, varval: *const super::Com::VARIANT, bpropagatestosubclass: i16, bpropagatestoinstance: i16, bisoverridable: i16, iflags: i32, objwbemqualifier: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, varval: *const super::Com::VARIANT, bpropagatestosubclass: i16, bpropagatestoinstance: i16, bisoverridable: i16, iflags: i32, objwbemqualifier: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Add: usize, - #[cfg(feature = "Win32_Foundation")] - pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, iflags: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Remove: usize, + pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Wmi\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3471,27 +3169,25 @@ impl ISWbemRefresher { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Count)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Add<'a, P0, P1, P2>(&self, objwbemservices: P0, bsinstancepath: P1, iflags: i32, objwbemnamedvalueset: P2) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Add<'a, P0, P1>(&self, objwbemservices: P0, bsinstancepath: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P1) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, ISWbemServicesEx>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), objwbemservices.into().abi(), bsinstancepath.into().abi(), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), objwbemservices.into().abi(), ::core::mem::transmute_copy(bsinstancepath), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn AddEnum<'a, P0, P1, P2>(&self, objwbemservices: P0, bsclassname: P1, iflags: i32, objwbemnamedvalueset: P2) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn AddEnum<'a, P0, P1>(&self, objwbemservices: P0, bsclassname: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P1) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, ISWbemServicesEx>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AddEnum)(::windows::core::Interface::as_raw(self), objwbemservices.into().abi(), bsclassname.into().abi(), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AddEnum)(::windows::core::Interface::as_raw(self), objwbemservices.into().abi(), ::core::mem::transmute_copy(bsclassname), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn Remove(&self, iindex: i32, iflags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), iindex, iflags).ok() @@ -3582,13 +3278,13 @@ pub struct ISWbemRefresher_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Item: usize, pub Count: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, icount: *mut i32) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objwbemservices: *mut ::core::ffi::c_void, bsinstancepath: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemrefreshableitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objwbemservices: *mut ::core::ffi::c_void, bsinstancepath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemrefreshableitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Add: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub AddEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objwbemservices: *mut ::core::ffi::c_void, bsclassname: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemrefreshableitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub AddEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objwbemservices: *mut ::core::ffi::c_void, bsclassname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemrefreshableitem: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] AddEnum: usize, pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iindex: i32, iflags: i32) -> ::windows::core::HRESULT, pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iflags: i32) -> ::windows::core::HRESULT, @@ -3704,219 +3400,193 @@ pub struct ISWbemSecurity_Vtbl { pub struct ISWbemServices(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ISWbemServices { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Get<'a, P0, P1>(&self, strobjectpath: P0, iflags: i32, objwbemnamedvalueset: P1) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Get<'a, P0>(&self, strobjectpath: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Get)(::windows::core::Interface::as_raw(self), strobjectpath.into().abi(), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Get)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strobjectpath), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetAsync<'a, P0, P1, P2, P3>(&self, objwbemsink: P0, strobjectpath: P1, iflags: i32, objwbemnamedvalueset: P2, objwbemasynccontext: P3) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetAsync<'a, P0, P1, P2>(&self, objwbemsink: P0, strobjectpath: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P1, objwbemasynccontext: P2) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { - (::windows::core::Interface::vtable(self).GetAsync)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), strobjectpath.into().abi(), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() + (::windows::core::Interface::vtable(self).GetAsync)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), ::core::mem::transmute_copy(strobjectpath), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Delete<'a, P0, P1>(&self, strobjectpath: P0, iflags: i32, objwbemnamedvalueset: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Delete<'a, P0>(&self, strobjectpath: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { - (::windows::core::Interface::vtable(self).Delete)(::windows::core::Interface::as_raw(self), strobjectpath.into().abi(), iflags, objwbemnamedvalueset.into().abi()).ok() + (::windows::core::Interface::vtable(self).Delete)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strobjectpath), iflags, objwbemnamedvalueset.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn DeleteAsync<'a, P0, P1, P2, P3>(&self, objwbemsink: P0, strobjectpath: P1, iflags: i32, objwbemnamedvalueset: P2, objwbemasynccontext: P3) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn DeleteAsync<'a, P0, P1, P2>(&self, objwbemsink: P0, strobjectpath: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P1, objwbemasynccontext: P2) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { - (::windows::core::Interface::vtable(self).DeleteAsync)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), strobjectpath.into().abi(), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeleteAsync)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), ::core::mem::transmute_copy(strobjectpath), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn InstancesOf<'a, P0, P1>(&self, strclass: P0, iflags: i32, objwbemnamedvalueset: P1) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn InstancesOf<'a, P0>(&self, strclass: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).InstancesOf)(::windows::core::Interface::as_raw(self), strclass.into().abi(), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).InstancesOf)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strclass), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn InstancesOfAsync<'a, P0, P1, P2, P3>(&self, objwbemsink: P0, strclass: P1, iflags: i32, objwbemnamedvalueset: P2, objwbemasynccontext: P3) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn InstancesOfAsync<'a, P0, P1, P2>(&self, objwbemsink: P0, strclass: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P1, objwbemasynccontext: P2) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { - (::windows::core::Interface::vtable(self).InstancesOfAsync)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), strclass.into().abi(), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() + (::windows::core::Interface::vtable(self).InstancesOfAsync)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), ::core::mem::transmute_copy(strclass), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn SubclassesOf<'a, P0, P1>(&self, strsuperclass: P0, iflags: i32, objwbemnamedvalueset: P1) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn SubclassesOf<'a, P0>(&self, strsuperclass: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SubclassesOf)(::windows::core::Interface::as_raw(self), strsuperclass.into().abi(), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SubclassesOf)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strsuperclass), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn SubclassesOfAsync<'a, P0, P1, P2, P3>(&self, objwbemsink: P0, strsuperclass: P1, iflags: i32, objwbemnamedvalueset: P2, objwbemasynccontext: P3) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn SubclassesOfAsync<'a, P0, P1, P2>(&self, objwbemsink: P0, strsuperclass: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P1, objwbemasynccontext: P2) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { - (::windows::core::Interface::vtable(self).SubclassesOfAsync)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), strsuperclass.into().abi(), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() + (::windows::core::Interface::vtable(self).SubclassesOfAsync)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), ::core::mem::transmute_copy(strsuperclass), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn ExecQuery<'a, P0, P1, P2>(&self, strquery: P0, strquerylanguage: P1, iflags: i32, objwbemnamedvalueset: P2) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn ExecQuery<'a, P0>(&self, strquery: &::windows::core::BSTR, strquerylanguage: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ExecQuery)(::windows::core::Interface::as_raw(self), strquery.into().abi(), strquerylanguage.into().abi(), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ExecQuery)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strquery), ::core::mem::transmute_copy(strquerylanguage), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn ExecQueryAsync<'a, P0, P1, P2, P3, P4>(&self, objwbemsink: P0, strquery: P1, strquerylanguage: P2, lflags: i32, objwbemnamedvalueset: P3, objwbemasynccontext: P4) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn ExecQueryAsync<'a, P0, P1, P2>(&self, objwbemsink: P0, strquery: &::windows::core::BSTR, strquerylanguage: &::windows::core::BSTR, lflags: i32, objwbemnamedvalueset: P1, objwbemasynccontext: P2) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { - (::windows::core::Interface::vtable(self).ExecQueryAsync)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), strquery.into().abi(), strquerylanguage.into().abi(), lflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() + (::windows::core::Interface::vtable(self).ExecQueryAsync)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), ::core::mem::transmute_copy(strquery), ::core::mem::transmute_copy(strquerylanguage), lflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn AssociatorsOf<'a, P0, P1, P2, P3, P4, P5, P6, P7>(&self, strobjectpath: P0, strassocclass: P1, strresultclass: P2, strresultrole: P3, strrole: P4, bclassesonly: i16, bschemaonly: i16, strrequiredassocqualifier: P5, strrequiredqualifier: P6, iflags: i32, objwbemnamedvalueset: P7) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn AssociatorsOf<'a, P0>(&self, strobjectpath: &::windows::core::BSTR, strassocclass: &::windows::core::BSTR, strresultclass: &::windows::core::BSTR, strresultrole: &::windows::core::BSTR, strrole: &::windows::core::BSTR, bclassesonly: i16, bschemaonly: i16, strrequiredassocqualifier: &::windows::core::BSTR, strrequiredqualifier: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P5: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P6: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P7: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AssociatorsOf)(::windows::core::Interface::as_raw(self), strobjectpath.into().abi(), strassocclass.into().abi(), strresultclass.into().abi(), strresultrole.into().abi(), strrole.into().abi(), bclassesonly, bschemaonly, strrequiredassocqualifier.into().abi(), strrequiredqualifier.into().abi(), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AssociatorsOf)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strobjectpath), ::core::mem::transmute_copy(strassocclass), ::core::mem::transmute_copy(strresultclass), ::core::mem::transmute_copy(strresultrole), ::core::mem::transmute_copy(strrole), bclassesonly, bschemaonly, ::core::mem::transmute_copy(strrequiredassocqualifier), ::core::mem::transmute_copy(strrequiredqualifier), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn AssociatorsOfAsync<'a, P0, P1, P2, P3, P4, P5, P6, P7, P8, P9>(&self, objwbemsink: P0, strobjectpath: P1, strassocclass: P2, strresultclass: P3, strresultrole: P4, strrole: P5, bclassesonly: i16, bschemaonly: i16, strrequiredassocqualifier: P6, strrequiredqualifier: P7, iflags: i32, objwbemnamedvalueset: P8, objwbemasynccontext: P9) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn AssociatorsOfAsync<'a, P0, P1, P2>(&self, objwbemsink: P0, strobjectpath: &::windows::core::BSTR, strassocclass: &::windows::core::BSTR, strresultclass: &::windows::core::BSTR, strresultrole: &::windows::core::BSTR, strrole: &::windows::core::BSTR, bclassesonly: i16, bschemaonly: i16, strrequiredassocqualifier: &::windows::core::BSTR, strrequiredqualifier: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P1, objwbemasynccontext: P2) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P5: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P6: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P7: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P8: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P9: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { - (::windows::core::Interface::vtable(self).AssociatorsOfAsync)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), strobjectpath.into().abi(), strassocclass.into().abi(), strresultclass.into().abi(), strresultrole.into().abi(), strrole.into().abi(), bclassesonly, bschemaonly, strrequiredassocqualifier.into().abi(), strrequiredqualifier.into().abi(), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() + (::windows::core::Interface::vtable(self).AssociatorsOfAsync)( + ::windows::core::Interface::as_raw(self), + objwbemsink.into().abi(), + ::core::mem::transmute_copy(strobjectpath), + ::core::mem::transmute_copy(strassocclass), + ::core::mem::transmute_copy(strresultclass), + ::core::mem::transmute_copy(strresultrole), + ::core::mem::transmute_copy(strrole), + bclassesonly, + bschemaonly, + ::core::mem::transmute_copy(strrequiredassocqualifier), + ::core::mem::transmute_copy(strrequiredqualifier), + iflags, + objwbemnamedvalueset.into().abi(), + objwbemasynccontext.into().abi(), + ) + .ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn ReferencesTo<'a, P0, P1, P2, P3, P4>(&self, strobjectpath: P0, strresultclass: P1, strrole: P2, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: P3, iflags: i32, objwbemnamedvalueset: P4) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn ReferencesTo<'a, P0>(&self, strobjectpath: &::windows::core::BSTR, strresultclass: &::windows::core::BSTR, strrole: &::windows::core::BSTR, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ReferencesTo)(::windows::core::Interface::as_raw(self), strobjectpath.into().abi(), strresultclass.into().abi(), strrole.into().abi(), bclassesonly, bschemaonly, strrequiredqualifier.into().abi(), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ReferencesTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strobjectpath), ::core::mem::transmute_copy(strresultclass), ::core::mem::transmute_copy(strrole), bclassesonly, bschemaonly, ::core::mem::transmute_copy(strrequiredqualifier), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn ReferencesToAsync<'a, P0, P1, P2, P3, P4, P5, P6>(&self, objwbemsink: P0, strobjectpath: P1, strresultclass: P2, strrole: P3, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: P4, iflags: i32, objwbemnamedvalueset: P5, objwbemasynccontext: P6) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn ReferencesToAsync<'a, P0, P1, P2>(&self, objwbemsink: P0, strobjectpath: &::windows::core::BSTR, strresultclass: &::windows::core::BSTR, strrole: &::windows::core::BSTR, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P1, objwbemasynccontext: P2) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P5: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P6: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { - (::windows::core::Interface::vtable(self).ReferencesToAsync)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), strobjectpath.into().abi(), strresultclass.into().abi(), strrole.into().abi(), bclassesonly, bschemaonly, strrequiredqualifier.into().abi(), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() + (::windows::core::Interface::vtable(self).ReferencesToAsync)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), ::core::mem::transmute_copy(strobjectpath), ::core::mem::transmute_copy(strresultclass), ::core::mem::transmute_copy(strrole), bclassesonly, bschemaonly, ::core::mem::transmute_copy(strrequiredqualifier), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn ExecNotificationQuery<'a, P0, P1, P2>(&self, strquery: P0, strquerylanguage: P1, iflags: i32, objwbemnamedvalueset: P2) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn ExecNotificationQuery<'a, P0>(&self, strquery: &::windows::core::BSTR, strquerylanguage: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ExecNotificationQuery)(::windows::core::Interface::as_raw(self), strquery.into().abi(), strquerylanguage.into().abi(), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ExecNotificationQuery)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strquery), ::core::mem::transmute_copy(strquerylanguage), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn ExecNotificationQueryAsync<'a, P0, P1, P2, P3, P4>(&self, objwbemsink: P0, strquery: P1, strquerylanguage: P2, iflags: i32, objwbemnamedvalueset: P3, objwbemasynccontext: P4) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn ExecNotificationQueryAsync<'a, P0, P1, P2>(&self, objwbemsink: P0, strquery: &::windows::core::BSTR, strquerylanguage: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P1, objwbemasynccontext: P2) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { - (::windows::core::Interface::vtable(self).ExecNotificationQueryAsync)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), strquery.into().abi(), strquerylanguage.into().abi(), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() + (::windows::core::Interface::vtable(self).ExecNotificationQueryAsync)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), ::core::mem::transmute_copy(strquery), ::core::mem::transmute_copy(strquerylanguage), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn ExecMethod<'a, P0, P1, P2, P3>(&self, strobjectpath: P0, strmethodname: P1, objwbeminparameters: P2, iflags: i32, objwbemnamedvalueset: P3) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn ExecMethod<'a, P0, P1>(&self, strobjectpath: &::windows::core::BSTR, strmethodname: &::windows::core::BSTR, objwbeminparameters: P0, iflags: i32, objwbemnamedvalueset: P1) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ExecMethod)(::windows::core::Interface::as_raw(self), strobjectpath.into().abi(), strmethodname.into().abi(), objwbeminparameters.into().abi(), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ExecMethod)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strobjectpath), ::core::mem::transmute_copy(strmethodname), objwbeminparameters.into().abi(), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn ExecMethodAsync<'a, P0, P1, P2, P3, P4, P5>(&self, objwbemsink: P0, strobjectpath: P1, strmethodname: P2, objwbeminparameters: P3, iflags: i32, objwbemnamedvalueset: P4, objwbemasynccontext: P5) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn ExecMethodAsync<'a, P0, P1, P2, P3>(&self, objwbemsink: P0, strobjectpath: &::windows::core::BSTR, strmethodname: &::windows::core::BSTR, objwbeminparameters: P1, iflags: i32, objwbemnamedvalueset: P2, objwbemasynccontext: P3) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, P3: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P5: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { - (::windows::core::Interface::vtable(self).ExecMethodAsync)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), strobjectpath.into().abi(), strmethodname.into().abi(), objwbeminparameters.into().abi(), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() + (::windows::core::Interface::vtable(self).ExecMethodAsync)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), ::core::mem::transmute_copy(strobjectpath), ::core::mem::transmute_copy(strmethodname), objwbeminparameters.into().abi(), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3991,92 +3661,77 @@ unsafe impl ::windows::core::Interface for ISWbemServices { #[doc(hidden)] pub struct ISWbemServices_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Get: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub Get: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Get: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub GetAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub GetAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] GetAsync: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Delete: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub DeleteAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub DeleteAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] DeleteAsync: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub InstancesOf: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strclass: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemobjectset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub InstancesOf: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemobjectset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] InstancesOf: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub InstancesOfAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strclass: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub InstancesOfAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] InstancesOfAsync: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub SubclassesOf: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strsuperclass: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemobjectset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub SubclassesOf: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strsuperclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemobjectset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] SubclassesOf: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub SubclassesOfAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strsuperclass: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub SubclassesOfAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strsuperclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] SubclassesOfAsync: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub ExecQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strquery: ::core::mem::ManuallyDrop, strquerylanguage: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemobjectset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub ExecQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strquery: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strquerylanguage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemobjectset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] ExecQuery: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub ExecQueryAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strquery: ::core::mem::ManuallyDrop, strquerylanguage: ::core::mem::ManuallyDrop, lflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub ExecQueryAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strquery: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strquerylanguage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] ExecQueryAsync: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub AssociatorsOf: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop, strassocclass: ::core::mem::ManuallyDrop, strresultclass: ::core::mem::ManuallyDrop, strresultrole: ::core::mem::ManuallyDrop, strrole: ::core::mem::ManuallyDrop, bclassesonly: i16, bschemaonly: i16, strrequiredassocqualifier: ::core::mem::ManuallyDrop, strrequiredqualifier: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemobjectset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub AssociatorsOf: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strassocclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strresultclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strresultrole: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strrole: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bclassesonly: i16, bschemaonly: i16, strrequiredassocqualifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strrequiredqualifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemobjectset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] AssociatorsOf: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub AssociatorsOfAsync: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - objwbemsink: *mut ::core::ffi::c_void, - strobjectpath: ::core::mem::ManuallyDrop, - strassocclass: ::core::mem::ManuallyDrop, - strresultclass: ::core::mem::ManuallyDrop, - strresultrole: ::core::mem::ManuallyDrop, - strrole: ::core::mem::ManuallyDrop, - bclassesonly: i16, - bschemaonly: i16, - strrequiredassocqualifier: ::core::mem::ManuallyDrop, - strrequiredqualifier: ::core::mem::ManuallyDrop, - iflags: i32, - objwbemnamedvalueset: *mut ::core::ffi::c_void, - objwbemasynccontext: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub AssociatorsOfAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strassocclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strresultclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strresultrole: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strrole: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bclassesonly: i16, bschemaonly: i16, strrequiredassocqualifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strrequiredqualifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] AssociatorsOfAsync: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub ReferencesTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop, strresultclass: ::core::mem::ManuallyDrop, strrole: ::core::mem::ManuallyDrop, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemobjectset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub ReferencesTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strresultclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strrole: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemobjectset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] ReferencesTo: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub ReferencesToAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop, strresultclass: ::core::mem::ManuallyDrop, strrole: ::core::mem::ManuallyDrop, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub ReferencesToAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strresultclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strrole: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] ReferencesToAsync: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub ExecNotificationQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strquery: ::core::mem::ManuallyDrop, strquerylanguage: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemeventsource: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub ExecNotificationQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strquery: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strquerylanguage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemeventsource: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] ExecNotificationQuery: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub ExecNotificationQueryAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strquery: ::core::mem::ManuallyDrop, strquerylanguage: ::core::mem::ManuallyDrop, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub ExecNotificationQueryAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strquery: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strquerylanguage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] ExecNotificationQueryAsync: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub ExecMethod: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop, strmethodname: ::core::mem::ManuallyDrop, objwbeminparameters: *mut ::core::ffi::c_void, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemoutparameters: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub ExecMethod: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strmethodname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, objwbeminparameters: *mut ::core::ffi::c_void, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemoutparameters: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] ExecMethod: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub ExecMethodAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop, strmethodname: ::core::mem::ManuallyDrop, objwbeminparameters: *mut ::core::ffi::c_void, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub ExecMethodAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objwbemsink: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strmethodname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, objwbeminparameters: *mut ::core::ffi::c_void, iflags: i32, objwbemnamedvalueset: *mut ::core::ffi::c_void, objwbemasynccontext: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] ExecMethodAsync: usize, #[cfg(feature = "Win32_System_Com")] pub Security_: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objwbemsecurity: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -4089,219 +3744,193 @@ pub struct ISWbemServices_Vtbl { pub struct ISWbemServicesEx(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ISWbemServicesEx { - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Get<'a, P0, P1>(&self, strobjectpath: P0, iflags: i32, objwbemnamedvalueset: P1) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Get<'a, P0>(&self, strobjectpath: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), strobjectpath.into().abi(), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Get)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strobjectpath), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn GetAsync<'a, P0, P1, P2, P3>(&self, objwbemsink: P0, strobjectpath: P1, iflags: i32, objwbemnamedvalueset: P2, objwbemasynccontext: P3) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn GetAsync<'a, P0, P1, P2>(&self, objwbemsink: P0, strobjectpath: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P1, objwbemasynccontext: P2) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { - (::windows::core::Interface::vtable(self).base__.GetAsync)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), strobjectpath.into().abi(), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.GetAsync)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), ::core::mem::transmute_copy(strobjectpath), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Delete<'a, P0, P1>(&self, strobjectpath: P0, iflags: i32, objwbemnamedvalueset: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Delete<'a, P0>(&self, strobjectpath: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { - (::windows::core::Interface::vtable(self).base__.Delete)(::windows::core::Interface::as_raw(self), strobjectpath.into().abi(), iflags, objwbemnamedvalueset.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.Delete)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strobjectpath), iflags, objwbemnamedvalueset.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn DeleteAsync<'a, P0, P1, P2, P3>(&self, objwbemsink: P0, strobjectpath: P1, iflags: i32, objwbemnamedvalueset: P2, objwbemasynccontext: P3) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn DeleteAsync<'a, P0, P1, P2>(&self, objwbemsink: P0, strobjectpath: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P1, objwbemasynccontext: P2) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { - (::windows::core::Interface::vtable(self).base__.DeleteAsync)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), strobjectpath.into().abi(), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.DeleteAsync)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), ::core::mem::transmute_copy(strobjectpath), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn InstancesOf<'a, P0, P1>(&self, strclass: P0, iflags: i32, objwbemnamedvalueset: P1) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn InstancesOf<'a, P0>(&self, strclass: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.InstancesOf)(::windows::core::Interface::as_raw(self), strclass.into().abi(), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.InstancesOf)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strclass), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn InstancesOfAsync<'a, P0, P1, P2, P3>(&self, objwbemsink: P0, strclass: P1, iflags: i32, objwbemnamedvalueset: P2, objwbemasynccontext: P3) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn InstancesOfAsync<'a, P0, P1, P2>(&self, objwbemsink: P0, strclass: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P1, objwbemasynccontext: P2) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { - (::windows::core::Interface::vtable(self).base__.InstancesOfAsync)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), strclass.into().abi(), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.InstancesOfAsync)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), ::core::mem::transmute_copy(strclass), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn SubclassesOf<'a, P0, P1>(&self, strsuperclass: P0, iflags: i32, objwbemnamedvalueset: P1) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn SubclassesOf<'a, P0>(&self, strsuperclass: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.SubclassesOf)(::windows::core::Interface::as_raw(self), strsuperclass.into().abi(), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.SubclassesOf)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strsuperclass), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn SubclassesOfAsync<'a, P0, P1, P2, P3>(&self, objwbemsink: P0, strsuperclass: P1, iflags: i32, objwbemnamedvalueset: P2, objwbemasynccontext: P3) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn SubclassesOfAsync<'a, P0, P1, P2>(&self, objwbemsink: P0, strsuperclass: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P1, objwbemasynccontext: P2) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { - (::windows::core::Interface::vtable(self).base__.SubclassesOfAsync)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), strsuperclass.into().abi(), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.SubclassesOfAsync)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), ::core::mem::transmute_copy(strsuperclass), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn ExecQuery<'a, P0, P1, P2>(&self, strquery: P0, strquerylanguage: P1, iflags: i32, objwbemnamedvalueset: P2) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn ExecQuery<'a, P0>(&self, strquery: &::windows::core::BSTR, strquerylanguage: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ExecQuery)(::windows::core::Interface::as_raw(self), strquery.into().abi(), strquerylanguage.into().abi(), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ExecQuery)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strquery), ::core::mem::transmute_copy(strquerylanguage), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn ExecQueryAsync<'a, P0, P1, P2, P3, P4>(&self, objwbemsink: P0, strquery: P1, strquerylanguage: P2, lflags: i32, objwbemnamedvalueset: P3, objwbemasynccontext: P4) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn ExecQueryAsync<'a, P0, P1, P2>(&self, objwbemsink: P0, strquery: &::windows::core::BSTR, strquerylanguage: &::windows::core::BSTR, lflags: i32, objwbemnamedvalueset: P1, objwbemasynccontext: P2) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { - (::windows::core::Interface::vtable(self).base__.ExecQueryAsync)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), strquery.into().abi(), strquerylanguage.into().abi(), lflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.ExecQueryAsync)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), ::core::mem::transmute_copy(strquery), ::core::mem::transmute_copy(strquerylanguage), lflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn AssociatorsOf<'a, P0, P1, P2, P3, P4, P5, P6, P7>(&self, strobjectpath: P0, strassocclass: P1, strresultclass: P2, strresultrole: P3, strrole: P4, bclassesonly: i16, bschemaonly: i16, strrequiredassocqualifier: P5, strrequiredqualifier: P6, iflags: i32, objwbemnamedvalueset: P7) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn AssociatorsOf<'a, P0>(&self, strobjectpath: &::windows::core::BSTR, strassocclass: &::windows::core::BSTR, strresultclass: &::windows::core::BSTR, strresultrole: &::windows::core::BSTR, strrole: &::windows::core::BSTR, bclassesonly: i16, bschemaonly: i16, strrequiredassocqualifier: &::windows::core::BSTR, strrequiredqualifier: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P5: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P6: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P7: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.AssociatorsOf)(::windows::core::Interface::as_raw(self), strobjectpath.into().abi(), strassocclass.into().abi(), strresultclass.into().abi(), strresultrole.into().abi(), strrole.into().abi(), bclassesonly, bschemaonly, strrequiredassocqualifier.into().abi(), strrequiredqualifier.into().abi(), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.AssociatorsOf)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strobjectpath), ::core::mem::transmute_copy(strassocclass), ::core::mem::transmute_copy(strresultclass), ::core::mem::transmute_copy(strresultrole), ::core::mem::transmute_copy(strrole), bclassesonly, bschemaonly, ::core::mem::transmute_copy(strrequiredassocqualifier), ::core::mem::transmute_copy(strrequiredqualifier), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn AssociatorsOfAsync<'a, P0, P1, P2, P3, P4, P5, P6, P7, P8, P9>(&self, objwbemsink: P0, strobjectpath: P1, strassocclass: P2, strresultclass: P3, strresultrole: P4, strrole: P5, bclassesonly: i16, bschemaonly: i16, strrequiredassocqualifier: P6, strrequiredqualifier: P7, iflags: i32, objwbemnamedvalueset: P8, objwbemasynccontext: P9) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn AssociatorsOfAsync<'a, P0, P1, P2>(&self, objwbemsink: P0, strobjectpath: &::windows::core::BSTR, strassocclass: &::windows::core::BSTR, strresultclass: &::windows::core::BSTR, strresultrole: &::windows::core::BSTR, strrole: &::windows::core::BSTR, bclassesonly: i16, bschemaonly: i16, strrequiredassocqualifier: &::windows::core::BSTR, strrequiredqualifier: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P1, objwbemasynccontext: P2) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P5: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P6: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P7: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P8: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P9: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { - (::windows::core::Interface::vtable(self).base__.AssociatorsOfAsync)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), strobjectpath.into().abi(), strassocclass.into().abi(), strresultclass.into().abi(), strresultrole.into().abi(), strrole.into().abi(), bclassesonly, bschemaonly, strrequiredassocqualifier.into().abi(), strrequiredqualifier.into().abi(), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AssociatorsOfAsync)( + ::windows::core::Interface::as_raw(self), + objwbemsink.into().abi(), + ::core::mem::transmute_copy(strobjectpath), + ::core::mem::transmute_copy(strassocclass), + ::core::mem::transmute_copy(strresultclass), + ::core::mem::transmute_copy(strresultrole), + ::core::mem::transmute_copy(strrole), + bclassesonly, + bschemaonly, + ::core::mem::transmute_copy(strrequiredassocqualifier), + ::core::mem::transmute_copy(strrequiredqualifier), + iflags, + objwbemnamedvalueset.into().abi(), + objwbemasynccontext.into().abi(), + ) + .ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn ReferencesTo<'a, P0, P1, P2, P3, P4>(&self, strobjectpath: P0, strresultclass: P1, strrole: P2, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: P3, iflags: i32, objwbemnamedvalueset: P4) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn ReferencesTo<'a, P0>(&self, strobjectpath: &::windows::core::BSTR, strresultclass: &::windows::core::BSTR, strrole: &::windows::core::BSTR, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ReferencesTo)(::windows::core::Interface::as_raw(self), strobjectpath.into().abi(), strresultclass.into().abi(), strrole.into().abi(), bclassesonly, bschemaonly, strrequiredqualifier.into().abi(), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ReferencesTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strobjectpath), ::core::mem::transmute_copy(strresultclass), ::core::mem::transmute_copy(strrole), bclassesonly, bschemaonly, ::core::mem::transmute_copy(strrequiredqualifier), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn ReferencesToAsync<'a, P0, P1, P2, P3, P4, P5, P6>(&self, objwbemsink: P0, strobjectpath: P1, strresultclass: P2, strrole: P3, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: P4, iflags: i32, objwbemnamedvalueset: P5, objwbemasynccontext: P6) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn ReferencesToAsync<'a, P0, P1, P2>(&self, objwbemsink: P0, strobjectpath: &::windows::core::BSTR, strresultclass: &::windows::core::BSTR, strrole: &::windows::core::BSTR, bclassesonly: i16, bschemaonly: i16, strrequiredqualifier: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P1, objwbemasynccontext: P2) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P5: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P6: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { - (::windows::core::Interface::vtable(self).base__.ReferencesToAsync)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), strobjectpath.into().abi(), strresultclass.into().abi(), strrole.into().abi(), bclassesonly, bschemaonly, strrequiredqualifier.into().abi(), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.ReferencesToAsync)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), ::core::mem::transmute_copy(strobjectpath), ::core::mem::transmute_copy(strresultclass), ::core::mem::transmute_copy(strrole), bclassesonly, bschemaonly, ::core::mem::transmute_copy(strrequiredqualifier), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn ExecNotificationQuery<'a, P0, P1, P2>(&self, strquery: P0, strquerylanguage: P1, iflags: i32, objwbemnamedvalueset: P2) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn ExecNotificationQuery<'a, P0>(&self, strquery: &::windows::core::BSTR, strquerylanguage: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ExecNotificationQuery)(::windows::core::Interface::as_raw(self), strquery.into().abi(), strquerylanguage.into().abi(), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ExecNotificationQuery)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strquery), ::core::mem::transmute_copy(strquerylanguage), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn ExecNotificationQueryAsync<'a, P0, P1, P2, P3, P4>(&self, objwbemsink: P0, strquery: P1, strquerylanguage: P2, iflags: i32, objwbemnamedvalueset: P3, objwbemasynccontext: P4) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn ExecNotificationQueryAsync<'a, P0, P1, P2>(&self, objwbemsink: P0, strquery: &::windows::core::BSTR, strquerylanguage: &::windows::core::BSTR, iflags: i32, objwbemnamedvalueset: P1, objwbemasynccontext: P2) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { - (::windows::core::Interface::vtable(self).base__.ExecNotificationQueryAsync)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), strquery.into().abi(), strquerylanguage.into().abi(), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.ExecNotificationQueryAsync)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), ::core::mem::transmute_copy(strquery), ::core::mem::transmute_copy(strquerylanguage), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn ExecMethod<'a, P0, P1, P2, P3>(&self, strobjectpath: P0, strmethodname: P1, objwbeminparameters: P2, iflags: i32, objwbemnamedvalueset: P3) -> ::windows::core::Result + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn ExecMethod<'a, P0, P1>(&self, strobjectpath: &::windows::core::BSTR, strmethodname: &::windows::core::BSTR, objwbeminparameters: P0, iflags: i32, objwbemnamedvalueset: P1) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ExecMethod)(::windows::core::Interface::as_raw(self), strobjectpath.into().abi(), strmethodname.into().abi(), objwbeminparameters.into().abi(), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ExecMethod)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strobjectpath), ::core::mem::transmute_copy(strmethodname), objwbeminparameters.into().abi(), iflags, objwbemnamedvalueset.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn ExecMethodAsync<'a, P0, P1, P2, P3, P4, P5>(&self, objwbemsink: P0, strobjectpath: P1, strmethodname: P2, objwbeminparameters: P3, iflags: i32, objwbemnamedvalueset: P4, objwbemasynccontext: P5) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn ExecMethodAsync<'a, P0, P1, P2, P3>(&self, objwbemsink: P0, strobjectpath: &::windows::core::BSTR, strmethodname: &::windows::core::BSTR, objwbeminparameters: P1, iflags: i32, objwbemnamedvalueset: P2, objwbemasynccontext: P3) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, + P2: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, P3: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, - P5: ::std::convert::Into<::windows::core::InParam<'a, super::Com::IDispatch>>, { - (::windows::core::Interface::vtable(self).base__.ExecMethodAsync)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), strobjectpath.into().abi(), strmethodname.into().abi(), objwbeminparameters.into().abi(), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.ExecMethodAsync)(::windows::core::Interface::as_raw(self), objwbemsink.into().abi(), ::core::mem::transmute_copy(strobjectpath), ::core::mem::transmute_copy(strmethodname), objwbeminparameters.into().abi(), iflags, objwbemnamedvalueset.into().abi(), objwbemasynccontext.into().abi()).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4634,11 +4263,9 @@ pub struct IUnsecuredApartment_Vtbl { pub struct IWMIExtension(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IWMIExtension { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn WMIObjectPath(&self) -> ::windows::core::Result { + pub unsafe fn WMIObjectPath(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).WMIObjectPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).WMIObjectPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4719,10 +4346,7 @@ unsafe impl ::windows::core::Interface for IWMIExtension { #[doc(hidden)] pub struct IWMIExtension_Vtbl { pub base__: super::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub WMIObjectPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strwmiobjectpath: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - WMIObjectPath: usize, + pub WMIObjectPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strwmiobjectpath: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub GetWMIObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, objwmiobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -4931,11 +4555,9 @@ impl IWbemCallResult { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetResultObject)(::windows::core::Interface::as_raw(self), ltimeout, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetResultString(&self, ltimeout: i32) -> ::windows::core::Result { + pub unsafe fn GetResultString(&self, ltimeout: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetResultString)(::windows::core::Interface::as_raw(self), ltimeout, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetResultString)(::windows::core::Interface::as_raw(self), ltimeout, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetResultServices(&self, ltimeout: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4986,10 +4608,7 @@ unsafe impl ::windows::core::Interface for IWbemCallResult { pub struct IWbemCallResult_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub GetResultObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ltimeout: i32, ppresultobject: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetResultString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ltimeout: i32, pstrresultstring: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetResultString: usize, + pub GetResultString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ltimeout: i32, pstrresultstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetResultServices: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ltimeout: i32, ppservices: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetCallStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ltimeout: i32, plstatus: *mut i32) -> ::windows::core::HRESULT, } @@ -5037,7 +4656,7 @@ impl IWbemClassObject { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Next(&self, lflags: i32, strname: &mut super::super::Foundation::BSTR, pval: &mut super::Com::VARIANT, ptype: &mut i32, plflavor: &mut i32) -> ::windows::core::Result<()> { + pub unsafe fn Next(&self, lflags: i32, strname: &mut ::windows::core::BSTR, pval: &mut super::Com::VARIANT, ptype: &mut i32, plflavor: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Next)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute(strname), ::core::mem::transmute(pval), ::core::mem::transmute(ptype), ::core::mem::transmute(plflavor)).ok() } pub unsafe fn EndEnumeration(&self) -> ::windows::core::Result<()> { @@ -5054,11 +4673,9 @@ impl IWbemClassObject { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Clone)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetObjectText(&self, lflags: i32) -> ::windows::core::Result { + pub unsafe fn GetObjectText(&self, lflags: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetObjectText)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetObjectText)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SpawnDerivedClass(&self, lflags: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5074,14 +4691,12 @@ impl IWbemClassObject { { (::windows::core::Interface::vtable(self).CompareTo)(::windows::core::Interface::as_raw(self), lflags, pcompareto.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPropertyOrigin<'a, P0>(&self, wszname: P0) -> ::windows::core::Result + pub unsafe fn GetPropertyOrigin<'a, P0>(&self, wszname: P0) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::PCWSTR>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetPropertyOrigin)(::windows::core::Interface::as_raw(self), wszname.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetPropertyOrigin)(::windows::core::Interface::as_raw(self), wszname.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn InheritsFrom<'a, P0>(&self, strancestor: P0) -> ::windows::core::Result<()> where @@ -5112,9 +4727,7 @@ impl IWbemClassObject { pub unsafe fn BeginMethodEnumeration(&self, lenumflags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).BeginMethodEnumeration)(::windows::core::Interface::as_raw(self), lenumflags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NextMethod(&self, lflags: i32, pstrname: &mut super::super::Foundation::BSTR, ppinsignature: &mut ::core::option::Option, ppoutsignature: &mut ::core::option::Option) -> ::windows::core::Result<()> { + pub unsafe fn NextMethod(&self, lflags: i32, pstrname: &mut ::windows::core::BSTR, ppinsignature: &mut ::core::option::Option, ppoutsignature: &mut ::core::option::Option) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).NextMethod)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute(pstrname), ::core::mem::transmute(ppinsignature), ::core::mem::transmute(ppoutsignature)).ok() } pub unsafe fn EndMethodEnumeration(&self) -> ::windows::core::Result<()> { @@ -5127,14 +4740,12 @@ impl IWbemClassObject { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetMethodQualifierSet)(::windows::core::Interface::as_raw(self), wszmethod.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetMethodOrigin<'a, P0>(&self, wszmethodname: P0) -> ::windows::core::Result + pub unsafe fn GetMethodOrigin<'a, P0>(&self, wszmethodname: P0) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::PCWSTR>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetMethodOrigin)(::windows::core::Interface::as_raw(self), wszmethodname.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetMethodOrigin)(::windows::core::Interface::as_raw(self), wszmethodname.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -5192,71 +4803,45 @@ pub struct IWbemClassObject_Vtbl { GetNames: usize, pub BeginEnumeration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lenumflags: i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, strname: *mut super::super::Foundation::BSTR, pval: *mut super::Com::VARIANT, ptype: *mut i32, plflavor: *mut i32) -> ::windows::core::HRESULT, + pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, strname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pval: *mut super::Com::VARIANT, ptype: *mut i32, plflavor: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Next: usize, pub EndEnumeration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetPropertyQualifierSet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszproperty: ::windows::core::PCWSTR, ppqualset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppcopy: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetObjectText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, pstrobjecttext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetObjectText: usize, + pub GetObjectText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, pstrobjecttext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SpawnDerivedClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, ppnewclass: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub SpawnInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, ppnewinstance: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub CompareTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, pcompareto: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetPropertyOrigin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszname: ::windows::core::PCWSTR, pstrclassname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPropertyOrigin: usize, + pub GetPropertyOrigin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszname: ::windows::core::PCWSTR, pstrclassname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub InheritsFrom: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strancestor: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, pub GetMethod: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszname: ::windows::core::PCWSTR, lflags: i32, ppinsignature: *mut *mut ::core::ffi::c_void, ppoutsignature: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub PutMethod: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszname: ::windows::core::PCWSTR, lflags: i32, pinsignature: *mut ::core::ffi::c_void, poutsignature: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub DeleteMethod: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszname: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, pub BeginMethodEnumeration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lenumflags: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub NextMethod: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, pstrname: *mut super::super::Foundation::BSTR, ppinsignature: *mut *mut ::core::ffi::c_void, ppoutsignature: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - NextMethod: usize, + pub NextMethod: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, pstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppinsignature: *mut *mut ::core::ffi::c_void, ppoutsignature: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub EndMethodEnumeration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetMethodQualifierSet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszmethod: ::windows::core::PCWSTR, ppqualset: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetMethodOrigin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszmethodname: ::windows::core::PCWSTR, pstrclassname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetMethodOrigin: usize, + pub GetMethodOrigin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, wszmethodname: ::windows::core::PCWSTR, pstrclassname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] #[repr(transparent)] pub struct IWbemClientConnectionTransport(::windows::core::IUnknown); impl IWbemClientConnectionTransport { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Open<'a, P0, P1, P2, P3, P4, P5, T>(&self, straddresstype: P0, abbinaryaddress: &[u8], strobject: P1, struser: P2, strpassword: P3, strlocale: P4, lflags: i32, pctx: P5, pcallres: &mut ::core::option::Option) -> ::windows::core::Result + pub unsafe fn Open<'a, P0, T>(&self, straddresstype: &::windows::core::BSTR, abbinaryaddress: &[u8], strobject: &::windows::core::BSTR, struser: &::windows::core::BSTR, strpassword: &::windows::core::BSTR, strlocale: &::windows::core::BSTR, lflags: i32, pctx: P0, pcallres: &mut ::core::option::Option) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P5: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, T: ::windows::core::Interface, { let mut result__ = ::core::option::Option::None; - (::windows::core::Interface::vtable(self).Open)(::windows::core::Interface::as_raw(self), straddresstype.into().abi(), abbinaryaddress.len() as _, ::core::mem::transmute(abbinaryaddress.as_ptr()), strobject.into().abi(), struser.into().abi(), strpassword.into().abi(), strlocale.into().abi(), lflags, pctx.into().abi(), &::IID, &mut result__ as *mut _ as *mut _, ::core::mem::transmute(pcallres)).and_some(result__) + (::windows::core::Interface::vtable(self).Open)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(straddresstype), abbinaryaddress.len() as _, ::core::mem::transmute(abbinaryaddress.as_ptr()), ::core::mem::transmute_copy(strobject), ::core::mem::transmute_copy(struser), ::core::mem::transmute_copy(strpassword), ::core::mem::transmute_copy(strlocale), lflags, pctx.into().abi(), &::IID, &mut result__ as *mut _ as *mut _, ::core::mem::transmute(pcallres)).and_some(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OpenAsync<'a, P0, P1, P2, P3, P4, P5, P6>(&self, straddresstype: P0, abbinaryaddress: &[u8], strobject: P1, struser: P2, strpassword: P3, strlocale: P4, lflags: i32, pctx: P5, riid: &::windows::core::GUID, presponsehandler: P6) -> ::windows::core::Result<()> + pub unsafe fn OpenAsync<'a, P0, P1>(&self, straddresstype: &::windows::core::BSTR, abbinaryaddress: &[u8], strobject: &::windows::core::BSTR, struser: &::windows::core::BSTR, strpassword: &::windows::core::BSTR, strlocale: &::windows::core::BSTR, lflags: i32, pctx: P0, riid: &::windows::core::GUID, presponsehandler: P1) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P5: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, - P6: ::std::convert::Into<::windows::core::InParam<'a, IWbemObjectSink>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, IWbemObjectSink>>, { - (::windows::core::Interface::vtable(self).OpenAsync)(::windows::core::Interface::as_raw(self), straddresstype.into().abi(), abbinaryaddress.len() as _, ::core::mem::transmute(abbinaryaddress.as_ptr()), strobject.into().abi(), struser.into().abi(), strpassword.into().abi(), strlocale.into().abi(), lflags, pctx.into().abi(), ::core::mem::transmute(riid), presponsehandler.into().abi()).ok() + (::windows::core::Interface::vtable(self).OpenAsync)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(straddresstype), abbinaryaddress.len() as _, ::core::mem::transmute(abbinaryaddress.as_ptr()), ::core::mem::transmute_copy(strobject), ::core::mem::transmute_copy(struser), ::core::mem::transmute_copy(strpassword), ::core::mem::transmute_copy(strlocale), lflags, pctx.into().abi(), ::core::mem::transmute(riid), presponsehandler.into().abi()).ok() } pub unsafe fn Cancel<'a, P0>(&self, lflags: i32, phandler: P0) -> ::windows::core::Result<()> where @@ -5304,34 +4889,20 @@ unsafe impl ::windows::core::Interface for IWbemClientConnectionTransport { #[doc(hidden)] pub struct IWbemClientConnectionTransport_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub Open: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, straddresstype: ::core::mem::ManuallyDrop, dwbinaryaddresslength: u32, abbinaryaddress: *const u8, strobject: ::core::mem::ManuallyDrop, struser: ::core::mem::ManuallyDrop, strpassword: ::core::mem::ManuallyDrop, strlocale: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, riid: *const ::windows::core::GUID, pinterface: *mut *mut ::core::ffi::c_void, pcallres: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Open: usize, - #[cfg(feature = "Win32_Foundation")] - pub OpenAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, straddresstype: ::core::mem::ManuallyDrop, dwbinaryaddresslength: u32, abbinaryaddress: *const u8, strobject: ::core::mem::ManuallyDrop, struser: ::core::mem::ManuallyDrop, strpassword: ::core::mem::ManuallyDrop, strlocale: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, riid: *const ::windows::core::GUID, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OpenAsync: usize, + pub Open: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, straddresstype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwbinaryaddresslength: u32, abbinaryaddress: *const u8, strobject: ::core::mem::ManuallyDrop<::windows::core::BSTR>, struser: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strlocale: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, riid: *const ::windows::core::GUID, pinterface: *mut *mut ::core::ffi::c_void, pcallres: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub OpenAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, straddresstype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwbinaryaddresslength: u32, abbinaryaddress: *const u8, strobject: ::core::mem::ManuallyDrop<::windows::core::BSTR>, struser: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strlocale: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, riid: *const ::windows::core::GUID, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, phandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] #[repr(transparent)] pub struct IWbemClientTransport(::windows::core::IUnknown); impl IWbemClientTransport { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ConnectServer<'a, P0, P1, P2, P3, P4, P5, P6>(&self, straddresstype: P0, abbinaryaddress: &[u8], strnetworkresource: P1, struser: P2, strpassword: P3, strlocale: P4, lsecurityflags: i32, strauthority: P5, pctx: P6) -> ::windows::core::Result + pub unsafe fn ConnectServer<'a, P0>(&self, straddresstype: &::windows::core::BSTR, abbinaryaddress: &[u8], strnetworkresource: &::windows::core::BSTR, struser: &::windows::core::BSTR, strpassword: &::windows::core::BSTR, strlocale: &::windows::core::BSTR, lsecurityflags: i32, strauthority: &::windows::core::BSTR, pctx: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P5: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P6: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ConnectServer)(::windows::core::Interface::as_raw(self), straddresstype.into().abi(), abbinaryaddress.len() as _, ::core::mem::transmute(abbinaryaddress.as_ptr()), strnetworkresource.into().abi(), struser.into().abi(), strpassword.into().abi(), strlocale.into().abi(), lsecurityflags, strauthority.into().abi(), pctx.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ConnectServer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(straddresstype), abbinaryaddress.len() as _, ::core::mem::transmute(abbinaryaddress.as_ptr()), ::core::mem::transmute_copy(strnetworkresource), ::core::mem::transmute_copy(struser), ::core::mem::transmute_copy(strpassword), ::core::mem::transmute_copy(strlocale), lsecurityflags, ::core::mem::transmute_copy(strauthority), pctx.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -5373,10 +4944,7 @@ unsafe impl ::windows::core::Interface for IWbemClientTransport { #[doc(hidden)] pub struct IWbemClientTransport_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub ConnectServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, straddresstype: ::core::mem::ManuallyDrop, dwbinaryaddresslength: u32, abbinaryaddress: *const u8, strnetworkresource: ::core::mem::ManuallyDrop, struser: ::core::mem::ManuallyDrop, strpassword: ::core::mem::ManuallyDrop, strlocale: ::core::mem::ManuallyDrop, lsecurityflags: i32, strauthority: ::core::mem::ManuallyDrop, pctx: *mut ::core::ffi::c_void, ppnamespace: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ConnectServer: usize, + pub ConnectServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, straddresstype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwbinaryaddresslength: u32, abbinaryaddress: *const u8, strnetworkresource: ::core::mem::ManuallyDrop<::windows::core::BSTR>, struser: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strlocale: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lsecurityflags: i32, strauthority: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pctx: *mut ::core::ffi::c_void, ppnamespace: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] #[repr(transparent)] @@ -5607,7 +5175,7 @@ impl IWbemContext { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Next(&self, lflags: i32, pstrname: &mut super::super::Foundation::BSTR, pvalue: &mut super::Com::VARIANT) -> ::windows::core::Result<()> { + pub unsafe fn Next(&self, lflags: i32, pstrname: &mut ::windows::core::BSTR, pvalue: &mut super::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Next)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute(pstrname), ::core::mem::transmute(pvalue)).ok() } pub unsafe fn EndEnumeration(&self) -> ::windows::core::Result<()> { @@ -5686,7 +5254,7 @@ pub struct IWbemContext_Vtbl { GetNames: usize, pub BeginEnumeration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, pstrname: *mut super::super::Foundation::BSTR, pvalue: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, + pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, pstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvalue: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Next: usize, pub EndEnumeration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -6066,14 +5634,11 @@ impl IWbemEventSink { pub unsafe fn Indicate(&self, apobjarray: &[::core::option::Option]) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Indicate)(::windows::core::Interface::as_raw(self), apobjarray.len() as _, ::core::mem::transmute(apobjarray.as_ptr())).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetStatus<'a, P0, P1>(&self, lflags: i32, hresult: ::windows::core::HRESULT, strparam: P0, pobjparam: P1) -> ::windows::core::Result<()> + pub unsafe fn SetStatus<'a, P0>(&self, lflags: i32, hresult: ::windows::core::HRESULT, strparam: &::windows::core::BSTR, pobjparam: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IWbemClassObject>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IWbemClassObject>>, { - (::windows::core::Interface::vtable(self).base__.SetStatus)(::windows::core::Interface::as_raw(self), lflags, hresult, strparam.into().abi(), pobjparam.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.SetStatus)(::windows::core::Interface::as_raw(self), lflags, hresult, ::core::mem::transmute_copy(strparam), pobjparam.into().abi()).ok() } pub unsafe fn SetSinkSecurity(&self, psd: &[u8]) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetSinkSecurity)(::windows::core::Interface::as_raw(self), psd.len() as _, ::core::mem::transmute(psd.as_ptr())).ok() @@ -6397,19 +5962,12 @@ pub struct IWbemLevel1Login_Vtbl { #[repr(transparent)] pub struct IWbemLocator(::windows::core::IUnknown); impl IWbemLocator { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ConnectServer<'a, P0, P1, P2, P3, P4, P5>(&self, strnetworkresource: P0, struser: P1, strpassword: P2, strlocale: P3, lsecurityflags: i32, strauthority: P4, pctx: P5) -> ::windows::core::Result + pub unsafe fn ConnectServer<'a, P0>(&self, strnetworkresource: &::windows::core::BSTR, struser: &::windows::core::BSTR, strpassword: &::windows::core::BSTR, strlocale: &::windows::core::BSTR, lsecurityflags: i32, strauthority: &::windows::core::BSTR, pctx: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P5: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ConnectServer)(::windows::core::Interface::as_raw(self), strnetworkresource.into().abi(), struser.into().abi(), strpassword.into().abi(), strlocale.into().abi(), lsecurityflags, strauthority.into().abi(), pctx.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ConnectServer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strnetworkresource), ::core::mem::transmute_copy(struser), ::core::mem::transmute_copy(strpassword), ::core::mem::transmute_copy(strlocale), lsecurityflags, ::core::mem::transmute_copy(strauthority), pctx.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -6451,10 +6009,7 @@ unsafe impl ::windows::core::Interface for IWbemLocator { #[doc(hidden)] pub struct IWbemLocator_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub ConnectServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strnetworkresource: ::core::mem::ManuallyDrop, struser: ::core::mem::ManuallyDrop, strpassword: ::core::mem::ManuallyDrop, strlocale: ::core::mem::ManuallyDrop, lsecurityflags: i32, strauthority: ::core::mem::ManuallyDrop, pctx: *mut ::core::ffi::c_void, ppnamespace: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ConnectServer: usize, + pub ConnectServer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strnetworkresource: ::core::mem::ManuallyDrop<::windows::core::BSTR>, struser: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpassword: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strlocale: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lsecurityflags: i32, strauthority: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pctx: *mut ::core::ffi::c_void, ppnamespace: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] #[repr(transparent)] @@ -6500,7 +6055,7 @@ impl IWbemObjectAccess { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Next(&self, lflags: i32, strname: &mut super::super::Foundation::BSTR, pval: &mut super::Com::VARIANT, ptype: &mut i32, plflavor: &mut i32) -> ::windows::core::Result<()> { + pub unsafe fn Next(&self, lflags: i32, strname: &mut ::windows::core::BSTR, pval: &mut super::Com::VARIANT, ptype: &mut i32, plflavor: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Next)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute(strname), ::core::mem::transmute(pval), ::core::mem::transmute(ptype), ::core::mem::transmute(plflavor)).ok() } pub unsafe fn EndEnumeration(&self) -> ::windows::core::Result<()> { @@ -6517,11 +6072,9 @@ impl IWbemObjectAccess { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Clone)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetObjectText(&self, lflags: i32) -> ::windows::core::Result { + pub unsafe fn GetObjectText(&self, lflags: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetObjectText)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetObjectText)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SpawnDerivedClass(&self, lflags: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6537,14 +6090,12 @@ impl IWbemObjectAccess { { (::windows::core::Interface::vtable(self).base__.CompareTo)(::windows::core::Interface::as_raw(self), lflags, pcompareto.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPropertyOrigin<'a, P0>(&self, wszname: P0) -> ::windows::core::Result + pub unsafe fn GetPropertyOrigin<'a, P0>(&self, wszname: P0) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::PCWSTR>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetPropertyOrigin)(::windows::core::Interface::as_raw(self), wszname.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetPropertyOrigin)(::windows::core::Interface::as_raw(self), wszname.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn InheritsFrom<'a, P0>(&self, strancestor: P0) -> ::windows::core::Result<()> where @@ -6575,9 +6126,7 @@ impl IWbemObjectAccess { pub unsafe fn BeginMethodEnumeration(&self, lenumflags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.BeginMethodEnumeration)(::windows::core::Interface::as_raw(self), lenumflags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NextMethod(&self, lflags: i32, pstrname: &mut super::super::Foundation::BSTR, ppinsignature: &mut ::core::option::Option, ppoutsignature: &mut ::core::option::Option) -> ::windows::core::Result<()> { + pub unsafe fn NextMethod(&self, lflags: i32, pstrname: &mut ::windows::core::BSTR, ppinsignature: &mut ::core::option::Option, ppoutsignature: &mut ::core::option::Option) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.NextMethod)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute(pstrname), ::core::mem::transmute(ppinsignature), ::core::mem::transmute(ppoutsignature)).ok() } pub unsafe fn EndMethodEnumeration(&self) -> ::windows::core::Result<()> { @@ -6590,14 +6139,12 @@ impl IWbemObjectAccess { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetMethodQualifierSet)(::windows::core::Interface::as_raw(self), wszmethod.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetMethodOrigin<'a, P0>(&self, wszmethodname: P0) -> ::windows::core::Result + pub unsafe fn GetMethodOrigin<'a, P0>(&self, wszmethodname: P0) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::PCWSTR>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetMethodOrigin)(::windows::core::Interface::as_raw(self), wszmethodname.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetMethodOrigin)(::windows::core::Interface::as_raw(self), wszmethodname.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetPropertyHandle<'a, P0>(&self, wszpropertyname: P0, ptype: &mut i32, plhandle: &mut i32) -> ::windows::core::Result<()> where @@ -6625,9 +6172,7 @@ impl IWbemObjectAccess { pub unsafe fn WriteQWORD(&self, lhandle: i32, pw: u64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).WriteQWORD)(::windows::core::Interface::as_raw(self), lhandle, pw).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPropertyInfoByHandle(&self, lhandle: i32, pstrname: &mut super::super::Foundation::BSTR, ptype: &mut i32) -> ::windows::core::Result<()> { + pub unsafe fn GetPropertyInfoByHandle(&self, lhandle: i32, pstrname: &mut ::windows::core::BSTR, ptype: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetPropertyInfoByHandle)(::windows::core::Interface::as_raw(self), lhandle, ::core::mem::transmute(pstrname), ::core::mem::transmute(ptype)).ok() } pub unsafe fn Lock(&self, lflags: i32) -> ::windows::core::Result<()> { @@ -6698,10 +6243,7 @@ pub struct IWbemObjectAccess_Vtbl { pub WriteDWORD: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lhandle: i32, dw: u32) -> ::windows::core::HRESULT, pub ReadQWORD: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lhandle: i32, pqw: *mut u64) -> ::windows::core::HRESULT, pub WriteQWORD: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lhandle: i32, pw: u64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetPropertyInfoByHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lhandle: i32, pstrname: *mut super::super::Foundation::BSTR, ptype: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPropertyInfoByHandle: usize, + pub GetPropertyInfoByHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lhandle: i32, pstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, ptype: *mut i32) -> ::windows::core::HRESULT, pub Lock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32) -> ::windows::core::HRESULT, pub Unlock: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32) -> ::windows::core::HRESULT, } @@ -6712,14 +6254,11 @@ impl IWbemObjectSink { pub unsafe fn Indicate(&self, apobjarray: &[::core::option::Option]) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Indicate)(::windows::core::Interface::as_raw(self), apobjarray.len() as _, ::core::mem::transmute(apobjarray.as_ptr())).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetStatus<'a, P0, P1>(&self, lflags: i32, hresult: ::windows::core::HRESULT, strparam: P0, pobjparam: P1) -> ::windows::core::Result<()> + pub unsafe fn SetStatus<'a, P0>(&self, lflags: i32, hresult: ::windows::core::HRESULT, strparam: &::windows::core::BSTR, pobjparam: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IWbemClassObject>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IWbemClassObject>>, { - (::windows::core::Interface::vtable(self).SetStatus)(::windows::core::Interface::as_raw(self), lflags, hresult, strparam.into().abi(), pobjparam.into().abi()).ok() + (::windows::core::Interface::vtable(self).SetStatus)(::windows::core::Interface::as_raw(self), lflags, hresult, ::core::mem::transmute_copy(strparam), pobjparam.into().abi()).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -6762,10 +6301,7 @@ unsafe impl ::windows::core::Interface for IWbemObjectSink { pub struct IWbemObjectSink_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub Indicate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lobjectcount: i32, apobjarray: *const *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, hresult: ::windows::core::HRESULT, strparam: ::core::mem::ManuallyDrop, pobjparam: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetStatus: usize, + pub SetStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, hresult: ::windows::core::HRESULT, strparam: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pobjparam: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] #[repr(transparent)] @@ -6774,22 +6310,14 @@ impl IWbemObjectSinkEx { pub unsafe fn Indicate(&self, apobjarray: &[::core::option::Option]) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Indicate)(::windows::core::Interface::as_raw(self), apobjarray.len() as _, ::core::mem::transmute(apobjarray.as_ptr())).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetStatus<'a, P0, P1>(&self, lflags: i32, hresult: ::windows::core::HRESULT, strparam: P0, pobjparam: P1) -> ::windows::core::Result<()> + pub unsafe fn SetStatus<'a, P0>(&self, lflags: i32, hresult: ::windows::core::HRESULT, strparam: &::windows::core::BSTR, pobjparam: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IWbemClassObject>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IWbemClassObject>>, { - (::windows::core::Interface::vtable(self).base__.SetStatus)(::windows::core::Interface::as_raw(self), lflags, hresult, strparam.into().abi(), pobjparam.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.SetStatus)(::windows::core::Interface::as_raw(self), lflags, hresult, ::core::mem::transmute_copy(strparam), pobjparam.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn WriteMessage<'a, P0>(&self, uchannel: u32, strmessage: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).WriteMessage)(::windows::core::Interface::as_raw(self), uchannel, strmessage.into().abi()).ok() + pub unsafe fn WriteMessage(&self, uchannel: u32, strmessage: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).WriteMessage)(::windows::core::Interface::as_raw(self), uchannel, ::core::mem::transmute_copy(strmessage)).ok() } pub unsafe fn WriteError<'a, P0>(&self, pobjerror: P0) -> ::windows::core::Result where @@ -6798,32 +6326,17 @@ impl IWbemObjectSinkEx { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).WriteError)(::windows::core::Interface::as_raw(self), pobjerror.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PromptUser<'a, P0>(&self, strmessage: P0, uprompttype: u8) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn PromptUser(&self, strmessage: &::windows::core::BSTR, uprompttype: u8) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PromptUser)(::windows::core::Interface::as_raw(self), strmessage.into().abi(), uprompttype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PromptUser)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strmessage), uprompttype, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn WriteProgress<'a, P0, P1, P2>(&self, stractivity: P0, strcurrentoperation: P1, strstatusdescription: P2, upercentcomplete: u32, usecondsremaining: u32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).WriteProgress)(::windows::core::Interface::as_raw(self), stractivity.into().abi(), strcurrentoperation.into().abi(), strstatusdescription.into().abi(), upercentcomplete, usecondsremaining).ok() + pub unsafe fn WriteProgress(&self, stractivity: &::windows::core::BSTR, strcurrentoperation: &::windows::core::BSTR, strstatusdescription: &::windows::core::BSTR, upercentcomplete: u32, usecondsremaining: u32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).WriteProgress)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(stractivity), ::core::mem::transmute_copy(strcurrentoperation), ::core::mem::transmute_copy(strstatusdescription), upercentcomplete, usecondsremaining).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn WriteStreamParameter<'a, P0>(&self, strname: P0, vtvalue: &super::Com::VARIANT, ultype: u32, ulflags: u32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).WriteStreamParameter)(::windows::core::Interface::as_raw(self), strname.into().abi(), ::core::mem::transmute(vtvalue), ultype, ulflags).ok() + pub unsafe fn WriteStreamParameter(&self, strname: &::windows::core::BSTR, vtvalue: &super::Com::VARIANT, ultype: u32, ulflags: u32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).WriteStreamParameter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strname), ::core::mem::transmute(vtvalue), ultype, ulflags).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -6880,21 +6393,12 @@ unsafe impl ::windows::core::Interface for IWbemObjectSinkEx { #[doc(hidden)] pub struct IWbemObjectSinkEx_Vtbl { pub base__: IWbemObjectSink_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub WriteMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uchannel: u32, strmessage: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - WriteMessage: usize, + pub WriteMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uchannel: u32, strmessage: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub WriteError: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pobjerror: *mut ::core::ffi::c_void, pureturned: *mut u8) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub PromptUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strmessage: ::core::mem::ManuallyDrop, uprompttype: u8, pureturned: *mut u8) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PromptUser: usize, - #[cfg(feature = "Win32_Foundation")] - pub WriteProgress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stractivity: ::core::mem::ManuallyDrop, strcurrentoperation: ::core::mem::ManuallyDrop, strstatusdescription: ::core::mem::ManuallyDrop, upercentcomplete: u32, usecondsremaining: u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - WriteProgress: usize, + pub PromptUser: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strmessage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, uprompttype: u8, pureturned: *mut u8) -> ::windows::core::HRESULT, + pub WriteProgress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stractivity: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strcurrentoperation: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strstatusdescription: ::core::mem::ManuallyDrop<::windows::core::BSTR>, upercentcomplete: u32, usecondsremaining: u32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub WriteStreamParameter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop, vtvalue: *const super::Com::VARIANT, ultype: u32, ulflags: u32) -> ::windows::core::HRESULT, + pub WriteStreamParameter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, vtvalue: *const super::Com::VARIANT, ultype: u32, ulflags: u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] WriteStreamParameter: usize, } @@ -6902,25 +6406,20 @@ pub struct IWbemObjectSinkEx_Vtbl { #[repr(transparent)] pub struct IWbemObjectTextSrc(::windows::core::IUnknown); impl IWbemObjectTextSrc { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetText<'a, P0, P1>(&self, lflags: i32, pobj: P0, uobjtextformat: u32, pctx: P1) -> ::windows::core::Result + pub unsafe fn GetText<'a, P0, P1>(&self, lflags: i32, pobj: P0, uobjtextformat: u32, pctx: P1) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, IWbemClassObject>>, P1: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetText)(::windows::core::Interface::as_raw(self), lflags, pobj.into().abi(), uobjtextformat, pctx.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetText)(::windows::core::Interface::as_raw(self), lflags, pobj.into().abi(), uobjtextformat, pctx.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateFromText<'a, P0, P1>(&self, lflags: i32, strtext: P0, uobjtextformat: u32, pctx: P1) -> ::windows::core::Result + pub unsafe fn CreateFromText<'a, P0>(&self, lflags: i32, strtext: &::windows::core::BSTR, uobjtextformat: u32, pctx: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateFromText)(::windows::core::Interface::as_raw(self), lflags, strtext.into().abi(), uobjtextformat, pctx.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateFromText)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute_copy(strtext), uobjtextformat, pctx.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -6962,14 +6461,8 @@ unsafe impl ::windows::core::Interface for IWbemObjectTextSrc { #[doc(hidden)] pub struct IWbemObjectTextSrc_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, pobj: *mut ::core::ffi::c_void, uobjtextformat: u32, pctx: *mut ::core::ffi::c_void, strtext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetText: usize, - #[cfg(feature = "Win32_Foundation")] - pub CreateFromText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, strtext: ::core::mem::ManuallyDrop, uobjtextformat: u32, pctx: *mut ::core::ffi::c_void, pnewobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CreateFromText: usize, + pub GetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, pobj: *mut ::core::ffi::c_void, uobjtextformat: u32, pctx: *mut ::core::ffi::c_void, strtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CreateFromText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, strtext: ::core::mem::ManuallyDrop<::windows::core::BSTR>, uobjtextformat: u32, pctx: *mut ::core::ffi::c_void, pnewobj: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] #[repr(transparent)] @@ -7291,26 +6784,14 @@ pub struct IWbemPropertyProvider(::windows::core::IUnknown); impl IWbemPropertyProvider { #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetProperty<'a, P0, P1, P2, P3>(&self, lflags: i32, strlocale: P0, strclassmapping: P1, strinstmapping: P2, strpropmapping: P3) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetProperty(&self, lflags: i32, strlocale: &::windows::core::BSTR, strclassmapping: &::windows::core::BSTR, strinstmapping: &::windows::core::BSTR, strpropmapping: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetProperty)(::windows::core::Interface::as_raw(self), lflags, strlocale.into().abi(), strclassmapping.into().abi(), strinstmapping.into().abi(), strpropmapping.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetProperty)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute_copy(strlocale), ::core::mem::transmute_copy(strclassmapping), ::core::mem::transmute_copy(strinstmapping), ::core::mem::transmute_copy(strpropmapping), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn PutProperty<'a, P0, P1, P2, P3>(&self, lflags: i32, strlocale: P0, strclassmapping: P1, strinstmapping: P2, strpropmapping: P3, pvvalue: &super::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).PutProperty)(::windows::core::Interface::as_raw(self), lflags, strlocale.into().abi(), strclassmapping.into().abi(), strinstmapping.into().abi(), strpropmapping.into().abi(), ::core::mem::transmute(pvvalue)).ok() + pub unsafe fn PutProperty(&self, lflags: i32, strlocale: &::windows::core::BSTR, strclassmapping: &::windows::core::BSTR, strinstmapping: &::windows::core::BSTR, strpropmapping: &::windows::core::BSTR, pvvalue: &super::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).PutProperty)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute_copy(strlocale), ::core::mem::transmute_copy(strclassmapping), ::core::mem::transmute_copy(strinstmapping), ::core::mem::transmute_copy(strpropmapping), ::core::mem::transmute(pvvalue)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -7353,11 +6834,11 @@ unsafe impl ::windows::core::Interface for IWbemPropertyProvider { pub struct IWbemPropertyProvider_Vtbl { pub base__: ::windows::core::IUnknownVtbl, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, strlocale: ::core::mem::ManuallyDrop, strclassmapping: ::core::mem::ManuallyDrop, strinstmapping: ::core::mem::ManuallyDrop, strpropmapping: ::core::mem::ManuallyDrop, pvvalue: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, strlocale: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strclassmapping: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strinstmapping: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpropmapping: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvvalue: *mut super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetProperty: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub PutProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, strlocale: ::core::mem::ManuallyDrop, strclassmapping: ::core::mem::ManuallyDrop, strinstmapping: ::core::mem::ManuallyDrop, strpropmapping: ::core::mem::ManuallyDrop, pvvalue: *const super::Com::VARIANT) -> ::windows::core::HRESULT, + pub PutProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, strlocale: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strclassmapping: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strinstmapping: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strpropmapping: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvvalue: *const super::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] PutProperty: usize, } @@ -7556,7 +7037,7 @@ impl IWbemQualifierSet { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Next(&self, lflags: i32, pstrname: &mut super::super::Foundation::BSTR, pval: &mut super::Com::VARIANT, plflavor: &mut i32) -> ::windows::core::Result<()> { + pub unsafe fn Next(&self, lflags: i32, pstrname: &mut ::windows::core::BSTR, pval: &mut super::Com::VARIANT, plflavor: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Next)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute(pstrname), ::core::mem::transmute(pval), ::core::mem::transmute(plflavor)).ok() } pub unsafe fn EndEnumeration(&self) -> ::windows::core::Result<()> { @@ -7617,7 +7098,7 @@ pub struct IWbemQualifierSet_Vtbl { GetNames: usize, pub BeginEnumeration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, pstrname: *mut super::super::Foundation::BSTR, pval: *mut super::Com::VARIANT, plflavor: *mut i32) -> ::windows::core::HRESULT, + pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, pstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pval: *mut super::Com::VARIANT, plflavor: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Next: usize, pub EndEnumeration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -7752,14 +7233,11 @@ pub struct IWbemRefresher_Vtbl { #[repr(transparent)] pub struct IWbemServices(::windows::core::IUnknown); impl IWbemServices { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OpenNamespace<'a, P0, P1>(&self, strnamespace: P0, lflags: i32, pctx: P1, ppworkingnamespace: ::core::option::Option<&mut ::core::option::Option>, ppresult: ::core::option::Option<&mut ::core::option::Option>) -> ::windows::core::Result<()> + pub unsafe fn OpenNamespace<'a, P0>(&self, strnamespace: &::windows::core::BSTR, lflags: i32, pctx: P0, ppworkingnamespace: ::core::option::Option<&mut ::core::option::Option>, ppresult: ::core::option::Option<&mut ::core::option::Option>) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, { - (::windows::core::Interface::vtable(self).OpenNamespace)(::windows::core::Interface::as_raw(self), strnamespace.into().abi(), lflags, pctx.into().abi(), ::core::mem::transmute(ppworkingnamespace), ::core::mem::transmute(ppresult)).ok() + (::windows::core::Interface::vtable(self).OpenNamespace)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strnamespace), lflags, pctx.into().abi(), ::core::mem::transmute(ppworkingnamespace), ::core::mem::transmute(ppresult)).ok() } pub unsafe fn CancelAsyncCall<'a, P0>(&self, psink: P0) -> ::windows::core::Result<()> where @@ -7771,24 +7249,18 @@ impl IWbemServices { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).QueryObjectSink)(::windows::core::Interface::as_raw(self), lflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetObject<'a, P0, P1>(&self, strobjectpath: P0, lflags: i32, pctx: P1, ppobject: ::core::option::Option<&mut ::core::option::Option>, ppcallresult: ::core::option::Option<&mut ::core::option::Option>) -> ::windows::core::Result<()> + pub unsafe fn GetObject<'a, P0>(&self, strobjectpath: &::windows::core::BSTR, lflags: i32, pctx: P0, ppobject: ::core::option::Option<&mut ::core::option::Option>, ppcallresult: ::core::option::Option<&mut ::core::option::Option>) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, { - (::windows::core::Interface::vtable(self).GetObject)(::windows::core::Interface::as_raw(self), strobjectpath.into().abi(), lflags, pctx.into().abi(), ::core::mem::transmute(ppobject), ::core::mem::transmute(ppcallresult)).ok() + (::windows::core::Interface::vtable(self).GetObject)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strobjectpath), lflags, pctx.into().abi(), ::core::mem::transmute(ppobject), ::core::mem::transmute(ppcallresult)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetObjectAsync<'a, P0, P1, P2>(&self, strobjectpath: P0, lflags: i32, pctx: P1, presponsehandler: P2) -> ::windows::core::Result<()> + pub unsafe fn GetObjectAsync<'a, P0, P1>(&self, strobjectpath: &::windows::core::BSTR, lflags: i32, pctx: P0, presponsehandler: P1) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IWbemObjectSink>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, IWbemObjectSink>>, { - (::windows::core::Interface::vtable(self).GetObjectAsync)(::windows::core::Interface::as_raw(self), strobjectpath.into().abi(), lflags, pctx.into().abi(), presponsehandler.into().abi()).ok() + (::windows::core::Interface::vtable(self).GetObjectAsync)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strobjectpath), lflags, pctx.into().abi(), presponsehandler.into().abi()).ok() } pub unsafe fn PutClass<'a, P0, P1>(&self, pobject: P0, lflags: i32, pctx: P1, ppcallresult: ::core::option::Option<&mut ::core::option::Option>) -> ::windows::core::Result<()> where @@ -7805,44 +7277,32 @@ impl IWbemServices { { (::windows::core::Interface::vtable(self).PutClassAsync)(::windows::core::Interface::as_raw(self), pobject.into().abi(), lflags, pctx.into().abi(), presponsehandler.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeleteClass<'a, P0, P1>(&self, strclass: P0, lflags: i32, pctx: P1, ppcallresult: ::core::option::Option<&mut ::core::option::Option>) -> ::windows::core::Result<()> + pub unsafe fn DeleteClass<'a, P0>(&self, strclass: &::windows::core::BSTR, lflags: i32, pctx: P0, ppcallresult: ::core::option::Option<&mut ::core::option::Option>) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, { - (::windows::core::Interface::vtable(self).DeleteClass)(::windows::core::Interface::as_raw(self), strclass.into().abi(), lflags, pctx.into().abi(), ::core::mem::transmute(ppcallresult)).ok() + (::windows::core::Interface::vtable(self).DeleteClass)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strclass), lflags, pctx.into().abi(), ::core::mem::transmute(ppcallresult)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeleteClassAsync<'a, P0, P1, P2>(&self, strclass: P0, lflags: i32, pctx: P1, presponsehandler: P2) -> ::windows::core::Result<()> + pub unsafe fn DeleteClassAsync<'a, P0, P1>(&self, strclass: &::windows::core::BSTR, lflags: i32, pctx: P0, presponsehandler: P1) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IWbemObjectSink>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, IWbemObjectSink>>, { - (::windows::core::Interface::vtable(self).DeleteClassAsync)(::windows::core::Interface::as_raw(self), strclass.into().abi(), lflags, pctx.into().abi(), presponsehandler.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeleteClassAsync)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strclass), lflags, pctx.into().abi(), presponsehandler.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateClassEnum<'a, P0, P1>(&self, strsuperclass: P0, lflags: i32, pctx: P1) -> ::windows::core::Result + pub unsafe fn CreateClassEnum<'a, P0>(&self, strsuperclass: &::windows::core::BSTR, lflags: i32, pctx: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateClassEnum)(::windows::core::Interface::as_raw(self), strsuperclass.into().abi(), lflags, pctx.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateClassEnum)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strsuperclass), lflags, pctx.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateClassEnumAsync<'a, P0, P1, P2>(&self, strsuperclass: P0, lflags: i32, pctx: P1, presponsehandler: P2) -> ::windows::core::Result<()> + pub unsafe fn CreateClassEnumAsync<'a, P0, P1>(&self, strsuperclass: &::windows::core::BSTR, lflags: i32, pctx: P0, presponsehandler: P1) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IWbemObjectSink>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, IWbemObjectSink>>, { - (::windows::core::Interface::vtable(self).CreateClassEnumAsync)(::windows::core::Interface::as_raw(self), strsuperclass.into().abi(), lflags, pctx.into().abi(), presponsehandler.into().abi()).ok() + (::windows::core::Interface::vtable(self).CreateClassEnumAsync)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strsuperclass), lflags, pctx.into().abi(), presponsehandler.into().abi()).ok() } pub unsafe fn PutInstance<'a, P0, P1>(&self, pinst: P0, lflags: i32, pctx: P1, ppcallresult: ::core::option::Option<&mut ::core::option::Option>) -> ::windows::core::Result<()> where @@ -7859,111 +7319,75 @@ impl IWbemServices { { (::windows::core::Interface::vtable(self).PutInstanceAsync)(::windows::core::Interface::as_raw(self), pinst.into().abi(), lflags, pctx.into().abi(), presponsehandler.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeleteInstance<'a, P0, P1>(&self, strobjectpath: P0, lflags: i32, pctx: P1, ppcallresult: ::core::option::Option<&mut ::core::option::Option>) -> ::windows::core::Result<()> + pub unsafe fn DeleteInstance<'a, P0>(&self, strobjectpath: &::windows::core::BSTR, lflags: i32, pctx: P0, ppcallresult: ::core::option::Option<&mut ::core::option::Option>) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, { - (::windows::core::Interface::vtable(self).DeleteInstance)(::windows::core::Interface::as_raw(self), strobjectpath.into().abi(), lflags, pctx.into().abi(), ::core::mem::transmute(ppcallresult)).ok() + (::windows::core::Interface::vtable(self).DeleteInstance)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strobjectpath), lflags, pctx.into().abi(), ::core::mem::transmute(ppcallresult)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeleteInstanceAsync<'a, P0, P1, P2>(&self, strobjectpath: P0, lflags: i32, pctx: P1, presponsehandler: P2) -> ::windows::core::Result<()> + pub unsafe fn DeleteInstanceAsync<'a, P0, P1>(&self, strobjectpath: &::windows::core::BSTR, lflags: i32, pctx: P0, presponsehandler: P1) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IWbemObjectSink>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, IWbemObjectSink>>, { - (::windows::core::Interface::vtable(self).DeleteInstanceAsync)(::windows::core::Interface::as_raw(self), strobjectpath.into().abi(), lflags, pctx.into().abi(), presponsehandler.into().abi()).ok() + (::windows::core::Interface::vtable(self).DeleteInstanceAsync)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strobjectpath), lflags, pctx.into().abi(), presponsehandler.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateInstanceEnum<'a, P0, P1>(&self, strfilter: P0, lflags: i32, pctx: P1) -> ::windows::core::Result + pub unsafe fn CreateInstanceEnum<'a, P0>(&self, strfilter: &::windows::core::BSTR, lflags: i32, pctx: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateInstanceEnum)(::windows::core::Interface::as_raw(self), strfilter.into().abi(), lflags, pctx.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateInstanceEnum)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strfilter), lflags, pctx.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateInstanceEnumAsync<'a, P0, P1, P2>(&self, strfilter: P0, lflags: i32, pctx: P1, presponsehandler: P2) -> ::windows::core::Result<()> + pub unsafe fn CreateInstanceEnumAsync<'a, P0, P1>(&self, strfilter: &::windows::core::BSTR, lflags: i32, pctx: P0, presponsehandler: P1) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IWbemObjectSink>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, IWbemObjectSink>>, { - (::windows::core::Interface::vtable(self).CreateInstanceEnumAsync)(::windows::core::Interface::as_raw(self), strfilter.into().abi(), lflags, pctx.into().abi(), presponsehandler.into().abi()).ok() + (::windows::core::Interface::vtable(self).CreateInstanceEnumAsync)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strfilter), lflags, pctx.into().abi(), presponsehandler.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExecQuery<'a, P0, P1, P2>(&self, strquerylanguage: P0, strquery: P1, lflags: i32, pctx: P2) -> ::windows::core::Result + pub unsafe fn ExecQuery<'a, P0>(&self, strquerylanguage: &::windows::core::BSTR, strquery: &::windows::core::BSTR, lflags: i32, pctx: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ExecQuery)(::windows::core::Interface::as_raw(self), strquerylanguage.into().abi(), strquery.into().abi(), lflags, pctx.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ExecQuery)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strquerylanguage), ::core::mem::transmute_copy(strquery), lflags, pctx.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExecQueryAsync<'a, P0, P1, P2, P3>(&self, strquerylanguage: P0, strquery: P1, lflags: i32, pctx: P2, presponsehandler: P3) -> ::windows::core::Result<()> + pub unsafe fn ExecQueryAsync<'a, P0, P1>(&self, strquerylanguage: &::windows::core::BSTR, strquery: &::windows::core::BSTR, lflags: i32, pctx: P0, presponsehandler: P1) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, IWbemObjectSink>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, IWbemObjectSink>>, { - (::windows::core::Interface::vtable(self).ExecQueryAsync)(::windows::core::Interface::as_raw(self), strquerylanguage.into().abi(), strquery.into().abi(), lflags, pctx.into().abi(), presponsehandler.into().abi()).ok() + (::windows::core::Interface::vtable(self).ExecQueryAsync)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strquerylanguage), ::core::mem::transmute_copy(strquery), lflags, pctx.into().abi(), presponsehandler.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExecNotificationQuery<'a, P0, P1, P2>(&self, strquerylanguage: P0, strquery: P1, lflags: i32, pctx: P2) -> ::windows::core::Result + pub unsafe fn ExecNotificationQuery<'a, P0>(&self, strquerylanguage: &::windows::core::BSTR, strquery: &::windows::core::BSTR, lflags: i32, pctx: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ExecNotificationQuery)(::windows::core::Interface::as_raw(self), strquerylanguage.into().abi(), strquery.into().abi(), lflags, pctx.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ExecNotificationQuery)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strquerylanguage), ::core::mem::transmute_copy(strquery), lflags, pctx.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExecNotificationQueryAsync<'a, P0, P1, P2, P3>(&self, strquerylanguage: P0, strquery: P1, lflags: i32, pctx: P2, presponsehandler: P3) -> ::windows::core::Result<()> + pub unsafe fn ExecNotificationQueryAsync<'a, P0, P1>(&self, strquerylanguage: &::windows::core::BSTR, strquery: &::windows::core::BSTR, lflags: i32, pctx: P0, presponsehandler: P1) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, IWbemObjectSink>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, IWbemObjectSink>>, { - (::windows::core::Interface::vtable(self).ExecNotificationQueryAsync)(::windows::core::Interface::as_raw(self), strquerylanguage.into().abi(), strquery.into().abi(), lflags, pctx.into().abi(), presponsehandler.into().abi()).ok() + (::windows::core::Interface::vtable(self).ExecNotificationQueryAsync)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strquerylanguage), ::core::mem::transmute_copy(strquery), lflags, pctx.into().abi(), presponsehandler.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExecMethod<'a, P0, P1, P2, P3>(&self, strobjectpath: P0, strmethodname: P1, lflags: i32, pctx: P2, pinparams: P3, ppoutparams: ::core::option::Option<&mut ::core::option::Option>, ppcallresult: ::core::option::Option<&mut ::core::option::Option>) -> ::windows::core::Result<()> + pub unsafe fn ExecMethod<'a, P0, P1>(&self, strobjectpath: &::windows::core::BSTR, strmethodname: &::windows::core::BSTR, lflags: i32, pctx: P0, pinparams: P1, ppoutparams: ::core::option::Option<&mut ::core::option::Option>, ppcallresult: ::core::option::Option<&mut ::core::option::Option>) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, IWbemClassObject>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, IWbemClassObject>>, { - (::windows::core::Interface::vtable(self).ExecMethod)(::windows::core::Interface::as_raw(self), strobjectpath.into().abi(), strmethodname.into().abi(), lflags, pctx.into().abi(), pinparams.into().abi(), ::core::mem::transmute(ppoutparams), ::core::mem::transmute(ppcallresult)).ok() + (::windows::core::Interface::vtable(self).ExecMethod)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strobjectpath), ::core::mem::transmute_copy(strmethodname), lflags, pctx.into().abi(), pinparams.into().abi(), ::core::mem::transmute(ppoutparams), ::core::mem::transmute(ppcallresult)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExecMethodAsync<'a, P0, P1, P2, P3, P4>(&self, strobjectpath: P0, strmethodname: P1, lflags: i32, pctx: P2, pinparams: P3, presponsehandler: P4) -> ::windows::core::Result<()> + pub unsafe fn ExecMethodAsync<'a, P0, P1, P2>(&self, strobjectpath: &::windows::core::BSTR, strmethodname: &::windows::core::BSTR, lflags: i32, pctx: P0, pinparams: P1, presponsehandler: P2) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, IWbemClassObject>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, IWbemObjectSink>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IWbemContext>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, IWbemClassObject>>, + P2: ::std::convert::Into<::windows::core::InParam<'a, IWbemObjectSink>>, { - (::windows::core::Interface::vtable(self).ExecMethodAsync)(::windows::core::Interface::as_raw(self), strobjectpath.into().abi(), strmethodname.into().abi(), lflags, pctx.into().abi(), pinparams.into().abi(), presponsehandler.into().abi()).ok() + (::windows::core::Interface::vtable(self).ExecMethodAsync)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strobjectpath), ::core::mem::transmute_copy(strmethodname), lflags, pctx.into().abi(), pinparams.into().abi(), presponsehandler.into().abi()).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -8005,80 +7429,29 @@ unsafe impl ::windows::core::Interface for IWbemServices { #[doc(hidden)] pub struct IWbemServices_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub OpenNamespace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strnamespace: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, ppworkingnamespace: *mut *mut ::core::ffi::c_void, ppresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OpenNamespace: usize, + pub OpenNamespace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strnamespace: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, ppworkingnamespace: *mut *mut ::core::ffi::c_void, ppresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub CancelAsyncCall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psink: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub QueryObjectSink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lflags: i32, ppresponsehandler: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, ppobject: *mut *mut ::core::ffi::c_void, ppcallresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetObject: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetObjectAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetObjectAsync: usize, + pub GetObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, ppobject: *mut *mut ::core::ffi::c_void, ppcallresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub GetObjectAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub PutClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pobject: *mut ::core::ffi::c_void, lflags: i32, pctx: *mut ::core::ffi::c_void, ppcallresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub PutClassAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pobject: *mut ::core::ffi::c_void, lflags: i32, pctx: *mut ::core::ffi::c_void, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub DeleteClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strclass: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, ppcallresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeleteClass: usize, - #[cfg(feature = "Win32_Foundation")] - pub DeleteClassAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strclass: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeleteClassAsync: usize, - #[cfg(feature = "Win32_Foundation")] - pub CreateClassEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strsuperclass: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CreateClassEnum: usize, - #[cfg(feature = "Win32_Foundation")] - pub CreateClassEnumAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strsuperclass: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CreateClassEnumAsync: usize, + pub DeleteClass: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, ppcallresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub DeleteClassAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub CreateClassEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strsuperclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub CreateClassEnumAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strsuperclass: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub PutInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinst: *mut ::core::ffi::c_void, lflags: i32, pctx: *mut ::core::ffi::c_void, ppcallresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub PutInstanceAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinst: *mut ::core::ffi::c_void, lflags: i32, pctx: *mut ::core::ffi::c_void, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub DeleteInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, ppcallresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeleteInstance: usize, - #[cfg(feature = "Win32_Foundation")] - pub DeleteInstanceAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeleteInstanceAsync: usize, - #[cfg(feature = "Win32_Foundation")] - pub CreateInstanceEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strfilter: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CreateInstanceEnum: usize, - #[cfg(feature = "Win32_Foundation")] - pub CreateInstanceEnumAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strfilter: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CreateInstanceEnumAsync: usize, - #[cfg(feature = "Win32_Foundation")] - pub ExecQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strquerylanguage: ::core::mem::ManuallyDrop, strquery: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ExecQuery: usize, - #[cfg(feature = "Win32_Foundation")] - pub ExecQueryAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strquerylanguage: ::core::mem::ManuallyDrop, strquery: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ExecQueryAsync: usize, - #[cfg(feature = "Win32_Foundation")] - pub ExecNotificationQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strquerylanguage: ::core::mem::ManuallyDrop, strquery: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ExecNotificationQuery: usize, - #[cfg(feature = "Win32_Foundation")] - pub ExecNotificationQueryAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strquerylanguage: ::core::mem::ManuallyDrop, strquery: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ExecNotificationQueryAsync: usize, - #[cfg(feature = "Win32_Foundation")] - pub ExecMethod: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop, strmethodname: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, pinparams: *mut ::core::ffi::c_void, ppoutparams: *mut *mut ::core::ffi::c_void, ppcallresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ExecMethod: usize, - #[cfg(feature = "Win32_Foundation")] - pub ExecMethodAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop, strmethodname: ::core::mem::ManuallyDrop, lflags: i32, pctx: *mut ::core::ffi::c_void, pinparams: *mut ::core::ffi::c_void, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ExecMethodAsync: usize, + pub DeleteInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, ppcallresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub DeleteInstanceAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub CreateInstanceEnum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strfilter: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub CreateInstanceEnumAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strfilter: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub ExecQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strquerylanguage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strquery: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub ExecQueryAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strquerylanguage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strquery: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub ExecNotificationQuery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strquerylanguage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strquery: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub ExecNotificationQueryAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strquerylanguage: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strquery: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub ExecMethod: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strmethodname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, pinparams: *mut ::core::ffi::c_void, ppoutparams: *mut *mut ::core::ffi::c_void, ppcallresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub ExecMethodAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strobjectpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strmethodname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, lflags: i32, pctx: *mut ::core::ffi::c_void, pinparams: *mut ::core::ffi::c_void, presponsehandler: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] #[repr(transparent)] @@ -8136,17 +7509,13 @@ pub struct IWbemShutdown_Vtbl { #[repr(transparent)] pub struct IWbemStatusCodeText(::windows::core::IUnknown); impl IWbemStatusCodeText { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetErrorCodeText(&self, hres: ::windows::core::HRESULT, localeid: u32, lflags: i32) -> ::windows::core::Result { + pub unsafe fn GetErrorCodeText(&self, hres: ::windows::core::HRESULT, localeid: u32, lflags: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetErrorCodeText)(::windows::core::Interface::as_raw(self), hres, localeid, lflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetErrorCodeText)(::windows::core::Interface::as_raw(self), hres, localeid, lflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetFacilityCodeText(&self, hres: ::windows::core::HRESULT, localeid: u32, lflags: i32) -> ::windows::core::Result { + pub unsafe fn GetFacilityCodeText(&self, hres: ::windows::core::HRESULT, localeid: u32, lflags: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetFacilityCodeText)(::windows::core::Interface::as_raw(self), hres, localeid, lflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetFacilityCodeText)(::windows::core::Interface::as_raw(self), hres, localeid, lflags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -8188,14 +7557,8 @@ unsafe impl ::windows::core::Interface for IWbemStatusCodeText { #[doc(hidden)] pub struct IWbemStatusCodeText_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetErrorCodeText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hres: ::windows::core::HRESULT, localeid: u32, lflags: i32, messagetext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetErrorCodeText: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetFacilityCodeText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hres: ::windows::core::HRESULT, localeid: u32, lflags: i32, messagetext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetFacilityCodeText: usize, + pub GetErrorCodeText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hres: ::windows::core::HRESULT, localeid: u32, lflags: i32, messagetext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetFacilityCodeText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hres: ::windows::core::HRESULT, localeid: u32, lflags: i32, messagetext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_System_Wmi\"`*"] #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Win32/UI/Accessibility/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/Accessibility/impl.rs index fca59ba0bb..4b9671f4b8 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Accessibility/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Accessibility/impl.rs @@ -161,24 +161,24 @@ pub trait IAccessible_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn accParent(&self) -> ::windows::core::Result; fn accChildCount(&self) -> ::windows::core::Result; fn get_accChild(&self, varchild: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn get_accName(&self, varchild: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn get_accValue(&self, varchild: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn get_accDescription(&self, varchild: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn get_accName(&self, varchild: &super::super::System::Com::VARIANT) -> ::windows::core::Result<::windows::core::BSTR>; + fn get_accValue(&self, varchild: &super::super::System::Com::VARIANT) -> ::windows::core::Result<::windows::core::BSTR>; + fn get_accDescription(&self, varchild: &super::super::System::Com::VARIANT) -> ::windows::core::Result<::windows::core::BSTR>; fn get_accRole(&self, varchild: &super::super::System::Com::VARIANT) -> ::windows::core::Result; fn get_accState(&self, varchild: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn get_accHelp(&self, varchild: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn get_accHelpTopic(&self, pszhelpfile: *mut super::super::Foundation::BSTR, varchild: &super::super::System::Com::VARIANT, pidtopic: *mut i32) -> ::windows::core::Result<()>; - fn get_accKeyboardShortcut(&self, varchild: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn get_accHelp(&self, varchild: &super::super::System::Com::VARIANT) -> ::windows::core::Result<::windows::core::BSTR>; + fn get_accHelpTopic(&self, pszhelpfile: *mut ::windows::core::BSTR, varchild: &super::super::System::Com::VARIANT, pidtopic: *mut i32) -> ::windows::core::Result<()>; + fn get_accKeyboardShortcut(&self, varchild: &super::super::System::Com::VARIANT) -> ::windows::core::Result<::windows::core::BSTR>; fn accFocus(&self) -> ::windows::core::Result; fn accSelection(&self) -> ::windows::core::Result; - fn get_accDefaultAction(&self, varchild: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn get_accDefaultAction(&self, varchild: &super::super::System::Com::VARIANT) -> ::windows::core::Result<::windows::core::BSTR>; fn accSelect(&self, flagsselect: i32, varchild: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn accLocation(&self, pxleft: *mut i32, pytop: *mut i32, pcxwidth: *mut i32, pcyheight: *mut i32, varchild: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn accNavigate(&self, navdir: i32, varstart: &super::super::System::Com::VARIANT) -> ::windows::core::Result; fn accHitTest(&self, xleft: i32, ytop: i32) -> ::windows::core::Result; fn accDoDefaultAction(&self, varchild: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn put_accName(&self, varchild: &super::super::System::Com::VARIANT, szname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn put_accValue(&self, varchild: &super::super::System::Com::VARIANT, szvalue: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn put_accName(&self, varchild: &super::super::System::Com::VARIANT, szname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn put_accValue(&self, varchild: &super::super::System::Com::VARIANT, szvalue: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IAccessible {} @@ -218,7 +218,7 @@ impl IAccessible_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_accName, Impl: IAccessible_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, varchild: ::core::mem::ManuallyDrop, pszname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_accName, Impl: IAccessible_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, varchild: ::core::mem::ManuallyDrop, pszname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_accName(::core::mem::transmute(&varchild)) { @@ -229,7 +229,7 @@ impl IAccessible_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_accValue, Impl: IAccessible_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, varchild: ::core::mem::ManuallyDrop, pszvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_accValue, Impl: IAccessible_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, varchild: ::core::mem::ManuallyDrop, pszvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_accValue(::core::mem::transmute(&varchild)) { @@ -240,7 +240,7 @@ impl IAccessible_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_accDescription, Impl: IAccessible_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, varchild: ::core::mem::ManuallyDrop, pszdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_accDescription, Impl: IAccessible_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, varchild: ::core::mem::ManuallyDrop, pszdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_accDescription(::core::mem::transmute(&varchild)) { @@ -273,7 +273,7 @@ impl IAccessible_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_accHelp, Impl: IAccessible_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, varchild: ::core::mem::ManuallyDrop, pszhelp: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_accHelp, Impl: IAccessible_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, varchild: ::core::mem::ManuallyDrop, pszhelp: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_accHelp(::core::mem::transmute(&varchild)) { @@ -284,12 +284,12 @@ impl IAccessible_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_accHelpTopic, Impl: IAccessible_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszhelpfile: *mut super::super::Foundation::BSTR, varchild: ::core::mem::ManuallyDrop, pidtopic: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_accHelpTopic, Impl: IAccessible_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszhelpfile: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, varchild: ::core::mem::ManuallyDrop, pidtopic: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_accHelpTopic(::core::mem::transmute_copy(&pszhelpfile), ::core::mem::transmute(&varchild), ::core::mem::transmute_copy(&pidtopic)).into() } - unsafe extern "system" fn get_accKeyboardShortcut, Impl: IAccessible_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, varchild: ::core::mem::ManuallyDrop, pszkeyboardshortcut: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_accKeyboardShortcut, Impl: IAccessible_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, varchild: ::core::mem::ManuallyDrop, pszkeyboardshortcut: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_accKeyboardShortcut(::core::mem::transmute(&varchild)) { @@ -322,7 +322,7 @@ impl IAccessible_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn get_accDefaultAction, Impl: IAccessible_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, varchild: ::core::mem::ManuallyDrop, pszdefaultaction: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_accDefaultAction, Impl: IAccessible_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, varchild: ::core::mem::ManuallyDrop, pszdefaultaction: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_accDefaultAction(::core::mem::transmute(&varchild)) { @@ -370,12 +370,12 @@ impl IAccessible_Vtbl { let this = (*this).get_impl(); this.accDoDefaultAction(::core::mem::transmute(&varchild)).into() } - unsafe extern "system" fn put_accName, Impl: IAccessible_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, varchild: ::core::mem::ManuallyDrop, szname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn put_accName, Impl: IAccessible_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, varchild: ::core::mem::ManuallyDrop, szname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.put_accName(::core::mem::transmute(&varchild), ::core::mem::transmute(&szname)).into() } - unsafe extern "system" fn put_accValue, Impl: IAccessible_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, varchild: ::core::mem::ManuallyDrop, szvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn put_accValue, Impl: IAccessible_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, varchild: ::core::mem::ManuallyDrop, szvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.put_accValue(::core::mem::transmute(&varchild), ::core::mem::transmute(&szvalue)).into() @@ -601,17 +601,14 @@ impl IAccessibleWindowlessSite_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IAnnotationProvider_Impl: Sized { fn AnnotationTypeId(&self) -> ::windows::core::Result; - fn AnnotationTypeName(&self) -> ::windows::core::Result; - fn Author(&self) -> ::windows::core::Result; - fn DateTime(&self) -> ::windows::core::Result; + fn AnnotationTypeName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Author(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn DateTime(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Target(&self) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IAnnotationProvider {} -#[cfg(feature = "Win32_Foundation")] impl IAnnotationProvider_Vtbl { pub const fn new, Impl: IAnnotationProvider_Impl, const OFFSET: isize>() -> IAnnotationProvider_Vtbl { unsafe extern "system" fn AnnotationTypeId, Impl: IAnnotationProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT { @@ -625,7 +622,7 @@ impl IAnnotationProvider_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AnnotationTypeName, Impl: IAnnotationProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn AnnotationTypeName, Impl: IAnnotationProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AnnotationTypeName() { @@ -636,7 +633,7 @@ impl IAnnotationProvider_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Author, Impl: IAnnotationProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Author, Impl: IAnnotationProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Author() { @@ -647,7 +644,7 @@ impl IAnnotationProvider_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DateTime, Impl: IAnnotationProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DateTime, Impl: IAnnotationProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DateTime() { @@ -741,7 +738,7 @@ impl IDockProvider_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub trait IDragProvider_Impl: Sized { fn IsGrabbed(&self) -> ::windows::core::Result; - fn DropEffect(&self) -> ::windows::core::Result; + fn DropEffect(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn DropEffects(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; fn GetGrabbedItems(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; } @@ -761,7 +758,7 @@ impl IDragProvider_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DropEffect, Impl: IDragProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pretval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DropEffect, Impl: IDragProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pretval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DropEffect() { @@ -806,17 +803,17 @@ impl IDragProvider_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IDropTargetProvider_Impl: Sized { - fn DropTargetEffect(&self) -> ::windows::core::Result; + fn DropTargetEffect(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn DropTargetEffects(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IDropTargetProvider {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IDropTargetProvider_Vtbl { pub const fn new, Impl: IDropTargetProvider_Impl, const OFFSET: isize>() -> IDropTargetProvider_Vtbl { - unsafe extern "system" fn DropTargetEffect, Impl: IDropTargetProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pretval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DropTargetEffect, Impl: IDropTargetProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pretval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DropTargetEffect() { @@ -1061,26 +1058,26 @@ impl IItemContainerProvider_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait ILegacyIAccessibleProvider_Impl: Sized { fn Select(&self, flagsselect: i32) -> ::windows::core::Result<()>; fn DoDefaultAction(&self) -> ::windows::core::Result<()>; fn SetValue(&self, szvalue: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn GetIAccessible(&self) -> ::windows::core::Result; fn ChildId(&self) -> ::windows::core::Result; - fn Name(&self) -> ::windows::core::Result; - fn Value(&self) -> ::windows::core::Result; - fn Description(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Value(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Role(&self) -> ::windows::core::Result; fn State(&self) -> ::windows::core::Result; - fn Help(&self) -> ::windows::core::Result; - fn KeyboardShortcut(&self) -> ::windows::core::Result; + fn Help(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn KeyboardShortcut(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetSelection(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; - fn DefaultAction(&self) -> ::windows::core::Result; + fn DefaultAction(&self) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for ILegacyIAccessibleProvider {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ILegacyIAccessibleProvider_Vtbl { pub const fn new, Impl: ILegacyIAccessibleProvider_Impl, const OFFSET: isize>() -> ILegacyIAccessibleProvider_Vtbl { unsafe extern "system" fn Select, Impl: ILegacyIAccessibleProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flagsselect: i32) -> ::windows::core::HRESULT { @@ -1120,7 +1117,7 @@ impl ILegacyIAccessibleProvider_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Name, Impl: ILegacyIAccessibleProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: ILegacyIAccessibleProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -1131,7 +1128,7 @@ impl ILegacyIAccessibleProvider_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Value, Impl: ILegacyIAccessibleProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Value, Impl: ILegacyIAccessibleProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Value() { @@ -1142,7 +1139,7 @@ impl ILegacyIAccessibleProvider_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Description, Impl: ILegacyIAccessibleProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: ILegacyIAccessibleProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -1175,7 +1172,7 @@ impl ILegacyIAccessibleProvider_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Help, Impl: ILegacyIAccessibleProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszhelp: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Help, Impl: ILegacyIAccessibleProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszhelp: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Help() { @@ -1186,7 +1183,7 @@ impl ILegacyIAccessibleProvider_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn KeyboardShortcut, Impl: ILegacyIAccessibleProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszkeyboardshortcut: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn KeyboardShortcut, Impl: ILegacyIAccessibleProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszkeyboardshortcut: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.KeyboardShortcut() { @@ -1208,7 +1205,7 @@ impl ILegacyIAccessibleProvider_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DefaultAction, Impl: ILegacyIAccessibleProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszdefaultaction: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DefaultAction, Impl: ILegacyIAccessibleProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszdefaultaction: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DefaultAction() { @@ -1241,19 +1238,19 @@ impl ILegacyIAccessibleProvider_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IMultipleViewProvider_Impl: Sized { - fn GetViewName(&self, viewid: i32) -> ::windows::core::Result; + fn GetViewName(&self, viewid: i32) -> ::windows::core::Result<::windows::core::BSTR>; fn SetCurrentView(&self, viewid: i32) -> ::windows::core::Result<()>; fn CurrentView(&self) -> ::windows::core::Result; fn GetSupportedViews(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IMultipleViewProvider {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IMultipleViewProvider_Vtbl { pub const fn new, Impl: IMultipleViewProvider_Impl, const OFFSET: isize>() -> IMultipleViewProvider_Vtbl { - unsafe extern "system" fn GetViewName, Impl: IMultipleViewProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, viewid: i32, pretval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetViewName, Impl: IMultipleViewProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, viewid: i32, pretval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetViewName(::core::mem::transmute_copy(&viewid)) { @@ -2213,18 +2210,18 @@ impl ISelectionProvider2_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait ISpreadsheetItemProvider_Impl: Sized { - fn Formula(&self) -> ::windows::core::Result; + fn Formula(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetAnnotationObjects(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; fn GetAnnotationTypes(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for ISpreadsheetItemProvider {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ISpreadsheetItemProvider_Vtbl { pub const fn new, Impl: ISpreadsheetItemProvider_Impl, const OFFSET: isize>() -> ISpreadsheetItemProvider_Vtbl { - unsafe extern "system" fn Formula, Impl: ISpreadsheetItemProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pretval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Formula, Impl: ISpreadsheetItemProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pretval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Formula() { @@ -2291,19 +2288,16 @@ impl ISpreadsheetProvider_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IStylesProvider_Impl: Sized { fn StyleId(&self) -> ::windows::core::Result; - fn StyleName(&self) -> ::windows::core::Result; + fn StyleName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn FillColor(&self) -> ::windows::core::Result; - fn FillPatternStyle(&self) -> ::windows::core::Result; - fn Shape(&self) -> ::windows::core::Result; + fn FillPatternStyle(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Shape(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn FillPatternColor(&self) -> ::windows::core::Result; - fn ExtendedProperties(&self) -> ::windows::core::Result; + fn ExtendedProperties(&self) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IStylesProvider {} -#[cfg(feature = "Win32_Foundation")] impl IStylesProvider_Vtbl { pub const fn new, Impl: IStylesProvider_Impl, const OFFSET: isize>() -> IStylesProvider_Vtbl { unsafe extern "system" fn StyleId, Impl: IStylesProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT { @@ -2317,7 +2311,7 @@ impl IStylesProvider_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn StyleName, Impl: IStylesProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn StyleName, Impl: IStylesProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.StyleName() { @@ -2339,7 +2333,7 @@ impl IStylesProvider_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn FillPatternStyle, Impl: IStylesProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FillPatternStyle, Impl: IStylesProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FillPatternStyle() { @@ -2350,7 +2344,7 @@ impl IStylesProvider_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Shape, Impl: IStylesProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Shape, Impl: IStylesProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Shape() { @@ -2372,7 +2366,7 @@ impl IStylesProvider_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ExtendedProperties, Impl: IStylesProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExtendedProperties, Impl: IStylesProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ExtendedProperties() { @@ -2740,11 +2734,11 @@ pub trait ITextRangeProvider_Impl: Sized { fn CompareEndpoints(&self, endpoint: TextPatternRangeEndpoint, targetrange: &::core::option::Option, targetendpoint: TextPatternRangeEndpoint) -> ::windows::core::Result; fn ExpandToEnclosingUnit(&self, unit: TextUnit) -> ::windows::core::Result<()>; fn FindAttribute(&self, attributeid: i32, val: &super::super::System::Com::VARIANT, backward: super::super::Foundation::BOOL) -> ::windows::core::Result; - fn FindText(&self, text: &super::super::Foundation::BSTR, backward: super::super::Foundation::BOOL, ignorecase: super::super::Foundation::BOOL) -> ::windows::core::Result; + fn FindText(&self, text: &::windows::core::BSTR, backward: super::super::Foundation::BOOL, ignorecase: super::super::Foundation::BOOL) -> ::windows::core::Result; fn GetAttributeValue(&self, attributeid: i32) -> ::windows::core::Result; fn GetBoundingRectangles(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; fn GetEnclosingElement(&self) -> ::windows::core::Result; - fn GetText(&self, maxlength: i32) -> ::windows::core::Result; + fn GetText(&self, maxlength: i32) -> ::windows::core::Result<::windows::core::BSTR>; fn Move(&self, unit: TextUnit, count: i32) -> ::windows::core::Result; fn MoveEndpointByUnit(&self, endpoint: TextPatternRangeEndpoint, unit: TextUnit, count: i32) -> ::windows::core::Result; fn MoveEndpointByRange(&self, endpoint: TextPatternRangeEndpoint, targetrange: &::core::option::Option, targetendpoint: TextPatternRangeEndpoint) -> ::windows::core::Result<()>; @@ -2808,7 +2802,7 @@ impl ITextRangeProvider_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn FindText, Impl: ITextRangeProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop, backward: super::super::Foundation::BOOL, ignorecase: super::super::Foundation::BOOL, pretval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn FindText, Impl: ITextRangeProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop<::windows::core::BSTR>, backward: super::super::Foundation::BOOL, ignorecase: super::super::Foundation::BOOL, pretval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FindText(::core::mem::transmute(&text), ::core::mem::transmute_copy(&backward), ::core::mem::transmute_copy(&ignorecase)) { @@ -2852,7 +2846,7 @@ impl ITextRangeProvider_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetText, Impl: ITextRangeProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, maxlength: i32, pretval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetText, Impl: ITextRangeProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, maxlength: i32, pretval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetText(::core::mem::transmute_copy(&maxlength)) { @@ -3206,8 +3200,8 @@ pub trait IUIAutomation_Impl: Sized { fn SafeArrayToRectNativeArray(&self, rects: *const super::super::System::Com::SAFEARRAY, rectarray: *mut *mut super::super::Foundation::RECT, rectarraycount: *mut i32) -> ::windows::core::Result<()>; fn CreateProxyFactoryEntry(&self, factory: &::core::option::Option) -> ::windows::core::Result; fn ProxyFactoryMapping(&self) -> ::windows::core::Result; - fn GetPropertyProgrammaticName(&self, property: i32) -> ::windows::core::Result; - fn GetPatternProgrammaticName(&self, pattern: i32) -> ::windows::core::Result; + fn GetPropertyProgrammaticName(&self, property: i32) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetPatternProgrammaticName(&self, pattern: i32) -> ::windows::core::Result<::windows::core::BSTR>; fn PollForPotentialSupportedPatterns(&self, pelement: &::core::option::Option, patternids: *mut *mut super::super::System::Com::SAFEARRAY, patternnames: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows::core::Result<()>; fn PollForPotentialSupportedProperties(&self, pelement: &::core::option::Option, propertyids: *mut *mut super::super::System::Com::SAFEARRAY, propertynames: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows::core::Result<()>; fn CheckNotSupported(&self, value: &super::super::System::Com::VARIANT) -> ::windows::core::Result; @@ -3655,7 +3649,7 @@ impl IUIAutomation_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetPropertyProgrammaticName, Impl: IUIAutomation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, property: i32, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPropertyProgrammaticName, Impl: IUIAutomation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, property: i32, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetPropertyProgrammaticName(::core::mem::transmute_copy(&property)) { @@ -3666,7 +3660,7 @@ impl IUIAutomation_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetPatternProgrammaticName, Impl: IUIAutomation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pattern: i32, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPatternProgrammaticName, Impl: IUIAutomation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pattern: i32, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetPatternProgrammaticName(::core::mem::transmute_copy(&pattern)) { @@ -4137,22 +4131,19 @@ impl IUIAutomationAndCondition_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IUIAutomationAnnotationPattern_Impl: Sized { fn CurrentAnnotationTypeId(&self) -> ::windows::core::Result; - fn CurrentAnnotationTypeName(&self) -> ::windows::core::Result; - fn CurrentAuthor(&self) -> ::windows::core::Result; - fn CurrentDateTime(&self) -> ::windows::core::Result; + fn CurrentAnnotationTypeName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CurrentAuthor(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CurrentDateTime(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CurrentTarget(&self) -> ::windows::core::Result; fn CachedAnnotationTypeId(&self) -> ::windows::core::Result; - fn CachedAnnotationTypeName(&self) -> ::windows::core::Result; - fn CachedAuthor(&self) -> ::windows::core::Result; - fn CachedDateTime(&self) -> ::windows::core::Result; + fn CachedAnnotationTypeName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CachedAuthor(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CachedDateTime(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CachedTarget(&self) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IUIAutomationAnnotationPattern {} -#[cfg(feature = "Win32_Foundation")] impl IUIAutomationAnnotationPattern_Vtbl { pub const fn new, Impl: IUIAutomationAnnotationPattern_Impl, const OFFSET: isize>() -> IUIAutomationAnnotationPattern_Vtbl { unsafe extern "system" fn CurrentAnnotationTypeId, Impl: IUIAutomationAnnotationPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT { @@ -4166,7 +4157,7 @@ impl IUIAutomationAnnotationPattern_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CurrentAnnotationTypeName, Impl: IUIAutomationAnnotationPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CurrentAnnotationTypeName, Impl: IUIAutomationAnnotationPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CurrentAnnotationTypeName() { @@ -4177,7 +4168,7 @@ impl IUIAutomationAnnotationPattern_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CurrentAuthor, Impl: IUIAutomationAnnotationPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CurrentAuthor, Impl: IUIAutomationAnnotationPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CurrentAuthor() { @@ -4188,7 +4179,7 @@ impl IUIAutomationAnnotationPattern_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CurrentDateTime, Impl: IUIAutomationAnnotationPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CurrentDateTime, Impl: IUIAutomationAnnotationPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CurrentDateTime() { @@ -4221,7 +4212,7 @@ impl IUIAutomationAnnotationPattern_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CachedAnnotationTypeName, Impl: IUIAutomationAnnotationPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CachedAnnotationTypeName, Impl: IUIAutomationAnnotationPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CachedAnnotationTypeName() { @@ -4232,7 +4223,7 @@ impl IUIAutomationAnnotationPattern_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CachedAuthor, Impl: IUIAutomationAnnotationPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CachedAuthor, Impl: IUIAutomationAnnotationPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CachedAuthor() { @@ -4243,7 +4234,7 @@ impl IUIAutomationAnnotationPattern_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CachedDateTime, Impl: IUIAutomationAnnotationPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CachedDateTime, Impl: IUIAutomationAnnotationPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CachedDateTime() { @@ -4512,8 +4503,8 @@ impl IUIAutomationDockPattern_Vtbl { pub trait IUIAutomationDragPattern_Impl: Sized { fn CurrentIsGrabbed(&self) -> ::windows::core::Result; fn CachedIsGrabbed(&self) -> ::windows::core::Result; - fn CurrentDropEffect(&self) -> ::windows::core::Result; - fn CachedDropEffect(&self) -> ::windows::core::Result; + fn CurrentDropEffect(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CachedDropEffect(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CurrentDropEffects(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; fn CachedDropEffects(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; fn GetCurrentGrabbedItems(&self) -> ::windows::core::Result; @@ -4546,7 +4537,7 @@ impl IUIAutomationDragPattern_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CurrentDropEffect, Impl: IUIAutomationDragPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CurrentDropEffect, Impl: IUIAutomationDragPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CurrentDropEffect() { @@ -4557,7 +4548,7 @@ impl IUIAutomationDragPattern_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CachedDropEffect, Impl: IUIAutomationDragPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CachedDropEffect, Impl: IUIAutomationDragPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CachedDropEffect() { @@ -4628,19 +4619,19 @@ impl IUIAutomationDragPattern_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IUIAutomationDropTargetPattern_Impl: Sized { - fn CurrentDropTargetEffect(&self) -> ::windows::core::Result; - fn CachedDropTargetEffect(&self) -> ::windows::core::Result; + fn CurrentDropTargetEffect(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CachedDropTargetEffect(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CurrentDropTargetEffects(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; fn CachedDropTargetEffects(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IUIAutomationDropTargetPattern {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IUIAutomationDropTargetPattern_Vtbl { pub const fn new, Impl: IUIAutomationDropTargetPattern_Impl, const OFFSET: isize>() -> IUIAutomationDropTargetPattern_Vtbl { - unsafe extern "system" fn CurrentDropTargetEffect, Impl: IUIAutomationDropTargetPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CurrentDropTargetEffect, Impl: IUIAutomationDropTargetPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CurrentDropTargetEffect() { @@ -4651,7 +4642,7 @@ impl IUIAutomationDropTargetPattern_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CachedDropTargetEffect, Impl: IUIAutomationDropTargetPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CachedDropTargetEffect, Impl: IUIAutomationDropTargetPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CachedDropTargetEffect() { @@ -4717,68 +4708,68 @@ pub trait IUIAutomationElement_Impl: Sized { fn GetCachedChildren(&self) -> ::windows::core::Result; fn CurrentProcessId(&self) -> ::windows::core::Result; fn CurrentControlType(&self) -> ::windows::core::Result; - fn CurrentLocalizedControlType(&self) -> ::windows::core::Result; - fn CurrentName(&self) -> ::windows::core::Result; - fn CurrentAcceleratorKey(&self) -> ::windows::core::Result; - fn CurrentAccessKey(&self) -> ::windows::core::Result; + fn CurrentLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CurrentName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CurrentAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CurrentAccessKey(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CurrentHasKeyboardFocus(&self) -> ::windows::core::Result; fn CurrentIsKeyboardFocusable(&self) -> ::windows::core::Result; fn CurrentIsEnabled(&self) -> ::windows::core::Result; - fn CurrentAutomationId(&self) -> ::windows::core::Result; - fn CurrentClassName(&self) -> ::windows::core::Result; - fn CurrentHelpText(&self) -> ::windows::core::Result; + fn CurrentAutomationId(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CurrentClassName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CurrentHelpText(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CurrentCulture(&self) -> ::windows::core::Result; fn CurrentIsControlElement(&self) -> ::windows::core::Result; fn CurrentIsContentElement(&self) -> ::windows::core::Result; fn CurrentIsPassword(&self) -> ::windows::core::Result; fn CurrentNativeWindowHandle(&self) -> ::windows::core::Result; - fn CurrentItemType(&self) -> ::windows::core::Result; + fn CurrentItemType(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CurrentIsOffscreen(&self) -> ::windows::core::Result; fn CurrentOrientation(&self) -> ::windows::core::Result; - fn CurrentFrameworkId(&self) -> ::windows::core::Result; + fn CurrentFrameworkId(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CurrentIsRequiredForForm(&self) -> ::windows::core::Result; - fn CurrentItemStatus(&self) -> ::windows::core::Result; + fn CurrentItemStatus(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CurrentBoundingRectangle(&self) -> ::windows::core::Result; fn CurrentLabeledBy(&self) -> ::windows::core::Result; - fn CurrentAriaRole(&self) -> ::windows::core::Result; - fn CurrentAriaProperties(&self) -> ::windows::core::Result; + fn CurrentAriaRole(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CurrentAriaProperties(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CurrentIsDataValidForForm(&self) -> ::windows::core::Result; fn CurrentControllerFor(&self) -> ::windows::core::Result; fn CurrentDescribedBy(&self) -> ::windows::core::Result; fn CurrentFlowsTo(&self) -> ::windows::core::Result; - fn CurrentProviderDescription(&self) -> ::windows::core::Result; + fn CurrentProviderDescription(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CachedProcessId(&self) -> ::windows::core::Result; fn CachedControlType(&self) -> ::windows::core::Result; - fn CachedLocalizedControlType(&self) -> ::windows::core::Result; - fn CachedName(&self) -> ::windows::core::Result; - fn CachedAcceleratorKey(&self) -> ::windows::core::Result; - fn CachedAccessKey(&self) -> ::windows::core::Result; + fn CachedLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CachedName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CachedAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CachedAccessKey(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CachedHasKeyboardFocus(&self) -> ::windows::core::Result; fn CachedIsKeyboardFocusable(&self) -> ::windows::core::Result; fn CachedIsEnabled(&self) -> ::windows::core::Result; - fn CachedAutomationId(&self) -> ::windows::core::Result; - fn CachedClassName(&self) -> ::windows::core::Result; - fn CachedHelpText(&self) -> ::windows::core::Result; + fn CachedAutomationId(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CachedClassName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CachedHelpText(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CachedCulture(&self) -> ::windows::core::Result; fn CachedIsControlElement(&self) -> ::windows::core::Result; fn CachedIsContentElement(&self) -> ::windows::core::Result; fn CachedIsPassword(&self) -> ::windows::core::Result; fn CachedNativeWindowHandle(&self) -> ::windows::core::Result; - fn CachedItemType(&self) -> ::windows::core::Result; + fn CachedItemType(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CachedIsOffscreen(&self) -> ::windows::core::Result; fn CachedOrientation(&self) -> ::windows::core::Result; - fn CachedFrameworkId(&self) -> ::windows::core::Result; + fn CachedFrameworkId(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CachedIsRequiredForForm(&self) -> ::windows::core::Result; - fn CachedItemStatus(&self) -> ::windows::core::Result; + fn CachedItemStatus(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CachedBoundingRectangle(&self) -> ::windows::core::Result; fn CachedLabeledBy(&self) -> ::windows::core::Result; - fn CachedAriaRole(&self) -> ::windows::core::Result; - fn CachedAriaProperties(&self) -> ::windows::core::Result; + fn CachedAriaRole(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CachedAriaProperties(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CachedIsDataValidForForm(&self) -> ::windows::core::Result; fn CachedControllerFor(&self) -> ::windows::core::Result; fn CachedDescribedBy(&self) -> ::windows::core::Result; fn CachedFlowsTo(&self) -> ::windows::core::Result; - fn CachedProviderDescription(&self) -> ::windows::core::Result; + fn CachedProviderDescription(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetClickablePoint(&self, clickable: *mut super::super::Foundation::POINT, gotclickable: *mut super::super::Foundation::BOOL) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -4977,7 +4968,7 @@ impl IUIAutomationElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CurrentLocalizedControlType, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CurrentLocalizedControlType, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CurrentLocalizedControlType() { @@ -4988,7 +4979,7 @@ impl IUIAutomationElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CurrentName, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CurrentName, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CurrentName() { @@ -4999,7 +4990,7 @@ impl IUIAutomationElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CurrentAcceleratorKey, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CurrentAcceleratorKey, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CurrentAcceleratorKey() { @@ -5010,7 +5001,7 @@ impl IUIAutomationElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CurrentAccessKey, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CurrentAccessKey, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CurrentAccessKey() { @@ -5054,7 +5045,7 @@ impl IUIAutomationElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CurrentAutomationId, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CurrentAutomationId, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CurrentAutomationId() { @@ -5065,7 +5056,7 @@ impl IUIAutomationElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CurrentClassName, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CurrentClassName, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CurrentClassName() { @@ -5076,7 +5067,7 @@ impl IUIAutomationElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CurrentHelpText, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CurrentHelpText, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CurrentHelpText() { @@ -5142,7 +5133,7 @@ impl IUIAutomationElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CurrentItemType, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CurrentItemType, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CurrentItemType() { @@ -5175,7 +5166,7 @@ impl IUIAutomationElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CurrentFrameworkId, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CurrentFrameworkId, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CurrentFrameworkId() { @@ -5197,7 +5188,7 @@ impl IUIAutomationElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CurrentItemStatus, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CurrentItemStatus, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CurrentItemStatus() { @@ -5230,7 +5221,7 @@ impl IUIAutomationElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CurrentAriaRole, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CurrentAriaRole, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CurrentAriaRole() { @@ -5241,7 +5232,7 @@ impl IUIAutomationElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CurrentAriaProperties, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CurrentAriaProperties, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CurrentAriaProperties() { @@ -5296,7 +5287,7 @@ impl IUIAutomationElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CurrentProviderDescription, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CurrentProviderDescription, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CurrentProviderDescription() { @@ -5329,7 +5320,7 @@ impl IUIAutomationElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CachedLocalizedControlType, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CachedLocalizedControlType, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CachedLocalizedControlType() { @@ -5340,7 +5331,7 @@ impl IUIAutomationElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CachedName, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CachedName, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CachedName() { @@ -5351,7 +5342,7 @@ impl IUIAutomationElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CachedAcceleratorKey, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CachedAcceleratorKey, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CachedAcceleratorKey() { @@ -5362,7 +5353,7 @@ impl IUIAutomationElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CachedAccessKey, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CachedAccessKey, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CachedAccessKey() { @@ -5406,7 +5397,7 @@ impl IUIAutomationElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CachedAutomationId, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CachedAutomationId, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CachedAutomationId() { @@ -5417,7 +5408,7 @@ impl IUIAutomationElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CachedClassName, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CachedClassName, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CachedClassName() { @@ -5428,7 +5419,7 @@ impl IUIAutomationElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CachedHelpText, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CachedHelpText, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CachedHelpText() { @@ -5494,7 +5485,7 @@ impl IUIAutomationElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CachedItemType, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CachedItemType, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CachedItemType() { @@ -5527,7 +5518,7 @@ impl IUIAutomationElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CachedFrameworkId, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CachedFrameworkId, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CachedFrameworkId() { @@ -5549,7 +5540,7 @@ impl IUIAutomationElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CachedItemStatus, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CachedItemStatus, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CachedItemStatus() { @@ -5582,7 +5573,7 @@ impl IUIAutomationElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CachedAriaRole, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CachedAriaRole, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CachedAriaRole() { @@ -5593,7 +5584,7 @@ impl IUIAutomationElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CachedAriaProperties, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CachedAriaProperties, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CachedAriaProperties() { @@ -5648,7 +5639,7 @@ impl IUIAutomationElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CachedProviderDescription, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CachedProviderDescription, Impl: IUIAutomationElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CachedProviderDescription() { @@ -6046,9 +6037,9 @@ impl IUIAutomationElement4_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IUIAutomationElement5_Impl: Sized + IUIAutomationElement_Impl + IUIAutomationElement2_Impl + IUIAutomationElement3_Impl + IUIAutomationElement4_Impl { fn CurrentLandmarkType(&self) -> ::windows::core::Result; - fn CurrentLocalizedLandmarkType(&self) -> ::windows::core::Result; + fn CurrentLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CachedLandmarkType(&self) -> ::windows::core::Result; - fn CachedLocalizedLandmarkType(&self) -> ::windows::core::Result; + fn CachedLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IUIAutomationElement5 {} @@ -6066,7 +6057,7 @@ impl IUIAutomationElement5_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CurrentLocalizedLandmarkType, Impl: IUIAutomationElement5_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CurrentLocalizedLandmarkType, Impl: IUIAutomationElement5_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CurrentLocalizedLandmarkType() { @@ -6088,7 +6079,7 @@ impl IUIAutomationElement5_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CachedLocalizedLandmarkType, Impl: IUIAutomationElement5_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CachedLocalizedLandmarkType, Impl: IUIAutomationElement5_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CachedLocalizedLandmarkType() { @@ -6113,15 +6104,15 @@ impl IUIAutomationElement5_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IUIAutomationElement6_Impl: Sized + IUIAutomationElement_Impl + IUIAutomationElement2_Impl + IUIAutomationElement3_Impl + IUIAutomationElement4_Impl + IUIAutomationElement5_Impl { - fn CurrentFullDescription(&self) -> ::windows::core::Result; - fn CachedFullDescription(&self) -> ::windows::core::Result; + fn CurrentFullDescription(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CachedFullDescription(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IUIAutomationElement6 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IUIAutomationElement6_Vtbl { pub const fn new, Impl: IUIAutomationElement6_Impl, const OFFSET: isize>() -> IUIAutomationElement6_Vtbl { - unsafe extern "system" fn CurrentFullDescription, Impl: IUIAutomationElement6_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CurrentFullDescription, Impl: IUIAutomationElement6_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CurrentFullDescription() { @@ -6132,7 +6123,7 @@ impl IUIAutomationElement6_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CachedFullDescription, Impl: IUIAutomationElement6_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CachedFullDescription, Impl: IUIAutomationElement6_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CachedFullDescription() { @@ -6770,36 +6761,36 @@ impl IUIAutomationItemContainerPattern_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IUIAutomationLegacyIAccessiblePattern_Impl: Sized { fn Select(&self, flagsselect: i32) -> ::windows::core::Result<()>; fn DoDefaultAction(&self) -> ::windows::core::Result<()>; fn SetValue(&self, szvalue: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn CurrentChildId(&self) -> ::windows::core::Result; - fn CurrentName(&self) -> ::windows::core::Result; - fn CurrentValue(&self) -> ::windows::core::Result; - fn CurrentDescription(&self) -> ::windows::core::Result; + fn CurrentName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CurrentValue(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CurrentDescription(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CurrentRole(&self) -> ::windows::core::Result; fn CurrentState(&self) -> ::windows::core::Result; - fn CurrentHelp(&self) -> ::windows::core::Result; - fn CurrentKeyboardShortcut(&self) -> ::windows::core::Result; + fn CurrentHelp(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CurrentKeyboardShortcut(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetCurrentSelection(&self) -> ::windows::core::Result; - fn CurrentDefaultAction(&self) -> ::windows::core::Result; + fn CurrentDefaultAction(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CachedChildId(&self) -> ::windows::core::Result; - fn CachedName(&self) -> ::windows::core::Result; - fn CachedValue(&self) -> ::windows::core::Result; - fn CachedDescription(&self) -> ::windows::core::Result; + fn CachedName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CachedValue(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CachedDescription(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CachedRole(&self) -> ::windows::core::Result; fn CachedState(&self) -> ::windows::core::Result; - fn CachedHelp(&self) -> ::windows::core::Result; - fn CachedKeyboardShortcut(&self) -> ::windows::core::Result; + fn CachedHelp(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CachedKeyboardShortcut(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetCachedSelection(&self) -> ::windows::core::Result; - fn CachedDefaultAction(&self) -> ::windows::core::Result; + fn CachedDefaultAction(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetIAccessible(&self) -> ::windows::core::Result; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IUIAutomationLegacyIAccessiblePattern {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IUIAutomationLegacyIAccessiblePattern_Vtbl { pub const fn new, Impl: IUIAutomationLegacyIAccessiblePattern_Impl, const OFFSET: isize>() -> IUIAutomationLegacyIAccessiblePattern_Vtbl { unsafe extern "system" fn Select, Impl: IUIAutomationLegacyIAccessiblePattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flagsselect: i32) -> ::windows::core::HRESULT { @@ -6828,7 +6819,7 @@ impl IUIAutomationLegacyIAccessiblePattern_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CurrentName, Impl: IUIAutomationLegacyIAccessiblePattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CurrentName, Impl: IUIAutomationLegacyIAccessiblePattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CurrentName() { @@ -6839,7 +6830,7 @@ impl IUIAutomationLegacyIAccessiblePattern_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CurrentValue, Impl: IUIAutomationLegacyIAccessiblePattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CurrentValue, Impl: IUIAutomationLegacyIAccessiblePattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CurrentValue() { @@ -6850,7 +6841,7 @@ impl IUIAutomationLegacyIAccessiblePattern_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CurrentDescription, Impl: IUIAutomationLegacyIAccessiblePattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CurrentDescription, Impl: IUIAutomationLegacyIAccessiblePattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CurrentDescription() { @@ -6883,7 +6874,7 @@ impl IUIAutomationLegacyIAccessiblePattern_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CurrentHelp, Impl: IUIAutomationLegacyIAccessiblePattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszhelp: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CurrentHelp, Impl: IUIAutomationLegacyIAccessiblePattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszhelp: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CurrentHelp() { @@ -6894,7 +6885,7 @@ impl IUIAutomationLegacyIAccessiblePattern_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CurrentKeyboardShortcut, Impl: IUIAutomationLegacyIAccessiblePattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszkeyboardshortcut: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CurrentKeyboardShortcut, Impl: IUIAutomationLegacyIAccessiblePattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszkeyboardshortcut: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CurrentKeyboardShortcut() { @@ -6916,7 +6907,7 @@ impl IUIAutomationLegacyIAccessiblePattern_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CurrentDefaultAction, Impl: IUIAutomationLegacyIAccessiblePattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszdefaultaction: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CurrentDefaultAction, Impl: IUIAutomationLegacyIAccessiblePattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszdefaultaction: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CurrentDefaultAction() { @@ -6938,7 +6929,7 @@ impl IUIAutomationLegacyIAccessiblePattern_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CachedName, Impl: IUIAutomationLegacyIAccessiblePattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CachedName, Impl: IUIAutomationLegacyIAccessiblePattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CachedName() { @@ -6949,7 +6940,7 @@ impl IUIAutomationLegacyIAccessiblePattern_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CachedValue, Impl: IUIAutomationLegacyIAccessiblePattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CachedValue, Impl: IUIAutomationLegacyIAccessiblePattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CachedValue() { @@ -6960,7 +6951,7 @@ impl IUIAutomationLegacyIAccessiblePattern_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CachedDescription, Impl: IUIAutomationLegacyIAccessiblePattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CachedDescription, Impl: IUIAutomationLegacyIAccessiblePattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CachedDescription() { @@ -6993,7 +6984,7 @@ impl IUIAutomationLegacyIAccessiblePattern_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CachedHelp, Impl: IUIAutomationLegacyIAccessiblePattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszhelp: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CachedHelp, Impl: IUIAutomationLegacyIAccessiblePattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszhelp: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CachedHelp() { @@ -7004,7 +6995,7 @@ impl IUIAutomationLegacyIAccessiblePattern_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CachedKeyboardShortcut, Impl: IUIAutomationLegacyIAccessiblePattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszkeyboardshortcut: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CachedKeyboardShortcut, Impl: IUIAutomationLegacyIAccessiblePattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszkeyboardshortcut: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CachedKeyboardShortcut() { @@ -7026,7 +7017,7 @@ impl IUIAutomationLegacyIAccessiblePattern_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CachedDefaultAction, Impl: IUIAutomationLegacyIAccessiblePattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszdefaultaction: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CachedDefaultAction, Impl: IUIAutomationLegacyIAccessiblePattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pszdefaultaction: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CachedDefaultAction() { @@ -7080,21 +7071,21 @@ impl IUIAutomationLegacyIAccessiblePattern_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IUIAutomationMultipleViewPattern_Impl: Sized { - fn GetViewName(&self, view: i32) -> ::windows::core::Result; + fn GetViewName(&self, view: i32) -> ::windows::core::Result<::windows::core::BSTR>; fn SetCurrentView(&self, view: i32) -> ::windows::core::Result<()>; fn CurrentCurrentView(&self) -> ::windows::core::Result; fn GetCurrentSupportedViews(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; fn CachedCurrentView(&self) -> ::windows::core::Result; fn GetCachedSupportedViews(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IUIAutomationMultipleViewPattern {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IUIAutomationMultipleViewPattern_Vtbl { pub const fn new, Impl: IUIAutomationMultipleViewPattern_Impl, const OFFSET: isize>() -> IUIAutomationMultipleViewPattern_Vtbl { - unsafe extern "system" fn GetViewName, Impl: IUIAutomationMultipleViewPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, view: i32, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetViewName, Impl: IUIAutomationMultipleViewPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, view: i32, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetViewName(::core::mem::transmute_copy(&view)) { @@ -7191,16 +7182,13 @@ impl IUIAutomationNotCondition_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IUIAutomationNotificationEventHandler_Impl: Sized { - fn HandleNotificationEvent(&self, sender: &::core::option::Option, notificationkind: NotificationKind, notificationprocessing: NotificationProcessing, displaystring: &super::super::Foundation::BSTR, activityid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn HandleNotificationEvent(&self, sender: &::core::option::Option, notificationkind: NotificationKind, notificationprocessing: NotificationProcessing, displaystring: &::windows::core::BSTR, activityid: &::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IUIAutomationNotificationEventHandler {} -#[cfg(feature = "Win32_Foundation")] impl IUIAutomationNotificationEventHandler_Vtbl { pub const fn new, Impl: IUIAutomationNotificationEventHandler_Impl, const OFFSET: isize>() -> IUIAutomationNotificationEventHandler_Vtbl { - unsafe extern "system" fn HandleNotificationEvent, Impl: IUIAutomationNotificationEventHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void, notificationkind: NotificationKind, notificationprocessing: NotificationProcessing, displaystring: ::core::mem::ManuallyDrop, activityid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn HandleNotificationEvent, Impl: IUIAutomationNotificationEventHandler_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void, notificationkind: NotificationKind, notificationprocessing: NotificationProcessing, displaystring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, activityid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.HandleNotificationEvent(::core::mem::transmute(&sender), ::core::mem::transmute_copy(¬ificationkind), ::core::mem::transmute_copy(¬ificationprocessing), ::core::mem::transmute(&displaystring), ::core::mem::transmute(&activityid)).into() @@ -7427,7 +7415,7 @@ impl IUIAutomationPropertyCondition_Vtbl { #[cfg(feature = "Win32_Foundation")] pub trait IUIAutomationProxyFactory_Impl: Sized { fn CreateProvider(&self, hwnd: super::super::Foundation::HWND, idobject: i32, idchild: i32) -> ::windows::core::Result; - fn ProxyFactoryId(&self) -> ::windows::core::Result; + fn ProxyFactoryId(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IUIAutomationProxyFactory {} @@ -7445,7 +7433,7 @@ impl IUIAutomationProxyFactory_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ProxyFactoryId, Impl: IUIAutomationProxyFactory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, factoryid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ProxyFactoryId, Impl: IUIAutomationProxyFactory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, factoryid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ProxyFactoryId() { @@ -7469,8 +7457,8 @@ impl IUIAutomationProxyFactory_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub trait IUIAutomationProxyFactoryEntry_Impl: Sized { fn ProxyFactory(&self) -> ::windows::core::Result; - fn ClassName(&self) -> ::windows::core::Result; - fn ImageName(&self) -> ::windows::core::Result; + fn ClassName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn ImageName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn AllowSubstringMatch(&self) -> ::windows::core::Result; fn CanCheckBaseClass(&self) -> ::windows::core::Result; fn NeedsAdviseEvents(&self) -> ::windows::core::Result; @@ -7498,7 +7486,7 @@ impl IUIAutomationProxyFactoryEntry_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ClassName, Impl: IUIAutomationProxyFactoryEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, classname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ClassName, Impl: IUIAutomationProxyFactoryEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, classname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ClassName() { @@ -7509,7 +7497,7 @@ impl IUIAutomationProxyFactoryEntry_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ImageName, Impl: IUIAutomationProxyFactoryEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, imagename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ImageName, Impl: IUIAutomationProxyFactoryEntry_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, imagename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ImageName() { @@ -8446,21 +8434,21 @@ impl IUIAutomationSelectionPattern2_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IUIAutomationSpreadsheetItemPattern_Impl: Sized { - fn CurrentFormula(&self) -> ::windows::core::Result; + fn CurrentFormula(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetCurrentAnnotationObjects(&self) -> ::windows::core::Result; fn GetCurrentAnnotationTypes(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; - fn CachedFormula(&self) -> ::windows::core::Result; + fn CachedFormula(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetCachedAnnotationObjects(&self) -> ::windows::core::Result; fn GetCachedAnnotationTypes(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IUIAutomationSpreadsheetItemPattern {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IUIAutomationSpreadsheetItemPattern_Vtbl { pub const fn new, Impl: IUIAutomationSpreadsheetItemPattern_Impl, const OFFSET: isize>() -> IUIAutomationSpreadsheetItemPattern_Vtbl { - unsafe extern "system" fn CurrentFormula, Impl: IUIAutomationSpreadsheetItemPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CurrentFormula, Impl: IUIAutomationSpreadsheetItemPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CurrentFormula() { @@ -8493,7 +8481,7 @@ impl IUIAutomationSpreadsheetItemPattern_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CachedFormula, Impl: IUIAutomationSpreadsheetItemPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CachedFormula, Impl: IUIAutomationSpreadsheetItemPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CachedFormula() { @@ -8540,16 +8528,13 @@ impl IUIAutomationSpreadsheetItemPattern_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IUIAutomationSpreadsheetPattern_Impl: Sized { - fn GetItemByName(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn GetItemByName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IUIAutomationSpreadsheetPattern {} -#[cfg(feature = "Win32_Foundation")] impl IUIAutomationSpreadsheetPattern_Vtbl { pub const fn new, Impl: IUIAutomationSpreadsheetPattern_Impl, const OFFSET: isize>() -> IUIAutomationSpreadsheetPattern_Vtbl { - unsafe extern "system" fn GetItemByName, Impl: IUIAutomationSpreadsheetPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, element: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetItemByName, Impl: IUIAutomationSpreadsheetPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, element: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetItemByName(::core::mem::transmute(&name)) { @@ -8589,28 +8574,25 @@ impl IUIAutomationStructureChangedEventHandler_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IUIAutomationStylesPattern_Impl: Sized { fn CurrentStyleId(&self) -> ::windows::core::Result; - fn CurrentStyleName(&self) -> ::windows::core::Result; + fn CurrentStyleName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CurrentFillColor(&self) -> ::windows::core::Result; - fn CurrentFillPatternStyle(&self) -> ::windows::core::Result; - fn CurrentShape(&self) -> ::windows::core::Result; + fn CurrentFillPatternStyle(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CurrentShape(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CurrentFillPatternColor(&self) -> ::windows::core::Result; - fn CurrentExtendedProperties(&self) -> ::windows::core::Result; + fn CurrentExtendedProperties(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetCurrentExtendedPropertiesAsArray(&self, propertyarray: *mut *mut ExtendedProperty, propertycount: *mut i32) -> ::windows::core::Result<()>; fn CachedStyleId(&self) -> ::windows::core::Result; - fn CachedStyleName(&self) -> ::windows::core::Result; + fn CachedStyleName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CachedFillColor(&self) -> ::windows::core::Result; - fn CachedFillPatternStyle(&self) -> ::windows::core::Result; - fn CachedShape(&self) -> ::windows::core::Result; + fn CachedFillPatternStyle(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn CachedShape(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CachedFillPatternColor(&self) -> ::windows::core::Result; - fn CachedExtendedProperties(&self) -> ::windows::core::Result; + fn CachedExtendedProperties(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetCachedExtendedPropertiesAsArray(&self, propertyarray: *mut *mut ExtendedProperty, propertycount: *mut i32) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IUIAutomationStylesPattern {} -#[cfg(feature = "Win32_Foundation")] impl IUIAutomationStylesPattern_Vtbl { pub const fn new, Impl: IUIAutomationStylesPattern_Impl, const OFFSET: isize>() -> IUIAutomationStylesPattern_Vtbl { unsafe extern "system" fn CurrentStyleId, Impl: IUIAutomationStylesPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT { @@ -8624,7 +8606,7 @@ impl IUIAutomationStylesPattern_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CurrentStyleName, Impl: IUIAutomationStylesPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CurrentStyleName, Impl: IUIAutomationStylesPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CurrentStyleName() { @@ -8646,7 +8628,7 @@ impl IUIAutomationStylesPattern_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CurrentFillPatternStyle, Impl: IUIAutomationStylesPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CurrentFillPatternStyle, Impl: IUIAutomationStylesPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CurrentFillPatternStyle() { @@ -8657,7 +8639,7 @@ impl IUIAutomationStylesPattern_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CurrentShape, Impl: IUIAutomationStylesPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CurrentShape, Impl: IUIAutomationStylesPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CurrentShape() { @@ -8679,7 +8661,7 @@ impl IUIAutomationStylesPattern_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CurrentExtendedProperties, Impl: IUIAutomationStylesPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CurrentExtendedProperties, Impl: IUIAutomationStylesPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CurrentExtendedProperties() { @@ -8706,7 +8688,7 @@ impl IUIAutomationStylesPattern_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CachedStyleName, Impl: IUIAutomationStylesPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CachedStyleName, Impl: IUIAutomationStylesPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CachedStyleName() { @@ -8728,7 +8710,7 @@ impl IUIAutomationStylesPattern_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CachedFillPatternStyle, Impl: IUIAutomationStylesPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CachedFillPatternStyle, Impl: IUIAutomationStylesPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CachedFillPatternStyle() { @@ -8739,7 +8721,7 @@ impl IUIAutomationStylesPattern_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CachedShape, Impl: IUIAutomationStylesPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CachedShape, Impl: IUIAutomationStylesPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CachedShape() { @@ -8761,7 +8743,7 @@ impl IUIAutomationStylesPattern_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CachedExtendedProperties, Impl: IUIAutomationStylesPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CachedExtendedProperties, Impl: IUIAutomationStylesPattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CachedExtendedProperties() { @@ -9225,11 +9207,11 @@ pub trait IUIAutomationTextRange_Impl: Sized { fn CompareEndpoints(&self, srcendpoint: TextPatternRangeEndpoint, range: &::core::option::Option, targetendpoint: TextPatternRangeEndpoint) -> ::windows::core::Result; fn ExpandToEnclosingUnit(&self, textunit: TextUnit) -> ::windows::core::Result<()>; fn FindAttribute(&self, attr: i32, val: &super::super::System::Com::VARIANT, backward: super::super::Foundation::BOOL) -> ::windows::core::Result; - fn FindText(&self, text: &super::super::Foundation::BSTR, backward: super::super::Foundation::BOOL, ignorecase: super::super::Foundation::BOOL) -> ::windows::core::Result; + fn FindText(&self, text: &::windows::core::BSTR, backward: super::super::Foundation::BOOL, ignorecase: super::super::Foundation::BOOL) -> ::windows::core::Result; fn GetAttributeValue(&self, attr: i32) -> ::windows::core::Result; fn GetBoundingRectangles(&self) -> ::windows::core::Result<*mut super::super::System::Com::SAFEARRAY>; fn GetEnclosingElement(&self) -> ::windows::core::Result; - fn GetText(&self, maxlength: i32) -> ::windows::core::Result; + fn GetText(&self, maxlength: i32) -> ::windows::core::Result<::windows::core::BSTR>; fn Move(&self, unit: TextUnit, count: i32) -> ::windows::core::Result; fn MoveEndpointByUnit(&self, endpoint: TextPatternRangeEndpoint, unit: TextUnit, count: i32) -> ::windows::core::Result; fn MoveEndpointByRange(&self, srcendpoint: TextPatternRangeEndpoint, range: &::core::option::Option, targetendpoint: TextPatternRangeEndpoint) -> ::windows::core::Result<()>; @@ -9293,7 +9275,7 @@ impl IUIAutomationTextRange_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn FindText, Impl: IUIAutomationTextRange_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop, backward: super::super::Foundation::BOOL, ignorecase: super::super::Foundation::BOOL, found: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn FindText, Impl: IUIAutomationTextRange_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop<::windows::core::BSTR>, backward: super::super::Foundation::BOOL, ignorecase: super::super::Foundation::BOOL, found: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FindText(::core::mem::transmute(&text), ::core::mem::transmute_copy(&backward), ::core::mem::transmute_copy(&ignorecase)) { @@ -9337,7 +9319,7 @@ impl IUIAutomationTextRange_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetText, Impl: IUIAutomationTextRange_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, maxlength: i32, text: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetText, Impl: IUIAutomationTextRange_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, maxlength: i32, text: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetText(::core::mem::transmute_copy(&maxlength)) { @@ -10025,10 +10007,10 @@ impl IUIAutomationTreeWalker_Vtbl { } #[cfg(feature = "Win32_Foundation")] pub trait IUIAutomationValuePattern_Impl: Sized { - fn SetValue(&self, val: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn CurrentValue(&self) -> ::windows::core::Result; + fn SetValue(&self, val: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn CurrentValue(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CurrentIsReadOnly(&self) -> ::windows::core::Result; - fn CachedValue(&self) -> ::windows::core::Result; + fn CachedValue(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn CachedIsReadOnly(&self) -> ::windows::core::Result; } #[cfg(feature = "Win32_Foundation")] @@ -10036,12 +10018,12 @@ impl ::windows::core::RuntimeName for IUIAutomationValuePattern {} #[cfg(feature = "Win32_Foundation")] impl IUIAutomationValuePattern_Vtbl { pub const fn new, Impl: IUIAutomationValuePattern_Impl, const OFFSET: isize>() -> IUIAutomationValuePattern_Vtbl { - unsafe extern "system" fn SetValue, Impl: IUIAutomationValuePattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, val: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetValue, Impl: IUIAutomationValuePattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, val: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetValue(::core::mem::transmute(&val)).into() } - unsafe extern "system" fn CurrentValue, Impl: IUIAutomationValuePattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CurrentValue, Impl: IUIAutomationValuePattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CurrentValue() { @@ -10063,7 +10045,7 @@ impl IUIAutomationValuePattern_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CachedValue, Impl: IUIAutomationValuePattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn CachedValue, Impl: IUIAutomationValuePattern_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CachedValue() { @@ -10317,7 +10299,7 @@ impl IUIAutomationWindowPattern_Vtbl { #[cfg(feature = "Win32_Foundation")] pub trait IValueProvider_Impl: Sized { fn SetValue(&self, val: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; - fn Value(&self) -> ::windows::core::Result; + fn Value(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn IsReadOnly(&self) -> ::windows::core::Result; } #[cfg(feature = "Win32_Foundation")] @@ -10330,7 +10312,7 @@ impl IValueProvider_Vtbl { let this = (*this).get_impl(); this.SetValue(::core::mem::transmute(&val)).into() } - unsafe extern "system" fn Value, Impl: IValueProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pretval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Value, Impl: IValueProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pretval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Value() { diff --git a/crates/libs/windows/src/Windows/Win32/UI/Accessibility/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Accessibility/mod.rs index d647efc187..7621cabc3b 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Accessibility/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Accessibility/mod.rs @@ -310,16 +310,15 @@ where } LresultFromObject(::core::mem::transmute(riid), wparam.into(), punk.into().abi()) } -#[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_UI_Accessibility\"`*"] #[inline] -pub unsafe fn MultipleViewPattern_GetViewName<'a, P0>(hobj: P0, viewid: i32, ppstr: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> +pub unsafe fn MultipleViewPattern_GetViewName<'a, P0>(hobj: P0, viewid: i32, ppstr: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn MultipleViewPattern_GetViewName(hobj: HUIAPATTERNOBJECT, viewid: i32, ppstr: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn MultipleViewPattern_GetViewName(hobj: HUIAPATTERNOBJECT, viewid: i32, ppstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } MultipleViewPattern_GetViewName(hobj.into(), viewid, ::core::mem::transmute(ppstr)).ok() } @@ -666,18 +665,17 @@ where #[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn TextRange_FindText<'a, P0, P1, P2, P3>(hobj: P0, text: P1, backward: P2, ignorecase: P3, pretval: &mut HUIATEXTRANGE) -> ::windows::core::Result<()> +pub unsafe fn TextRange_FindText<'a, P0, P1, P2>(hobj: P0, text: &::windows::core::BSTR, backward: P1, ignorecase: P2, pretval: &mut HUIATEXTRANGE) -> ::windows::core::Result<()> where P0: ::std::convert::Into, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P1: ::std::convert::Into, P2: ::std::convert::Into, - P3: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn TextRange_FindText(hobj: HUIATEXTRANGE, text: ::core::mem::ManuallyDrop, backward: super::super::Foundation::BOOL, ignorecase: super::super::Foundation::BOOL, pretval: *mut HUIATEXTRANGE) -> ::windows::core::HRESULT; + fn TextRange_FindText(hobj: HUIATEXTRANGE, text: ::core::mem::ManuallyDrop<::windows::core::BSTR>, backward: super::super::Foundation::BOOL, ignorecase: super::super::Foundation::BOOL, pretval: *mut HUIATEXTRANGE) -> ::windows::core::HRESULT; } - TextRange_FindText(hobj.into(), text.into().abi(), backward.into(), ignorecase.into(), ::core::mem::transmute(pretval)).ok() + TextRange_FindText(hobj.into(), ::core::mem::transmute_copy(text), backward.into(), ignorecase.into(), ::core::mem::transmute(pretval)).ok() } #[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -730,16 +728,15 @@ where } TextRange_GetEnclosingElement(hobj.into(), ::core::mem::transmute(pretval)).ok() } -#[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_UI_Accessibility\"`*"] #[inline] -pub unsafe fn TextRange_GetText<'a, P0>(hobj: P0, maxlength: i32, pretval: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> +pub unsafe fn TextRange_GetText<'a, P0>(hobj: P0, maxlength: i32, pretval: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn TextRange_GetText(hobj: HUIATEXTRANGE, maxlength: i32, pretval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn TextRange_GetText(hobj: HUIATEXTRANGE, maxlength: i32, pretval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } TextRange_GetText(hobj.into(), maxlength, ::core::mem::transmute(pretval)).ok() } @@ -866,8 +863,8 @@ where } TransformPattern_Rotate(hobj.into(), degrees).ok() } -#[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_System_Com\"`*"] +#[cfg(feature = "Win32_System_Com")] #[inline] pub unsafe fn UiaAddEvent<'a, P0>(hnode: P0, eventid: i32, pcallback: &mut UiaEventCallback, scope: TreeScope, pproperties: &mut i32, cproperties: i32, prequest: &mut UiaCacheRequest, phevent: &mut HUIAEVENT) -> ::windows::core::Result<()> where @@ -954,10 +951,10 @@ where #[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn UiaGetErrorDescription(pdescription: &mut super::super::Foundation::BSTR) -> super::super::Foundation::BOOL { +pub unsafe fn UiaGetErrorDescription(pdescription: &mut ::windows::core::BSTR) -> super::super::Foundation::BOOL { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn UiaGetErrorDescription(pdescription: *mut super::super::Foundation::BSTR) -> super::super::Foundation::BOOL; + fn UiaGetErrorDescription(pdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> super::super::Foundation::BOOL; } UiaGetErrorDescription(::core::mem::transmute(pdescription)) } @@ -1028,16 +1025,16 @@ where } UiaGetRuntimeId(hnode.into(), ::core::mem::transmute(pruntimeid)).ok() } -#[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_System_Com\"`*"] +#[cfg(feature = "Win32_System_Com")] #[inline] -pub unsafe fn UiaGetUpdatedCache<'a, P0>(hnode: P0, prequest: &mut UiaCacheRequest, normalizestate: NormalizeState, pnormalizecondition: &mut UiaCondition, pprequesteddata: &mut *mut super::super::System::Com::SAFEARRAY, pptreestructure: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> +pub unsafe fn UiaGetUpdatedCache<'a, P0>(hnode: P0, prequest: &mut UiaCacheRequest, normalizestate: NormalizeState, pnormalizecondition: &mut UiaCondition, pprequesteddata: &mut *mut super::super::System::Com::SAFEARRAY, pptreestructure: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn UiaGetUpdatedCache(hnode: HUIANODE, prequest: *mut UiaCacheRequest, normalizestate: NormalizeState, pnormalizecondition: *mut UiaCondition, pprequesteddata: *mut *mut super::super::System::Com::SAFEARRAY, pptreestructure: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn UiaGetUpdatedCache(hnode: HUIANODE, prequest: *mut UiaCacheRequest, normalizestate: NormalizeState, pnormalizecondition: *mut UiaCondition, pprequesteddata: *mut *mut super::super::System::Com::SAFEARRAY, pptreestructure: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } UiaGetUpdatedCache(hnode.into(), ::core::mem::transmute(prequest), normalizestate, ::core::mem::transmute(pnormalizecondition), ::core::mem::transmute(pprequesteddata), ::core::mem::transmute(pptreestructure)).ok() } @@ -1120,26 +1117,26 @@ pub unsafe fn UiaLookupId(r#type: AutomationIdentifierType, pguid: &::windows::c } UiaLookupId(r#type, ::core::mem::transmute(pguid)) } -#[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_System_Com\"`*"] +#[cfg(feature = "Win32_System_Com")] #[inline] -pub unsafe fn UiaNavigate<'a, P0>(hnode: P0, direction: NavigateDirection, pcondition: &mut UiaCondition, prequest: &mut UiaCacheRequest, pprequesteddata: &mut *mut super::super::System::Com::SAFEARRAY, pptreestructure: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> +pub unsafe fn UiaNavigate<'a, P0>(hnode: P0, direction: NavigateDirection, pcondition: &mut UiaCondition, prequest: &mut UiaCacheRequest, pprequesteddata: &mut *mut super::super::System::Com::SAFEARRAY, pptreestructure: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn UiaNavigate(hnode: HUIANODE, direction: NavigateDirection, pcondition: *mut UiaCondition, prequest: *mut UiaCacheRequest, pprequesteddata: *mut *mut super::super::System::Com::SAFEARRAY, pptreestructure: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn UiaNavigate(hnode: HUIANODE, direction: NavigateDirection, pcondition: *mut UiaCondition, prequest: *mut UiaCacheRequest, pprequesteddata: *mut *mut super::super::System::Com::SAFEARRAY, pptreestructure: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } UiaNavigate(hnode.into(), direction, ::core::mem::transmute(pcondition), ::core::mem::transmute(prequest), ::core::mem::transmute(pprequesteddata), ::core::mem::transmute(pptreestructure)).ok() } -#[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_System_Com\"`*"] +#[cfg(feature = "Win32_System_Com")] #[inline] -pub unsafe fn UiaNodeFromFocus(prequest: &mut UiaCacheRequest, pprequesteddata: &mut *mut super::super::System::Com::SAFEARRAY, pptreestructure: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { +pub unsafe fn UiaNodeFromFocus(prequest: &mut UiaCacheRequest, pprequesteddata: &mut *mut super::super::System::Com::SAFEARRAY, pptreestructure: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn UiaNodeFromFocus(prequest: *mut UiaCacheRequest, pprequesteddata: *mut *mut super::super::System::Com::SAFEARRAY, pptreestructure: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn UiaNodeFromFocus(prequest: *mut UiaCacheRequest, pprequesteddata: *mut *mut super::super::System::Com::SAFEARRAY, pptreestructure: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } UiaNodeFromFocus(::core::mem::transmute(prequest), ::core::mem::transmute(pprequesteddata), ::core::mem::transmute(pptreestructure)).ok() } @@ -1156,13 +1153,13 @@ where } UiaNodeFromHandle(hwnd.into(), ::core::mem::transmute(phnode)).ok() } -#[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_System_Com\"`*"] +#[cfg(feature = "Win32_System_Com")] #[inline] -pub unsafe fn UiaNodeFromPoint(x: f64, y: f64, prequest: &mut UiaCacheRequest, pprequesteddata: &mut *mut super::super::System::Com::SAFEARRAY, pptreestructure: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { +pub unsafe fn UiaNodeFromPoint(x: f64, y: f64, prequest: &mut UiaCacheRequest, pprequesteddata: &mut *mut super::super::System::Com::SAFEARRAY, pptreestructure: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn UiaNodeFromPoint(x: f64, y: f64, prequest: *mut UiaCacheRequest, pprequesteddata: *mut *mut super::super::System::Com::SAFEARRAY, pptreestructure: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn UiaNodeFromPoint(x: f64, y: f64, prequest: *mut UiaCacheRequest, pprequesteddata: *mut *mut super::super::System::Com::SAFEARRAY, pptreestructure: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } UiaNodeFromPoint(x, y, ::core::mem::transmute(prequest), ::core::mem::transmute(pprequesteddata), ::core::mem::transmute(pptreestructure)).ok() } @@ -1297,20 +1294,17 @@ where } UiaRaiseChangesEvent(pprovider.into().abi(), eventidcount, ::core::mem::transmute(puiachanges)).ok() } -#[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_UI_Accessibility\"`*"] #[inline] -pub unsafe fn UiaRaiseNotificationEvent<'a, P0, P1, P2>(provider: P0, notificationkind: NotificationKind, notificationprocessing: NotificationProcessing, displaystring: P1, activityid: P2) -> ::windows::core::Result<()> +pub unsafe fn UiaRaiseNotificationEvent<'a, P0>(provider: P0, notificationkind: NotificationKind, notificationprocessing: NotificationProcessing, displaystring: &::windows::core::BSTR, activityid: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IRawElementProviderSimple>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn UiaRaiseNotificationEvent(provider: *mut ::core::ffi::c_void, notificationkind: NotificationKind, notificationprocessing: NotificationProcessing, displaystring: ::core::mem::ManuallyDrop, activityid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT; + fn UiaRaiseNotificationEvent(provider: *mut ::core::ffi::c_void, notificationkind: NotificationKind, notificationprocessing: NotificationProcessing, displaystring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, activityid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } - UiaRaiseNotificationEvent(provider.into().abi(), notificationkind, notificationprocessing, displaystring.into().abi(), activityid.into().abi()).ok() + UiaRaiseNotificationEvent(provider.into().abi(), notificationkind, notificationprocessing, ::core::mem::transmute_copy(displaystring), ::core::mem::transmute_copy(activityid)).ok() } #[doc = "*Required features: `\"Win32_UI_Accessibility\"`*"] #[inline] @@ -1857,30 +1851,30 @@ impl IAccessible { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn get_accName<'a, P0>(&self, varchild: P0) -> ::windows::core::Result + pub unsafe fn get_accName<'a, P0>(&self, varchild: P0) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_accName)(::windows::core::Interface::as_raw(self), varchild.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_accName)(::windows::core::Interface::as_raw(self), varchild.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn get_accValue<'a, P0>(&self, varchild: P0) -> ::windows::core::Result + pub unsafe fn get_accValue<'a, P0>(&self, varchild: P0) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_accValue)(::windows::core::Interface::as_raw(self), varchild.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_accValue)(::windows::core::Interface::as_raw(self), varchild.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn get_accDescription<'a, P0>(&self, varchild: P0) -> ::windows::core::Result + pub unsafe fn get_accDescription<'a, P0>(&self, varchild: P0) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_accDescription)(::windows::core::Interface::as_raw(self), varchild.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_accDescription)(::windows::core::Interface::as_raw(self), varchild.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -1902,16 +1896,16 @@ impl IAccessible { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn get_accHelp<'a, P0>(&self, varchild: P0) -> ::windows::core::Result + pub unsafe fn get_accHelp<'a, P0>(&self, varchild: P0) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_accHelp)(::windows::core::Interface::as_raw(self), varchild.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_accHelp)(::windows::core::Interface::as_raw(self), varchild.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn get_accHelpTopic<'a, P0>(&self, pszhelpfile: &mut super::super::Foundation::BSTR, varchild: P0, pidtopic: &mut i32) -> ::windows::core::Result<()> + pub unsafe fn get_accHelpTopic<'a, P0>(&self, pszhelpfile: &mut ::windows::core::BSTR, varchild: P0, pidtopic: &mut i32) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { @@ -1919,12 +1913,12 @@ impl IAccessible { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn get_accKeyboardShortcut<'a, P0>(&self, varchild: P0) -> ::windows::core::Result + pub unsafe fn get_accKeyboardShortcut<'a, P0>(&self, varchild: P0) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_accKeyboardShortcut)(::windows::core::Interface::as_raw(self), varchild.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_accKeyboardShortcut)(::windows::core::Interface::as_raw(self), varchild.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -1940,12 +1934,12 @@ impl IAccessible { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn get_accDefaultAction<'a, P0>(&self, varchild: P0) -> ::windows::core::Result + pub unsafe fn get_accDefaultAction<'a, P0>(&self, varchild: P0) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_accDefaultAction)(::windows::core::Interface::as_raw(self), varchild.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_accDefaultAction)(::windows::core::Interface::as_raw(self), varchild.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -1988,21 +1982,19 @@ impl IAccessible { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn put_accName<'a, P0, P1>(&self, varchild: P0, szname: P1) -> ::windows::core::Result<()> + pub unsafe fn put_accName<'a, P0>(&self, varchild: P0, szname: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).put_accName)(::windows::core::Interface::as_raw(self), varchild.into().abi(), szname.into().abi()).ok() + (::windows::core::Interface::vtable(self).put_accName)(::windows::core::Interface::as_raw(self), varchild.into().abi(), ::core::mem::transmute_copy(szname)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn put_accValue<'a, P0, P1>(&self, varchild: P0, szvalue: P1) -> ::windows::core::Result<()> + pub unsafe fn put_accValue<'a, P0>(&self, varchild: P0, szvalue: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).put_accValue)(::windows::core::Interface::as_raw(self), varchild.into().abi(), szvalue.into().abi()).ok() + (::windows::core::Interface::vtable(self).put_accValue)(::windows::core::Interface::as_raw(self), varchild.into().abi(), ::core::mem::transmute_copy(szvalue)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -2081,15 +2073,15 @@ pub struct IAccessible_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_accChild: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub get_accName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varchild: ::core::mem::ManuallyDrop, pszname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub get_accName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varchild: ::core::mem::ManuallyDrop, pszname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_accName: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub get_accValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varchild: ::core::mem::ManuallyDrop, pszvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub get_accValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varchild: ::core::mem::ManuallyDrop, pszvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_accValue: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub get_accDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varchild: ::core::mem::ManuallyDrop, pszdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub get_accDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varchild: ::core::mem::ManuallyDrop, pszdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_accDescription: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2101,15 +2093,15 @@ pub struct IAccessible_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_accState: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub get_accHelp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varchild: ::core::mem::ManuallyDrop, pszhelp: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub get_accHelp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varchild: ::core::mem::ManuallyDrop, pszhelp: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_accHelp: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub get_accHelpTopic: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszhelpfile: *mut super::super::Foundation::BSTR, varchild: ::core::mem::ManuallyDrop, pidtopic: *mut i32) -> ::windows::core::HRESULT, + pub get_accHelpTopic: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszhelpfile: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, varchild: ::core::mem::ManuallyDrop, pidtopic: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_accHelpTopic: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub get_accKeyboardShortcut: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varchild: ::core::mem::ManuallyDrop, pszkeyboardshortcut: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub get_accKeyboardShortcut: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varchild: ::core::mem::ManuallyDrop, pszkeyboardshortcut: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_accKeyboardShortcut: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2121,7 +2113,7 @@ pub struct IAccessible_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] accSelection: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub get_accDefaultAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varchild: ::core::mem::ManuallyDrop, pszdefaultaction: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub get_accDefaultAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varchild: ::core::mem::ManuallyDrop, pszdefaultaction: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_accDefaultAction: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2145,11 +2137,11 @@ pub struct IAccessible_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] accDoDefaultAction: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub put_accName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varchild: ::core::mem::ManuallyDrop, szname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub put_accName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varchild: ::core::mem::ManuallyDrop, szname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] put_accName: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub put_accValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varchild: ::core::mem::ManuallyDrop, szvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub put_accValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varchild: ::core::mem::ManuallyDrop, szvalue: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] put_accValue: usize, } @@ -2439,23 +2431,17 @@ impl IAnnotationProvider { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).AnnotationTypeId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AnnotationTypeName(&self) -> ::windows::core::Result { + pub unsafe fn AnnotationTypeName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AnnotationTypeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AnnotationTypeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Author(&self) -> ::windows::core::Result { + pub unsafe fn Author(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Author)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Author)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DateTime(&self) -> ::windows::core::Result { + pub unsafe fn DateTime(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DateTime)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DateTime)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Target(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2502,18 +2488,9 @@ unsafe impl ::windows::core::Interface for IAnnotationProvider { pub struct IAnnotationProvider_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub AnnotationTypeId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub AnnotationTypeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AnnotationTypeName: usize, - #[cfg(feature = "Win32_Foundation")] - pub Author: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Author: usize, - #[cfg(feature = "Win32_Foundation")] - pub DateTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DateTime: usize, + pub AnnotationTypeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Author: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub DateTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Target: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_Accessibility\"`*"] @@ -2630,11 +2607,9 @@ impl IDragProvider { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).IsGrabbed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DropEffect(&self) -> ::windows::core::Result { + pub unsafe fn DropEffect(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DropEffect)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DropEffect)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2692,10 +2667,7 @@ pub struct IDragProvider_Vtbl { pub IsGrabbed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] IsGrabbed: usize, - #[cfg(feature = "Win32_Foundation")] - pub DropEffect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DropEffect: usize, + pub DropEffect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub DropEffects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -2709,11 +2681,9 @@ pub struct IDragProvider_Vtbl { #[repr(transparent)] pub struct IDropTargetProvider(::windows::core::IUnknown); impl IDropTargetProvider { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DropTargetEffect(&self) -> ::windows::core::Result { + pub unsafe fn DropTargetEffect(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DropTargetEffect)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DropTargetEffect)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2761,10 +2731,7 @@ unsafe impl ::windows::core::Interface for IDropTargetProvider { #[doc(hidden)] pub struct IDropTargetProvider_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub DropTargetEffect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DropTargetEffect: usize, + pub DropTargetEffect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub DropTargetEffects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -3092,23 +3059,17 @@ impl ILegacyIAccessibleProvider { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ChildId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Value(&self) -> ::windows::core::Result { + pub unsafe fn Value(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Value)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Value)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Role(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3118,17 +3079,13 @@ impl ILegacyIAccessibleProvider { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).State)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Help(&self) -> ::windows::core::Result { + pub unsafe fn Help(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Help)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Help)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn KeyboardShortcut(&self) -> ::windows::core::Result { + pub unsafe fn KeyboardShortcut(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).KeyboardShortcut)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).KeyboardShortcut)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3136,11 +3093,9 @@ impl ILegacyIAccessibleProvider { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetSelection)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut super::super::System::Com::SAFEARRAY>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DefaultAction(&self) -> ::windows::core::Result { + pub unsafe fn DefaultAction(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DefaultAction)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DefaultAction)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -3190,46 +3145,26 @@ pub struct ILegacyIAccessibleProvider_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetIAccessible: usize, pub ChildId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Value: usize, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Role: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwrole: *mut u32) -> ::windows::core::HRESULT, pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwstate: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Help: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszhelp: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Help: usize, - #[cfg(feature = "Win32_Foundation")] - pub KeyboardShortcut: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszkeyboardshortcut: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - KeyboardShortcut: usize, + pub Help: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszhelp: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub KeyboardShortcut: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszkeyboardshortcut: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub GetSelection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvarselectedchildren: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetSelection: usize, - #[cfg(feature = "Win32_Foundation")] - pub DefaultAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszdefaultaction: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DefaultAction: usize, + pub DefaultAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszdefaultaction: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_Accessibility\"`*"] #[repr(transparent)] pub struct IMultipleViewProvider(::windows::core::IUnknown); impl IMultipleViewProvider { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetViewName(&self, viewid: i32) -> ::windows::core::Result { + pub unsafe fn GetViewName(&self, viewid: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetViewName)(::windows::core::Interface::as_raw(self), viewid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetViewName)(::windows::core::Interface::as_raw(self), viewid, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetCurrentView(&self, viewid: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetCurrentView)(::windows::core::Interface::as_raw(self), viewid).ok() @@ -3284,10 +3219,7 @@ unsafe impl ::windows::core::Interface for IMultipleViewProvider { #[doc(hidden)] pub struct IMultipleViewProvider_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetViewName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, viewid: i32, pretval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetViewName: usize, + pub GetViewName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, viewid: i32, pretval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, viewid: i32) -> ::windows::core::HRESULT, pub CurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] @@ -4694,11 +4626,9 @@ pub struct ISelectionProvider2_Vtbl { #[repr(transparent)] pub struct ISpreadsheetItemProvider(::windows::core::IUnknown); impl ISpreadsheetItemProvider { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Formula(&self) -> ::windows::core::Result { + pub unsafe fn Formula(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Formula)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Formula)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -4752,10 +4682,7 @@ unsafe impl ::windows::core::Interface for ISpreadsheetItemProvider { #[doc(hidden)] pub struct ISpreadsheetItemProvider_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub Formula: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Formula: usize, + pub Formula: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub GetAnnotationObjects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -4826,37 +4753,29 @@ impl IStylesProvider { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).StyleId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StyleName(&self) -> ::windows::core::Result { + pub unsafe fn StyleName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).StyleName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).StyleName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn FillColor(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).FillColor)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FillPatternStyle(&self) -> ::windows::core::Result { + pub unsafe fn FillPatternStyle(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FillPatternStyle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FillPatternStyle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Shape(&self) -> ::windows::core::Result { + pub unsafe fn Shape(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Shape)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Shape)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn FillPatternColor(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).FillPatternColor)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ExtendedProperties(&self) -> ::windows::core::Result { + pub unsafe fn ExtendedProperties(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ExtendedProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ExtendedProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -4899,24 +4818,12 @@ unsafe impl ::windows::core::Interface for IStylesProvider { pub struct IStylesProvider_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub StyleId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub StyleName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - StyleName: usize, + pub StyleName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub FillColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub FillPatternStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FillPatternStyle: usize, - #[cfg(feature = "Win32_Foundation")] - pub Shape: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Shape: usize, + pub FillPatternStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Shape: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub FillPatternColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ExtendedProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ExtendedProperties: usize, + pub ExtendedProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_Accessibility\"`*"] #[repr(transparent)] @@ -5497,14 +5404,13 @@ impl ITextRangeProvider { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FindText<'a, P0, P1, P2>(&self, text: P0, backward: P1, ignorecase: P2) -> ::windows::core::Result + pub unsafe fn FindText<'a, P0, P1>(&self, text: &::windows::core::BSTR, backward: P0, ignorecase: P1) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P0: ::std::convert::Into, P1: ::std::convert::Into, - P2: ::std::convert::Into, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FindText)(::windows::core::Interface::as_raw(self), text.into().abi(), backward.into(), ignorecase.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FindText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(text), backward.into(), ignorecase.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -5522,11 +5428,9 @@ impl ITextRangeProvider { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetEnclosingElement)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetText(&self, maxlength: i32) -> ::windows::core::Result { + pub unsafe fn GetText(&self, maxlength: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetText)(::windows::core::Interface::as_raw(self), maxlength, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetText)(::windows::core::Interface::as_raw(self), maxlength, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Move(&self, unit: TextUnit, count: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5617,7 +5521,7 @@ pub struct ITextRangeProvider_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] FindAttribute: usize, #[cfg(feature = "Win32_Foundation")] - pub FindText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop, backward: super::super::Foundation::BOOL, ignorecase: super::super::Foundation::BOOL, pretval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub FindText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop<::windows::core::BSTR>, backward: super::super::Foundation::BOOL, ignorecase: super::super::Foundation::BOOL, pretval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] FindText: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -5629,10 +5533,7 @@ pub struct ITextRangeProvider_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetBoundingRectangles: usize, pub GetEnclosingElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, maxlength: i32, pretval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetText: usize, + pub GetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, maxlength: i32, pretval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Move: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, unit: TextUnit, count: i32, pretval: *mut i32) -> ::windows::core::HRESULT, pub MoveEndpointByUnit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, endpoint: TextPatternRangeEndpoint, unit: TextUnit, count: i32, pretval: *mut i32) -> ::windows::core::HRESULT, pub MoveEndpointByRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, endpoint: TextPatternRangeEndpoint, targetrange: *mut ::core::ffi::c_void, targetendpoint: TextPatternRangeEndpoint) -> ::windows::core::HRESULT, @@ -5687,14 +5588,13 @@ impl ITextRangeProvider2 { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FindText<'a, P0, P1, P2>(&self, text: P0, backward: P1, ignorecase: P2) -> ::windows::core::Result + pub unsafe fn FindText<'a, P0, P1>(&self, text: &::windows::core::BSTR, backward: P0, ignorecase: P1) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P0: ::std::convert::Into, P1: ::std::convert::Into, - P2: ::std::convert::Into, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FindText)(::windows::core::Interface::as_raw(self), text.into().abi(), backward.into(), ignorecase.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.FindText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(text), backward.into(), ignorecase.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -5712,11 +5612,9 @@ impl ITextRangeProvider2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetEnclosingElement)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetText(&self, maxlength: i32) -> ::windows::core::Result { + pub unsafe fn GetText(&self, maxlength: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetText)(::windows::core::Interface::as_raw(self), maxlength, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetText)(::windows::core::Interface::as_raw(self), maxlength, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Move(&self, unit: TextUnit, count: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6369,17 +6267,13 @@ impl IUIAutomation { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ProxyFactoryMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPropertyProgrammaticName(&self, property: i32) -> ::windows::core::Result { + pub unsafe fn GetPropertyProgrammaticName(&self, property: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetPropertyProgrammaticName)(::windows::core::Interface::as_raw(self), property, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetPropertyProgrammaticName)(::windows::core::Interface::as_raw(self), property, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPatternProgrammaticName(&self, pattern: i32) -> ::windows::core::Result { + pub unsafe fn GetPatternProgrammaticName(&self, pattern: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetPatternProgrammaticName)(::windows::core::Interface::as_raw(self), pattern, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetPatternProgrammaticName)(::windows::core::Interface::as_raw(self), pattern, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6567,14 +6461,8 @@ pub struct IUIAutomation_Vtbl { SafeArrayToRectNativeArray: usize, pub CreateProxyFactoryEntry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, factory: *mut ::core::ffi::c_void, factoryentry: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub ProxyFactoryMapping: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, factorymapping: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetPropertyProgrammaticName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, property: i32, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPropertyProgrammaticName: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetPatternProgrammaticName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pattern: i32, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPatternProgrammaticName: usize, + pub GetPropertyProgrammaticName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, property: i32, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetPatternProgrammaticName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pattern: i32, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub PollForPotentialSupportedPatterns: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pelement: *mut ::core::ffi::c_void, patternids: *mut *mut super::super::System::Com::SAFEARRAY, patternnames: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -6891,17 +6779,13 @@ impl IUIAutomation2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.ProxyFactoryMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPropertyProgrammaticName(&self, property: i32) -> ::windows::core::Result { + pub unsafe fn GetPropertyProgrammaticName(&self, property: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetPropertyProgrammaticName)(::windows::core::Interface::as_raw(self), property, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetPropertyProgrammaticName)(::windows::core::Interface::as_raw(self), property, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPatternProgrammaticName(&self, pattern: i32) -> ::windows::core::Result { + pub unsafe fn GetPatternProgrammaticName(&self, pattern: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetPatternProgrammaticName)(::windows::core::Interface::as_raw(self), pattern, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetPatternProgrammaticName)(::windows::core::Interface::as_raw(self), pattern, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7344,17 +7228,13 @@ impl IUIAutomation3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.ProxyFactoryMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPropertyProgrammaticName(&self, property: i32) -> ::windows::core::Result { + pub unsafe fn GetPropertyProgrammaticName(&self, property: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetPropertyProgrammaticName)(::windows::core::Interface::as_raw(self), property, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetPropertyProgrammaticName)(::windows::core::Interface::as_raw(self), property, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPatternProgrammaticName(&self, pattern: i32) -> ::windows::core::Result { + pub unsafe fn GetPatternProgrammaticName(&self, pattern: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetPatternProgrammaticName)(::windows::core::Interface::as_raw(self), pattern, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetPatternProgrammaticName)(::windows::core::Interface::as_raw(self), pattern, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7817,17 +7697,13 @@ impl IUIAutomation4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.ProxyFactoryMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPropertyProgrammaticName(&self, property: i32) -> ::windows::core::Result { + pub unsafe fn GetPropertyProgrammaticName(&self, property: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.GetPropertyProgrammaticName)(::windows::core::Interface::as_raw(self), property, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.GetPropertyProgrammaticName)(::windows::core::Interface::as_raw(self), property, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPatternProgrammaticName(&self, pattern: i32) -> ::windows::core::Result { + pub unsafe fn GetPatternProgrammaticName(&self, pattern: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.GetPatternProgrammaticName)(::windows::core::Interface::as_raw(self), pattern, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.GetPatternProgrammaticName)(::windows::core::Interface::as_raw(self), pattern, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -8320,17 +8196,13 @@ impl IUIAutomation5 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.ProxyFactoryMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPropertyProgrammaticName(&self, property: i32) -> ::windows::core::Result { + pub unsafe fn GetPropertyProgrammaticName(&self, property: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.GetPropertyProgrammaticName)(::windows::core::Interface::as_raw(self), property, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.GetPropertyProgrammaticName)(::windows::core::Interface::as_raw(self), property, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPatternProgrammaticName(&self, pattern: i32) -> ::windows::core::Result { + pub unsafe fn GetPatternProgrammaticName(&self, pattern: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.GetPatternProgrammaticName)(::windows::core::Interface::as_raw(self), pattern, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.GetPatternProgrammaticName)(::windows::core::Interface::as_raw(self), pattern, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -8853,17 +8725,13 @@ impl IUIAutomation6 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.ProxyFactoryMapping)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPropertyProgrammaticName(&self, property: i32) -> ::windows::core::Result { + pub unsafe fn GetPropertyProgrammaticName(&self, property: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.GetPropertyProgrammaticName)(::windows::core::Interface::as_raw(self), property, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.GetPropertyProgrammaticName)(::windows::core::Interface::as_raw(self), property, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPatternProgrammaticName(&self, pattern: i32) -> ::windows::core::Result { + pub unsafe fn GetPatternProgrammaticName(&self, pattern: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.GetPatternProgrammaticName)(::windows::core::Interface::as_raw(self), pattern, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.GetPatternProgrammaticName)(::windows::core::Interface::as_raw(self), pattern, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9302,23 +9170,17 @@ impl IUIAutomationAnnotationPattern { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CurrentAnnotationTypeId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAnnotationTypeName(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAnnotationTypeName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CurrentAnnotationTypeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CurrentAnnotationTypeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAuthor(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAuthor(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CurrentAuthor)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CurrentAuthor)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentDateTime(&self) -> ::windows::core::Result { + pub unsafe fn CurrentDateTime(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CurrentDateTime)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CurrentDateTime)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CurrentTarget(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -9328,23 +9190,17 @@ impl IUIAutomationAnnotationPattern { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CachedAnnotationTypeId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAnnotationTypeName(&self) -> ::windows::core::Result { + pub unsafe fn CachedAnnotationTypeName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CachedAnnotationTypeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CachedAnnotationTypeName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAuthor(&self) -> ::windows::core::Result { + pub unsafe fn CachedAuthor(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CachedAuthor)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CachedAuthor)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedDateTime(&self) -> ::windows::core::Result { + pub unsafe fn CachedDateTime(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CachedDateTime)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CachedDateTime)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CachedTarget(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -9391,32 +9247,14 @@ unsafe impl ::windows::core::Interface for IUIAutomationAnnotationPattern { pub struct IUIAutomationAnnotationPattern_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub CurrentAnnotationTypeId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CurrentAnnotationTypeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CurrentAnnotationTypeName: usize, - #[cfg(feature = "Win32_Foundation")] - pub CurrentAuthor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CurrentAuthor: usize, - #[cfg(feature = "Win32_Foundation")] - pub CurrentDateTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CurrentDateTime: usize, + pub CurrentAnnotationTypeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CurrentAuthor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CurrentDateTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub CurrentTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub CachedAnnotationTypeId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CachedAnnotationTypeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CachedAnnotationTypeName: usize, - #[cfg(feature = "Win32_Foundation")] - pub CachedAuthor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CachedAuthor: usize, - #[cfg(feature = "Win32_Foundation")] - pub CachedDateTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CachedDateTime: usize, + pub CachedAnnotationTypeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CachedAuthor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CachedDateTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub CachedTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_Accessibility\"`*"] @@ -9803,17 +9641,13 @@ impl IUIAutomationDragPattern { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CachedIsGrabbed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentDropEffect(&self) -> ::windows::core::Result { + pub unsafe fn CurrentDropEffect(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CurrentDropEffect)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CurrentDropEffect)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedDropEffect(&self) -> ::windows::core::Result { + pub unsafe fn CachedDropEffect(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CachedDropEffect)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CachedDropEffect)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9883,14 +9717,8 @@ pub struct IUIAutomationDragPattern_Vtbl { pub CachedIsGrabbed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] CachedIsGrabbed: usize, - #[cfg(feature = "Win32_Foundation")] - pub CurrentDropEffect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CurrentDropEffect: usize, - #[cfg(feature = "Win32_Foundation")] - pub CachedDropEffect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CachedDropEffect: usize, + pub CurrentDropEffect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CachedDropEffect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub CurrentDropEffects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -9906,17 +9734,13 @@ pub struct IUIAutomationDragPattern_Vtbl { #[repr(transparent)] pub struct IUIAutomationDropTargetPattern(::windows::core::IUnknown); impl IUIAutomationDropTargetPattern { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentDropTargetEffect(&self) -> ::windows::core::Result { + pub unsafe fn CurrentDropTargetEffect(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CurrentDropTargetEffect)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CurrentDropTargetEffect)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedDropTargetEffect(&self) -> ::windows::core::Result { + pub unsafe fn CachedDropTargetEffect(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CachedDropTargetEffect)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CachedDropTargetEffect)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9970,14 +9794,8 @@ unsafe impl ::windows::core::Interface for IUIAutomationDropTargetPattern { #[doc(hidden)] pub struct IUIAutomationDropTargetPattern_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub CurrentDropTargetEffect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CurrentDropTargetEffect: usize, - #[cfg(feature = "Win32_Foundation")] - pub CachedDropTargetEffect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CachedDropTargetEffect: usize, + pub CurrentDropTargetEffect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CachedDropTargetEffect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub CurrentDropTargetEffects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -10105,29 +9923,21 @@ impl IUIAutomationElement { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CurrentControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentLocalizedControlType(&self) -> ::windows::core::Result { + pub unsafe fn CurrentLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CurrentLocalizedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CurrentLocalizedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentName(&self) -> ::windows::core::Result { + pub unsafe fn CurrentName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CurrentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CurrentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAcceleratorKey(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CurrentAcceleratorKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CurrentAcceleratorKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAccessKey(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAccessKey(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CurrentAccessKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CurrentAccessKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -10147,23 +9957,17 @@ impl IUIAutomationElement { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CurrentIsEnabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAutomationId(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAutomationId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CurrentAutomationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CurrentAutomationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentClassName(&self) -> ::windows::core::Result { + pub unsafe fn CurrentClassName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CurrentClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CurrentClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentHelpText(&self) -> ::windows::core::Result { + pub unsafe fn CurrentHelpText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CurrentHelpText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CurrentHelpText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CurrentCulture(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -10193,11 +9997,9 @@ impl IUIAutomationElement { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CurrentNativeWindowHandle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentItemType(&self) -> ::windows::core::Result { + pub unsafe fn CurrentItemType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CurrentItemType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CurrentItemType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -10209,11 +10011,9 @@ impl IUIAutomationElement { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CurrentOrientation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentFrameworkId(&self) -> ::windows::core::Result { + pub unsafe fn CurrentFrameworkId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CurrentFrameworkId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CurrentFrameworkId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -10221,11 +10021,9 @@ impl IUIAutomationElement { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CurrentIsRequiredForForm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentItemStatus(&self) -> ::windows::core::Result { + pub unsafe fn CurrentItemStatus(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CurrentItemStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CurrentItemStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -10237,17 +10035,13 @@ impl IUIAutomationElement { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CurrentLabeledBy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAriaRole(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAriaRole(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CurrentAriaRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CurrentAriaRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAriaProperties(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAriaProperties(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CurrentAriaProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CurrentAriaProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -10267,11 +10061,9 @@ impl IUIAutomationElement { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CurrentFlowsTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentProviderDescription(&self) -> ::windows::core::Result { + pub unsafe fn CurrentProviderDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CurrentProviderDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CurrentProviderDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CachedProcessId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -10281,29 +10073,21 @@ impl IUIAutomationElement { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CachedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedLocalizedControlType(&self) -> ::windows::core::Result { + pub unsafe fn CachedLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CachedLocalizedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CachedLocalizedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedName(&self) -> ::windows::core::Result { + pub unsafe fn CachedName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CachedName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CachedName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAcceleratorKey(&self) -> ::windows::core::Result { + pub unsafe fn CachedAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CachedAcceleratorKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CachedAcceleratorKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAccessKey(&self) -> ::windows::core::Result { + pub unsafe fn CachedAccessKey(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CachedAccessKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CachedAccessKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -10323,23 +10107,17 @@ impl IUIAutomationElement { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CachedIsEnabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAutomationId(&self) -> ::windows::core::Result { + pub unsafe fn CachedAutomationId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CachedAutomationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CachedAutomationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedClassName(&self) -> ::windows::core::Result { + pub unsafe fn CachedClassName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CachedClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CachedClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedHelpText(&self) -> ::windows::core::Result { + pub unsafe fn CachedHelpText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CachedHelpText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CachedHelpText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CachedCulture(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -10369,11 +10147,9 @@ impl IUIAutomationElement { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CachedNativeWindowHandle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedItemType(&self) -> ::windows::core::Result { + pub unsafe fn CachedItemType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CachedItemType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CachedItemType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -10385,11 +10161,9 @@ impl IUIAutomationElement { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CachedOrientation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedFrameworkId(&self) -> ::windows::core::Result { + pub unsafe fn CachedFrameworkId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CachedFrameworkId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CachedFrameworkId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -10397,11 +10171,9 @@ impl IUIAutomationElement { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CachedIsRequiredForForm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedItemStatus(&self) -> ::windows::core::Result { + pub unsafe fn CachedItemStatus(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CachedItemStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CachedItemStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -10413,17 +10185,13 @@ impl IUIAutomationElement { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CachedLabeledBy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAriaRole(&self) -> ::windows::core::Result { + pub unsafe fn CachedAriaRole(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CachedAriaRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CachedAriaRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAriaProperties(&self) -> ::windows::core::Result { + pub unsafe fn CachedAriaProperties(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CachedAriaProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CachedAriaProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -10443,11 +10211,9 @@ impl IUIAutomationElement { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CachedFlowsTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedProviderDescription(&self) -> ::windows::core::Result { + pub unsafe fn CachedProviderDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CachedProviderDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CachedProviderDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -10528,22 +10294,10 @@ pub struct IUIAutomationElement_Vtbl { pub GetCachedChildren: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, children: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub CurrentProcessId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, pub CurrentControlType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CurrentLocalizedControlType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CurrentLocalizedControlType: usize, - #[cfg(feature = "Win32_Foundation")] - pub CurrentName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CurrentName: usize, - #[cfg(feature = "Win32_Foundation")] - pub CurrentAcceleratorKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CurrentAcceleratorKey: usize, - #[cfg(feature = "Win32_Foundation")] - pub CurrentAccessKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CurrentAccessKey: usize, + pub CurrentLocalizedControlType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CurrentName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CurrentAcceleratorKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CurrentAccessKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub CurrentHasKeyboardFocus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -10556,18 +10310,9 @@ pub struct IUIAutomationElement_Vtbl { pub CurrentIsEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] CurrentIsEnabled: usize, - #[cfg(feature = "Win32_Foundation")] - pub CurrentAutomationId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CurrentAutomationId: usize, - #[cfg(feature = "Win32_Foundation")] - pub CurrentClassName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CurrentClassName: usize, - #[cfg(feature = "Win32_Foundation")] - pub CurrentHelpText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CurrentHelpText: usize, + pub CurrentAutomationId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CurrentClassName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CurrentHelpText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub CurrentCulture: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub CurrentIsControlElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, @@ -10585,40 +10330,25 @@ pub struct IUIAutomationElement_Vtbl { pub CurrentNativeWindowHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] CurrentNativeWindowHandle: usize, - #[cfg(feature = "Win32_Foundation")] - pub CurrentItemType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CurrentItemType: usize, + pub CurrentItemType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub CurrentIsOffscreen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] CurrentIsOffscreen: usize, pub CurrentOrientation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut OrientationType) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CurrentFrameworkId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CurrentFrameworkId: usize, + pub CurrentFrameworkId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub CurrentIsRequiredForForm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] CurrentIsRequiredForForm: usize, - #[cfg(feature = "Win32_Foundation")] - pub CurrentItemStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CurrentItemStatus: usize, + pub CurrentItemStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub CurrentBoundingRectangle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::RECT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] CurrentBoundingRectangle: usize, pub CurrentLabeledBy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CurrentAriaRole: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CurrentAriaRole: usize, - #[cfg(feature = "Win32_Foundation")] - pub CurrentAriaProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CurrentAriaProperties: usize, + pub CurrentAriaRole: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CurrentAriaProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub CurrentIsDataValidForForm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -10626,52 +10356,28 @@ pub struct IUIAutomationElement_Vtbl { pub CurrentControllerFor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub CurrentDescribedBy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub CurrentFlowsTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CurrentProviderDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CurrentProviderDescription: usize, + pub CurrentProviderDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub CachedProcessId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, pub CachedControlType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, + pub CachedLocalizedControlType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CachedName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CachedAcceleratorKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CachedAccessKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] - pub CachedLocalizedControlType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub CachedHasKeyboardFocus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] - CachedLocalizedControlType: usize, + CachedHasKeyboardFocus: usize, #[cfg(feature = "Win32_Foundation")] - pub CachedName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub CachedIsKeyboardFocusable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] - CachedName: usize, - #[cfg(feature = "Win32_Foundation")] - pub CachedAcceleratorKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CachedAcceleratorKey: usize, - #[cfg(feature = "Win32_Foundation")] - pub CachedAccessKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CachedAccessKey: usize, - #[cfg(feature = "Win32_Foundation")] - pub CachedHasKeyboardFocus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CachedHasKeyboardFocus: usize, - #[cfg(feature = "Win32_Foundation")] - pub CachedIsKeyboardFocusable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CachedIsKeyboardFocusable: usize, + CachedIsKeyboardFocusable: usize, #[cfg(feature = "Win32_Foundation")] pub CachedIsEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] CachedIsEnabled: usize, - #[cfg(feature = "Win32_Foundation")] - pub CachedAutomationId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CachedAutomationId: usize, - #[cfg(feature = "Win32_Foundation")] - pub CachedClassName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CachedClassName: usize, - #[cfg(feature = "Win32_Foundation")] - pub CachedHelpText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CachedHelpText: usize, + pub CachedAutomationId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CachedClassName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CachedHelpText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub CachedCulture: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub CachedIsControlElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, @@ -10689,40 +10395,25 @@ pub struct IUIAutomationElement_Vtbl { pub CachedNativeWindowHandle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::HWND) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] CachedNativeWindowHandle: usize, - #[cfg(feature = "Win32_Foundation")] - pub CachedItemType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CachedItemType: usize, + pub CachedItemType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub CachedIsOffscreen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] CachedIsOffscreen: usize, pub CachedOrientation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut OrientationType) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CachedFrameworkId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CachedFrameworkId: usize, + pub CachedFrameworkId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub CachedIsRequiredForForm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] CachedIsRequiredForForm: usize, - #[cfg(feature = "Win32_Foundation")] - pub CachedItemStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CachedItemStatus: usize, + pub CachedItemStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub CachedBoundingRectangle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::RECT) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] CachedBoundingRectangle: usize, pub CachedLabeledBy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CachedAriaRole: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CachedAriaRole: usize, - #[cfg(feature = "Win32_Foundation")] - pub CachedAriaProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CachedAriaProperties: usize, + pub CachedAriaRole: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CachedAriaProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub CachedIsDataValidForForm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -10730,10 +10421,7 @@ pub struct IUIAutomationElement_Vtbl { pub CachedControllerFor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub CachedDescribedBy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub CachedFlowsTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CachedProviderDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CachedProviderDescription: usize, + pub CachedProviderDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub GetClickablePoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, clickable: *mut super::super::Foundation::POINT, gotclickable: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -10857,29 +10545,21 @@ impl IUIAutomationElement2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.CurrentControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentLocalizedControlType(&self) -> ::windows::core::Result { + pub unsafe fn CurrentLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CurrentLocalizedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CurrentLocalizedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentName(&self) -> ::windows::core::Result { + pub unsafe fn CurrentName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CurrentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CurrentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAcceleratorKey(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CurrentAcceleratorKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CurrentAcceleratorKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAccessKey(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAccessKey(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CurrentAccessKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CurrentAccessKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -10899,23 +10579,17 @@ impl IUIAutomationElement2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.CurrentIsEnabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAutomationId(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAutomationId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CurrentAutomationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CurrentAutomationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentClassName(&self) -> ::windows::core::Result { + pub unsafe fn CurrentClassName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CurrentClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CurrentClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentHelpText(&self) -> ::windows::core::Result { + pub unsafe fn CurrentHelpText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CurrentHelpText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CurrentHelpText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CurrentCulture(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -10945,11 +10619,9 @@ impl IUIAutomationElement2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.CurrentNativeWindowHandle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentItemType(&self) -> ::windows::core::Result { + pub unsafe fn CurrentItemType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CurrentItemType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CurrentItemType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -10961,11 +10633,9 @@ impl IUIAutomationElement2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.CurrentOrientation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentFrameworkId(&self) -> ::windows::core::Result { + pub unsafe fn CurrentFrameworkId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CurrentFrameworkId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CurrentFrameworkId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -10973,11 +10643,9 @@ impl IUIAutomationElement2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.CurrentIsRequiredForForm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentItemStatus(&self) -> ::windows::core::Result { + pub unsafe fn CurrentItemStatus(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CurrentItemStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CurrentItemStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -10989,17 +10657,13 @@ impl IUIAutomationElement2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.CurrentLabeledBy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAriaRole(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAriaRole(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CurrentAriaRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CurrentAriaRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAriaProperties(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAriaProperties(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CurrentAriaProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CurrentAriaProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -11019,11 +10683,9 @@ impl IUIAutomationElement2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.CurrentFlowsTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentProviderDescription(&self) -> ::windows::core::Result { + pub unsafe fn CurrentProviderDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CurrentProviderDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CurrentProviderDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CachedProcessId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -11033,29 +10695,21 @@ impl IUIAutomationElement2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.CachedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedLocalizedControlType(&self) -> ::windows::core::Result { + pub unsafe fn CachedLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CachedLocalizedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CachedLocalizedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedName(&self) -> ::windows::core::Result { + pub unsafe fn CachedName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CachedName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CachedName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAcceleratorKey(&self) -> ::windows::core::Result { + pub unsafe fn CachedAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CachedAcceleratorKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CachedAcceleratorKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAccessKey(&self) -> ::windows::core::Result { + pub unsafe fn CachedAccessKey(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CachedAccessKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CachedAccessKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -11075,23 +10729,17 @@ impl IUIAutomationElement2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.CachedIsEnabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAutomationId(&self) -> ::windows::core::Result { + pub unsafe fn CachedAutomationId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CachedAutomationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CachedAutomationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedClassName(&self) -> ::windows::core::Result { + pub unsafe fn CachedClassName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CachedClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CachedClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedHelpText(&self) -> ::windows::core::Result { + pub unsafe fn CachedHelpText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CachedHelpText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CachedHelpText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CachedCulture(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -11121,11 +10769,9 @@ impl IUIAutomationElement2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.CachedNativeWindowHandle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedItemType(&self) -> ::windows::core::Result { + pub unsafe fn CachedItemType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CachedItemType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CachedItemType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -11137,11 +10783,9 @@ impl IUIAutomationElement2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.CachedOrientation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedFrameworkId(&self) -> ::windows::core::Result { + pub unsafe fn CachedFrameworkId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CachedFrameworkId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CachedFrameworkId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -11149,11 +10793,9 @@ impl IUIAutomationElement2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.CachedIsRequiredForForm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedItemStatus(&self) -> ::windows::core::Result { + pub unsafe fn CachedItemStatus(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CachedItemStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CachedItemStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -11165,17 +10807,13 @@ impl IUIAutomationElement2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.CachedLabeledBy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAriaRole(&self) -> ::windows::core::Result { + pub unsafe fn CachedAriaRole(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CachedAriaRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CachedAriaRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAriaProperties(&self) -> ::windows::core::Result { + pub unsafe fn CachedAriaProperties(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CachedAriaProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CachedAriaProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -11195,11 +10833,9 @@ impl IUIAutomationElement2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.CachedFlowsTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedProviderDescription(&self) -> ::windows::core::Result { + pub unsafe fn CachedProviderDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CachedProviderDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CachedProviderDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -11420,29 +11056,21 @@ impl IUIAutomationElement3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.CurrentControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentLocalizedControlType(&self) -> ::windows::core::Result { + pub unsafe fn CurrentLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CurrentLocalizedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CurrentLocalizedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentName(&self) -> ::windows::core::Result { + pub unsafe fn CurrentName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CurrentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CurrentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAcceleratorKey(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CurrentAcceleratorKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CurrentAcceleratorKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAccessKey(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAccessKey(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CurrentAccessKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CurrentAccessKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -11462,23 +11090,17 @@ impl IUIAutomationElement3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.CurrentIsEnabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAutomationId(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAutomationId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CurrentAutomationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CurrentAutomationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentClassName(&self) -> ::windows::core::Result { + pub unsafe fn CurrentClassName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CurrentClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CurrentClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentHelpText(&self) -> ::windows::core::Result { + pub unsafe fn CurrentHelpText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CurrentHelpText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CurrentHelpText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CurrentCulture(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -11508,11 +11130,9 @@ impl IUIAutomationElement3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.CurrentNativeWindowHandle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentItemType(&self) -> ::windows::core::Result { + pub unsafe fn CurrentItemType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CurrentItemType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CurrentItemType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -11524,11 +11144,9 @@ impl IUIAutomationElement3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.CurrentOrientation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentFrameworkId(&self) -> ::windows::core::Result { + pub unsafe fn CurrentFrameworkId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CurrentFrameworkId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CurrentFrameworkId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -11536,11 +11154,9 @@ impl IUIAutomationElement3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.CurrentIsRequiredForForm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentItemStatus(&self) -> ::windows::core::Result { + pub unsafe fn CurrentItemStatus(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CurrentItemStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CurrentItemStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -11552,17 +11168,13 @@ impl IUIAutomationElement3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.CurrentLabeledBy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAriaRole(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAriaRole(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CurrentAriaRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CurrentAriaRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAriaProperties(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAriaProperties(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CurrentAriaProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CurrentAriaProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -11582,11 +11194,9 @@ impl IUIAutomationElement3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.CurrentFlowsTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentProviderDescription(&self) -> ::windows::core::Result { + pub unsafe fn CurrentProviderDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CurrentProviderDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CurrentProviderDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CachedProcessId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -11596,29 +11206,21 @@ impl IUIAutomationElement3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.CachedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedLocalizedControlType(&self) -> ::windows::core::Result { + pub unsafe fn CachedLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CachedLocalizedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CachedLocalizedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedName(&self) -> ::windows::core::Result { + pub unsafe fn CachedName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CachedName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CachedName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAcceleratorKey(&self) -> ::windows::core::Result { + pub unsafe fn CachedAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CachedAcceleratorKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CachedAcceleratorKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAccessKey(&self) -> ::windows::core::Result { + pub unsafe fn CachedAccessKey(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CachedAccessKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CachedAccessKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -11638,23 +11240,17 @@ impl IUIAutomationElement3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.CachedIsEnabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAutomationId(&self) -> ::windows::core::Result { + pub unsafe fn CachedAutomationId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CachedAutomationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CachedAutomationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedClassName(&self) -> ::windows::core::Result { + pub unsafe fn CachedClassName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CachedClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CachedClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedHelpText(&self) -> ::windows::core::Result { + pub unsafe fn CachedHelpText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CachedHelpText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CachedHelpText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CachedCulture(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -11684,11 +11280,9 @@ impl IUIAutomationElement3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.CachedNativeWindowHandle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedItemType(&self) -> ::windows::core::Result { + pub unsafe fn CachedItemType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CachedItemType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CachedItemType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -11700,11 +11294,9 @@ impl IUIAutomationElement3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.CachedOrientation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedFrameworkId(&self) -> ::windows::core::Result { + pub unsafe fn CachedFrameworkId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CachedFrameworkId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CachedFrameworkId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -11712,11 +11304,9 @@ impl IUIAutomationElement3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.CachedIsRequiredForForm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedItemStatus(&self) -> ::windows::core::Result { + pub unsafe fn CachedItemStatus(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CachedItemStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CachedItemStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -11728,17 +11318,13 @@ impl IUIAutomationElement3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.CachedLabeledBy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAriaRole(&self) -> ::windows::core::Result { + pub unsafe fn CachedAriaRole(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CachedAriaRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CachedAriaRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAriaProperties(&self) -> ::windows::core::Result { + pub unsafe fn CachedAriaProperties(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CachedAriaProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CachedAriaProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -11758,11 +11344,9 @@ impl IUIAutomationElement3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.CachedFlowsTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedProviderDescription(&self) -> ::windows::core::Result { + pub unsafe fn CachedProviderDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CachedProviderDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CachedProviderDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -12010,29 +11594,21 @@ impl IUIAutomationElement4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentLocalizedControlType(&self) -> ::windows::core::Result { + pub unsafe fn CurrentLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentLocalizedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentLocalizedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentName(&self) -> ::windows::core::Result { + pub unsafe fn CurrentName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAcceleratorKey(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentAcceleratorKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentAcceleratorKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAccessKey(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAccessKey(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentAccessKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentAccessKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -12052,23 +11628,17 @@ impl IUIAutomationElement4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentIsEnabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAutomationId(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAutomationId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentAutomationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentAutomationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentClassName(&self) -> ::windows::core::Result { + pub unsafe fn CurrentClassName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentHelpText(&self) -> ::windows::core::Result { + pub unsafe fn CurrentHelpText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentHelpText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentHelpText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CurrentCulture(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -12098,11 +11668,9 @@ impl IUIAutomationElement4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentNativeWindowHandle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentItemType(&self) -> ::windows::core::Result { + pub unsafe fn CurrentItemType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentItemType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentItemType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -12114,11 +11682,9 @@ impl IUIAutomationElement4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentOrientation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentFrameworkId(&self) -> ::windows::core::Result { + pub unsafe fn CurrentFrameworkId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentFrameworkId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentFrameworkId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -12126,11 +11692,9 @@ impl IUIAutomationElement4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentIsRequiredForForm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentItemStatus(&self) -> ::windows::core::Result { + pub unsafe fn CurrentItemStatus(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentItemStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentItemStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -12142,17 +11706,13 @@ impl IUIAutomationElement4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentLabeledBy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAriaRole(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAriaRole(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentAriaRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentAriaRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAriaProperties(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAriaProperties(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentAriaProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentAriaProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -12172,11 +11732,9 @@ impl IUIAutomationElement4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentFlowsTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentProviderDescription(&self) -> ::windows::core::Result { + pub unsafe fn CurrentProviderDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentProviderDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentProviderDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CachedProcessId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -12186,29 +11744,21 @@ impl IUIAutomationElement4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.CachedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedLocalizedControlType(&self) -> ::windows::core::Result { + pub unsafe fn CachedLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.CachedLocalizedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.CachedLocalizedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedName(&self) -> ::windows::core::Result { + pub unsafe fn CachedName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.CachedName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.CachedName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAcceleratorKey(&self) -> ::windows::core::Result { + pub unsafe fn CachedAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.CachedAcceleratorKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.CachedAcceleratorKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAccessKey(&self) -> ::windows::core::Result { + pub unsafe fn CachedAccessKey(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.CachedAccessKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.CachedAccessKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -12228,23 +11778,17 @@ impl IUIAutomationElement4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.CachedIsEnabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAutomationId(&self) -> ::windows::core::Result { + pub unsafe fn CachedAutomationId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.CachedAutomationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.CachedAutomationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedClassName(&self) -> ::windows::core::Result { + pub unsafe fn CachedClassName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.CachedClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.CachedClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedHelpText(&self) -> ::windows::core::Result { + pub unsafe fn CachedHelpText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.CachedHelpText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.CachedHelpText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CachedCulture(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -12274,11 +11818,9 @@ impl IUIAutomationElement4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.CachedNativeWindowHandle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedItemType(&self) -> ::windows::core::Result { + pub unsafe fn CachedItemType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.CachedItemType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.CachedItemType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -12290,11 +11832,9 @@ impl IUIAutomationElement4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.CachedOrientation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedFrameworkId(&self) -> ::windows::core::Result { + pub unsafe fn CachedFrameworkId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.CachedFrameworkId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.CachedFrameworkId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -12302,11 +11842,9 @@ impl IUIAutomationElement4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.CachedIsRequiredForForm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedItemStatus(&self) -> ::windows::core::Result { + pub unsafe fn CachedItemStatus(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.CachedItemStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.CachedItemStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -12318,17 +11856,13 @@ impl IUIAutomationElement4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.CachedLabeledBy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAriaRole(&self) -> ::windows::core::Result { + pub unsafe fn CachedAriaRole(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.CachedAriaRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.CachedAriaRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAriaProperties(&self) -> ::windows::core::Result { + pub unsafe fn CachedAriaProperties(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.CachedAriaProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.CachedAriaProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -12348,11 +11882,9 @@ impl IUIAutomationElement4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.CachedFlowsTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedProviderDescription(&self) -> ::windows::core::Result { + pub unsafe fn CachedProviderDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.CachedProviderDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.CachedProviderDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -12666,29 +12198,21 @@ impl IUIAutomationElement5 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CurrentControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentLocalizedControlType(&self) -> ::windows::core::Result { + pub unsafe fn CurrentLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CurrentLocalizedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CurrentLocalizedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentName(&self) -> ::windows::core::Result { + pub unsafe fn CurrentName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CurrentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CurrentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAcceleratorKey(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CurrentAcceleratorKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CurrentAcceleratorKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAccessKey(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAccessKey(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CurrentAccessKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CurrentAccessKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -12708,23 +12232,17 @@ impl IUIAutomationElement5 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CurrentIsEnabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAutomationId(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAutomationId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CurrentAutomationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CurrentAutomationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentClassName(&self) -> ::windows::core::Result { + pub unsafe fn CurrentClassName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CurrentClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CurrentClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentHelpText(&self) -> ::windows::core::Result { + pub unsafe fn CurrentHelpText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CurrentHelpText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CurrentHelpText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CurrentCulture(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -12754,11 +12272,9 @@ impl IUIAutomationElement5 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CurrentNativeWindowHandle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentItemType(&self) -> ::windows::core::Result { + pub unsafe fn CurrentItemType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CurrentItemType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CurrentItemType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -12770,11 +12286,9 @@ impl IUIAutomationElement5 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CurrentOrientation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentFrameworkId(&self) -> ::windows::core::Result { + pub unsafe fn CurrentFrameworkId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CurrentFrameworkId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CurrentFrameworkId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -12782,11 +12296,9 @@ impl IUIAutomationElement5 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CurrentIsRequiredForForm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentItemStatus(&self) -> ::windows::core::Result { + pub unsafe fn CurrentItemStatus(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CurrentItemStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CurrentItemStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -12798,17 +12310,13 @@ impl IUIAutomationElement5 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CurrentLabeledBy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAriaRole(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAriaRole(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CurrentAriaRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CurrentAriaRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAriaProperties(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAriaProperties(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CurrentAriaProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CurrentAriaProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -12828,11 +12336,9 @@ impl IUIAutomationElement5 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CurrentFlowsTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentProviderDescription(&self) -> ::windows::core::Result { + pub unsafe fn CurrentProviderDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CurrentProviderDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CurrentProviderDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CachedProcessId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -12842,29 +12348,21 @@ impl IUIAutomationElement5 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CachedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedLocalizedControlType(&self) -> ::windows::core::Result { + pub unsafe fn CachedLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CachedLocalizedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CachedLocalizedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedName(&self) -> ::windows::core::Result { + pub unsafe fn CachedName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CachedName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CachedName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAcceleratorKey(&self) -> ::windows::core::Result { + pub unsafe fn CachedAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CachedAcceleratorKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CachedAcceleratorKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAccessKey(&self) -> ::windows::core::Result { + pub unsafe fn CachedAccessKey(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CachedAccessKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CachedAccessKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -12884,23 +12382,17 @@ impl IUIAutomationElement5 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CachedIsEnabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAutomationId(&self) -> ::windows::core::Result { + pub unsafe fn CachedAutomationId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CachedAutomationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CachedAutomationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedClassName(&self) -> ::windows::core::Result { + pub unsafe fn CachedClassName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CachedClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CachedClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedHelpText(&self) -> ::windows::core::Result { + pub unsafe fn CachedHelpText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CachedHelpText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CachedHelpText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CachedCulture(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -12930,11 +12422,9 @@ impl IUIAutomationElement5 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CachedNativeWindowHandle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedItemType(&self) -> ::windows::core::Result { + pub unsafe fn CachedItemType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CachedItemType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CachedItemType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -12946,11 +12436,9 @@ impl IUIAutomationElement5 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CachedOrientation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedFrameworkId(&self) -> ::windows::core::Result { + pub unsafe fn CachedFrameworkId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CachedFrameworkId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CachedFrameworkId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -12958,11 +12446,9 @@ impl IUIAutomationElement5 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CachedIsRequiredForForm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedItemStatus(&self) -> ::windows::core::Result { + pub unsafe fn CachedItemStatus(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CachedItemStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CachedItemStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -12974,17 +12460,13 @@ impl IUIAutomationElement5 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CachedLabeledBy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAriaRole(&self) -> ::windows::core::Result { + pub unsafe fn CachedAriaRole(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CachedAriaRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CachedAriaRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAriaProperties(&self) -> ::windows::core::Result { + pub unsafe fn CachedAriaProperties(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CachedAriaProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CachedAriaProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -13004,11 +12486,9 @@ impl IUIAutomationElement5 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CachedFlowsTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedProviderDescription(&self) -> ::windows::core::Result { + pub unsafe fn CachedProviderDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CachedProviderDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CachedProviderDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -13106,21 +12586,17 @@ impl IUIAutomationElement5 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CurrentLandmarkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentLocalizedLandmarkType(&self) -> ::windows::core::Result { + pub unsafe fn CurrentLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CurrentLocalizedLandmarkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CurrentLocalizedLandmarkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CachedLandmarkType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CachedLandmarkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedLocalizedLandmarkType(&self) -> ::windows::core::Result { + pub unsafe fn CachedLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CachedLocalizedLandmarkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CachedLocalizedLandmarkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -13223,15 +12699,9 @@ unsafe impl ::windows::core::Interface for IUIAutomationElement5 { pub struct IUIAutomationElement5_Vtbl { pub base__: IUIAutomationElement4_Vtbl, pub CurrentLandmarkType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CurrentLocalizedLandmarkType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CurrentLocalizedLandmarkType: usize, + pub CurrentLocalizedLandmarkType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub CachedLandmarkType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CachedLocalizedLandmarkType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CachedLocalizedLandmarkType: usize, + pub CachedLocalizedLandmarkType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_Accessibility\"`*"] #[repr(transparent)] @@ -13351,29 +12821,21 @@ impl IUIAutomationElement6 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CurrentControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentLocalizedControlType(&self) -> ::windows::core::Result { + pub unsafe fn CurrentLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CurrentLocalizedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CurrentLocalizedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentName(&self) -> ::windows::core::Result { + pub unsafe fn CurrentName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CurrentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CurrentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAcceleratorKey(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CurrentAcceleratorKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CurrentAcceleratorKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAccessKey(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAccessKey(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CurrentAccessKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CurrentAccessKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -13393,23 +12855,17 @@ impl IUIAutomationElement6 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CurrentIsEnabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAutomationId(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAutomationId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CurrentAutomationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CurrentAutomationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentClassName(&self) -> ::windows::core::Result { + pub unsafe fn CurrentClassName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CurrentClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CurrentClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentHelpText(&self) -> ::windows::core::Result { + pub unsafe fn CurrentHelpText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CurrentHelpText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CurrentHelpText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CurrentCulture(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -13439,11 +12895,9 @@ impl IUIAutomationElement6 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CurrentNativeWindowHandle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentItemType(&self) -> ::windows::core::Result { + pub unsafe fn CurrentItemType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CurrentItemType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CurrentItemType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -13455,11 +12909,9 @@ impl IUIAutomationElement6 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CurrentOrientation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentFrameworkId(&self) -> ::windows::core::Result { + pub unsafe fn CurrentFrameworkId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CurrentFrameworkId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CurrentFrameworkId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -13467,11 +12919,9 @@ impl IUIAutomationElement6 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CurrentIsRequiredForForm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentItemStatus(&self) -> ::windows::core::Result { + pub unsafe fn CurrentItemStatus(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CurrentItemStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CurrentItemStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -13483,17 +12933,13 @@ impl IUIAutomationElement6 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CurrentLabeledBy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAriaRole(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAriaRole(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CurrentAriaRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CurrentAriaRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAriaProperties(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAriaProperties(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CurrentAriaProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CurrentAriaProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -13513,11 +12959,9 @@ impl IUIAutomationElement6 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CurrentFlowsTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentProviderDescription(&self) -> ::windows::core::Result { + pub unsafe fn CurrentProviderDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CurrentProviderDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CurrentProviderDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CachedProcessId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -13527,29 +12971,21 @@ impl IUIAutomationElement6 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CachedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedLocalizedControlType(&self) -> ::windows::core::Result { + pub unsafe fn CachedLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CachedLocalizedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CachedLocalizedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedName(&self) -> ::windows::core::Result { + pub unsafe fn CachedName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CachedName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CachedName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAcceleratorKey(&self) -> ::windows::core::Result { + pub unsafe fn CachedAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CachedAcceleratorKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CachedAcceleratorKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAccessKey(&self) -> ::windows::core::Result { + pub unsafe fn CachedAccessKey(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CachedAccessKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CachedAccessKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -13569,23 +13005,17 @@ impl IUIAutomationElement6 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CachedIsEnabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAutomationId(&self) -> ::windows::core::Result { + pub unsafe fn CachedAutomationId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CachedAutomationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CachedAutomationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedClassName(&self) -> ::windows::core::Result { + pub unsafe fn CachedClassName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CachedClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CachedClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedHelpText(&self) -> ::windows::core::Result { + pub unsafe fn CachedHelpText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CachedHelpText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CachedHelpText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CachedCulture(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -13615,11 +13045,9 @@ impl IUIAutomationElement6 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CachedNativeWindowHandle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedItemType(&self) -> ::windows::core::Result { + pub unsafe fn CachedItemType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CachedItemType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CachedItemType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -13631,11 +13059,9 @@ impl IUIAutomationElement6 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CachedOrientation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedFrameworkId(&self) -> ::windows::core::Result { + pub unsafe fn CachedFrameworkId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CachedFrameworkId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CachedFrameworkId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -13643,11 +13069,9 @@ impl IUIAutomationElement6 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CachedIsRequiredForForm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedItemStatus(&self) -> ::windows::core::Result { + pub unsafe fn CachedItemStatus(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CachedItemStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CachedItemStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -13659,17 +13083,13 @@ impl IUIAutomationElement6 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CachedLabeledBy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAriaRole(&self) -> ::windows::core::Result { + pub unsafe fn CachedAriaRole(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CachedAriaRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CachedAriaRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAriaProperties(&self) -> ::windows::core::Result { + pub unsafe fn CachedAriaProperties(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CachedAriaProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CachedAriaProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -13689,11 +13109,9 @@ impl IUIAutomationElement6 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CachedFlowsTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedProviderDescription(&self) -> ::windows::core::Result { + pub unsafe fn CachedProviderDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CachedProviderDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CachedProviderDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -13791,33 +13209,25 @@ impl IUIAutomationElement6 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.CurrentLandmarkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentLocalizedLandmarkType(&self) -> ::windows::core::Result { + pub unsafe fn CurrentLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CurrentLocalizedLandmarkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CurrentLocalizedLandmarkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CachedLandmarkType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.CachedLandmarkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedLocalizedLandmarkType(&self) -> ::windows::core::Result { + pub unsafe fn CachedLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CachedLocalizedLandmarkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CachedLocalizedLandmarkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentFullDescription(&self) -> ::windows::core::Result { + pub unsafe fn CurrentFullDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CurrentFullDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CurrentFullDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedFullDescription(&self) -> ::windows::core::Result { + pub unsafe fn CachedFullDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CachedFullDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CachedFullDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -13934,14 +13344,8 @@ unsafe impl ::windows::core::Interface for IUIAutomationElement6 { #[doc(hidden)] pub struct IUIAutomationElement6_Vtbl { pub base__: IUIAutomationElement5_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub CurrentFullDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CurrentFullDescription: usize, - #[cfg(feature = "Win32_Foundation")] - pub CachedFullDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CachedFullDescription: usize, + pub CurrentFullDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CachedFullDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_Accessibility\"`*"] #[repr(transparent)] @@ -14061,29 +13465,21 @@ impl IUIAutomationElement7 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CurrentControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentLocalizedControlType(&self) -> ::windows::core::Result { + pub unsafe fn CurrentLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CurrentLocalizedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CurrentLocalizedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentName(&self) -> ::windows::core::Result { + pub unsafe fn CurrentName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CurrentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CurrentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAcceleratorKey(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CurrentAcceleratorKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CurrentAcceleratorKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAccessKey(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAccessKey(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CurrentAccessKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CurrentAccessKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -14103,23 +13499,17 @@ impl IUIAutomationElement7 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CurrentIsEnabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAutomationId(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAutomationId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CurrentAutomationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CurrentAutomationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentClassName(&self) -> ::windows::core::Result { + pub unsafe fn CurrentClassName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CurrentClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CurrentClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentHelpText(&self) -> ::windows::core::Result { + pub unsafe fn CurrentHelpText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CurrentHelpText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CurrentHelpText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CurrentCulture(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -14149,11 +13539,9 @@ impl IUIAutomationElement7 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CurrentNativeWindowHandle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentItemType(&self) -> ::windows::core::Result { + pub unsafe fn CurrentItemType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CurrentItemType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CurrentItemType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -14165,11 +13553,9 @@ impl IUIAutomationElement7 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CurrentOrientation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentFrameworkId(&self) -> ::windows::core::Result { + pub unsafe fn CurrentFrameworkId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CurrentFrameworkId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CurrentFrameworkId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -14177,11 +13563,9 @@ impl IUIAutomationElement7 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CurrentIsRequiredForForm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentItemStatus(&self) -> ::windows::core::Result { + pub unsafe fn CurrentItemStatus(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CurrentItemStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CurrentItemStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -14193,17 +13577,13 @@ impl IUIAutomationElement7 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CurrentLabeledBy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAriaRole(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAriaRole(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CurrentAriaRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CurrentAriaRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAriaProperties(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAriaProperties(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CurrentAriaProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CurrentAriaProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -14223,11 +13603,9 @@ impl IUIAutomationElement7 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CurrentFlowsTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentProviderDescription(&self) -> ::windows::core::Result { + pub unsafe fn CurrentProviderDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CurrentProviderDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CurrentProviderDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CachedProcessId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -14237,29 +13615,21 @@ impl IUIAutomationElement7 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CachedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedLocalizedControlType(&self) -> ::windows::core::Result { + pub unsafe fn CachedLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CachedLocalizedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CachedLocalizedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedName(&self) -> ::windows::core::Result { + pub unsafe fn CachedName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CachedName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CachedName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAcceleratorKey(&self) -> ::windows::core::Result { + pub unsafe fn CachedAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CachedAcceleratorKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CachedAcceleratorKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAccessKey(&self) -> ::windows::core::Result { + pub unsafe fn CachedAccessKey(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CachedAccessKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CachedAccessKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -14279,23 +13649,17 @@ impl IUIAutomationElement7 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CachedIsEnabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAutomationId(&self) -> ::windows::core::Result { + pub unsafe fn CachedAutomationId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CachedAutomationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CachedAutomationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedClassName(&self) -> ::windows::core::Result { + pub unsafe fn CachedClassName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CachedClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CachedClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedHelpText(&self) -> ::windows::core::Result { + pub unsafe fn CachedHelpText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CachedHelpText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CachedHelpText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CachedCulture(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -14325,11 +13689,9 @@ impl IUIAutomationElement7 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CachedNativeWindowHandle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedItemType(&self) -> ::windows::core::Result { + pub unsafe fn CachedItemType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CachedItemType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CachedItemType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -14341,11 +13703,9 @@ impl IUIAutomationElement7 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CachedOrientation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedFrameworkId(&self) -> ::windows::core::Result { + pub unsafe fn CachedFrameworkId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CachedFrameworkId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CachedFrameworkId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -14353,11 +13713,9 @@ impl IUIAutomationElement7 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CachedIsRequiredForForm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedItemStatus(&self) -> ::windows::core::Result { + pub unsafe fn CachedItemStatus(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CachedItemStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CachedItemStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -14369,17 +13727,13 @@ impl IUIAutomationElement7 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CachedLabeledBy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAriaRole(&self) -> ::windows::core::Result { + pub unsafe fn CachedAriaRole(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CachedAriaRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CachedAriaRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAriaProperties(&self) -> ::windows::core::Result { + pub unsafe fn CachedAriaProperties(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CachedAriaProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CachedAriaProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -14399,11 +13753,9 @@ impl IUIAutomationElement7 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CachedFlowsTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedProviderDescription(&self) -> ::windows::core::Result { + pub unsafe fn CachedProviderDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CachedProviderDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CachedProviderDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -14501,33 +13853,25 @@ impl IUIAutomationElement7 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.CurrentLandmarkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentLocalizedLandmarkType(&self) -> ::windows::core::Result { + pub unsafe fn CurrentLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CurrentLocalizedLandmarkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CurrentLocalizedLandmarkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CachedLandmarkType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.CachedLandmarkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedLocalizedLandmarkType(&self) -> ::windows::core::Result { + pub unsafe fn CachedLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CachedLocalizedLandmarkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CachedLocalizedLandmarkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentFullDescription(&self) -> ::windows::core::Result { + pub unsafe fn CurrentFullDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CurrentFullDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CurrentFullDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedFullDescription(&self) -> ::windows::core::Result { + pub unsafe fn CachedFullDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CachedFullDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CachedFullDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn FindFirstWithOptions<'a, P0, P1>(&self, scope: TreeScope, condition: P0, traversaloptions: TreeTraversalOptions, root: P1) -> ::windows::core::Result where @@ -14826,29 +14170,21 @@ impl IUIAutomationElement8 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CurrentControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentLocalizedControlType(&self) -> ::windows::core::Result { + pub unsafe fn CurrentLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CurrentLocalizedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CurrentLocalizedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentName(&self) -> ::windows::core::Result { + pub unsafe fn CurrentName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CurrentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CurrentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAcceleratorKey(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CurrentAcceleratorKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CurrentAcceleratorKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAccessKey(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAccessKey(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CurrentAccessKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CurrentAccessKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -14868,23 +14204,17 @@ impl IUIAutomationElement8 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CurrentIsEnabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAutomationId(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAutomationId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CurrentAutomationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CurrentAutomationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentClassName(&self) -> ::windows::core::Result { + pub unsafe fn CurrentClassName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CurrentClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CurrentClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentHelpText(&self) -> ::windows::core::Result { + pub unsafe fn CurrentHelpText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CurrentHelpText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CurrentHelpText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CurrentCulture(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -14914,11 +14244,9 @@ impl IUIAutomationElement8 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CurrentNativeWindowHandle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentItemType(&self) -> ::windows::core::Result { + pub unsafe fn CurrentItemType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CurrentItemType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CurrentItemType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -14930,11 +14258,9 @@ impl IUIAutomationElement8 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CurrentOrientation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentFrameworkId(&self) -> ::windows::core::Result { + pub unsafe fn CurrentFrameworkId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CurrentFrameworkId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CurrentFrameworkId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -14942,11 +14268,9 @@ impl IUIAutomationElement8 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CurrentIsRequiredForForm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentItemStatus(&self) -> ::windows::core::Result { + pub unsafe fn CurrentItemStatus(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CurrentItemStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CurrentItemStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -14958,17 +14282,13 @@ impl IUIAutomationElement8 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CurrentLabeledBy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAriaRole(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAriaRole(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CurrentAriaRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CurrentAriaRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAriaProperties(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAriaProperties(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CurrentAriaProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CurrentAriaProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -14988,11 +14308,9 @@ impl IUIAutomationElement8 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CurrentFlowsTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentProviderDescription(&self) -> ::windows::core::Result { + pub unsafe fn CurrentProviderDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CurrentProviderDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CurrentProviderDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CachedProcessId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -15002,29 +14320,21 @@ impl IUIAutomationElement8 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CachedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedLocalizedControlType(&self) -> ::windows::core::Result { + pub unsafe fn CachedLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CachedLocalizedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) - } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedName(&self) -> ::windows::core::Result { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CachedLocalizedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) + } + pub unsafe fn CachedName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CachedName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CachedName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAcceleratorKey(&self) -> ::windows::core::Result { + pub unsafe fn CachedAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CachedAcceleratorKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CachedAcceleratorKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAccessKey(&self) -> ::windows::core::Result { + pub unsafe fn CachedAccessKey(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CachedAccessKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CachedAccessKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -15044,23 +14354,17 @@ impl IUIAutomationElement8 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CachedIsEnabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAutomationId(&self) -> ::windows::core::Result { + pub unsafe fn CachedAutomationId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CachedAutomationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CachedAutomationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedClassName(&self) -> ::windows::core::Result { + pub unsafe fn CachedClassName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CachedClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CachedClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedHelpText(&self) -> ::windows::core::Result { + pub unsafe fn CachedHelpText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CachedHelpText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CachedHelpText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CachedCulture(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -15090,11 +14394,9 @@ impl IUIAutomationElement8 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CachedNativeWindowHandle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedItemType(&self) -> ::windows::core::Result { + pub unsafe fn CachedItemType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CachedItemType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CachedItemType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -15106,11 +14408,9 @@ impl IUIAutomationElement8 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CachedOrientation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedFrameworkId(&self) -> ::windows::core::Result { + pub unsafe fn CachedFrameworkId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CachedFrameworkId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CachedFrameworkId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -15118,11 +14418,9 @@ impl IUIAutomationElement8 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CachedIsRequiredForForm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedItemStatus(&self) -> ::windows::core::Result { + pub unsafe fn CachedItemStatus(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CachedItemStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CachedItemStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -15134,17 +14432,13 @@ impl IUIAutomationElement8 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CachedLabeledBy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAriaRole(&self) -> ::windows::core::Result { + pub unsafe fn CachedAriaRole(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CachedAriaRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CachedAriaRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAriaProperties(&self) -> ::windows::core::Result { + pub unsafe fn CachedAriaProperties(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CachedAriaProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CachedAriaProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -15164,11 +14458,9 @@ impl IUIAutomationElement8 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CachedFlowsTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedProviderDescription(&self) -> ::windows::core::Result { + pub unsafe fn CachedProviderDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CachedProviderDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CachedProviderDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -15266,33 +14558,25 @@ impl IUIAutomationElement8 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentLandmarkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentLocalizedLandmarkType(&self) -> ::windows::core::Result { + pub unsafe fn CurrentLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentLocalizedLandmarkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentLocalizedLandmarkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CachedLandmarkType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.CachedLandmarkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedLocalizedLandmarkType(&self) -> ::windows::core::Result { + pub unsafe fn CachedLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.CachedLocalizedLandmarkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.CachedLocalizedLandmarkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentFullDescription(&self) -> ::windows::core::Result { + pub unsafe fn CurrentFullDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CurrentFullDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CurrentFullDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedFullDescription(&self) -> ::windows::core::Result { + pub unsafe fn CachedFullDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CachedFullDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CachedFullDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn FindFirstWithOptions<'a, P0, P1>(&self, scope: TreeScope, condition: P0, traversaloptions: TreeTraversalOptions, root: P1) -> ::windows::core::Result where @@ -15608,29 +14892,21 @@ impl IUIAutomationElement9 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CurrentControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentLocalizedControlType(&self) -> ::windows::core::Result { + pub unsafe fn CurrentLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CurrentLocalizedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CurrentLocalizedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentName(&self) -> ::windows::core::Result { + pub unsafe fn CurrentName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CurrentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CurrentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAcceleratorKey(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CurrentAcceleratorKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CurrentAcceleratorKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAccessKey(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAccessKey(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CurrentAccessKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CurrentAccessKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -15650,23 +14926,17 @@ impl IUIAutomationElement9 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CurrentIsEnabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAutomationId(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAutomationId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CurrentAutomationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CurrentAutomationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentClassName(&self) -> ::windows::core::Result { + pub unsafe fn CurrentClassName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CurrentClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CurrentClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentHelpText(&self) -> ::windows::core::Result { + pub unsafe fn CurrentHelpText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CurrentHelpText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CurrentHelpText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CurrentCulture(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -15696,11 +14966,9 @@ impl IUIAutomationElement9 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CurrentNativeWindowHandle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentItemType(&self) -> ::windows::core::Result { + pub unsafe fn CurrentItemType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CurrentItemType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CurrentItemType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -15712,11 +14980,9 @@ impl IUIAutomationElement9 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CurrentOrientation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentFrameworkId(&self) -> ::windows::core::Result { + pub unsafe fn CurrentFrameworkId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CurrentFrameworkId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CurrentFrameworkId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -15724,11 +14990,9 @@ impl IUIAutomationElement9 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CurrentIsRequiredForForm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentItemStatus(&self) -> ::windows::core::Result { + pub unsafe fn CurrentItemStatus(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CurrentItemStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CurrentItemStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -15740,17 +15004,13 @@ impl IUIAutomationElement9 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CurrentLabeledBy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAriaRole(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAriaRole(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CurrentAriaRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CurrentAriaRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentAriaProperties(&self) -> ::windows::core::Result { + pub unsafe fn CurrentAriaProperties(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CurrentAriaProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CurrentAriaProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -15770,11 +15030,9 @@ impl IUIAutomationElement9 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CurrentFlowsTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentProviderDescription(&self) -> ::windows::core::Result { + pub unsafe fn CurrentProviderDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CurrentProviderDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CurrentProviderDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CachedProcessId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -15784,29 +15042,21 @@ impl IUIAutomationElement9 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CachedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedLocalizedControlType(&self) -> ::windows::core::Result { + pub unsafe fn CachedLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CachedLocalizedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CachedLocalizedControlType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedName(&self) -> ::windows::core::Result { + pub unsafe fn CachedName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CachedName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CachedName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAcceleratorKey(&self) -> ::windows::core::Result { + pub unsafe fn CachedAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CachedAcceleratorKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CachedAcceleratorKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAccessKey(&self) -> ::windows::core::Result { + pub unsafe fn CachedAccessKey(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CachedAccessKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CachedAccessKey)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -15826,23 +15076,17 @@ impl IUIAutomationElement9 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CachedIsEnabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAutomationId(&self) -> ::windows::core::Result { + pub unsafe fn CachedAutomationId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CachedAutomationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CachedAutomationId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedClassName(&self) -> ::windows::core::Result { + pub unsafe fn CachedClassName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CachedClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CachedClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedHelpText(&self) -> ::windows::core::Result { + pub unsafe fn CachedHelpText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CachedHelpText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CachedHelpText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CachedCulture(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -15872,11 +15116,9 @@ impl IUIAutomationElement9 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CachedNativeWindowHandle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedItemType(&self) -> ::windows::core::Result { + pub unsafe fn CachedItemType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CachedItemType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CachedItemType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -15888,11 +15130,9 @@ impl IUIAutomationElement9 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CachedOrientation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedFrameworkId(&self) -> ::windows::core::Result { + pub unsafe fn CachedFrameworkId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CachedFrameworkId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CachedFrameworkId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -15900,11 +15140,9 @@ impl IUIAutomationElement9 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CachedIsRequiredForForm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedItemStatus(&self) -> ::windows::core::Result { + pub unsafe fn CachedItemStatus(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CachedItemStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CachedItemStatus)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -15916,17 +15154,13 @@ impl IUIAutomationElement9 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CachedLabeledBy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAriaRole(&self) -> ::windows::core::Result { + pub unsafe fn CachedAriaRole(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CachedAriaRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CachedAriaRole)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedAriaProperties(&self) -> ::windows::core::Result { + pub unsafe fn CachedAriaProperties(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CachedAriaProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CachedAriaProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -15946,11 +15180,9 @@ impl IUIAutomationElement9 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CachedFlowsTo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedProviderDescription(&self) -> ::windows::core::Result { + pub unsafe fn CachedProviderDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CachedProviderDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.CachedProviderDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -16048,33 +15280,25 @@ impl IUIAutomationElement9 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CurrentLandmarkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentLocalizedLandmarkType(&self) -> ::windows::core::Result { + pub unsafe fn CurrentLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CurrentLocalizedLandmarkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CurrentLocalizedLandmarkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CachedLandmarkType(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CachedLandmarkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedLocalizedLandmarkType(&self) -> ::windows::core::Result { + pub unsafe fn CachedLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CachedLocalizedLandmarkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CachedLocalizedLandmarkType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentFullDescription(&self) -> ::windows::core::Result { + pub unsafe fn CurrentFullDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentFullDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.CurrentFullDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedFullDescription(&self) -> ::windows::core::Result { + pub unsafe fn CachedFullDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.CachedFullDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.CachedFullDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn FindFirstWithOptions<'a, P0, P1>(&self, scope: TreeScope, condition: P0, traversaloptions: TreeTraversalOptions, root: P1) -> ::windows::core::Result where @@ -16921,23 +16145,17 @@ impl IUIAutomationLegacyIAccessiblePattern { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CurrentChildId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentName(&self) -> ::windows::core::Result { + pub unsafe fn CurrentName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CurrentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CurrentName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentValue(&self) -> ::windows::core::Result { + pub unsafe fn CurrentValue(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CurrentValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CurrentValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentDescription(&self) -> ::windows::core::Result { + pub unsafe fn CurrentDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CurrentDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CurrentDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CurrentRole(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -16947,49 +16165,37 @@ impl IUIAutomationLegacyIAccessiblePattern { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CurrentState)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentHelp(&self) -> ::windows::core::Result { + pub unsafe fn CurrentHelp(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CurrentHelp)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CurrentHelp)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentKeyboardShortcut(&self) -> ::windows::core::Result { + pub unsafe fn CurrentKeyboardShortcut(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CurrentKeyboardShortcut)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CurrentKeyboardShortcut)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetCurrentSelection(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetCurrentSelection)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentDefaultAction(&self) -> ::windows::core::Result { + pub unsafe fn CurrentDefaultAction(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CurrentDefaultAction)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CurrentDefaultAction)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CachedChildId(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CachedChildId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedName(&self) -> ::windows::core::Result { + pub unsafe fn CachedName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CachedName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CachedName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedValue(&self) -> ::windows::core::Result { + pub unsafe fn CachedValue(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CachedValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CachedValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedDescription(&self) -> ::windows::core::Result { + pub unsafe fn CachedDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CachedDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CachedDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CachedRole(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -16999,27 +16205,21 @@ impl IUIAutomationLegacyIAccessiblePattern { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CachedState)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedHelp(&self) -> ::windows::core::Result { + pub unsafe fn CachedHelp(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CachedHelp)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CachedHelp)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedKeyboardShortcut(&self) -> ::windows::core::Result { + pub unsafe fn CachedKeyboardShortcut(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CachedKeyboardShortcut)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CachedKeyboardShortcut)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetCachedSelection(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetCachedSelection)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedDefaultAction(&self) -> ::windows::core::Result { + pub unsafe fn CachedDefaultAction(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CachedDefaultAction)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CachedDefaultAction)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -17071,61 +16271,25 @@ pub struct IUIAutomationLegacyIAccessiblePattern_Vtbl { pub DoDefaultAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, szvalue: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, pub CurrentChildId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CurrentName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CurrentName: usize, - #[cfg(feature = "Win32_Foundation")] - pub CurrentValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CurrentValue: usize, - #[cfg(feature = "Win32_Foundation")] - pub CurrentDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CurrentDescription: usize, + pub CurrentName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CurrentValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CurrentDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub CurrentRole: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwrole: *mut u32) -> ::windows::core::HRESULT, pub CurrentState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwstate: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CurrentHelp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszhelp: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CurrentHelp: usize, - #[cfg(feature = "Win32_Foundation")] - pub CurrentKeyboardShortcut: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszkeyboardshortcut: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CurrentKeyboardShortcut: usize, + pub CurrentHelp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszhelp: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CurrentKeyboardShortcut: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszkeyboardshortcut: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetCurrentSelection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvarselectedchildren: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CurrentDefaultAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszdefaultaction: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CurrentDefaultAction: usize, + pub CurrentDefaultAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszdefaultaction: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub CachedChildId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CachedName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CachedName: usize, - #[cfg(feature = "Win32_Foundation")] - pub CachedValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CachedValue: usize, - #[cfg(feature = "Win32_Foundation")] - pub CachedDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CachedDescription: usize, + pub CachedName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CachedValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CachedDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub CachedRole: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwrole: *mut u32) -> ::windows::core::HRESULT, pub CachedState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwstate: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CachedHelp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszhelp: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CachedHelp: usize, - #[cfg(feature = "Win32_Foundation")] - pub CachedKeyboardShortcut: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszkeyboardshortcut: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CachedKeyboardShortcut: usize, + pub CachedHelp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszhelp: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CachedKeyboardShortcut: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszkeyboardshortcut: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetCachedSelection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvarselectedchildren: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CachedDefaultAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszdefaultaction: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CachedDefaultAction: usize, + pub CachedDefaultAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszdefaultaction: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub GetIAccessible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppaccessible: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -17135,11 +16299,9 @@ pub struct IUIAutomationLegacyIAccessiblePattern_Vtbl { #[repr(transparent)] pub struct IUIAutomationMultipleViewPattern(::windows::core::IUnknown); impl IUIAutomationMultipleViewPattern { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetViewName(&self, view: i32) -> ::windows::core::Result { + pub unsafe fn GetViewName(&self, view: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetViewName)(::windows::core::Interface::as_raw(self), view, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetViewName)(::windows::core::Interface::as_raw(self), view, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetCurrentView(&self, view: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetCurrentView)(::windows::core::Interface::as_raw(self), view).ok() @@ -17204,10 +16366,7 @@ unsafe impl ::windows::core::Interface for IUIAutomationMultipleViewPattern { #[doc(hidden)] pub struct IUIAutomationMultipleViewPattern_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetViewName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, view: i32, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetViewName: usize, + pub GetViewName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, view: i32, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, view: i32) -> ::windows::core::HRESULT, pub CurrentCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] @@ -17289,15 +16448,11 @@ pub struct IUIAutomationNotCondition_Vtbl { #[repr(transparent)] pub struct IUIAutomationNotificationEventHandler(::windows::core::IUnknown); impl IUIAutomationNotificationEventHandler { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn HandleNotificationEvent<'a, P0, P1, P2>(&self, sender: P0, notificationkind: NotificationKind, notificationprocessing: NotificationProcessing, displaystring: P1, activityid: P2) -> ::windows::core::Result<()> + pub unsafe fn HandleNotificationEvent<'a, P0>(&self, sender: P0, notificationkind: NotificationKind, notificationprocessing: NotificationProcessing, displaystring: &::windows::core::BSTR, activityid: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IUIAutomationElement>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).HandleNotificationEvent)(::windows::core::Interface::as_raw(self), sender.into().abi(), notificationkind, notificationprocessing, displaystring.into().abi(), activityid.into().abi()).ok() + (::windows::core::Interface::vtable(self).HandleNotificationEvent)(::windows::core::Interface::as_raw(self), sender.into().abi(), notificationkind, notificationprocessing, ::core::mem::transmute_copy(displaystring), ::core::mem::transmute_copy(activityid)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -17339,10 +16494,7 @@ unsafe impl ::windows::core::Interface for IUIAutomationNotificationEventHandler #[doc(hidden)] pub struct IUIAutomationNotificationEventHandler_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub HandleNotificationEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void, notificationkind: NotificationKind, notificationprocessing: NotificationProcessing, displaystring: ::core::mem::ManuallyDrop, activityid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - HandleNotificationEvent: usize, + pub HandleNotificationEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void, notificationkind: NotificationKind, notificationprocessing: NotificationProcessing, displaystring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, activityid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_Accessibility\"`*"] #[repr(transparent)] @@ -17745,11 +16897,9 @@ impl IUIAutomationProxyFactory { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CreateProvider)(::windows::core::Interface::as_raw(self), hwnd.into(), idobject, idchild, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ProxyFactoryId(&self) -> ::windows::core::Result { + pub unsafe fn ProxyFactoryId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ProxyFactoryId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ProxyFactoryId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -17795,10 +16945,7 @@ pub struct IUIAutomationProxyFactory_Vtbl { pub CreateProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: super::super::Foundation::HWND, idobject: i32, idchild: i32, provider: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] CreateProvider: usize, - #[cfg(feature = "Win32_Foundation")] - pub ProxyFactoryId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, factoryid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ProxyFactoryId: usize, + pub ProxyFactoryId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, factoryid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_Accessibility\"`*"] #[repr(transparent)] @@ -17808,17 +16955,13 @@ impl IUIAutomationProxyFactoryEntry { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).ProxyFactory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ClassName(&self) -> ::windows::core::Result { + pub unsafe fn ClassName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ClassName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ImageName(&self) -> ::windows::core::Result { + pub unsafe fn ImageName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ImageName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ImageName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -17926,14 +17069,8 @@ unsafe impl ::windows::core::Interface for IUIAutomationProxyFactoryEntry { pub struct IUIAutomationProxyFactoryEntry_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub ProxyFactory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, factory: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ClassName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, classname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ClassName: usize, - #[cfg(feature = "Win32_Foundation")] - pub ImageName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, imagename: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ImageName: usize, + pub ClassName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, classname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub ImageName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, imagename: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub AllowSubstringMatch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, allowsubstringmatch: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -18754,11 +17891,9 @@ pub struct IUIAutomationSelectionPattern2_Vtbl { #[repr(transparent)] pub struct IUIAutomationSpreadsheetItemPattern(::windows::core::IUnknown); impl IUIAutomationSpreadsheetItemPattern { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentFormula(&self) -> ::windows::core::Result { + pub unsafe fn CurrentFormula(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CurrentFormula)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CurrentFormula)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetCurrentAnnotationObjects(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -18770,11 +17905,9 @@ impl IUIAutomationSpreadsheetItemPattern { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetCurrentAnnotationTypes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<*mut super::super::System::Com::SAFEARRAY>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedFormula(&self) -> ::windows::core::Result { + pub unsafe fn CachedFormula(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CachedFormula)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CachedFormula)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetCachedAnnotationObjects(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -18826,19 +17959,13 @@ unsafe impl ::windows::core::Interface for IUIAutomationSpreadsheetItemPattern { #[doc(hidden)] pub struct IUIAutomationSpreadsheetItemPattern_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub CurrentFormula: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CurrentFormula: usize, + pub CurrentFormula: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetCurrentAnnotationObjects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub GetCurrentAnnotationTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetCurrentAnnotationTypes: usize, - #[cfg(feature = "Win32_Foundation")] - pub CachedFormula: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CachedFormula: usize, + pub CachedFormula: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetCachedAnnotationObjects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub GetCachedAnnotationTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut *mut super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT, @@ -18849,14 +17976,9 @@ pub struct IUIAutomationSpreadsheetItemPattern_Vtbl { #[repr(transparent)] pub struct IUIAutomationSpreadsheetPattern(::windows::core::IUnknown); impl IUIAutomationSpreadsheetPattern { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetItemByName<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetItemByName(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetItemByName)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetItemByName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -18898,10 +18020,7 @@ unsafe impl ::windows::core::Interface for IUIAutomationSpreadsheetPattern { #[doc(hidden)] pub struct IUIAutomationSpreadsheetPattern_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetItemByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, element: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetItemByName: usize, + pub GetItemByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, element: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_Accessibility\"`*"] #[repr(transparent)] @@ -18968,40 +18087,30 @@ impl IUIAutomationStylesPattern { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CurrentStyleId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentStyleName(&self) -> ::windows::core::Result { + pub unsafe fn CurrentStyleName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CurrentStyleName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CurrentStyleName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CurrentFillColor(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CurrentFillColor)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentFillPatternStyle(&self) -> ::windows::core::Result { + pub unsafe fn CurrentFillPatternStyle(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CurrentFillPatternStyle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CurrentFillPatternStyle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentShape(&self) -> ::windows::core::Result { + pub unsafe fn CurrentShape(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CurrentShape)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CurrentShape)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CurrentFillPatternColor(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CurrentFillPatternColor)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentExtendedProperties(&self) -> ::windows::core::Result { + pub unsafe fn CurrentExtendedProperties(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CurrentExtendedProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CurrentExtendedProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetCurrentExtendedPropertiesAsArray(&self, propertyarray: &mut *mut ExtendedProperty, propertycount: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetCurrentExtendedPropertiesAsArray)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(propertyarray), ::core::mem::transmute(propertycount)).ok() } @@ -19009,40 +18118,30 @@ impl IUIAutomationStylesPattern { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CachedStyleId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedStyleName(&self) -> ::windows::core::Result { + pub unsafe fn CachedStyleName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CachedStyleName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CachedStyleName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CachedFillColor(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CachedFillColor)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedFillPatternStyle(&self) -> ::windows::core::Result { + pub unsafe fn CachedFillPatternStyle(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CachedFillPatternStyle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CachedFillPatternStyle)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedShape(&self) -> ::windows::core::Result { + pub unsafe fn CachedShape(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CachedShape)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CachedShape)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn CachedFillPatternColor(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CachedFillPatternColor)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedExtendedProperties(&self) -> ::windows::core::Result { + pub unsafe fn CachedExtendedProperties(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CachedExtendedProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CachedExtendedProperties)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetCachedExtendedPropertiesAsArray(&self, propertyarray: &mut *mut ExtendedProperty, propertycount: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetCachedExtendedPropertiesAsArray)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(propertyarray), ::core::mem::transmute(propertycount)).ok() } @@ -19087,51 +18186,21 @@ unsafe impl ::windows::core::Interface for IUIAutomationStylesPattern { pub struct IUIAutomationStylesPattern_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub CurrentStyleId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CurrentStyleName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CurrentStyleName: usize, + pub CurrentStyleName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub CurrentFillColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CurrentFillPatternStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CurrentFillPatternStyle: usize, - #[cfg(feature = "Win32_Foundation")] - pub CurrentShape: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CurrentShape: usize, + pub CurrentFillPatternStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CurrentShape: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub CurrentFillPatternColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CurrentExtendedProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CurrentExtendedProperties: usize, - #[cfg(feature = "Win32_Foundation")] + pub CurrentExtendedProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetCurrentExtendedPropertiesAsArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyarray: *mut *mut ExtendedProperty, propertycount: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetCurrentExtendedPropertiesAsArray: usize, pub CachedStyleId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CachedStyleName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CachedStyleName: usize, + pub CachedStyleName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub CachedFillColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CachedFillPatternStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CachedFillPatternStyle: usize, - #[cfg(feature = "Win32_Foundation")] - pub CachedShape: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CachedShape: usize, + pub CachedFillPatternStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CachedShape: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub CachedFillPatternColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CachedExtendedProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CachedExtendedProperties: usize, - #[cfg(feature = "Win32_Foundation")] + pub CachedExtendedProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetCachedExtendedPropertiesAsArray: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyarray: *mut *mut ExtendedProperty, propertycount: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetCachedExtendedPropertiesAsArray: usize, } #[doc = "*Required features: `\"Win32_UI_Accessibility\"`*"] #[repr(transparent)] @@ -19765,14 +18834,13 @@ impl IUIAutomationTextRange { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FindText<'a, P0, P1, P2>(&self, text: P0, backward: P1, ignorecase: P2) -> ::windows::core::Result + pub unsafe fn FindText<'a, P0, P1>(&self, text: &::windows::core::BSTR, backward: P0, ignorecase: P1) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P0: ::std::convert::Into, P1: ::std::convert::Into, - P2: ::std::convert::Into, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FindText)(::windows::core::Interface::as_raw(self), text.into().abi(), backward.into(), ignorecase.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FindText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(text), backward.into(), ignorecase.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -19790,11 +18858,9 @@ impl IUIAutomationTextRange { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetEnclosingElement)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetText(&self, maxlength: i32) -> ::windows::core::Result { + pub unsafe fn GetText(&self, maxlength: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetText)(::windows::core::Interface::as_raw(self), maxlength, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetText)(::windows::core::Interface::as_raw(self), maxlength, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Move(&self, unit: TextUnit, count: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -19883,7 +18949,7 @@ pub struct IUIAutomationTextRange_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] FindAttribute: usize, #[cfg(feature = "Win32_Foundation")] - pub FindText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop, backward: super::super::Foundation::BOOL, ignorecase: super::super::Foundation::BOOL, found: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub FindText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop<::windows::core::BSTR>, backward: super::super::Foundation::BOOL, ignorecase: super::super::Foundation::BOOL, found: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] FindText: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -19895,10 +18961,7 @@ pub struct IUIAutomationTextRange_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] GetBoundingRectangles: usize, pub GetEnclosingElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, enclosingelement: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, maxlength: i32, text: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetText: usize, + pub GetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, maxlength: i32, text: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Move: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, unit: TextUnit, count: i32, moved: *mut i32) -> ::windows::core::HRESULT, pub MoveEndpointByUnit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, endpoint: TextPatternRangeEndpoint, unit: TextUnit, count: i32, moved: *mut i32) -> ::windows::core::HRESULT, pub MoveEndpointByRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, srcendpoint: TextPatternRangeEndpoint, range: *mut ::core::ffi::c_void, targetendpoint: TextPatternRangeEndpoint) -> ::windows::core::HRESULT, @@ -19950,14 +19013,13 @@ impl IUIAutomationTextRange2 { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FindText<'a, P0, P1, P2>(&self, text: P0, backward: P1, ignorecase: P2) -> ::windows::core::Result + pub unsafe fn FindText<'a, P0, P1>(&self, text: &::windows::core::BSTR, backward: P0, ignorecase: P1) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P0: ::std::convert::Into, P1: ::std::convert::Into, - P2: ::std::convert::Into, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FindText)(::windows::core::Interface::as_raw(self), text.into().abi(), backward.into(), ignorecase.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.FindText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(text), backward.into(), ignorecase.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -19975,11 +19037,9 @@ impl IUIAutomationTextRange2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetEnclosingElement)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetText(&self, maxlength: i32) -> ::windows::core::Result { + pub unsafe fn GetText(&self, maxlength: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetText)(::windows::core::Interface::as_raw(self), maxlength, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetText)(::windows::core::Interface::as_raw(self), maxlength, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Move(&self, unit: TextUnit, count: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -20115,14 +19175,13 @@ impl IUIAutomationTextRange3 { } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FindText<'a, P0, P1, P2>(&self, text: P0, backward: P1, ignorecase: P2) -> ::windows::core::Result + pub unsafe fn FindText<'a, P0, P1>(&self, text: &::windows::core::BSTR, backward: P0, ignorecase: P1) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P0: ::std::convert::Into, P1: ::std::convert::Into, - P2: ::std::convert::Into, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.FindText)(::windows::core::Interface::as_raw(self), text.into().abi(), backward.into(), ignorecase.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.FindText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(text), backward.into(), ignorecase.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -20140,11 +19199,9 @@ impl IUIAutomationTextRange3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.GetEnclosingElement)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetText(&self, maxlength: i32) -> ::windows::core::Result { + pub unsafe fn GetText(&self, maxlength: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetText)(::windows::core::Interface::as_raw(self), maxlength, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetText)(::windows::core::Interface::as_raw(self), maxlength, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Move(&self, unit: TextUnit, count: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -20831,19 +19888,12 @@ pub struct IUIAutomationTreeWalker_Vtbl { #[repr(transparent)] pub struct IUIAutomationValuePattern(::windows::core::IUnknown); impl IUIAutomationValuePattern { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetValue<'a, P0>(&self, val: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetValue)(::windows::core::Interface::as_raw(self), val.into().abi()).ok() + pub unsafe fn SetValue(&self, val: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(val)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CurrentValue(&self) -> ::windows::core::Result { + pub unsafe fn CurrentValue(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CurrentValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CurrentValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -20851,11 +19901,9 @@ impl IUIAutomationValuePattern { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).CurrentIsReadOnly)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CachedValue(&self) -> ::windows::core::Result { + pub unsafe fn CachedValue(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CachedValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CachedValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -20903,22 +19951,13 @@ unsafe impl ::windows::core::Interface for IUIAutomationValuePattern { #[doc(hidden)] pub struct IUIAutomationValuePattern_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, val: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetValue: usize, - #[cfg(feature = "Win32_Foundation")] - pub CurrentValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CurrentValue: usize, + pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, val: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub CurrentValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub CurrentIsReadOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] CurrentIsReadOnly: usize, - #[cfg(feature = "Win32_Foundation")] - pub CachedValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CachedValue: usize, + pub CachedValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub CachedIsReadOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, retval: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -21146,11 +20185,9 @@ impl IValueProvider { { (::windows::core::Interface::vtable(self).SetValue)(::windows::core::Interface::as_raw(self), val.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Value(&self) -> ::windows::core::Result { + pub unsafe fn Value(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Value)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Value)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -21199,10 +20236,7 @@ unsafe impl ::windows::core::Interface for IValueProvider { pub struct IValueProvider_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, val: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Value: usize, + pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub IsReadOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pretval: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -24909,37 +23943,30 @@ impl ::core::default::Default for ACCESSTIMEOUT { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_UI_Accessibility\"`*"] pub struct ExtendedProperty { - pub PropertyName: super::super::Foundation::BSTR, - pub PropertyValue: super::super::Foundation::BSTR, + pub PropertyName: ::windows::core::BSTR, + pub PropertyValue: ::windows::core::BSTR, } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for ExtendedProperty { fn clone(&self) -> Self { Self { PropertyName: self.PropertyName.clone(), PropertyValue: self.PropertyValue.clone() } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for ExtendedProperty { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("ExtendedProperty").field("PropertyName", &self.PropertyName).field("PropertyValue", &self.PropertyValue).finish() } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for ExtendedProperty { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for ExtendedProperty { fn eq(&self, other: &Self) -> bool { self.PropertyName == other.PropertyName && self.PropertyValue == other.PropertyValue } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for ExtendedProperty {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for ExtendedProperty { fn default() -> Self { unsafe { ::core::mem::zeroed() } @@ -26285,9 +25312,9 @@ pub type LPFNLRESULTFROMOBJECT = ::core::option::Option ::windows::core::HRESULT>; -#[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] -pub type UiaEventCallback = ::core::option::Option; +#[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_System_Com\"`*"] +#[cfg(feature = "Win32_System_Com")] +pub type UiaEventCallback = ::core::option::Option; #[doc = "*Required features: `\"Win32_UI_Accessibility\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] pub type UiaProviderCallback = ::core::option::Option *mut super::super::System::Com::SAFEARRAY>; diff --git a/crates/libs/windows/src/Windows/Win32/UI/ColorSystem/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/ColorSystem/impl.rs index 63f5265dc8..4682d75330 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/ColorSystem/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/ColorSystem/impl.rs @@ -1,6 +1,6 @@ #[cfg(feature = "Win32_Foundation")] pub trait IDeviceModelPlugIn_Impl: Sized { - fn Initialize(&self, bstrxml: &super::super::Foundation::BSTR, cnummodels: u32, imodelposition: u32) -> ::windows::core::Result<()>; + fn Initialize(&self, bstrxml: &::windows::core::BSTR, cnummodels: u32, imodelposition: u32) -> ::windows::core::Result<()>; fn GetNumChannels(&self) -> ::windows::core::Result; fn DeviceToColorimetricColors(&self, ccolors: u32, cchannels: u32, pdevicevalues: *const f32, pxyzcolors: *mut XYZColorF) -> ::windows::core::Result<()>; fn ColorimetricToDeviceColors(&self, ccolors: u32, cchannels: u32, pxyzcolors: *const XYZColorF) -> ::windows::core::Result; @@ -17,7 +17,7 @@ impl ::windows::core::RuntimeName for IDeviceModelPlugIn {} #[cfg(feature = "Win32_Foundation")] impl IDeviceModelPlugIn_Vtbl { pub const fn new, Impl: IDeviceModelPlugIn_Impl, const OFFSET: isize>() -> IDeviceModelPlugIn_Vtbl { - unsafe extern "system" fn Initialize, Impl: IDeviceModelPlugIn_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrxml: ::core::mem::ManuallyDrop, cnummodels: u32, imodelposition: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn Initialize, Impl: IDeviceModelPlugIn_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrxml: ::core::mem::ManuallyDrop<::windows::core::BSTR>, cnummodels: u32, imodelposition: u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Initialize(::core::mem::transmute(&bstrxml), ::core::mem::transmute_copy(&cnummodels), ::core::mem::transmute_copy(&imodelposition)).into() @@ -121,17 +121,14 @@ impl IDeviceModelPlugIn_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IGamutMapModelPlugIn_Impl: Sized { - fn Initialize(&self, bstrxml: &super::super::Foundation::BSTR, psrcplugin: &::core::option::Option, pdestplugin: &::core::option::Option, psrcgbd: *const GamutBoundaryDescription, pdestgbd: *const GamutBoundaryDescription) -> ::windows::core::Result<()>; + fn Initialize(&self, bstrxml: &::windows::core::BSTR, psrcplugin: &::core::option::Option, pdestplugin: &::core::option::Option, psrcgbd: *const GamutBoundaryDescription, pdestgbd: *const GamutBoundaryDescription) -> ::windows::core::Result<()>; fn SourceToDestinationAppearanceColors(&self, ccolors: u32, pinputcolors: *const JChColorF, poutputcolors: *mut JChColorF) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IGamutMapModelPlugIn {} -#[cfg(feature = "Win32_Foundation")] impl IGamutMapModelPlugIn_Vtbl { pub const fn new, Impl: IGamutMapModelPlugIn_Impl, const OFFSET: isize>() -> IGamutMapModelPlugIn_Vtbl { - unsafe extern "system" fn Initialize, Impl: IGamutMapModelPlugIn_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrxml: ::core::mem::ManuallyDrop, psrcplugin: *mut ::core::ffi::c_void, pdestplugin: *mut ::core::ffi::c_void, psrcgbd: *const GamutBoundaryDescription, pdestgbd: *const GamutBoundaryDescription) -> ::windows::core::HRESULT { + unsafe extern "system" fn Initialize, Impl: IGamutMapModelPlugIn_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrxml: ::core::mem::ManuallyDrop<::windows::core::BSTR>, psrcplugin: *mut ::core::ffi::c_void, pdestplugin: *mut ::core::ffi::c_void, psrcgbd: *const GamutBoundaryDescription, pdestgbd: *const GamutBoundaryDescription) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Initialize(::core::mem::transmute(&bstrxml), ::core::mem::transmute(&psrcplugin), ::core::mem::transmute(&pdestplugin), ::core::mem::transmute_copy(&psrcgbd), ::core::mem::transmute_copy(&pdestgbd)).into() diff --git a/crates/libs/windows/src/Windows/Win32/UI/ColorSystem/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/ColorSystem/mod.rs index cd394853d3..02a3faa99b 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/ColorSystem/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/ColorSystem/mod.rs @@ -1404,13 +1404,8 @@ pub unsafe fn WcsTranslateColors(hcolortransform: isize, ncolors: u32, ninputcha #[repr(transparent)] pub struct IDeviceModelPlugIn(::windows::core::IUnknown); impl IDeviceModelPlugIn { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Initialize<'a, P0>(&self, bstrxml: P0, cnummodels: u32, imodelposition: u32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), bstrxml.into().abi(), cnummodels, imodelposition).ok() + pub unsafe fn Initialize(&self, bstrxml: &::windows::core::BSTR, cnummodels: u32, imodelposition: u32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrxml), cnummodels, imodelposition).ok() } pub unsafe fn GetNumChannels(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1492,10 +1487,7 @@ unsafe impl ::windows::core::Interface for IDeviceModelPlugIn { #[doc(hidden)] pub struct IDeviceModelPlugIn_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrxml: ::core::mem::ManuallyDrop, cnummodels: u32, imodelposition: u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Initialize: usize, + pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrxml: ::core::mem::ManuallyDrop<::windows::core::BSTR>, cnummodels: u32, imodelposition: u32) -> ::windows::core::HRESULT, pub GetNumChannels: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnumchannels: *mut u32) -> ::windows::core::HRESULT, pub DeviceToColorimetricColors: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ccolors: u32, cchannels: u32, pdevicevalues: *const f32, pxyzcolors: *mut XYZColorF) -> ::windows::core::HRESULT, pub ColorimetricToDeviceColors: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ccolors: u32, cchannels: u32, pxyzcolors: *const XYZColorF, pdevicevalues: *mut f32) -> ::windows::core::HRESULT, @@ -1514,15 +1506,12 @@ pub struct IDeviceModelPlugIn_Vtbl { #[repr(transparent)] pub struct IGamutMapModelPlugIn(::windows::core::IUnknown); impl IGamutMapModelPlugIn { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Initialize<'a, P0, P1, P2>(&self, bstrxml: P0, psrcplugin: P1, pdestplugin: P2, psrcgbd: &GamutBoundaryDescription, pdestgbd: &GamutBoundaryDescription) -> ::windows::core::Result<()> + pub unsafe fn Initialize<'a, P0, P1>(&self, bstrxml: &::windows::core::BSTR, psrcplugin: P0, pdestplugin: P1, psrcgbd: &GamutBoundaryDescription, pdestgbd: &GamutBoundaryDescription) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IDeviceModelPlugIn>>, P1: ::std::convert::Into<::windows::core::InParam<'a, IDeviceModelPlugIn>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IDeviceModelPlugIn>>, { - (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), bstrxml.into().abi(), psrcplugin.into().abi(), pdestplugin.into().abi(), ::core::mem::transmute(psrcgbd), ::core::mem::transmute(pdestgbd)).ok() + (::windows::core::Interface::vtable(self).Initialize)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrxml), psrcplugin.into().abi(), pdestplugin.into().abi(), ::core::mem::transmute(psrcgbd), ::core::mem::transmute(pdestgbd)).ok() } pub unsafe fn SourceToDestinationAppearanceColors(&self, ccolors: u32, pinputcolors: *const JChColorF, poutputcolors: *mut JChColorF) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SourceToDestinationAppearanceColors)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ccolors), ::core::mem::transmute(pinputcolors), ::core::mem::transmute(poutputcolors)).ok() @@ -1567,10 +1556,7 @@ unsafe impl ::windows::core::Interface for IGamutMapModelPlugIn { #[doc(hidden)] pub struct IGamutMapModelPlugIn_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrxml: ::core::mem::ManuallyDrop, psrcplugin: *mut ::core::ffi::c_void, pdestplugin: *mut ::core::ffi::c_void, psrcgbd: *const GamutBoundaryDescription, pdestgbd: *const GamutBoundaryDescription) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Initialize: usize, + pub Initialize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrxml: ::core::mem::ManuallyDrop<::windows::core::BSTR>, psrcplugin: *mut ::core::ffi::c_void, pdestplugin: *mut ::core::ffi::c_void, psrcgbd: *const GamutBoundaryDescription, pdestgbd: *const GamutBoundaryDescription) -> ::windows::core::HRESULT, pub SourceToDestinationAppearanceColors: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ccolors: u32, pinputcolors: *const JChColorF, poutputcolors: *mut JChColorF) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_ColorSystem\"`*"] diff --git a/crates/libs/windows/src/Windows/Win32/UI/Controls/RichEdit/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/Controls/RichEdit/impl.rs index 45293d87cd..369a86c6ee 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Controls/RichEdit/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Controls/RichEdit/impl.rs @@ -259,7 +259,7 @@ impl ITextDisplays_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ITextDocument_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn GetName(&self) -> ::windows::core::Result; + fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetSelection(&self) -> ::windows::core::Result; fn GetStoryCount(&self) -> ::windows::core::Result; fn GetStoryRanges(&self) -> ::windows::core::Result; @@ -284,7 +284,7 @@ impl ::windows::core::RuntimeName for ITextDocument {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ITextDocument_Vtbl { pub const fn new, Impl: ITextDocument_Impl, const OFFSET: isize>() -> ITextDocument_Vtbl { - unsafe extern "system" fn GetName, Impl: ITextDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetName, Impl: ITextDocument_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetName() { @@ -488,7 +488,7 @@ pub trait ITextDocument2_Impl: Sized + super::super::super::System::Com::IDispat fn GetDocumentPara(&self) -> ::windows::core::Result; fn SetDocumentPara(&self, ppara: &::core::option::Option) -> ::windows::core::Result<()>; fn GetEastAsianFlags(&self) -> ::windows::core::Result; - fn GetGenerator(&self) -> ::windows::core::Result; + fn GetGenerator(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn SetIMEInProgress(&self, value: i32) -> ::windows::core::Result<()>; fn GetNotificationMode(&self) -> ::windows::core::Result; fn SetNotificationMode(&self, value: i32) -> ::windows::core::Result<()>; @@ -503,7 +503,7 @@ pub trait ITextDocument2_Impl: Sized + super::super::super::System::Com::IDispat fn GetClientRect(&self, r#type: tomConstants, pleft: *mut i32, ptop: *mut i32, pright: *mut i32, pbottom: *mut i32) -> ::windows::core::Result<()>; fn GetEffectColor(&self, index: i32) -> ::windows::core::Result; fn GetImmContext(&self) -> ::windows::core::Result; - fn GetPreferredFont(&self, cp: i32, charrep: i32, options: i32, curcharrep: i32, curfontsize: i32, pbstr: *mut super::super::super::Foundation::BSTR, ppitchandfamily: *mut i32, pnewfontsize: *mut i32) -> ::windows::core::Result<()>; + fn GetPreferredFont(&self, cp: i32, charrep: i32, options: i32, curcharrep: i32, curfontsize: i32, pbstr: *mut ::windows::core::BSTR, ppitchandfamily: *mut i32, pnewfontsize: *mut i32) -> ::windows::core::Result<()>; fn GetProperty(&self, r#type: i32) -> ::windows::core::Result; fn GetStrings(&self) -> ::windows::core::Result; fn Notify(&self, notify: i32) -> ::windows::core::Result<()>; @@ -600,7 +600,7 @@ impl ITextDocument2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetGenerator, Impl: ITextDocument2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetGenerator, Impl: ITextDocument2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetGenerator() { @@ -735,7 +735,7 @@ impl ITextDocument2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetPreferredFont, Impl: ITextDocument2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, cp: i32, charrep: i32, options: i32, curcharrep: i32, curfontsize: i32, pbstr: *mut super::super::super::Foundation::BSTR, ppitchandfamily: *mut i32, pnewfontsize: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPreferredFont, Impl: ITextDocument2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, cp: i32, charrep: i32, options: i32, curcharrep: i32, curfontsize: i32, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppitchandfamily: *mut i32, pnewfontsize: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetPreferredFont(::core::mem::transmute_copy(&cp), ::core::mem::transmute_copy(&charrep), ::core::mem::transmute_copy(&options), ::core::mem::transmute_copy(&curcharrep), ::core::mem::transmute_copy(&curfontsize), ::core::mem::transmute_copy(&pbstr), ::core::mem::transmute_copy(&ppitchandfamily), ::core::mem::transmute_copy(&pnewfontsize)).into() @@ -955,7 +955,7 @@ pub trait ITextDocument2Old_Impl: Sized + super::super::super::System::Com::IDis fn SetCaretType(&self, carettype: i32) -> ::windows::core::Result<()>; fn GetImmContext(&self) -> ::windows::core::Result; fn ReleaseImmContext(&self, context: i64) -> ::windows::core::Result<()>; - fn GetPreferredFont(&self, cp: i32, charrep: i32, option: i32, charrepcur: i32, curfontsize: i32, pbstr: *mut super::super::super::Foundation::BSTR, ppitchandfamily: *mut i32, pnewfontsize: *mut i32) -> ::windows::core::Result<()>; + fn GetPreferredFont(&self, cp: i32, charrep: i32, option: i32, charrepcur: i32, curfontsize: i32, pbstr: *mut ::windows::core::BSTR, ppitchandfamily: *mut i32, pnewfontsize: *mut i32) -> ::windows::core::Result<()>; fn GetNotificationMode(&self) -> ::windows::core::Result; fn SetNotificationMode(&self, mode: i32) -> ::windows::core::Result<()>; fn GetClientRect(&self, r#type: i32, pleft: *mut i32, ptop: *mut i32, pright: *mut i32, pbottom: *mut i32) -> ::windows::core::Result<()>; @@ -1031,7 +1031,7 @@ impl ITextDocument2Old_Vtbl { let this = (*this).get_impl(); this.ReleaseImmContext(::core::mem::transmute_copy(&context)).into() } - unsafe extern "system" fn GetPreferredFont, Impl: ITextDocument2Old_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, cp: i32, charrep: i32, option: i32, charrepcur: i32, curfontsize: i32, pbstr: *mut super::super::super::Foundation::BSTR, ppitchandfamily: *mut i32, pnewfontsize: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPreferredFont, Impl: ITextDocument2Old_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, cp: i32, charrep: i32, option: i32, charrepcur: i32, curfontsize: i32, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppitchandfamily: *mut i32, pnewfontsize: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetPreferredFont(::core::mem::transmute_copy(&cp), ::core::mem::transmute_copy(&charrep), ::core::mem::transmute_copy(&option), ::core::mem::transmute_copy(&charrepcur), ::core::mem::transmute_copy(&curfontsize), ::core::mem::transmute_copy(&pbstr), ::core::mem::transmute_copy(&ppitchandfamily), ::core::mem::transmute_copy(&pnewfontsize)).into() @@ -1221,8 +1221,8 @@ pub trait ITextFont_Impl: Sized + super::super::super::System::Com::IDispatch_Im fn SetKerning(&self, value: f32) -> ::windows::core::Result<()>; fn GetLanguageID(&self) -> ::windows::core::Result; fn SetLanguageID(&self, value: i32) -> ::windows::core::Result<()>; - fn GetName(&self) -> ::windows::core::Result; - fn SetName(&self, bstr: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetName(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetOutline(&self) -> ::windows::core::Result; fn SetOutline(&self, value: i32) -> ::windows::core::Result<()>; fn GetPosition(&self) -> ::windows::core::Result; @@ -1488,7 +1488,7 @@ impl ITextFont_Vtbl { let this = (*this).get_impl(); this.SetLanguageID(::core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn GetName, Impl: ITextFont_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetName, Impl: ITextFont_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetName() { @@ -1499,7 +1499,7 @@ impl ITextFont_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetName, Impl: ITextFont_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: ITextFont_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&bstr)).into() @@ -3298,8 +3298,8 @@ impl ITextPara2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait ITextRange_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { - fn GetText(&self) -> ::windows::core::Result; - fn SetText(&self, bstr: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetText(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetText(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetChar(&self) -> ::windows::core::Result; fn SetChar(&self, char: i32) -> ::windows::core::Result<()>; fn GetDuplicate(&self) -> ::windows::core::Result; @@ -3335,9 +3335,9 @@ pub trait ITextRange_Impl: Sized + super::super::super::System::Com::IDispatch_I fn MoveUntil(&self, cset: *const super::super::super::System::Com::VARIANT, count: i32) -> ::windows::core::Result; fn MoveStartUntil(&self, cset: *const super::super::super::System::Com::VARIANT, count: i32) -> ::windows::core::Result; fn MoveEndUntil(&self, cset: *const super::super::super::System::Com::VARIANT, count: i32) -> ::windows::core::Result; - fn FindText(&self, bstr: &super::super::super::Foundation::BSTR, count: i32, flags: i32) -> ::windows::core::Result; - fn FindTextStart(&self, bstr: &super::super::super::Foundation::BSTR, count: i32, flags: i32) -> ::windows::core::Result; - fn FindTextEnd(&self, bstr: &super::super::super::Foundation::BSTR, count: i32, flags: i32) -> ::windows::core::Result; + fn FindText(&self, bstr: &::windows::core::BSTR, count: i32, flags: i32) -> ::windows::core::Result; + fn FindTextStart(&self, bstr: &::windows::core::BSTR, count: i32, flags: i32) -> ::windows::core::Result; + fn FindTextEnd(&self, bstr: &::windows::core::BSTR, count: i32, flags: i32) -> ::windows::core::Result; fn Delete(&self, unit: i32, count: i32) -> ::windows::core::Result; fn Cut(&self) -> ::windows::core::Result; fn Copy(&self) -> ::windows::core::Result; @@ -3355,7 +3355,7 @@ impl ::windows::core::RuntimeName for ITextRange {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ITextRange_Vtbl { pub const fn new, Impl: ITextRange_Impl, const OFFSET: isize>() -> ITextRange_Vtbl { - unsafe extern "system" fn GetText, Impl: ITextRange_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetText, Impl: ITextRange_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetText() { @@ -3366,7 +3366,7 @@ impl ITextRange_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetText, Impl: ITextRange_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetText, Impl: ITextRange_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetText(::core::mem::transmute(&bstr)).into() @@ -3696,7 +3696,7 @@ impl ITextRange_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn FindText, Impl: ITextRange_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop, count: i32, flags: i32, plength: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn FindText, Impl: ITextRange_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>, count: i32, flags: i32, plength: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FindText(::core::mem::transmute(&bstr), ::core::mem::transmute_copy(&count), ::core::mem::transmute_copy(&flags)) { @@ -3707,7 +3707,7 @@ impl ITextRange_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn FindTextStart, Impl: ITextRange_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop, count: i32, flags: i32, plength: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn FindTextStart, Impl: ITextRange_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>, count: i32, flags: i32, plength: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FindTextStart(::core::mem::transmute(&bstr), ::core::mem::transmute_copy(&count), ::core::mem::transmute_copy(&flags)) { @@ -3718,7 +3718,7 @@ impl ITextRange_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn FindTextEnd, Impl: ITextRange_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop, count: i32, flags: i32, plength: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn FindTextEnd, Impl: ITextRange_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>, count: i32, flags: i32, plength: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FindTextEnd(::core::mem::transmute(&bstr), ::core::mem::transmute_copy(&count), ::core::mem::transmute_copy(&flags)) { @@ -3897,8 +3897,8 @@ pub trait ITextRange2_Impl: Sized + super::super::super::System::Com::IDispatch_ fn GetRow(&self) -> ::windows::core::Result; fn GetStartPara(&self) -> ::windows::core::Result; fn GetTable(&self) -> ::windows::core::Result<::windows::core::IUnknown>; - fn GetURL(&self) -> ::windows::core::Result; - fn SetURL(&self, bstr: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetURL(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetURL(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn AddSubrange(&self, cp1: i32, cp2: i32, activate: i32) -> ::windows::core::Result<()>; fn BuildUpMath(&self, flags: i32) -> ::windows::core::Result<()>; fn DeleteSubrange(&self, cpfirst: i32, cplim: i32) -> ::windows::core::Result<()>; @@ -3909,18 +3909,18 @@ pub trait ITextRange2_Impl: Sized + super::super::super::System::Com::IDispatch_ fn GetProperty(&self, r#type: i32) -> ::windows::core::Result; fn GetRect(&self, r#type: i32, pleft: *mut i32, ptop: *mut i32, pright: *mut i32, pbottom: *mut i32, phit: *mut i32) -> ::windows::core::Result<()>; fn GetSubrange(&self, isubrange: i32, pcpfirst: *mut i32, pcplim: *mut i32) -> ::windows::core::Result<()>; - fn GetText2(&self, flags: i32) -> ::windows::core::Result; + fn GetText2(&self, flags: i32) -> ::windows::core::Result<::windows::core::BSTR>; fn HexToUnicode(&self) -> ::windows::core::Result<()>; fn InsertTable(&self, ccol: i32, crow: i32, autofit: i32) -> ::windows::core::Result<()>; fn Linearize(&self, flags: i32) -> ::windows::core::Result<()>; fn SetActiveSubrange(&self, cpanchor: i32, cpactive: i32) -> ::windows::core::Result<()>; fn SetDropCap(&self, cline: i32, position: i32) -> ::windows::core::Result<()>; fn SetProperty(&self, r#type: i32, value: i32) -> ::windows::core::Result<()>; - fn SetText2(&self, flags: i32, bstr: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetText2(&self, flags: i32, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn UnicodeToHex(&self) -> ::windows::core::Result<()>; fn SetInlineObject(&self, r#type: i32, align: i32, char: i32, char1: i32, char2: i32, count: i32, texstyle: i32, ccol: i32) -> ::windows::core::Result<()>; - fn GetMathFunctionType(&self, bstr: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; - fn InsertImage(&self, width: i32, height: i32, ascent: i32, r#type: super::super::super::Graphics::Gdi::TEXT_ALIGN_OPTIONS, bstralttext: &super::super::super::Foundation::BSTR, pstream: &::core::option::Option) -> ::windows::core::Result<()>; + fn GetMathFunctionType(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result; + fn InsertImage(&self, width: i32, height: i32, ascent: i32, r#type: super::super::super::Graphics::Gdi::TEXT_ALIGN_OPTIONS, bstralttext: &::windows::core::BSTR, pstream: &::core::option::Option) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ITextRange2 {} @@ -4079,7 +4079,7 @@ impl ITextRange2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetURL, Impl: ITextRange2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetURL, Impl: ITextRange2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetURL() { @@ -4090,7 +4090,7 @@ impl ITextRange2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetURL, Impl: ITextRange2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetURL, Impl: ITextRange2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetURL(::core::mem::transmute(&bstr)).into() @@ -4157,7 +4157,7 @@ impl ITextRange2_Vtbl { let this = (*this).get_impl(); this.GetSubrange(::core::mem::transmute_copy(&isubrange), ::core::mem::transmute_copy(&pcpfirst), ::core::mem::transmute_copy(&pcplim)).into() } - unsafe extern "system" fn GetText2, Impl: ITextRange2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flags: i32, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetText2, Impl: ITextRange2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flags: i32, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetText2(::core::mem::transmute_copy(&flags)) { @@ -4198,7 +4198,7 @@ impl ITextRange2_Vtbl { let this = (*this).get_impl(); this.SetProperty(::core::mem::transmute_copy(&r#type), ::core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn SetText2, Impl: ITextRange2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flags: i32, bstr: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetText2, Impl: ITextRange2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flags: i32, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetText2(::core::mem::transmute_copy(&flags), ::core::mem::transmute(&bstr)).into() @@ -4213,7 +4213,7 @@ impl ITextRange2_Vtbl { let this = (*this).get_impl(); this.SetInlineObject(::core::mem::transmute_copy(&r#type), ::core::mem::transmute_copy(&align), ::core::mem::transmute_copy(&char), ::core::mem::transmute_copy(&char1), ::core::mem::transmute_copy(&char2), ::core::mem::transmute_copy(&count), ::core::mem::transmute_copy(&texstyle), ::core::mem::transmute_copy(&ccol)).into() } - unsafe extern "system" fn GetMathFunctionType, Impl: ITextRange2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop, pvalue: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetMathFunctionType, Impl: ITextRange2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvalue: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetMathFunctionType(::core::mem::transmute(&bstr)) { @@ -4224,7 +4224,7 @@ impl ITextRange2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn InsertImage, Impl: ITextRange2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, width: i32, height: i32, ascent: i32, r#type: super::super::super::Graphics::Gdi::TEXT_ALIGN_OPTIONS, bstralttext: ::core::mem::ManuallyDrop, pstream: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn InsertImage, Impl: ITextRange2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, width: i32, height: i32, ascent: i32, r#type: super::super::super::Graphics::Gdi::TEXT_ALIGN_OPTIONS, bstralttext: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pstream: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InsertImage(::core::mem::transmute_copy(&width), ::core::mem::transmute_copy(&height), ::core::mem::transmute_copy(&ascent), ::core::mem::transmute_copy(&r#type), ::core::mem::transmute(&bstralttext), ::core::mem::transmute(&pstream)).into() @@ -4752,7 +4752,7 @@ pub trait ITextSelection_Impl: Sized + super::super::super::System::Com::IDispat fn MoveDown(&self, unit: i32, count: i32, extend: i32) -> ::windows::core::Result; fn HomeKey(&self, unit: tomConstants, extend: i32) -> ::windows::core::Result; fn EndKey(&self, unit: i32, extend: i32) -> ::windows::core::Result; - fn TypeText(&self, bstr: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn TypeText(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for ITextSelection {} @@ -4852,7 +4852,7 @@ impl ITextSelection_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn TypeText, Impl: ITextSelection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn TypeText, Impl: ITextSelection_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.TypeText(::core::mem::transmute(&bstr)).into() @@ -4900,7 +4900,7 @@ pub trait ITextServices_Impl: Sized { fn OnTxInPlaceDeactivate(&self) -> ::windows::core::Result<()>; fn OnTxUIActivate(&self) -> ::windows::core::Result<()>; fn OnTxUIDeactivate(&self) -> ::windows::core::Result<()>; - fn TxGetText(&self, pbstrtext: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn TxGetText(&self, pbstrtext: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; fn TxSetText(&self, psztext: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; fn TxGetCurTargetX(&self, param0: *mut i32) -> ::windows::core::Result<()>; fn TxGetBaseLinePos(&self, param0: *mut i32) -> ::windows::core::Result<()>; @@ -4978,7 +4978,7 @@ impl ITextServices_Vtbl { let this = (*this).get_impl(); this.OnTxUIDeactivate().into() } - unsafe extern "system" fn TxGetText, Impl: ITextServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtext: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TxGetText, Impl: ITextServices_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.TxGetText(::core::mem::transmute_copy(&pbstrtext)).into() @@ -5080,7 +5080,7 @@ impl ITextServices2_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait ITextStory_Impl: Sized { fn GetActive(&self) -> ::windows::core::Result; fn SetActive(&self, value: i32) -> ::windows::core::Result<()>; @@ -5090,14 +5090,14 @@ pub trait ITextStory_Impl: Sized { fn SetType(&self, value: i32) -> ::windows::core::Result<()>; fn GetProperty(&self, r#type: i32) -> ::windows::core::Result; fn GetRange(&self, cpactive: i32, cpanchor: i32) -> ::windows::core::Result; - fn GetText(&self, flags: i32) -> ::windows::core::Result; + fn GetText(&self, flags: i32) -> ::windows::core::Result<::windows::core::BSTR>; fn SetFormattedText(&self, punk: &::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result<()>; fn SetProperty(&self, r#type: i32, value: i32) -> ::windows::core::Result<()>; - fn SetText(&self, flags: i32, bstr: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetText(&self, flags: i32, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for ITextStory {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ITextStory_Vtbl { pub const fn new, Impl: ITextStory_Impl, const OFFSET: isize>() -> ITextStory_Vtbl { unsafe extern "system" fn GetActive, Impl: ITextStory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pvalue: *mut i32) -> ::windows::core::HRESULT { @@ -5176,7 +5176,7 @@ impl ITextStory_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetText, Impl: ITextStory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flags: i32, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetText, Impl: ITextStory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flags: i32, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetText(::core::mem::transmute_copy(&flags)) { @@ -5197,7 +5197,7 @@ impl ITextStory_Vtbl { let this = (*this).get_impl(); this.SetProperty(::core::mem::transmute_copy(&r#type), ::core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn SetText, Impl: ITextStory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flags: i32, bstr: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetText, Impl: ITextStory_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, flags: i32, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetText(::core::mem::transmute_copy(&flags), ::core::mem::transmute(&bstr)).into() @@ -5307,20 +5307,20 @@ impl ITextStoryRanges2_Vtbl { pub trait ITextStrings_Impl: Sized + super::super::super::System::Com::IDispatch_Impl { fn Item(&self, index: i32) -> ::windows::core::Result; fn GetCount(&self) -> ::windows::core::Result; - fn Add(&self, bstr: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Add(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Append(&self, prange: &::core::option::Option, istring: i32) -> ::windows::core::Result<()>; fn Cat2(&self, istring: i32) -> ::windows::core::Result<()>; - fn CatTop2(&self, bstr: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn CatTop2(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn DeleteRange(&self, prange: &::core::option::Option) -> ::windows::core::Result<()>; fn EncodeFunction(&self, r#type: i32, align: i32, char: i32, char1: i32, char2: i32, count: i32, texstyle: i32, ccol: i32, prange: &::core::option::Option) -> ::windows::core::Result<()>; fn GetCch(&self, istring: i32) -> ::windows::core::Result; fn InsertNullStr(&self, istring: i32) -> ::windows::core::Result<()>; fn MoveBoundary(&self, istring: i32, cch: i32) -> ::windows::core::Result<()>; - fn PrefixTop(&self, bstr: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn PrefixTop(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Remove(&self, istring: i32, cstring: i32) -> ::windows::core::Result<()>; fn SetFormattedText(&self, pranged: &::core::option::Option, pranges: &::core::option::Option) -> ::windows::core::Result<()>; fn SetOpCp(&self, istring: i32, cp: i32) -> ::windows::core::Result<()>; - fn SuffixTop(&self, bstr: &super::super::super::Foundation::BSTR, prange: &::core::option::Option) -> ::windows::core::Result<()>; + fn SuffixTop(&self, bstr: &::windows::core::BSTR, prange: &::core::option::Option) -> ::windows::core::Result<()>; fn Swap(&self) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -5350,7 +5350,7 @@ impl ITextStrings_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Add, Impl: ITextStrings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Add, Impl: ITextStrings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Add(::core::mem::transmute(&bstr)).into() @@ -5365,7 +5365,7 @@ impl ITextStrings_Vtbl { let this = (*this).get_impl(); this.Cat2(::core::mem::transmute_copy(&istring)).into() } - unsafe extern "system" fn CatTop2, Impl: ITextStrings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn CatTop2, Impl: ITextStrings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CatTop2(::core::mem::transmute(&bstr)).into() @@ -5401,7 +5401,7 @@ impl ITextStrings_Vtbl { let this = (*this).get_impl(); this.MoveBoundary(::core::mem::transmute_copy(&istring), ::core::mem::transmute_copy(&cch)).into() } - unsafe extern "system" fn PrefixTop, Impl: ITextStrings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn PrefixTop, Impl: ITextStrings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.PrefixTop(::core::mem::transmute(&bstr)).into() @@ -5421,7 +5421,7 @@ impl ITextStrings_Vtbl { let this = (*this).get_impl(); this.SetOpCp(::core::mem::transmute_copy(&istring), ::core::mem::transmute_copy(&cp)).into() } - unsafe extern "system" fn SuffixTop, Impl: ITextStrings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop, prange: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn SuffixTop, Impl: ITextStrings_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>, prange: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SuffixTop(::core::mem::transmute(&bstr), ::core::mem::transmute(&prange)).into() diff --git a/crates/libs/windows/src/Windows/Win32/UI/Controls/RichEdit/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Controls/RichEdit/mod.rs index 273b98e155..0dc83ed658 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Controls/RichEdit/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Controls/RichEdit/mod.rs @@ -458,11 +458,9 @@ pub struct ITextDisplays_Vtbl { pub struct ITextDocument(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ITextDocument { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self) -> ::windows::core::Result { + pub unsafe fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -608,10 +606,7 @@ unsafe impl ::windows::core::Interface for ITextDocument { #[doc(hidden)] pub struct ITextDocument_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetName: usize, + pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub GetSelection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppsel: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -655,11 +650,9 @@ pub struct ITextDocument_Vtbl { pub struct ITextDocument2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ITextDocument2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self) -> ::windows::core::Result { + pub unsafe fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -783,11 +776,9 @@ impl ITextDocument2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetEastAsianFlags)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetGenerator(&self) -> ::windows::core::Result { + pub unsafe fn GetGenerator(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetGenerator)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetGenerator)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetIMEInProgress(&self, value: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetIMEInProgress)(::windows::core::Interface::as_raw(self), value).ok() @@ -847,9 +838,7 @@ impl ITextDocument2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetImmContext)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPreferredFont(&self, cp: i32, charrep: i32, options: i32, curcharrep: i32, curfontsize: i32, pbstr: &mut super::super::super::Foundation::BSTR, ppitchandfamily: &mut i32, pnewfontsize: &mut i32) -> ::windows::core::Result<()> { + pub unsafe fn GetPreferredFont(&self, cp: i32, charrep: i32, options: i32, curcharrep: i32, curfontsize: i32, pbstr: &mut ::windows::core::BSTR, ppitchandfamily: &mut i32, pnewfontsize: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetPreferredFont)(::windows::core::Interface::as_raw(self), cp, charrep, options, curcharrep, curfontsize, ::core::mem::transmute(pbstr), ::core::mem::transmute(ppitchandfamily), ::core::mem::transmute(pnewfontsize)).ok() } pub unsafe fn GetProperty(&self, r#type: i32) -> ::windows::core::Result { @@ -1041,10 +1030,7 @@ pub struct ITextDocument2_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] SetDocumentPara: usize, pub GetEastAsianFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pflags: *mut tomConstants) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetGenerator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetGenerator: usize, + pub GetGenerator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetIMEInProgress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, pub GetNotificationMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i32) -> ::windows::core::HRESULT, pub SetNotificationMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, @@ -1065,10 +1051,7 @@ pub struct ITextDocument2_Vtbl { pub GetClientRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: tomConstants, pleft: *mut i32, ptop: *mut i32, pright: *mut i32, pbottom: *mut i32) -> ::windows::core::HRESULT, pub GetEffectColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, pvalue: *mut i32) -> ::windows::core::HRESULT, pub GetImmContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontext: *mut i64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetPreferredFont: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cp: i32, charrep: i32, options: i32, curcharrep: i32, curfontsize: i32, pbstr: *mut super::super::super::Foundation::BSTR, ppitchandfamily: *mut i32, pnewfontsize: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPreferredFont: usize, + pub GetPreferredFont: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cp: i32, charrep: i32, options: i32, curcharrep: i32, curfontsize: i32, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppitchandfamily: *mut i32, pnewfontsize: *mut i32) -> ::windows::core::HRESULT, pub GetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: i32, pvalue: *mut i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub GetStrings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppstrs: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -1105,11 +1088,9 @@ pub struct ITextDocument2_Vtbl { pub struct ITextDocument2Old(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ITextDocument2Old { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self) -> ::windows::core::Result { + pub unsafe fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -1222,9 +1203,7 @@ impl ITextDocument2Old { pub unsafe fn ReleaseImmContext(&self, context: i64) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ReleaseImmContext)(::windows::core::Interface::as_raw(self), context).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPreferredFont(&self, cp: i32, charrep: i32, option: i32, charrepcur: i32, curfontsize: i32, pbstr: &mut super::super::super::Foundation::BSTR, ppitchandfamily: &mut i32, pnewfontsize: &mut i32) -> ::windows::core::Result<()> { + pub unsafe fn GetPreferredFont(&self, cp: i32, charrep: i32, option: i32, charrepcur: i32, curfontsize: i32, pbstr: &mut ::windows::core::BSTR, ppitchandfamily: &mut i32, pnewfontsize: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetPreferredFont)(::windows::core::Interface::as_raw(self), cp, charrep, option, charrepcur, curfontsize, ::core::mem::transmute(pbstr), ::core::mem::transmute(ppitchandfamily), ::core::mem::transmute(pnewfontsize)).ok() } pub unsafe fn GetNotificationMode(&self) -> ::windows::core::Result { @@ -1389,10 +1368,7 @@ pub struct ITextDocument2Old_Vtbl { pub SetCaretType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, carettype: i32) -> ::windows::core::HRESULT, pub GetImmContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcontext: *mut i64) -> ::windows::core::HRESULT, pub ReleaseImmContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, context: i64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetPreferredFont: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cp: i32, charrep: i32, option: i32, charrepcur: i32, curfontsize: i32, pbstr: *mut super::super::super::Foundation::BSTR, ppitchandfamily: *mut i32, pnewfontsize: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPreferredFont: usize, + pub GetPreferredFont: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cp: i32, charrep: i32, option: i32, charrepcur: i32, curfontsize: i32, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppitchandfamily: *mut i32, pnewfontsize: *mut i32) -> ::windows::core::HRESULT, pub GetNotificationMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pmode: *mut i32) -> ::windows::core::HRESULT, pub SetNotificationMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mode: i32) -> ::windows::core::HRESULT, pub GetClientRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: i32, pleft: *mut i32, ptop: *mut i32, pright: *mut i32, pbottom: *mut i32) -> ::windows::core::HRESULT, @@ -1539,19 +1515,12 @@ impl ITextFont { pub unsafe fn SetLanguageID(&self, value: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetLanguageID)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self) -> ::windows::core::Result { + pub unsafe fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, bstr: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), bstr.into().abi()).ok() + pub unsafe fn SetName(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr)).ok() } pub unsafe fn GetOutline(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1742,14 +1711,8 @@ pub struct ITextFont_Vtbl { pub SetKerning: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f32) -> ::windows::core::HRESULT, pub GetLanguageID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i32) -> ::windows::core::HRESULT, pub SetLanguageID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetName: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, + pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetOutline: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i32) -> ::windows::core::HRESULT, pub SetOutline: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, pub GetPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut f32) -> ::windows::core::HRESULT, @@ -1895,19 +1858,12 @@ impl ITextFont2 { pub unsafe fn SetLanguageID(&self, value: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetLanguageID)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetName(&self) -> ::windows::core::Result { + pub unsafe fn GetName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, bstr: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), bstr.into().abi()).ok() + pub unsafe fn SetName(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr)).ok() } pub unsafe fn GetOutline(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3698,19 +3654,12 @@ pub struct ITextPara2_Vtbl { pub struct ITextRange(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ITextRange { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetText(&self) -> ::windows::core::Result { + pub unsafe fn GetText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetText<'a, P0>(&self, bstr: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetText)(::windows::core::Interface::as_raw(self), bstr.into().abi()).ok() + pub unsafe fn SetText(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr)).ok() } pub unsafe fn GetChar(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3892,32 +3841,17 @@ impl ITextRange { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).MoveEndUntil)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(cset), count, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FindText<'a, P0>(&self, bstr: P0, count: i32, flags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn FindText(&self, bstr: &::windows::core::BSTR, count: i32, flags: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FindText)(::windows::core::Interface::as_raw(self), bstr.into().abi(), count, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FindText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr), count, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FindTextStart<'a, P0>(&self, bstr: P0, count: i32, flags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn FindTextStart(&self, bstr: &::windows::core::BSTR, count: i32, flags: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FindTextStart)(::windows::core::Interface::as_raw(self), bstr.into().abi(), count, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FindTextStart)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr), count, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FindTextEnd<'a, P0>(&self, bstr: P0, count: i32, flags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn FindTextEnd(&self, bstr: &::windows::core::BSTR, count: i32, flags: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FindTextEnd)(::windows::core::Interface::as_raw(self), bstr.into().abi(), count, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FindTextEnd)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr), count, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn Delete(&self, unit: i32, count: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4033,14 +3967,8 @@ unsafe impl ::windows::core::Interface for ITextRange { #[doc(hidden)] pub struct ITextRange_Vtbl { pub base__: super::super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetText: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetText: usize, + pub GetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetChar: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pchar: *mut i32) -> ::windows::core::HRESULT, pub SetChar: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, char: i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] @@ -4124,18 +4052,9 @@ pub struct ITextRange_Vtbl { pub MoveEndUntil: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cset: *const super::super::super::System::Com::VARIANT, count: i32, pdelta: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] MoveEndUntil: usize, - #[cfg(feature = "Win32_Foundation")] - pub FindText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop, count: i32, flags: i32, plength: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FindText: usize, - #[cfg(feature = "Win32_Foundation")] - pub FindTextStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop, count: i32, flags: i32, plength: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FindTextStart: usize, - #[cfg(feature = "Win32_Foundation")] - pub FindTextEnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop, count: i32, flags: i32, plength: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FindTextEnd: usize, + pub FindText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>, count: i32, flags: i32, plength: *mut i32) -> ::windows::core::HRESULT, + pub FindTextStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>, count: i32, flags: i32, plength: *mut i32) -> ::windows::core::HRESULT, + pub FindTextEnd: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>, count: i32, flags: i32, plength: *mut i32) -> ::windows::core::HRESULT, pub Delete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, unit: i32, count: i32, pdelta: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub Cut: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvar: *mut super::super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, @@ -4166,19 +4085,12 @@ pub struct ITextRange_Vtbl { pub struct ITextRange2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ITextRange2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetText(&self) -> ::windows::core::Result { + pub unsafe fn GetText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetText<'a, P0>(&self, bstr: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetText)(::windows::core::Interface::as_raw(self), bstr.into().abi()).ok() + pub unsafe fn SetText(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr)).ok() } pub unsafe fn GetChar(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4360,32 +4272,17 @@ impl ITextRange2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.MoveEndUntil)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(cset), count, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FindText<'a, P0>(&self, bstr: P0, count: i32, flags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn FindText(&self, bstr: &::windows::core::BSTR, count: i32, flags: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.FindText)(::windows::core::Interface::as_raw(self), bstr.into().abi(), count, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.FindText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr), count, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FindTextStart<'a, P0>(&self, bstr: P0, count: i32, flags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn FindTextStart(&self, bstr: &::windows::core::BSTR, count: i32, flags: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.FindTextStart)(::windows::core::Interface::as_raw(self), bstr.into().abi(), count, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.FindTextStart)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr), count, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FindTextEnd<'a, P0>(&self, bstr: P0, count: i32, flags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn FindTextEnd(&self, bstr: &::windows::core::BSTR, count: i32, flags: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.FindTextEnd)(::windows::core::Interface::as_raw(self), bstr.into().abi(), count, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.FindTextEnd)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr), count, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn Delete(&self, unit: i32, count: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4469,13 +4366,8 @@ impl ITextRange2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.EndKey)(::windows::core::Interface::as_raw(self), unit, extend, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TypeText<'a, P0>(&self, bstr: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.TypeText)(::windows::core::Interface::as_raw(self), bstr.into().abi()).ok() + pub unsafe fn TypeText(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.TypeText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr)).ok() } pub unsafe fn GetCch(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4562,19 +4454,12 @@ impl ITextRange2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetTable)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetURL(&self) -> ::windows::core::Result { + pub unsafe fn GetURL(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetURL<'a, P0>(&self, bstr: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetURL)(::windows::core::Interface::as_raw(self), bstr.into().abi()).ok() + pub unsafe fn SetURL(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr)).ok() } pub unsafe fn AddSubrange(&self, cp1: i32, cp2: i32, activate: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).AddSubrange)(::windows::core::Interface::as_raw(self), cp1, cp2, activate).ok() @@ -4613,11 +4498,9 @@ impl ITextRange2 { pub unsafe fn GetSubrange(&self, isubrange: i32, pcpfirst: &mut i32, pcplim: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetSubrange)(::windows::core::Interface::as_raw(self), isubrange, ::core::mem::transmute(pcpfirst), ::core::mem::transmute(pcplim)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetText2(&self, flags: i32) -> ::windows::core::Result { + pub unsafe fn GetText2(&self, flags: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetText2)(::windows::core::Interface::as_raw(self), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetText2)(::windows::core::Interface::as_raw(self), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn HexToUnicode(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).HexToUnicode)(::windows::core::Interface::as_raw(self)).ok() @@ -4637,13 +4520,8 @@ impl ITextRange2 { pub unsafe fn SetProperty(&self, r#type: i32, value: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetProperty)(::windows::core::Interface::as_raw(self), r#type, value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetText2<'a, P0>(&self, flags: i32, bstr: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetText2)(::windows::core::Interface::as_raw(self), flags, bstr.into().abi()).ok() + pub unsafe fn SetText2(&self, flags: i32, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetText2)(::windows::core::Interface::as_raw(self), flags, ::core::mem::transmute_copy(bstr)).ok() } pub unsafe fn UnicodeToHex(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).UnicodeToHex)(::windows::core::Interface::as_raw(self)).ok() @@ -4651,23 +4529,17 @@ impl ITextRange2 { pub unsafe fn SetInlineObject(&self, r#type: i32, align: i32, char: i32, char1: i32, char2: i32, count: i32, texstyle: i32, ccol: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetInlineObject)(::windows::core::Interface::as_raw(self), r#type, align, char, char1, char2, count, texstyle, ccol).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetMathFunctionType<'a, P0>(&self, bstr: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetMathFunctionType(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetMathFunctionType)(::windows::core::Interface::as_raw(self), bstr.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetMathFunctionType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] - pub unsafe fn InsertImage<'a, P0, P1>(&self, width: i32, height: i32, ascent: i32, r#type: super::super::super::Graphics::Gdi::TEXT_ALIGN_OPTIONS, bstralttext: P0, pstream: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`*"] + #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] + pub unsafe fn InsertImage<'a, P0>(&self, width: i32, height: i32, ascent: i32, r#type: super::super::super::Graphics::Gdi::TEXT_ALIGN_OPTIONS, bstralttext: &::windows::core::BSTR, pstream: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::IStream>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::IStream>>, { - (::windows::core::Interface::vtable(self).InsertImage)(::windows::core::Interface::as_raw(self), width, height, ascent, r#type, bstralttext.into().abi(), pstream.into().abi()).ok() + (::windows::core::Interface::vtable(self).InsertImage)(::windows::core::Interface::as_raw(self), width, height, ascent, r#type, ::core::mem::transmute_copy(bstralttext), pstream.into().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -4812,14 +4684,8 @@ pub struct ITextRange2_Vtbl { GetRow: usize, pub GetStartPara: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvalue: *mut i32) -> ::windows::core::HRESULT, pub GetTable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pptable: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetURL: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetURL: usize, + pub GetURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub AddSubrange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cp1: i32, cp2: i32, activate: i32) -> ::windows::core::HRESULT, pub BuildUpMath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32) -> ::windows::core::HRESULT, pub DeleteSubrange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cpfirst: i32, cplim: i32) -> ::windows::core::HRESULT, @@ -4833,29 +4699,20 @@ pub struct ITextRange2_Vtbl { pub GetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: i32, pvalue: *mut i32) -> ::windows::core::HRESULT, pub GetRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: i32, pleft: *mut i32, ptop: *mut i32, pright: *mut i32, pbottom: *mut i32, phit: *mut i32) -> ::windows::core::HRESULT, pub GetSubrange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, isubrange: i32, pcpfirst: *mut i32, pcplim: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetText2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetText2: usize, + pub GetText2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub HexToUnicode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub InsertTable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ccol: i32, crow: i32, autofit: i32) -> ::windows::core::HRESULT, pub Linearize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32) -> ::windows::core::HRESULT, pub SetActiveSubrange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cpanchor: i32, cpactive: i32) -> ::windows::core::HRESULT, pub SetDropCap: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cline: i32, position: i32) -> ::windows::core::HRESULT, pub SetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: i32, value: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetText2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32, bstr: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetText2: usize, + pub SetText2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub UnicodeToHex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub SetInlineObject: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: i32, align: i32, char: i32, char1: i32, char2: i32, count: i32, texstyle: i32, ccol: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetMathFunctionType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop, pvalue: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetMathFunctionType: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] - pub InsertImage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, width: i32, height: i32, ascent: i32, r#type: super::super::super::Graphics::Gdi::TEXT_ALIGN_OPTIONS, bstralttext: ::core::mem::ManuallyDrop, pstream: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com")))] + pub GetMathFunctionType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvalue: *mut i32) -> ::windows::core::HRESULT, + #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] + pub InsertImage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, width: i32, height: i32, ascent: i32, r#type: super::super::super::Graphics::Gdi::TEXT_ALIGN_OPTIONS, bstralttext: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pstream: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com")))] InsertImage: usize, } #[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`, `\"Win32_System_Com\"`*"] @@ -5151,19 +5008,12 @@ pub struct ITextRow_Vtbl { pub struct ITextSelection(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ITextSelection { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetText(&self) -> ::windows::core::Result { + pub unsafe fn GetText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetText<'a, P0>(&self, bstr: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetText)(::windows::core::Interface::as_raw(self), bstr.into().abi()).ok() + pub unsafe fn SetText(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr)).ok() } pub unsafe fn GetChar(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5345,32 +5195,17 @@ impl ITextSelection { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.MoveEndUntil)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(cset), count, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FindText<'a, P0>(&self, bstr: P0, count: i32, flags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn FindText(&self, bstr: &::windows::core::BSTR, count: i32, flags: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FindText)(::windows::core::Interface::as_raw(self), bstr.into().abi(), count, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.FindText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr), count, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FindTextStart<'a, P0>(&self, bstr: P0, count: i32, flags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn FindTextStart(&self, bstr: &::windows::core::BSTR, count: i32, flags: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FindTextStart)(::windows::core::Interface::as_raw(self), bstr.into().abi(), count, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.FindTextStart)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr), count, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FindTextEnd<'a, P0>(&self, bstr: P0, count: i32, flags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn FindTextEnd(&self, bstr: &::windows::core::BSTR, count: i32, flags: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FindTextEnd)(::windows::core::Interface::as_raw(self), bstr.into().abi(), count, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.FindTextEnd)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr), count, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn Delete(&self, unit: i32, count: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5454,13 +5289,8 @@ impl ITextSelection { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).EndKey)(::windows::core::Interface::as_raw(self), unit, extend, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TypeText<'a, P0>(&self, bstr: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).TypeText)(::windows::core::Interface::as_raw(self), bstr.into().abi()).ok() + pub unsafe fn TypeText(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).TypeText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -5556,10 +5386,7 @@ pub struct ITextSelection_Vtbl { pub MoveDown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, unit: i32, count: i32, extend: i32, pdelta: *mut i32) -> ::windows::core::HRESULT, pub HomeKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, unit: tomConstants, extend: i32, pdelta: *mut i32) -> ::windows::core::HRESULT, pub EndKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, unit: i32, extend: i32, pdelta: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub TypeText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TypeText: usize, + pub TypeText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5567,19 +5394,12 @@ pub struct ITextSelection_Vtbl { pub struct ITextSelection2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl ITextSelection2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetText(&self) -> ::windows::core::Result { + pub unsafe fn GetText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.GetText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.GetText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetText<'a, P0>(&self, bstr: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.SetText)(::windows::core::Interface::as_raw(self), bstr.into().abi()).ok() + pub unsafe fn SetText(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.SetText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr)).ok() } pub unsafe fn GetChar(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5761,32 +5581,17 @@ impl ITextSelection2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.MoveEndUntil)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(cset), count, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FindText<'a, P0>(&self, bstr: P0, count: i32, flags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn FindText(&self, bstr: &::windows::core::BSTR, count: i32, flags: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.FindText)(::windows::core::Interface::as_raw(self), bstr.into().abi(), count, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.FindText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr), count, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FindTextStart<'a, P0>(&self, bstr: P0, count: i32, flags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn FindTextStart(&self, bstr: &::windows::core::BSTR, count: i32, flags: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.FindTextStart)(::windows::core::Interface::as_raw(self), bstr.into().abi(), count, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.FindTextStart)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr), count, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FindTextEnd<'a, P0>(&self, bstr: P0, count: i32, flags: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn FindTextEnd(&self, bstr: &::windows::core::BSTR, count: i32, flags: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.FindTextEnd)(::windows::core::Interface::as_raw(self), bstr.into().abi(), count, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.FindTextEnd)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr), count, flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn Delete(&self, unit: i32, count: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5870,13 +5675,8 @@ impl ITextSelection2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.EndKey)(::windows::core::Interface::as_raw(self), unit, extend, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TypeText<'a, P0>(&self, bstr: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.TypeText)(::windows::core::Interface::as_raw(self), bstr.into().abi()).ok() + pub unsafe fn TypeText(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.TypeText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr)).ok() } pub unsafe fn GetCch(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5963,19 +5763,12 @@ impl ITextSelection2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetTable)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::IUnknown>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetURL(&self) -> ::windows::core::Result { + pub unsafe fn GetURL(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetURL<'a, P0>(&self, bstr: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetURL)(::windows::core::Interface::as_raw(self), bstr.into().abi()).ok() + pub unsafe fn SetURL(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr)).ok() } pub unsafe fn AddSubrange(&self, cp1: i32, cp2: i32, activate: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.AddSubrange)(::windows::core::Interface::as_raw(self), cp1, cp2, activate).ok() @@ -6014,11 +5807,9 @@ impl ITextSelection2 { pub unsafe fn GetSubrange(&self, isubrange: i32, pcpfirst: &mut i32, pcplim: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetSubrange)(::windows::core::Interface::as_raw(self), isubrange, ::core::mem::transmute(pcpfirst), ::core::mem::transmute(pcplim)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetText2(&self, flags: i32) -> ::windows::core::Result { + pub unsafe fn GetText2(&self, flags: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetText2)(::windows::core::Interface::as_raw(self), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetText2)(::windows::core::Interface::as_raw(self), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn HexToUnicode(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.HexToUnicode)(::windows::core::Interface::as_raw(self)).ok() @@ -6038,13 +5829,8 @@ impl ITextSelection2 { pub unsafe fn SetProperty(&self, r#type: i32, value: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetProperty)(::windows::core::Interface::as_raw(self), r#type, value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetText2<'a, P0>(&self, flags: i32, bstr: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetText2)(::windows::core::Interface::as_raw(self), flags, bstr.into().abi()).ok() + pub unsafe fn SetText2(&self, flags: i32, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetText2)(::windows::core::Interface::as_raw(self), flags, ::core::mem::transmute_copy(bstr)).ok() } pub unsafe fn UnicodeToHex(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.UnicodeToHex)(::windows::core::Interface::as_raw(self)).ok() @@ -6052,23 +5838,17 @@ impl ITextSelection2 { pub unsafe fn SetInlineObject(&self, r#type: i32, align: i32, char: i32, char1: i32, char2: i32, count: i32, texstyle: i32, ccol: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetInlineObject)(::windows::core::Interface::as_raw(self), r#type, align, char, char1, char2, count, texstyle, ccol).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetMathFunctionType<'a, P0>(&self, bstr: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn GetMathFunctionType(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetMathFunctionType)(::windows::core::Interface::as_raw(self), bstr.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetMathFunctionType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] - pub unsafe fn InsertImage<'a, P0, P1>(&self, width: i32, height: i32, ascent: i32, r#type: super::super::super::Graphics::Gdi::TEXT_ALIGN_OPTIONS, bstralttext: P0, pstream: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_Graphics_Gdi\"`, `\"Win32_System_Com\"`*"] + #[cfg(all(feature = "Win32_Graphics_Gdi", feature = "Win32_System_Com"))] + pub unsafe fn InsertImage<'a, P0>(&self, width: i32, height: i32, ascent: i32, r#type: super::super::super::Graphics::Gdi::TEXT_ALIGN_OPTIONS, bstralttext: &::windows::core::BSTR, pstream: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::IStream>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::IStream>>, { - (::windows::core::Interface::vtable(self).base__.InsertImage)(::windows::core::Interface::as_raw(self), width, height, ascent, r#type, bstralttext.into().abi(), pstream.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.InsertImage)(::windows::core::Interface::as_raw(self), width, height, ascent, r#type, ::core::mem::transmute_copy(bstralttext), pstream.into().abi()).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -6256,9 +6036,7 @@ impl ITextServices { pub unsafe fn OnTxUIDeactivate(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).OnTxUIDeactivate)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TxGetText(&self, pbstrtext: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn TxGetText(&self, pbstrtext: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).TxGetText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrtext)).ok() } pub unsafe fn TxSetText<'a, P0>(&self, psztext: P0) -> ::windows::core::Result<()> @@ -6365,10 +6143,7 @@ pub struct ITextServices_Vtbl { pub OnTxInPlaceDeactivate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub OnTxUIActivate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub OnTxUIDeactivate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub TxGetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtext: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TxGetText: usize, + pub TxGetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub TxSetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psztext: ::windows::core::PCWSTR) -> ::windows::core::HRESULT, pub TxGetCurTargetX: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: *mut i32) -> ::windows::core::HRESULT, pub TxGetBaseLinePos: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, param0: *mut i32) -> ::windows::core::HRESULT, @@ -6447,9 +6222,7 @@ impl ITextServices2 { pub unsafe fn OnTxUIDeactivate(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.OnTxUIDeactivate)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TxGetText(&self, pbstrtext: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> { + pub unsafe fn TxGetText(&self, pbstrtext: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.TxGetText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrtext)).ok() } pub unsafe fn TxSetText<'a, P0>(&self, psztext: P0) -> ::windows::core::Result<()> @@ -6602,11 +6375,9 @@ impl ITextStory { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetRange)(::windows::core::Interface::as_raw(self), cpactive, cpanchor, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetText(&self, flags: i32) -> ::windows::core::Result { + pub unsafe fn GetText(&self, flags: i32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetText)(::windows::core::Interface::as_raw(self), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetText)(::windows::core::Interface::as_raw(self), flags, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetFormattedText<'a, P0>(&self, punk: P0) -> ::windows::core::Result<()> where @@ -6617,13 +6388,8 @@ impl ITextStory { pub unsafe fn SetProperty(&self, r#type: i32, value: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetProperty)(::windows::core::Interface::as_raw(self), r#type, value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetText<'a, P0>(&self, flags: i32, bstr: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetText)(::windows::core::Interface::as_raw(self), flags, bstr.into().abi()).ok() + pub unsafe fn SetText(&self, flags: i32, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetText)(::windows::core::Interface::as_raw(self), flags, ::core::mem::transmute_copy(bstr)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -6676,16 +6442,10 @@ pub struct ITextStory_Vtbl { pub GetRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, cpactive: i32, cpanchor: i32, pprange: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetRange: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32, pbstr: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetText: usize, + pub GetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetFormattedText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, punk: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub SetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: i32, value: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32, bstr: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetText: usize, + pub SetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flags: i32, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_Controls_RichEdit\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6913,13 +6673,8 @@ impl ITextStrings { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Add<'a, P0>(&self, bstr: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), bstr.into().abi()).ok() + pub unsafe fn Add(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6932,13 +6687,8 @@ impl ITextStrings { pub unsafe fn Cat2(&self, istring: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Cat2)(::windows::core::Interface::as_raw(self), istring).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CatTop2<'a, P0>(&self, bstr: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).CatTop2)(::windows::core::Interface::as_raw(self), bstr.into().abi()).ok() + pub unsafe fn CatTop2(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).CatTop2)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6966,13 +6716,8 @@ impl ITextStrings { pub unsafe fn MoveBoundary(&self, istring: i32, cch: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).MoveBoundary)(::windows::core::Interface::as_raw(self), istring, cch).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PrefixTop<'a, P0>(&self, bstr: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).PrefixTop)(::windows::core::Interface::as_raw(self), bstr.into().abi()).ok() + pub unsafe fn PrefixTop(&self, bstr: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).PrefixTop)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr)).ok() } pub unsafe fn Remove(&self, istring: i32, cstring: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Remove)(::windows::core::Interface::as_raw(self), istring, cstring).ok() @@ -6989,14 +6734,13 @@ impl ITextStrings { pub unsafe fn SetOpCp(&self, istring: i32, cp: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetOpCp)(::windows::core::Interface::as_raw(self), istring, cp).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn SuffixTop<'a, P0, P1>(&self, bstr: P0, prange: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn SuffixTop<'a, P0>(&self, bstr: &::windows::core::BSTR, prange: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, ITextRange2>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, ITextRange2>>, { - (::windows::core::Interface::vtable(self).SuffixTop)(::windows::core::Interface::as_raw(self), bstr.into().abi(), prange.into().abi()).ok() + (::windows::core::Interface::vtable(self).SuffixTop)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstr), prange.into().abi()).ok() } pub unsafe fn Swap(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Swap)(::windows::core::Interface::as_raw(self)).ok() @@ -7073,19 +6817,13 @@ pub struct ITextStrings_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Item: usize, pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcount: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Add: usize, + pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Append: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prange: *mut ::core::ffi::c_void, istring: i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Append: usize, pub Cat2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, istring: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CatTop2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CatTop2: usize, + pub CatTop2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub DeleteRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prange: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -7097,19 +6835,16 @@ pub struct ITextStrings_Vtbl { pub GetCch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, istring: i32, pcch: *mut i32) -> ::windows::core::HRESULT, pub InsertNullStr: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, istring: i32) -> ::windows::core::HRESULT, pub MoveBoundary: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, istring: i32, cch: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub PrefixTop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PrefixTop: usize, + pub PrefixTop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, istring: i32, cstring: i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub SetFormattedText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pranged: *mut ::core::ffi::c_void, pranges: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] SetFormattedText: usize, pub SetOpCp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, istring: i32, cp: i32) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub SuffixTop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop, prange: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub SuffixTop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstr: ::core::mem::ManuallyDrop<::windows::core::BSTR>, prange: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] SuffixTop: usize, pub Swap: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } diff --git a/crates/libs/windows/src/Windows/Win32/UI/Input/Ime/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/Input/Ime/impl.rs index 4b2bcc5197..89c7e44bc3 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Input/Ime/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Input/Ime/impl.rs @@ -2009,18 +2009,15 @@ impl IFEDictionary_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IFELanguage_Impl: Sized { fn Open(&self) -> ::windows::core::Result<()>; fn Close(&self) -> ::windows::core::Result<()>; fn GetJMorphResult(&self, dwrequest: u32, dwcmode: u32, cwchinput: i32, pwchinput: &::windows::core::PCWSTR, pfcinfo: *mut u32, ppresult: *mut *mut MORRSLT) -> ::windows::core::Result<()>; fn GetConversionModeCaps(&self, pdwcaps: *mut u32) -> ::windows::core::Result<()>; - fn GetPhonetic(&self, string: &super::super::super::Foundation::BSTR, start: i32, length: i32, phonetic: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetConversion(&self, string: &super::super::super::Foundation::BSTR, start: i32, length: i32, result: *mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetPhonetic(&self, string: &::windows::core::BSTR, start: i32, length: i32, phonetic: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetConversion(&self, string: &::windows::core::BSTR, start: i32, length: i32, result: *mut ::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IFELanguage {} -#[cfg(feature = "Win32_Foundation")] impl IFELanguage_Vtbl { pub const fn new, Impl: IFELanguage_Impl, const OFFSET: isize>() -> IFELanguage_Vtbl { unsafe extern "system" fn Open, Impl: IFELanguage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -2043,12 +2040,12 @@ impl IFELanguage_Vtbl { let this = (*this).get_impl(); this.GetConversionModeCaps(::core::mem::transmute_copy(&pdwcaps)).into() } - unsafe extern "system" fn GetPhonetic, Impl: IFELanguage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, string: ::core::mem::ManuallyDrop, start: i32, length: i32, phonetic: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPhonetic, Impl: IFELanguage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, string: ::core::mem::ManuallyDrop<::windows::core::BSTR>, start: i32, length: i32, phonetic: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetPhonetic(::core::mem::transmute(&string), ::core::mem::transmute_copy(&start), ::core::mem::transmute_copy(&length), ::core::mem::transmute_copy(&phonetic)).into() } - unsafe extern "system" fn GetConversion, Impl: IFELanguage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, string: ::core::mem::ManuallyDrop, start: i32, length: i32, result: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetConversion, Impl: IFELanguage_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, string: ::core::mem::ManuallyDrop<::windows::core::BSTR>, start: i32, length: i32, result: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetConversion(::core::mem::transmute(&string), ::core::mem::transmute_copy(&start), ::core::mem::transmute_copy(&length), ::core::mem::transmute_copy(&result)).into() @@ -2138,14 +2135,14 @@ impl IImePadApplet_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait IImePlugInDictDictionaryList_Impl: Sized { fn GetDictionariesInUse(&self, prgdictionaryguid: *mut *mut super::super::super::System::Com::SAFEARRAY, prgdatecreated: *mut *mut super::super::super::System::Com::SAFEARRAY, prgfencrypted: *mut *mut super::super::super::System::Com::SAFEARRAY) -> ::windows::core::Result<()>; - fn DeleteDictionary(&self, bstrdictionaryguid: &super::super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn DeleteDictionary(&self, bstrdictionaryguid: &::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for IImePlugInDictDictionaryList {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl IImePlugInDictDictionaryList_Vtbl { pub const fn new, Impl: IImePlugInDictDictionaryList_Impl, const OFFSET: isize>() -> IImePlugInDictDictionaryList_Vtbl { unsafe extern "system" fn GetDictionariesInUse, Impl: IImePlugInDictDictionaryList_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, prgdictionaryguid: *mut *mut super::super::super::System::Com::SAFEARRAY, prgdatecreated: *mut *mut super::super::super::System::Com::SAFEARRAY, prgfencrypted: *mut *mut super::super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT { @@ -2153,7 +2150,7 @@ impl IImePlugInDictDictionaryList_Vtbl { let this = (*this).get_impl(); this.GetDictionariesInUse(::core::mem::transmute_copy(&prgdictionaryguid), ::core::mem::transmute_copy(&prgdatecreated), ::core::mem::transmute_copy(&prgfencrypted)).into() } - unsafe extern "system" fn DeleteDictionary, Impl: IImePlugInDictDictionaryList_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdictionaryguid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn DeleteDictionary, Impl: IImePlugInDictDictionaryList_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdictionaryguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.DeleteDictionary(::core::mem::transmute(&bstrdictionaryguid)).into() diff --git a/crates/libs/windows/src/Windows/Win32/UI/Input/Ime/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Input/Ime/mod.rs index 0d3f1b48f2..ce179ede1e 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Input/Ime/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Input/Ime/mod.rs @@ -4127,21 +4127,11 @@ impl IFELanguage { pub unsafe fn GetConversionModeCaps(&self, pdwcaps: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetConversionModeCaps)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pdwcaps)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPhonetic<'a, P0>(&self, string: P0, start: i32, length: i32, phonetic: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetPhonetic)(::windows::core::Interface::as_raw(self), string.into().abi(), start, length, ::core::mem::transmute(phonetic)).ok() + pub unsafe fn GetPhonetic(&self, string: &::windows::core::BSTR, start: i32, length: i32, phonetic: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetPhonetic)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(string), start, length, ::core::mem::transmute(phonetic)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetConversion<'a, P0>(&self, string: P0, start: i32, length: i32, result: &mut super::super::super::Foundation::BSTR) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetConversion)(::windows::core::Interface::as_raw(self), string.into().abi(), start, length, ::core::mem::transmute(result)).ok() + pub unsafe fn GetConversion(&self, string: &::windows::core::BSTR, start: i32, length: i32, result: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetConversion)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(string), start, length, ::core::mem::transmute(result)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -4187,14 +4177,8 @@ pub struct IFELanguage_Vtbl { pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetJMorphResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwrequest: u32, dwcmode: u32, cwchinput: i32, pwchinput: ::windows::core::PCWSTR, pfcinfo: *mut u32, ppresult: *mut *mut MORRSLT) -> ::windows::core::HRESULT, pub GetConversionModeCaps: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwcaps: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetPhonetic: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, string: ::core::mem::ManuallyDrop, start: i32, length: i32, phonetic: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPhonetic: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetConversion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, string: ::core::mem::ManuallyDrop, start: i32, length: i32, result: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetConversion: usize, + pub GetPhonetic: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, string: ::core::mem::ManuallyDrop<::windows::core::BSTR>, start: i32, length: i32, phonetic: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetConversion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, string: ::core::mem::ManuallyDrop<::windows::core::BSTR>, start: i32, length: i32, result: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_Input_Ime\"`*"] #[repr(transparent)] @@ -4355,13 +4339,8 @@ impl IImePlugInDictDictionaryList { pub unsafe fn GetDictionariesInUse(&self, prgdictionaryguid: &mut *mut super::super::super::System::Com::SAFEARRAY, prgdatecreated: &mut *mut super::super::super::System::Com::SAFEARRAY, prgfencrypted: &mut *mut super::super::super::System::Com::SAFEARRAY) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetDictionariesInUse)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(prgdictionaryguid), ::core::mem::transmute(prgdatecreated), ::core::mem::transmute(prgfencrypted)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DeleteDictionary<'a, P0>(&self, bstrdictionaryguid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).DeleteDictionary)(::windows::core::Interface::as_raw(self), bstrdictionaryguid.into().abi()).ok() + pub unsafe fn DeleteDictionary(&self, bstrdictionaryguid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).DeleteDictionary)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdictionaryguid)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -4407,10 +4386,7 @@ pub struct IImePlugInDictDictionaryList_Vtbl { pub GetDictionariesInUse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prgdictionaryguid: *mut *mut super::super::super::System::Com::SAFEARRAY, prgdatecreated: *mut *mut super::super::super::System::Com::SAFEARRAY, prgfencrypted: *mut *mut super::super::super::System::Com::SAFEARRAY) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetDictionariesInUse: usize, - #[cfg(feature = "Win32_Foundation")] - pub DeleteDictionary: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdictionaryguid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DeleteDictionary: usize, + pub DeleteDictionary: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdictionaryguid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_Input_Ime\"`*"] #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Win32/UI/Shell/PropertiesSystem/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/Shell/PropertiesSystem/impl.rs index 6b517f11af..cd2ef8dd0b 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Shell/PropertiesSystem/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Shell/PropertiesSystem/impl.rs @@ -74,7 +74,7 @@ pub trait INamedPropertyStore_Impl: Sized { fn GetNamedValue(&self, pszname: &::windows::core::PCWSTR) -> ::windows::core::Result; fn SetNamedValue(&self, pszname: &::windows::core::PCWSTR, propvar: *const super::super::super::System::Com::StructuredStorage::PROPVARIANT) -> ::windows::core::Result<()>; fn GetNameCount(&self) -> ::windows::core::Result; - fn GetNameAt(&self, iprop: u32) -> ::windows::core::Result; + fn GetNameAt(&self, iprop: u32) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] impl ::windows::core::RuntimeName for INamedPropertyStore {} @@ -108,7 +108,7 @@ impl INamedPropertyStore_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetNameAt, Impl: INamedPropertyStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, iprop: u32, pbstrname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetNameAt, Impl: INamedPropertyStore_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, iprop: u32, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetNameAt(::core::mem::transmute_copy(&iprop)) { diff --git a/crates/libs/windows/src/Windows/Win32/UI/Shell/PropertiesSystem/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Shell/PropertiesSystem/mod.rs index 94229ee8b7..5cdbfa45cc 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Shell/PropertiesSystem/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Shell/PropertiesSystem/mod.rs @@ -739,20 +739,20 @@ where let mut result__ = ::core::mem::MaybeUninit::zeroed(); PSPropertyBag_ReadBOOL(propbag.into().abi(), propname.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } -#[doc = "*Required features: `\"Win32_UI_Shell_PropertiesSystem\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com_StructuredStorage\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] +#[doc = "*Required features: `\"Win32_UI_Shell_PropertiesSystem\"`, `\"Win32_System_Com_StructuredStorage\"`*"] +#[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] -pub unsafe fn PSPropertyBag_ReadBSTR<'a, P0, P1>(propbag: P0, propname: P1) -> ::windows::core::Result +pub unsafe fn PSPropertyBag_ReadBSTR<'a, P0, P1>(propbag: P0, propname: P1) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::StructuredStorage::IPropertyBag>>, P1: ::std::convert::Into<::windows::core::PCWSTR>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn PSPropertyBag_ReadBSTR(propbag: *mut ::core::ffi::c_void, propname: ::windows::core::PCWSTR, value: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn PSPropertyBag_ReadBSTR(propbag: *mut ::core::ffi::c_void, propname: ::windows::core::PCWSTR, value: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); - PSPropertyBag_ReadBSTR(propbag.into().abi(), propname.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + PSPropertyBag_ReadBSTR(propbag.into().abi(), propname.into(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_UI_Shell_PropertiesSystem\"`, `\"Win32_System_Com_StructuredStorage\"`*"] #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -991,20 +991,19 @@ where } PSPropertyBag_WriteBOOL(propbag.into().abi(), propname.into(), value.into()).ok() } -#[doc = "*Required features: `\"Win32_UI_Shell_PropertiesSystem\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com_StructuredStorage\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] +#[doc = "*Required features: `\"Win32_UI_Shell_PropertiesSystem\"`, `\"Win32_System_Com_StructuredStorage\"`*"] +#[cfg(feature = "Win32_System_Com_StructuredStorage")] #[inline] -pub unsafe fn PSPropertyBag_WriteBSTR<'a, P0, P1, P2>(propbag: P0, propname: P1, value: P2) -> ::windows::core::Result<()> +pub unsafe fn PSPropertyBag_WriteBSTR<'a, P0, P1>(propbag: P0, propname: P1, value: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::System::Com::StructuredStorage::IPropertyBag>>, P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn PSPropertyBag_WriteBSTR(propbag: *mut ::core::ffi::c_void, propname: ::windows::core::PCWSTR, value: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT; + fn PSPropertyBag_WriteBSTR(propbag: *mut ::core::ffi::c_void, propname: ::windows::core::PCWSTR, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } - PSPropertyBag_WriteBSTR(propbag.into().abi(), propname.into(), value.into().abi()).ok() + PSPropertyBag_WriteBSTR(propbag.into().abi(), propname.into(), ::core::mem::transmute_copy(value)).ok() } #[doc = "*Required features: `\"Win32_UI_Shell_PropertiesSystem\"`, `\"Win32_System_Com_StructuredStorage\"`*"] #[cfg(feature = "Win32_System_Com_StructuredStorage")] @@ -1458,13 +1457,13 @@ pub unsafe fn PropVariantGetUInt64Elem(propvar: &super::super::super::System::Co #[doc = "*Required features: `\"Win32_UI_Shell_PropertiesSystem\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com_StructuredStorage\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] #[inline] -pub unsafe fn PropVariantToBSTR(propvar: &super::super::super::System::Com::StructuredStorage::PROPVARIANT) -> ::windows::core::Result { +pub unsafe fn PropVariantToBSTR(propvar: &super::super::super::System::Com::StructuredStorage::PROPVARIANT) -> ::windows::core::Result<::windows::core::BSTR> { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn PropVariantToBSTR(propvar: *const super::super::super::System::Com::StructuredStorage::PROPVARIANT, pbstrout: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn PropVariantToBSTR(propvar: *const super::super::super::System::Com::StructuredStorage::PROPVARIANT, pbstrout: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } let mut result__ = ::core::mem::MaybeUninit::zeroed(); - PropVariantToBSTR(::core::mem::transmute(propvar), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + PropVariantToBSTR(::core::mem::transmute(propvar), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_UI_Shell_PropertiesSystem\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com_StructuredStorage\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage"))] @@ -2880,11 +2879,9 @@ impl INamedPropertyStore { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetNameCount)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetNameAt(&self, iprop: u32) -> ::windows::core::Result { + pub unsafe fn GetNameAt(&self, iprop: u32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetNameAt)(::windows::core::Interface::as_raw(self), iprop, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetNameAt)(::windows::core::Interface::as_raw(self), iprop, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -2935,10 +2932,7 @@ pub struct INamedPropertyStore_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com_StructuredStorage")))] SetNamedValue: usize, pub GetNameCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwcount: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetNameAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iprop: u32, pbstrname: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetNameAt: usize, + pub GetNameAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iprop: u32, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_Shell_PropertiesSystem\"`*"] #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Win32/UI/Shell/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/Shell/impl.rs index 385db4addf..388c6155c0 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Shell/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Shell/impl.rs @@ -30,7 +30,7 @@ impl CIE4ConnectionPoint_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait DFConstraint_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Value(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -38,7 +38,7 @@ impl ::windows::core::RuntimeName for DFConstraint {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl DFConstraint_Vtbl { pub const fn new, Impl: DFConstraint_Impl, const OFFSET: isize>() -> DFConstraint_Vtbl { - unsafe extern "system" fn Name, Impl: DFConstraint_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: DFConstraint_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -137,23 +137,23 @@ impl DWebBrowserEvents2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait Folder_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Title(&self) -> ::windows::core::Result; + fn Title(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Application(&self) -> ::windows::core::Result; fn Parent(&self) -> ::windows::core::Result; fn ParentFolder(&self) -> ::windows::core::Result; fn Items(&self) -> ::windows::core::Result; - fn ParseName(&self, bname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn NewFolder(&self, bname: &super::super::Foundation::BSTR, voptions: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn ParseName(&self, bname: &::windows::core::BSTR) -> ::windows::core::Result; + fn NewFolder(&self, bname: &::windows::core::BSTR, voptions: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn MoveHere(&self, vitem: &super::super::System::Com::VARIANT, voptions: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn CopyHere(&self, vitem: &super::super::System::Com::VARIANT, voptions: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn GetDetailsOf(&self, vitem: &super::super::System::Com::VARIANT, icolumn: i32) -> ::windows::core::Result; + fn GetDetailsOf(&self, vitem: &super::super::System::Com::VARIANT, icolumn: i32) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for Folder {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl Folder_Vtbl { pub const fn new, Impl: Folder_Impl, const OFFSET: isize>() -> Folder_Vtbl { - unsafe extern "system" fn Title, Impl: Folder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Title, Impl: Folder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Title() { @@ -208,7 +208,7 @@ impl Folder_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ParseName, Impl: Folder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bname: ::core::mem::ManuallyDrop, ppid: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn ParseName, Impl: Folder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppid: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ParseName(::core::mem::transmute(&bname)) { @@ -219,7 +219,7 @@ impl Folder_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn NewFolder, Impl: Folder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bname: ::core::mem::ManuallyDrop, voptions: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn NewFolder, Impl: Folder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, voptions: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.NewFolder(::core::mem::transmute(&bname), ::core::mem::transmute(&voptions)).into() @@ -234,7 +234,7 @@ impl Folder_Vtbl { let this = (*this).get_impl(); this.CopyHere(::core::mem::transmute(&vitem), ::core::mem::transmute(&voptions)).into() } - unsafe extern "system" fn GetDetailsOf, Impl: Folder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, vitem: ::core::mem::ManuallyDrop, icolumn: i32, pbs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDetailsOf, Impl: Folder_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, vitem: ::core::mem::ManuallyDrop, icolumn: i32, pbs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDetailsOf(::core::mem::transmute(&vitem), ::core::mem::transmute_copy(&icolumn)) { @@ -372,9 +372,9 @@ impl Folder3_Vtbl { pub trait FolderItem_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn Application(&self) -> ::windows::core::Result; fn Parent(&self) -> ::windows::core::Result; - fn Name(&self) -> ::windows::core::Result; - fn SetName(&self, bs: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Path(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetName(&self, bs: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetLink(&self) -> ::windows::core::Result; fn GetFolder(&self) -> ::windows::core::Result; fn IsLink(&self) -> ::windows::core::Result; @@ -384,7 +384,7 @@ pub trait FolderItem_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn ModifyDate(&self) -> ::windows::core::Result; fn SetModifyDate(&self, dt: f64) -> ::windows::core::Result<()>; fn Size(&self) -> ::windows::core::Result; - fn Type(&self) -> ::windows::core::Result; + fn Type(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Verbs(&self) -> ::windows::core::Result; fn InvokeVerb(&self, vverb: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; } @@ -415,7 +415,7 @@ impl FolderItem_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Name, Impl: FolderItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: FolderItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -426,12 +426,12 @@ impl FolderItem_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetName, Impl: FolderItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bs: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetName, Impl: FolderItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bs: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetName(::core::mem::transmute(&bs)).into() } - unsafe extern "system" fn Path, Impl: FolderItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Path, Impl: FolderItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Path() { @@ -535,7 +535,7 @@ impl FolderItem_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Type, Impl: FolderItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Type, Impl: FolderItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Type() { @@ -590,7 +590,7 @@ impl FolderItem_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait FolderItem2_Impl: Sized + super::super::System::Com::IDispatch_Impl + FolderItem_Impl { fn InvokeVerbEx(&self, vverb: &super::super::System::Com::VARIANT, vargs: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn ExtendedProperty(&self, bstrpropname: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn ExtendedProperty(&self, bstrpropname: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for FolderItem2 {} @@ -602,7 +602,7 @@ impl FolderItem2_Vtbl { let this = (*this).get_impl(); this.InvokeVerbEx(::core::mem::transmute(&vverb), ::core::mem::transmute(&vargs)).into() } - unsafe extern "system" fn ExtendedProperty, Impl: FolderItem2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropname: ::core::mem::ManuallyDrop, pvret: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExtendedProperty, Impl: FolderItem2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvret: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ExtendedProperty(::core::mem::transmute(&bstrpropname)) { @@ -627,7 +627,7 @@ impl FolderItem2_Vtbl { pub trait FolderItemVerb_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn Application(&self) -> ::windows::core::Result; fn Parent(&self) -> ::windows::core::Result; - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn DoIt(&self) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -657,7 +657,7 @@ impl FolderItemVerb_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Name, Impl: FolderItemVerb_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: FolderItemVerb_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -869,7 +869,7 @@ impl FolderItems2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait FolderItems3_Impl: Sized + super::super::System::Com::IDispatch_Impl + FolderItems_Impl + FolderItems2_Impl { - fn Filter(&self, grfflags: i32, bstrfilespec: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Filter(&self, grfflags: i32, bstrfilespec: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Verbs(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -877,7 +877,7 @@ impl ::windows::core::RuntimeName for FolderItems3 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl FolderItems3_Vtbl { pub const fn new, Impl: FolderItems3_Impl, const OFFSET: isize>() -> FolderItems3_Vtbl { - unsafe extern "system" fn Filter, Impl: FolderItems3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, grfflags: i32, bstrfilespec: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Filter, Impl: FolderItems3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, grfflags: i32, bstrfilespec: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Filter(::core::mem::transmute_copy(&grfflags), ::core::mem::transmute(&bstrfilespec)).into() @@ -8007,8 +8007,8 @@ impl IFileSaveDialog_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IFileSearchBand_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn SetFocus(&self) -> ::windows::core::Result<()>; - fn SetSearchParameters(&self, pbstrsearchid: *const super::super::Foundation::BSTR, bnavtoresults: i16, pvarscope: *const super::super::System::Com::VARIANT, pvarqueryfile: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn SearchID(&self) -> ::windows::core::Result; + fn SetSearchParameters(&self, pbstrsearchid: *const ::windows::core::BSTR, bnavtoresults: i16, pvarscope: *const super::super::System::Com::VARIANT, pvarqueryfile: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn SearchID(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Scope(&self) -> ::windows::core::Result; fn QueryFile(&self) -> ::windows::core::Result; } @@ -8022,12 +8022,12 @@ impl IFileSearchBand_Vtbl { let this = (*this).get_impl(); this.SetFocus().into() } - unsafe extern "system" fn SetSearchParameters, Impl: IFileSearchBand_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsearchid: *const super::super::Foundation::BSTR, bnavtoresults: i16, pvarscope: *const super::super::System::Com::VARIANT, pvarqueryfile: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSearchParameters, Impl: IFileSearchBand_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsearchid: *const ::core::mem::ManuallyDrop<::windows::core::BSTR>, bnavtoresults: i16, pvarscope: *const super::super::System::Com::VARIANT, pvarqueryfile: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSearchParameters(::core::mem::transmute_copy(&pbstrsearchid), ::core::mem::transmute_copy(&bnavtoresults), ::core::mem::transmute_copy(&pvarscope), ::core::mem::transmute_copy(&pvarqueryfile)).into() } - unsafe extern "system" fn SearchID, Impl: IFileSearchBand_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsearchid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SearchID, Impl: IFileSearchBand_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsearchid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SearchID() { @@ -10515,7 +10515,7 @@ impl IModalWindow_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait INameSpaceTreeAccessible_Impl: Sized { - fn OnGetDefaultAccessibilityAction(&self, psi: &::core::option::Option) -> ::windows::core::Result; + fn OnGetDefaultAccessibilityAction(&self, psi: &::core::option::Option) -> ::windows::core::Result<::windows::core::BSTR>; fn OnDoDefaultAccessibilityAction(&self, psi: &::core::option::Option) -> ::windows::core::Result<()>; fn OnGetAccessibilityRole(&self, psi: &::core::option::Option) -> ::windows::core::Result; } @@ -10524,7 +10524,7 @@ impl ::windows::core::RuntimeName for INameSpaceTreeAccessible {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl INameSpaceTreeAccessible_Vtbl { pub const fn new, Impl: INameSpaceTreeAccessible_Impl, const OFFSET: isize>() -> INameSpaceTreeAccessible_Vtbl { - unsafe extern "system" fn OnGetDefaultAccessibilityAction, Impl: INameSpaceTreeAccessible_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, psi: *mut ::core::ffi::c_void, pbstrdefaultaction: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn OnGetDefaultAccessibilityAction, Impl: INameSpaceTreeAccessible_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, psi: *mut ::core::ffi::c_void, pbstrdefaultaction: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OnGetDefaultAccessibilityAction(::core::mem::transmute(&psi)) { @@ -11422,14 +11422,14 @@ impl INewShortcutHookW_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait INewWDEvents_Impl: Sized + super::super::System::Com::IDispatch_Impl + IWebWizardHost_Impl { - fn PassportAuthenticate(&self, bstrsigninurl: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn PassportAuthenticate(&self, bstrsigninurl: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for INewWDEvents {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl INewWDEvents_Vtbl { pub const fn new, Impl: INewWDEvents_Impl, const OFFSET: isize>() -> INewWDEvents_Vtbl { - unsafe extern "system" fn PassportAuthenticate, Impl: INewWDEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsigninurl: ::core::mem::ManuallyDrop, pvfauthenitcated: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn PassportAuthenticate, Impl: INewWDEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsigninurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvfauthenitcated: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PassportAuthenticate(::core::mem::transmute(&bstrsigninurl)) { @@ -13074,8 +13074,8 @@ pub trait IScriptErrorList_Impl: Sized + super::super::System::Com::IDispatch_Im fn getErrorLine(&self) -> ::windows::core::Result; fn getErrorChar(&self) -> ::windows::core::Result; fn getErrorCode(&self) -> ::windows::core::Result; - fn getErrorMsg(&self) -> ::windows::core::Result; - fn getErrorUrl(&self) -> ::windows::core::Result; + fn getErrorMsg(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn getErrorUrl(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn getAlwaysShowLockState(&self) -> ::windows::core::Result; fn getDetailsPaneOpen(&self) -> ::windows::core::Result; fn setDetailsPaneOpen(&self, fdetailspaneopen: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; @@ -13152,7 +13152,7 @@ impl IScriptErrorList_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn getErrorMsg, Impl: IScriptErrorList_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstr: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn getErrorMsg, Impl: IScriptErrorList_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getErrorMsg() { @@ -13163,7 +13163,7 @@ impl IScriptErrorList_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn getErrorUrl, Impl: IScriptErrorList_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstr: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn getErrorUrl, Impl: IScriptErrorList_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.getErrorUrl() { @@ -13272,18 +13272,15 @@ impl ISearchBoxInfo_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait ISearchContext_Impl: Sized { - fn GetSearchUrl(&self) -> ::windows::core::Result; - fn GetSearchText(&self) -> ::windows::core::Result; + fn GetSearchUrl(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetSearchText(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetSearchStyle(&self) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ISearchContext {} -#[cfg(feature = "Win32_Foundation")] impl ISearchContext_Vtbl { pub const fn new, Impl: ISearchContext_Impl, const OFFSET: isize>() -> ISearchContext_Vtbl { - unsafe extern "system" fn GetSearchUrl, Impl: ISearchContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsearchurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSearchUrl, Impl: ISearchContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsearchurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetSearchUrl() { @@ -13294,7 +13291,7 @@ impl ISearchContext_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetSearchText, Impl: ISearchContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsearchtext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSearchText, Impl: ISearchContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsearchtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetSearchText() { @@ -13837,7 +13834,7 @@ pub trait IShellDispatch_Impl: Sized + super::super::System::Com::IDispatch_Impl fn Application(&self) -> ::windows::core::Result; fn Parent(&self) -> ::windows::core::Result; fn NameSpace(&self, vdir: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn BrowseForFolder(&self, hwnd: i32, title: &super::super::Foundation::BSTR, options: i32, rootfolder: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn BrowseForFolder(&self, hwnd: i32, title: &::windows::core::BSTR, options: i32, rootfolder: &super::super::System::Com::VARIANT) -> ::windows::core::Result; fn Windows(&self) -> ::windows::core::Result; fn Open(&self, vdir: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn Explore(&self, vdir: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; @@ -13856,7 +13853,7 @@ pub trait IShellDispatch_Impl: Sized + super::super::System::Com::IDispatch_Impl fn FindFiles(&self) -> ::windows::core::Result<()>; fn FindComputer(&self) -> ::windows::core::Result<()>; fn RefreshMenu(&self) -> ::windows::core::Result<()>; - fn ControlPanelItem(&self, bstrdir: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn ControlPanelItem(&self, bstrdir: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IShellDispatch {} @@ -13896,7 +13893,7 @@ impl IShellDispatch_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn BrowseForFolder, Impl: IShellDispatch_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwnd: i32, title: ::core::mem::ManuallyDrop, options: i32, rootfolder: ::core::mem::ManuallyDrop, ppsdf: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn BrowseForFolder, Impl: IShellDispatch_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwnd: i32, title: ::core::mem::ManuallyDrop<::windows::core::BSTR>, options: i32, rootfolder: ::core::mem::ManuallyDrop, ppsdf: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BrowseForFolder(::core::mem::transmute_copy(&hwnd), ::core::mem::transmute(&title), ::core::mem::transmute_copy(&options), ::core::mem::transmute(&rootfolder)) { @@ -14003,7 +14000,7 @@ impl IShellDispatch_Vtbl { let this = (*this).get_impl(); this.RefreshMenu().into() } - unsafe extern "system" fn ControlPanelItem, Impl: IShellDispatch_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdir: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ControlPanelItem, Impl: IShellDispatch_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrdir: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ControlPanelItem(::core::mem::transmute(&bstrdir)).into() @@ -14041,22 +14038,22 @@ impl IShellDispatch_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IShellDispatch2_Impl: Sized + super::super::System::Com::IDispatch_Impl + IShellDispatch_Impl { - fn IsRestricted(&self, group: &super::super::Foundation::BSTR, restriction: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn ShellExecute(&self, file: &super::super::Foundation::BSTR, vargs: &super::super::System::Com::VARIANT, vdir: &super::super::System::Com::VARIANT, voperation: &super::super::System::Com::VARIANT, vshow: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn FindPrinter(&self, name: &super::super::Foundation::BSTR, location: &super::super::Foundation::BSTR, model: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn GetSystemInformation(&self, name: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn ServiceStart(&self, servicename: &super::super::Foundation::BSTR, persistent: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn ServiceStop(&self, servicename: &super::super::Foundation::BSTR, persistent: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn IsServiceRunning(&self, servicename: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn CanStartStopService(&self, servicename: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn ShowBrowserBar(&self, bstrclsid: &super::super::Foundation::BSTR, bshow: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn IsRestricted(&self, group: &::windows::core::BSTR, restriction: &::windows::core::BSTR) -> ::windows::core::Result; + fn ShellExecute(&self, file: &::windows::core::BSTR, vargs: &super::super::System::Com::VARIANT, vdir: &super::super::System::Com::VARIANT, voperation: &super::super::System::Com::VARIANT, vshow: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn FindPrinter(&self, name: &::windows::core::BSTR, location: &::windows::core::BSTR, model: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn GetSystemInformation(&self, name: &::windows::core::BSTR) -> ::windows::core::Result; + fn ServiceStart(&self, servicename: &::windows::core::BSTR, persistent: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn ServiceStop(&self, servicename: &::windows::core::BSTR, persistent: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn IsServiceRunning(&self, servicename: &::windows::core::BSTR) -> ::windows::core::Result; + fn CanStartStopService(&self, servicename: &::windows::core::BSTR) -> ::windows::core::Result; + fn ShowBrowserBar(&self, bstrclsid: &::windows::core::BSTR, bshow: &super::super::System::Com::VARIANT) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IShellDispatch2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IShellDispatch2_Vtbl { pub const fn new, Impl: IShellDispatch2_Impl, const OFFSET: isize>() -> IShellDispatch2_Vtbl { - unsafe extern "system" fn IsRestricted, Impl: IShellDispatch2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, group: ::core::mem::ManuallyDrop, restriction: ::core::mem::ManuallyDrop, plrestrictvalue: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn IsRestricted, Impl: IShellDispatch2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, group: ::core::mem::ManuallyDrop<::windows::core::BSTR>, restriction: ::core::mem::ManuallyDrop<::windows::core::BSTR>, plrestrictvalue: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.IsRestricted(::core::mem::transmute(&group), ::core::mem::transmute(&restriction)) { @@ -14067,17 +14064,17 @@ impl IShellDispatch2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ShellExecute, Impl: IShellDispatch2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, file: ::core::mem::ManuallyDrop, vargs: ::core::mem::ManuallyDrop, vdir: ::core::mem::ManuallyDrop, voperation: ::core::mem::ManuallyDrop, vshow: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ShellExecute, Impl: IShellDispatch2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, file: ::core::mem::ManuallyDrop<::windows::core::BSTR>, vargs: ::core::mem::ManuallyDrop, vdir: ::core::mem::ManuallyDrop, voperation: ::core::mem::ManuallyDrop, vshow: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ShellExecute(::core::mem::transmute(&file), ::core::mem::transmute(&vargs), ::core::mem::transmute(&vdir), ::core::mem::transmute(&voperation), ::core::mem::transmute(&vshow)).into() } - unsafe extern "system" fn FindPrinter, Impl: IShellDispatch2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, location: ::core::mem::ManuallyDrop, model: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn FindPrinter, Impl: IShellDispatch2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, location: ::core::mem::ManuallyDrop<::windows::core::BSTR>, model: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.FindPrinter(::core::mem::transmute(&name), ::core::mem::transmute(&location), ::core::mem::transmute(&model)).into() } - unsafe extern "system" fn GetSystemInformation, Impl: IShellDispatch2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, pv: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSystemInformation, Impl: IShellDispatch2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pv: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetSystemInformation(::core::mem::transmute(&name)) { @@ -14088,7 +14085,7 @@ impl IShellDispatch2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ServiceStart, Impl: IShellDispatch2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, servicename: ::core::mem::ManuallyDrop, persistent: ::core::mem::ManuallyDrop, psuccess: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn ServiceStart, Impl: IShellDispatch2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, servicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, persistent: ::core::mem::ManuallyDrop, psuccess: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ServiceStart(::core::mem::transmute(&servicename), ::core::mem::transmute(&persistent)) { @@ -14099,7 +14096,7 @@ impl IShellDispatch2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ServiceStop, Impl: IShellDispatch2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, servicename: ::core::mem::ManuallyDrop, persistent: ::core::mem::ManuallyDrop, psuccess: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn ServiceStop, Impl: IShellDispatch2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, servicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, persistent: ::core::mem::ManuallyDrop, psuccess: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ServiceStop(::core::mem::transmute(&servicename), ::core::mem::transmute(&persistent)) { @@ -14110,7 +14107,7 @@ impl IShellDispatch2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn IsServiceRunning, Impl: IShellDispatch2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, servicename: ::core::mem::ManuallyDrop, prunning: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn IsServiceRunning, Impl: IShellDispatch2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, servicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, prunning: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.IsServiceRunning(::core::mem::transmute(&servicename)) { @@ -14121,7 +14118,7 @@ impl IShellDispatch2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn CanStartStopService, Impl: IShellDispatch2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, servicename: ::core::mem::ManuallyDrop, pcanstartstop: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn CanStartStopService, Impl: IShellDispatch2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, servicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcanstartstop: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CanStartStopService(::core::mem::transmute(&servicename)) { @@ -14132,7 +14129,7 @@ impl IShellDispatch2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ShowBrowserBar, Impl: IShellDispatch2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrclsid: ::core::mem::ManuallyDrop, bshow: ::core::mem::ManuallyDrop, psuccess: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn ShowBrowserBar, Impl: IShellDispatch2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrclsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bshow: ::core::mem::ManuallyDrop, psuccess: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ShowBrowserBar(::core::mem::transmute(&bstrclsid), ::core::mem::transmute(&bshow)) { @@ -14162,14 +14159,14 @@ impl IShellDispatch2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IShellDispatch3_Impl: Sized + super::super::System::Com::IDispatch_Impl + IShellDispatch_Impl + IShellDispatch2_Impl { - fn AddToRecent(&self, varfile: &super::super::System::Com::VARIANT, bstrcategory: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn AddToRecent(&self, varfile: &super::super::System::Com::VARIANT, bstrcategory: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IShellDispatch3 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IShellDispatch3_Vtbl { pub const fn new, Impl: IShellDispatch3_Impl, const OFFSET: isize>() -> IShellDispatch3_Vtbl { - unsafe extern "system" fn AddToRecent, Impl: IShellDispatch3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, varfile: ::core::mem::ManuallyDrop, bstrcategory: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddToRecent, Impl: IShellDispatch3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, varfile: ::core::mem::ManuallyDrop, bstrcategory: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddToRecent(::core::mem::transmute(&varfile), ::core::mem::transmute(&bstrcategory)).into() @@ -14184,7 +14181,7 @@ impl IShellDispatch3_Vtbl { pub trait IShellDispatch4_Impl: Sized + super::super::System::Com::IDispatch_Impl + IShellDispatch_Impl + IShellDispatch2_Impl + IShellDispatch3_Impl { fn WindowsSecurity(&self) -> ::windows::core::Result<()>; fn ToggleDesktop(&self) -> ::windows::core::Result<()>; - fn ExplorerPolicy(&self, bstrpolicyname: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn ExplorerPolicy(&self, bstrpolicyname: &::windows::core::BSTR) -> ::windows::core::Result; fn GetSetting(&self, lsetting: i32) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -14202,7 +14199,7 @@ impl IShellDispatch4_Vtbl { let this = (*this).get_impl(); this.ToggleDesktop().into() } - unsafe extern "system" fn ExplorerPolicy, Impl: IShellDispatch4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpolicyname: ::core::mem::ManuallyDrop, pvalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn ExplorerPolicy, Impl: IShellDispatch4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpolicyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ExplorerPolicy(::core::mem::transmute(&bstrpolicyname)) { @@ -14305,12 +14302,12 @@ pub trait IShellFavoritesNameSpace_Impl: Sized + super::super::System::Com::IDis fn Synchronize(&self) -> ::windows::core::Result<()>; fn Import(&self) -> ::windows::core::Result<()>; fn Export(&self) -> ::windows::core::Result<()>; - fn InvokeContextMenuCommand(&self, strcommand: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn InvokeContextMenuCommand(&self, strcommand: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn MoveSelectionTo(&self) -> ::windows::core::Result<()>; fn SubscriptionsEnabled(&self) -> ::windows::core::Result; fn CreateSubscriptionForSelection(&self) -> ::windows::core::Result; fn DeleteSubscriptionForSelection(&self) -> ::windows::core::Result; - fn SetRoot(&self, bstrfullpath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetRoot(&self, bstrfullpath: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IShellFavoritesNameSpace {} @@ -14352,7 +14349,7 @@ impl IShellFavoritesNameSpace_Vtbl { let this = (*this).get_impl(); this.Export().into() } - unsafe extern "system" fn InvokeContextMenuCommand, Impl: IShellFavoritesNameSpace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strcommand: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn InvokeContextMenuCommand, Impl: IShellFavoritesNameSpace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strcommand: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.InvokeContextMenuCommand(::core::mem::transmute(&strcommand)).into() @@ -14395,7 +14392,7 @@ impl IShellFavoritesNameSpace_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetRoot, Impl: IShellFavoritesNameSpace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfullpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetRoot, Impl: IShellFavoritesNameSpace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfullpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetRoot(::core::mem::transmute(&bstrfullpath)).into() @@ -14963,7 +14960,7 @@ pub trait IShellFolderViewDual_Impl: Sized + super::super::System::Com::IDispatc fn SelectedItems(&self) -> ::windows::core::Result; fn FocusedItem(&self) -> ::windows::core::Result; fn SelectItem(&self, pvfi: *const super::super::System::Com::VARIANT, dwflags: i32) -> ::windows::core::Result<()>; - fn PopupItemMenu(&self, pfi: &::core::option::Option, vx: &super::super::System::Com::VARIANT, vy: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn PopupItemMenu(&self, pfi: &::core::option::Option, vx: &super::super::System::Com::VARIANT, vy: &super::super::System::Com::VARIANT) -> ::windows::core::Result<::windows::core::BSTR>; fn Script(&self) -> ::windows::core::Result; fn ViewOptions(&self) -> ::windows::core::Result; } @@ -15032,7 +15029,7 @@ impl IShellFolderViewDual_Vtbl { let this = (*this).get_impl(); this.SelectItem(::core::mem::transmute_copy(&pvfi), ::core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn PopupItemMenu, Impl: IShellFolderViewDual_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfi: *mut ::core::ffi::c_void, vx: ::core::mem::ManuallyDrop, vy: ::core::mem::ManuallyDrop, pbs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PopupItemMenu, Impl: IShellFolderViewDual_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pfi: *mut ::core::ffi::c_void, vx: ::core::mem::ManuallyDrop, vy: ::core::mem::ManuallyDrop, pbs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PopupItemMenu(::core::mem::transmute(&pfi), ::core::mem::transmute(&vx), ::core::mem::transmute(&vy)) { @@ -15127,22 +15124,22 @@ impl IShellFolderViewDual2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IShellFolderViewDual3_Impl: Sized + super::super::System::Com::IDispatch_Impl + IShellFolderViewDual_Impl + IShellFolderViewDual2_Impl { - fn GroupBy(&self) -> ::windows::core::Result; - fn SetGroupBy(&self, bstrgroupby: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GroupBy(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetGroupBy(&self, bstrgroupby: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn FolderFlags(&self) -> ::windows::core::Result; fn SetFolderFlags(&self, dwflags: u32) -> ::windows::core::Result<()>; - fn SortColumns(&self) -> ::windows::core::Result; - fn SetSortColumns(&self, bstrsortcolumns: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SortColumns(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetSortColumns(&self, bstrsortcolumns: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SetIconSize(&self, iiconsize: i32) -> ::windows::core::Result<()>; fn IconSize(&self) -> ::windows::core::Result; - fn FilterView(&self, bstrfiltertext: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn FilterView(&self, bstrfiltertext: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IShellFolderViewDual3 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IShellFolderViewDual3_Vtbl { pub const fn new, Impl: IShellFolderViewDual3_Impl, const OFFSET: isize>() -> IShellFolderViewDual3_Vtbl { - unsafe extern "system" fn GroupBy, Impl: IShellFolderViewDual3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrgroupby: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GroupBy, Impl: IShellFolderViewDual3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrgroupby: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GroupBy() { @@ -15153,7 +15150,7 @@ impl IShellFolderViewDual3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetGroupBy, Impl: IShellFolderViewDual3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgroupby: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetGroupBy, Impl: IShellFolderViewDual3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrgroupby: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetGroupBy(::core::mem::transmute(&bstrgroupby)).into() @@ -15174,7 +15171,7 @@ impl IShellFolderViewDual3_Vtbl { let this = (*this).get_impl(); this.SetFolderFlags(::core::mem::transmute_copy(&dwflags)).into() } - unsafe extern "system" fn SortColumns, Impl: IShellFolderViewDual3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsortcolumns: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SortColumns, Impl: IShellFolderViewDual3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsortcolumns: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SortColumns() { @@ -15185,7 +15182,7 @@ impl IShellFolderViewDual3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSortColumns, Impl: IShellFolderViewDual3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsortcolumns: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSortColumns, Impl: IShellFolderViewDual3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrsortcolumns: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSortColumns(::core::mem::transmute(&bstrsortcolumns)).into() @@ -15206,7 +15203,7 @@ impl IShellFolderViewDual3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn FilterView, Impl: IShellFolderViewDual3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfiltertext: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn FilterView, Impl: IShellFolderViewDual3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrfiltertext: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.FilterView(::core::mem::transmute(&bstrfiltertext)).into() @@ -16564,21 +16561,21 @@ impl IShellLinkDataList_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IShellLinkDual_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Path(&self) -> ::windows::core::Result; - fn SetPath(&self, bs: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Description(&self) -> ::windows::core::Result; - fn SetDescription(&self, bs: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn WorkingDirectory(&self) -> ::windows::core::Result; - fn SetWorkingDirectory(&self, bs: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Arguments(&self) -> ::windows::core::Result; - fn SetArguments(&self, bs: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetPath(&self, bs: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetDescription(&self, bs: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn WorkingDirectory(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetWorkingDirectory(&self, bs: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Arguments(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetArguments(&self, bs: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Hotkey(&self) -> ::windows::core::Result; fn SetHotkey(&self, ihk: i32) -> ::windows::core::Result<()>; fn ShowCommand(&self) -> ::windows::core::Result; fn SetShowCommand(&self, ishowcommand: i32) -> ::windows::core::Result<()>; fn Resolve(&self, fflags: i32) -> ::windows::core::Result<()>; - fn GetIconLocation(&self, pbs: *mut super::super::Foundation::BSTR, piicon: *mut i32) -> ::windows::core::Result<()>; - fn SetIconLocation(&self, bs: &super::super::Foundation::BSTR, iicon: i32) -> ::windows::core::Result<()>; + fn GetIconLocation(&self, pbs: *mut ::windows::core::BSTR, piicon: *mut i32) -> ::windows::core::Result<()>; + fn SetIconLocation(&self, bs: &::windows::core::BSTR, iicon: i32) -> ::windows::core::Result<()>; fn Save(&self, vwhere: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -16586,7 +16583,7 @@ impl ::windows::core::RuntimeName for IShellLinkDual {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IShellLinkDual_Vtbl { pub const fn new, Impl: IShellLinkDual_Impl, const OFFSET: isize>() -> IShellLinkDual_Vtbl { - unsafe extern "system" fn Path, Impl: IShellLinkDual_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Path, Impl: IShellLinkDual_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Path() { @@ -16597,12 +16594,12 @@ impl IShellLinkDual_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPath, Impl: IShellLinkDual_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bs: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPath, Impl: IShellLinkDual_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bs: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPath(::core::mem::transmute(&bs)).into() } - unsafe extern "system" fn Description, Impl: IShellLinkDual_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Description, Impl: IShellLinkDual_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Description() { @@ -16613,12 +16610,12 @@ impl IShellLinkDual_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetDescription, Impl: IShellLinkDual_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bs: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetDescription, Impl: IShellLinkDual_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bs: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetDescription(::core::mem::transmute(&bs)).into() } - unsafe extern "system" fn WorkingDirectory, Impl: IShellLinkDual_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn WorkingDirectory, Impl: IShellLinkDual_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.WorkingDirectory() { @@ -16629,12 +16626,12 @@ impl IShellLinkDual_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetWorkingDirectory, Impl: IShellLinkDual_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bs: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetWorkingDirectory, Impl: IShellLinkDual_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bs: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetWorkingDirectory(::core::mem::transmute(&bs)).into() } - unsafe extern "system" fn Arguments, Impl: IShellLinkDual_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Arguments, Impl: IShellLinkDual_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Arguments() { @@ -16645,7 +16642,7 @@ impl IShellLinkDual_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetArguments, Impl: IShellLinkDual_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bs: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetArguments, Impl: IShellLinkDual_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bs: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetArguments(::core::mem::transmute(&bs)).into() @@ -16687,12 +16684,12 @@ impl IShellLinkDual_Vtbl { let this = (*this).get_impl(); this.Resolve(::core::mem::transmute_copy(&fflags)).into() } - unsafe extern "system" fn GetIconLocation, Impl: IShellLinkDual_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbs: *mut super::super::Foundation::BSTR, piicon: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetIconLocation, Impl: IShellLinkDual_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, piicon: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetIconLocation(::core::mem::transmute_copy(&pbs), ::core::mem::transmute_copy(&piicon)).into() } - unsafe extern "system" fn SetIconLocation, Impl: IShellLinkDual_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bs: ::core::mem::ManuallyDrop, iicon: i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetIconLocation, Impl: IShellLinkDual_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bs: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iicon: i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetIconLocation(::core::mem::transmute(&bs), ::core::mem::transmute_copy(&iicon)).into() @@ -17033,8 +17030,8 @@ pub trait IShellNameSpace_Impl: Sized + super::super::System::Com::IDispatch_Imp fn SetFlags(&self, dwflags: u32) -> ::windows::core::Result<()>; fn SetTVFlags(&self, dwflags: u32) -> ::windows::core::Result<()>; fn TVFlags(&self) -> ::windows::core::Result; - fn Columns(&self) -> ::windows::core::Result; - fn SetColumns(&self, bstrcolumns: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Columns(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetColumns(&self, bstrcolumns: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn CountViewTypes(&self) -> ::windows::core::Result; fn SetViewType(&self, itype: i32) -> ::windows::core::Result<()>; fn SelectedItems(&self) -> ::windows::core::Result; @@ -17158,7 +17155,7 @@ impl IShellNameSpace_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Columns, Impl: IShellNameSpace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcolumns: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Columns, Impl: IShellNameSpace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcolumns: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Columns() { @@ -17169,7 +17166,7 @@ impl IShellNameSpace_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetColumns, Impl: IShellNameSpace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcolumns: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetColumns, Impl: IShellNameSpace_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcolumns: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetColumns(::core::mem::transmute(&bstrcolumns)).into() @@ -17353,16 +17350,16 @@ pub trait IShellUIHelper_Impl: Sized + super::super::System::Com::IDispatch_Impl fn ResetFirstBootMode(&self) -> ::windows::core::Result<()>; fn ResetSafeMode(&self) -> ::windows::core::Result<()>; fn RefreshOfflineDesktop(&self) -> ::windows::core::Result<()>; - fn AddFavorite(&self, url: &super::super::Foundation::BSTR, title: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn AddChannel(&self, url: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn AddDesktopComponent(&self, url: &super::super::Foundation::BSTR, r#type: &super::super::Foundation::BSTR, left: *const super::super::System::Com::VARIANT, top: *const super::super::System::Com::VARIANT, width: *const super::super::System::Com::VARIANT, height: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn IsSubscribed(&self, url: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn NavigateAndFind(&self, url: &super::super::Foundation::BSTR, strquery: &super::super::Foundation::BSTR, vartargetframe: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn ImportExportFavorites(&self, fimport: i16, strimpexppath: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn AddFavorite(&self, url: &::windows::core::BSTR, title: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn AddChannel(&self, url: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn AddDesktopComponent(&self, url: &::windows::core::BSTR, r#type: &::windows::core::BSTR, left: *const super::super::System::Com::VARIANT, top: *const super::super::System::Com::VARIANT, width: *const super::super::System::Com::VARIANT, height: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn IsSubscribed(&self, url: &::windows::core::BSTR) -> ::windows::core::Result; + fn NavigateAndFind(&self, url: &::windows::core::BSTR, strquery: &::windows::core::BSTR, vartargetframe: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn ImportExportFavorites(&self, fimport: i16, strimpexppath: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn AutoCompleteSaveForm(&self, form: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn AutoScan(&self, strsearch: &super::super::Foundation::BSTR, strfailureurl: &super::super::Foundation::BSTR, pvartargetframe: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn AutoScan(&self, strsearch: &::windows::core::BSTR, strfailureurl: &::windows::core::BSTR, pvartargetframe: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn AutoCompleteAttach(&self, reserved: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn ShowBrowserUI(&self, bstrname: &super::super::Foundation::BSTR, pvarin: *const super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn ShowBrowserUI(&self, bstrname: &::windows::core::BSTR, pvarin: *const super::super::System::Com::VARIANT) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IShellUIHelper {} @@ -17384,22 +17381,22 @@ impl IShellUIHelper_Vtbl { let this = (*this).get_impl(); this.RefreshOfflineDesktop().into() } - unsafe extern "system" fn AddFavorite, Impl: IShellUIHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop, title: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddFavorite, Impl: IShellUIHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop<::windows::core::BSTR>, title: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddFavorite(::core::mem::transmute(&url), ::core::mem::transmute_copy(&title)).into() } - unsafe extern "system" fn AddChannel, Impl: IShellUIHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddChannel, Impl: IShellUIHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddChannel(::core::mem::transmute(&url)).into() } - unsafe extern "system" fn AddDesktopComponent, Impl: IShellUIHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop, r#type: ::core::mem::ManuallyDrop, left: *const super::super::System::Com::VARIANT, top: *const super::super::System::Com::VARIANT, width: *const super::super::System::Com::VARIANT, height: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddDesktopComponent, Impl: IShellUIHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop<::windows::core::BSTR>, r#type: ::core::mem::ManuallyDrop<::windows::core::BSTR>, left: *const super::super::System::Com::VARIANT, top: *const super::super::System::Com::VARIANT, width: *const super::super::System::Com::VARIANT, height: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddDesktopComponent(::core::mem::transmute(&url), ::core::mem::transmute(&r#type), ::core::mem::transmute_copy(&left), ::core::mem::transmute_copy(&top), ::core::mem::transmute_copy(&width), ::core::mem::transmute_copy(&height)).into() } - unsafe extern "system" fn IsSubscribed, Impl: IShellUIHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop, pbool: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn IsSubscribed, Impl: IShellUIHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbool: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.IsSubscribed(::core::mem::transmute(&url)) { @@ -17410,12 +17407,12 @@ impl IShellUIHelper_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn NavigateAndFind, Impl: IShellUIHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop, strquery: ::core::mem::ManuallyDrop, vartargetframe: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn NavigateAndFind, Impl: IShellUIHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strquery: ::core::mem::ManuallyDrop<::windows::core::BSTR>, vartargetframe: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.NavigateAndFind(::core::mem::transmute(&url), ::core::mem::transmute(&strquery), ::core::mem::transmute_copy(&vartargetframe)).into() } - unsafe extern "system" fn ImportExportFavorites, Impl: IShellUIHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, fimport: i16, strimpexppath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn ImportExportFavorites, Impl: IShellUIHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, fimport: i16, strimpexppath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ImportExportFavorites(::core::mem::transmute_copy(&fimport), ::core::mem::transmute(&strimpexppath)).into() @@ -17425,7 +17422,7 @@ impl IShellUIHelper_Vtbl { let this = (*this).get_impl(); this.AutoCompleteSaveForm(::core::mem::transmute_copy(&form)).into() } - unsafe extern "system" fn AutoScan, Impl: IShellUIHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strsearch: ::core::mem::ManuallyDrop, strfailureurl: ::core::mem::ManuallyDrop, pvartargetframe: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn AutoScan, Impl: IShellUIHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, strsearch: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strfailureurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvartargetframe: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AutoScan(::core::mem::transmute(&strsearch), ::core::mem::transmute(&strfailureurl), ::core::mem::transmute_copy(&pvartargetframe)).into() @@ -17435,7 +17432,7 @@ impl IShellUIHelper_Vtbl { let this = (*this).get_impl(); this.AutoCompleteAttach(::core::mem::transmute_copy(&reserved)).into() } - unsafe extern "system" fn ShowBrowserUI, Impl: IShellUIHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, pvarin: *const super::super::System::Com::VARIANT, pvarout: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn ShowBrowserUI, Impl: IShellUIHelper_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarin: *const super::super::System::Com::VARIANT, pvarout: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ShowBrowserUI(::core::mem::transmute(&bstrname), ::core::mem::transmute_copy(&pvarin)) { @@ -17469,29 +17466,29 @@ impl IShellUIHelper_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IShellUIHelper2_Impl: Sized + super::super::System::Com::IDispatch_Impl + IShellUIHelper_Impl { - fn AddSearchProvider(&self, url: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn AddSearchProvider(&self, url: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn RunOnceShown(&self) -> ::windows::core::Result<()>; fn SkipRunOnce(&self) -> ::windows::core::Result<()>; - fn CustomizeSettings(&self, fsqm: i16, fphishing: i16, bstrlocale: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn CustomizeSettings(&self, fsqm: i16, fphishing: i16, bstrlocale: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SqmEnabled(&self) -> ::windows::core::Result; fn PhishingEnabled(&self) -> ::windows::core::Result; - fn BrandImageUri(&self) -> ::windows::core::Result; + fn BrandImageUri(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn SkipTabsWelcome(&self) -> ::windows::core::Result<()>; fn DiagnoseConnection(&self) -> ::windows::core::Result<()>; fn CustomizeClearType(&self, fset: i16) -> ::windows::core::Result<()>; - fn IsSearchProviderInstalled(&self, url: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn IsSearchProviderInstalled(&self, url: &::windows::core::BSTR) -> ::windows::core::Result; fn IsSearchMigrated(&self) -> ::windows::core::Result; - fn DefaultSearchProvider(&self) -> ::windows::core::Result; + fn DefaultSearchProvider(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn RunOnceRequiredSettingsComplete(&self, fcomplete: i16) -> ::windows::core::Result<()>; fn RunOnceHasShown(&self) -> ::windows::core::Result; - fn SearchGuideUrl(&self) -> ::windows::core::Result; + fn SearchGuideUrl(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IShellUIHelper2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IShellUIHelper2_Vtbl { pub const fn new, Impl: IShellUIHelper2_Impl, const OFFSET: isize>() -> IShellUIHelper2_Vtbl { - unsafe extern "system" fn AddSearchProvider, Impl: IShellUIHelper2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddSearchProvider, Impl: IShellUIHelper2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddSearchProvider(::core::mem::transmute(&url)).into() @@ -17506,7 +17503,7 @@ impl IShellUIHelper2_Vtbl { let this = (*this).get_impl(); this.SkipRunOnce().into() } - unsafe extern "system" fn CustomizeSettings, Impl: IShellUIHelper2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, fsqm: i16, fphishing: i16, bstrlocale: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn CustomizeSettings, Impl: IShellUIHelper2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, fsqm: i16, fphishing: i16, bstrlocale: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CustomizeSettings(::core::mem::transmute_copy(&fsqm), ::core::mem::transmute_copy(&fphishing), ::core::mem::transmute(&bstrlocale)).into() @@ -17533,7 +17530,7 @@ impl IShellUIHelper2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn BrandImageUri, Impl: IShellUIHelper2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstruri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn BrandImageUri, Impl: IShellUIHelper2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstruri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BrandImageUri() { @@ -17559,7 +17556,7 @@ impl IShellUIHelper2_Vtbl { let this = (*this).get_impl(); this.CustomizeClearType(::core::mem::transmute_copy(&fset)).into() } - unsafe extern "system" fn IsSearchProviderInstalled, Impl: IShellUIHelper2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop, pdwresult: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn IsSearchProviderInstalled, Impl: IShellUIHelper2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwresult: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.IsSearchProviderInstalled(::core::mem::transmute(&url)) { @@ -17581,7 +17578,7 @@ impl IShellUIHelper2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn DefaultSearchProvider, Impl: IShellUIHelper2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn DefaultSearchProvider, Impl: IShellUIHelper2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DefaultSearchProvider() { @@ -17608,7 +17605,7 @@ impl IShellUIHelper2_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SearchGuideUrl, Impl: IShellUIHelper2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SearchGuideUrl, Impl: IShellUIHelper2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SearchGuideUrl() { @@ -17645,17 +17642,17 @@ impl IShellUIHelper2_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IShellUIHelper3_Impl: Sized + super::super::System::Com::IDispatch_Impl + IShellUIHelper_Impl + IShellUIHelper2_Impl { - fn AddService(&self, url: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn IsServiceInstalled(&self, url: &super::super::Foundation::BSTR, verb: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn AddService(&self, url: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn IsServiceInstalled(&self, url: &::windows::core::BSTR, verb: &::windows::core::BSTR) -> ::windows::core::Result; fn InPrivateFilteringEnabled(&self) -> ::windows::core::Result; - fn AddToFavoritesBar(&self, url: &super::super::Foundation::BSTR, title: &super::super::Foundation::BSTR, r#type: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn AddToFavoritesBar(&self, url: &::windows::core::BSTR, title: &::windows::core::BSTR, r#type: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn BuildNewTabPage(&self) -> ::windows::core::Result<()>; fn SetRecentlyClosedVisible(&self, fvisible: i16) -> ::windows::core::Result<()>; fn SetActivitiesVisible(&self, fvisible: i16) -> ::windows::core::Result<()>; fn ContentDiscoveryReset(&self) -> ::windows::core::Result<()>; fn IsSuggestedSitesEnabled(&self) -> ::windows::core::Result; fn EnableSuggestedSites(&self, fenable: i16) -> ::windows::core::Result<()>; - fn NavigateToSuggestedSites(&self, bstrrelativeurl: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn NavigateToSuggestedSites(&self, bstrrelativeurl: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn ShowTabsHelp(&self) -> ::windows::core::Result<()>; fn ShowInPrivateHelp(&self) -> ::windows::core::Result<()>; } @@ -17664,12 +17661,12 @@ impl ::windows::core::RuntimeName for IShellUIHelper3 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IShellUIHelper3_Vtbl { pub const fn new, Impl: IShellUIHelper3_Impl, const OFFSET: isize>() -> IShellUIHelper3_Vtbl { - unsafe extern "system" fn AddService, Impl: IShellUIHelper3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddService, Impl: IShellUIHelper3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddService(::core::mem::transmute(&url)).into() } - unsafe extern "system" fn IsServiceInstalled, Impl: IShellUIHelper3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop, verb: ::core::mem::ManuallyDrop, pdwresult: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn IsServiceInstalled, Impl: IShellUIHelper3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop<::windows::core::BSTR>, verb: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwresult: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.IsServiceInstalled(::core::mem::transmute(&url), ::core::mem::transmute(&verb)) { @@ -17691,7 +17688,7 @@ impl IShellUIHelper3_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn AddToFavoritesBar, Impl: IShellUIHelper3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop, title: ::core::mem::ManuallyDrop, r#type: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddToFavoritesBar, Impl: IShellUIHelper3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop<::windows::core::BSTR>, title: ::core::mem::ManuallyDrop<::windows::core::BSTR>, r#type: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddToFavoritesBar(::core::mem::transmute(&url), ::core::mem::transmute(&title), ::core::mem::transmute_copy(&r#type)).into() @@ -17732,7 +17729,7 @@ impl IShellUIHelper3_Vtbl { let this = (*this).get_impl(); this.EnableSuggestedSites(::core::mem::transmute_copy(&fenable)).into() } - unsafe extern "system" fn NavigateToSuggestedSites, Impl: IShellUIHelper3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrelativeurl: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn NavigateToSuggestedSites, Impl: IShellUIHelper3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrrelativeurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.NavigateToSuggestedSites(::core::mem::transmute(&bstrrelativeurl)).into() @@ -17772,20 +17769,20 @@ impl IShellUIHelper3_Vtbl { pub trait IShellUIHelper4_Impl: Sized + super::super::System::Com::IDispatch_Impl + IShellUIHelper_Impl + IShellUIHelper2_Impl + IShellUIHelper3_Impl { fn msIsSiteMode(&self) -> ::windows::core::Result; fn msSiteModeShowThumbBar(&self) -> ::windows::core::Result<()>; - fn msSiteModeAddThumbBarButton(&self, bstriconurl: &super::super::Foundation::BSTR, bstrtooltip: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn msSiteModeAddThumbBarButton(&self, bstriconurl: &::windows::core::BSTR, bstrtooltip: &::windows::core::BSTR) -> ::windows::core::Result; fn msSiteModeUpdateThumbBarButton(&self, buttonid: &super::super::System::Com::VARIANT, fenabled: i16, fvisible: i16) -> ::windows::core::Result<()>; - fn msSiteModeSetIconOverlay(&self, iconurl: &super::super::Foundation::BSTR, pvardescription: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn msSiteModeSetIconOverlay(&self, iconurl: &::windows::core::BSTR, pvardescription: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn msSiteModeClearIconOverlay(&self) -> ::windows::core::Result<()>; fn msAddSiteMode(&self) -> ::windows::core::Result<()>; - fn msSiteModeCreateJumpList(&self, bstrheader: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn msSiteModeAddJumpListItem(&self, bstrname: &super::super::Foundation::BSTR, bstractionuri: &super::super::Foundation::BSTR, bstriconuri: &super::super::Foundation::BSTR, pvarwindowtype: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn msSiteModeCreateJumpList(&self, bstrheader: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn msSiteModeAddJumpListItem(&self, bstrname: &::windows::core::BSTR, bstractionuri: &::windows::core::BSTR, bstriconuri: &::windows::core::BSTR, pvarwindowtype: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn msSiteModeClearJumpList(&self) -> ::windows::core::Result<()>; fn msSiteModeShowJumpList(&self) -> ::windows::core::Result<()>; - fn msSiteModeAddButtonStyle(&self, uibuttonid: &super::super::System::Com::VARIANT, bstriconurl: &super::super::Foundation::BSTR, bstrtooltip: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn msSiteModeAddButtonStyle(&self, uibuttonid: &super::super::System::Com::VARIANT, bstriconurl: &::windows::core::BSTR, bstrtooltip: &::windows::core::BSTR) -> ::windows::core::Result; fn msSiteModeShowButtonStyle(&self, uibuttonid: &super::super::System::Com::VARIANT, uistyleid: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn msSiteModeActivate(&self) -> ::windows::core::Result<()>; fn msIsSiteModeFirstRun(&self, fpreservestate: i16) -> ::windows::core::Result; - fn msAddTrackingProtectionList(&self, url: &super::super::Foundation::BSTR, bstrfiltername: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn msAddTrackingProtectionList(&self, url: &::windows::core::BSTR, bstrfiltername: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn msTrackingProtectionEnabled(&self) -> ::windows::core::Result; fn msActiveXFilteringEnabled(&self) -> ::windows::core::Result; } @@ -17810,7 +17807,7 @@ impl IShellUIHelper4_Vtbl { let this = (*this).get_impl(); this.msSiteModeShowThumbBar().into() } - unsafe extern "system" fn msSiteModeAddThumbBarButton, Impl: IShellUIHelper4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstriconurl: ::core::mem::ManuallyDrop, bstrtooltip: ::core::mem::ManuallyDrop, pvarbuttonid: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn msSiteModeAddThumbBarButton, Impl: IShellUIHelper4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstriconurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrtooltip: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarbuttonid: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.msSiteModeAddThumbBarButton(::core::mem::transmute(&bstriconurl), ::core::mem::transmute(&bstrtooltip)) { @@ -17826,7 +17823,7 @@ impl IShellUIHelper4_Vtbl { let this = (*this).get_impl(); this.msSiteModeUpdateThumbBarButton(::core::mem::transmute(&buttonid), ::core::mem::transmute_copy(&fenabled), ::core::mem::transmute_copy(&fvisible)).into() } - unsafe extern "system" fn msSiteModeSetIconOverlay, Impl: IShellUIHelper4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, iconurl: ::core::mem::ManuallyDrop, pvardescription: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn msSiteModeSetIconOverlay, Impl: IShellUIHelper4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, iconurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvardescription: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.msSiteModeSetIconOverlay(::core::mem::transmute(&iconurl), ::core::mem::transmute_copy(&pvardescription)).into() @@ -17841,12 +17838,12 @@ impl IShellUIHelper4_Vtbl { let this = (*this).get_impl(); this.msAddSiteMode().into() } - unsafe extern "system" fn msSiteModeCreateJumpList, Impl: IShellUIHelper4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrheader: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn msSiteModeCreateJumpList, Impl: IShellUIHelper4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrheader: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.msSiteModeCreateJumpList(::core::mem::transmute(&bstrheader)).into() } - unsafe extern "system" fn msSiteModeAddJumpListItem, Impl: IShellUIHelper4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, bstractionuri: ::core::mem::ManuallyDrop, bstriconuri: ::core::mem::ManuallyDrop, pvarwindowtype: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn msSiteModeAddJumpListItem, Impl: IShellUIHelper4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstractionuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstriconuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarwindowtype: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.msSiteModeAddJumpListItem(::core::mem::transmute(&bstrname), ::core::mem::transmute(&bstractionuri), ::core::mem::transmute(&bstriconuri), ::core::mem::transmute_copy(&pvarwindowtype)).into() @@ -17861,7 +17858,7 @@ impl IShellUIHelper4_Vtbl { let this = (*this).get_impl(); this.msSiteModeShowJumpList().into() } - unsafe extern "system" fn msSiteModeAddButtonStyle, Impl: IShellUIHelper4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uibuttonid: ::core::mem::ManuallyDrop, bstriconurl: ::core::mem::ManuallyDrop, bstrtooltip: ::core::mem::ManuallyDrop, pvarstyleid: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn msSiteModeAddButtonStyle, Impl: IShellUIHelper4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uibuttonid: ::core::mem::ManuallyDrop, bstriconurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrtooltip: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarstyleid: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.msSiteModeAddButtonStyle(::core::mem::transmute(&uibuttonid), ::core::mem::transmute(&bstriconurl), ::core::mem::transmute(&bstrtooltip)) { @@ -17893,7 +17890,7 @@ impl IShellUIHelper4_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn msAddTrackingProtectionList, Impl: IShellUIHelper4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop, bstrfiltername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn msAddTrackingProtectionList, Impl: IShellUIHelper4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrfiltername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.msAddTrackingProtectionList(::core::mem::transmute(&url), ::core::mem::transmute(&bstrfiltername)).into() @@ -17948,7 +17945,7 @@ impl IShellUIHelper4_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IShellUIHelper5_Impl: Sized + super::super::System::Com::IDispatch_Impl + IShellUIHelper_Impl + IShellUIHelper2_Impl + IShellUIHelper3_Impl + IShellUIHelper4_Impl { - fn msProvisionNetworks(&self, bstrprovisioningxml: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn msProvisionNetworks(&self, bstrprovisioningxml: &::windows::core::BSTR) -> ::windows::core::Result; fn msReportSafeUrl(&self) -> ::windows::core::Result<()>; fn msSiteModeRefreshBadge(&self) -> ::windows::core::Result<()>; fn msSiteModeClearBadge(&self) -> ::windows::core::Result<()>; @@ -17961,7 +17958,7 @@ impl ::windows::core::RuntimeName for IShellUIHelper5 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IShellUIHelper5_Vtbl { pub const fn new, Impl: IShellUIHelper5_Impl, const OFFSET: isize>() -> IShellUIHelper5_Vtbl { - unsafe extern "system" fn msProvisionNetworks, Impl: IShellUIHelper5_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprovisioningxml: ::core::mem::ManuallyDrop, puiresult: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn msProvisionNetworks, Impl: IShellUIHelper5_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrprovisioningxml: ::core::mem::ManuallyDrop<::windows::core::BSTR>, puiresult: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.msProvisionNetworks(::core::mem::transmute(&bstrprovisioningxml)) { @@ -18028,9 +18025,9 @@ pub trait IShellUIHelper6_Impl: Sized + super::super::System::Com::IDispatch_Imp fn msEnableTileNotificationQueueForSquare150x150(&self, fchange: i16) -> ::windows::core::Result<()>; fn msEnableTileNotificationQueueForWide310x150(&self, fchange: i16) -> ::windows::core::Result<()>; fn msEnableTileNotificationQueueForSquare310x310(&self, fchange: i16) -> ::windows::core::Result<()>; - fn msScheduledTileNotification(&self, bstrnotificationxml: &super::super::Foundation::BSTR, bstrnotificationid: &super::super::Foundation::BSTR, bstrnotificationtag: &super::super::Foundation::BSTR, starttime: &super::super::System::Com::VARIANT, expirationtime: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn msRemoveScheduledTileNotification(&self, bstrnotificationid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn msStartPeriodicBadgeUpdate(&self, pollinguri: &super::super::Foundation::BSTR, starttime: &super::super::System::Com::VARIANT, uiupdaterecurrence: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn msScheduledTileNotification(&self, bstrnotificationxml: &::windows::core::BSTR, bstrnotificationid: &::windows::core::BSTR, bstrnotificationtag: &::windows::core::BSTR, starttime: &super::super::System::Com::VARIANT, expirationtime: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn msRemoveScheduledTileNotification(&self, bstrnotificationid: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn msStartPeriodicBadgeUpdate(&self, pollinguri: &::windows::core::BSTR, starttime: &super::super::System::Com::VARIANT, uiupdaterecurrence: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn msStopPeriodicBadgeUpdate(&self) -> ::windows::core::Result<()>; fn msLaunchInternetOptions(&self) -> ::windows::core::Result<()>; } @@ -18090,17 +18087,17 @@ impl IShellUIHelper6_Vtbl { let this = (*this).get_impl(); this.msEnableTileNotificationQueueForSquare310x310(::core::mem::transmute_copy(&fchange)).into() } - unsafe extern "system" fn msScheduledTileNotification, Impl: IShellUIHelper6_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrnotificationxml: ::core::mem::ManuallyDrop, bstrnotificationid: ::core::mem::ManuallyDrop, bstrnotificationtag: ::core::mem::ManuallyDrop, starttime: ::core::mem::ManuallyDrop, expirationtime: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn msScheduledTileNotification, Impl: IShellUIHelper6_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrnotificationxml: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrnotificationid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrnotificationtag: ::core::mem::ManuallyDrop<::windows::core::BSTR>, starttime: ::core::mem::ManuallyDrop, expirationtime: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.msScheduledTileNotification(::core::mem::transmute(&bstrnotificationxml), ::core::mem::transmute(&bstrnotificationid), ::core::mem::transmute(&bstrnotificationtag), ::core::mem::transmute(&starttime), ::core::mem::transmute(&expirationtime)).into() } - unsafe extern "system" fn msRemoveScheduledTileNotification, Impl: IShellUIHelper6_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrnotificationid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn msRemoveScheduledTileNotification, Impl: IShellUIHelper6_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrnotificationid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.msRemoveScheduledTileNotification(::core::mem::transmute(&bstrnotificationid)).into() } - unsafe extern "system" fn msStartPeriodicBadgeUpdate, Impl: IShellUIHelper6_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pollinguri: ::core::mem::ManuallyDrop, starttime: ::core::mem::ManuallyDrop, uiupdaterecurrence: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn msStartPeriodicBadgeUpdate, Impl: IShellUIHelper6_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pollinguri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, starttime: ::core::mem::ManuallyDrop, uiupdaterecurrence: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.msStartPeriodicBadgeUpdate(::core::mem::transmute(&pollinguri), ::core::mem::transmute(&starttime), ::core::mem::transmute(&uiupdaterecurrence)).into() @@ -18139,27 +18136,27 @@ impl IShellUIHelper6_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IShellUIHelper7_Impl: Sized + super::super::System::Com::IDispatch_Impl + IShellUIHelper_Impl + IShellUIHelper2_Impl + IShellUIHelper3_Impl + IShellUIHelper4_Impl + IShellUIHelper5_Impl + IShellUIHelper6_Impl { - fn SetExperimentalFlag(&self, bstrflagstring: &super::super::Foundation::BSTR, vfflag: i16) -> ::windows::core::Result<()>; - fn GetExperimentalFlag(&self, bstrflagstring: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn SetExperimentalValue(&self, bstrvaluestring: &super::super::Foundation::BSTR, dwvalue: u32) -> ::windows::core::Result<()>; - fn GetExperimentalValue(&self, bstrvaluestring: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn SetExperimentalFlag(&self, bstrflagstring: &::windows::core::BSTR, vfflag: i16) -> ::windows::core::Result<()>; + fn GetExperimentalFlag(&self, bstrflagstring: &::windows::core::BSTR) -> ::windows::core::Result; + fn SetExperimentalValue(&self, bstrvaluestring: &::windows::core::BSTR, dwvalue: u32) -> ::windows::core::Result<()>; + fn GetExperimentalValue(&self, bstrvaluestring: &::windows::core::BSTR) -> ::windows::core::Result; fn ResetAllExperimentalFlagsAndValues(&self) -> ::windows::core::Result<()>; - fn GetNeedIEAutoLaunchFlag(&self, bstrurl: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn SetNeedIEAutoLaunchFlag(&self, bstrurl: &super::super::Foundation::BSTR, flag: i16) -> ::windows::core::Result<()>; - fn HasNeedIEAutoLaunchFlag(&self, bstrurl: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn LaunchIE(&self, bstrurl: &super::super::Foundation::BSTR, automated: i16) -> ::windows::core::Result<()>; + fn GetNeedIEAutoLaunchFlag(&self, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result; + fn SetNeedIEAutoLaunchFlag(&self, bstrurl: &::windows::core::BSTR, flag: i16) -> ::windows::core::Result<()>; + fn HasNeedIEAutoLaunchFlag(&self, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result; + fn LaunchIE(&self, bstrurl: &::windows::core::BSTR, automated: i16) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IShellUIHelper7 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IShellUIHelper7_Vtbl { pub const fn new, Impl: IShellUIHelper7_Impl, const OFFSET: isize>() -> IShellUIHelper7_Vtbl { - unsafe extern "system" fn SetExperimentalFlag, Impl: IShellUIHelper7_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrflagstring: ::core::mem::ManuallyDrop, vfflag: i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetExperimentalFlag, Impl: IShellUIHelper7_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrflagstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, vfflag: i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetExperimentalFlag(::core::mem::transmute(&bstrflagstring), ::core::mem::transmute_copy(&vfflag)).into() } - unsafe extern "system" fn GetExperimentalFlag, Impl: IShellUIHelper7_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrflagstring: ::core::mem::ManuallyDrop, vfflag: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetExperimentalFlag, Impl: IShellUIHelper7_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrflagstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, vfflag: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetExperimentalFlag(::core::mem::transmute(&bstrflagstring)) { @@ -18170,12 +18167,12 @@ impl IShellUIHelper7_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetExperimentalValue, Impl: IShellUIHelper7_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrvaluestring: ::core::mem::ManuallyDrop, dwvalue: u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetExperimentalValue, Impl: IShellUIHelper7_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrvaluestring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwvalue: u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetExperimentalValue(::core::mem::transmute(&bstrvaluestring), ::core::mem::transmute_copy(&dwvalue)).into() } - unsafe extern "system" fn GetExperimentalValue, Impl: IShellUIHelper7_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrvaluestring: ::core::mem::ManuallyDrop, pdwvalue: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetExperimentalValue, Impl: IShellUIHelper7_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrvaluestring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwvalue: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetExperimentalValue(::core::mem::transmute(&bstrvaluestring)) { @@ -18191,7 +18188,7 @@ impl IShellUIHelper7_Vtbl { let this = (*this).get_impl(); this.ResetAllExperimentalFlagsAndValues().into() } - unsafe extern "system" fn GetNeedIEAutoLaunchFlag, Impl: IShellUIHelper7_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop, flag: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetNeedIEAutoLaunchFlag, Impl: IShellUIHelper7_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flag: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetNeedIEAutoLaunchFlag(::core::mem::transmute(&bstrurl)) { @@ -18202,12 +18199,12 @@ impl IShellUIHelper7_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetNeedIEAutoLaunchFlag, Impl: IShellUIHelper7_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop, flag: i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetNeedIEAutoLaunchFlag, Impl: IShellUIHelper7_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flag: i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetNeedIEAutoLaunchFlag(::core::mem::transmute(&bstrurl), ::core::mem::transmute_copy(&flag)).into() } - unsafe extern "system" fn HasNeedIEAutoLaunchFlag, Impl: IShellUIHelper7_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop, exists: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn HasNeedIEAutoLaunchFlag, Impl: IShellUIHelper7_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, exists: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.HasNeedIEAutoLaunchFlag(::core::mem::transmute(&bstrurl)) { @@ -18218,7 +18215,7 @@ impl IShellUIHelper7_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn LaunchIE, Impl: IShellUIHelper7_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop, automated: i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn LaunchIE, Impl: IShellUIHelper7_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, automated: i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.LaunchIE(::core::mem::transmute(&bstrurl), ::core::mem::transmute_copy(&automated)).into() @@ -18242,20 +18239,20 @@ impl IShellUIHelper7_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IShellUIHelper8_Impl: Sized + super::super::System::Com::IDispatch_Impl + IShellUIHelper_Impl + IShellUIHelper2_Impl + IShellUIHelper3_Impl + IShellUIHelper4_Impl + IShellUIHelper5_Impl + IShellUIHelper6_Impl + IShellUIHelper7_Impl { - fn GetCVListData(&self) -> ::windows::core::Result; - fn GetCVListLocalData(&self) -> ::windows::core::Result; - fn GetEMIEListData(&self) -> ::windows::core::Result; - fn GetEMIEListLocalData(&self) -> ::windows::core::Result; + fn GetCVListData(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetCVListLocalData(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetEMIEListData(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetEMIEListLocalData(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn OpenFavoritesPane(&self) -> ::windows::core::Result<()>; fn OpenFavoritesSettings(&self) -> ::windows::core::Result<()>; - fn LaunchInHVSI(&self, bstrurl: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn LaunchInHVSI(&self, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IShellUIHelper8 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IShellUIHelper8_Vtbl { pub const fn new, Impl: IShellUIHelper8_Impl, const OFFSET: isize>() -> IShellUIHelper8_Vtbl { - unsafe extern "system" fn GetCVListData, Impl: IShellUIHelper8_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrresult: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCVListData, Impl: IShellUIHelper8_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrresult: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCVListData() { @@ -18266,7 +18263,7 @@ impl IShellUIHelper8_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetCVListLocalData, Impl: IShellUIHelper8_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrresult: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetCVListLocalData, Impl: IShellUIHelper8_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrresult: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCVListLocalData() { @@ -18277,7 +18274,7 @@ impl IShellUIHelper8_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetEMIEListData, Impl: IShellUIHelper8_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrresult: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetEMIEListData, Impl: IShellUIHelper8_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrresult: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetEMIEListData() { @@ -18288,7 +18285,7 @@ impl IShellUIHelper8_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetEMIEListLocalData, Impl: IShellUIHelper8_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrresult: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetEMIEListLocalData, Impl: IShellUIHelper8_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrresult: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetEMIEListLocalData() { @@ -18309,7 +18306,7 @@ impl IShellUIHelper8_Vtbl { let this = (*this).get_impl(); this.OpenFavoritesSettings().into() } - unsafe extern "system" fn LaunchInHVSI, Impl: IShellUIHelper8_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn LaunchInHVSI, Impl: IShellUIHelper8_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.LaunchInHVSI(::core::mem::transmute(&bstrurl)).into() @@ -22183,7 +22180,7 @@ pub trait IWebBrowser_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn GoForward(&self) -> ::windows::core::Result<()>; fn GoHome(&self) -> ::windows::core::Result<()>; fn GoSearch(&self) -> ::windows::core::Result<()>; - fn Navigate(&self, url: &super::super::Foundation::BSTR, flags: *const super::super::System::Com::VARIANT, targetframename: *const super::super::System::Com::VARIANT, postdata: *const super::super::System::Com::VARIANT, headers: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn Navigate(&self, url: &::windows::core::BSTR, flags: *const super::super::System::Com::VARIANT, targetframename: *const super::super::System::Com::VARIANT, postdata: *const super::super::System::Com::VARIANT, headers: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn Refresh(&self) -> ::windows::core::Result<()>; fn Refresh2(&self, level: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn Stop(&self) -> ::windows::core::Result<()>; @@ -22192,7 +22189,7 @@ pub trait IWebBrowser_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn Container(&self) -> ::windows::core::Result; fn Document(&self) -> ::windows::core::Result; fn TopLevelContainer(&self) -> ::windows::core::Result; - fn Type(&self) -> ::windows::core::Result; + fn Type(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Left(&self) -> ::windows::core::Result; fn SetLeft(&self, left: i32) -> ::windows::core::Result<()>; fn Top(&self) -> ::windows::core::Result; @@ -22201,8 +22198,8 @@ pub trait IWebBrowser_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn SetWidth(&self, width: i32) -> ::windows::core::Result<()>; fn Height(&self) -> ::windows::core::Result; fn SetHeight(&self, height: i32) -> ::windows::core::Result<()>; - fn LocationName(&self) -> ::windows::core::Result; - fn LocationURL(&self) -> ::windows::core::Result; + fn LocationName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn LocationURL(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Busy(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -22230,7 +22227,7 @@ impl IWebBrowser_Vtbl { let this = (*this).get_impl(); this.GoSearch().into() } - unsafe extern "system" fn Navigate, Impl: IWebBrowser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop, flags: *const super::super::System::Com::VARIANT, targetframename: *const super::super::System::Com::VARIANT, postdata: *const super::super::System::Com::VARIANT, headers: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn Navigate, Impl: IWebBrowser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: *const super::super::System::Com::VARIANT, targetframename: *const super::super::System::Com::VARIANT, postdata: *const super::super::System::Com::VARIANT, headers: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Navigate(::core::mem::transmute(&url), ::core::mem::transmute_copy(&flags), ::core::mem::transmute_copy(&targetframename), ::core::mem::transmute_copy(&postdata), ::core::mem::transmute_copy(&headers)).into() @@ -22305,7 +22302,7 @@ impl IWebBrowser_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Type, Impl: IWebBrowser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, r#type: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Type, Impl: IWebBrowser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, r#type: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Type() { @@ -22380,7 +22377,7 @@ impl IWebBrowser_Vtbl { let this = (*this).get_impl(); this.SetHeight(::core::mem::transmute_copy(&height)).into() } - unsafe extern "system" fn LocationName, Impl: IWebBrowser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, locationname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LocationName, Impl: IWebBrowser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, locationname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LocationName() { @@ -22391,7 +22388,7 @@ impl IWebBrowser_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn LocationURL, Impl: IWebBrowser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, locationurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn LocationURL, Impl: IWebBrowser_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, locationurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LocationURL() { @@ -22653,18 +22650,18 @@ impl IWebBrowser2_Vtbl { pub trait IWebBrowserApp_Impl: Sized + super::super::System::Com::IDispatch_Impl + IWebBrowser_Impl { fn Quit(&self) -> ::windows::core::Result<()>; fn ClientToWindow(&self, pcx: *mut i32, pcy: *mut i32) -> ::windows::core::Result<()>; - fn PutProperty(&self, property: &super::super::Foundation::BSTR, vtvalue: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn GetProperty(&self, property: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn Name(&self) -> ::windows::core::Result; + fn PutProperty(&self, property: &::windows::core::BSTR, vtvalue: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn GetProperty(&self, property: &::windows::core::BSTR) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn HWND(&self) -> ::windows::core::Result; - fn FullName(&self) -> ::windows::core::Result; - fn Path(&self) -> ::windows::core::Result; + fn FullName(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Visible(&self) -> ::windows::core::Result; fn SetVisible(&self, value: i16) -> ::windows::core::Result<()>; fn StatusBar(&self) -> ::windows::core::Result; fn SetStatusBar(&self, value: i16) -> ::windows::core::Result<()>; - fn StatusText(&self) -> ::windows::core::Result; - fn SetStatusText(&self, statustext: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn StatusText(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetStatusText(&self, statustext: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn ToolBar(&self) -> ::windows::core::Result; fn SetToolBar(&self, value: i32) -> ::windows::core::Result<()>; fn MenuBar(&self) -> ::windows::core::Result; @@ -22687,12 +22684,12 @@ impl IWebBrowserApp_Vtbl { let this = (*this).get_impl(); this.ClientToWindow(::core::mem::transmute_copy(&pcx), ::core::mem::transmute_copy(&pcy)).into() } - unsafe extern "system" fn PutProperty, Impl: IWebBrowserApp_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, property: ::core::mem::ManuallyDrop, vtvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn PutProperty, Impl: IWebBrowserApp_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, property: ::core::mem::ManuallyDrop<::windows::core::BSTR>, vtvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.PutProperty(::core::mem::transmute(&property), ::core::mem::transmute(&vtvalue)).into() } - unsafe extern "system" fn GetProperty, Impl: IWebBrowserApp_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, property: ::core::mem::ManuallyDrop, pvtvalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetProperty, Impl: IWebBrowserApp_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, property: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvtvalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetProperty(::core::mem::transmute(&property)) { @@ -22703,7 +22700,7 @@ impl IWebBrowserApp_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Name, Impl: IWebBrowserApp_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IWebBrowserApp_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -22725,7 +22722,7 @@ impl IWebBrowserApp_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn FullName, Impl: IWebBrowserApp_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, fullname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn FullName, Impl: IWebBrowserApp_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, fullname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.FullName() { @@ -22736,7 +22733,7 @@ impl IWebBrowserApp_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Path, Impl: IWebBrowserApp_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Path, Impl: IWebBrowserApp_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, path: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Path() { @@ -22779,7 +22776,7 @@ impl IWebBrowserApp_Vtbl { let this = (*this).get_impl(); this.SetStatusBar(::core::mem::transmute_copy(&value)).into() } - unsafe extern "system" fn StatusText, Impl: IWebBrowserApp_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, statustext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn StatusText, Impl: IWebBrowserApp_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, statustext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.StatusText() { @@ -22790,7 +22787,7 @@ impl IWebBrowserApp_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetStatusText, Impl: IWebBrowserApp_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, statustext: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetStatusText, Impl: IWebBrowserApp_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, statustext: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetStatusText(::core::mem::transmute(&statustext)).into() @@ -22906,12 +22903,12 @@ pub trait IWebWizardHost_Impl: Sized + super::super::System::Com::IDispatch_Impl fn FinalBack(&self) -> ::windows::core::Result<()>; fn FinalNext(&self) -> ::windows::core::Result<()>; fn Cancel(&self) -> ::windows::core::Result<()>; - fn SetCaption(&self, bstrcaption: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn Caption(&self) -> ::windows::core::Result; - fn put_Property(&self, bstrpropertyname: &super::super::Foundation::BSTR, pvproperty: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn get_Property(&self, bstrpropertyname: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn SetCaption(&self, bstrcaption: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn Caption(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn put_Property(&self, bstrpropertyname: &::windows::core::BSTR, pvproperty: *const super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; + fn get_Property(&self, bstrpropertyname: &::windows::core::BSTR) -> ::windows::core::Result; fn SetWizardButtons(&self, vfenableback: i16, vfenablenext: i16, vflastpage: i16) -> ::windows::core::Result<()>; - fn SetHeaderText(&self, bstrheadertitle: &super::super::Foundation::BSTR, bstrheadersubtitle: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetHeaderText(&self, bstrheadertitle: &::windows::core::BSTR, bstrheadersubtitle: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWebWizardHost {} @@ -22933,12 +22930,12 @@ impl IWebWizardHost_Vtbl { let this = (*this).get_impl(); this.Cancel().into() } - unsafe extern "system" fn SetCaption, Impl: IWebWizardHost_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcaption: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCaption, Impl: IWebWizardHost_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrcaption: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCaption(::core::mem::transmute(&bstrcaption)).into() } - unsafe extern "system" fn Caption, Impl: IWebWizardHost_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcaption: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Caption, Impl: IWebWizardHost_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrcaption: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Caption() { @@ -22949,12 +22946,12 @@ impl IWebWizardHost_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn put_Property, Impl: IWebWizardHost_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop, pvproperty: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn put_Property, Impl: IWebWizardHost_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvproperty: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.put_Property(::core::mem::transmute(&bstrpropertyname), ::core::mem::transmute_copy(&pvproperty)).into() } - unsafe extern "system" fn get_Property, Impl: IWebWizardHost_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop, pvproperty: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn get_Property, Impl: IWebWizardHost_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvproperty: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.get_Property(::core::mem::transmute(&bstrpropertyname)) { @@ -22970,7 +22967,7 @@ impl IWebWizardHost_Vtbl { let this = (*this).get_impl(); this.SetWizardButtons(::core::mem::transmute_copy(&vfenableback), ::core::mem::transmute_copy(&vfenablenext), ::core::mem::transmute_copy(&vflastpage)).into() } - unsafe extern "system" fn SetHeaderText, Impl: IWebWizardHost_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrheadertitle: ::core::mem::ManuallyDrop, bstrheadersubtitle: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetHeaderText, Impl: IWebWizardHost_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrheadertitle: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrheadersubtitle: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetHeaderText(::core::mem::transmute(&bstrheadertitle), ::core::mem::transmute(&bstrheadersubtitle)).into() @@ -22994,14 +22991,14 @@ impl IWebWizardHost_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IWebWizardHost2_Impl: Sized + super::super::System::Com::IDispatch_Impl + IWebWizardHost_Impl { - fn SignString(&self, value: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn SignString(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IWebWizardHost2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IWebWizardHost2_Vtbl { pub const fn new, Impl: IWebWizardHost2_Impl, const OFFSET: isize>() -> IWebWizardHost2_Vtbl { - unsafe extern "system" fn SignString, Impl: IWebWizardHost2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop, signedvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SignString, Impl: IWebWizardHost2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>, signedvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SignString(::core::mem::transmute(&value)) { diff --git a/crates/libs/windows/src/Windows/Win32/UI/Shell/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Shell/mod.rs index 19bc13cf8d..f4c4c40720 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Shell/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Shell/mod.rs @@ -7799,13 +7799,13 @@ where } StrRStrIW(pszsource.into(), pszlast.into(), pszsrch.into()) } -#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_Foundation\"`, `\"Win32_UI_Shell_Common\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Shell_Common"))] +#[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_UI_Shell_Common\"`*"] +#[cfg(feature = "Win32_UI_Shell_Common")] #[inline] -pub unsafe fn StrRetToBSTR(pstr: &mut Common::STRRET, pidl: ::core::option::Option<&Common::ITEMIDLIST>, pbstr: &mut super::super::Foundation::BSTR) -> ::windows::core::Result<()> { +pub unsafe fn StrRetToBSTR(pstr: &mut Common::STRRET, pidl: ::core::option::Option<&Common::ITEMIDLIST>, pbstr: &mut ::windows::core::BSTR) -> ::windows::core::Result<()> { #[cfg_attr(windows, link(name = "windows"))] extern "system" { - fn StrRetToBSTR(pstr: *mut Common::STRRET, pidl: *const Common::ITEMIDLIST, pbstr: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT; + fn StrRetToBSTR(pstr: *mut Common::STRRET, pidl: *const Common::ITEMIDLIST, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT; } StrRetToBSTR(::core::mem::transmute(pstr), ::core::mem::transmute(pidl), ::core::mem::transmute(pbstr)).ok() } @@ -8645,11 +8645,9 @@ pub struct CIE4ConnectionPoint_Vtbl { pub struct DFConstraint(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl DFConstraint { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -8724,10 +8722,7 @@ unsafe impl ::windows::core::Interface for DFConstraint { #[doc(hidden)] pub struct DFConstraint_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pv: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -9104,11 +9099,9 @@ pub struct DWebBrowserEvents2_Vtbl { pub struct Folder(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl Folder { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Title(&self) -> ::windows::core::Result { + pub unsafe fn Title(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9134,23 +9127,19 @@ impl Folder { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Items)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn ParseName<'a, P0>(&self, bname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn ParseName(&self, bname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ParseName)(::windows::core::Interface::as_raw(self), bname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ParseName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn NewFolder<'a, P0, P1>(&self, bname: P0, voptions: P1) -> ::windows::core::Result<()> + pub unsafe fn NewFolder<'a, P0>(&self, bname: &::windows::core::BSTR, voptions: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).NewFolder)(::windows::core::Interface::as_raw(self), bname.into().abi(), voptions.into().abi()).ok() + (::windows::core::Interface::vtable(self).NewFolder)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bname), voptions.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -9172,12 +9161,12 @@ impl Folder { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetDetailsOf<'a, P0>(&self, vitem: P0, icolumn: i32) -> ::windows::core::Result + pub unsafe fn GetDetailsOf<'a, P0>(&self, vitem: P0, icolumn: i32) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDetailsOf)(::windows::core::Interface::as_raw(self), vitem.into().abi(), icolumn, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDetailsOf)(::windows::core::Interface::as_raw(self), vitem.into().abi(), icolumn, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -9246,10 +9235,7 @@ unsafe impl ::windows::core::Interface for Folder { #[doc(hidden)] pub struct Folder_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Title: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Title: usize, + pub Title: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Application: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppid: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -9266,12 +9252,12 @@ pub struct Folder_Vtbl { pub Items: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppid: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Items: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub ParseName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bname: ::core::mem::ManuallyDrop, ppid: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub ParseName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, ppid: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] ParseName: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub NewFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bname: ::core::mem::ManuallyDrop, voptions: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub NewFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, voptions: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] NewFolder: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -9283,7 +9269,7 @@ pub struct Folder_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] CopyHere: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetDetailsOf: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vitem: ::core::mem::ManuallyDrop, icolumn: i32, pbs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub GetDetailsOf: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vitem: ::core::mem::ManuallyDrop, icolumn: i32, pbs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetDetailsOf: usize, } @@ -9293,11 +9279,9 @@ pub struct Folder_Vtbl { pub struct Folder2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl Folder2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Title(&self) -> ::windows::core::Result { + pub unsafe fn Title(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9323,23 +9307,19 @@ impl Folder2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Items)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn ParseName<'a, P0>(&self, bname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn ParseName(&self, bname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ParseName)(::windows::core::Interface::as_raw(self), bname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ParseName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn NewFolder<'a, P0, P1>(&self, bname: P0, voptions: P1) -> ::windows::core::Result<()> + pub unsafe fn NewFolder<'a, P0>(&self, bname: &::windows::core::BSTR, voptions: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.NewFolder)(::windows::core::Interface::as_raw(self), bname.into().abi(), voptions.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.NewFolder)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bname), voptions.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -9361,12 +9341,12 @@ impl Folder2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetDetailsOf<'a, P0>(&self, vitem: P0, icolumn: i32) -> ::windows::core::Result + pub unsafe fn GetDetailsOf<'a, P0>(&self, vitem: P0, icolumn: i32) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetDetailsOf)(::windows::core::Interface::as_raw(self), vitem.into().abi(), icolumn, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetDetailsOf)(::windows::core::Interface::as_raw(self), vitem.into().abi(), icolumn, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9488,11 +9468,9 @@ pub struct Folder2_Vtbl { pub struct Folder3(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl Folder3 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Title(&self) -> ::windows::core::Result { + pub unsafe fn Title(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Title)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9518,23 +9496,19 @@ impl Folder3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.Items)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn ParseName<'a, P0>(&self, bname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn ParseName(&self, bname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.ParseName)(::windows::core::Interface::as_raw(self), bname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.ParseName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn NewFolder<'a, P0, P1>(&self, bname: P0, voptions: P1) -> ::windows::core::Result<()> + pub unsafe fn NewFolder<'a, P0>(&self, bname: &::windows::core::BSTR, voptions: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.NewFolder)(::windows::core::Interface::as_raw(self), bname.into().abi(), voptions.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.NewFolder)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bname), voptions.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -9556,12 +9530,12 @@ impl Folder3 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetDetailsOf<'a, P0>(&self, vitem: P0, icolumn: i32) -> ::windows::core::Result + pub unsafe fn GetDetailsOf<'a, P0>(&self, vitem: P0, icolumn: i32) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetDetailsOf)(::windows::core::Interface::as_raw(self), vitem.into().abi(), icolumn, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetDetailsOf)(::windows::core::Interface::as_raw(self), vitem.into().abi(), icolumn, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9714,25 +9688,16 @@ impl FolderItem { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, bs: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), bs.into().abi()).ok() + pub unsafe fn SetName(&self, bs: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bs)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Path(&self) -> ::windows::core::Result { + pub unsafe fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9773,11 +9738,9 @@ impl FolderItem { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Size)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Type(&self) -> ::windows::core::Result { + pub unsafe fn Type(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9868,18 +9831,9 @@ pub struct FolderItem_Vtbl { pub Parent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppid: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Parent: usize, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bs: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetName: usize, - #[cfg(feature = "Win32_Foundation")] - pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Path: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bs: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub GetLink: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppid: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -9895,10 +9849,7 @@ pub struct FolderItem_Vtbl { pub ModifyDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdt: *mut f64) -> ::windows::core::HRESULT, pub SetModifyDate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dt: f64) -> ::windows::core::HRESULT, pub Size: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pul: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Type: usize, + pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Verbs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppfic: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -9926,25 +9877,16 @@ impl FolderItem2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetName<'a, P0>(&self, bs: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), bs.into().abi()).ok() + pub unsafe fn SetName(&self, bs: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bs)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Path(&self) -> ::windows::core::Result { + pub unsafe fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -9985,11 +9927,9 @@ impl FolderItem2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.Size)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Type(&self) -> ::windows::core::Result { + pub unsafe fn Type(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -10016,12 +9956,9 @@ impl FolderItem2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ExtendedProperty<'a, P0>(&self, bstrpropname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn ExtendedProperty(&self, bstrpropname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ExtendedProperty)(::windows::core::Interface::as_raw(self), bstrpropname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ExtendedProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpropname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -10113,7 +10050,7 @@ pub struct FolderItem2_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] InvokeVerbEx: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub ExtendedProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropname: ::core::mem::ManuallyDrop, pvret: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub ExtendedProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvret: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] ExtendedProperty: usize, } @@ -10135,11 +10072,9 @@ impl FolderItemVerb { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Parent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn DoIt(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).DoIt)(::windows::core::Interface::as_raw(self)).ok() @@ -10219,10 +10154,7 @@ pub struct FolderItemVerb_Vtbl { pub Parent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppid: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Parent: usize, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub DoIt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] @@ -10637,13 +10569,8 @@ impl FolderItems3 { { (::windows::core::Interface::vtable(self).base__.InvokeVerbEx)(::windows::core::Interface::as_raw(self), vverb.into().abi(), vargs.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Filter<'a, P0>(&self, grfflags: i32, bstrfilespec: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Filter)(::windows::core::Interface::as_raw(self), grfflags, bstrfilespec.into().abi()).ok() + pub unsafe fn Filter(&self, grfflags: i32, bstrfilespec: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Filter)(::windows::core::Interface::as_raw(self), grfflags, ::core::mem::transmute_copy(bstrfilespec)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -10754,10 +10681,7 @@ unsafe impl ::windows::core::Interface for FolderItems3 { #[doc(hidden)] pub struct FolderItems3_Vtbl { pub base__: FolderItems2_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Filter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, grfflags: i32, bstrfilespec: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Filter: usize, + pub Filter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, grfflags: i32, bstrfilespec: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Verbs: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppfic: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -24452,14 +24376,12 @@ impl IFileSearchBand { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn SetSearchParameters(&self, pbstrsearchid: &super::super::Foundation::BSTR, bnavtoresults: i16, pvarscope: &super::super::System::Com::VARIANT, pvarqueryfile: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + pub unsafe fn SetSearchParameters(&self, pbstrsearchid: &::windows::core::BSTR, bnavtoresults: i16, pvarscope: &super::super::System::Com::VARIANT, pvarqueryfile: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetSearchParameters)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbstrsearchid), bnavtoresults, ::core::mem::transmute(pvarscope), ::core::mem::transmute(pvarqueryfile)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SearchID(&self) -> ::windows::core::Result { + pub unsafe fn SearchID(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SearchID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SearchID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -24542,13 +24464,10 @@ pub struct IFileSearchBand_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub SetFocus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub SetSearchParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsearchid: *const super::super::Foundation::BSTR, bnavtoresults: i16, pvarscope: *const super::super::System::Com::VARIANT, pvarqueryfile: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub SetSearchParameters: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsearchid: *const ::core::mem::ManuallyDrop<::windows::core::BSTR>, bnavtoresults: i16, pvarscope: *const super::super::System::Com::VARIANT, pvarqueryfile: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SetSearchParameters: usize, - #[cfg(feature = "Win32_Foundation")] - pub SearchID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsearchid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SearchID: usize, + pub SearchID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsearchid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub Scope: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvarscope: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -28819,14 +28738,12 @@ pub struct IModalWindow_Vtbl { #[repr(transparent)] pub struct INameSpaceTreeAccessible(::windows::core::IUnknown); impl INameSpaceTreeAccessible { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn OnGetDefaultAccessibilityAction<'a, P0>(&self, psi: P0) -> ::windows::core::Result + pub unsafe fn OnGetDefaultAccessibilityAction<'a, P0>(&self, psi: P0) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, IShellItem>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).OnGetDefaultAccessibilityAction)(::windows::core::Interface::as_raw(self), psi.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).OnGetDefaultAccessibilityAction)(::windows::core::Interface::as_raw(self), psi.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn OnDoDefaultAccessibilityAction<'a, P0>(&self, psi: P0) -> ::windows::core::Result<()> where @@ -28883,10 +28800,7 @@ unsafe impl ::windows::core::Interface for INameSpaceTreeAccessible { #[doc(hidden)] pub struct INameSpaceTreeAccessible_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub OnGetDefaultAccessibilityAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psi: *mut ::core::ffi::c_void, pbstrdefaultaction: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OnGetDefaultAccessibilityAction: usize, + pub OnGetDefaultAccessibilityAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psi: *mut ::core::ffi::c_void, pbstrdefaultaction: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub OnDoDefaultAccessibilityAction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psi: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub OnGetAccessibilityRole: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, psi: *mut ::core::ffi::c_void, pvarrole: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, @@ -30322,57 +30236,33 @@ impl INewWDEvents { pub unsafe fn Cancel(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Cancel)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCaption<'a, P0>(&self, bstrcaption: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetCaption)(::windows::core::Interface::as_raw(self), bstrcaption.into().abi()).ok() + pub unsafe fn SetCaption(&self, bstrcaption: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetCaption)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcaption)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Caption(&self) -> ::windows::core::Result { + pub unsafe fn Caption(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Caption)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Caption)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn put_Property<'a, P0>(&self, bstrpropertyname: P0, pvproperty: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.put_Property)(::windows::core::Interface::as_raw(self), bstrpropertyname.into().abi(), ::core::mem::transmute(pvproperty)).ok() + pub unsafe fn put_Property(&self, bstrpropertyname: &::windows::core::BSTR, pvproperty: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.put_Property)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpropertyname), ::core::mem::transmute(pvproperty)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn get_Property<'a, P0>(&self, bstrpropertyname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn get_Property(&self, bstrpropertyname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_Property)(::windows::core::Interface::as_raw(self), bstrpropertyname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_Property)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpropertyname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn SetWizardButtons(&self, vfenableback: i16, vfenablenext: i16, vflastpage: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetWizardButtons)(::windows::core::Interface::as_raw(self), vfenableback, vfenablenext, vflastpage).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetHeaderText<'a, P0, P1>(&self, bstrheadertitle: P0, bstrheadersubtitle: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetHeaderText)(::windows::core::Interface::as_raw(self), bstrheadertitle.into().abi(), bstrheadersubtitle.into().abi()).ok() + pub unsafe fn SetHeaderText(&self, bstrheadertitle: &::windows::core::BSTR, bstrheadersubtitle: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetHeaderText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrheadertitle), ::core::mem::transmute_copy(bstrheadersubtitle)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PassportAuthenticate<'a, P0>(&self, bstrsigninurl: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn PassportAuthenticate(&self, bstrsigninurl: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PassportAuthenticate)(::windows::core::Interface::as_raw(self), bstrsigninurl.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PassportAuthenticate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsigninurl), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -30459,10 +30349,7 @@ unsafe impl ::windows::core::Interface for INewWDEvents { #[doc(hidden)] pub struct INewWDEvents_Vtbl { pub base__: IWebWizardHost_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub PassportAuthenticate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsigninurl: ::core::mem::ManuallyDrop, pvfauthenitcated: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PassportAuthenticate: usize, + pub PassportAuthenticate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsigninurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvfauthenitcated: *mut i16) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] #[repr(transparent)] @@ -33960,17 +33847,13 @@ impl IScriptErrorList { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).getErrorCode)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getErrorMsg(&self) -> ::windows::core::Result { + pub unsafe fn getErrorMsg(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getErrorMsg)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getErrorMsg)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn getErrorUrl(&self) -> ::windows::core::Result { + pub unsafe fn getErrorUrl(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).getErrorUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).getErrorUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -34086,14 +33969,8 @@ pub struct IScriptErrorList_Vtbl { pub getErrorLine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plline: *mut i32) -> ::windows::core::HRESULT, pub getErrorChar: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plchar: *mut i32) -> ::windows::core::HRESULT, pub getErrorCode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plcode: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub getErrorMsg: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstr: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getErrorMsg: usize, - #[cfg(feature = "Win32_Foundation")] - pub getErrorUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstr: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - getErrorUrl: usize, + pub getErrorMsg: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub getErrorUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub getAlwaysShowLockState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfalwaysshowlocked: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -34177,17 +34054,13 @@ pub struct ISearchBoxInfo_Vtbl { #[repr(transparent)] pub struct ISearchContext(::windows::core::IUnknown); impl ISearchContext { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetSearchUrl(&self) -> ::windows::core::Result { + pub unsafe fn GetSearchUrl(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetSearchUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetSearchUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetSearchText(&self) -> ::windows::core::Result { + pub unsafe fn GetSearchText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetSearchText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetSearchText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetSearchStyle(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -34233,14 +34106,8 @@ unsafe impl ::windows::core::Interface for ISearchContext { #[doc(hidden)] pub struct ISearchContext_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetSearchUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsearchurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetSearchUrl: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetSearchText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsearchtext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetSearchText: usize, + pub GetSearchUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsearchurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetSearchText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsearchtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetSearchStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwsearchstyle: *mut u32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] @@ -34993,13 +34860,12 @@ impl IShellDispatch { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn BrowseForFolder<'a, P0, P1>(&self, hwnd: i32, title: P0, options: i32, rootfolder: P1) -> ::windows::core::Result + pub unsafe fn BrowseForFolder<'a, P0>(&self, hwnd: i32, title: &::windows::core::BSTR, options: i32, rootfolder: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).BrowseForFolder)(::windows::core::Interface::as_raw(self), hwnd, title.into().abi(), options, rootfolder.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).BrowseForFolder)(::windows::core::Interface::as_raw(self), hwnd, ::core::mem::transmute_copy(title), options, rootfolder.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -35068,13 +34934,8 @@ impl IShellDispatch { pub unsafe fn RefreshMenu(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RefreshMenu)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ControlPanelItem<'a, P0>(&self, bstrdir: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ControlPanelItem)(::windows::core::Interface::as_raw(self), bstrdir.into().abi()).ok() + pub unsafe fn ControlPanelItem(&self, bstrdir: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ControlPanelItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdir)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -35156,7 +35017,7 @@ pub struct IShellDispatch_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] NameSpace: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub BrowseForFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: i32, title: ::core::mem::ManuallyDrop, options: i32, rootfolder: ::core::mem::ManuallyDrop, ppsdf: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub BrowseForFolder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwnd: i32, title: ::core::mem::ManuallyDrop<::windows::core::BSTR>, options: i32, rootfolder: ::core::mem::ManuallyDrop, ppsdf: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] BrowseForFolder: usize, #[cfg(feature = "Win32_System_Com")] @@ -35186,10 +35047,7 @@ pub struct IShellDispatch_Vtbl { pub FindFiles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub FindComputer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub RefreshMenu: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub ControlPanelItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdir: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ControlPanelItem: usize, + pub ControlPanelItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrdir: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -35220,13 +35078,12 @@ impl IShellDispatch2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn BrowseForFolder<'a, P0, P1>(&self, hwnd: i32, title: P0, options: i32, rootfolder: P1) -> ::windows::core::Result + pub unsafe fn BrowseForFolder<'a, P0>(&self, hwnd: i32, title: &::windows::core::BSTR, options: i32, rootfolder: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.BrowseForFolder)(::windows::core::Interface::as_raw(self), hwnd, title.into().abi(), options, rootfolder.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.BrowseForFolder)(::windows::core::Interface::as_raw(self), hwnd, ::core::mem::transmute_copy(title), options, rootfolder.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -35295,102 +35152,71 @@ impl IShellDispatch2 { pub unsafe fn RefreshMenu(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.RefreshMenu)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ControlPanelItem<'a, P0>(&self, bstrdir: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.ControlPanelItem)(::windows::core::Interface::as_raw(self), bstrdir.into().abi()).ok() + pub unsafe fn ControlPanelItem(&self, bstrdir: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.ControlPanelItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdir)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsRestricted<'a, P0, P1>(&self, group: P0, restriction: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsRestricted(&self, group: &::windows::core::BSTR, restriction: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).IsRestricted)(::windows::core::Interface::as_raw(self), group.into().abi(), restriction.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).IsRestricted)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(group), ::core::mem::transmute_copy(restriction), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ShellExecute<'a, P0, P1, P2, P3, P4>(&self, file: P0, vargs: P1, vdir: P2, voperation: P3, vshow: P4) -> ::windows::core::Result<()> + pub unsafe fn ShellExecute<'a, P0, P1, P2, P3>(&self, file: &::windows::core::BSTR, vargs: P0, vdir: P1, voperation: P2, vshow: P3) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).ShellExecute)(::windows::core::Interface::as_raw(self), file.into().abi(), vargs.into().abi(), vdir.into().abi(), voperation.into().abi(), vshow.into().abi()).ok() + (::windows::core::Interface::vtable(self).ShellExecute)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(file), vargs.into().abi(), vdir.into().abi(), voperation.into().abi(), vshow.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FindPrinter<'a, P0, P1, P2>(&self, name: P0, location: P1, model: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).FindPrinter)(::windows::core::Interface::as_raw(self), name.into().abi(), location.into().abi(), model.into().abi()).ok() + pub unsafe fn FindPrinter(&self, name: &::windows::core::BSTR, location: &::windows::core::BSTR, model: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).FindPrinter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute_copy(location), ::core::mem::transmute_copy(model)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetSystemInformation<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetSystemInformation(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetSystemInformation)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetSystemInformation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ServiceStart<'a, P0, P1>(&self, servicename: P0, persistent: P1) -> ::windows::core::Result + pub unsafe fn ServiceStart<'a, P0>(&self, servicename: &::windows::core::BSTR, persistent: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ServiceStart)(::windows::core::Interface::as_raw(self), servicename.into().abi(), persistent.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ServiceStart)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(servicename), persistent.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ServiceStop<'a, P0, P1>(&self, servicename: P0, persistent: P1) -> ::windows::core::Result + pub unsafe fn ServiceStop<'a, P0>(&self, servicename: &::windows::core::BSTR, persistent: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ServiceStop)(::windows::core::Interface::as_raw(self), servicename.into().abi(), persistent.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ServiceStop)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(servicename), persistent.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn IsServiceRunning<'a, P0>(&self, servicename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsServiceRunning(&self, servicename: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).IsServiceRunning)(::windows::core::Interface::as_raw(self), servicename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).IsServiceRunning)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(servicename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CanStartStopService<'a, P0>(&self, servicename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn CanStartStopService(&self, servicename: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CanStartStopService)(::windows::core::Interface::as_raw(self), servicename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CanStartStopService)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(servicename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ShowBrowserBar<'a, P0, P1>(&self, bstrclsid: P0, bshow: P1) -> ::windows::core::Result + pub unsafe fn ShowBrowserBar<'a, P0>(&self, bstrclsid: &::windows::core::BSTR, bshow: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ShowBrowserBar)(::windows::core::Interface::as_raw(self), bstrclsid.into().abi(), bshow.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ShowBrowserBar)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrclsid), bshow.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -35477,40 +35303,34 @@ unsafe impl ::windows::core::Interface for IShellDispatch2 { #[doc(hidden)] pub struct IShellDispatch2_Vtbl { pub base__: IShellDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub IsRestricted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, group: ::core::mem::ManuallyDrop, restriction: ::core::mem::ManuallyDrop, plrestrictvalue: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - IsRestricted: usize, + pub IsRestricted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, group: ::core::mem::ManuallyDrop<::windows::core::BSTR>, restriction: ::core::mem::ManuallyDrop<::windows::core::BSTR>, plrestrictvalue: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub ShellExecute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, file: ::core::mem::ManuallyDrop, vargs: ::core::mem::ManuallyDrop, vdir: ::core::mem::ManuallyDrop, voperation: ::core::mem::ManuallyDrop, vshow: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub ShellExecute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, file: ::core::mem::ManuallyDrop<::windows::core::BSTR>, vargs: ::core::mem::ManuallyDrop, vdir: ::core::mem::ManuallyDrop, voperation: ::core::mem::ManuallyDrop, vshow: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] ShellExecute: usize, - #[cfg(feature = "Win32_Foundation")] - pub FindPrinter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, location: ::core::mem::ManuallyDrop, model: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FindPrinter: usize, + pub FindPrinter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, location: ::core::mem::ManuallyDrop<::windows::core::BSTR>, model: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetSystemInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, pv: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetSystemInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pv: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetSystemInformation: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub ServiceStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, servicename: ::core::mem::ManuallyDrop, persistent: ::core::mem::ManuallyDrop, psuccess: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub ServiceStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, servicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, persistent: ::core::mem::ManuallyDrop, psuccess: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] ServiceStart: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub ServiceStop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, servicename: ::core::mem::ManuallyDrop, persistent: ::core::mem::ManuallyDrop, psuccess: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub ServiceStop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, servicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, persistent: ::core::mem::ManuallyDrop, psuccess: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] ServiceStop: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub IsServiceRunning: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, servicename: ::core::mem::ManuallyDrop, prunning: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub IsServiceRunning: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, servicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, prunning: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] IsServiceRunning: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub CanStartStopService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, servicename: ::core::mem::ManuallyDrop, pcanstartstop: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub CanStartStopService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, servicename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pcanstartstop: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] CanStartStopService: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub ShowBrowserBar: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrclsid: ::core::mem::ManuallyDrop, bshow: ::core::mem::ManuallyDrop, psuccess: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub ShowBrowserBar: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrclsid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bshow: ::core::mem::ManuallyDrop, psuccess: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] ShowBrowserBar: usize, } @@ -35543,13 +35363,12 @@ impl IShellDispatch3 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn BrowseForFolder<'a, P0, P1>(&self, hwnd: i32, title: P0, options: i32, rootfolder: P1) -> ::windows::core::Result + pub unsafe fn BrowseForFolder<'a, P0>(&self, hwnd: i32, title: &::windows::core::BSTR, options: i32, rootfolder: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.BrowseForFolder)(::windows::core::Interface::as_raw(self), hwnd, title.into().abi(), options, rootfolder.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.BrowseForFolder)(::windows::core::Interface::as_raw(self), hwnd, ::core::mem::transmute_copy(title), options, rootfolder.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -35618,111 +35437,79 @@ impl IShellDispatch3 { pub unsafe fn RefreshMenu(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.RefreshMenu)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ControlPanelItem<'a, P0>(&self, bstrdir: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.ControlPanelItem)(::windows::core::Interface::as_raw(self), bstrdir.into().abi()).ok() + pub unsafe fn ControlPanelItem(&self, bstrdir: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.ControlPanelItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdir)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsRestricted<'a, P0, P1>(&self, group: P0, restriction: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsRestricted(&self, group: &::windows::core::BSTR, restriction: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.IsRestricted)(::windows::core::Interface::as_raw(self), group.into().abi(), restriction.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.IsRestricted)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(group), ::core::mem::transmute_copy(restriction), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ShellExecute<'a, P0, P1, P2, P3, P4>(&self, file: P0, vargs: P1, vdir: P2, voperation: P3, vshow: P4) -> ::windows::core::Result<()> + pub unsafe fn ShellExecute<'a, P0, P1, P2, P3>(&self, file: &::windows::core::BSTR, vargs: P0, vdir: P1, voperation: P2, vshow: P3) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.ShellExecute)(::windows::core::Interface::as_raw(self), file.into().abi(), vargs.into().abi(), vdir.into().abi(), voperation.into().abi(), vshow.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.ShellExecute)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(file), vargs.into().abi(), vdir.into().abi(), voperation.into().abi(), vshow.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FindPrinter<'a, P0, P1, P2>(&self, name: P0, location: P1, model: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.FindPrinter)(::windows::core::Interface::as_raw(self), name.into().abi(), location.into().abi(), model.into().abi()).ok() + pub unsafe fn FindPrinter(&self, name: &::windows::core::BSTR, location: &::windows::core::BSTR, model: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.FindPrinter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute_copy(location), ::core::mem::transmute_copy(model)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetSystemInformation<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetSystemInformation(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetSystemInformation)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetSystemInformation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ServiceStart<'a, P0, P1>(&self, servicename: P0, persistent: P1) -> ::windows::core::Result + pub unsafe fn ServiceStart<'a, P0>(&self, servicename: &::windows::core::BSTR, persistent: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ServiceStart)(::windows::core::Interface::as_raw(self), servicename.into().abi(), persistent.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ServiceStart)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(servicename), persistent.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ServiceStop<'a, P0, P1>(&self, servicename: P0, persistent: P1) -> ::windows::core::Result + pub unsafe fn ServiceStop<'a, P0>(&self, servicename: &::windows::core::BSTR, persistent: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ServiceStop)(::windows::core::Interface::as_raw(self), servicename.into().abi(), persistent.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ServiceStop)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(servicename), persistent.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn IsServiceRunning<'a, P0>(&self, servicename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsServiceRunning(&self, servicename: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.IsServiceRunning)(::windows::core::Interface::as_raw(self), servicename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.IsServiceRunning)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(servicename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CanStartStopService<'a, P0>(&self, servicename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn CanStartStopService(&self, servicename: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CanStartStopService)(::windows::core::Interface::as_raw(self), servicename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CanStartStopService)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(servicename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ShowBrowserBar<'a, P0, P1>(&self, bstrclsid: P0, bshow: P1) -> ::windows::core::Result + pub unsafe fn ShowBrowserBar<'a, P0>(&self, bstrclsid: &::windows::core::BSTR, bshow: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ShowBrowserBar)(::windows::core::Interface::as_raw(self), bstrclsid.into().abi(), bshow.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ShowBrowserBar)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrclsid), bshow.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddToRecent<'a, P0, P1>(&self, varfile: P0, bstrcategory: P1) -> ::windows::core::Result<()> + pub unsafe fn AddToRecent<'a, P0>(&self, varfile: P0, bstrcategory: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).AddToRecent)(::windows::core::Interface::as_raw(self), varfile.into().abi(), bstrcategory.into().abi()).ok() + (::windows::core::Interface::vtable(self).AddToRecent)(::windows::core::Interface::as_raw(self), varfile.into().abi(), ::core::mem::transmute_copy(bstrcategory)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -35828,7 +35615,7 @@ unsafe impl ::windows::core::Interface for IShellDispatch3 { pub struct IShellDispatch3_Vtbl { pub base__: IShellDispatch2_Vtbl, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddToRecent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varfile: ::core::mem::ManuallyDrop, bstrcategory: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub AddToRecent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, varfile: ::core::mem::ManuallyDrop, bstrcategory: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddToRecent: usize, } @@ -35861,13 +35648,12 @@ impl IShellDispatch4 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn BrowseForFolder<'a, P0, P1>(&self, hwnd: i32, title: P0, options: i32, rootfolder: P1) -> ::windows::core::Result + pub unsafe fn BrowseForFolder<'a, P0>(&self, hwnd: i32, title: &::windows::core::BSTR, options: i32, rootfolder: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.BrowseForFolder)(::windows::core::Interface::as_raw(self), hwnd, title.into().abi(), options, rootfolder.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.BrowseForFolder)(::windows::core::Interface::as_raw(self), hwnd, ::core::mem::transmute_copy(title), options, rootfolder.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -35936,111 +35722,79 @@ impl IShellDispatch4 { pub unsafe fn RefreshMenu(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.RefreshMenu)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ControlPanelItem<'a, P0>(&self, bstrdir: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.ControlPanelItem)(::windows::core::Interface::as_raw(self), bstrdir.into().abi()).ok() + pub unsafe fn ControlPanelItem(&self, bstrdir: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.ControlPanelItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdir)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsRestricted<'a, P0, P1>(&self, group: P0, restriction: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsRestricted(&self, group: &::windows::core::BSTR, restriction: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.IsRestricted)(::windows::core::Interface::as_raw(self), group.into().abi(), restriction.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.IsRestricted)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(group), ::core::mem::transmute_copy(restriction), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ShellExecute<'a, P0, P1, P2, P3, P4>(&self, file: P0, vargs: P1, vdir: P2, voperation: P3, vshow: P4) -> ::windows::core::Result<()> + pub unsafe fn ShellExecute<'a, P0, P1, P2, P3>(&self, file: &::windows::core::BSTR, vargs: P0, vdir: P1, voperation: P2, vshow: P3) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.ShellExecute)(::windows::core::Interface::as_raw(self), file.into().abi(), vargs.into().abi(), vdir.into().abi(), voperation.into().abi(), vshow.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.ShellExecute)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(file), vargs.into().abi(), vdir.into().abi(), voperation.into().abi(), vshow.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FindPrinter<'a, P0, P1, P2>(&self, name: P0, location: P1, model: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.FindPrinter)(::windows::core::Interface::as_raw(self), name.into().abi(), location.into().abi(), model.into().abi()).ok() + pub unsafe fn FindPrinter(&self, name: &::windows::core::BSTR, location: &::windows::core::BSTR, model: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.FindPrinter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute_copy(location), ::core::mem::transmute_copy(model)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetSystemInformation<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetSystemInformation(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetSystemInformation)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetSystemInformation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ServiceStart<'a, P0, P1>(&self, servicename: P0, persistent: P1) -> ::windows::core::Result + pub unsafe fn ServiceStart<'a, P0>(&self, servicename: &::windows::core::BSTR, persistent: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.ServiceStart)(::windows::core::Interface::as_raw(self), servicename.into().abi(), persistent.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.ServiceStart)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(servicename), persistent.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ServiceStop<'a, P0, P1>(&self, servicename: P0, persistent: P1) -> ::windows::core::Result + pub unsafe fn ServiceStop<'a, P0>(&self, servicename: &::windows::core::BSTR, persistent: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.ServiceStop)(::windows::core::Interface::as_raw(self), servicename.into().abi(), persistent.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.ServiceStop)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(servicename), persistent.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn IsServiceRunning<'a, P0>(&self, servicename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsServiceRunning(&self, servicename: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.IsServiceRunning)(::windows::core::Interface::as_raw(self), servicename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.IsServiceRunning)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(servicename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CanStartStopService<'a, P0>(&self, servicename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn CanStartStopService(&self, servicename: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CanStartStopService)(::windows::core::Interface::as_raw(self), servicename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CanStartStopService)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(servicename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ShowBrowserBar<'a, P0, P1>(&self, bstrclsid: P0, bshow: P1) -> ::windows::core::Result + pub unsafe fn ShowBrowserBar<'a, P0>(&self, bstrclsid: &::windows::core::BSTR, bshow: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.ShowBrowserBar)(::windows::core::Interface::as_raw(self), bstrclsid.into().abi(), bshow.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.ShowBrowserBar)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrclsid), bshow.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddToRecent<'a, P0, P1>(&self, varfile: P0, bstrcategory: P1) -> ::windows::core::Result<()> + pub unsafe fn AddToRecent<'a, P0>(&self, varfile: P0, bstrcategory: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.AddToRecent)(::windows::core::Interface::as_raw(self), varfile.into().abi(), bstrcategory.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.AddToRecent)(::windows::core::Interface::as_raw(self), varfile.into().abi(), ::core::mem::transmute_copy(bstrcategory)).ok() } pub unsafe fn WindowsSecurity(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).WindowsSecurity)(::windows::core::Interface::as_raw(self)).ok() @@ -36050,12 +35804,9 @@ impl IShellDispatch4 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ExplorerPolicy<'a, P0>(&self, bstrpolicyname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn ExplorerPolicy(&self, bstrpolicyname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ExplorerPolicy)(::windows::core::Interface::as_raw(self), bstrpolicyname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ExplorerPolicy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpolicyname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn GetSetting(&self, lsetting: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -36185,7 +35936,7 @@ pub struct IShellDispatch4_Vtbl { pub WindowsSecurity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub ToggleDesktop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub ExplorerPolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpolicyname: ::core::mem::ManuallyDrop, pvalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub ExplorerPolicy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpolicyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] ExplorerPolicy: usize, pub GetSetting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, lsetting: i32, presult: *mut i16) -> ::windows::core::HRESULT, @@ -36219,13 +35970,12 @@ impl IShellDispatch5 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn BrowseForFolder<'a, P0, P1>(&self, hwnd: i32, title: P0, options: i32, rootfolder: P1) -> ::windows::core::Result + pub unsafe fn BrowseForFolder<'a, P0>(&self, hwnd: i32, title: &::windows::core::BSTR, options: i32, rootfolder: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.BrowseForFolder)(::windows::core::Interface::as_raw(self), hwnd, title.into().abi(), options, rootfolder.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.BrowseForFolder)(::windows::core::Interface::as_raw(self), hwnd, ::core::mem::transmute_copy(title), options, rootfolder.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -36294,111 +36044,79 @@ impl IShellDispatch5 { pub unsafe fn RefreshMenu(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.RefreshMenu)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ControlPanelItem<'a, P0>(&self, bstrdir: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.ControlPanelItem)(::windows::core::Interface::as_raw(self), bstrdir.into().abi()).ok() + pub unsafe fn ControlPanelItem(&self, bstrdir: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.ControlPanelItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdir)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsRestricted<'a, P0, P1>(&self, group: P0, restriction: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsRestricted(&self, group: &::windows::core::BSTR, restriction: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.IsRestricted)(::windows::core::Interface::as_raw(self), group.into().abi(), restriction.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.IsRestricted)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(group), ::core::mem::transmute_copy(restriction), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ShellExecute<'a, P0, P1, P2, P3, P4>(&self, file: P0, vargs: P1, vdir: P2, voperation: P3, vshow: P4) -> ::windows::core::Result<()> + pub unsafe fn ShellExecute<'a, P0, P1, P2, P3>(&self, file: &::windows::core::BSTR, vargs: P0, vdir: P1, voperation: P2, vshow: P3) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.base__.ShellExecute)(::windows::core::Interface::as_raw(self), file.into().abi(), vargs.into().abi(), vdir.into().abi(), voperation.into().abi(), vshow.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.base__.ShellExecute)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(file), vargs.into().abi(), vdir.into().abi(), voperation.into().abi(), vshow.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FindPrinter<'a, P0, P1, P2>(&self, name: P0, location: P1, model: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.FindPrinter)(::windows::core::Interface::as_raw(self), name.into().abi(), location.into().abi(), model.into().abi()).ok() + pub unsafe fn FindPrinter(&self, name: &::windows::core::BSTR, location: &::windows::core::BSTR, model: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.FindPrinter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute_copy(location), ::core::mem::transmute_copy(model)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetSystemInformation<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetSystemInformation(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.GetSystemInformation)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.GetSystemInformation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ServiceStart<'a, P0, P1>(&self, servicename: P0, persistent: P1) -> ::windows::core::Result + pub unsafe fn ServiceStart<'a, P0>(&self, servicename: &::windows::core::BSTR, persistent: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.ServiceStart)(::windows::core::Interface::as_raw(self), servicename.into().abi(), persistent.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.ServiceStart)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(servicename), persistent.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ServiceStop<'a, P0, P1>(&self, servicename: P0, persistent: P1) -> ::windows::core::Result + pub unsafe fn ServiceStop<'a, P0>(&self, servicename: &::windows::core::BSTR, persistent: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.ServiceStop)(::windows::core::Interface::as_raw(self), servicename.into().abi(), persistent.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.ServiceStop)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(servicename), persistent.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn IsServiceRunning<'a, P0>(&self, servicename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsServiceRunning(&self, servicename: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.IsServiceRunning)(::windows::core::Interface::as_raw(self), servicename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.IsServiceRunning)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(servicename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CanStartStopService<'a, P0>(&self, servicename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn CanStartStopService(&self, servicename: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.CanStartStopService)(::windows::core::Interface::as_raw(self), servicename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.CanStartStopService)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(servicename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ShowBrowserBar<'a, P0, P1>(&self, bstrclsid: P0, bshow: P1) -> ::windows::core::Result + pub unsafe fn ShowBrowserBar<'a, P0>(&self, bstrclsid: &::windows::core::BSTR, bshow: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.ShowBrowserBar)(::windows::core::Interface::as_raw(self), bstrclsid.into().abi(), bshow.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.ShowBrowserBar)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrclsid), bshow.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddToRecent<'a, P0, P1>(&self, varfile: P0, bstrcategory: P1) -> ::windows::core::Result<()> + pub unsafe fn AddToRecent<'a, P0>(&self, varfile: P0, bstrcategory: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.base__.AddToRecent)(::windows::core::Interface::as_raw(self), varfile.into().abi(), bstrcategory.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.AddToRecent)(::windows::core::Interface::as_raw(self), varfile.into().abi(), ::core::mem::transmute_copy(bstrcategory)).ok() } pub unsafe fn WindowsSecurity(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.WindowsSecurity)(::windows::core::Interface::as_raw(self)).ok() @@ -36408,12 +36126,9 @@ impl IShellDispatch5 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ExplorerPolicy<'a, P0>(&self, bstrpolicyname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn ExplorerPolicy(&self, bstrpolicyname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ExplorerPolicy)(::windows::core::Interface::as_raw(self), bstrpolicyname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ExplorerPolicy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpolicyname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn GetSetting(&self, lsetting: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -36592,13 +36307,12 @@ impl IShellDispatch6 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn BrowseForFolder<'a, P0, P1>(&self, hwnd: i32, title: P0, options: i32, rootfolder: P1) -> ::windows::core::Result + pub unsafe fn BrowseForFolder<'a, P0>(&self, hwnd: i32, title: &::windows::core::BSTR, options: i32, rootfolder: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.BrowseForFolder)(::windows::core::Interface::as_raw(self), hwnd, title.into().abi(), options, rootfolder.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.BrowseForFolder)(::windows::core::Interface::as_raw(self), hwnd, ::core::mem::transmute_copy(title), options, rootfolder.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -36667,111 +36381,79 @@ impl IShellDispatch6 { pub unsafe fn RefreshMenu(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.RefreshMenu)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ControlPanelItem<'a, P0>(&self, bstrdir: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.ControlPanelItem)(::windows::core::Interface::as_raw(self), bstrdir.into().abi()).ok() + pub unsafe fn ControlPanelItem(&self, bstrdir: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.ControlPanelItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrdir)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsRestricted<'a, P0, P1>(&self, group: P0, restriction: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsRestricted(&self, group: &::windows::core::BSTR, restriction: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.IsRestricted)(::windows::core::Interface::as_raw(self), group.into().abi(), restriction.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.IsRestricted)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(group), ::core::mem::transmute_copy(restriction), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ShellExecute<'a, P0, P1, P2, P3, P4>(&self, file: P0, vargs: P1, vdir: P2, voperation: P3, vshow: P4) -> ::windows::core::Result<()> + pub unsafe fn ShellExecute<'a, P0, P1, P2, P3>(&self, file: &::windows::core::BSTR, vargs: P0, vdir: P1, voperation: P2, vshow: P3) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.ShellExecute)(::windows::core::Interface::as_raw(self), file.into().abi(), vargs.into().abi(), vdir.into().abi(), voperation.into().abi(), vshow.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.ShellExecute)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(file), vargs.into().abi(), vdir.into().abi(), voperation.into().abi(), vshow.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FindPrinter<'a, P0, P1, P2>(&self, name: P0, location: P1, model: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.FindPrinter)(::windows::core::Interface::as_raw(self), name.into().abi(), location.into().abi(), model.into().abi()).ok() + pub unsafe fn FindPrinter(&self, name: &::windows::core::BSTR, location: &::windows::core::BSTR, model: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.FindPrinter)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute_copy(location), ::core::mem::transmute_copy(model)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetSystemInformation<'a, P0>(&self, name: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetSystemInformation(&self, name: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.GetSystemInformation)(::windows::core::Interface::as_raw(self), name.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.GetSystemInformation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ServiceStart<'a, P0, P1>(&self, servicename: P0, persistent: P1) -> ::windows::core::Result + pub unsafe fn ServiceStart<'a, P0>(&self, servicename: &::windows::core::BSTR, persistent: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.ServiceStart)(::windows::core::Interface::as_raw(self), servicename.into().abi(), persistent.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.ServiceStart)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(servicename), persistent.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ServiceStop<'a, P0, P1>(&self, servicename: P0, persistent: P1) -> ::windows::core::Result + pub unsafe fn ServiceStop<'a, P0>(&self, servicename: &::windows::core::BSTR, persistent: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.ServiceStop)(::windows::core::Interface::as_raw(self), servicename.into().abi(), persistent.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.ServiceStop)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(servicename), persistent.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn IsServiceRunning<'a, P0>(&self, servicename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsServiceRunning(&self, servicename: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.IsServiceRunning)(::windows::core::Interface::as_raw(self), servicename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.IsServiceRunning)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(servicename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn CanStartStopService<'a, P0>(&self, servicename: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn CanStartStopService(&self, servicename: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CanStartStopService)(::windows::core::Interface::as_raw(self), servicename.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CanStartStopService)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(servicename), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ShowBrowserBar<'a, P0, P1>(&self, bstrclsid: P0, bshow: P1) -> ::windows::core::Result + pub unsafe fn ShowBrowserBar<'a, P0>(&self, bstrclsid: &::windows::core::BSTR, bshow: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.ShowBrowserBar)(::windows::core::Interface::as_raw(self), bstrclsid.into().abi(), bshow.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.ShowBrowserBar)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrclsid), bshow.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddToRecent<'a, P0, P1>(&self, varfile: P0, bstrcategory: P1) -> ::windows::core::Result<()> + pub unsafe fn AddToRecent<'a, P0>(&self, varfile: P0, bstrcategory: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).base__.base__.base__.AddToRecent)(::windows::core::Interface::as_raw(self), varfile.into().abi(), bstrcategory.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.base__.AddToRecent)(::windows::core::Interface::as_raw(self), varfile.into().abi(), ::core::mem::transmute_copy(bstrcategory)).ok() } pub unsafe fn WindowsSecurity(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.WindowsSecurity)(::windows::core::Interface::as_raw(self)).ok() @@ -36781,12 +36463,9 @@ impl IShellDispatch6 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ExplorerPolicy<'a, P0>(&self, bstrpolicyname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn ExplorerPolicy(&self, bstrpolicyname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.ExplorerPolicy)(::windows::core::Interface::as_raw(self), bstrpolicyname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.ExplorerPolicy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpolicyname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn GetSetting(&self, lsetting: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -37042,13 +36721,8 @@ impl IShellFavoritesNameSpace { pub unsafe fn Export(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Export)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InvokeContextMenuCommand<'a, P0>(&self, strcommand: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).InvokeContextMenuCommand)(::windows::core::Interface::as_raw(self), strcommand.into().abi()).ok() + pub unsafe fn InvokeContextMenuCommand(&self, strcommand: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).InvokeContextMenuCommand)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strcommand)).ok() } pub unsafe fn MoveSelectionTo(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).MoveSelectionTo)(::windows::core::Interface::as_raw(self)).ok() @@ -37065,13 +36739,8 @@ impl IShellFavoritesNameSpace { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).DeleteSubscriptionForSelection)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRoot<'a, P0>(&self, bstrfullpath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetRoot)(::windows::core::Interface::as_raw(self), bstrfullpath.into().abi()).ok() + pub unsafe fn SetRoot(&self, bstrfullpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetRoot)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrfullpath)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -37147,18 +36816,12 @@ pub struct IShellFavoritesNameSpace_Vtbl { pub Synchronize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Import: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Export: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub InvokeContextMenuCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strcommand: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - InvokeContextMenuCommand: usize, + pub InvokeContextMenuCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strcommand: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub MoveSelectionTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub SubscriptionsEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbool: *mut i16) -> ::windows::core::HRESULT, pub CreateSubscriptionForSelection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbool: *mut i16) -> ::windows::core::HRESULT, pub DeleteSubscriptionForSelection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbool: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetRoot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfullpath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetRoot: usize, + pub SetRoot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfullpath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] #[repr(transparent)] @@ -37989,14 +37652,14 @@ impl IShellFolderViewDual { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn PopupItemMenu<'a, P0, P1, P2>(&self, pfi: P0, vx: P1, vy: P2) -> ::windows::core::Result + pub unsafe fn PopupItemMenu<'a, P0, P1, P2>(&self, pfi: P0, vx: P1, vy: P2) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, FolderItem>>, P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PopupItemMenu)(::windows::core::Interface::as_raw(self), pfi.into().abi(), vx.into().abi(), vy.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PopupItemMenu)(::windows::core::Interface::as_raw(self), pfi.into().abi(), vx.into().abi(), vy.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -38100,7 +37763,7 @@ pub struct IShellFolderViewDual_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SelectItem: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub PopupItemMenu: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfi: *mut ::core::ffi::c_void, vx: ::core::mem::ManuallyDrop, vy: ::core::mem::ManuallyDrop, pbs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, + pub PopupItemMenu: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfi: *mut ::core::ffi::c_void, vx: ::core::mem::ManuallyDrop, vy: ::core::mem::ManuallyDrop, pbs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] PopupItemMenu: usize, #[cfg(feature = "Win32_System_Com")] @@ -38152,14 +37815,14 @@ impl IShellFolderViewDual2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn PopupItemMenu<'a, P0, P1, P2>(&self, pfi: P0, vx: P1, vy: P2) -> ::windows::core::Result + pub unsafe fn PopupItemMenu<'a, P0, P1, P2>(&self, pfi: P0, vx: P1, vy: P2) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, FolderItem>>, P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.PopupItemMenu)(::windows::core::Interface::as_raw(self), pfi.into().abi(), vx.into().abi(), vy.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.PopupItemMenu)(::windows::core::Interface::as_raw(self), pfi.into().abi(), vx.into().abi(), vy.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -38313,14 +37976,14 @@ impl IShellFolderViewDual3 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn PopupItemMenu<'a, P0, P1, P2>(&self, pfi: P0, vx: P1, vy: P2) -> ::windows::core::Result + pub unsafe fn PopupItemMenu<'a, P0, P1, P2>(&self, pfi: P0, vx: P1, vy: P2) -> ::windows::core::Result<::windows::core::BSTR> where P0: ::std::convert::Into<::windows::core::InParam<'a, FolderItem>>, P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.PopupItemMenu)(::windows::core::Interface::as_raw(self), pfi.into().abi(), vx.into().abi(), vy.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.PopupItemMenu)(::windows::core::Interface::as_raw(self), pfi.into().abi(), vx.into().abi(), vy.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -38342,19 +38005,12 @@ impl IShellFolderViewDual3 { pub unsafe fn SelectItemRelative(&self, irelative: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SelectItemRelative)(::windows::core::Interface::as_raw(self), irelative).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GroupBy(&self) -> ::windows::core::Result { + pub unsafe fn GroupBy(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GroupBy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GroupBy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetGroupBy<'a, P0>(&self, bstrgroupby: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetGroupBy)(::windows::core::Interface::as_raw(self), bstrgroupby.into().abi()).ok() + pub unsafe fn SetGroupBy(&self, bstrgroupby: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetGroupBy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrgroupby)).ok() } pub unsafe fn FolderFlags(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -38363,19 +38019,12 @@ impl IShellFolderViewDual3 { pub unsafe fn SetFolderFlags(&self, dwflags: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetFolderFlags)(::windows::core::Interface::as_raw(self), dwflags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SortColumns(&self) -> ::windows::core::Result { + pub unsafe fn SortColumns(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SortColumns)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SortColumns)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSortColumns<'a, P0>(&self, bstrsortcolumns: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSortColumns)(::windows::core::Interface::as_raw(self), bstrsortcolumns.into().abi()).ok() + pub unsafe fn SetSortColumns(&self, bstrsortcolumns: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSortColumns)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrsortcolumns)).ok() } pub unsafe fn SetIconSize(&self, iiconsize: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetIconSize)(::windows::core::Interface::as_raw(self), iiconsize).ok() @@ -38384,13 +38033,8 @@ impl IShellFolderViewDual3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).IconSize)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FilterView<'a, P0>(&self, bstrfiltertext: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).FilterView)(::windows::core::Interface::as_raw(self), bstrfiltertext.into().abi()).ok() + pub unsafe fn FilterView(&self, bstrfiltertext: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).FilterView)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrfiltertext)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -38495,30 +38139,15 @@ unsafe impl ::windows::core::Interface for IShellFolderViewDual3 { #[doc(hidden)] pub struct IShellFolderViewDual3_Vtbl { pub base__: IShellFolderViewDual2_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub GroupBy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrgroupby: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GroupBy: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetGroupBy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgroupby: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetGroupBy: usize, + pub GroupBy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrgroupby: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetGroupBy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrgroupby: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub FolderFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwflags: *mut u32) -> ::windows::core::HRESULT, pub SetFolderFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SortColumns: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsortcolumns: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SortColumns: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSortColumns: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsortcolumns: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSortColumns: usize, + pub SortColumns: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsortcolumns: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSortColumns: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrsortcolumns: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SetIconSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iiconsize: i32) -> ::windows::core::HRESULT, pub IconSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, piiconsize: *mut i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub FilterView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfiltertext: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FilterView: usize, + pub FilterView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrfiltertext: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] #[repr(transparent)] @@ -40134,61 +39763,33 @@ pub struct IShellLinkDataList_Vtbl { pub struct IShellLinkDual(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IShellLinkDual { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Path(&self) -> ::windows::core::Result { + pub unsafe fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPath<'a, P0>(&self, bs: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPath)(::windows::core::Interface::as_raw(self), bs.into().abi()).ok() + pub unsafe fn SetPath(&self, bs: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bs)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bs: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), bs.into().abi()).ok() + pub unsafe fn SetDescription(&self, bs: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bs)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn WorkingDirectory(&self) -> ::windows::core::Result { + pub unsafe fn WorkingDirectory(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).WorkingDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).WorkingDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetWorkingDirectory<'a, P0>(&self, bs: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetWorkingDirectory)(::windows::core::Interface::as_raw(self), bs.into().abi()).ok() + pub unsafe fn SetWorkingDirectory(&self, bs: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetWorkingDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bs)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Arguments(&self) -> ::windows::core::Result { + pub unsafe fn Arguments(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Arguments)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Arguments)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetArguments<'a, P0>(&self, bs: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetArguments)(::windows::core::Interface::as_raw(self), bs.into().abi()).ok() + pub unsafe fn SetArguments(&self, bs: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetArguments)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bs)).ok() } pub unsafe fn Hotkey(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -40207,18 +39808,11 @@ impl IShellLinkDual { pub unsafe fn Resolve(&self, fflags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Resolve)(::windows::core::Interface::as_raw(self), fflags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetIconLocation(&self, pbs: &mut super::super::Foundation::BSTR, piicon: &mut i32) -> ::windows::core::Result<()> { + pub unsafe fn GetIconLocation(&self, pbs: &mut ::windows::core::BSTR, piicon: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetIconLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbs), ::core::mem::transmute(piicon)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetIconLocation<'a, P0>(&self, bs: P0, iicon: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetIconLocation)(::windows::core::Interface::as_raw(self), bs.into().abi(), iicon).ok() + pub unsafe fn SetIconLocation(&self, bs: &::windows::core::BSTR, iicon: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetIconLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bs), iicon).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -40295,51 +39889,21 @@ unsafe impl ::windows::core::Interface for IShellLinkDual { #[doc(hidden)] pub struct IShellLinkDual_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Path: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bs: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPath: usize, - #[cfg(feature = "Win32_Foundation")] - pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Description: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bs: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetDescription: usize, - #[cfg(feature = "Win32_Foundation")] - pub WorkingDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - WorkingDirectory: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetWorkingDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bs: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetWorkingDirectory: usize, - #[cfg(feature = "Win32_Foundation")] - pub Arguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Arguments: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bs: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetArguments: usize, + pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bs: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bs: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub WorkingDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetWorkingDirectory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bs: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Arguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetArguments: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bs: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Hotkey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pihk: *mut i32) -> ::windows::core::HRESULT, pub SetHotkey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ihk: i32) -> ::windows::core::HRESULT, pub ShowCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pishowcommand: *mut i32) -> ::windows::core::HRESULT, pub SetShowCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ishowcommand: i32) -> ::windows::core::HRESULT, pub Resolve: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fflags: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetIconLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbs: *mut super::super::Foundation::BSTR, piicon: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetIconLocation: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetIconLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bs: ::core::mem::ManuallyDrop, iicon: i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetIconLocation: usize, + pub GetIconLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, piicon: *mut i32) -> ::windows::core::HRESULT, + pub SetIconLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bs: ::core::mem::ManuallyDrop<::windows::core::BSTR>, iicon: i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub Save: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vwhere: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -40351,61 +39915,33 @@ pub struct IShellLinkDual_Vtbl { pub struct IShellLinkDual2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IShellLinkDual2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Path(&self) -> ::windows::core::Result { + pub unsafe fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPath<'a, P0>(&self, bs: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetPath)(::windows::core::Interface::as_raw(self), bs.into().abi()).ok() + pub unsafe fn SetPath(&self, bs: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetPath)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bs)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Description(&self) -> ::windows::core::Result { + pub unsafe fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Description)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetDescription<'a, P0>(&self, bs: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), bs.into().abi()).ok() + pub unsafe fn SetDescription(&self, bs: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bs)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn WorkingDirectory(&self) -> ::windows::core::Result { + pub unsafe fn WorkingDirectory(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.WorkingDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.WorkingDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetWorkingDirectory<'a, P0>(&self, bs: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetWorkingDirectory)(::windows::core::Interface::as_raw(self), bs.into().abi()).ok() + pub unsafe fn SetWorkingDirectory(&self, bs: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetWorkingDirectory)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bs)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Arguments(&self) -> ::windows::core::Result { + pub unsafe fn Arguments(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Arguments)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Arguments)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetArguments<'a, P0>(&self, bs: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetArguments)(::windows::core::Interface::as_raw(self), bs.into().abi()).ok() + pub unsafe fn SetArguments(&self, bs: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetArguments)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bs)).ok() } pub unsafe fn Hotkey(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -40424,18 +39960,11 @@ impl IShellLinkDual2 { pub unsafe fn Resolve(&self, fflags: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Resolve)(::windows::core::Interface::as_raw(self), fflags).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetIconLocation(&self, pbs: &mut super::super::Foundation::BSTR, piicon: &mut i32) -> ::windows::core::Result<()> { + pub unsafe fn GetIconLocation(&self, pbs: &mut ::windows::core::BSTR, piicon: &mut i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetIconLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pbs), ::core::mem::transmute(piicon)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetIconLocation<'a, P0>(&self, bs: P0, iicon: i32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetIconLocation)(::windows::core::Interface::as_raw(self), bs.into().abi(), iicon).ok() + pub unsafe fn SetIconLocation(&self, bs: &::windows::core::BSTR, iicon: i32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetIconLocation)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bs), iicon).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -40913,13 +40442,8 @@ impl IShellNameSpace { pub unsafe fn Export(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Export)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn InvokeContextMenuCommand<'a, P0>(&self, strcommand: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.InvokeContextMenuCommand)(::windows::core::Interface::as_raw(self), strcommand.into().abi()).ok() + pub unsafe fn InvokeContextMenuCommand(&self, strcommand: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.InvokeContextMenuCommand)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strcommand)).ok() } pub unsafe fn MoveSelectionTo(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.MoveSelectionTo)(::windows::core::Interface::as_raw(self)).ok() @@ -40936,13 +40460,8 @@ impl IShellNameSpace { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.DeleteSubscriptionForSelection)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetRoot<'a, P0>(&self, bstrfullpath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetRoot)(::windows::core::Interface::as_raw(self), bstrfullpath.into().abi()).ok() + pub unsafe fn SetRoot(&self, bstrfullpath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetRoot)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrfullpath)).ok() } pub unsafe fn EnumOptions(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -41007,19 +40526,12 @@ impl IShellNameSpace { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).TVFlags)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Columns(&self) -> ::windows::core::Result { + pub unsafe fn Columns(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Columns)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Columns)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetColumns<'a, P0>(&self, bstrcolumns: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetColumns)(::windows::core::Interface::as_raw(self), bstrcolumns.into().abi()).ok() + pub unsafe fn SetColumns(&self, bstrcolumns: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetColumns)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcolumns)).ok() } pub unsafe fn CountViewTypes(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -41156,14 +40668,8 @@ pub struct IShellNameSpace_Vtbl { pub SetFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32) -> ::windows::core::HRESULT, pub SetTVFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: u32) -> ::windows::core::HRESULT, pub TVFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dwflags: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Columns: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcolumns: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Columns: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetColumns: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcolumns: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetColumns: usize, + pub Columns: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcolumns: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetColumns: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcolumns: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub CountViewTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pitypes: *mut i32) -> ::windows::core::HRESULT, pub SetViewType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, itype: i32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] @@ -41438,54 +40944,28 @@ impl IShellUIHelper { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddFavorite<'a, P0>(&self, url: P0, title: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AddFavorite)(::windows::core::Interface::as_raw(self), url.into().abi(), ::core::mem::transmute(title)).ok() + pub unsafe fn AddFavorite(&self, url: &::windows::core::BSTR, title: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AddFavorite)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute(title)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddChannel<'a, P0>(&self, url: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AddChannel)(::windows::core::Interface::as_raw(self), url.into().abi()).ok() + pub unsafe fn AddChannel(&self, url: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AddChannel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddDesktopComponent<'a, P0, P1>(&self, url: P0, r#type: P1, left: ::core::option::Option<&super::super::System::Com::VARIANT>, top: ::core::option::Option<&super::super::System::Com::VARIANT>, width: ::core::option::Option<&super::super::System::Com::VARIANT>, height: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AddDesktopComponent)(::windows::core::Interface::as_raw(self), url.into().abi(), r#type.into().abi(), ::core::mem::transmute(left), ::core::mem::transmute(top), ::core::mem::transmute(width), ::core::mem::transmute(height)).ok() + pub unsafe fn AddDesktopComponent(&self, url: &::windows::core::BSTR, r#type: &::windows::core::BSTR, left: ::core::option::Option<&super::super::System::Com::VARIANT>, top: ::core::option::Option<&super::super::System::Com::VARIANT>, width: ::core::option::Option<&super::super::System::Com::VARIANT>, height: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AddDesktopComponent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(r#type), ::core::mem::transmute(left), ::core::mem::transmute(top), ::core::mem::transmute(width), ::core::mem::transmute(height)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsSubscribed<'a, P0>(&self, url: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsSubscribed(&self, url: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).IsSubscribed)(::windows::core::Interface::as_raw(self), url.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).IsSubscribed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn NavigateAndFind<'a, P0, P1>(&self, url: P0, strquery: P1, vartargetframe: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).NavigateAndFind)(::windows::core::Interface::as_raw(self), url.into().abi(), strquery.into().abi(), ::core::mem::transmute(vartargetframe)).ok() + pub unsafe fn NavigateAndFind(&self, url: &::windows::core::BSTR, strquery: &::windows::core::BSTR, vartargetframe: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).NavigateAndFind)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(strquery), ::core::mem::transmute(vartargetframe)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ImportExportFavorites<'a, P0>(&self, fimport: i16, strimpexppath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).ImportExportFavorites)(::windows::core::Interface::as_raw(self), fimport, strimpexppath.into().abi()).ok() + pub unsafe fn ImportExportFavorites(&self, fimport: i16, strimpexppath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).ImportExportFavorites)(::windows::core::Interface::as_raw(self), fimport, ::core::mem::transmute_copy(strimpexppath)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -41494,12 +40974,8 @@ impl IShellUIHelper { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AutoScan<'a, P0, P1>(&self, strsearch: P0, strfailureurl: P1, pvartargetframe: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AutoScan)(::windows::core::Interface::as_raw(self), strsearch.into().abi(), strfailureurl.into().abi(), ::core::mem::transmute(pvartargetframe)).ok() + pub unsafe fn AutoScan(&self, strsearch: &::windows::core::BSTR, strfailureurl: &::windows::core::BSTR, pvartargetframe: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AutoScan)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strsearch), ::core::mem::transmute_copy(strfailureurl), ::core::mem::transmute(pvartargetframe)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -41508,12 +40984,9 @@ impl IShellUIHelper { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ShowBrowserUI<'a, P0>(&self, bstrname: P0, pvarin: &super::super::System::Com::VARIANT) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn ShowBrowserUI(&self, bstrname: &::windows::core::BSTR, pvarin: &super::super::System::Com::VARIANT) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ShowBrowserUI)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(pvarin), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ShowBrowserUI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(pvarin), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -41586,35 +41059,26 @@ pub struct IShellUIHelper_Vtbl { pub ResetSafeMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub RefreshOfflineDesktop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddFavorite: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop, title: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub AddFavorite: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop<::windows::core::BSTR>, title: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddFavorite: usize, - #[cfg(feature = "Win32_Foundation")] - pub AddChannel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddChannel: usize, + pub AddChannel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddDesktopComponent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop, r#type: ::core::mem::ManuallyDrop, left: *const super::super::System::Com::VARIANT, top: *const super::super::System::Com::VARIANT, width: *const super::super::System::Com::VARIANT, height: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub AddDesktopComponent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop<::windows::core::BSTR>, r#type: ::core::mem::ManuallyDrop<::windows::core::BSTR>, left: *const super::super::System::Com::VARIANT, top: *const super::super::System::Com::VARIANT, width: *const super::super::System::Com::VARIANT, height: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddDesktopComponent: usize, - #[cfg(feature = "Win32_Foundation")] - pub IsSubscribed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop, pbool: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - IsSubscribed: usize, + pub IsSubscribed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pbool: *mut i16) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub NavigateAndFind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop, strquery: ::core::mem::ManuallyDrop, vartargetframe: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub NavigateAndFind: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strquery: ::core::mem::ManuallyDrop<::windows::core::BSTR>, vartargetframe: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] NavigateAndFind: usize, - #[cfg(feature = "Win32_Foundation")] - pub ImportExportFavorites: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fimport: i16, strimpexppath: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ImportExportFavorites: usize, + pub ImportExportFavorites: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fimport: i16, strimpexppath: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub AutoCompleteSaveForm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, form: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AutoCompleteSaveForm: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AutoScan: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strsearch: ::core::mem::ManuallyDrop, strfailureurl: ::core::mem::ManuallyDrop, pvartargetframe: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub AutoScan: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strsearch: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strfailureurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvartargetframe: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AutoScan: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -41622,7 +41086,7 @@ pub struct IShellUIHelper_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AutoCompleteAttach: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub ShowBrowserUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, pvarin: *const super::super::System::Com::VARIANT, pvarout: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub ShowBrowserUI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarin: *const super::super::System::Com::VARIANT, pvarout: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] ShowBrowserUI: usize, } @@ -41643,54 +41107,28 @@ impl IShellUIHelper2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddFavorite<'a, P0>(&self, url: P0, title: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.AddFavorite)(::windows::core::Interface::as_raw(self), url.into().abi(), ::core::mem::transmute(title)).ok() + pub unsafe fn AddFavorite(&self, url: &::windows::core::BSTR, title: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.AddFavorite)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute(title)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddChannel<'a, P0>(&self, url: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.AddChannel)(::windows::core::Interface::as_raw(self), url.into().abi()).ok() + pub unsafe fn AddChannel(&self, url: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.AddChannel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddDesktopComponent<'a, P0, P1>(&self, url: P0, r#type: P1, left: ::core::option::Option<&super::super::System::Com::VARIANT>, top: ::core::option::Option<&super::super::System::Com::VARIANT>, width: ::core::option::Option<&super::super::System::Com::VARIANT>, height: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.AddDesktopComponent)(::windows::core::Interface::as_raw(self), url.into().abi(), r#type.into().abi(), ::core::mem::transmute(left), ::core::mem::transmute(top), ::core::mem::transmute(width), ::core::mem::transmute(height)).ok() + pub unsafe fn AddDesktopComponent(&self, url: &::windows::core::BSTR, r#type: &::windows::core::BSTR, left: ::core::option::Option<&super::super::System::Com::VARIANT>, top: ::core::option::Option<&super::super::System::Com::VARIANT>, width: ::core::option::Option<&super::super::System::Com::VARIANT>, height: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.AddDesktopComponent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(r#type), ::core::mem::transmute(left), ::core::mem::transmute(top), ::core::mem::transmute(width), ::core::mem::transmute(height)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsSubscribed<'a, P0>(&self, url: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsSubscribed(&self, url: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.IsSubscribed)(::windows::core::Interface::as_raw(self), url.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.IsSubscribed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn NavigateAndFind<'a, P0, P1>(&self, url: P0, strquery: P1, vartargetframe: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.NavigateAndFind)(::windows::core::Interface::as_raw(self), url.into().abi(), strquery.into().abi(), ::core::mem::transmute(vartargetframe)).ok() + pub unsafe fn NavigateAndFind(&self, url: &::windows::core::BSTR, strquery: &::windows::core::BSTR, vartargetframe: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.NavigateAndFind)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(strquery), ::core::mem::transmute(vartargetframe)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ImportExportFavorites<'a, P0>(&self, fimport: i16, strimpexppath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.ImportExportFavorites)(::windows::core::Interface::as_raw(self), fimport, strimpexppath.into().abi()).ok() + pub unsafe fn ImportExportFavorites(&self, fimport: i16, strimpexppath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.ImportExportFavorites)(::windows::core::Interface::as_raw(self), fimport, ::core::mem::transmute_copy(strimpexppath)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -41699,12 +41137,8 @@ impl IShellUIHelper2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AutoScan<'a, P0, P1>(&self, strsearch: P0, strfailureurl: P1, pvartargetframe: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.AutoScan)(::windows::core::Interface::as_raw(self), strsearch.into().abi(), strfailureurl.into().abi(), ::core::mem::transmute(pvartargetframe)).ok() + pub unsafe fn AutoScan(&self, strsearch: &::windows::core::BSTR, strfailureurl: &::windows::core::BSTR, pvartargetframe: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.AutoScan)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strsearch), ::core::mem::transmute_copy(strfailureurl), ::core::mem::transmute(pvartargetframe)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -41713,20 +41147,12 @@ impl IShellUIHelper2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ShowBrowserUI<'a, P0>(&self, bstrname: P0, pvarin: &super::super::System::Com::VARIANT) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn ShowBrowserUI(&self, bstrname: &::windows::core::BSTR, pvarin: &super::super::System::Com::VARIANT) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.ShowBrowserUI)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(pvarin), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.ShowBrowserUI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(pvarin), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddSearchProvider<'a, P0>(&self, url: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AddSearchProvider)(::windows::core::Interface::as_raw(self), url.into().abi()).ok() + pub unsafe fn AddSearchProvider(&self, url: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AddSearchProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url)).ok() } pub unsafe fn RunOnceShown(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RunOnceShown)(::windows::core::Interface::as_raw(self)).ok() @@ -41734,13 +41160,8 @@ impl IShellUIHelper2 { pub unsafe fn SkipRunOnce(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SkipRunOnce)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CustomizeSettings<'a, P0>(&self, fsqm: i16, fphishing: i16, bstrlocale: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).CustomizeSettings)(::windows::core::Interface::as_raw(self), fsqm, fphishing, bstrlocale.into().abi()).ok() + pub unsafe fn CustomizeSettings(&self, fsqm: i16, fphishing: i16, bstrlocale: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).CustomizeSettings)(::windows::core::Interface::as_raw(self), fsqm, fphishing, ::core::mem::transmute_copy(bstrlocale)).ok() } pub unsafe fn SqmEnabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -41750,11 +41171,9 @@ impl IShellUIHelper2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).PhishingEnabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BrandImageUri(&self) -> ::windows::core::Result { + pub unsafe fn BrandImageUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).BrandImageUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).BrandImageUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SkipTabsWelcome(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SkipTabsWelcome)(::windows::core::Interface::as_raw(self)).ok() @@ -41765,24 +41184,17 @@ impl IShellUIHelper2 { pub unsafe fn CustomizeClearType(&self, fset: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).CustomizeClearType)(::windows::core::Interface::as_raw(self), fset).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsSearchProviderInstalled<'a, P0>(&self, url: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsSearchProviderInstalled(&self, url: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).IsSearchProviderInstalled)(::windows::core::Interface::as_raw(self), url.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).IsSearchProviderInstalled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn IsSearchMigrated(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).IsSearchMigrated)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DefaultSearchProvider(&self) -> ::windows::core::Result { + pub unsafe fn DefaultSearchProvider(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DefaultSearchProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DefaultSearchProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn RunOnceRequiredSettingsComplete(&self, fcomplete: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RunOnceRequiredSettingsComplete)(::windows::core::Interface::as_raw(self), fcomplete).ok() @@ -41791,11 +41203,9 @@ impl IShellUIHelper2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).RunOnceHasShown)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SearchGuideUrl(&self) -> ::windows::core::Result { + pub unsafe fn SearchGuideUrl(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SearchGuideUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SearchGuideUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -41882,40 +41292,22 @@ unsafe impl ::windows::core::Interface for IShellUIHelper2 { #[doc(hidden)] pub struct IShellUIHelper2_Vtbl { pub base__: IShellUIHelper_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub AddSearchProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddSearchProvider: usize, + pub AddSearchProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub RunOnceShown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub SkipRunOnce: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub CustomizeSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fsqm: i16, fphishing: i16, bstrlocale: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CustomizeSettings: usize, + pub CustomizeSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fsqm: i16, fphishing: i16, bstrlocale: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SqmEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfenabled: *mut i16) -> ::windows::core::HRESULT, pub PhishingEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfenabled: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub BrandImageUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstruri: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - BrandImageUri: usize, + pub BrandImageUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstruri: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SkipTabsWelcome: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub DiagnoseConnection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub CustomizeClearType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fset: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub IsSearchProviderInstalled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop, pdwresult: *mut u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - IsSearchProviderInstalled: usize, + pub IsSearchProviderInstalled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwresult: *mut u32) -> ::windows::core::HRESULT, pub IsSearchMigrated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfmigrated: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub DefaultSearchProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DefaultSearchProvider: usize, + pub DefaultSearchProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub RunOnceRequiredSettingsComplete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fcomplete: i16) -> ::windows::core::HRESULT, pub RunOnceHasShown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfshown: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SearchGuideUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SearchGuideUrl: usize, + pub SearchGuideUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -41934,54 +41326,28 @@ impl IShellUIHelper3 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddFavorite<'a, P0>(&self, url: P0, title: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.AddFavorite)(::windows::core::Interface::as_raw(self), url.into().abi(), ::core::mem::transmute(title)).ok() + pub unsafe fn AddFavorite(&self, url: &::windows::core::BSTR, title: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.AddFavorite)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute(title)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddChannel<'a, P0>(&self, url: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.AddChannel)(::windows::core::Interface::as_raw(self), url.into().abi()).ok() + pub unsafe fn AddChannel(&self, url: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.AddChannel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddDesktopComponent<'a, P0, P1>(&self, url: P0, r#type: P1, left: ::core::option::Option<&super::super::System::Com::VARIANT>, top: ::core::option::Option<&super::super::System::Com::VARIANT>, width: ::core::option::Option<&super::super::System::Com::VARIANT>, height: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.AddDesktopComponent)(::windows::core::Interface::as_raw(self), url.into().abi(), r#type.into().abi(), ::core::mem::transmute(left), ::core::mem::transmute(top), ::core::mem::transmute(width), ::core::mem::transmute(height)).ok() + pub unsafe fn AddDesktopComponent(&self, url: &::windows::core::BSTR, r#type: &::windows::core::BSTR, left: ::core::option::Option<&super::super::System::Com::VARIANT>, top: ::core::option::Option<&super::super::System::Com::VARIANT>, width: ::core::option::Option<&super::super::System::Com::VARIANT>, height: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.AddDesktopComponent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(r#type), ::core::mem::transmute(left), ::core::mem::transmute(top), ::core::mem::transmute(width), ::core::mem::transmute(height)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsSubscribed<'a, P0>(&self, url: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsSubscribed(&self, url: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.IsSubscribed)(::windows::core::Interface::as_raw(self), url.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.IsSubscribed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn NavigateAndFind<'a, P0, P1>(&self, url: P0, strquery: P1, vartargetframe: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.NavigateAndFind)(::windows::core::Interface::as_raw(self), url.into().abi(), strquery.into().abi(), ::core::mem::transmute(vartargetframe)).ok() + pub unsafe fn NavigateAndFind(&self, url: &::windows::core::BSTR, strquery: &::windows::core::BSTR, vartargetframe: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.NavigateAndFind)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(strquery), ::core::mem::transmute(vartargetframe)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ImportExportFavorites<'a, P0>(&self, fimport: i16, strimpexppath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.ImportExportFavorites)(::windows::core::Interface::as_raw(self), fimport, strimpexppath.into().abi()).ok() + pub unsafe fn ImportExportFavorites(&self, fimport: i16, strimpexppath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.ImportExportFavorites)(::windows::core::Interface::as_raw(self), fimport, ::core::mem::transmute_copy(strimpexppath)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -41990,12 +41356,8 @@ impl IShellUIHelper3 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AutoScan<'a, P0, P1>(&self, strsearch: P0, strfailureurl: P1, pvartargetframe: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.AutoScan)(::windows::core::Interface::as_raw(self), strsearch.into().abi(), strfailureurl.into().abi(), ::core::mem::transmute(pvartargetframe)).ok() + pub unsafe fn AutoScan(&self, strsearch: &::windows::core::BSTR, strfailureurl: &::windows::core::BSTR, pvartargetframe: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.AutoScan)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strsearch), ::core::mem::transmute_copy(strfailureurl), ::core::mem::transmute(pvartargetframe)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -42004,20 +41366,12 @@ impl IShellUIHelper3 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ShowBrowserUI<'a, P0>(&self, bstrname: P0, pvarin: &super::super::System::Com::VARIANT) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn ShowBrowserUI(&self, bstrname: &::windows::core::BSTR, pvarin: &super::super::System::Com::VARIANT) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.ShowBrowserUI)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(pvarin), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.ShowBrowserUI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(pvarin), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddSearchProvider<'a, P0>(&self, url: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.AddSearchProvider)(::windows::core::Interface::as_raw(self), url.into().abi()).ok() + pub unsafe fn AddSearchProvider(&self, url: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.AddSearchProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url)).ok() } pub unsafe fn RunOnceShown(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.RunOnceShown)(::windows::core::Interface::as_raw(self)).ok() @@ -42025,13 +41379,8 @@ impl IShellUIHelper3 { pub unsafe fn SkipRunOnce(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SkipRunOnce)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CustomizeSettings<'a, P0>(&self, fsqm: i16, fphishing: i16, bstrlocale: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.CustomizeSettings)(::windows::core::Interface::as_raw(self), fsqm, fphishing, bstrlocale.into().abi()).ok() + pub unsafe fn CustomizeSettings(&self, fsqm: i16, fphishing: i16, bstrlocale: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.CustomizeSettings)(::windows::core::Interface::as_raw(self), fsqm, fphishing, ::core::mem::transmute_copy(bstrlocale)).ok() } pub unsafe fn SqmEnabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -42041,11 +41390,9 @@ impl IShellUIHelper3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.PhishingEnabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BrandImageUri(&self) -> ::windows::core::Result { + pub unsafe fn BrandImageUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.BrandImageUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.BrandImageUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SkipTabsWelcome(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SkipTabsWelcome)(::windows::core::Interface::as_raw(self)).ok() @@ -42056,24 +41403,17 @@ impl IShellUIHelper3 { pub unsafe fn CustomizeClearType(&self, fset: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.CustomizeClearType)(::windows::core::Interface::as_raw(self), fset).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsSearchProviderInstalled<'a, P0>(&self, url: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsSearchProviderInstalled(&self, url: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.IsSearchProviderInstalled)(::windows::core::Interface::as_raw(self), url.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.IsSearchProviderInstalled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn IsSearchMigrated(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.IsSearchMigrated)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DefaultSearchProvider(&self) -> ::windows::core::Result { + pub unsafe fn DefaultSearchProvider(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.DefaultSearchProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.DefaultSearchProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn RunOnceRequiredSettingsComplete(&self, fcomplete: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.RunOnceRequiredSettingsComplete)(::windows::core::Interface::as_raw(self), fcomplete).ok() @@ -42082,29 +41422,16 @@ impl IShellUIHelper3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.RunOnceHasShown)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SearchGuideUrl(&self) -> ::windows::core::Result { + pub unsafe fn SearchGuideUrl(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.SearchGuideUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.SearchGuideUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddService<'a, P0>(&self, url: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AddService)(::windows::core::Interface::as_raw(self), url.into().abi()).ok() + pub unsafe fn AddService(&self, url: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AddService)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsServiceInstalled<'a, P0, P1>(&self, url: P0, verb: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsServiceInstalled(&self, url: &::windows::core::BSTR, verb: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).IsServiceInstalled)(::windows::core::Interface::as_raw(self), url.into().abi(), verb.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).IsServiceInstalled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(verb), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn InPrivateFilteringEnabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -42112,12 +41439,8 @@ impl IShellUIHelper3 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddToFavoritesBar<'a, P0, P1>(&self, url: P0, title: P1, r#type: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AddToFavoritesBar)(::windows::core::Interface::as_raw(self), url.into().abi(), title.into().abi(), ::core::mem::transmute(r#type)).ok() + pub unsafe fn AddToFavoritesBar(&self, url: &::windows::core::BSTR, title: &::windows::core::BSTR, r#type: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AddToFavoritesBar)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(title), ::core::mem::transmute(r#type)).ok() } pub unsafe fn BuildNewTabPage(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).BuildNewTabPage)(::windows::core::Interface::as_raw(self)).ok() @@ -42138,13 +41461,8 @@ impl IShellUIHelper3 { pub unsafe fn EnableSuggestedSites(&self, fenable: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).EnableSuggestedSites)(::windows::core::Interface::as_raw(self), fenable).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NavigateToSuggestedSites<'a, P0>(&self, bstrrelativeurl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).NavigateToSuggestedSites)(::windows::core::Interface::as_raw(self), bstrrelativeurl.into().abi()).ok() + pub unsafe fn NavigateToSuggestedSites(&self, bstrrelativeurl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).NavigateToSuggestedSites)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrelativeurl)).ok() } pub unsafe fn ShowTabsHelp(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ShowTabsHelp)(::windows::core::Interface::as_raw(self)).ok() @@ -42255,17 +41573,11 @@ unsafe impl ::windows::core::Interface for IShellUIHelper3 { #[doc(hidden)] pub struct IShellUIHelper3_Vtbl { pub base__: IShellUIHelper2_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub AddService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddService: usize, - #[cfg(feature = "Win32_Foundation")] - pub IsServiceInstalled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop, verb: ::core::mem::ManuallyDrop, pdwresult: *mut u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - IsServiceInstalled: usize, + pub AddService: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub IsServiceInstalled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop<::windows::core::BSTR>, verb: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwresult: *mut u32) -> ::windows::core::HRESULT, pub InPrivateFilteringEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfenabled: *mut i16) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub AddToFavoritesBar: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop, title: ::core::mem::ManuallyDrop, r#type: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub AddToFavoritesBar: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop<::windows::core::BSTR>, title: ::core::mem::ManuallyDrop<::windows::core::BSTR>, r#type: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] AddToFavoritesBar: usize, pub BuildNewTabPage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -42274,10 +41586,7 @@ pub struct IShellUIHelper3_Vtbl { pub ContentDiscoveryReset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub IsSuggestedSitesEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfenabled: *mut i16) -> ::windows::core::HRESULT, pub EnableSuggestedSites: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fenable: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub NavigateToSuggestedSites: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrelativeurl: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - NavigateToSuggestedSites: usize, + pub NavigateToSuggestedSites: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrrelativeurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ShowTabsHelp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub ShowInPrivateHelp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } @@ -42298,54 +41607,28 @@ impl IShellUIHelper4 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddFavorite<'a, P0>(&self, url: P0, title: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.AddFavorite)(::windows::core::Interface::as_raw(self), url.into().abi(), ::core::mem::transmute(title)).ok() + pub unsafe fn AddFavorite(&self, url: &::windows::core::BSTR, title: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.AddFavorite)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute(title)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddChannel<'a, P0>(&self, url: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.AddChannel)(::windows::core::Interface::as_raw(self), url.into().abi()).ok() + pub unsafe fn AddChannel(&self, url: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.AddChannel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddDesktopComponent<'a, P0, P1>(&self, url: P0, r#type: P1, left: ::core::option::Option<&super::super::System::Com::VARIANT>, top: ::core::option::Option<&super::super::System::Com::VARIANT>, width: ::core::option::Option<&super::super::System::Com::VARIANT>, height: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.AddDesktopComponent)(::windows::core::Interface::as_raw(self), url.into().abi(), r#type.into().abi(), ::core::mem::transmute(left), ::core::mem::transmute(top), ::core::mem::transmute(width), ::core::mem::transmute(height)).ok() + pub unsafe fn AddDesktopComponent(&self, url: &::windows::core::BSTR, r#type: &::windows::core::BSTR, left: ::core::option::Option<&super::super::System::Com::VARIANT>, top: ::core::option::Option<&super::super::System::Com::VARIANT>, width: ::core::option::Option<&super::super::System::Com::VARIANT>, height: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.AddDesktopComponent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(r#type), ::core::mem::transmute(left), ::core::mem::transmute(top), ::core::mem::transmute(width), ::core::mem::transmute(height)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsSubscribed<'a, P0>(&self, url: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsSubscribed(&self, url: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.IsSubscribed)(::windows::core::Interface::as_raw(self), url.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.IsSubscribed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn NavigateAndFind<'a, P0, P1>(&self, url: P0, strquery: P1, vartargetframe: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.NavigateAndFind)(::windows::core::Interface::as_raw(self), url.into().abi(), strquery.into().abi(), ::core::mem::transmute(vartargetframe)).ok() + pub unsafe fn NavigateAndFind(&self, url: &::windows::core::BSTR, strquery: &::windows::core::BSTR, vartargetframe: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.NavigateAndFind)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(strquery), ::core::mem::transmute(vartargetframe)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ImportExportFavorites<'a, P0>(&self, fimport: i16, strimpexppath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.ImportExportFavorites)(::windows::core::Interface::as_raw(self), fimport, strimpexppath.into().abi()).ok() + pub unsafe fn ImportExportFavorites(&self, fimport: i16, strimpexppath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.ImportExportFavorites)(::windows::core::Interface::as_raw(self), fimport, ::core::mem::transmute_copy(strimpexppath)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -42354,12 +41637,8 @@ impl IShellUIHelper4 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AutoScan<'a, P0, P1>(&self, strsearch: P0, strfailureurl: P1, pvartargetframe: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.AutoScan)(::windows::core::Interface::as_raw(self), strsearch.into().abi(), strfailureurl.into().abi(), ::core::mem::transmute(pvartargetframe)).ok() + pub unsafe fn AutoScan(&self, strsearch: &::windows::core::BSTR, strfailureurl: &::windows::core::BSTR, pvartargetframe: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.AutoScan)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strsearch), ::core::mem::transmute_copy(strfailureurl), ::core::mem::transmute(pvartargetframe)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -42368,20 +41647,12 @@ impl IShellUIHelper4 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ShowBrowserUI<'a, P0>(&self, bstrname: P0, pvarin: &super::super::System::Com::VARIANT) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn ShowBrowserUI(&self, bstrname: &::windows::core::BSTR, pvarin: &super::super::System::Com::VARIANT) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.ShowBrowserUI)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(pvarin), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.ShowBrowserUI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(pvarin), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddSearchProvider<'a, P0>(&self, url: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.AddSearchProvider)(::windows::core::Interface::as_raw(self), url.into().abi()).ok() + pub unsafe fn AddSearchProvider(&self, url: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.AddSearchProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url)).ok() } pub unsafe fn RunOnceShown(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.RunOnceShown)(::windows::core::Interface::as_raw(self)).ok() @@ -42389,13 +41660,8 @@ impl IShellUIHelper4 { pub unsafe fn SkipRunOnce(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.SkipRunOnce)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CustomizeSettings<'a, P0>(&self, fsqm: i16, fphishing: i16, bstrlocale: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.CustomizeSettings)(::windows::core::Interface::as_raw(self), fsqm, fphishing, bstrlocale.into().abi()).ok() + pub unsafe fn CustomizeSettings(&self, fsqm: i16, fphishing: i16, bstrlocale: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.CustomizeSettings)(::windows::core::Interface::as_raw(self), fsqm, fphishing, ::core::mem::transmute_copy(bstrlocale)).ok() } pub unsafe fn SqmEnabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -42405,11 +41671,9 @@ impl IShellUIHelper4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.PhishingEnabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BrandImageUri(&self) -> ::windows::core::Result { + pub unsafe fn BrandImageUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.BrandImageUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.BrandImageUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SkipTabsWelcome(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.SkipTabsWelcome)(::windows::core::Interface::as_raw(self)).ok() @@ -42420,24 +41684,17 @@ impl IShellUIHelper4 { pub unsafe fn CustomizeClearType(&self, fset: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.CustomizeClearType)(::windows::core::Interface::as_raw(self), fset).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsSearchProviderInstalled<'a, P0>(&self, url: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsSearchProviderInstalled(&self, url: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.IsSearchProviderInstalled)(::windows::core::Interface::as_raw(self), url.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.IsSearchProviderInstalled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn IsSearchMigrated(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.IsSearchMigrated)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DefaultSearchProvider(&self) -> ::windows::core::Result { + pub unsafe fn DefaultSearchProvider(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.DefaultSearchProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.DefaultSearchProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn RunOnceRequiredSettingsComplete(&self, fcomplete: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.RunOnceRequiredSettingsComplete)(::windows::core::Interface::as_raw(self), fcomplete).ok() @@ -42446,29 +41703,16 @@ impl IShellUIHelper4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.RunOnceHasShown)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SearchGuideUrl(&self) -> ::windows::core::Result { + pub unsafe fn SearchGuideUrl(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.SearchGuideUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.SearchGuideUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddService<'a, P0>(&self, url: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.AddService)(::windows::core::Interface::as_raw(self), url.into().abi()).ok() + pub unsafe fn AddService(&self, url: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.AddService)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsServiceInstalled<'a, P0, P1>(&self, url: P0, verb: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsServiceInstalled(&self, url: &::windows::core::BSTR, verb: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.IsServiceInstalled)(::windows::core::Interface::as_raw(self), url.into().abi(), verb.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.IsServiceInstalled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(verb), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn InPrivateFilteringEnabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -42476,12 +41720,8 @@ impl IShellUIHelper4 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddToFavoritesBar<'a, P0, P1>(&self, url: P0, title: P1, r#type: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.AddToFavoritesBar)(::windows::core::Interface::as_raw(self), url.into().abi(), title.into().abi(), ::core::mem::transmute(r#type)).ok() + pub unsafe fn AddToFavoritesBar(&self, url: &::windows::core::BSTR, title: &::windows::core::BSTR, r#type: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.AddToFavoritesBar)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(title), ::core::mem::transmute(r#type)).ok() } pub unsafe fn BuildNewTabPage(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.BuildNewTabPage)(::windows::core::Interface::as_raw(self)).ok() @@ -42502,13 +41742,8 @@ impl IShellUIHelper4 { pub unsafe fn EnableSuggestedSites(&self, fenable: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.EnableSuggestedSites)(::windows::core::Interface::as_raw(self), fenable).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NavigateToSuggestedSites<'a, P0>(&self, bstrrelativeurl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.NavigateToSuggestedSites)(::windows::core::Interface::as_raw(self), bstrrelativeurl.into().abi()).ok() + pub unsafe fn NavigateToSuggestedSites(&self, bstrrelativeurl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.NavigateToSuggestedSites)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrelativeurl)).ok() } pub unsafe fn ShowTabsHelp(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.ShowTabsHelp)(::windows::core::Interface::as_raw(self)).ok() @@ -42525,13 +41760,9 @@ impl IShellUIHelper4 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn msSiteModeAddThumbBarButton<'a, P0, P1>(&self, bstriconurl: P0, bstrtooltip: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn msSiteModeAddThumbBarButton(&self, bstriconurl: &::windows::core::BSTR, bstrtooltip: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).msSiteModeAddThumbBarButton)(::windows::core::Interface::as_raw(self), bstriconurl.into().abi(), bstrtooltip.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).msSiteModeAddThumbBarButton)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstriconurl), ::core::mem::transmute_copy(bstrtooltip), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -42543,11 +41774,8 @@ impl IShellUIHelper4 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn msSiteModeSetIconOverlay<'a, P0>(&self, iconurl: P0, pvardescription: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).msSiteModeSetIconOverlay)(::windows::core::Interface::as_raw(self), iconurl.into().abi(), ::core::mem::transmute(pvardescription)).ok() + pub unsafe fn msSiteModeSetIconOverlay(&self, iconurl: &::windows::core::BSTR, pvardescription: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).msSiteModeSetIconOverlay)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(iconurl), ::core::mem::transmute(pvardescription)).ok() } pub unsafe fn msSiteModeClearIconOverlay(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).msSiteModeClearIconOverlay)(::windows::core::Interface::as_raw(self)).ok() @@ -42555,23 +41783,13 @@ impl IShellUIHelper4 { pub unsafe fn msAddSiteMode(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).msAddSiteMode)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn msSiteModeCreateJumpList<'a, P0>(&self, bstrheader: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).msSiteModeCreateJumpList)(::windows::core::Interface::as_raw(self), bstrheader.into().abi()).ok() + pub unsafe fn msSiteModeCreateJumpList(&self, bstrheader: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).msSiteModeCreateJumpList)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrheader)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn msSiteModeAddJumpListItem<'a, P0, P1, P2>(&self, bstrname: P0, bstractionuri: P1, bstriconuri: P2, pvarwindowtype: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).msSiteModeAddJumpListItem)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), bstractionuri.into().abi(), bstriconuri.into().abi(), ::core::mem::transmute(pvarwindowtype)).ok() + pub unsafe fn msSiteModeAddJumpListItem(&self, bstrname: &::windows::core::BSTR, bstractionuri: &::windows::core::BSTR, bstriconuri: &::windows::core::BSTR, pvarwindowtype: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).msSiteModeAddJumpListItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute_copy(bstractionuri), ::core::mem::transmute_copy(bstriconuri), ::core::mem::transmute(pvarwindowtype)).ok() } pub unsafe fn msSiteModeClearJumpList(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).msSiteModeClearJumpList)(::windows::core::Interface::as_raw(self)).ok() @@ -42581,14 +41799,12 @@ impl IShellUIHelper4 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn msSiteModeAddButtonStyle<'a, P0, P1, P2>(&self, uibuttonid: P0, bstriconurl: P1, bstrtooltip: P2) -> ::windows::core::Result + pub unsafe fn msSiteModeAddButtonStyle<'a, P0>(&self, uibuttonid: P0, bstriconurl: &::windows::core::BSTR, bstrtooltip: &::windows::core::BSTR) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).msSiteModeAddButtonStyle)(::windows::core::Interface::as_raw(self), uibuttonid.into().abi(), bstriconurl.into().abi(), bstrtooltip.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).msSiteModeAddButtonStyle)(::windows::core::Interface::as_raw(self), uibuttonid.into().abi(), ::core::mem::transmute_copy(bstriconurl), ::core::mem::transmute_copy(bstrtooltip), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -42608,14 +41824,8 @@ impl IShellUIHelper4 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).msIsSiteModeFirstRun)(::windows::core::Interface::as_raw(self), fpreservestate, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn msAddTrackingProtectionList<'a, P0, P1>(&self, url: P0, bstrfiltername: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).msAddTrackingProtectionList)(::windows::core::Interface::as_raw(self), url.into().abi(), bstrfiltername.into().abi()).ok() + pub unsafe fn msAddTrackingProtectionList(&self, url: &::windows::core::BSTR, bstrfiltername: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).msAddTrackingProtectionList)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(bstrfiltername)).ok() } pub unsafe fn msTrackingProtectionEnabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -42749,7 +41959,7 @@ pub struct IShellUIHelper4_Vtbl { pub msIsSiteMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfsitemode: *mut i16) -> ::windows::core::HRESULT, pub msSiteModeShowThumbBar: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub msSiteModeAddThumbBarButton: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstriconurl: ::core::mem::ManuallyDrop, bstrtooltip: ::core::mem::ManuallyDrop, pvarbuttonid: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub msSiteModeAddThumbBarButton: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstriconurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrtooltip: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarbuttonid: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] msSiteModeAddThumbBarButton: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -42757,23 +41967,20 @@ pub struct IShellUIHelper4_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] msSiteModeUpdateThumbBarButton: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub msSiteModeSetIconOverlay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iconurl: ::core::mem::ManuallyDrop, pvardescription: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub msSiteModeSetIconOverlay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iconurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvardescription: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] msSiteModeSetIconOverlay: usize, pub msSiteModeClearIconOverlay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub msAddSiteMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub msSiteModeCreateJumpList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrheader: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - msSiteModeCreateJumpList: usize, + pub msSiteModeCreateJumpList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrheader: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub msSiteModeAddJumpListItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop, bstractionuri: ::core::mem::ManuallyDrop, bstriconuri: ::core::mem::ManuallyDrop, pvarwindowtype: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub msSiteModeAddJumpListItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstractionuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstriconuri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarwindowtype: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] msSiteModeAddJumpListItem: usize, pub msSiteModeClearJumpList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub msSiteModeShowJumpList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub msSiteModeAddButtonStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uibuttonid: ::core::mem::ManuallyDrop, bstriconurl: ::core::mem::ManuallyDrop, bstrtooltip: ::core::mem::ManuallyDrop, pvarstyleid: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub msSiteModeAddButtonStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uibuttonid: ::core::mem::ManuallyDrop, bstriconurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrtooltip: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvarstyleid: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] msSiteModeAddButtonStyle: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -42785,10 +41992,7 @@ pub struct IShellUIHelper4_Vtbl { pub msIsSiteModeFirstRun: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fpreservestate: i16, puifirstrun: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] msIsSiteModeFirstRun: usize, - #[cfg(feature = "Win32_Foundation")] - pub msAddTrackingProtectionList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop, bstrfiltername: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - msAddTrackingProtectionList: usize, + pub msAddTrackingProtectionList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrfiltername: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub msTrackingProtectionEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfenabled: *mut i16) -> ::windows::core::HRESULT, pub msActiveXFilteringEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pfenabled: *mut i16) -> ::windows::core::HRESULT, } @@ -42809,54 +42013,28 @@ impl IShellUIHelper5 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddFavorite<'a, P0>(&self, url: P0, title: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.AddFavorite)(::windows::core::Interface::as_raw(self), url.into().abi(), ::core::mem::transmute(title)).ok() + pub unsafe fn AddFavorite(&self, url: &::windows::core::BSTR, title: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.AddFavorite)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute(title)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddChannel<'a, P0>(&self, url: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.AddChannel)(::windows::core::Interface::as_raw(self), url.into().abi()).ok() + pub unsafe fn AddChannel(&self, url: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.AddChannel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddDesktopComponent<'a, P0, P1>(&self, url: P0, r#type: P1, left: ::core::option::Option<&super::super::System::Com::VARIANT>, top: ::core::option::Option<&super::super::System::Com::VARIANT>, width: ::core::option::Option<&super::super::System::Com::VARIANT>, height: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.AddDesktopComponent)(::windows::core::Interface::as_raw(self), url.into().abi(), r#type.into().abi(), ::core::mem::transmute(left), ::core::mem::transmute(top), ::core::mem::transmute(width), ::core::mem::transmute(height)).ok() + pub unsafe fn AddDesktopComponent(&self, url: &::windows::core::BSTR, r#type: &::windows::core::BSTR, left: ::core::option::Option<&super::super::System::Com::VARIANT>, top: ::core::option::Option<&super::super::System::Com::VARIANT>, width: ::core::option::Option<&super::super::System::Com::VARIANT>, height: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.AddDesktopComponent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(r#type), ::core::mem::transmute(left), ::core::mem::transmute(top), ::core::mem::transmute(width), ::core::mem::transmute(height)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsSubscribed<'a, P0>(&self, url: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsSubscribed(&self, url: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.IsSubscribed)(::windows::core::Interface::as_raw(self), url.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.IsSubscribed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn NavigateAndFind<'a, P0, P1>(&self, url: P0, strquery: P1, vartargetframe: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.NavigateAndFind)(::windows::core::Interface::as_raw(self), url.into().abi(), strquery.into().abi(), ::core::mem::transmute(vartargetframe)).ok() + pub unsafe fn NavigateAndFind(&self, url: &::windows::core::BSTR, strquery: &::windows::core::BSTR, vartargetframe: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.NavigateAndFind)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(strquery), ::core::mem::transmute(vartargetframe)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ImportExportFavorites<'a, P0>(&self, fimport: i16, strimpexppath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.ImportExportFavorites)(::windows::core::Interface::as_raw(self), fimport, strimpexppath.into().abi()).ok() + pub unsafe fn ImportExportFavorites(&self, fimport: i16, strimpexppath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.ImportExportFavorites)(::windows::core::Interface::as_raw(self), fimport, ::core::mem::transmute_copy(strimpexppath)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -42865,12 +42043,8 @@ impl IShellUIHelper5 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AutoScan<'a, P0, P1>(&self, strsearch: P0, strfailureurl: P1, pvartargetframe: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.AutoScan)(::windows::core::Interface::as_raw(self), strsearch.into().abi(), strfailureurl.into().abi(), ::core::mem::transmute(pvartargetframe)).ok() + pub unsafe fn AutoScan(&self, strsearch: &::windows::core::BSTR, strfailureurl: &::windows::core::BSTR, pvartargetframe: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.AutoScan)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strsearch), ::core::mem::transmute_copy(strfailureurl), ::core::mem::transmute(pvartargetframe)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -42879,20 +42053,12 @@ impl IShellUIHelper5 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ShowBrowserUI<'a, P0>(&self, bstrname: P0, pvarin: &super::super::System::Com::VARIANT) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn ShowBrowserUI(&self, bstrname: &::windows::core::BSTR, pvarin: &super::super::System::Com::VARIANT) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.ShowBrowserUI)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(pvarin), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.ShowBrowserUI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(pvarin), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddSearchProvider<'a, P0>(&self, url: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.AddSearchProvider)(::windows::core::Interface::as_raw(self), url.into().abi()).ok() + pub unsafe fn AddSearchProvider(&self, url: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.AddSearchProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url)).ok() } pub unsafe fn RunOnceShown(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.RunOnceShown)(::windows::core::Interface::as_raw(self)).ok() @@ -42900,13 +42066,8 @@ impl IShellUIHelper5 { pub unsafe fn SkipRunOnce(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.SkipRunOnce)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CustomizeSettings<'a, P0>(&self, fsqm: i16, fphishing: i16, bstrlocale: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.CustomizeSettings)(::windows::core::Interface::as_raw(self), fsqm, fphishing, bstrlocale.into().abi()).ok() + pub unsafe fn CustomizeSettings(&self, fsqm: i16, fphishing: i16, bstrlocale: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.CustomizeSettings)(::windows::core::Interface::as_raw(self), fsqm, fphishing, ::core::mem::transmute_copy(bstrlocale)).ok() } pub unsafe fn SqmEnabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -42916,11 +42077,9 @@ impl IShellUIHelper5 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.PhishingEnabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BrandImageUri(&self) -> ::windows::core::Result { + pub unsafe fn BrandImageUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.BrandImageUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.BrandImageUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SkipTabsWelcome(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.SkipTabsWelcome)(::windows::core::Interface::as_raw(self)).ok() @@ -42931,24 +42090,17 @@ impl IShellUIHelper5 { pub unsafe fn CustomizeClearType(&self, fset: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.CustomizeClearType)(::windows::core::Interface::as_raw(self), fset).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsSearchProviderInstalled<'a, P0>(&self, url: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsSearchProviderInstalled(&self, url: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.IsSearchProviderInstalled)(::windows::core::Interface::as_raw(self), url.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.IsSearchProviderInstalled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn IsSearchMigrated(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.IsSearchMigrated)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DefaultSearchProvider(&self) -> ::windows::core::Result { + pub unsafe fn DefaultSearchProvider(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.DefaultSearchProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.DefaultSearchProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn RunOnceRequiredSettingsComplete(&self, fcomplete: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.RunOnceRequiredSettingsComplete)(::windows::core::Interface::as_raw(self), fcomplete).ok() @@ -42957,29 +42109,16 @@ impl IShellUIHelper5 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.RunOnceHasShown)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SearchGuideUrl(&self) -> ::windows::core::Result { + pub unsafe fn SearchGuideUrl(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.SearchGuideUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.SearchGuideUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddService<'a, P0>(&self, url: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.AddService)(::windows::core::Interface::as_raw(self), url.into().abi()).ok() + pub unsafe fn AddService(&self, url: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.AddService)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsServiceInstalled<'a, P0, P1>(&self, url: P0, verb: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsServiceInstalled(&self, url: &::windows::core::BSTR, verb: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.IsServiceInstalled)(::windows::core::Interface::as_raw(self), url.into().abi(), verb.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.IsServiceInstalled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(verb), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn InPrivateFilteringEnabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -42987,12 +42126,8 @@ impl IShellUIHelper5 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddToFavoritesBar<'a, P0, P1>(&self, url: P0, title: P1, r#type: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.AddToFavoritesBar)(::windows::core::Interface::as_raw(self), url.into().abi(), title.into().abi(), ::core::mem::transmute(r#type)).ok() + pub unsafe fn AddToFavoritesBar(&self, url: &::windows::core::BSTR, title: &::windows::core::BSTR, r#type: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.AddToFavoritesBar)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(title), ::core::mem::transmute(r#type)).ok() } pub unsafe fn BuildNewTabPage(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.BuildNewTabPage)(::windows::core::Interface::as_raw(self)).ok() @@ -43013,13 +42148,8 @@ impl IShellUIHelper5 { pub unsafe fn EnableSuggestedSites(&self, fenable: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.EnableSuggestedSites)(::windows::core::Interface::as_raw(self), fenable).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NavigateToSuggestedSites<'a, P0>(&self, bstrrelativeurl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.NavigateToSuggestedSites)(::windows::core::Interface::as_raw(self), bstrrelativeurl.into().abi()).ok() + pub unsafe fn NavigateToSuggestedSites(&self, bstrrelativeurl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.NavigateToSuggestedSites)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrelativeurl)).ok() } pub unsafe fn ShowTabsHelp(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.ShowTabsHelp)(::windows::core::Interface::as_raw(self)).ok() @@ -43036,13 +42166,9 @@ impl IShellUIHelper5 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn msSiteModeAddThumbBarButton<'a, P0, P1>(&self, bstriconurl: P0, bstrtooltip: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn msSiteModeAddThumbBarButton(&self, bstriconurl: &::windows::core::BSTR, bstrtooltip: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.msSiteModeAddThumbBarButton)(::windows::core::Interface::as_raw(self), bstriconurl.into().abi(), bstrtooltip.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.msSiteModeAddThumbBarButton)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstriconurl), ::core::mem::transmute_copy(bstrtooltip), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -43054,11 +42180,8 @@ impl IShellUIHelper5 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn msSiteModeSetIconOverlay<'a, P0>(&self, iconurl: P0, pvardescription: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.msSiteModeSetIconOverlay)(::windows::core::Interface::as_raw(self), iconurl.into().abi(), ::core::mem::transmute(pvardescription)).ok() + pub unsafe fn msSiteModeSetIconOverlay(&self, iconurl: &::windows::core::BSTR, pvardescription: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.msSiteModeSetIconOverlay)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(iconurl), ::core::mem::transmute(pvardescription)).ok() } pub unsafe fn msSiteModeClearIconOverlay(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.msSiteModeClearIconOverlay)(::windows::core::Interface::as_raw(self)).ok() @@ -43066,23 +42189,13 @@ impl IShellUIHelper5 { pub unsafe fn msAddSiteMode(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.msAddSiteMode)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn msSiteModeCreateJumpList<'a, P0>(&self, bstrheader: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.msSiteModeCreateJumpList)(::windows::core::Interface::as_raw(self), bstrheader.into().abi()).ok() + pub unsafe fn msSiteModeCreateJumpList(&self, bstrheader: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.msSiteModeCreateJumpList)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrheader)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn msSiteModeAddJumpListItem<'a, P0, P1, P2>(&self, bstrname: P0, bstractionuri: P1, bstriconuri: P2, pvarwindowtype: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.msSiteModeAddJumpListItem)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), bstractionuri.into().abi(), bstriconuri.into().abi(), ::core::mem::transmute(pvarwindowtype)).ok() + pub unsafe fn msSiteModeAddJumpListItem(&self, bstrname: &::windows::core::BSTR, bstractionuri: &::windows::core::BSTR, bstriconuri: &::windows::core::BSTR, pvarwindowtype: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.msSiteModeAddJumpListItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute_copy(bstractionuri), ::core::mem::transmute_copy(bstriconuri), ::core::mem::transmute(pvarwindowtype)).ok() } pub unsafe fn msSiteModeClearJumpList(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.msSiteModeClearJumpList)(::windows::core::Interface::as_raw(self)).ok() @@ -43092,14 +42205,12 @@ impl IShellUIHelper5 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn msSiteModeAddButtonStyle<'a, P0, P1, P2>(&self, uibuttonid: P0, bstriconurl: P1, bstrtooltip: P2) -> ::windows::core::Result + pub unsafe fn msSiteModeAddButtonStyle<'a, P0>(&self, uibuttonid: P0, bstriconurl: &::windows::core::BSTR, bstrtooltip: &::windows::core::BSTR) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.msSiteModeAddButtonStyle)(::windows::core::Interface::as_raw(self), uibuttonid.into().abi(), bstriconurl.into().abi(), bstrtooltip.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.msSiteModeAddButtonStyle)(::windows::core::Interface::as_raw(self), uibuttonid.into().abi(), ::core::mem::transmute_copy(bstriconurl), ::core::mem::transmute_copy(bstrtooltip), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -43119,14 +42230,8 @@ impl IShellUIHelper5 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.msIsSiteModeFirstRun)(::windows::core::Interface::as_raw(self), fpreservestate, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn msAddTrackingProtectionList<'a, P0, P1>(&self, url: P0, bstrfiltername: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.msAddTrackingProtectionList)(::windows::core::Interface::as_raw(self), url.into().abi(), bstrfiltername.into().abi()).ok() + pub unsafe fn msAddTrackingProtectionList(&self, url: &::windows::core::BSTR, bstrfiltername: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.msAddTrackingProtectionList)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(bstrfiltername)).ok() } pub unsafe fn msTrackingProtectionEnabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -43138,12 +42243,9 @@ impl IShellUIHelper5 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn msProvisionNetworks<'a, P0>(&self, bstrprovisioningxml: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn msProvisionNetworks(&self, bstrprovisioningxml: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).msProvisionNetworks)(::windows::core::Interface::as_raw(self), bstrprovisioningxml.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).msProvisionNetworks)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprovisioningxml), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn msReportSafeUrl(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).msReportSafeUrl)(::windows::core::Interface::as_raw(self)).ok() @@ -43303,7 +42405,7 @@ unsafe impl ::windows::core::Interface for IShellUIHelper5 { pub struct IShellUIHelper5_Vtbl { pub base__: IShellUIHelper4_Vtbl, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub msProvisionNetworks: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprovisioningxml: ::core::mem::ManuallyDrop, puiresult: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub msProvisionNetworks: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrprovisioningxml: ::core::mem::ManuallyDrop<::windows::core::BSTR>, puiresult: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] msProvisionNetworks: usize, pub msReportSafeUrl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -43330,54 +42432,28 @@ impl IShellUIHelper6 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddFavorite<'a, P0>(&self, url: P0, title: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.AddFavorite)(::windows::core::Interface::as_raw(self), url.into().abi(), ::core::mem::transmute(title)).ok() + pub unsafe fn AddFavorite(&self, url: &::windows::core::BSTR, title: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.AddFavorite)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute(title)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddChannel<'a, P0>(&self, url: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.AddChannel)(::windows::core::Interface::as_raw(self), url.into().abi()).ok() + pub unsafe fn AddChannel(&self, url: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.AddChannel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddDesktopComponent<'a, P0, P1>(&self, url: P0, r#type: P1, left: ::core::option::Option<&super::super::System::Com::VARIANT>, top: ::core::option::Option<&super::super::System::Com::VARIANT>, width: ::core::option::Option<&super::super::System::Com::VARIANT>, height: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.AddDesktopComponent)(::windows::core::Interface::as_raw(self), url.into().abi(), r#type.into().abi(), ::core::mem::transmute(left), ::core::mem::transmute(top), ::core::mem::transmute(width), ::core::mem::transmute(height)).ok() + pub unsafe fn AddDesktopComponent(&self, url: &::windows::core::BSTR, r#type: &::windows::core::BSTR, left: ::core::option::Option<&super::super::System::Com::VARIANT>, top: ::core::option::Option<&super::super::System::Com::VARIANT>, width: ::core::option::Option<&super::super::System::Com::VARIANT>, height: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.AddDesktopComponent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(r#type), ::core::mem::transmute(left), ::core::mem::transmute(top), ::core::mem::transmute(width), ::core::mem::transmute(height)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsSubscribed<'a, P0>(&self, url: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsSubscribed(&self, url: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.IsSubscribed)(::windows::core::Interface::as_raw(self), url.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.IsSubscribed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn NavigateAndFind<'a, P0, P1>(&self, url: P0, strquery: P1, vartargetframe: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.NavigateAndFind)(::windows::core::Interface::as_raw(self), url.into().abi(), strquery.into().abi(), ::core::mem::transmute(vartargetframe)).ok() + pub unsafe fn NavigateAndFind(&self, url: &::windows::core::BSTR, strquery: &::windows::core::BSTR, vartargetframe: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.NavigateAndFind)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(strquery), ::core::mem::transmute(vartargetframe)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ImportExportFavorites<'a, P0>(&self, fimport: i16, strimpexppath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.ImportExportFavorites)(::windows::core::Interface::as_raw(self), fimport, strimpexppath.into().abi()).ok() + pub unsafe fn ImportExportFavorites(&self, fimport: i16, strimpexppath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.ImportExportFavorites)(::windows::core::Interface::as_raw(self), fimport, ::core::mem::transmute_copy(strimpexppath)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -43386,12 +42462,8 @@ impl IShellUIHelper6 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AutoScan<'a, P0, P1>(&self, strsearch: P0, strfailureurl: P1, pvartargetframe: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.AutoScan)(::windows::core::Interface::as_raw(self), strsearch.into().abi(), strfailureurl.into().abi(), ::core::mem::transmute(pvartargetframe)).ok() + pub unsafe fn AutoScan(&self, strsearch: &::windows::core::BSTR, strfailureurl: &::windows::core::BSTR, pvartargetframe: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.AutoScan)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strsearch), ::core::mem::transmute_copy(strfailureurl), ::core::mem::transmute(pvartargetframe)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -43400,20 +42472,12 @@ impl IShellUIHelper6 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ShowBrowserUI<'a, P0>(&self, bstrname: P0, pvarin: &super::super::System::Com::VARIANT) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn ShowBrowserUI(&self, bstrname: &::windows::core::BSTR, pvarin: &super::super::System::Com::VARIANT) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.ShowBrowserUI)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(pvarin), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.ShowBrowserUI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(pvarin), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddSearchProvider<'a, P0>(&self, url: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.AddSearchProvider)(::windows::core::Interface::as_raw(self), url.into().abi()).ok() + pub unsafe fn AddSearchProvider(&self, url: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.AddSearchProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url)).ok() } pub unsafe fn RunOnceShown(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.RunOnceShown)(::windows::core::Interface::as_raw(self)).ok() @@ -43421,13 +42485,8 @@ impl IShellUIHelper6 { pub unsafe fn SkipRunOnce(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.SkipRunOnce)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CustomizeSettings<'a, P0>(&self, fsqm: i16, fphishing: i16, bstrlocale: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CustomizeSettings)(::windows::core::Interface::as_raw(self), fsqm, fphishing, bstrlocale.into().abi()).ok() + pub unsafe fn CustomizeSettings(&self, fsqm: i16, fphishing: i16, bstrlocale: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CustomizeSettings)(::windows::core::Interface::as_raw(self), fsqm, fphishing, ::core::mem::transmute_copy(bstrlocale)).ok() } pub unsafe fn SqmEnabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -43437,11 +42496,9 @@ impl IShellUIHelper6 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.PhishingEnabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BrandImageUri(&self) -> ::windows::core::Result { + pub unsafe fn BrandImageUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.BrandImageUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.BrandImageUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SkipTabsWelcome(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.SkipTabsWelcome)(::windows::core::Interface::as_raw(self)).ok() @@ -43452,24 +42509,17 @@ impl IShellUIHelper6 { pub unsafe fn CustomizeClearType(&self, fset: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.CustomizeClearType)(::windows::core::Interface::as_raw(self), fset).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsSearchProviderInstalled<'a, P0>(&self, url: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsSearchProviderInstalled(&self, url: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.IsSearchProviderInstalled)(::windows::core::Interface::as_raw(self), url.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.IsSearchProviderInstalled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn IsSearchMigrated(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.IsSearchMigrated)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DefaultSearchProvider(&self) -> ::windows::core::Result { + pub unsafe fn DefaultSearchProvider(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.DefaultSearchProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.DefaultSearchProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn RunOnceRequiredSettingsComplete(&self, fcomplete: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.RunOnceRequiredSettingsComplete)(::windows::core::Interface::as_raw(self), fcomplete).ok() @@ -43478,29 +42528,16 @@ impl IShellUIHelper6 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.RunOnceHasShown)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SearchGuideUrl(&self) -> ::windows::core::Result { + pub unsafe fn SearchGuideUrl(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.SearchGuideUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.SearchGuideUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddService<'a, P0>(&self, url: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.AddService)(::windows::core::Interface::as_raw(self), url.into().abi()).ok() + pub unsafe fn AddService(&self, url: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.AddService)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsServiceInstalled<'a, P0, P1>(&self, url: P0, verb: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsServiceInstalled(&self, url: &::windows::core::BSTR, verb: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.IsServiceInstalled)(::windows::core::Interface::as_raw(self), url.into().abi(), verb.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.IsServiceInstalled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(verb), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn InPrivateFilteringEnabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -43508,12 +42545,8 @@ impl IShellUIHelper6 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddToFavoritesBar<'a, P0, P1>(&self, url: P0, title: P1, r#type: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.AddToFavoritesBar)(::windows::core::Interface::as_raw(self), url.into().abi(), title.into().abi(), ::core::mem::transmute(r#type)).ok() + pub unsafe fn AddToFavoritesBar(&self, url: &::windows::core::BSTR, title: &::windows::core::BSTR, r#type: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.AddToFavoritesBar)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(title), ::core::mem::transmute(r#type)).ok() } pub unsafe fn BuildNewTabPage(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.BuildNewTabPage)(::windows::core::Interface::as_raw(self)).ok() @@ -43534,13 +42567,8 @@ impl IShellUIHelper6 { pub unsafe fn EnableSuggestedSites(&self, fenable: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.EnableSuggestedSites)(::windows::core::Interface::as_raw(self), fenable).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NavigateToSuggestedSites<'a, P0>(&self, bstrrelativeurl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.NavigateToSuggestedSites)(::windows::core::Interface::as_raw(self), bstrrelativeurl.into().abi()).ok() + pub unsafe fn NavigateToSuggestedSites(&self, bstrrelativeurl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.NavigateToSuggestedSites)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrelativeurl)).ok() } pub unsafe fn ShowTabsHelp(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.ShowTabsHelp)(::windows::core::Interface::as_raw(self)).ok() @@ -43557,13 +42585,9 @@ impl IShellUIHelper6 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn msSiteModeAddThumbBarButton<'a, P0, P1>(&self, bstriconurl: P0, bstrtooltip: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn msSiteModeAddThumbBarButton(&self, bstriconurl: &::windows::core::BSTR, bstrtooltip: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.msSiteModeAddThumbBarButton)(::windows::core::Interface::as_raw(self), bstriconurl.into().abi(), bstrtooltip.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.msSiteModeAddThumbBarButton)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstriconurl), ::core::mem::transmute_copy(bstrtooltip), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -43575,11 +42599,8 @@ impl IShellUIHelper6 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn msSiteModeSetIconOverlay<'a, P0>(&self, iconurl: P0, pvardescription: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.msSiteModeSetIconOverlay)(::windows::core::Interface::as_raw(self), iconurl.into().abi(), ::core::mem::transmute(pvardescription)).ok() + pub unsafe fn msSiteModeSetIconOverlay(&self, iconurl: &::windows::core::BSTR, pvardescription: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.msSiteModeSetIconOverlay)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(iconurl), ::core::mem::transmute(pvardescription)).ok() } pub unsafe fn msSiteModeClearIconOverlay(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.msSiteModeClearIconOverlay)(::windows::core::Interface::as_raw(self)).ok() @@ -43587,23 +42608,13 @@ impl IShellUIHelper6 { pub unsafe fn msAddSiteMode(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.msAddSiteMode)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn msSiteModeCreateJumpList<'a, P0>(&self, bstrheader: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.msSiteModeCreateJumpList)(::windows::core::Interface::as_raw(self), bstrheader.into().abi()).ok() + pub unsafe fn msSiteModeCreateJumpList(&self, bstrheader: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.msSiteModeCreateJumpList)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrheader)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn msSiteModeAddJumpListItem<'a, P0, P1, P2>(&self, bstrname: P0, bstractionuri: P1, bstriconuri: P2, pvarwindowtype: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.msSiteModeAddJumpListItem)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), bstractionuri.into().abi(), bstriconuri.into().abi(), ::core::mem::transmute(pvarwindowtype)).ok() + pub unsafe fn msSiteModeAddJumpListItem(&self, bstrname: &::windows::core::BSTR, bstractionuri: &::windows::core::BSTR, bstriconuri: &::windows::core::BSTR, pvarwindowtype: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.msSiteModeAddJumpListItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute_copy(bstractionuri), ::core::mem::transmute_copy(bstriconuri), ::core::mem::transmute(pvarwindowtype)).ok() } pub unsafe fn msSiteModeClearJumpList(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.msSiteModeClearJumpList)(::windows::core::Interface::as_raw(self)).ok() @@ -43613,14 +42624,12 @@ impl IShellUIHelper6 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn msSiteModeAddButtonStyle<'a, P0, P1, P2>(&self, uibuttonid: P0, bstriconurl: P1, bstrtooltip: P2) -> ::windows::core::Result + pub unsafe fn msSiteModeAddButtonStyle<'a, P0>(&self, uibuttonid: P0, bstriconurl: &::windows::core::BSTR, bstrtooltip: &::windows::core::BSTR) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.msSiteModeAddButtonStyle)(::windows::core::Interface::as_raw(self), uibuttonid.into().abi(), bstriconurl.into().abi(), bstrtooltip.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.msSiteModeAddButtonStyle)(::windows::core::Interface::as_raw(self), uibuttonid.into().abi(), ::core::mem::transmute_copy(bstriconurl), ::core::mem::transmute_copy(bstrtooltip), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -43640,14 +42649,8 @@ impl IShellUIHelper6 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.msIsSiteModeFirstRun)(::windows::core::Interface::as_raw(self), fpreservestate, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn msAddTrackingProtectionList<'a, P0, P1>(&self, url: P0, bstrfiltername: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.msAddTrackingProtectionList)(::windows::core::Interface::as_raw(self), url.into().abi(), bstrfiltername.into().abi()).ok() + pub unsafe fn msAddTrackingProtectionList(&self, url: &::windows::core::BSTR, bstrfiltername: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.msAddTrackingProtectionList)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(bstrfiltername)).ok() } pub unsafe fn msTrackingProtectionEnabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -43659,12 +42662,9 @@ impl IShellUIHelper6 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn msProvisionNetworks<'a, P0>(&self, bstrprovisioningxml: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn msProvisionNetworks(&self, bstrprovisioningxml: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.msProvisionNetworks)(::windows::core::Interface::as_raw(self), bstrprovisioningxml.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.msProvisionNetworks)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprovisioningxml), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn msReportSafeUrl(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.msReportSafeUrl)(::windows::core::Interface::as_raw(self)).ok() @@ -43730,33 +42730,24 @@ impl IShellUIHelper6 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn msScheduledTileNotification<'a, P0, P1, P2, P3, P4>(&self, bstrnotificationxml: P0, bstrnotificationid: P1, bstrnotificationtag: P2, starttime: P3, expirationtime: P4) -> ::windows::core::Result<()> + pub unsafe fn msScheduledTileNotification<'a, P0, P1>(&self, bstrnotificationxml: &::windows::core::BSTR, bstrnotificationid: &::windows::core::BSTR, bstrnotificationtag: &::windows::core::BSTR, starttime: P0, expirationtime: P1) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).msScheduledTileNotification)(::windows::core::Interface::as_raw(self), bstrnotificationxml.into().abi(), bstrnotificationid.into().abi(), bstrnotificationtag.into().abi(), starttime.into().abi(), expirationtime.into().abi()).ok() + (::windows::core::Interface::vtable(self).msScheduledTileNotification)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrnotificationxml), ::core::mem::transmute_copy(bstrnotificationid), ::core::mem::transmute_copy(bstrnotificationtag), starttime.into().abi(), expirationtime.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn msRemoveScheduledTileNotification<'a, P0>(&self, bstrnotificationid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).msRemoveScheduledTileNotification)(::windows::core::Interface::as_raw(self), bstrnotificationid.into().abi()).ok() + pub unsafe fn msRemoveScheduledTileNotification(&self, bstrnotificationid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).msRemoveScheduledTileNotification)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrnotificationid)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn msStartPeriodicBadgeUpdate<'a, P0, P1, P2>(&self, pollinguri: P0, starttime: P1, uiupdaterecurrence: P2) -> ::windows::core::Result<()> + pub unsafe fn msStartPeriodicBadgeUpdate<'a, P0, P1>(&self, pollinguri: &::windows::core::BSTR, starttime: P0, uiupdaterecurrence: P1) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).msStartPeriodicBadgeUpdate)(::windows::core::Interface::as_raw(self), pollinguri.into().abi(), starttime.into().abi(), uiupdaterecurrence.into().abi()).ok() + (::windows::core::Interface::vtable(self).msStartPeriodicBadgeUpdate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pollinguri), starttime.into().abi(), uiupdaterecurrence.into().abi()).ok() } pub unsafe fn msStopPeriodicBadgeUpdate(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).msStopPeriodicBadgeUpdate)(::windows::core::Interface::as_raw(self)).ok() @@ -43940,15 +42931,12 @@ pub struct IShellUIHelper6_Vtbl { pub msEnableTileNotificationQueueForWide310x150: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fchange: i16) -> ::windows::core::HRESULT, pub msEnableTileNotificationQueueForSquare310x310: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fchange: i16) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub msScheduledTileNotification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrnotificationxml: ::core::mem::ManuallyDrop, bstrnotificationid: ::core::mem::ManuallyDrop, bstrnotificationtag: ::core::mem::ManuallyDrop, starttime: ::core::mem::ManuallyDrop, expirationtime: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub msScheduledTileNotification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrnotificationxml: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrnotificationid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrnotificationtag: ::core::mem::ManuallyDrop<::windows::core::BSTR>, starttime: ::core::mem::ManuallyDrop, expirationtime: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] msScheduledTileNotification: usize, - #[cfg(feature = "Win32_Foundation")] - pub msRemoveScheduledTileNotification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrnotificationid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - msRemoveScheduledTileNotification: usize, + pub msRemoveScheduledTileNotification: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrnotificationid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub msStartPeriodicBadgeUpdate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pollinguri: ::core::mem::ManuallyDrop, starttime: ::core::mem::ManuallyDrop, uiupdaterecurrence: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub msStartPeriodicBadgeUpdate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pollinguri: ::core::mem::ManuallyDrop<::windows::core::BSTR>, starttime: ::core::mem::ManuallyDrop, uiupdaterecurrence: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] msStartPeriodicBadgeUpdate: usize, pub msStopPeriodicBadgeUpdate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -43971,54 +42959,28 @@ impl IShellUIHelper7 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddFavorite<'a, P0>(&self, url: P0, title: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.AddFavorite)(::windows::core::Interface::as_raw(self), url.into().abi(), ::core::mem::transmute(title)).ok() + pub unsafe fn AddFavorite(&self, url: &::windows::core::BSTR, title: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.AddFavorite)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute(title)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddChannel<'a, P0>(&self, url: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.AddChannel)(::windows::core::Interface::as_raw(self), url.into().abi()).ok() + pub unsafe fn AddChannel(&self, url: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.AddChannel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddDesktopComponent<'a, P0, P1>(&self, url: P0, r#type: P1, left: ::core::option::Option<&super::super::System::Com::VARIANT>, top: ::core::option::Option<&super::super::System::Com::VARIANT>, width: ::core::option::Option<&super::super::System::Com::VARIANT>, height: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.AddDesktopComponent)(::windows::core::Interface::as_raw(self), url.into().abi(), r#type.into().abi(), ::core::mem::transmute(left), ::core::mem::transmute(top), ::core::mem::transmute(width), ::core::mem::transmute(height)).ok() + pub unsafe fn AddDesktopComponent(&self, url: &::windows::core::BSTR, r#type: &::windows::core::BSTR, left: ::core::option::Option<&super::super::System::Com::VARIANT>, top: ::core::option::Option<&super::super::System::Com::VARIANT>, width: ::core::option::Option<&super::super::System::Com::VARIANT>, height: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.AddDesktopComponent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(r#type), ::core::mem::transmute(left), ::core::mem::transmute(top), ::core::mem::transmute(width), ::core::mem::transmute(height)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsSubscribed<'a, P0>(&self, url: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsSubscribed(&self, url: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.IsSubscribed)(::windows::core::Interface::as_raw(self), url.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.IsSubscribed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn NavigateAndFind<'a, P0, P1>(&self, url: P0, strquery: P1, vartargetframe: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.NavigateAndFind)(::windows::core::Interface::as_raw(self), url.into().abi(), strquery.into().abi(), ::core::mem::transmute(vartargetframe)).ok() + pub unsafe fn NavigateAndFind(&self, url: &::windows::core::BSTR, strquery: &::windows::core::BSTR, vartargetframe: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.NavigateAndFind)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(strquery), ::core::mem::transmute(vartargetframe)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ImportExportFavorites<'a, P0>(&self, fimport: i16, strimpexppath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.ImportExportFavorites)(::windows::core::Interface::as_raw(self), fimport, strimpexppath.into().abi()).ok() + pub unsafe fn ImportExportFavorites(&self, fimport: i16, strimpexppath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.ImportExportFavorites)(::windows::core::Interface::as_raw(self), fimport, ::core::mem::transmute_copy(strimpexppath)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -44027,12 +42989,8 @@ impl IShellUIHelper7 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AutoScan<'a, P0, P1>(&self, strsearch: P0, strfailureurl: P1, pvartargetframe: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.AutoScan)(::windows::core::Interface::as_raw(self), strsearch.into().abi(), strfailureurl.into().abi(), ::core::mem::transmute(pvartargetframe)).ok() + pub unsafe fn AutoScan(&self, strsearch: &::windows::core::BSTR, strfailureurl: &::windows::core::BSTR, pvartargetframe: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.AutoScan)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strsearch), ::core::mem::transmute_copy(strfailureurl), ::core::mem::transmute(pvartargetframe)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -44041,20 +42999,12 @@ impl IShellUIHelper7 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ShowBrowserUI<'a, P0>(&self, bstrname: P0, pvarin: &super::super::System::Com::VARIANT) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn ShowBrowserUI(&self, bstrname: &::windows::core::BSTR, pvarin: &super::super::System::Com::VARIANT) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.ShowBrowserUI)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(pvarin), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.ShowBrowserUI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(pvarin), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddSearchProvider<'a, P0>(&self, url: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.AddSearchProvider)(::windows::core::Interface::as_raw(self), url.into().abi()).ok() + pub unsafe fn AddSearchProvider(&self, url: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.AddSearchProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url)).ok() } pub unsafe fn RunOnceShown(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.RunOnceShown)(::windows::core::Interface::as_raw(self)).ok() @@ -44062,13 +43012,8 @@ impl IShellUIHelper7 { pub unsafe fn SkipRunOnce(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.SkipRunOnce)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CustomizeSettings<'a, P0>(&self, fsqm: i16, fphishing: i16, bstrlocale: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CustomizeSettings)(::windows::core::Interface::as_raw(self), fsqm, fphishing, bstrlocale.into().abi()).ok() + pub unsafe fn CustomizeSettings(&self, fsqm: i16, fphishing: i16, bstrlocale: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CustomizeSettings)(::windows::core::Interface::as_raw(self), fsqm, fphishing, ::core::mem::transmute_copy(bstrlocale)).ok() } pub unsafe fn SqmEnabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -44078,11 +43023,9 @@ impl IShellUIHelper7 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.PhishingEnabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BrandImageUri(&self) -> ::windows::core::Result { + pub unsafe fn BrandImageUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.BrandImageUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.BrandImageUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SkipTabsWelcome(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.SkipTabsWelcome)(::windows::core::Interface::as_raw(self)).ok() @@ -44093,24 +43036,17 @@ impl IShellUIHelper7 { pub unsafe fn CustomizeClearType(&self, fset: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.CustomizeClearType)(::windows::core::Interface::as_raw(self), fset).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsSearchProviderInstalled<'a, P0>(&self, url: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsSearchProviderInstalled(&self, url: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.IsSearchProviderInstalled)(::windows::core::Interface::as_raw(self), url.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.IsSearchProviderInstalled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn IsSearchMigrated(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.IsSearchMigrated)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DefaultSearchProvider(&self) -> ::windows::core::Result { + pub unsafe fn DefaultSearchProvider(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.DefaultSearchProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.DefaultSearchProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn RunOnceRequiredSettingsComplete(&self, fcomplete: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.RunOnceRequiredSettingsComplete)(::windows::core::Interface::as_raw(self), fcomplete).ok() @@ -44119,29 +43055,16 @@ impl IShellUIHelper7 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.RunOnceHasShown)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SearchGuideUrl(&self) -> ::windows::core::Result { + pub unsafe fn SearchGuideUrl(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.SearchGuideUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.SearchGuideUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddService<'a, P0>(&self, url: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.AddService)(::windows::core::Interface::as_raw(self), url.into().abi()).ok() + pub unsafe fn AddService(&self, url: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.AddService)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsServiceInstalled<'a, P0, P1>(&self, url: P0, verb: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsServiceInstalled(&self, url: &::windows::core::BSTR, verb: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.IsServiceInstalled)(::windows::core::Interface::as_raw(self), url.into().abi(), verb.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.IsServiceInstalled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(verb), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn InPrivateFilteringEnabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -44149,12 +43072,8 @@ impl IShellUIHelper7 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddToFavoritesBar<'a, P0, P1>(&self, url: P0, title: P1, r#type: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.AddToFavoritesBar)(::windows::core::Interface::as_raw(self), url.into().abi(), title.into().abi(), ::core::mem::transmute(r#type)).ok() + pub unsafe fn AddToFavoritesBar(&self, url: &::windows::core::BSTR, title: &::windows::core::BSTR, r#type: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.AddToFavoritesBar)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(title), ::core::mem::transmute(r#type)).ok() } pub unsafe fn BuildNewTabPage(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.BuildNewTabPage)(::windows::core::Interface::as_raw(self)).ok() @@ -44175,13 +43094,8 @@ impl IShellUIHelper7 { pub unsafe fn EnableSuggestedSites(&self, fenable: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.EnableSuggestedSites)(::windows::core::Interface::as_raw(self), fenable).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NavigateToSuggestedSites<'a, P0>(&self, bstrrelativeurl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.NavigateToSuggestedSites)(::windows::core::Interface::as_raw(self), bstrrelativeurl.into().abi()).ok() + pub unsafe fn NavigateToSuggestedSites(&self, bstrrelativeurl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.NavigateToSuggestedSites)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrelativeurl)).ok() } pub unsafe fn ShowTabsHelp(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.ShowTabsHelp)(::windows::core::Interface::as_raw(self)).ok() @@ -44198,13 +43112,9 @@ impl IShellUIHelper7 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn msSiteModeAddThumbBarButton<'a, P0, P1>(&self, bstriconurl: P0, bstrtooltip: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn msSiteModeAddThumbBarButton(&self, bstriconurl: &::windows::core::BSTR, bstrtooltip: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.msSiteModeAddThumbBarButton)(::windows::core::Interface::as_raw(self), bstriconurl.into().abi(), bstrtooltip.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.msSiteModeAddThumbBarButton)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstriconurl), ::core::mem::transmute_copy(bstrtooltip), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -44216,11 +43126,8 @@ impl IShellUIHelper7 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn msSiteModeSetIconOverlay<'a, P0>(&self, iconurl: P0, pvardescription: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.msSiteModeSetIconOverlay)(::windows::core::Interface::as_raw(self), iconurl.into().abi(), ::core::mem::transmute(pvardescription)).ok() + pub unsafe fn msSiteModeSetIconOverlay(&self, iconurl: &::windows::core::BSTR, pvardescription: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.msSiteModeSetIconOverlay)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(iconurl), ::core::mem::transmute(pvardescription)).ok() } pub unsafe fn msSiteModeClearIconOverlay(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.msSiteModeClearIconOverlay)(::windows::core::Interface::as_raw(self)).ok() @@ -44228,23 +43135,13 @@ impl IShellUIHelper7 { pub unsafe fn msAddSiteMode(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.msAddSiteMode)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn msSiteModeCreateJumpList<'a, P0>(&self, bstrheader: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.msSiteModeCreateJumpList)(::windows::core::Interface::as_raw(self), bstrheader.into().abi()).ok() + pub unsafe fn msSiteModeCreateJumpList(&self, bstrheader: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.msSiteModeCreateJumpList)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrheader)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn msSiteModeAddJumpListItem<'a, P0, P1, P2>(&self, bstrname: P0, bstractionuri: P1, bstriconuri: P2, pvarwindowtype: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.msSiteModeAddJumpListItem)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), bstractionuri.into().abi(), bstriconuri.into().abi(), ::core::mem::transmute(pvarwindowtype)).ok() + pub unsafe fn msSiteModeAddJumpListItem(&self, bstrname: &::windows::core::BSTR, bstractionuri: &::windows::core::BSTR, bstriconuri: &::windows::core::BSTR, pvarwindowtype: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.msSiteModeAddJumpListItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute_copy(bstractionuri), ::core::mem::transmute_copy(bstriconuri), ::core::mem::transmute(pvarwindowtype)).ok() } pub unsafe fn msSiteModeClearJumpList(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.msSiteModeClearJumpList)(::windows::core::Interface::as_raw(self)).ok() @@ -44254,14 +43151,12 @@ impl IShellUIHelper7 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn msSiteModeAddButtonStyle<'a, P0, P1, P2>(&self, uibuttonid: P0, bstriconurl: P1, bstrtooltip: P2) -> ::windows::core::Result + pub unsafe fn msSiteModeAddButtonStyle<'a, P0>(&self, uibuttonid: P0, bstriconurl: &::windows::core::BSTR, bstrtooltip: &::windows::core::BSTR) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.msSiteModeAddButtonStyle)(::windows::core::Interface::as_raw(self), uibuttonid.into().abi(), bstriconurl.into().abi(), bstrtooltip.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.msSiteModeAddButtonStyle)(::windows::core::Interface::as_raw(self), uibuttonid.into().abi(), ::core::mem::transmute_copy(bstriconurl), ::core::mem::transmute_copy(bstrtooltip), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -44281,14 +43176,8 @@ impl IShellUIHelper7 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.msIsSiteModeFirstRun)(::windows::core::Interface::as_raw(self), fpreservestate, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn msAddTrackingProtectionList<'a, P0, P1>(&self, url: P0, bstrfiltername: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.msAddTrackingProtectionList)(::windows::core::Interface::as_raw(self), url.into().abi(), bstrfiltername.into().abi()).ok() + pub unsafe fn msAddTrackingProtectionList(&self, url: &::windows::core::BSTR, bstrfiltername: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.msAddTrackingProtectionList)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(bstrfiltername)).ok() } pub unsafe fn msTrackingProtectionEnabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -44300,12 +43189,9 @@ impl IShellUIHelper7 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn msProvisionNetworks<'a, P0>(&self, bstrprovisioningxml: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn msProvisionNetworks(&self, bstrprovisioningxml: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.msProvisionNetworks)(::windows::core::Interface::as_raw(self), bstrprovisioningxml.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.msProvisionNetworks)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprovisioningxml), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn msReportSafeUrl(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.msReportSafeUrl)(::windows::core::Interface::as_raw(self)).ok() @@ -44371,33 +43257,24 @@ impl IShellUIHelper7 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn msScheduledTileNotification<'a, P0, P1, P2, P3, P4>(&self, bstrnotificationxml: P0, bstrnotificationid: P1, bstrnotificationtag: P2, starttime: P3, expirationtime: P4) -> ::windows::core::Result<()> + pub unsafe fn msScheduledTileNotification<'a, P0, P1>(&self, bstrnotificationxml: &::windows::core::BSTR, bstrnotificationid: &::windows::core::BSTR, bstrnotificationtag: &::windows::core::BSTR, starttime: P0, expirationtime: P1) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.msScheduledTileNotification)(::windows::core::Interface::as_raw(self), bstrnotificationxml.into().abi(), bstrnotificationid.into().abi(), bstrnotificationtag.into().abi(), starttime.into().abi(), expirationtime.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.msScheduledTileNotification)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrnotificationxml), ::core::mem::transmute_copy(bstrnotificationid), ::core::mem::transmute_copy(bstrnotificationtag), starttime.into().abi(), expirationtime.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn msRemoveScheduledTileNotification<'a, P0>(&self, bstrnotificationid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.msRemoveScheduledTileNotification)(::windows::core::Interface::as_raw(self), bstrnotificationid.into().abi()).ok() + pub unsafe fn msRemoveScheduledTileNotification(&self, bstrnotificationid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.msRemoveScheduledTileNotification)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrnotificationid)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn msStartPeriodicBadgeUpdate<'a, P0, P1, P2>(&self, pollinguri: P0, starttime: P1, uiupdaterecurrence: P2) -> ::windows::core::Result<()> + pub unsafe fn msStartPeriodicBadgeUpdate<'a, P0, P1>(&self, pollinguri: &::windows::core::BSTR, starttime: P0, uiupdaterecurrence: P1) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.msStartPeriodicBadgeUpdate)(::windows::core::Interface::as_raw(self), pollinguri.into().abi(), starttime.into().abi(), uiupdaterecurrence.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.msStartPeriodicBadgeUpdate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pollinguri), starttime.into().abi(), uiupdaterecurrence.into().abi()).ok() } pub unsafe fn msStopPeriodicBadgeUpdate(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.msStopPeriodicBadgeUpdate)(::windows::core::Interface::as_raw(self)).ok() @@ -44405,76 +43282,36 @@ impl IShellUIHelper7 { pub unsafe fn msLaunchInternetOptions(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.msLaunchInternetOptions)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetExperimentalFlag<'a, P0>(&self, bstrflagstring: P0, vfflag: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetExperimentalFlag)(::windows::core::Interface::as_raw(self), bstrflagstring.into().abi(), vfflag).ok() + pub unsafe fn SetExperimentalFlag(&self, bstrflagstring: &::windows::core::BSTR, vfflag: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetExperimentalFlag)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrflagstring), vfflag).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetExperimentalFlag<'a, P0>(&self, bstrflagstring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetExperimentalFlag(&self, bstrflagstring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetExperimentalFlag)(::windows::core::Interface::as_raw(self), bstrflagstring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetExperimentalFlag)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrflagstring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetExperimentalValue<'a, P0>(&self, bstrvaluestring: P0, dwvalue: u32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetExperimentalValue)(::windows::core::Interface::as_raw(self), bstrvaluestring.into().abi(), dwvalue).ok() + pub unsafe fn SetExperimentalValue(&self, bstrvaluestring: &::windows::core::BSTR, dwvalue: u32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetExperimentalValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrvaluestring), dwvalue).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetExperimentalValue<'a, P0>(&self, bstrvaluestring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetExperimentalValue(&self, bstrvaluestring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetExperimentalValue)(::windows::core::Interface::as_raw(self), bstrvaluestring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetExperimentalValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrvaluestring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn ResetAllExperimentalFlagsAndValues(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).ResetAllExperimentalFlagsAndValues)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetNeedIEAutoLaunchFlag<'a, P0>(&self, bstrurl: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetNeedIEAutoLaunchFlag(&self, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetNeedIEAutoLaunchFlag)(::windows::core::Interface::as_raw(self), bstrurl.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetNeedIEAutoLaunchFlag)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrurl), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetNeedIEAutoLaunchFlag<'a, P0>(&self, bstrurl: P0, flag: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetNeedIEAutoLaunchFlag)(::windows::core::Interface::as_raw(self), bstrurl.into().abi(), flag).ok() + pub unsafe fn SetNeedIEAutoLaunchFlag(&self, bstrurl: &::windows::core::BSTR, flag: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetNeedIEAutoLaunchFlag)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrurl), flag).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn HasNeedIEAutoLaunchFlag<'a, P0>(&self, bstrurl: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn HasNeedIEAutoLaunchFlag(&self, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).HasNeedIEAutoLaunchFlag)(::windows::core::Interface::as_raw(self), bstrurl.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).HasNeedIEAutoLaunchFlag)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrurl), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LaunchIE<'a, P0>(&self, bstrurl: P0, automated: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).LaunchIE)(::windows::core::Interface::as_raw(self), bstrurl.into().abi(), automated).ok() + pub unsafe fn LaunchIE(&self, bstrurl: &::windows::core::BSTR, automated: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).LaunchIE)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrurl), automated).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -44651,39 +43488,15 @@ unsafe impl ::windows::core::Interface for IShellUIHelper7 { #[doc(hidden)] pub struct IShellUIHelper7_Vtbl { pub base__: IShellUIHelper6_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub SetExperimentalFlag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrflagstring: ::core::mem::ManuallyDrop, vfflag: i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetExperimentalFlag: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetExperimentalFlag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrflagstring: ::core::mem::ManuallyDrop, vfflag: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetExperimentalFlag: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetExperimentalValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrvaluestring: ::core::mem::ManuallyDrop, dwvalue: u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetExperimentalValue: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetExperimentalValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrvaluestring: ::core::mem::ManuallyDrop, pdwvalue: *mut u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetExperimentalValue: usize, + pub SetExperimentalFlag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrflagstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, vfflag: i16) -> ::windows::core::HRESULT, + pub GetExperimentalFlag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrflagstring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, vfflag: *mut i16) -> ::windows::core::HRESULT, + pub SetExperimentalValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrvaluestring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, dwvalue: u32) -> ::windows::core::HRESULT, + pub GetExperimentalValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrvaluestring: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pdwvalue: *mut u32) -> ::windows::core::HRESULT, pub ResetAllExperimentalFlagsAndValues: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetNeedIEAutoLaunchFlag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop, flag: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetNeedIEAutoLaunchFlag: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetNeedIEAutoLaunchFlag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop, flag: i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetNeedIEAutoLaunchFlag: usize, - #[cfg(feature = "Win32_Foundation")] - pub HasNeedIEAutoLaunchFlag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop, exists: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - HasNeedIEAutoLaunchFlag: usize, - #[cfg(feature = "Win32_Foundation")] - pub LaunchIE: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop, automated: i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LaunchIE: usize, + pub GetNeedIEAutoLaunchFlag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flag: *mut i16) -> ::windows::core::HRESULT, + pub SetNeedIEAutoLaunchFlag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flag: i16) -> ::windows::core::HRESULT, + pub HasNeedIEAutoLaunchFlag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, exists: *mut i16) -> ::windows::core::HRESULT, + pub LaunchIE: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>, automated: i16) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -44702,54 +43515,28 @@ impl IShellUIHelper8 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddFavorite<'a, P0>(&self, url: P0, title: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.AddFavorite)(::windows::core::Interface::as_raw(self), url.into().abi(), ::core::mem::transmute(title)).ok() + pub unsafe fn AddFavorite(&self, url: &::windows::core::BSTR, title: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.AddFavorite)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute(title)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddChannel<'a, P0>(&self, url: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.AddChannel)(::windows::core::Interface::as_raw(self), url.into().abi()).ok() + pub unsafe fn AddChannel(&self, url: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.AddChannel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddDesktopComponent<'a, P0, P1>(&self, url: P0, r#type: P1, left: ::core::option::Option<&super::super::System::Com::VARIANT>, top: ::core::option::Option<&super::super::System::Com::VARIANT>, width: ::core::option::Option<&super::super::System::Com::VARIANT>, height: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.AddDesktopComponent)(::windows::core::Interface::as_raw(self), url.into().abi(), r#type.into().abi(), ::core::mem::transmute(left), ::core::mem::transmute(top), ::core::mem::transmute(width), ::core::mem::transmute(height)).ok() + pub unsafe fn AddDesktopComponent(&self, url: &::windows::core::BSTR, r#type: &::windows::core::BSTR, left: ::core::option::Option<&super::super::System::Com::VARIANT>, top: ::core::option::Option<&super::super::System::Com::VARIANT>, width: ::core::option::Option<&super::super::System::Com::VARIANT>, height: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.AddDesktopComponent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(r#type), ::core::mem::transmute(left), ::core::mem::transmute(top), ::core::mem::transmute(width), ::core::mem::transmute(height)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsSubscribed<'a, P0>(&self, url: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsSubscribed(&self, url: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.IsSubscribed)(::windows::core::Interface::as_raw(self), url.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.IsSubscribed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn NavigateAndFind<'a, P0, P1>(&self, url: P0, strquery: P1, vartargetframe: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.NavigateAndFind)(::windows::core::Interface::as_raw(self), url.into().abi(), strquery.into().abi(), ::core::mem::transmute(vartargetframe)).ok() + pub unsafe fn NavigateAndFind(&self, url: &::windows::core::BSTR, strquery: &::windows::core::BSTR, vartargetframe: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.NavigateAndFind)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(strquery), ::core::mem::transmute(vartargetframe)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ImportExportFavorites<'a, P0>(&self, fimport: i16, strimpexppath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.ImportExportFavorites)(::windows::core::Interface::as_raw(self), fimport, strimpexppath.into().abi()).ok() + pub unsafe fn ImportExportFavorites(&self, fimport: i16, strimpexppath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.ImportExportFavorites)(::windows::core::Interface::as_raw(self), fimport, ::core::mem::transmute_copy(strimpexppath)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -44758,12 +43545,8 @@ impl IShellUIHelper8 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AutoScan<'a, P0, P1>(&self, strsearch: P0, strfailureurl: P1, pvartargetframe: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.AutoScan)(::windows::core::Interface::as_raw(self), strsearch.into().abi(), strfailureurl.into().abi(), ::core::mem::transmute(pvartargetframe)).ok() + pub unsafe fn AutoScan(&self, strsearch: &::windows::core::BSTR, strfailureurl: &::windows::core::BSTR, pvartargetframe: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.AutoScan)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strsearch), ::core::mem::transmute_copy(strfailureurl), ::core::mem::transmute(pvartargetframe)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -44772,20 +43555,12 @@ impl IShellUIHelper8 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ShowBrowserUI<'a, P0>(&self, bstrname: P0, pvarin: &super::super::System::Com::VARIANT) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn ShowBrowserUI(&self, bstrname: &::windows::core::BSTR, pvarin: &super::super::System::Com::VARIANT) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.ShowBrowserUI)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(pvarin), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.ShowBrowserUI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(pvarin), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddSearchProvider<'a, P0>(&self, url: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.AddSearchProvider)(::windows::core::Interface::as_raw(self), url.into().abi()).ok() + pub unsafe fn AddSearchProvider(&self, url: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.AddSearchProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url)).ok() } pub unsafe fn RunOnceShown(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.RunOnceShown)(::windows::core::Interface::as_raw(self)).ok() @@ -44793,13 +43568,8 @@ impl IShellUIHelper8 { pub unsafe fn SkipRunOnce(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SkipRunOnce)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CustomizeSettings<'a, P0>(&self, fsqm: i16, fphishing: i16, bstrlocale: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CustomizeSettings)(::windows::core::Interface::as_raw(self), fsqm, fphishing, bstrlocale.into().abi()).ok() + pub unsafe fn CustomizeSettings(&self, fsqm: i16, fphishing: i16, bstrlocale: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CustomizeSettings)(::windows::core::Interface::as_raw(self), fsqm, fphishing, ::core::mem::transmute_copy(bstrlocale)).ok() } pub unsafe fn SqmEnabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -44809,11 +43579,9 @@ impl IShellUIHelper8 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.PhishingEnabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BrandImageUri(&self) -> ::windows::core::Result { + pub unsafe fn BrandImageUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.BrandImageUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.BrandImageUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SkipTabsWelcome(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SkipTabsWelcome)(::windows::core::Interface::as_raw(self)).ok() @@ -44824,24 +43592,17 @@ impl IShellUIHelper8 { pub unsafe fn CustomizeClearType(&self, fset: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.CustomizeClearType)(::windows::core::Interface::as_raw(self), fset).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsSearchProviderInstalled<'a, P0>(&self, url: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsSearchProviderInstalled(&self, url: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.IsSearchProviderInstalled)(::windows::core::Interface::as_raw(self), url.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.IsSearchProviderInstalled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn IsSearchMigrated(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.IsSearchMigrated)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DefaultSearchProvider(&self) -> ::windows::core::Result { + pub unsafe fn DefaultSearchProvider(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.DefaultSearchProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.DefaultSearchProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn RunOnceRequiredSettingsComplete(&self, fcomplete: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.RunOnceRequiredSettingsComplete)(::windows::core::Interface::as_raw(self), fcomplete).ok() @@ -44850,29 +43611,16 @@ impl IShellUIHelper8 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.RunOnceHasShown)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SearchGuideUrl(&self) -> ::windows::core::Result { + pub unsafe fn SearchGuideUrl(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SearchGuideUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.SearchGuideUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddService<'a, P0>(&self, url: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.AddService)(::windows::core::Interface::as_raw(self), url.into().abi()).ok() + pub unsafe fn AddService(&self, url: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.AddService)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsServiceInstalled<'a, P0, P1>(&self, url: P0, verb: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsServiceInstalled(&self, url: &::windows::core::BSTR, verb: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.IsServiceInstalled)(::windows::core::Interface::as_raw(self), url.into().abi(), verb.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.IsServiceInstalled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(verb), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn InPrivateFilteringEnabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -44880,12 +43628,8 @@ impl IShellUIHelper8 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddToFavoritesBar<'a, P0, P1>(&self, url: P0, title: P1, r#type: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.AddToFavoritesBar)(::windows::core::Interface::as_raw(self), url.into().abi(), title.into().abi(), ::core::mem::transmute(r#type)).ok() + pub unsafe fn AddToFavoritesBar(&self, url: &::windows::core::BSTR, title: &::windows::core::BSTR, r#type: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.AddToFavoritesBar)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(title), ::core::mem::transmute(r#type)).ok() } pub unsafe fn BuildNewTabPage(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.BuildNewTabPage)(::windows::core::Interface::as_raw(self)).ok() @@ -44906,13 +43650,8 @@ impl IShellUIHelper8 { pub unsafe fn EnableSuggestedSites(&self, fenable: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.EnableSuggestedSites)(::windows::core::Interface::as_raw(self), fenable).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NavigateToSuggestedSites<'a, P0>(&self, bstrrelativeurl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.NavigateToSuggestedSites)(::windows::core::Interface::as_raw(self), bstrrelativeurl.into().abi()).ok() + pub unsafe fn NavigateToSuggestedSites(&self, bstrrelativeurl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.NavigateToSuggestedSites)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrelativeurl)).ok() } pub unsafe fn ShowTabsHelp(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.ShowTabsHelp)(::windows::core::Interface::as_raw(self)).ok() @@ -44929,13 +43668,9 @@ impl IShellUIHelper8 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn msSiteModeAddThumbBarButton<'a, P0, P1>(&self, bstriconurl: P0, bstrtooltip: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn msSiteModeAddThumbBarButton(&self, bstriconurl: &::windows::core::BSTR, bstrtooltip: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.msSiteModeAddThumbBarButton)(::windows::core::Interface::as_raw(self), bstriconurl.into().abi(), bstrtooltip.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.msSiteModeAddThumbBarButton)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstriconurl), ::core::mem::transmute_copy(bstrtooltip), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -44947,11 +43682,8 @@ impl IShellUIHelper8 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn msSiteModeSetIconOverlay<'a, P0>(&self, iconurl: P0, pvardescription: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.msSiteModeSetIconOverlay)(::windows::core::Interface::as_raw(self), iconurl.into().abi(), ::core::mem::transmute(pvardescription)).ok() + pub unsafe fn msSiteModeSetIconOverlay(&self, iconurl: &::windows::core::BSTR, pvardescription: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.msSiteModeSetIconOverlay)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(iconurl), ::core::mem::transmute(pvardescription)).ok() } pub unsafe fn msSiteModeClearIconOverlay(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.msSiteModeClearIconOverlay)(::windows::core::Interface::as_raw(self)).ok() @@ -44959,23 +43691,13 @@ impl IShellUIHelper8 { pub unsafe fn msAddSiteMode(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.msAddSiteMode)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn msSiteModeCreateJumpList<'a, P0>(&self, bstrheader: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.msSiteModeCreateJumpList)(::windows::core::Interface::as_raw(self), bstrheader.into().abi()).ok() + pub unsafe fn msSiteModeCreateJumpList(&self, bstrheader: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.msSiteModeCreateJumpList)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrheader)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn msSiteModeAddJumpListItem<'a, P0, P1, P2>(&self, bstrname: P0, bstractionuri: P1, bstriconuri: P2, pvarwindowtype: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.msSiteModeAddJumpListItem)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), bstractionuri.into().abi(), bstriconuri.into().abi(), ::core::mem::transmute(pvarwindowtype)).ok() + pub unsafe fn msSiteModeAddJumpListItem(&self, bstrname: &::windows::core::BSTR, bstractionuri: &::windows::core::BSTR, bstriconuri: &::windows::core::BSTR, pvarwindowtype: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.msSiteModeAddJumpListItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute_copy(bstractionuri), ::core::mem::transmute_copy(bstriconuri), ::core::mem::transmute(pvarwindowtype)).ok() } pub unsafe fn msSiteModeClearJumpList(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.msSiteModeClearJumpList)(::windows::core::Interface::as_raw(self)).ok() @@ -44985,14 +43707,12 @@ impl IShellUIHelper8 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn msSiteModeAddButtonStyle<'a, P0, P1, P2>(&self, uibuttonid: P0, bstriconurl: P1, bstrtooltip: P2) -> ::windows::core::Result + pub unsafe fn msSiteModeAddButtonStyle<'a, P0>(&self, uibuttonid: P0, bstriconurl: &::windows::core::BSTR, bstrtooltip: &::windows::core::BSTR) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.msSiteModeAddButtonStyle)(::windows::core::Interface::as_raw(self), uibuttonid.into().abi(), bstriconurl.into().abi(), bstrtooltip.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.msSiteModeAddButtonStyle)(::windows::core::Interface::as_raw(self), uibuttonid.into().abi(), ::core::mem::transmute_copy(bstriconurl), ::core::mem::transmute_copy(bstrtooltip), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -45012,14 +43732,8 @@ impl IShellUIHelper8 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.msIsSiteModeFirstRun)(::windows::core::Interface::as_raw(self), fpreservestate, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn msAddTrackingProtectionList<'a, P0, P1>(&self, url: P0, bstrfiltername: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.msAddTrackingProtectionList)(::windows::core::Interface::as_raw(self), url.into().abi(), bstrfiltername.into().abi()).ok() + pub unsafe fn msAddTrackingProtectionList(&self, url: &::windows::core::BSTR, bstrfiltername: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.msAddTrackingProtectionList)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(bstrfiltername)).ok() } pub unsafe fn msTrackingProtectionEnabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -45031,12 +43745,9 @@ impl IShellUIHelper8 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn msProvisionNetworks<'a, P0>(&self, bstrprovisioningxml: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn msProvisionNetworks(&self, bstrprovisioningxml: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.msProvisionNetworks)(::windows::core::Interface::as_raw(self), bstrprovisioningxml.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.msProvisionNetworks)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprovisioningxml), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn msReportSafeUrl(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.msReportSafeUrl)(::windows::core::Interface::as_raw(self)).ok() @@ -45102,33 +43813,24 @@ impl IShellUIHelper8 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn msScheduledTileNotification<'a, P0, P1, P2, P3, P4>(&self, bstrnotificationxml: P0, bstrnotificationid: P1, bstrnotificationtag: P2, starttime: P3, expirationtime: P4) -> ::windows::core::Result<()> + pub unsafe fn msScheduledTileNotification<'a, P0, P1>(&self, bstrnotificationxml: &::windows::core::BSTR, bstrnotificationid: &::windows::core::BSTR, bstrnotificationtag: &::windows::core::BSTR, starttime: P0, expirationtime: P1) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.msScheduledTileNotification)(::windows::core::Interface::as_raw(self), bstrnotificationxml.into().abi(), bstrnotificationid.into().abi(), bstrnotificationtag.into().abi(), starttime.into().abi(), expirationtime.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.msScheduledTileNotification)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrnotificationxml), ::core::mem::transmute_copy(bstrnotificationid), ::core::mem::transmute_copy(bstrnotificationtag), starttime.into().abi(), expirationtime.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn msRemoveScheduledTileNotification<'a, P0>(&self, bstrnotificationid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.msRemoveScheduledTileNotification)(::windows::core::Interface::as_raw(self), bstrnotificationid.into().abi()).ok() + pub unsafe fn msRemoveScheduledTileNotification(&self, bstrnotificationid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.msRemoveScheduledTileNotification)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrnotificationid)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn msStartPeriodicBadgeUpdate<'a, P0, P1, P2>(&self, pollinguri: P0, starttime: P1, uiupdaterecurrence: P2) -> ::windows::core::Result<()> + pub unsafe fn msStartPeriodicBadgeUpdate<'a, P0, P1>(&self, pollinguri: &::windows::core::BSTR, starttime: P0, uiupdaterecurrence: P1) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.msStartPeriodicBadgeUpdate)(::windows::core::Interface::as_raw(self), pollinguri.into().abi(), starttime.into().abi(), uiupdaterecurrence.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.msStartPeriodicBadgeUpdate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pollinguri), starttime.into().abi(), uiupdaterecurrence.into().abi()).ok() } pub unsafe fn msStopPeriodicBadgeUpdate(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.msStopPeriodicBadgeUpdate)(::windows::core::Interface::as_raw(self)).ok() @@ -45136,100 +43838,52 @@ impl IShellUIHelper8 { pub unsafe fn msLaunchInternetOptions(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.msLaunchInternetOptions)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetExperimentalFlag<'a, P0>(&self, bstrflagstring: P0, vfflag: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetExperimentalFlag)(::windows::core::Interface::as_raw(self), bstrflagstring.into().abi(), vfflag).ok() + pub unsafe fn SetExperimentalFlag(&self, bstrflagstring: &::windows::core::BSTR, vfflag: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetExperimentalFlag)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrflagstring), vfflag).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetExperimentalFlag<'a, P0>(&self, bstrflagstring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetExperimentalFlag(&self, bstrflagstring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetExperimentalFlag)(::windows::core::Interface::as_raw(self), bstrflagstring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetExperimentalFlag)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrflagstring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetExperimentalValue<'a, P0>(&self, bstrvaluestring: P0, dwvalue: u32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetExperimentalValue)(::windows::core::Interface::as_raw(self), bstrvaluestring.into().abi(), dwvalue).ok() + pub unsafe fn SetExperimentalValue(&self, bstrvaluestring: &::windows::core::BSTR, dwvalue: u32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetExperimentalValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrvaluestring), dwvalue).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetExperimentalValue<'a, P0>(&self, bstrvaluestring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetExperimentalValue(&self, bstrvaluestring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetExperimentalValue)(::windows::core::Interface::as_raw(self), bstrvaluestring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetExperimentalValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrvaluestring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn ResetAllExperimentalFlagsAndValues(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.ResetAllExperimentalFlagsAndValues)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetNeedIEAutoLaunchFlag<'a, P0>(&self, bstrurl: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetNeedIEAutoLaunchFlag(&self, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetNeedIEAutoLaunchFlag)(::windows::core::Interface::as_raw(self), bstrurl.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetNeedIEAutoLaunchFlag)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrurl), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetNeedIEAutoLaunchFlag<'a, P0>(&self, bstrurl: P0, flag: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetNeedIEAutoLaunchFlag)(::windows::core::Interface::as_raw(self), bstrurl.into().abi(), flag).ok() + pub unsafe fn SetNeedIEAutoLaunchFlag(&self, bstrurl: &::windows::core::BSTR, flag: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetNeedIEAutoLaunchFlag)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrurl), flag).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn HasNeedIEAutoLaunchFlag<'a, P0>(&self, bstrurl: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn HasNeedIEAutoLaunchFlag(&self, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.HasNeedIEAutoLaunchFlag)(::windows::core::Interface::as_raw(self), bstrurl.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.HasNeedIEAutoLaunchFlag)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrurl), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LaunchIE<'a, P0>(&self, bstrurl: P0, automated: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.LaunchIE)(::windows::core::Interface::as_raw(self), bstrurl.into().abi(), automated).ok() + pub unsafe fn LaunchIE(&self, bstrurl: &::windows::core::BSTR, automated: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.LaunchIE)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrurl), automated).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCVListData(&self) -> ::windows::core::Result { + pub unsafe fn GetCVListData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetCVListData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetCVListData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCVListLocalData(&self) -> ::windows::core::Result { + pub unsafe fn GetCVListLocalData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetCVListLocalData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetCVListLocalData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetEMIEListData(&self) -> ::windows::core::Result { + pub unsafe fn GetEMIEListData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetEMIEListData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetEMIEListData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetEMIEListLocalData(&self) -> ::windows::core::Result { + pub unsafe fn GetEMIEListLocalData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetEMIEListLocalData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetEMIEListLocalData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn OpenFavoritesPane(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).OpenFavoritesPane)(::windows::core::Interface::as_raw(self)).ok() @@ -45237,13 +43891,8 @@ impl IShellUIHelper8 { pub unsafe fn OpenFavoritesSettings(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).OpenFavoritesSettings)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LaunchInHVSI<'a, P0>(&self, bstrurl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).LaunchInHVSI)(::windows::core::Interface::as_raw(self), bstrurl.into().abi()).ok() + pub unsafe fn LaunchInHVSI(&self, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).LaunchInHVSI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrurl)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -45438,28 +44087,13 @@ unsafe impl ::windows::core::Interface for IShellUIHelper8 { #[doc(hidden)] pub struct IShellUIHelper8_Vtbl { pub base__: IShellUIHelper7_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetCVListData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrresult: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetCVListData: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetCVListLocalData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrresult: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetCVListLocalData: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetEMIEListData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrresult: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetEMIEListData: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetEMIEListLocalData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrresult: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetEMIEListLocalData: usize, + pub GetCVListData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrresult: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetCVListLocalData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrresult: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetEMIEListData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrresult: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetEMIEListLocalData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrresult: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub OpenFavoritesPane: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub OpenFavoritesSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub LaunchInHVSI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LaunchInHVSI: usize, + pub LaunchInHVSI: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrurl: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -45478,54 +44112,28 @@ impl IShellUIHelper9 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddFavorite<'a, P0>(&self, url: P0, title: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.AddFavorite)(::windows::core::Interface::as_raw(self), url.into().abi(), ::core::mem::transmute(title)).ok() + pub unsafe fn AddFavorite(&self, url: &::windows::core::BSTR, title: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.AddFavorite)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute(title)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddChannel<'a, P0>(&self, url: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.AddChannel)(::windows::core::Interface::as_raw(self), url.into().abi()).ok() + pub unsafe fn AddChannel(&self, url: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.AddChannel)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddDesktopComponent<'a, P0, P1>(&self, url: P0, r#type: P1, left: ::core::option::Option<&super::super::System::Com::VARIANT>, top: ::core::option::Option<&super::super::System::Com::VARIANT>, width: ::core::option::Option<&super::super::System::Com::VARIANT>, height: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.AddDesktopComponent)(::windows::core::Interface::as_raw(self), url.into().abi(), r#type.into().abi(), ::core::mem::transmute(left), ::core::mem::transmute(top), ::core::mem::transmute(width), ::core::mem::transmute(height)).ok() + pub unsafe fn AddDesktopComponent(&self, url: &::windows::core::BSTR, r#type: &::windows::core::BSTR, left: ::core::option::Option<&super::super::System::Com::VARIANT>, top: ::core::option::Option<&super::super::System::Com::VARIANT>, width: ::core::option::Option<&super::super::System::Com::VARIANT>, height: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.AddDesktopComponent)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(r#type), ::core::mem::transmute(left), ::core::mem::transmute(top), ::core::mem::transmute(width), ::core::mem::transmute(height)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsSubscribed<'a, P0>(&self, url: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsSubscribed(&self, url: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.IsSubscribed)(::windows::core::Interface::as_raw(self), url.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.IsSubscribed)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn NavigateAndFind<'a, P0, P1>(&self, url: P0, strquery: P1, vartargetframe: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.NavigateAndFind)(::windows::core::Interface::as_raw(self), url.into().abi(), strquery.into().abi(), ::core::mem::transmute(vartargetframe)).ok() + pub unsafe fn NavigateAndFind(&self, url: &::windows::core::BSTR, strquery: &::windows::core::BSTR, vartargetframe: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.NavigateAndFind)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(strquery), ::core::mem::transmute(vartargetframe)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ImportExportFavorites<'a, P0>(&self, fimport: i16, strimpexppath: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.ImportExportFavorites)(::windows::core::Interface::as_raw(self), fimport, strimpexppath.into().abi()).ok() + pub unsafe fn ImportExportFavorites(&self, fimport: i16, strimpexppath: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.ImportExportFavorites)(::windows::core::Interface::as_raw(self), fimport, ::core::mem::transmute_copy(strimpexppath)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -45534,12 +44142,8 @@ impl IShellUIHelper9 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AutoScan<'a, P0, P1>(&self, strsearch: P0, strfailureurl: P1, pvartargetframe: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.AutoScan)(::windows::core::Interface::as_raw(self), strsearch.into().abi(), strfailureurl.into().abi(), ::core::mem::transmute(pvartargetframe)).ok() + pub unsafe fn AutoScan(&self, strsearch: &::windows::core::BSTR, strfailureurl: &::windows::core::BSTR, pvartargetframe: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.AutoScan)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(strsearch), ::core::mem::transmute_copy(strfailureurl), ::core::mem::transmute(pvartargetframe)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -45548,20 +44152,12 @@ impl IShellUIHelper9 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ShowBrowserUI<'a, P0>(&self, bstrname: P0, pvarin: &super::super::System::Com::VARIANT) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn ShowBrowserUI(&self, bstrname: &::windows::core::BSTR, pvarin: &super::super::System::Com::VARIANT) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.ShowBrowserUI)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), ::core::mem::transmute(pvarin), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.base__.ShowBrowserUI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute(pvarin), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddSearchProvider<'a, P0>(&self, url: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.AddSearchProvider)(::windows::core::Interface::as_raw(self), url.into().abi()).ok() + pub unsafe fn AddSearchProvider(&self, url: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.AddSearchProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url)).ok() } pub unsafe fn RunOnceShown(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.RunOnceShown)(::windows::core::Interface::as_raw(self)).ok() @@ -45569,13 +44165,8 @@ impl IShellUIHelper9 { pub unsafe fn SkipRunOnce(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SkipRunOnce)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CustomizeSettings<'a, P0>(&self, fsqm: i16, fphishing: i16, bstrlocale: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CustomizeSettings)(::windows::core::Interface::as_raw(self), fsqm, fphishing, bstrlocale.into().abi()).ok() + pub unsafe fn CustomizeSettings(&self, fsqm: i16, fphishing: i16, bstrlocale: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CustomizeSettings)(::windows::core::Interface::as_raw(self), fsqm, fphishing, ::core::mem::transmute_copy(bstrlocale)).ok() } pub unsafe fn SqmEnabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -45585,11 +44176,9 @@ impl IShellUIHelper9 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.PhishingEnabled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn BrandImageUri(&self) -> ::windows::core::Result { + pub unsafe fn BrandImageUri(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.BrandImageUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.BrandImageUri)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SkipTabsWelcome(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SkipTabsWelcome)(::windows::core::Interface::as_raw(self)).ok() @@ -45600,24 +44189,17 @@ impl IShellUIHelper9 { pub unsafe fn CustomizeClearType(&self, fset: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.CustomizeClearType)(::windows::core::Interface::as_raw(self), fset).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsSearchProviderInstalled<'a, P0>(&self, url: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsSearchProviderInstalled(&self, url: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.IsSearchProviderInstalled)(::windows::core::Interface::as_raw(self), url.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.IsSearchProviderInstalled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn IsSearchMigrated(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.IsSearchMigrated)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DefaultSearchProvider(&self) -> ::windows::core::Result { + pub unsafe fn DefaultSearchProvider(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.DefaultSearchProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.DefaultSearchProvider)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn RunOnceRequiredSettingsComplete(&self, fcomplete: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.RunOnceRequiredSettingsComplete)(::windows::core::Interface::as_raw(self), fcomplete).ok() @@ -45626,29 +44208,16 @@ impl IShellUIHelper9 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.RunOnceHasShown)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SearchGuideUrl(&self) -> ::windows::core::Result { + pub unsafe fn SearchGuideUrl(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SearchGuideUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.base__.SearchGuideUrl)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddService<'a, P0>(&self, url: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.AddService)(::windows::core::Interface::as_raw(self), url.into().abi()).ok() + pub unsafe fn AddService(&self, url: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.AddService)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsServiceInstalled<'a, P0, P1>(&self, url: P0, verb: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsServiceInstalled(&self, url: &::windows::core::BSTR, verb: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.IsServiceInstalled)(::windows::core::Interface::as_raw(self), url.into().abi(), verb.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.IsServiceInstalled)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(verb), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn InPrivateFilteringEnabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -45656,12 +44225,8 @@ impl IShellUIHelper9 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn AddToFavoritesBar<'a, P0, P1>(&self, url: P0, title: P1, r#type: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.AddToFavoritesBar)(::windows::core::Interface::as_raw(self), url.into().abi(), title.into().abi(), ::core::mem::transmute(r#type)).ok() + pub unsafe fn AddToFavoritesBar(&self, url: &::windows::core::BSTR, title: &::windows::core::BSTR, r#type: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.AddToFavoritesBar)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(title), ::core::mem::transmute(r#type)).ok() } pub unsafe fn BuildNewTabPage(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.BuildNewTabPage)(::windows::core::Interface::as_raw(self)).ok() @@ -45682,13 +44247,8 @@ impl IShellUIHelper9 { pub unsafe fn EnableSuggestedSites(&self, fenable: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.EnableSuggestedSites)(::windows::core::Interface::as_raw(self), fenable).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn NavigateToSuggestedSites<'a, P0>(&self, bstrrelativeurl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.NavigateToSuggestedSites)(::windows::core::Interface::as_raw(self), bstrrelativeurl.into().abi()).ok() + pub unsafe fn NavigateToSuggestedSites(&self, bstrrelativeurl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.NavigateToSuggestedSites)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrrelativeurl)).ok() } pub unsafe fn ShowTabsHelp(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.base__.ShowTabsHelp)(::windows::core::Interface::as_raw(self)).ok() @@ -45705,13 +44265,9 @@ impl IShellUIHelper9 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn msSiteModeAddThumbBarButton<'a, P0, P1>(&self, bstriconurl: P0, bstrtooltip: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn msSiteModeAddThumbBarButton(&self, bstriconurl: &::windows::core::BSTR, bstrtooltip: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.msSiteModeAddThumbBarButton)(::windows::core::Interface::as_raw(self), bstriconurl.into().abi(), bstrtooltip.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.msSiteModeAddThumbBarButton)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstriconurl), ::core::mem::transmute_copy(bstrtooltip), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -45723,11 +44279,8 @@ impl IShellUIHelper9 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn msSiteModeSetIconOverlay<'a, P0>(&self, iconurl: P0, pvardescription: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.msSiteModeSetIconOverlay)(::windows::core::Interface::as_raw(self), iconurl.into().abi(), ::core::mem::transmute(pvardescription)).ok() + pub unsafe fn msSiteModeSetIconOverlay(&self, iconurl: &::windows::core::BSTR, pvardescription: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.msSiteModeSetIconOverlay)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(iconurl), ::core::mem::transmute(pvardescription)).ok() } pub unsafe fn msSiteModeClearIconOverlay(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.msSiteModeClearIconOverlay)(::windows::core::Interface::as_raw(self)).ok() @@ -45735,23 +44288,13 @@ impl IShellUIHelper9 { pub unsafe fn msAddSiteMode(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.msAddSiteMode)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn msSiteModeCreateJumpList<'a, P0>(&self, bstrheader: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.msSiteModeCreateJumpList)(::windows::core::Interface::as_raw(self), bstrheader.into().abi()).ok() + pub unsafe fn msSiteModeCreateJumpList(&self, bstrheader: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.msSiteModeCreateJumpList)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrheader)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn msSiteModeAddJumpListItem<'a, P0, P1, P2>(&self, bstrname: P0, bstractionuri: P1, bstriconuri: P2, pvarwindowtype: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.msSiteModeAddJumpListItem)(::windows::core::Interface::as_raw(self), bstrname.into().abi(), bstractionuri.into().abi(), bstriconuri.into().abi(), ::core::mem::transmute(pvarwindowtype)).ok() + pub unsafe fn msSiteModeAddJumpListItem(&self, bstrname: &::windows::core::BSTR, bstractionuri: &::windows::core::BSTR, bstriconuri: &::windows::core::BSTR, pvarwindowtype: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.msSiteModeAddJumpListItem)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrname), ::core::mem::transmute_copy(bstractionuri), ::core::mem::transmute_copy(bstriconuri), ::core::mem::transmute(pvarwindowtype)).ok() } pub unsafe fn msSiteModeClearJumpList(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.msSiteModeClearJumpList)(::windows::core::Interface::as_raw(self)).ok() @@ -45761,14 +44304,12 @@ impl IShellUIHelper9 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn msSiteModeAddButtonStyle<'a, P0, P1, P2>(&self, uibuttonid: P0, bstriconurl: P1, bstrtooltip: P2) -> ::windows::core::Result + pub unsafe fn msSiteModeAddButtonStyle<'a, P0>(&self, uibuttonid: P0, bstriconurl: &::windows::core::BSTR, bstrtooltip: &::windows::core::BSTR) -> ::windows::core::Result where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.msSiteModeAddButtonStyle)(::windows::core::Interface::as_raw(self), uibuttonid.into().abi(), bstriconurl.into().abi(), bstrtooltip.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.msSiteModeAddButtonStyle)(::windows::core::Interface::as_raw(self), uibuttonid.into().abi(), ::core::mem::transmute_copy(bstriconurl), ::core::mem::transmute_copy(bstrtooltip), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -45788,14 +44329,8 @@ impl IShellUIHelper9 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.msIsSiteModeFirstRun)(::windows::core::Interface::as_raw(self), fpreservestate, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn msAddTrackingProtectionList<'a, P0, P1>(&self, url: P0, bstrfiltername: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.msAddTrackingProtectionList)(::windows::core::Interface::as_raw(self), url.into().abi(), bstrfiltername.into().abi()).ok() + pub unsafe fn msAddTrackingProtectionList(&self, url: &::windows::core::BSTR, bstrfiltername: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.base__.msAddTrackingProtectionList)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute_copy(bstrfiltername)).ok() } pub unsafe fn msTrackingProtectionEnabled(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -45807,12 +44342,9 @@ impl IShellUIHelper9 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn msProvisionNetworks<'a, P0>(&self, bstrprovisioningxml: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn msProvisionNetworks(&self, bstrprovisioningxml: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.base__.base__.msProvisionNetworks)(::windows::core::Interface::as_raw(self), bstrprovisioningxml.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.base__.base__.msProvisionNetworks)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrprovisioningxml), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn msReportSafeUrl(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.base__.msReportSafeUrl)(::windows::core::Interface::as_raw(self)).ok() @@ -45878,33 +44410,24 @@ impl IShellUIHelper9 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn msScheduledTileNotification<'a, P0, P1, P2, P3, P4>(&self, bstrnotificationxml: P0, bstrnotificationid: P1, bstrnotificationtag: P2, starttime: P3, expirationtime: P4) -> ::windows::core::Result<()> + pub unsafe fn msScheduledTileNotification<'a, P0, P1>(&self, bstrnotificationxml: &::windows::core::BSTR, bstrnotificationid: &::windows::core::BSTR, bstrnotificationtag: &::windows::core::BSTR, starttime: P0, expirationtime: P1) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, - P4: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.base__.msScheduledTileNotification)(::windows::core::Interface::as_raw(self), bstrnotificationxml.into().abi(), bstrnotificationid.into().abi(), bstrnotificationtag.into().abi(), starttime.into().abi(), expirationtime.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.base__.msScheduledTileNotification)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrnotificationxml), ::core::mem::transmute_copy(bstrnotificationid), ::core::mem::transmute_copy(bstrnotificationtag), starttime.into().abi(), expirationtime.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn msRemoveScheduledTileNotification<'a, P0>(&self, bstrnotificationid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.base__.msRemoveScheduledTileNotification)(::windows::core::Interface::as_raw(self), bstrnotificationid.into().abi()).ok() + pub unsafe fn msRemoveScheduledTileNotification(&self, bstrnotificationid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.base__.msRemoveScheduledTileNotification)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrnotificationid)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn msStartPeriodicBadgeUpdate<'a, P0, P1, P2>(&self, pollinguri: P0, starttime: P1, uiupdaterecurrence: P2) -> ::windows::core::Result<()> + pub unsafe fn msStartPeriodicBadgeUpdate<'a, P0, P1>(&self, pollinguri: &::windows::core::BSTR, starttime: P0, uiupdaterecurrence: P1) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.base__.base__.msStartPeriodicBadgeUpdate)(::windows::core::Interface::as_raw(self), pollinguri.into().abi(), starttime.into().abi(), uiupdaterecurrence.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.base__.base__.msStartPeriodicBadgeUpdate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pollinguri), starttime.into().abi(), uiupdaterecurrence.into().abi()).ok() } pub unsafe fn msStopPeriodicBadgeUpdate(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.msStopPeriodicBadgeUpdate)(::windows::core::Interface::as_raw(self)).ok() @@ -45912,100 +44435,52 @@ impl IShellUIHelper9 { pub unsafe fn msLaunchInternetOptions(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.base__.msLaunchInternetOptions)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetExperimentalFlag<'a, P0>(&self, bstrflagstring: P0, vfflag: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetExperimentalFlag)(::windows::core::Interface::as_raw(self), bstrflagstring.into().abi(), vfflag).ok() + pub unsafe fn SetExperimentalFlag(&self, bstrflagstring: &::windows::core::BSTR, vfflag: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetExperimentalFlag)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrflagstring), vfflag).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetExperimentalFlag<'a, P0>(&self, bstrflagstring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetExperimentalFlag(&self, bstrflagstring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetExperimentalFlag)(::windows::core::Interface::as_raw(self), bstrflagstring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetExperimentalFlag)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrflagstring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetExperimentalValue<'a, P0>(&self, bstrvaluestring: P0, dwvalue: u32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetExperimentalValue)(::windows::core::Interface::as_raw(self), bstrvaluestring.into().abi(), dwvalue).ok() + pub unsafe fn SetExperimentalValue(&self, bstrvaluestring: &::windows::core::BSTR, dwvalue: u32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetExperimentalValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrvaluestring), dwvalue).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetExperimentalValue<'a, P0>(&self, bstrvaluestring: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetExperimentalValue(&self, bstrvaluestring: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetExperimentalValue)(::windows::core::Interface::as_raw(self), bstrvaluestring.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetExperimentalValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrvaluestring), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn ResetAllExperimentalFlagsAndValues(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.ResetAllExperimentalFlagsAndValues)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetNeedIEAutoLaunchFlag<'a, P0>(&self, bstrurl: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetNeedIEAutoLaunchFlag(&self, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetNeedIEAutoLaunchFlag)(::windows::core::Interface::as_raw(self), bstrurl.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetNeedIEAutoLaunchFlag)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrurl), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetNeedIEAutoLaunchFlag<'a, P0>(&self, bstrurl: P0, flag: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.SetNeedIEAutoLaunchFlag)(::windows::core::Interface::as_raw(self), bstrurl.into().abi(), flag).ok() + pub unsafe fn SetNeedIEAutoLaunchFlag(&self, bstrurl: &::windows::core::BSTR, flag: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.SetNeedIEAutoLaunchFlag)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrurl), flag).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn HasNeedIEAutoLaunchFlag<'a, P0>(&self, bstrurl: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn HasNeedIEAutoLaunchFlag(&self, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.HasNeedIEAutoLaunchFlag)(::windows::core::Interface::as_raw(self), bstrurl.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.HasNeedIEAutoLaunchFlag)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrurl), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LaunchIE<'a, P0>(&self, bstrurl: P0, automated: i16) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.LaunchIE)(::windows::core::Interface::as_raw(self), bstrurl.into().abi(), automated).ok() + pub unsafe fn LaunchIE(&self, bstrurl: &::windows::core::BSTR, automated: i16) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.LaunchIE)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrurl), automated).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCVListData(&self) -> ::windows::core::Result { + pub unsafe fn GetCVListData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetCVListData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetCVListData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetCVListLocalData(&self) -> ::windows::core::Result { + pub unsafe fn GetCVListLocalData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetCVListLocalData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetCVListLocalData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetEMIEListData(&self) -> ::windows::core::Result { + pub unsafe fn GetEMIEListData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetEMIEListData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetEMIEListData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetEMIEListLocalData(&self) -> ::windows::core::Result { + pub unsafe fn GetEMIEListLocalData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetEMIEListLocalData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetEMIEListLocalData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn OpenFavoritesPane(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.OpenFavoritesPane)(::windows::core::Interface::as_raw(self)).ok() @@ -46013,13 +44488,8 @@ impl IShellUIHelper9 { pub unsafe fn OpenFavoritesSettings(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.OpenFavoritesSettings)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LaunchInHVSI<'a, P0>(&self, bstrurl: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.LaunchInHVSI)(::windows::core::Interface::as_raw(self), bstrurl.into().abi()).ok() + pub unsafe fn LaunchInHVSI(&self, bstrurl: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.LaunchInHVSI)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrurl)).ok() } pub unsafe fn GetOSSku(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -53098,11 +51568,8 @@ impl IWebBrowser { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Navigate<'a, P0>(&self, url: P0, flags: ::core::option::Option<&super::super::System::Com::VARIANT>, targetframename: ::core::option::Option<&super::super::System::Com::VARIANT>, postdata: ::core::option::Option<&super::super::System::Com::VARIANT>, headers: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).Navigate)(::windows::core::Interface::as_raw(self), url.into().abi(), ::core::mem::transmute(flags), ::core::mem::transmute(targetframename), ::core::mem::transmute(postdata), ::core::mem::transmute(headers)).ok() + pub unsafe fn Navigate(&self, url: &::windows::core::BSTR, flags: ::core::option::Option<&super::super::System::Com::VARIANT>, targetframename: ::core::option::Option<&super::super::System::Com::VARIANT>, postdata: ::core::option::Option<&super::super::System::Com::VARIANT>, headers: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).Navigate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute(flags), ::core::mem::transmute(targetframename), ::core::mem::transmute(postdata), ::core::mem::transmute(headers)).ok() } pub unsafe fn Refresh(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Refresh)(::windows::core::Interface::as_raw(self)).ok() @@ -53143,11 +51610,9 @@ impl IWebBrowser { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).TopLevelContainer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Type(&self) -> ::windows::core::Result { + pub unsafe fn Type(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Left(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -53177,17 +51642,13 @@ impl IWebBrowser { pub unsafe fn SetHeight(&self, height: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetHeight)(::windows::core::Interface::as_raw(self), height).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LocationName(&self) -> ::windows::core::Result { + pub unsafe fn LocationName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LocationName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LocationName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LocationURL(&self) -> ::windows::core::Result { + pub unsafe fn LocationURL(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LocationURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).LocationURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Busy(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -53265,7 +51726,7 @@ pub struct IWebBrowser_Vtbl { pub GoHome: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GoSearch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub Navigate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop, flags: *const super::super::System::Com::VARIANT, targetframename: *const super::super::System::Com::VARIANT, postdata: *const super::super::System::Com::VARIANT, headers: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub Navigate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, url: ::core::mem::ManuallyDrop<::windows::core::BSTR>, flags: *const super::super::System::Com::VARIANT, targetframename: *const super::super::System::Com::VARIANT, postdata: *const super::super::System::Com::VARIANT, headers: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Navigate: usize, pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, @@ -53291,10 +51752,7 @@ pub struct IWebBrowser_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Document: usize, pub TopLevelContainer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbool: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Type: usize, + pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Left: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pl: *mut i32) -> ::windows::core::HRESULT, pub SetLeft: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, left: i32) -> ::windows::core::HRESULT, pub Top: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pl: *mut i32) -> ::windows::core::HRESULT, @@ -53303,14 +51761,8 @@ pub struct IWebBrowser_Vtbl { pub SetWidth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, width: i32) -> ::windows::core::HRESULT, pub Height: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pl: *mut i32) -> ::windows::core::HRESULT, pub SetHeight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, height: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub LocationName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, locationname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LocationName: usize, - #[cfg(feature = "Win32_Foundation")] - pub LocationURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, locationurl: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LocationURL: usize, + pub LocationName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, locationname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub LocationURL: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, locationurl: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Busy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbool: *mut i16) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] @@ -53333,11 +51785,8 @@ impl IWebBrowser2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Navigate<'a, P0>(&self, url: P0, flags: ::core::option::Option<&super::super::System::Com::VARIANT>, targetframename: ::core::option::Option<&super::super::System::Com::VARIANT>, postdata: ::core::option::Option<&super::super::System::Com::VARIANT>, headers: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.base__.Navigate)(::windows::core::Interface::as_raw(self), url.into().abi(), ::core::mem::transmute(flags), ::core::mem::transmute(targetframename), ::core::mem::transmute(postdata), ::core::mem::transmute(headers)).ok() + pub unsafe fn Navigate(&self, url: &::windows::core::BSTR, flags: ::core::option::Option<&super::super::System::Com::VARIANT>, targetframename: ::core::option::Option<&super::super::System::Com::VARIANT>, postdata: ::core::option::Option<&super::super::System::Com::VARIANT>, headers: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.base__.Navigate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute(flags), ::core::mem::transmute(targetframename), ::core::mem::transmute(postdata), ::core::mem::transmute(headers)).ok() } pub unsafe fn Refresh(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.Refresh)(::windows::core::Interface::as_raw(self)).ok() @@ -53378,11 +51827,9 @@ impl IWebBrowser2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.TopLevelContainer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Type(&self) -> ::windows::core::Result { + pub unsafe fn Type(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Left(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -53412,17 +51859,13 @@ impl IWebBrowser2 { pub unsafe fn SetHeight(&self, height: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.SetHeight)(::windows::core::Interface::as_raw(self), height).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LocationName(&self) -> ::windows::core::Result { + pub unsafe fn LocationName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.LocationName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.LocationName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LocationURL(&self) -> ::windows::core::Result { + pub unsafe fn LocationURL(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.LocationURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.LocationURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Busy(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -53436,27 +51879,21 @@ impl IWebBrowser2 { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn PutProperty<'a, P0, P1>(&self, property: P0, vtvalue: P1) -> ::windows::core::Result<()> + pub unsafe fn PutProperty<'a, P0>(&self, property: &::windows::core::BSTR, vtvalue: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).base__.PutProperty)(::windows::core::Interface::as_raw(self), property.into().abi(), vtvalue.into().abi()).ok() + (::windows::core::Interface::vtable(self).base__.PutProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(property), vtvalue.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetProperty<'a, P0>(&self, property: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetProperty(&self, property: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetProperty)(::windows::core::Interface::as_raw(self), property.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(property), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -53464,17 +51901,13 @@ impl IWebBrowser2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.HWND)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FullName(&self) -> ::windows::core::Result { + pub unsafe fn FullName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.FullName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.FullName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Path(&self) -> ::windows::core::Result { + pub unsafe fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Visible(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -53490,19 +51923,12 @@ impl IWebBrowser2 { pub unsafe fn SetStatusBar(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetStatusBar)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StatusText(&self) -> ::windows::core::Result { + pub unsafe fn StatusText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.StatusText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.StatusText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetStatusText<'a, P0>(&self, statustext: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetStatusText)(::windows::core::Interface::as_raw(self), statustext.into().abi()).ok() + pub unsafe fn SetStatusText(&self, statustext: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetStatusText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(statustext)).ok() } pub unsafe fn ToolBar(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -53759,11 +52185,8 @@ impl IWebBrowserApp { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Navigate<'a, P0>(&self, url: P0, flags: ::core::option::Option<&super::super::System::Com::VARIANT>, targetframename: ::core::option::Option<&super::super::System::Com::VARIANT>, postdata: ::core::option::Option<&super::super::System::Com::VARIANT>, headers: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.Navigate)(::windows::core::Interface::as_raw(self), url.into().abi(), ::core::mem::transmute(flags), ::core::mem::transmute(targetframename), ::core::mem::transmute(postdata), ::core::mem::transmute(headers)).ok() + pub unsafe fn Navigate(&self, url: &::windows::core::BSTR, flags: ::core::option::Option<&super::super::System::Com::VARIANT>, targetframename: ::core::option::Option<&super::super::System::Com::VARIANT>, postdata: ::core::option::Option<&super::super::System::Com::VARIANT>, headers: ::core::option::Option<&super::super::System::Com::VARIANT>) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.Navigate)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(url), ::core::mem::transmute(flags), ::core::mem::transmute(targetframename), ::core::mem::transmute(postdata), ::core::mem::transmute(headers)).ok() } pub unsafe fn Refresh(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Refresh)(::windows::core::Interface::as_raw(self)).ok() @@ -53804,11 +52227,9 @@ impl IWebBrowserApp { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.TopLevelContainer)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Type(&self) -> ::windows::core::Result { + pub unsafe fn Type(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Type)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Left(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -53838,17 +52259,13 @@ impl IWebBrowserApp { pub unsafe fn SetHeight(&self, height: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetHeight)(::windows::core::Interface::as_raw(self), height).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LocationName(&self) -> ::windows::core::Result { + pub unsafe fn LocationName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.LocationName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.LocationName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LocationURL(&self) -> ::windows::core::Result { + pub unsafe fn LocationURL(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.LocationURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.LocationURL)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Busy(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -53862,27 +52279,21 @@ impl IWebBrowserApp { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn PutProperty<'a, P0, P1>(&self, property: P0, vtvalue: P1) -> ::windows::core::Result<()> + pub unsafe fn PutProperty<'a, P0>(&self, property: &::windows::core::BSTR, vtvalue: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { - (::windows::core::Interface::vtable(self).PutProperty)(::windows::core::Interface::as_raw(self), property.into().abi(), vtvalue.into().abi()).ok() + (::windows::core::Interface::vtable(self).PutProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(property), vtvalue.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetProperty<'a, P0>(&self, property: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetProperty(&self, property: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetProperty)(::windows::core::Interface::as_raw(self), property.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(property), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -53890,17 +52301,13 @@ impl IWebBrowserApp { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).HWND)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn FullName(&self) -> ::windows::core::Result { + pub unsafe fn FullName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).FullName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).FullName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Path(&self) -> ::windows::core::Result { + pub unsafe fn Path(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Path)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Visible(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -53916,19 +52323,12 @@ impl IWebBrowserApp { pub unsafe fn SetStatusBar(&self, value: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetStatusBar)(::windows::core::Interface::as_raw(self), value).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn StatusText(&self) -> ::windows::core::Result { + pub unsafe fn StatusText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).StatusText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).StatusText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetStatusText<'a, P0>(&self, statustext: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetStatusText)(::windows::core::Interface::as_raw(self), statustext.into().abi()).ok() + pub unsafe fn SetStatusText(&self, statustext: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetStatusText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(statustext)).ok() } pub unsafe fn ToolBar(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -54039,41 +52439,26 @@ pub struct IWebBrowserApp_Vtbl { pub Quit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub ClientToWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcx: *mut i32, pcy: *mut i32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub PutProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, property: ::core::mem::ManuallyDrop, vtvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub PutProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, property: ::core::mem::ManuallyDrop<::windows::core::BSTR>, vtvalue: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] PutProperty: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, property: ::core::mem::ManuallyDrop, pvtvalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, property: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvtvalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetProperty: usize, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub HWND: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phwnd: *mut super::super::Foundation::SHANDLE_PTR) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] HWND: usize, - #[cfg(feature = "Win32_Foundation")] - pub FullName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fullname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - FullName: usize, - #[cfg(feature = "Win32_Foundation")] - pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Path: usize, + pub FullName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fullname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, path: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Visible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbool: *mut i16) -> ::windows::core::HRESULT, pub SetVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i16) -> ::windows::core::HRESULT, pub StatusBar: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbool: *mut i16) -> ::windows::core::HRESULT, pub SetStatusBar: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub StatusText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, statustext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - StatusText: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetStatusText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, statustext: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetStatusText: usize, + pub StatusText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, statustext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetStatusText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, statustext: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub ToolBar: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i32) -> ::windows::core::HRESULT, pub SetToolBar: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, pub MenuBar: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut i16) -> ::windows::core::HRESULT, @@ -54187,48 +52572,29 @@ impl IWebWizardHost { pub unsafe fn Cancel(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Cancel)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCaption<'a, P0>(&self, bstrcaption: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetCaption)(::windows::core::Interface::as_raw(self), bstrcaption.into().abi()).ok() + pub unsafe fn SetCaption(&self, bstrcaption: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetCaption)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcaption)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Caption(&self) -> ::windows::core::Result { + pub unsafe fn Caption(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Caption)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Caption)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn put_Property<'a, P0>(&self, bstrpropertyname: P0, pvproperty: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).put_Property)(::windows::core::Interface::as_raw(self), bstrpropertyname.into().abi(), ::core::mem::transmute(pvproperty)).ok() + pub unsafe fn put_Property(&self, bstrpropertyname: &::windows::core::BSTR, pvproperty: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).put_Property)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpropertyname), ::core::mem::transmute(pvproperty)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn get_Property<'a, P0>(&self, bstrpropertyname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn get_Property(&self, bstrpropertyname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).get_Property)(::windows::core::Interface::as_raw(self), bstrpropertyname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).get_Property)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpropertyname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn SetWizardButtons(&self, vfenableback: i16, vfenablenext: i16, vflastpage: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetWizardButtons)(::windows::core::Interface::as_raw(self), vfenableback, vfenablenext, vflastpage).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetHeaderText<'a, P0, P1>(&self, bstrheadertitle: P0, bstrheadersubtitle: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetHeaderText)(::windows::core::Interface::as_raw(self), bstrheadertitle.into().abi(), bstrheadersubtitle.into().abi()).ok() + pub unsafe fn SetHeaderText(&self, bstrheadertitle: &::windows::core::BSTR, bstrheadersubtitle: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetHeaderText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrheadertitle), ::core::mem::transmute_copy(bstrheadersubtitle)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -54300,27 +52666,18 @@ pub struct IWebWizardHost_Vtbl { pub FinalBack: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub FinalNext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetCaption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcaption: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetCaption: usize, - #[cfg(feature = "Win32_Foundation")] - pub Caption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcaption: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Caption: usize, + pub SetCaption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrcaption: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Caption: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrcaption: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub put_Property: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop, pvproperty: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub put_Property: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvproperty: *const super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] put_Property: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub get_Property: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop, pvproperty: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub get_Property: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pvproperty: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] get_Property: usize, pub SetWizardButtons: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vfenableback: i16, vfenablenext: i16, vflastpage: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetHeaderText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrheadertitle: ::core::mem::ManuallyDrop, bstrheadersubtitle: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetHeaderText: usize, + pub SetHeaderText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrheadertitle: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrheadersubtitle: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_Shell\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -54337,57 +52694,33 @@ impl IWebWizardHost2 { pub unsafe fn Cancel(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.Cancel)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCaption<'a, P0>(&self, bstrcaption: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetCaption)(::windows::core::Interface::as_raw(self), bstrcaption.into().abi()).ok() + pub unsafe fn SetCaption(&self, bstrcaption: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetCaption)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrcaption)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Caption(&self) -> ::windows::core::Result { + pub unsafe fn Caption(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.Caption)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.Caption)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn put_Property<'a, P0>(&self, bstrpropertyname: P0, pvproperty: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.put_Property)(::windows::core::Interface::as_raw(self), bstrpropertyname.into().abi(), ::core::mem::transmute(pvproperty)).ok() + pub unsafe fn put_Property(&self, bstrpropertyname: &::windows::core::BSTR, pvproperty: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.put_Property)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpropertyname), ::core::mem::transmute(pvproperty)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn get_Property<'a, P0>(&self, bstrpropertyname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn get_Property(&self, bstrpropertyname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.get_Property)(::windows::core::Interface::as_raw(self), bstrpropertyname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.get_Property)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpropertyname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } pub unsafe fn SetWizardButtons(&self, vfenableback: i16, vfenablenext: i16, vflastpage: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.SetWizardButtons)(::windows::core::Interface::as_raw(self), vfenableback, vfenablenext, vflastpage).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetHeaderText<'a, P0, P1>(&self, bstrheadertitle: P0, bstrheadersubtitle: P1) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).base__.SetHeaderText)(::windows::core::Interface::as_raw(self), bstrheadertitle.into().abi(), bstrheadersubtitle.into().abi()).ok() + pub unsafe fn SetHeaderText(&self, bstrheadertitle: &::windows::core::BSTR, bstrheadersubtitle: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).base__.SetHeaderText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrheadertitle), ::core::mem::transmute_copy(bstrheadersubtitle)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SignString<'a, P0>(&self, value: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn SignString(&self, value: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SignString)(::windows::core::Interface::as_raw(self), value.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SignString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(value), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -54474,10 +52807,7 @@ unsafe impl ::windows::core::Interface for IWebWizardHost2 { #[doc(hidden)] pub struct IWebWizardHost2_Vtbl { pub base__: IWebWizardHost_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub SignString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop, signedvalue: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SignString: usize, + pub SignString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>, signedvalue: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_Shell\"`*"] #[repr(transparent)] diff --git a/crates/libs/windows/src/Windows/Win32/UI/TabletPC/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/TabletPC/impl.rs index 0ab7ded21a..fa8847c0e0 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/TabletPC/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/TabletPC/impl.rs @@ -680,7 +680,7 @@ impl IInkCollector_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IInkCursor_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Id(&self) -> ::windows::core::Result; fn Inverted(&self) -> ::windows::core::Result; fn DrawingAttributes(&self) -> ::windows::core::Result; @@ -693,7 +693,7 @@ impl ::windows::core::RuntimeName for IInkCursor {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IInkCursor_Vtbl { pub const fn new, Impl: IInkCursor_Impl, const OFFSET: isize>() -> IInkCursor_Vtbl { - unsafe extern "system" fn Name, Impl: IInkCursor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IInkCursor_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -781,8 +781,8 @@ impl IInkCursor_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IInkCursorButton_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; - fn Id(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Id(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn State(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -790,7 +790,7 @@ impl ::windows::core::RuntimeName for IInkCursorButton {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IInkCursorButton_Vtbl { pub const fn new, Impl: IInkCursorButton_Impl, const OFFSET: isize>() -> IInkCursorButton_Vtbl { - unsafe extern "system" fn Name, Impl: IInkCursorButton_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IInkCursorButton_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -801,7 +801,7 @@ impl IInkCursorButton_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Id, Impl: IInkCursorButton_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, id: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Id, Impl: IInkCursorButton_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, id: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Id() { @@ -949,7 +949,7 @@ pub trait IInkCustomStrokes_Impl: Sized + super::super::System::Com::IDispatch_I fn Count(&self) -> ::windows::core::Result; fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; fn Item(&self, identifier: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn Add(&self, name: &super::super::Foundation::BSTR, strokes: &::core::option::Option) -> ::windows::core::Result<()>; + fn Add(&self, name: &::windows::core::BSTR, strokes: &::core::option::Option) -> ::windows::core::Result<()>; fn Remove(&self, identifier: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn Clear(&self) -> ::windows::core::Result<()>; } @@ -991,7 +991,7 @@ impl IInkCustomStrokes_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Add, Impl: IInkCustomStrokes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, strokes: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Add, Impl: IInkCustomStrokes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strokes: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Add(::core::mem::transmute(&name), ::core::mem::transmute(&strokes)).into() @@ -1448,7 +1448,7 @@ impl IInkDivisionResult_Vtbl { pub trait IInkDivisionUnit_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn Strokes(&self) -> ::windows::core::Result; fn DivisionType(&self) -> ::windows::core::Result; - fn RecognizedString(&self) -> ::windows::core::Result; + fn RecognizedString(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn RotationTransform(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -1478,7 +1478,7 @@ impl IInkDivisionUnit_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn RecognizedString, Impl: IInkDivisionUnit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, recostring: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn RecognizedString, Impl: IInkDivisionUnit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, recostring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RecognizedString() { @@ -1804,8 +1804,8 @@ pub trait IInkEdit_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn SetRecognitionTimeout(&self, newval: i32) -> ::windows::core::Result<()>; fn Recognizer(&self) -> ::windows::core::Result; fn putref_Recognizer(&self, newval: &::core::option::Option) -> ::windows::core::Result<()>; - fn Factoid(&self) -> ::windows::core::Result; - fn SetFactoid(&self, newval: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Factoid(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetFactoid(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SelInks(&self) -> ::windows::core::Result; fn SetSelInks(&self, selink: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn SelInksDisplayMode(&self) -> ::windows::core::Result; @@ -1822,8 +1822,8 @@ pub trait IInkEdit_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn Hwnd(&self) -> ::windows::core::Result; fn Font(&self) -> ::windows::core::Result; fn putref_Font(&self, ppfont: &::core::option::Option) -> ::windows::core::Result<()>; - fn Text(&self) -> ::windows::core::Result; - fn SetText(&self, pbstrtext: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Text(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetText(&self, pbstrtext: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn MouseIcon(&self) -> ::windows::core::Result; fn SetMouseIcon(&self, mouseicon: &::core::option::Option) -> ::windows::core::Result<()>; fn putref_MouseIcon(&self, mouseicon: &::core::option::Option) -> ::windows::core::Result<()>; @@ -1857,16 +1857,16 @@ pub trait IInkEdit_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn SetSelFontSize(&self, pvarselfontsize: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn SelCharOffset(&self) -> ::windows::core::Result; fn SetSelCharOffset(&self, pvarselcharoffset: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; - fn TextRTF(&self) -> ::windows::core::Result; - fn SetTextRTF(&self, pbstrtextrtf: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn TextRTF(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetTextRTF(&self, pbstrtextrtf: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn SelStart(&self) -> ::windows::core::Result; fn SetSelStart(&self, plselstart: i32) -> ::windows::core::Result<()>; fn SelLength(&self) -> ::windows::core::Result; fn SetSelLength(&self, plsellength: i32) -> ::windows::core::Result<()>; - fn SelText(&self) -> ::windows::core::Result; - fn SetSelText(&self, pbstrseltext: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SelRTF(&self) -> ::windows::core::Result; - fn SetSelRTF(&self, pbstrselrtf: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SelText(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetSelText(&self, pbstrseltext: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SelRTF(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetSelRTF(&self, pbstrselrtf: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Refresh(&self) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -1981,7 +1981,7 @@ impl IInkEdit_Vtbl { let this = (*this).get_impl(); this.putref_Recognizer(::core::mem::transmute(&newval)).into() } - unsafe extern "system" fn Factoid, Impl: IInkEdit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Factoid, Impl: IInkEdit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Factoid() { @@ -1992,7 +1992,7 @@ impl IInkEdit_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetFactoid, Impl: IInkEdit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetFactoid, Impl: IInkEdit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetFactoid(::core::mem::transmute(&newval)).into() @@ -2125,7 +2125,7 @@ impl IInkEdit_Vtbl { let this = (*this).get_impl(); this.putref_Font(::core::mem::transmute(&ppfont)).into() } - unsafe extern "system" fn Text, Impl: IInkEdit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Text, Impl: IInkEdit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Text() { @@ -2136,7 +2136,7 @@ impl IInkEdit_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetText, Impl: IInkEdit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtext: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetText, Impl: IInkEdit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtext: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetText(::core::mem::transmute(&pbstrtext)).into() @@ -2402,7 +2402,7 @@ impl IInkEdit_Vtbl { let this = (*this).get_impl(); this.SetSelCharOffset(::core::mem::transmute(&pvarselcharoffset)).into() } - unsafe extern "system" fn TextRTF, Impl: IInkEdit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtextrtf: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TextRTF, Impl: IInkEdit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtextrtf: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TextRTF() { @@ -2413,7 +2413,7 @@ impl IInkEdit_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetTextRTF, Impl: IInkEdit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtextrtf: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetTextRTF, Impl: IInkEdit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtextrtf: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetTextRTF(::core::mem::transmute(&pbstrtextrtf)).into() @@ -2450,7 +2450,7 @@ impl IInkEdit_Vtbl { let this = (*this).get_impl(); this.SetSelLength(::core::mem::transmute_copy(&plsellength)).into() } - unsafe extern "system" fn SelText, Impl: IInkEdit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrseltext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SelText, Impl: IInkEdit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrseltext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SelText() { @@ -2461,12 +2461,12 @@ impl IInkEdit_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSelText, Impl: IInkEdit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrseltext: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSelText, Impl: IInkEdit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrseltext: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSelText(::core::mem::transmute(&pbstrseltext)).into() } - unsafe extern "system" fn SelRTF, Impl: IInkEdit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrselrtf: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SelRTF, Impl: IInkEdit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrselrtf: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SelRTF() { @@ -2477,7 +2477,7 @@ impl IInkEdit_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSelRTF, Impl: IInkEdit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrselrtf: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSelRTF, Impl: IInkEdit_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrselrtf: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSelRTF(::core::mem::transmute(&pbstrselrtf)).into() @@ -2577,10 +2577,10 @@ pub trait IInkExtendedProperties_Impl: Sized + super::super::System::Com::IDispa fn Count(&self) -> ::windows::core::Result; fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; fn Item(&self, identifier: &super::super::System::Com::VARIANT) -> ::windows::core::Result; - fn Add(&self, guid: &super::super::Foundation::BSTR, data: &super::super::System::Com::VARIANT) -> ::windows::core::Result; + fn Add(&self, guid: &::windows::core::BSTR, data: &super::super::System::Com::VARIANT) -> ::windows::core::Result; fn Remove(&self, identifier: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn Clear(&self) -> ::windows::core::Result<()>; - fn DoesPropertyExist(&self, guid: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn DoesPropertyExist(&self, guid: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IInkExtendedProperties {} @@ -2620,7 +2620,7 @@ impl IInkExtendedProperties_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Add, Impl: IInkExtendedProperties_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, guid: ::core::mem::ManuallyDrop, data: ::core::mem::ManuallyDrop, inkextendedproperty: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn Add, Impl: IInkExtendedProperties_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, guid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, data: ::core::mem::ManuallyDrop, inkextendedproperty: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Add(::core::mem::transmute(&guid), ::core::mem::transmute(&data)) { @@ -2641,7 +2641,7 @@ impl IInkExtendedProperties_Vtbl { let this = (*this).get_impl(); this.Clear().into() } - unsafe extern "system" fn DoesPropertyExist, Impl: IInkExtendedProperties_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, guid: ::core::mem::ManuallyDrop, doespropertyexist: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn DoesPropertyExist, Impl: IInkExtendedProperties_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, guid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, doespropertyexist: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DoesPropertyExist(::core::mem::transmute(&guid)) { @@ -2669,7 +2669,7 @@ impl IInkExtendedProperties_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IInkExtendedProperty_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Guid(&self) -> ::windows::core::Result; + fn Guid(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Data(&self) -> ::windows::core::Result; fn SetData(&self, data: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; } @@ -2678,7 +2678,7 @@ impl ::windows::core::RuntimeName for IInkExtendedProperty {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IInkExtendedProperty_Vtbl { pub const fn new, Impl: IInkExtendedProperty_Impl, const OFFSET: isize>() -> IInkExtendedProperty_Vtbl { - unsafe extern "system" fn Guid, Impl: IInkExtendedProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, guid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Guid, Impl: IInkExtendedProperty_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, guid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Guid() { @@ -3978,7 +3978,7 @@ impl IInkPicture_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IInkRecognitionAlternate_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn String(&self) -> ::windows::core::Result; + fn String(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Confidence(&self) -> ::windows::core::Result; fn Baseline(&self) -> ::windows::core::Result; fn Midline(&self) -> ::windows::core::Result; @@ -3991,15 +3991,15 @@ pub trait IInkRecognitionAlternate_Impl: Sized + super::super::System::Com::IDis fn GetStrokesFromStrokeRanges(&self, strokes: &::core::option::Option) -> ::windows::core::Result; fn GetStrokesFromTextRange(&self, selectionstart: *mut i32, selectionlength: *mut i32, getstrokesfromtextrange: *mut ::core::option::Option) -> ::windows::core::Result<()>; fn GetTextRangeFromStrokes(&self, strokes: &::core::option::Option, selectionstart: *mut i32, selectionlength: *mut i32) -> ::windows::core::Result<()>; - fn AlternatesWithConstantPropertyValues(&self, propertytype: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetPropertyValue(&self, propertytype: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn AlternatesWithConstantPropertyValues(&self, propertytype: &::windows::core::BSTR) -> ::windows::core::Result; + fn GetPropertyValue(&self, propertytype: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IInkRecognitionAlternate {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IInkRecognitionAlternate_Vtbl { pub const fn new, Impl: IInkRecognitionAlternate_Impl, const OFFSET: isize>() -> IInkRecognitionAlternate_Vtbl { - unsafe extern "system" fn String, Impl: IInkRecognitionAlternate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, recostring: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn String, Impl: IInkRecognitionAlternate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, recostring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.String() { @@ -4130,7 +4130,7 @@ impl IInkRecognitionAlternate_Vtbl { let this = (*this).get_impl(); this.GetTextRangeFromStrokes(::core::mem::transmute(&strokes), ::core::mem::transmute_copy(&selectionstart), ::core::mem::transmute_copy(&selectionlength)).into() } - unsafe extern "system" fn AlternatesWithConstantPropertyValues, Impl: IInkRecognitionAlternate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertytype: ::core::mem::ManuallyDrop, alternateswithconstantpropertyvalues: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn AlternatesWithConstantPropertyValues, Impl: IInkRecognitionAlternate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertytype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, alternateswithconstantpropertyvalues: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.AlternatesWithConstantPropertyValues(::core::mem::transmute(&propertytype)) { @@ -4141,7 +4141,7 @@ impl IInkRecognitionAlternate_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetPropertyValue, Impl: IInkRecognitionAlternate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertytype: ::core::mem::ManuallyDrop, propertyvalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPropertyValue, Impl: IInkRecognitionAlternate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertytype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyvalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetPropertyValue(::core::mem::transmute(&propertytype)) { @@ -4245,7 +4245,7 @@ impl IInkRecognitionAlternates_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IInkRecognitionResult_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn TopString(&self) -> ::windows::core::Result; + fn TopString(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn TopAlternate(&self) -> ::windows::core::Result; fn TopConfidence(&self) -> ::windows::core::Result; fn Strokes(&self) -> ::windows::core::Result; @@ -4258,7 +4258,7 @@ impl ::windows::core::RuntimeName for IInkRecognitionResult {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IInkRecognitionResult_Vtbl { pub const fn new, Impl: IInkRecognitionResult_Impl, const OFFSET: isize>() -> IInkRecognitionResult_Vtbl { - unsafe extern "system" fn TopString, Impl: IInkRecognitionResult_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, topstring: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn TopString, Impl: IInkRecognitionResult_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, topstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TopString() { @@ -4340,8 +4340,8 @@ impl IInkRecognitionResult_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IInkRecognizer_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; - fn Vendor(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Vendor(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Capabilities(&self) -> ::windows::core::Result; fn Languages(&self) -> ::windows::core::Result; fn SupportedProperties(&self) -> ::windows::core::Result; @@ -4353,7 +4353,7 @@ impl ::windows::core::RuntimeName for IInkRecognizer {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IInkRecognizer_Vtbl { pub const fn new, Impl: IInkRecognizer_Impl, const OFFSET: isize>() -> IInkRecognizer_Vtbl { - unsafe extern "system" fn Name, Impl: IInkRecognizer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IInkRecognizer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -4364,7 +4364,7 @@ impl IInkRecognizer_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Vendor, Impl: IInkRecognizer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, vendor: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Vendor, Impl: IInkRecognizer_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, vendor: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Vendor() { @@ -4447,7 +4447,7 @@ impl IInkRecognizer_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IInkRecognizer2_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Id(&self) -> ::windows::core::Result; + fn Id(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn UnicodeRanges(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -4455,7 +4455,7 @@ impl ::windows::core::RuntimeName for IInkRecognizer2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IInkRecognizer2_Vtbl { pub const fn new, Impl: IInkRecognizer2_Impl, const OFFSET: isize>() -> IInkRecognizer2_Vtbl { - unsafe extern "system" fn Id, Impl: IInkRecognizer2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Id, Impl: IInkRecognizer2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Id() { @@ -4493,14 +4493,14 @@ pub trait IInkRecognizerContext_Impl: Sized + super::super::System::Com::IDispat fn putref_Strokes(&self, strokes: &::core::option::Option) -> ::windows::core::Result<()>; fn CharacterAutoCompletionMode(&self) -> ::windows::core::Result; fn SetCharacterAutoCompletionMode(&self, mode: InkRecognizerCharacterAutoCompletionMode) -> ::windows::core::Result<()>; - fn Factoid(&self) -> ::windows::core::Result; - fn SetFactoid(&self, factoid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Factoid(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetFactoid(&self, factoid: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Guide(&self) -> ::windows::core::Result; fn putref_Guide(&self, recognizerguide: &::core::option::Option) -> ::windows::core::Result<()>; - fn PrefixText(&self) -> ::windows::core::Result; - fn SetPrefixText(&self, prefix: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn SuffixText(&self) -> ::windows::core::Result; - fn SetSuffixText(&self, suffix: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn PrefixText(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetPrefixText(&self, prefix: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn SuffixText(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetSuffixText(&self, suffix: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn RecognitionFlags(&self) -> ::windows::core::Result; fn SetRecognitionFlags(&self, modes: InkRecognitionModes) -> ::windows::core::Result<()>; fn WordList(&self) -> ::windows::core::Result; @@ -4512,7 +4512,7 @@ pub trait IInkRecognizerContext_Impl: Sized + super::super::System::Com::IDispat fn BackgroundRecognize(&self, customdata: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn BackgroundRecognizeWithAlternates(&self, customdata: &super::super::System::Com::VARIANT) -> ::windows::core::Result<()>; fn Clone(&self) -> ::windows::core::Result; - fn IsStringSupported(&self, string: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn IsStringSupported(&self, string: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IInkRecognizerContext {} @@ -4551,7 +4551,7 @@ impl IInkRecognizerContext_Vtbl { let this = (*this).get_impl(); this.SetCharacterAutoCompletionMode(::core::mem::transmute_copy(&mode)).into() } - unsafe extern "system" fn Factoid, Impl: IInkRecognizerContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, factoid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Factoid, Impl: IInkRecognizerContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, factoid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Factoid() { @@ -4562,7 +4562,7 @@ impl IInkRecognizerContext_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetFactoid, Impl: IInkRecognizerContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, factoid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetFactoid, Impl: IInkRecognizerContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, factoid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetFactoid(::core::mem::transmute(&factoid)).into() @@ -4583,7 +4583,7 @@ impl IInkRecognizerContext_Vtbl { let this = (*this).get_impl(); this.putref_Guide(::core::mem::transmute(&recognizerguide)).into() } - unsafe extern "system" fn PrefixText, Impl: IInkRecognizerContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, prefix: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PrefixText, Impl: IInkRecognizerContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, prefix: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PrefixText() { @@ -4594,12 +4594,12 @@ impl IInkRecognizerContext_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPrefixText, Impl: IInkRecognizerContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, prefix: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPrefixText, Impl: IInkRecognizerContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, prefix: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetPrefixText(::core::mem::transmute(&prefix)).into() } - unsafe extern "system" fn SuffixText, Impl: IInkRecognizerContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, suffix: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn SuffixText, Impl: IInkRecognizerContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, suffix: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SuffixText() { @@ -4610,7 +4610,7 @@ impl IInkRecognizerContext_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetSuffixText, Impl: IInkRecognizerContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, suffix: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetSuffixText, Impl: IInkRecognizerContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, suffix: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSuffixText(::core::mem::transmute(&suffix)).into() @@ -4694,7 +4694,7 @@ impl IInkRecognizerContext_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn IsStringSupported, Impl: IInkRecognizerContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, string: ::core::mem::ManuallyDrop, supported: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn IsStringSupported, Impl: IInkRecognizerContext_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, string: ::core::mem::ManuallyDrop<::windows::core::BSTR>, supported: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.IsStringSupported(::core::mem::transmute(&string)) { @@ -5262,12 +5262,12 @@ pub trait IInkStrokeDisp_Impl: Sized + super::super::System::Com::IDispatch_Impl fn HitTestCircle(&self, x: i32, y: i32, radius: f32) -> ::windows::core::Result; fn NearestPoint(&self, x: i32, y: i32, distance: *mut f32, point: *mut f32) -> ::windows::core::Result<()>; fn Split(&self, splitat: f32) -> ::windows::core::Result; - fn GetPacketDescriptionPropertyMetrics(&self, propertyname: &super::super::Foundation::BSTR, minimum: *mut i32, maximum: *mut i32, units: *mut TabletPropertyMetricUnit, resolution: *mut f32) -> ::windows::core::Result<()>; + fn GetPacketDescriptionPropertyMetrics(&self, propertyname: &::windows::core::BSTR, minimum: *mut i32, maximum: *mut i32, units: *mut TabletPropertyMetricUnit, resolution: *mut f32) -> ::windows::core::Result<()>; fn GetPoints(&self, index: i32, count: i32) -> ::windows::core::Result; fn SetPoints(&self, points: &super::super::System::Com::VARIANT, index: i32, count: i32) -> ::windows::core::Result; fn GetPacketData(&self, index: i32, count: i32) -> ::windows::core::Result; - fn GetPacketValuesByProperty(&self, propertyname: &super::super::Foundation::BSTR, index: i32, count: i32) -> ::windows::core::Result; - fn SetPacketValuesByProperty(&self, bstrpropertyname: &super::super::Foundation::BSTR, packetvalues: &super::super::System::Com::VARIANT, index: i32, count: i32) -> ::windows::core::Result; + fn GetPacketValuesByProperty(&self, propertyname: &::windows::core::BSTR, index: i32, count: i32) -> ::windows::core::Result; + fn SetPacketValuesByProperty(&self, bstrpropertyname: &::windows::core::BSTR, packetvalues: &super::super::System::Com::VARIANT, index: i32, count: i32) -> ::windows::core::Result; fn GetFlattenedBezierPoints(&self, fittingerror: i32) -> ::windows::core::Result; fn Transform(&self, transform: &::core::option::Option, applyonpenwidth: i16) -> ::windows::core::Result<()>; fn ScaleToRectangle(&self, rectangle: &::core::option::Option) -> ::windows::core::Result<()>; @@ -5483,7 +5483,7 @@ impl IInkStrokeDisp_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetPacketDescriptionPropertyMetrics, Impl: IInkStrokeDisp_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop, minimum: *mut i32, maximum: *mut i32, units: *mut TabletPropertyMetricUnit, resolution: *mut f32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPacketDescriptionPropertyMetrics, Impl: IInkStrokeDisp_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, minimum: *mut i32, maximum: *mut i32, units: *mut TabletPropertyMetricUnit, resolution: *mut f32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetPacketDescriptionPropertyMetrics(::core::mem::transmute(&propertyname), ::core::mem::transmute_copy(&minimum), ::core::mem::transmute_copy(&maximum), ::core::mem::transmute_copy(&units), ::core::mem::transmute_copy(&resolution)).into() @@ -5521,7 +5521,7 @@ impl IInkStrokeDisp_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetPacketValuesByProperty, Impl: IInkStrokeDisp_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop, index: i32, count: i32, packetvalues: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPacketValuesByProperty, Impl: IInkStrokeDisp_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, index: i32, count: i32, packetvalues: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetPacketValuesByProperty(::core::mem::transmute(&propertyname), ::core::mem::transmute_copy(&index), ::core::mem::transmute_copy(&count)) { @@ -5532,7 +5532,7 @@ impl IInkStrokeDisp_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetPacketValuesByProperty, Impl: IInkStrokeDisp_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop, packetvalues: ::core::mem::ManuallyDrop, index: i32, count: i32, numberofpacketsset: *mut i32) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetPacketValuesByProperty, Impl: IInkStrokeDisp_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, packetvalues: ::core::mem::ManuallyDrop, index: i32, count: i32, numberofpacketsset: *mut i32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.SetPacketValuesByProperty(::core::mem::transmute(&bstrpropertyname), ::core::mem::transmute(&packetvalues), ::core::mem::transmute_copy(&index), ::core::mem::transmute_copy(&count)) { @@ -5631,7 +5631,7 @@ pub trait IInkStrokes_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; fn Ink(&self) -> ::windows::core::Result; fn RecognitionResult(&self) -> ::windows::core::Result; - fn ToString(&self) -> ::windows::core::Result; + fn ToString(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn Item(&self, index: i32) -> ::windows::core::Result; fn Add(&self, inkstroke: &::core::option::Option) -> ::windows::core::Result<()>; fn AddStrokes(&self, inkstrokes: &::core::option::Option) -> ::windows::core::Result<()>; @@ -5697,7 +5697,7 @@ impl IInkStrokes_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ToString, Impl: IInkStrokes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, tostring: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn ToString, Impl: IInkStrokes_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, tostring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ToString() { @@ -5825,19 +5825,19 @@ impl IInkStrokes_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IInkTablet_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn Name(&self) -> ::windows::core::Result; - fn PlugAndPlayId(&self) -> ::windows::core::Result; + fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn PlugAndPlayId(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn MaximumInputRectangle(&self) -> ::windows::core::Result; fn HardwareCapabilities(&self) -> ::windows::core::Result; - fn IsPacketPropertySupported(&self, packetpropertyname: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn GetPropertyMetrics(&self, propertyname: &super::super::Foundation::BSTR, minimum: *mut i32, maximum: *mut i32, units: *mut TabletPropertyMetricUnit, resolution: *mut f32) -> ::windows::core::Result<()>; + fn IsPacketPropertySupported(&self, packetpropertyname: &::windows::core::BSTR) -> ::windows::core::Result; + fn GetPropertyMetrics(&self, propertyname: &::windows::core::BSTR, minimum: *mut i32, maximum: *mut i32, units: *mut TabletPropertyMetricUnit, resolution: *mut f32) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IInkTablet {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IInkTablet_Vtbl { pub const fn new, Impl: IInkTablet_Impl, const OFFSET: isize>() -> IInkTablet_Vtbl { - unsafe extern "system" fn Name, Impl: IInkTablet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Name, Impl: IInkTablet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Name() { @@ -5848,7 +5848,7 @@ impl IInkTablet_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn PlugAndPlayId, Impl: IInkTablet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, id: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn PlugAndPlayId, Impl: IInkTablet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, id: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.PlugAndPlayId() { @@ -5881,7 +5881,7 @@ impl IInkTablet_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn IsPacketPropertySupported, Impl: IInkTablet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, packetpropertyname: ::core::mem::ManuallyDrop, supported: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn IsPacketPropertySupported, Impl: IInkTablet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, packetpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, supported: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.IsPacketPropertySupported(::core::mem::transmute(&packetpropertyname)) { @@ -5892,7 +5892,7 @@ impl IInkTablet_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetPropertyMetrics, Impl: IInkTablet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop, minimum: *mut i32, maximum: *mut i32, units: *mut TabletPropertyMetricUnit, resolution: *mut f32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPropertyMetrics, Impl: IInkTablet_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, minimum: *mut i32, maximum: *mut i32, units: *mut TabletPropertyMetricUnit, resolution: *mut f32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetPropertyMetrics(::core::mem::transmute(&propertyname), ::core::mem::transmute_copy(&minimum), ::core::mem::transmute_copy(&maximum), ::core::mem::transmute_copy(&units), ::core::mem::transmute_copy(&resolution)).into() @@ -5985,7 +5985,7 @@ pub trait IInkTablets_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn _NewEnum(&self) -> ::windows::core::Result<::windows::core::IUnknown>; fn DefaultTablet(&self) -> ::windows::core::Result; fn Item(&self, index: i32) -> ::windows::core::Result; - fn IsPacketPropertySupported(&self, packetpropertyname: &super::super::Foundation::BSTR) -> ::windows::core::Result; + fn IsPacketPropertySupported(&self, packetpropertyname: &::windows::core::BSTR) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IInkTablets {} @@ -6036,7 +6036,7 @@ impl IInkTablets_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn IsPacketPropertySupported, Impl: IInkTablets_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, packetpropertyname: ::core::mem::ManuallyDrop, supported: *mut i16) -> ::windows::core::HRESULT { + unsafe extern "system" fn IsPacketPropertySupported, Impl: IInkTablets_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, packetpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, supported: *mut i16) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.IsPacketPropertySupported(::core::mem::transmute(&packetpropertyname)) { @@ -6274,8 +6274,8 @@ impl IInkTransform_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IInkWordList_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn AddWord(&self, newword: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn RemoveWord(&self, removeword: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn AddWord(&self, newword: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn RemoveWord(&self, removeword: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Merge(&self, mergewordlist: &::core::option::Option) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -6283,12 +6283,12 @@ impl ::windows::core::RuntimeName for IInkWordList {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IInkWordList_Vtbl { pub const fn new, Impl: IInkWordList_Impl, const OFFSET: isize>() -> IInkWordList_Vtbl { - unsafe extern "system" fn AddWord, Impl: IInkWordList_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddWord, Impl: IInkWordList_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddWord(::core::mem::transmute(&newword)).into() } - unsafe extern "system" fn RemoveWord, Impl: IInkWordList_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, removeword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn RemoveWord, Impl: IInkWordList_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, removeword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RemoveWord(::core::mem::transmute(&removeword)).into() @@ -6311,14 +6311,14 @@ impl IInkWordList_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IInkWordList2_Impl: Sized + super::super::System::Com::IDispatch_Impl { - fn AddWords(&self, newwords: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn AddWords(&self, newwords: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IInkWordList2 {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IInkWordList2_Vtbl { pub const fn new, Impl: IInkWordList2_Impl, const OFFSET: isize>() -> IInkWordList2_Vtbl { - unsafe extern "system" fn AddWords, Impl: IInkWordList2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newwords: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddWords, Impl: IInkWordList2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, newwords: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddWords(::core::mem::transmute(&newwords)).into() @@ -6391,15 +6391,15 @@ pub trait IMathInputControl_Impl: Sized + super::super::System::Com::IDispatch_I fn SetPosition(&self, left: i32, top: i32, right: i32, bottom: i32) -> ::windows::core::Result<()>; fn Clear(&self) -> ::windows::core::Result<()>; fn SetCustomPaint(&self, element: i32, paint: i16) -> ::windows::core::Result<()>; - fn SetCaptionText(&self, captiontext: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn SetCaptionText(&self, captiontext: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn LoadInk(&self, ink: &::core::option::Option) -> ::windows::core::Result<()>; fn SetOwnerWindow(&self, ownerwindow: isize) -> ::windows::core::Result<()>; fn EnableExtendedButtons(&self, extended: i16) -> ::windows::core::Result<()>; fn GetPreviewHeight(&self) -> ::windows::core::Result; fn SetPreviewHeight(&self, height: i32) -> ::windows::core::Result<()>; fn EnableAutoGrow(&self, autogrow: i16) -> ::windows::core::Result<()>; - fn AddFunctionName(&self, functionname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; - fn RemoveFunctionName(&self, functionname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn AddFunctionName(&self, functionname: &::windows::core::BSTR) -> ::windows::core::Result<()>; + fn RemoveFunctionName(&self, functionname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn GetHoverIcon(&self) -> ::windows::core::Result; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -6448,7 +6448,7 @@ impl IMathInputControl_Vtbl { let this = (*this).get_impl(); this.SetCustomPaint(::core::mem::transmute_copy(&element), ::core::mem::transmute_copy(&paint)).into() } - unsafe extern "system" fn SetCaptionText, Impl: IMathInputControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, captiontext: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetCaptionText, Impl: IMathInputControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, captiontext: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetCaptionText(::core::mem::transmute(&captiontext)).into() @@ -6489,12 +6489,12 @@ impl IMathInputControl_Vtbl { let this = (*this).get_impl(); this.EnableAutoGrow(::core::mem::transmute_copy(&autogrow)).into() } - unsafe extern "system" fn AddFunctionName, Impl: IMathInputControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, functionname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn AddFunctionName, Impl: IMathInputControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, functionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddFunctionName(::core::mem::transmute(&functionname)).into() } - unsafe extern "system" fn RemoveFunctionName, Impl: IMathInputControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, functionname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn RemoveFunctionName, Impl: IMathInputControl_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, functionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RemoveFunctionName(::core::mem::transmute(&functionname)).into() @@ -6538,8 +6538,8 @@ impl IMathInputControl_Vtbl { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IPenInputPanel_Impl: Sized + super::super::System::Com::IDispatch_Impl { fn Busy(&self) -> ::windows::core::Result; - fn Factoid(&self) -> ::windows::core::Result; - fn SetFactoid(&self, factoid: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Factoid(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn SetFactoid(&self, factoid: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn AttachedEditWindow(&self) -> ::windows::core::Result; fn SetAttachedEditWindow(&self, attachededitwindow: i32) -> ::windows::core::Result<()>; fn CurrentPanel(&self) -> ::windows::core::Result; @@ -6579,7 +6579,7 @@ impl IPenInputPanel_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn Factoid, Impl: IPenInputPanel_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, factoid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn Factoid, Impl: IPenInputPanel_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, factoid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Factoid() { @@ -6590,7 +6590,7 @@ impl IPenInputPanel_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetFactoid, Impl: IPenInputPanel_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, factoid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetFactoid, Impl: IPenInputPanel_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, factoid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetFactoid(::core::mem::transmute(&factoid)).into() @@ -7912,7 +7912,7 @@ impl ITipAutoCompleteClient_Vtbl { } #[cfg(feature = "Win32_Foundation")] pub trait ITipAutoCompleteProvider_Impl: Sized { - fn UpdatePendingText(&self, bstrpendingtext: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn UpdatePendingText(&self, bstrpendingtext: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn Show(&self, fshow: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; } #[cfg(feature = "Win32_Foundation")] @@ -7920,7 +7920,7 @@ impl ::windows::core::RuntimeName for ITipAutoCompleteProvider {} #[cfg(feature = "Win32_Foundation")] impl ITipAutoCompleteProvider_Vtbl { pub const fn new, Impl: ITipAutoCompleteProvider_Impl, const OFFSET: isize>() -> ITipAutoCompleteProvider_Vtbl { - unsafe extern "system" fn UpdatePendingText, Impl: ITipAutoCompleteProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpendingtext: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn UpdatePendingText, Impl: ITipAutoCompleteProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrpendingtext: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.UpdatePendingText(::core::mem::transmute(&bstrpendingtext)).into() diff --git a/crates/libs/windows/src/Windows/Win32/UI/TabletPC/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/TabletPC/mod.rs index 998c603d79..4ca83338e9 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/TabletPC/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/TabletPC/mod.rs @@ -1106,11 +1106,9 @@ pub struct IInkCollector_Vtbl { pub struct IInkCursor(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IInkCursor { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Id(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1213,10 +1211,7 @@ unsafe impl ::windows::core::Interface for IInkCursor { #[doc(hidden)] pub struct IInkCursor_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: *mut i32) -> ::windows::core::HRESULT, pub Inverted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, status: *mut i16) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] @@ -1242,17 +1237,13 @@ pub struct IInkCursor_Vtbl { pub struct IInkCursorButton(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IInkCursorButton { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Id(&self) -> ::windows::core::Result { + pub unsafe fn Id(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn State(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -1325,14 +1316,8 @@ unsafe impl ::windows::core::Interface for IInkCursorButton { #[doc(hidden)] pub struct IInkCursorButton_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Id: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, currentstate: *mut InkCursorButtonState) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_TabletPC\"`, `\"Win32_System_Com\"`*"] @@ -1549,14 +1534,13 @@ impl IInkCustomStrokes { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Item)(::windows::core::Interface::as_raw(self), identifier.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn Add<'a, P0, P1>(&self, name: P0, strokes: P1) -> ::windows::core::Result<()> + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn Add<'a, P0>(&self, name: &::windows::core::BSTR, strokes: P0) -> ::windows::core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IInkStrokes>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, IInkStrokes>>, { - (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), name.into().abi(), strokes.into().abi()).ok() + (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(name), strokes.into().abi()).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -1642,9 +1626,9 @@ pub struct IInkCustomStrokes_Vtbl { pub Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, identifier: ::core::mem::ManuallyDrop, strokes: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Item: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop, strokes: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::BSTR>, strokes: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] Add: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub Remove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, identifier: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, @@ -2252,11 +2236,9 @@ impl IInkDivisionUnit { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).DivisionType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RecognizedString(&self) -> ::windows::core::Result { + pub unsafe fn RecognizedString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).RecognizedString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).RecognizedString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -2336,10 +2318,7 @@ pub struct IInkDivisionUnit_Vtbl { #[cfg(not(feature = "Win32_System_Com"))] Strokes: usize, pub DivisionType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, divisiontype: *mut InkDivisionType) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub RecognizedString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, recostring: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RecognizedString: usize, + pub RecognizedString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, recostring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub RotationTransform: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rotationtransform: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -2680,19 +2659,12 @@ impl IInkEdit { { (::windows::core::Interface::vtable(self).putref_Recognizer)(::windows::core::Interface::as_raw(self), newval.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Factoid(&self) -> ::windows::core::Result { + pub unsafe fn Factoid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Factoid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Factoid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFactoid<'a, P0>(&self, newval: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetFactoid)(::windows::core::Interface::as_raw(self), newval.into().abi()).ok() + pub unsafe fn SetFactoid(&self, newval: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetFactoid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(newval)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2764,19 +2736,12 @@ impl IInkEdit { { (::windows::core::Interface::vtable(self).putref_Font)(::windows::core::Interface::as_raw(self), ppfont.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Text(&self) -> ::windows::core::Result { + pub unsafe fn Text(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Text)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Text)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetText<'a, P0>(&self, pbstrtext: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetText)(::windows::core::Interface::as_raw(self), pbstrtext.into().abi()).ok() + pub unsafe fn SetText(&self, pbstrtext: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pbstrtext)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -2961,19 +2926,12 @@ impl IInkEdit { { (::windows::core::Interface::vtable(self).SetSelCharOffset)(::windows::core::Interface::as_raw(self), pvarselcharoffset.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TextRTF(&self) -> ::windows::core::Result { + pub unsafe fn TextRTF(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TextRTF)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TextRTF)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetTextRTF<'a, P0>(&self, pbstrtextrtf: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetTextRTF)(::windows::core::Interface::as_raw(self), pbstrtextrtf.into().abi()).ok() + pub unsafe fn SetTextRTF(&self, pbstrtextrtf: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetTextRTF)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pbstrtextrtf)).ok() } pub unsafe fn SelStart(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -2989,33 +2947,19 @@ impl IInkEdit { pub unsafe fn SetSelLength(&self, plsellength: i32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetSelLength)(::windows::core::Interface::as_raw(self), plsellength).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SelText(&self) -> ::windows::core::Result { + pub unsafe fn SelText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SelText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SelText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSelText<'a, P0>(&self, pbstrseltext: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSelText)(::windows::core::Interface::as_raw(self), pbstrseltext.into().abi()).ok() + pub unsafe fn SetSelText(&self, pbstrseltext: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSelText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pbstrseltext)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SelRTF(&self) -> ::windows::core::Result { + pub unsafe fn SelRTF(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SelRTF)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SelRTF)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSelRTF<'a, P0>(&self, pbstrselrtf: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSelRTF)(::windows::core::Interface::as_raw(self), pbstrselrtf.into().abi()).ok() + pub unsafe fn SetSelRTF(&self, pbstrselrtf: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSelRTF)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(pbstrselrtf)).ok() } pub unsafe fn Refresh(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Refresh)(::windows::core::Interface::as_raw(self)).ok() @@ -3112,14 +3056,8 @@ pub struct IInkEdit_Vtbl { pub putref_Recognizer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] putref_Recognizer: usize, - #[cfg(feature = "Win32_Foundation")] - pub Factoid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Factoid: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetFactoid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetFactoid: usize, + pub Factoid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pval: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetFactoid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newval: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub SelInks: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pselink: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -3148,14 +3086,8 @@ pub struct IInkEdit_Vtbl { pub putref_Font: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppfont: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole")))] putref_Font: usize, - #[cfg(feature = "Win32_Foundation")] - pub Text: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Text: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtext: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetText: usize, + pub Text: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtext: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub MouseIcon: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mouseicon: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -3246,34 +3178,16 @@ pub struct IInkEdit_Vtbl { pub SetSelCharOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pvarselcharoffset: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SetSelCharOffset: usize, - #[cfg(feature = "Win32_Foundation")] - pub TextRTF: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtextrtf: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TextRTF: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetTextRTF: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtextrtf: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetTextRTF: usize, + pub TextRTF: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtextrtf: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetTextRTF: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtextrtf: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub SelStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plselstart: *mut i32) -> ::windows::core::HRESULT, pub SetSelStart: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plselstart: i32) -> ::windows::core::HRESULT, pub SelLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plsellength: *mut i32) -> ::windows::core::HRESULT, pub SetSelLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plsellength: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SelText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrseltext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SelText: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSelText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrseltext: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSelText: usize, - #[cfg(feature = "Win32_Foundation")] - pub SelRTF: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrselrtf: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SelRTF: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSelRTF: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrselrtf: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSelRTF: usize, + pub SelText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrseltext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSelText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrseltext: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SelRTF: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrselrtf: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSelRTF: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrselrtf: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Refresh: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_TabletPC\"`, `\"Win32_System_Com\"`*"] @@ -3301,13 +3215,12 @@ impl IInkExtendedProperties { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn Add<'a, P0, P1>(&self, guid: P0, data: P1) -> ::windows::core::Result + pub unsafe fn Add<'a, P0>(&self, guid: &::windows::core::BSTR, data: P0) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), guid.into().abi(), data.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Add)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(guid), data.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3320,14 +3233,9 @@ impl IInkExtendedProperties { pub unsafe fn Clear(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Clear)(::windows::core::Interface::as_raw(self)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn DoesPropertyExist<'a, P0>(&self, guid: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn DoesPropertyExist(&self, guid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).DoesPropertyExist)(::windows::core::Interface::as_raw(self), guid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).DoesPropertyExist)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(guid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -3403,7 +3311,7 @@ pub struct IInkExtendedProperties_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Item: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: ::core::mem::ManuallyDrop, data: ::core::mem::ManuallyDrop, inkextendedproperty: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub Add: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, data: ::core::mem::ManuallyDrop, inkextendedproperty: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Add: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3411,10 +3319,7 @@ pub struct IInkExtendedProperties_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] Remove: usize, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub DoesPropertyExist: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: ::core::mem::ManuallyDrop, doespropertyexist: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - DoesPropertyExist: usize, + pub DoesPropertyExist: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, doespropertyexist: *mut i16) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_TabletPC\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -3422,11 +3327,9 @@ pub struct IInkExtendedProperties_Vtbl { pub struct IInkExtendedProperty(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IInkExtendedProperty { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Guid(&self) -> ::windows::core::Result { + pub unsafe fn Guid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Guid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Guid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -3509,10 +3412,7 @@ unsafe impl ::windows::core::Interface for IInkExtendedProperty { #[doc(hidden)] pub struct IInkExtendedProperty_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Guid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Guid: usize, + pub Guid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, guid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub Data: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, data: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -4624,11 +4524,9 @@ pub struct IInkPicture_Vtbl { pub struct IInkRecognitionAlternate(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IInkRecognitionAlternate { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn String(&self) -> ::windows::core::Result { + pub unsafe fn String(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).String)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).String)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Confidence(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -4702,23 +4600,17 @@ impl IInkRecognitionAlternate { { (::windows::core::Interface::vtable(self).GetTextRangeFromStrokes)(::windows::core::Interface::as_raw(self), strokes.into().abi(), ::core::mem::transmute(selectionstart), ::core::mem::transmute(selectionlength)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub unsafe fn AlternatesWithConstantPropertyValues<'a, P0>(&self, propertytype: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] + pub unsafe fn AlternatesWithConstantPropertyValues(&self, propertytype: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).AlternatesWithConstantPropertyValues)(::windows::core::Interface::as_raw(self), propertytype.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).AlternatesWithConstantPropertyValues)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(propertytype), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetPropertyValue<'a, P0>(&self, propertytype: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetPropertyValue(&self, propertytype: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetPropertyValue)(::windows::core::Interface::as_raw(self), propertytype.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetPropertyValue)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(propertytype), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -4787,10 +4679,7 @@ unsafe impl ::windows::core::Interface for IInkRecognitionAlternate { #[doc(hidden)] pub struct IInkRecognitionAlternate_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub String: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, recostring: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - String: usize, + pub String: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, recostring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Confidence: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, confidence: *mut InkRecognitionConfidence) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub Baseline: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, baseline: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, @@ -4833,12 +4722,12 @@ pub struct IInkRecognitionAlternate_Vtbl { pub GetTextRangeFromStrokes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, strokes: *mut ::core::ffi::c_void, selectionstart: *mut i32, selectionlength: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] GetTextRangeFromStrokes: usize, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] - pub AlternatesWithConstantPropertyValues: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertytype: ::core::mem::ManuallyDrop, alternateswithconstantpropertyvalues: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(feature = "Win32_System_Com")] + pub AlternatesWithConstantPropertyValues: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertytype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, alternateswithconstantpropertyvalues: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + #[cfg(not(feature = "Win32_System_Com"))] AlternatesWithConstantPropertyValues: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetPropertyValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertytype: ::core::mem::ManuallyDrop, propertyvalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetPropertyValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertytype: ::core::mem::ManuallyDrop<::windows::core::BSTR>, propertyvalue: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetPropertyValue: usize, } @@ -4952,11 +4841,9 @@ pub struct IInkRecognitionAlternates_Vtbl { pub struct IInkRecognitionResult(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IInkRecognitionResult { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn TopString(&self) -> ::windows::core::Result { + pub unsafe fn TopString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).TopString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).TopString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5058,10 +4945,7 @@ unsafe impl ::windows::core::Interface for IInkRecognitionResult { #[doc(hidden)] pub struct IInkRecognitionResult_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub TopString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, topstring: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - TopString: usize, + pub TopString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, topstring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub TopAlternate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, topalternate: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -5087,17 +4971,13 @@ pub struct IInkRecognitionResult_Vtbl { pub struct IInkRecognizer(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IInkRecognizer { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Vendor(&self) -> ::windows::core::Result { + pub unsafe fn Vendor(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Vendor)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Vendor)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Capabilities(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5194,14 +5074,8 @@ unsafe impl ::windows::core::Interface for IInkRecognizer { #[doc(hidden)] pub struct IInkRecognizer_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub Vendor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vendor: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Vendor: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub Vendor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, vendor: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub Capabilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, capabilitiesflags: *mut InkRecognizerCapabilities) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub Languages: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, languages: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, @@ -5226,11 +5100,9 @@ pub struct IInkRecognizer_Vtbl { pub struct IInkRecognizer2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IInkRecognizer2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Id(&self) -> ::windows::core::Result { + pub unsafe fn Id(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Id)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -5305,10 +5177,7 @@ unsafe impl ::windows::core::Interface for IInkRecognizer2 { #[doc(hidden)] pub struct IInkRecognizer2_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Id: usize, + pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub UnicodeRanges: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, unicoderanges: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -5341,19 +5210,12 @@ impl IInkRecognizerContext { pub unsafe fn SetCharacterAutoCompletionMode(&self, mode: InkRecognizerCharacterAutoCompletionMode) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetCharacterAutoCompletionMode)(::windows::core::Interface::as_raw(self), mode).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Factoid(&self) -> ::windows::core::Result { + pub unsafe fn Factoid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Factoid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Factoid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFactoid<'a, P0>(&self, factoid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetFactoid)(::windows::core::Interface::as_raw(self), factoid.into().abi()).ok() + pub unsafe fn SetFactoid(&self, factoid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetFactoid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(factoid)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -5369,33 +5231,19 @@ impl IInkRecognizerContext { { (::windows::core::Interface::vtable(self).putref_Guide)(::windows::core::Interface::as_raw(self), recognizerguide.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PrefixText(&self) -> ::windows::core::Result { + pub unsafe fn PrefixText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PrefixText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PrefixText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetPrefixText<'a, P0>(&self, prefix: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetPrefixText)(::windows::core::Interface::as_raw(self), prefix.into().abi()).ok() + pub unsafe fn SetPrefixText(&self, prefix: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetPrefixText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(prefix)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SuffixText(&self) -> ::windows::core::Result { + pub unsafe fn SuffixText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SuffixText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SuffixText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetSuffixText<'a, P0>(&self, suffix: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetSuffixText)(::windows::core::Interface::as_raw(self), suffix.into().abi()).ok() + pub unsafe fn SetSuffixText(&self, suffix: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetSuffixText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(suffix)).ok() } pub unsafe fn RecognitionFlags(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -5457,14 +5305,9 @@ impl IInkRecognizerContext { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Clone)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsStringSupported<'a, P0>(&self, string: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsStringSupported(&self, string: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).IsStringSupported)(::windows::core::Interface::as_raw(self), string.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).IsStringSupported)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(string), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -5543,14 +5386,8 @@ pub struct IInkRecognizerContext_Vtbl { putref_Strokes: usize, pub CharacterAutoCompletionMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mode: *mut InkRecognizerCharacterAutoCompletionMode) -> ::windows::core::HRESULT, pub SetCharacterAutoCompletionMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mode: InkRecognizerCharacterAutoCompletionMode) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Factoid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, factoid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Factoid: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetFactoid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, factoid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetFactoid: usize, + pub Factoid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, factoid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetFactoid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, factoid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Guide: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, recognizerguide: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -5559,22 +5396,10 @@ pub struct IInkRecognizerContext_Vtbl { pub putref_Guide: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, recognizerguide: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] putref_Guide: usize, - #[cfg(feature = "Win32_Foundation")] - pub PrefixText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prefix: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PrefixText: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetPrefixText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prefix: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetPrefixText: usize, - #[cfg(feature = "Win32_Foundation")] - pub SuffixText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, suffix: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SuffixText: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetSuffixText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, suffix: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetSuffixText: usize, + pub PrefixText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prefix: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetPrefixText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, prefix: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SuffixText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, suffix: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetSuffixText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, suffix: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub RecognitionFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, modes: *mut InkRecognitionModes) -> ::windows::core::HRESULT, pub SetRecognitionFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, modes: InkRecognitionModes) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] @@ -5607,10 +5432,7 @@ pub struct IInkRecognizerContext_Vtbl { pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, recocontext: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Clone: usize, - #[cfg(feature = "Win32_Foundation")] - pub IsStringSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, string: ::core::mem::ManuallyDrop, supported: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - IsStringSupported: usize, + pub IsStringSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, string: ::core::mem::ManuallyDrop<::windows::core::BSTR>, supported: *mut i16) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_TabletPC\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6448,13 +6270,8 @@ impl IInkStrokeDisp { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Split)(::windows::core::Interface::as_raw(self), splitat, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPacketDescriptionPropertyMetrics<'a, P0>(&self, propertyname: P0, minimum: &mut i32, maximum: &mut i32, units: &mut TabletPropertyMetricUnit, resolution: &mut f32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetPacketDescriptionPropertyMetrics)(::windows::core::Interface::as_raw(self), propertyname.into().abi(), ::core::mem::transmute(minimum), ::core::mem::transmute(maximum), ::core::mem::transmute(units), ::core::mem::transmute(resolution)).ok() + pub unsafe fn GetPacketDescriptionPropertyMetrics(&self, propertyname: &::windows::core::BSTR, minimum: &mut i32, maximum: &mut i32, units: &mut TabletPropertyMetricUnit, resolution: &mut f32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetPacketDescriptionPropertyMetrics)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(propertyname), ::core::mem::transmute(minimum), ::core::mem::transmute(maximum), ::core::mem::transmute(units), ::core::mem::transmute(resolution)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -6479,22 +6296,18 @@ impl IInkStrokeDisp { } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn GetPacketValuesByProperty<'a, P0>(&self, propertyname: P0, index: i32, count: i32) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetPacketValuesByProperty(&self, propertyname: &::windows::core::BSTR, index: i32, count: i32) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetPacketValuesByProperty)(::windows::core::Interface::as_raw(self), propertyname.into().abi(), index, count, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetPacketValuesByProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(propertyname), index, count, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn SetPacketValuesByProperty<'a, P0, P1>(&self, bstrpropertyname: P0, packetvalues: P1, index: i32, count: i32) -> ::windows::core::Result + pub unsafe fn SetPacketValuesByProperty<'a, P0>(&self, bstrpropertyname: &::windows::core::BSTR, packetvalues: P0, index: i32, count: i32) -> ::windows::core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, + P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).SetPacketValuesByProperty)(::windows::core::Interface::as_raw(self), bstrpropertyname.into().abi(), packetvalues.into().abi(), index, count, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).SetPacketValuesByProperty)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpropertyname), packetvalues.into().abi(), index, count, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -6659,10 +6472,7 @@ pub struct IInkStrokeDisp_Vtbl { pub Split: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, splitat: f32, newstroke: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Split: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetPacketDescriptionPropertyMetrics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop, minimum: *mut i32, maximum: *mut i32, units: *mut TabletPropertyMetricUnit, resolution: *mut f32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPacketDescriptionPropertyMetrics: usize, + pub GetPacketDescriptionPropertyMetrics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, minimum: *mut i32, maximum: *mut i32, units: *mut TabletPropertyMetricUnit, resolution: *mut f32) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub GetPoints: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, count: i32, points: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -6676,11 +6486,11 @@ pub struct IInkStrokeDisp_Vtbl { #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetPacketData: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub GetPacketValuesByProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop, index: i32, count: i32, packetvalues: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, + pub GetPacketValuesByProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, index: i32, count: i32, packetvalues: *mut super::super::System::Com::VARIANT) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] GetPacketValuesByProperty: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub SetPacketValuesByProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop, packetvalues: ::core::mem::ManuallyDrop, index: i32, count: i32, numberofpacketsset: *mut i32) -> ::windows::core::HRESULT, + pub SetPacketValuesByProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, packetvalues: ::core::mem::ManuallyDrop, index: i32, count: i32, numberofpacketsset: *mut i32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] SetPacketValuesByProperty: usize, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -6726,11 +6536,9 @@ impl IInkStrokes { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).RecognitionResult)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn ToString(&self) -> ::windows::core::Result { + pub unsafe fn ToString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).ToString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).ToString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6900,10 +6708,7 @@ pub struct IInkStrokes_Vtbl { pub RecognitionResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, recognitionresult: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] RecognitionResult: usize, - #[cfg(feature = "Win32_Foundation")] - pub ToString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tostring: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - ToString: usize, + pub ToString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tostring: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, stroke: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -6956,17 +6761,13 @@ pub struct IInkStrokes_Vtbl { pub struct IInkTablet(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IInkTablet { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Name(&self) -> ::windows::core::Result { + pub unsafe fn Name(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Name)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PlugAndPlayId(&self) -> ::windows::core::Result { + pub unsafe fn PlugAndPlayId(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).PlugAndPlayId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).PlugAndPlayId)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -6978,22 +6779,12 @@ impl IInkTablet { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).HardwareCapabilities)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsPacketPropertySupported<'a, P0>(&self, packetpropertyname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsPacketPropertySupported(&self, packetpropertyname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).IsPacketPropertySupported)(::windows::core::Interface::as_raw(self), packetpropertyname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).IsPacketPropertySupported)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(packetpropertyname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPropertyMetrics<'a, P0>(&self, propertyname: P0, minimum: &mut i32, maximum: &mut i32, units: &mut TabletPropertyMetricUnit, resolution: &mut f32) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).GetPropertyMetrics)(::windows::core::Interface::as_raw(self), propertyname.into().abi(), ::core::mem::transmute(minimum), ::core::mem::transmute(maximum), ::core::mem::transmute(units), ::core::mem::transmute(resolution)).ok() + pub unsafe fn GetPropertyMetrics(&self, propertyname: &::windows::core::BSTR, minimum: &mut i32, maximum: &mut i32, units: &mut TabletPropertyMetricUnit, resolution: &mut f32) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).GetPropertyMetrics)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(propertyname), ::core::mem::transmute(minimum), ::core::mem::transmute(maximum), ::core::mem::transmute(units), ::core::mem::transmute(resolution)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -7062,27 +6853,15 @@ unsafe impl ::windows::core::Interface for IInkTablet { #[doc(hidden)] pub struct IInkTablet_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Name: usize, - #[cfg(feature = "Win32_Foundation")] - pub PlugAndPlayId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PlugAndPlayId: usize, + pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub PlugAndPlayId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, id: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub MaximumInputRectangle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rectangle: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] MaximumInputRectangle: usize, pub HardwareCapabilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, capabilities: *mut TabletHardwareCapabilities) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub IsPacketPropertySupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, packetpropertyname: ::core::mem::ManuallyDrop, supported: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - IsPacketPropertySupported: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetPropertyMetrics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop, minimum: *mut i32, maximum: *mut i32, units: *mut TabletPropertyMetricUnit, resolution: *mut f32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPropertyMetrics: usize, + pub IsPacketPropertySupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, packetpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, supported: *mut i16) -> ::windows::core::HRESULT, + pub GetPropertyMetrics: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, propertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, minimum: *mut i32, maximum: *mut i32, units: *mut TabletPropertyMetricUnit, resolution: *mut f32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_TabletPC\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7273,14 +7052,9 @@ impl IInkTablets { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Item)(::windows::core::Interface::as_raw(self), index, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn IsPacketPropertySupported<'a, P0>(&self, packetpropertyname: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn IsPacketPropertySupported(&self, packetpropertyname: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).IsPacketPropertySupported)(::windows::core::Interface::as_raw(self), packetpropertyname.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).IsPacketPropertySupported)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(packetpropertyname), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } } #[cfg(feature = "Win32_System_Com")] @@ -7359,10 +7133,7 @@ pub struct IInkTablets_Vtbl { pub Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, tablet: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] Item: usize, - #[cfg(feature = "Win32_Foundation")] - pub IsPacketPropertySupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, packetpropertyname: ::core::mem::ManuallyDrop, supported: *mut i16) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - IsPacketPropertySupported: usize, + pub IsPacketPropertySupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, packetpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>, supported: *mut i16) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_TabletPC\"`, `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7549,21 +7320,11 @@ pub struct IInkTransform_Vtbl { pub struct IInkWordList(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IInkWordList { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddWord<'a, P0>(&self, newword: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AddWord)(::windows::core::Interface::as_raw(self), newword.into().abi()).ok() + pub unsafe fn AddWord(&self, newword: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AddWord)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(newword)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoveWord<'a, P0>(&self, removeword: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).RemoveWord)(::windows::core::Interface::as_raw(self), removeword.into().abi()).ok() + pub unsafe fn RemoveWord(&self, removeword: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).RemoveWord)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(removeword)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7640,14 +7401,8 @@ unsafe impl ::windows::core::Interface for IInkWordList { #[doc(hidden)] pub struct IInkWordList_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub AddWord: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddWord: usize, - #[cfg(feature = "Win32_Foundation")] - pub RemoveWord: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, removeword: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RemoveWord: usize, + pub AddWord: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub RemoveWord: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, removeword: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub Merge: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mergewordlist: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -7659,13 +7414,8 @@ pub struct IInkWordList_Vtbl { pub struct IInkWordList2(::windows::core::IUnknown); #[cfg(feature = "Win32_System_Com")] impl IInkWordList2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddWords<'a, P0>(&self, newwords: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AddWords)(::windows::core::Interface::as_raw(self), newwords.into().abi()).ok() + pub unsafe fn AddWords(&self, newwords: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AddWords)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(newwords)).ok() } } #[cfg(feature = "Win32_System_Com")] @@ -7734,10 +7484,7 @@ unsafe impl ::windows::core::Interface for IInkWordList2 { #[doc(hidden)] pub struct IInkWordList2_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub AddWords: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newwords: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddWords: usize, + pub AddWords: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, newwords: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_TabletPC\"`*"] #[repr(transparent)] @@ -7830,13 +7577,8 @@ impl IMathInputControl { pub unsafe fn SetCustomPaint(&self, element: i32, paint: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetCustomPaint)(::windows::core::Interface::as_raw(self), element, paint).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetCaptionText<'a, P0>(&self, captiontext: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetCaptionText)(::windows::core::Interface::as_raw(self), captiontext.into().abi()).ok() + pub unsafe fn SetCaptionText(&self, captiontext: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetCaptionText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(captiontext)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -7862,21 +7604,11 @@ impl IMathInputControl { pub unsafe fn EnableAutoGrow(&self, autogrow: i16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).EnableAutoGrow)(::windows::core::Interface::as_raw(self), autogrow).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn AddFunctionName<'a, P0>(&self, functionname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).AddFunctionName)(::windows::core::Interface::as_raw(self), functionname.into().abi()).ok() + pub unsafe fn AddFunctionName(&self, functionname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).AddFunctionName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(functionname)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn RemoveFunctionName<'a, P0>(&self, functionname: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).RemoveFunctionName)(::windows::core::Interface::as_raw(self), functionname.into().abi()).ok() + pub unsafe fn RemoveFunctionName(&self, functionname: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).RemoveFunctionName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(functionname)).ok() } #[doc = "*Required features: `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] @@ -7958,10 +7690,7 @@ pub struct IMathInputControl_Vtbl { pub SetPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, left: i32, top: i32, right: i32, bottom: i32) -> ::windows::core::HRESULT, pub Clear: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub SetCustomPaint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: i32, paint: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub SetCaptionText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, captiontext: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetCaptionText: usize, + pub SetCaptionText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, captiontext: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_System_Com")] pub LoadInk: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ink: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_System_Com"))] @@ -7971,14 +7700,8 @@ pub struct IMathInputControl_Vtbl { pub GetPreviewHeight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, height: *mut i32) -> ::windows::core::HRESULT, pub SetPreviewHeight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, height: i32) -> ::windows::core::HRESULT, pub EnableAutoGrow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, autogrow: i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub AddFunctionName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, functionname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - AddFunctionName: usize, - #[cfg(feature = "Win32_Foundation")] - pub RemoveFunctionName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, functionname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - RemoveFunctionName: usize, + pub AddFunctionName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, functionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub RemoveFunctionName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, functionname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub GetHoverIcon: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hoverimage: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_System_Com", feature = "Win32_System_Ole")))] @@ -7994,19 +7717,12 @@ impl IPenInputPanel { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Busy)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Factoid(&self) -> ::windows::core::Result { + pub unsafe fn Factoid(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).Factoid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).Factoid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetFactoid<'a, P0>(&self, factoid: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetFactoid)(::windows::core::Interface::as_raw(self), factoid.into().abi()).ok() + pub unsafe fn SetFactoid(&self, factoid: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetFactoid)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(factoid)).ok() } pub unsafe fn AttachedEditWindow(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -8153,14 +7869,8 @@ unsafe impl ::windows::core::Interface for IPenInputPanel { pub struct IPenInputPanel_Vtbl { pub base__: super::super::System::Com::IDispatch_Vtbl, pub Busy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, busy: *mut i16) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub Factoid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, factoid: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Factoid: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetFactoid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, factoid: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetFactoid: usize, + pub Factoid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, factoid: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub SetFactoid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, factoid: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub AttachedEditWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, attachededitwindow: *mut i32) -> ::windows::core::HRESULT, pub SetAttachedEditWindow: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, attachededitwindow: i32) -> ::windows::core::HRESULT, pub CurrentPanel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, currentpanel: *mut PanelType) -> ::windows::core::HRESULT, @@ -9867,13 +9577,8 @@ pub struct ITipAutoCompleteClient_Vtbl { #[repr(transparent)] pub struct ITipAutoCompleteProvider(::windows::core::IUnknown); impl ITipAutoCompleteProvider { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn UpdatePendingText<'a, P0>(&self, bstrpendingtext: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).UpdatePendingText)(::windows::core::Interface::as_raw(self), bstrpendingtext.into().abi()).ok() + pub unsafe fn UpdatePendingText(&self, bstrpendingtext: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).UpdatePendingText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrpendingtext)).ok() } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -9923,10 +9628,7 @@ unsafe impl ::windows::core::Interface for ITipAutoCompleteProvider { #[doc(hidden)] pub struct ITipAutoCompleteProvider_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub UpdatePendingText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpendingtext: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - UpdatePendingText: usize, + pub UpdatePendingText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrpendingtext: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub Show: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fshow: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] diff --git a/crates/libs/windows/src/Windows/Win32/UI/TextServices/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/TextServices/impl.rs index 23ba7d89dd..9fd87d179b 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/TextServices/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/TextServices/impl.rs @@ -68,18 +68,18 @@ impl IAccClientDocMgr_Vtbl { } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] pub trait IAccDictionary_Impl: Sized { - fn GetLocalizedString(&self, term: *const ::windows::core::GUID, lcid: u32, presult: *mut super::super::Foundation::BSTR, plcid: *mut u32) -> ::windows::core::Result<()>; + fn GetLocalizedString(&self, term: *const ::windows::core::GUID, lcid: u32, presult: *mut ::windows::core::BSTR, plcid: *mut u32) -> ::windows::core::Result<()>; fn GetParentTerm(&self, term: *const ::windows::core::GUID) -> ::windows::core::Result<::windows::core::GUID>; - fn GetMnemonicString(&self, term: *const ::windows::core::GUID) -> ::windows::core::Result; - fn LookupMnemonicTerm(&self, bstrmnemonic: &super::super::Foundation::BSTR) -> ::windows::core::Result<::windows::core::GUID>; - fn ConvertValueToString(&self, term: *const ::windows::core::GUID, lcid: u32, varvalue: &super::super::System::Com::VARIANT, pbstrresult: *mut super::super::Foundation::BSTR, plcid: *mut u32) -> ::windows::core::Result<()>; + fn GetMnemonicString(&self, term: *const ::windows::core::GUID) -> ::windows::core::Result<::windows::core::BSTR>; + fn LookupMnemonicTerm(&self, bstrmnemonic: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::GUID>; + fn ConvertValueToString(&self, term: *const ::windows::core::GUID, lcid: u32, varvalue: &super::super::System::Com::VARIANT, pbstrresult: *mut ::windows::core::BSTR, plcid: *mut u32) -> ::windows::core::Result<()>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::windows::core::RuntimeName for IAccDictionary {} #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl IAccDictionary_Vtbl { pub const fn new, Impl: IAccDictionary_Impl, const OFFSET: isize>() -> IAccDictionary_Vtbl { - unsafe extern "system" fn GetLocalizedString, Impl: IAccDictionary_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, term: *const ::windows::core::GUID, lcid: u32, presult: *mut super::super::Foundation::BSTR, plcid: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetLocalizedString, Impl: IAccDictionary_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, term: *const ::windows::core::GUID, lcid: u32, presult: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, plcid: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetLocalizedString(::core::mem::transmute_copy(&term), ::core::mem::transmute_copy(&lcid), ::core::mem::transmute_copy(&presult), ::core::mem::transmute_copy(&plcid)).into() @@ -95,7 +95,7 @@ impl IAccDictionary_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetMnemonicString, Impl: IAccDictionary_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, term: *const ::windows::core::GUID, presult: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetMnemonicString, Impl: IAccDictionary_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, term: *const ::windows::core::GUID, presult: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetMnemonicString(::core::mem::transmute_copy(&term)) { @@ -106,7 +106,7 @@ impl IAccDictionary_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn LookupMnemonicTerm, Impl: IAccDictionary_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmnemonic: ::core::mem::ManuallyDrop, pterm: *mut ::windows::core::GUID) -> ::windows::core::HRESULT { + unsafe extern "system" fn LookupMnemonicTerm, Impl: IAccDictionary_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrmnemonic: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pterm: *mut ::windows::core::GUID) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.LookupMnemonicTerm(::core::mem::transmute(&bstrmnemonic)) { @@ -117,7 +117,7 @@ impl IAccDictionary_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn ConvertValueToString, Impl: IAccDictionary_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, term: *const ::windows::core::GUID, lcid: u32, varvalue: ::core::mem::ManuallyDrop, pbstrresult: *mut super::super::Foundation::BSTR, plcid: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn ConvertValueToString, Impl: IAccDictionary_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, term: *const ::windows::core::GUID, lcid: u32, varvalue: ::core::mem::ManuallyDrop, pbstrresult: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, plcid: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ConvertValueToString(::core::mem::transmute_copy(&term), ::core::mem::transmute_copy(&lcid), ::core::mem::transmute(&varvalue), ::core::mem::transmute_copy(&pbstrresult), ::core::mem::transmute_copy(&plcid)).into() @@ -997,16 +997,13 @@ impl IEnumTfLanguageProfiles_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IEnumTfLatticeElements_Impl: Sized { fn Clone(&self) -> ::windows::core::Result; fn Next(&self, ulcount: u32, rgselements: *mut TF_LMLATTELEMENT, pcfetched: *mut u32) -> ::windows::core::Result<()>; fn Reset(&self) -> ::windows::core::Result<()>; fn Skip(&self, ulcount: u32) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IEnumTfLatticeElements {} -#[cfg(feature = "Win32_Foundation")] impl IEnumTfLatticeElements_Vtbl { pub const fn new, Impl: IEnumTfLatticeElements_Impl, const OFFSET: isize>() -> IEnumTfLatticeElements_Vtbl { unsafe extern "system" fn Clone, Impl: IEnumTfLatticeElements_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -2433,7 +2430,7 @@ pub trait ITfCandidateListUIElement_Impl: Sized + ITfUIElement_Impl { fn GetDocumentMgr(&self) -> ::windows::core::Result; fn GetCount(&self) -> ::windows::core::Result; fn GetSelection(&self) -> ::windows::core::Result; - fn GetString(&self, uindex: u32) -> ::windows::core::Result; + fn GetString(&self, uindex: u32) -> ::windows::core::Result<::windows::core::BSTR>; fn GetPageIndex(&self, pindex: *mut u32, usize: u32, pupagecnt: *mut u32) -> ::windows::core::Result<()>; fn SetPageIndex(&self, pindex: *const u32, upagecnt: u32) -> ::windows::core::Result<()>; fn GetCurrentPage(&self) -> ::windows::core::Result; @@ -2487,7 +2484,7 @@ impl ITfCandidateListUIElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetString, Impl: ITfCandidateListUIElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uindex: u32, pstr: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetString, Impl: ITfCandidateListUIElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uindex: u32, pstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetString(::core::mem::transmute_copy(&uindex)) { @@ -2572,17 +2569,14 @@ impl ITfCandidateListUIElementBehavior_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait ITfCandidateString_Impl: Sized { - fn GetString(&self) -> ::windows::core::Result; + fn GetString(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetIndex(&self) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ITfCandidateString {} -#[cfg(feature = "Win32_Foundation")] impl ITfCandidateString_Vtbl { pub const fn new, Impl: ITfCandidateString_Impl, const OFFSET: isize>() -> ITfCandidateString_Vtbl { - unsafe extern "system" fn GetString, Impl: ITfCandidateString_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetString, Impl: ITfCandidateString_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetString() { @@ -2623,7 +2617,7 @@ pub trait ITfCategoryMgr_Impl: Sized { fn FindClosestCategory(&self, rguid: *const ::windows::core::GUID, pcatid: *mut ::windows::core::GUID, ppcatidlist: *const *const ::windows::core::GUID, ulcount: u32) -> ::windows::core::Result<()>; fn RegisterGUIDDescription(&self, rclsid: *const ::windows::core::GUID, rguid: *const ::windows::core::GUID, pchdesc: &::windows::core::PCWSTR, cch: u32) -> ::windows::core::Result<()>; fn UnregisterGUIDDescription(&self, rclsid: *const ::windows::core::GUID, rguid: *const ::windows::core::GUID) -> ::windows::core::Result<()>; - fn GetGUIDDescription(&self, rguid: *const ::windows::core::GUID) -> ::windows::core::Result; + fn GetGUIDDescription(&self, rguid: *const ::windows::core::GUID) -> ::windows::core::Result<::windows::core::BSTR>; fn RegisterGUIDDWORD(&self, rclsid: *const ::windows::core::GUID, rguid: *const ::windows::core::GUID, dw: u32) -> ::windows::core::Result<()>; fn UnregisterGUIDDWORD(&self, rclsid: *const ::windows::core::GUID, rguid: *const ::windows::core::GUID) -> ::windows::core::Result<()>; fn GetGUIDDWORD(&self, rguid: *const ::windows::core::GUID) -> ::windows::core::Result; @@ -2683,7 +2677,7 @@ impl ITfCategoryMgr_Vtbl { let this = (*this).get_impl(); this.UnregisterGUIDDescription(::core::mem::transmute_copy(&rclsid), ::core::mem::transmute_copy(&rguid)).into() } - unsafe extern "system" fn GetGUIDDescription, Impl: ITfCategoryMgr_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, rguid: *const ::windows::core::GUID, pbstrdesc: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetGUIDDescription, Impl: ITfCategoryMgr_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, rguid: *const ::windows::core::GUID, pbstrdesc: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetGUIDDescription(::core::mem::transmute_copy(&rguid)) { @@ -3727,7 +3721,7 @@ impl ITfCreatePropertyStore_Vtbl { #[cfg(feature = "Win32_Foundation")] pub trait ITfDisplayAttributeInfo_Impl: Sized { fn GetGUID(&self) -> ::windows::core::Result<::windows::core::GUID>; - fn GetDescription(&self) -> ::windows::core::Result; + fn GetDescription(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetAttributeInfo(&self) -> ::windows::core::Result; fn SetAttributeInfo(&self, pda: *const TF_DISPLAYATTRIBUTE) -> ::windows::core::Result<()>; fn Reset(&self) -> ::windows::core::Result<()>; @@ -3748,7 +3742,7 @@ impl ITfDisplayAttributeInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetDescription, Impl: ITfDisplayAttributeInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdesc: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDescription, Impl: ITfDisplayAttributeInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdesc: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDescription() { @@ -4048,14 +4042,11 @@ impl ITfEditTransactionSink_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait ITfFnAdviseText_Impl: Sized + ITfFunction_Impl { fn OnTextUpdate(&self, prange: &::core::option::Option, pchtext: &::windows::core::PCWSTR, cch: i32) -> ::windows::core::Result<()>; fn OnLatticeUpdate(&self, prange: &::core::option::Option, plattice: &::core::option::Option) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ITfFnAdviseText {} -#[cfg(feature = "Win32_Foundation")] impl ITfFnAdviseText_Vtbl { pub const fn new, Impl: ITfFnAdviseText_Impl, const OFFSET: isize>() -> ITfFnAdviseText_Vtbl { unsafe extern "system" fn OnTextUpdate, Impl: ITfFnAdviseText_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, prange: *mut ::core::ffi::c_void, pchtext: ::windows::core::PCWSTR, cch: i32) -> ::windows::core::HRESULT { @@ -4117,14 +4108,14 @@ impl ITfFnConfigure_Vtbl { } #[cfg(feature = "Win32_Foundation")] pub trait ITfFnConfigureRegisterEudc_Impl: Sized + ITfFunction_Impl { - fn Show(&self, hwndparent: super::super::Foundation::HWND, langid: u16, rguidprofile: *const ::windows::core::GUID, bstrregistered: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Show(&self, hwndparent: super::super::Foundation::HWND, langid: u16, rguidprofile: *const ::windows::core::GUID, bstrregistered: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ITfFnConfigureRegisterEudc {} #[cfg(feature = "Win32_Foundation")] impl ITfFnConfigureRegisterEudc_Vtbl { pub const fn new, Impl: ITfFnConfigureRegisterEudc_Impl, const OFFSET: isize>() -> ITfFnConfigureRegisterEudc_Vtbl { - unsafe extern "system" fn Show, Impl: ITfFnConfigureRegisterEudc_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, langid: u16, rguidprofile: *const ::windows::core::GUID, bstrregistered: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Show, Impl: ITfFnConfigureRegisterEudc_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, langid: u16, rguidprofile: *const ::windows::core::GUID, bstrregistered: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Show(::core::mem::transmute_copy(&hwndparent), ::core::mem::transmute_copy(&langid), ::core::mem::transmute_copy(&rguidprofile), ::core::mem::transmute(&bstrregistered)).into() @@ -4137,14 +4128,14 @@ impl ITfFnConfigureRegisterEudc_Vtbl { } #[cfg(feature = "Win32_Foundation")] pub trait ITfFnConfigureRegisterWord_Impl: Sized + ITfFunction_Impl { - fn Show(&self, hwndparent: super::super::Foundation::HWND, langid: u16, rguidprofile: *const ::windows::core::GUID, bstrregistered: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn Show(&self, hwndparent: super::super::Foundation::HWND, langid: u16, rguidprofile: *const ::windows::core::GUID, bstrregistered: &::windows::core::BSTR) -> ::windows::core::Result<()>; } #[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ITfFnConfigureRegisterWord {} #[cfg(feature = "Win32_Foundation")] impl ITfFnConfigureRegisterWord_Vtbl { pub const fn new, Impl: ITfFnConfigureRegisterWord_Impl, const OFFSET: isize>() -> ITfFnConfigureRegisterWord_Vtbl { - unsafe extern "system" fn Show, Impl: ITfFnConfigureRegisterWord_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, langid: u16, rguidprofile: *const ::windows::core::GUID, bstrregistered: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn Show, Impl: ITfFnConfigureRegisterWord_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, langid: u16, rguidprofile: *const ::windows::core::GUID, bstrregistered: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Show(::core::mem::transmute_copy(&hwndparent), ::core::mem::transmute_copy(&langid), ::core::mem::transmute_copy(&rguidprofile), ::core::mem::transmute(&bstrregistered)).into() @@ -4155,13 +4146,10 @@ impl ITfFnConfigureRegisterWord_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait ITfFnCustomSpeechCommand_Impl: Sized + ITfFunction_Impl { fn SetSpeechCommandProvider(&self, pspcmdprovider: &::core::option::Option<::windows::core::IUnknown>) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ITfFnCustomSpeechCommand {} -#[cfg(feature = "Win32_Foundation")] impl ITfFnCustomSpeechCommand_Vtbl { pub const fn new, Impl: ITfFnCustomSpeechCommand_Impl, const OFFSET: isize>() -> ITfFnCustomSpeechCommand_Vtbl { unsafe extern "system" fn SetSpeechCommandProvider, Impl: ITfFnCustomSpeechCommand_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pspcmdprovider: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -4175,13 +4163,10 @@ impl ITfFnCustomSpeechCommand_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait ITfFnGetLinguisticAlternates_Impl: Sized + ITfFunction_Impl { fn GetAlternates(&self, prange: &::core::option::Option) -> ::windows::core::Result; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ITfFnGetLinguisticAlternates {} -#[cfg(feature = "Win32_Foundation")] impl ITfFnGetLinguisticAlternates_Vtbl { pub const fn new, Impl: ITfFnGetLinguisticAlternates_Impl, const OFFSET: isize>() -> ITfFnGetLinguisticAlternates_Vtbl { unsafe extern "system" fn GetAlternates, Impl: ITfFnGetLinguisticAlternates_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, prange: *mut ::core::ffi::c_void, ppcandidatelist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -4201,13 +4186,10 @@ impl ITfFnGetLinguisticAlternates_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait ITfFnGetPreferredTouchKeyboardLayout_Impl: Sized + ITfFunction_Impl { fn GetLayout(&self, ptkblayouttype: *mut TKBLayoutType, pwpreferredlayoutid: *const u16) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ITfFnGetPreferredTouchKeyboardLayout {} -#[cfg(feature = "Win32_Foundation")] impl ITfFnGetPreferredTouchKeyboardLayout_Vtbl { pub const fn new, Impl: ITfFnGetPreferredTouchKeyboardLayout_Impl, const OFFSET: isize>() -> ITfFnGetPreferredTouchKeyboardLayout_Vtbl { unsafe extern "system" fn GetLayout, Impl: ITfFnGetPreferredTouchKeyboardLayout_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ptkblayouttype: *mut TKBLayoutType, pwpreferredlayoutid: *const u16) -> ::windows::core::HRESULT { @@ -4221,13 +4203,10 @@ impl ITfFnGetPreferredTouchKeyboardLayout_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait ITfFnGetSAPIObject_Impl: Sized + ITfFunction_Impl { fn Get(&self, sobj: TfSapiObject) -> ::windows::core::Result<::windows::core::IUnknown>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ITfFnGetSAPIObject {} -#[cfg(feature = "Win32_Foundation")] impl ITfFnGetSAPIObject_Vtbl { pub const fn new, Impl: ITfFnGetSAPIObject_Impl, const OFFSET: isize>() -> ITfFnGetSAPIObject_Vtbl { unsafe extern "system" fn Get, Impl: ITfFnGetSAPIObject_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sobj: TfSapiObject, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -4416,14 +4395,11 @@ impl ITfFnPlayBack_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait ITfFnPropertyUIStatus_Impl: Sized + ITfFunction_Impl { fn GetStatus(&self, refguidprop: *const ::windows::core::GUID) -> ::windows::core::Result; fn SetStatus(&self, refguidprop: *const ::windows::core::GUID, dw: u32) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ITfFnPropertyUIStatus {} -#[cfg(feature = "Win32_Foundation")] impl ITfFnPropertyUIStatus_Vtbl { pub const fn new, Impl: ITfFnPropertyUIStatus_Impl, const OFFSET: isize>() -> ITfFnPropertyUIStatus_Vtbl { unsafe extern "system" fn GetStatus, Impl: ITfFnPropertyUIStatus_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, refguidprop: *const ::windows::core::GUID, pdw: *mut u32) -> ::windows::core::HRESULT { @@ -4495,17 +4471,14 @@ impl ITfFnReconversion_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait ITfFnSearchCandidateProvider_Impl: Sized + ITfFunction_Impl { - fn GetSearchCandidates(&self, bstrquery: &super::super::Foundation::BSTR, bstrapplicationid: &super::super::Foundation::BSTR) -> ::windows::core::Result; - fn SetResult(&self, bstrquery: &super::super::Foundation::BSTR, bstrapplicationid: &super::super::Foundation::BSTR, bstrresult: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn GetSearchCandidates(&self, bstrquery: &::windows::core::BSTR, bstrapplicationid: &::windows::core::BSTR) -> ::windows::core::Result; + fn SetResult(&self, bstrquery: &::windows::core::BSTR, bstrapplicationid: &::windows::core::BSTR, bstrresult: &::windows::core::BSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ITfFnSearchCandidateProvider {} -#[cfg(feature = "Win32_Foundation")] impl ITfFnSearchCandidateProvider_Vtbl { pub const fn new, Impl: ITfFnSearchCandidateProvider_Impl, const OFFSET: isize>() -> ITfFnSearchCandidateProvider_Vtbl { - unsafe extern "system" fn GetSearchCandidates, Impl: ITfFnSearchCandidateProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrquery: ::core::mem::ManuallyDrop, bstrapplicationid: ::core::mem::ManuallyDrop, pplist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSearchCandidates, Impl: ITfFnSearchCandidateProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrquery: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrapplicationid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pplist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetSearchCandidates(::core::mem::transmute(&bstrquery), ::core::mem::transmute(&bstrapplicationid)) { @@ -4516,7 +4489,7 @@ impl ITfFnSearchCandidateProvider_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn SetResult, Impl: ITfFnSearchCandidateProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrquery: ::core::mem::ManuallyDrop, bstrapplicationid: ::core::mem::ManuallyDrop, bstrresult: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn SetResult, Impl: ITfFnSearchCandidateProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bstrquery: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrapplicationid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrresult: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetResult(::core::mem::transmute(&bstrquery), ::core::mem::transmute(&bstrapplicationid), ::core::mem::transmute(&bstrresult)).into() @@ -4551,16 +4524,13 @@ impl ITfFnShowHelp_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait ITfFunction_Impl: Sized { - fn GetDisplayName(&self) -> ::windows::core::Result; + fn GetDisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ITfFunction {} -#[cfg(feature = "Win32_Foundation")] impl ITfFunction_Vtbl { pub const fn new, Impl: ITfFunction_Impl, const OFFSET: isize>() -> ITfFunction_Vtbl { - unsafe extern "system" fn GetDisplayName, Impl: ITfFunction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDisplayName, Impl: ITfFunction_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDisplayName() { @@ -4577,15 +4547,12 @@ impl ITfFunction_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait ITfFunctionProvider_Impl: Sized { fn GetType(&self) -> ::windows::core::Result<::windows::core::GUID>; - fn GetDescription(&self) -> ::windows::core::Result; + fn GetDescription(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetFunction(&self, rguid: *const ::windows::core::GUID, riid: *const ::windows::core::GUID) -> ::windows::core::Result<::windows::core::IUnknown>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ITfFunctionProvider {} -#[cfg(feature = "Win32_Foundation")] impl ITfFunctionProvider_Vtbl { pub const fn new, Impl: ITfFunctionProvider_Impl, const OFFSET: isize>() -> ITfFunctionProvider_Vtbl { unsafe extern "system" fn GetType, Impl: ITfFunctionProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pguid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT { @@ -4599,7 +4566,7 @@ impl ITfFunctionProvider_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetDescription, Impl: ITfFunctionProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdesc: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDescription, Impl: ITfFunctionProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdesc: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDescription() { @@ -4790,7 +4757,7 @@ pub trait ITfInputProcessorProfiles_Impl: Sized { fn SetDefaultLanguageProfile(&self, langid: u16, rclsid: *const ::windows::core::GUID, guidprofiles: *const ::windows::core::GUID) -> ::windows::core::Result<()>; fn ActivateLanguageProfile(&self, rclsid: *const ::windows::core::GUID, langid: u16, guidprofiles: *const ::windows::core::GUID) -> ::windows::core::Result<()>; fn GetActiveLanguageProfile(&self, rclsid: *const ::windows::core::GUID, plangid: *mut u16, pguidprofile: *mut ::windows::core::GUID) -> ::windows::core::Result<()>; - fn GetLanguageProfileDescription(&self, rclsid: *const ::windows::core::GUID, langid: u16, guidprofile: *const ::windows::core::GUID) -> ::windows::core::Result; + fn GetLanguageProfileDescription(&self, rclsid: *const ::windows::core::GUID, langid: u16, guidprofile: *const ::windows::core::GUID) -> ::windows::core::Result<::windows::core::BSTR>; fn GetCurrentLanguage(&self) -> ::windows::core::Result; fn ChangeCurrentLanguage(&self, langid: u16) -> ::windows::core::Result<()>; fn GetLanguageList(&self, pplangid: *mut *mut u16, pulcount: *mut u32) -> ::windows::core::Result<()>; @@ -4856,7 +4823,7 @@ impl ITfInputProcessorProfiles_Vtbl { let this = (*this).get_impl(); this.GetActiveLanguageProfile(::core::mem::transmute_copy(&rclsid), ::core::mem::transmute_copy(&plangid), ::core::mem::transmute_copy(&pguidprofile)).into() } - unsafe extern "system" fn GetLanguageProfileDescription, Impl: ITfInputProcessorProfiles_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, rclsid: *const ::windows::core::GUID, langid: u16, guidprofile: *const ::windows::core::GUID, pbstrprofile: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetLanguageProfileDescription, Impl: ITfInputProcessorProfiles_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, rclsid: *const ::windows::core::GUID, langid: u16, guidprofile: *const ::windows::core::GUID, pbstrprofile: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetLanguageProfileDescription(::core::mem::transmute_copy(&rclsid), ::core::mem::transmute_copy(&langid), ::core::mem::transmute_copy(&guidprofile)) { @@ -4974,17 +4941,14 @@ impl ITfInputProcessorProfilesEx_Vtbl { iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait ITfInputScope_Impl: Sized { fn GetInputScopes(&self, pprginputscopes: *mut *mut InputScope, pccount: *mut u32) -> ::windows::core::Result<()>; - fn GetPhrase(&self, ppbstrphrases: *mut *mut super::super::Foundation::BSTR, pccount: *mut u32) -> ::windows::core::Result<()>; - fn GetRegularExpression(&self) -> ::windows::core::Result; - fn GetSRGS(&self) -> ::windows::core::Result; - fn GetXML(&self) -> ::windows::core::Result; + fn GetPhrase(&self, ppbstrphrases: *mut *mut ::windows::core::BSTR, pccount: *mut u32) -> ::windows::core::Result<()>; + fn GetRegularExpression(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetSRGS(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetXML(&self) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ITfInputScope {} -#[cfg(feature = "Win32_Foundation")] impl ITfInputScope_Vtbl { pub const fn new, Impl: ITfInputScope_Impl, const OFFSET: isize>() -> ITfInputScope_Vtbl { unsafe extern "system" fn GetInputScopes, Impl: ITfInputScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pprginputscopes: *mut *mut InputScope, pccount: *mut u32) -> ::windows::core::HRESULT { @@ -4992,12 +4956,12 @@ impl ITfInputScope_Vtbl { let this = (*this).get_impl(); this.GetInputScopes(::core::mem::transmute_copy(&pprginputscopes), ::core::mem::transmute_copy(&pccount)).into() } - unsafe extern "system" fn GetPhrase, Impl: ITfInputScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppbstrphrases: *mut *mut super::super::Foundation::BSTR, pccount: *mut u32) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPhrase, Impl: ITfInputScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppbstrphrases: *mut *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pccount: *mut u32) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetPhrase(::core::mem::transmute_copy(&ppbstrphrases), ::core::mem::transmute_copy(&pccount)).into() } - unsafe extern "system" fn GetRegularExpression, Impl: ITfInputScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrregexp: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetRegularExpression, Impl: ITfInputScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrregexp: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetRegularExpression() { @@ -5008,7 +4972,7 @@ impl ITfInputScope_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetSRGS, Impl: ITfInputScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsrgs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetSRGS, Impl: ITfInputScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrsrgs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetSRGS() { @@ -5019,7 +4983,7 @@ impl ITfInputScope_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetXML, Impl: ITfInputScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrxml: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetXML, Impl: ITfInputScope_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrxml: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetXML() { @@ -5043,13 +5007,13 @@ impl ITfInputScope_Vtbl { iid == &::IID } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] pub trait ITfInputScope2_Impl: Sized + ITfInputScope_Impl { fn EnumWordList(&self) -> ::windows::core::Result; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::windows::core::RuntimeName for ITfInputScope2 {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ITfInputScope2_Vtbl { pub const fn new, Impl: ITfInputScope2_Impl, const OFFSET: isize>() -> ITfInputScope2_Vtbl { unsafe extern "system" fn EnumWordList, Impl: ITfInputScope2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppenumstring: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { @@ -5312,7 +5276,7 @@ pub trait ITfKeystrokeMgr_Impl: Sized { fn PreserveKey(&self, tid: u32, rguid: *const ::windows::core::GUID, prekey: *const TF_PRESERVEDKEY, pchdesc: &::windows::core::PCWSTR, cchdesc: u32) -> ::windows::core::Result<()>; fn UnpreserveKey(&self, rguid: *const ::windows::core::GUID, pprekey: *const TF_PRESERVEDKEY) -> ::windows::core::Result<()>; fn SetPreservedKeyDescription(&self, rguid: *const ::windows::core::GUID, pchdesc: &::windows::core::PCWSTR, cchdesc: u32) -> ::windows::core::Result<()>; - fn GetPreservedKeyDescription(&self, rguid: *const ::windows::core::GUID) -> ::windows::core::Result; + fn GetPreservedKeyDescription(&self, rguid: *const ::windows::core::GUID) -> ::windows::core::Result<::windows::core::BSTR>; fn SimulatePreservedKey(&self, pic: &::core::option::Option, rguid: *const ::windows::core::GUID) -> ::windows::core::Result; } #[cfg(feature = "Win32_Foundation")] @@ -5422,7 +5386,7 @@ impl ITfKeystrokeMgr_Vtbl { let this = (*this).get_impl(); this.SetPreservedKeyDescription(::core::mem::transmute_copy(&rguid), ::core::mem::transmute(&pchdesc), ::core::mem::transmute_copy(&cchdesc)).into() } - unsafe extern "system" fn GetPreservedKeyDescription, Impl: ITfKeystrokeMgr_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, rguid: *const ::windows::core::GUID, pbstrdesc: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetPreservedKeyDescription, Impl: ITfKeystrokeMgr_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, rguid: *const ::windows::core::GUID, pbstrdesc: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetPreservedKeyDescription(::core::mem::transmute_copy(&rguid)) { @@ -5577,7 +5541,7 @@ pub trait ITfLangBarItem_Impl: Sized { fn GetInfo(&self) -> ::windows::core::Result; fn GetStatus(&self) -> ::windows::core::Result; fn Show(&self, fshow: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; - fn GetTooltipString(&self) -> ::windows::core::Result; + fn GetTooltipString(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ITfLangBarItem {} @@ -5611,7 +5575,7 @@ impl ITfLangBarItem_Vtbl { let this = (*this).get_impl(); this.Show(::core::mem::transmute_copy(&fshow)).into() } - unsafe extern "system" fn GetTooltipString, Impl: ITfLangBarItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtooltip: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetTooltipString, Impl: ITfLangBarItem_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtooltip: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetTooltipString() { @@ -5733,7 +5697,7 @@ pub trait ITfLangBarItemBitmapButton_Impl: Sized + ITfLangBarItem_Impl { fn OnMenuSelect(&self, wid: u32) -> ::windows::core::Result<()>; fn GetPreferredSize(&self, pszdefault: *const super::super::Foundation::SIZE) -> ::windows::core::Result; fn DrawBitmap(&self, bmwidth: i32, bmheight: i32, dwflags: u32, phbmp: *mut super::super::Graphics::Gdi::HBITMAP, phbmpmask: *mut super::super::Graphics::Gdi::HBITMAP) -> ::windows::core::Result<()>; - fn GetText(&self) -> ::windows::core::Result; + fn GetText(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::windows::core::RuntimeName for ITfLangBarItemBitmapButton {} @@ -5771,7 +5735,7 @@ impl ITfLangBarItemBitmapButton_Vtbl { let this = (*this).get_impl(); this.DrawBitmap(::core::mem::transmute_copy(&bmwidth), ::core::mem::transmute_copy(&bmheight), ::core::mem::transmute_copy(&dwflags), ::core::mem::transmute_copy(&phbmp), ::core::mem::transmute_copy(&phbmpmask)).into() } - unsafe extern "system" fn GetText, Impl: ITfLangBarItemBitmapButton_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetText, Impl: ITfLangBarItemBitmapButton_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetText() { @@ -5802,7 +5766,7 @@ pub trait ITfLangBarItemButton_Impl: Sized + ITfLangBarItem_Impl { fn InitMenu(&self, pmenu: &::core::option::Option) -> ::windows::core::Result<()>; fn OnMenuSelect(&self, wid: u32) -> ::windows::core::Result<()>; fn GetIcon(&self) -> ::windows::core::Result; - fn GetText(&self) -> ::windows::core::Result; + fn GetText(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))] impl ::windows::core::RuntimeName for ITfLangBarItemButton {} @@ -5835,7 +5799,7 @@ impl ITfLangBarItemButton_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetText, Impl: ITfLangBarItemButton_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetText, Impl: ITfLangBarItemButton_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetText() { @@ -6911,7 +6875,7 @@ impl ITfReadOnlyProperty_Vtbl { pub trait ITfReadingInformationUIElement_Impl: Sized + ITfUIElement_Impl { fn GetUpdatedFlags(&self) -> ::windows::core::Result; fn GetContext(&self) -> ::windows::core::Result; - fn GetString(&self) -> ::windows::core::Result; + fn GetString(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetMaxReadingStringLength(&self) -> ::windows::core::Result; fn GetErrorIndex(&self) -> ::windows::core::Result; fn IsVerticalOrderPreferred(&self) -> ::windows::core::Result; @@ -6943,7 +6907,7 @@ impl ITfReadingInformationUIElement_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetString, Impl: ITfReadingInformationUIElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstr: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetString, Impl: ITfReadingInformationUIElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetString() { @@ -7024,14 +6988,11 @@ impl ITfReverseConversion_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait ITfReverseConversionList_Impl: Sized { fn GetLength(&self) -> ::windows::core::Result; - fn GetString(&self, uindex: u32) -> ::windows::core::Result; + fn GetString(&self, uindex: u32) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ITfReverseConversionList {} -#[cfg(feature = "Win32_Foundation")] impl ITfReverseConversionList_Vtbl { pub const fn new, Impl: ITfReverseConversionList_Impl, const OFFSET: isize>() -> ITfReverseConversionList_Vtbl { unsafe extern "system" fn GetLength, Impl: ITfReverseConversionList_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, puindex: *mut u32) -> ::windows::core::HRESULT { @@ -7045,7 +7006,7 @@ impl ITfReverseConversionList_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetString, Impl: ITfReverseConversionList_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uindex: u32, pbstr: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetString, Impl: ITfReverseConversionList_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, uindex: u32, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetString(::core::mem::transmute_copy(&uindex)) { @@ -7293,14 +7254,11 @@ impl ITfSystemLangBarItemSink_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait ITfSystemLangBarItemText_Impl: Sized { fn SetItemText(&self, pch: &::windows::core::PCWSTR, cch: u32) -> ::windows::core::Result<()>; - fn GetItemText(&self) -> ::windows::core::Result; + fn GetItemText(&self) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ITfSystemLangBarItemText {} -#[cfg(feature = "Win32_Foundation")] impl ITfSystemLangBarItemText_Vtbl { pub const fn new, Impl: ITfSystemLangBarItemText_Impl, const OFFSET: isize>() -> ITfSystemLangBarItemText_Vtbl { unsafe extern "system" fn SetItemText, Impl: ITfSystemLangBarItemText_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pch: ::windows::core::PCWSTR, cch: u32) -> ::windows::core::HRESULT { @@ -7308,7 +7266,7 @@ impl ITfSystemLangBarItemText_Vtbl { let this = (*this).get_impl(); this.SetItemText(::core::mem::transmute(&pch), ::core::mem::transmute_copy(&cch)).into() } - unsafe extern "system" fn GetItemText, Impl: ITfSystemLangBarItemText_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetItemText, Impl: ITfSystemLangBarItemText_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetItemText() { @@ -7835,14 +7793,14 @@ impl ITfThreadMgrEx_Vtbl { } #[cfg(feature = "Win32_Foundation")] pub trait ITfToolTipUIElement_Impl: Sized + ITfUIElement_Impl { - fn GetString(&self) -> ::windows::core::Result; + fn GetString(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for ITfToolTipUIElement {} #[cfg(feature = "Win32_Foundation")] impl ITfToolTipUIElement_Vtbl { pub const fn new, Impl: ITfToolTipUIElement_Impl, const OFFSET: isize>() -> ITfToolTipUIElement_Vtbl { - unsafe extern "system" fn GetString, Impl: ITfToolTipUIElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstr: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetString, Impl: ITfToolTipUIElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetString() { @@ -7916,7 +7874,7 @@ impl ITfTransitoryExtensionUIElement_Vtbl { } #[cfg(feature = "Win32_Foundation")] pub trait ITfUIElement_Impl: Sized { - fn GetDescription(&self) -> ::windows::core::Result; + fn GetDescription(&self) -> ::windows::core::Result<::windows::core::BSTR>; fn GetGUID(&self) -> ::windows::core::Result<::windows::core::GUID>; fn Show(&self, bshow: super::super::Foundation::BOOL) -> ::windows::core::Result<()>; fn IsShown(&self) -> ::windows::core::Result; @@ -7926,7 +7884,7 @@ impl ::windows::core::RuntimeName for ITfUIElement {} #[cfg(feature = "Win32_Foundation")] impl ITfUIElement_Vtbl { pub const fn new, Impl: ITfUIElement_Impl, const OFFSET: isize>() -> ITfUIElement_Vtbl { - unsafe extern "system" fn GetDescription, Impl: ITfUIElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetDescription, Impl: ITfUIElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDescription() { @@ -8134,17 +8092,14 @@ impl IUIManagerEventSink_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IVersionInfo_Impl: Sized { fn GetSubcomponentCount(&self, ulsub: u32) -> ::windows::core::Result; fn GetImplementationID(&self, ulsub: u32) -> ::windows::core::Result<::windows::core::GUID>; fn GetBuildVersion(&self, ulsub: u32, pdwmajor: *mut u32, pdwminor: *mut u32) -> ::windows::core::Result<()>; - fn GetComponentDescription(&self, ulsub: u32) -> ::windows::core::Result; - fn GetInstanceDescription(&self, ulsub: u32) -> ::windows::core::Result; + fn GetComponentDescription(&self, ulsub: u32) -> ::windows::core::Result<::windows::core::BSTR>; + fn GetInstanceDescription(&self, ulsub: u32) -> ::windows::core::Result<::windows::core::BSTR>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IVersionInfo {} -#[cfg(feature = "Win32_Foundation")] impl IVersionInfo_Vtbl { pub const fn new, Impl: IVersionInfo_Impl, const OFFSET: isize>() -> IVersionInfo_Vtbl { unsafe extern "system" fn GetSubcomponentCount, Impl: IVersionInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ulsub: u32, ulcount: *mut u32) -> ::windows::core::HRESULT { @@ -8174,7 +8129,7 @@ impl IVersionInfo_Vtbl { let this = (*this).get_impl(); this.GetBuildVersion(::core::mem::transmute_copy(&ulsub), ::core::mem::transmute_copy(&pdwmajor), ::core::mem::transmute_copy(&pdwminor)).into() } - unsafe extern "system" fn GetComponentDescription, Impl: IVersionInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ulsub: u32, pimplstr: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetComponentDescription, Impl: IVersionInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ulsub: u32, pimplstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetComponentDescription(::core::mem::transmute_copy(&ulsub)) { @@ -8185,7 +8140,7 @@ impl IVersionInfo_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetInstanceDescription, Impl: IVersionInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ulsub: u32, pimplstr: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetInstanceDescription, Impl: IVersionInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ulsub: u32, pimplstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetInstanceDescription(::core::mem::transmute_copy(&ulsub)) { diff --git a/crates/libs/windows/src/Windows/Win32/UI/TextServices/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/TextServices/mod.rs index e69ba248d9..aa75849ef1 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/TextServices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/TextServices/mod.rs @@ -116,33 +116,24 @@ pub struct IAccClientDocMgr_Vtbl { #[repr(transparent)] pub struct IAccDictionary(::windows::core::IUnknown); impl IAccDictionary { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetLocalizedString(&self, term: &::windows::core::GUID, lcid: u32, presult: &mut super::super::Foundation::BSTR, plcid: &mut u32) -> ::windows::core::Result<()> { + pub unsafe fn GetLocalizedString(&self, term: &::windows::core::GUID, lcid: u32, presult: &mut ::windows::core::BSTR, plcid: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetLocalizedString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(term), lcid, ::core::mem::transmute(presult), ::core::mem::transmute(plcid)).ok() } pub unsafe fn GetParentTerm(&self, term: &::windows::core::GUID) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetParentTerm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(term), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetMnemonicString(&self, term: &::windows::core::GUID) -> ::windows::core::Result { + pub unsafe fn GetMnemonicString(&self, term: &::windows::core::GUID) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetMnemonicString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(term), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetMnemonicString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(term), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn LookupMnemonicTerm<'a, P0>(&self, bstrmnemonic: P0) -> ::windows::core::Result<::windows::core::GUID> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn LookupMnemonicTerm(&self, bstrmnemonic: &::windows::core::BSTR) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).LookupMnemonicTerm)(::windows::core::Interface::as_raw(self), bstrmnemonic.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) + (::windows::core::Interface::vtable(self).LookupMnemonicTerm)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrmnemonic), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub unsafe fn ConvertValueToString<'a, P0>(&self, term: &::windows::core::GUID, lcid: u32, varvalue: P0, pbstrresult: &mut super::super::Foundation::BSTR, plcid: &mut u32) -> ::windows::core::Result<()> + pub unsafe fn ConvertValueToString<'a, P0>(&self, term: &::windows::core::GUID, lcid: u32, varvalue: P0, pbstrresult: &mut ::windows::core::BSTR, plcid: &mut u32) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::System::Com::VARIANT>>, { @@ -188,21 +179,12 @@ unsafe impl ::windows::core::Interface for IAccDictionary { #[doc(hidden)] pub struct IAccDictionary_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetLocalizedString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, term: *const ::windows::core::GUID, lcid: u32, presult: *mut super::super::Foundation::BSTR, plcid: *mut u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetLocalizedString: usize, + pub GetLocalizedString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, term: *const ::windows::core::GUID, lcid: u32, presult: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, plcid: *mut u32) -> ::windows::core::HRESULT, pub GetParentTerm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, term: *const ::windows::core::GUID, pparentterm: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetMnemonicString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, term: *const ::windows::core::GUID, presult: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetMnemonicString: usize, - #[cfg(feature = "Win32_Foundation")] - pub LookupMnemonicTerm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmnemonic: ::core::mem::ManuallyDrop, pterm: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - LookupMnemonicTerm: usize, + pub GetMnemonicString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, term: *const ::windows::core::GUID, presult: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub LookupMnemonicTerm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrmnemonic: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pterm: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] - pub ConvertValueToString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, term: *const ::windows::core::GUID, lcid: u32, varvalue: ::core::mem::ManuallyDrop, pbstrresult: *mut super::super::Foundation::BSTR, plcid: *mut u32) -> ::windows::core::HRESULT, + pub ConvertValueToString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, term: *const ::windows::core::GUID, lcid: u32, varvalue: ::core::mem::ManuallyDrop, pbstrresult: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, plcid: *mut u32) -> ::windows::core::HRESULT, #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole")))] ConvertValueToString: usize, } @@ -1415,8 +1397,6 @@ impl IEnumTfLatticeElements { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).Clone)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn Next(&self, rgselements: &mut [TF_LMLATTELEMENT], pcfetched: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).Next)(::windows::core::Interface::as_raw(self), rgselements.len() as _, ::core::mem::transmute(rgselements.as_ptr()), ::core::mem::transmute(pcfetched)).ok() } @@ -1467,10 +1447,7 @@ unsafe impl ::windows::core::Interface for IEnumTfLatticeElements { pub struct IEnumTfLatticeElements_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppenum: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] pub Next: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulcount: u32, rgselements: *mut TF_LMLATTELEMENT, pcfetched: *mut u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - Next: usize, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub Skip: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulcount: u32) -> ::windows::core::HRESULT, } @@ -3231,11 +3208,9 @@ pub struct ITfCandidateList_Vtbl { #[repr(transparent)] pub struct ITfCandidateListUIElement(::windows::core::IUnknown); impl ITfCandidateListUIElement { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDescription(&self) -> ::windows::core::Result { + pub unsafe fn GetDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetGUID(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3271,11 +3246,9 @@ impl ITfCandidateListUIElement { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetSelection)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetString(&self, uindex: u32) -> ::windows::core::Result { + pub unsafe fn GetString(&self, uindex: u32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetString)(::windows::core::Interface::as_raw(self), uindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetString)(::windows::core::Interface::as_raw(self), uindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetPageIndex(&self, pindex: &mut [u32], pupagecnt: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetPageIndex)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pindex.as_ptr()), pindex.len() as _, ::core::mem::transmute(pupagecnt)).ok() @@ -3346,10 +3319,7 @@ pub struct ITfCandidateListUIElement_Vtbl { pub GetDocumentMgr: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppdim: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub GetCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pucount: *mut u32) -> ::windows::core::HRESULT, pub GetSelection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puindex: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uindex: u32, pstr: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetString: usize, + pub GetString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uindex: u32, pstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetPageIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pindex: *mut u32, usize: u32, pupagecnt: *mut u32) -> ::windows::core::HRESULT, pub SetPageIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pindex: *const u32, upagecnt: u32) -> ::windows::core::HRESULT, pub GetCurrentPage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pupage: *mut u32) -> ::windows::core::HRESULT, @@ -3358,11 +3328,9 @@ pub struct ITfCandidateListUIElement_Vtbl { #[repr(transparent)] pub struct ITfCandidateListUIElementBehavior(::windows::core::IUnknown); impl ITfCandidateListUIElementBehavior { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDescription(&self) -> ::windows::core::Result { + pub unsafe fn GetDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetGUID(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3398,11 +3366,9 @@ impl ITfCandidateListUIElementBehavior { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetSelection)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetString(&self, uindex: u32) -> ::windows::core::Result { + pub unsafe fn GetString(&self, uindex: u32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetString)(::windows::core::Interface::as_raw(self), uindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetString)(::windows::core::Interface::as_raw(self), uindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetPageIndex(&self, pindex: &mut [u32], pupagecnt: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetPageIndex)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pindex.as_ptr()), pindex.len() as _, ::core::mem::transmute(pupagecnt)).ok() @@ -3501,11 +3467,9 @@ pub struct ITfCandidateListUIElementBehavior_Vtbl { #[repr(transparent)] pub struct ITfCandidateString(::windows::core::IUnknown); impl ITfCandidateString { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetString(&self) -> ::windows::core::Result { + pub unsafe fn GetString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetIndex(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -3551,10 +3515,7 @@ unsafe impl ::windows::core::Interface for ITfCandidateString { #[doc(hidden)] pub struct ITfCandidateString_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetString: usize, + pub GetString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pnindex: *mut u32) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_TextServices\"`*"] @@ -3588,11 +3549,9 @@ impl ITfCategoryMgr { pub unsafe fn UnregisterGUIDDescription(&self, rclsid: &::windows::core::GUID, rguid: &::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).UnregisterGUIDDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(rclsid), ::core::mem::transmute(rguid)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetGUIDDescription(&self, rguid: &::windows::core::GUID) -> ::windows::core::Result { + pub unsafe fn GetGUIDDescription(&self, rguid: &::windows::core::GUID) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetGUIDDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(rguid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetGUIDDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(rguid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn RegisterGUIDDWORD(&self, rclsid: &::windows::core::GUID, rguid: &::windows::core::GUID, dw: u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RegisterGUIDDWORD)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(rclsid), ::core::mem::transmute(rguid), dw).ok() @@ -3671,10 +3630,7 @@ pub struct ITfCategoryMgr_Vtbl { pub FindClosestCategory: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rguid: *const ::windows::core::GUID, pcatid: *mut ::windows::core::GUID, ppcatidlist: *const *const ::windows::core::GUID, ulcount: u32) -> ::windows::core::HRESULT, pub RegisterGUIDDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rclsid: *const ::windows::core::GUID, rguid: *const ::windows::core::GUID, pchdesc: ::windows::core::PCWSTR, cch: u32) -> ::windows::core::HRESULT, pub UnregisterGUIDDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rclsid: *const ::windows::core::GUID, rguid: *const ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetGUIDDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rguid: *const ::windows::core::GUID, pbstrdesc: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetGUIDDescription: usize, + pub GetGUIDDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rguid: *const ::windows::core::GUID, pbstrdesc: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub RegisterGUIDDWORD: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rclsid: *const ::windows::core::GUID, rguid: *const ::windows::core::GUID, dw: u32) -> ::windows::core::HRESULT, pub UnregisterGUIDDWORD: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rclsid: *const ::windows::core::GUID, rguid: *const ::windows::core::GUID) -> ::windows::core::HRESULT, pub GetGUIDDWORD: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rguid: *const ::windows::core::GUID, pdw: *mut u32) -> ::windows::core::HRESULT, @@ -5092,11 +5048,9 @@ impl ITfDisplayAttributeInfo { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetGUID)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDescription(&self) -> ::windows::core::Result { + pub unsafe fn GetDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -5153,10 +5107,7 @@ unsafe impl ::windows::core::Interface for ITfDisplayAttributeInfo { pub struct ITfDisplayAttributeInfo_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub GetGUID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdesc: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDescription: usize, + pub GetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdesc: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub GetAttributeInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pda: *mut TF_DISPLAYATTRIBUTE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -5579,11 +5530,9 @@ pub struct ITfEditTransactionSink_Vtbl { #[repr(transparent)] pub struct ITfFnAdviseText(::windows::core::IUnknown); impl ITfFnAdviseText { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDisplayName(&self) -> ::windows::core::Result { + pub unsafe fn GetDisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn OnTextUpdate<'a, P0>(&self, prange: P0, pchtext: &[u16]) -> ::windows::core::Result<()> where @@ -5709,11 +5658,9 @@ pub struct ITfFnBalloon_Vtbl { #[repr(transparent)] pub struct ITfFnConfigure(::windows::core::IUnknown); impl ITfFnConfigure { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDisplayName(&self) -> ::windows::core::Result { + pub unsafe fn GetDisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -5787,20 +5734,17 @@ pub struct ITfFnConfigure_Vtbl { #[repr(transparent)] pub struct ITfFnConfigureRegisterEudc(::windows::core::IUnknown); impl ITfFnConfigureRegisterEudc { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDisplayName(&self) -> ::windows::core::Result { + pub unsafe fn GetDisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Show<'a, P0, P1>(&self, hwndparent: P0, langid: u16, rguidprofile: &::windows::core::GUID, bstrregistered: P1) -> ::windows::core::Result<()> + pub unsafe fn Show<'a, P0>(&self, hwndparent: P0, langid: u16, rguidprofile: &::windows::core::GUID, bstrregistered: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).Show)(::windows::core::Interface::as_raw(self), hwndparent.into(), langid, ::core::mem::transmute(rguidprofile), bstrregistered.into().abi()).ok() + (::windows::core::Interface::vtable(self).Show)(::windows::core::Interface::as_raw(self), hwndparent.into(), langid, ::core::mem::transmute(rguidprofile), ::core::mem::transmute_copy(bstrregistered)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -5858,7 +5802,7 @@ unsafe impl ::windows::core::Interface for ITfFnConfigureRegisterEudc { pub struct ITfFnConfigureRegisterEudc_Vtbl { pub base__: ITfFunction_Vtbl, #[cfg(feature = "Win32_Foundation")] - pub Show: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, langid: u16, rguidprofile: *const ::windows::core::GUID, bstrregistered: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub Show: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, langid: u16, rguidprofile: *const ::windows::core::GUID, bstrregistered: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] Show: usize, } @@ -5866,20 +5810,17 @@ pub struct ITfFnConfigureRegisterEudc_Vtbl { #[repr(transparent)] pub struct ITfFnConfigureRegisterWord(::windows::core::IUnknown); impl ITfFnConfigureRegisterWord { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDisplayName(&self) -> ::windows::core::Result { + pub unsafe fn GetDisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] - pub unsafe fn Show<'a, P0, P1>(&self, hwndparent: P0, langid: u16, rguidprofile: &::windows::core::GUID, bstrregistered: P1) -> ::windows::core::Result<()> + pub unsafe fn Show<'a, P0>(&self, hwndparent: P0, langid: u16, rguidprofile: &::windows::core::GUID, bstrregistered: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).Show)(::windows::core::Interface::as_raw(self), hwndparent.into(), langid, ::core::mem::transmute(rguidprofile), bstrregistered.into().abi()).ok() + (::windows::core::Interface::vtable(self).Show)(::windows::core::Interface::as_raw(self), hwndparent.into(), langid, ::core::mem::transmute(rguidprofile), ::core::mem::transmute_copy(bstrregistered)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -5937,7 +5878,7 @@ unsafe impl ::windows::core::Interface for ITfFnConfigureRegisterWord { pub struct ITfFnConfigureRegisterWord_Vtbl { pub base__: ITfFunction_Vtbl, #[cfg(feature = "Win32_Foundation")] - pub Show: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, langid: u16, rguidprofile: *const ::windows::core::GUID, bstrregistered: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, + pub Show: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, hwndparent: super::super::Foundation::HWND, langid: u16, rguidprofile: *const ::windows::core::GUID, bstrregistered: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] Show: usize, } @@ -5945,11 +5886,9 @@ pub struct ITfFnConfigureRegisterWord_Vtbl { #[repr(transparent)] pub struct ITfFnCustomSpeechCommand(::windows::core::IUnknown); impl ITfFnCustomSpeechCommand { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDisplayName(&self) -> ::windows::core::Result { + pub unsafe fn GetDisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn SetSpeechCommandProvider<'a, P0>(&self, pspcmdprovider: P0) -> ::windows::core::Result<()> where @@ -6018,11 +5957,9 @@ pub struct ITfFnCustomSpeechCommand_Vtbl { #[repr(transparent)] pub struct ITfFnGetLinguisticAlternates(::windows::core::IUnknown); impl ITfFnGetLinguisticAlternates { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDisplayName(&self) -> ::windows::core::Result { + pub unsafe fn GetDisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetAlternates<'a, P0>(&self, prange: P0) -> ::windows::core::Result where @@ -6092,11 +6029,9 @@ pub struct ITfFnGetLinguisticAlternates_Vtbl { #[repr(transparent)] pub struct ITfFnGetPreferredTouchKeyboardLayout(::windows::core::IUnknown); impl ITfFnGetPreferredTouchKeyboardLayout { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDisplayName(&self) -> ::windows::core::Result { + pub unsafe fn GetDisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetLayout(&self, ptkblayouttype: &mut TKBLayoutType, pwpreferredlayoutid: &u16) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetLayout)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ptkblayouttype), ::core::mem::transmute(pwpreferredlayoutid)).ok() @@ -6162,11 +6097,9 @@ pub struct ITfFnGetPreferredTouchKeyboardLayout_Vtbl { #[repr(transparent)] pub struct ITfFnGetSAPIObject(::windows::core::IUnknown); impl ITfFnGetSAPIObject { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDisplayName(&self) -> ::windows::core::Result { + pub unsafe fn GetDisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn Get(&self, sobj: TfSapiObject) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6233,11 +6166,9 @@ pub struct ITfFnGetSAPIObject_Vtbl { #[repr(transparent)] pub struct ITfFnLMInternal(::windows::core::IUnknown); impl ITfFnLMInternal { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDisplayName(&self) -> ::windows::core::Result { + pub unsafe fn GetDisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.GetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.GetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -6375,11 +6306,9 @@ pub struct ITfFnLMInternal_Vtbl { #[repr(transparent)] pub struct ITfFnLMProcessor(::windows::core::IUnknown); impl ITfFnLMProcessor { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDisplayName(&self) -> ::windows::core::Result { + pub unsafe fn GetDisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -6514,11 +6443,9 @@ pub struct ITfFnLMProcessor_Vtbl { #[repr(transparent)] pub struct ITfFnLangProfileUtil(::windows::core::IUnknown); impl ITfFnLangProfileUtil { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDisplayName(&self) -> ::windows::core::Result { + pub unsafe fn GetDisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn RegisterActiveProfiles(&self) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).RegisterActiveProfiles)(::windows::core::Interface::as_raw(self)).ok() @@ -6594,11 +6521,9 @@ pub struct ITfFnLangProfileUtil_Vtbl { #[repr(transparent)] pub struct ITfFnPlayBack(::windows::core::IUnknown); impl ITfFnPlayBack { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDisplayName(&self) -> ::windows::core::Result { + pub unsafe fn GetDisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -6679,11 +6604,9 @@ pub struct ITfFnPlayBack_Vtbl { #[repr(transparent)] pub struct ITfFnPropertyUIStatus(::windows::core::IUnknown); impl ITfFnPropertyUIStatus { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDisplayName(&self) -> ::windows::core::Result { + pub unsafe fn GetDisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetStatus(&self, refguidprop: &::windows::core::GUID) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -6754,11 +6677,9 @@ pub struct ITfFnPropertyUIStatus_Vtbl { #[repr(transparent)] pub struct ITfFnReconversion(::windows::core::IUnknown); impl ITfFnReconversion { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDisplayName(&self) -> ::windows::core::Result { + pub unsafe fn GetDisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -6847,31 +6768,16 @@ pub struct ITfFnReconversion_Vtbl { #[repr(transparent)] pub struct ITfFnSearchCandidateProvider(::windows::core::IUnknown); impl ITfFnSearchCandidateProvider { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDisplayName(&self) -> ::windows::core::Result { + pub unsafe fn GetDisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetSearchCandidates<'a, P0, P1>(&self, bstrquery: P0, bstrapplicationid: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { + pub unsafe fn GetSearchCandidates(&self, bstrquery: &::windows::core::BSTR, bstrapplicationid: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetSearchCandidates)(::windows::core::Interface::as_raw(self), bstrquery.into().abi(), bstrapplicationid.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetSearchCandidates)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrquery), ::core::mem::transmute_copy(bstrapplicationid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn SetResult<'a, P0, P1, P2>(&self, bstrquery: P0, bstrapplicationid: P1, bstrresult: P2) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, - { - (::windows::core::Interface::vtable(self).SetResult)(::windows::core::Interface::as_raw(self), bstrquery.into().abi(), bstrapplicationid.into().abi(), bstrresult.into().abi()).ok() + pub unsafe fn SetResult(&self, bstrquery: &::windows::core::BSTR, bstrapplicationid: &::windows::core::BSTR, bstrresult: &::windows::core::BSTR) -> ::windows::core::Result<()> { + (::windows::core::Interface::vtable(self).SetResult)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(bstrquery), ::core::mem::transmute_copy(bstrapplicationid), ::core::mem::transmute_copy(bstrresult)).ok() } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -6928,24 +6834,16 @@ unsafe impl ::windows::core::Interface for ITfFnSearchCandidateProvider { #[doc(hidden)] pub struct ITfFnSearchCandidateProvider_Vtbl { pub base__: ITfFunction_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetSearchCandidates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrquery: ::core::mem::ManuallyDrop, bstrapplicationid: ::core::mem::ManuallyDrop, pplist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetSearchCandidates: usize, - #[cfg(feature = "Win32_Foundation")] - pub SetResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrquery: ::core::mem::ManuallyDrop, bstrapplicationid: ::core::mem::ManuallyDrop, bstrresult: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - SetResult: usize, + pub GetSearchCandidates: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrquery: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrapplicationid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pplist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + pub SetResult: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bstrquery: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrapplicationid: ::core::mem::ManuallyDrop<::windows::core::BSTR>, bstrresult: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_TextServices\"`*"] #[repr(transparent)] pub struct ITfFnShowHelp(::windows::core::IUnknown); impl ITfFnShowHelp { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDisplayName(&self) -> ::windows::core::Result { + pub unsafe fn GetDisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -7019,11 +6917,9 @@ pub struct ITfFnShowHelp_Vtbl { #[repr(transparent)] pub struct ITfFunction(::windows::core::IUnknown); impl ITfFunction { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDisplayName(&self) -> ::windows::core::Result { + pub unsafe fn GetDisplayName(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDisplayName)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -7065,10 +6961,7 @@ unsafe impl ::windows::core::Interface for ITfFunction { #[doc(hidden)] pub struct ITfFunction_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDisplayName: usize, + pub GetDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrname: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_TextServices\"`*"] #[repr(transparent)] @@ -7078,11 +6971,9 @@ impl ITfFunctionProvider { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetType)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::GUID>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDescription(&self) -> ::windows::core::Result { + pub unsafe fn GetDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetFunction(&self, rguid: &::windows::core::GUID, riid: &::windows::core::GUID) -> ::windows::core::Result<::windows::core::IUnknown> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7129,10 +7020,7 @@ unsafe impl ::windows::core::Interface for ITfFunctionProvider { pub struct ITfFunctionProvider_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub GetType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdesc: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDescription: usize, + pub GetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdesc: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetFunction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rguid: *const ::windows::core::GUID, riid: *const ::windows::core::GUID, ppunk: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_TextServices\"`*"] @@ -7369,11 +7257,9 @@ impl ITfInputProcessorProfiles { pub unsafe fn GetActiveLanguageProfile(&self, rclsid: &::windows::core::GUID, plangid: &mut u16, pguidprofile: &mut ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetActiveLanguageProfile)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(rclsid), ::core::mem::transmute(plangid), ::core::mem::transmute(pguidprofile)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetLanguageProfileDescription(&self, rclsid: &::windows::core::GUID, langid: u16, guidprofile: &::windows::core::GUID) -> ::windows::core::Result { + pub unsafe fn GetLanguageProfileDescription(&self, rclsid: &::windows::core::GUID, langid: u16, guidprofile: &::windows::core::GUID) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetLanguageProfileDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(rclsid), langid, ::core::mem::transmute(guidprofile), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetLanguageProfileDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(rclsid), langid, ::core::mem::transmute(guidprofile), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetCurrentLanguage(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7469,10 +7355,7 @@ pub struct ITfInputProcessorProfiles_Vtbl { pub SetDefaultLanguageProfile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, langid: u16, rclsid: *const ::windows::core::GUID, guidprofiles: *const ::windows::core::GUID) -> ::windows::core::HRESULT, pub ActivateLanguageProfile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rclsid: *const ::windows::core::GUID, langid: u16, guidprofiles: *const ::windows::core::GUID) -> ::windows::core::HRESULT, pub GetActiveLanguageProfile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rclsid: *const ::windows::core::GUID, plangid: *mut u16, pguidprofile: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetLanguageProfileDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rclsid: *const ::windows::core::GUID, langid: u16, guidprofile: *const ::windows::core::GUID, pbstrprofile: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetLanguageProfileDescription: usize, + pub GetLanguageProfileDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rclsid: *const ::windows::core::GUID, langid: u16, guidprofile: *const ::windows::core::GUID, pbstrprofile: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetCurrentLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, plangid: *mut u16) -> ::windows::core::HRESULT, pub ChangeCurrentLanguage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, langid: u16) -> ::windows::core::HRESULT, pub GetLanguageList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pplangid: *mut *mut u16, pulcount: *mut u32) -> ::windows::core::HRESULT, @@ -7525,11 +7408,9 @@ impl ITfInputProcessorProfilesEx { pub unsafe fn GetActiveLanguageProfile(&self, rclsid: &::windows::core::GUID, plangid: &mut u16, pguidprofile: &mut ::windows::core::GUID) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetActiveLanguageProfile)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(rclsid), ::core::mem::transmute(plangid), ::core::mem::transmute(pguidprofile)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetLanguageProfileDescription(&self, rclsid: &::windows::core::GUID, langid: u16, guidprofile: &::windows::core::GUID) -> ::windows::core::Result { + pub unsafe fn GetLanguageProfileDescription(&self, rclsid: &::windows::core::GUID, langid: u16, guidprofile: &::windows::core::GUID) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetLanguageProfileDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(rclsid), langid, ::core::mem::transmute(guidprofile), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetLanguageProfileDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(rclsid), langid, ::core::mem::transmute(guidprofile), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetCurrentLanguage(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -7640,28 +7521,20 @@ impl ITfInputScope { pub unsafe fn GetInputScopes(&self, pprginputscopes: *mut *mut InputScope, pccount: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetInputScopes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pprginputscopes), ::core::mem::transmute(pccount)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPhrase(&self, ppbstrphrases: *mut *mut super::super::Foundation::BSTR, pccount: &mut u32) -> ::windows::core::Result<()> { + pub unsafe fn GetPhrase(&self, ppbstrphrases: *mut *mut ::windows::core::BSTR, pccount: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetPhrase)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ppbstrphrases), ::core::mem::transmute(pccount)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetRegularExpression(&self) -> ::windows::core::Result { + pub unsafe fn GetRegularExpression(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetRegularExpression)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetRegularExpression)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetSRGS(&self) -> ::windows::core::Result { + pub unsafe fn GetSRGS(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetSRGS)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetSRGS)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetXML(&self) -> ::windows::core::Result { + pub unsafe fn GetXML(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetXML)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetXML)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -7704,22 +7577,10 @@ unsafe impl ::windows::core::Interface for ITfInputScope { pub struct ITfInputScope_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub GetInputScopes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pprginputscopes: *mut *mut InputScope, pccount: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetPhrase: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppbstrphrases: *mut *mut super::super::Foundation::BSTR, pccount: *mut u32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPhrase: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetRegularExpression: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrregexp: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetRegularExpression: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetSRGS: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsrgs: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetSRGS: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetXML: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrxml: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetXML: usize, + pub GetPhrase: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppbstrphrases: *mut *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>, pccount: *mut u32) -> ::windows::core::HRESULT, + pub GetRegularExpression: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrregexp: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetSRGS: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrsrgs: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetXML: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrxml: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_TextServices\"`*"] #[repr(transparent)] @@ -7728,28 +7589,20 @@ impl ITfInputScope2 { pub unsafe fn GetInputScopes(&self, pprginputscopes: *mut *mut InputScope, pccount: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetInputScopes)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pprginputscopes), ::core::mem::transmute(pccount)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPhrase(&self, ppbstrphrases: *mut *mut super::super::Foundation::BSTR, pccount: &mut u32) -> ::windows::core::Result<()> { + pub unsafe fn GetPhrase(&self, ppbstrphrases: *mut *mut ::windows::core::BSTR, pccount: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetPhrase)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(ppbstrphrases), ::core::mem::transmute(pccount)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetRegularExpression(&self) -> ::windows::core::Result { + pub unsafe fn GetRegularExpression(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetRegularExpression)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetRegularExpression)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetSRGS(&self) -> ::windows::core::Result { + pub unsafe fn GetSRGS(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetSRGS)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetSRGS)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetXML(&self) -> ::windows::core::Result { + pub unsafe fn GetXML(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetXML)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetXML)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_System_Com\"`*"] #[cfg(feature = "Win32_System_Com")] @@ -8245,11 +8098,9 @@ impl ITfKeystrokeMgr { pub unsafe fn SetPreservedKeyDescription(&self, rguid: &::windows::core::GUID, pchdesc: &[u16]) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetPreservedKeyDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(rguid), ::core::mem::transmute(pchdesc.as_ptr()), pchdesc.len() as _).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetPreservedKeyDescription(&self, rguid: &::windows::core::GUID) -> ::windows::core::Result { + pub unsafe fn GetPreservedKeyDescription(&self, rguid: &::windows::core::GUID) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetPreservedKeyDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(rguid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetPreservedKeyDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(rguid), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -8330,10 +8181,7 @@ pub struct ITfKeystrokeMgr_Vtbl { pub PreserveKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, tid: u32, rguid: *const ::windows::core::GUID, prekey: *const TF_PRESERVEDKEY, pchdesc: ::windows::core::PCWSTR, cchdesc: u32) -> ::windows::core::HRESULT, pub UnpreserveKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rguid: *const ::windows::core::GUID, pprekey: *const TF_PRESERVEDKEY) -> ::windows::core::HRESULT, pub SetPreservedKeyDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rguid: *const ::windows::core::GUID, pchdesc: ::windows::core::PCWSTR, cchdesc: u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetPreservedKeyDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rguid: *const ::windows::core::GUID, pbstrdesc: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetPreservedKeyDescription: usize, + pub GetPreservedKeyDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rguid: *const ::windows::core::GUID, pbstrdesc: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub SimulatePreservedKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pic: *mut ::core::ffi::c_void, rguid: *const ::windows::core::GUID, pfeaten: *mut super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -8503,11 +8351,9 @@ impl ITfLangBarItem { { (::windows::core::Interface::vtable(self).Show)(::windows::core::Interface::as_raw(self), fshow.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetTooltipString(&self) -> ::windows::core::Result { + pub unsafe fn GetTooltipString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetTooltipString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetTooltipString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -8555,10 +8401,7 @@ pub struct ITfLangBarItem_Vtbl { pub Show: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, fshow: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] Show: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetTooltipString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtooltip: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetTooltipString: usize, + pub GetTooltipString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtooltip: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_TextServices\"`*"] #[repr(transparent)] @@ -8580,11 +8423,9 @@ impl ITfLangBarItemBalloon { { (::windows::core::Interface::vtable(self).base__.Show)(::windows::core::Interface::as_raw(self), fshow.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetTooltipString(&self) -> ::windows::core::Result { + pub unsafe fn GetTooltipString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetTooltipString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetTooltipString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -8597,8 +8438,6 @@ impl ITfLangBarItemBalloon { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetPreferredSize)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pszdefault), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetBalloonInfo(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetBalloonInfo)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) @@ -8666,10 +8505,7 @@ pub struct ITfLangBarItemBalloon_Vtbl { pub GetPreferredSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pszdefault: *const super::super::Foundation::SIZE, psz: *mut super::super::Foundation::SIZE) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] GetPreferredSize: usize, - #[cfg(feature = "Win32_Foundation")] pub GetBalloonInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinfo: *mut TF_LBBALLOONINFO) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetBalloonInfo: usize, } #[doc = "*Required features: `\"Win32_UI_TextServices\"`*"] #[repr(transparent)] @@ -8691,11 +8527,9 @@ impl ITfLangBarItemBitmap { { (::windows::core::Interface::vtable(self).base__.Show)(::windows::core::Interface::as_raw(self), fshow.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetTooltipString(&self) -> ::windows::core::Result { + pub unsafe fn GetTooltipString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetTooltipString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetTooltipString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -8801,11 +8635,9 @@ impl ITfLangBarItemBitmapButton { { (::windows::core::Interface::vtable(self).base__.Show)(::windows::core::Interface::as_raw(self), fshow.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetTooltipString(&self) -> ::windows::core::Result { + pub unsafe fn GetTooltipString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetTooltipString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetTooltipString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -8832,11 +8664,9 @@ impl ITfLangBarItemBitmapButton { pub unsafe fn DrawBitmap(&self, bmwidth: i32, bmheight: i32, dwflags: u32, phbmp: &mut super::super::Graphics::Gdi::HBITMAP, phbmpmask: &mut super::super::Graphics::Gdi::HBITMAP) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).DrawBitmap)(::windows::core::Interface::as_raw(self), bmwidth, bmheight, dwflags, ::core::mem::transmute(phbmp), ::core::mem::transmute(phbmpmask)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetText(&self) -> ::windows::core::Result { + pub unsafe fn GetText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -8907,10 +8737,7 @@ pub struct ITfLangBarItemBitmapButton_Vtbl { pub DrawBitmap: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bmwidth: i32, bmheight: i32, dwflags: u32, phbmp: *mut super::super::Graphics::Gdi::HBITMAP, phbmpmask: *mut super::super::Graphics::Gdi::HBITMAP) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Graphics_Gdi"))] DrawBitmap: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetText: usize, + pub GetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_TextServices\"`*"] #[repr(transparent)] @@ -8932,11 +8759,9 @@ impl ITfLangBarItemButton { { (::windows::core::Interface::vtable(self).base__.Show)(::windows::core::Interface::as_raw(self), fshow.into()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetTooltipString(&self) -> ::windows::core::Result { + pub unsafe fn GetTooltipString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetTooltipString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetTooltipString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -8958,11 +8783,9 @@ impl ITfLangBarItemButton { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetIcon)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetText(&self) -> ::windows::core::Result { + pub unsafe fn GetText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -9029,10 +8852,7 @@ pub struct ITfLangBarItemButton_Vtbl { pub GetIcon: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phicon: *mut super::WindowsAndMessaging::HICON) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_UI_WindowsAndMessaging"))] GetIcon: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetText: usize, + pub GetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_TextServices\"`*"] #[repr(transparent)] @@ -10650,11 +10470,9 @@ pub struct ITfReadOnlyProperty_Vtbl { #[repr(transparent)] pub struct ITfReadingInformationUIElement(::windows::core::IUnknown); impl ITfReadingInformationUIElement { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDescription(&self) -> ::windows::core::Result { + pub unsafe fn GetDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetGUID(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -10682,11 +10500,9 @@ impl ITfReadingInformationUIElement { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetContext)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetString(&self) -> ::windows::core::Result { + pub unsafe fn GetString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetMaxReadingStringLength(&self) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -10759,10 +10575,7 @@ pub struct ITfReadingInformationUIElement_Vtbl { pub base__: ITfUIElement_Vtbl, pub GetUpdatedFlags: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdwflags: *mut u32) -> ::windows::core::HRESULT, pub GetContext: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ppic: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstr: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetString: usize, + pub GetString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetMaxReadingStringLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcchmax: *mut u32) -> ::windows::core::HRESULT, pub GetErrorIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, perrorindex: *mut u32) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] @@ -10831,11 +10644,9 @@ impl ITfReverseConversionList { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetLength)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetString(&self, uindex: u32) -> ::windows::core::Result { + pub unsafe fn GetString(&self, uindex: u32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetString)(::windows::core::Interface::as_raw(self), uindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetString)(::windows::core::Interface::as_raw(self), uindex, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -10878,10 +10689,7 @@ unsafe impl ::windows::core::Interface for ITfReverseConversionList { pub struct ITfReverseConversionList_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub GetLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, puindex: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uindex: u32, pbstr: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetString: usize, + pub GetString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uindex: u32, pbstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_TextServices\"`*"] #[repr(transparent)] @@ -11341,11 +11149,9 @@ impl ITfSystemLangBarItemText { pub unsafe fn SetItemText(&self, pch: &[u16]) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).SetItemText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pch.as_ptr()), pch.len() as _).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetItemText(&self) -> ::windows::core::Result { + pub unsafe fn GetItemText(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetItemText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetItemText)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -11388,10 +11194,7 @@ unsafe impl ::windows::core::Interface for ITfSystemLangBarItemText { pub struct ITfSystemLangBarItemText_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub SetItemText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pch: ::windows::core::PCWSTR, cch: u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetItemText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtext: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetItemText: usize, + pub GetItemText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrtext: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_TextServices\"`*"] #[repr(transparent)] @@ -12124,11 +11927,9 @@ pub struct ITfThreadMgrEx_Vtbl { #[repr(transparent)] pub struct ITfToolTipUIElement(::windows::core::IUnknown); impl ITfToolTipUIElement { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDescription(&self) -> ::windows::core::Result { + pub unsafe fn GetDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetGUID(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -12148,11 +11949,9 @@ impl ITfToolTipUIElement { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.IsShown)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetString(&self) -> ::windows::core::Result { + pub unsafe fn GetString(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetString)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -12209,10 +12008,7 @@ unsafe impl ::windows::core::Interface for ITfToolTipUIElement { #[doc(hidden)] pub struct ITfToolTipUIElement_Vtbl { pub base__: ITfUIElement_Vtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstr: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetString: usize, + pub GetString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_TextServices\"`*"] #[repr(transparent)] @@ -12278,11 +12074,9 @@ pub struct ITfTransitoryExtensionSink_Vtbl { #[repr(transparent)] pub struct ITfTransitoryExtensionUIElement(::windows::core::IUnknown); impl ITfTransitoryExtensionUIElement { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDescription(&self) -> ::windows::core::Result { + pub unsafe fn GetDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetGUID(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -12367,11 +12161,9 @@ pub struct ITfTransitoryExtensionUIElement_Vtbl { #[repr(transparent)] pub struct ITfUIElement(::windows::core::IUnknown); impl ITfUIElement { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetDescription(&self) -> ::windows::core::Result { + pub unsafe fn GetDescription(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetDescription)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } pub unsafe fn GetGUID(&self) -> ::windows::core::Result<::windows::core::GUID> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); @@ -12431,10 +12223,7 @@ unsafe impl ::windows::core::Interface for ITfUIElement { #[doc(hidden)] pub struct ITfUIElement_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub GetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetDescription: usize, + pub GetDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pbstrdescription: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub GetGUID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pguid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub Show: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bshow: super::super::Foundation::BOOL) -> ::windows::core::HRESULT, @@ -12686,17 +12475,13 @@ impl IVersionInfo { pub unsafe fn GetBuildVersion(&self, ulsub: u32, pdwmajor: &mut u32, pdwminor: &mut u32) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetBuildVersion)(::windows::core::Interface::as_raw(self), ulsub, ::core::mem::transmute(pdwmajor), ::core::mem::transmute(pdwminor)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetComponentDescription(&self, ulsub: u32) -> ::windows::core::Result { + pub unsafe fn GetComponentDescription(&self, ulsub: u32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetComponentDescription)(::windows::core::Interface::as_raw(self), ulsub, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetComponentDescription)(::windows::core::Interface::as_raw(self), ulsub, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetInstanceDescription(&self, ulsub: u32) -> ::windows::core::Result { + pub unsafe fn GetInstanceDescription(&self, ulsub: u32) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetInstanceDescription)(::windows::core::Interface::as_raw(self), ulsub, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetInstanceDescription)(::windows::core::Interface::as_raw(self), ulsub, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -12741,14 +12526,8 @@ pub struct IVersionInfo_Vtbl { pub GetSubcomponentCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulsub: u32, ulcount: *mut u32) -> ::windows::core::HRESULT, pub GetImplementationID: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulsub: u32, implid: *mut ::windows::core::GUID) -> ::windows::core::HRESULT, pub GetBuildVersion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulsub: u32, pdwmajor: *mut u32, pdwminor: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetComponentDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulsub: u32, pimplstr: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetComponentDescription: usize, - #[cfg(feature = "Win32_Foundation")] - pub GetInstanceDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulsub: u32, pimplstr: *mut super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetInstanceDescription: usize, + pub GetComponentDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulsub: u32, pimplstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, + pub GetInstanceDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ulsub: u32, pimplstr: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } pub const AccClientDocMgr: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfc48cc30_4f3e_4fa1_803b_ad0e196a83b1); pub const AccDictionary: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6572ee16_5fe5_4331_bb6d_76a49c56e423); @@ -14826,103 +14605,83 @@ impl ::core::default::Default for TF_LANGUAGEPROFILE { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_UI_TextServices\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_UI_TextServices\"`*"] pub struct TF_LBBALLOONINFO { pub style: TfLBBalloonStyle, - pub bstrText: super::super::Foundation::BSTR, + pub bstrText: ::windows::core::BSTR, } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for TF_LBBALLOONINFO { fn clone(&self) -> Self { Self { style: self.style, bstrText: self.bstrText.clone() } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for TF_LBBALLOONINFO { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("TF_LBBALLOONINFO").field("style", &self.style).field("bstrText", &self.bstrText).finish() } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for TF_LBBALLOONINFO { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for TF_LBBALLOONINFO { fn eq(&self, other: &Self) -> bool { self.style == other.style && self.bstrText == other.bstrText } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for TF_LBBALLOONINFO {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for TF_LBBALLOONINFO { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] -#[doc = "*Required features: `\"Win32_UI_TextServices\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_UI_TextServices\"`*"] pub struct TF_LMLATTELEMENT { pub dwFrameStart: u32, pub dwFrameLen: u32, pub dwFlags: u32, pub Anonymous: TF_LMLATTELEMENT_0, - pub bstrText: super::super::Foundation::BSTR, + pub bstrText: ::windows::core::BSTR, } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for TF_LMLATTELEMENT { fn clone(&self) -> Self { Self { dwFrameStart: self.dwFrameStart, dwFrameLen: self.dwFrameLen, dwFlags: self.dwFlags, Anonymous: self.Anonymous, bstrText: self.bstrText.clone() } } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for TF_LMLATTELEMENT { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for TF_LMLATTELEMENT { fn eq(&self, other: &Self) -> bool { self.dwFrameStart == other.dwFrameStart && self.dwFrameLen == other.dwFrameLen && self.dwFlags == other.dwFlags && self.Anonymous == other.Anonymous && self.bstrText == other.bstrText } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for TF_LMLATTELEMENT {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for TF_LMLATTELEMENT { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] -#[doc = "*Required features: `\"Win32_UI_TextServices\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_UI_TextServices\"`*"] pub union TF_LMLATTELEMENT_0 { pub iCost: i32, } -#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for TF_LMLATTELEMENT_0 {} -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for TF_LMLATTELEMENT_0 { fn clone(&self) -> Self { *self } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for TF_LMLATTELEMENT_0 { type Abi = Self; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for TF_LMLATTELEMENT_0 { fn eq(&self, other: &Self) -> bool { unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for TF_LMLATTELEMENT_0 {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for TF_LMLATTELEMENT_0 { fn default() -> Self { unsafe { ::core::mem::zeroed() } diff --git a/crates/libs/windows/src/Windows/Win32/UI/Wpf/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/Wpf/impl.rs index 6733a66c22..4e0f512b36 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Wpf/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Wpf/impl.rs @@ -255,17 +255,14 @@ impl IMILBitmapEffectConnectorInfo_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IMILBitmapEffectEvents_Impl: Sized { - fn PropertyChange(&self, peffect: &::core::option::Option, bstrpropertyname: &super::super::Foundation::BSTR) -> ::windows::core::Result<()>; + fn PropertyChange(&self, peffect: &::core::option::Option, bstrpropertyname: &::windows::core::BSTR) -> ::windows::core::Result<()>; fn DirtyRegion(&self, peffect: &::core::option::Option, prect: *const MilRectD) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IMILBitmapEffectEvents {} -#[cfg(feature = "Win32_Foundation")] impl IMILBitmapEffectEvents_Vtbl { pub const fn new, Impl: IMILBitmapEffectEvents_Impl, const OFFSET: isize>() -> IMILBitmapEffectEvents_Vtbl { - unsafe extern "system" fn PropertyChange, Impl: IMILBitmapEffectEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, peffect: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT { + unsafe extern "system" fn PropertyChange, Impl: IMILBitmapEffectEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, peffect: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.PropertyChange(::core::mem::transmute(&peffect), ::core::mem::transmute(&bstrpropertyname)).into() diff --git a/crates/libs/windows/src/Windows/Win32/UI/Wpf/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Wpf/mod.rs index 6668ba6237..51437f42c5 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Wpf/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Wpf/mod.rs @@ -348,14 +348,11 @@ pub struct IMILBitmapEffectConnectorInfo_Vtbl { #[repr(transparent)] pub struct IMILBitmapEffectEvents(::windows::core::IUnknown); impl IMILBitmapEffectEvents { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn PropertyChange<'a, P0, P1>(&self, peffect: P0, bstrpropertyname: P1) -> ::windows::core::Result<()> + pub unsafe fn PropertyChange<'a, P0>(&self, peffect: P0, bstrpropertyname: &::windows::core::BSTR) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, IMILBitmapEffect>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::Foundation::BSTR>>, { - (::windows::core::Interface::vtable(self).PropertyChange)(::windows::core::Interface::as_raw(self), peffect.into().abi(), bstrpropertyname.into().abi()).ok() + (::windows::core::Interface::vtable(self).PropertyChange)(::windows::core::Interface::as_raw(self), peffect.into().abi(), ::core::mem::transmute_copy(bstrpropertyname)).ok() } pub unsafe fn DirtyRegion<'a, P0>(&self, peffect: P0, prect: &MilRectD) -> ::windows::core::Result<()> where @@ -403,10 +400,7 @@ unsafe impl ::windows::core::Interface for IMILBitmapEffectEvents { #[doc(hidden)] pub struct IMILBitmapEffectEvents_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] - pub PropertyChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, peffect: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - PropertyChange: usize, + pub PropertyChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, peffect: *mut ::core::ffi::c_void, bstrpropertyname: ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, pub DirtyRegion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, peffect: *mut ::core::ffi::c_void, prect: *const MilRectD) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_Wpf\"`*"] diff --git a/crates/libs/windows/src/Windows/Win32/UI/Xaml/Diagnostics/impl.rs b/crates/libs/windows/src/Windows/Win32/UI/Xaml/Diagnostics/impl.rs index e75911ef07..acc86a8956 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Xaml/Diagnostics/impl.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Xaml/Diagnostics/impl.rs @@ -65,7 +65,7 @@ pub trait IVisualTreeService_Impl: Sized { fn AdviseVisualTreeChange(&self, pcallback: &::core::option::Option) -> ::windows::core::Result<()>; fn UnadviseVisualTreeChange(&self, pcallback: &::core::option::Option) -> ::windows::core::Result<()>; fn GetEnums(&self, pcount: *mut u32, ppenums: *mut *mut EnumType) -> ::windows::core::Result<()>; - fn CreateInstance(&self, typename: &super::super::super::Foundation::BSTR, value: &super::super::super::Foundation::BSTR) -> ::windows::core::Result; + fn CreateInstance(&self, typename: &::windows::core::BSTR, value: &::windows::core::BSTR) -> ::windows::core::Result; fn GetPropertyValuesChain(&self, instancehandle: u64, psourcecount: *mut u32, pppropertysources: *mut *mut PropertyChainSource, ppropertycount: *mut u32, pppropertyvalues: *mut *mut PropertyChainValue) -> ::windows::core::Result<()>; fn SetProperty(&self, instancehandle: u64, value: u64, propertyindex: u32) -> ::windows::core::Result<()>; fn ClearProperty(&self, instancehandle: u64, propertyindex: u32) -> ::windows::core::Result<()>; @@ -95,7 +95,7 @@ impl IVisualTreeService_Vtbl { let this = (*this).get_impl(); this.GetEnums(::core::mem::transmute_copy(&pcount), ::core::mem::transmute_copy(&ppenums)).into() } - unsafe extern "system" fn CreateInstance, Impl: IVisualTreeService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, typename: ::core::mem::ManuallyDrop, value: ::core::mem::ManuallyDrop, pinstancehandle: *mut u64) -> ::windows::core::HRESULT { + unsafe extern "system" fn CreateInstance, Impl: IVisualTreeService_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, typename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pinstancehandle: *mut u64) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateInstance(::core::mem::transmute(&typename), ::core::mem::transmute(&value)) { @@ -284,13 +284,10 @@ impl IVisualTreeService3_Vtbl { iid == &::IID || iid == &::IID || iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IVisualTreeServiceCallback_Impl: Sized { fn OnVisualTreeChange(&self, relation: &ParentChildRelation, element: &VisualElement, mutationtype: VisualMutationType) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IVisualTreeServiceCallback {} -#[cfg(feature = "Win32_Foundation")] impl IVisualTreeServiceCallback_Vtbl { pub const fn new, Impl: IVisualTreeServiceCallback_Impl, const OFFSET: isize>() -> IVisualTreeServiceCallback_Vtbl { unsafe extern "system" fn OnVisualTreeChange, Impl: IVisualTreeServiceCallback_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, relation: ParentChildRelation, element: ::core::mem::ManuallyDrop, mutationtype: VisualMutationType) -> ::windows::core::HRESULT { @@ -304,13 +301,10 @@ impl IVisualTreeServiceCallback_Vtbl { iid == &::IID } } -#[cfg(feature = "Win32_Foundation")] pub trait IVisualTreeServiceCallback2_Impl: Sized + IVisualTreeServiceCallback_Impl { fn OnElementStateChanged(&self, element: u64, elementstate: VisualElementState, context: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; } -#[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IVisualTreeServiceCallback2 {} -#[cfg(feature = "Win32_Foundation")] impl IVisualTreeServiceCallback2_Vtbl { pub const fn new, Impl: IVisualTreeServiceCallback2_Impl, const OFFSET: isize>() -> IVisualTreeServiceCallback2_Vtbl { unsafe extern "system" fn OnElementStateChanged, Impl: IVisualTreeServiceCallback2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, element: u64, elementstate: VisualElementState, context: ::windows::core::PCWSTR) -> ::windows::core::HRESULT { @@ -333,7 +327,7 @@ pub trait IXamlDiagnostics_Impl: Sized { fn GetHandleFromIInspectable(&self, pinstance: &::core::option::Option<::windows::core::IInspectable>) -> ::windows::core::Result; fn HitTest(&self, rect: &super::super::super::Foundation::RECT, pcount: *mut u32, ppinstancehandles: *mut *mut u64) -> ::windows::core::Result<()>; fn RegisterInstance(&self, pinstance: &::core::option::Option<::windows::core::IInspectable>) -> ::windows::core::Result; - fn GetInitializationData(&self) -> ::windows::core::Result; + fn GetInitializationData(&self) -> ::windows::core::Result<::windows::core::BSTR>; } #[cfg(feature = "Win32_Foundation")] impl ::windows::core::RuntimeName for IXamlDiagnostics {} @@ -411,7 +405,7 @@ impl IXamlDiagnostics_Vtbl { ::core::result::Result::Err(err) => err.into(), } } - unsafe extern "system" fn GetInitializationData, Impl: IXamlDiagnostics_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pinitializationdata: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT { + unsafe extern "system" fn GetInitializationData, Impl: IXamlDiagnostics_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pinitializationdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetInitializationData() { diff --git a/crates/libs/windows/src/Windows/Win32/UI/Xaml/Diagnostics/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/Xaml/Diagnostics/mod.rs index 86e3b8ce0e..a21d47fde7 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/Xaml/Diagnostics/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/Xaml/Diagnostics/mod.rs @@ -117,20 +117,14 @@ impl IVisualTreeService { { (::windows::core::Interface::vtable(self).UnadviseVisualTreeChange)(::windows::core::Interface::as_raw(self), pcallback.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetEnums(&self, pcount: &mut u32, ppenums: *mut *mut EnumType) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetEnums)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pcount), ::core::mem::transmute(ppenums)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateInstance<'a, P0, P1>(&self, typename: P0, value: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn CreateInstance(&self, typename: &::windows::core::BSTR, value: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).CreateInstance)(::windows::core::Interface::as_raw(self), typename.into().abi(), value.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).CreateInstance)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(typename), ::core::mem::transmute_copy(value), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -147,8 +141,6 @@ impl IVisualTreeService { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).GetCollectionCount)(::windows::core::Interface::as_raw(self), instancehandle, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetCollectionElements(&self, instancehandle: u64, startindex: u32, pelementcount: &mut u32, ppelementvalues: *mut *mut CollectionElementValue) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).GetCollectionElements)(::windows::core::Interface::as_raw(self), instancehandle, startindex, ::core::mem::transmute(pelementcount), ::core::mem::transmute(ppelementvalues)).ok() } @@ -203,14 +195,11 @@ pub struct IVisualTreeService_Vtbl { pub base__: ::windows::core::IUnknownVtbl, pub AdviseVisualTreeChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcallback: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, pub UnadviseVisualTreeChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcallback: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] + #[cfg(feature = "Win32_System_Com")] pub GetEnums: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pcount: *mut u32, ppenums: *mut *mut EnumType) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com")))] + #[cfg(not(feature = "Win32_System_Com"))] GetEnums: usize, - #[cfg(feature = "Win32_Foundation")] - pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, typename: ::core::mem::ManuallyDrop, value: ::core::mem::ManuallyDrop, pinstancehandle: *mut u64) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - CreateInstance: usize, + pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, typename: ::core::mem::ManuallyDrop<::windows::core::BSTR>, value: ::core::mem::ManuallyDrop<::windows::core::BSTR>, pinstancehandle: *mut u64) -> ::windows::core::HRESULT, #[cfg(feature = "Win32_Foundation")] pub GetPropertyValuesChain: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, instancehandle: u64, psourcecount: *mut u32, pppropertysources: *mut *mut PropertyChainSource, ppropertycount: *mut u32, pppropertyvalues: *mut *mut PropertyChainValue) -> ::windows::core::HRESULT, #[cfg(not(feature = "Win32_Foundation"))] @@ -218,10 +207,7 @@ pub struct IVisualTreeService_Vtbl { pub SetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, instancehandle: u64, value: u64, propertyindex: u32) -> ::windows::core::HRESULT, pub ClearProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, instancehandle: u64, propertyindex: u32) -> ::windows::core::HRESULT, pub GetCollectionCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, instancehandle: u64, pcollectionsize: *mut u32) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] pub GetCollectionElements: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, instancehandle: u64, startindex: u32, pelementcount: *mut u32, ppelementvalues: *mut *mut CollectionElementValue) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetCollectionElements: usize, pub AddChild: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, parent: u64, child: u64, index: u32) -> ::windows::core::HRESULT, pub RemoveChild: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, parent: u64, index: u32) -> ::windows::core::HRESULT, pub ClearChildren: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, parent: u64) -> ::windows::core::HRESULT, @@ -242,20 +228,14 @@ impl IVisualTreeService2 { { (::windows::core::Interface::vtable(self).base__.UnadviseVisualTreeChange)(::windows::core::Interface::as_raw(self), pcallback.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetEnums(&self, pcount: &mut u32, ppenums: *mut *mut EnumType) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetEnums)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pcount), ::core::mem::transmute(ppenums)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateInstance<'a, P0, P1>(&self, typename: P0, value: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn CreateInstance(&self, typename: &::windows::core::BSTR, value: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.CreateInstance)(::windows::core::Interface::as_raw(self), typename.into().abi(), value.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.CreateInstance)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(typename), ::core::mem::transmute_copy(value), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -272,8 +252,6 @@ impl IVisualTreeService2 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.GetCollectionCount)(::windows::core::Interface::as_raw(self), instancehandle, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetCollectionElements(&self, instancehandle: u64, startindex: u32, pelementcount: &mut u32, ppelementvalues: *mut *mut CollectionElementValue) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.GetCollectionElements)(::windows::core::Interface::as_raw(self), instancehandle, startindex, ::core::mem::transmute(pelementcount), ::core::mem::transmute(ppelementvalues)).ok() } @@ -380,20 +358,14 @@ impl IVisualTreeService3 { { (::windows::core::Interface::vtable(self).base__.base__.UnadviseVisualTreeChange)(::windows::core::Interface::as_raw(self), pcallback.into().abi()).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] + #[doc = "*Required features: `\"Win32_System_Com\"`*"] + #[cfg(feature = "Win32_System_Com")] pub unsafe fn GetEnums(&self, pcount: &mut u32, ppenums: *mut *mut EnumType) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.GetEnums)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(pcount), ::core::mem::transmute(ppenums)).ok() } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn CreateInstance<'a, P0, P1>(&self, typename: P0, value: P1) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::super::super::Foundation::BSTR>>, - { + pub unsafe fn CreateInstance(&self, typename: &::windows::core::BSTR, value: &::windows::core::BSTR) -> ::windows::core::Result { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).base__.base__.CreateInstance)(::windows::core::Interface::as_raw(self), typename.into().abi(), value.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).base__.base__.CreateInstance)(::windows::core::Interface::as_raw(self), ::core::mem::transmute_copy(typename), ::core::mem::transmute_copy(value), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } #[doc = "*Required features: `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -410,8 +382,6 @@ impl IVisualTreeService3 { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).base__.base__.GetCollectionCount)(::windows::core::Interface::as_raw(self), instancehandle, ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn GetCollectionElements(&self, instancehandle: u64, startindex: u32, pelementcount: &mut u32, ppelementvalues: *mut *mut CollectionElementValue) -> ::windows::core::Result<()> { (::windows::core::Interface::vtable(self).base__.base__.GetCollectionElements)(::windows::core::Interface::as_raw(self), instancehandle, startindex, ::core::mem::transmute(pelementcount), ::core::mem::transmute(ppelementvalues)).ok() } @@ -546,8 +516,6 @@ pub struct IVisualTreeService3_Vtbl { #[repr(transparent)] pub struct IVisualTreeServiceCallback(::windows::core::IUnknown); impl IVisualTreeServiceCallback { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn OnVisualTreeChange<'a, P0>(&self, relation: ParentChildRelation, element: P0, mutationtype: VisualMutationType) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, VisualElement>>, @@ -594,17 +562,12 @@ unsafe impl ::windows::core::Interface for IVisualTreeServiceCallback { #[doc(hidden)] pub struct IVisualTreeServiceCallback_Vtbl { pub base__: ::windows::core::IUnknownVtbl, - #[cfg(feature = "Win32_Foundation")] pub OnVisualTreeChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, relation: ParentChildRelation, element: ::core::mem::ManuallyDrop, mutationtype: VisualMutationType) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - OnVisualTreeChange: usize, } #[doc = "*Required features: `\"Win32_UI_Xaml_Diagnostics\"`*"] #[repr(transparent)] pub struct IVisualTreeServiceCallback2(::windows::core::IUnknown); impl IVisualTreeServiceCallback2 { - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] pub unsafe fn OnVisualTreeChange<'a, P0>(&self, relation: ParentChildRelation, element: P0, mutationtype: VisualMutationType) -> ::windows::core::Result<()> where P0: ::std::convert::Into<::windows::core::InParam<'a, VisualElement>>, @@ -713,11 +676,9 @@ impl IXamlDiagnostics { let mut result__ = ::core::mem::MaybeUninit::zeroed(); (::windows::core::Interface::vtable(self).RegisterInstance)(::windows::core::Interface::as_raw(self), pinstance.into().abi(), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) } - #[doc = "*Required features: `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub unsafe fn GetInitializationData(&self) -> ::windows::core::Result { + pub unsafe fn GetInitializationData(&self) -> ::windows::core::Result<::windows::core::BSTR> { let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Interface::vtable(self).GetInitializationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::(result__) + (::windows::core::Interface::vtable(self).GetInitializationData)(::windows::core::Interface::as_raw(self), ::core::mem::transmute(result__.as_mut_ptr())).from_abi::<::windows::core::BSTR>(result__) } } impl ::core::convert::From for ::windows::core::IUnknown { @@ -769,10 +730,7 @@ pub struct IXamlDiagnostics_Vtbl { #[cfg(not(feature = "Win32_Foundation"))] HitTest: usize, pub RegisterInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinstance: *mut ::core::ffi::c_void, pinstancehandle: *mut u64) -> ::windows::core::HRESULT, - #[cfg(feature = "Win32_Foundation")] - pub GetInitializationData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinitializationdata: *mut super::super::super::Foundation::BSTR) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Win32_Foundation"))] - GetInitializationData: usize, + pub GetInitializationData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pinitializationdata: *mut ::core::mem::ManuallyDrop<::windows::core::BSTR>) -> ::windows::core::HRESULT, } #[doc = "*Required features: `\"Win32_UI_Xaml_Diagnostics\"`*"] pub const E_UNKNOWNTYPE: ::windows::core::HRESULT = ::windows::core::HRESULT(-2144665560i32); @@ -1014,77 +972,70 @@ impl ::core::default::Default for BitmapDescription { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Xaml_Diagnostics\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_UI_Xaml_Diagnostics\"`*"] pub struct CollectionElementValue { pub Index: u32, - pub ValueType: super::super::super::Foundation::BSTR, - pub Value: super::super::super::Foundation::BSTR, + pub ValueType: ::windows::core::BSTR, + pub Value: ::windows::core::BSTR, pub MetadataBits: i64, } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for CollectionElementValue { fn clone(&self) -> Self { Self { Index: self.Index, ValueType: self.ValueType.clone(), Value: self.Value.clone(), MetadataBits: self.MetadataBits } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for CollectionElementValue { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("CollectionElementValue").field("Index", &self.Index).field("ValueType", &self.ValueType).field("Value", &self.Value).field("MetadataBits", &self.MetadataBits).finish() } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for CollectionElementValue { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for CollectionElementValue { fn eq(&self, other: &Self) -> bool { self.Index == other.Index && self.ValueType == other.ValueType && self.Value == other.Value && self.MetadataBits == other.MetadataBits } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for CollectionElementValue {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for CollectionElementValue { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Xaml_Diagnostics\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`*"] -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[doc = "*Required features: `\"Win32_UI_Xaml_Diagnostics\"`, `\"Win32_System_Com\"`*"] +#[cfg(feature = "Win32_System_Com")] pub struct EnumType { - pub Name: super::super::super::Foundation::BSTR, + pub Name: ::windows::core::BSTR, pub ValueInts: *mut super::super::super::System::Com::SAFEARRAY, pub ValueStrings: *mut super::super::super::System::Com::SAFEARRAY, } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::clone::Clone for EnumType { fn clone(&self) -> Self { Self { Name: self.Name.clone(), ValueInts: self.ValueInts, ValueStrings: self.ValueStrings } } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::fmt::Debug for EnumType { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("EnumType").field("Name", &self.Name).field("ValueInts", &self.ValueInts).field("ValueStrings", &self.ValueStrings).finish() } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] unsafe impl ::windows::core::Abi for EnumType { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::cmp::PartialEq for EnumType { fn eq(&self, other: &Self) -> bool { self.Name == other.Name && self.ValueInts == other.ValueInts && self.ValueStrings == other.ValueStrings } } -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::cmp::Eq for EnumType {} -#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com"))] +#[cfg(feature = "Win32_System_Com")] impl ::core::default::Default for EnumType { fn default() -> Self { unsafe { ::core::mem::zeroed() } @@ -1123,40 +1074,33 @@ impl ::core::default::Default for ParentChildRelation { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Xaml_Diagnostics\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_UI_Xaml_Diagnostics\"`*"] pub struct PropertyChainSource { pub Handle: u64, - pub TargetType: super::super::super::Foundation::BSTR, - pub Name: super::super::super::Foundation::BSTR, + pub TargetType: ::windows::core::BSTR, + pub Name: ::windows::core::BSTR, pub Source: BaseValueSource, pub SrcInfo: SourceInfo, } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for PropertyChainSource { fn clone(&self) -> Self { Self { Handle: self.Handle, TargetType: self.TargetType.clone(), Name: self.Name.clone(), Source: self.Source, SrcInfo: self.SrcInfo.clone() } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for PropertyChainSource { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("PropertyChainSource").field("Handle", &self.Handle).field("TargetType", &self.TargetType).field("Name", &self.Name).field("Source", &self.Source).field("SrcInfo", &self.SrcInfo).finish() } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for PropertyChainSource { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for PropertyChainSource { fn eq(&self, other: &Self) -> bool { self.Handle == other.Handle && self.TargetType == other.TargetType && self.Name == other.Name && self.Source == other.Source && self.SrcInfo == other.SrcInfo } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for PropertyChainSource {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for PropertyChainSource { fn default() -> Self { unsafe { ::core::mem::zeroed() } @@ -1167,14 +1111,14 @@ impl ::core::default::Default for PropertyChainSource { #[cfg(feature = "Win32_Foundation")] pub struct PropertyChainValue { pub Index: u32, - pub Type: super::super::super::Foundation::BSTR, - pub DeclaringType: super::super::super::Foundation::BSTR, - pub ValueType: super::super::super::Foundation::BSTR, - pub ItemType: super::super::super::Foundation::BSTR, - pub Value: super::super::super::Foundation::BSTR, + pub Type: ::windows::core::BSTR, + pub DeclaringType: ::windows::core::BSTR, + pub ValueType: ::windows::core::BSTR, + pub ItemType: ::windows::core::BSTR, + pub Value: ::windows::core::BSTR, pub Overridden: super::super::super::Foundation::BOOL, pub MetadataBits: i64, - pub PropertyName: super::super::super::Foundation::BSTR, + pub PropertyName: ::windows::core::BSTR, pub PropertyChainIndex: u32, } #[cfg(feature = "Win32_Foundation")] @@ -1219,16 +1163,14 @@ impl ::core::default::Default for PropertyChainValue { } } #[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Xaml_Diagnostics\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_UI_Xaml_Diagnostics\"`*"] pub struct SourceInfo { - pub FileName: super::super::super::Foundation::BSTR, + pub FileName: ::windows::core::BSTR, pub LineNumber: u32, pub ColumnNumber: u32, pub CharPosition: u32, - pub Hash: super::super::super::Foundation::BSTR, + pub Hash: ::windows::core::BSTR, } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for SourceInfo { fn clone(&self) -> Self { Self { @@ -1240,65 +1182,53 @@ impl ::core::clone::Clone for SourceInfo { } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for SourceInfo { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("SourceInfo").field("FileName", &self.FileName).field("LineNumber", &self.LineNumber).field("ColumnNumber", &self.ColumnNumber).field("CharPosition", &self.CharPosition).field("Hash", &self.Hash).finish() } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for SourceInfo { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for SourceInfo { fn eq(&self, other: &Self) -> bool { self.FileName == other.FileName && self.LineNumber == other.LineNumber && self.ColumnNumber == other.ColumnNumber && self.CharPosition == other.CharPosition && self.Hash == other.Hash } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for SourceInfo {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for SourceInfo { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] -#[doc = "*Required features: `\"Win32_UI_Xaml_Diagnostics\"`, `\"Win32_Foundation\"`*"] -#[cfg(feature = "Win32_Foundation")] +#[doc = "*Required features: `\"Win32_UI_Xaml_Diagnostics\"`*"] pub struct VisualElement { pub Handle: u64, pub SrcInfo: SourceInfo, - pub Type: super::super::super::Foundation::BSTR, - pub Name: super::super::super::Foundation::BSTR, + pub Type: ::windows::core::BSTR, + pub Name: ::windows::core::BSTR, pub NumChildren: u32, } -#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for VisualElement { fn clone(&self) -> Self { Self { Handle: self.Handle, SrcInfo: self.SrcInfo.clone(), Type: self.Type.clone(), Name: self.Name.clone(), NumChildren: self.NumChildren } } } -#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for VisualElement { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("VisualElement").field("Handle", &self.Handle).field("SrcInfo", &self.SrcInfo).field("Type", &self.Type).field("Name", &self.Name).field("NumChildren", &self.NumChildren).finish() } } -#[cfg(feature = "Win32_Foundation")] unsafe impl ::windows::core::Abi for VisualElement { type Abi = ::core::mem::ManuallyDrop; } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for VisualElement { fn eq(&self, other: &Self) -> bool { self.Handle == other.Handle && self.SrcInfo == other.SrcInfo && self.Type == other.Type && self.Name == other.Name && self.NumChildren == other.NumChildren } } -#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for VisualElement {} -#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for VisualElement { fn default() -> Self { unsafe { ::core::mem::zeroed() } diff --git a/crates/libs/windows/src/core/bindings.rs b/crates/libs/windows/src/core/bindings.rs index 86ed86ad64..1a39713ada 100644 --- a/crates/libs/windows/src/core/bindings.rs +++ b/crates/libs/windows/src/core/bindings.rs @@ -241,105 +241,6 @@ impl RuntimeName for PropertyValue { const NAME: &'static str = "Windows.Foundation.PropertyValue"; } -#[repr(transparent)] -pub struct BSTR(*const u16); -impl BSTR { - pub fn new() -> Self { - Self(std::ptr::null_mut()) - } - pub fn is_empty(&self) -> bool { - self.len() == 0 - } - pub fn len(&self) -> usize { - if self.0.is_null() { - 0 - } else { - unsafe { SysStringLen(self.0) as usize } - } - } - pub fn from_wide(value: &[u16]) -> Self { - if value.is_empty() { - return Self(std::ptr::null_mut()); - } - unsafe { BSTR(SysAllocStringLen(value.as_ptr(), value.len() as _)) } - } - pub fn as_wide(&self) -> &[u16] { - if self.0.is_null() { - return &[]; - } - unsafe { std::slice::from_raw_parts(self.0, self.len()) } - } - pub unsafe fn from_raw(raw: *const u16) -> Self { - Self(raw) - } - pub fn into_raw(self) -> *const u16 { - unsafe { std::mem::transmute(self) } - } -} -impl std::clone::Clone for BSTR { - fn clone(&self) -> Self { - Self::from_wide(self.as_wide()) - } -} -impl<'a> std::convert::TryFrom<&'a BSTR> for alloc::string::String { - type Error = alloc::string::FromUtf16Error; - fn try_from(value: &BSTR) -> std::result::Result { - alloc::string::String::from_utf16(value.as_wide()) - } -} -impl std::convert::TryFrom for alloc::string::String { - type Error = alloc::string::FromUtf16Error; - fn try_from(value: BSTR) -> std::result::Result { - alloc::string::String::try_from(&value) - } -} -impl std::default::Default for BSTR { - fn default() -> Self { - Self(std::ptr::null_mut()) - } -} -impl std::fmt::Display for BSTR { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - std::write!(f, "{}", Decode(|| std::char::decode_utf16(self.as_wide().iter().cloned()))) - } -} -impl std::cmp::PartialEq for BSTR { - fn eq(&self, other: &Self) -> bool { - self.as_wide() == other.as_wide() - } -} -impl std::cmp::Eq for BSTR {} -impl std::cmp::PartialEq for BSTR { - fn eq(&self, other: &alloc::string::String) -> bool { - self == other.as_str() - } -} -impl std::cmp::PartialEq for BSTR { - fn eq(&self, other: &str) -> bool { - self == other - } -} -impl std::cmp::PartialEq<&str> for BSTR { - fn eq(&self, other: &&str) -> bool { - self.as_wide().iter().copied().eq(other.encode_utf16()) - } -} -impl std::cmp::PartialEq for &str { - fn eq(&self, other: &BSTR) -> bool { - other == self - } -} -impl std::ops::Drop for BSTR { - fn drop(&mut self) { - if !self.0.is_null() { - unsafe { SysFreeString(self.0) } - } - } -} -unsafe impl Abi for BSTR { - type Abi = std::mem::ManuallyDrop; -} - #[repr(transparent)] pub struct IAgileObject(IUnknown); impl std::clone::Clone for IAgileObject { diff --git a/crates/libs/windows/src/core/strings/bstr.rs b/crates/libs/windows/src/core/strings/bstr.rs new file mode 100644 index 0000000000..780905a8d1 --- /dev/null +++ b/crates/libs/windows/src/core/strings/bstr.rs @@ -0,0 +1,134 @@ +use super::*; +use bindings::*; + +#[repr(transparent)] +pub struct BSTR(*const u16); + +impl BSTR { + pub fn new() -> Self { + Self(core::ptr::null_mut()) + } + + pub fn is_empty(&self) -> bool { + self.len() == 0 + } + + pub fn len(&self) -> usize { + if self.0.is_null() { + 0 + } else { + unsafe { SysStringLen(self.0) as usize } + } + } + + pub fn from_wide(value: &[u16]) -> Self { + if value.is_empty() { + return Self(::core::ptr::null_mut()); + } + + unsafe { Self(SysAllocStringLen(value.as_ptr(), value.len() as _)) } + } + + pub fn as_wide(&self) -> &[u16] { + if self.0.is_null() { + return &[]; + } + + unsafe { ::core::slice::from_raw_parts(self.0, self.len()) } + } + + pub unsafe fn from_raw(raw: *const u16) -> Self { + Self(raw) + } + + pub fn into_raw(self) -> *const u16 { + unsafe { std::mem::transmute(self) } + } +} +impl ::core::clone::Clone for BSTR { + fn clone(&self) -> Self { + Self::from_wide(self.as_wide()) + } +} +impl ::core::convert::From<&str> for BSTR { + fn from(value: &str) -> Self { + let value: ::windows::core::alloc::vec::Vec = value.encode_utf16().collect(); + Self::from_wide(&value) + } +} +impl ::core::convert::From<::windows::core::alloc::string::String> for BSTR { + fn from(value: ::windows::core::alloc::string::String) -> Self { + value.as_str().into() + } +} +impl ::core::convert::From<&::windows::core::alloc::string::String> for BSTR { + fn from(value: &::windows::core::alloc::string::String) -> Self { + value.as_str().into() + } +} +impl<'a> ::core::convert::TryFrom<&'a BSTR> for ::windows::core::alloc::string::String { + type Error = ::windows::core::alloc::string::FromUtf16Error; + + fn try_from(value: &BSTR) -> ::core::result::Result { + ::windows::core::alloc::string::String::from_utf16(value.as_wide()) + } +} +impl ::core::convert::TryFrom for ::windows::core::alloc::string::String { + type Error = ::windows::core::alloc::string::FromUtf16Error; + + fn try_from(value: BSTR) -> ::core::result::Result { + ::windows::core::alloc::string::String::try_from(&value) + } +} +impl ::core::default::Default for BSTR { + fn default() -> Self { + Self(::core::ptr::null_mut()) + } +} +impl ::core::fmt::Display for BSTR { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + ::core::write!(f, "{}", ::windows::core::Decode(|| ::core::char::decode_utf16(self.as_wide().iter().cloned()))) + } +} +impl ::core::fmt::Debug for BSTR { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + ::core::write!(f, "{}", self) + } +} +impl ::core::cmp::PartialEq for BSTR { + fn eq(&self, other: &Self) -> bool { + self.as_wide() == other.as_wide() + } +} +impl ::core::cmp::Eq for BSTR {} +impl ::core::cmp::PartialEq<::windows::core::alloc::string::String> for BSTR { + fn eq(&self, other: &::windows::core::alloc::string::String) -> bool { + self == other.as_str() + } +} +impl ::core::cmp::PartialEq for BSTR { + fn eq(&self, other: &str) -> bool { + self == other + } +} +impl ::core::cmp::PartialEq<&str> for BSTR { + fn eq(&self, other: &&str) -> bool { + self.as_wide().iter().copied().eq(other.encode_utf16()) + } +} + +impl ::core::cmp::PartialEq for &str { + fn eq(&self, other: &BSTR) -> bool { + other == self + } +} +impl ::core::ops::Drop for BSTR { + fn drop(&mut self) { + if !self.0.is_null() { + unsafe { SysFreeString(self.0) } + } + } +} +unsafe impl ::windows::core::Abi for BSTR { + type Abi = ::core::mem::ManuallyDrop; +} diff --git a/crates/libs/windows/src/core/strings/mod.rs b/crates/libs/windows/src/core/strings/mod.rs index e3b53bb9c2..cdd9f51fa1 100644 --- a/crates/libs/windows/src/core/strings/mod.rs +++ b/crates/libs/windows/src/core/strings/mod.rs @@ -1,3 +1,4 @@ +mod bstr; mod hstring; mod literals; mod pcstr; @@ -5,6 +6,7 @@ mod pcwstr; mod pstr; mod pwstr; +pub use bstr::*; pub use hstring::*; #[doc(hidden)] pub use literals::*; diff --git a/crates/tests/bstr/tests/bstr.rs b/crates/tests/bstr/tests/bstr.rs index 8bb25305d7..f7e04dd4f0 100644 --- a/crates/tests/bstr/tests/bstr.rs +++ b/crates/tests/bstr/tests/bstr.rs @@ -1,4 +1,5 @@ -use windows::Win32::Foundation::{SysAllocStringLen, BSTR}; +use windows::core::*; +use windows::Win32::Foundation::*; #[test] fn test() { @@ -44,3 +45,13 @@ fn clone() { assert!(a.is_empty()); assert!(a.len() == 0); } + +#[test] +fn interop() -> Result<()> { + unsafe { + let b: BSTR = "hello".into(); + SysAddRefString(&b)?; + SysFreeString(&b); + Ok(()) + } +}